]> granicus.if.org Git - imagemagick/blob - configure
41b07550eb80a9de8ca7392c6527c551162396c5
[imagemagick] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for ImageMagick 6.6.9.
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-6.6.9'
577 PACKAGE_VERSION='6.6.9'
578 PACKAGE_STRING='ImageMagick 6.6.9'
579 PACKAGE_BUGREPORT='http://www.imagemagick.org'
580 PACKAGE_URL=''
581
582 ac_unique_file="magick/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_CONFIGURE_PATH
725 CONFIGURE_PATH
726 SHARE_PATH
727 DOCUMENTATION_PATH
728 FILTER_PATH
729 CODER_PATH
730 LIBRARY_PATH
731 EXECUTABLE_PATH
732 PERLMAINCC
733 XML_LIBS
734 XML_DELEGATE_FALSE
735 XML_DELEGATE_TRUE
736 xml2_config
737 WMF_LIBS
738 WMF_DELEGATE_FALSE
739 WMF_DELEGATE_TRUE
740 WEBP_LIBS
741 WEBP_DELEGATE_FALSE
742 WEBP_DELEGATE_TRUE
743 TIFF_LIBS
744 TIFF_DELEGATE_FALSE
745 TIFF_DELEGATE_TRUE
746 CAIRO_DELEGATE_FALSE
747 CAIRO_DELEGATE_TRUE
748 RSVG_DELEGATE_FALSE
749 RSVG_DELEGATE_TRUE
750 CAIRO_SVG_LIBS
751 CAIRO_SVG_CFLAGS
752 RSVG_LIBS
753 RSVG_CFLAGS
754 PNG_LIBS
755 PNG_DELEGATE_FALSE
756 PNG_DELEGATE_TRUE
757 OPENEXR_DELEGATE_FALSE
758 OPENEXR_DELEGATE_TRUE
759 OPENEXR_LIBS
760 OPENEXR_CFLAGS
761 LZMA_LIBS
762 LZMA_DELEGATE_FALSE
763 LZMA_DELEGATE_TRUE
764 LQR_DELEGATE_FALSE
765 LQR_DELEGATE_TRUE
766 LQR_LIBS
767 LQR_CFLAGS
768 LCMS_LIBS
769 LCMS_DELEGATE_FALSE
770 LCMS_DELEGATE_TRUE
771 JP2_LIBS
772 JP2_DELEGATE_FALSE
773 JP2_DELEGATE_TRUE
774 JPEG_LIBS
775 JPEG_DELEGATE_FALSE
776 JPEG_DELEGATE_TRUE
777 JBIG_LIBS
778 JBIG_DELEGATE_FALSE
779 JBIG_DELEGATE_TRUE
780 GVC_DELEGATE_FALSE
781 GVC_DELEGATE_TRUE
782 GVC_LIBS
783 GVC_CFLAGS
784 GS_LIBS
785 GS_DELEGATE_FALSE
786 GS_DELEGATE_TRUE
787 FREETYPE_LIBS
788 FREETYPE_DELEGATE_FALSE
789 FREETYPE_DELEGATE_TRUE
790 freetype_config
791 FONTCONFIG_DELEGATE_FALSE
792 FONTCONFIG_DELEGATE_TRUE
793 FONTCONFIG_LIBS
794 FONTCONFIG_CFLAGS
795 FPX_LIBS
796 FPX_DELEGATE_FALSE
797 FPX_DELEGATE_TRUE
798 FFTW_LIBS
799 FFTW_DELEGATE_FALSE
800 FFTW_DELEGATE_TRUE
801 DJVU_LIBS
802 DJVU_DELEGATE_FALSE
803 DJVU_DELEGATE_TRUE
804 DPS_LIBS
805 DPS_DELEGATE_FALSE
806 DPS_DELEGATE_TRUE
807 AUTOTRACE_DELEGATE_FALSE
808 AUTOTRACE_DELEGATE_TRUE
809 AUTOTRACE_LIBS
810 AUTOTRACE_CFLAGS
811 LIB_DL
812 ZLIB_LIBS
813 ZLIB_DELEGATE_FALSE
814 ZLIB_DELEGATE_TRUE
815 XEXT_LIBS
816 X11_LIBS
817 X11_DELEGATE_FALSE
818 X11_DELEGATE_TRUE
819 X_EXTRA_LIBS
820 X_LIBS
821 X_PRE_LIBS
822 X_CFLAGS
823 XMKMF
824 BZLIB_LIBS
825 BZLIB_DELEGATE_FALSE
826 BZLIB_DELEGATE_TRUE
827 CCMALLOCDelegate
828 UMEM_LIBS
829 HasUMEM_FALSE
830 HasUMEM_TRUE
831 THREAD_LIBS
832 GOMP_LIBS
833 WITH_MAGICK_PLUS_PLUS_FALSE
834 WITH_MAGICK_PLUS_PLUS_TRUE
835 OPENMP_CXXFLAGS
836 MATH_LIBS
837 POW_LIB
838 LIBOBJS
839 UINTPTR_T
840 UINTMAX_T
841 UINT64_T
842 INT64_T
843 UINT32_T
844 INT32_T
845 UINT16_T
846 INT16_T
847 UINT8_T
848 INT8_T
849 LIBRARY_EXTRA_CPPFLAGS
850 MODULE_EXTRA_CPPFLAGS
851 LIBSTDCLDFLAGS
852 PERL_MAKE_OPTIONS
853 QUANTUM_DEPTH
854 MAINT
855 MAINTAINER_MODE_FALSE
856 MAINTAINER_MODE_TRUE
857 MAGICK_HDRI
858 DLLDFLAGS
859 WITH_LTDL_FALSE
860 WITH_LTDL_TRUE
861 WITH_MODULES_FALSE
862 WITH_MODULES_TRUE
863 WITH_SHARED_LIBS_FALSE
864 WITH_SHARED_LIBS_TRUE
865 LTDLOPEN
866 LT_CONFIG_H
867 CONVENIENCE_LTDL_FALSE
868 CONVENIENCE_LTDL_TRUE
869 INSTALL_LTDL_FALSE
870 INSTALL_LTDL_TRUE
871 ARGZ_H
872 sys_symbol_underscore
873 LIBADD_DL
874 LT_DLPREOPEN
875 LIBADD_DLD_LINK
876 LIBADD_SHL_LOAD
877 LIBADD_DLOPEN
878 LT_DLLOADERS
879 INCLTDL
880 LTDLINCL
881 LTDLDEPS
882 LIBLTDL
883 LIBTOOL_DEPS
884 CXXCPP
885 OTOOL64
886 OTOOL
887 LIPO
888 NMEDIT
889 DSYMUTIL
890 MANIFEST_TOOL
891 RANLIB
892 ac_ct_AR
893 AR
894 NM
895 ac_ct_DUMPBIN
896 DUMPBIN
897 LIBTOOL
898 OBJDUMP
899 DLLTOOL
900 AS
901 LFS_CPPFLAGS
902 CL_LIBS
903 CL_CFLAGS
904 OPENMP_CFLAGS
905 PTHREAD_CFLAGS
906 PTHREAD_LIBS
907 PTHREAD_CC
908 ax_pthread_config
909 WinPathScript
910 USING_CL_FALSE
911 USING_CL_TRUE
912 CYGWIN_BUILD_FALSE
913 CYGWIN_BUILD_TRUE
914 WIN32_NATIVE_BUILD_FALSE
915 WIN32_NATIVE_BUILD_TRUE
916 WINGDI32_DELEGATE_FALSE
917 WINGDI32_DELEGATE_TRUE
918 GDI32_LIBS
919 PKG_CONFIG
920 LN_S
921 LD
922 FGREP
923 SED
924 am__fastdepCXX_FALSE
925 am__fastdepCXX_TRUE
926 CXXDEPMODE
927 ac_ct_CXX
928 CXXFLAGS
929 CXX
930 EGREP
931 GREP
932 CPP
933 am__fastdepCC_FALSE
934 am__fastdepCC_TRUE
935 CCDEPMODE
936 AMDEPBACKSLASH
937 AMDEP_FALSE
938 AMDEP_TRUE
939 am__quote
940 am__include
941 DEPDIR
942 OBJEXT
943 EXEEXT
944 ac_ct_CC
945 CPPFLAGS
946 LDFLAGS
947 CFLAGS
948 CC
949 DIRSEP
950 MAGICK_FILTER_MODULE_PATH
951 MAGICK_CONFIGURE_BUILD_PATH
952 MAGICK_CONFIGURE_SRC_PATH
953 MAGICK_CODER_MODULE_PATH
954 MAN_DIR
955 INFO_DIR
956 PERSISTINCLUDE_DIR
957 INCLUDE_DIR
958 LIB_DIR
959 LOCALSTATE_DIR
960 SHAREDSTATE_DIR
961 SYSCONF_DIR
962 DOC_DIR
963 DATA_DIR
964 LIBEXEC_DIR
965 SBIN_DIR
966 BIN_DIR
967 EXEC_PREFIX_DIR
968 PREFIX_DIR
969 CONFIG_STATUS_DEPENDENCIES
970 MAGICK_LIB_VERSION_NUMBER
971 MAGICK_LIB_VERSION_TEXT
972 MAGICK_LIB_VERSION
973 AM_BACKSLASH
974 AM_DEFAULT_VERBOSITY
975 am__untar
976 am__tar
977 AMTAR
978 am__leading_dot
979 SET_MAKE
980 AWK
981 mkdir_p
982 MKDIR_P
983 INSTALL_STRIP_PROGRAM
984 STRIP
985 install_sh
986 MAKEINFO
987 AUTOHEADER
988 AUTOMAKE
989 AUTOCONF
990 ACLOCAL
991 VERSION
992 PACKAGE
993 CYGPATH_W
994 am__isrc
995 INSTALL_DATA
996 INSTALL_SCRIPT
997 INSTALL_PROGRAM
998 PACKAGE_VERSION_ADDENDUM
999 PACKAGE_RELEASE_DATE
1000 PACKAGE_LIB_VERSION_NUMBER
1001 PACKAGE_LIB_VERSION
1002 PACKAGE_CHANGE_DATE
1003 PACKAGE_RELEASE
1004 MAGICK_SVN_REVISION
1005 MAGICK_LIBRARY_VERSION_INFO
1006 MAGICK_LIBRARY_CURRENT_MIN
1007 MAGICK_LIBRARY_AGE
1008 MAGICK_LIBRARY_REVISION
1009 MAGICK_LIBRARY_CURRENT
1010 MAGICK_TARGET_OS
1011 MAGICK_TARGET_VENDOR
1012 MAGICK_TARGET_CPU
1013 target_os
1014 target_vendor
1015 target_cpu
1016 target
1017 host_os
1018 host_vendor
1019 host_cpu
1020 host
1021 build_os
1022 build_vendor
1023 build_cpu
1024 build
1025 CONFIGURE_ARGS
1026 DISTCHECK_CONFIG_FLAGS
1027 target_alias
1028 host_alias
1029 build_alias
1030 LIBS
1031 ECHO_T
1032 ECHO_N
1033 ECHO_C
1034 DEFS
1035 mandir
1036 localedir
1037 libdir
1038 psdir
1039 pdfdir
1040 dvidir
1041 htmldir
1042 infodir
1043 docdir
1044 oldincludedir
1045 includedir
1046 localstatedir
1047 sharedstatedir
1048 sysconfdir
1049 datadir
1050 datarootdir
1051 libexecdir
1052 sbindir
1053 bindir
1054 program_transform_name
1055 prefix
1056 exec_prefix
1057 PACKAGE_URL
1058 PACKAGE_BUGREPORT
1059 PACKAGE_STRING
1060 PACKAGE_VERSION
1061 PACKAGE_TARNAME
1062 PACKAGE_NAME
1063 PATH_SEPARATOR
1064 SHELL'
1065 ac_subst_files=''
1066 ac_user_opts='
1067 enable_option_checking
1068 enable_silent_rules
1069 enable_dependency_tracking
1070 with_gnu_ld
1071 with_dmalloc
1072 enable_bounds_checking
1073 enable_osx_universal_binary
1074 with_threads
1075 enable_openmp
1076 enable_opencl
1077 enable_largefile
1078 enable_shared
1079 enable_static
1080 with_pic
1081 enable_fast_install
1082 with_sysroot
1083 enable_libtool_lock
1084 with_included_ltdl
1085 with_ltdl_include
1086 with_ltdl_lib
1087 enable_ltdl_install
1088 with_modules
1089 enable_delegate_build
1090 enable_deprecated
1091 enable_installed
1092 enable_cipher
1093 enable_embeddable
1094 enable_hdri
1095 enable_assert
1096 enable_maintainer_mode
1097 enable_ccmalloc
1098 enable_efence
1099 enable_prof
1100 enable_gprof
1101 enable_gcov
1102 with_method_prefix
1103 with_quantum_depth
1104 with_cache
1105 with_frozenpaths
1106 with_magick_plus_plus
1107 with_perl
1108 with_perl_options
1109 with_umem
1110 with_libstdc
1111 with_bzlib
1112 with_x
1113 with_zlib
1114 with_autotrace
1115 with_dps
1116 with_djvu
1117 with_dejavu_font_dir
1118 with_fftw
1119 with_fpx
1120 with_fontconfig
1121 with_freetype
1122 with_gslib
1123 with_fontpath
1124 with_gs_font_dir
1125 with_gvc
1126 with_jbig
1127 with_jpeg
1128 with_jp2
1129 with_lcms
1130 with_lcms2
1131 with_lqr
1132 with_lzma
1133 with_openexr
1134 with_png
1135 with_rsvg
1136 with_tiff
1137 with_webp
1138 with_windows_font_dir
1139 with_wmf
1140 with_xml
1141 '
1142       ac_precious_vars='build_alias
1143 host_alias
1144 target_alias
1145 CC
1146 CFLAGS
1147 LDFLAGS
1148 LIBS
1149 CPPFLAGS
1150 CPP
1151 CXX
1152 CXXFLAGS
1153 CCC
1154 PKG_CONFIG
1155 CXXCPP
1156 XMKMF
1157 AUTOTRACE_CFLAGS
1158 AUTOTRACE_LIBS
1159 FONTCONFIG_CFLAGS
1160 FONTCONFIG_LIBS
1161 GVC_CFLAGS
1162 GVC_LIBS
1163 LQR_CFLAGS
1164 LQR_LIBS
1165 OPENEXR_CFLAGS
1166 OPENEXR_LIBS
1167 RSVG_CFLAGS
1168 RSVG_LIBS
1169 CAIRO_SVG_CFLAGS
1170 CAIRO_SVG_LIBS'
1171
1172
1173 # Initialize some variables set by options.
1174 ac_init_help=
1175 ac_init_version=false
1176 ac_unrecognized_opts=
1177 ac_unrecognized_sep=
1178 # The variables have the same names as the options, with
1179 # dashes changed to underlines.
1180 cache_file=/dev/null
1181 exec_prefix=NONE
1182 no_create=
1183 no_recursion=
1184 prefix=NONE
1185 program_prefix=NONE
1186 program_suffix=NONE
1187 program_transform_name=s,x,x,
1188 silent=
1189 site=
1190 srcdir=
1191 verbose=
1192 x_includes=NONE
1193 x_libraries=NONE
1194
1195 # Installation directory options.
1196 # These are left unexpanded so users can "make install exec_prefix=/foo"
1197 # and all the variables that are supposed to be based on exec_prefix
1198 # by default will actually change.
1199 # Use braces instead of parens because sh, perl, etc. also accept them.
1200 # (The list follows the same order as the GNU Coding Standards.)
1201 bindir='${exec_prefix}/bin'
1202 sbindir='${exec_prefix}/sbin'
1203 libexecdir='${exec_prefix}/libexec'
1204 datarootdir='${prefix}/share'
1205 datadir='${datarootdir}'
1206 sysconfdir='${prefix}/etc'
1207 sharedstatedir='${prefix}/com'
1208 localstatedir='${prefix}/var'
1209 includedir='${prefix}/include'
1210 oldincludedir='/usr/include'
1211 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1212 infodir='${datarootdir}/info'
1213 htmldir='${docdir}'
1214 dvidir='${docdir}'
1215 pdfdir='${docdir}'
1216 psdir='${docdir}'
1217 libdir='${exec_prefix}/lib'
1218 localedir='${datarootdir}/locale'
1219 mandir='${datarootdir}/man'
1220
1221 ac_prev=
1222 ac_dashdash=
1223 for ac_option
1224 do
1225   # If the previous option needs an argument, assign it.
1226   if test -n "$ac_prev"; then
1227     eval $ac_prev=\$ac_option
1228     ac_prev=
1229     continue
1230   fi
1231
1232   case $ac_option in
1233   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1234   *=)   ac_optarg= ;;
1235   *)    ac_optarg=yes ;;
1236   esac
1237
1238   # Accept the important Cygnus configure options, so we can diagnose typos.
1239
1240   case $ac_dashdash$ac_option in
1241   --)
1242     ac_dashdash=yes ;;
1243
1244   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1245     ac_prev=bindir ;;
1246   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1247     bindir=$ac_optarg ;;
1248
1249   -build | --build | --buil | --bui | --bu)
1250     ac_prev=build_alias ;;
1251   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1252     build_alias=$ac_optarg ;;
1253
1254   -cache-file | --cache-file | --cache-fil | --cache-fi \
1255   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1256     ac_prev=cache_file ;;
1257   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1258   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1259     cache_file=$ac_optarg ;;
1260
1261   --config-cache | -C)
1262     cache_file=config.cache ;;
1263
1264   -datadir | --datadir | --datadi | --datad)
1265     ac_prev=datadir ;;
1266   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1267     datadir=$ac_optarg ;;
1268
1269   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1270   | --dataroo | --dataro | --datar)
1271     ac_prev=datarootdir ;;
1272   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1273   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1274     datarootdir=$ac_optarg ;;
1275
1276   -disable-* | --disable-*)
1277     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1278     # Reject names that are not valid shell variable names.
1279     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280       as_fn_error $? "invalid feature name: $ac_useropt"
1281     ac_useropt_orig=$ac_useropt
1282     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283     case $ac_user_opts in
1284       *"
1285 "enable_$ac_useropt"
1286 "*) ;;
1287       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1288          ac_unrecognized_sep=', ';;
1289     esac
1290     eval enable_$ac_useropt=no ;;
1291
1292   -docdir | --docdir | --docdi | --doc | --do)
1293     ac_prev=docdir ;;
1294   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1295     docdir=$ac_optarg ;;
1296
1297   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1298     ac_prev=dvidir ;;
1299   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1300     dvidir=$ac_optarg ;;
1301
1302   -enable-* | --enable-*)
1303     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1304     # Reject names that are not valid shell variable names.
1305     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1306       as_fn_error $? "invalid feature name: $ac_useropt"
1307     ac_useropt_orig=$ac_useropt
1308     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1309     case $ac_user_opts in
1310       *"
1311 "enable_$ac_useropt"
1312 "*) ;;
1313       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1314          ac_unrecognized_sep=', ';;
1315     esac
1316     eval enable_$ac_useropt=\$ac_optarg ;;
1317
1318   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1319   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1320   | --exec | --exe | --ex)
1321     ac_prev=exec_prefix ;;
1322   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1323   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1324   | --exec=* | --exe=* | --ex=*)
1325     exec_prefix=$ac_optarg ;;
1326
1327   -gas | --gas | --ga | --g)
1328     # Obsolete; use --with-gas.
1329     with_gas=yes ;;
1330
1331   -help | --help | --hel | --he | -h)
1332     ac_init_help=long ;;
1333   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1334     ac_init_help=recursive ;;
1335   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1336     ac_init_help=short ;;
1337
1338   -host | --host | --hos | --ho)
1339     ac_prev=host_alias ;;
1340   -host=* | --host=* | --hos=* | --ho=*)
1341     host_alias=$ac_optarg ;;
1342
1343   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1344     ac_prev=htmldir ;;
1345   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1346   | --ht=*)
1347     htmldir=$ac_optarg ;;
1348
1349   -includedir | --includedir | --includedi | --included | --include \
1350   | --includ | --inclu | --incl | --inc)
1351     ac_prev=includedir ;;
1352   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1353   | --includ=* | --inclu=* | --incl=* | --inc=*)
1354     includedir=$ac_optarg ;;
1355
1356   -infodir | --infodir | --infodi | --infod | --info | --inf)
1357     ac_prev=infodir ;;
1358   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1359     infodir=$ac_optarg ;;
1360
1361   -libdir | --libdir | --libdi | --libd)
1362     ac_prev=libdir ;;
1363   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1364     libdir=$ac_optarg ;;
1365
1366   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1367   | --libexe | --libex | --libe)
1368     ac_prev=libexecdir ;;
1369   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1370   | --libexe=* | --libex=* | --libe=*)
1371     libexecdir=$ac_optarg ;;
1372
1373   -localedir | --localedir | --localedi | --localed | --locale)
1374     ac_prev=localedir ;;
1375   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1376     localedir=$ac_optarg ;;
1377
1378   -localstatedir | --localstatedir | --localstatedi | --localstated \
1379   | --localstate | --localstat | --localsta | --localst | --locals)
1380     ac_prev=localstatedir ;;
1381   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1382   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1383     localstatedir=$ac_optarg ;;
1384
1385   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1386     ac_prev=mandir ;;
1387   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1388     mandir=$ac_optarg ;;
1389
1390   -nfp | --nfp | --nf)
1391     # Obsolete; use --without-fp.
1392     with_fp=no ;;
1393
1394   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1395   | --no-cr | --no-c | -n)
1396     no_create=yes ;;
1397
1398   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1399   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1400     no_recursion=yes ;;
1401
1402   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1403   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1404   | --oldin | --oldi | --old | --ol | --o)
1405     ac_prev=oldincludedir ;;
1406   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1407   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1408   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1409     oldincludedir=$ac_optarg ;;
1410
1411   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1412     ac_prev=prefix ;;
1413   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1414     prefix=$ac_optarg ;;
1415
1416   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1417   | --program-pre | --program-pr | --program-p)
1418     ac_prev=program_prefix ;;
1419   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1420   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1421     program_prefix=$ac_optarg ;;
1422
1423   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1424   | --program-suf | --program-su | --program-s)
1425     ac_prev=program_suffix ;;
1426   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1427   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1428     program_suffix=$ac_optarg ;;
1429
1430   -program-transform-name | --program-transform-name \
1431   | --program-transform-nam | --program-transform-na \
1432   | --program-transform-n | --program-transform- \
1433   | --program-transform | --program-transfor \
1434   | --program-transfo | --program-transf \
1435   | --program-trans | --program-tran \
1436   | --progr-tra | --program-tr | --program-t)
1437     ac_prev=program_transform_name ;;
1438   -program-transform-name=* | --program-transform-name=* \
1439   | --program-transform-nam=* | --program-transform-na=* \
1440   | --program-transform-n=* | --program-transform-=* \
1441   | --program-transform=* | --program-transfor=* \
1442   | --program-transfo=* | --program-transf=* \
1443   | --program-trans=* | --program-tran=* \
1444   | --progr-tra=* | --program-tr=* | --program-t=*)
1445     program_transform_name=$ac_optarg ;;
1446
1447   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1448     ac_prev=pdfdir ;;
1449   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1450     pdfdir=$ac_optarg ;;
1451
1452   -psdir | --psdir | --psdi | --psd | --ps)
1453     ac_prev=psdir ;;
1454   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1455     psdir=$ac_optarg ;;
1456
1457   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1458   | -silent | --silent | --silen | --sile | --sil)
1459     silent=yes ;;
1460
1461   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1462     ac_prev=sbindir ;;
1463   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1464   | --sbi=* | --sb=*)
1465     sbindir=$ac_optarg ;;
1466
1467   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1468   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1469   | --sharedst | --shareds | --shared | --share | --shar \
1470   | --sha | --sh)
1471     ac_prev=sharedstatedir ;;
1472   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1473   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1474   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1475   | --sha=* | --sh=*)
1476     sharedstatedir=$ac_optarg ;;
1477
1478   -site | --site | --sit)
1479     ac_prev=site ;;
1480   -site=* | --site=* | --sit=*)
1481     site=$ac_optarg ;;
1482
1483   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1484     ac_prev=srcdir ;;
1485   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1486     srcdir=$ac_optarg ;;
1487
1488   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1489   | --syscon | --sysco | --sysc | --sys | --sy)
1490     ac_prev=sysconfdir ;;
1491   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1492   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1493     sysconfdir=$ac_optarg ;;
1494
1495   -target | --target | --targe | --targ | --tar | --ta | --t)
1496     ac_prev=target_alias ;;
1497   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1498     target_alias=$ac_optarg ;;
1499
1500   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1501     verbose=yes ;;
1502
1503   -version | --version | --versio | --versi | --vers | -V)
1504     ac_init_version=: ;;
1505
1506   -with-* | --with-*)
1507     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1508     # Reject names that are not valid shell variable names.
1509     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1510       as_fn_error $? "invalid package name: $ac_useropt"
1511     ac_useropt_orig=$ac_useropt
1512     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1513     case $ac_user_opts in
1514       *"
1515 "with_$ac_useropt"
1516 "*) ;;
1517       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1518          ac_unrecognized_sep=', ';;
1519     esac
1520     eval with_$ac_useropt=\$ac_optarg ;;
1521
1522   -without-* | --without-*)
1523     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1524     # Reject names that are not valid shell variable names.
1525     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1526       as_fn_error $? "invalid package name: $ac_useropt"
1527     ac_useropt_orig=$ac_useropt
1528     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1529     case $ac_user_opts in
1530       *"
1531 "with_$ac_useropt"
1532 "*) ;;
1533       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1534          ac_unrecognized_sep=', ';;
1535     esac
1536     eval with_$ac_useropt=no ;;
1537
1538   --x)
1539     # Obsolete; use --with-x.
1540     with_x=yes ;;
1541
1542   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1543   | --x-incl | --x-inc | --x-in | --x-i)
1544     ac_prev=x_includes ;;
1545   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1546   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1547     x_includes=$ac_optarg ;;
1548
1549   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1550   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1551     ac_prev=x_libraries ;;
1552   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1553   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1554     x_libraries=$ac_optarg ;;
1555
1556   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1557 Try \`$0 --help' for more information"
1558     ;;
1559
1560   *=*)
1561     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1562     # Reject names that are not valid shell variable names.
1563     case $ac_envvar in #(
1564       '' | [0-9]* | *[!_$as_cr_alnum]* )
1565       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1566     esac
1567     eval $ac_envvar=\$ac_optarg
1568     export $ac_envvar ;;
1569
1570   *)
1571     # FIXME: should be removed in autoconf 3.0.
1572     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1573     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1574       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1575     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1576     ;;
1577
1578   esac
1579 done
1580
1581 if test -n "$ac_prev"; then
1582   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1583   as_fn_error $? "missing argument to $ac_option"
1584 fi
1585
1586 if test -n "$ac_unrecognized_opts"; then
1587   case $enable_option_checking in
1588     no) ;;
1589     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1590     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1591   esac
1592 fi
1593
1594 # Check all directory arguments for consistency.
1595 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1596                 datadir sysconfdir sharedstatedir localstatedir includedir \
1597                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1598                 libdir localedir mandir
1599 do
1600   eval ac_val=\$$ac_var
1601   # Remove trailing slashes.
1602   case $ac_val in
1603     */ )
1604       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1605       eval $ac_var=\$ac_val;;
1606   esac
1607   # Be sure to have absolute directory names.
1608   case $ac_val in
1609     [\\/$]* | ?:[\\/]* )  continue;;
1610     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1611   esac
1612   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1613 done
1614
1615 # There might be people who depend on the old broken behavior: `$host'
1616 # used to hold the argument of --host etc.
1617 # FIXME: To remove some day.
1618 build=$build_alias
1619 host=$host_alias
1620 target=$target_alias
1621
1622 # FIXME: To remove some day.
1623 if test "x$host_alias" != x; then
1624   if test "x$build_alias" = x; then
1625     cross_compiling=maybe
1626     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1627     If a cross compiler is detected then cross compile mode will be used" >&2
1628   elif test "x$build_alias" != "x$host_alias"; then
1629     cross_compiling=yes
1630   fi
1631 fi
1632
1633 ac_tool_prefix=
1634 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1635
1636 test "$silent" = yes && exec 6>/dev/null
1637
1638
1639 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1640 ac_ls_di=`ls -di .` &&
1641 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1642   as_fn_error $? "working directory cannot be determined"
1643 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1644   as_fn_error $? "pwd does not report name of working directory"
1645
1646
1647 # Find the source files, if location was not specified.
1648 if test -z "$srcdir"; then
1649   ac_srcdir_defaulted=yes
1650   # Try the directory containing this script, then the parent directory.
1651   ac_confdir=`$as_dirname -- "$as_myself" ||
1652 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1653          X"$as_myself" : 'X\(//\)[^/]' \| \
1654          X"$as_myself" : 'X\(//\)$' \| \
1655          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1656 $as_echo X"$as_myself" |
1657     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1658             s//\1/
1659             q
1660           }
1661           /^X\(\/\/\)[^/].*/{
1662             s//\1/
1663             q
1664           }
1665           /^X\(\/\/\)$/{
1666             s//\1/
1667             q
1668           }
1669           /^X\(\/\).*/{
1670             s//\1/
1671             q
1672           }
1673           s/.*/./; q'`
1674   srcdir=$ac_confdir
1675   if test ! -r "$srcdir/$ac_unique_file"; then
1676     srcdir=..
1677   fi
1678 else
1679   ac_srcdir_defaulted=no
1680 fi
1681 if test ! -r "$srcdir/$ac_unique_file"; then
1682   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1683   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1684 fi
1685 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1686 ac_abs_confdir=`(
1687         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1688         pwd)`
1689 # When building in place, set srcdir=.
1690 if test "$ac_abs_confdir" = "$ac_pwd"; then
1691   srcdir=.
1692 fi
1693 # Remove unnecessary trailing slashes from srcdir.
1694 # Double slashes in file names in object file debugging info
1695 # mess up M-x gdb in Emacs.
1696 case $srcdir in
1697 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1698 esac
1699 for ac_var in $ac_precious_vars; do
1700   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1701   eval ac_env_${ac_var}_value=\$${ac_var}
1702   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1703   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1704 done
1705
1706 #
1707 # Report the --help message.
1708 #
1709 if test "$ac_init_help" = "long"; then
1710   # Omit some internal or obsolete options to make the list less imposing.
1711   # This message is too long to be a string in the A/UX 3.1 sh.
1712   cat <<_ACEOF
1713 \`configure' configures ImageMagick 6.6.9 to adapt to many kinds of systems.
1714
1715 Usage: $0 [OPTION]... [VAR=VALUE]...
1716
1717 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1718 VAR=VALUE.  See below for descriptions of some of the useful variables.
1719
1720 Defaults for the options are specified in brackets.
1721
1722 Configuration:
1723   -h, --help              display this help and exit
1724       --help=short        display options specific to this package
1725       --help=recursive    display the short help of all the included packages
1726   -V, --version           display version information and exit
1727   -q, --quiet, --silent   do not print \`checking ...' messages
1728       --cache-file=FILE   cache test results in FILE [disabled]
1729   -C, --config-cache      alias for \`--cache-file=config.cache'
1730   -n, --no-create         do not create output files
1731       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1732
1733 Installation directories:
1734   --prefix=PREFIX         install architecture-independent files in PREFIX
1735                           [$ac_default_prefix]
1736   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1737                           [PREFIX]
1738
1739 By default, \`make install' will install all the files in
1740 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1741 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1742 for instance \`--prefix=\$HOME'.
1743
1744 For better control, use the options below.
1745
1746 Fine tuning of the installation directories:
1747   --bindir=DIR            user executables [EPREFIX/bin]
1748   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1749   --libexecdir=DIR        program executables [EPREFIX/libexec]
1750   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1751   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1752   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1753   --libdir=DIR            object code libraries [EPREFIX/lib]
1754   --includedir=DIR        C header files [PREFIX/include]
1755   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1756   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1757   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1758   --infodir=DIR           info documentation [DATAROOTDIR/info]
1759   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1760   --mandir=DIR            man documentation [DATAROOTDIR/man]
1761   --docdir=DIR            documentation root
1762                           [DATAROOTDIR/doc/ImageMagick-6.6.9]
1763   --htmldir=DIR           html documentation [DOCDIR]
1764   --dvidir=DIR            dvi documentation [DOCDIR]
1765   --pdfdir=DIR            pdf documentation [DOCDIR]
1766   --psdir=DIR             ps documentation [DOCDIR]
1767 _ACEOF
1768
1769   cat <<\_ACEOF
1770
1771 Program names:
1772   --program-prefix=PREFIX            prepend PREFIX to installed program names
1773   --program-suffix=SUFFIX            append SUFFIX to installed program names
1774   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1775
1776 X features:
1777   --x-includes=DIR    X include files are in DIR
1778   --x-libraries=DIR   X library files are in DIR
1779
1780 System types:
1781   --build=BUILD     configure for building on BUILD [guessed]
1782   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1783   --target=TARGET   configure for building compilers for TARGET [HOST]
1784 _ACEOF
1785 fi
1786
1787 if test -n "$ac_init_help"; then
1788   case $ac_init_help in
1789      short | recursive ) echo "Configuration of ImageMagick 6.6.9:";;
1790    esac
1791   cat <<\_ACEOF
1792
1793 Optional Features:
1794   --disable-option-checking  ignore unrecognized --enable/--with options
1795   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1796   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1797   --enable-silent-rules          less verbose build output (undo: `make V=1')
1798   --disable-silent-rules         verbose build output (undo: `make V=0')
1799   --disable-dependency-tracking  speeds up one-time build
1800   --enable-dependency-tracking   do not reject slow dependency extractors
1801   --bounds-checking       enable run-time bounds-checking
1802   --enable-osx-universal-binary
1803                           build universal binary on OS X [[default=no]]
1804   --disable-openmp        do not use OpenMP
1805   --disable-opencl        do not use OpenCL
1806   --disable-largefile     omit support for large files
1807   --enable-shared[=PKGS]  build shared libraries [default=yes]
1808   --enable-static[=PKGS]  build static libraries [default=yes]
1809   --enable-fast-install[=PKGS]
1810                           optimize for fast installation [default=yes]
1811   --disable-libtool-lock  avoid locking (might break parallel builds)
1812   --enable-ltdl-install   install libltdl
1813   --enable-delegate-build look for delegate libraries in build directory
1814   --disable-deprecated    exclude deprecated methods in MagickCore and
1815                           MagickWand API's
1816   --disable-installed     Formally install ImageMagick under PREFIX
1817   --disable-cipher        disable enciphering and deciphering image pixels
1818   --enable-embeddable     enable self-contained, embeddable,
1819                           zero-configuration ImageMagick
1820   --enable-hdri           accurately represent the wide range of intensity
1821                           levels found in real scenes
1822   --disable-assert        disable assert() statements in build
1823   --enable-maintainer-mode  enable make rules and dependencies not useful
1824                           (and sometimes confusing) to the casual installer
1825   --enable-ccmalloc       enable 'ccmalloc' memory debug support
1826   --enable-efence         enable 'efence' memory debug support
1827   --enable-prof           enable 'prof' profiling support
1828   --enable-gprof          enable 'gprof' profiling support
1829   --enable-gcov           enable 'gcov' profiling support
1830   --disable-assert        turn off assertions
1831
1832 Optional Packages:
1833   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1834   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1835   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1836   --with-dmalloc          use dmalloc, as in
1837                           http://www.dmalloc.com/dmalloc.tar.gz
1838   --without-threads       disable threads support
1839   --with-pic              try to use only PIC/non-PIC objects [default=use
1840                           both]
1841   --with-sysroot=DIR Search for dependent libraries within DIR
1842                         (or the compiler's sysroot if not specified).
1843   --with-included-ltdl    use the GNU ltdl sources included here
1844   --with-ltdl-include=DIR use the ltdl headers installed in DIR
1845   --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1846   --with-modules          enable building dynamically loadable modules
1847   --with-method-prefix=PREFIX
1848                           prefix MagickCore API methods
1849   --with-quantum-depth=DEPTH
1850                           number of bits in a pixel quantum (default 16)
1851   --with-cache=THRESHOLD  set pixel cache threshhold in MB (default available
1852                           memory)
1853   --with-frozenpaths      freeze delegate paths
1854   --without-magick-plus-plus
1855                           disable build/install of Magick++
1856   --with-perl             enable build/install of PerlMagick
1857   --with-perl-options=OPTIONS
1858                           options to pass on command-line when generating
1859                           PerlMagick's build file
1860   --with-umem             enable umem memory allocation library support
1861   --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++)
1862   --without-bzlib         disable BZLIB support
1863   --with-x                use the X Window System
1864   --without-zlib          disable ZLIB support
1865   --with-autotrace        enable autotrace support
1866   --without-dps           disable Display Postscript support
1867   --without-djvu          disable DjVu support
1868   --with-dejavu-font-dir=DIR
1869                           DejaVu font directory
1870   --without-fftw          disable FFTW support
1871   --without-fpx           disable FlashPIX support
1872   --without-fontconfig    disable fontconfig support
1873   --without-freetype      disable Freetype support
1874   --without-gslib         enable Ghostscript library support
1875   --with-fontpath=DIR     prepend to default font search path
1876   --with-gs-font-dir=DIR  Ghostscript font directory
1877   --without-gvc           disable GVC support
1878   --without-jbig          disable JBIG support
1879   --without-jpeg          disable JPEG support
1880   --without-jp2           disable JPEG-2000 support
1881   --without-lcms          disable lcms (v1.1X) support
1882   --without-lcms2         disable lcms (v2.X) support
1883   --without-lqr           disable Liquid Rescale support
1884   --without-lzma          disable LZMA support
1885   --without-openexr       disable OpenEXR support
1886   --without-png           disable PNG support
1887   --without-rsvg          disable RSVG support
1888   --without-tiff          disable TIFF support
1889   --without-webp          disable WEBP support
1890   --with-windows-font-dir=DIR
1891                           directory containing MS-Windows fonts
1892   --without-wmf           disable WMF support
1893   --without-xml           disable XML support
1894
1895 Some influential environment variables:
1896   CC          C compiler command
1897   CFLAGS      C compiler flags
1898   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1899               nonstandard directory <lib dir>
1900   LIBS        libraries to pass to the linker, e.g. -l<library>
1901   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1902               you have headers in a nonstandard directory <include dir>
1903   CPP         C preprocessor
1904   CXX         C++ compiler command
1905   CXXFLAGS    C++ compiler flags
1906   PKG_CONFIG  path to pkg-config utility
1907   CXXCPP      C++ preprocessor
1908   XMKMF       Path to xmkmf, Makefile generator for X Window System
1909   AUTOTRACE_CFLAGS
1910               C compiler flags for AUTOTRACE, overriding pkg-config
1911   AUTOTRACE_LIBS
1912               linker flags for AUTOTRACE, overriding pkg-config
1913   FONTCONFIG_CFLAGS
1914               C compiler flags for FONTCONFIG, overriding pkg-config
1915   FONTCONFIG_LIBS
1916               linker flags for FONTCONFIG, overriding pkg-config
1917   GVC_CFLAGS  C compiler flags for GVC, overriding pkg-config
1918   GVC_LIBS    linker flags for GVC, overriding pkg-config
1919   LQR_CFLAGS  C compiler flags for LQR, overriding pkg-config
1920   LQR_LIBS    linker flags for LQR, overriding pkg-config
1921   OPENEXR_CFLAGS
1922               C compiler flags for OPENEXR, overriding pkg-config
1923   OPENEXR_LIBS
1924               linker flags for OPENEXR, overriding pkg-config
1925   RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1926   RSVG_LIBS   linker flags for RSVG, overriding pkg-config
1927   CAIRO_SVG_CFLAGS
1928               C compiler flags for CAIRO_SVG, overriding pkg-config
1929   CAIRO_SVG_LIBS
1930               linker flags for CAIRO_SVG, overriding pkg-config
1931
1932 Use these variables to override the choices made by `configure' or to help
1933 it to find libraries and programs with nonstandard names/locations.
1934
1935 Report bugs to <http://www.imagemagick.org>.
1936 _ACEOF
1937 ac_status=$?
1938 fi
1939
1940 if test "$ac_init_help" = "recursive"; then
1941   # If there are subdirs, report their specific --help.
1942   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1943     test -d "$ac_dir" ||
1944       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1945       continue
1946     ac_builddir=.
1947
1948 case "$ac_dir" in
1949 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1950 *)
1951   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1952   # A ".." for each directory in $ac_dir_suffix.
1953   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1954   case $ac_top_builddir_sub in
1955   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1956   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1957   esac ;;
1958 esac
1959 ac_abs_top_builddir=$ac_pwd
1960 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1961 # for backward compatibility:
1962 ac_top_builddir=$ac_top_build_prefix
1963
1964 case $srcdir in
1965   .)  # We are building in place.
1966     ac_srcdir=.
1967     ac_top_srcdir=$ac_top_builddir_sub
1968     ac_abs_top_srcdir=$ac_pwd ;;
1969   [\\/]* | ?:[\\/]* )  # Absolute name.
1970     ac_srcdir=$srcdir$ac_dir_suffix;
1971     ac_top_srcdir=$srcdir
1972     ac_abs_top_srcdir=$srcdir ;;
1973   *) # Relative name.
1974     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1975     ac_top_srcdir=$ac_top_build_prefix$srcdir
1976     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1977 esac
1978 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1979
1980     cd "$ac_dir" || { ac_status=$?; continue; }
1981     # Check for guested configure.
1982     if test -f "$ac_srcdir/configure.gnu"; then
1983       echo &&
1984       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1985     elif test -f "$ac_srcdir/configure"; then
1986       echo &&
1987       $SHELL "$ac_srcdir/configure" --help=recursive
1988     else
1989       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1990     fi || ac_status=$?
1991     cd "$ac_pwd" || { ac_status=$?; break; }
1992   done
1993 fi
1994
1995 test -n "$ac_init_help" && exit $ac_status
1996 if $ac_init_version; then
1997   cat <<\_ACEOF
1998 ImageMagick configure 6.6.9
1999 generated by GNU Autoconf 2.68
2000
2001 Copyright (C) 2010 Free Software Foundation, Inc.
2002 This configure script is free software; the Free Software Foundation
2003 gives unlimited permission to copy, distribute and modify it.
2004 _ACEOF
2005   exit
2006 fi
2007
2008 ## ------------------------ ##
2009 ## Autoconf initialization. ##
2010 ## ------------------------ ##
2011
2012 # ac_fn_c_try_compile LINENO
2013 # --------------------------
2014 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2015 ac_fn_c_try_compile ()
2016 {
2017   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018   rm -f conftest.$ac_objext
2019   if { { ac_try="$ac_compile"
2020 case "(($ac_try" in
2021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022   *) ac_try_echo=$ac_try;;
2023 esac
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026   (eval "$ac_compile") 2>conftest.err
2027   ac_status=$?
2028   if test -s conftest.err; then
2029     grep -v '^ *+' conftest.err >conftest.er1
2030     cat conftest.er1 >&5
2031     mv -f conftest.er1 conftest.err
2032   fi
2033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034   test $ac_status = 0; } && {
2035          test -z "$ac_c_werror_flag" ||
2036          test ! -s conftest.err
2037        } && test -s conftest.$ac_objext; then :
2038   ac_retval=0
2039 else
2040   $as_echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2042
2043         ac_retval=1
2044 fi
2045   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046   as_fn_set_status $ac_retval
2047
2048 } # ac_fn_c_try_compile
2049
2050 # ac_fn_c_try_cpp LINENO
2051 # ----------------------
2052 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2053 ac_fn_c_try_cpp ()
2054 {
2055   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056   if { { ac_try="$ac_cpp conftest.$ac_ext"
2057 case "(($ac_try" in
2058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059   *) ac_try_echo=$ac_try;;
2060 esac
2061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2064   ac_status=$?
2065   if test -s conftest.err; then
2066     grep -v '^ *+' conftest.err >conftest.er1
2067     cat conftest.er1 >&5
2068     mv -f conftest.er1 conftest.err
2069   fi
2070   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071   test $ac_status = 0; } > conftest.i && {
2072          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2073          test ! -s conftest.err
2074        }; then :
2075   ac_retval=0
2076 else
2077   $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2079
2080     ac_retval=1
2081 fi
2082   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083   as_fn_set_status $ac_retval
2084
2085 } # ac_fn_c_try_cpp
2086
2087 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2088 # -------------------------------------------------------
2089 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2090 # the include files in INCLUDES and setting the cache variable VAR
2091 # accordingly.
2092 ac_fn_c_check_header_mongrel ()
2093 {
2094   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095   if eval \${$3+:} false; then :
2096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 $as_echo_n "checking for $2... " >&6; }
2098 if eval \${$3+:} false; then :
2099   $as_echo_n "(cached) " >&6
2100 fi
2101 eval ac_res=\$$3
2102                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 else
2105   # Is the header compilable?
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2107 $as_echo_n "checking $2 usability... " >&6; }
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h.  */
2110 $4
2111 #include <$2>
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114   ac_header_compiler=yes
2115 else
2116   ac_header_compiler=no
2117 fi
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2120 $as_echo "$ac_header_compiler" >&6; }
2121
2122 # Is the header present?
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2124 $as_echo_n "checking $2 presence... " >&6; }
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h.  */
2127 #include <$2>
2128 _ACEOF
2129 if ac_fn_c_try_cpp "$LINENO"; then :
2130   ac_header_preproc=yes
2131 else
2132   ac_header_preproc=no
2133 fi
2134 rm -f conftest.err conftest.i conftest.$ac_ext
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2136 $as_echo "$ac_header_preproc" >&6; }
2137
2138 # So?  What about this header?
2139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2140   yes:no: )
2141     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2142 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2143     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2144 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2145     ;;
2146   no:yes:* )
2147     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2148 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2149     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2150 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2151     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2152 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2153     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2154 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2155     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2156 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2157 ( $as_echo "## ----------------------------------------- ##
2158 ## Report this to http://www.imagemagick.org ##
2159 ## ----------------------------------------- ##"
2160      ) | sed "s/^/$as_me: WARNING:     /" >&2
2161     ;;
2162 esac
2163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2164 $as_echo_n "checking for $2... " >&6; }
2165 if eval \${$3+:} false; then :
2166   $as_echo_n "(cached) " >&6
2167 else
2168   eval "$3=\$ac_header_compiler"
2169 fi
2170 eval ac_res=\$$3
2171                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172 $as_echo "$ac_res" >&6; }
2173 fi
2174   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175
2176 } # ac_fn_c_check_header_mongrel
2177
2178 # ac_fn_c_try_run LINENO
2179 # ----------------------
2180 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2181 # that executables *can* be run.
2182 ac_fn_c_try_run ()
2183 {
2184   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185   if { { ac_try="$ac_link"
2186 case "(($ac_try" in
2187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188   *) ac_try_echo=$ac_try;;
2189 esac
2190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2191 $as_echo "$ac_try_echo"; } >&5
2192   (eval "$ac_link") 2>&5
2193   ac_status=$?
2194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2196   { { case "(($ac_try" in
2197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198   *) ac_try_echo=$ac_try;;
2199 esac
2200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2201 $as_echo "$ac_try_echo"; } >&5
2202   (eval "$ac_try") 2>&5
2203   ac_status=$?
2204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205   test $ac_status = 0; }; }; then :
2206   ac_retval=0
2207 else
2208   $as_echo "$as_me: program exited with status $ac_status" >&5
2209        $as_echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2211
2212        ac_retval=$ac_status
2213 fi
2214   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2215   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216   as_fn_set_status $ac_retval
2217
2218 } # ac_fn_c_try_run
2219
2220 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2221 # -------------------------------------------------------
2222 # Tests whether HEADER exists and can be compiled using the include files in
2223 # INCLUDES, setting the cache variable VAR accordingly.
2224 ac_fn_c_check_header_compile ()
2225 {
2226   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2228 $as_echo_n "checking for $2... " >&6; }
2229 if eval \${$3+:} false; then :
2230   $as_echo_n "(cached) " >&6
2231 else
2232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h.  */
2234 $4
2235 #include <$2>
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238   eval "$3=yes"
2239 else
2240   eval "$3=no"
2241 fi
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 fi
2244 eval ac_res=\$$3
2245                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246 $as_echo "$ac_res" >&6; }
2247   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248
2249 } # ac_fn_c_check_header_compile
2250
2251 # ac_fn_cxx_try_compile LINENO
2252 # ----------------------------
2253 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2254 ac_fn_cxx_try_compile ()
2255 {
2256   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257   rm -f conftest.$ac_objext
2258   if { { ac_try="$ac_compile"
2259 case "(($ac_try" in
2260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261   *) ac_try_echo=$ac_try;;
2262 esac
2263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2264 $as_echo "$ac_try_echo"; } >&5
2265   (eval "$ac_compile") 2>conftest.err
2266   ac_status=$?
2267   if test -s conftest.err; then
2268     grep -v '^ *+' conftest.err >conftest.er1
2269     cat conftest.er1 >&5
2270     mv -f conftest.er1 conftest.err
2271   fi
2272   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2273   test $ac_status = 0; } && {
2274          test -z "$ac_cxx_werror_flag" ||
2275          test ! -s conftest.err
2276        } && test -s conftest.$ac_objext; then :
2277   ac_retval=0
2278 else
2279   $as_echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282         ac_retval=1
2283 fi
2284   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2285   as_fn_set_status $ac_retval
2286
2287 } # ac_fn_cxx_try_compile
2288
2289 # ac_fn_c_try_link LINENO
2290 # -----------------------
2291 # Try to link conftest.$ac_ext, and return whether this succeeded.
2292 ac_fn_c_try_link ()
2293 {
2294   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295   rm -f conftest.$ac_objext conftest$ac_exeext
2296   if { { ac_try="$ac_link"
2297 case "(($ac_try" in
2298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299   *) ac_try_echo=$ac_try;;
2300 esac
2301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2302 $as_echo "$ac_try_echo"; } >&5
2303   (eval "$ac_link") 2>conftest.err
2304   ac_status=$?
2305   if test -s conftest.err; then
2306     grep -v '^ *+' conftest.err >conftest.er1
2307     cat conftest.er1 >&5
2308     mv -f conftest.er1 conftest.err
2309   fi
2310   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2311   test $ac_status = 0; } && {
2312          test -z "$ac_c_werror_flag" ||
2313          test ! -s conftest.err
2314        } && test -s conftest$ac_exeext && {
2315          test "$cross_compiling" = yes ||
2316          $as_test_x conftest$ac_exeext
2317        }; then :
2318   ac_retval=0
2319 else
2320   $as_echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2322
2323         ac_retval=1
2324 fi
2325   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2326   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2327   # interfere with the next link command; also delete a directory that is
2328   # left behind by Apple's compiler.  We do this before executing the actions.
2329   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2330   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2331   as_fn_set_status $ac_retval
2332
2333 } # ac_fn_c_try_link
2334
2335 # ac_fn_c_check_func LINENO FUNC VAR
2336 # ----------------------------------
2337 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2338 ac_fn_c_check_func ()
2339 {
2340   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if eval \${$3+:} false; then :
2344   $as_echo_n "(cached) " >&6
2345 else
2346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h.  */
2348 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2350 #define $2 innocuous_$2
2351
2352 /* System header to define __stub macros and hopefully few prototypes,
2353     which can conflict with char $2 (); below.
2354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2355     <limits.h> exists even on freestanding compilers.  */
2356
2357 #ifdef __STDC__
2358 # include <limits.h>
2359 #else
2360 # include <assert.h>
2361 #endif
2362
2363 #undef $2
2364
2365 /* Override any GCC internal prototype to avoid an error.
2366    Use char because int might match the return type of a GCC
2367    builtin and then its argument prototype would still apply.  */
2368 #ifdef __cplusplus
2369 extern "C"
2370 #endif
2371 char $2 ();
2372 /* The GNU C library defines this for functions which it implements
2373     to always fail with ENOSYS.  Some functions are actually named
2374     something starting with __ and the normal name is an alias.  */
2375 #if defined __stub_$2 || defined __stub___$2
2376 choke me
2377 #endif
2378
2379 int
2380 main ()
2381 {
2382 return $2 ();
2383   ;
2384   return 0;
2385 }
2386 _ACEOF
2387 if ac_fn_c_try_link "$LINENO"; then :
2388   eval "$3=yes"
2389 else
2390   eval "$3=no"
2391 fi
2392 rm -f core conftest.err conftest.$ac_objext \
2393     conftest$ac_exeext conftest.$ac_ext
2394 fi
2395 eval ac_res=\$$3
2396                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2397 $as_echo "$ac_res" >&6; }
2398   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2399
2400 } # ac_fn_c_check_func
2401
2402 # ac_fn_cxx_try_cpp LINENO
2403 # ------------------------
2404 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2405 ac_fn_cxx_try_cpp ()
2406 {
2407   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408   if { { ac_try="$ac_cpp conftest.$ac_ext"
2409 case "(($ac_try" in
2410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411   *) ac_try_echo=$ac_try;;
2412 esac
2413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2414 $as_echo "$ac_try_echo"; } >&5
2415   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2416   ac_status=$?
2417   if test -s conftest.err; then
2418     grep -v '^ *+' conftest.err >conftest.er1
2419     cat conftest.er1 >&5
2420     mv -f conftest.er1 conftest.err
2421   fi
2422   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2423   test $ac_status = 0; } > conftest.i && {
2424          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2425          test ! -s conftest.err
2426        }; then :
2427   ac_retval=0
2428 else
2429   $as_echo "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2431
2432     ac_retval=1
2433 fi
2434   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2435   as_fn_set_status $ac_retval
2436
2437 } # ac_fn_cxx_try_cpp
2438
2439 # ac_fn_cxx_try_link LINENO
2440 # -------------------------
2441 # Try to link conftest.$ac_ext, and return whether this succeeded.
2442 ac_fn_cxx_try_link ()
2443 {
2444   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2445   rm -f conftest.$ac_objext conftest$ac_exeext
2446   if { { ac_try="$ac_link"
2447 case "(($ac_try" in
2448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449   *) ac_try_echo=$ac_try;;
2450 esac
2451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2452 $as_echo "$ac_try_echo"; } >&5
2453   (eval "$ac_link") 2>conftest.err
2454   ac_status=$?
2455   if test -s conftest.err; then
2456     grep -v '^ *+' conftest.err >conftest.er1
2457     cat conftest.er1 >&5
2458     mv -f conftest.er1 conftest.err
2459   fi
2460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2461   test $ac_status = 0; } && {
2462          test -z "$ac_cxx_werror_flag" ||
2463          test ! -s conftest.err
2464        } && test -s conftest$ac_exeext && {
2465          test "$cross_compiling" = yes ||
2466          $as_test_x conftest$ac_exeext
2467        }; then :
2468   ac_retval=0
2469 else
2470   $as_echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2472
2473         ac_retval=1
2474 fi
2475   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2476   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2477   # interfere with the next link command; also delete a directory that is
2478   # left behind by Apple's compiler.  We do this before executing the actions.
2479   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2480   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2481   as_fn_set_status $ac_retval
2482
2483 } # ac_fn_cxx_try_link
2484
2485 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2486 # ---------------------------------------------
2487 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2488 # accordingly.
2489 ac_fn_c_check_decl ()
2490 {
2491   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2492   as_decl_name=`echo $2|sed 's/ *(.*//'`
2493   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2495 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2496 if eval \${$3+:} false; then :
2497   $as_echo_n "(cached) " >&6
2498 else
2499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500 /* end confdefs.h.  */
2501 $4
2502 int
2503 main ()
2504 {
2505 #ifndef $as_decl_name
2506 #ifdef __cplusplus
2507   (void) $as_decl_use;
2508 #else
2509   (void) $as_decl_name;
2510 #endif
2511 #endif
2512
2513   ;
2514   return 0;
2515 }
2516 _ACEOF
2517 if ac_fn_c_try_compile "$LINENO"; then :
2518   eval "$3=yes"
2519 else
2520   eval "$3=no"
2521 fi
2522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2523 fi
2524 eval ac_res=\$$3
2525                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2526 $as_echo "$ac_res" >&6; }
2527   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2528
2529 } # ac_fn_c_check_decl
2530
2531 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2532 # -------------------------------------------
2533 # Tests whether TYPE exists after having included INCLUDES, setting cache
2534 # variable VAR accordingly.
2535 ac_fn_c_check_type ()
2536 {
2537   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2539 $as_echo_n "checking for $2... " >&6; }
2540 if eval \${$3+:} false; then :
2541   $as_echo_n "(cached) " >&6
2542 else
2543   eval "$3=no"
2544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h.  */
2546 $4
2547 int
2548 main ()
2549 {
2550 if (sizeof ($2))
2551          return 0;
2552   ;
2553   return 0;
2554 }
2555 _ACEOF
2556 if ac_fn_c_try_compile "$LINENO"; then :
2557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2558 /* end confdefs.h.  */
2559 $4
2560 int
2561 main ()
2562 {
2563 if (sizeof (($2)))
2564             return 0;
2565   ;
2566   return 0;
2567 }
2568 _ACEOF
2569 if ac_fn_c_try_compile "$LINENO"; then :
2570
2571 else
2572   eval "$3=yes"
2573 fi
2574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2575 fi
2576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2577 fi
2578 eval ac_res=\$$3
2579                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2580 $as_echo "$ac_res" >&6; }
2581   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2582
2583 } # ac_fn_c_check_type
2584
2585 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2586 # ----------------------------------------------------
2587 # Tries to find if the field MEMBER exists in type AGGR, after including
2588 # INCLUDES, setting cache variable VAR accordingly.
2589 ac_fn_c_check_member ()
2590 {
2591   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2593 $as_echo_n "checking for $2.$3... " >&6; }
2594 if eval \${$4+:} false; then :
2595   $as_echo_n "(cached) " >&6
2596 else
2597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h.  */
2599 $5
2600 int
2601 main ()
2602 {
2603 static $2 ac_aggr;
2604 if (ac_aggr.$3)
2605 return 0;
2606   ;
2607   return 0;
2608 }
2609 _ACEOF
2610 if ac_fn_c_try_compile "$LINENO"; then :
2611   eval "$4=yes"
2612 else
2613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614 /* end confdefs.h.  */
2615 $5
2616 int
2617 main ()
2618 {
2619 static $2 ac_aggr;
2620 if (sizeof ac_aggr.$3)
2621 return 0;
2622   ;
2623   return 0;
2624 }
2625 _ACEOF
2626 if ac_fn_c_try_compile "$LINENO"; then :
2627   eval "$4=yes"
2628 else
2629   eval "$4=no"
2630 fi
2631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2632 fi
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 fi
2635 eval ac_res=\$$4
2636                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2637 $as_echo "$ac_res" >&6; }
2638   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2639
2640 } # ac_fn_c_check_member
2641
2642 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2643 # --------------------------------------------
2644 # Tries to find the compile-time value of EXPR in a program that includes
2645 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2646 # computed
2647 ac_fn_c_compute_int ()
2648 {
2649   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2650   if test "$cross_compiling" = yes; then
2651     # Depending upon the size, compute the lo and hi bounds.
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653 /* end confdefs.h.  */
2654 $4
2655 int
2656 main ()
2657 {
2658 static int test_array [1 - 2 * !(($2) >= 0)];
2659 test_array [0] = 0
2660
2661   ;
2662   return 0;
2663 }
2664 _ACEOF
2665 if ac_fn_c_try_compile "$LINENO"; then :
2666   ac_lo=0 ac_mid=0
2667   while :; do
2668     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669 /* end confdefs.h.  */
2670 $4
2671 int
2672 main ()
2673 {
2674 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2675 test_array [0] = 0
2676
2677   ;
2678   return 0;
2679 }
2680 _ACEOF
2681 if ac_fn_c_try_compile "$LINENO"; then :
2682   ac_hi=$ac_mid; break
2683 else
2684   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2685                         if test $ac_lo -le $ac_mid; then
2686                           ac_lo= ac_hi=
2687                           break
2688                         fi
2689                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2690 fi
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692   done
2693 else
2694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2695 /* end confdefs.h.  */
2696 $4
2697 int
2698 main ()
2699 {
2700 static int test_array [1 - 2 * !(($2) < 0)];
2701 test_array [0] = 0
2702
2703   ;
2704   return 0;
2705 }
2706 _ACEOF
2707 if ac_fn_c_try_compile "$LINENO"; then :
2708   ac_hi=-1 ac_mid=-1
2709   while :; do
2710     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2711 /* end confdefs.h.  */
2712 $4
2713 int
2714 main ()
2715 {
2716 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2717 test_array [0] = 0
2718
2719   ;
2720   return 0;
2721 }
2722 _ACEOF
2723 if ac_fn_c_try_compile "$LINENO"; then :
2724   ac_lo=$ac_mid; break
2725 else
2726   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2727                         if test $ac_mid -le $ac_hi; then
2728                           ac_lo= ac_hi=
2729                           break
2730                         fi
2731                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2732 fi
2733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734   done
2735 else
2736   ac_lo= ac_hi=
2737 fi
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 fi
2740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 # Binary search between lo and hi bounds.
2742 while test "x$ac_lo" != "x$ac_hi"; do
2743   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h.  */
2746 $4
2747 int
2748 main ()
2749 {
2750 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2751 test_array [0] = 0
2752
2753   ;
2754   return 0;
2755 }
2756 _ACEOF
2757 if ac_fn_c_try_compile "$LINENO"; then :
2758   ac_hi=$ac_mid
2759 else
2760   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2761 fi
2762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2763 done
2764 case $ac_lo in #((
2765 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2766 '') ac_retval=1 ;;
2767 esac
2768   else
2769     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2770 /* end confdefs.h.  */
2771 $4
2772 static long int longval () { return $2; }
2773 static unsigned long int ulongval () { return $2; }
2774 #include <stdio.h>
2775 #include <stdlib.h>
2776 int
2777 main ()
2778 {
2779
2780   FILE *f = fopen ("conftest.val", "w");
2781   if (! f)
2782     return 1;
2783   if (($2) < 0)
2784     {
2785       long int i = longval ();
2786       if (i != ($2))
2787         return 1;
2788       fprintf (f, "%ld", i);
2789     }
2790   else
2791     {
2792       unsigned long int i = ulongval ();
2793       if (i != ($2))
2794         return 1;
2795       fprintf (f, "%lu", i);
2796     }
2797   /* Do not output a trailing newline, as this causes \r\n confusion
2798      on some platforms.  */
2799   return ferror (f) || fclose (f) != 0;
2800
2801   ;
2802   return 0;
2803 }
2804 _ACEOF
2805 if ac_fn_c_try_run "$LINENO"; then :
2806   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2807 else
2808   ac_retval=1
2809 fi
2810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2811   conftest.$ac_objext conftest.beam conftest.$ac_ext
2812 rm -f conftest.val
2813
2814   fi
2815   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2816   as_fn_set_status $ac_retval
2817
2818 } # ac_fn_c_compute_int
2819
2820 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2821 # ---------------------------------------------------------
2822 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2823 # the include files in INCLUDES and setting the cache variable VAR
2824 # accordingly.
2825 ac_fn_cxx_check_header_mongrel ()
2826 {
2827   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2828   if eval \${$3+:} false; then :
2829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2830 $as_echo_n "checking for $2... " >&6; }
2831 if eval \${$3+:} false; then :
2832   $as_echo_n "(cached) " >&6
2833 fi
2834 eval ac_res=\$$3
2835                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2836 $as_echo "$ac_res" >&6; }
2837 else
2838   # Is the header compilable?
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2840 $as_echo_n "checking $2 usability... " >&6; }
2841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2842 /* end confdefs.h.  */
2843 $4
2844 #include <$2>
2845 _ACEOF
2846 if ac_fn_cxx_try_compile "$LINENO"; then :
2847   ac_header_compiler=yes
2848 else
2849   ac_header_compiler=no
2850 fi
2851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2853 $as_echo "$ac_header_compiler" >&6; }
2854
2855 # Is the header present?
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2857 $as_echo_n "checking $2 presence... " >&6; }
2858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2859 /* end confdefs.h.  */
2860 #include <$2>
2861 _ACEOF
2862 if ac_fn_cxx_try_cpp "$LINENO"; then :
2863   ac_header_preproc=yes
2864 else
2865   ac_header_preproc=no
2866 fi
2867 rm -f conftest.err conftest.i conftest.$ac_ext
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2869 $as_echo "$ac_header_preproc" >&6; }
2870
2871 # So?  What about this header?
2872 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2873   yes:no: )
2874     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2875 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2876     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2877 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2878     ;;
2879   no:yes:* )
2880     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2881 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2882     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2883 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2884     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2885 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2886     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2887 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2888     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2889 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2890 ( $as_echo "## ----------------------------------------- ##
2891 ## Report this to http://www.imagemagick.org ##
2892 ## ----------------------------------------- ##"
2893      ) | sed "s/^/$as_me: WARNING:     /" >&2
2894     ;;
2895 esac
2896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2897 $as_echo_n "checking for $2... " >&6; }
2898 if eval \${$3+:} false; then :
2899   $as_echo_n "(cached) " >&6
2900 else
2901   eval "$3=\$ac_header_compiler"
2902 fi
2903 eval ac_res=\$$3
2904                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2905 $as_echo "$ac_res" >&6; }
2906 fi
2907   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2908
2909 } # ac_fn_cxx_check_header_mongrel
2910 cat >config.log <<_ACEOF
2911 This file contains any messages produced by compilers while
2912 running configure, to aid debugging if configure makes a mistake.
2913
2914 It was created by ImageMagick $as_me 6.6.9, which was
2915 generated by GNU Autoconf 2.68.  Invocation command line was
2916
2917   $ $0 $@
2918
2919 _ACEOF
2920 exec 5>>config.log
2921 {
2922 cat <<_ASUNAME
2923 ## --------- ##
2924 ## Platform. ##
2925 ## --------- ##
2926
2927 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2928 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2929 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2930 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2931 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2932
2933 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2934 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2935
2936 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2937 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2938 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2939 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2940 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2941 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2942 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2943
2944 _ASUNAME
2945
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2948 do
2949   IFS=$as_save_IFS
2950   test -z "$as_dir" && as_dir=.
2951     $as_echo "PATH: $as_dir"
2952   done
2953 IFS=$as_save_IFS
2954
2955 } >&5
2956
2957 cat >&5 <<_ACEOF
2958
2959
2960 ## ----------- ##
2961 ## Core tests. ##
2962 ## ----------- ##
2963
2964 _ACEOF
2965
2966
2967 # Keep a trace of the command line.
2968 # Strip out --no-create and --no-recursion so they do not pile up.
2969 # Strip out --silent because we don't want to record it for future runs.
2970 # Also quote any args containing shell meta-characters.
2971 # Make two passes to allow for proper duplicate-argument suppression.
2972 ac_configure_args=
2973 ac_configure_args0=
2974 ac_configure_args1=
2975 ac_must_keep_next=false
2976 for ac_pass in 1 2
2977 do
2978   for ac_arg
2979   do
2980     case $ac_arg in
2981     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2982     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2983     | -silent | --silent | --silen | --sile | --sil)
2984       continue ;;
2985     *\'*)
2986       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2987     esac
2988     case $ac_pass in
2989     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2990     2)
2991       as_fn_append ac_configure_args1 " '$ac_arg'"
2992       if test $ac_must_keep_next = true; then
2993         ac_must_keep_next=false # Got value, back to normal.
2994       else
2995         case $ac_arg in
2996           *=* | --config-cache | -C | -disable-* | --disable-* \
2997           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2998           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2999           | -with-* | --with-* | -without-* | --without-* | --x)
3000             case "$ac_configure_args0 " in
3001               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3002             esac
3003             ;;
3004           -* ) ac_must_keep_next=true ;;
3005         esac
3006       fi
3007       as_fn_append ac_configure_args " '$ac_arg'"
3008       ;;
3009     esac
3010   done
3011 done
3012 { ac_configure_args0=; unset ac_configure_args0;}
3013 { ac_configure_args1=; unset ac_configure_args1;}
3014
3015 # When interrupted or exit'd, cleanup temporary files, and complete
3016 # config.log.  We remove comments because anyway the quotes in there
3017 # would cause problems or look ugly.
3018 # WARNING: Use '\'' to represent an apostrophe within the trap.
3019 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3020 trap 'exit_status=$?
3021   # Save into config.log some information that might help in debugging.
3022   {
3023     echo
3024
3025     $as_echo "## ---------------- ##
3026 ## Cache variables. ##
3027 ## ---------------- ##"
3028     echo
3029     # The following way of writing the cache mishandles newlines in values,
3030 (
3031   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3032     eval ac_val=\$$ac_var
3033     case $ac_val in #(
3034     *${as_nl}*)
3035       case $ac_var in #(
3036       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3037 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3038       esac
3039       case $ac_var in #(
3040       _ | IFS | as_nl) ;; #(
3041       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3042       *) { eval $ac_var=; unset $ac_var;} ;;
3043       esac ;;
3044     esac
3045   done
3046   (set) 2>&1 |
3047     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3048     *${as_nl}ac_space=\ *)
3049       sed -n \
3050         "s/'\''/'\''\\\\'\'''\''/g;
3051           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3052       ;; #(
3053     *)
3054       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3055       ;;
3056     esac |
3057     sort
3058 )
3059     echo
3060
3061     $as_echo "## ----------------- ##
3062 ## Output variables. ##
3063 ## ----------------- ##"
3064     echo
3065     for ac_var in $ac_subst_vars
3066     do
3067       eval ac_val=\$$ac_var
3068       case $ac_val in
3069       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3070       esac
3071       $as_echo "$ac_var='\''$ac_val'\''"
3072     done | sort
3073     echo
3074
3075     if test -n "$ac_subst_files"; then
3076       $as_echo "## ------------------- ##
3077 ## File substitutions. ##
3078 ## ------------------- ##"
3079       echo
3080       for ac_var in $ac_subst_files
3081       do
3082         eval ac_val=\$$ac_var
3083         case $ac_val in
3084         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3085         esac
3086         $as_echo "$ac_var='\''$ac_val'\''"
3087       done | sort
3088       echo
3089     fi
3090
3091     if test -s confdefs.h; then
3092       $as_echo "## ----------- ##
3093 ## confdefs.h. ##
3094 ## ----------- ##"
3095       echo
3096       cat confdefs.h
3097       echo
3098     fi
3099     test "$ac_signal" != 0 &&
3100       $as_echo "$as_me: caught signal $ac_signal"
3101     $as_echo "$as_me: exit $exit_status"
3102   } >&5
3103   rm -f core *.core core.conftest.* &&
3104     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3105     exit $exit_status
3106 ' 0
3107 for ac_signal in 1 2 13 15; do
3108   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3109 done
3110 ac_signal=0
3111
3112 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3113 rm -f -r conftest* confdefs.h
3114
3115 $as_echo "/* confdefs.h */" > confdefs.h
3116
3117 # Predefined preprocessor variables.
3118
3119 cat >>confdefs.h <<_ACEOF
3120 #define PACKAGE_NAME "$PACKAGE_NAME"
3121 _ACEOF
3122
3123 cat >>confdefs.h <<_ACEOF
3124 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3125 _ACEOF
3126
3127 cat >>confdefs.h <<_ACEOF
3128 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3129 _ACEOF
3130
3131 cat >>confdefs.h <<_ACEOF
3132 #define PACKAGE_STRING "$PACKAGE_STRING"
3133 _ACEOF
3134
3135 cat >>confdefs.h <<_ACEOF
3136 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3137 _ACEOF
3138
3139 cat >>confdefs.h <<_ACEOF
3140 #define PACKAGE_URL "$PACKAGE_URL"
3141 _ACEOF
3142
3143
3144 # Let the site file select an alternate cache file if it wants to.
3145 # Prefer an explicitly selected file to automatically selected ones.
3146 ac_site_file1=NONE
3147 ac_site_file2=NONE
3148 if test -n "$CONFIG_SITE"; then
3149   # We do not want a PATH search for config.site.
3150   case $CONFIG_SITE in #((
3151     -*)  ac_site_file1=./$CONFIG_SITE;;
3152     */*) ac_site_file1=$CONFIG_SITE;;
3153     *)   ac_site_file1=./$CONFIG_SITE;;
3154   esac
3155 elif test "x$prefix" != xNONE; then
3156   ac_site_file1=$prefix/share/config.site
3157   ac_site_file2=$prefix/etc/config.site
3158 else
3159   ac_site_file1=$ac_default_prefix/share/config.site
3160   ac_site_file2=$ac_default_prefix/etc/config.site
3161 fi
3162 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3163 do
3164   test "x$ac_site_file" = xNONE && continue
3165   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3166     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3167 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3168     sed 's/^/| /' "$ac_site_file" >&5
3169     . "$ac_site_file" \
3170       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3172 as_fn_error $? "failed to load site script $ac_site_file
3173 See \`config.log' for more details" "$LINENO" 5; }
3174   fi
3175 done
3176
3177 if test -r "$cache_file"; then
3178   # Some versions of bash will fail to source /dev/null (special files
3179   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3180   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3181     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3182 $as_echo "$as_me: loading cache $cache_file" >&6;}
3183     case $cache_file in
3184       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3185       *)                      . "./$cache_file";;
3186     esac
3187   fi
3188 else
3189   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3190 $as_echo "$as_me: creating cache $cache_file" >&6;}
3191   >$cache_file
3192 fi
3193
3194 as_fn_append ac_header_list " stdlib.h"
3195 as_fn_append ac_header_list " unistd.h"
3196 as_fn_append ac_header_list " sys/param.h"
3197 # Check that the precious variables saved in the cache have kept the same
3198 # value.
3199 ac_cache_corrupted=false
3200 for ac_var in $ac_precious_vars; do
3201   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3202   eval ac_new_set=\$ac_env_${ac_var}_set
3203   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3204   eval ac_new_val=\$ac_env_${ac_var}_value
3205   case $ac_old_set,$ac_new_set in
3206     set,)
3207       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3208 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3209       ac_cache_corrupted=: ;;
3210     ,set)
3211       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3212 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3213       ac_cache_corrupted=: ;;
3214     ,);;
3215     *)
3216       if test "x$ac_old_val" != "x$ac_new_val"; then
3217         # differences in whitespace do not lead to failure.
3218         ac_old_val_w=`echo x $ac_old_val`
3219         ac_new_val_w=`echo x $ac_new_val`
3220         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3221           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3222 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3223           ac_cache_corrupted=:
3224         else
3225           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3226 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3227           eval $ac_var=\$ac_old_val
3228         fi
3229         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3230 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3231         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3232 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3233       fi;;
3234   esac
3235   # Pass precious variables to config.status.
3236   if test "$ac_new_set" = set; then
3237     case $ac_new_val in
3238     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3239     *) ac_arg=$ac_var=$ac_new_val ;;
3240     esac
3241     case " $ac_configure_args " in
3242       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3243       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3244     esac
3245   fi
3246 done
3247 if $ac_cache_corrupted; then
3248   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3251 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3252   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3253 fi
3254 ## -------------------- ##
3255 ## Main body of script. ##
3256 ## -------------------- ##
3257
3258 ac_ext=c
3259 ac_cpp='$CPP $CPPFLAGS'
3260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263
3264
3265
3266 ac_aux_dir=
3267 for ac_dir in config "$srcdir"/config; do
3268   if test -f "$ac_dir/install-sh"; then
3269     ac_aux_dir=$ac_dir
3270     ac_install_sh="$ac_aux_dir/install-sh -c"
3271     break
3272   elif test -f "$ac_dir/install.sh"; then
3273     ac_aux_dir=$ac_dir
3274     ac_install_sh="$ac_aux_dir/install.sh -c"
3275     break
3276   elif test -f "$ac_dir/shtool"; then
3277     ac_aux_dir=$ac_dir
3278     ac_install_sh="$ac_aux_dir/shtool install -c"
3279     break
3280   fi
3281 done
3282 if test -z "$ac_aux_dir"; then
3283   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3284 fi
3285
3286 # These three variables are undocumented and unsupported,
3287 # and are intended to be withdrawn in a future Autoconf release.
3288 # They can cause serious problems if a builder's source tree is in a directory
3289 # whose full name contains unusual characters.
3290 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3291 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3292 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3293
3294
3295
3296
3297 ac_config_headers="$ac_config_headers config/config.h"
3298
3299
3300 ac_config_commands="$ac_config_commands magick/magick-config.h"
3301
3302 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 magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/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 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
3303
3304
3305 #
3306 # Save initial user-tunable values
3307 #
3308 USER_LIBS=$LIBS
3309 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3310   eval isset=\${$var+set}
3311     if test "$isset" = 'set'; then
3312         eval val=$`echo $var`
3313         DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3314     fi
3315 done
3316
3317
3318 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3319
3320
3321 # Source file containing package/library versioning information.
3322 . ${srcdir}/version.sh
3323
3324 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3325 # Make sure we can run config.sub.
3326 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3327   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3328
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3330 $as_echo_n "checking build system type... " >&6; }
3331 if ${ac_cv_build+:} false; then :
3332   $as_echo_n "(cached) " >&6
3333 else
3334   ac_build_alias=$build_alias
3335 test "x$ac_build_alias" = x &&
3336   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3337 test "x$ac_build_alias" = x &&
3338   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3339 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3340   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3341
3342 fi
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3344 $as_echo "$ac_cv_build" >&6; }
3345 case $ac_cv_build in
3346 *-*-*) ;;
3347 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3348 esac
3349 build=$ac_cv_build
3350 ac_save_IFS=$IFS; IFS='-'
3351 set x $ac_cv_build
3352 shift
3353 build_cpu=$1
3354 build_vendor=$2
3355 shift; shift
3356 # Remember, the first character of IFS is used to create $*,
3357 # except with old shells:
3358 build_os=$*
3359 IFS=$ac_save_IFS
3360 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3361
3362
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3364 $as_echo_n "checking host system type... " >&6; }
3365 if ${ac_cv_host+:} false; then :
3366   $as_echo_n "(cached) " >&6
3367 else
3368   if test "x$host_alias" = x; then
3369   ac_cv_host=$ac_cv_build
3370 else
3371   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3372     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3373 fi
3374
3375 fi
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3377 $as_echo "$ac_cv_host" >&6; }
3378 case $ac_cv_host in
3379 *-*-*) ;;
3380 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3381 esac
3382 host=$ac_cv_host
3383 ac_save_IFS=$IFS; IFS='-'
3384 set x $ac_cv_host
3385 shift
3386 host_cpu=$1
3387 host_vendor=$2
3388 shift; shift
3389 # Remember, the first character of IFS is used to create $*,
3390 # except with old shells:
3391 host_os=$*
3392 IFS=$ac_save_IFS
3393 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3394
3395
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3397 $as_echo_n "checking target system type... " >&6; }
3398 if ${ac_cv_target+:} false; then :
3399   $as_echo_n "(cached) " >&6
3400 else
3401   if test "x$target_alias" = x; then
3402   ac_cv_target=$ac_cv_host
3403 else
3404   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3405     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3406 fi
3407
3408 fi
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3410 $as_echo "$ac_cv_target" >&6; }
3411 case $ac_cv_target in
3412 *-*-*) ;;
3413 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3414 esac
3415 target=$ac_cv_target
3416 ac_save_IFS=$IFS; IFS='-'
3417 set x $ac_cv_target
3418 shift
3419 target_cpu=$1
3420 target_vendor=$2
3421 shift; shift
3422 # Remember, the first character of IFS is used to create $*,
3423 # except with old shells:
3424 target_os=$*
3425 IFS=$ac_save_IFS
3426 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3427
3428
3429 # The aliases save the names the user supplied, while $host etc.
3430 # will get canonicalized.
3431 test -n "$target_alias" &&
3432   test "$program_prefix$program_suffix$program_transform_name" = \
3433     NONENONEs,x,x, &&
3434   program_prefix=${target_alias}-
3435
3436
3437
3438
3439
3440 MAGICK_TARGET_CPU=$target_cpu
3441
3442
3443 MAGICK_TARGET_VENDOR=$target_vendor
3444
3445
3446 MAGICK_TARGET_OS=$target_os
3447
3448
3449 # Substitute library versioning
3450 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3451
3452 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3453
3454 MAGICK_SVN_REVISION=4111
3455
3456
3457
3458
3459 # Ensure that make can run correctly
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3461 $as_echo_n "checking whether build environment is sane... " >&6; }
3462 # Just in case
3463 sleep 1
3464 echo timestamp > conftest.file
3465 # Reject unsafe characters in $srcdir or the absolute working directory
3466 # name.  Accept space and tab only in the latter.
3467 am_lf='
3468 '
3469 case `pwd` in
3470   *[\\\"\#\$\&\'\`$am_lf]*)
3471     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3472 esac
3473 case $srcdir in
3474   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3475     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3476 esac
3477
3478 # Do `set' in a subshell so we don't clobber the current shell's
3479 # arguments.  Must try -L first in case configure is actually a
3480 # symlink; some systems play weird games with the mod time of symlinks
3481 # (eg FreeBSD returns the mod time of the symlink's containing
3482 # directory).
3483 if (
3484    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3485    if test "$*" = "X"; then
3486       # -L didn't work.
3487       set X `ls -t "$srcdir/configure" conftest.file`
3488    fi
3489    rm -f conftest.file
3490    if test "$*" != "X $srcdir/configure conftest.file" \
3491       && test "$*" != "X conftest.file $srcdir/configure"; then
3492
3493       # If neither matched, then we have a broken ls.  This can happen
3494       # if, for instance, CONFIG_SHELL is bash and it inherits a
3495       # broken ls alias from the environment.  This has actually
3496       # happened.  Such a system could not be considered "sane".
3497       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3498 alias in your environment" "$LINENO" 5
3499    fi
3500
3501    test "$2" = conftest.file
3502    )
3503 then
3504    # Ok.
3505    :
3506 else
3507    as_fn_error $? "newly created file is older than distributed files!
3508 Check your system clock" "$LINENO" 5
3509 fi
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3511 $as_echo "yes" >&6; }
3512
3513 am__api_version='1.11'
3514
3515 # Find a good install program.  We prefer a C program (faster),
3516 # so one script is as good as another.  But avoid the broken or
3517 # incompatible versions:
3518 # SysV /etc/install, /usr/sbin/install
3519 # SunOS /usr/etc/install
3520 # IRIX /sbin/install
3521 # AIX /bin/install
3522 # AmigaOS /C/install, which installs bootblocks on floppy discs
3523 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3524 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3525 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3526 # OS/2's system install, which has a completely different semantic
3527 # ./install, which can be erroneously created by make from ./install.sh.
3528 # Reject install programs that cannot install multiple files.
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3530 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3531 if test -z "$INSTALL"; then
3532 if ${ac_cv_path_install+:} false; then :
3533   $as_echo_n "(cached) " >&6
3534 else
3535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3537 do
3538   IFS=$as_save_IFS
3539   test -z "$as_dir" && as_dir=.
3540     # Account for people who put trailing slashes in PATH elements.
3541 case $as_dir/ in #((
3542   ./ | .// | /[cC]/* | \
3543   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3544   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3545   /usr/ucb/* ) ;;
3546   *)
3547     # OSF1 and SCO ODT 3.0 have their own names for install.
3548     # Don't use installbsd from OSF since it installs stuff as root
3549     # by default.
3550     for ac_prog in ginstall scoinst install; do
3551       for ac_exec_ext in '' $ac_executable_extensions; do
3552         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3553           if test $ac_prog = install &&
3554             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3555             # AIX install.  It has an incompatible calling convention.
3556             :
3557           elif test $ac_prog = install &&
3558             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3559             # program-specific install script used by HP pwplus--don't use.
3560             :
3561           else
3562             rm -rf conftest.one conftest.two conftest.dir
3563             echo one > conftest.one
3564             echo two > conftest.two
3565             mkdir conftest.dir
3566             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3567               test -s conftest.one && test -s conftest.two &&
3568               test -s conftest.dir/conftest.one &&
3569               test -s conftest.dir/conftest.two
3570             then
3571               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3572               break 3
3573             fi
3574           fi
3575         fi
3576       done
3577     done
3578     ;;
3579 esac
3580
3581   done
3582 IFS=$as_save_IFS
3583
3584 rm -rf conftest.one conftest.two conftest.dir
3585
3586 fi
3587   if test "${ac_cv_path_install+set}" = set; then
3588     INSTALL=$ac_cv_path_install
3589   else
3590     # As a last resort, use the slow shell script.  Don't cache a
3591     # value for INSTALL within a source directory, because that will
3592     # break other packages using the cache if that directory is
3593     # removed, or if the value is a relative name.
3594     INSTALL=$ac_install_sh
3595   fi
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3598 $as_echo "$INSTALL" >&6; }
3599
3600 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3601 # It thinks the first close brace ends the variable substitution.
3602 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3603
3604 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3605
3606 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3607
3608 test "$program_prefix" != NONE &&
3609   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3610 # Use a double $ so make ignores it.
3611 test "$program_suffix" != NONE &&
3612   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3613 # Double any \ or $.
3614 # By default was `s,x,x', remove it if useless.
3615 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3616 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3617
3618 # expand $ac_aux_dir to an absolute path
3619 am_aux_dir=`cd $ac_aux_dir && pwd`
3620
3621 if test x"${MISSING+set}" != xset; then
3622   case $am_aux_dir in
3623   *\ * | *\     *)
3624     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3625   *)
3626     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3627   esac
3628 fi
3629 # Use eval to expand $SHELL
3630 if eval "$MISSING --run true"; then
3631   am_missing_run="$MISSING --run "
3632 else
3633   am_missing_run=
3634   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3635 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3636 fi
3637
3638 if test x"${install_sh}" != xset; then
3639   case $am_aux_dir in
3640   *\ * | *\     *)
3641     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3642   *)
3643     install_sh="\${SHELL} $am_aux_dir/install-sh"
3644   esac
3645 fi
3646
3647 # Installed binaries are usually stripped using `strip' when the user
3648 # run `make install-strip'.  However `strip' might not be the right
3649 # tool to use in cross-compilation environments, therefore Automake
3650 # will honor the `STRIP' environment variable to overrule this program.
3651 if test "$cross_compiling" != no; then
3652   if test -n "$ac_tool_prefix"; then
3653   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3654 set dummy ${ac_tool_prefix}strip; ac_word=$2
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3656 $as_echo_n "checking for $ac_word... " >&6; }
3657 if ${ac_cv_prog_STRIP+:} false; then :
3658   $as_echo_n "(cached) " >&6
3659 else
3660   if test -n "$STRIP"; then
3661   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3662 else
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666   IFS=$as_save_IFS
3667   test -z "$as_dir" && as_dir=.
3668     for ac_exec_ext in '' $ac_executable_extensions; do
3669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3670     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672     break 2
3673   fi
3674 done
3675   done
3676 IFS=$as_save_IFS
3677
3678 fi
3679 fi
3680 STRIP=$ac_cv_prog_STRIP
3681 if test -n "$STRIP"; then
3682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3683 $as_echo "$STRIP" >&6; }
3684 else
3685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3687 fi
3688
3689
3690 fi
3691 if test -z "$ac_cv_prog_STRIP"; then
3692   ac_ct_STRIP=$STRIP
3693   # Extract the first word of "strip", so it can be a program name with args.
3694 set dummy strip; ac_word=$2
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696 $as_echo_n "checking for $ac_word... " >&6; }
3697 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3698   $as_echo_n "(cached) " >&6
3699 else
3700   if test -n "$ac_ct_STRIP"; then
3701   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3702 else
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3705 do
3706   IFS=$as_save_IFS
3707   test -z "$as_dir" && as_dir=.
3708     for ac_exec_ext in '' $ac_executable_extensions; do
3709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3710     ac_cv_prog_ac_ct_STRIP="strip"
3711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3712     break 2
3713   fi
3714 done
3715   done
3716 IFS=$as_save_IFS
3717
3718 fi
3719 fi
3720 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3721 if test -n "$ac_ct_STRIP"; then
3722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3723 $as_echo "$ac_ct_STRIP" >&6; }
3724 else
3725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 $as_echo "no" >&6; }
3727 fi
3728
3729   if test "x$ac_ct_STRIP" = x; then
3730     STRIP=":"
3731   else
3732     case $cross_compiling:$ac_tool_warned in
3733 yes:)
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3736 ac_tool_warned=yes ;;
3737 esac
3738     STRIP=$ac_ct_STRIP
3739   fi
3740 else
3741   STRIP="$ac_cv_prog_STRIP"
3742 fi
3743
3744 fi
3745 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3746
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3748 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3749 if test -z "$MKDIR_P"; then
3750   if ${ac_cv_path_mkdir+:} false; then :
3751   $as_echo_n "(cached) " >&6
3752 else
3753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3755 do
3756   IFS=$as_save_IFS
3757   test -z "$as_dir" && as_dir=.
3758     for ac_prog in mkdir gmkdir; do
3759          for ac_exec_ext in '' $ac_executable_extensions; do
3760            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3761            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3762              'mkdir (GNU coreutils) '* | \
3763              'mkdir (coreutils) '* | \
3764              'mkdir (fileutils) '4.1*)
3765                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3766                break 3;;
3767            esac
3768          done
3769        done
3770   done
3771 IFS=$as_save_IFS
3772
3773 fi
3774
3775   test -d ./--version && rmdir ./--version
3776   if test "${ac_cv_path_mkdir+set}" = set; then
3777     MKDIR_P="$ac_cv_path_mkdir -p"
3778   else
3779     # As a last resort, use the slow shell script.  Don't cache a
3780     # value for MKDIR_P within a source directory, because that will
3781     # break other packages using the cache if that directory is
3782     # removed, or if the value is a relative name.
3783     MKDIR_P="$ac_install_sh -d"
3784   fi
3785 fi
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3787 $as_echo "$MKDIR_P" >&6; }
3788
3789 mkdir_p="$MKDIR_P"
3790 case $mkdir_p in
3791   [\\/$]* | ?:[\\/]*) ;;
3792   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3793 esac
3794
3795 for ac_prog in gawk mawk nawk awk
3796 do
3797   # Extract the first word of "$ac_prog", so it can be a program name with args.
3798 set dummy $ac_prog; ac_word=$2
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800 $as_echo_n "checking for $ac_word... " >&6; }
3801 if ${ac_cv_prog_AWK+:} false; then :
3802   $as_echo_n "(cached) " >&6
3803 else
3804   if test -n "$AWK"; then
3805   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3806 else
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3809 do
3810   IFS=$as_save_IFS
3811   test -z "$as_dir" && as_dir=.
3812     for ac_exec_ext in '' $ac_executable_extensions; do
3813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3814     ac_cv_prog_AWK="$ac_prog"
3815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3816     break 2
3817   fi
3818 done
3819   done
3820 IFS=$as_save_IFS
3821
3822 fi
3823 fi
3824 AWK=$ac_cv_prog_AWK
3825 if test -n "$AWK"; then
3826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3827 $as_echo "$AWK" >&6; }
3828 else
3829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3831 fi
3832
3833
3834   test -n "$AWK" && break
3835 done
3836
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3838 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3839 set x ${MAKE-make}
3840 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3841 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3842   $as_echo_n "(cached) " >&6
3843 else
3844   cat >conftest.make <<\_ACEOF
3845 SHELL = /bin/sh
3846 all:
3847         @echo '@@@%%%=$(MAKE)=@@@%%%'
3848 _ACEOF
3849 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3850 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3851   *@@@%%%=?*=@@@%%%*)
3852     eval ac_cv_prog_make_${ac_make}_set=yes;;
3853   *)
3854     eval ac_cv_prog_make_${ac_make}_set=no;;
3855 esac
3856 rm -f conftest.make
3857 fi
3858 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3860 $as_echo "yes" >&6; }
3861   SET_MAKE=
3862 else
3863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 $as_echo "no" >&6; }
3865   SET_MAKE="MAKE=${MAKE-make}"
3866 fi
3867
3868 rm -rf .tst 2>/dev/null
3869 mkdir .tst 2>/dev/null
3870 if test -d .tst; then
3871   am__leading_dot=.
3872 else
3873   am__leading_dot=_
3874 fi
3875 rmdir .tst 2>/dev/null
3876
3877 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3878   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3879   # is not polluted with repeated "-I."
3880   am__isrc=' -I$(srcdir)'
3881   # test to see if srcdir already configured
3882   if test -f $srcdir/config.status; then
3883     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3884   fi
3885 fi
3886
3887 # test whether we have cygpath
3888 if test -z "$CYGPATH_W"; then
3889   if (cygpath --version) >/dev/null 2>/dev/null; then
3890     CYGPATH_W='cygpath -w'
3891   else
3892     CYGPATH_W=echo
3893   fi
3894 fi
3895
3896
3897 # Define the identity of the package.
3898  PACKAGE=$PACKAGE_NAME
3899  VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3900
3901
3902 # Some tools Automake needs.
3903
3904 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3905
3906
3907 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3908
3909
3910 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3911
3912
3913 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3914
3915
3916 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3917
3918 # We need awk for the "check" target.  The system "awk" is bad on
3919 # some platforms.
3920 # Always define AMTAR for backward compatibility.
3921
3922 AMTAR=${AMTAR-"${am_missing_run}tar"}
3923
3924 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3925
3926
3927
3928
3929
3930
3931 # Enable support for silent build rules
3932 # Check whether --enable-silent-rules was given.
3933 if test "${enable_silent_rules+set}" = set; then :
3934   enableval=$enable_silent_rules;
3935 fi
3936
3937 case $enable_silent_rules in
3938 yes) AM_DEFAULT_VERBOSITY=0;;
3939 no)  AM_DEFAULT_VERBOSITY=1;;
3940 *)   AM_DEFAULT_VERBOSITY=0;;
3941 esac
3942 AM_BACKSLASH='\'
3943
3944
3945 MAGICK_LIB_VERSION="0x"
3946 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3947   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3948 fi
3949 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3950 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3951   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3952 fi
3953 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3954 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3955   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3956 fi
3957 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3958
3959
3960 # Definition used to define MagickLibVersionText in version.h
3961 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3962
3963
3964 # Definition used to define MagickLibVersionNumber in version.h
3965 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3966
3967
3968 # Regenerate config.status if ChangeLog or version.sh is updated.
3969 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3970
3971
3972 PERLMAINCC=$CC
3973
3974 MAGICK_CFLAGS=''
3975 MAGICK_CPPFLAGS=$CPPFLAGS_USER
3976 MAGICK_PCFLAGS=$CPPFLAGS_USER
3977 MAGICK_LDFLAGS=''
3978 MAGICK_LIBS=''
3979 MAGICK_FEATURES=''
3980
3981 #
3982 # Evaluate shell variable equivalents to Makefile directory variables
3983 #
3984 if test "x$prefix" = xNONE; then
3985     prefix=$ac_default_prefix
3986 fi
3987 # Let make expand exec_prefix.
3988 if test "x$exec_prefix" = xNONE; then
3989     exec_prefix='${prefix}'
3990 fi
3991
3992 #
3993 eval "eval PREFIX_DIR=${prefix}"
3994
3995 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3996
3997 eval "eval BIN_DIR=$bindir"
3998
3999 eval "eval SBIN_DIR=$sbindir"
4000
4001 eval "eval LIBEXEC_DIR=$libexecdir"
4002
4003 eval "eval DATA_DIR=$datadir"
4004
4005 eval "eval DOC_DIR=$docdir"
4006
4007 eval "eval SYSCONF_DIR=$sysconfdir"
4008
4009 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4010
4011 eval "eval LOCALSTATE_DIR=$localstatedir"
4012
4013 eval "eval LIB_DIR=$libdir"
4014
4015 eval "eval INCLUDE_DIR=$includedir"
4016
4017 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4018
4019 eval "eval INFO_DIR=$infodir"
4020
4021 eval "eval MAN_DIR=$mandir"
4022
4023
4024 # Get full paths to source and build directories
4025 srcdirfull="`cd $srcdir && pwd`"
4026 builddir="`pwd`"
4027
4028 #
4029 # Compute variables useful for running uninstalled software.
4030 #
4031 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4032 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4033 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4034 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4035 DIRSEP=':'
4036 case "${build_os}" in
4037     mingw* )
4038         MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4039         MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4040         MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4041         MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4042         DIRSEP=';'
4043     ;;
4044 esac
4045 case "${host_os}" in
4046   mingw* )
4047     DIRSEP=';'
4048     ;;
4049 esac
4050
4051
4052
4053
4054
4055
4056
4057 #
4058 # Enable OS features.
4059 #
4060 DEPDIR="${am__leading_dot}deps"
4061
4062 ac_config_commands="$ac_config_commands depfiles"
4063
4064
4065 am_make=${MAKE-make}
4066 cat > confinc << 'END'
4067 am__doit:
4068         @echo this is the am__doit target
4069 .PHONY: am__doit
4070 END
4071 # If we don't find an include directive, just comment out the code.
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4073 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4074 am__include="#"
4075 am__quote=
4076 _am_result=none
4077 # First try GNU make style include.
4078 echo "include confinc" > confmf
4079 # Ignore all kinds of additional output from `make'.
4080 case `$am_make -s -f confmf 2> /dev/null` in #(
4081 *the\ am__doit\ target*)
4082   am__include=include
4083   am__quote=
4084   _am_result=GNU
4085   ;;
4086 esac
4087 # Now try BSD make style include.
4088 if test "$am__include" = "#"; then
4089    echo '.include "confinc"' > confmf
4090    case `$am_make -s -f confmf 2> /dev/null` in #(
4091    *the\ am__doit\ target*)
4092      am__include=.include
4093      am__quote="\""
4094      _am_result=BSD
4095      ;;
4096    esac
4097 fi
4098
4099
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4101 $as_echo "$_am_result" >&6; }
4102 rm -f confinc confmf
4103
4104 # Check whether --enable-dependency-tracking was given.
4105 if test "${enable_dependency_tracking+set}" = set; then :
4106   enableval=$enable_dependency_tracking;
4107 fi
4108
4109 if test "x$enable_dependency_tracking" != xno; then
4110   am_depcomp="$ac_aux_dir/depcomp"
4111   AMDEPBACKSLASH='\'
4112 fi
4113  if test "x$enable_dependency_tracking" != xno; then
4114   AMDEP_TRUE=
4115   AMDEP_FALSE='#'
4116 else
4117   AMDEP_TRUE='#'
4118   AMDEP_FALSE=
4119 fi
4120
4121
4122 ac_ext=c
4123 ac_cpp='$CPP $CPPFLAGS'
4124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127 if test -n "$ac_tool_prefix"; then
4128   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4129 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131 $as_echo_n "checking for $ac_word... " >&6; }
4132 if ${ac_cv_prog_CC+:} false; then :
4133   $as_echo_n "(cached) " >&6
4134 else
4135   if test -n "$CC"; then
4136   ac_cv_prog_CC="$CC" # Let the user override the test.
4137 else
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4140 do
4141   IFS=$as_save_IFS
4142   test -z "$as_dir" && as_dir=.
4143     for ac_exec_ext in '' $ac_executable_extensions; do
4144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4145     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147     break 2
4148   fi
4149 done
4150   done
4151 IFS=$as_save_IFS
4152
4153 fi
4154 fi
4155 CC=$ac_cv_prog_CC
4156 if test -n "$CC"; then
4157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4158 $as_echo "$CC" >&6; }
4159 else
4160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4162 fi
4163
4164
4165 fi
4166 if test -z "$ac_cv_prog_CC"; then
4167   ac_ct_CC=$CC
4168   # Extract the first word of "gcc", so it can be a program name with args.
4169 set dummy gcc; ac_word=$2
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171 $as_echo_n "checking for $ac_word... " >&6; }
4172 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4173   $as_echo_n "(cached) " >&6
4174 else
4175   if test -n "$ac_ct_CC"; then
4176   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4177 else
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4180 do
4181   IFS=$as_save_IFS
4182   test -z "$as_dir" && as_dir=.
4183     for ac_exec_ext in '' $ac_executable_extensions; do
4184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4185     ac_cv_prog_ac_ct_CC="gcc"
4186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187     break 2
4188   fi
4189 done
4190   done
4191 IFS=$as_save_IFS
4192
4193 fi
4194 fi
4195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4196 if test -n "$ac_ct_CC"; then
4197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4198 $as_echo "$ac_ct_CC" >&6; }
4199 else
4200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 $as_echo "no" >&6; }
4202 fi
4203
4204   if test "x$ac_ct_CC" = x; then
4205     CC=""
4206   else
4207     case $cross_compiling:$ac_tool_warned in
4208 yes:)
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4211 ac_tool_warned=yes ;;
4212 esac
4213     CC=$ac_ct_CC
4214   fi
4215 else
4216   CC="$ac_cv_prog_CC"
4217 fi
4218
4219 if test -z "$CC"; then
4220           if test -n "$ac_tool_prefix"; then
4221     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4222 set dummy ${ac_tool_prefix}cc; ac_word=$2
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224 $as_echo_n "checking for $ac_word... " >&6; }
4225 if ${ac_cv_prog_CC+:} false; then :
4226   $as_echo_n "(cached) " >&6
4227 else
4228   if test -n "$CC"; then
4229   ac_cv_prog_CC="$CC" # Let the user override the test.
4230 else
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4233 do
4234   IFS=$as_save_IFS
4235   test -z "$as_dir" && as_dir=.
4236     for ac_exec_ext in '' $ac_executable_extensions; do
4237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238     ac_cv_prog_CC="${ac_tool_prefix}cc"
4239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240     break 2
4241   fi
4242 done
4243   done
4244 IFS=$as_save_IFS
4245
4246 fi
4247 fi
4248 CC=$ac_cv_prog_CC
4249 if test -n "$CC"; then
4250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4251 $as_echo "$CC" >&6; }
4252 else
4253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254 $as_echo "no" >&6; }
4255 fi
4256
4257
4258   fi
4259 fi
4260 if test -z "$CC"; then
4261   # Extract the first word of "cc", so it can be a program name with args.
4262 set dummy cc; ac_word=$2
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4264 $as_echo_n "checking for $ac_word... " >&6; }
4265 if ${ac_cv_prog_CC+:} false; then :
4266   $as_echo_n "(cached) " >&6
4267 else
4268   if test -n "$CC"; then
4269   ac_cv_prog_CC="$CC" # Let the user override the test.
4270 else
4271   ac_prog_rejected=no
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4274 do
4275   IFS=$as_save_IFS
4276   test -z "$as_dir" && as_dir=.
4277     for ac_exec_ext in '' $ac_executable_extensions; do
4278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4280        ac_prog_rejected=yes
4281        continue
4282      fi
4283     ac_cv_prog_CC="cc"
4284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4285     break 2
4286   fi
4287 done
4288   done
4289 IFS=$as_save_IFS
4290
4291 if test $ac_prog_rejected = yes; then
4292   # We found a bogon in the path, so make sure we never use it.
4293   set dummy $ac_cv_prog_CC
4294   shift
4295   if test $# != 0; then
4296     # We chose a different compiler from the bogus one.
4297     # However, it has the same basename, so the bogon will be chosen
4298     # first if we set CC to just the basename; use the full file name.
4299     shift
4300     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4301   fi
4302 fi
4303 fi
4304 fi
4305 CC=$ac_cv_prog_CC
4306 if test -n "$CC"; then
4307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4308 $as_echo "$CC" >&6; }
4309 else
4310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 $as_echo "no" >&6; }
4312 fi
4313
4314
4315 fi
4316 if test -z "$CC"; then
4317   if test -n "$ac_tool_prefix"; then
4318   for ac_prog in cl.exe
4319   do
4320     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4321 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323 $as_echo_n "checking for $ac_word... " >&6; }
4324 if ${ac_cv_prog_CC+:} false; then :
4325   $as_echo_n "(cached) " >&6
4326 else
4327   if test -n "$CC"; then
4328   ac_cv_prog_CC="$CC" # Let the user override the test.
4329 else
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH
4332 do
4333   IFS=$as_save_IFS
4334   test -z "$as_dir" && as_dir=.
4335     for ac_exec_ext in '' $ac_executable_extensions; do
4336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4337     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4339     break 2
4340   fi
4341 done
4342   done
4343 IFS=$as_save_IFS
4344
4345 fi
4346 fi
4347 CC=$ac_cv_prog_CC
4348 if test -n "$CC"; then
4349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4350 $as_echo "$CC" >&6; }
4351 else
4352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
4354 fi
4355
4356
4357     test -n "$CC" && break
4358   done
4359 fi
4360 if test -z "$CC"; then
4361   ac_ct_CC=$CC
4362   for ac_prog in cl.exe
4363 do
4364   # Extract the first word of "$ac_prog", so it can be a program name with args.
4365 set dummy $ac_prog; ac_word=$2
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4367 $as_echo_n "checking for $ac_word... " >&6; }
4368 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4369   $as_echo_n "(cached) " >&6
4370 else
4371   if test -n "$ac_ct_CC"; then
4372   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4373 else
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4376 do
4377   IFS=$as_save_IFS
4378   test -z "$as_dir" && as_dir=.
4379     for ac_exec_ext in '' $ac_executable_extensions; do
4380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4381     ac_cv_prog_ac_ct_CC="$ac_prog"
4382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383     break 2
4384   fi
4385 done
4386   done
4387 IFS=$as_save_IFS
4388
4389 fi
4390 fi
4391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4392 if test -n "$ac_ct_CC"; then
4393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4394 $as_echo "$ac_ct_CC" >&6; }
4395 else
4396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397 $as_echo "no" >&6; }
4398 fi
4399
4400
4401   test -n "$ac_ct_CC" && break
4402 done
4403
4404   if test "x$ac_ct_CC" = x; then
4405     CC=""
4406   else
4407     case $cross_compiling:$ac_tool_warned in
4408 yes:)
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4411 ac_tool_warned=yes ;;
4412 esac
4413     CC=$ac_ct_CC
4414   fi
4415 fi
4416
4417 fi
4418
4419
4420 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4422 as_fn_error $? "no acceptable C compiler found in \$PATH
4423 See \`config.log' for more details" "$LINENO" 5; }
4424
4425 # Provide some information about the compiler.
4426 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4427 set X $ac_compile
4428 ac_compiler=$2
4429 for ac_option in --version -v -V -qversion; do
4430   { { ac_try="$ac_compiler $ac_option >&5"
4431 case "(($ac_try" in
4432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433   *) ac_try_echo=$ac_try;;
4434 esac
4435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4436 $as_echo "$ac_try_echo"; } >&5
4437   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4438   ac_status=$?
4439   if test -s conftest.err; then
4440     sed '10a\
4441 ... rest of stderr output deleted ...
4442          10q' conftest.err >conftest.er1
4443     cat conftest.er1 >&5
4444   fi
4445   rm -f conftest.er1 conftest.err
4446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4447   test $ac_status = 0; }
4448 done
4449
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h.  */
4452
4453 int
4454 main ()
4455 {
4456
4457   ;
4458   return 0;
4459 }
4460 _ACEOF
4461 ac_clean_files_save=$ac_clean_files
4462 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4463 # Try to create an executable without -o first, disregard a.out.
4464 # It will help us diagnose broken compilers, and finding out an intuition
4465 # of exeext.
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4467 $as_echo_n "checking whether the C compiler works... " >&6; }
4468 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4469
4470 # The possible output files:
4471 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4472
4473 ac_rmfiles=
4474 for ac_file in $ac_files
4475 do
4476   case $ac_file in
4477     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4478     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4479   esac
4480 done
4481 rm -f $ac_rmfiles
4482
4483 if { { ac_try="$ac_link_default"
4484 case "(($ac_try" in
4485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486   *) ac_try_echo=$ac_try;;
4487 esac
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490   (eval "$ac_link_default") 2>&5
4491   ac_status=$?
4492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493   test $ac_status = 0; }; then :
4494   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4495 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4496 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4497 # so that the user can short-circuit this test for compilers unknown to
4498 # Autoconf.
4499 for ac_file in $ac_files ''
4500 do
4501   test -f "$ac_file" || continue
4502   case $ac_file in
4503     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4504         ;;
4505     [ab].out )
4506         # We found the default executable, but exeext='' is most
4507         # certainly right.
4508         break;;
4509     *.* )
4510         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4511         then :; else
4512            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4513         fi
4514         # We set ac_cv_exeext here because the later test for it is not
4515         # safe: cross compilers may not add the suffix if given an `-o'
4516         # argument, so we may need to know it at that point already.
4517         # Even if this section looks crufty: it has the advantage of
4518         # actually working.
4519         break;;
4520     * )
4521         break;;
4522   esac
4523 done
4524 test "$ac_cv_exeext" = no && ac_cv_exeext=
4525
4526 else
4527   ac_file=''
4528 fi
4529 if test -z "$ac_file"; then :
4530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531 $as_echo "no" >&6; }
4532 $as_echo "$as_me: failed program was:" >&5
4533 sed 's/^/| /' conftest.$ac_ext >&5
4534
4535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4537 as_fn_error 77 "C compiler cannot create executables
4538 See \`config.log' for more details" "$LINENO" 5; }
4539 else
4540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4541 $as_echo "yes" >&6; }
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4544 $as_echo_n "checking for C compiler default output file name... " >&6; }
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4546 $as_echo "$ac_file" >&6; }
4547 ac_exeext=$ac_cv_exeext
4548
4549 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4550 ac_clean_files=$ac_clean_files_save
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4552 $as_echo_n "checking for suffix of executables... " >&6; }
4553 if { { ac_try="$ac_link"
4554 case "(($ac_try" in
4555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556   *) ac_try_echo=$ac_try;;
4557 esac
4558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4559 $as_echo "$ac_try_echo"; } >&5
4560   (eval "$ac_link") 2>&5
4561   ac_status=$?
4562   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4563   test $ac_status = 0; }; then :
4564   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4565 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4566 # work properly (i.e., refer to `conftest.exe'), while it won't with
4567 # `rm'.
4568 for ac_file in conftest.exe conftest conftest.*; do
4569   test -f "$ac_file" || continue
4570   case $ac_file in
4571     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4572     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4573           break;;
4574     * ) break;;
4575   esac
4576 done
4577 else
4578   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4580 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4581 See \`config.log' for more details" "$LINENO" 5; }
4582 fi
4583 rm -f conftest conftest$ac_cv_exeext
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4585 $as_echo "$ac_cv_exeext" >&6; }
4586
4587 rm -f conftest.$ac_ext
4588 EXEEXT=$ac_cv_exeext
4589 ac_exeext=$EXEEXT
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h.  */
4592 #include <stdio.h>
4593 int
4594 main ()
4595 {
4596 FILE *f = fopen ("conftest.out", "w");
4597  return ferror (f) || fclose (f) != 0;
4598
4599   ;
4600   return 0;
4601 }
4602 _ACEOF
4603 ac_clean_files="$ac_clean_files conftest.out"
4604 # Check that the compiler produces executables we can run.  If not, either
4605 # the compiler is broken, or we cross compile.
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4607 $as_echo_n "checking whether we are cross compiling... " >&6; }
4608 if test "$cross_compiling" != yes; then
4609   { { ac_try="$ac_link"
4610 case "(($ac_try" in
4611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612   *) ac_try_echo=$ac_try;;
4613 esac
4614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4615 $as_echo "$ac_try_echo"; } >&5
4616   (eval "$ac_link") 2>&5
4617   ac_status=$?
4618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4619   test $ac_status = 0; }
4620   if { ac_try='./conftest$ac_cv_exeext'
4621   { { case "(($ac_try" in
4622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623   *) ac_try_echo=$ac_try;;
4624 esac
4625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626 $as_echo "$ac_try_echo"; } >&5
4627   (eval "$ac_try") 2>&5
4628   ac_status=$?
4629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630   test $ac_status = 0; }; }; then
4631     cross_compiling=no
4632   else
4633     if test "$cross_compiling" = maybe; then
4634         cross_compiling=yes
4635     else
4636         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4638 as_fn_error $? "cannot run C compiled programs.
4639 If you meant to cross compile, use \`--host'.
4640 See \`config.log' for more details" "$LINENO" 5; }
4641     fi
4642   fi
4643 fi
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4645 $as_echo "$cross_compiling" >&6; }
4646
4647 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4648 ac_clean_files=$ac_clean_files_save
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4650 $as_echo_n "checking for suffix of object files... " >&6; }
4651 if ${ac_cv_objext+:} false; then :
4652   $as_echo_n "(cached) " >&6
4653 else
4654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h.  */
4656
4657 int
4658 main ()
4659 {
4660
4661   ;
4662   return 0;
4663 }
4664 _ACEOF
4665 rm -f conftest.o conftest.obj
4666 if { { ac_try="$ac_compile"
4667 case "(($ac_try" in
4668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669   *) ac_try_echo=$ac_try;;
4670 esac
4671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4672 $as_echo "$ac_try_echo"; } >&5
4673   (eval "$ac_compile") 2>&5
4674   ac_status=$?
4675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4676   test $ac_status = 0; }; then :
4677   for ac_file in conftest.o conftest.obj conftest.*; do
4678   test -f "$ac_file" || continue;
4679   case $ac_file in
4680     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4681     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4682        break;;
4683   esac
4684 done
4685 else
4686   $as_echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4688
4689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4691 as_fn_error $? "cannot compute suffix of object files: cannot compile
4692 See \`config.log' for more details" "$LINENO" 5; }
4693 fi
4694 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4695 fi
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4697 $as_echo "$ac_cv_objext" >&6; }
4698 OBJEXT=$ac_cv_objext
4699 ac_objext=$OBJEXT
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4701 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4702 if ${ac_cv_c_compiler_gnu+:} false; then :
4703   $as_echo_n "(cached) " >&6
4704 else
4705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h.  */
4707
4708 int
4709 main ()
4710 {
4711 #ifndef __GNUC__
4712        choke me
4713 #endif
4714
4715   ;
4716   return 0;
4717 }
4718 _ACEOF
4719 if ac_fn_c_try_compile "$LINENO"; then :
4720   ac_compiler_gnu=yes
4721 else
4722   ac_compiler_gnu=no
4723 fi
4724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4725 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4726
4727 fi
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4729 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4730 if test $ac_compiler_gnu = yes; then
4731   GCC=yes
4732 else
4733   GCC=
4734 fi
4735 ac_test_CFLAGS=${CFLAGS+set}
4736 ac_save_CFLAGS=$CFLAGS
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4738 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4739 if ${ac_cv_prog_cc_g+:} false; then :
4740   $as_echo_n "(cached) " >&6
4741 else
4742   ac_save_c_werror_flag=$ac_c_werror_flag
4743    ac_c_werror_flag=yes
4744    ac_cv_prog_cc_g=no
4745    CFLAGS="-g"
4746    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h.  */
4748
4749 int
4750 main ()
4751 {
4752
4753   ;
4754   return 0;
4755 }
4756 _ACEOF
4757 if ac_fn_c_try_compile "$LINENO"; then :
4758   ac_cv_prog_cc_g=yes
4759 else
4760   CFLAGS=""
4761       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h.  */
4763
4764 int
4765 main ()
4766 {
4767
4768   ;
4769   return 0;
4770 }
4771 _ACEOF
4772 if ac_fn_c_try_compile "$LINENO"; then :
4773
4774 else
4775   ac_c_werror_flag=$ac_save_c_werror_flag
4776          CFLAGS="-g"
4777          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h.  */
4779
4780 int
4781 main ()
4782 {
4783
4784   ;
4785   return 0;
4786 }
4787 _ACEOF
4788 if ac_fn_c_try_compile "$LINENO"; then :
4789   ac_cv_prog_cc_g=yes
4790 fi
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 fi
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 fi
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796    ac_c_werror_flag=$ac_save_c_werror_flag
4797 fi
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4799 $as_echo "$ac_cv_prog_cc_g" >&6; }
4800 if test "$ac_test_CFLAGS" = set; then
4801   CFLAGS=$ac_save_CFLAGS
4802 elif test $ac_cv_prog_cc_g = yes; then
4803   if test "$GCC" = yes; then
4804     CFLAGS="-g -O2"
4805   else
4806     CFLAGS="-g"
4807   fi
4808 else
4809   if test "$GCC" = yes; then
4810     CFLAGS="-O2"
4811   else
4812     CFLAGS=
4813   fi
4814 fi
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4816 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4817 if ${ac_cv_prog_cc_c89+:} false; then :
4818   $as_echo_n "(cached) " >&6
4819 else
4820   ac_cv_prog_cc_c89=no
4821 ac_save_CC=$CC
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h.  */
4824 #include <stdarg.h>
4825 #include <stdio.h>
4826 #include <sys/types.h>
4827 #include <sys/stat.h>
4828 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4829 struct buf { int x; };
4830 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4831 static char *e (p, i)
4832      char **p;
4833      int i;
4834 {
4835   return p[i];
4836 }
4837 static char *f (char * (*g) (char **, int), char **p, ...)
4838 {
4839   char *s;
4840   va_list v;
4841   va_start (v,p);
4842   s = g (p, va_arg (v,int));
4843   va_end (v);
4844   return s;
4845 }
4846
4847 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4848    function prototypes and stuff, but not '\xHH' hex character constants.
4849    These don't provoke an error unfortunately, instead are silently treated
4850    as 'x'.  The following induces an error, until -std is added to get
4851    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4852    array size at least.  It's necessary to write '\x00'==0 to get something
4853    that's true only with -std.  */
4854 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4855
4856 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4857    inside strings and character constants.  */
4858 #define FOO(x) 'x'
4859 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4860
4861 int test (int i, double x);
4862 struct s1 {int (*f) (int a);};
4863 struct s2 {int (*f) (double a);};
4864 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4865 int argc;
4866 char **argv;
4867 int
4868 main ()
4869 {
4870 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4871   ;
4872   return 0;
4873 }
4874 _ACEOF
4875 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4876         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4877 do
4878   CC="$ac_save_CC $ac_arg"
4879   if ac_fn_c_try_compile "$LINENO"; then :
4880   ac_cv_prog_cc_c89=$ac_arg
4881 fi
4882 rm -f core conftest.err conftest.$ac_objext
4883   test "x$ac_cv_prog_cc_c89" != "xno" && break
4884 done
4885 rm -f conftest.$ac_ext
4886 CC=$ac_save_CC
4887
4888 fi
4889 # AC_CACHE_VAL
4890 case "x$ac_cv_prog_cc_c89" in
4891   x)
4892     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4893 $as_echo "none needed" >&6; } ;;
4894   xno)
4895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4896 $as_echo "unsupported" >&6; } ;;
4897   *)
4898     CC="$CC $ac_cv_prog_cc_c89"
4899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4900 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4901 esac
4902 if test "x$ac_cv_prog_cc_c89" != xno; then :
4903
4904 fi
4905
4906 ac_ext=c
4907 ac_cpp='$CPP $CPPFLAGS'
4908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4911
4912 depcc="$CC"   am_compiler_list=
4913
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4915 $as_echo_n "checking dependency style of $depcc... " >&6; }
4916 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4917   $as_echo_n "(cached) " >&6
4918 else
4919   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4920   # We make a subdir and do the tests there.  Otherwise we can end up
4921   # making bogus files that we don't know about and never remove.  For
4922   # instance it was reported that on HP-UX the gcc test will end up
4923   # making a dummy file named `D' -- because `-MD' means `put the output
4924   # in D'.
4925   mkdir conftest.dir
4926   # Copy depcomp to subdir because otherwise we won't find it if we're
4927   # using a relative directory.
4928   cp "$am_depcomp" conftest.dir
4929   cd conftest.dir
4930   # We will build objects and dependencies in a subdirectory because
4931   # it helps to detect inapplicable dependency modes.  For instance
4932   # both Tru64's cc and ICC support -MD to output dependencies as a
4933   # side effect of compilation, but ICC will put the dependencies in
4934   # the current directory while Tru64 will put them in the object
4935   # directory.
4936   mkdir sub
4937
4938   am_cv_CC_dependencies_compiler_type=none
4939   if test "$am_compiler_list" = ""; then
4940      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4941   fi
4942   am__universal=false
4943   case " $depcc " in #(
4944      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4945      esac
4946
4947   for depmode in $am_compiler_list; do
4948     # Setup a source with many dependencies, because some compilers
4949     # like to wrap large dependency lists on column 80 (with \), and
4950     # we should not choose a depcomp mode which is confused by this.
4951     #
4952     # We need to recreate these files for each test, as the compiler may
4953     # overwrite some of them when testing with obscure command lines.
4954     # This happens at least with the AIX C compiler.
4955     : > sub/conftest.c
4956     for i in 1 2 3 4 5 6; do
4957       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4958       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4959       # Solaris 8's {/usr,}/bin/sh.
4960       touch sub/conftst$i.h
4961     done
4962     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4963
4964     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4965     # mode.  It turns out that the SunPro C++ compiler does not properly
4966     # handle `-M -o', and we need to detect this.  Also, some Intel
4967     # versions had trouble with output in subdirs
4968     am__obj=sub/conftest.${OBJEXT-o}
4969     am__minus_obj="-o $am__obj"
4970     case $depmode in
4971     gcc)
4972       # This depmode causes a compiler race in universal mode.
4973       test "$am__universal" = false || continue
4974       ;;
4975     nosideeffect)
4976       # after this tag, mechanisms are not by side-effect, so they'll
4977       # only be used when explicitly requested
4978       if test "x$enable_dependency_tracking" = xyes; then
4979         continue
4980       else
4981         break
4982       fi
4983       ;;
4984     msvisualcpp | msvcmsys)
4985       # This compiler won't grok `-c -o', but also, the minuso test has
4986       # not run yet.  These depmodes are late enough in the game, and
4987       # so weak that their functioning should not be impacted.
4988       am__obj=conftest.${OBJEXT-o}
4989       am__minus_obj=
4990       ;;
4991     none) break ;;
4992     esac
4993     if depmode=$depmode \
4994        source=sub/conftest.c object=$am__obj \
4995        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4996        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4997          >/dev/null 2>conftest.err &&
4998        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4999        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5000        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5001        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5002       # icc doesn't choke on unknown options, it will just issue warnings
5003       # or remarks (even with -Werror).  So we grep stderr for any message
5004       # that says an option was ignored or not supported.
5005       # When given -MP, icc 7.0 and 7.1 complain thusly:
5006       #   icc: Command line warning: ignoring option '-M'; no argument required
5007       # The diagnosis changed in icc 8.0:
5008       #   icc: Command line remark: option '-MP' not supported
5009       if (grep 'ignoring option' conftest.err ||
5010           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5011         am_cv_CC_dependencies_compiler_type=$depmode
5012         break
5013       fi
5014     fi
5015   done
5016
5017   cd ..
5018   rm -rf conftest.dir
5019 else
5020   am_cv_CC_dependencies_compiler_type=none
5021 fi
5022
5023 fi
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5025 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5026 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5027
5028  if
5029   test "x$enable_dependency_tracking" != xno \
5030   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5031   am__fastdepCC_TRUE=
5032   am__fastdepCC_FALSE='#'
5033 else
5034   am__fastdepCC_TRUE='#'
5035   am__fastdepCC_FALSE=
5036 fi
5037
5038
5039
5040 ac_ext=c
5041 ac_cpp='$CPP $CPPFLAGS'
5042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5046 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5047 # On Suns, sometimes $CPP names a directory.
5048 if test -n "$CPP" && test -d "$CPP"; then
5049   CPP=
5050 fi
5051 if test -z "$CPP"; then
5052   if ${ac_cv_prog_CPP+:} false; then :
5053   $as_echo_n "(cached) " >&6
5054 else
5055       # Double quotes because CPP needs to be expanded
5056     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5057     do
5058       ac_preproc_ok=false
5059 for ac_c_preproc_warn_flag in '' yes
5060 do
5061   # Use a header file that comes with gcc, so configuring glibc
5062   # with a fresh cross-compiler works.
5063   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5064   # <limits.h> exists even on freestanding compilers.
5065   # On the NeXT, cc -E runs the code through the compiler's parser,
5066   # not just through cpp. "Syntax error" is here to catch this case.
5067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h.  */
5069 #ifdef __STDC__
5070 # include <limits.h>
5071 #else
5072 # include <assert.h>
5073 #endif
5074                      Syntax error
5075 _ACEOF
5076 if ac_fn_c_try_cpp "$LINENO"; then :
5077
5078 else
5079   # Broken: fails on valid input.
5080 continue
5081 fi
5082 rm -f conftest.err conftest.i conftest.$ac_ext
5083
5084   # OK, works on sane cases.  Now check whether nonexistent headers
5085   # can be detected and how.
5086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h.  */
5088 #include <ac_nonexistent.h>
5089 _ACEOF
5090 if ac_fn_c_try_cpp "$LINENO"; then :
5091   # Broken: success on invalid input.
5092 continue
5093 else
5094   # Passes both tests.
5095 ac_preproc_ok=:
5096 break
5097 fi
5098 rm -f conftest.err conftest.i conftest.$ac_ext
5099
5100 done
5101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5102 rm -f conftest.i conftest.err conftest.$ac_ext
5103 if $ac_preproc_ok; then :
5104   break
5105 fi
5106
5107     done
5108     ac_cv_prog_CPP=$CPP
5109
5110 fi
5111   CPP=$ac_cv_prog_CPP
5112 else
5113   ac_cv_prog_CPP=$CPP
5114 fi
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5116 $as_echo "$CPP" >&6; }
5117 ac_preproc_ok=false
5118 for ac_c_preproc_warn_flag in '' yes
5119 do
5120   # Use a header file that comes with gcc, so configuring glibc
5121   # with a fresh cross-compiler works.
5122   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5123   # <limits.h> exists even on freestanding compilers.
5124   # On the NeXT, cc -E runs the code through the compiler's parser,
5125   # not just through cpp. "Syntax error" is here to catch this case.
5126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h.  */
5128 #ifdef __STDC__
5129 # include <limits.h>
5130 #else
5131 # include <assert.h>
5132 #endif
5133                      Syntax error
5134 _ACEOF
5135 if ac_fn_c_try_cpp "$LINENO"; then :
5136
5137 else
5138   # Broken: fails on valid input.
5139 continue
5140 fi
5141 rm -f conftest.err conftest.i conftest.$ac_ext
5142
5143   # OK, works on sane cases.  Now check whether nonexistent headers
5144   # can be detected and how.
5145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h.  */
5147 #include <ac_nonexistent.h>
5148 _ACEOF
5149 if ac_fn_c_try_cpp "$LINENO"; then :
5150   # Broken: success on invalid input.
5151 continue
5152 else
5153   # Passes both tests.
5154 ac_preproc_ok=:
5155 break
5156 fi
5157 rm -f conftest.err conftest.i conftest.$ac_ext
5158
5159 done
5160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5161 rm -f conftest.i conftest.err conftest.$ac_ext
5162 if $ac_preproc_ok; then :
5163
5164 else
5165   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5167 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5168 See \`config.log' for more details" "$LINENO" 5; }
5169 fi
5170
5171 ac_ext=c
5172 ac_cpp='$CPP $CPPFLAGS'
5173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5176
5177
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5179 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5180 if ${ac_cv_path_GREP+:} false; then :
5181   $as_echo_n "(cached) " >&6
5182 else
5183   if test -z "$GREP"; then
5184   ac_path_GREP_found=false
5185   # Loop through the user's path and test for each of PROGNAME-LIST
5186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5188 do
5189   IFS=$as_save_IFS
5190   test -z "$as_dir" && as_dir=.
5191     for ac_prog in grep ggrep; do
5192     for ac_exec_ext in '' $ac_executable_extensions; do
5193       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5194       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5195 # Check for GNU ac_path_GREP and select it if it is found.
5196   # Check for GNU $ac_path_GREP
5197 case `"$ac_path_GREP" --version 2>&1` in
5198 *GNU*)
5199   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5200 *)
5201   ac_count=0
5202   $as_echo_n 0123456789 >"conftest.in"
5203   while :
5204   do
5205     cat "conftest.in" "conftest.in" >"conftest.tmp"
5206     mv "conftest.tmp" "conftest.in"
5207     cp "conftest.in" "conftest.nl"
5208     $as_echo 'GREP' >> "conftest.nl"
5209     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5210     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5211     as_fn_arith $ac_count + 1 && ac_count=$as_val
5212     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5213       # Best one so far, save it but keep looking for a better one
5214       ac_cv_path_GREP="$ac_path_GREP"
5215       ac_path_GREP_max=$ac_count
5216     fi
5217     # 10*(2^10) chars as input seems more than enough
5218     test $ac_count -gt 10 && break
5219   done
5220   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5221 esac
5222
5223       $ac_path_GREP_found && break 3
5224     done
5225   done
5226   done
5227 IFS=$as_save_IFS
5228   if test -z "$ac_cv_path_GREP"; then
5229     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5230   fi
5231 else
5232   ac_cv_path_GREP=$GREP
5233 fi
5234
5235 fi
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5237 $as_echo "$ac_cv_path_GREP" >&6; }
5238  GREP="$ac_cv_path_GREP"
5239
5240
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5242 $as_echo_n "checking for egrep... " >&6; }
5243 if ${ac_cv_path_EGREP+:} false; then :
5244   $as_echo_n "(cached) " >&6
5245 else
5246   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5247    then ac_cv_path_EGREP="$GREP -E"
5248    else
5249      if test -z "$EGREP"; then
5250   ac_path_EGREP_found=false
5251   # Loop through the user's path and test for each of PROGNAME-LIST
5252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5254 do
5255   IFS=$as_save_IFS
5256   test -z "$as_dir" && as_dir=.
5257     for ac_prog in egrep; do
5258     for ac_exec_ext in '' $ac_executable_extensions; do
5259       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5260       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5261 # Check for GNU ac_path_EGREP and select it if it is found.
5262   # Check for GNU $ac_path_EGREP
5263 case `"$ac_path_EGREP" --version 2>&1` in
5264 *GNU*)
5265   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5266 *)
5267   ac_count=0
5268   $as_echo_n 0123456789 >"conftest.in"
5269   while :
5270   do
5271     cat "conftest.in" "conftest.in" >"conftest.tmp"
5272     mv "conftest.tmp" "conftest.in"
5273     cp "conftest.in" "conftest.nl"
5274     $as_echo 'EGREP' >> "conftest.nl"
5275     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5276     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5277     as_fn_arith $ac_count + 1 && ac_count=$as_val
5278     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5279       # Best one so far, save it but keep looking for a better one
5280       ac_cv_path_EGREP="$ac_path_EGREP"
5281       ac_path_EGREP_max=$ac_count
5282     fi
5283     # 10*(2^10) chars as input seems more than enough
5284     test $ac_count -gt 10 && break
5285   done
5286   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5287 esac
5288
5289       $ac_path_EGREP_found && break 3
5290     done
5291   done
5292   done
5293 IFS=$as_save_IFS
5294   if test -z "$ac_cv_path_EGREP"; then
5295     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5296   fi
5297 else
5298   ac_cv_path_EGREP=$EGREP
5299 fi
5300
5301    fi
5302 fi
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5304 $as_echo "$ac_cv_path_EGREP" >&6; }
5305  EGREP="$ac_cv_path_EGREP"
5306
5307
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5309 $as_echo_n "checking for ANSI C header files... " >&6; }
5310 if ${ac_cv_header_stdc+:} false; then :
5311   $as_echo_n "(cached) " >&6
5312 else
5313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h.  */
5315 #include <stdlib.h>
5316 #include <stdarg.h>
5317 #include <string.h>
5318 #include <float.h>
5319
5320 int
5321 main ()
5322 {
5323
5324   ;
5325   return 0;
5326 }
5327 _ACEOF
5328 if ac_fn_c_try_compile "$LINENO"; then :
5329   ac_cv_header_stdc=yes
5330 else
5331   ac_cv_header_stdc=no
5332 fi
5333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5334
5335 if test $ac_cv_header_stdc = yes; then
5336   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h.  */
5339 #include <string.h>
5340
5341 _ACEOF
5342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5343   $EGREP "memchr" >/dev/null 2>&1; then :
5344
5345 else
5346   ac_cv_header_stdc=no
5347 fi
5348 rm -f conftest*
5349
5350 fi
5351
5352 if test $ac_cv_header_stdc = yes; then
5353   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h.  */
5356 #include <stdlib.h>
5357
5358 _ACEOF
5359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5360   $EGREP "free" >/dev/null 2>&1; then :
5361
5362 else
5363   ac_cv_header_stdc=no
5364 fi
5365 rm -f conftest*
5366
5367 fi
5368
5369 if test $ac_cv_header_stdc = yes; then
5370   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5371   if test "$cross_compiling" = yes; then :
5372   :
5373 else
5374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h.  */
5376 #include <ctype.h>
5377 #include <stdlib.h>
5378 #if ((' ' & 0x0FF) == 0x020)
5379 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5380 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5381 #else
5382 # define ISLOWER(c) \
5383                    (('a' <= (c) && (c) <= 'i') \
5384                      || ('j' <= (c) && (c) <= 'r') \
5385                      || ('s' <= (c) && (c) <= 'z'))
5386 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5387 #endif
5388
5389 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5390 int
5391 main ()
5392 {
5393   int i;
5394   for (i = 0; i < 256; i++)
5395     if (XOR (islower (i), ISLOWER (i))
5396         || toupper (i) != TOUPPER (i))
5397       return 2;
5398   return 0;
5399 }
5400 _ACEOF
5401 if ac_fn_c_try_run "$LINENO"; then :
5402
5403 else
5404   ac_cv_header_stdc=no
5405 fi
5406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5407   conftest.$ac_objext conftest.beam conftest.$ac_ext
5408 fi
5409
5410 fi
5411 fi
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5413 $as_echo "$ac_cv_header_stdc" >&6; }
5414 if test $ac_cv_header_stdc = yes; then
5415
5416 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5417
5418 fi
5419
5420 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5421 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5422                   inttypes.h stdint.h unistd.h
5423 do :
5424   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5425 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5426 "
5427 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5428   cat >>confdefs.h <<_ACEOF
5429 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5430 _ACEOF
5431
5432 fi
5433
5434 done
5435
5436
5437
5438   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5439 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5440   MINIX=yes
5441 else
5442   MINIX=
5443 fi
5444
5445
5446   if test "$MINIX" = yes; then
5447
5448 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5449
5450
5451 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5452
5453
5454 $as_echo "#define _MINIX 1" >>confdefs.h
5455
5456   fi
5457
5458
5459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5460 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5461 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5462   $as_echo_n "(cached) " >&6
5463 else
5464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h.  */
5466
5467 #         define __EXTENSIONS__ 1
5468           $ac_includes_default
5469 int
5470 main ()
5471 {
5472
5473   ;
5474   return 0;
5475 }
5476 _ACEOF
5477 if ac_fn_c_try_compile "$LINENO"; then :
5478   ac_cv_safe_to_define___extensions__=yes
5479 else
5480   ac_cv_safe_to_define___extensions__=no
5481 fi
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483 fi
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5485 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5486   test $ac_cv_safe_to_define___extensions__ = yes &&
5487     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5488
5489   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5490
5491   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5492
5493   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5494
5495   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5496
5497
5498
5499 # Check for programs
5500 ac_ext=c
5501 ac_cpp='$CPP $CPPFLAGS'
5502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5505 if test -n "$ac_tool_prefix"; then
5506   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5507 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if ${ac_cv_prog_CC+:} false; then :
5511   $as_echo_n "(cached) " >&6
5512 else
5513   if test -n "$CC"; then
5514   ac_cv_prog_CC="$CC" # Let the user override the test.
5515 else
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5518 do
5519   IFS=$as_save_IFS
5520   test -z "$as_dir" && as_dir=.
5521     for ac_exec_ext in '' $ac_executable_extensions; do
5522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525     break 2
5526   fi
5527 done
5528   done
5529 IFS=$as_save_IFS
5530
5531 fi
5532 fi
5533 CC=$ac_cv_prog_CC
5534 if test -n "$CC"; then
5535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5536 $as_echo "$CC" >&6; }
5537 else
5538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5540 fi
5541
5542
5543 fi
5544 if test -z "$ac_cv_prog_CC"; then
5545   ac_ct_CC=$CC
5546   # Extract the first word of "gcc", so it can be a program name with args.
5547 set dummy gcc; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5551   $as_echo_n "(cached) " >&6
5552 else
5553   if test -n "$ac_ct_CC"; then
5554   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5555 else
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5558 do
5559   IFS=$as_save_IFS
5560   test -z "$as_dir" && as_dir=.
5561     for ac_exec_ext in '' $ac_executable_extensions; do
5562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563     ac_cv_prog_ac_ct_CC="gcc"
5564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565     break 2
5566   fi
5567 done
5568   done
5569 IFS=$as_save_IFS
5570
5571 fi
5572 fi
5573 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5574 if test -n "$ac_ct_CC"; then
5575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5576 $as_echo "$ac_ct_CC" >&6; }
5577 else
5578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5580 fi
5581
5582   if test "x$ac_ct_CC" = x; then
5583     CC=""
5584   else
5585     case $cross_compiling:$ac_tool_warned in
5586 yes:)
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5589 ac_tool_warned=yes ;;
5590 esac
5591     CC=$ac_ct_CC
5592   fi
5593 else
5594   CC="$ac_cv_prog_CC"
5595 fi
5596
5597 if test -z "$CC"; then
5598           if test -n "$ac_tool_prefix"; then
5599     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5600 set dummy ${ac_tool_prefix}cc; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_CC+:} false; then :
5604   $as_echo_n "(cached) " >&6
5605 else
5606   if test -n "$CC"; then
5607   ac_cv_prog_CC="$CC" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5611 do
5612   IFS=$as_save_IFS
5613   test -z "$as_dir" && as_dir=.
5614     for ac_exec_ext in '' $ac_executable_extensions; do
5615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616     ac_cv_prog_CC="${ac_tool_prefix}cc"
5617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618     break 2
5619   fi
5620 done
5621   done
5622 IFS=$as_save_IFS
5623
5624 fi
5625 fi
5626 CC=$ac_cv_prog_CC
5627 if test -n "$CC"; then
5628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5629 $as_echo "$CC" >&6; }
5630 else
5631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5633 fi
5634
5635
5636   fi
5637 fi
5638 if test -z "$CC"; then
5639   # Extract the first word of "cc", so it can be a program name with args.
5640 set dummy cc; ac_word=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if ${ac_cv_prog_CC+:} false; then :
5644   $as_echo_n "(cached) " >&6
5645 else
5646   if test -n "$CC"; then
5647   ac_cv_prog_CC="$CC" # Let the user override the test.
5648 else
5649   ac_prog_rejected=no
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH
5652 do
5653   IFS=$as_save_IFS
5654   test -z "$as_dir" && as_dir=.
5655     for ac_exec_ext in '' $ac_executable_extensions; do
5656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5657     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5658        ac_prog_rejected=yes
5659        continue
5660      fi
5661     ac_cv_prog_CC="cc"
5662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663     break 2
5664   fi
5665 done
5666   done
5667 IFS=$as_save_IFS
5668
5669 if test $ac_prog_rejected = yes; then
5670   # We found a bogon in the path, so make sure we never use it.
5671   set dummy $ac_cv_prog_CC
5672   shift
5673   if test $# != 0; then
5674     # We chose a different compiler from the bogus one.
5675     # However, it has the same basename, so the bogon will be chosen
5676     # first if we set CC to just the basename; use the full file name.
5677     shift
5678     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5679   fi
5680 fi
5681 fi
5682 fi
5683 CC=$ac_cv_prog_CC
5684 if test -n "$CC"; then
5685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5686 $as_echo "$CC" >&6; }
5687 else
5688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5690 fi
5691
5692
5693 fi
5694 if test -z "$CC"; then
5695   if test -n "$ac_tool_prefix"; then
5696   for ac_prog in cl.exe
5697   do
5698     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5699 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701 $as_echo_n "checking for $ac_word... " >&6; }
5702 if ${ac_cv_prog_CC+:} false; then :
5703   $as_echo_n "(cached) " >&6
5704 else
5705   if test -n "$CC"; then
5706   ac_cv_prog_CC="$CC" # Let the user override the test.
5707 else
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5710 do
5711   IFS=$as_save_IFS
5712   test -z "$as_dir" && as_dir=.
5713     for ac_exec_ext in '' $ac_executable_extensions; do
5714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717     break 2
5718   fi
5719 done
5720   done
5721 IFS=$as_save_IFS
5722
5723 fi
5724 fi
5725 CC=$ac_cv_prog_CC
5726 if test -n "$CC"; then
5727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5728 $as_echo "$CC" >&6; }
5729 else
5730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731 $as_echo "no" >&6; }
5732 fi
5733
5734
5735     test -n "$CC" && break
5736   done
5737 fi
5738 if test -z "$CC"; then
5739   ac_ct_CC=$CC
5740   for ac_prog in cl.exe
5741 do
5742   # Extract the first word of "$ac_prog", so it can be a program name with args.
5743 set dummy $ac_prog; ac_word=$2
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745 $as_echo_n "checking for $ac_word... " >&6; }
5746 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5747   $as_echo_n "(cached) " >&6
5748 else
5749   if test -n "$ac_ct_CC"; then
5750   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5751 else
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH
5754 do
5755   IFS=$as_save_IFS
5756   test -z "$as_dir" && as_dir=.
5757     for ac_exec_ext in '' $ac_executable_extensions; do
5758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5759     ac_cv_prog_ac_ct_CC="$ac_prog"
5760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5761     break 2
5762   fi
5763 done
5764   done
5765 IFS=$as_save_IFS
5766
5767 fi
5768 fi
5769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5770 if test -n "$ac_ct_CC"; then
5771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5772 $as_echo "$ac_ct_CC" >&6; }
5773 else
5774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }
5776 fi
5777
5778
5779   test -n "$ac_ct_CC" && break
5780 done
5781
5782   if test "x$ac_ct_CC" = x; then
5783     CC=""
5784   else
5785     case $cross_compiling:$ac_tool_warned in
5786 yes:)
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5789 ac_tool_warned=yes ;;
5790 esac
5791     CC=$ac_ct_CC
5792   fi
5793 fi
5794
5795 fi
5796
5797
5798 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5800 as_fn_error $? "no acceptable C compiler found in \$PATH
5801 See \`config.log' for more details" "$LINENO" 5; }
5802
5803 # Provide some information about the compiler.
5804 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5805 set X $ac_compile
5806 ac_compiler=$2
5807 for ac_option in --version -v -V -qversion; do
5808   { { ac_try="$ac_compiler $ac_option >&5"
5809 case "(($ac_try" in
5810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811   *) ac_try_echo=$ac_try;;
5812 esac
5813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5814 $as_echo "$ac_try_echo"; } >&5
5815   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5816   ac_status=$?
5817   if test -s conftest.err; then
5818     sed '10a\
5819 ... rest of stderr output deleted ...
5820          10q' conftest.err >conftest.er1
5821     cat conftest.er1 >&5
5822   fi
5823   rm -f conftest.er1 conftest.err
5824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5825   test $ac_status = 0; }
5826 done
5827
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5829 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5830 if ${ac_cv_c_compiler_gnu+:} false; then :
5831   $as_echo_n "(cached) " >&6
5832 else
5833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h.  */
5835
5836 int
5837 main ()
5838 {
5839 #ifndef __GNUC__
5840        choke me
5841 #endif
5842
5843   ;
5844   return 0;
5845 }
5846 _ACEOF
5847 if ac_fn_c_try_compile "$LINENO"; then :
5848   ac_compiler_gnu=yes
5849 else
5850   ac_compiler_gnu=no
5851 fi
5852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5854
5855 fi
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5857 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5858 if test $ac_compiler_gnu = yes; then
5859   GCC=yes
5860 else
5861   GCC=
5862 fi
5863 ac_test_CFLAGS=${CFLAGS+set}
5864 ac_save_CFLAGS=$CFLAGS
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5866 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5867 if ${ac_cv_prog_cc_g+:} false; then :
5868   $as_echo_n "(cached) " >&6
5869 else
5870   ac_save_c_werror_flag=$ac_c_werror_flag
5871    ac_c_werror_flag=yes
5872    ac_cv_prog_cc_g=no
5873    CFLAGS="-g"
5874    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h.  */
5876
5877 int
5878 main ()
5879 {
5880
5881   ;
5882   return 0;
5883 }
5884 _ACEOF
5885 if ac_fn_c_try_compile "$LINENO"; then :
5886   ac_cv_prog_cc_g=yes
5887 else
5888   CFLAGS=""
5889       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h.  */
5891
5892 int
5893 main ()
5894 {
5895
5896   ;
5897   return 0;
5898 }
5899 _ACEOF
5900 if ac_fn_c_try_compile "$LINENO"; then :
5901
5902 else
5903   ac_c_werror_flag=$ac_save_c_werror_flag
5904          CFLAGS="-g"
5905          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h.  */
5907
5908 int
5909 main ()
5910 {
5911
5912   ;
5913   return 0;
5914 }
5915 _ACEOF
5916 if ac_fn_c_try_compile "$LINENO"; then :
5917   ac_cv_prog_cc_g=yes
5918 fi
5919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5920 fi
5921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922 fi
5923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5924    ac_c_werror_flag=$ac_save_c_werror_flag
5925 fi
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5927 $as_echo "$ac_cv_prog_cc_g" >&6; }
5928 if test "$ac_test_CFLAGS" = set; then
5929   CFLAGS=$ac_save_CFLAGS
5930 elif test $ac_cv_prog_cc_g = yes; then
5931   if test "$GCC" = yes; then
5932     CFLAGS="-g -O2"
5933   else
5934     CFLAGS="-g"
5935   fi
5936 else
5937   if test "$GCC" = yes; then
5938     CFLAGS="-O2"
5939   else
5940     CFLAGS=
5941   fi
5942 fi
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5944 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5945 if ${ac_cv_prog_cc_c89+:} false; then :
5946   $as_echo_n "(cached) " >&6
5947 else
5948   ac_cv_prog_cc_c89=no
5949 ac_save_CC=$CC
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h.  */
5952 #include <stdarg.h>
5953 #include <stdio.h>
5954 #include <sys/types.h>
5955 #include <sys/stat.h>
5956 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5957 struct buf { int x; };
5958 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5959 static char *e (p, i)
5960      char **p;
5961      int i;
5962 {
5963   return p[i];
5964 }
5965 static char *f (char * (*g) (char **, int), char **p, ...)
5966 {
5967   char *s;
5968   va_list v;
5969   va_start (v,p);
5970   s = g (p, va_arg (v,int));
5971   va_end (v);
5972   return s;
5973 }
5974
5975 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5976    function prototypes and stuff, but not '\xHH' hex character constants.
5977    These don't provoke an error unfortunately, instead are silently treated
5978    as 'x'.  The following induces an error, until -std is added to get
5979    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5980    array size at least.  It's necessary to write '\x00'==0 to get something
5981    that's true only with -std.  */
5982 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5983
5984 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5985    inside strings and character constants.  */
5986 #define FOO(x) 'x'
5987 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5988
5989 int test (int i, double x);
5990 struct s1 {int (*f) (int a);};
5991 struct s2 {int (*f) (double a);};
5992 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5993 int argc;
5994 char **argv;
5995 int
5996 main ()
5997 {
5998 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5999   ;
6000   return 0;
6001 }
6002 _ACEOF
6003 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6004         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6005 do
6006   CC="$ac_save_CC $ac_arg"
6007   if ac_fn_c_try_compile "$LINENO"; then :
6008   ac_cv_prog_cc_c89=$ac_arg
6009 fi
6010 rm -f core conftest.err conftest.$ac_objext
6011   test "x$ac_cv_prog_cc_c89" != "xno" && break
6012 done
6013 rm -f conftest.$ac_ext
6014 CC=$ac_save_CC
6015
6016 fi
6017 # AC_CACHE_VAL
6018 case "x$ac_cv_prog_cc_c89" in
6019   x)
6020     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6021 $as_echo "none needed" >&6; } ;;
6022   xno)
6023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6024 $as_echo "unsupported" >&6; } ;;
6025   *)
6026     CC="$CC $ac_cv_prog_cc_c89"
6027     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6028 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6029 esac
6030 if test "x$ac_cv_prog_cc_c89" != xno; then :
6031
6032 fi
6033
6034 ac_ext=c
6035 ac_cpp='$CPP $CPPFLAGS'
6036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6039
6040 depcc="$CC"   am_compiler_list=
6041
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6043 $as_echo_n "checking dependency style of $depcc... " >&6; }
6044 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6045   $as_echo_n "(cached) " >&6
6046 else
6047   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6048   # We make a subdir and do the tests there.  Otherwise we can end up
6049   # making bogus files that we don't know about and never remove.  For
6050   # instance it was reported that on HP-UX the gcc test will end up
6051   # making a dummy file named `D' -- because `-MD' means `put the output
6052   # in D'.
6053   mkdir conftest.dir
6054   # Copy depcomp to subdir because otherwise we won't find it if we're
6055   # using a relative directory.
6056   cp "$am_depcomp" conftest.dir
6057   cd conftest.dir
6058   # We will build objects and dependencies in a subdirectory because
6059   # it helps to detect inapplicable dependency modes.  For instance
6060   # both Tru64's cc and ICC support -MD to output dependencies as a
6061   # side effect of compilation, but ICC will put the dependencies in
6062   # the current directory while Tru64 will put them in the object
6063   # directory.
6064   mkdir sub
6065
6066   am_cv_CC_dependencies_compiler_type=none
6067   if test "$am_compiler_list" = ""; then
6068      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6069   fi
6070   am__universal=false
6071   case " $depcc " in #(
6072      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6073      esac
6074
6075   for depmode in $am_compiler_list; do
6076     # Setup a source with many dependencies, because some compilers
6077     # like to wrap large dependency lists on column 80 (with \), and
6078     # we should not choose a depcomp mode which is confused by this.
6079     #
6080     # We need to recreate these files for each test, as the compiler may
6081     # overwrite some of them when testing with obscure command lines.
6082     # This happens at least with the AIX C compiler.
6083     : > sub/conftest.c
6084     for i in 1 2 3 4 5 6; do
6085       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6086       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6087       # Solaris 8's {/usr,}/bin/sh.
6088       touch sub/conftst$i.h
6089     done
6090     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6091
6092     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6093     # mode.  It turns out that the SunPro C++ compiler does not properly
6094     # handle `-M -o', and we need to detect this.  Also, some Intel
6095     # versions had trouble with output in subdirs
6096     am__obj=sub/conftest.${OBJEXT-o}
6097     am__minus_obj="-o $am__obj"
6098     case $depmode in
6099     gcc)
6100       # This depmode causes a compiler race in universal mode.
6101       test "$am__universal" = false || continue
6102       ;;
6103     nosideeffect)
6104       # after this tag, mechanisms are not by side-effect, so they'll
6105       # only be used when explicitly requested
6106       if test "x$enable_dependency_tracking" = xyes; then
6107         continue
6108       else
6109         break
6110       fi
6111       ;;
6112     msvisualcpp | msvcmsys)
6113       # This compiler won't grok `-c -o', but also, the minuso test has
6114       # not run yet.  These depmodes are late enough in the game, and
6115       # so weak that their functioning should not be impacted.
6116       am__obj=conftest.${OBJEXT-o}
6117       am__minus_obj=
6118       ;;
6119     none) break ;;
6120     esac
6121     if depmode=$depmode \
6122        source=sub/conftest.c object=$am__obj \
6123        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6124        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6125          >/dev/null 2>conftest.err &&
6126        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6127        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6128        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6129        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6130       # icc doesn't choke on unknown options, it will just issue warnings
6131       # or remarks (even with -Werror).  So we grep stderr for any message
6132       # that says an option was ignored or not supported.
6133       # When given -MP, icc 7.0 and 7.1 complain thusly:
6134       #   icc: Command line warning: ignoring option '-M'; no argument required
6135       # The diagnosis changed in icc 8.0:
6136       #   icc: Command line remark: option '-MP' not supported
6137       if (grep 'ignoring option' conftest.err ||
6138           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6139         am_cv_CC_dependencies_compiler_type=$depmode
6140         break
6141       fi
6142     fi
6143   done
6144
6145   cd ..
6146   rm -rf conftest.dir
6147 else
6148   am_cv_CC_dependencies_compiler_type=none
6149 fi
6150
6151 fi
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6153 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6154 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6155
6156  if
6157   test "x$enable_dependency_tracking" != xno \
6158   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6159   am__fastdepCC_TRUE=
6160   am__fastdepCC_FALSE='#'
6161 else
6162   am__fastdepCC_TRUE='#'
6163   am__fastdepCC_FALSE=
6164 fi
6165
6166
6167 ac_ext=cpp
6168 ac_cpp='$CXXCPP $CPPFLAGS'
6169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6172 if test -z "$CXX"; then
6173   if test -n "$CCC"; then
6174     CXX=$CCC
6175   else
6176     if test -n "$ac_tool_prefix"; then
6177   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6178   do
6179     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6180 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182 $as_echo_n "checking for $ac_word... " >&6; }
6183 if ${ac_cv_prog_CXX+:} false; then :
6184   $as_echo_n "(cached) " >&6
6185 else
6186   if test -n "$CXX"; then
6187   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6188 else
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 for as_dir in $PATH
6191 do
6192   IFS=$as_save_IFS
6193   test -z "$as_dir" && as_dir=.
6194     for ac_exec_ext in '' $ac_executable_extensions; do
6195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198     break 2
6199   fi
6200 done
6201   done
6202 IFS=$as_save_IFS
6203
6204 fi
6205 fi
6206 CXX=$ac_cv_prog_CXX
6207 if test -n "$CXX"; then
6208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6209 $as_echo "$CXX" >&6; }
6210 else
6211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6213 fi
6214
6215
6216     test -n "$CXX" && break
6217   done
6218 fi
6219 if test -z "$CXX"; then
6220   ac_ct_CXX=$CXX
6221   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6222 do
6223   # Extract the first word of "$ac_prog", so it can be a program name with args.
6224 set dummy $ac_prog; ac_word=$2
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226 $as_echo_n "checking for $ac_word... " >&6; }
6227 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6228   $as_echo_n "(cached) " >&6
6229 else
6230   if test -n "$ac_ct_CXX"; then
6231   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6232 else
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH
6235 do
6236   IFS=$as_save_IFS
6237   test -z "$as_dir" && as_dir=.
6238     for ac_exec_ext in '' $ac_executable_extensions; do
6239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6240     ac_cv_prog_ac_ct_CXX="$ac_prog"
6241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242     break 2
6243   fi
6244 done
6245   done
6246 IFS=$as_save_IFS
6247
6248 fi
6249 fi
6250 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6251 if test -n "$ac_ct_CXX"; then
6252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6253 $as_echo "$ac_ct_CXX" >&6; }
6254 else
6255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256 $as_echo "no" >&6; }
6257 fi
6258
6259
6260   test -n "$ac_ct_CXX" && break
6261 done
6262
6263   if test "x$ac_ct_CXX" = x; then
6264     CXX="g++"
6265   else
6266     case $cross_compiling:$ac_tool_warned in
6267 yes:)
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6270 ac_tool_warned=yes ;;
6271 esac
6272     CXX=$ac_ct_CXX
6273   fi
6274 fi
6275
6276   fi
6277 fi
6278 # Provide some information about the compiler.
6279 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6280 set X $ac_compile
6281 ac_compiler=$2
6282 for ac_option in --version -v -V -qversion; do
6283   { { ac_try="$ac_compiler $ac_option >&5"
6284 case "(($ac_try" in
6285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286   *) ac_try_echo=$ac_try;;
6287 esac
6288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6289 $as_echo "$ac_try_echo"; } >&5
6290   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6291   ac_status=$?
6292   if test -s conftest.err; then
6293     sed '10a\
6294 ... rest of stderr output deleted ...
6295          10q' conftest.err >conftest.er1
6296     cat conftest.er1 >&5
6297   fi
6298   rm -f conftest.er1 conftest.err
6299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6300   test $ac_status = 0; }
6301 done
6302
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6304 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6305 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6306   $as_echo_n "(cached) " >&6
6307 else
6308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h.  */
6310
6311 int
6312 main ()
6313 {
6314 #ifndef __GNUC__
6315        choke me
6316 #endif
6317
6318   ;
6319   return 0;
6320 }
6321 _ACEOF
6322 if ac_fn_cxx_try_compile "$LINENO"; then :
6323   ac_compiler_gnu=yes
6324 else
6325   ac_compiler_gnu=no
6326 fi
6327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6329
6330 fi
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6332 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6333 if test $ac_compiler_gnu = yes; then
6334   GXX=yes
6335 else
6336   GXX=
6337 fi
6338 ac_test_CXXFLAGS=${CXXFLAGS+set}
6339 ac_save_CXXFLAGS=$CXXFLAGS
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6341 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6342 if ${ac_cv_prog_cxx_g+:} false; then :
6343   $as_echo_n "(cached) " >&6
6344 else
6345   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6346    ac_cxx_werror_flag=yes
6347    ac_cv_prog_cxx_g=no
6348    CXXFLAGS="-g"
6349    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h.  */
6351
6352 int
6353 main ()
6354 {
6355
6356   ;
6357   return 0;
6358 }
6359 _ACEOF
6360 if ac_fn_cxx_try_compile "$LINENO"; then :
6361   ac_cv_prog_cxx_g=yes
6362 else
6363   CXXFLAGS=""
6364       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h.  */
6366
6367 int
6368 main ()
6369 {
6370
6371   ;
6372   return 0;
6373 }
6374 _ACEOF
6375 if ac_fn_cxx_try_compile "$LINENO"; then :
6376
6377 else
6378   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6379          CXXFLAGS="-g"
6380          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h.  */
6382
6383 int
6384 main ()
6385 {
6386
6387   ;
6388   return 0;
6389 }
6390 _ACEOF
6391 if ac_fn_cxx_try_compile "$LINENO"; then :
6392   ac_cv_prog_cxx_g=yes
6393 fi
6394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395 fi
6396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397 fi
6398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6400 fi
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6402 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6403 if test "$ac_test_CXXFLAGS" = set; then
6404   CXXFLAGS=$ac_save_CXXFLAGS
6405 elif test $ac_cv_prog_cxx_g = yes; then
6406   if test "$GXX" = yes; then
6407     CXXFLAGS="-g -O2"
6408   else
6409     CXXFLAGS="-g"
6410   fi
6411 else
6412   if test "$GXX" = yes; then
6413     CXXFLAGS="-O2"
6414   else
6415     CXXFLAGS=
6416   fi
6417 fi
6418 ac_ext=c
6419 ac_cpp='$CPP $CPPFLAGS'
6420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6423
6424 depcc="$CXX"  am_compiler_list=
6425
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6427 $as_echo_n "checking dependency style of $depcc... " >&6; }
6428 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6429   $as_echo_n "(cached) " >&6
6430 else
6431   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6432   # We make a subdir and do the tests there.  Otherwise we can end up
6433   # making bogus files that we don't know about and never remove.  For
6434   # instance it was reported that on HP-UX the gcc test will end up
6435   # making a dummy file named `D' -- because `-MD' means `put the output
6436   # in D'.
6437   mkdir conftest.dir
6438   # Copy depcomp to subdir because otherwise we won't find it if we're
6439   # using a relative directory.
6440   cp "$am_depcomp" conftest.dir
6441   cd conftest.dir
6442   # We will build objects and dependencies in a subdirectory because
6443   # it helps to detect inapplicable dependency modes.  For instance
6444   # both Tru64's cc and ICC support -MD to output dependencies as a
6445   # side effect of compilation, but ICC will put the dependencies in
6446   # the current directory while Tru64 will put them in the object
6447   # directory.
6448   mkdir sub
6449
6450   am_cv_CXX_dependencies_compiler_type=none
6451   if test "$am_compiler_list" = ""; then
6452      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6453   fi
6454   am__universal=false
6455   case " $depcc " in #(
6456      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6457      esac
6458
6459   for depmode in $am_compiler_list; do
6460     # Setup a source with many dependencies, because some compilers
6461     # like to wrap large dependency lists on column 80 (with \), and
6462     # we should not choose a depcomp mode which is confused by this.
6463     #
6464     # We need to recreate these files for each test, as the compiler may
6465     # overwrite some of them when testing with obscure command lines.
6466     # This happens at least with the AIX C compiler.
6467     : > sub/conftest.c
6468     for i in 1 2 3 4 5 6; do
6469       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6470       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6471       # Solaris 8's {/usr,}/bin/sh.
6472       touch sub/conftst$i.h
6473     done
6474     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6475
6476     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6477     # mode.  It turns out that the SunPro C++ compiler does not properly
6478     # handle `-M -o', and we need to detect this.  Also, some Intel
6479     # versions had trouble with output in subdirs
6480     am__obj=sub/conftest.${OBJEXT-o}
6481     am__minus_obj="-o $am__obj"
6482     case $depmode in
6483     gcc)
6484       # This depmode causes a compiler race in universal mode.
6485       test "$am__universal" = false || continue
6486       ;;
6487     nosideeffect)
6488       # after this tag, mechanisms are not by side-effect, so they'll
6489       # only be used when explicitly requested
6490       if test "x$enable_dependency_tracking" = xyes; then
6491         continue
6492       else
6493         break
6494       fi
6495       ;;
6496     msvisualcpp | msvcmsys)
6497       # This compiler won't grok `-c -o', but also, the minuso test has
6498       # not run yet.  These depmodes are late enough in the game, and
6499       # so weak that their functioning should not be impacted.
6500       am__obj=conftest.${OBJEXT-o}
6501       am__minus_obj=
6502       ;;
6503     none) break ;;
6504     esac
6505     if depmode=$depmode \
6506        source=sub/conftest.c object=$am__obj \
6507        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6508        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6509          >/dev/null 2>conftest.err &&
6510        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6511        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6512        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6513        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6514       # icc doesn't choke on unknown options, it will just issue warnings
6515       # or remarks (even with -Werror).  So we grep stderr for any message
6516       # that says an option was ignored or not supported.
6517       # When given -MP, icc 7.0 and 7.1 complain thusly:
6518       #   icc: Command line warning: ignoring option '-M'; no argument required
6519       # The diagnosis changed in icc 8.0:
6520       #   icc: Command line remark: option '-MP' not supported
6521       if (grep 'ignoring option' conftest.err ||
6522           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6523         am_cv_CXX_dependencies_compiler_type=$depmode
6524         break
6525       fi
6526     fi
6527   done
6528
6529   cd ..
6530   rm -rf conftest.dir
6531 else
6532   am_cv_CXX_dependencies_compiler_type=none
6533 fi
6534
6535 fi
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6537 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6538 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6539
6540  if
6541   test "x$enable_dependency_tracking" != xno \
6542   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6543   am__fastdepCXX_TRUE=
6544   am__fastdepCXX_FALSE='#'
6545 else
6546   am__fastdepCXX_TRUE='#'
6547   am__fastdepCXX_FALSE=
6548 fi
6549
6550
6551    case $ac_cv_prog_cc_stdc in #(
6552   no) :
6553     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6554   *) :
6555     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6556 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6557 if ${ac_cv_prog_cc_c99+:} false; then :
6558   $as_echo_n "(cached) " >&6
6559 else
6560   ac_cv_prog_cc_c99=no
6561 ac_save_CC=$CC
6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h.  */
6564 #include <stdarg.h>
6565 #include <stdbool.h>
6566 #include <stdlib.h>
6567 #include <wchar.h>
6568 #include <stdio.h>
6569
6570 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
6571 #define debug(...) fprintf (stderr, __VA_ARGS__)
6572 #define showlist(...) puts (#__VA_ARGS__)
6573 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6574 static void
6575 test_varargs_macros (void)
6576 {
6577   int x = 1234;
6578   int y = 5678;
6579   debug ("Flag");
6580   debug ("X = %d\n", x);
6581   showlist (The first, second, and third items.);
6582   report (x>y, "x is %d but y is %d", x, y);
6583 }
6584
6585 // Check long long types.
6586 #define BIG64 18446744073709551615ull
6587 #define BIG32 4294967295ul
6588 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6589 #if !BIG_OK
6590   your preprocessor is broken;
6591 #endif
6592 #if BIG_OK
6593 #else
6594   your preprocessor is broken;
6595 #endif
6596 static long long int bignum = -9223372036854775807LL;
6597 static unsigned long long int ubignum = BIG64;
6598
6599 struct incomplete_array
6600 {
6601   int datasize;
6602   double data[];
6603 };
6604
6605 struct named_init {
6606   int number;
6607   const wchar_t *name;
6608   double average;
6609 };
6610
6611 typedef const char *ccp;
6612
6613 static inline int
6614 test_restrict (ccp restrict text)
6615 {
6616   // See if C++-style comments work.
6617   // Iterate through items via the restricted pointer.
6618   // Also check for declarations in for loops.
6619   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6620     continue;
6621   return 0;
6622 }
6623
6624 // Check varargs and va_copy.
6625 static void
6626 test_varargs (const char *format, ...)
6627 {
6628   va_list args;
6629   va_start (args, format);
6630   va_list args_copy;
6631   va_copy (args_copy, args);
6632
6633   const char *str;
6634   int number;
6635   float fnumber;
6636
6637   while (*format)
6638     {
6639       switch (*format++)
6640         {
6641         case 's': // string
6642           str = va_arg (args_copy, const char *);
6643           break;
6644         case 'd': // int
6645           number = va_arg (args_copy, int);
6646           break;
6647         case 'f': // float
6648           fnumber = va_arg (args_copy, double);
6649           break;
6650         default:
6651           break;
6652         }
6653     }
6654   va_end (args_copy);
6655   va_end (args);
6656 }
6657
6658 int
6659 main ()
6660 {
6661
6662   // Check bool.
6663   _Bool success = false;
6664
6665   // Check restrict.
6666   if (test_restrict ("String literal") == 0)
6667     success = true;
6668   char *restrict newvar = "Another string";
6669
6670   // Check varargs.
6671   test_varargs ("s, d' f .", "string", 65, 34.234);
6672   test_varargs_macros ();
6673
6674   // Check flexible array members.
6675   struct incomplete_array *ia =
6676     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6677   ia->datasize = 10;
6678   for (int i = 0; i < ia->datasize; ++i)
6679     ia->data[i] = i * 1.234;
6680
6681   // Check named initializers.
6682   struct named_init ni = {
6683     .number = 34,
6684     .name = L"Test wide string",
6685     .average = 543.34343,
6686   };
6687
6688   ni.number = 58;
6689
6690   int dynamic_array[ni.number];
6691   dynamic_array[ni.number - 1] = 543;
6692
6693   // work around unused variable warnings
6694   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6695           || dynamic_array[ni.number - 1] != 543);
6696
6697   ;
6698   return 0;
6699 }
6700 _ACEOF
6701 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6702 do
6703   CC="$ac_save_CC $ac_arg"
6704   if ac_fn_c_try_compile "$LINENO"; then :
6705   ac_cv_prog_cc_c99=$ac_arg
6706 fi
6707 rm -f core conftest.err conftest.$ac_objext
6708   test "x$ac_cv_prog_cc_c99" != "xno" && break
6709 done
6710 rm -f conftest.$ac_ext
6711 CC=$ac_save_CC
6712
6713 fi
6714 # AC_CACHE_VAL
6715 case "x$ac_cv_prog_cc_c99" in
6716   x)
6717     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6718 $as_echo "none needed" >&6; } ;;
6719   xno)
6720     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6721 $as_echo "unsupported" >&6; } ;;
6722   *)
6723     CC="$CC $ac_cv_prog_cc_c99"
6724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6725 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6726 esac
6727 if test "x$ac_cv_prog_cc_c99" != xno; then :
6728   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6729 else
6730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6731 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6732 if ${ac_cv_prog_cc_c89+:} false; then :
6733   $as_echo_n "(cached) " >&6
6734 else
6735   ac_cv_prog_cc_c89=no
6736 ac_save_CC=$CC
6737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738 /* end confdefs.h.  */
6739 #include <stdarg.h>
6740 #include <stdio.h>
6741 #include <sys/types.h>
6742 #include <sys/stat.h>
6743 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6744 struct buf { int x; };
6745 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6746 static char *e (p, i)
6747      char **p;
6748      int i;
6749 {
6750   return p[i];
6751 }
6752 static char *f (char * (*g) (char **, int), char **p, ...)
6753 {
6754   char *s;
6755   va_list v;
6756   va_start (v,p);
6757   s = g (p, va_arg (v,int));
6758   va_end (v);
6759   return s;
6760 }
6761
6762 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6763    function prototypes and stuff, but not '\xHH' hex character constants.
6764    These don't provoke an error unfortunately, instead are silently treated
6765    as 'x'.  The following induces an error, until -std is added to get
6766    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6767    array size at least.  It's necessary to write '\x00'==0 to get something
6768    that's true only with -std.  */
6769 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6770
6771 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6772    inside strings and character constants.  */
6773 #define FOO(x) 'x'
6774 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6775
6776 int test (int i, double x);
6777 struct s1 {int (*f) (int a);};
6778 struct s2 {int (*f) (double a);};
6779 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6780 int argc;
6781 char **argv;
6782 int
6783 main ()
6784 {
6785 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6786   ;
6787   return 0;
6788 }
6789 _ACEOF
6790 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6791         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6792 do
6793   CC="$ac_save_CC $ac_arg"
6794   if ac_fn_c_try_compile "$LINENO"; then :
6795   ac_cv_prog_cc_c89=$ac_arg
6796 fi
6797 rm -f core conftest.err conftest.$ac_objext
6798   test "x$ac_cv_prog_cc_c89" != "xno" && break
6799 done
6800 rm -f conftest.$ac_ext
6801 CC=$ac_save_CC
6802
6803 fi
6804 # AC_CACHE_VAL
6805 case "x$ac_cv_prog_cc_c89" in
6806   x)
6807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6808 $as_echo "none needed" >&6; } ;;
6809   xno)
6810     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6811 $as_echo "unsupported" >&6; } ;;
6812   *)
6813     CC="$CC $ac_cv_prog_cc_c89"
6814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6815 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6816 esac
6817 if test "x$ac_cv_prog_cc_c89" != xno; then :
6818   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6819 else
6820   ac_cv_prog_cc_stdc=no
6821 fi
6822
6823 fi
6824  ;;
6825 esac
6826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6827 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6828   if ${ac_cv_prog_cc_stdc+:} false; then :
6829   $as_echo_n "(cached) " >&6
6830 fi
6831
6832   case $ac_cv_prog_cc_stdc in #(
6833   no) :
6834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6835 $as_echo "unsupported" >&6; } ;; #(
6836   '') :
6837     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6838 $as_echo "none needed" >&6; } ;; #(
6839   *) :
6840     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6841 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6842 esac
6843
6844 ac_ext=c
6845 ac_cpp='$CPP $CPPFLAGS'
6846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6850 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6851 # On Suns, sometimes $CPP names a directory.
6852 if test -n "$CPP" && test -d "$CPP"; then
6853   CPP=
6854 fi
6855 if test -z "$CPP"; then
6856   if ${ac_cv_prog_CPP+:} false; then :
6857   $as_echo_n "(cached) " >&6
6858 else
6859       # Double quotes because CPP needs to be expanded
6860     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6861     do
6862       ac_preproc_ok=false
6863 for ac_c_preproc_warn_flag in '' yes
6864 do
6865   # Use a header file that comes with gcc, so configuring glibc
6866   # with a fresh cross-compiler works.
6867   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6868   # <limits.h> exists even on freestanding compilers.
6869   # On the NeXT, cc -E runs the code through the compiler's parser,
6870   # not just through cpp. "Syntax error" is here to catch this case.
6871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h.  */
6873 #ifdef __STDC__
6874 # include <limits.h>
6875 #else
6876 # include <assert.h>
6877 #endif
6878                      Syntax error
6879 _ACEOF
6880 if ac_fn_c_try_cpp "$LINENO"; then :
6881
6882 else
6883   # Broken: fails on valid input.
6884 continue
6885 fi
6886 rm -f conftest.err conftest.i conftest.$ac_ext
6887
6888   # OK, works on sane cases.  Now check whether nonexistent headers
6889   # can be detected and how.
6890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h.  */
6892 #include <ac_nonexistent.h>
6893 _ACEOF
6894 if ac_fn_c_try_cpp "$LINENO"; then :
6895   # Broken: success on invalid input.
6896 continue
6897 else
6898   # Passes both tests.
6899 ac_preproc_ok=:
6900 break
6901 fi
6902 rm -f conftest.err conftest.i conftest.$ac_ext
6903
6904 done
6905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6906 rm -f conftest.i conftest.err conftest.$ac_ext
6907 if $ac_preproc_ok; then :
6908   break
6909 fi
6910
6911     done
6912     ac_cv_prog_CPP=$CPP
6913
6914 fi
6915   CPP=$ac_cv_prog_CPP
6916 else
6917   ac_cv_prog_CPP=$CPP
6918 fi
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6920 $as_echo "$CPP" >&6; }
6921 ac_preproc_ok=false
6922 for ac_c_preproc_warn_flag in '' yes
6923 do
6924   # Use a header file that comes with gcc, so configuring glibc
6925   # with a fresh cross-compiler works.
6926   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6927   # <limits.h> exists even on freestanding compilers.
6928   # On the NeXT, cc -E runs the code through the compiler's parser,
6929   # not just through cpp. "Syntax error" is here to catch this case.
6930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h.  */
6932 #ifdef __STDC__
6933 # include <limits.h>
6934 #else
6935 # include <assert.h>
6936 #endif
6937                      Syntax error
6938 _ACEOF
6939 if ac_fn_c_try_cpp "$LINENO"; then :
6940
6941 else
6942   # Broken: fails on valid input.
6943 continue
6944 fi
6945 rm -f conftest.err conftest.i conftest.$ac_ext
6946
6947   # OK, works on sane cases.  Now check whether nonexistent headers
6948   # can be detected and how.
6949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h.  */
6951 #include <ac_nonexistent.h>
6952 _ACEOF
6953 if ac_fn_c_try_cpp "$LINENO"; then :
6954   # Broken: success on invalid input.
6955 continue
6956 else
6957   # Passes both tests.
6958 ac_preproc_ok=:
6959 break
6960 fi
6961 rm -f conftest.err conftest.i conftest.$ac_ext
6962
6963 done
6964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6965 rm -f conftest.i conftest.err conftest.$ac_ext
6966 if $ac_preproc_ok; then :
6967
6968 else
6969   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6971 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6972 See \`config.log' for more details" "$LINENO" 5; }
6973 fi
6974
6975 ac_ext=c
6976 ac_cpp='$CPP $CPPFLAGS'
6977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6980
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6982 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6983 if ${ac_cv_path_SED+:} false; then :
6984   $as_echo_n "(cached) " >&6
6985 else
6986             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6987      for ac_i in 1 2 3 4 5 6 7; do
6988        ac_script="$ac_script$as_nl$ac_script"
6989      done
6990      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6991      { ac_script=; unset ac_script;}
6992      if test -z "$SED"; then
6993   ac_path_SED_found=false
6994   # Loop through the user's path and test for each of PROGNAME-LIST
6995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998   IFS=$as_save_IFS
6999   test -z "$as_dir" && as_dir=.
7000     for ac_prog in sed gsed; do
7001     for ac_exec_ext in '' $ac_executable_extensions; do
7002       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7003       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7004 # Check for GNU ac_path_SED and select it if it is found.
7005   # Check for GNU $ac_path_SED
7006 case `"$ac_path_SED" --version 2>&1` in
7007 *GNU*)
7008   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7009 *)
7010   ac_count=0
7011   $as_echo_n 0123456789 >"conftest.in"
7012   while :
7013   do
7014     cat "conftest.in" "conftest.in" >"conftest.tmp"
7015     mv "conftest.tmp" "conftest.in"
7016     cp "conftest.in" "conftest.nl"
7017     $as_echo '' >> "conftest.nl"
7018     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7019     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7020     as_fn_arith $ac_count + 1 && ac_count=$as_val
7021     if test $ac_count -gt ${ac_path_SED_max-0}; then
7022       # Best one so far, save it but keep looking for a better one
7023       ac_cv_path_SED="$ac_path_SED"
7024       ac_path_SED_max=$ac_count
7025     fi
7026     # 10*(2^10) chars as input seems more than enough
7027     test $ac_count -gt 10 && break
7028   done
7029   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7030 esac
7031
7032       $ac_path_SED_found && break 3
7033     done
7034   done
7035   done
7036 IFS=$as_save_IFS
7037   if test -z "$ac_cv_path_SED"; then
7038     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7039   fi
7040 else
7041   ac_cv_path_SED=$SED
7042 fi
7043
7044 fi
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7046 $as_echo "$ac_cv_path_SED" >&6; }
7047  SED="$ac_cv_path_SED"
7048   rm -f conftest.sed
7049
7050 test -z "$SED" && SED=sed
7051 Xsed="$SED -e 1s/^X//"
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7064 $as_echo_n "checking for fgrep... " >&6; }
7065 if ${ac_cv_path_FGREP+:} false; then :
7066   $as_echo_n "(cached) " >&6
7067 else
7068   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7069    then ac_cv_path_FGREP="$GREP -F"
7070    else
7071      if test -z "$FGREP"; then
7072   ac_path_FGREP_found=false
7073   # Loop through the user's path and test for each of PROGNAME-LIST
7074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7076 do
7077   IFS=$as_save_IFS
7078   test -z "$as_dir" && as_dir=.
7079     for ac_prog in fgrep; do
7080     for ac_exec_ext in '' $ac_executable_extensions; do
7081       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7082       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7083 # Check for GNU ac_path_FGREP and select it if it is found.
7084   # Check for GNU $ac_path_FGREP
7085 case `"$ac_path_FGREP" --version 2>&1` in
7086 *GNU*)
7087   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7088 *)
7089   ac_count=0
7090   $as_echo_n 0123456789 >"conftest.in"
7091   while :
7092   do
7093     cat "conftest.in" "conftest.in" >"conftest.tmp"
7094     mv "conftest.tmp" "conftest.in"
7095     cp "conftest.in" "conftest.nl"
7096     $as_echo 'FGREP' >> "conftest.nl"
7097     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7098     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7099     as_fn_arith $ac_count + 1 && ac_count=$as_val
7100     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7101       # Best one so far, save it but keep looking for a better one
7102       ac_cv_path_FGREP="$ac_path_FGREP"
7103       ac_path_FGREP_max=$ac_count
7104     fi
7105     # 10*(2^10) chars as input seems more than enough
7106     test $ac_count -gt 10 && break
7107   done
7108   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7109 esac
7110
7111       $ac_path_FGREP_found && break 3
7112     done
7113   done
7114   done
7115 IFS=$as_save_IFS
7116   if test -z "$ac_cv_path_FGREP"; then
7117     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7118   fi
7119 else
7120   ac_cv_path_FGREP=$FGREP
7121 fi
7122
7123    fi
7124 fi
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7126 $as_echo "$ac_cv_path_FGREP" >&6; }
7127  FGREP="$ac_cv_path_FGREP"
7128
7129
7130 test -z "$GREP" && GREP=grep
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7149 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7150 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7151
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7153 $as_echo_n "checking how to print strings... " >&6; }
7154 # Test print first, because it will be a builtin if present.
7155 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7156    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7157   ECHO='print -r --'
7158 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7159   ECHO='printf %s\n'
7160 else
7161   # Use this function as a fallback that always works.
7162   func_fallback_echo ()
7163   {
7164     eval 'cat <<_LTECHO_EOF
7165 $1
7166 _LTECHO_EOF'
7167   }
7168   ECHO='func_fallback_echo'
7169 fi
7170
7171 # func_echo_all arg...
7172 # Invoke $ECHO with all args, space-separated.
7173 func_echo_all ()
7174 {
7175     $ECHO ""
7176 }
7177
7178 case "$ECHO" in
7179   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7180 $as_echo "printf" >&6; } ;;
7181   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7182 $as_echo "print -r" >&6; } ;;
7183   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7184 $as_echo "cat" >&6; } ;;
7185 esac
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202 # Check whether --with-gnu-ld was given.
7203 if test "${with_gnu_ld+set}" = set; then :
7204   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7205 else
7206   with_gnu_ld=no
7207 fi
7208
7209 ac_prog=ld
7210 if test "$GCC" = yes; then
7211   # Check if gcc -print-prog-name=ld gives a path.
7212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7213 $as_echo_n "checking for ld used by $CC... " >&6; }
7214   case $host in
7215   *-*-mingw*)
7216     # gcc leaves a trailing carriage return which upsets mingw
7217     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7218   *)
7219     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7220   esac
7221   case $ac_prog in
7222     # Accept absolute paths.
7223     [\\/]* | ?:[\\/]*)
7224       re_direlt='/[^/][^/]*/\.\./'
7225       # Canonicalize the pathname of ld
7226       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7227       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7228         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7229       done
7230       test -z "$LD" && LD="$ac_prog"
7231       ;;
7232   "")
7233     # If it fails, then pretend we aren't using GCC.
7234     ac_prog=ld
7235     ;;
7236   *)
7237     # If it is relative, then search for the first ld in PATH.
7238     with_gnu_ld=unknown
7239     ;;
7240   esac
7241 elif test "$with_gnu_ld" = yes; then
7242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7243 $as_echo_n "checking for GNU ld... " >&6; }
7244 else
7245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7246 $as_echo_n "checking for non-GNU ld... " >&6; }
7247 fi
7248 if ${lt_cv_path_LD+:} false; then :
7249   $as_echo_n "(cached) " >&6
7250 else
7251   if test -z "$LD"; then
7252   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7253   for ac_dir in $PATH; do
7254     IFS="$lt_save_ifs"
7255     test -z "$ac_dir" && ac_dir=.
7256     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7257       lt_cv_path_LD="$ac_dir/$ac_prog"
7258       # Check to see if the program is GNU ld.  I'd rather use --version,
7259       # but apparently some variants of GNU ld only accept -v.
7260       # Break only if it was the GNU/non-GNU ld that we prefer.
7261       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7262       *GNU* | *'with BFD'*)
7263         test "$with_gnu_ld" != no && break
7264         ;;
7265       *)
7266         test "$with_gnu_ld" != yes && break
7267         ;;
7268       esac
7269     fi
7270   done
7271   IFS="$lt_save_ifs"
7272 else
7273   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7274 fi
7275 fi
7276
7277 LD="$lt_cv_path_LD"
7278 if test -n "$LD"; then
7279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7280 $as_echo "$LD" >&6; }
7281 else
7282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 $as_echo "no" >&6; }
7284 fi
7285 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7287 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7288 if ${lt_cv_prog_gnu_ld+:} false; then :
7289   $as_echo_n "(cached) " >&6
7290 else
7291   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7292 case `$LD -v 2>&1 </dev/null` in
7293 *GNU* | *'with BFD'*)
7294   lt_cv_prog_gnu_ld=yes
7295   ;;
7296 *)
7297   lt_cv_prog_gnu_ld=no
7298   ;;
7299 esac
7300 fi
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7302 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7303 with_gnu_ld=$lt_cv_prog_gnu_ld
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7315 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7316 if ${ac_cv_prog_cc_c99+:} false; then :
7317   $as_echo_n "(cached) " >&6
7318 else
7319   ac_cv_prog_cc_c99=no
7320 ac_save_CC=$CC
7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h.  */
7323 #include <stdarg.h>
7324 #include <stdbool.h>
7325 #include <stdlib.h>
7326 #include <wchar.h>
7327 #include <stdio.h>
7328
7329 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
7330 #define debug(...) fprintf (stderr, __VA_ARGS__)
7331 #define showlist(...) puts (#__VA_ARGS__)
7332 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7333 static void
7334 test_varargs_macros (void)
7335 {
7336   int x = 1234;
7337   int y = 5678;
7338   debug ("Flag");
7339   debug ("X = %d\n", x);
7340   showlist (The first, second, and third items.);
7341   report (x>y, "x is %d but y is %d", x, y);
7342 }
7343
7344 // Check long long types.
7345 #define BIG64 18446744073709551615ull
7346 #define BIG32 4294967295ul
7347 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7348 #if !BIG_OK
7349   your preprocessor is broken;
7350 #endif
7351 #if BIG_OK
7352 #else
7353   your preprocessor is broken;
7354 #endif
7355 static long long int bignum = -9223372036854775807LL;
7356 static unsigned long long int ubignum = BIG64;
7357
7358 struct incomplete_array
7359 {
7360   int datasize;
7361   double data[];
7362 };
7363
7364 struct named_init {
7365   int number;
7366   const wchar_t *name;
7367   double average;
7368 };
7369
7370 typedef const char *ccp;
7371
7372 static inline int
7373 test_restrict (ccp restrict text)
7374 {
7375   // See if C++-style comments work.
7376   // Iterate through items via the restricted pointer.
7377   // Also check for declarations in for loops.
7378   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7379     continue;
7380   return 0;
7381 }
7382
7383 // Check varargs and va_copy.
7384 static void
7385 test_varargs (const char *format, ...)
7386 {
7387   va_list args;
7388   va_start (args, format);
7389   va_list args_copy;
7390   va_copy (args_copy, args);
7391
7392   const char *str;
7393   int number;
7394   float fnumber;
7395
7396   while (*format)
7397     {
7398       switch (*format++)
7399         {
7400         case 's': // string
7401           str = va_arg (args_copy, const char *);
7402           break;
7403         case 'd': // int
7404           number = va_arg (args_copy, int);
7405           break;
7406         case 'f': // float
7407           fnumber = va_arg (args_copy, double);
7408           break;
7409         default:
7410           break;
7411         }
7412     }
7413   va_end (args_copy);
7414   va_end (args);
7415 }
7416
7417 int
7418 main ()
7419 {
7420
7421   // Check bool.
7422   _Bool success = false;
7423
7424   // Check restrict.
7425   if (test_restrict ("String literal") == 0)
7426     success = true;
7427   char *restrict newvar = "Another string";
7428
7429   // Check varargs.
7430   test_varargs ("s, d' f .", "string", 65, 34.234);
7431   test_varargs_macros ();
7432
7433   // Check flexible array members.
7434   struct incomplete_array *ia =
7435     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7436   ia->datasize = 10;
7437   for (int i = 0; i < ia->datasize; ++i)
7438     ia->data[i] = i * 1.234;
7439
7440   // Check named initializers.
7441   struct named_init ni = {
7442     .number = 34,
7443     .name = L"Test wide string",
7444     .average = 543.34343,
7445   };
7446
7447   ni.number = 58;
7448
7449   int dynamic_array[ni.number];
7450   dynamic_array[ni.number - 1] = 543;
7451
7452   // work around unused variable warnings
7453   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7454           || dynamic_array[ni.number - 1] != 543);
7455
7456   ;
7457   return 0;
7458 }
7459 _ACEOF
7460 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7461 do
7462   CC="$ac_save_CC $ac_arg"
7463   if ac_fn_c_try_compile "$LINENO"; then :
7464   ac_cv_prog_cc_c99=$ac_arg
7465 fi
7466 rm -f core conftest.err conftest.$ac_objext
7467   test "x$ac_cv_prog_cc_c99" != "xno" && break
7468 done
7469 rm -f conftest.$ac_ext
7470 CC=$ac_save_CC
7471
7472 fi
7473 # AC_CACHE_VAL
7474 case "x$ac_cv_prog_cc_c99" in
7475   x)
7476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7477 $as_echo "none needed" >&6; } ;;
7478   xno)
7479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7480 $as_echo "unsupported" >&6; } ;;
7481   *)
7482     CC="$CC $ac_cv_prog_cc_c99"
7483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7484 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7485 esac
7486 if test "x$ac_cv_prog_cc_c99" != xno; then :
7487
7488 fi
7489
7490
7491 if test "x$CC" != xcc; then
7492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7493 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7494 else
7495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7496 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7497 fi
7498 set dummy $CC; ac_cc=`$as_echo "$2" |
7499                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7500 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7501   $as_echo_n "(cached) " >&6
7502 else
7503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h.  */
7505
7506 int
7507 main ()
7508 {
7509
7510   ;
7511   return 0;
7512 }
7513 _ACEOF
7514 # Make sure it works both with $CC and with simple cc.
7515 # We do the test twice because some compilers refuse to overwrite an
7516 # existing .o file with -o, though they will create one.
7517 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7518 rm -f conftest2.*
7519 if { { case "(($ac_try" in
7520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7521   *) ac_try_echo=$ac_try;;
7522 esac
7523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7524 $as_echo "$ac_try_echo"; } >&5
7525   (eval "$ac_try") 2>&5
7526   ac_status=$?
7527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7528   test $ac_status = 0; } &&
7529    test -f conftest2.$ac_objext && { { case "(($ac_try" in
7530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7531   *) ac_try_echo=$ac_try;;
7532 esac
7533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7534 $as_echo "$ac_try_echo"; } >&5
7535   (eval "$ac_try") 2>&5
7536   ac_status=$?
7537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7538   test $ac_status = 0; };
7539 then
7540   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7541   if test "x$CC" != xcc; then
7542     # Test first that cc exists at all.
7543     if { ac_try='cc -c conftest.$ac_ext >&5'
7544   { { case "(($ac_try" in
7545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546   *) ac_try_echo=$ac_try;;
7547 esac
7548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7549 $as_echo "$ac_try_echo"; } >&5
7550   (eval "$ac_try") 2>&5
7551   ac_status=$?
7552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7553   test $ac_status = 0; }; }; then
7554       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7555       rm -f conftest2.*
7556       if { { case "(($ac_try" in
7557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7558   *) ac_try_echo=$ac_try;;
7559 esac
7560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7561 $as_echo "$ac_try_echo"; } >&5
7562   (eval "$ac_try") 2>&5
7563   ac_status=$?
7564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7565   test $ac_status = 0; } &&
7566          test -f conftest2.$ac_objext && { { case "(($ac_try" in
7567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568   *) ac_try_echo=$ac_try;;
7569 esac
7570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7571 $as_echo "$ac_try_echo"; } >&5
7572   (eval "$ac_try") 2>&5
7573   ac_status=$?
7574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7575   test $ac_status = 0; };
7576       then
7577         # cc works too.
7578         :
7579       else
7580         # cc exists but doesn't like -o.
7581         eval ac_cv_prog_cc_${ac_cc}_c_o=no
7582       fi
7583     fi
7584   fi
7585 else
7586   eval ac_cv_prog_cc_${ac_cc}_c_o=no
7587 fi
7588 rm -f core conftest*
7589
7590 fi
7591 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7593 $as_echo "yes" >&6; }
7594 else
7595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7597
7598 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7599
7600 fi
7601
7602 # FIXME: we rely on the cache variable name because
7603 # there is no other way.
7604 set dummy $CC
7605 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7606 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7607 if test "$am_t" != yes; then
7608    # Losing compiler, so override with the script.
7609    # FIXME: It is wrong to rewrite CC.
7610    # But if we don't then we get into trouble of one sort or another.
7611    # A longer-term fix would be to have automake use am__CC in this case,
7612    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7613    CC="$am_aux_dir/compile $CC"
7614 fi
7615
7616
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7618 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7619 if ${ac_cv_cflags_warn_all+:} false; then :
7620   $as_echo_n "(cached) " >&6
7621 else
7622   ac_cv_cflags_warn_all="no, unknown"
7623  ac_ext=c
7624 ac_cpp='$CPP $CPPFLAGS'
7625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7628
7629  ac_save_CFLAGS="$CFLAGS"
7630 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"    #
7631 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7632    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633 /* end confdefs.h.  */
7634
7635 int
7636 main ()
7637 {
7638
7639   ;
7640   return 0;
7641 }
7642 _ACEOF
7643 if ac_fn_c_try_compile "$LINENO"; then :
7644   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7645 fi
7646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7647 done
7648  CFLAGS="$ac_save_CFLAGS"
7649  ac_ext=c
7650 ac_cpp='$CPP $CPPFLAGS'
7651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7654
7655
7656 fi
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7658 $as_echo "$ac_cv_cflags_warn_all" >&6; }
7659 case ".$ac_cv_cflags_warn_all" in
7660      .ok|.ok,*)  ;;
7661    .|.no|.no,*)
7662  ;;
7663    *)
7664    if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7665    then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7666   (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7667   ac_status=$?
7668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7669   test $ac_status = 0; }
7670    else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7671   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7672   ac_status=$?
7673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7674   test $ac_status = 0; }
7675                       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7676    fi
7677  ;;
7678 esac
7679
7680
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7682 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7683 set x ${MAKE-make}
7684 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7685 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7686   $as_echo_n "(cached) " >&6
7687 else
7688   cat >conftest.make <<\_ACEOF
7689 SHELL = /bin/sh
7690 all:
7691         @echo '@@@%%%=$(MAKE)=@@@%%%'
7692 _ACEOF
7693 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7694 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7695   *@@@%%%=?*=@@@%%%*)
7696     eval ac_cv_prog_make_${ac_make}_set=yes;;
7697   *)
7698     eval ac_cv_prog_make_${ac_make}_set=no;;
7699 esac
7700 rm -f conftest.make
7701 fi
7702 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7704 $as_echo "yes" >&6; }
7705   SET_MAKE=
7706 else
7707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7709   SET_MAKE="MAKE=${MAKE-make}"
7710 fi
7711
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7713 $as_echo_n "checking whether ln -s works... " >&6; }
7714 LN_S=$as_ln_s
7715 if test "$LN_S" = "ln -s"; then
7716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7717 $as_echo "yes" >&6; }
7718 else
7719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7720 $as_echo "no, using $LN_S" >&6; }
7721 fi
7722
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7724 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
7725
7726 # Check whether --with-dmalloc was given.
7727 if test "${with_dmalloc+set}" = set; then :
7728   withval=$with_dmalloc; if test "$withval" = yes; then
7729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7730 $as_echo "yes" >&6; }
7731
7732 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7733
7734   LIBS="$LIBS -ldmalloc"
7735   LDFLAGS="$LDFLAGS -g"
7736 else
7737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7739 fi
7740 else
7741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7743 fi
7744
7745
7746
7747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7748 $as_echo_n "checking for __attribute__... " >&6; }
7749 if ${ax_cv___attribute__+:} false; then :
7750   $as_echo_n "(cached) " >&6
7751 else
7752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h.  */
7754 #include <stdlib.h>
7755           static void foo(void) __attribute__ ((unused));
7756           static void
7757           foo(void) {
7758               exit(1);
7759           }
7760
7761 int
7762 main ()
7763 {
7764
7765   ;
7766   return 0;
7767 }
7768 _ACEOF
7769 if ac_fn_c_try_compile "$LINENO"; then :
7770   ax_cv___attribute__=yes
7771 else
7772   ax_cv___attribute__=no
7773
7774 fi
7775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7776
7777 fi
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7779 $as_echo "$ax_cv___attribute__" >&6; }
7780   if test "$ax_cv___attribute__" = "yes"; then
7781
7782 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7783
7784   fi
7785
7786
7787
7788 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7789         if test -n "$ac_tool_prefix"; then
7790   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7791 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7795   $as_echo_n "(cached) " >&6
7796 else
7797   case $PKG_CONFIG in
7798   [\\/]* | ?:[\\/]*)
7799   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7800   ;;
7801   *)
7802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7804 do
7805   IFS=$as_save_IFS
7806   test -z "$as_dir" && as_dir=.
7807     for ac_exec_ext in '' $ac_executable_extensions; do
7808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811     break 2
7812   fi
7813 done
7814   done
7815 IFS=$as_save_IFS
7816
7817   ;;
7818 esac
7819 fi
7820 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7821 if test -n "$PKG_CONFIG"; then
7822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7823 $as_echo "$PKG_CONFIG" >&6; }
7824 else
7825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826 $as_echo "no" >&6; }
7827 fi
7828
7829
7830 fi
7831 if test -z "$ac_cv_path_PKG_CONFIG"; then
7832   ac_pt_PKG_CONFIG=$PKG_CONFIG
7833   # Extract the first word of "pkg-config", so it can be a program name with args.
7834 set dummy pkg-config; ac_word=$2
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7836 $as_echo_n "checking for $ac_word... " >&6; }
7837 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7838   $as_echo_n "(cached) " >&6
7839 else
7840   case $ac_pt_PKG_CONFIG in
7841   [\\/]* | ?:[\\/]*)
7842   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7843   ;;
7844   *)
7845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 for as_dir in $PATH
7847 do
7848   IFS=$as_save_IFS
7849   test -z "$as_dir" && as_dir=.
7850     for ac_exec_ext in '' $ac_executable_extensions; do
7851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7852     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854     break 2
7855   fi
7856 done
7857   done
7858 IFS=$as_save_IFS
7859
7860   ;;
7861 esac
7862 fi
7863 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7864 if test -n "$ac_pt_PKG_CONFIG"; then
7865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7866 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7867 else
7868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7870 fi
7871
7872   if test "x$ac_pt_PKG_CONFIG" = x; then
7873     PKG_CONFIG=""
7874   else
7875     case $cross_compiling:$ac_tool_warned in
7876 yes:)
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7879 ac_tool_warned=yes ;;
7880 esac
7881     PKG_CONFIG=$ac_pt_PKG_CONFIG
7882   fi
7883 else
7884   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7885 fi
7886
7887 fi
7888 if test -n "$PKG_CONFIG"; then
7889         _pkg_min_version=0.9.0
7890         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7891 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7892         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7893                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7894 $as_echo "yes" >&6; }
7895         else
7896                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897 $as_echo "no" >&6; }
7898                 PKG_CONFIG=""
7899         fi
7900
7901 fi
7902
7903 #
7904 # Enable run-time checking.
7905 #
7906 # Check whether --enable-bounds-checking was given.
7907 if test "${enable_bounds_checking+set}" = set; then :
7908   enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7909 else
7910   enable_bounds_checking='no'
7911 fi
7912
7913
7914 if test "$enable_bounds_checking" = yes; then
7915
7916 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7917
7918 fi
7919
7920 #
7921 # Tests for Windows
7922 #
7923
7924
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7926 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7927 if ${ax_cv_c_compiler_ms+:} false; then :
7928   $as_echo_n "(cached) " >&6
7929 else
7930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h.  */
7932
7933 int
7934 main ()
7935 {
7936 #ifndef _MSC_VER
7937        choke me
7938 #endif
7939
7940   ;
7941   return 0;
7942 }
7943 _ACEOF
7944 if ac_fn_c_try_compile "$LINENO"; then :
7945   ax_compiler_ms=yes
7946 else
7947   ax_compiler_ms=no
7948 fi
7949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950 ax_cv_c_compiler_ms=$ax_compiler_ms
7951
7952 fi
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7954 $as_echo "$ax_cv_c_compiler_ms" >&6; }
7955
7956 GDI32_LIBS=''
7957 native_win32_build='no'
7958 cygwin_build='no'
7959 case "${host_os}" in
7960     cygwin* )
7961         cygwin_build='yes'
7962         GDI32_LIBS='-lgdi32'
7963     ;;
7964     mingw* )
7965         native_win32_build='yes'
7966         GDI32_LIBS='-lgdi32'
7967     ;;
7968 esac
7969 if test "${GDI32_LIBS}x" != 'x'; then
7970
7971 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
7972
7973 fi
7974
7975  if test "${GDI32_LIBS}x" != 'x' ; then
7976   WINGDI32_DELEGATE_TRUE=
7977   WINGDI32_DELEGATE_FALSE='#'
7978 else
7979   WINGDI32_DELEGATE_TRUE='#'
7980   WINGDI32_DELEGATE_FALSE=
7981 fi
7982
7983  if test "${native_win32_build}" = 'yes' ; then
7984   WIN32_NATIVE_BUILD_TRUE=
7985   WIN32_NATIVE_BUILD_FALSE='#'
7986 else
7987   WIN32_NATIVE_BUILD_TRUE='#'
7988   WIN32_NATIVE_BUILD_FALSE=
7989 fi
7990
7991  if test "${cygwin_build}" = 'yes' ; then
7992   CYGWIN_BUILD_TRUE=
7993   CYGWIN_BUILD_FALSE='#'
7994 else
7995   CYGWIN_BUILD_TRUE='#'
7996   CYGWIN_BUILD_FALSE=
7997 fi
7998
7999  if test "x${CC}" = 'xcl.exe' ; then
8000   USING_CL_TRUE=
8001   USING_CL_FALSE='#'
8002 else
8003   USING_CL_TRUE='#'
8004   USING_CL_FALSE=
8005 fi
8006
8007
8008 WinPathScript="${srcdirfull}/winpath.sh"
8009
8010
8011 #
8012 # Compiler flags tweaks
8013 #
8014 if test "${GCC}" != "yes"; then
8015     case "${host}" in
8016         *-*-hpux* )
8017             # aCC: HP ANSI C++ B3910B A.03.34
8018             CFLAGS="${CFLAGS} -Wp,-H30000"
8019             if test -n "${CXXFLAGS}"; then
8020                 CXXFLAGS='-AA'
8021             else
8022                 CXXFLAGS="${CXXFLAGS} -AA"
8023             fi
8024         ;;
8025         *-dec-osf5.* )
8026             # Compaq alphaev68-dec-osf5.1 compiler
8027             if test -n "${CXXFLAGS}"; then
8028                 CXXFLAGS='-std strict_ansi -noimplicit_include'
8029             else
8030                 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8031             fi
8032   esac
8033 fi
8034
8035 # Check for lazy-loading.
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
8037 $as_echo_n "checking for linker lazyload option... " >&6; }
8038 if ${im_cv_ld_lazyload+:} false; then :
8039   $as_echo_n "(cached) " >&6
8040 else
8041
8042 im_cv_ld_lazyload='none'
8043 case "${host}" in
8044   *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8045     if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8046        im_cv_ld_lazyload='-Wl,-zlazyload'
8047     fi
8048     ;;
8049 esac
8050
8051 fi
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
8053 $as_echo "$im_cv_ld_lazyload" >&6; }
8054 if test "${im_cv_ld_lazyload}" != 'none' ; then
8055   if test -z "${LDFLAGS}" ; then
8056     LDFLAGS="${im_cv_ld_lazyload}"
8057   else
8058     LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8059   fi
8060 fi
8061
8062 case "$host" in
8063 *darwin* | *-macos10*)
8064     # Check whether --enable-osx-universal-binary was given.
8065 if test "${enable_osx_universal_binary+set}" = set; then :
8066   enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8067 else
8068   build_osxuniversal=no
8069 fi
8070
8071
8072   if test "${build_osxuniversal}" != no ; then
8073     if test "$enable_dependency_tracking" != no ; then
8074       as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
8075 Please re-run configure with these options:
8076   --disable-dependency-tracking --enable-osx-universal-binary
8077         " "$LINENO" 5
8078     fi
8079     CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8080     CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8081     LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8082   fi
8083   ;;
8084 esac
8085
8086 # Enable support for threads
8087
8088 # Check whether --with-threads was given.
8089 if test "${with_threads+set}" = set; then :
8090   withval=$with_threads; with_threads=$withval
8091 else
8092   with_threads='yes'
8093 fi
8094
8095
8096 have_threads=no
8097 if test "$with_threads" != 'no'; then
8098
8099
8100
8101 ac_ext=c
8102 ac_cpp='$CPP $CPPFLAGS'
8103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8106
8107 ax_pthread_ok=no
8108
8109 # We used to check for pthread.h first, but this fails if pthread.h
8110 # requires special compiler flags (e.g. on True64 or Sequent).
8111 # It gets checked for in the link test anyway.
8112
8113 # First of all, check if the user has set any of the PTHREAD_LIBS,
8114 # etcetera environment variables, and if threads linking works using
8115 # them:
8116 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8117         save_CFLAGS="$CFLAGS"
8118         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8119         save_LIBS="$LIBS"
8120         LIBS="$PTHREAD_LIBS $LIBS"
8121         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8122 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8123         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124 /* end confdefs.h.  */
8125
8126 /* Override any GCC internal prototype to avoid an error.
8127    Use char because int might match the return type of a GCC
8128    builtin and then its argument prototype would still apply.  */
8129 #ifdef __cplusplus
8130 extern "C"
8131 #endif
8132 char pthread_join ();
8133 int
8134 main ()
8135 {
8136 return pthread_join ();
8137   ;
8138   return 0;
8139 }
8140 _ACEOF
8141 if ac_fn_c_try_link "$LINENO"; then :
8142   ax_pthread_ok=yes
8143 fi
8144 rm -f core conftest.err conftest.$ac_objext \
8145     conftest$ac_exeext conftest.$ac_ext
8146         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8147 $as_echo "$ax_pthread_ok" >&6; }
8148         if test x"$ax_pthread_ok" = xno; then
8149                 PTHREAD_LIBS=""
8150                 PTHREAD_CFLAGS=""
8151         fi
8152         LIBS="$save_LIBS"
8153         CFLAGS="$save_CFLAGS"
8154 fi
8155
8156 # We must check for the threads library under a number of different
8157 # names; the ordering is very important because some systems
8158 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8159 # libraries is broken (non-POSIX).
8160
8161 # Create a list of thread flags to try.  Items starting with a "-" are
8162 # C compiler flags, and other items are library names, except for "none"
8163 # which indicates that we try without any flags at all, and "pthread-config"
8164 # which is a program returning the flags for the Pth emulation library.
8165
8166 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8167
8168 # The ordering *is* (sometimes) important.  Some notes on the
8169 # individual items follow:
8170
8171 # pthreads: AIX (must check this before -lpthread)
8172 # none: in case threads are in libc; should be tried before -Kthread and
8173 #       other compiler flags to prevent continual compiler warnings
8174 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8175 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8176 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8177 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8178 # -pthreads: Solaris/gcc
8179 # -mthreads: Mingw32/gcc, Lynx/gcc
8180 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8181 #      doesn't hurt to check since this sometimes defines pthreads too;
8182 #      also defines -D_REENTRANT)
8183 #      ... -mt is also the pthreads flag for HP/aCC
8184 # pthread: Linux, etcetera
8185 # --thread-safe: KAI C++
8186 # pthread-config: use pthread-config program (for GNU Pth library)
8187
8188 case "${host_cpu}-${host_os}" in
8189         *solaris*)
8190
8191         # On Solaris (at least, for some versions), libc contains stubbed
8192         # (non-functional) versions of the pthreads routines, so link-based
8193         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
8194         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
8195         # a function called by this macro, so we could check for that, but
8196         # who knows whether they'll stub that too in a future libc.)  So,
8197         # we'll just look for -pthreads and -lpthread first:
8198
8199         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8200         ;;
8201
8202         *-darwin*)
8203         ax_pthread_flags="-pthread $ax_pthread_flags"
8204         ;;
8205 esac
8206
8207 if test x"$ax_pthread_ok" = xno; then
8208 for flag in $ax_pthread_flags; do
8209
8210         case $flag in
8211                 none)
8212                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8213 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8214                 ;;
8215
8216                 -*)
8217                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8218 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8219                 PTHREAD_CFLAGS="$flag"
8220                 ;;
8221
8222                 pthread-config)
8223                 # Extract the first word of "pthread-config", so it can be a program name with args.
8224 set dummy pthread-config; ac_word=$2
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226 $as_echo_n "checking for $ac_word... " >&6; }
8227 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8228   $as_echo_n "(cached) " >&6
8229 else
8230   if test -n "$ax_pthread_config"; then
8231   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8232 else
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 for as_dir in $PATH
8235 do
8236   IFS=$as_save_IFS
8237   test -z "$as_dir" && as_dir=.
8238     for ac_exec_ext in '' $ac_executable_extensions; do
8239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8240     ac_cv_prog_ax_pthread_config="yes"
8241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8242     break 2
8243   fi
8244 done
8245   done
8246 IFS=$as_save_IFS
8247
8248   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8249 fi
8250 fi
8251 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8252 if test -n "$ax_pthread_config"; then
8253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8254 $as_echo "$ax_pthread_config" >&6; }
8255 else
8256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 $as_echo "no" >&6; }
8258 fi
8259
8260
8261                 if test x"$ax_pthread_config" = xno; then continue; fi
8262                 PTHREAD_CFLAGS="`pthread-config --cflags`"
8263                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8264                 ;;
8265
8266                 *)
8267                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8268 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8269                 PTHREAD_LIBS="-l$flag"
8270                 ;;
8271         esac
8272
8273         save_LIBS="$LIBS"
8274         save_CFLAGS="$CFLAGS"
8275         LIBS="$PTHREAD_LIBS $LIBS"
8276         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8277
8278         # Check for various functions.  We must include pthread.h,
8279         # since some functions may be macros.  (On the Sequent, we
8280         # need a special flag -Kthread to make this header compile.)
8281         # We check for pthread_join because it is in -lpthread on IRIX
8282         # while pthread_create is in libc.  We check for pthread_attr_init
8283         # due to DEC craziness with -lpthreads.  We check for
8284         # pthread_cleanup_push because it is one of the few pthread
8285         # functions on Solaris that doesn't have a non-functional libc stub.
8286         # We try pthread_create on general principles.
8287         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h.  */
8289 #include <pthread.h>
8290                      static void routine(void* a) {a=0;}
8291                      static void* start_routine(void* a) {return a;}
8292 int
8293 main ()
8294 {
8295 pthread_t th; pthread_attr_t attr;
8296                      pthread_create(&th,0,start_routine,0);
8297                      pthread_join(th, 0);
8298                      pthread_attr_init(&attr);
8299                      pthread_cleanup_push(routine, 0);
8300                      pthread_cleanup_pop(0);
8301   ;
8302   return 0;
8303 }
8304 _ACEOF
8305 if ac_fn_c_try_link "$LINENO"; then :
8306   ax_pthread_ok=yes
8307 fi
8308 rm -f core conftest.err conftest.$ac_objext \
8309     conftest$ac_exeext conftest.$ac_ext
8310
8311         LIBS="$save_LIBS"
8312         CFLAGS="$save_CFLAGS"
8313
8314         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8315 $as_echo "$ax_pthread_ok" >&6; }
8316         if test "x$ax_pthread_ok" = xyes; then
8317                 break;
8318         fi
8319
8320         PTHREAD_LIBS=""
8321         PTHREAD_CFLAGS=""
8322 done
8323 fi
8324
8325 # Various other checks:
8326 if test "x$ax_pthread_ok" = xyes; then
8327         save_LIBS="$LIBS"
8328         LIBS="$PTHREAD_LIBS $LIBS"
8329         save_CFLAGS="$CFLAGS"
8330         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8331
8332         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8333         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8334 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8335         attr_name=unknown
8336         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8337             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338 /* end confdefs.h.  */
8339 #include <pthread.h>
8340 int
8341 main ()
8342 {
8343 int attr=$attr; return attr;
8344   ;
8345   return 0;
8346 }
8347 _ACEOF
8348 if ac_fn_c_try_link "$LINENO"; then :
8349   attr_name=$attr; break
8350 fi
8351 rm -f core conftest.err conftest.$ac_objext \
8352     conftest$ac_exeext conftest.$ac_ext
8353         done
8354         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8355 $as_echo "$attr_name" >&6; }
8356         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8357
8358 cat >>confdefs.h <<_ACEOF
8359 #define PTHREAD_CREATE_JOINABLE $attr_name
8360 _ACEOF
8361
8362         fi
8363
8364         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8365 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8366         flag=no
8367         case "${host_cpu}-${host_os}" in
8368             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8369             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8370         esac
8371         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8372 $as_echo "${flag}" >&6; }
8373         if test "x$flag" != xno; then
8374             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8375         fi
8376
8377         LIBS="$save_LIBS"
8378         CFLAGS="$save_CFLAGS"
8379
8380         # More AIX lossage: must compile with xlc_r or cc_r
8381         if test x"$GCC" != xyes; then
8382           for ac_prog in xlc_r cc_r
8383 do
8384   # Extract the first word of "$ac_prog", so it can be a program name with args.
8385 set dummy $ac_prog; ac_word=$2
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387 $as_echo_n "checking for $ac_word... " >&6; }
8388 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8389   $as_echo_n "(cached) " >&6
8390 else
8391   if test -n "$PTHREAD_CC"; then
8392   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8393 else
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395 for as_dir in $PATH
8396 do
8397   IFS=$as_save_IFS
8398   test -z "$as_dir" && as_dir=.
8399     for ac_exec_ext in '' $ac_executable_extensions; do
8400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8401     ac_cv_prog_PTHREAD_CC="$ac_prog"
8402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8403     break 2
8404   fi
8405 done
8406   done
8407 IFS=$as_save_IFS
8408
8409 fi
8410 fi
8411 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8412 if test -n "$PTHREAD_CC"; then
8413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8414 $as_echo "$PTHREAD_CC" >&6; }
8415 else
8416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8418 fi
8419
8420
8421   test -n "$PTHREAD_CC" && break
8422 done
8423 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8424
8425         else
8426           PTHREAD_CC=$CC
8427         fi
8428 else
8429         PTHREAD_CC="$CC"
8430 fi
8431
8432
8433
8434
8435
8436 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8437 if test x"$ax_pthread_ok" = xyes; then
8438
8439 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8440
8441         :
8442 else
8443         ax_pthread_ok=no
8444
8445 fi
8446 ac_ext=c
8447 ac_cpp='$CPP $CPPFLAGS'
8448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8451
8452
8453     if test "$ax_pthread_ok" = yes; then
8454         have_threads=yes
8455         DEF_THREAD="$PTHREAD_CFLAGS"
8456         CFLAGS="$CFLAGS $DEF_THREAD"
8457         CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8458         if test "$CC" != "$PTHREAD_CC"; then
8459             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
8460 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8461             CC="$PTHREAD_CC"
8462         fi
8463
8464 $as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8465
8466     fi
8467 fi
8468
8469 # Enable support for OpenMP
8470 if test "$have_threads" != 'yes'; then
8471   ac_cv_prog_c_openmp=unsupported
8472 fi
8473
8474   OPENMP_CFLAGS=
8475   # Check whether --enable-openmp was given.
8476 if test "${enable_openmp+set}" = set; then :
8477   enableval=$enable_openmp;
8478 fi
8479
8480   if test "$enable_openmp" != no; then
8481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
8482 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
8483 if ${ac_cv_prog_c_openmp+:} false; then :
8484   $as_echo_n "(cached) " >&6
8485 else
8486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h.  */
8488
8489 #ifndef _OPENMP
8490  choke me
8491 #endif
8492 #include <omp.h>
8493 int main () { return omp_get_num_threads (); }
8494
8495 _ACEOF
8496 if ac_fn_c_try_link "$LINENO"; then :
8497   ac_cv_prog_c_openmp='none needed'
8498 else
8499   ac_cv_prog_c_openmp='unsupported'
8500                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8501             ac_save_CFLAGS=$CFLAGS
8502             CFLAGS="$CFLAGS $ac_option"
8503             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h.  */
8505
8506 #ifndef _OPENMP
8507  choke me
8508 #endif
8509 #include <omp.h>
8510 int main () { return omp_get_num_threads (); }
8511
8512 _ACEOF
8513 if ac_fn_c_try_link "$LINENO"; then :
8514   ac_cv_prog_c_openmp=$ac_option
8515 fi
8516 rm -f core conftest.err conftest.$ac_objext \
8517     conftest$ac_exeext conftest.$ac_ext
8518             CFLAGS=$ac_save_CFLAGS
8519             if test "$ac_cv_prog_c_openmp" != unsupported; then
8520               break
8521             fi
8522           done
8523 fi
8524 rm -f core conftest.err conftest.$ac_objext \
8525     conftest$ac_exeext conftest.$ac_ext
8526 fi
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
8528 $as_echo "$ac_cv_prog_c_openmp" >&6; }
8529     case $ac_cv_prog_c_openmp in #(
8530       "none needed" | unsupported)
8531         ;; #(
8532       *)
8533         OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
8534     esac
8535   fi
8536
8537
8538 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8539 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8540
8541 if test "$enable_openmp" != no; then
8542   if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8543     MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8544   fi
8545 fi
8546
8547 # Enable support for OpenCL
8548
8549
8550
8551 ac_ext=c
8552 ac_cpp='$CPP $CPPFLAGS'
8553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8556
8557 ax_pthread_ok=no
8558
8559 # We used to check for pthread.h first, but this fails if pthread.h
8560 # requires special compiler flags (e.g. on True64 or Sequent).
8561 # It gets checked for in the link test anyway.
8562
8563 # First of all, check if the user has set any of the PTHREAD_LIBS,
8564 # etcetera environment variables, and if threads linking works using
8565 # them:
8566 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8567         save_CFLAGS="$CFLAGS"
8568         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8569         save_LIBS="$LIBS"
8570         LIBS="$PTHREAD_LIBS $LIBS"
8571         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8572 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8573         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8574 /* end confdefs.h.  */
8575
8576 /* Override any GCC internal prototype to avoid an error.
8577    Use char because int might match the return type of a GCC
8578    builtin and then its argument prototype would still apply.  */
8579 #ifdef __cplusplus
8580 extern "C"
8581 #endif
8582 char pthread_join ();
8583 int
8584 main ()
8585 {
8586 return pthread_join ();
8587   ;
8588   return 0;
8589 }
8590 _ACEOF
8591 if ac_fn_c_try_link "$LINENO"; then :
8592   ax_pthread_ok=yes
8593 fi
8594 rm -f core conftest.err conftest.$ac_objext \
8595     conftest$ac_exeext conftest.$ac_ext
8596         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8597 $as_echo "$ax_pthread_ok" >&6; }
8598         if test x"$ax_pthread_ok" = xno; then
8599                 PTHREAD_LIBS=""
8600                 PTHREAD_CFLAGS=""
8601         fi
8602         LIBS="$save_LIBS"
8603         CFLAGS="$save_CFLAGS"
8604 fi
8605
8606 # We must check for the threads library under a number of different
8607 # names; the ordering is very important because some systems
8608 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8609 # libraries is broken (non-POSIX).
8610
8611 # Create a list of thread flags to try.  Items starting with a "-" are
8612 # C compiler flags, and other items are library names, except for "none"
8613 # which indicates that we try without any flags at all, and "pthread-config"
8614 # which is a program returning the flags for the Pth emulation library.
8615
8616 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8617
8618 # The ordering *is* (sometimes) important.  Some notes on the
8619 # individual items follow:
8620
8621 # pthreads: AIX (must check this before -lpthread)
8622 # none: in case threads are in libc; should be tried before -Kthread and
8623 #       other compiler flags to prevent continual compiler warnings
8624 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8625 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8626 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8627 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8628 # -pthreads: Solaris/gcc
8629 # -mthreads: Mingw32/gcc, Lynx/gcc
8630 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8631 #      doesn't hurt to check since this sometimes defines pthreads too;
8632 #      also defines -D_REENTRANT)
8633 #      ... -mt is also the pthreads flag for HP/aCC
8634 # pthread: Linux, etcetera
8635 # --thread-safe: KAI C++
8636 # pthread-config: use pthread-config program (for GNU Pth library)
8637
8638 case "${host_cpu}-${host_os}" in
8639         *solaris*)
8640
8641         # On Solaris (at least, for some versions), libc contains stubbed
8642         # (non-functional) versions of the pthreads routines, so link-based
8643         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
8644         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
8645         # a function called by this macro, so we could check for that, but
8646         # who knows whether they'll stub that too in a future libc.)  So,
8647         # we'll just look for -pthreads and -lpthread first:
8648
8649         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8650         ;;
8651
8652         *-darwin*)
8653         ax_pthread_flags="-pthread $ax_pthread_flags"
8654         ;;
8655 esac
8656
8657 if test x"$ax_pthread_ok" = xno; then
8658 for flag in $ax_pthread_flags; do
8659
8660         case $flag in
8661                 none)
8662                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8663 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8664                 ;;
8665
8666                 -*)
8667                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8668 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8669                 PTHREAD_CFLAGS="$flag"
8670                 ;;
8671
8672                 pthread-config)
8673                 # Extract the first word of "pthread-config", so it can be a program name with args.
8674 set dummy pthread-config; ac_word=$2
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676 $as_echo_n "checking for $ac_word... " >&6; }
8677 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8678   $as_echo_n "(cached) " >&6
8679 else
8680   if test -n "$ax_pthread_config"; then
8681   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8682 else
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 for as_dir in $PATH
8685 do
8686   IFS=$as_save_IFS
8687   test -z "$as_dir" && as_dir=.
8688     for ac_exec_ext in '' $ac_executable_extensions; do
8689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8690     ac_cv_prog_ax_pthread_config="yes"
8691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8692     break 2
8693   fi
8694 done
8695   done
8696 IFS=$as_save_IFS
8697
8698   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8699 fi
8700 fi
8701 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8702 if test -n "$ax_pthread_config"; then
8703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8704 $as_echo "$ax_pthread_config" >&6; }
8705 else
8706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8707 $as_echo "no" >&6; }
8708 fi
8709
8710
8711                 if test x"$ax_pthread_config" = xno; then continue; fi
8712                 PTHREAD_CFLAGS="`pthread-config --cflags`"
8713                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8714                 ;;
8715
8716                 *)
8717                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8718 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8719                 PTHREAD_LIBS="-l$flag"
8720                 ;;
8721         esac
8722
8723         save_LIBS="$LIBS"
8724         save_CFLAGS="$CFLAGS"
8725         LIBS="$PTHREAD_LIBS $LIBS"
8726         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8727
8728         # Check for various functions.  We must include pthread.h,
8729         # since some functions may be macros.  (On the Sequent, we
8730         # need a special flag -Kthread to make this header compile.)
8731         # We check for pthread_join because it is in -lpthread on IRIX
8732         # while pthread_create is in libc.  We check for pthread_attr_init
8733         # due to DEC craziness with -lpthreads.  We check for
8734         # pthread_cleanup_push because it is one of the few pthread
8735         # functions on Solaris that doesn't have a non-functional libc stub.
8736         # We try pthread_create on general principles.
8737         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h.  */
8739 #include <pthread.h>
8740                      static void routine(void* a) {a=0;}
8741                      static void* start_routine(void* a) {return a;}
8742 int
8743 main ()
8744 {
8745 pthread_t th; pthread_attr_t attr;
8746                      pthread_create(&th,0,start_routine,0);
8747                      pthread_join(th, 0);
8748                      pthread_attr_init(&attr);
8749                      pthread_cleanup_push(routine, 0);
8750                      pthread_cleanup_pop(0);
8751   ;
8752   return 0;
8753 }
8754 _ACEOF
8755 if ac_fn_c_try_link "$LINENO"; then :
8756   ax_pthread_ok=yes
8757 fi
8758 rm -f core conftest.err conftest.$ac_objext \
8759     conftest$ac_exeext conftest.$ac_ext
8760
8761         LIBS="$save_LIBS"
8762         CFLAGS="$save_CFLAGS"
8763
8764         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8765 $as_echo "$ax_pthread_ok" >&6; }
8766         if test "x$ax_pthread_ok" = xyes; then
8767                 break;
8768         fi
8769
8770         PTHREAD_LIBS=""
8771         PTHREAD_CFLAGS=""
8772 done
8773 fi
8774
8775 # Various other checks:
8776 if test "x$ax_pthread_ok" = xyes; then
8777         save_LIBS="$LIBS"
8778         LIBS="$PTHREAD_LIBS $LIBS"
8779         save_CFLAGS="$CFLAGS"
8780         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8781
8782         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8783         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8784 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8785         attr_name=unknown
8786         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8787             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h.  */
8789 #include <pthread.h>
8790 int
8791 main ()
8792 {
8793 int attr=$attr; return attr;
8794   ;
8795   return 0;
8796 }
8797 _ACEOF
8798 if ac_fn_c_try_link "$LINENO"; then :
8799   attr_name=$attr; break
8800 fi
8801 rm -f core conftest.err conftest.$ac_objext \
8802     conftest$ac_exeext conftest.$ac_ext
8803         done
8804         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8805 $as_echo "$attr_name" >&6; }
8806         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8807
8808 cat >>confdefs.h <<_ACEOF
8809 #define PTHREAD_CREATE_JOINABLE $attr_name
8810 _ACEOF
8811
8812         fi
8813
8814         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8815 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8816         flag=no
8817         case "${host_cpu}-${host_os}" in
8818             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8819             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8820         esac
8821         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8822 $as_echo "${flag}" >&6; }
8823         if test "x$flag" != xno; then
8824             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8825         fi
8826
8827         LIBS="$save_LIBS"
8828         CFLAGS="$save_CFLAGS"
8829
8830         # More AIX lossage: must compile with xlc_r or cc_r
8831         if test x"$GCC" != xyes; then
8832           for ac_prog in xlc_r cc_r
8833 do
8834   # Extract the first word of "$ac_prog", so it can be a program name with args.
8835 set dummy $ac_prog; ac_word=$2
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837 $as_echo_n "checking for $ac_word... " >&6; }
8838 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8839   $as_echo_n "(cached) " >&6
8840 else
8841   if test -n "$PTHREAD_CC"; then
8842   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8843 else
8844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845 for as_dir in $PATH
8846 do
8847   IFS=$as_save_IFS
8848   test -z "$as_dir" && as_dir=.
8849     for ac_exec_ext in '' $ac_executable_extensions; do
8850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8851     ac_cv_prog_PTHREAD_CC="$ac_prog"
8852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8853     break 2
8854   fi
8855 done
8856   done
8857 IFS=$as_save_IFS
8858
8859 fi
8860 fi
8861 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8862 if test -n "$PTHREAD_CC"; then
8863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8864 $as_echo "$PTHREAD_CC" >&6; }
8865 else
8866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867 $as_echo "no" >&6; }
8868 fi
8869
8870
8871   test -n "$PTHREAD_CC" && break
8872 done
8873 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8874
8875         else
8876           PTHREAD_CC=$CC
8877         fi
8878 else
8879         PTHREAD_CC="$CC"
8880 fi
8881
8882
8883
8884
8885
8886 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8887 if test x"$ax_pthread_ok" = xyes; then
8888
8889 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8890
8891         :
8892 else
8893         ax_pthread_ok=no
8894
8895 fi
8896 ac_ext=c
8897 ac_cpp='$CPP $CPPFLAGS'
8898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8901
8902
8903
8904 # Check whether --enable-opencl was given.
8905 if test "${enable_opencl+set}" = set; then :
8906   enableval=$enable_opencl; disable_opencl=$enableval
8907 else
8908   disable_opencl='yes'
8909 fi
8910
8911
8912 if test "$disable_opencl" = 'yes'; then
8913   ac_ext=c
8914 ac_cpp='$CPP $CPPFLAGS'
8915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8918
8919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8920 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8921 if ${ax_cv_c_compiler_ms+:} false; then :
8922   $as_echo_n "(cached) " >&6
8923 else
8924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h.  */
8926
8927 int
8928 main ()
8929 {
8930 #ifndef _MSC_VER
8931        choke me
8932 #endif
8933
8934   ;
8935   return 0;
8936 }
8937 _ACEOF
8938 if ac_fn_c_try_compile "$LINENO"; then :
8939   ax_compiler_ms=yes
8940 else
8941   ax_compiler_ms=no
8942 fi
8943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8944 ax_cv_c_compiler_ms=$ax_compiler_ms
8945
8946 fi
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8948 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8949   if test X$ax_compiler_ms = Xno; then :
8950   CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8951 fi
8952
8953   ax_save_CPPFLAGS=$CPPFLAGS
8954   CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8955   for ac_header in CL/cl.h OpenCL/cl.h
8956 do :
8957   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8958 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8959 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8960   cat >>confdefs.h <<_ACEOF
8961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8962 _ACEOF
8963
8964 fi
8965
8966 done
8967
8968   CPPFLAGS=$ax_save_CPPFLAGS
8969
8970   for ac_header in windows.h
8971 do :
8972   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8973 if test "x$ac_cv_header_windows_h" = xyes; then :
8974   cat >>confdefs.h <<_ACEOF
8975 #define HAVE_WINDOWS_H 1
8976 _ACEOF
8977
8978 fi
8979
8980 done
8981
8982
8983
8984
8985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
8986 $as_echo_n "checking for OpenCL library... " >&6; }
8987 if ${ax_cv_check_cl_libcl+:} false; then :
8988   $as_echo_n "(cached) " >&6
8989 else
8990   ax_cv_check_cl_libcl=no
8991   case $host_cpu in
8992     x86_64) ax_check_cl_libdir=lib64 ;;
8993     *)      ax_check_cl_libdir=lib ;;
8994   esac
8995   ax_save_CPPFLAGS=$CPPFLAGS
8996   CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8997   ax_save_LIBS=$LIBS
8998   LIBS=""
8999   ax_check_libs="-lOpenCL -lCL -lclparser"
9000   for ax_lib in $ax_check_libs; do
9001     if test X$ax_compiler_ms = Xyes; then :
9002   ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9003 else
9004   ax_try_lib=$ax_lib
9005 fi
9006     LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h.  */
9009
9010   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9011   #   include <windows.h>
9012   # endif
9013   # ifdef HAVE_CL_CL_H
9014   #   include <CL/cl.h>
9015   # elif defined(HAVE_OPENCL_CL_H)
9016   #   include <OpenCL/cl.h>
9017   # else
9018   #   error no CL.h
9019   # endif
9020 int
9021 main ()
9022 {
9023 clCreateContextFromType(0,0,0,0,0)
9024   ;
9025   return 0;
9026 }
9027 _ACEOF
9028 if ac_fn_c_try_link "$LINENO"; then :
9029   ax_cv_check_cl_libcl=$ax_try_lib; break
9030 else
9031   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"
9032                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h.  */
9034
9035   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9036   #   include <windows.h>
9037   # endif
9038   # ifdef HAVE_CL_CL_H
9039   #   include <CL/cl.h>
9040   # elif defined(HAVE_OPENCL_CL_H)
9041   #   include <OpenCL/cl.h>
9042   # else
9043   #   error no CL.h
9044   # endif
9045 int
9046 main ()
9047 {
9048 clCreateContextFromType(0,0,0,0,0)
9049   ;
9050   return 0;
9051 }
9052 _ACEOF
9053 if ac_fn_c_try_link "$LINENO"; then :
9054   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9055 else
9056   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"
9057                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058 /* end confdefs.h.  */
9059
9060   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9061   #   include <windows.h>
9062   # endif
9063   # ifdef HAVE_CL_CL_H
9064   #   include <CL/cl.h>
9065   # elif defined(HAVE_OPENCL_CL_H)
9066   #   include <OpenCL/cl.h>
9067   # else
9068   #   error no CL.h
9069   # endif
9070 int
9071 main ()
9072 {
9073 clCreateContextFromType(0,0,0,0,0)
9074   ;
9075   return 0;
9076 }
9077 _ACEOF
9078 if ac_fn_c_try_link "$LINENO"; then :
9079   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9080 fi
9081 rm -f core conftest.err conftest.$ac_objext \
9082     conftest$ac_exeext conftest.$ac_ext
9083 fi
9084 rm -f core conftest.err conftest.$ac_objext \
9085     conftest$ac_exeext conftest.$ac_ext
9086 fi
9087 rm -f core conftest.err conftest.$ac_objext \
9088     conftest$ac_exeext conftest.$ac_ext
9089   done
9090
9091   if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9092   LIBS='-Wl,-framework,OpenCL'
9093         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094 /* end confdefs.h.  */
9095
9096   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9097   #   include <windows.h>
9098   # endif
9099   # ifdef HAVE_CL_CL_H
9100   #   include <CL/cl.h>
9101   # elif defined(HAVE_OPENCL_CL_H)
9102   #   include <OpenCL/cl.h>
9103   # else
9104   #   error no CL.h
9105   # endif
9106 int
9107 main ()
9108 {
9109 clCreateContextFromType(0,0,0,0,0)
9110   ;
9111   return 0;
9112 }
9113 _ACEOF
9114 if ac_fn_c_try_link "$LINENO"; then :
9115   ax_cv_check_cl_libcl=$LIBS
9116 fi
9117 rm -f core conftest.err conftest.$ac_objext \
9118     conftest$ac_exeext conftest.$ac_ext
9119 fi
9120
9121   LIBS=$ax_save_LIBS
9122   CPPFLAGS=$ax_save_CPPFLAGS
9123 fi
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9125 $as_echo "$ax_cv_check_cl_libcl" >&6; }
9126
9127   if test "X$ax_cv_check_cl_libcl" = Xno; then :
9128   no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9129 else
9130   CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9131 $as_echo "#define _OPENCL 1" >>confdefs.h
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 fi
9141
9142
9143
9144
9145 CFLAGS="$CL_CFLAGS $CFLAGS"
9146 LIBS="$CL_LIBS $LIBS"
9147
9148 if test "$enable_opencl" != no; then
9149   if test "_OPENCL" = '1'; then
9150     MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9151   fi
9152 fi
9153
9154 ########
9155 #
9156 # Check for large file support
9157 #
9158 ########
9159 # Check whether --enable-largefile was given.
9160 if test "${enable_largefile+set}" = set; then :
9161   enableval=$enable_largefile;
9162 fi
9163
9164 if test "$enable_largefile" != no; then
9165
9166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9167 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9168 if ${ac_cv_sys_largefile_CC+:} false; then :
9169   $as_echo_n "(cached) " >&6
9170 else
9171   ac_cv_sys_largefile_CC=no
9172      if test "$GCC" != yes; then
9173        ac_save_CC=$CC
9174        while :; do
9175          # IRIX 6.2 and later do not support large files by default,
9176          # so use the C compiler's -n32 option if that helps.
9177          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178 /* end confdefs.h.  */
9179 #include <sys/types.h>
9180  /* Check that off_t can represent 2**63 - 1 correctly.
9181     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9182     since some C++ compilers masquerading as C compilers
9183     incorrectly reject 9223372036854775807.  */
9184 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9185   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9186                        && LARGE_OFF_T % 2147483647 == 1)
9187                       ? 1 : -1];
9188 int
9189 main ()
9190 {
9191
9192   ;
9193   return 0;
9194 }
9195 _ACEOF
9196          if ac_fn_c_try_compile "$LINENO"; then :
9197   break
9198 fi
9199 rm -f core conftest.err conftest.$ac_objext
9200          CC="$CC -n32"
9201          if ac_fn_c_try_compile "$LINENO"; then :
9202   ac_cv_sys_largefile_CC=' -n32'; break
9203 fi
9204 rm -f core conftest.err conftest.$ac_objext
9205          break
9206        done
9207        CC=$ac_save_CC
9208        rm -f conftest.$ac_ext
9209     fi
9210 fi
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9212 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9213   if test "$ac_cv_sys_largefile_CC" != no; then
9214     CC=$CC$ac_cv_sys_largefile_CC
9215   fi
9216
9217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9218 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9219 if ${ac_cv_sys_file_offset_bits+:} false; then :
9220   $as_echo_n "(cached) " >&6
9221 else
9222   while :; do
9223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224 /* end confdefs.h.  */
9225 #include <sys/types.h>
9226  /* Check that off_t can represent 2**63 - 1 correctly.
9227     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9228     since some C++ compilers masquerading as C compilers
9229     incorrectly reject 9223372036854775807.  */
9230 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9231   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9232                        && LARGE_OFF_T % 2147483647 == 1)
9233                       ? 1 : -1];
9234 int
9235 main ()
9236 {
9237
9238   ;
9239   return 0;
9240 }
9241 _ACEOF
9242 if ac_fn_c_try_compile "$LINENO"; then :
9243   ac_cv_sys_file_offset_bits=no; break
9244 fi
9245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h.  */
9248 #define _FILE_OFFSET_BITS 64
9249 #include <sys/types.h>
9250  /* Check that off_t can represent 2**63 - 1 correctly.
9251     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9252     since some C++ compilers masquerading as C compilers
9253     incorrectly reject 9223372036854775807.  */
9254 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9255   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9256                        && LARGE_OFF_T % 2147483647 == 1)
9257                       ? 1 : -1];
9258 int
9259 main ()
9260 {
9261
9262   ;
9263   return 0;
9264 }
9265 _ACEOF
9266 if ac_fn_c_try_compile "$LINENO"; then :
9267   ac_cv_sys_file_offset_bits=64; break
9268 fi
9269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9270   ac_cv_sys_file_offset_bits=unknown
9271   break
9272 done
9273 fi
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9275 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9276 case $ac_cv_sys_file_offset_bits in #(
9277   no | unknown) ;;
9278   *)
9279 cat >>confdefs.h <<_ACEOF
9280 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9281 _ACEOF
9282 ;;
9283 esac
9284 rm -rf conftest*
9285   if test $ac_cv_sys_file_offset_bits = unknown; then
9286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9287 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9288 if ${ac_cv_sys_large_files+:} false; then :
9289   $as_echo_n "(cached) " >&6
9290 else
9291   while :; do
9292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293 /* end confdefs.h.  */
9294 #include <sys/types.h>
9295  /* Check that off_t can represent 2**63 - 1 correctly.
9296     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9297     since some C++ compilers masquerading as C compilers
9298     incorrectly reject 9223372036854775807.  */
9299 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9300   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9301                        && LARGE_OFF_T % 2147483647 == 1)
9302                       ? 1 : -1];
9303 int
9304 main ()
9305 {
9306
9307   ;
9308   return 0;
9309 }
9310 _ACEOF
9311 if ac_fn_c_try_compile "$LINENO"; then :
9312   ac_cv_sys_large_files=no; break
9313 fi
9314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316 /* end confdefs.h.  */
9317 #define _LARGE_FILES 1
9318 #include <sys/types.h>
9319  /* Check that off_t can represent 2**63 - 1 correctly.
9320     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9321     since some C++ compilers masquerading as C compilers
9322     incorrectly reject 9223372036854775807.  */
9323 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9324   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9325                        && LARGE_OFF_T % 2147483647 == 1)
9326                       ? 1 : -1];
9327 int
9328 main ()
9329 {
9330
9331   ;
9332   return 0;
9333 }
9334 _ACEOF
9335 if ac_fn_c_try_compile "$LINENO"; then :
9336   ac_cv_sys_large_files=1; break
9337 fi
9338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9339   ac_cv_sys_large_files=unknown
9340   break
9341 done
9342 fi
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9344 $as_echo "$ac_cv_sys_large_files" >&6; }
9345 case $ac_cv_sys_large_files in #(
9346   no | unknown) ;;
9347   *)
9348 cat >>confdefs.h <<_ACEOF
9349 #define _LARGE_FILES $ac_cv_sys_large_files
9350 _ACEOF
9351 ;;
9352 esac
9353 rm -rf conftest*
9354   fi
9355 fi
9356
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9358 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
9359 if ${ac_cv_sys_largefile_source+:} false; then :
9360   $as_echo_n "(cached) " >&6
9361 else
9362   while :; do
9363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h.  */
9365 #include <sys/types.h> /* for off_t */
9366      #include <stdio.h>
9367 int
9368 main ()
9369 {
9370 int (*fp) (FILE *, off_t, int) = fseeko;
9371      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9372   ;
9373   return 0;
9374 }
9375 _ACEOF
9376 if ac_fn_c_try_link "$LINENO"; then :
9377   ac_cv_sys_largefile_source=no; break
9378 fi
9379 rm -f core conftest.err conftest.$ac_objext \
9380     conftest$ac_exeext conftest.$ac_ext
9381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382 /* end confdefs.h.  */
9383 #define _LARGEFILE_SOURCE 1
9384 #include <sys/types.h> /* for off_t */
9385      #include <stdio.h>
9386 int
9387 main ()
9388 {
9389 int (*fp) (FILE *, off_t, int) = fseeko;
9390      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9391   ;
9392   return 0;
9393 }
9394 _ACEOF
9395 if ac_fn_c_try_link "$LINENO"; then :
9396   ac_cv_sys_largefile_source=1; break
9397 fi
9398 rm -f core conftest.err conftest.$ac_objext \
9399     conftest$ac_exeext conftest.$ac_ext
9400   ac_cv_sys_largefile_source=unknown
9401   break
9402 done
9403 fi
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
9405 $as_echo "$ac_cv_sys_largefile_source" >&6; }
9406 case $ac_cv_sys_largefile_source in #(
9407   no | unknown) ;;
9408   *)
9409 cat >>confdefs.h <<_ACEOF
9410 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9411 _ACEOF
9412 ;;
9413 esac
9414 rm -rf conftest*
9415
9416 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9417 # in glibc 2.1.3, but that breaks too many other things.
9418 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9419 if test $ac_cv_sys_largefile_source != unknown; then
9420
9421 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
9422
9423 fi
9424
9425 LFS_CPPFLAGS=''
9426 if test "$enable_largefile" != no; then
9427     if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9428         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9429     else
9430         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
9431 $as_echo_n "checking for native large file support... " >&6; }
9432         if test "$cross_compiling" = yes; then :
9433   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9435 as_fn_error $? "cannot run test program while cross compiling
9436 See \`config.log' for more details" "$LINENO" 5; }
9437 else
9438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9439 /* end confdefs.h.  */
9440 #include <unistd.h>
9441           main () {
9442           exit(!(sizeof(off_t) == 8));
9443         }
9444 int
9445 main ()
9446 {
9447
9448   ;
9449   return 0;
9450 }
9451 _ACEOF
9452 if ac_fn_c_try_run "$LINENO"; then :
9453   ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9454
9455          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9456 $as_echo "yes" >&6; }
9457 else
9458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9459 $as_echo "no" >&6; }
9460 fi
9461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9462   conftest.$ac_objext conftest.beam conftest.$ac_ext
9463 fi
9464
9465     fi
9466     if test "$ac_cv_sys_large_files" != 'no'; then
9467         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9468     fi
9469     if test "$ac_cv_sys_largefile_source" != 'no'; then
9470         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9471     fi
9472 fi
9473
9474
9475 #
9476 # Configure libtool & libltdl
9477 #
9478 # Configure libtool
9479 enable_dlopen=yes
9480
9481
9482
9483 case `pwd` in
9484   *\ * | *\     *)
9485     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9486 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9487 esac
9488
9489
9490
9491 macro_version='2.4'
9492 macro_revision='1.3293'
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506 ltmain="$ac_aux_dir/ltmain.sh"
9507
9508 # Backslashify metacharacters that are still active within
9509 # double-quoted strings.
9510 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9511
9512 # Same as above, but do not quote variable references.
9513 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9514
9515 # Sed substitution to delay expansion of an escaped shell variable in a
9516 # double_quote_subst'ed string.
9517 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9518
9519 # Sed substitution to delay expansion of an escaped single quote.
9520 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9521
9522 # Sed substitution to avoid accidental globbing in evaled expressions
9523 no_glob_subst='s/\*/\\\*/g'
9524
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9526 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9527 if ${lt_cv_path_NM+:} false; then :
9528   $as_echo_n "(cached) " >&6
9529 else
9530   if test -n "$NM"; then
9531   # Let the user override the test.
9532   lt_cv_path_NM="$NM"
9533 else
9534   lt_nm_to_check="${ac_tool_prefix}nm"
9535   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9536     lt_nm_to_check="$lt_nm_to_check nm"
9537   fi
9538   for lt_tmp_nm in $lt_nm_to_check; do
9539     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9540     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9541       IFS="$lt_save_ifs"
9542       test -z "$ac_dir" && ac_dir=.
9543       tmp_nm="$ac_dir/$lt_tmp_nm"
9544       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9545         # Check to see if the nm accepts a BSD-compat flag.
9546         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9547         #   nm: unknown option "B" ignored
9548         # Tru64's nm complains that /dev/null is an invalid object file
9549         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9550         */dev/null* | *'Invalid file or object type'*)
9551           lt_cv_path_NM="$tmp_nm -B"
9552           break
9553           ;;
9554         *)
9555           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9556           */dev/null*)
9557             lt_cv_path_NM="$tmp_nm -p"
9558             break
9559             ;;
9560           *)
9561             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9562             continue # so that we can try to find one that supports BSD flags
9563             ;;
9564           esac
9565           ;;
9566         esac
9567       fi
9568     done
9569     IFS="$lt_save_ifs"
9570   done
9571   : ${lt_cv_path_NM=no}
9572 fi
9573 fi
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9575 $as_echo "$lt_cv_path_NM" >&6; }
9576 if test "$lt_cv_path_NM" != "no"; then
9577   NM="$lt_cv_path_NM"
9578 else
9579   # Didn't find any BSD compatible name lister, look for dumpbin.
9580   if test -n "$DUMPBIN"; then :
9581     # Let the user override the test.
9582   else
9583     if test -n "$ac_tool_prefix"; then
9584   for ac_prog in dumpbin "link -dump"
9585   do
9586     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9587 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9589 $as_echo_n "checking for $ac_word... " >&6; }
9590 if ${ac_cv_prog_DUMPBIN+:} false; then :
9591   $as_echo_n "(cached) " >&6
9592 else
9593   if test -n "$DUMPBIN"; then
9594   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9595 else
9596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9597 for as_dir in $PATH
9598 do
9599   IFS=$as_save_IFS
9600   test -z "$as_dir" && as_dir=.
9601     for ac_exec_ext in '' $ac_executable_extensions; do
9602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9603     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9605     break 2
9606   fi
9607 done
9608   done
9609 IFS=$as_save_IFS
9610
9611 fi
9612 fi
9613 DUMPBIN=$ac_cv_prog_DUMPBIN
9614 if test -n "$DUMPBIN"; then
9615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9616 $as_echo "$DUMPBIN" >&6; }
9617 else
9618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619 $as_echo "no" >&6; }
9620 fi
9621
9622
9623     test -n "$DUMPBIN" && break
9624   done
9625 fi
9626 if test -z "$DUMPBIN"; then
9627   ac_ct_DUMPBIN=$DUMPBIN
9628   for ac_prog in dumpbin "link -dump"
9629 do
9630   # Extract the first word of "$ac_prog", so it can be a program name with args.
9631 set dummy $ac_prog; ac_word=$2
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9633 $as_echo_n "checking for $ac_word... " >&6; }
9634 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9635   $as_echo_n "(cached) " >&6
9636 else
9637   if test -n "$ac_ct_DUMPBIN"; then
9638   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9639 else
9640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641 for as_dir in $PATH
9642 do
9643   IFS=$as_save_IFS
9644   test -z "$as_dir" && as_dir=.
9645     for ac_exec_ext in '' $ac_executable_extensions; do
9646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9647     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9649     break 2
9650   fi
9651 done
9652   done
9653 IFS=$as_save_IFS
9654
9655 fi
9656 fi
9657 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9658 if test -n "$ac_ct_DUMPBIN"; then
9659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9660 $as_echo "$ac_ct_DUMPBIN" >&6; }
9661 else
9662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9663 $as_echo "no" >&6; }
9664 fi
9665
9666
9667   test -n "$ac_ct_DUMPBIN" && break
9668 done
9669
9670   if test "x$ac_ct_DUMPBIN" = x; then
9671     DUMPBIN=":"
9672   else
9673     case $cross_compiling:$ac_tool_warned in
9674 yes:)
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9677 ac_tool_warned=yes ;;
9678 esac
9679     DUMPBIN=$ac_ct_DUMPBIN
9680   fi
9681 fi
9682
9683     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9684     *COFF*)
9685       DUMPBIN="$DUMPBIN -symbols"
9686       ;;
9687     *)
9688       DUMPBIN=:
9689       ;;
9690     esac
9691   fi
9692
9693   if test "$DUMPBIN" != ":"; then
9694     NM="$DUMPBIN"
9695   fi
9696 fi
9697 test -z "$NM" && NM=nm
9698
9699
9700
9701
9702
9703
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9705 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9706 if ${lt_cv_nm_interface+:} false; then :
9707   $as_echo_n "(cached) " >&6
9708 else
9709   lt_cv_nm_interface="BSD nm"
9710   echo "int some_variable = 0;" > conftest.$ac_ext
9711   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9712   (eval "$ac_compile" 2>conftest.err)
9713   cat conftest.err >&5
9714   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9715   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9716   cat conftest.err >&5
9717   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9718   cat conftest.out >&5
9719   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9720     lt_cv_nm_interface="MS dumpbin"
9721   fi
9722   rm -f conftest*
9723 fi
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9725 $as_echo "$lt_cv_nm_interface" >&6; }
9726
9727 # find the maximum length of command line arguments
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9729 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9730 if ${lt_cv_sys_max_cmd_len+:} false; then :
9731   $as_echo_n "(cached) " >&6
9732 else
9733     i=0
9734   teststring="ABCD"
9735
9736   case $build_os in
9737   msdosdjgpp*)
9738     # On DJGPP, this test can blow up pretty badly due to problems in libc
9739     # (any single argument exceeding 2000 bytes causes a buffer overrun
9740     # during glob expansion).  Even if it were fixed, the result of this
9741     # check would be larger than it should be.
9742     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9743     ;;
9744
9745   gnu*)
9746     # Under GNU Hurd, this test is not required because there is
9747     # no limit to the length of command line arguments.
9748     # Libtool will interpret -1 as no limit whatsoever
9749     lt_cv_sys_max_cmd_len=-1;
9750     ;;
9751
9752   cygwin* | mingw* | cegcc*)
9753     # On Win9x/ME, this test blows up -- it succeeds, but takes
9754     # about 5 minutes as the teststring grows exponentially.
9755     # Worse, since 9x/ME are not pre-emptively multitasking,
9756     # you end up with a "frozen" computer, even though with patience
9757     # the test eventually succeeds (with a max line length of 256k).
9758     # Instead, let's just punt: use the minimum linelength reported by
9759     # all of the supported platforms: 8192 (on NT/2K/XP).
9760     lt_cv_sys_max_cmd_len=8192;
9761     ;;
9762
9763   mint*)
9764     # On MiNT this can take a long time and run out of memory.
9765     lt_cv_sys_max_cmd_len=8192;
9766     ;;
9767
9768   amigaos*)
9769     # On AmigaOS with pdksh, this test takes hours, literally.
9770     # So we just punt and use a minimum line length of 8192.
9771     lt_cv_sys_max_cmd_len=8192;
9772     ;;
9773
9774   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9775     # This has been around since 386BSD, at least.  Likely further.
9776     if test -x /sbin/sysctl; then
9777       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9778     elif test -x /usr/sbin/sysctl; then
9779       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9780     else
9781       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
9782     fi
9783     # And add a safety zone
9784     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9785     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9786     ;;
9787
9788   interix*)
9789     # We know the value 262144 and hardcode it with a safety zone (like BSD)
9790     lt_cv_sys_max_cmd_len=196608
9791     ;;
9792
9793   osf*)
9794     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9795     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9796     # nice to cause kernel panics so lets avoid the loop below.
9797     # First set a reasonable default.
9798     lt_cv_sys_max_cmd_len=16384
9799     #
9800     if test -x /sbin/sysconfig; then
9801       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9802         *1*) lt_cv_sys_max_cmd_len=-1 ;;
9803       esac
9804     fi
9805     ;;
9806   sco3.2v5*)
9807     lt_cv_sys_max_cmd_len=102400
9808     ;;
9809   sysv5* | sco5v6* | sysv4.2uw2*)
9810     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9811     if test -n "$kargmax"; then
9812       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
9813     else
9814       lt_cv_sys_max_cmd_len=32768
9815     fi
9816     ;;
9817   *)
9818     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9819     if test -n "$lt_cv_sys_max_cmd_len"; then
9820       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9821       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9822     else
9823       # Make teststring a little bigger before we do anything with it.
9824       # a 1K string should be a reasonable start.
9825       for i in 1 2 3 4 5 6 7 8 ; do
9826         teststring=$teststring$teststring
9827       done
9828       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9829       # If test is not a shell built-in, we'll probably end up computing a
9830       # maximum length that is only half of the actual maximum length, but
9831       # we can't tell.
9832       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9833                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9834               test $i != 17 # 1/2 MB should be enough
9835       do
9836         i=`expr $i + 1`
9837         teststring=$teststring$teststring
9838       done
9839       # Only check the string length outside the loop.
9840       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9841       teststring=
9842       # Add a significant safety factor because C++ compilers can tack on
9843       # massive amounts of additional arguments before passing them to the
9844       # linker.  It appears as though 1/2 is a usable value.
9845       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9846     fi
9847     ;;
9848   esac
9849
9850 fi
9851
9852 if test -n $lt_cv_sys_max_cmd_len ; then
9853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9854 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9855 else
9856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9857 $as_echo "none" >&6; }
9858 fi
9859 max_cmd_len=$lt_cv_sys_max_cmd_len
9860
9861
9862
9863
9864
9865
9866 : ${CP="cp -f"}
9867 : ${MV="mv -f"}
9868 : ${RM="rm -f"}
9869
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9871 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9872 # Try some XSI features
9873 xsi_shell=no
9874 ( _lt_dummy="a/b/c"
9875   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9876       = c,a/b,b/c, \
9877     && eval 'test $(( 1 + 1 )) -eq 2 \
9878     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9879   && xsi_shell=yes
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9881 $as_echo "$xsi_shell" >&6; }
9882
9883
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9885 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9886 lt_shell_append=no
9887 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9888     >/dev/null 2>&1 \
9889   && lt_shell_append=yes
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9891 $as_echo "$lt_shell_append" >&6; }
9892
9893
9894 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9895   lt_unset=unset
9896 else
9897   lt_unset=false
9898 fi
9899
9900
9901
9902
9903
9904 # test EBCDIC or ASCII
9905 case `echo X|tr X '\101'` in
9906  A) # ASCII based system
9907     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9908   lt_SP2NL='tr \040 \012'
9909   lt_NL2SP='tr \015\012 \040\040'
9910   ;;
9911  *) # EBCDIC based system
9912   lt_SP2NL='tr \100 \n'
9913   lt_NL2SP='tr \r\n \100\100'
9914   ;;
9915 esac
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9926 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9927 if ${lt_cv_to_host_file_cmd+:} false; then :
9928   $as_echo_n "(cached) " >&6
9929 else
9930   case $host in
9931   *-*-mingw* )
9932     case $build in
9933       *-*-mingw* ) # actually msys
9934         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9935         ;;
9936       *-*-cygwin* )
9937         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9938         ;;
9939       * ) # otherwise, assume *nix
9940         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9941         ;;
9942     esac
9943     ;;
9944   *-*-cygwin* )
9945     case $build in
9946       *-*-mingw* ) # actually msys
9947         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9948         ;;
9949       *-*-cygwin* )
9950         lt_cv_to_host_file_cmd=func_convert_file_noop
9951         ;;
9952       * ) # otherwise, assume *nix
9953         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9954         ;;
9955     esac
9956     ;;
9957   * ) # unhandled hosts (and "normal" native builds)
9958     lt_cv_to_host_file_cmd=func_convert_file_noop
9959     ;;
9960 esac
9961
9962 fi
9963
9964 to_host_file_cmd=$lt_cv_to_host_file_cmd
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9966 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
9967
9968
9969
9970
9971
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9973 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9974 if ${lt_cv_to_tool_file_cmd+:} false; then :
9975   $as_echo_n "(cached) " >&6
9976 else
9977   #assume ordinary cross tools, or native build.
9978 lt_cv_to_tool_file_cmd=func_convert_file_noop
9979 case $host in
9980   *-*-mingw* )
9981     case $build in
9982       *-*-mingw* ) # actually msys
9983         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9984         ;;
9985     esac
9986     ;;
9987 esac
9988
9989 fi
9990
9991 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9993 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9994
9995
9996
9997
9998
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10000 $as_echo_n "checking for $LD option to reload object files... " >&6; }
10001 if ${lt_cv_ld_reload_flag+:} false; then :
10002   $as_echo_n "(cached) " >&6
10003 else
10004   lt_cv_ld_reload_flag='-r'
10005 fi
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10007 $as_echo "$lt_cv_ld_reload_flag" >&6; }
10008 reload_flag=$lt_cv_ld_reload_flag
10009 case $reload_flag in
10010 "" | " "*) ;;
10011 *) reload_flag=" $reload_flag" ;;
10012 esac
10013 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10014 case $host_os in
10015   cygwin* | mingw* | pw32* | cegcc*)
10016     if test "$GCC" != yes; then
10017       reload_cmds=false
10018     fi
10019     ;;
10020   darwin*)
10021     if test "$GCC" = yes; then
10022       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10023     else
10024       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10025     fi
10026     ;;
10027 esac
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037 if test -n "$ac_tool_prefix"; then
10038   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10039 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041 $as_echo_n "checking for $ac_word... " >&6; }
10042 if ${ac_cv_prog_OBJDUMP+:} false; then :
10043   $as_echo_n "(cached) " >&6
10044 else
10045   if test -n "$OBJDUMP"; then
10046   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10047 else
10048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049 for as_dir in $PATH
10050 do
10051   IFS=$as_save_IFS
10052   test -z "$as_dir" && as_dir=.
10053     for ac_exec_ext in '' $ac_executable_extensions; do
10054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10055     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10057     break 2
10058   fi
10059 done
10060   done
10061 IFS=$as_save_IFS
10062
10063 fi
10064 fi
10065 OBJDUMP=$ac_cv_prog_OBJDUMP
10066 if test -n "$OBJDUMP"; then
10067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10068 $as_echo "$OBJDUMP" >&6; }
10069 else
10070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10071 $as_echo "no" >&6; }
10072 fi
10073
10074
10075 fi
10076 if test -z "$ac_cv_prog_OBJDUMP"; then
10077   ac_ct_OBJDUMP=$OBJDUMP
10078   # Extract the first word of "objdump", so it can be a program name with args.
10079 set dummy objdump; ac_word=$2
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081 $as_echo_n "checking for $ac_word... " >&6; }
10082 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10083   $as_echo_n "(cached) " >&6
10084 else
10085   if test -n "$ac_ct_OBJDUMP"; then
10086   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10087 else
10088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089 for as_dir in $PATH
10090 do
10091   IFS=$as_save_IFS
10092   test -z "$as_dir" && as_dir=.
10093     for ac_exec_ext in '' $ac_executable_extensions; do
10094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10095     ac_cv_prog_ac_ct_OBJDUMP="objdump"
10096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10097     break 2
10098   fi
10099 done
10100   done
10101 IFS=$as_save_IFS
10102
10103 fi
10104 fi
10105 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10106 if test -n "$ac_ct_OBJDUMP"; then
10107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10108 $as_echo "$ac_ct_OBJDUMP" >&6; }
10109 else
10110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10112 fi
10113
10114   if test "x$ac_ct_OBJDUMP" = x; then
10115     OBJDUMP="false"
10116   else
10117     case $cross_compiling:$ac_tool_warned in
10118 yes:)
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10121 ac_tool_warned=yes ;;
10122 esac
10123     OBJDUMP=$ac_ct_OBJDUMP
10124   fi
10125 else
10126   OBJDUMP="$ac_cv_prog_OBJDUMP"
10127 fi
10128
10129 test -z "$OBJDUMP" && OBJDUMP=objdump
10130
10131
10132
10133
10134
10135
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10137 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10138 if ${lt_cv_deplibs_check_method+:} false; then :
10139   $as_echo_n "(cached) " >&6
10140 else
10141   lt_cv_file_magic_cmd='$MAGIC_CMD'
10142 lt_cv_file_magic_test_file=
10143 lt_cv_deplibs_check_method='unknown'
10144 # Need to set the preceding variable on all platforms that support
10145 # interlibrary dependencies.
10146 # 'none' -- dependencies not supported.
10147 # `unknown' -- same as none, but documents that we really don't know.
10148 # 'pass_all' -- all dependencies passed with no checks.
10149 # 'test_compile' -- check by making test program.
10150 # 'file_magic [[regex]]' -- check by looking for files in library path
10151 # which responds to the $file_magic_cmd with a given extended regex.
10152 # If you have `file' or equivalent on your system and you're not sure
10153 # whether `pass_all' will *always* work, you probably want this one.
10154
10155 case $host_os in
10156 aix[4-9]*)
10157   lt_cv_deplibs_check_method=pass_all
10158   ;;
10159
10160 beos*)
10161   lt_cv_deplibs_check_method=pass_all
10162   ;;
10163
10164 bsdi[45]*)
10165   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10166   lt_cv_file_magic_cmd='/usr/bin/file -L'
10167   lt_cv_file_magic_test_file=/shlib/libc.so
10168   ;;
10169
10170 cygwin*)
10171   # func_win32_libid is a shell function defined in ltmain.sh
10172   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10173   lt_cv_file_magic_cmd='func_win32_libid'
10174   ;;
10175
10176 mingw* | pw32*)
10177   # Base MSYS/MinGW do not provide the 'file' command needed by
10178   # func_win32_libid shell function, so use a weaker test based on 'objdump',
10179   # unless we find 'file', for example because we are cross-compiling.
10180   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10181   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10182     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10183     lt_cv_file_magic_cmd='func_win32_libid'
10184   else
10185     # Keep this pattern in sync with the one in func_win32_libid.
10186     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10187     lt_cv_file_magic_cmd='$OBJDUMP -f'
10188   fi
10189   ;;
10190
10191 cegcc*)
10192   # use the weaker test based on 'objdump'. See mingw*.
10193   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10194   lt_cv_file_magic_cmd='$OBJDUMP -f'
10195   ;;
10196
10197 darwin* | rhapsody*)
10198   lt_cv_deplibs_check_method=pass_all
10199   ;;
10200
10201 freebsd* | dragonfly*)
10202   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10203     case $host_cpu in
10204     i*86 )
10205       # Not sure whether the presence of OpenBSD here was a mistake.
10206       # Let's accept both of them until this is cleared up.
10207       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10208       lt_cv_file_magic_cmd=/usr/bin/file
10209       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10210       ;;
10211     esac
10212   else
10213     lt_cv_deplibs_check_method=pass_all
10214   fi
10215   ;;
10216
10217 gnu*)
10218   lt_cv_deplibs_check_method=pass_all
10219   ;;
10220
10221 haiku*)
10222   lt_cv_deplibs_check_method=pass_all
10223   ;;
10224
10225 hpux10.20* | hpux11*)
10226   lt_cv_file_magic_cmd=/usr/bin/file
10227   case $host_cpu in
10228   ia64*)
10229     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10230     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10231     ;;
10232   hppa*64*)
10233     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]'
10234     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10235     ;;
10236   *)
10237     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10238     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10239     ;;
10240   esac
10241   ;;
10242
10243 interix[3-9]*)
10244   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10245   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10246   ;;
10247
10248 irix5* | irix6* | nonstopux*)
10249   case $LD in
10250   *-32|*"-32 ") libmagic=32-bit;;
10251   *-n32|*"-n32 ") libmagic=N32;;
10252   *-64|*"-64 ") libmagic=64-bit;;
10253   *) libmagic=never-match;;
10254   esac
10255   lt_cv_deplibs_check_method=pass_all
10256   ;;
10257
10258 # This must be Linux ELF.
10259 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10260   lt_cv_deplibs_check_method=pass_all
10261   ;;
10262
10263 netbsd*)
10264   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10265     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10266   else
10267     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10268   fi
10269   ;;
10270
10271 newos6*)
10272   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10273   lt_cv_file_magic_cmd=/usr/bin/file
10274   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10275   ;;
10276
10277 *nto* | *qnx*)
10278   lt_cv_deplibs_check_method=pass_all
10279   ;;
10280
10281 openbsd*)
10282   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10283     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10284   else
10285     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10286   fi
10287   ;;
10288
10289 osf3* | osf4* | osf5*)
10290   lt_cv_deplibs_check_method=pass_all
10291   ;;
10292
10293 rdos*)
10294   lt_cv_deplibs_check_method=pass_all
10295   ;;
10296
10297 solaris*)
10298   lt_cv_deplibs_check_method=pass_all
10299   ;;
10300
10301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10302   lt_cv_deplibs_check_method=pass_all
10303   ;;
10304
10305 sysv4 | sysv4.3*)
10306   case $host_vendor in
10307   motorola)
10308     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]'
10309     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10310     ;;
10311   ncr)
10312     lt_cv_deplibs_check_method=pass_all
10313     ;;
10314   sequent)
10315     lt_cv_file_magic_cmd='/bin/file'
10316     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10317     ;;
10318   sni)
10319     lt_cv_file_magic_cmd='/bin/file'
10320     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10321     lt_cv_file_magic_test_file=/lib/libc.so
10322     ;;
10323   siemens)
10324     lt_cv_deplibs_check_method=pass_all
10325     ;;
10326   pc)
10327     lt_cv_deplibs_check_method=pass_all
10328     ;;
10329   esac
10330   ;;
10331
10332 tpf*)
10333   lt_cv_deplibs_check_method=pass_all
10334   ;;
10335 esac
10336
10337 fi
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10339 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10340
10341 file_magic_glob=
10342 want_nocaseglob=no
10343 if test "$build" = "$host"; then
10344   case $host_os in
10345   mingw* | pw32*)
10346     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10347       want_nocaseglob=yes
10348     else
10349       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10350     fi
10351     ;;
10352   esac
10353 fi
10354
10355 file_magic_cmd=$lt_cv_file_magic_cmd
10356 deplibs_check_method=$lt_cv_deplibs_check_method
10357 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380 if test -n "$ac_tool_prefix"; then
10381   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10382 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10384 $as_echo_n "checking for $ac_word... " >&6; }
10385 if ${ac_cv_prog_DLLTOOL+:} false; then :
10386   $as_echo_n "(cached) " >&6
10387 else
10388   if test -n "$DLLTOOL"; then
10389   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10390 else
10391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392 for as_dir in $PATH
10393 do
10394   IFS=$as_save_IFS
10395   test -z "$as_dir" && as_dir=.
10396     for ac_exec_ext in '' $ac_executable_extensions; do
10397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10398     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10400     break 2
10401   fi
10402 done
10403   done
10404 IFS=$as_save_IFS
10405
10406 fi
10407 fi
10408 DLLTOOL=$ac_cv_prog_DLLTOOL
10409 if test -n "$DLLTOOL"; then
10410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10411 $as_echo "$DLLTOOL" >&6; }
10412 else
10413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10414 $as_echo "no" >&6; }
10415 fi
10416
10417
10418 fi
10419 if test -z "$ac_cv_prog_DLLTOOL"; then
10420   ac_ct_DLLTOOL=$DLLTOOL
10421   # Extract the first word of "dlltool", so it can be a program name with args.
10422 set dummy dlltool; ac_word=$2
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10424 $as_echo_n "checking for $ac_word... " >&6; }
10425 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10426   $as_echo_n "(cached) " >&6
10427 else
10428   if test -n "$ac_ct_DLLTOOL"; then
10429   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10430 else
10431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10432 for as_dir in $PATH
10433 do
10434   IFS=$as_save_IFS
10435   test -z "$as_dir" && as_dir=.
10436     for ac_exec_ext in '' $ac_executable_extensions; do
10437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10438     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10440     break 2
10441   fi
10442 done
10443   done
10444 IFS=$as_save_IFS
10445
10446 fi
10447 fi
10448 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10449 if test -n "$ac_ct_DLLTOOL"; then
10450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10451 $as_echo "$ac_ct_DLLTOOL" >&6; }
10452 else
10453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10454 $as_echo "no" >&6; }
10455 fi
10456
10457   if test "x$ac_ct_DLLTOOL" = x; then
10458     DLLTOOL="false"
10459   else
10460     case $cross_compiling:$ac_tool_warned in
10461 yes:)
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10464 ac_tool_warned=yes ;;
10465 esac
10466     DLLTOOL=$ac_ct_DLLTOOL
10467   fi
10468 else
10469   DLLTOOL="$ac_cv_prog_DLLTOOL"
10470 fi
10471
10472 test -z "$DLLTOOL" && DLLTOOL=dlltool
10473
10474
10475
10476
10477
10478
10479
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10481 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10482 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10483   $as_echo_n "(cached) " >&6
10484 else
10485   lt_cv_sharedlib_from_linklib_cmd='unknown'
10486
10487 case $host_os in
10488 cygwin* | mingw* | pw32* | cegcc*)
10489   # two different shell functions defined in ltmain.sh
10490   # decide which to use based on capabilities of $DLLTOOL
10491   case `$DLLTOOL --help 2>&1` in
10492   *--identify-strict*)
10493     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10494     ;;
10495   *)
10496     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10497     ;;
10498   esac
10499   ;;
10500 *)
10501   # fallback: assume linklib IS sharedlib
10502   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10503   ;;
10504 esac
10505
10506 fi
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10508 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10509 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10510 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10511
10512
10513
10514
10515
10516
10517
10518 if test -n "$ac_tool_prefix"; then
10519   for ac_prog in ar
10520   do
10521     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10522 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524 $as_echo_n "checking for $ac_word... " >&6; }
10525 if ${ac_cv_prog_AR+:} false; then :
10526   $as_echo_n "(cached) " >&6
10527 else
10528   if test -n "$AR"; then
10529   ac_cv_prog_AR="$AR" # Let the user override the test.
10530 else
10531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532 for as_dir in $PATH
10533 do
10534   IFS=$as_save_IFS
10535   test -z "$as_dir" && as_dir=.
10536     for ac_exec_ext in '' $ac_executable_extensions; do
10537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10538     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10540     break 2
10541   fi
10542 done
10543   done
10544 IFS=$as_save_IFS
10545
10546 fi
10547 fi
10548 AR=$ac_cv_prog_AR
10549 if test -n "$AR"; then
10550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10551 $as_echo "$AR" >&6; }
10552 else
10553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554 $as_echo "no" >&6; }
10555 fi
10556
10557
10558     test -n "$AR" && break
10559   done
10560 fi
10561 if test -z "$AR"; then
10562   ac_ct_AR=$AR
10563   for ac_prog in ar
10564 do
10565   # Extract the first word of "$ac_prog", so it can be a program name with args.
10566 set dummy $ac_prog; ac_word=$2
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10568 $as_echo_n "checking for $ac_word... " >&6; }
10569 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10570   $as_echo_n "(cached) " >&6
10571 else
10572   if test -n "$ac_ct_AR"; then
10573   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10574 else
10575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10576 for as_dir in $PATH
10577 do
10578   IFS=$as_save_IFS
10579   test -z "$as_dir" && as_dir=.
10580     for ac_exec_ext in '' $ac_executable_extensions; do
10581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10582     ac_cv_prog_ac_ct_AR="$ac_prog"
10583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10584     break 2
10585   fi
10586 done
10587   done
10588 IFS=$as_save_IFS
10589
10590 fi
10591 fi
10592 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10593 if test -n "$ac_ct_AR"; then
10594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10595 $as_echo "$ac_ct_AR" >&6; }
10596 else
10597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598 $as_echo "no" >&6; }
10599 fi
10600
10601
10602   test -n "$ac_ct_AR" && break
10603 done
10604
10605   if test "x$ac_ct_AR" = x; then
10606     AR="false"
10607   else
10608     case $cross_compiling:$ac_tool_warned in
10609 yes:)
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10612 ac_tool_warned=yes ;;
10613 esac
10614     AR=$ac_ct_AR
10615   fi
10616 fi
10617
10618 : ${AR=ar}
10619 : ${AR_FLAGS=cru}
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10632 $as_echo_n "checking for archiver @FILE support... " >&6; }
10633 if ${lt_cv_ar_at_file+:} false; then :
10634   $as_echo_n "(cached) " >&6
10635 else
10636   lt_cv_ar_at_file=no
10637    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10638 /* end confdefs.h.  */
10639
10640 int
10641 main ()
10642 {
10643
10644   ;
10645   return 0;
10646 }
10647 _ACEOF
10648 if ac_fn_c_try_compile "$LINENO"; then :
10649   echo conftest.$ac_objext > conftest.lst
10650       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10651       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10652   (eval $lt_ar_try) 2>&5
10653   ac_status=$?
10654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10655   test $ac_status = 0; }
10656       if test "$ac_status" -eq 0; then
10657         # Ensure the archiver fails upon bogus file names.
10658         rm -f conftest.$ac_objext libconftest.a
10659         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10660   (eval $lt_ar_try) 2>&5
10661   ac_status=$?
10662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10663   test $ac_status = 0; }
10664         if test "$ac_status" -ne 0; then
10665           lt_cv_ar_at_file=@
10666         fi
10667       fi
10668       rm -f conftest.* libconftest.a
10669
10670 fi
10671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10672
10673 fi
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10675 $as_echo "$lt_cv_ar_at_file" >&6; }
10676
10677 if test "x$lt_cv_ar_at_file" = xno; then
10678   archiver_list_spec=
10679 else
10680   archiver_list_spec=$lt_cv_ar_at_file
10681 fi
10682
10683
10684
10685
10686
10687
10688
10689 if test -n "$ac_tool_prefix"; then
10690   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10691 set dummy ${ac_tool_prefix}strip; ac_word=$2
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10693 $as_echo_n "checking for $ac_word... " >&6; }
10694 if ${ac_cv_prog_STRIP+:} false; then :
10695   $as_echo_n "(cached) " >&6
10696 else
10697   if test -n "$STRIP"; then
10698   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10699 else
10700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701 for as_dir in $PATH
10702 do
10703   IFS=$as_save_IFS
10704   test -z "$as_dir" && as_dir=.
10705     for ac_exec_ext in '' $ac_executable_extensions; do
10706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10707     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10709     break 2
10710   fi
10711 done
10712   done
10713 IFS=$as_save_IFS
10714
10715 fi
10716 fi
10717 STRIP=$ac_cv_prog_STRIP
10718 if test -n "$STRIP"; then
10719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10720 $as_echo "$STRIP" >&6; }
10721 else
10722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; }
10724 fi
10725
10726
10727 fi
10728 if test -z "$ac_cv_prog_STRIP"; then
10729   ac_ct_STRIP=$STRIP
10730   # Extract the first word of "strip", so it can be a program name with args.
10731 set dummy strip; ac_word=$2
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733 $as_echo_n "checking for $ac_word... " >&6; }
10734 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10735   $as_echo_n "(cached) " >&6
10736 else
10737   if test -n "$ac_ct_STRIP"; then
10738   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10739 else
10740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10741 for as_dir in $PATH
10742 do
10743   IFS=$as_save_IFS
10744   test -z "$as_dir" && as_dir=.
10745     for ac_exec_ext in '' $ac_executable_extensions; do
10746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10747     ac_cv_prog_ac_ct_STRIP="strip"
10748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10749     break 2
10750   fi
10751 done
10752   done
10753 IFS=$as_save_IFS
10754
10755 fi
10756 fi
10757 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10758 if test -n "$ac_ct_STRIP"; then
10759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10760 $as_echo "$ac_ct_STRIP" >&6; }
10761 else
10762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10763 $as_echo "no" >&6; }
10764 fi
10765
10766   if test "x$ac_ct_STRIP" = x; then
10767     STRIP=":"
10768   else
10769     case $cross_compiling:$ac_tool_warned in
10770 yes:)
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10773 ac_tool_warned=yes ;;
10774 esac
10775     STRIP=$ac_ct_STRIP
10776   fi
10777 else
10778   STRIP="$ac_cv_prog_STRIP"
10779 fi
10780
10781 test -z "$STRIP" && STRIP=:
10782
10783
10784
10785
10786
10787
10788 if test -n "$ac_tool_prefix"; then
10789   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10790 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10792 $as_echo_n "checking for $ac_word... " >&6; }
10793 if ${ac_cv_prog_RANLIB+:} false; then :
10794   $as_echo_n "(cached) " >&6
10795 else
10796   if test -n "$RANLIB"; then
10797   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10798 else
10799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800 for as_dir in $PATH
10801 do
10802   IFS=$as_save_IFS
10803   test -z "$as_dir" && as_dir=.
10804     for ac_exec_ext in '' $ac_executable_extensions; do
10805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10806     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10808     break 2
10809   fi
10810 done
10811   done
10812 IFS=$as_save_IFS
10813
10814 fi
10815 fi
10816 RANLIB=$ac_cv_prog_RANLIB
10817 if test -n "$RANLIB"; then
10818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10819 $as_echo "$RANLIB" >&6; }
10820 else
10821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822 $as_echo "no" >&6; }
10823 fi
10824
10825
10826 fi
10827 if test -z "$ac_cv_prog_RANLIB"; then
10828   ac_ct_RANLIB=$RANLIB
10829   # Extract the first word of "ranlib", so it can be a program name with args.
10830 set dummy ranlib; ac_word=$2
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10832 $as_echo_n "checking for $ac_word... " >&6; }
10833 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10834   $as_echo_n "(cached) " >&6
10835 else
10836   if test -n "$ac_ct_RANLIB"; then
10837   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10838 else
10839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840 for as_dir in $PATH
10841 do
10842   IFS=$as_save_IFS
10843   test -z "$as_dir" && as_dir=.
10844     for ac_exec_ext in '' $ac_executable_extensions; do
10845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10846     ac_cv_prog_ac_ct_RANLIB="ranlib"
10847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10848     break 2
10849   fi
10850 done
10851   done
10852 IFS=$as_save_IFS
10853
10854 fi
10855 fi
10856 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10857 if test -n "$ac_ct_RANLIB"; then
10858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10859 $as_echo "$ac_ct_RANLIB" >&6; }
10860 else
10861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 $as_echo "no" >&6; }
10863 fi
10864
10865   if test "x$ac_ct_RANLIB" = x; then
10866     RANLIB=":"
10867   else
10868     case $cross_compiling:$ac_tool_warned in
10869 yes:)
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10872 ac_tool_warned=yes ;;
10873 esac
10874     RANLIB=$ac_ct_RANLIB
10875   fi
10876 else
10877   RANLIB="$ac_cv_prog_RANLIB"
10878 fi
10879
10880 test -z "$RANLIB" && RANLIB=:
10881
10882
10883
10884
10885
10886
10887 # Determine commands to create old-style static archives.
10888 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10889 old_postinstall_cmds='chmod 644 $oldlib'
10890 old_postuninstall_cmds=
10891
10892 if test -n "$RANLIB"; then
10893   case $host_os in
10894   openbsd*)
10895     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10896     ;;
10897   *)
10898     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10899     ;;
10900   esac
10901   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10902 fi
10903
10904 case $host_os in
10905   darwin*)
10906     lock_old_archive_extraction=yes ;;
10907   *)
10908     lock_old_archive_extraction=no ;;
10909 esac
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949 # If no C compiler was specified, use CC.
10950 LTCC=${LTCC-"$CC"}
10951
10952 # If no C compiler flags were specified, use CFLAGS.
10953 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10954
10955 # Allow CC to be a program name with arguments.
10956 compiler=$CC
10957
10958
10959 # Check for command to grab the raw symbol name followed by C symbol from nm.
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10961 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10962 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10963   $as_echo_n "(cached) " >&6
10964 else
10965
10966 # These are sane defaults that work on at least a few old systems.
10967 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10968
10969 # Character class describing NM global symbol codes.
10970 symcode='[BCDEGRST]'
10971
10972 # Regexp to match symbols that can be accessed directly from C.
10973 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10974
10975 # Define system-specific variables.
10976 case $host_os in
10977 aix*)
10978   symcode='[BCDT]'
10979   ;;
10980 cygwin* | mingw* | pw32* | cegcc*)
10981   symcode='[ABCDGISTW]'
10982   ;;
10983 hpux*)
10984   if test "$host_cpu" = ia64; then
10985     symcode='[ABCDEGRST]'
10986   fi
10987   ;;
10988 irix* | nonstopux*)
10989   symcode='[BCDEGRST]'
10990   ;;
10991 osf*)
10992   symcode='[BCDEGQRST]'
10993   ;;
10994 solaris*)
10995   symcode='[BDRT]'
10996   ;;
10997 sco3.2v5*)
10998   symcode='[DT]'
10999   ;;
11000 sysv4.2uw2*)
11001   symcode='[DT]'
11002   ;;
11003 sysv5* | sco5v6* | unixware* | OpenUNIX*)
11004   symcode='[ABDT]'
11005   ;;
11006 sysv4)
11007   symcode='[DFNSTU]'
11008   ;;
11009 esac
11010
11011 # If we're using GNU nm, then use its standard symbol codes.
11012 case `$NM -V 2>&1` in
11013 *GNU* | *'with BFD'*)
11014   symcode='[ABCDGIRSTW]' ;;
11015 esac
11016
11017 # Transform an extracted symbol line into a proper C declaration.
11018 # Some systems (esp. on ia64) link data and code symbols differently,
11019 # so use this general approach.
11020 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11021
11022 # Transform an extracted symbol line into symbol name and symbol address
11023 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
11024 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'"
11025
11026 # Handle CRLF in mingw tool chain
11027 opt_cr=
11028 case $build_os in
11029 mingw*)
11030   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11031   ;;
11032 esac
11033
11034 # Try without a prefix underscore, then with it.
11035 for ac_symprfx in "" "_"; do
11036
11037   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11038   symxfrm="\\1 $ac_symprfx\\2 \\2"
11039
11040   # Write the raw and C identifiers.
11041   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11042     # Fake it for dumpbin and say T for any non-static function
11043     # and D for any global variable.
11044     # Also find C++ and __fastcall symbols from MSVC++,
11045     # which start with @ or ?.
11046     lt_cv_sys_global_symbol_pipe="$AWK '"\
11047 "     {last_section=section; section=\$ 3};"\
11048 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11049 "     \$ 0!~/External *\|/{next};"\
11050 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11051 "     {if(hide[section]) next};"\
11052 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11053 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11054 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
11055 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11056 "     ' prfx=^$ac_symprfx"
11057   else
11058     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11059   fi
11060   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
11061
11062   # Check to see that the pipe works correctly.
11063   pipe_works=no
11064
11065   rm -f conftest*
11066   cat > conftest.$ac_ext <<_LT_EOF
11067 #ifdef __cplusplus
11068 extern "C" {
11069 #endif
11070 char nm_test_var;
11071 void nm_test_func(void);
11072 void nm_test_func(void){}
11073 #ifdef __cplusplus
11074 }
11075 #endif
11076 int main(){nm_test_var='a';nm_test_func();return(0);}
11077 _LT_EOF
11078
11079   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11080   (eval $ac_compile) 2>&5
11081   ac_status=$?
11082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11083   test $ac_status = 0; }; then
11084     # Now try to grab the symbols.
11085     nlist=conftest.nm
11086     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11087   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11088   ac_status=$?
11089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11090   test $ac_status = 0; } && test -s "$nlist"; then
11091       # Try sorting and uniquifying the output.
11092       if sort "$nlist" | uniq > "$nlist"T; then
11093         mv -f "$nlist"T "$nlist"
11094       else
11095         rm -f "$nlist"T
11096       fi
11097
11098       # Make sure that we snagged all the symbols we need.
11099       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11100         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11101           cat <<_LT_EOF > conftest.$ac_ext
11102 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
11103 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11104 /* DATA imports from DLLs on WIN32 con't be const, because runtime
11105    relocations are performed -- see ld's documentation on pseudo-relocs.  */
11106 # define LT_DLSYM_CONST
11107 #elif defined(__osf__)
11108 /* This system does not cope well with relocations in const data.  */
11109 # define LT_DLSYM_CONST
11110 #else
11111 # define LT_DLSYM_CONST const
11112 #endif
11113
11114 #ifdef __cplusplus
11115 extern "C" {
11116 #endif
11117
11118 _LT_EOF
11119           # Now generate the symbol file.
11120           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11121
11122           cat <<_LT_EOF >> conftest.$ac_ext
11123
11124 /* The mapping between symbol names and symbols.  */
11125 LT_DLSYM_CONST struct {
11126   const char *name;
11127   void       *address;
11128 }
11129 lt__PROGRAM__LTX_preloaded_symbols[] =
11130 {
11131   { "@PROGRAM@", (void *) 0 },
11132 _LT_EOF
11133           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11134           cat <<\_LT_EOF >> conftest.$ac_ext
11135   {0, (void *) 0}
11136 };
11137
11138 /* This works around a problem in FreeBSD linker */
11139 #ifdef FREEBSD_WORKAROUND
11140 static const void *lt_preloaded_setup() {
11141   return lt__PROGRAM__LTX_preloaded_symbols;
11142 }
11143 #endif
11144
11145 #ifdef __cplusplus
11146 }
11147 #endif
11148 _LT_EOF
11149           # Now try linking the two files.
11150           mv conftest.$ac_objext conftstm.$ac_objext
11151           lt_globsym_save_LIBS=$LIBS
11152           lt_globsym_save_CFLAGS=$CFLAGS
11153           LIBS="conftstm.$ac_objext"
11154           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11155           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11156   (eval $ac_link) 2>&5
11157   ac_status=$?
11158   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11159   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11160             pipe_works=yes
11161           fi
11162           LIBS=$lt_globsym_save_LIBS
11163           CFLAGS=$lt_globsym_save_CFLAGS
11164         else
11165           echo "cannot find nm_test_func in $nlist" >&5
11166         fi
11167       else
11168         echo "cannot find nm_test_var in $nlist" >&5
11169       fi
11170     else
11171       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11172     fi
11173   else
11174     echo "$progname: failed program was:" >&5
11175     cat conftest.$ac_ext >&5
11176   fi
11177   rm -rf conftest* conftst*
11178
11179   # Do not use the global_symbol_pipe unless it works.
11180   if test "$pipe_works" = yes; then
11181     break
11182   else
11183     lt_cv_sys_global_symbol_pipe=
11184   fi
11185 done
11186
11187 fi
11188
11189 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11190   lt_cv_sys_global_symbol_to_cdecl=
11191 fi
11192 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11194 $as_echo "failed" >&6; }
11195 else
11196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11197 $as_echo "ok" >&6; }
11198 fi
11199
11200 # Response file support.
11201 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11202   nm_file_list_spec='@'
11203 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11204   nm_file_list_spec='@'
11205 fi
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11234 $as_echo_n "checking for sysroot... " >&6; }
11235
11236 # Check whether --with-sysroot was given.
11237 if test "${with_sysroot+set}" = set; then :
11238   withval=$with_sysroot;
11239 else
11240   with_sysroot=no
11241 fi
11242
11243
11244 lt_sysroot=
11245 case ${with_sysroot} in #(
11246  yes)
11247    if test "$GCC" = yes; then
11248      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11249    fi
11250    ;; #(
11251  /*)
11252    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11253    ;; #(
11254  no|'')
11255    ;; #(
11256  *)
11257    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11258 $as_echo "${with_sysroot}" >&6; }
11259    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11260    ;;
11261 esac
11262
11263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11264 $as_echo "${lt_sysroot:-no}" >&6; }
11265
11266
11267
11268
11269
11270 # Check whether --enable-libtool-lock was given.
11271 if test "${enable_libtool_lock+set}" = set; then :
11272   enableval=$enable_libtool_lock;
11273 fi
11274
11275 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11276
11277 # Some flags need to be propagated to the compiler or linker for good
11278 # libtool support.
11279 case $host in
11280 ia64-*-hpux*)
11281   # Find out which ABI we are using.
11282   echo 'int i;' > conftest.$ac_ext
11283   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11284   (eval $ac_compile) 2>&5
11285   ac_status=$?
11286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11287   test $ac_status = 0; }; then
11288     case `/usr/bin/file conftest.$ac_objext` in
11289       *ELF-32*)
11290         HPUX_IA64_MODE="32"
11291         ;;
11292       *ELF-64*)
11293         HPUX_IA64_MODE="64"
11294         ;;
11295     esac
11296   fi
11297   rm -rf conftest*
11298   ;;
11299 *-*-irix6*)
11300   # Find out which ABI we are using.
11301   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11302   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11303   (eval $ac_compile) 2>&5
11304   ac_status=$?
11305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11306   test $ac_status = 0; }; then
11307     if test "$lt_cv_prog_gnu_ld" = yes; then
11308       case `/usr/bin/file conftest.$ac_objext` in
11309         *32-bit*)
11310           LD="${LD-ld} -melf32bsmip"
11311           ;;
11312         *N32*)
11313           LD="${LD-ld} -melf32bmipn32"
11314           ;;
11315         *64-bit*)
11316           LD="${LD-ld} -melf64bmip"
11317         ;;
11318       esac
11319     else
11320       case `/usr/bin/file conftest.$ac_objext` in
11321         *32-bit*)
11322           LD="${LD-ld} -32"
11323           ;;
11324         *N32*)
11325           LD="${LD-ld} -n32"
11326           ;;
11327         *64-bit*)
11328           LD="${LD-ld} -64"
11329           ;;
11330       esac
11331     fi
11332   fi
11333   rm -rf conftest*
11334   ;;
11335
11336 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11337 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11338   # Find out which ABI we are using.
11339   echo 'int i;' > conftest.$ac_ext
11340   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11341   (eval $ac_compile) 2>&5
11342   ac_status=$?
11343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11344   test $ac_status = 0; }; then
11345     case `/usr/bin/file conftest.o` in
11346       *32-bit*)
11347         case $host in
11348           x86_64-*kfreebsd*-gnu)
11349             LD="${LD-ld} -m elf_i386_fbsd"
11350             ;;
11351           x86_64-*linux*)
11352             LD="${LD-ld} -m elf_i386"
11353             ;;
11354           ppc64-*linux*|powerpc64-*linux*)
11355             LD="${LD-ld} -m elf32ppclinux"
11356             ;;
11357           s390x-*linux*)
11358             LD="${LD-ld} -m elf_s390"
11359             ;;
11360           sparc64-*linux*)
11361             LD="${LD-ld} -m elf32_sparc"
11362             ;;
11363         esac
11364         ;;
11365       *64-bit*)
11366         case $host in
11367           x86_64-*kfreebsd*-gnu)
11368             LD="${LD-ld} -m elf_x86_64_fbsd"
11369             ;;
11370           x86_64-*linux*)
11371             LD="${LD-ld} -m elf_x86_64"
11372             ;;
11373           ppc*-*linux*|powerpc*-*linux*)
11374             LD="${LD-ld} -m elf64ppc"
11375             ;;
11376           s390*-*linux*|s390*-*tpf*)
11377             LD="${LD-ld} -m elf64_s390"
11378             ;;
11379           sparc*-*linux*)
11380             LD="${LD-ld} -m elf64_sparc"
11381             ;;
11382         esac
11383         ;;
11384     esac
11385   fi
11386   rm -rf conftest*
11387   ;;
11388
11389 *-*-sco3.2v5*)
11390   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11391   SAVE_CFLAGS="$CFLAGS"
11392   CFLAGS="$CFLAGS -belf"
11393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11394 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11395 if ${lt_cv_cc_needs_belf+:} false; then :
11396   $as_echo_n "(cached) " >&6
11397 else
11398   ac_ext=c
11399 ac_cpp='$CPP $CPPFLAGS'
11400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11403
11404      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h.  */
11406
11407 int
11408 main ()
11409 {
11410
11411   ;
11412   return 0;
11413 }
11414 _ACEOF
11415 if ac_fn_c_try_link "$LINENO"; then :
11416   lt_cv_cc_needs_belf=yes
11417 else
11418   lt_cv_cc_needs_belf=no
11419 fi
11420 rm -f core conftest.err conftest.$ac_objext \
11421     conftest$ac_exeext conftest.$ac_ext
11422      ac_ext=c
11423 ac_cpp='$CPP $CPPFLAGS'
11424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11427
11428 fi
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11430 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11431   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11432     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11433     CFLAGS="$SAVE_CFLAGS"
11434   fi
11435   ;;
11436 sparc*-*solaris*)
11437   # Find out which ABI we are using.
11438   echo 'int i;' > conftest.$ac_ext
11439   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11440   (eval $ac_compile) 2>&5
11441   ac_status=$?
11442   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11443   test $ac_status = 0; }; then
11444     case `/usr/bin/file conftest.o` in
11445     *64-bit*)
11446       case $lt_cv_prog_gnu_ld in
11447       yes*) LD="${LD-ld} -m elf64_sparc" ;;
11448       *)
11449         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11450           LD="${LD-ld} -64"
11451         fi
11452         ;;
11453       esac
11454       ;;
11455     esac
11456   fi
11457   rm -rf conftest*
11458   ;;
11459 esac
11460
11461 need_locks="$enable_libtool_lock"
11462
11463 if test -n "$ac_tool_prefix"; then
11464   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11465 set dummy ${ac_tool_prefix}mt; ac_word=$2
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11467 $as_echo_n "checking for $ac_word... " >&6; }
11468 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11469   $as_echo_n "(cached) " >&6
11470 else
11471   if test -n "$MANIFEST_TOOL"; then
11472   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11473 else
11474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475 for as_dir in $PATH
11476 do
11477   IFS=$as_save_IFS
11478   test -z "$as_dir" && as_dir=.
11479     for ac_exec_ext in '' $ac_executable_extensions; do
11480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11481     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11483     break 2
11484   fi
11485 done
11486   done
11487 IFS=$as_save_IFS
11488
11489 fi
11490 fi
11491 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11492 if test -n "$MANIFEST_TOOL"; then
11493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11494 $as_echo "$MANIFEST_TOOL" >&6; }
11495 else
11496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497 $as_echo "no" >&6; }
11498 fi
11499
11500
11501 fi
11502 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11503   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11504   # Extract the first word of "mt", so it can be a program name with args.
11505 set dummy mt; ac_word=$2
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11507 $as_echo_n "checking for $ac_word... " >&6; }
11508 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11509   $as_echo_n "(cached) " >&6
11510 else
11511   if test -n "$ac_ct_MANIFEST_TOOL"; then
11512   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11513 else
11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515 for as_dir in $PATH
11516 do
11517   IFS=$as_save_IFS
11518   test -z "$as_dir" && as_dir=.
11519     for ac_exec_ext in '' $ac_executable_extensions; do
11520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11521     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11523     break 2
11524   fi
11525 done
11526   done
11527 IFS=$as_save_IFS
11528
11529 fi
11530 fi
11531 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11532 if test -n "$ac_ct_MANIFEST_TOOL"; then
11533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11534 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11535 else
11536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537 $as_echo "no" >&6; }
11538 fi
11539
11540   if test "x$ac_ct_MANIFEST_TOOL" = x; then
11541     MANIFEST_TOOL=":"
11542   else
11543     case $cross_compiling:$ac_tool_warned in
11544 yes:)
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11547 ac_tool_warned=yes ;;
11548 esac
11549     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11550   fi
11551 else
11552   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11553 fi
11554
11555 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11557 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11558 if ${lt_cv_path_mainfest_tool+:} false; then :
11559   $as_echo_n "(cached) " >&6
11560 else
11561   lt_cv_path_mainfest_tool=no
11562   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11563   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11564   cat conftest.err >&5
11565   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11566     lt_cv_path_mainfest_tool=yes
11567   fi
11568   rm -f conftest*
11569 fi
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11571 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
11572 if test "x$lt_cv_path_mainfest_tool" != xyes; then
11573   MANIFEST_TOOL=:
11574 fi
11575
11576
11577
11578
11579
11580
11581   case $host_os in
11582     rhapsody* | darwin*)
11583     if test -n "$ac_tool_prefix"; then
11584   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11585 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11587 $as_echo_n "checking for $ac_word... " >&6; }
11588 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11589   $as_echo_n "(cached) " >&6
11590 else
11591   if test -n "$DSYMUTIL"; then
11592   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11593 else
11594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595 for as_dir in $PATH
11596 do
11597   IFS=$as_save_IFS
11598   test -z "$as_dir" && as_dir=.
11599     for ac_exec_ext in '' $ac_executable_extensions; do
11600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11601     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11603     break 2
11604   fi
11605 done
11606   done
11607 IFS=$as_save_IFS
11608
11609 fi
11610 fi
11611 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11612 if test -n "$DSYMUTIL"; then
11613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11614 $as_echo "$DSYMUTIL" >&6; }
11615 else
11616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 $as_echo "no" >&6; }
11618 fi
11619
11620
11621 fi
11622 if test -z "$ac_cv_prog_DSYMUTIL"; then
11623   ac_ct_DSYMUTIL=$DSYMUTIL
11624   # Extract the first word of "dsymutil", so it can be a program name with args.
11625 set dummy dsymutil; ac_word=$2
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11627 $as_echo_n "checking for $ac_word... " >&6; }
11628 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
11629   $as_echo_n "(cached) " >&6
11630 else
11631   if test -n "$ac_ct_DSYMUTIL"; then
11632   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11633 else
11634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635 for as_dir in $PATH
11636 do
11637   IFS=$as_save_IFS
11638   test -z "$as_dir" && as_dir=.
11639     for ac_exec_ext in '' $ac_executable_extensions; do
11640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11641     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11643     break 2
11644   fi
11645 done
11646   done
11647 IFS=$as_save_IFS
11648
11649 fi
11650 fi
11651 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11652 if test -n "$ac_ct_DSYMUTIL"; then
11653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11654 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11655 else
11656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657 $as_echo "no" >&6; }
11658 fi
11659
11660   if test "x$ac_ct_DSYMUTIL" = x; then
11661     DSYMUTIL=":"
11662   else
11663     case $cross_compiling:$ac_tool_warned in
11664 yes:)
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11667 ac_tool_warned=yes ;;
11668 esac
11669     DSYMUTIL=$ac_ct_DSYMUTIL
11670   fi
11671 else
11672   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11673 fi
11674
11675     if test -n "$ac_tool_prefix"; then
11676   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11677 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11679 $as_echo_n "checking for $ac_word... " >&6; }
11680 if ${ac_cv_prog_NMEDIT+:} false; then :
11681   $as_echo_n "(cached) " >&6
11682 else
11683   if test -n "$NMEDIT"; then
11684   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11685 else
11686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11687 for as_dir in $PATH
11688 do
11689   IFS=$as_save_IFS
11690   test -z "$as_dir" && as_dir=.
11691     for ac_exec_ext in '' $ac_executable_extensions; do
11692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11693     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11695     break 2
11696   fi
11697 done
11698   done
11699 IFS=$as_save_IFS
11700
11701 fi
11702 fi
11703 NMEDIT=$ac_cv_prog_NMEDIT
11704 if test -n "$NMEDIT"; then
11705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11706 $as_echo "$NMEDIT" >&6; }
11707 else
11708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709 $as_echo "no" >&6; }
11710 fi
11711
11712
11713 fi
11714 if test -z "$ac_cv_prog_NMEDIT"; then
11715   ac_ct_NMEDIT=$NMEDIT
11716   # Extract the first word of "nmedit", so it can be a program name with args.
11717 set dummy nmedit; ac_word=$2
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11719 $as_echo_n "checking for $ac_word... " >&6; }
11720 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11721   $as_echo_n "(cached) " >&6
11722 else
11723   if test -n "$ac_ct_NMEDIT"; then
11724   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11725 else
11726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727 for as_dir in $PATH
11728 do
11729   IFS=$as_save_IFS
11730   test -z "$as_dir" && as_dir=.
11731     for ac_exec_ext in '' $ac_executable_extensions; do
11732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11733     ac_cv_prog_ac_ct_NMEDIT="nmedit"
11734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11735     break 2
11736   fi
11737 done
11738   done
11739 IFS=$as_save_IFS
11740
11741 fi
11742 fi
11743 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11744 if test -n "$ac_ct_NMEDIT"; then
11745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11746 $as_echo "$ac_ct_NMEDIT" >&6; }
11747 else
11748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749 $as_echo "no" >&6; }
11750 fi
11751
11752   if test "x$ac_ct_NMEDIT" = x; then
11753     NMEDIT=":"
11754   else
11755     case $cross_compiling:$ac_tool_warned in
11756 yes:)
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11759 ac_tool_warned=yes ;;
11760 esac
11761     NMEDIT=$ac_ct_NMEDIT
11762   fi
11763 else
11764   NMEDIT="$ac_cv_prog_NMEDIT"
11765 fi
11766
11767     if test -n "$ac_tool_prefix"; then
11768   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11769 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11771 $as_echo_n "checking for $ac_word... " >&6; }
11772 if ${ac_cv_prog_LIPO+:} false; then :
11773   $as_echo_n "(cached) " >&6
11774 else
11775   if test -n "$LIPO"; then
11776   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11777 else
11778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11779 for as_dir in $PATH
11780 do
11781   IFS=$as_save_IFS
11782   test -z "$as_dir" && as_dir=.
11783     for ac_exec_ext in '' $ac_executable_extensions; do
11784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11785     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11787     break 2
11788   fi
11789 done
11790   done
11791 IFS=$as_save_IFS
11792
11793 fi
11794 fi
11795 LIPO=$ac_cv_prog_LIPO
11796 if test -n "$LIPO"; then
11797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11798 $as_echo "$LIPO" >&6; }
11799 else
11800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801 $as_echo "no" >&6; }
11802 fi
11803
11804
11805 fi
11806 if test -z "$ac_cv_prog_LIPO"; then
11807   ac_ct_LIPO=$LIPO
11808   # Extract the first word of "lipo", so it can be a program name with args.
11809 set dummy lipo; ac_word=$2
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11811 $as_echo_n "checking for $ac_word... " >&6; }
11812 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11813   $as_echo_n "(cached) " >&6
11814 else
11815   if test -n "$ac_ct_LIPO"; then
11816   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11817 else
11818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819 for as_dir in $PATH
11820 do
11821   IFS=$as_save_IFS
11822   test -z "$as_dir" && as_dir=.
11823     for ac_exec_ext in '' $ac_executable_extensions; do
11824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11825     ac_cv_prog_ac_ct_LIPO="lipo"
11826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11827     break 2
11828   fi
11829 done
11830   done
11831 IFS=$as_save_IFS
11832
11833 fi
11834 fi
11835 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11836 if test -n "$ac_ct_LIPO"; then
11837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11838 $as_echo "$ac_ct_LIPO" >&6; }
11839 else
11840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 $as_echo "no" >&6; }
11842 fi
11843
11844   if test "x$ac_ct_LIPO" = x; then
11845     LIPO=":"
11846   else
11847     case $cross_compiling:$ac_tool_warned in
11848 yes:)
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11851 ac_tool_warned=yes ;;
11852 esac
11853     LIPO=$ac_ct_LIPO
11854   fi
11855 else
11856   LIPO="$ac_cv_prog_LIPO"
11857 fi
11858
11859     if test -n "$ac_tool_prefix"; then
11860   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11861 set dummy ${ac_tool_prefix}otool; ac_word=$2
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863 $as_echo_n "checking for $ac_word... " >&6; }
11864 if ${ac_cv_prog_OTOOL+:} false; then :
11865   $as_echo_n "(cached) " >&6
11866 else
11867   if test -n "$OTOOL"; then
11868   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11869 else
11870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11871 for as_dir in $PATH
11872 do
11873   IFS=$as_save_IFS
11874   test -z "$as_dir" && as_dir=.
11875     for ac_exec_ext in '' $ac_executable_extensions; do
11876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11877     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11879     break 2
11880   fi
11881 done
11882   done
11883 IFS=$as_save_IFS
11884
11885 fi
11886 fi
11887 OTOOL=$ac_cv_prog_OTOOL
11888 if test -n "$OTOOL"; then
11889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11890 $as_echo "$OTOOL" >&6; }
11891 else
11892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893 $as_echo "no" >&6; }
11894 fi
11895
11896
11897 fi
11898 if test -z "$ac_cv_prog_OTOOL"; then
11899   ac_ct_OTOOL=$OTOOL
11900   # Extract the first word of "otool", so it can be a program name with args.
11901 set dummy otool; ac_word=$2
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903 $as_echo_n "checking for $ac_word... " >&6; }
11904 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11905   $as_echo_n "(cached) " >&6
11906 else
11907   if test -n "$ac_ct_OTOOL"; then
11908   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11909 else
11910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911 for as_dir in $PATH
11912 do
11913   IFS=$as_save_IFS
11914   test -z "$as_dir" && as_dir=.
11915     for ac_exec_ext in '' $ac_executable_extensions; do
11916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11917     ac_cv_prog_ac_ct_OTOOL="otool"
11918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11919     break 2
11920   fi
11921 done
11922   done
11923 IFS=$as_save_IFS
11924
11925 fi
11926 fi
11927 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11928 if test -n "$ac_ct_OTOOL"; then
11929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11930 $as_echo "$ac_ct_OTOOL" >&6; }
11931 else
11932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933 $as_echo "no" >&6; }
11934 fi
11935
11936   if test "x$ac_ct_OTOOL" = x; then
11937     OTOOL=":"
11938   else
11939     case $cross_compiling:$ac_tool_warned in
11940 yes:)
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11943 ac_tool_warned=yes ;;
11944 esac
11945     OTOOL=$ac_ct_OTOOL
11946   fi
11947 else
11948   OTOOL="$ac_cv_prog_OTOOL"
11949 fi
11950
11951     if test -n "$ac_tool_prefix"; then
11952   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11953 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11955 $as_echo_n "checking for $ac_word... " >&6; }
11956 if ${ac_cv_prog_OTOOL64+:} false; then :
11957   $as_echo_n "(cached) " >&6
11958 else
11959   if test -n "$OTOOL64"; then
11960   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11961 else
11962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963 for as_dir in $PATH
11964 do
11965   IFS=$as_save_IFS
11966   test -z "$as_dir" && as_dir=.
11967     for ac_exec_ext in '' $ac_executable_extensions; do
11968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11969     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11971     break 2
11972   fi
11973 done
11974   done
11975 IFS=$as_save_IFS
11976
11977 fi
11978 fi
11979 OTOOL64=$ac_cv_prog_OTOOL64
11980 if test -n "$OTOOL64"; then
11981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11982 $as_echo "$OTOOL64" >&6; }
11983 else
11984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985 $as_echo "no" >&6; }
11986 fi
11987
11988
11989 fi
11990 if test -z "$ac_cv_prog_OTOOL64"; then
11991   ac_ct_OTOOL64=$OTOOL64
11992   # Extract the first word of "otool64", so it can be a program name with args.
11993 set dummy otool64; ac_word=$2
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11995 $as_echo_n "checking for $ac_word... " >&6; }
11996 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11997   $as_echo_n "(cached) " >&6
11998 else
11999   if test -n "$ac_ct_OTOOL64"; then
12000   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12001 else
12002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003 for as_dir in $PATH
12004 do
12005   IFS=$as_save_IFS
12006   test -z "$as_dir" && as_dir=.
12007     for ac_exec_ext in '' $ac_executable_extensions; do
12008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12009     ac_cv_prog_ac_ct_OTOOL64="otool64"
12010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12011     break 2
12012   fi
12013 done
12014   done
12015 IFS=$as_save_IFS
12016
12017 fi
12018 fi
12019 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12020 if test -n "$ac_ct_OTOOL64"; then
12021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12022 $as_echo "$ac_ct_OTOOL64" >&6; }
12023 else
12024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025 $as_echo "no" >&6; }
12026 fi
12027
12028   if test "x$ac_ct_OTOOL64" = x; then
12029     OTOOL64=":"
12030   else
12031     case $cross_compiling:$ac_tool_warned in
12032 yes:)
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12035 ac_tool_warned=yes ;;
12036 esac
12037     OTOOL64=$ac_ct_OTOOL64
12038   fi
12039 else
12040   OTOOL64="$ac_cv_prog_OTOOL64"
12041 fi
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12070 $as_echo_n "checking for -single_module linker flag... " >&6; }
12071 if ${lt_cv_apple_cc_single_mod+:} false; then :
12072   $as_echo_n "(cached) " >&6
12073 else
12074   lt_cv_apple_cc_single_mod=no
12075       if test -z "${LT_MULTI_MODULE}"; then
12076         # By default we will add the -single_module flag. You can override
12077         # by either setting the environment variable LT_MULTI_MODULE
12078         # non-empty at configure time, or by adding -multi_module to the
12079         # link flags.
12080         rm -rf libconftest.dylib*
12081         echo "int foo(void){return 1;}" > conftest.c
12082         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12083 -dynamiclib -Wl,-single_module conftest.c" >&5
12084         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12085           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12086         _lt_result=$?
12087         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12088           lt_cv_apple_cc_single_mod=yes
12089         else
12090           cat conftest.err >&5
12091         fi
12092         rm -rf libconftest.dylib*
12093         rm -f conftest.*
12094       fi
12095 fi
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12097 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12098     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12099 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12100 if ${lt_cv_ld_exported_symbols_list+:} false; then :
12101   $as_echo_n "(cached) " >&6
12102 else
12103   lt_cv_ld_exported_symbols_list=no
12104       save_LDFLAGS=$LDFLAGS
12105       echo "_main" > conftest.sym
12106       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12107       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h.  */
12109
12110 int
12111 main ()
12112 {
12113
12114   ;
12115   return 0;
12116 }
12117 _ACEOF
12118 if ac_fn_c_try_link "$LINENO"; then :
12119   lt_cv_ld_exported_symbols_list=yes
12120 else
12121   lt_cv_ld_exported_symbols_list=no
12122 fi
12123 rm -f core conftest.err conftest.$ac_objext \
12124     conftest$ac_exeext conftest.$ac_ext
12125         LDFLAGS="$save_LDFLAGS"
12126
12127 fi
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12129 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12130     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12131 $as_echo_n "checking for -force_load linker flag... " >&6; }
12132 if ${lt_cv_ld_force_load+:} false; then :
12133   $as_echo_n "(cached) " >&6
12134 else
12135   lt_cv_ld_force_load=no
12136       cat > conftest.c << _LT_EOF
12137 int forced_loaded() { return 2;}
12138 _LT_EOF
12139       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12140       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12141       echo "$AR cru libconftest.a conftest.o" >&5
12142       $AR cru libconftest.a conftest.o 2>&5
12143       echo "$RANLIB libconftest.a" >&5
12144       $RANLIB libconftest.a 2>&5
12145       cat > conftest.c << _LT_EOF
12146 int main() { return 0;}
12147 _LT_EOF
12148       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12149       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12150       _lt_result=$?
12151       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12152         lt_cv_ld_force_load=yes
12153       else
12154         cat conftest.err >&5
12155       fi
12156         rm -f conftest.err libconftest.a conftest conftest.c
12157         rm -rf conftest.dSYM
12158
12159 fi
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12161 $as_echo "$lt_cv_ld_force_load" >&6; }
12162     case $host_os in
12163     rhapsody* | darwin1.[012])
12164       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12165     darwin1.*)
12166       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12167     darwin*) # darwin 5.x on
12168       # if running on 10.5 or later, the deployment target defaults
12169       # to the OS version, if on x86, and 10.4, the deployment
12170       # target defaults to 10.4. Don't you love it?
12171       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12172         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12173           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12174         10.[012]*)
12175           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12176         10.*)
12177           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12178       esac
12179     ;;
12180   esac
12181     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12182       _lt_dar_single_mod='$single_module'
12183     fi
12184     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12185       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12186     else
12187       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12188     fi
12189     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
12190       _lt_dsymutil='~$DSYMUTIL $lib || :'
12191     else
12192       _lt_dsymutil=
12193     fi
12194     ;;
12195   esac
12196
12197 for ac_header in dlfcn.h
12198 do :
12199   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12200 "
12201 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12202   cat >>confdefs.h <<_ACEOF
12203 #define HAVE_DLFCN_H 1
12204 _ACEOF
12205
12206 fi
12207
12208 done
12209
12210
12211
12212
12213 func_stripname_cnf ()
12214 {
12215   case ${2} in
12216   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12217   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12218   esac
12219 } # func_stripname_cnf
12220
12221
12222
12223
12224
12225 # Set options
12226 enable_win32_dll=yes
12227
12228 case $host in
12229 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12230   if test -n "$ac_tool_prefix"; then
12231   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12232 set dummy ${ac_tool_prefix}as; ac_word=$2
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12234 $as_echo_n "checking for $ac_word... " >&6; }
12235 if ${ac_cv_prog_AS+:} false; then :
12236   $as_echo_n "(cached) " >&6
12237 else
12238   if test -n "$AS"; then
12239   ac_cv_prog_AS="$AS" # Let the user override the test.
12240 else
12241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242 for as_dir in $PATH
12243 do
12244   IFS=$as_save_IFS
12245   test -z "$as_dir" && as_dir=.
12246     for ac_exec_ext in '' $ac_executable_extensions; do
12247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12248     ac_cv_prog_AS="${ac_tool_prefix}as"
12249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12250     break 2
12251   fi
12252 done
12253   done
12254 IFS=$as_save_IFS
12255
12256 fi
12257 fi
12258 AS=$ac_cv_prog_AS
12259 if test -n "$AS"; then
12260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12261 $as_echo "$AS" >&6; }
12262 else
12263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12264 $as_echo "no" >&6; }
12265 fi
12266
12267
12268 fi
12269 if test -z "$ac_cv_prog_AS"; then
12270   ac_ct_AS=$AS
12271   # Extract the first word of "as", so it can be a program name with args.
12272 set dummy as; ac_word=$2
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12274 $as_echo_n "checking for $ac_word... " >&6; }
12275 if ${ac_cv_prog_ac_ct_AS+:} false; then :
12276   $as_echo_n "(cached) " >&6
12277 else
12278   if test -n "$ac_ct_AS"; then
12279   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12280 else
12281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12282 for as_dir in $PATH
12283 do
12284   IFS=$as_save_IFS
12285   test -z "$as_dir" && as_dir=.
12286     for ac_exec_ext in '' $ac_executable_extensions; do
12287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12288     ac_cv_prog_ac_ct_AS="as"
12289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12290     break 2
12291   fi
12292 done
12293   done
12294 IFS=$as_save_IFS
12295
12296 fi
12297 fi
12298 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12299 if test -n "$ac_ct_AS"; then
12300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12301 $as_echo "$ac_ct_AS" >&6; }
12302 else
12303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304 $as_echo "no" >&6; }
12305 fi
12306
12307   if test "x$ac_ct_AS" = x; then
12308     AS="false"
12309   else
12310     case $cross_compiling:$ac_tool_warned in
12311 yes:)
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12314 ac_tool_warned=yes ;;
12315 esac
12316     AS=$ac_ct_AS
12317   fi
12318 else
12319   AS="$ac_cv_prog_AS"
12320 fi
12321
12322   if test -n "$ac_tool_prefix"; then
12323   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12324 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12326 $as_echo_n "checking for $ac_word... " >&6; }
12327 if ${ac_cv_prog_DLLTOOL+:} false; then :
12328   $as_echo_n "(cached) " >&6
12329 else
12330   if test -n "$DLLTOOL"; then
12331   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12332 else
12333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12334 for as_dir in $PATH
12335 do
12336   IFS=$as_save_IFS
12337   test -z "$as_dir" && as_dir=.
12338     for ac_exec_ext in '' $ac_executable_extensions; do
12339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12340     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12342     break 2
12343   fi
12344 done
12345   done
12346 IFS=$as_save_IFS
12347
12348 fi
12349 fi
12350 DLLTOOL=$ac_cv_prog_DLLTOOL
12351 if test -n "$DLLTOOL"; then
12352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12353 $as_echo "$DLLTOOL" >&6; }
12354 else
12355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356 $as_echo "no" >&6; }
12357 fi
12358
12359
12360 fi
12361 if test -z "$ac_cv_prog_DLLTOOL"; then
12362   ac_ct_DLLTOOL=$DLLTOOL
12363   # Extract the first word of "dlltool", so it can be a program name with args.
12364 set dummy dlltool; ac_word=$2
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366 $as_echo_n "checking for $ac_word... " >&6; }
12367 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12368   $as_echo_n "(cached) " >&6
12369 else
12370   if test -n "$ac_ct_DLLTOOL"; then
12371   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12372 else
12373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374 for as_dir in $PATH
12375 do
12376   IFS=$as_save_IFS
12377   test -z "$as_dir" && as_dir=.
12378     for ac_exec_ext in '' $ac_executable_extensions; do
12379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12380     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12382     break 2
12383   fi
12384 done
12385   done
12386 IFS=$as_save_IFS
12387
12388 fi
12389 fi
12390 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12391 if test -n "$ac_ct_DLLTOOL"; then
12392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12393 $as_echo "$ac_ct_DLLTOOL" >&6; }
12394 else
12395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396 $as_echo "no" >&6; }
12397 fi
12398
12399   if test "x$ac_ct_DLLTOOL" = x; then
12400     DLLTOOL="false"
12401   else
12402     case $cross_compiling:$ac_tool_warned in
12403 yes:)
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12406 ac_tool_warned=yes ;;
12407 esac
12408     DLLTOOL=$ac_ct_DLLTOOL
12409   fi
12410 else
12411   DLLTOOL="$ac_cv_prog_DLLTOOL"
12412 fi
12413
12414   if test -n "$ac_tool_prefix"; then
12415   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12416 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12418 $as_echo_n "checking for $ac_word... " >&6; }
12419 if ${ac_cv_prog_OBJDUMP+:} false; then :
12420   $as_echo_n "(cached) " >&6
12421 else
12422   if test -n "$OBJDUMP"; then
12423   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12424 else
12425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12426 for as_dir in $PATH
12427 do
12428   IFS=$as_save_IFS
12429   test -z "$as_dir" && as_dir=.
12430     for ac_exec_ext in '' $ac_executable_extensions; do
12431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12432     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12434     break 2
12435   fi
12436 done
12437   done
12438 IFS=$as_save_IFS
12439
12440 fi
12441 fi
12442 OBJDUMP=$ac_cv_prog_OBJDUMP
12443 if test -n "$OBJDUMP"; then
12444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12445 $as_echo "$OBJDUMP" >&6; }
12446 else
12447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448 $as_echo "no" >&6; }
12449 fi
12450
12451
12452 fi
12453 if test -z "$ac_cv_prog_OBJDUMP"; then
12454   ac_ct_OBJDUMP=$OBJDUMP
12455   # Extract the first word of "objdump", so it can be a program name with args.
12456 set dummy objdump; ac_word=$2
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458 $as_echo_n "checking for $ac_word... " >&6; }
12459 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12460   $as_echo_n "(cached) " >&6
12461 else
12462   if test -n "$ac_ct_OBJDUMP"; then
12463   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12464 else
12465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466 for as_dir in $PATH
12467 do
12468   IFS=$as_save_IFS
12469   test -z "$as_dir" && as_dir=.
12470     for ac_exec_ext in '' $ac_executable_extensions; do
12471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12472     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12474     break 2
12475   fi
12476 done
12477   done
12478 IFS=$as_save_IFS
12479
12480 fi
12481 fi
12482 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12483 if test -n "$ac_ct_OBJDUMP"; then
12484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12485 $as_echo "$ac_ct_OBJDUMP" >&6; }
12486 else
12487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488 $as_echo "no" >&6; }
12489 fi
12490
12491   if test "x$ac_ct_OBJDUMP" = x; then
12492     OBJDUMP="false"
12493   else
12494     case $cross_compiling:$ac_tool_warned in
12495 yes:)
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12498 ac_tool_warned=yes ;;
12499 esac
12500     OBJDUMP=$ac_ct_OBJDUMP
12501   fi
12502 else
12503   OBJDUMP="$ac_cv_prog_OBJDUMP"
12504 fi
12505
12506   ;;
12507 esac
12508
12509 test -z "$AS" && AS=as
12510
12511
12512
12513
12514
12515 test -z "$DLLTOOL" && DLLTOOL=dlltool
12516
12517
12518
12519
12520
12521 test -z "$OBJDUMP" && OBJDUMP=objdump
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531             # Check whether --enable-shared was given.
12532 if test "${enable_shared+set}" = set; then :
12533   enableval=$enable_shared; p=${PACKAGE-default}
12534     case $enableval in
12535     yes) enable_shared=yes ;;
12536     no) enable_shared=no ;;
12537     *)
12538       enable_shared=no
12539       # Look at the argument we got.  We use all the common list separators.
12540       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12541       for pkg in $enableval; do
12542         IFS="$lt_save_ifs"
12543         if test "X$pkg" = "X$p"; then
12544           enable_shared=yes
12545         fi
12546       done
12547       IFS="$lt_save_ifs"
12548       ;;
12549     esac
12550 else
12551   enable_shared=yes
12552 fi
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562   # Check whether --enable-static was given.
12563 if test "${enable_static+set}" = set; then :
12564   enableval=$enable_static; p=${PACKAGE-default}
12565     case $enableval in
12566     yes) enable_static=yes ;;
12567     no) enable_static=no ;;
12568     *)
12569      enable_static=no
12570       # Look at the argument we got.  We use all the common list separators.
12571       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12572       for pkg in $enableval; do
12573         IFS="$lt_save_ifs"
12574         if test "X$pkg" = "X$p"; then
12575           enable_static=yes
12576         fi
12577       done
12578       IFS="$lt_save_ifs"
12579       ;;
12580     esac
12581 else
12582   enable_static=yes
12583 fi
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594 # Check whether --with-pic was given.
12595 if test "${with_pic+set}" = set; then :
12596   withval=$with_pic; pic_mode="$withval"
12597 else
12598   pic_mode=default
12599 fi
12600
12601
12602 test -z "$pic_mode" && pic_mode=default
12603
12604
12605
12606
12607
12608
12609
12610   # Check whether --enable-fast-install was given.
12611 if test "${enable_fast_install+set}" = set; then :
12612   enableval=$enable_fast_install; p=${PACKAGE-default}
12613     case $enableval in
12614     yes) enable_fast_install=yes ;;
12615     no) enable_fast_install=no ;;
12616     *)
12617       enable_fast_install=no
12618       # Look at the argument we got.  We use all the common list separators.
12619       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12620       for pkg in $enableval; do
12621         IFS="$lt_save_ifs"
12622         if test "X$pkg" = "X$p"; then
12623           enable_fast_install=yes
12624         fi
12625       done
12626       IFS="$lt_save_ifs"
12627       ;;
12628     esac
12629 else
12630   enable_fast_install=yes
12631 fi
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643 # This can be used to rebuild libtool when needed
12644 LIBTOOL_DEPS="$ltmain"
12645
12646 # Always use our own libtool.
12647 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674 test -z "$LN_S" && LN_S="ln -s"
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689 if test -n "${ZSH_VERSION+set}" ; then
12690    setopt NO_GLOB_SUBST
12691 fi
12692
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12694 $as_echo_n "checking for objdir... " >&6; }
12695 if ${lt_cv_objdir+:} false; then :
12696   $as_echo_n "(cached) " >&6
12697 else
12698   rm -f .libs 2>/dev/null
12699 mkdir .libs 2>/dev/null
12700 if test -d .libs; then
12701   lt_cv_objdir=.libs
12702 else
12703   # MS-DOS does not allow filenames that begin with a dot.
12704   lt_cv_objdir=_libs
12705 fi
12706 rmdir .libs 2>/dev/null
12707 fi
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12709 $as_echo "$lt_cv_objdir" >&6; }
12710 objdir=$lt_cv_objdir
12711
12712
12713
12714
12715
12716 cat >>confdefs.h <<_ACEOF
12717 #define LT_OBJDIR "$lt_cv_objdir/"
12718 _ACEOF
12719
12720
12721
12722
12723 case $host_os in
12724 aix3*)
12725   # AIX sometimes has problems with the GCC collect2 program.  For some
12726   # reason, if we set the COLLECT_NAMES environment variable, the problems
12727   # vanish in a puff of smoke.
12728   if test "X${COLLECT_NAMES+set}" != Xset; then
12729     COLLECT_NAMES=
12730     export COLLECT_NAMES
12731   fi
12732   ;;
12733 esac
12734
12735 # Global variables:
12736 ofile=libtool
12737 can_build_shared=yes
12738
12739 # All known linkers require a `.a' archive for static linking (except MSVC,
12740 # which needs '.lib').
12741 libext=a
12742
12743 with_gnu_ld="$lt_cv_prog_gnu_ld"
12744
12745 old_CC="$CC"
12746 old_CFLAGS="$CFLAGS"
12747
12748 # Set sane defaults for various variables
12749 test -z "$CC" && CC=cc
12750 test -z "$LTCC" && LTCC=$CC
12751 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12752 test -z "$LD" && LD=ld
12753 test -z "$ac_objext" && ac_objext=o
12754
12755 for cc_temp in $compiler""; do
12756   case $cc_temp in
12757     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12758     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12759     \-*) ;;
12760     *) break;;
12761   esac
12762 done
12763 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12764
12765
12766 # Only perform the check for file, if the check method requires it
12767 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12768 case $deplibs_check_method in
12769 file_magic*)
12770   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12772 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12773 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12774   $as_echo_n "(cached) " >&6
12775 else
12776   case $MAGIC_CMD in
12777 [\\/*] |  ?:[\\/]*)
12778   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12779   ;;
12780 *)
12781   lt_save_MAGIC_CMD="$MAGIC_CMD"
12782   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12783   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12784   for ac_dir in $ac_dummy; do
12785     IFS="$lt_save_ifs"
12786     test -z "$ac_dir" && ac_dir=.
12787     if test -f $ac_dir/${ac_tool_prefix}file; then
12788       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12789       if test -n "$file_magic_test_file"; then
12790         case $deplibs_check_method in
12791         "file_magic "*)
12792           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12793           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12794           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12795             $EGREP "$file_magic_regex" > /dev/null; then
12796             :
12797           else
12798             cat <<_LT_EOF 1>&2
12799
12800 *** Warning: the command libtool uses to detect shared libraries,
12801 *** $file_magic_cmd, produces output that libtool cannot recognize.
12802 *** The result is that libtool may fail to recognize shared libraries
12803 *** as such.  This will affect the creation of libtool libraries that
12804 *** depend on shared libraries, but programs linked with such libtool
12805 *** libraries will work regardless of this problem.  Nevertheless, you
12806 *** may want to report the problem to your system manager and/or to
12807 *** bug-libtool@gnu.org
12808
12809 _LT_EOF
12810           fi ;;
12811         esac
12812       fi
12813       break
12814     fi
12815   done
12816   IFS="$lt_save_ifs"
12817   MAGIC_CMD="$lt_save_MAGIC_CMD"
12818   ;;
12819 esac
12820 fi
12821
12822 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12823 if test -n "$MAGIC_CMD"; then
12824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12825 $as_echo "$MAGIC_CMD" >&6; }
12826 else
12827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12828 $as_echo "no" >&6; }
12829 fi
12830
12831
12832
12833
12834
12835 if test -z "$lt_cv_path_MAGIC_CMD"; then
12836   if test -n "$ac_tool_prefix"; then
12837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12838 $as_echo_n "checking for file... " >&6; }
12839 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12840   $as_echo_n "(cached) " >&6
12841 else
12842   case $MAGIC_CMD in
12843 [\\/*] |  ?:[\\/]*)
12844   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12845   ;;
12846 *)
12847   lt_save_MAGIC_CMD="$MAGIC_CMD"
12848   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12849   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12850   for ac_dir in $ac_dummy; do
12851     IFS="$lt_save_ifs"
12852     test -z "$ac_dir" && ac_dir=.
12853     if test -f $ac_dir/file; then
12854       lt_cv_path_MAGIC_CMD="$ac_dir/file"
12855       if test -n "$file_magic_test_file"; then
12856         case $deplibs_check_method in
12857         "file_magic "*)
12858           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12859           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12860           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12861             $EGREP "$file_magic_regex" > /dev/null; then
12862             :
12863           else
12864             cat <<_LT_EOF 1>&2
12865
12866 *** Warning: the command libtool uses to detect shared libraries,
12867 *** $file_magic_cmd, produces output that libtool cannot recognize.
12868 *** The result is that libtool may fail to recognize shared libraries
12869 *** as such.  This will affect the creation of libtool libraries that
12870 *** depend on shared libraries, but programs linked with such libtool
12871 *** libraries will work regardless of this problem.  Nevertheless, you
12872 *** may want to report the problem to your system manager and/or to
12873 *** bug-libtool@gnu.org
12874
12875 _LT_EOF
12876           fi ;;
12877         esac
12878       fi
12879       break
12880     fi
12881   done
12882   IFS="$lt_save_ifs"
12883   MAGIC_CMD="$lt_save_MAGIC_CMD"
12884   ;;
12885 esac
12886 fi
12887
12888 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12889 if test -n "$MAGIC_CMD"; then
12890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12891 $as_echo "$MAGIC_CMD" >&6; }
12892 else
12893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12894 $as_echo "no" >&6; }
12895 fi
12896
12897
12898   else
12899     MAGIC_CMD=:
12900   fi
12901 fi
12902
12903   fi
12904   ;;
12905 esac
12906
12907 # Use C for the default configuration in the libtool script
12908
12909 lt_save_CC="$CC"
12910 ac_ext=c
12911 ac_cpp='$CPP $CPPFLAGS'
12912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12915
12916
12917 # Source file extension for C test sources.
12918 ac_ext=c
12919
12920 # Object file extension for compiled C test sources.
12921 objext=o
12922 objext=$objext
12923
12924 # Code to be used in simple compile tests
12925 lt_simple_compile_test_code="int some_variable = 0;"
12926
12927 # Code to be used in simple link tests
12928 lt_simple_link_test_code='int main(){return(0);}'
12929
12930
12931
12932
12933
12934
12935
12936 # If no C compiler was specified, use CC.
12937 LTCC=${LTCC-"$CC"}
12938
12939 # If no C compiler flags were specified, use CFLAGS.
12940 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12941
12942 # Allow CC to be a program name with arguments.
12943 compiler=$CC
12944
12945 # Save the default compiler, since it gets overwritten when the other
12946 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12947 compiler_DEFAULT=$CC
12948
12949 # save warnings/boilerplate of simple test code
12950 ac_outfile=conftest.$ac_objext
12951 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12952 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12953 _lt_compiler_boilerplate=`cat conftest.err`
12954 $RM conftest*
12955
12956 ac_outfile=conftest.$ac_objext
12957 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12958 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12959 _lt_linker_boilerplate=`cat conftest.err`
12960 $RM -r conftest*
12961
12962
12963 ## CAVEAT EMPTOR:
12964 ## There is no encapsulation within the following macros, do not change
12965 ## the running order or otherwise move them around unless you know exactly
12966 ## what you are doing...
12967 if test -n "$compiler"; then
12968
12969 lt_prog_compiler_no_builtin_flag=
12970
12971 if test "$GCC" = yes; then
12972   case $cc_basename in
12973   nvcc*)
12974     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12975   *)
12976     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12977   esac
12978
12979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12980 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12981 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12982   $as_echo_n "(cached) " >&6
12983 else
12984   lt_cv_prog_compiler_rtti_exceptions=no
12985    ac_outfile=conftest.$ac_objext
12986    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12987    lt_compiler_flag="-fno-rtti -fno-exceptions"
12988    # Insert the option either (1) after the last *FLAGS variable, or
12989    # (2) before a word containing "conftest.", or (3) at the end.
12990    # Note that $ac_compile itself does not contain backslashes and begins
12991    # with a dollar sign (not a hyphen), so the echo should work correctly.
12992    # The option is referenced via a variable to avoid confusing sed.
12993    lt_compile=`echo "$ac_compile" | $SED \
12994    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12995    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12996    -e 's:$: $lt_compiler_flag:'`
12997    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12998    (eval "$lt_compile" 2>conftest.err)
12999    ac_status=$?
13000    cat conftest.err >&5
13001    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002    if (exit $ac_status) && test -s "$ac_outfile"; then
13003      # The compiler can only warn and ignore the option if not recognized
13004      # So say no if there are warnings other than the usual output.
13005      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13006      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13007      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13008        lt_cv_prog_compiler_rtti_exceptions=yes
13009      fi
13010    fi
13011    $RM conftest*
13012
13013 fi
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13015 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13016
13017 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13018     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13019 else
13020     :
13021 fi
13022
13023 fi
13024
13025
13026
13027
13028
13029
13030   lt_prog_compiler_wl=
13031 lt_prog_compiler_pic=
13032 lt_prog_compiler_static=
13033
13034
13035   if test "$GCC" = yes; then
13036     lt_prog_compiler_wl='-Wl,'
13037     lt_prog_compiler_static='-static'
13038
13039     case $host_os in
13040       aix*)
13041       # All AIX code is PIC.
13042       if test "$host_cpu" = ia64; then
13043         # AIX 5 now supports IA64 processor
13044         lt_prog_compiler_static='-Bstatic'
13045       fi
13046       ;;
13047
13048     amigaos*)
13049       case $host_cpu in
13050       powerpc)
13051             # see comment about AmigaOS4 .so support
13052             lt_prog_compiler_pic='-fPIC'
13053         ;;
13054       m68k)
13055             # FIXME: we need at least 68020 code to build shared libraries, but
13056             # adding the `-m68020' flag to GCC prevents building anything better,
13057             # like `-m68040'.
13058             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13059         ;;
13060       esac
13061       ;;
13062
13063     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13064       # PIC is the default for these OSes.
13065       ;;
13066
13067     mingw* | cygwin* | pw32* | os2* | cegcc*)
13068       # This hack is so that the source file can tell whether it is being
13069       # built for inclusion in a dll (and should export symbols for example).
13070       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13071       # (--disable-auto-import) libraries
13072       lt_prog_compiler_pic='-DDLL_EXPORT'
13073       ;;
13074
13075     darwin* | rhapsody*)
13076       # PIC is the default on this platform
13077       # Common symbols not allowed in MH_DYLIB files
13078       lt_prog_compiler_pic='-fno-common'
13079       ;;
13080
13081     haiku*)
13082       # PIC is the default for Haiku.
13083       # The "-static" flag exists, but is broken.
13084       lt_prog_compiler_static=
13085       ;;
13086
13087     hpux*)
13088       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13089       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13090       # sets the default TLS model and affects inlining.
13091       case $host_cpu in
13092       hppa*64*)
13093         # +Z the default
13094         ;;
13095       *)
13096         lt_prog_compiler_pic='-fPIC'
13097         ;;
13098       esac
13099       ;;
13100
13101     interix[3-9]*)
13102       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13103       # Instead, we relocate shared libraries at runtime.
13104       ;;
13105
13106     msdosdjgpp*)
13107       # Just because we use GCC doesn't mean we suddenly get shared libraries
13108       # on systems that don't support them.
13109       lt_prog_compiler_can_build_shared=no
13110       enable_shared=no
13111       ;;
13112
13113     *nto* | *qnx*)
13114       # QNX uses GNU C++, but need to define -shared option too, otherwise
13115       # it will coredump.
13116       lt_prog_compiler_pic='-fPIC -shared'
13117       ;;
13118
13119     sysv4*MP*)
13120       if test -d /usr/nec; then
13121         lt_prog_compiler_pic=-Kconform_pic
13122       fi
13123       ;;
13124
13125     *)
13126       lt_prog_compiler_pic='-fPIC'
13127       ;;
13128     esac
13129
13130     case $cc_basename in
13131     nvcc*) # Cuda Compiler Driver 2.2
13132       lt_prog_compiler_wl='-Xlinker '
13133       lt_prog_compiler_pic='-Xcompiler -fPIC'
13134       ;;
13135     esac
13136   else
13137     # PORTME Check for flag to pass linker flags through the system compiler.
13138     case $host_os in
13139     aix*)
13140       lt_prog_compiler_wl='-Wl,'
13141       if test "$host_cpu" = ia64; then
13142         # AIX 5 now supports IA64 processor
13143         lt_prog_compiler_static='-Bstatic'
13144       else
13145         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13146       fi
13147       ;;
13148
13149     mingw* | cygwin* | pw32* | os2* | cegcc*)
13150       # This hack is so that the source file can tell whether it is being
13151       # built for inclusion in a dll (and should export symbols for example).
13152       lt_prog_compiler_pic='-DDLL_EXPORT'
13153       ;;
13154
13155     hpux9* | hpux10* | hpux11*)
13156       lt_prog_compiler_wl='-Wl,'
13157       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13158       # not for PA HP-UX.
13159       case $host_cpu in
13160       hppa*64*|ia64*)
13161         # +Z the default
13162         ;;
13163       *)
13164         lt_prog_compiler_pic='+Z'
13165         ;;
13166       esac
13167       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13168       lt_prog_compiler_static='${wl}-a ${wl}archive'
13169       ;;
13170
13171     irix5* | irix6* | nonstopux*)
13172       lt_prog_compiler_wl='-Wl,'
13173       # PIC (with -KPIC) is the default.
13174       lt_prog_compiler_static='-non_shared'
13175       ;;
13176
13177     linux* | k*bsd*-gnu | kopensolaris*-gnu)
13178       case $cc_basename in
13179       # old Intel for x86_64 which still supported -KPIC.
13180       ecc*)
13181         lt_prog_compiler_wl='-Wl,'
13182         lt_prog_compiler_pic='-KPIC'
13183         lt_prog_compiler_static='-static'
13184         ;;
13185       # icc used to be incompatible with GCC.
13186       # ICC 10 doesn't accept -KPIC any more.
13187       icc* | ifort*)
13188         lt_prog_compiler_wl='-Wl,'
13189         lt_prog_compiler_pic='-fPIC'
13190         lt_prog_compiler_static='-static'
13191         ;;
13192       # Lahey Fortran 8.1.
13193       lf95*)
13194         lt_prog_compiler_wl='-Wl,'
13195         lt_prog_compiler_pic='--shared'
13196         lt_prog_compiler_static='--static'
13197         ;;
13198       nagfor*)
13199         # NAG Fortran compiler
13200         lt_prog_compiler_wl='-Wl,-Wl,,'
13201         lt_prog_compiler_pic='-PIC'
13202         lt_prog_compiler_static='-Bstatic'
13203         ;;
13204       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13205         # Portland Group compilers (*not* the Pentium gcc compiler,
13206         # which looks to be a dead project)
13207         lt_prog_compiler_wl='-Wl,'
13208         lt_prog_compiler_pic='-fpic'
13209         lt_prog_compiler_static='-Bstatic'
13210         ;;
13211       ccc*)
13212         lt_prog_compiler_wl='-Wl,'
13213         # All Alpha code is PIC.
13214         lt_prog_compiler_static='-non_shared'
13215         ;;
13216       xl* | bgxl* | bgf* | mpixl*)
13217         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13218         lt_prog_compiler_wl='-Wl,'
13219         lt_prog_compiler_pic='-qpic'
13220         lt_prog_compiler_static='-qstaticlink'
13221         ;;
13222       *)
13223         case `$CC -V 2>&1 | sed 5q` in
13224         *Sun\ F* | *Sun*Fortran*)
13225           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13226           lt_prog_compiler_pic='-KPIC'
13227           lt_prog_compiler_static='-Bstatic'
13228           lt_prog_compiler_wl=''
13229           ;;
13230         *Sun\ C*)
13231           # Sun C 5.9
13232           lt_prog_compiler_pic='-KPIC'
13233           lt_prog_compiler_static='-Bstatic'
13234           lt_prog_compiler_wl='-Wl,'
13235           ;;
13236         esac
13237         ;;
13238       esac
13239       ;;
13240
13241     newsos6)
13242       lt_prog_compiler_pic='-KPIC'
13243       lt_prog_compiler_static='-Bstatic'
13244       ;;
13245
13246     *nto* | *qnx*)
13247       # QNX uses GNU C++, but need to define -shared option too, otherwise
13248       # it will coredump.
13249       lt_prog_compiler_pic='-fPIC -shared'
13250       ;;
13251
13252     osf3* | osf4* | osf5*)
13253       lt_prog_compiler_wl='-Wl,'
13254       # All OSF/1 code is PIC.
13255       lt_prog_compiler_static='-non_shared'
13256       ;;
13257
13258     rdos*)
13259       lt_prog_compiler_static='-non_shared'
13260       ;;
13261
13262     solaris*)
13263       lt_prog_compiler_pic='-KPIC'
13264       lt_prog_compiler_static='-Bstatic'
13265       case $cc_basename in
13266       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13267         lt_prog_compiler_wl='-Qoption ld ';;
13268       *)
13269         lt_prog_compiler_wl='-Wl,';;
13270       esac
13271       ;;
13272
13273     sunos4*)
13274       lt_prog_compiler_wl='-Qoption ld '
13275       lt_prog_compiler_pic='-PIC'
13276       lt_prog_compiler_static='-Bstatic'
13277       ;;
13278
13279     sysv4 | sysv4.2uw2* | sysv4.3*)
13280       lt_prog_compiler_wl='-Wl,'
13281       lt_prog_compiler_pic='-KPIC'
13282       lt_prog_compiler_static='-Bstatic'
13283       ;;
13284
13285     sysv4*MP*)
13286       if test -d /usr/nec ;then
13287         lt_prog_compiler_pic='-Kconform_pic'
13288         lt_prog_compiler_static='-Bstatic'
13289       fi
13290       ;;
13291
13292     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13293       lt_prog_compiler_wl='-Wl,'
13294       lt_prog_compiler_pic='-KPIC'
13295       lt_prog_compiler_static='-Bstatic'
13296       ;;
13297
13298     unicos*)
13299       lt_prog_compiler_wl='-Wl,'
13300       lt_prog_compiler_can_build_shared=no
13301       ;;
13302
13303     uts4*)
13304       lt_prog_compiler_pic='-pic'
13305       lt_prog_compiler_static='-Bstatic'
13306       ;;
13307
13308     *)
13309       lt_prog_compiler_can_build_shared=no
13310       ;;
13311     esac
13312   fi
13313
13314 case $host_os in
13315   # For platforms which do not support PIC, -DPIC is meaningless:
13316   *djgpp*)
13317     lt_prog_compiler_pic=
13318     ;;
13319   *)
13320     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13321     ;;
13322 esac
13323
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13325 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13326 if ${lt_cv_prog_compiler_pic+:} false; then :
13327   $as_echo_n "(cached) " >&6
13328 else
13329   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13330 fi
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13332 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
13333 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13334
13335 #
13336 # Check to make sure the PIC flag actually works.
13337 #
13338 if test -n "$lt_prog_compiler_pic"; then
13339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13340 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13341 if ${lt_cv_prog_compiler_pic_works+:} false; then :
13342   $as_echo_n "(cached) " >&6
13343 else
13344   lt_cv_prog_compiler_pic_works=no
13345    ac_outfile=conftest.$ac_objext
13346    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13347    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13348    # Insert the option either (1) after the last *FLAGS variable, or
13349    # (2) before a word containing "conftest.", or (3) at the end.
13350    # Note that $ac_compile itself does not contain backslashes and begins
13351    # with a dollar sign (not a hyphen), so the echo should work correctly.
13352    # The option is referenced via a variable to avoid confusing sed.
13353    lt_compile=`echo "$ac_compile" | $SED \
13354    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13355    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13356    -e 's:$: $lt_compiler_flag:'`
13357    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13358    (eval "$lt_compile" 2>conftest.err)
13359    ac_status=$?
13360    cat conftest.err >&5
13361    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362    if (exit $ac_status) && test -s "$ac_outfile"; then
13363      # The compiler can only warn and ignore the option if not recognized
13364      # So say no if there are warnings other than the usual output.
13365      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13366      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13367      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13368        lt_cv_prog_compiler_pic_works=yes
13369      fi
13370    fi
13371    $RM conftest*
13372
13373 fi
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13375 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13376
13377 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13378     case $lt_prog_compiler_pic in
13379      "" | " "*) ;;
13380      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13381      esac
13382 else
13383     lt_prog_compiler_pic=
13384      lt_prog_compiler_can_build_shared=no
13385 fi
13386
13387 fi
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399 #
13400 # Check to make sure the static flag actually works.
13401 #
13402 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13404 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13405 if ${lt_cv_prog_compiler_static_works+:} false; then :
13406   $as_echo_n "(cached) " >&6
13407 else
13408   lt_cv_prog_compiler_static_works=no
13409    save_LDFLAGS="$LDFLAGS"
13410    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13411    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13412    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13413      # The linker can only warn and ignore the option if not recognized
13414      # So say no if there are warnings
13415      if test -s conftest.err; then
13416        # Append any errors to the config.log.
13417        cat conftest.err 1>&5
13418        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13419        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13420        if diff conftest.exp conftest.er2 >/dev/null; then
13421          lt_cv_prog_compiler_static_works=yes
13422        fi
13423      else
13424        lt_cv_prog_compiler_static_works=yes
13425      fi
13426    fi
13427    $RM -r conftest*
13428    LDFLAGS="$save_LDFLAGS"
13429
13430 fi
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13432 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13433
13434 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13435     :
13436 else
13437     lt_prog_compiler_static=
13438 fi
13439
13440
13441
13442
13443
13444
13445
13446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13447 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13448 if ${lt_cv_prog_compiler_c_o+:} false; then :
13449   $as_echo_n "(cached) " >&6
13450 else
13451   lt_cv_prog_compiler_c_o=no
13452    $RM -r conftest 2>/dev/null
13453    mkdir conftest
13454    cd conftest
13455    mkdir out
13456    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13457
13458    lt_compiler_flag="-o out/conftest2.$ac_objext"
13459    # Insert the option either (1) after the last *FLAGS variable, or
13460    # (2) before a word containing "conftest.", or (3) at the end.
13461    # Note that $ac_compile itself does not contain backslashes and begins
13462    # with a dollar sign (not a hyphen), so the echo should work correctly.
13463    lt_compile=`echo "$ac_compile" | $SED \
13464    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13465    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13466    -e 's:$: $lt_compiler_flag:'`
13467    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13468    (eval "$lt_compile" 2>out/conftest.err)
13469    ac_status=$?
13470    cat out/conftest.err >&5
13471    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13473    then
13474      # The compiler can only warn and ignore the option if not recognized
13475      # So say no if there are warnings
13476      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13477      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13478      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13479        lt_cv_prog_compiler_c_o=yes
13480      fi
13481    fi
13482    chmod u+w . 2>&5
13483    $RM conftest*
13484    # SGI C++ compiler will create directory out/ii_files/ for
13485    # template instantiation
13486    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13487    $RM out/* && rmdir out
13488    cd ..
13489    $RM -r conftest
13490    $RM conftest*
13491
13492 fi
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13494 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13495
13496
13497
13498
13499
13500
13501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13502 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13503 if ${lt_cv_prog_compiler_c_o+:} false; then :
13504   $as_echo_n "(cached) " >&6
13505 else
13506   lt_cv_prog_compiler_c_o=no
13507    $RM -r conftest 2>/dev/null
13508    mkdir conftest
13509    cd conftest
13510    mkdir out
13511    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13512
13513    lt_compiler_flag="-o out/conftest2.$ac_objext"
13514    # Insert the option either (1) after the last *FLAGS variable, or
13515    # (2) before a word containing "conftest.", or (3) at the end.
13516    # Note that $ac_compile itself does not contain backslashes and begins
13517    # with a dollar sign (not a hyphen), so the echo should work correctly.
13518    lt_compile=`echo "$ac_compile" | $SED \
13519    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13520    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13521    -e 's:$: $lt_compiler_flag:'`
13522    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13523    (eval "$lt_compile" 2>out/conftest.err)
13524    ac_status=$?
13525    cat out/conftest.err >&5
13526    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13528    then
13529      # The compiler can only warn and ignore the option if not recognized
13530      # So say no if there are warnings
13531      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13532      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13533      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13534        lt_cv_prog_compiler_c_o=yes
13535      fi
13536    fi
13537    chmod u+w . 2>&5
13538    $RM conftest*
13539    # SGI C++ compiler will create directory out/ii_files/ for
13540    # template instantiation
13541    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13542    $RM out/* && rmdir out
13543    cd ..
13544    $RM -r conftest
13545    $RM conftest*
13546
13547 fi
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13549 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13550
13551
13552
13553
13554 hard_links="nottested"
13555 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13556   # do not overwrite the value of need_locks provided by the user
13557   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13558 $as_echo_n "checking if we can lock with hard links... " >&6; }
13559   hard_links=yes
13560   $RM conftest*
13561   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13562   touch conftest.a
13563   ln conftest.a conftest.b 2>&5 || hard_links=no
13564   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13566 $as_echo "$hard_links" >&6; }
13567   if test "$hard_links" = no; then
13568     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13569 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13570     need_locks=warn
13571   fi
13572 else
13573   need_locks=no
13574 fi
13575
13576
13577
13578
13579
13580
13581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13582 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13583
13584   runpath_var=
13585   allow_undefined_flag=
13586   always_export_symbols=no
13587   archive_cmds=
13588   archive_expsym_cmds=
13589   compiler_needs_object=no
13590   enable_shared_with_static_runtimes=no
13591   export_dynamic_flag_spec=
13592   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13593   hardcode_automatic=no
13594   hardcode_direct=no
13595   hardcode_direct_absolute=no
13596   hardcode_libdir_flag_spec=
13597   hardcode_libdir_flag_spec_ld=
13598   hardcode_libdir_separator=
13599   hardcode_minus_L=no
13600   hardcode_shlibpath_var=unsupported
13601   inherit_rpath=no
13602   link_all_deplibs=unknown
13603   module_cmds=
13604   module_expsym_cmds=
13605   old_archive_from_new_cmds=
13606   old_archive_from_expsyms_cmds=
13607   thread_safe_flag_spec=
13608   whole_archive_flag_spec=
13609   # include_expsyms should be a list of space-separated symbols to be *always*
13610   # included in the symbol list
13611   include_expsyms=
13612   # exclude_expsyms can be an extended regexp of symbols to exclude
13613   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13614   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13615   # as well as any symbol that contains `d'.
13616   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13617   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13618   # platforms (ab)use it in PIC code, but their linkers get confused if
13619   # the symbol is explicitly referenced.  Since portable code cannot
13620   # rely on this symbol name, it's probably fine to never include it in
13621   # preloaded symbol tables.
13622   # Exclude shared library initialization/finalization symbols.
13623   extract_expsyms_cmds=
13624
13625   case $host_os in
13626   cygwin* | mingw* | pw32* | cegcc*)
13627     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13628     # When not using gcc, we currently assume that we are using
13629     # Microsoft Visual C++.
13630     if test "$GCC" != yes; then
13631       with_gnu_ld=no
13632     fi
13633     ;;
13634   interix*)
13635     # we just hope/assume this is gcc and not c89 (= MSVC++)
13636     with_gnu_ld=yes
13637     ;;
13638   openbsd*)
13639     with_gnu_ld=no
13640     ;;
13641   esac
13642
13643   ld_shlibs=yes
13644
13645   # On some targets, GNU ld is compatible enough with the native linker
13646   # that we're better off using the native interface for both.
13647   lt_use_gnu_ld_interface=no
13648   if test "$with_gnu_ld" = yes; then
13649     case $host_os in
13650       aix*)
13651         # The AIX port of GNU ld has always aspired to compatibility
13652         # with the native linker.  However, as the warning in the GNU ld
13653         # block says, versions before 2.19.5* couldn't really create working
13654         # shared libraries, regardless of the interface used.
13655         case `$LD -v 2>&1` in
13656           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13657           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13658           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13659           *)
13660             lt_use_gnu_ld_interface=yes
13661             ;;
13662         esac
13663         ;;
13664       *)
13665         lt_use_gnu_ld_interface=yes
13666         ;;
13667     esac
13668   fi
13669
13670   if test "$lt_use_gnu_ld_interface" = yes; then
13671     # If archive_cmds runs LD, not CC, wlarc should be empty
13672     wlarc='${wl}'
13673
13674     # Set some defaults for GNU ld with shared library support. These
13675     # are reset later if shared libraries are not supported. Putting them
13676     # here allows them to be overridden if necessary.
13677     runpath_var=LD_RUN_PATH
13678     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13679     export_dynamic_flag_spec='${wl}--export-dynamic'
13680     # ancient GNU ld didn't support --whole-archive et. al.
13681     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13682       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13683     else
13684       whole_archive_flag_spec=
13685     fi
13686     supports_anon_versioning=no
13687     case `$LD -v 2>&1` in
13688       *GNU\ gold*) supports_anon_versioning=yes ;;
13689       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13690       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13691       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13692       *\ 2.11.*) ;; # other 2.11 versions
13693       *) supports_anon_versioning=yes ;;
13694     esac
13695
13696     # See if GNU ld supports shared libraries.
13697     case $host_os in
13698     aix[3-9]*)
13699       # On AIX/PPC, the GNU linker is very broken
13700       if test "$host_cpu" != ia64; then
13701         ld_shlibs=no
13702         cat <<_LT_EOF 1>&2
13703
13704 *** Warning: the GNU linker, at least up to release 2.19, is reported
13705 *** to be unable to reliably create shared libraries on AIX.
13706 *** Therefore, libtool is disabling shared libraries support.  If you
13707 *** really care for shared libraries, you may want to install binutils
13708 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13709 *** You will then need to restart the configuration process.
13710
13711 _LT_EOF
13712       fi
13713       ;;
13714
13715     amigaos*)
13716       case $host_cpu in
13717       powerpc)
13718             # see comment about AmigaOS4 .so support
13719             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13720             archive_expsym_cmds=''
13721         ;;
13722       m68k)
13723             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)'
13724             hardcode_libdir_flag_spec='-L$libdir'
13725             hardcode_minus_L=yes
13726         ;;
13727       esac
13728       ;;
13729
13730     beos*)
13731       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13732         allow_undefined_flag=unsupported
13733         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13734         # support --undefined.  This deserves some investigation.  FIXME
13735         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13736       else
13737         ld_shlibs=no
13738       fi
13739       ;;
13740
13741     cygwin* | mingw* | pw32* | cegcc*)
13742       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13743       # as there is no search path for DLLs.
13744       hardcode_libdir_flag_spec='-L$libdir'
13745       export_dynamic_flag_spec='${wl}--export-all-symbols'
13746       allow_undefined_flag=unsupported
13747       always_export_symbols=no
13748       enable_shared_with_static_runtimes=yes
13749       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'
13750       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13751
13752       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13753         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13754         # If the export-symbols file already is a .def file (1st line
13755         # is EXPORTS), use it as is; otherwise, prepend...
13756         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13757           cp $export_symbols $output_objdir/$soname.def;
13758         else
13759           echo EXPORTS > $output_objdir/$soname.def;
13760           cat $export_symbols >> $output_objdir/$soname.def;
13761         fi~
13762         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13763       else
13764         ld_shlibs=no
13765       fi
13766       ;;
13767
13768     haiku*)
13769       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13770       link_all_deplibs=yes
13771       ;;
13772
13773     interix[3-9]*)
13774       hardcode_direct=no
13775       hardcode_shlibpath_var=no
13776       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13777       export_dynamic_flag_spec='${wl}-E'
13778       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13779       # Instead, shared libraries are loaded at an image base (0x10000000 by
13780       # default) and relocated if they conflict, which is a slow very memory
13781       # consuming and fragmenting process.  To avoid this, we pick a random,
13782       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13783       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13784       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13785       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'
13786       ;;
13787
13788     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13789       tmp_diet=no
13790       if test "$host_os" = linux-dietlibc; then
13791         case $cc_basename in
13792           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
13793         esac
13794       fi
13795       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13796          && test "$tmp_diet" = no
13797       then
13798         tmp_addflag=' $pic_flag'
13799         tmp_sharedflag='-shared'
13800         case $cc_basename,$host_cpu in
13801         pgcc*)                          # Portland Group C compiler
13802           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'
13803           tmp_addflag=' $pic_flag'
13804           ;;
13805         pgf77* | pgf90* | pgf95* | pgfortran*)
13806                                         # Portland Group f77 and f90 compilers
13807           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'
13808           tmp_addflag=' $pic_flag -Mnomain' ;;
13809         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
13810           tmp_addflag=' -i_dynamic' ;;
13811         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13812           tmp_addflag=' -i_dynamic -nofor_main' ;;
13813         ifc* | ifort*)                  # Intel Fortran compiler
13814           tmp_addflag=' -nofor_main' ;;
13815         lf95*)                          # Lahey Fortran 8.1
13816           whole_archive_flag_spec=
13817           tmp_sharedflag='--shared' ;;
13818         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13819           tmp_sharedflag='-qmkshrobj'
13820           tmp_addflag= ;;
13821         nvcc*)  # Cuda Compiler Driver 2.2
13822           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'
13823           compiler_needs_object=yes
13824           ;;
13825         esac
13826         case `$CC -V 2>&1 | sed 5q` in
13827         *Sun\ C*)                       # Sun C 5.9
13828           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'
13829           compiler_needs_object=yes
13830           tmp_sharedflag='-G' ;;
13831         *Sun\ F*)                       # Sun Fortran 8.3
13832           tmp_sharedflag='-G' ;;
13833         esac
13834         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13835
13836         if test "x$supports_anon_versioning" = xyes; then
13837           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13838             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13839             echo "local: *; };" >> $output_objdir/$libname.ver~
13840             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13841         fi
13842
13843         case $cc_basename in
13844         xlf* | bgf* | bgxlf* | mpixlf*)
13845           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13846           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13847           hardcode_libdir_flag_spec=
13848           hardcode_libdir_flag_spec_ld='-rpath $libdir'
13849           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13850           if test "x$supports_anon_versioning" = xyes; then
13851             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13852               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13853               echo "local: *; };" >> $output_objdir/$libname.ver~
13854               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13855           fi
13856           ;;
13857         esac
13858       else
13859         ld_shlibs=no
13860       fi
13861       ;;
13862
13863     netbsd*)
13864       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13865         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13866         wlarc=
13867       else
13868         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13869         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13870       fi
13871       ;;
13872
13873     solaris*)
13874       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13875         ld_shlibs=no
13876         cat <<_LT_EOF 1>&2
13877
13878 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13879 *** create shared libraries on Solaris systems.  Therefore, libtool
13880 *** is disabling shared libraries support.  We urge you to upgrade GNU
13881 *** binutils to release 2.9.1 or newer.  Another option is to modify
13882 *** your PATH or compiler configuration so that the native linker is
13883 *** used, and then restart.
13884
13885 _LT_EOF
13886       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13887         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13888         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13889       else
13890         ld_shlibs=no
13891       fi
13892       ;;
13893
13894     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13895       case `$LD -v 2>&1` in
13896         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13897         ld_shlibs=no
13898         cat <<_LT_EOF 1>&2
13899
13900 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13901 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13902 *** is disabling shared libraries support.  We urge you to upgrade GNU
13903 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13904 *** your PATH or compiler configuration so that the native linker is
13905 *** used, and then restart.
13906
13907 _LT_EOF
13908         ;;
13909         *)
13910           # For security reasons, it is highly recommended that you always
13911           # use absolute paths for naming shared libraries, and exclude the
13912           # DT_RUNPATH tag from executables and libraries.  But doing so
13913           # requires that you compile everything twice, which is a pain.
13914           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13915             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13916             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13917             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13918           else
13919             ld_shlibs=no
13920           fi
13921         ;;
13922       esac
13923       ;;
13924
13925     sunos4*)
13926       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13927       wlarc=
13928       hardcode_direct=yes
13929       hardcode_shlibpath_var=no
13930       ;;
13931
13932     *)
13933       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13934         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13935         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13936       else
13937         ld_shlibs=no
13938       fi
13939       ;;
13940     esac
13941
13942     if test "$ld_shlibs" = no; then
13943       runpath_var=
13944       hardcode_libdir_flag_spec=
13945       export_dynamic_flag_spec=
13946       whole_archive_flag_spec=
13947     fi
13948   else
13949     # PORTME fill in a description of your system's linker (not GNU ld)
13950     case $host_os in
13951     aix3*)
13952       allow_undefined_flag=unsupported
13953       always_export_symbols=yes
13954       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'
13955       # Note: this linker hardcodes the directories in LIBPATH if there
13956       # are no directories specified by -L.
13957       hardcode_minus_L=yes
13958       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13959         # Neither direct hardcoding nor static linking is supported with a
13960         # broken collect2.
13961         hardcode_direct=unsupported
13962       fi
13963       ;;
13964
13965     aix[4-9]*)
13966       if test "$host_cpu" = ia64; then
13967         # On IA64, the linker does run time linking by default, so we don't
13968         # have to do anything special.
13969         aix_use_runtimelinking=no
13970         exp_sym_flag='-Bexport'
13971         no_entry_flag=""
13972       else
13973         # If we're using GNU nm, then we don't want the "-C" option.
13974         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13975         # Also, AIX nm treats weak defined symbols like other global
13976         # defined symbols, whereas GNU nm marks them as "W".
13977         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13978           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'
13979         else
13980           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'
13981         fi
13982         aix_use_runtimelinking=no
13983
13984         # Test if we are trying to use run time linking or normal
13985         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13986         # need to do runtime linking.
13987         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13988           for ld_flag in $LDFLAGS; do
13989           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13990             aix_use_runtimelinking=yes
13991             break
13992           fi
13993           done
13994           ;;
13995         esac
13996
13997         exp_sym_flag='-bexport'
13998         no_entry_flag='-bnoentry'
13999       fi
14000
14001       # When large executables or shared objects are built, AIX ld can
14002       # have problems creating the table of contents.  If linking a library
14003       # or program results in "error TOC overflow" add -mminimal-toc to
14004       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14005       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14006
14007       archive_cmds=''
14008       hardcode_direct=yes
14009       hardcode_direct_absolute=yes
14010       hardcode_libdir_separator=':'
14011       link_all_deplibs=yes
14012       file_list_spec='${wl}-f,'
14013
14014       if test "$GCC" = yes; then
14015         case $host_os in aix4.[012]|aix4.[012].*)
14016         # We only want to do this on AIX 4.2 and lower, the check
14017         # below for broken collect2 doesn't work under 4.3+
14018           collect2name=`${CC} -print-prog-name=collect2`
14019           if test -f "$collect2name" &&
14020            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14021           then
14022           # We have reworked collect2
14023           :
14024           else
14025           # We have old collect2
14026           hardcode_direct=unsupported
14027           # It fails to find uninstalled libraries when the uninstalled
14028           # path is not listed in the libpath.  Setting hardcode_minus_L
14029           # to unsupported forces relinking
14030           hardcode_minus_L=yes
14031           hardcode_libdir_flag_spec='-L$libdir'
14032           hardcode_libdir_separator=
14033           fi
14034           ;;
14035         esac
14036         shared_flag='-shared'
14037         if test "$aix_use_runtimelinking" = yes; then
14038           shared_flag="$shared_flag "'${wl}-G'
14039         fi
14040       else
14041         # not using gcc
14042         if test "$host_cpu" = ia64; then
14043         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14044         # chokes on -Wl,-G. The following line is correct:
14045           shared_flag='-G'
14046         else
14047           if test "$aix_use_runtimelinking" = yes; then
14048             shared_flag='${wl}-G'
14049           else
14050             shared_flag='${wl}-bM:SRE'
14051           fi
14052         fi
14053       fi
14054
14055       export_dynamic_flag_spec='${wl}-bexpall'
14056       # It seems that -bexpall does not export symbols beginning with
14057       # underscore (_), so it is better to generate a list of symbols to export.
14058       always_export_symbols=yes
14059       if test "$aix_use_runtimelinking" = yes; then
14060         # Warning - without using the other runtime loading flags (-brtl),
14061         # -berok will link without error, but may produce a broken library.
14062         allow_undefined_flag='-berok'
14063         # Determine the default libpath from the value encoded in an
14064         # empty executable.
14065         if test "${lt_cv_aix_libpath+set}" = set; then
14066   aix_libpath=$lt_cv_aix_libpath
14067 else
14068   if ${lt_cv_aix_libpath_+:} false; then :
14069   $as_echo_n "(cached) " >&6
14070 else
14071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14072 /* end confdefs.h.  */
14073
14074 int
14075 main ()
14076 {
14077
14078   ;
14079   return 0;
14080 }
14081 _ACEOF
14082 if ac_fn_c_try_link "$LINENO"; then :
14083
14084   lt_aix_libpath_sed='
14085       /Import File Strings/,/^$/ {
14086           /^0/ {
14087               s/^0  *\([^ ]*\) *$/\1/
14088               p
14089           }
14090       }'
14091   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14092   # Check for a 64-bit object if we didn't find anything.
14093   if test -z "$lt_cv_aix_libpath_"; then
14094     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14095   fi
14096 fi
14097 rm -f core conftest.err conftest.$ac_objext \
14098     conftest$ac_exeext conftest.$ac_ext
14099   if test -z "$lt_cv_aix_libpath_"; then
14100     lt_cv_aix_libpath_="/usr/lib:/lib"
14101   fi
14102
14103 fi
14104
14105   aix_libpath=$lt_cv_aix_libpath_
14106 fi
14107
14108         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14109         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"
14110       else
14111         if test "$host_cpu" = ia64; then
14112           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14113           allow_undefined_flag="-z nodefs"
14114           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"
14115         else
14116          # Determine the default libpath from the value encoded in an
14117          # empty executable.
14118          if test "${lt_cv_aix_libpath+set}" = set; then
14119   aix_libpath=$lt_cv_aix_libpath
14120 else
14121   if ${lt_cv_aix_libpath_+:} false; then :
14122   $as_echo_n "(cached) " >&6
14123 else
14124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14125 /* end confdefs.h.  */
14126
14127 int
14128 main ()
14129 {
14130
14131   ;
14132   return 0;
14133 }
14134 _ACEOF
14135 if ac_fn_c_try_link "$LINENO"; then :
14136
14137   lt_aix_libpath_sed='
14138       /Import File Strings/,/^$/ {
14139           /^0/ {
14140               s/^0  *\([^ ]*\) *$/\1/
14141               p
14142           }
14143       }'
14144   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14145   # Check for a 64-bit object if we didn't find anything.
14146   if test -z "$lt_cv_aix_libpath_"; then
14147     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14148   fi
14149 fi
14150 rm -f core conftest.err conftest.$ac_objext \
14151     conftest$ac_exeext conftest.$ac_ext
14152   if test -z "$lt_cv_aix_libpath_"; then
14153     lt_cv_aix_libpath_="/usr/lib:/lib"
14154   fi
14155
14156 fi
14157
14158   aix_libpath=$lt_cv_aix_libpath_
14159 fi
14160
14161          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14162           # Warning - without using the other run time loading flags,
14163           # -berok will link without error, but may produce a broken library.
14164           no_undefined_flag=' ${wl}-bernotok'
14165           allow_undefined_flag=' ${wl}-berok'
14166           if test "$with_gnu_ld" = yes; then
14167             # We only use this code for GNU lds that support --whole-archive.
14168             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14169           else
14170             # Exported symbols can be pulled into shared objects from archives
14171             whole_archive_flag_spec='$convenience'
14172           fi
14173           archive_cmds_need_lc=yes
14174           # This is similar to how AIX traditionally builds its shared libraries.
14175           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'
14176         fi
14177       fi
14178       ;;
14179
14180     amigaos*)
14181       case $host_cpu in
14182       powerpc)
14183             # see comment about AmigaOS4 .so support
14184             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14185             archive_expsym_cmds=''
14186         ;;
14187       m68k)
14188             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)'
14189             hardcode_libdir_flag_spec='-L$libdir'
14190             hardcode_minus_L=yes
14191         ;;
14192       esac
14193       ;;
14194
14195     bsdi[45]*)
14196       export_dynamic_flag_spec=-rdynamic
14197       ;;
14198
14199     cygwin* | mingw* | pw32* | cegcc*)
14200       # When not using gcc, we currently assume that we are using
14201       # Microsoft Visual C++.
14202       # hardcode_libdir_flag_spec is actually meaningless, as there is
14203       # no search path for DLLs.
14204       case $cc_basename in
14205       cl*)
14206         # Native MSVC
14207         hardcode_libdir_flag_spec=' '
14208         allow_undefined_flag=unsupported
14209         always_export_symbols=yes
14210         file_list_spec='@'
14211         # Tell ltmain to make .lib files, not .a files.
14212         libext=lib
14213         # Tell ltmain to make .dll files, not .so files.
14214         shrext_cmds=".dll"
14215         # FIXME: Setting linknames here is a bad hack.
14216         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14217         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14218             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14219           else
14220             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14221           fi~
14222           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14223           linknames='
14224         # The linker will not automatically build a static lib if we build a DLL.
14225         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14226         enable_shared_with_static_runtimes=yes
14227         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14228         # Don't use ranlib
14229         old_postinstall_cmds='chmod 644 $oldlib'
14230         postlink_cmds='lt_outputfile="@OUTPUT@"~
14231           lt_tool_outputfile="@TOOL_OUTPUT@"~
14232           case $lt_outputfile in
14233             *.exe|*.EXE) ;;
14234             *)
14235               lt_outputfile="$lt_outputfile.exe"
14236               lt_tool_outputfile="$lt_tool_outputfile.exe"
14237               ;;
14238           esac~
14239           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14240             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14241             $RM "$lt_outputfile.manifest";
14242           fi'
14243         ;;
14244       *)
14245         # Assume MSVC wrapper
14246         hardcode_libdir_flag_spec=' '
14247         allow_undefined_flag=unsupported
14248         # Tell ltmain to make .lib files, not .a files.
14249         libext=lib
14250         # Tell ltmain to make .dll files, not .so files.
14251         shrext_cmds=".dll"
14252         # FIXME: Setting linknames here is a bad hack.
14253         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14254         # The linker will automatically build a .lib file if we build a DLL.
14255         old_archive_from_new_cmds='true'
14256         # FIXME: Should let the user specify the lib program.
14257         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14258         enable_shared_with_static_runtimes=yes
14259         ;;
14260       esac
14261       ;;
14262
14263     darwin* | rhapsody*)
14264
14265
14266   archive_cmds_need_lc=no
14267   hardcode_direct=no
14268   hardcode_automatic=yes
14269   hardcode_shlibpath_var=unsupported
14270   if test "$lt_cv_ld_force_load" = "yes"; then
14271     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\"`'
14272   else
14273     whole_archive_flag_spec=''
14274   fi
14275   link_all_deplibs=yes
14276   allow_undefined_flag="$_lt_dar_allow_undefined"
14277   case $cc_basename in
14278      ifort*) _lt_dar_can_shared=yes ;;
14279      *) _lt_dar_can_shared=$GCC ;;
14280   esac
14281   if test "$_lt_dar_can_shared" = "yes"; then
14282     output_verbose_link_cmd=func_echo_all
14283     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14284     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14285     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}"
14286     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}"
14287
14288   else
14289   ld_shlibs=no
14290   fi
14291
14292       ;;
14293
14294     dgux*)
14295       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14296       hardcode_libdir_flag_spec='-L$libdir'
14297       hardcode_shlibpath_var=no
14298       ;;
14299
14300     freebsd1*)
14301       ld_shlibs=no
14302       ;;
14303
14304     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14305     # support.  Future versions do this automatically, but an explicit c++rt0.o
14306     # does not break anything, and helps significantly (at the cost of a little
14307     # extra space).
14308     freebsd2.2*)
14309       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14310       hardcode_libdir_flag_spec='-R$libdir'
14311       hardcode_direct=yes
14312       hardcode_shlibpath_var=no
14313       ;;
14314
14315     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14316     freebsd2*)
14317       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14318       hardcode_direct=yes
14319       hardcode_minus_L=yes
14320       hardcode_shlibpath_var=no
14321       ;;
14322
14323     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14324     freebsd* | dragonfly*)
14325       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14326       hardcode_libdir_flag_spec='-R$libdir'
14327       hardcode_direct=yes
14328       hardcode_shlibpath_var=no
14329       ;;
14330
14331     hpux9*)
14332       if test "$GCC" = yes; then
14333         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'
14334       else
14335         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'
14336       fi
14337       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14338       hardcode_libdir_separator=:
14339       hardcode_direct=yes
14340
14341       # hardcode_minus_L: Not really in the search PATH,
14342       # but as the default location of the library.
14343       hardcode_minus_L=yes
14344       export_dynamic_flag_spec='${wl}-E'
14345       ;;
14346
14347     hpux10*)
14348       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14349         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14350       else
14351         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14352       fi
14353       if test "$with_gnu_ld" = no; then
14354         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14355         hardcode_libdir_flag_spec_ld='+b $libdir'
14356         hardcode_libdir_separator=:
14357         hardcode_direct=yes
14358         hardcode_direct_absolute=yes
14359         export_dynamic_flag_spec='${wl}-E'
14360         # hardcode_minus_L: Not really in the search PATH,
14361         # but as the default location of the library.
14362         hardcode_minus_L=yes
14363       fi
14364       ;;
14365
14366     hpux11*)
14367       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14368         case $host_cpu in
14369         hppa*64*)
14370           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14371           ;;
14372         ia64*)
14373           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14374           ;;
14375         *)
14376           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14377           ;;
14378         esac
14379       else
14380         case $host_cpu in
14381         hppa*64*)
14382           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14383           ;;
14384         ia64*)
14385           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14386           ;;
14387         *)
14388
14389           # Older versions of the 11.00 compiler do not understand -b yet
14390           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14391           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14392 $as_echo_n "checking if $CC understands -b... " >&6; }
14393 if ${lt_cv_prog_compiler__b+:} false; then :
14394   $as_echo_n "(cached) " >&6
14395 else
14396   lt_cv_prog_compiler__b=no
14397    save_LDFLAGS="$LDFLAGS"
14398    LDFLAGS="$LDFLAGS -b"
14399    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14400    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14401      # The linker can only warn and ignore the option if not recognized
14402      # So say no if there are warnings
14403      if test -s conftest.err; then
14404        # Append any errors to the config.log.
14405        cat conftest.err 1>&5
14406        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14407        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14408        if diff conftest.exp conftest.er2 >/dev/null; then
14409          lt_cv_prog_compiler__b=yes
14410        fi
14411      else
14412        lt_cv_prog_compiler__b=yes
14413      fi
14414    fi
14415    $RM -r conftest*
14416    LDFLAGS="$save_LDFLAGS"
14417
14418 fi
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14420 $as_echo "$lt_cv_prog_compiler__b" >&6; }
14421
14422 if test x"$lt_cv_prog_compiler__b" = xyes; then
14423     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14424 else
14425     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14426 fi
14427
14428           ;;
14429         esac
14430       fi
14431       if test "$with_gnu_ld" = no; then
14432         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14433         hardcode_libdir_separator=:
14434
14435         case $host_cpu in
14436         hppa*64*|ia64*)
14437           hardcode_direct=no
14438           hardcode_shlibpath_var=no
14439           ;;
14440         *)
14441           hardcode_direct=yes
14442           hardcode_direct_absolute=yes
14443           export_dynamic_flag_spec='${wl}-E'
14444
14445           # hardcode_minus_L: Not really in the search PATH,
14446           # but as the default location of the library.
14447           hardcode_minus_L=yes
14448           ;;
14449         esac
14450       fi
14451       ;;
14452
14453     irix5* | irix6* | nonstopux*)
14454       if test "$GCC" = yes; then
14455         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'
14456         # Try to use the -exported_symbol ld option, if it does not
14457         # work, assume that -exports_file does not work either and
14458         # implicitly export all symbols.
14459         # This should be the same for all languages, so no per-tag cache variable.
14460         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14461 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14462 if ${lt_cv_irix_exported_symbol+:} false; then :
14463   $as_echo_n "(cached) " >&6
14464 else
14465   save_LDFLAGS="$LDFLAGS"
14466            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14467            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468 /* end confdefs.h.  */
14469 int foo (void) { return 0; }
14470 _ACEOF
14471 if ac_fn_c_try_link "$LINENO"; then :
14472   lt_cv_irix_exported_symbol=yes
14473 else
14474   lt_cv_irix_exported_symbol=no
14475 fi
14476 rm -f core conftest.err conftest.$ac_objext \
14477     conftest$ac_exeext conftest.$ac_ext
14478            LDFLAGS="$save_LDFLAGS"
14479 fi
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14481 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
14482         if test "$lt_cv_irix_exported_symbol" = yes; then
14483           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'
14484         fi
14485       else
14486         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'
14487         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'
14488       fi
14489       archive_cmds_need_lc='no'
14490       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14491       hardcode_libdir_separator=:
14492       inherit_rpath=yes
14493       link_all_deplibs=yes
14494       ;;
14495
14496     netbsd*)
14497       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14498         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14499       else
14500         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14501       fi
14502       hardcode_libdir_flag_spec='-R$libdir'
14503       hardcode_direct=yes
14504       hardcode_shlibpath_var=no
14505       ;;
14506
14507     newsos6)
14508       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14509       hardcode_direct=yes
14510       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14511       hardcode_libdir_separator=:
14512       hardcode_shlibpath_var=no
14513       ;;
14514
14515     *nto* | *qnx*)
14516       ;;
14517
14518     openbsd*)
14519       if test -f /usr/libexec/ld.so; then
14520         hardcode_direct=yes
14521         hardcode_shlibpath_var=no
14522         hardcode_direct_absolute=yes
14523         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14524           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14525           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14526           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14527           export_dynamic_flag_spec='${wl}-E'
14528         else
14529           case $host_os in
14530            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14531              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14532              hardcode_libdir_flag_spec='-R$libdir'
14533              ;;
14534            *)
14535              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14536              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14537              ;;
14538           esac
14539         fi
14540       else
14541         ld_shlibs=no
14542       fi
14543       ;;
14544
14545     os2*)
14546       hardcode_libdir_flag_spec='-L$libdir'
14547       hardcode_minus_L=yes
14548       allow_undefined_flag=unsupported
14549       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'
14550       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14551       ;;
14552
14553     osf3*)
14554       if test "$GCC" = yes; then
14555         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14556         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'
14557       else
14558         allow_undefined_flag=' -expect_unresolved \*'
14559         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'
14560       fi
14561       archive_cmds_need_lc='no'
14562       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14563       hardcode_libdir_separator=:
14564       ;;
14565
14566     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14567       if test "$GCC" = yes; then
14568         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14569         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'
14570         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14571       else
14572         allow_undefined_flag=' -expect_unresolved \*'
14573         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'
14574         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~
14575         $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'
14576
14577         # Both c and cxx compiler support -rpath directly
14578         hardcode_libdir_flag_spec='-rpath $libdir'
14579       fi
14580       archive_cmds_need_lc='no'
14581       hardcode_libdir_separator=:
14582       ;;
14583
14584     solaris*)
14585       no_undefined_flag=' -z defs'
14586       if test "$GCC" = yes; then
14587         wlarc='${wl}'
14588         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14589         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14590           $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'
14591       else
14592         case `$CC -V 2>&1` in
14593         *"Compilers 5.0"*)
14594           wlarc=''
14595           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14596           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14597           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14598           ;;
14599         *)
14600           wlarc='${wl}'
14601           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14602           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14603           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14604           ;;
14605         esac
14606       fi
14607       hardcode_libdir_flag_spec='-R$libdir'
14608       hardcode_shlibpath_var=no
14609       case $host_os in
14610       solaris2.[0-5] | solaris2.[0-5].*) ;;
14611       *)
14612         # The compiler driver will combine and reorder linker options,
14613         # but understands `-z linker_flag'.  GCC discards it without `$wl',
14614         # but is careful enough not to reorder.
14615         # Supported since Solaris 2.6 (maybe 2.5.1?)
14616         if test "$GCC" = yes; then
14617           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14618         else
14619           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14620         fi
14621         ;;
14622       esac
14623       link_all_deplibs=yes
14624       ;;
14625
14626     sunos4*)
14627       if test "x$host_vendor" = xsequent; then
14628         # Use $CC to link under sequent, because it throws in some extra .o
14629         # files that make .init and .fini sections work.
14630         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14631       else
14632         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14633       fi
14634       hardcode_libdir_flag_spec='-L$libdir'
14635       hardcode_direct=yes
14636       hardcode_minus_L=yes
14637       hardcode_shlibpath_var=no
14638       ;;
14639
14640     sysv4)
14641       case $host_vendor in
14642         sni)
14643           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14644           hardcode_direct=yes # is this really true???
14645         ;;
14646         siemens)
14647           ## LD is ld it makes a PLAMLIB
14648           ## CC just makes a GrossModule.
14649           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14650           reload_cmds='$CC -r -o $output$reload_objs'
14651           hardcode_direct=no
14652         ;;
14653         motorola)
14654           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14655           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14656         ;;
14657       esac
14658       runpath_var='LD_RUN_PATH'
14659       hardcode_shlibpath_var=no
14660       ;;
14661
14662     sysv4.3*)
14663       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14664       hardcode_shlibpath_var=no
14665       export_dynamic_flag_spec='-Bexport'
14666       ;;
14667
14668     sysv4*MP*)
14669       if test -d /usr/nec; then
14670         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14671         hardcode_shlibpath_var=no
14672         runpath_var=LD_RUN_PATH
14673         hardcode_runpath_var=yes
14674         ld_shlibs=yes
14675       fi
14676       ;;
14677
14678     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14679       no_undefined_flag='${wl}-z,text'
14680       archive_cmds_need_lc=no
14681       hardcode_shlibpath_var=no
14682       runpath_var='LD_RUN_PATH'
14683
14684       if test "$GCC" = yes; then
14685         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14686         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14687       else
14688         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14689         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14690       fi
14691       ;;
14692
14693     sysv5* | sco3.2v5* | sco5v6*)
14694       # Note: We can NOT use -z defs as we might desire, because we do not
14695       # link with -lc, and that would cause any symbols used from libc to
14696       # always be unresolved, which means just about no library would
14697       # ever link correctly.  If we're not using GNU ld we use -z text
14698       # though, which does catch some bad symbols but isn't as heavy-handed
14699       # as -z defs.
14700       no_undefined_flag='${wl}-z,text'
14701       allow_undefined_flag='${wl}-z,nodefs'
14702       archive_cmds_need_lc=no
14703       hardcode_shlibpath_var=no
14704       hardcode_libdir_flag_spec='${wl}-R,$libdir'
14705       hardcode_libdir_separator=':'
14706       link_all_deplibs=yes
14707       export_dynamic_flag_spec='${wl}-Bexport'
14708       runpath_var='LD_RUN_PATH'
14709
14710       if test "$GCC" = yes; then
14711         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14712         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14713       else
14714         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14715         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14716       fi
14717       ;;
14718
14719     uts4*)
14720       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14721       hardcode_libdir_flag_spec='-L$libdir'
14722       hardcode_shlibpath_var=no
14723       ;;
14724
14725     *)
14726       ld_shlibs=no
14727       ;;
14728     esac
14729
14730     if test x$host_vendor = xsni; then
14731       case $host in
14732       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14733         export_dynamic_flag_spec='${wl}-Blargedynsym'
14734         ;;
14735       esac
14736     fi
14737   fi
14738
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14740 $as_echo "$ld_shlibs" >&6; }
14741 test "$ld_shlibs" = no && can_build_shared=no
14742
14743 with_gnu_ld=$with_gnu_ld
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759 #
14760 # Do we need to explicitly link libc?
14761 #
14762 case "x$archive_cmds_need_lc" in
14763 x|xyes)
14764   # Assume -lc should be added
14765   archive_cmds_need_lc=yes
14766
14767   if test "$enable_shared" = yes && test "$GCC" = yes; then
14768     case $archive_cmds in
14769     *'~'*)
14770       # FIXME: we may have to deal with multi-command sequences.
14771       ;;
14772     '$CC '*)
14773       # Test whether the compiler implicitly links with -lc since on some
14774       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14775       # to ld, don't add -lc before -lgcc.
14776       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14777 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14778 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14779   $as_echo_n "(cached) " >&6
14780 else
14781   $RM conftest*
14782         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14783
14784         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14785   (eval $ac_compile) 2>&5
14786   ac_status=$?
14787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14788   test $ac_status = 0; } 2>conftest.err; then
14789           soname=conftest
14790           lib=conftest
14791           libobjs=conftest.$ac_objext
14792           deplibs=
14793           wl=$lt_prog_compiler_wl
14794           pic_flag=$lt_prog_compiler_pic
14795           compiler_flags=-v
14796           linker_flags=-v
14797           verstring=
14798           output_objdir=.
14799           libname=conftest
14800           lt_save_allow_undefined_flag=$allow_undefined_flag
14801           allow_undefined_flag=
14802           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14803   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14804   ac_status=$?
14805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14806   test $ac_status = 0; }
14807           then
14808             lt_cv_archive_cmds_need_lc=no
14809           else
14810             lt_cv_archive_cmds_need_lc=yes
14811           fi
14812           allow_undefined_flag=$lt_save_allow_undefined_flag
14813         else
14814           cat conftest.err 1>&5
14815         fi
14816         $RM conftest*
14817
14818 fi
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14820 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14821       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14822       ;;
14823     esac
14824   fi
14825   ;;
14826 esac
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14985 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14986
14987 if test "$GCC" = yes; then
14988   case $host_os in
14989     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14990     *) lt_awk_arg="/^libraries:/" ;;
14991   esac
14992   case $host_os in
14993     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14994     *) lt_sed_strip_eq="s,=/,/,g" ;;
14995   esac
14996   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14997   case $lt_search_path_spec in
14998   *\;*)
14999     # if the path contains ";" then we assume it to be the separator
15000     # otherwise default to the standard path separator (i.e. ":") - it is
15001     # assumed that no part of a normal pathname contains ";" but that should
15002     # okay in the real world where ";" in dirpaths is itself problematic.
15003     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15004     ;;
15005   *)
15006     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15007     ;;
15008   esac
15009   # Ok, now we have the path, separated by spaces, we can step through it
15010   # and add multilib dir if necessary.
15011   lt_tmp_lt_search_path_spec=
15012   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15013   for lt_sys_path in $lt_search_path_spec; do
15014     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15015       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15016     else
15017       test -d "$lt_sys_path" && \
15018         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15019     fi
15020   done
15021   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15022 BEGIN {RS=" "; FS="/|\n";} {
15023   lt_foo="";
15024   lt_count=0;
15025   for (lt_i = NF; lt_i > 0; lt_i--) {
15026     if ($lt_i != "" && $lt_i != ".") {
15027       if ($lt_i == "..") {
15028         lt_count++;
15029       } else {
15030         if (lt_count == 0) {
15031           lt_foo="/" $lt_i lt_foo;
15032         } else {
15033           lt_count--;
15034         }
15035       }
15036     }
15037   }
15038   if (lt_foo != "") { lt_freq[lt_foo]++; }
15039   if (lt_freq[lt_foo] == 1) { print lt_foo; }
15040 }'`
15041   # AWK program above erroneously prepends '/' to C:/dos/paths
15042   # for these hosts.
15043   case $host_os in
15044     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15045       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15046   esac
15047   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15048 else
15049   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15050 fi
15051 library_names_spec=
15052 libname_spec='lib$name'
15053 soname_spec=
15054 shrext_cmds=".so"
15055 postinstall_cmds=
15056 postuninstall_cmds=
15057 finish_cmds=
15058 finish_eval=
15059 shlibpath_var=
15060 shlibpath_overrides_runpath=unknown
15061 version_type=none
15062 dynamic_linker="$host_os ld.so"
15063 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15064 need_lib_prefix=unknown
15065 hardcode_into_libs=no
15066
15067 # when you set need_version to no, make sure it does not cause -set_version
15068 # flags to be left without arguments
15069 need_version=unknown
15070
15071 case $host_os in
15072 aix3*)
15073   version_type=linux
15074   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15075   shlibpath_var=LIBPATH
15076
15077   # AIX 3 has no versioning support, so we append a major version to the name.
15078   soname_spec='${libname}${release}${shared_ext}$major'
15079   ;;
15080
15081 aix[4-9]*)
15082   version_type=linux
15083   need_lib_prefix=no
15084   need_version=no
15085   hardcode_into_libs=yes
15086   if test "$host_cpu" = ia64; then
15087     # AIX 5 supports IA64
15088     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15089     shlibpath_var=LD_LIBRARY_PATH
15090   else
15091     # With GCC up to 2.95.x, collect2 would create an import file
15092     # for dependence libraries.  The import file would start with
15093     # the line `#! .'.  This would cause the generated library to
15094     # depend on `.', always an invalid library.  This was fixed in
15095     # development snapshots of GCC prior to 3.0.
15096     case $host_os in
15097       aix4 | aix4.[01] | aix4.[01].*)
15098       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15099            echo ' yes '
15100            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15101         :
15102       else
15103         can_build_shared=no
15104       fi
15105       ;;
15106     esac
15107     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15108     # soname into executable. Probably we can add versioning support to
15109     # collect2, so additional links can be useful in future.
15110     if test "$aix_use_runtimelinking" = yes; then
15111       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15112       # instead of lib<name>.a to let people know that these are not
15113       # typical AIX shared libraries.
15114       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15115     else
15116       # We preserve .a as extension for shared libraries through AIX4.2
15117       # and later when we are not doing run time linking.
15118       library_names_spec='${libname}${release}.a $libname.a'
15119       soname_spec='${libname}${release}${shared_ext}$major'
15120     fi
15121     shlibpath_var=LIBPATH
15122   fi
15123   ;;
15124
15125 amigaos*)
15126   case $host_cpu in
15127   powerpc)
15128     # Since July 2007 AmigaOS4 officially supports .so libraries.
15129     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15130     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15131     ;;
15132   m68k)
15133     library_names_spec='$libname.ixlibrary $libname.a'
15134     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15135     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'
15136     ;;
15137   esac
15138   ;;
15139
15140 beos*)
15141   library_names_spec='${libname}${shared_ext}'
15142   dynamic_linker="$host_os ld.so"
15143   shlibpath_var=LIBRARY_PATH
15144   ;;
15145
15146 bsdi[45]*)
15147   version_type=linux
15148   need_version=no
15149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150   soname_spec='${libname}${release}${shared_ext}$major'
15151   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15152   shlibpath_var=LD_LIBRARY_PATH
15153   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15154   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15155   # the default ld.so.conf also contains /usr/contrib/lib and
15156   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15157   # libtool to hard-code these into programs
15158   ;;
15159
15160 cygwin* | mingw* | pw32* | cegcc*)
15161   version_type=windows
15162   shrext_cmds=".dll"
15163   need_version=no
15164   need_lib_prefix=no
15165
15166   case $GCC,$cc_basename in
15167   yes,*)
15168     # gcc
15169     library_names_spec='$libname.dll.a'
15170     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15171     postinstall_cmds='base_file=`basename \${file}`~
15172       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15173       dldir=$destdir/`dirname \$dlpath`~
15174       test -d \$dldir || mkdir -p \$dldir~
15175       $install_prog $dir/$dlname \$dldir/$dlname~
15176       chmod a+x \$dldir/$dlname~
15177       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15178         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15179       fi'
15180     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15181       dlpath=$dir/\$dldll~
15182        $RM \$dlpath'
15183     shlibpath_overrides_runpath=yes
15184
15185     case $host_os in
15186     cygwin*)
15187       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15188       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15189
15190       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15191       ;;
15192     mingw* | cegcc*)
15193       # MinGW DLLs use traditional 'lib' prefix
15194       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15195       ;;
15196     pw32*)
15197       # pw32 DLLs use 'pw' prefix rather than 'lib'
15198       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15199       ;;
15200     esac
15201     dynamic_linker='Win32 ld.exe'
15202     ;;
15203
15204   *,cl*)
15205     # Native MSVC
15206     libname_spec='$name'
15207     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15208     library_names_spec='${libname}.dll.lib'
15209
15210     case $build_os in
15211     mingw*)
15212       sys_lib_search_path_spec=
15213       lt_save_ifs=$IFS
15214       IFS=';'
15215       for lt_path in $LIB
15216       do
15217         IFS=$lt_save_ifs
15218         # Let DOS variable expansion print the short 8.3 style file name.
15219         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15220         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15221       done
15222       IFS=$lt_save_ifs
15223       # Convert to MSYS style.
15224       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15225       ;;
15226     cygwin*)
15227       # Convert to unix form, then to dos form, then back to unix form
15228       # but this time dos style (no spaces!) so that the unix form looks
15229       # like /cygdrive/c/PROGRA~1:/cygdr...
15230       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15231       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15232       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15233       ;;
15234     *)
15235       sys_lib_search_path_spec="$LIB"
15236       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15237         # It is most probably a Windows format PATH.
15238         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15239       else
15240         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15241       fi
15242       # FIXME: find the short name or the path components, as spaces are
15243       # common. (e.g. "Program Files" -> "PROGRA~1")
15244       ;;
15245     esac
15246
15247     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15248     postinstall_cmds='base_file=`basename \${file}`~
15249       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15250       dldir=$destdir/`dirname \$dlpath`~
15251       test -d \$dldir || mkdir -p \$dldir~
15252       $install_prog $dir/$dlname \$dldir/$dlname'
15253     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15254       dlpath=$dir/\$dldll~
15255        $RM \$dlpath'
15256     shlibpath_overrides_runpath=yes
15257     dynamic_linker='Win32 link.exe'
15258     ;;
15259
15260   *)
15261     # Assume MSVC wrapper
15262     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15263     dynamic_linker='Win32 ld.exe'
15264     ;;
15265   esac
15266   # FIXME: first we should search . and the directory the executable is in
15267   shlibpath_var=PATH
15268   ;;
15269
15270 darwin* | rhapsody*)
15271   dynamic_linker="$host_os dyld"
15272   version_type=darwin
15273   need_lib_prefix=no
15274   need_version=no
15275   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15276   soname_spec='${libname}${release}${major}$shared_ext'
15277   shlibpath_overrides_runpath=yes
15278   shlibpath_var=DYLD_LIBRARY_PATH
15279   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15280
15281   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15282   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15283   ;;
15284
15285 dgux*)
15286   version_type=linux
15287   need_lib_prefix=no
15288   need_version=no
15289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15290   soname_spec='${libname}${release}${shared_ext}$major'
15291   shlibpath_var=LD_LIBRARY_PATH
15292   ;;
15293
15294 freebsd1*)
15295   dynamic_linker=no
15296   ;;
15297
15298 freebsd* | dragonfly*)
15299   # DragonFly does not have aout.  When/if they implement a new
15300   # versioning mechanism, adjust this.
15301   if test -x /usr/bin/objformat; then
15302     objformat=`/usr/bin/objformat`
15303   else
15304     case $host_os in
15305     freebsd[123]*) objformat=aout ;;
15306     *) objformat=elf ;;
15307     esac
15308   fi
15309   version_type=freebsd-$objformat
15310   case $version_type in
15311     freebsd-elf*)
15312       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15313       need_version=no
15314       need_lib_prefix=no
15315       ;;
15316     freebsd-*)
15317       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15318       need_version=yes
15319       ;;
15320   esac
15321   shlibpath_var=LD_LIBRARY_PATH
15322   case $host_os in
15323   freebsd2*)
15324     shlibpath_overrides_runpath=yes
15325     ;;
15326   freebsd3.[01]* | freebsdelf3.[01]*)
15327     shlibpath_overrides_runpath=yes
15328     hardcode_into_libs=yes
15329     ;;
15330   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15331   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15332     shlibpath_overrides_runpath=no
15333     hardcode_into_libs=yes
15334     ;;
15335   *) # from 4.6 on, and DragonFly
15336     shlibpath_overrides_runpath=yes
15337     hardcode_into_libs=yes
15338     ;;
15339   esac
15340   ;;
15341
15342 gnu*)
15343   version_type=linux
15344   need_lib_prefix=no
15345   need_version=no
15346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15347   soname_spec='${libname}${release}${shared_ext}$major'
15348   shlibpath_var=LD_LIBRARY_PATH
15349   hardcode_into_libs=yes
15350   ;;
15351
15352 haiku*)
15353   version_type=linux
15354   need_lib_prefix=no
15355   need_version=no
15356   dynamic_linker="$host_os runtime_loader"
15357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15358   soname_spec='${libname}${release}${shared_ext}$major'
15359   shlibpath_var=LIBRARY_PATH
15360   shlibpath_overrides_runpath=yes
15361   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15362   hardcode_into_libs=yes
15363   ;;
15364
15365 hpux9* | hpux10* | hpux11*)
15366   # Give a soname corresponding to the major version so that dld.sl refuses to
15367   # link against other versions.
15368   version_type=sunos
15369   need_lib_prefix=no
15370   need_version=no
15371   case $host_cpu in
15372   ia64*)
15373     shrext_cmds='.so'
15374     hardcode_into_libs=yes
15375     dynamic_linker="$host_os dld.so"
15376     shlibpath_var=LD_LIBRARY_PATH
15377     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15378     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15379     soname_spec='${libname}${release}${shared_ext}$major'
15380     if test "X$HPUX_IA64_MODE" = X32; then
15381       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15382     else
15383       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15384     fi
15385     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15386     ;;
15387   hppa*64*)
15388     shrext_cmds='.sl'
15389     hardcode_into_libs=yes
15390     dynamic_linker="$host_os dld.sl"
15391     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15392     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15393     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15394     soname_spec='${libname}${release}${shared_ext}$major'
15395     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15396     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15397     ;;
15398   *)
15399     shrext_cmds='.sl'
15400     dynamic_linker="$host_os dld.sl"
15401     shlibpath_var=SHLIB_PATH
15402     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15403     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15404     soname_spec='${libname}${release}${shared_ext}$major'
15405     ;;
15406   esac
15407   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15408   postinstall_cmds='chmod 555 $lib'
15409   # or fails outright, so override atomically:
15410   install_override_mode=555
15411   ;;
15412
15413 interix[3-9]*)
15414   version_type=linux
15415   need_lib_prefix=no
15416   need_version=no
15417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15418   soname_spec='${libname}${release}${shared_ext}$major'
15419   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15420   shlibpath_var=LD_LIBRARY_PATH
15421   shlibpath_overrides_runpath=no
15422   hardcode_into_libs=yes
15423   ;;
15424
15425 irix5* | irix6* | nonstopux*)
15426   case $host_os in
15427     nonstopux*) version_type=nonstopux ;;
15428     *)
15429         if test "$lt_cv_prog_gnu_ld" = yes; then
15430                 version_type=linux
15431         else
15432                 version_type=irix
15433         fi ;;
15434   esac
15435   need_lib_prefix=no
15436   need_version=no
15437   soname_spec='${libname}${release}${shared_ext}$major'
15438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15439   case $host_os in
15440   irix5* | nonstopux*)
15441     libsuff= shlibsuff=
15442     ;;
15443   *)
15444     case $LD in # libtool.m4 will add one of these switches to LD
15445     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15446       libsuff= shlibsuff= libmagic=32-bit;;
15447     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15448       libsuff=32 shlibsuff=N32 libmagic=N32;;
15449     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15450       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15451     *) libsuff= shlibsuff= libmagic=never-match;;
15452     esac
15453     ;;
15454   esac
15455   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15456   shlibpath_overrides_runpath=no
15457   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15458   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15459   hardcode_into_libs=yes
15460   ;;
15461
15462 # No shared lib support for Linux oldld, aout, or coff.
15463 linux*oldld* | linux*aout* | linux*coff*)
15464   dynamic_linker=no
15465   ;;
15466
15467 # This must be Linux ELF.
15468 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15469   version_type=linux
15470   need_lib_prefix=no
15471   need_version=no
15472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15473   soname_spec='${libname}${release}${shared_ext}$major'
15474   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15475   shlibpath_var=LD_LIBRARY_PATH
15476   shlibpath_overrides_runpath=no
15477
15478   # Some binutils ld are patched to set DT_RUNPATH
15479   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15480   $as_echo_n "(cached) " >&6
15481 else
15482   lt_cv_shlibpath_overrides_runpath=no
15483     save_LDFLAGS=$LDFLAGS
15484     save_libdir=$libdir
15485     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15486          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15487     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15488 /* end confdefs.h.  */
15489
15490 int
15491 main ()
15492 {
15493
15494   ;
15495   return 0;
15496 }
15497 _ACEOF
15498 if ac_fn_c_try_link "$LINENO"; then :
15499   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15500   lt_cv_shlibpath_overrides_runpath=yes
15501 fi
15502 fi
15503 rm -f core conftest.err conftest.$ac_objext \
15504     conftest$ac_exeext conftest.$ac_ext
15505     LDFLAGS=$save_LDFLAGS
15506     libdir=$save_libdir
15507
15508 fi
15509
15510   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15511
15512   # This implies no fast_install, which is unacceptable.
15513   # Some rework will be needed to allow for fast_install
15514   # before this can be enabled.
15515   hardcode_into_libs=yes
15516
15517   # Add ABI-specific directories to the system library path.
15518   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15519
15520   # Append ld.so.conf contents to the search path
15521   if test -f /etc/ld.so.conf; then
15522     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' ' '`
15523     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15524
15525   fi
15526
15527   # We used to test for /lib/ld.so.1 and disable shared libraries on
15528   # powerpc, because MkLinux only supported shared libraries with the
15529   # GNU dynamic linker.  Since this was broken with cross compilers,
15530   # most powerpc-linux boxes support dynamic linking these days and
15531   # people can always --disable-shared, the test was removed, and we
15532   # assume the GNU/Linux dynamic linker is in use.
15533   dynamic_linker='GNU/Linux ld.so'
15534   ;;
15535
15536 netbsd*)
15537   version_type=sunos
15538   need_lib_prefix=no
15539   need_version=no
15540   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15541     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15542     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15543     dynamic_linker='NetBSD (a.out) ld.so'
15544   else
15545     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15546     soname_spec='${libname}${release}${shared_ext}$major'
15547     dynamic_linker='NetBSD ld.elf_so'
15548   fi
15549   shlibpath_var=LD_LIBRARY_PATH
15550   shlibpath_overrides_runpath=yes
15551   hardcode_into_libs=yes
15552   ;;
15553
15554 newsos6)
15555   version_type=linux
15556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557   shlibpath_var=LD_LIBRARY_PATH
15558   shlibpath_overrides_runpath=yes
15559   ;;
15560
15561 *nto* | *qnx*)
15562   version_type=qnx
15563   need_lib_prefix=no
15564   need_version=no
15565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15566   soname_spec='${libname}${release}${shared_ext}$major'
15567   shlibpath_var=LD_LIBRARY_PATH
15568   shlibpath_overrides_runpath=no
15569   hardcode_into_libs=yes
15570   dynamic_linker='ldqnx.so'
15571   ;;
15572
15573 openbsd*)
15574   version_type=sunos
15575   sys_lib_dlsearch_path_spec="/usr/lib"
15576   need_lib_prefix=no
15577   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15578   case $host_os in
15579     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15580     *)                          need_version=no  ;;
15581   esac
15582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15583   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15584   shlibpath_var=LD_LIBRARY_PATH
15585   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15586     case $host_os in
15587       openbsd2.[89] | openbsd2.[89].*)
15588         shlibpath_overrides_runpath=no
15589         ;;
15590       *)
15591         shlibpath_overrides_runpath=yes
15592         ;;
15593       esac
15594   else
15595     shlibpath_overrides_runpath=yes
15596   fi
15597   ;;
15598
15599 os2*)
15600   libname_spec='$name'
15601   shrext_cmds=".dll"
15602   need_lib_prefix=no
15603   library_names_spec='$libname${shared_ext} $libname.a'
15604   dynamic_linker='OS/2 ld.exe'
15605   shlibpath_var=LIBPATH
15606   ;;
15607
15608 osf3* | osf4* | osf5*)
15609   version_type=osf
15610   need_lib_prefix=no
15611   need_version=no
15612   soname_spec='${libname}${release}${shared_ext}$major'
15613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15614   shlibpath_var=LD_LIBRARY_PATH
15615   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15616   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15617   ;;
15618
15619 rdos*)
15620   dynamic_linker=no
15621   ;;
15622
15623 solaris*)
15624   version_type=linux
15625   need_lib_prefix=no
15626   need_version=no
15627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628   soname_spec='${libname}${release}${shared_ext}$major'
15629   shlibpath_var=LD_LIBRARY_PATH
15630   shlibpath_overrides_runpath=yes
15631   hardcode_into_libs=yes
15632   # ldd complains unless libraries are executable
15633   postinstall_cmds='chmod +x $lib'
15634   ;;
15635
15636 sunos4*)
15637   version_type=sunos
15638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15639   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15640   shlibpath_var=LD_LIBRARY_PATH
15641   shlibpath_overrides_runpath=yes
15642   if test "$with_gnu_ld" = yes; then
15643     need_lib_prefix=no
15644   fi
15645   need_version=yes
15646   ;;
15647
15648 sysv4 | sysv4.3*)
15649   version_type=linux
15650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15651   soname_spec='${libname}${release}${shared_ext}$major'
15652   shlibpath_var=LD_LIBRARY_PATH
15653   case $host_vendor in
15654     sni)
15655       shlibpath_overrides_runpath=no
15656       need_lib_prefix=no
15657       runpath_var=LD_RUN_PATH
15658       ;;
15659     siemens)
15660       need_lib_prefix=no
15661       ;;
15662     motorola)
15663       need_lib_prefix=no
15664       need_version=no
15665       shlibpath_overrides_runpath=no
15666       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15667       ;;
15668   esac
15669   ;;
15670
15671 sysv4*MP*)
15672   if test -d /usr/nec ;then
15673     version_type=linux
15674     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15675     soname_spec='$libname${shared_ext}.$major'
15676     shlibpath_var=LD_LIBRARY_PATH
15677   fi
15678   ;;
15679
15680 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15681   version_type=freebsd-elf
15682   need_lib_prefix=no
15683   need_version=no
15684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15685   soname_spec='${libname}${release}${shared_ext}$major'
15686   shlibpath_var=LD_LIBRARY_PATH
15687   shlibpath_overrides_runpath=yes
15688   hardcode_into_libs=yes
15689   if test "$with_gnu_ld" = yes; then
15690     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15691   else
15692     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15693     case $host_os in
15694       sco3.2v5*)
15695         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15696         ;;
15697     esac
15698   fi
15699   sys_lib_dlsearch_path_spec='/usr/lib'
15700   ;;
15701
15702 tpf*)
15703   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15704   version_type=linux
15705   need_lib_prefix=no
15706   need_version=no
15707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15708   shlibpath_var=LD_LIBRARY_PATH
15709   shlibpath_overrides_runpath=no
15710   hardcode_into_libs=yes
15711   ;;
15712
15713 uts4*)
15714   version_type=linux
15715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15716   soname_spec='${libname}${release}${shared_ext}$major'
15717   shlibpath_var=LD_LIBRARY_PATH
15718   ;;
15719
15720 *)
15721   dynamic_linker=no
15722   ;;
15723 esac
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15725 $as_echo "$dynamic_linker" >&6; }
15726 test "$dynamic_linker" = no && can_build_shared=no
15727
15728 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15729 if test "$GCC" = yes; then
15730   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15731 fi
15732
15733 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15734   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15735 fi
15736 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15737   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15738 fi
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15832 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15833 hardcode_action=
15834 if test -n "$hardcode_libdir_flag_spec" ||
15835    test -n "$runpath_var" ||
15836    test "X$hardcode_automatic" = "Xyes" ; then
15837
15838   # We can hardcode non-existent directories.
15839   if test "$hardcode_direct" != no &&
15840      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15841      # have to relink, otherwise we might link with an installed library
15842      # when we should be linking with a yet-to-be-installed one
15843      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15844      test "$hardcode_minus_L" != no; then
15845     # Linking always hardcodes the temporary library directory.
15846     hardcode_action=relink
15847   else
15848     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15849     hardcode_action=immediate
15850   fi
15851 else
15852   # We cannot hardcode anything, or else we can only hardcode existing
15853   # directories.
15854   hardcode_action=unsupported
15855 fi
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15857 $as_echo "$hardcode_action" >&6; }
15858
15859 if test "$hardcode_action" = relink ||
15860    test "$inherit_rpath" = yes; then
15861   # Fast installation is not supported
15862   enable_fast_install=no
15863 elif test "$shlibpath_overrides_runpath" = yes ||
15864      test "$enable_shared" = no; then
15865   # Fast installation is not necessary
15866   enable_fast_install=needless
15867 fi
15868
15869
15870
15871
15872
15873
15874   if test "x$enable_dlopen" != xyes; then
15875   enable_dlopen=unknown
15876   enable_dlopen_self=unknown
15877   enable_dlopen_self_static=unknown
15878 else
15879   lt_cv_dlopen=no
15880   lt_cv_dlopen_libs=
15881
15882   case $host_os in
15883   beos*)
15884     lt_cv_dlopen="load_add_on"
15885     lt_cv_dlopen_libs=
15886     lt_cv_dlopen_self=yes
15887     ;;
15888
15889   mingw* | pw32* | cegcc*)
15890     lt_cv_dlopen="LoadLibrary"
15891     lt_cv_dlopen_libs=
15892     ;;
15893
15894   cygwin*)
15895     lt_cv_dlopen="dlopen"
15896     lt_cv_dlopen_libs=
15897     ;;
15898
15899   darwin*)
15900   # if libdl is installed we need to link against it
15901     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15902 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15903 if ${ac_cv_lib_dl_dlopen+:} false; then :
15904   $as_echo_n "(cached) " >&6
15905 else
15906   ac_check_lib_save_LIBS=$LIBS
15907 LIBS="-ldl  $LIBS"
15908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909 /* end confdefs.h.  */
15910
15911 /* Override any GCC internal prototype to avoid an error.
15912    Use char because int might match the return type of a GCC
15913    builtin and then its argument prototype would still apply.  */
15914 #ifdef __cplusplus
15915 extern "C"
15916 #endif
15917 char dlopen ();
15918 int
15919 main ()
15920 {
15921 return dlopen ();
15922   ;
15923   return 0;
15924 }
15925 _ACEOF
15926 if ac_fn_c_try_link "$LINENO"; then :
15927   ac_cv_lib_dl_dlopen=yes
15928 else
15929   ac_cv_lib_dl_dlopen=no
15930 fi
15931 rm -f core conftest.err conftest.$ac_objext \
15932     conftest$ac_exeext conftest.$ac_ext
15933 LIBS=$ac_check_lib_save_LIBS
15934 fi
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15936 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15937 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15938   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15939 else
15940
15941     lt_cv_dlopen="dyld"
15942     lt_cv_dlopen_libs=
15943     lt_cv_dlopen_self=yes
15944
15945 fi
15946
15947     ;;
15948
15949   *)
15950     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15951 if test "x$ac_cv_func_shl_load" = xyes; then :
15952   lt_cv_dlopen="shl_load"
15953 else
15954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15955 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15956 if ${ac_cv_lib_dld_shl_load+:} false; then :
15957   $as_echo_n "(cached) " >&6
15958 else
15959   ac_check_lib_save_LIBS=$LIBS
15960 LIBS="-ldld  $LIBS"
15961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15962 /* end confdefs.h.  */
15963
15964 /* Override any GCC internal prototype to avoid an error.
15965    Use char because int might match the return type of a GCC
15966    builtin and then its argument prototype would still apply.  */
15967 #ifdef __cplusplus
15968 extern "C"
15969 #endif
15970 char shl_load ();
15971 int
15972 main ()
15973 {
15974 return shl_load ();
15975   ;
15976   return 0;
15977 }
15978 _ACEOF
15979 if ac_fn_c_try_link "$LINENO"; then :
15980   ac_cv_lib_dld_shl_load=yes
15981 else
15982   ac_cv_lib_dld_shl_load=no
15983 fi
15984 rm -f core conftest.err conftest.$ac_objext \
15985     conftest$ac_exeext conftest.$ac_ext
15986 LIBS=$ac_check_lib_save_LIBS
15987 fi
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15989 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15990 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15991   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15992 else
15993   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15994 if test "x$ac_cv_func_dlopen" = xyes; then :
15995   lt_cv_dlopen="dlopen"
15996 else
15997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15998 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15999 if ${ac_cv_lib_dl_dlopen+:} false; then :
16000   $as_echo_n "(cached) " >&6
16001 else
16002   ac_check_lib_save_LIBS=$LIBS
16003 LIBS="-ldl  $LIBS"
16004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16005 /* end confdefs.h.  */
16006
16007 /* Override any GCC internal prototype to avoid an error.
16008    Use char because int might match the return type of a GCC
16009    builtin and then its argument prototype would still apply.  */
16010 #ifdef __cplusplus
16011 extern "C"
16012 #endif
16013 char dlopen ();
16014 int
16015 main ()
16016 {
16017 return dlopen ();
16018   ;
16019   return 0;
16020 }
16021 _ACEOF
16022 if ac_fn_c_try_link "$LINENO"; then :
16023   ac_cv_lib_dl_dlopen=yes
16024 else
16025   ac_cv_lib_dl_dlopen=no
16026 fi
16027 rm -f core conftest.err conftest.$ac_objext \
16028     conftest$ac_exeext conftest.$ac_ext
16029 LIBS=$ac_check_lib_save_LIBS
16030 fi
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16032 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16033 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16034   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16035 else
16036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16037 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16038 if ${ac_cv_lib_svld_dlopen+:} false; then :
16039   $as_echo_n "(cached) " >&6
16040 else
16041   ac_check_lib_save_LIBS=$LIBS
16042 LIBS="-lsvld  $LIBS"
16043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16044 /* end confdefs.h.  */
16045
16046 /* Override any GCC internal prototype to avoid an error.
16047    Use char because int might match the return type of a GCC
16048    builtin and then its argument prototype would still apply.  */
16049 #ifdef __cplusplus
16050 extern "C"
16051 #endif
16052 char dlopen ();
16053 int
16054 main ()
16055 {
16056 return dlopen ();
16057   ;
16058   return 0;
16059 }
16060 _ACEOF
16061 if ac_fn_c_try_link "$LINENO"; then :
16062   ac_cv_lib_svld_dlopen=yes
16063 else
16064   ac_cv_lib_svld_dlopen=no
16065 fi
16066 rm -f core conftest.err conftest.$ac_objext \
16067     conftest$ac_exeext conftest.$ac_ext
16068 LIBS=$ac_check_lib_save_LIBS
16069 fi
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16071 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16072 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16073   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16074 else
16075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16076 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16077 if ${ac_cv_lib_dld_dld_link+:} false; then :
16078   $as_echo_n "(cached) " >&6
16079 else
16080   ac_check_lib_save_LIBS=$LIBS
16081 LIBS="-ldld  $LIBS"
16082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h.  */
16084
16085 /* Override any GCC internal prototype to avoid an error.
16086    Use char because int might match the return type of a GCC
16087    builtin and then its argument prototype would still apply.  */
16088 #ifdef __cplusplus
16089 extern "C"
16090 #endif
16091 char dld_link ();
16092 int
16093 main ()
16094 {
16095 return dld_link ();
16096   ;
16097   return 0;
16098 }
16099 _ACEOF
16100 if ac_fn_c_try_link "$LINENO"; then :
16101   ac_cv_lib_dld_dld_link=yes
16102 else
16103   ac_cv_lib_dld_dld_link=no
16104 fi
16105 rm -f core conftest.err conftest.$ac_objext \
16106     conftest$ac_exeext conftest.$ac_ext
16107 LIBS=$ac_check_lib_save_LIBS
16108 fi
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16110 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16111 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16112   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16113 fi
16114
16115
16116 fi
16117
16118
16119 fi
16120
16121
16122 fi
16123
16124
16125 fi
16126
16127
16128 fi
16129
16130     ;;
16131   esac
16132
16133   if test "x$lt_cv_dlopen" != xno; then
16134     enable_dlopen=yes
16135   else
16136     enable_dlopen=no
16137   fi
16138
16139   case $lt_cv_dlopen in
16140   dlopen)
16141     save_CPPFLAGS="$CPPFLAGS"
16142     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16143
16144     save_LDFLAGS="$LDFLAGS"
16145     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16146
16147     save_LIBS="$LIBS"
16148     LIBS="$lt_cv_dlopen_libs $LIBS"
16149
16150     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16151 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16152 if ${lt_cv_dlopen_self+:} false; then :
16153   $as_echo_n "(cached) " >&6
16154 else
16155           if test "$cross_compiling" = yes; then :
16156   lt_cv_dlopen_self=cross
16157 else
16158   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16159   lt_status=$lt_dlunknown
16160   cat > conftest.$ac_ext <<_LT_EOF
16161 #line $LINENO "configure"
16162 #include "confdefs.h"
16163
16164 #if HAVE_DLFCN_H
16165 #include <dlfcn.h>
16166 #endif
16167
16168 #include <stdio.h>
16169
16170 #ifdef RTLD_GLOBAL
16171 #  define LT_DLGLOBAL           RTLD_GLOBAL
16172 #else
16173 #  ifdef DL_GLOBAL
16174 #    define LT_DLGLOBAL         DL_GLOBAL
16175 #  else
16176 #    define LT_DLGLOBAL         0
16177 #  endif
16178 #endif
16179
16180 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16181    find out it does not work in some platform. */
16182 #ifndef LT_DLLAZY_OR_NOW
16183 #  ifdef RTLD_LAZY
16184 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16185 #  else
16186 #    ifdef DL_LAZY
16187 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16188 #    else
16189 #      ifdef RTLD_NOW
16190 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16191 #      else
16192 #        ifdef DL_NOW
16193 #          define LT_DLLAZY_OR_NOW      DL_NOW
16194 #        else
16195 #          define LT_DLLAZY_OR_NOW      0
16196 #        endif
16197 #      endif
16198 #    endif
16199 #  endif
16200 #endif
16201
16202 /* When -fvisbility=hidden is used, assume the code has been annotated
16203    correspondingly for the symbols needed.  */
16204 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16205 int fnord () __attribute__((visibility("default")));
16206 #endif
16207
16208 int fnord () { return 42; }
16209 int main ()
16210 {
16211   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16212   int status = $lt_dlunknown;
16213
16214   if (self)
16215     {
16216       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16217       else
16218         {
16219           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16220           else puts (dlerror ());
16221         }
16222       /* dlclose (self); */
16223     }
16224   else
16225     puts (dlerror ());
16226
16227   return status;
16228 }
16229 _LT_EOF
16230   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16231   (eval $ac_link) 2>&5
16232   ac_status=$?
16233   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16234   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16235     (./conftest; exit; ) >&5 2>/dev/null
16236     lt_status=$?
16237     case x$lt_status in
16238       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16239       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16240       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16241     esac
16242   else :
16243     # compilation failed
16244     lt_cv_dlopen_self=no
16245   fi
16246 fi
16247 rm -fr conftest*
16248
16249
16250 fi
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16252 $as_echo "$lt_cv_dlopen_self" >&6; }
16253
16254     if test "x$lt_cv_dlopen_self" = xyes; then
16255       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16256       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16257 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16258 if ${lt_cv_dlopen_self_static+:} false; then :
16259   $as_echo_n "(cached) " >&6
16260 else
16261           if test "$cross_compiling" = yes; then :
16262   lt_cv_dlopen_self_static=cross
16263 else
16264   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16265   lt_status=$lt_dlunknown
16266   cat > conftest.$ac_ext <<_LT_EOF
16267 #line $LINENO "configure"
16268 #include "confdefs.h"
16269
16270 #if HAVE_DLFCN_H
16271 #include <dlfcn.h>
16272 #endif
16273
16274 #include <stdio.h>
16275
16276 #ifdef RTLD_GLOBAL
16277 #  define LT_DLGLOBAL           RTLD_GLOBAL
16278 #else
16279 #  ifdef DL_GLOBAL
16280 #    define LT_DLGLOBAL         DL_GLOBAL
16281 #  else
16282 #    define LT_DLGLOBAL         0
16283 #  endif
16284 #endif
16285
16286 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16287    find out it does not work in some platform. */
16288 #ifndef LT_DLLAZY_OR_NOW
16289 #  ifdef RTLD_LAZY
16290 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16291 #  else
16292 #    ifdef DL_LAZY
16293 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16294 #    else
16295 #      ifdef RTLD_NOW
16296 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16297 #      else
16298 #        ifdef DL_NOW
16299 #          define LT_DLLAZY_OR_NOW      DL_NOW
16300 #        else
16301 #          define LT_DLLAZY_OR_NOW      0
16302 #        endif
16303 #      endif
16304 #    endif
16305 #  endif
16306 #endif
16307
16308 /* When -fvisbility=hidden is used, assume the code has been annotated
16309    correspondingly for the symbols needed.  */
16310 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16311 int fnord () __attribute__((visibility("default")));
16312 #endif
16313
16314 int fnord () { return 42; }
16315 int main ()
16316 {
16317   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16318   int status = $lt_dlunknown;
16319
16320   if (self)
16321     {
16322       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16323       else
16324         {
16325           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16326           else puts (dlerror ());
16327         }
16328       /* dlclose (self); */
16329     }
16330   else
16331     puts (dlerror ());
16332
16333   return status;
16334 }
16335 _LT_EOF
16336   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16337   (eval $ac_link) 2>&5
16338   ac_status=$?
16339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16340   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16341     (./conftest; exit; ) >&5 2>/dev/null
16342     lt_status=$?
16343     case x$lt_status in
16344       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16345       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16346       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16347     esac
16348   else :
16349     # compilation failed
16350     lt_cv_dlopen_self_static=no
16351   fi
16352 fi
16353 rm -fr conftest*
16354
16355
16356 fi
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16358 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16359     fi
16360
16361     CPPFLAGS="$save_CPPFLAGS"
16362     LDFLAGS="$save_LDFLAGS"
16363     LIBS="$save_LIBS"
16364     ;;
16365   esac
16366
16367   case $lt_cv_dlopen_self in
16368   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16369   *) enable_dlopen_self=unknown ;;
16370   esac
16371
16372   case $lt_cv_dlopen_self_static in
16373   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16374   *) enable_dlopen_self_static=unknown ;;
16375   esac
16376 fi
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394 striplib=
16395 old_striplib=
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16397 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16398 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16399   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16400   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16402 $as_echo "yes" >&6; }
16403 else
16404 # FIXME - insert some real tests, host_os isn't really good enough
16405   case $host_os in
16406   darwin*)
16407     if test -n "$STRIP" ; then
16408       striplib="$STRIP -x"
16409       old_striplib="$STRIP -S"
16410       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16411 $as_echo "yes" >&6; }
16412     else
16413       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16414 $as_echo "no" >&6; }
16415     fi
16416     ;;
16417   *)
16418     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16419 $as_echo "no" >&6; }
16420     ;;
16421   esac
16422 fi
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435   # Report which library types will actually be built
16436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16437 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16439 $as_echo "$can_build_shared" >&6; }
16440
16441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16442 $as_echo_n "checking whether to build shared libraries... " >&6; }
16443   test "$can_build_shared" = "no" && enable_shared=no
16444
16445   # On AIX, shared libraries and static libraries use the same namespace, and
16446   # are all built from PIC.
16447   case $host_os in
16448   aix3*)
16449     test "$enable_shared" = yes && enable_static=no
16450     if test -n "$RANLIB"; then
16451       archive_cmds="$archive_cmds~\$RANLIB \$lib"
16452       postinstall_cmds='$RANLIB $lib'
16453     fi
16454     ;;
16455
16456   aix[4-9]*)
16457     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16458       test "$enable_shared" = yes && enable_static=no
16459     fi
16460     ;;
16461   esac
16462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16463 $as_echo "$enable_shared" >&6; }
16464
16465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16466 $as_echo_n "checking whether to build static libraries... " >&6; }
16467   # Make sure either enable_shared or enable_static is yes.
16468   test "$enable_shared" = yes || enable_static=yes
16469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16470 $as_echo "$enable_static" >&6; }
16471
16472
16473
16474
16475 fi
16476 ac_ext=c
16477 ac_cpp='$CPP $CPPFLAGS'
16478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16481
16482 CC="$lt_save_CC"
16483
16484       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16485     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16486     (test "X$CXX" != "Xg++"))) ; then
16487   ac_ext=cpp
16488 ac_cpp='$CXXCPP $CPPFLAGS'
16489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16493 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16494 if test -z "$CXXCPP"; then
16495   if ${ac_cv_prog_CXXCPP+:} false; then :
16496   $as_echo_n "(cached) " >&6
16497 else
16498       # Double quotes because CXXCPP needs to be expanded
16499     for CXXCPP in "$CXX -E" "/lib/cpp"
16500     do
16501       ac_preproc_ok=false
16502 for ac_cxx_preproc_warn_flag in '' yes
16503 do
16504   # Use a header file that comes with gcc, so configuring glibc
16505   # with a fresh cross-compiler works.
16506   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16507   # <limits.h> exists even on freestanding compilers.
16508   # On the NeXT, cc -E runs the code through the compiler's parser,
16509   # not just through cpp. "Syntax error" is here to catch this case.
16510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511 /* end confdefs.h.  */
16512 #ifdef __STDC__
16513 # include <limits.h>
16514 #else
16515 # include <assert.h>
16516 #endif
16517                      Syntax error
16518 _ACEOF
16519 if ac_fn_cxx_try_cpp "$LINENO"; then :
16520
16521 else
16522   # Broken: fails on valid input.
16523 continue
16524 fi
16525 rm -f conftest.err conftest.i conftest.$ac_ext
16526
16527   # OK, works on sane cases.  Now check whether nonexistent headers
16528   # can be detected and how.
16529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16530 /* end confdefs.h.  */
16531 #include <ac_nonexistent.h>
16532 _ACEOF
16533 if ac_fn_cxx_try_cpp "$LINENO"; then :
16534   # Broken: success on invalid input.
16535 continue
16536 else
16537   # Passes both tests.
16538 ac_preproc_ok=:
16539 break
16540 fi
16541 rm -f conftest.err conftest.i conftest.$ac_ext
16542
16543 done
16544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16545 rm -f conftest.i conftest.err conftest.$ac_ext
16546 if $ac_preproc_ok; then :
16547   break
16548 fi
16549
16550     done
16551     ac_cv_prog_CXXCPP=$CXXCPP
16552
16553 fi
16554   CXXCPP=$ac_cv_prog_CXXCPP
16555 else
16556   ac_cv_prog_CXXCPP=$CXXCPP
16557 fi
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16559 $as_echo "$CXXCPP" >&6; }
16560 ac_preproc_ok=false
16561 for ac_cxx_preproc_warn_flag in '' yes
16562 do
16563   # Use a header file that comes with gcc, so configuring glibc
16564   # with a fresh cross-compiler works.
16565   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16566   # <limits.h> exists even on freestanding compilers.
16567   # On the NeXT, cc -E runs the code through the compiler's parser,
16568   # not just through cpp. "Syntax error" is here to catch this case.
16569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570 /* end confdefs.h.  */
16571 #ifdef __STDC__
16572 # include <limits.h>
16573 #else
16574 # include <assert.h>
16575 #endif
16576                      Syntax error
16577 _ACEOF
16578 if ac_fn_cxx_try_cpp "$LINENO"; then :
16579
16580 else
16581   # Broken: fails on valid input.
16582 continue
16583 fi
16584 rm -f conftest.err conftest.i conftest.$ac_ext
16585
16586   # OK, works on sane cases.  Now check whether nonexistent headers
16587   # can be detected and how.
16588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16589 /* end confdefs.h.  */
16590 #include <ac_nonexistent.h>
16591 _ACEOF
16592 if ac_fn_cxx_try_cpp "$LINENO"; then :
16593   # Broken: success on invalid input.
16594 continue
16595 else
16596   # Passes both tests.
16597 ac_preproc_ok=:
16598 break
16599 fi
16600 rm -f conftest.err conftest.i conftest.$ac_ext
16601
16602 done
16603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16604 rm -f conftest.i conftest.err conftest.$ac_ext
16605 if $ac_preproc_ok; then :
16606
16607 else
16608   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16610 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16611 See \`config.log' for more details" "$LINENO" 5; }
16612 fi
16613
16614 ac_ext=c
16615 ac_cpp='$CPP $CPPFLAGS'
16616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16619
16620 else
16621   _lt_caught_CXX_error=yes
16622 fi
16623
16624 ac_ext=cpp
16625 ac_cpp='$CXXCPP $CPPFLAGS'
16626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16629
16630 archive_cmds_need_lc_CXX=no
16631 allow_undefined_flag_CXX=
16632 always_export_symbols_CXX=no
16633 archive_expsym_cmds_CXX=
16634 compiler_needs_object_CXX=no
16635 export_dynamic_flag_spec_CXX=
16636 hardcode_direct_CXX=no
16637 hardcode_direct_absolute_CXX=no
16638 hardcode_libdir_flag_spec_CXX=
16639 hardcode_libdir_flag_spec_ld_CXX=
16640 hardcode_libdir_separator_CXX=
16641 hardcode_minus_L_CXX=no
16642 hardcode_shlibpath_var_CXX=unsupported
16643 hardcode_automatic_CXX=no
16644 inherit_rpath_CXX=no
16645 module_cmds_CXX=
16646 module_expsym_cmds_CXX=
16647 link_all_deplibs_CXX=unknown
16648 old_archive_cmds_CXX=$old_archive_cmds
16649 reload_flag_CXX=$reload_flag
16650 reload_cmds_CXX=$reload_cmds
16651 no_undefined_flag_CXX=
16652 whole_archive_flag_spec_CXX=
16653 enable_shared_with_static_runtimes_CXX=no
16654
16655 # Source file extension for C++ test sources.
16656 ac_ext=cpp
16657
16658 # Object file extension for compiled C++ test sources.
16659 objext=o
16660 objext_CXX=$objext
16661
16662 # No sense in running all these tests if we already determined that
16663 # the CXX compiler isn't working.  Some variables (like enable_shared)
16664 # are currently assumed to apply to all compilers on this platform,
16665 # and will be corrupted by setting them based on a non-working compiler.
16666 if test "$_lt_caught_CXX_error" != yes; then
16667   # Code to be used in simple compile tests
16668   lt_simple_compile_test_code="int some_variable = 0;"
16669
16670   # Code to be used in simple link tests
16671   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16672
16673   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16674
16675
16676
16677
16678
16679
16680 # If no C compiler was specified, use CC.
16681 LTCC=${LTCC-"$CC"}
16682
16683 # If no C compiler flags were specified, use CFLAGS.
16684 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16685
16686 # Allow CC to be a program name with arguments.
16687 compiler=$CC
16688
16689
16690   # save warnings/boilerplate of simple test code
16691   ac_outfile=conftest.$ac_objext
16692 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16693 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16694 _lt_compiler_boilerplate=`cat conftest.err`
16695 $RM conftest*
16696
16697   ac_outfile=conftest.$ac_objext
16698 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16699 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16700 _lt_linker_boilerplate=`cat conftest.err`
16701 $RM -r conftest*
16702
16703
16704   # Allow CC to be a program name with arguments.
16705   lt_save_CC=$CC
16706   lt_save_CFLAGS=$CFLAGS
16707   lt_save_LD=$LD
16708   lt_save_GCC=$GCC
16709   GCC=$GXX
16710   lt_save_with_gnu_ld=$with_gnu_ld
16711   lt_save_path_LD=$lt_cv_path_LD
16712   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16713     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16714   else
16715     $as_unset lt_cv_prog_gnu_ld
16716   fi
16717   if test -n "${lt_cv_path_LDCXX+set}"; then
16718     lt_cv_path_LD=$lt_cv_path_LDCXX
16719   else
16720     $as_unset lt_cv_path_LD
16721   fi
16722   test -z "${LDCXX+set}" || LD=$LDCXX
16723   CC=${CXX-"c++"}
16724   CFLAGS=$CXXFLAGS
16725   compiler=$CC
16726   compiler_CXX=$CC
16727   for cc_temp in $compiler""; do
16728   case $cc_temp in
16729     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16730     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16731     \-*) ;;
16732     *) break;;
16733   esac
16734 done
16735 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16736
16737
16738   if test -n "$compiler"; then
16739     # We don't want -fno-exception when compiling C++ code, so set the
16740     # no_builtin_flag separately
16741     if test "$GXX" = yes; then
16742       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16743     else
16744       lt_prog_compiler_no_builtin_flag_CXX=
16745     fi
16746
16747     if test "$GXX" = yes; then
16748       # Set up default GNU C++ configuration
16749
16750
16751
16752 # Check whether --with-gnu-ld was given.
16753 if test "${with_gnu_ld+set}" = set; then :
16754   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16755 else
16756   with_gnu_ld=no
16757 fi
16758
16759 ac_prog=ld
16760 if test "$GCC" = yes; then
16761   # Check if gcc -print-prog-name=ld gives a path.
16762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16763 $as_echo_n "checking for ld used by $CC... " >&6; }
16764   case $host in
16765   *-*-mingw*)
16766     # gcc leaves a trailing carriage return which upsets mingw
16767     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16768   *)
16769     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16770   esac
16771   case $ac_prog in
16772     # Accept absolute paths.
16773     [\\/]* | ?:[\\/]*)
16774       re_direlt='/[^/][^/]*/\.\./'
16775       # Canonicalize the pathname of ld
16776       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16777       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16778         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16779       done
16780       test -z "$LD" && LD="$ac_prog"
16781       ;;
16782   "")
16783     # If it fails, then pretend we aren't using GCC.
16784     ac_prog=ld
16785     ;;
16786   *)
16787     # If it is relative, then search for the first ld in PATH.
16788     with_gnu_ld=unknown
16789     ;;
16790   esac
16791 elif test "$with_gnu_ld" = yes; then
16792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16793 $as_echo_n "checking for GNU ld... " >&6; }
16794 else
16795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16796 $as_echo_n "checking for non-GNU ld... " >&6; }
16797 fi
16798 if ${lt_cv_path_LD+:} false; then :
16799   $as_echo_n "(cached) " >&6
16800 else
16801   if test -z "$LD"; then
16802   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16803   for ac_dir in $PATH; do
16804     IFS="$lt_save_ifs"
16805     test -z "$ac_dir" && ac_dir=.
16806     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16807       lt_cv_path_LD="$ac_dir/$ac_prog"
16808       # Check to see if the program is GNU ld.  I'd rather use --version,
16809       # but apparently some variants of GNU ld only accept -v.
16810       # Break only if it was the GNU/non-GNU ld that we prefer.
16811       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16812       *GNU* | *'with BFD'*)
16813         test "$with_gnu_ld" != no && break
16814         ;;
16815       *)
16816         test "$with_gnu_ld" != yes && break
16817         ;;
16818       esac
16819     fi
16820   done
16821   IFS="$lt_save_ifs"
16822 else
16823   lt_cv_path_LD="$LD" # Let the user override the test with a path.
16824 fi
16825 fi
16826
16827 LD="$lt_cv_path_LD"
16828 if test -n "$LD"; then
16829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16830 $as_echo "$LD" >&6; }
16831 else
16832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16833 $as_echo "no" >&6; }
16834 fi
16835 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16837 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16838 if ${lt_cv_prog_gnu_ld+:} false; then :
16839   $as_echo_n "(cached) " >&6
16840 else
16841   # I'd rather use --version here, but apparently some GNU lds only accept -v.
16842 case `$LD -v 2>&1 </dev/null` in
16843 *GNU* | *'with BFD'*)
16844   lt_cv_prog_gnu_ld=yes
16845   ;;
16846 *)
16847   lt_cv_prog_gnu_ld=no
16848   ;;
16849 esac
16850 fi
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16852 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16853 with_gnu_ld=$lt_cv_prog_gnu_ld
16854
16855
16856
16857
16858
16859
16860
16861       # Check if GNU C++ uses GNU ld as the underlying linker, since the
16862       # archiving commands below assume that GNU ld is being used.
16863       if test "$with_gnu_ld" = yes; then
16864         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16865         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'
16866
16867         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16868         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16869
16870         # If archive_cmds runs LD, not CC, wlarc should be empty
16871         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16872         #     investigate it a little bit more. (MM)
16873         wlarc='${wl}'
16874
16875         # ancient GNU ld didn't support --whole-archive et. al.
16876         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16877           $GREP 'no-whole-archive' > /dev/null; then
16878           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16879         else
16880           whole_archive_flag_spec_CXX=
16881         fi
16882       else
16883         with_gnu_ld=no
16884         wlarc=
16885
16886         # A generic and very simple default shared library creation
16887         # command for GNU C++ for the case where it uses the native
16888         # linker, instead of GNU ld.  If possible, this setting should
16889         # overridden to take advantage of the native linker features on
16890         # the platform it is being used on.
16891         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16892       fi
16893
16894       # Commands to make compiler produce verbose output that lists
16895       # what "hidden" libraries, object files and flags are used when
16896       # linking a shared library.
16897       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16898
16899     else
16900       GXX=no
16901       with_gnu_ld=no
16902       wlarc=
16903     fi
16904
16905     # PORTME: fill in a description of your system's C++ link characteristics
16906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16907 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16908     ld_shlibs_CXX=yes
16909     case $host_os in
16910       aix3*)
16911         # FIXME: insert proper C++ library support
16912         ld_shlibs_CXX=no
16913         ;;
16914       aix[4-9]*)
16915         if test "$host_cpu" = ia64; then
16916           # On IA64, the linker does run time linking by default, so we don't
16917           # have to do anything special.
16918           aix_use_runtimelinking=no
16919           exp_sym_flag='-Bexport'
16920           no_entry_flag=""
16921         else
16922           aix_use_runtimelinking=no
16923
16924           # Test if we are trying to use run time linking or normal
16925           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16926           # need to do runtime linking.
16927           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16928             for ld_flag in $LDFLAGS; do
16929               case $ld_flag in
16930               *-brtl*)
16931                 aix_use_runtimelinking=yes
16932                 break
16933                 ;;
16934               esac
16935             done
16936             ;;
16937           esac
16938
16939           exp_sym_flag='-bexport'
16940           no_entry_flag='-bnoentry'
16941         fi
16942
16943         # When large executables or shared objects are built, AIX ld can
16944         # have problems creating the table of contents.  If linking a library
16945         # or program results in "error TOC overflow" add -mminimal-toc to
16946         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16947         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16948
16949         archive_cmds_CXX=''
16950         hardcode_direct_CXX=yes
16951         hardcode_direct_absolute_CXX=yes
16952         hardcode_libdir_separator_CXX=':'
16953         link_all_deplibs_CXX=yes
16954         file_list_spec_CXX='${wl}-f,'
16955
16956         if test "$GXX" = yes; then
16957           case $host_os in aix4.[012]|aix4.[012].*)
16958           # We only want to do this on AIX 4.2 and lower, the check
16959           # below for broken collect2 doesn't work under 4.3+
16960           collect2name=`${CC} -print-prog-name=collect2`
16961           if test -f "$collect2name" &&
16962              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16963           then
16964             # We have reworked collect2
16965             :
16966           else
16967             # We have old collect2
16968             hardcode_direct_CXX=unsupported
16969             # It fails to find uninstalled libraries when the uninstalled
16970             # path is not listed in the libpath.  Setting hardcode_minus_L
16971             # to unsupported forces relinking
16972             hardcode_minus_L_CXX=yes
16973             hardcode_libdir_flag_spec_CXX='-L$libdir'
16974             hardcode_libdir_separator_CXX=
16975           fi
16976           esac
16977           shared_flag='-shared'
16978           if test "$aix_use_runtimelinking" = yes; then
16979             shared_flag="$shared_flag "'${wl}-G'
16980           fi
16981         else
16982           # not using gcc
16983           if test "$host_cpu" = ia64; then
16984           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16985           # chokes on -Wl,-G. The following line is correct:
16986           shared_flag='-G'
16987           else
16988             if test "$aix_use_runtimelinking" = yes; then
16989               shared_flag='${wl}-G'
16990             else
16991               shared_flag='${wl}-bM:SRE'
16992             fi
16993           fi
16994         fi
16995
16996         export_dynamic_flag_spec_CXX='${wl}-bexpall'
16997         # It seems that -bexpall does not export symbols beginning with
16998         # underscore (_), so it is better to generate a list of symbols to
16999         # export.
17000         always_export_symbols_CXX=yes
17001         if test "$aix_use_runtimelinking" = yes; then
17002           # Warning - without using the other runtime loading flags (-brtl),
17003           # -berok will link without error, but may produce a broken library.
17004           allow_undefined_flag_CXX='-berok'
17005           # Determine the default libpath from the value encoded in an empty
17006           # executable.
17007           if test "${lt_cv_aix_libpath+set}" = set; then
17008   aix_libpath=$lt_cv_aix_libpath
17009 else
17010   if ${lt_cv_aix_libpath__CXX+:} false; then :
17011   $as_echo_n "(cached) " >&6
17012 else
17013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17014 /* end confdefs.h.  */
17015
17016 int
17017 main ()
17018 {
17019
17020   ;
17021   return 0;
17022 }
17023 _ACEOF
17024 if ac_fn_cxx_try_link "$LINENO"; then :
17025
17026   lt_aix_libpath_sed='
17027       /Import File Strings/,/^$/ {
17028           /^0/ {
17029               s/^0  *\([^ ]*\) *$/\1/
17030               p
17031           }
17032       }'
17033   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17034   # Check for a 64-bit object if we didn't find anything.
17035   if test -z "$lt_cv_aix_libpath__CXX"; then
17036     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17037   fi
17038 fi
17039 rm -f core conftest.err conftest.$ac_objext \
17040     conftest$ac_exeext conftest.$ac_ext
17041   if test -z "$lt_cv_aix_libpath__CXX"; then
17042     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17043   fi
17044
17045 fi
17046
17047   aix_libpath=$lt_cv_aix_libpath__CXX
17048 fi
17049
17050           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17051
17052           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"
17053         else
17054           if test "$host_cpu" = ia64; then
17055             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17056             allow_undefined_flag_CXX="-z nodefs"
17057             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"
17058           else
17059             # Determine the default libpath from the value encoded in an
17060             # empty executable.
17061             if test "${lt_cv_aix_libpath+set}" = set; then
17062   aix_libpath=$lt_cv_aix_libpath
17063 else
17064   if ${lt_cv_aix_libpath__CXX+:} false; then :
17065   $as_echo_n "(cached) " >&6
17066 else
17067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17068 /* end confdefs.h.  */
17069
17070 int
17071 main ()
17072 {
17073
17074   ;
17075   return 0;
17076 }
17077 _ACEOF
17078 if ac_fn_cxx_try_link "$LINENO"; then :
17079
17080   lt_aix_libpath_sed='
17081       /Import File Strings/,/^$/ {
17082           /^0/ {
17083               s/^0  *\([^ ]*\) *$/\1/
17084               p
17085           }
17086       }'
17087   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17088   # Check for a 64-bit object if we didn't find anything.
17089   if test -z "$lt_cv_aix_libpath__CXX"; then
17090     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17091   fi
17092 fi
17093 rm -f core conftest.err conftest.$ac_objext \
17094     conftest$ac_exeext conftest.$ac_ext
17095   if test -z "$lt_cv_aix_libpath__CXX"; then
17096     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17097   fi
17098
17099 fi
17100
17101   aix_libpath=$lt_cv_aix_libpath__CXX
17102 fi
17103
17104             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17105             # Warning - without using the other run time loading flags,
17106             # -berok will link without error, but may produce a broken library.
17107             no_undefined_flag_CXX=' ${wl}-bernotok'
17108             allow_undefined_flag_CXX=' ${wl}-berok'
17109             if test "$with_gnu_ld" = yes; then
17110               # We only use this code for GNU lds that support --whole-archive.
17111               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17112             else
17113               # Exported symbols can be pulled into shared objects from archives
17114               whole_archive_flag_spec_CXX='$convenience'
17115             fi
17116             archive_cmds_need_lc_CXX=yes
17117             # This is similar to how AIX traditionally builds its shared
17118             # libraries.
17119             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'
17120           fi
17121         fi
17122         ;;
17123
17124       beos*)
17125         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17126           allow_undefined_flag_CXX=unsupported
17127           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17128           # support --undefined.  This deserves some investigation.  FIXME
17129           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17130         else
17131           ld_shlibs_CXX=no
17132         fi
17133         ;;
17134
17135       chorus*)
17136         case $cc_basename in
17137           *)
17138           # FIXME: insert proper C++ library support
17139           ld_shlibs_CXX=no
17140           ;;
17141         esac
17142         ;;
17143
17144       cygwin* | mingw* | pw32* | cegcc*)
17145         case $GXX,$cc_basename in
17146         ,cl* | no,cl*)
17147           # Native MSVC
17148           # hardcode_libdir_flag_spec is actually meaningless, as there is
17149           # no search path for DLLs.
17150           hardcode_libdir_flag_spec_CXX=' '
17151           allow_undefined_flag_CXX=unsupported
17152           always_export_symbols_CXX=yes
17153           file_list_spec_CXX='@'
17154           # Tell ltmain to make .lib files, not .a files.
17155           libext=lib
17156           # Tell ltmain to make .dll files, not .so files.
17157           shrext_cmds=".dll"
17158           # FIXME: Setting linknames here is a bad hack.
17159           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17160           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17161               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17162             else
17163               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17164             fi~
17165             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17166             linknames='
17167           # The linker will not automatically build a static lib if we build a DLL.
17168           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17169           enable_shared_with_static_runtimes_CXX=yes
17170           # Don't use ranlib
17171           old_postinstall_cmds_CXX='chmod 644 $oldlib'
17172           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17173             lt_tool_outputfile="@TOOL_OUTPUT@"~
17174             case $lt_outputfile in
17175               *.exe|*.EXE) ;;
17176               *)
17177                 lt_outputfile="$lt_outputfile.exe"
17178                 lt_tool_outputfile="$lt_tool_outputfile.exe"
17179                 ;;
17180             esac~
17181             func_to_tool_file "$lt_outputfile"~
17182             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17183               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17184               $RM "$lt_outputfile.manifest";
17185             fi'
17186           ;;
17187         *)
17188           # g++
17189           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17190           # as there is no search path for DLLs.
17191           hardcode_libdir_flag_spec_CXX='-L$libdir'
17192           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17193           allow_undefined_flag_CXX=unsupported
17194           always_export_symbols_CXX=no
17195           enable_shared_with_static_runtimes_CXX=yes
17196
17197           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17198             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'
17199             # If the export-symbols file already is a .def file (1st line
17200             # is EXPORTS), use it as is; otherwise, prepend...
17201             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17202               cp $export_symbols $output_objdir/$soname.def;
17203             else
17204               echo EXPORTS > $output_objdir/$soname.def;
17205               cat $export_symbols >> $output_objdir/$soname.def;
17206             fi~
17207             $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'
17208           else
17209             ld_shlibs_CXX=no
17210           fi
17211           ;;
17212         esac
17213         ;;
17214       darwin* | rhapsody*)
17215
17216
17217   archive_cmds_need_lc_CXX=no
17218   hardcode_direct_CXX=no
17219   hardcode_automatic_CXX=yes
17220   hardcode_shlibpath_var_CXX=unsupported
17221   if test "$lt_cv_ld_force_load" = "yes"; then
17222     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\"`'
17223   else
17224     whole_archive_flag_spec_CXX=''
17225   fi
17226   link_all_deplibs_CXX=yes
17227   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17228   case $cc_basename in
17229      ifort*) _lt_dar_can_shared=yes ;;
17230      *) _lt_dar_can_shared=$GCC ;;
17231   esac
17232   if test "$_lt_dar_can_shared" = "yes"; then
17233     output_verbose_link_cmd=func_echo_all
17234     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}"
17235     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17236     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}"
17237     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}"
17238        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17239       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}"
17240       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}"
17241     fi
17242
17243   else
17244   ld_shlibs_CXX=no
17245   fi
17246
17247         ;;
17248
17249       dgux*)
17250         case $cc_basename in
17251           ec++*)
17252             # FIXME: insert proper C++ library support
17253             ld_shlibs_CXX=no
17254             ;;
17255           ghcx*)
17256             # Green Hills C++ Compiler
17257             # FIXME: insert proper C++ library support
17258             ld_shlibs_CXX=no
17259             ;;
17260           *)
17261             # FIXME: insert proper C++ library support
17262             ld_shlibs_CXX=no
17263             ;;
17264         esac
17265         ;;
17266
17267       freebsd[12]*)
17268         # C++ shared libraries reported to be fairly broken before
17269         # switch to ELF
17270         ld_shlibs_CXX=no
17271         ;;
17272
17273       freebsd-elf*)
17274         archive_cmds_need_lc_CXX=no
17275         ;;
17276
17277       freebsd* | dragonfly*)
17278         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17279         # conventions
17280         ld_shlibs_CXX=yes
17281         ;;
17282
17283       gnu*)
17284         ;;
17285
17286       haiku*)
17287         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17288         link_all_deplibs_CXX=yes
17289         ;;
17290
17291       hpux9*)
17292         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17293         hardcode_libdir_separator_CXX=:
17294         export_dynamic_flag_spec_CXX='${wl}-E'
17295         hardcode_direct_CXX=yes
17296         hardcode_minus_L_CXX=yes # Not in the search PATH,
17297                                              # but as the default
17298                                              # location of the library.
17299
17300         case $cc_basename in
17301           CC*)
17302             # FIXME: insert proper C++ library support
17303             ld_shlibs_CXX=no
17304             ;;
17305           aCC*)
17306             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'
17307             # Commands to make compiler produce verbose output that lists
17308             # what "hidden" libraries, object files and flags are used when
17309             # linking a shared library.
17310             #
17311             # There doesn't appear to be a way to prevent this compiler from
17312             # explicitly linking system object files so we need to strip them
17313             # from the output so that they don't get included in the library
17314             # dependencies.
17315             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"'
17316             ;;
17317           *)
17318             if test "$GXX" = yes; then
17319               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'
17320             else
17321               # FIXME: insert proper C++ library support
17322               ld_shlibs_CXX=no
17323             fi
17324             ;;
17325         esac
17326         ;;
17327
17328       hpux10*|hpux11*)
17329         if test $with_gnu_ld = no; then
17330           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17331           hardcode_libdir_separator_CXX=:
17332
17333           case $host_cpu in
17334             hppa*64*|ia64*)
17335               ;;
17336             *)
17337               export_dynamic_flag_spec_CXX='${wl}-E'
17338               ;;
17339           esac
17340         fi
17341         case $host_cpu in
17342           hppa*64*|ia64*)
17343             hardcode_direct_CXX=no
17344             hardcode_shlibpath_var_CXX=no
17345             ;;
17346           *)
17347             hardcode_direct_CXX=yes
17348             hardcode_direct_absolute_CXX=yes
17349             hardcode_minus_L_CXX=yes # Not in the search PATH,
17350                                                  # but as the default
17351                                                  # location of the library.
17352             ;;
17353         esac
17354
17355         case $cc_basename in
17356           CC*)
17357             # FIXME: insert proper C++ library support
17358             ld_shlibs_CXX=no
17359             ;;
17360           aCC*)
17361             case $host_cpu in
17362               hppa*64*)
17363                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17364                 ;;
17365               ia64*)
17366                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17367                 ;;
17368               *)
17369                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17370                 ;;
17371             esac
17372             # Commands to make compiler produce verbose output that lists
17373             # what "hidden" libraries, object files and flags are used when
17374             # linking a shared library.
17375             #
17376             # There doesn't appear to be a way to prevent this compiler from
17377             # explicitly linking system object files so we need to strip them
17378             # from the output so that they don't get included in the library
17379             # dependencies.
17380             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"'
17381             ;;
17382           *)
17383             if test "$GXX" = yes; then
17384               if test $with_gnu_ld = no; then
17385                 case $host_cpu in
17386                   hppa*64*)
17387                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17388                     ;;
17389                   ia64*)
17390                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17391                     ;;
17392                   *)
17393                     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'
17394                     ;;
17395                 esac
17396               fi
17397             else
17398               # FIXME: insert proper C++ library support
17399               ld_shlibs_CXX=no
17400             fi
17401             ;;
17402         esac
17403         ;;
17404
17405       interix[3-9]*)
17406         hardcode_direct_CXX=no
17407         hardcode_shlibpath_var_CXX=no
17408         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17409         export_dynamic_flag_spec_CXX='${wl}-E'
17410         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17411         # Instead, shared libraries are loaded at an image base (0x10000000 by
17412         # default) and relocated if they conflict, which is a slow very memory
17413         # consuming and fragmenting process.  To avoid this, we pick a random,
17414         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17415         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17416         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'
17417         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'
17418         ;;
17419       irix5* | irix6*)
17420         case $cc_basename in
17421           CC*)
17422             # SGI C++
17423             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'
17424
17425             # Archives containing C++ object files must be created using
17426             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
17427             # necessary to make sure instantiated templates are included
17428             # in the archive.
17429             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17430             ;;
17431           *)
17432             if test "$GXX" = yes; then
17433               if test "$with_gnu_ld" = no; then
17434                 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'
17435               else
17436                 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'
17437               fi
17438             fi
17439             link_all_deplibs_CXX=yes
17440             ;;
17441         esac
17442         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17443         hardcode_libdir_separator_CXX=:
17444         inherit_rpath_CXX=yes
17445         ;;
17446
17447       linux* | k*bsd*-gnu | kopensolaris*-gnu)
17448         case $cc_basename in
17449           KCC*)
17450             # Kuck and Associates, Inc. (KAI) C++ Compiler
17451
17452             # KCC will only create a shared library if the output file
17453             # ends with ".so" (or ".sl" for HP-UX), so rename the library
17454             # to its proper name (with version) after linking.
17455             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'
17456             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'
17457             # Commands to make compiler produce verbose output that lists
17458             # what "hidden" libraries, object files and flags are used when
17459             # linking a shared library.
17460             #
17461             # There doesn't appear to be a way to prevent this compiler from
17462             # explicitly linking system object files so we need to strip them
17463             # from the output so that they don't get included in the library
17464             # dependencies.
17465             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"'
17466
17467             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17468             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17469
17470             # Archives containing C++ object files must be created using
17471             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17472             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17473             ;;
17474           icpc* | ecpc* )
17475             # Intel C++
17476             with_gnu_ld=yes
17477             # version 8.0 and above of icpc choke on multiply defined symbols
17478             # if we add $predep_objects and $postdep_objects, however 7.1 and
17479             # earlier do not add the objects themselves.
17480             case `$CC -V 2>&1` in
17481               *"Version 7."*)
17482                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17483                 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'
17484                 ;;
17485               *)  # Version 8.0 or newer
17486                 tmp_idyn=
17487                 case $host_cpu in
17488                   ia64*) tmp_idyn=' -i_dynamic';;
17489                 esac
17490                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17491                 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'
17492                 ;;
17493             esac
17494             archive_cmds_need_lc_CXX=no
17495             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17496             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17497             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17498             ;;
17499           pgCC* | pgcpp*)
17500             # Portland Group C++ compiler
17501             case `$CC -V` in
17502             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17503               prelink_cmds_CXX='tpldir=Template.dir~
17504                 rm -rf $tpldir~
17505                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17506                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17507               old_archive_cmds_CXX='tpldir=Template.dir~
17508                 rm -rf $tpldir~
17509                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17510                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17511                 $RANLIB $oldlib'
17512               archive_cmds_CXX='tpldir=Template.dir~
17513                 rm -rf $tpldir~
17514                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17515                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17516               archive_expsym_cmds_CXX='tpldir=Template.dir~
17517                 rm -rf $tpldir~
17518                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17519                 $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'
17520               ;;
17521             *) # Version 6 and above use weak symbols
17522               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17523               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'
17524               ;;
17525             esac
17526
17527             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17528             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17529             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'
17530             ;;
17531           cxx*)
17532             # Compaq C++
17533             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17534             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'
17535
17536             runpath_var=LD_RUN_PATH
17537             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17538             hardcode_libdir_separator_CXX=:
17539
17540             # Commands to make compiler produce verbose output that lists
17541             # what "hidden" libraries, object files and flags are used when
17542             # linking a shared library.
17543             #
17544             # There doesn't appear to be a way to prevent this compiler from
17545             # explicitly linking system object files so we need to strip them
17546             # from the output so that they don't get included in the library
17547             # dependencies.
17548             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'
17549             ;;
17550           xl* | mpixl* | bgxl*)
17551             # IBM XL 8.0 on PPC, with GNU ld
17552             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17553             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17554             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17555             if test "x$supports_anon_versioning" = xyes; then
17556               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17557                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17558                 echo "local: *; };" >> $output_objdir/$libname.ver~
17559                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17560             fi
17561             ;;
17562           *)
17563             case `$CC -V 2>&1 | sed 5q` in
17564             *Sun\ C*)
17565               # Sun C++ 5.9
17566               no_undefined_flag_CXX=' -zdefs'
17567               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17568               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'
17569               hardcode_libdir_flag_spec_CXX='-R$libdir'
17570               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'
17571               compiler_needs_object_CXX=yes
17572
17573               # Not sure whether something based on
17574               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17575               # would be better.
17576               output_verbose_link_cmd='func_echo_all'
17577
17578               # Archives containing C++ object files must be created using
17579               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17580               # necessary to make sure instantiated templates are included
17581               # in the archive.
17582               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17583               ;;
17584             esac
17585             ;;
17586         esac
17587         ;;
17588
17589       lynxos*)
17590         # FIXME: insert proper C++ library support
17591         ld_shlibs_CXX=no
17592         ;;
17593
17594       m88k*)
17595         # FIXME: insert proper C++ library support
17596         ld_shlibs_CXX=no
17597         ;;
17598
17599       mvs*)
17600         case $cc_basename in
17601           cxx*)
17602             # FIXME: insert proper C++ library support
17603             ld_shlibs_CXX=no
17604             ;;
17605           *)
17606             # FIXME: insert proper C++ library support
17607             ld_shlibs_CXX=no
17608             ;;
17609         esac
17610         ;;
17611
17612       netbsd*)
17613         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17614           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17615           wlarc=
17616           hardcode_libdir_flag_spec_CXX='-R$libdir'
17617           hardcode_direct_CXX=yes
17618           hardcode_shlibpath_var_CXX=no
17619         fi
17620         # Workaround some broken pre-1.5 toolchains
17621         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17622         ;;
17623
17624       *nto* | *qnx*)
17625         ld_shlibs_CXX=yes
17626         ;;
17627
17628       openbsd2*)
17629         # C++ shared libraries are fairly broken
17630         ld_shlibs_CXX=no
17631         ;;
17632
17633       openbsd*)
17634         if test -f /usr/libexec/ld.so; then
17635           hardcode_direct_CXX=yes
17636           hardcode_shlibpath_var_CXX=no
17637           hardcode_direct_absolute_CXX=yes
17638           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17639           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17640           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17641             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17642             export_dynamic_flag_spec_CXX='${wl}-E'
17643             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17644           fi
17645           output_verbose_link_cmd=func_echo_all
17646         else
17647           ld_shlibs_CXX=no
17648         fi
17649         ;;
17650
17651       osf3* | osf4* | osf5*)
17652         case $cc_basename in
17653           KCC*)
17654             # Kuck and Associates, Inc. (KAI) C++ Compiler
17655
17656             # KCC will only create a shared library if the output file
17657             # ends with ".so" (or ".sl" for HP-UX), so rename the library
17658             # to its proper name (with version) after linking.
17659             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'
17660
17661             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17662             hardcode_libdir_separator_CXX=:
17663
17664             # Archives containing C++ object files must be created using
17665             # the KAI C++ compiler.
17666             case $host in
17667               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17668               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17669             esac
17670             ;;
17671           RCC*)
17672             # Rational C++ 2.4.1
17673             # FIXME: insert proper C++ library support
17674             ld_shlibs_CXX=no
17675             ;;
17676           cxx*)
17677             case $host in
17678               osf3*)
17679                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17680                 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'
17681                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17682                 ;;
17683               *)
17684                 allow_undefined_flag_CXX=' -expect_unresolved \*'
17685                 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'
17686                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17687                   echo "-hidden">> $lib.exp~
17688                   $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~
17689                   $RM $lib.exp'
17690                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17691                 ;;
17692             esac
17693
17694             hardcode_libdir_separator_CXX=:
17695
17696             # Commands to make compiler produce verbose output that lists
17697             # what "hidden" libraries, object files and flags are used when
17698             # linking a shared library.
17699             #
17700             # There doesn't appear to be a way to prevent this compiler from
17701             # explicitly linking system object files so we need to strip them
17702             # from the output so that they don't get included in the library
17703             # dependencies.
17704             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"'
17705             ;;
17706           *)
17707             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17708               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17709               case $host in
17710                 osf3*)
17711                   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'
17712                   ;;
17713                 *)
17714                   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'
17715                   ;;
17716               esac
17717
17718               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17719               hardcode_libdir_separator_CXX=:
17720
17721               # Commands to make compiler produce verbose output that lists
17722               # what "hidden" libraries, object files and flags are used when
17723               # linking a shared library.
17724               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17725
17726             else
17727               # FIXME: insert proper C++ library support
17728               ld_shlibs_CXX=no
17729             fi
17730             ;;
17731         esac
17732         ;;
17733
17734       psos*)
17735         # FIXME: insert proper C++ library support
17736         ld_shlibs_CXX=no
17737         ;;
17738
17739       sunos4*)
17740         case $cc_basename in
17741           CC*)
17742             # Sun C++ 4.x
17743             # FIXME: insert proper C++ library support
17744             ld_shlibs_CXX=no
17745             ;;
17746           lcc*)
17747             # Lucid
17748             # FIXME: insert proper C++ library support
17749             ld_shlibs_CXX=no
17750             ;;
17751           *)
17752             # FIXME: insert proper C++ library support
17753             ld_shlibs_CXX=no
17754             ;;
17755         esac
17756         ;;
17757
17758       solaris*)
17759         case $cc_basename in
17760           CC* | sunCC*)
17761             # Sun C++ 4.2, 5.x and Centerline C++
17762             archive_cmds_need_lc_CXX=yes
17763             no_undefined_flag_CXX=' -zdefs'
17764             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17765             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17766               $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'
17767
17768             hardcode_libdir_flag_spec_CXX='-R$libdir'
17769             hardcode_shlibpath_var_CXX=no
17770             case $host_os in
17771               solaris2.[0-5] | solaris2.[0-5].*) ;;
17772               *)
17773                 # The compiler driver will combine and reorder linker options,
17774                 # but understands `-z linker_flag'.
17775                 # Supported since Solaris 2.6 (maybe 2.5.1?)
17776                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17777                 ;;
17778             esac
17779             link_all_deplibs_CXX=yes
17780
17781             output_verbose_link_cmd='func_echo_all'
17782
17783             # Archives containing C++ object files must be created using
17784             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17785             # necessary to make sure instantiated templates are included
17786             # in the archive.
17787             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17788             ;;
17789           gcx*)
17790             # Green Hills C++ Compiler
17791             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17792
17793             # The C++ compiler must be used to create the archive.
17794             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17795             ;;
17796           *)
17797             # GNU C++ compiler with Solaris linker
17798             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17799               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17800               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17801                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17802                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17803                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17804
17805                 # Commands to make compiler produce verbose output that lists
17806                 # what "hidden" libraries, object files and flags are used when
17807                 # linking a shared library.
17808                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17809               else
17810                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17811                 # platform.
17812                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17813                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17814                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17815
17816                 # Commands to make compiler produce verbose output that lists
17817                 # what "hidden" libraries, object files and flags are used when
17818                 # linking a shared library.
17819                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17820               fi
17821
17822               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17823               case $host_os in
17824                 solaris2.[0-5] | solaris2.[0-5].*) ;;
17825                 *)
17826                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17827                   ;;
17828               esac
17829             fi
17830             ;;
17831         esac
17832         ;;
17833
17834     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17835       no_undefined_flag_CXX='${wl}-z,text'
17836       archive_cmds_need_lc_CXX=no
17837       hardcode_shlibpath_var_CXX=no
17838       runpath_var='LD_RUN_PATH'
17839
17840       case $cc_basename in
17841         CC*)
17842           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17843           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17844           ;;
17845         *)
17846           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17847           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17848           ;;
17849       esac
17850       ;;
17851
17852       sysv5* | sco3.2v5* | sco5v6*)
17853         # Note: We can NOT use -z defs as we might desire, because we do not
17854         # link with -lc, and that would cause any symbols used from libc to
17855         # always be unresolved, which means just about no library would
17856         # ever link correctly.  If we're not using GNU ld we use -z text
17857         # though, which does catch some bad symbols but isn't as heavy-handed
17858         # as -z defs.
17859         no_undefined_flag_CXX='${wl}-z,text'
17860         allow_undefined_flag_CXX='${wl}-z,nodefs'
17861         archive_cmds_need_lc_CXX=no
17862         hardcode_shlibpath_var_CXX=no
17863         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17864         hardcode_libdir_separator_CXX=':'
17865         link_all_deplibs_CXX=yes
17866         export_dynamic_flag_spec_CXX='${wl}-Bexport'
17867         runpath_var='LD_RUN_PATH'
17868
17869         case $cc_basename in
17870           CC*)
17871             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17872             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17873             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17874               '"$old_archive_cmds_CXX"
17875             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17876               '"$reload_cmds_CXX"
17877             ;;
17878           *)
17879             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17880             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17881             ;;
17882         esac
17883       ;;
17884
17885       tandem*)
17886         case $cc_basename in
17887           NCC*)
17888             # NonStop-UX NCC 3.20
17889             # FIXME: insert proper C++ library support
17890             ld_shlibs_CXX=no
17891             ;;
17892           *)
17893             # FIXME: insert proper C++ library support
17894             ld_shlibs_CXX=no
17895             ;;
17896         esac
17897         ;;
17898
17899       vxworks*)
17900         # FIXME: insert proper C++ library support
17901         ld_shlibs_CXX=no
17902         ;;
17903
17904       *)
17905         # FIXME: insert proper C++ library support
17906         ld_shlibs_CXX=no
17907         ;;
17908     esac
17909
17910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17911 $as_echo "$ld_shlibs_CXX" >&6; }
17912     test "$ld_shlibs_CXX" = no && can_build_shared=no
17913
17914     GCC_CXX="$GXX"
17915     LD_CXX="$LD"
17916
17917     ## CAVEAT EMPTOR:
17918     ## There is no encapsulation within the following macros, do not change
17919     ## the running order or otherwise move them around unless you know exactly
17920     ## what you are doing...
17921     # Dependencies to place before and after the object being linked:
17922 predep_objects_CXX=
17923 postdep_objects_CXX=
17924 predeps_CXX=
17925 postdeps_CXX=
17926 compiler_lib_search_path_CXX=
17927
17928 cat > conftest.$ac_ext <<_LT_EOF
17929 class Foo
17930 {
17931 public:
17932   Foo (void) { a = 0; }
17933 private:
17934   int a;
17935 };
17936 _LT_EOF
17937
17938
17939 _lt_libdeps_save_CFLAGS=$CFLAGS
17940 case "$CC $CFLAGS " in #(
17941 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17942 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17943 esac
17944
17945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17946   (eval $ac_compile) 2>&5
17947   ac_status=$?
17948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17949   test $ac_status = 0; }; then
17950   # Parse the compiler output and extract the necessary
17951   # objects, libraries and library flags.
17952
17953   # Sentinel used to keep track of whether or not we are before
17954   # the conftest object file.
17955   pre_test_object_deps_done=no
17956
17957   for p in `eval "$output_verbose_link_cmd"`; do
17958     case ${prev}${p} in
17959
17960     -L* | -R* | -l*)
17961        # Some compilers place space between "-{L,R}" and the path.
17962        # Remove the space.
17963        if test $p = "-L" ||
17964           test $p = "-R"; then
17965          prev=$p
17966          continue
17967        fi
17968
17969        # Expand the sysroot to ease extracting the directories later.
17970        if test -z "$prev"; then
17971          case $p in
17972          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17973          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17974          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17975          esac
17976        fi
17977        case $p in
17978        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17979        esac
17980        if test "$pre_test_object_deps_done" = no; then
17981          case ${prev} in
17982          -L | -R)
17983            # Internal compiler library paths should come after those
17984            # provided the user.  The postdeps already come after the
17985            # user supplied libs so there is no need to process them.
17986            if test -z "$compiler_lib_search_path_CXX"; then
17987              compiler_lib_search_path_CXX="${prev}${p}"
17988            else
17989              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17990            fi
17991            ;;
17992          # The "-l" case would never come before the object being
17993          # linked, so don't bother handling this case.
17994          esac
17995        else
17996          if test -z "$postdeps_CXX"; then
17997            postdeps_CXX="${prev}${p}"
17998          else
17999            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18000          fi
18001        fi
18002        prev=
18003        ;;
18004
18005     *.lto.$objext) ;; # Ignore GCC LTO objects
18006     *.$objext)
18007        # This assumes that the test object file only shows up
18008        # once in the compiler output.
18009        if test "$p" = "conftest.$objext"; then
18010          pre_test_object_deps_done=yes
18011          continue
18012        fi
18013
18014        if test "$pre_test_object_deps_done" = no; then
18015          if test -z "$predep_objects_CXX"; then
18016            predep_objects_CXX="$p"
18017          else
18018            predep_objects_CXX="$predep_objects_CXX $p"
18019          fi
18020        else
18021          if test -z "$postdep_objects_CXX"; then
18022            postdep_objects_CXX="$p"
18023          else
18024            postdep_objects_CXX="$postdep_objects_CXX $p"
18025          fi
18026        fi
18027        ;;
18028
18029     *) ;; # Ignore the rest.
18030
18031     esac
18032   done
18033
18034   # Clean up.
18035   rm -f a.out a.exe
18036 else
18037   echo "libtool.m4: error: problem compiling CXX test program"
18038 fi
18039
18040 $RM -f confest.$objext
18041 CFLAGS=$_lt_libdeps_save_CFLAGS
18042
18043 # PORTME: override above test on systems where it is broken
18044 case $host_os in
18045 interix[3-9]*)
18046   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18047   # hack all around it, let's just trust "g++" to DTRT.
18048   predep_objects_CXX=
18049   postdep_objects_CXX=
18050   postdeps_CXX=
18051   ;;
18052
18053 linux*)
18054   case `$CC -V 2>&1 | sed 5q` in
18055   *Sun\ C*)
18056     # Sun C++ 5.9
18057
18058     # The more standards-conforming stlport4 library is
18059     # incompatible with the Cstd library. Avoid specifying
18060     # it if it's in CXXFLAGS. Ignore libCrun as
18061     # -library=stlport4 depends on it.
18062     case " $CXX $CXXFLAGS " in
18063     *" -library=stlport4 "*)
18064       solaris_use_stlport4=yes
18065       ;;
18066     esac
18067
18068     if test "$solaris_use_stlport4" != yes; then
18069       postdeps_CXX='-library=Cstd -library=Crun'
18070     fi
18071     ;;
18072   esac
18073   ;;
18074
18075 solaris*)
18076   case $cc_basename in
18077   CC* | sunCC*)
18078     # The more standards-conforming stlport4 library is
18079     # incompatible with the Cstd library. Avoid specifying
18080     # it if it's in CXXFLAGS. Ignore libCrun as
18081     # -library=stlport4 depends on it.
18082     case " $CXX $CXXFLAGS " in
18083     *" -library=stlport4 "*)
18084       solaris_use_stlport4=yes
18085       ;;
18086     esac
18087
18088     # Adding this requires a known-good setup of shared libraries for
18089     # Sun compiler versions before 5.6, else PIC objects from an old
18090     # archive will be linked into the output, leading to subtle bugs.
18091     if test "$solaris_use_stlport4" != yes; then
18092       postdeps_CXX='-library=Cstd -library=Crun'
18093     fi
18094     ;;
18095   esac
18096   ;;
18097 esac
18098
18099
18100 case " $postdeps_CXX " in
18101 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18102 esac
18103  compiler_lib_search_dirs_CXX=
18104 if test -n "${compiler_lib_search_path_CXX}"; then
18105  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18106 fi
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138     lt_prog_compiler_wl_CXX=
18139 lt_prog_compiler_pic_CXX=
18140 lt_prog_compiler_static_CXX=
18141
18142
18143   # C++ specific cases for pic, static, wl, etc.
18144   if test "$GXX" = yes; then
18145     lt_prog_compiler_wl_CXX='-Wl,'
18146     lt_prog_compiler_static_CXX='-static'
18147
18148     case $host_os in
18149     aix*)
18150       # All AIX code is PIC.
18151       if test "$host_cpu" = ia64; then
18152         # AIX 5 now supports IA64 processor
18153         lt_prog_compiler_static_CXX='-Bstatic'
18154       fi
18155       ;;
18156
18157     amigaos*)
18158       case $host_cpu in
18159       powerpc)
18160             # see comment about AmigaOS4 .so support
18161             lt_prog_compiler_pic_CXX='-fPIC'
18162         ;;
18163       m68k)
18164             # FIXME: we need at least 68020 code to build shared libraries, but
18165             # adding the `-m68020' flag to GCC prevents building anything better,
18166             # like `-m68040'.
18167             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18168         ;;
18169       esac
18170       ;;
18171
18172     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18173       # PIC is the default for these OSes.
18174       ;;
18175     mingw* | cygwin* | os2* | pw32* | cegcc*)
18176       # This hack is so that the source file can tell whether it is being
18177       # built for inclusion in a dll (and should export symbols for example).
18178       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18179       # (--disable-auto-import) libraries
18180       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18181       ;;
18182     darwin* | rhapsody*)
18183       # PIC is the default on this platform
18184       # Common symbols not allowed in MH_DYLIB files
18185       lt_prog_compiler_pic_CXX='-fno-common'
18186       ;;
18187     *djgpp*)
18188       # DJGPP does not support shared libraries at all
18189       lt_prog_compiler_pic_CXX=
18190       ;;
18191     haiku*)
18192       # PIC is the default for Haiku.
18193       # The "-static" flag exists, but is broken.
18194       lt_prog_compiler_static_CXX=
18195       ;;
18196     interix[3-9]*)
18197       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18198       # Instead, we relocate shared libraries at runtime.
18199       ;;
18200     sysv4*MP*)
18201       if test -d /usr/nec; then
18202         lt_prog_compiler_pic_CXX=-Kconform_pic
18203       fi
18204       ;;
18205     hpux*)
18206       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18207       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
18208       # sets the default TLS model and affects inlining.
18209       case $host_cpu in
18210       hppa*64*)
18211         ;;
18212       *)
18213         lt_prog_compiler_pic_CXX='-fPIC'
18214         ;;
18215       esac
18216       ;;
18217     *qnx* | *nto*)
18218       # QNX uses GNU C++, but need to define -shared option too, otherwise
18219       # it will coredump.
18220       lt_prog_compiler_pic_CXX='-fPIC -shared'
18221       ;;
18222     *)
18223       lt_prog_compiler_pic_CXX='-fPIC'
18224       ;;
18225     esac
18226   else
18227     case $host_os in
18228       aix[4-9]*)
18229         # All AIX code is PIC.
18230         if test "$host_cpu" = ia64; then
18231           # AIX 5 now supports IA64 processor
18232           lt_prog_compiler_static_CXX='-Bstatic'
18233         else
18234           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18235         fi
18236         ;;
18237       chorus*)
18238         case $cc_basename in
18239         cxch68*)
18240           # Green Hills C++ Compiler
18241           # _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"
18242           ;;
18243         esac
18244         ;;
18245       mingw* | cygwin* | os2* | pw32* | cegcc*)
18246         # This hack is so that the source file can tell whether it is being
18247         # built for inclusion in a dll (and should export symbols for example).
18248         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18249         ;;
18250       dgux*)
18251         case $cc_basename in
18252           ec++*)
18253             lt_prog_compiler_pic_CXX='-KPIC'
18254             ;;
18255           ghcx*)
18256             # Green Hills C++ Compiler
18257             lt_prog_compiler_pic_CXX='-pic'
18258             ;;
18259           *)
18260             ;;
18261         esac
18262         ;;
18263       freebsd* | dragonfly*)
18264         # FreeBSD uses GNU C++
18265         ;;
18266       hpux9* | hpux10* | hpux11*)
18267         case $cc_basename in
18268           CC*)
18269             lt_prog_compiler_wl_CXX='-Wl,'
18270             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18271             if test "$host_cpu" != ia64; then
18272               lt_prog_compiler_pic_CXX='+Z'
18273             fi
18274             ;;
18275           aCC*)
18276             lt_prog_compiler_wl_CXX='-Wl,'
18277             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18278             case $host_cpu in
18279             hppa*64*|ia64*)
18280               # +Z the default
18281               ;;
18282             *)
18283               lt_prog_compiler_pic_CXX='+Z'
18284               ;;
18285             esac
18286             ;;
18287           *)
18288             ;;
18289         esac
18290         ;;
18291       interix*)
18292         # This is c89, which is MS Visual C++ (no shared libs)
18293         # Anyone wants to do a port?
18294         ;;
18295       irix5* | irix6* | nonstopux*)
18296         case $cc_basename in
18297           CC*)
18298             lt_prog_compiler_wl_CXX='-Wl,'
18299             lt_prog_compiler_static_CXX='-non_shared'
18300             # CC pic flag -KPIC is the default.
18301             ;;
18302           *)
18303             ;;
18304         esac
18305         ;;
18306       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18307         case $cc_basename in
18308           KCC*)
18309             # KAI C++ Compiler
18310             lt_prog_compiler_wl_CXX='--backend -Wl,'
18311             lt_prog_compiler_pic_CXX='-fPIC'
18312             ;;
18313           ecpc* )
18314             # old Intel C++ for x86_64 which still supported -KPIC.
18315             lt_prog_compiler_wl_CXX='-Wl,'
18316             lt_prog_compiler_pic_CXX='-KPIC'
18317             lt_prog_compiler_static_CXX='-static'
18318             ;;
18319           icpc* )
18320             # Intel C++, used to be incompatible with GCC.
18321             # ICC 10 doesn't accept -KPIC any more.
18322             lt_prog_compiler_wl_CXX='-Wl,'
18323             lt_prog_compiler_pic_CXX='-fPIC'
18324             lt_prog_compiler_static_CXX='-static'
18325             ;;
18326           pgCC* | pgcpp*)
18327             # Portland Group C++ compiler
18328             lt_prog_compiler_wl_CXX='-Wl,'
18329             lt_prog_compiler_pic_CXX='-fpic'
18330             lt_prog_compiler_static_CXX='-Bstatic'
18331             ;;
18332           cxx*)
18333             # Compaq C++
18334             # Make sure the PIC flag is empty.  It appears that all Alpha
18335             # Linux and Compaq Tru64 Unix objects are PIC.
18336             lt_prog_compiler_pic_CXX=
18337             lt_prog_compiler_static_CXX='-non_shared'
18338             ;;
18339           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18340             # IBM XL 8.0, 9.0 on PPC and BlueGene
18341             lt_prog_compiler_wl_CXX='-Wl,'
18342             lt_prog_compiler_pic_CXX='-qpic'
18343             lt_prog_compiler_static_CXX='-qstaticlink'
18344             ;;
18345           *)
18346             case `$CC -V 2>&1 | sed 5q` in
18347             *Sun\ C*)
18348               # Sun C++ 5.9
18349               lt_prog_compiler_pic_CXX='-KPIC'
18350               lt_prog_compiler_static_CXX='-Bstatic'
18351               lt_prog_compiler_wl_CXX='-Qoption ld '
18352               ;;
18353             esac
18354             ;;
18355         esac
18356         ;;
18357       lynxos*)
18358         ;;
18359       m88k*)
18360         ;;
18361       mvs*)
18362         case $cc_basename in
18363           cxx*)
18364             lt_prog_compiler_pic_CXX='-W c,exportall'
18365             ;;
18366           *)
18367             ;;
18368         esac
18369         ;;
18370       netbsd*)
18371         ;;
18372       *qnx* | *nto*)
18373         # QNX uses GNU C++, but need to define -shared option too, otherwise
18374         # it will coredump.
18375         lt_prog_compiler_pic_CXX='-fPIC -shared'
18376         ;;
18377       osf3* | osf4* | osf5*)
18378         case $cc_basename in
18379           KCC*)
18380             lt_prog_compiler_wl_CXX='--backend -Wl,'
18381             ;;
18382           RCC*)
18383             # Rational C++ 2.4.1
18384             lt_prog_compiler_pic_CXX='-pic'
18385             ;;
18386           cxx*)
18387             # Digital/Compaq C++
18388             lt_prog_compiler_wl_CXX='-Wl,'
18389             # Make sure the PIC flag is empty.  It appears that all Alpha
18390             # Linux and Compaq Tru64 Unix objects are PIC.
18391             lt_prog_compiler_pic_CXX=
18392             lt_prog_compiler_static_CXX='-non_shared'
18393             ;;
18394           *)
18395             ;;
18396         esac
18397         ;;
18398       psos*)
18399         ;;
18400       solaris*)
18401         case $cc_basename in
18402           CC* | sunCC*)
18403             # Sun C++ 4.2, 5.x and Centerline C++
18404             lt_prog_compiler_pic_CXX='-KPIC'
18405             lt_prog_compiler_static_CXX='-Bstatic'
18406             lt_prog_compiler_wl_CXX='-Qoption ld '
18407             ;;
18408           gcx*)
18409             # Green Hills C++ Compiler
18410             lt_prog_compiler_pic_CXX='-PIC'
18411             ;;
18412           *)
18413             ;;
18414         esac
18415         ;;
18416       sunos4*)
18417         case $cc_basename in
18418           CC*)
18419             # Sun C++ 4.x
18420             lt_prog_compiler_pic_CXX='-pic'
18421             lt_prog_compiler_static_CXX='-Bstatic'
18422             ;;
18423           lcc*)
18424             # Lucid
18425             lt_prog_compiler_pic_CXX='-pic'
18426             ;;
18427           *)
18428             ;;
18429         esac
18430         ;;
18431       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18432         case $cc_basename in
18433           CC*)
18434             lt_prog_compiler_wl_CXX='-Wl,'
18435             lt_prog_compiler_pic_CXX='-KPIC'
18436             lt_prog_compiler_static_CXX='-Bstatic'
18437             ;;
18438         esac
18439         ;;
18440       tandem*)
18441         case $cc_basename in
18442           NCC*)
18443             # NonStop-UX NCC 3.20
18444             lt_prog_compiler_pic_CXX='-KPIC'
18445             ;;
18446           *)
18447             ;;
18448         esac
18449         ;;
18450       vxworks*)
18451         ;;
18452       *)
18453         lt_prog_compiler_can_build_shared_CXX=no
18454         ;;
18455     esac
18456   fi
18457
18458 case $host_os in
18459   # For platforms which do not support PIC, -DPIC is meaningless:
18460   *djgpp*)
18461     lt_prog_compiler_pic_CXX=
18462     ;;
18463   *)
18464     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18465     ;;
18466 esac
18467
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18469 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18470 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18471   $as_echo_n "(cached) " >&6
18472 else
18473   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18474 fi
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18476 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18477 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18478
18479 #
18480 # Check to make sure the PIC flag actually works.
18481 #
18482 if test -n "$lt_prog_compiler_pic_CXX"; then
18483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18484 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18485 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
18486   $as_echo_n "(cached) " >&6
18487 else
18488   lt_cv_prog_compiler_pic_works_CXX=no
18489    ac_outfile=conftest.$ac_objext
18490    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18491    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18492    # Insert the option either (1) after the last *FLAGS variable, or
18493    # (2) before a word containing "conftest.", or (3) at the end.
18494    # Note that $ac_compile itself does not contain backslashes and begins
18495    # with a dollar sign (not a hyphen), so the echo should work correctly.
18496    # The option is referenced via a variable to avoid confusing sed.
18497    lt_compile=`echo "$ac_compile" | $SED \
18498    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18499    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18500    -e 's:$: $lt_compiler_flag:'`
18501    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18502    (eval "$lt_compile" 2>conftest.err)
18503    ac_status=$?
18504    cat conftest.err >&5
18505    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506    if (exit $ac_status) && test -s "$ac_outfile"; then
18507      # The compiler can only warn and ignore the option if not recognized
18508      # So say no if there are warnings other than the usual output.
18509      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18510      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18511      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18512        lt_cv_prog_compiler_pic_works_CXX=yes
18513      fi
18514    fi
18515    $RM conftest*
18516
18517 fi
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18519 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18520
18521 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18522     case $lt_prog_compiler_pic_CXX in
18523      "" | " "*) ;;
18524      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18525      esac
18526 else
18527     lt_prog_compiler_pic_CXX=
18528      lt_prog_compiler_can_build_shared_CXX=no
18529 fi
18530
18531 fi
18532
18533
18534
18535
18536
18537 #
18538 # Check to make sure the static flag actually works.
18539 #
18540 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18542 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18543 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
18544   $as_echo_n "(cached) " >&6
18545 else
18546   lt_cv_prog_compiler_static_works_CXX=no
18547    save_LDFLAGS="$LDFLAGS"
18548    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18549    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18550    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18551      # The linker can only warn and ignore the option if not recognized
18552      # So say no if there are warnings
18553      if test -s conftest.err; then
18554        # Append any errors to the config.log.
18555        cat conftest.err 1>&5
18556        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18557        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18558        if diff conftest.exp conftest.er2 >/dev/null; then
18559          lt_cv_prog_compiler_static_works_CXX=yes
18560        fi
18561      else
18562        lt_cv_prog_compiler_static_works_CXX=yes
18563      fi
18564    fi
18565    $RM -r conftest*
18566    LDFLAGS="$save_LDFLAGS"
18567
18568 fi
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18570 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18571
18572 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18573     :
18574 else
18575     lt_prog_compiler_static_CXX=
18576 fi
18577
18578
18579
18580
18581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18582 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18583 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18584   $as_echo_n "(cached) " >&6
18585 else
18586   lt_cv_prog_compiler_c_o_CXX=no
18587    $RM -r conftest 2>/dev/null
18588    mkdir conftest
18589    cd conftest
18590    mkdir out
18591    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18592
18593    lt_compiler_flag="-o out/conftest2.$ac_objext"
18594    # Insert the option either (1) after the last *FLAGS variable, or
18595    # (2) before a word containing "conftest.", or (3) at the end.
18596    # Note that $ac_compile itself does not contain backslashes and begins
18597    # with a dollar sign (not a hyphen), so the echo should work correctly.
18598    lt_compile=`echo "$ac_compile" | $SED \
18599    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18600    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18601    -e 's:$: $lt_compiler_flag:'`
18602    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18603    (eval "$lt_compile" 2>out/conftest.err)
18604    ac_status=$?
18605    cat out/conftest.err >&5
18606    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18608    then
18609      # The compiler can only warn and ignore the option if not recognized
18610      # So say no if there are warnings
18611      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18612      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18613      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18614        lt_cv_prog_compiler_c_o_CXX=yes
18615      fi
18616    fi
18617    chmod u+w . 2>&5
18618    $RM conftest*
18619    # SGI C++ compiler will create directory out/ii_files/ for
18620    # template instantiation
18621    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18622    $RM out/* && rmdir out
18623    cd ..
18624    $RM -r conftest
18625    $RM conftest*
18626
18627 fi
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18629 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18630
18631
18632
18633     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18634 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18635 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18636   $as_echo_n "(cached) " >&6
18637 else
18638   lt_cv_prog_compiler_c_o_CXX=no
18639    $RM -r conftest 2>/dev/null
18640    mkdir conftest
18641    cd conftest
18642    mkdir out
18643    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18644
18645    lt_compiler_flag="-o out/conftest2.$ac_objext"
18646    # Insert the option either (1) after the last *FLAGS variable, or
18647    # (2) before a word containing "conftest.", or (3) at the end.
18648    # Note that $ac_compile itself does not contain backslashes and begins
18649    # with a dollar sign (not a hyphen), so the echo should work correctly.
18650    lt_compile=`echo "$ac_compile" | $SED \
18651    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18652    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18653    -e 's:$: $lt_compiler_flag:'`
18654    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18655    (eval "$lt_compile" 2>out/conftest.err)
18656    ac_status=$?
18657    cat out/conftest.err >&5
18658    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18660    then
18661      # The compiler can only warn and ignore the option if not recognized
18662      # So say no if there are warnings
18663      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18664      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18665      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18666        lt_cv_prog_compiler_c_o_CXX=yes
18667      fi
18668    fi
18669    chmod u+w . 2>&5
18670    $RM conftest*
18671    # SGI C++ compiler will create directory out/ii_files/ for
18672    # template instantiation
18673    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18674    $RM out/* && rmdir out
18675    cd ..
18676    $RM -r conftest
18677    $RM conftest*
18678
18679 fi
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18681 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18682
18683
18684
18685
18686 hard_links="nottested"
18687 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18688   # do not overwrite the value of need_locks provided by the user
18689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18690 $as_echo_n "checking if we can lock with hard links... " >&6; }
18691   hard_links=yes
18692   $RM conftest*
18693   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18694   touch conftest.a
18695   ln conftest.a conftest.b 2>&5 || hard_links=no
18696   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18698 $as_echo "$hard_links" >&6; }
18699   if test "$hard_links" = no; then
18700     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18701 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18702     need_locks=warn
18703   fi
18704 else
18705   need_locks=no
18706 fi
18707
18708
18709
18710     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18711 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18712
18713   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18714   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18715   case $host_os in
18716   aix[4-9]*)
18717     # If we're using GNU nm, then we don't want the "-C" option.
18718     # -C means demangle to AIX nm, but means don't demangle with GNU nm
18719     # Also, AIX nm treats weak defined symbols like other global defined
18720     # symbols, whereas GNU nm marks them as "W".
18721     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18722       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'
18723     else
18724       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'
18725     fi
18726     ;;
18727   pw32*)
18728     export_symbols_cmds_CXX="$ltdll_cmds"
18729     ;;
18730   cygwin* | mingw* | cegcc*)
18731     case $cc_basename in
18732     cl*) ;;
18733     *)
18734       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'
18735       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18736       ;;
18737     esac
18738     ;;
18739   *)
18740     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18741     ;;
18742   esac
18743
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18745 $as_echo "$ld_shlibs_CXX" >&6; }
18746 test "$ld_shlibs_CXX" = no && can_build_shared=no
18747
18748 with_gnu_ld_CXX=$with_gnu_ld
18749
18750
18751
18752
18753
18754
18755 #
18756 # Do we need to explicitly link libc?
18757 #
18758 case "x$archive_cmds_need_lc_CXX" in
18759 x|xyes)
18760   # Assume -lc should be added
18761   archive_cmds_need_lc_CXX=yes
18762
18763   if test "$enable_shared" = yes && test "$GCC" = yes; then
18764     case $archive_cmds_CXX in
18765     *'~'*)
18766       # FIXME: we may have to deal with multi-command sequences.
18767       ;;
18768     '$CC '*)
18769       # Test whether the compiler implicitly links with -lc since on some
18770       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18771       # to ld, don't add -lc before -lgcc.
18772       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18773 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18774 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
18775   $as_echo_n "(cached) " >&6
18776 else
18777   $RM conftest*
18778         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18779
18780         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18781   (eval $ac_compile) 2>&5
18782   ac_status=$?
18783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18784   test $ac_status = 0; } 2>conftest.err; then
18785           soname=conftest
18786           lib=conftest
18787           libobjs=conftest.$ac_objext
18788           deplibs=
18789           wl=$lt_prog_compiler_wl_CXX
18790           pic_flag=$lt_prog_compiler_pic_CXX
18791           compiler_flags=-v
18792           linker_flags=-v
18793           verstring=
18794           output_objdir=.
18795           libname=conftest
18796           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18797           allow_undefined_flag_CXX=
18798           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18799   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18800   ac_status=$?
18801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18802   test $ac_status = 0; }
18803           then
18804             lt_cv_archive_cmds_need_lc_CXX=no
18805           else
18806             lt_cv_archive_cmds_need_lc_CXX=yes
18807           fi
18808           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18809         else
18810           cat conftest.err 1>&5
18811         fi
18812         $RM conftest*
18813
18814 fi
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18816 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18817       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18818       ;;
18819     esac
18820   fi
18821   ;;
18822 esac
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18888 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18889
18890 library_names_spec=
18891 libname_spec='lib$name'
18892 soname_spec=
18893 shrext_cmds=".so"
18894 postinstall_cmds=
18895 postuninstall_cmds=
18896 finish_cmds=
18897 finish_eval=
18898 shlibpath_var=
18899 shlibpath_overrides_runpath=unknown
18900 version_type=none
18901 dynamic_linker="$host_os ld.so"
18902 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18903 need_lib_prefix=unknown
18904 hardcode_into_libs=no
18905
18906 # when you set need_version to no, make sure it does not cause -set_version
18907 # flags to be left without arguments
18908 need_version=unknown
18909
18910 case $host_os in
18911 aix3*)
18912   version_type=linux
18913   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18914   shlibpath_var=LIBPATH
18915
18916   # AIX 3 has no versioning support, so we append a major version to the name.
18917   soname_spec='${libname}${release}${shared_ext}$major'
18918   ;;
18919
18920 aix[4-9]*)
18921   version_type=linux
18922   need_lib_prefix=no
18923   need_version=no
18924   hardcode_into_libs=yes
18925   if test "$host_cpu" = ia64; then
18926     # AIX 5 supports IA64
18927     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18928     shlibpath_var=LD_LIBRARY_PATH
18929   else
18930     # With GCC up to 2.95.x, collect2 would create an import file
18931     # for dependence libraries.  The import file would start with
18932     # the line `#! .'.  This would cause the generated library to
18933     # depend on `.', always an invalid library.  This was fixed in
18934     # development snapshots of GCC prior to 3.0.
18935     case $host_os in
18936       aix4 | aix4.[01] | aix4.[01].*)
18937       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18938            echo ' yes '
18939            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18940         :
18941       else
18942         can_build_shared=no
18943       fi
18944       ;;
18945     esac
18946     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18947     # soname into executable. Probably we can add versioning support to
18948     # collect2, so additional links can be useful in future.
18949     if test "$aix_use_runtimelinking" = yes; then
18950       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18951       # instead of lib<name>.a to let people know that these are not
18952       # typical AIX shared libraries.
18953       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18954     else
18955       # We preserve .a as extension for shared libraries through AIX4.2
18956       # and later when we are not doing run time linking.
18957       library_names_spec='${libname}${release}.a $libname.a'
18958       soname_spec='${libname}${release}${shared_ext}$major'
18959     fi
18960     shlibpath_var=LIBPATH
18961   fi
18962   ;;
18963
18964 amigaos*)
18965   case $host_cpu in
18966   powerpc)
18967     # Since July 2007 AmigaOS4 officially supports .so libraries.
18968     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18970     ;;
18971   m68k)
18972     library_names_spec='$libname.ixlibrary $libname.a'
18973     # Create ${libname}_ixlibrary.a entries in /sys/libs.
18974     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'
18975     ;;
18976   esac
18977   ;;
18978
18979 beos*)
18980   library_names_spec='${libname}${shared_ext}'
18981   dynamic_linker="$host_os ld.so"
18982   shlibpath_var=LIBRARY_PATH
18983   ;;
18984
18985 bsdi[45]*)
18986   version_type=linux
18987   need_version=no
18988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18989   soname_spec='${libname}${release}${shared_ext}$major'
18990   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18991   shlibpath_var=LD_LIBRARY_PATH
18992   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18993   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18994   # the default ld.so.conf also contains /usr/contrib/lib and
18995   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18996   # libtool to hard-code these into programs
18997   ;;
18998
18999 cygwin* | mingw* | pw32* | cegcc*)
19000   version_type=windows
19001   shrext_cmds=".dll"
19002   need_version=no
19003   need_lib_prefix=no
19004
19005   case $GCC,$cc_basename in
19006   yes,*)
19007     # gcc
19008     library_names_spec='$libname.dll.a'
19009     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19010     postinstall_cmds='base_file=`basename \${file}`~
19011       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19012       dldir=$destdir/`dirname \$dlpath`~
19013       test -d \$dldir || mkdir -p \$dldir~
19014       $install_prog $dir/$dlname \$dldir/$dlname~
19015       chmod a+x \$dldir/$dlname~
19016       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19017         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19018       fi'
19019     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19020       dlpath=$dir/\$dldll~
19021        $RM \$dlpath'
19022     shlibpath_overrides_runpath=yes
19023
19024     case $host_os in
19025     cygwin*)
19026       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19027       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19028
19029       ;;
19030     mingw* | cegcc*)
19031       # MinGW DLLs use traditional 'lib' prefix
19032       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19033       ;;
19034     pw32*)
19035       # pw32 DLLs use 'pw' prefix rather than 'lib'
19036       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19037       ;;
19038     esac
19039     dynamic_linker='Win32 ld.exe'
19040     ;;
19041
19042   *,cl*)
19043     # Native MSVC
19044     libname_spec='$name'
19045     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19046     library_names_spec='${libname}.dll.lib'
19047
19048     case $build_os in
19049     mingw*)
19050       sys_lib_search_path_spec=
19051       lt_save_ifs=$IFS
19052       IFS=';'
19053       for lt_path in $LIB
19054       do
19055         IFS=$lt_save_ifs
19056         # Let DOS variable expansion print the short 8.3 style file name.
19057         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19058         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19059       done
19060       IFS=$lt_save_ifs
19061       # Convert to MSYS style.
19062       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19063       ;;
19064     cygwin*)
19065       # Convert to unix form, then to dos form, then back to unix form
19066       # but this time dos style (no spaces!) so that the unix form looks
19067       # like /cygdrive/c/PROGRA~1:/cygdr...
19068       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19069       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19070       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19071       ;;
19072     *)
19073       sys_lib_search_path_spec="$LIB"
19074       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19075         # It is most probably a Windows format PATH.
19076         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19077       else
19078         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19079       fi
19080       # FIXME: find the short name or the path components, as spaces are
19081       # common. (e.g. "Program Files" -> "PROGRA~1")
19082       ;;
19083     esac
19084
19085     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19086     postinstall_cmds='base_file=`basename \${file}`~
19087       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19088       dldir=$destdir/`dirname \$dlpath`~
19089       test -d \$dldir || mkdir -p \$dldir~
19090       $install_prog $dir/$dlname \$dldir/$dlname'
19091     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19092       dlpath=$dir/\$dldll~
19093        $RM \$dlpath'
19094     shlibpath_overrides_runpath=yes
19095     dynamic_linker='Win32 link.exe'
19096     ;;
19097
19098   *)
19099     # Assume MSVC wrapper
19100     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19101     dynamic_linker='Win32 ld.exe'
19102     ;;
19103   esac
19104   # FIXME: first we should search . and the directory the executable is in
19105   shlibpath_var=PATH
19106   ;;
19107
19108 darwin* | rhapsody*)
19109   dynamic_linker="$host_os dyld"
19110   version_type=darwin
19111   need_lib_prefix=no
19112   need_version=no
19113   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19114   soname_spec='${libname}${release}${major}$shared_ext'
19115   shlibpath_overrides_runpath=yes
19116   shlibpath_var=DYLD_LIBRARY_PATH
19117   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19118
19119   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19120   ;;
19121
19122 dgux*)
19123   version_type=linux
19124   need_lib_prefix=no
19125   need_version=no
19126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19127   soname_spec='${libname}${release}${shared_ext}$major'
19128   shlibpath_var=LD_LIBRARY_PATH
19129   ;;
19130
19131 freebsd1*)
19132   dynamic_linker=no
19133   ;;
19134
19135 freebsd* | dragonfly*)
19136   # DragonFly does not have aout.  When/if they implement a new
19137   # versioning mechanism, adjust this.
19138   if test -x /usr/bin/objformat; then
19139     objformat=`/usr/bin/objformat`
19140   else
19141     case $host_os in
19142     freebsd[123]*) objformat=aout ;;
19143     *) objformat=elf ;;
19144     esac
19145   fi
19146   version_type=freebsd-$objformat
19147   case $version_type in
19148     freebsd-elf*)
19149       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19150       need_version=no
19151       need_lib_prefix=no
19152       ;;
19153     freebsd-*)
19154       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19155       need_version=yes
19156       ;;
19157   esac
19158   shlibpath_var=LD_LIBRARY_PATH
19159   case $host_os in
19160   freebsd2*)
19161     shlibpath_overrides_runpath=yes
19162     ;;
19163   freebsd3.[01]* | freebsdelf3.[01]*)
19164     shlibpath_overrides_runpath=yes
19165     hardcode_into_libs=yes
19166     ;;
19167   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19168   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19169     shlibpath_overrides_runpath=no
19170     hardcode_into_libs=yes
19171     ;;
19172   *) # from 4.6 on, and DragonFly
19173     shlibpath_overrides_runpath=yes
19174     hardcode_into_libs=yes
19175     ;;
19176   esac
19177   ;;
19178
19179 gnu*)
19180   version_type=linux
19181   need_lib_prefix=no
19182   need_version=no
19183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19184   soname_spec='${libname}${release}${shared_ext}$major'
19185   shlibpath_var=LD_LIBRARY_PATH
19186   hardcode_into_libs=yes
19187   ;;
19188
19189 haiku*)
19190   version_type=linux
19191   need_lib_prefix=no
19192   need_version=no
19193   dynamic_linker="$host_os runtime_loader"
19194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19195   soname_spec='${libname}${release}${shared_ext}$major'
19196   shlibpath_var=LIBRARY_PATH
19197   shlibpath_overrides_runpath=yes
19198   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19199   hardcode_into_libs=yes
19200   ;;
19201
19202 hpux9* | hpux10* | hpux11*)
19203   # Give a soname corresponding to the major version so that dld.sl refuses to
19204   # link against other versions.
19205   version_type=sunos
19206   need_lib_prefix=no
19207   need_version=no
19208   case $host_cpu in
19209   ia64*)
19210     shrext_cmds='.so'
19211     hardcode_into_libs=yes
19212     dynamic_linker="$host_os dld.so"
19213     shlibpath_var=LD_LIBRARY_PATH
19214     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19215     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19216     soname_spec='${libname}${release}${shared_ext}$major'
19217     if test "X$HPUX_IA64_MODE" = X32; then
19218       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19219     else
19220       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19221     fi
19222     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19223     ;;
19224   hppa*64*)
19225     shrext_cmds='.sl'
19226     hardcode_into_libs=yes
19227     dynamic_linker="$host_os dld.sl"
19228     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19229     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19230     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19231     soname_spec='${libname}${release}${shared_ext}$major'
19232     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19233     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19234     ;;
19235   *)
19236     shrext_cmds='.sl'
19237     dynamic_linker="$host_os dld.sl"
19238     shlibpath_var=SHLIB_PATH
19239     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19240     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19241     soname_spec='${libname}${release}${shared_ext}$major'
19242     ;;
19243   esac
19244   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19245   postinstall_cmds='chmod 555 $lib'
19246   # or fails outright, so override atomically:
19247   install_override_mode=555
19248   ;;
19249
19250 interix[3-9]*)
19251   version_type=linux
19252   need_lib_prefix=no
19253   need_version=no
19254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19255   soname_spec='${libname}${release}${shared_ext}$major'
19256   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19257   shlibpath_var=LD_LIBRARY_PATH
19258   shlibpath_overrides_runpath=no
19259   hardcode_into_libs=yes
19260   ;;
19261
19262 irix5* | irix6* | nonstopux*)
19263   case $host_os in
19264     nonstopux*) version_type=nonstopux ;;
19265     *)
19266         if test "$lt_cv_prog_gnu_ld" = yes; then
19267                 version_type=linux
19268         else
19269                 version_type=irix
19270         fi ;;
19271   esac
19272   need_lib_prefix=no
19273   need_version=no
19274   soname_spec='${libname}${release}${shared_ext}$major'
19275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19276   case $host_os in
19277   irix5* | nonstopux*)
19278     libsuff= shlibsuff=
19279     ;;
19280   *)
19281     case $LD in # libtool.m4 will add one of these switches to LD
19282     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19283       libsuff= shlibsuff= libmagic=32-bit;;
19284     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19285       libsuff=32 shlibsuff=N32 libmagic=N32;;
19286     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19287       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19288     *) libsuff= shlibsuff= libmagic=never-match;;
19289     esac
19290     ;;
19291   esac
19292   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19293   shlibpath_overrides_runpath=no
19294   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19295   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19296   hardcode_into_libs=yes
19297   ;;
19298
19299 # No shared lib support for Linux oldld, aout, or coff.
19300 linux*oldld* | linux*aout* | linux*coff*)
19301   dynamic_linker=no
19302   ;;
19303
19304 # This must be Linux ELF.
19305 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19306   version_type=linux
19307   need_lib_prefix=no
19308   need_version=no
19309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19310   soname_spec='${libname}${release}${shared_ext}$major'
19311   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19312   shlibpath_var=LD_LIBRARY_PATH
19313   shlibpath_overrides_runpath=no
19314
19315   # Some binutils ld are patched to set DT_RUNPATH
19316   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19317   $as_echo_n "(cached) " >&6
19318 else
19319   lt_cv_shlibpath_overrides_runpath=no
19320     save_LDFLAGS=$LDFLAGS
19321     save_libdir=$libdir
19322     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19323          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19324     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19325 /* end confdefs.h.  */
19326
19327 int
19328 main ()
19329 {
19330
19331   ;
19332   return 0;
19333 }
19334 _ACEOF
19335 if ac_fn_cxx_try_link "$LINENO"; then :
19336   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19337   lt_cv_shlibpath_overrides_runpath=yes
19338 fi
19339 fi
19340 rm -f core conftest.err conftest.$ac_objext \
19341     conftest$ac_exeext conftest.$ac_ext
19342     LDFLAGS=$save_LDFLAGS
19343     libdir=$save_libdir
19344
19345 fi
19346
19347   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19348
19349   # This implies no fast_install, which is unacceptable.
19350   # Some rework will be needed to allow for fast_install
19351   # before this can be enabled.
19352   hardcode_into_libs=yes
19353
19354   # Add ABI-specific directories to the system library path.
19355   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19356
19357   # Append ld.so.conf contents to the search path
19358   if test -f /etc/ld.so.conf; then
19359     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' ' '`
19360     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19361
19362   fi
19363
19364   # We used to test for /lib/ld.so.1 and disable shared libraries on
19365   # powerpc, because MkLinux only supported shared libraries with the
19366   # GNU dynamic linker.  Since this was broken with cross compilers,
19367   # most powerpc-linux boxes support dynamic linking these days and
19368   # people can always --disable-shared, the test was removed, and we
19369   # assume the GNU/Linux dynamic linker is in use.
19370   dynamic_linker='GNU/Linux ld.so'
19371   ;;
19372
19373 netbsd*)
19374   version_type=sunos
19375   need_lib_prefix=no
19376   need_version=no
19377   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19378     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19379     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19380     dynamic_linker='NetBSD (a.out) ld.so'
19381   else
19382     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19383     soname_spec='${libname}${release}${shared_ext}$major'
19384     dynamic_linker='NetBSD ld.elf_so'
19385   fi
19386   shlibpath_var=LD_LIBRARY_PATH
19387   shlibpath_overrides_runpath=yes
19388   hardcode_into_libs=yes
19389   ;;
19390
19391 newsos6)
19392   version_type=linux
19393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19394   shlibpath_var=LD_LIBRARY_PATH
19395   shlibpath_overrides_runpath=yes
19396   ;;
19397
19398 *nto* | *qnx*)
19399   version_type=qnx
19400   need_lib_prefix=no
19401   need_version=no
19402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19403   soname_spec='${libname}${release}${shared_ext}$major'
19404   shlibpath_var=LD_LIBRARY_PATH
19405   shlibpath_overrides_runpath=no
19406   hardcode_into_libs=yes
19407   dynamic_linker='ldqnx.so'
19408   ;;
19409
19410 openbsd*)
19411   version_type=sunos
19412   sys_lib_dlsearch_path_spec="/usr/lib"
19413   need_lib_prefix=no
19414   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19415   case $host_os in
19416     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
19417     *)                          need_version=no  ;;
19418   esac
19419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19420   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19421   shlibpath_var=LD_LIBRARY_PATH
19422   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19423     case $host_os in
19424       openbsd2.[89] | openbsd2.[89].*)
19425         shlibpath_overrides_runpath=no
19426         ;;
19427       *)
19428         shlibpath_overrides_runpath=yes
19429         ;;
19430       esac
19431   else
19432     shlibpath_overrides_runpath=yes
19433   fi
19434   ;;
19435
19436 os2*)
19437   libname_spec='$name'
19438   shrext_cmds=".dll"
19439   need_lib_prefix=no
19440   library_names_spec='$libname${shared_ext} $libname.a'
19441   dynamic_linker='OS/2 ld.exe'
19442   shlibpath_var=LIBPATH
19443   ;;
19444
19445 osf3* | osf4* | osf5*)
19446   version_type=osf
19447   need_lib_prefix=no
19448   need_version=no
19449   soname_spec='${libname}${release}${shared_ext}$major'
19450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19451   shlibpath_var=LD_LIBRARY_PATH
19452   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19453   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19454   ;;
19455
19456 rdos*)
19457   dynamic_linker=no
19458   ;;
19459
19460 solaris*)
19461   version_type=linux
19462   need_lib_prefix=no
19463   need_version=no
19464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19465   soname_spec='${libname}${release}${shared_ext}$major'
19466   shlibpath_var=LD_LIBRARY_PATH
19467   shlibpath_overrides_runpath=yes
19468   hardcode_into_libs=yes
19469   # ldd complains unless libraries are executable
19470   postinstall_cmds='chmod +x $lib'
19471   ;;
19472
19473 sunos4*)
19474   version_type=sunos
19475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19476   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19477   shlibpath_var=LD_LIBRARY_PATH
19478   shlibpath_overrides_runpath=yes
19479   if test "$with_gnu_ld" = yes; then
19480     need_lib_prefix=no
19481   fi
19482   need_version=yes
19483   ;;
19484
19485 sysv4 | sysv4.3*)
19486   version_type=linux
19487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19488   soname_spec='${libname}${release}${shared_ext}$major'
19489   shlibpath_var=LD_LIBRARY_PATH
19490   case $host_vendor in
19491     sni)
19492       shlibpath_overrides_runpath=no
19493       need_lib_prefix=no
19494       runpath_var=LD_RUN_PATH
19495       ;;
19496     siemens)
19497       need_lib_prefix=no
19498       ;;
19499     motorola)
19500       need_lib_prefix=no
19501       need_version=no
19502       shlibpath_overrides_runpath=no
19503       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19504       ;;
19505   esac
19506   ;;
19507
19508 sysv4*MP*)
19509   if test -d /usr/nec ;then
19510     version_type=linux
19511     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19512     soname_spec='$libname${shared_ext}.$major'
19513     shlibpath_var=LD_LIBRARY_PATH
19514   fi
19515   ;;
19516
19517 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19518   version_type=freebsd-elf
19519   need_lib_prefix=no
19520   need_version=no
19521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19522   soname_spec='${libname}${release}${shared_ext}$major'
19523   shlibpath_var=LD_LIBRARY_PATH
19524   shlibpath_overrides_runpath=yes
19525   hardcode_into_libs=yes
19526   if test "$with_gnu_ld" = yes; then
19527     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19528   else
19529     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19530     case $host_os in
19531       sco3.2v5*)
19532         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19533         ;;
19534     esac
19535   fi
19536   sys_lib_dlsearch_path_spec='/usr/lib'
19537   ;;
19538
19539 tpf*)
19540   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
19541   version_type=linux
19542   need_lib_prefix=no
19543   need_version=no
19544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19545   shlibpath_var=LD_LIBRARY_PATH
19546   shlibpath_overrides_runpath=no
19547   hardcode_into_libs=yes
19548   ;;
19549
19550 uts4*)
19551   version_type=linux
19552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19553   soname_spec='${libname}${release}${shared_ext}$major'
19554   shlibpath_var=LD_LIBRARY_PATH
19555   ;;
19556
19557 *)
19558   dynamic_linker=no
19559   ;;
19560 esac
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19562 $as_echo "$dynamic_linker" >&6; }
19563 test "$dynamic_linker" = no && can_build_shared=no
19564
19565 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19566 if test "$GCC" = yes; then
19567   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19568 fi
19569
19570 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19571   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19572 fi
19573 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19574   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19575 fi
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19615 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19616 hardcode_action_CXX=
19617 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19618    test -n "$runpath_var_CXX" ||
19619    test "X$hardcode_automatic_CXX" = "Xyes" ; then
19620
19621   # We can hardcode non-existent directories.
19622   if test "$hardcode_direct_CXX" != no &&
19623      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19624      # have to relink, otherwise we might link with an installed library
19625      # when we should be linking with a yet-to-be-installed one
19626      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19627      test "$hardcode_minus_L_CXX" != no; then
19628     # Linking always hardcodes the temporary library directory.
19629     hardcode_action_CXX=relink
19630   else
19631     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19632     hardcode_action_CXX=immediate
19633   fi
19634 else
19635   # We cannot hardcode anything, or else we can only hardcode existing
19636   # directories.
19637   hardcode_action_CXX=unsupported
19638 fi
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19640 $as_echo "$hardcode_action_CXX" >&6; }
19641
19642 if test "$hardcode_action_CXX" = relink ||
19643    test "$inherit_rpath_CXX" = yes; then
19644   # Fast installation is not supported
19645   enable_fast_install=no
19646 elif test "$shlibpath_overrides_runpath" = yes ||
19647      test "$enable_shared" = no; then
19648   # Fast installation is not necessary
19649   enable_fast_install=needless
19650 fi
19651
19652
19653
19654
19655
19656
19657
19658   fi # test -n "$compiler"
19659
19660   CC=$lt_save_CC
19661   CFLAGS=$lt_save_CFLAGS
19662   LDCXX=$LD
19663   LD=$lt_save_LD
19664   GCC=$lt_save_GCC
19665   with_gnu_ld=$lt_save_with_gnu_ld
19666   lt_cv_path_LDCXX=$lt_cv_path_LD
19667   lt_cv_path_LD=$lt_save_path_LD
19668   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19669   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19670 fi # test "$_lt_caught_CXX_error" != yes
19671
19672 ac_ext=c
19673 ac_cpp='$CPP $CPPFLAGS'
19674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690         ac_config_commands="$ac_config_commands libtool"
19691
19692
19693
19694
19695 # Only expand once:
19696
19697
19698
19699
19700
19701 # Configure libltdl
19702
19703
19704
19705
19706
19707
19708
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19710 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
19711 if ${libltdl_cv_shlibext+:} false; then :
19712   $as_echo_n "(cached) " >&6
19713 else
19714
19715 module=yes
19716 eval libltdl_cv_shlibext=$shrext_cmds
19717
19718 fi
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19720 $as_echo "$libltdl_cv_shlibext" >&6; }
19721 if test -n "$libltdl_cv_shlibext"; then
19722
19723 cat >>confdefs.h <<_ACEOF
19724 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
19725 _ACEOF
19726
19727 fi
19728
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19730 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
19731 if ${lt_cv_module_path_var+:} false; then :
19732   $as_echo_n "(cached) " >&6
19733 else
19734   lt_cv_module_path_var="$shlibpath_var"
19735 fi
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19737 $as_echo "$lt_cv_module_path_var" >&6; }
19738 if test -n "$lt_cv_module_path_var"; then
19739
19740 cat >>confdefs.h <<_ACEOF
19741 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19742 _ACEOF
19743
19744 fi
19745
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19747 $as_echo_n "checking for the default library search path... " >&6; }
19748 if ${lt_cv_sys_dlsearch_path+:} false; then :
19749   $as_echo_n "(cached) " >&6
19750 else
19751   lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19752 fi
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19754 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19755 if test -n "$lt_cv_sys_dlsearch_path"; then
19756   sys_dlsearch_path=
19757   for dir in $lt_cv_sys_dlsearch_path; do
19758     if test -z "$sys_dlsearch_path"; then
19759       sys_dlsearch_path="$dir"
19760     else
19761       sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19762     fi
19763   done
19764
19765 cat >>confdefs.h <<_ACEOF
19766 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19767 _ACEOF
19768
19769 fi
19770
19771
19772 LT_DLLOADERS=
19773
19774
19775 ac_ext=c
19776 ac_cpp='$CPP $CPPFLAGS'
19777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19780
19781
19782 LIBADD_DLOPEN=
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19784 $as_echo_n "checking for library containing dlopen... " >&6; }
19785 if ${ac_cv_search_dlopen+:} false; then :
19786   $as_echo_n "(cached) " >&6
19787 else
19788   ac_func_search_save_LIBS=$LIBS
19789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19790 /* end confdefs.h.  */
19791
19792 /* Override any GCC internal prototype to avoid an error.
19793    Use char because int might match the return type of a GCC
19794    builtin and then its argument prototype would still apply.  */
19795 #ifdef __cplusplus
19796 extern "C"
19797 #endif
19798 char dlopen ();
19799 int
19800 main ()
19801 {
19802 return dlopen ();
19803   ;
19804   return 0;
19805 }
19806 _ACEOF
19807 for ac_lib in '' dl; do
19808   if test -z "$ac_lib"; then
19809     ac_res="none required"
19810   else
19811     ac_res=-l$ac_lib
19812     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19813   fi
19814   if ac_fn_c_try_link "$LINENO"; then :
19815   ac_cv_search_dlopen=$ac_res
19816 fi
19817 rm -f core conftest.err conftest.$ac_objext \
19818     conftest$ac_exeext
19819   if ${ac_cv_search_dlopen+:} false; then :
19820   break
19821 fi
19822 done
19823 if ${ac_cv_search_dlopen+:} false; then :
19824
19825 else
19826   ac_cv_search_dlopen=no
19827 fi
19828 rm conftest.$ac_ext
19829 LIBS=$ac_func_search_save_LIBS
19830 fi
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19832 $as_echo "$ac_cv_search_dlopen" >&6; }
19833 ac_res=$ac_cv_search_dlopen
19834 if test "$ac_res" != no; then :
19835   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19836
19837 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19838
19839         if test "$ac_cv_search_dlopen" != "none required" ; then
19840           LIBADD_DLOPEN="-ldl"
19841         fi
19842         libltdl_cv_lib_dl_dlopen="yes"
19843         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19844 else
19845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19846 /* end confdefs.h.  */
19847 #if HAVE_DLFCN_H
19848 #  include <dlfcn.h>
19849 #endif
19850
19851 int
19852 main ()
19853 {
19854 dlopen(0, 0);
19855   ;
19856   return 0;
19857 }
19858 _ACEOF
19859 if ac_fn_c_try_link "$LINENO"; then :
19860
19861 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19862
19863             libltdl_cv_func_dlopen="yes"
19864             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19865 else
19866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19867 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19868 if ${ac_cv_lib_svld_dlopen+:} false; then :
19869   $as_echo_n "(cached) " >&6
19870 else
19871   ac_check_lib_save_LIBS=$LIBS
19872 LIBS="-lsvld  $LIBS"
19873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19874 /* end confdefs.h.  */
19875
19876 /* Override any GCC internal prototype to avoid an error.
19877    Use char because int might match the return type of a GCC
19878    builtin and then its argument prototype would still apply.  */
19879 #ifdef __cplusplus
19880 extern "C"
19881 #endif
19882 char dlopen ();
19883 int
19884 main ()
19885 {
19886 return dlopen ();
19887   ;
19888   return 0;
19889 }
19890 _ACEOF
19891 if ac_fn_c_try_link "$LINENO"; then :
19892   ac_cv_lib_svld_dlopen=yes
19893 else
19894   ac_cv_lib_svld_dlopen=no
19895 fi
19896 rm -f core conftest.err conftest.$ac_objext \
19897     conftest$ac_exeext conftest.$ac_ext
19898 LIBS=$ac_check_lib_save_LIBS
19899 fi
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19901 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19902 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19903
19904 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19905
19906                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19907                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19908 fi
19909
19910 fi
19911 rm -f core conftest.err conftest.$ac_objext \
19912     conftest$ac_exeext conftest.$ac_ext
19913 fi
19914
19915 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19916 then
19917   lt_save_LIBS="$LIBS"
19918   LIBS="$LIBS $LIBADD_DLOPEN"
19919   for ac_func in dlerror
19920 do :
19921   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19922 if test "x$ac_cv_func_dlerror" = xyes; then :
19923   cat >>confdefs.h <<_ACEOF
19924 #define HAVE_DLERROR 1
19925 _ACEOF
19926
19927 fi
19928 done
19929
19930   LIBS="$lt_save_LIBS"
19931 fi
19932
19933
19934 LIBADD_SHL_LOAD=
19935 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19936 if test "x$ac_cv_func_shl_load" = xyes; then :
19937
19938 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19939
19940         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19941 else
19942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19943 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19944 if ${ac_cv_lib_dld_shl_load+:} false; then :
19945   $as_echo_n "(cached) " >&6
19946 else
19947   ac_check_lib_save_LIBS=$LIBS
19948 LIBS="-ldld  $LIBS"
19949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19950 /* end confdefs.h.  */
19951
19952 /* Override any GCC internal prototype to avoid an error.
19953    Use char because int might match the return type of a GCC
19954    builtin and then its argument prototype would still apply.  */
19955 #ifdef __cplusplus
19956 extern "C"
19957 #endif
19958 char shl_load ();
19959 int
19960 main ()
19961 {
19962 return shl_load ();
19963   ;
19964   return 0;
19965 }
19966 _ACEOF
19967 if ac_fn_c_try_link "$LINENO"; then :
19968   ac_cv_lib_dld_shl_load=yes
19969 else
19970   ac_cv_lib_dld_shl_load=no
19971 fi
19972 rm -f core conftest.err conftest.$ac_objext \
19973     conftest$ac_exeext conftest.$ac_ext
19974 LIBS=$ac_check_lib_save_LIBS
19975 fi
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19977 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19978 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19979
19980 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19981
19982             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19983             LIBADD_SHL_LOAD="-ldld"
19984 fi
19985
19986 fi
19987
19988
19989
19990 case $host_os in
19991 darwin[1567].*)
19992 # We only want this for pre-Mac OS X 10.4.
19993   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19994 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
19995
19996 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
19997
19998         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19999 fi
20000
20001   ;;
20002 beos*)
20003   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20004   ;;
20005 cygwin* | mingw* | os2* | pw32*)
20006   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20007 "
20008 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
20009   ac_have_decl=1
20010 else
20011   ac_have_decl=0
20012 fi
20013
20014 cat >>confdefs.h <<_ACEOF
20015 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20016 _ACEOF
20017
20018   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20019   ;;
20020 esac
20021
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20023 $as_echo_n "checking for dld_link in -ldld... " >&6; }
20024 if ${ac_cv_lib_dld_dld_link+:} false; then :
20025   $as_echo_n "(cached) " >&6
20026 else
20027   ac_check_lib_save_LIBS=$LIBS
20028 LIBS="-ldld  $LIBS"
20029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20030 /* end confdefs.h.  */
20031
20032 /* Override any GCC internal prototype to avoid an error.
20033    Use char because int might match the return type of a GCC
20034    builtin and then its argument prototype would still apply.  */
20035 #ifdef __cplusplus
20036 extern "C"
20037 #endif
20038 char dld_link ();
20039 int
20040 main ()
20041 {
20042 return dld_link ();
20043   ;
20044   return 0;
20045 }
20046 _ACEOF
20047 if ac_fn_c_try_link "$LINENO"; then :
20048   ac_cv_lib_dld_dld_link=yes
20049 else
20050   ac_cv_lib_dld_dld_link=no
20051 fi
20052 rm -f core conftest.err conftest.$ac_objext \
20053     conftest$ac_exeext conftest.$ac_ext
20054 LIBS=$ac_check_lib_save_LIBS
20055 fi
20056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20057 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
20058 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
20059
20060 $as_echo "#define HAVE_DLD 1" >>confdefs.h
20061
20062                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20063 fi
20064
20065
20066
20067
20068 LT_DLPREOPEN=
20069 if test -n "$LT_DLLOADERS"
20070 then
20071   for lt_loader in $LT_DLLOADERS; do
20072     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20073   done
20074
20075 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20076
20077 fi
20078
20079
20080 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20081
20082
20083 ac_ext=c
20084 ac_cpp='$CPP $CPPFLAGS'
20085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20088
20089
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20091 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
20092 if ${lt_cv_sys_symbol_underscore+:} false; then :
20093   $as_echo_n "(cached) " >&6
20094 else
20095   lt_cv_sys_symbol_underscore=no
20096   cat > conftest.$ac_ext <<_LT_EOF
20097 void nm_test_func(){}
20098 int main(){nm_test_func;return 0;}
20099 _LT_EOF
20100   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20101   (eval $ac_compile) 2>&5
20102   ac_status=$?
20103   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20104   test $ac_status = 0; }; then
20105     # Now try to grab the symbols.
20106     ac_nlist=conftest.nm
20107     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20108   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20109   ac_status=$?
20110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20111   test $ac_status = 0; } && test -s "$ac_nlist"; then
20112       # See whether the symbols have a leading underscore.
20113       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20114         lt_cv_sys_symbol_underscore=yes
20115       else
20116         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20117           :
20118         else
20119           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20120         fi
20121       fi
20122     else
20123       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20124     fi
20125   else
20126     echo "configure: failed program was:" >&5
20127     cat conftest.c >&5
20128   fi
20129   rm -rf conftest*
20130
20131 fi
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20133 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20134   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20135
20136
20137 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20138   if test x"$libltdl_cv_func_dlopen" = xyes ||
20139      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20140         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20141 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
20142 if ${libltdl_cv_need_uscore+:} false; then :
20143   $as_echo_n "(cached) " >&6
20144 else
20145   libltdl_cv_need_uscore=unknown
20146           save_LIBS="$LIBS"
20147           LIBS="$LIBS $LIBADD_DLOPEN"
20148           if test "$cross_compiling" = yes; then :
20149   libltdl_cv_need_uscore=cross
20150 else
20151   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20152   lt_status=$lt_dlunknown
20153   cat > conftest.$ac_ext <<_LT_EOF
20154 #line $LINENO "configure"
20155 #include "confdefs.h"
20156
20157 #if HAVE_DLFCN_H
20158 #include <dlfcn.h>
20159 #endif
20160
20161 #include <stdio.h>
20162
20163 #ifdef RTLD_GLOBAL
20164 #  define LT_DLGLOBAL           RTLD_GLOBAL
20165 #else
20166 #  ifdef DL_GLOBAL
20167 #    define LT_DLGLOBAL         DL_GLOBAL
20168 #  else
20169 #    define LT_DLGLOBAL         0
20170 #  endif
20171 #endif
20172
20173 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20174    find out it does not work in some platform. */
20175 #ifndef LT_DLLAZY_OR_NOW
20176 #  ifdef RTLD_LAZY
20177 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20178 #  else
20179 #    ifdef DL_LAZY
20180 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20181 #    else
20182 #      ifdef RTLD_NOW
20183 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20184 #      else
20185 #        ifdef DL_NOW
20186 #          define LT_DLLAZY_OR_NOW      DL_NOW
20187 #        else
20188 #          define LT_DLLAZY_OR_NOW      0
20189 #        endif
20190 #      endif
20191 #    endif
20192 #  endif
20193 #endif
20194
20195 /* When -fvisbility=hidden is used, assume the code has been annotated
20196    correspondingly for the symbols needed.  */
20197 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20198 int fnord () __attribute__((visibility("default")));
20199 #endif
20200
20201 int fnord () { return 42; }
20202 int main ()
20203 {
20204   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20205   int status = $lt_dlunknown;
20206
20207   if (self)
20208     {
20209       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20210       else
20211         {
20212           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
20213           else puts (dlerror ());
20214         }
20215       /* dlclose (self); */
20216     }
20217   else
20218     puts (dlerror ());
20219
20220   return status;
20221 }
20222 _LT_EOF
20223   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20224   (eval $ac_link) 2>&5
20225   ac_status=$?
20226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20227   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20228     (./conftest; exit; ) >&5 2>/dev/null
20229     lt_status=$?
20230     case x$lt_status in
20231       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20232       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20233       x$lt_dlunknown|x*)  ;;
20234     esac
20235   else :
20236     # compilation failed
20237
20238   fi
20239 fi
20240 rm -fr conftest*
20241
20242           LIBS="$save_LIBS"
20243
20244 fi
20245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20246 $as_echo "$libltdl_cv_need_uscore" >&6; }
20247   fi
20248 fi
20249
20250 if test x"$libltdl_cv_need_uscore" = xyes; then
20251
20252 $as_echo "#define NEED_USCORE 1" >>confdefs.h
20253
20254 fi
20255
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20257 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
20258 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
20259   $as_echo_n "(cached) " >&6
20260 else
20261   # PORTME does your system automatically load deplibs for dlopen?
20262   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20263   # For now, we just catch OSes we know something about -- in the
20264   # future, we'll try test this programmatically.
20265   lt_cv_sys_dlopen_deplibs=unknown
20266   case $host_os in
20267   aix3*|aix4.1.*|aix4.2.*)
20268     # Unknown whether this is true for these versions of AIX, but
20269     # we want this `case' here to explicitly catch those versions.
20270     lt_cv_sys_dlopen_deplibs=unknown
20271     ;;
20272   aix[4-9]*)
20273     lt_cv_sys_dlopen_deplibs=yes
20274     ;;
20275   amigaos*)
20276     case $host_cpu in
20277     powerpc)
20278       lt_cv_sys_dlopen_deplibs=no
20279       ;;
20280     esac
20281     ;;
20282   darwin*)
20283     # Assuming the user has installed a libdl from somewhere, this is true
20284     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20285     lt_cv_sys_dlopen_deplibs=yes
20286     ;;
20287   freebsd* | dragonfly*)
20288     lt_cv_sys_dlopen_deplibs=yes
20289     ;;
20290   gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
20291     # GNU and its variants, using gnu ld.so (Glibc)
20292     lt_cv_sys_dlopen_deplibs=yes
20293     ;;
20294   hpux10*|hpux11*)
20295     lt_cv_sys_dlopen_deplibs=yes
20296     ;;
20297   interix*)
20298     lt_cv_sys_dlopen_deplibs=yes
20299     ;;
20300   irix[12345]*|irix6.[01]*)
20301     # Catch all versions of IRIX before 6.2, and indicate that we don't
20302     # know how it worked for any of those versions.
20303     lt_cv_sys_dlopen_deplibs=unknown
20304     ;;
20305   irix*)
20306     # The case above catches anything before 6.2, and it's known that
20307     # at 6.2 and later dlopen does load deplibs.
20308     lt_cv_sys_dlopen_deplibs=yes
20309     ;;
20310   netbsd*)
20311     lt_cv_sys_dlopen_deplibs=yes
20312     ;;
20313   openbsd*)
20314     lt_cv_sys_dlopen_deplibs=yes
20315     ;;
20316   osf[1234]*)
20317     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20318     # it did *not* use an RPATH in a shared library to find objects the
20319     # library depends on, so we explicitly say `no'.
20320     lt_cv_sys_dlopen_deplibs=no
20321     ;;
20322   osf5.0|osf5.0a|osf5.1)
20323     # dlopen *does* load deplibs and with the right loader patch applied
20324     # it even uses RPATH in a shared library to search for shared objects
20325     # that the library depends on, but there's no easy way to know if that
20326     # patch is installed.  Since this is the case, all we can really
20327     # say is unknown -- it depends on the patch being installed.  If
20328     # it is, this changes to `yes'.  Without it, it would be `no'.
20329     lt_cv_sys_dlopen_deplibs=unknown
20330     ;;
20331   osf*)
20332     # the two cases above should catch all versions of osf <= 5.1.  Read
20333     # the comments above for what we know about them.
20334     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20335     # is used to find them so we can finally say `yes'.
20336     lt_cv_sys_dlopen_deplibs=yes
20337     ;;
20338   qnx*)
20339     lt_cv_sys_dlopen_deplibs=yes
20340     ;;
20341   solaris*)
20342     lt_cv_sys_dlopen_deplibs=yes
20343     ;;
20344   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20345     libltdl_cv_sys_dlopen_deplibs=yes
20346     ;;
20347   esac
20348
20349 fi
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20351 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20352 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20353
20354 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20355
20356 fi
20357
20358 :
20359
20360 for ac_header in argz.h
20361 do :
20362   ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20363 "
20364 if test "x$ac_cv_header_argz_h" = xyes; then :
20365   cat >>confdefs.h <<_ACEOF
20366 #define HAVE_ARGZ_H 1
20367 _ACEOF
20368
20369 fi
20370
20371 done
20372
20373
20374 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20375 #  include <argz.h>
20376 #endif
20377 "
20378 if test "x$ac_cv_type_error_t" = xyes; then :
20379
20380 cat >>confdefs.h <<_ACEOF
20381 #define HAVE_ERROR_T 1
20382 _ACEOF
20383
20384
20385 else
20386
20387 $as_echo "#define error_t int" >>confdefs.h
20388
20389
20390 $as_echo "#define __error_t_defined 1" >>confdefs.h
20391
20392 fi
20393
20394
20395 ARGZ_H=
20396 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20397         argz_next argz_stringify
20398 do :
20399   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20400 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20401 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20402   cat >>confdefs.h <<_ACEOF
20403 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20404 _ACEOF
20405
20406 else
20407   ARGZ_H=argz.h;
20408
20409   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20410
20411 fi
20412 done
20413
20414
20415 if test -z "$ARGZ_H"; then :
20416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20417 $as_echo_n "checking if argz actually works... " >&6; }
20418 if ${lt_cv_sys_argz_works+:} false; then :
20419   $as_echo_n "(cached) " >&6
20420 else
20421   case $host_os in #(
20422          *cygwin*)
20423            lt_cv_sys_argz_works=no
20424            if test "$cross_compiling" != no; then
20425              lt_cv_sys_argz_works="guessing no"
20426            else
20427              lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20428              save_IFS=$IFS
20429              IFS=-.
20430              set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20431              IFS=$save_IFS
20432              lt_os_major=${2-0}
20433              lt_os_minor=${3-0}
20434              lt_os_micro=${4-0}
20435              if test "$lt_os_major" -gt 1 \
20436                 || { test "$lt_os_major" -eq 1 \
20437                   && { test "$lt_os_minor" -gt 5 \
20438                     || { test "$lt_os_minor" -eq 5 \
20439                       && test "$lt_os_micro" -gt 24; }; }; }; then
20440                lt_cv_sys_argz_works=yes
20441              fi
20442            fi
20443            ;; #(
20444          *) lt_cv_sys_argz_works=yes ;;
20445          esac
20446 fi
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20448 $as_echo "$lt_cv_sys_argz_works" >&6; }
20449      if test "$lt_cv_sys_argz_works" = yes; then :
20450
20451 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20452
20453 else
20454   ARGZ_H=argz.h
20455
20456
20457   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20458
20459 fi
20460 fi
20461
20462
20463
20464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20465 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
20466 if ${libltdl_cv_preloaded_symbols+:} false; then :
20467   $as_echo_n "(cached) " >&6
20468 else
20469   if test -n "$lt_cv_sys_global_symbol_pipe"; then
20470     libltdl_cv_preloaded_symbols=yes
20471   else
20472     libltdl_cv_preloaded_symbols=no
20473   fi
20474
20475 fi
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20477 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20478 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20479
20480 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20481
20482 fi
20483
20484 # Set options
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496 # Check whether --with-included_ltdl was given.
20497 if test "${with_included_ltdl+set}" = set; then :
20498   withval=$with_included_ltdl;
20499 fi
20500
20501
20502 if test "x$with_included_ltdl" != xyes; then
20503   # We are not being forced to use the included libltdl sources, so
20504   # decide whether there is a useful installed version we can use.
20505   ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20506
20507 "
20508 if test "x$ac_cv_header_ltdl_h" = xyes; then :
20509   ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20510             #include <ltdl.h>
20511 "
20512 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
20513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20514 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
20515 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
20516   $as_echo_n "(cached) " >&6
20517 else
20518   ac_check_lib_save_LIBS=$LIBS
20519 LIBS="-lltdl  $LIBS"
20520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20521 /* end confdefs.h.  */
20522
20523 /* Override any GCC internal prototype to avoid an error.
20524    Use char because int might match the return type of a GCC
20525    builtin and then its argument prototype would still apply.  */
20526 #ifdef __cplusplus
20527 extern "C"
20528 #endif
20529 char lt_dladvise_preload ();
20530 int
20531 main ()
20532 {
20533 return lt_dladvise_preload ();
20534   ;
20535   return 0;
20536 }
20537 _ACEOF
20538 if ac_fn_c_try_link "$LINENO"; then :
20539   ac_cv_lib_ltdl_lt_dladvise_preload=yes
20540 else
20541   ac_cv_lib_ltdl_lt_dladvise_preload=no
20542 fi
20543 rm -f core conftest.err conftest.$ac_objext \
20544     conftest$ac_exeext conftest.$ac_ext
20545 LIBS=$ac_check_lib_save_LIBS
20546 fi
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20548 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
20549 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
20550   with_included_ltdl=no
20551 else
20552   with_included_ltdl=yes
20553 fi
20554
20555 else
20556   with_included_ltdl=yes
20557 fi
20558
20559 else
20560   with_included_ltdl=yes
20561 fi
20562
20563
20564 fi
20565
20566
20567
20568
20569 # Check whether --with-ltdl_include was given.
20570 if test "${with_ltdl_include+set}" = set; then :
20571   withval=$with_ltdl_include;
20572 fi
20573
20574
20575 if test -n "$with_ltdl_include"; then
20576   if test -f "$with_ltdl_include/ltdl.h"; then :
20577   else
20578     as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
20579   fi
20580 else
20581   with_ltdl_include=no
20582 fi
20583
20584
20585 # Check whether --with-ltdl_lib was given.
20586 if test "${with_ltdl_lib+set}" = set; then :
20587   withval=$with_ltdl_lib;
20588 fi
20589
20590
20591 if test -n "$with_ltdl_lib"; then
20592   if test -f "$with_ltdl_lib/libltdl.la"; then :
20593   else
20594     as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
20595   fi
20596 else
20597   with_ltdl_lib=no
20598 fi
20599
20600 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20601   ,yes,no,no,)
20602         case $enable_ltdl_convenience in
20603   no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
20604   "") enable_ltdl_convenience=yes
20605       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20606 esac
20607 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20608 LTDLDEPS=$LIBLTDL
20609 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20610
20611
20612
20613
20614
20615 # For backwards non-gettext consistent compatibility...
20616 INCLTDL="$LTDLINCL"
20617
20618
20619         ;;
20620   ,no,no,no,)
20621         # If the included ltdl is not to be used, then use the
20622         # preinstalled libltdl we found.
20623
20624 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
20625
20626         LIBLTDL=-lltdl
20627         LTDLDEPS=
20628         LTDLINCL=
20629         ;;
20630   ,no*,no,*)
20631         as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
20632         ;;
20633   *)    with_included_ltdl=no
20634         LIBLTDL="-L$with_ltdl_lib -lltdl"
20635         LTDLDEPS=
20636         LTDLINCL="-I$with_ltdl_include"
20637         ;;
20638 esac
20639 INCLTDL="$LTDLINCL"
20640
20641 # Report our decision...
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20643 $as_echo_n "checking where to find libltdl headers... " >&6; }
20644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20645 $as_echo "$LTDLINCL" >&6; }
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20647 $as_echo_n "checking where to find libltdl library... " >&6; }
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20649 $as_echo "$LIBLTDL" >&6; }
20650
20651
20652
20653 # Check whether --enable-ltdl-install was given.
20654 if test "${enable_ltdl_install+set}" = set; then :
20655   enableval=$enable_ltdl_install;
20656 fi
20657
20658
20659 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20660   *yes*) ;;
20661   *) enable_ltdl_convenience=yes ;;
20662 esac
20663
20664  if test x"${enable_ltdl_install-no}" != xno; then
20665   INSTALL_LTDL_TRUE=
20666   INSTALL_LTDL_FALSE='#'
20667 else
20668   INSTALL_LTDL_TRUE='#'
20669   INSTALL_LTDL_FALSE=
20670 fi
20671
20672   if test x"${enable_ltdl_convenience-no}" != xno; then
20673   CONVENIENCE_LTDL_TRUE=
20674   CONVENIENCE_LTDL_FALSE='#'
20675 else
20676   CONVENIENCE_LTDL_TRUE='#'
20677   CONVENIENCE_LTDL_FALSE=
20678 fi
20679
20680
20681
20682
20683
20684
20685 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20686 # the user used.  This is so that ltdl.h can pick up the parent projects
20687 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
20688 # definitions required by ltdl.c.
20689 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20690
20691
20692
20693 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20694 do :
20695   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20696 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20697 "
20698 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20699   cat >>confdefs.h <<_ACEOF
20700 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20701 _ACEOF
20702
20703 fi
20704
20705 done
20706
20707
20708 for ac_func in closedir opendir readdir
20709 do :
20710   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20711 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20712 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20713   cat >>confdefs.h <<_ACEOF
20714 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20715 _ACEOF
20716
20717 else
20718
20719
20720   _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20721
20722 fi
20723 done
20724
20725 for ac_func in strlcat strlcpy
20726 do :
20727   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20728 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20729 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20730   cat >>confdefs.h <<_ACEOF
20731 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20732 _ACEOF
20733
20734 else
20735
20736
20737   _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20738
20739 fi
20740 done
20741
20742
20743
20744 cat >>confdefs.h <<_ACEOF
20745 #define LT_LIBEXT "$libext"
20746 _ACEOF
20747
20748
20749 name=
20750 eval "lt_libprefix=\"$libname_spec\""
20751
20752 cat >>confdefs.h <<_ACEOF
20753 #define LT_LIBPREFIX "$lt_libprefix"
20754 _ACEOF
20755
20756
20757 name=ltdl
20758 eval "LTDLOPEN=\"$libname_spec\""
20759
20760
20761
20762
20763
20764
20765
20766
20767 # Only expand once:
20768
20769
20770
20771 # Check to see if building shared libraries
20772 libtool_build_shared_libs='no'
20773 if test "$enable_shared" = 'yes'; then
20774     libtool_build_shared_libs='yes'
20775 fi
20776
20777 # Check to see if building static libraries
20778 libtool_build_static_libs='no'
20779 if test "$enable_static" = 'yes'; then
20780     libtool_build_static_libs='yes'
20781 fi
20782
20783  if test "${libtool_build_shared_libs}" = 'yes'; then
20784   WITH_SHARED_LIBS_TRUE=
20785   WITH_SHARED_LIBS_FALSE='#'
20786 else
20787   WITH_SHARED_LIBS_TRUE='#'
20788   WITH_SHARED_LIBS_FALSE=
20789 fi
20790
20791 #
20792 # Enable support for building loadable modules
20793 #
20794
20795 # Check whether --with-modules was given.
20796 if test "${with_modules+set}" = set; then :
20797   withval=$with_modules; with_modules=$withval
20798 else
20799   with_modules='no'
20800 fi
20801
20802
20803 # Only allow building loadable modules if we are building shared libraries
20804 if test "$with_modules" != 'no' ; then
20805     if test "$libtool_build_shared_libs" = 'no'; then
20806         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
20807 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20808         with_modules='no'
20809     fi
20810 fi
20811 if test "$with_modules" != 'no'; then
20812
20813 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
20814
20815 fi
20816  if test "$with_modules" != 'no'; then
20817   WITH_MODULES_TRUE=
20818   WITH_MODULES_FALSE='#'
20819 else
20820   WITH_MODULES_TRUE='#'
20821   WITH_MODULES_FALSE=
20822 fi
20823
20824
20825 # Enable building/use of libltdl if we are building shared libraries regardless
20826 # of whether modules are built or not.
20827 with_ltdl='no'
20828 if test "$libtool_build_shared_libs" != 'no'; then
20829     with_ltdl='yes'
20830 fi
20831
20832  if test "$with_ltdl" != 'no'; then
20833   WITH_LTDL_TRUE=
20834   WITH_LTDL_FALSE='#'
20835 else
20836   WITH_LTDL_TRUE='#'
20837   WITH_LTDL_FALSE=
20838 fi
20839
20840 if test "$with_ltdl" != 'no'; then
20841
20842 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
20843
20844
20845     # Set DLLDFLAGS
20846     if test X"$enable_shared" = Xyes; then
20847         DLLDFLAGS=-export-dynamic
20848
20849     fi
20850 fi
20851
20852 # Enable build using delegate libraries built in subdirectories rather than installed
20853 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
20854 # Check whether --enable-delegate-build was given.
20855 if test "${enable_delegate_build+set}" = set; then :
20856   enableval=$enable_delegate_build; enable_delegate_build=$enableval
20857 else
20858   enable_delegate_build='no'
20859 fi
20860
20861
20862 # Check whether --enable-deprecated was given.
20863 if test "${enable_deprecated+set}" = set; then :
20864   enableval=$enable_deprecated; enable_deprecated=$enableval
20865 else
20866   enable_deprecated='no'
20867 fi
20868
20869
20870 if test "$enable_deprecated" = 'yes'; then
20871
20872 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
20873
20874 else
20875   DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20876 fi
20877
20878 # Build a version of ImageMagick which operates uninstalled.
20879 # Used to build distributions located via MAGICK_HOME / executable path
20880 # Check whether --enable-installed was given.
20881 if test "${enable_installed+set}" = set; then :
20882   enableval=$enable_installed; enable_installed=$enableval
20883 else
20884   enable_installed='yes'
20885 fi
20886
20887
20888 if test "$enable_installed" = 'yes'; then
20889
20890 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
20891
20892 else
20893     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20894 fi
20895
20896 # Permit enciphering and deciphering image pixels.
20897 # Check whether --enable-cipher was given.
20898 if test "${enable_cipher+set}" = set; then :
20899   enableval=$enable_cipher; enable_cipher=$enableval
20900 else
20901   enable_cipher='yes'
20902 fi
20903
20904
20905 if test "$enable_cipher" = 'yes'; then
20906
20907 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
20908
20909 fi
20910
20911 # Build an embeddable version of ImageMagick.
20912 # Check whether --enable-embeddable was given.
20913 if test "${enable_embeddable+set}" = set; then :
20914   enableval=$enable_embeddable; enable_embeddable=$enableval
20915 else
20916   enable_embeddable='no'
20917 fi
20918
20919
20920 if test "$enable_embeddable" = 'yes'; then
20921
20922 $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
20923
20924 fi
20925
20926 # Build a high dynamic range version of ImageMagick.
20927 # Check whether --enable-hdri was given.
20928 if test "${enable_hdri+set}" = set; then :
20929   enableval=$enable_hdri; enable_hdri=$enableval
20930 else
20931   enable_hdri='no'
20932 fi
20933
20934
20935 MAGICK_HDRI=""
20936 if test "$enable_hdri" = 'yes'; then
20937     MAGICK_HDRI="HDRI"
20938
20939 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
20940
20941     MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
20942 fi
20943
20944 # Build a version of ImageMagick with assert statements.
20945 # Check whether --enable-assert was given.
20946 if test "${enable_assert+set}" = set; then :
20947   enableval=$enable_assert; enable_assert=$enableval
20948 else
20949   enable_assert='yes'
20950 fi
20951
20952
20953 if test "$enable_assert" = 'no'; then
20954
20955 $as_echo "#define NDEBUG 1" >>confdefs.h
20956
20957 fi
20958
20959 # Add configure option --enable-maintainer-mode which enables dependency
20960 # checking and generation useful to package maintainers.  This is made an
20961 # option to avoid confusing end users.
20962
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20964 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20965     # Check whether --enable-maintainer-mode was given.
20966 if test "${enable_maintainer_mode+set}" = set; then :
20967   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20968 else
20969   USE_MAINTAINER_MODE=no
20970 fi
20971
20972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20973 $as_echo "$USE_MAINTAINER_MODE" >&6; }
20974    if test $USE_MAINTAINER_MODE = yes; then
20975   MAINTAINER_MODE_TRUE=
20976   MAINTAINER_MODE_FALSE='#'
20977 else
20978   MAINTAINER_MODE_TRUE='#'
20979   MAINTAINER_MODE_FALSE=
20980 fi
20981
20982   MAINT=$MAINTAINER_MODE_TRUE
20983
20984
20985
20986
20987 # Enable ccmalloc memory debugging support
20988 # Check whether --enable-ccmalloc was given.
20989 if test "${enable_ccmalloc+set}" = set; then :
20990   enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20991 else
20992   enable_ccmalloc='no'
20993 fi
20994
20995
20996 # Enable Electric Fence memory debugging support
20997 # Check whether --enable-efence was given.
20998 if test "${enable_efence+set}" = set; then :
20999   enableval=$enable_efence; enable_efence=$enableval
21000 else
21001   enable_efence='no'
21002 fi
21003
21004
21005 # Enable prof-based profiling support
21006 # Check whether --enable-prof was given.
21007 if test "${enable_prof+set}" = set; then :
21008   enableval=$enable_prof; enable_prof=$enableval
21009 else
21010   enable_prof='no'
21011 fi
21012
21013
21014 # Enable gprof-based profiling support
21015 # Check whether --enable-gprof was given.
21016 if test "${enable_gprof+set}" = set; then :
21017   enableval=$enable_gprof; enable_gprof=$enableval
21018 else
21019   enable_gprof='no'
21020 fi
21021
21022
21023 # Enable gcov-based profiling support
21024 # Check whether --enable-gcov was given.
21025 if test "${enable_gcov+set}" = set; then :
21026   enableval=$enable_gcov; enable_gcov=$enableval
21027 else
21028   enable_gcov='no'
21029 fi
21030
21031
21032 enable_profiling='no'
21033 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21034     enable_profiling='yes'
21035     if test "$libtool_build_shared_libs" = 'yes'; then
21036         echo "Warning: Can not profile code using shared libraries"
21037     fi
21038 fi
21039
21040 # Magick API method prefix
21041
21042 # Check whether --with-method-prefix was given.
21043 if test "${with_method_prefix+set}" = set; then :
21044   withval=$with_method_prefix; with_method_prefix=$enableval
21045 else
21046   with_method_prefix=''
21047 fi
21048
21049
21050 if test "$with_method_prefix" != ''; then
21051
21052 cat >>confdefs.h <<_ACEOF
21053 #define NAMESPACE_PREFIX $with_method_prefix
21054 _ACEOF
21055
21056 fi
21057
21058 # Number of bits in a Quantum
21059
21060 # Check whether --with-quantum-depth was given.
21061 if test "${with_quantum_depth+set}" = set; then :
21062   withval=$with_quantum_depth; with_quantum_depth=$withval
21063 else
21064   with_quantum_depth=16
21065 fi
21066
21067
21068 if test "$with_quantum_depth" != '8'; then
21069     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21070 fi
21071
21072 case "${with_quantum_depth}" in
21073     8 ) ;;
21074     16 ) ;;
21075     32 ) ;;
21076     64 ) ;;
21077     * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
21078 esac
21079 if test "$enable_hdri" = 'yes'; then
21080   with_quantum_depth=16
21081 fi
21082 QUANTUM_DEPTH="$with_quantum_depth"
21083
21084 cat >>confdefs.h <<_ACEOF
21085 #define QUANTUM_DEPTH $QUANTUM_DEPTH
21086 _ACEOF
21087
21088
21089 # Set pixel cache threshold
21090
21091 # Check whether --with-cache was given.
21092 if test "${with_cache+set}" = set; then :
21093   withval=$with_cache; with_cache=$withval
21094 else
21095   with_cache=''
21096 fi
21097
21098
21099 if test "$with_cache" != ''; then
21100
21101 cat >>confdefs.h <<_ACEOF
21102 #define PixelCacheThreshold $with_cache
21103 _ACEOF
21104
21105     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21106 fi
21107
21108 # Disable/Enable support for full delegate paths
21109
21110 # Check whether --with-frozenpaths was given.
21111 if test "${with_frozenpaths+set}" = set; then :
21112   withval=$with_frozenpaths; with_frozenpaths=$withval
21113 else
21114   with_frozenpaths='no'
21115 fi
21116
21117
21118 # Enable build/install of Magick++
21119
21120 # Check whether --with-magick-plus-plus was given.
21121 if test "${with_magick_plus_plus+set}" = set; then :
21122   withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21123 else
21124   with_magick_plus_plus='yes'
21125 fi
21126
21127
21128 # Disable build/install of PerlMagick.
21129
21130 # Check whether --with-perl was given.
21131 if test "${with_perl+set}" = set; then :
21132   withval=$with_perl; with_perl=$withval
21133 else
21134   with_perl='no'
21135 fi
21136
21137
21138 # Options to pass when configuring PerlMagick
21139
21140 # Check whether --with-perl-options was given.
21141 if test "${with_perl_options+set}" = set; then :
21142   withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
21143 fi
21144
21145
21146
21147 # Enable umem, object-caching memory allocation library.
21148
21149 # Check whether --with-umem was given.
21150 if test "${with_umem+set}" = set; then :
21151   withval=$with_umem; with_umem=$withval
21152 else
21153   with_umem='no'
21154 fi
21155
21156 if test "$with_umem" != 'yes' ; then
21157     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21158 fi
21159
21160 #
21161 # Specify path to shared libstdc++ if not in normal location
21162 #
21163
21164 # Check whether --with-libstdc was given.
21165 if test "${with_libstdc+set}" = set; then :
21166   withval=$with_libstdc; with_libstdc=$withval
21167 else
21168   with_libstdc=''
21169 fi
21170
21171
21172 if test "$with_libstdc" != ''; then
21173     if test -d "$with_libstdc"; then
21174         LIBSTDCLDFLAGS="-L$with_libstdc"
21175     fi
21176 fi
21177
21178
21179 # Does gcc required -traditional?
21180 if test $ac_cv_c_compiler_gnu = yes; then
21181     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
21182 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
21183 if ${ac_cv_prog_gcc_traditional+:} false; then :
21184   $as_echo_n "(cached) " >&6
21185 else
21186     ac_pattern="Autoconf.*'x'"
21187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21188 /* end confdefs.h.  */
21189 #include <sgtty.h>
21190 Autoconf TIOCGETP
21191 _ACEOF
21192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21193   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21194   ac_cv_prog_gcc_traditional=yes
21195 else
21196   ac_cv_prog_gcc_traditional=no
21197 fi
21198 rm -f conftest*
21199
21200
21201   if test $ac_cv_prog_gcc_traditional = no; then
21202     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21203 /* end confdefs.h.  */
21204 #include <termio.h>
21205 Autoconf TCGETA
21206 _ACEOF
21207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21208   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21209   ac_cv_prog_gcc_traditional=yes
21210 fi
21211 rm -f conftest*
21212
21213   fi
21214 fi
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
21216 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21217   if test $ac_cv_prog_gcc_traditional = yes; then
21218     CC="$CC -traditional"
21219   fi
21220 fi
21221
21222
21223 ########
21224 #
21225 # Set defines required to build DLLs and modules using MinGW
21226 #
21227 ########
21228 # These options are set for multi-thread DLL module build
21229 #  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_
21230 #  module:              _DLL
21231 #  executable/Magick++: _DLL _MAGICKMOD_
21232 MODULE_EXTRA_CPPFLAGS=''
21233 LIBRARY_EXTRA_CPPFLAGS=''
21234 if test "${native_win32_build}" = 'yes'; then
21235     if test "${libtool_build_shared_libs}" = 'yes'; then
21236         CPPFLAGS="$CPPFLAGS -D_DLL"
21237         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21238         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21239         LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21240         if test "$with_modules" = 'yes'; then
21241             LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21242         else
21243             MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21244         fi
21245     else
21246         CPPFLAGS="$CPPFLAGS -D_LIB"
21247         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21248         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21249     fi
21250     if test "$with_threads" = 'yes'; then
21251          CPPFLAGS="$CPPFLAGS -D_MT"
21252          MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21253          MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21254     fi
21255 fi
21256
21257
21258
21259 # Check standard headers
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21261 $as_echo_n "checking for ANSI C header files... " >&6; }
21262 if ${ac_cv_header_stdc+:} false; then :
21263   $as_echo_n "(cached) " >&6
21264 else
21265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21266 /* end confdefs.h.  */
21267 #include <stdlib.h>
21268 #include <stdarg.h>
21269 #include <string.h>
21270 #include <float.h>
21271
21272 int
21273 main ()
21274 {
21275
21276   ;
21277   return 0;
21278 }
21279 _ACEOF
21280 if ac_fn_c_try_compile "$LINENO"; then :
21281   ac_cv_header_stdc=yes
21282 else
21283   ac_cv_header_stdc=no
21284 fi
21285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21286
21287 if test $ac_cv_header_stdc = yes; then
21288   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21290 /* end confdefs.h.  */
21291 #include <string.h>
21292
21293 _ACEOF
21294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21295   $EGREP "memchr" >/dev/null 2>&1; then :
21296
21297 else
21298   ac_cv_header_stdc=no
21299 fi
21300 rm -f conftest*
21301
21302 fi
21303
21304 if test $ac_cv_header_stdc = yes; then
21305   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21307 /* end confdefs.h.  */
21308 #include <stdlib.h>
21309
21310 _ACEOF
21311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21312   $EGREP "free" >/dev/null 2>&1; then :
21313
21314 else
21315   ac_cv_header_stdc=no
21316 fi
21317 rm -f conftest*
21318
21319 fi
21320
21321 if test $ac_cv_header_stdc = yes; then
21322   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21323   if test "$cross_compiling" = yes; then :
21324   :
21325 else
21326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21327 /* end confdefs.h.  */
21328 #include <ctype.h>
21329 #include <stdlib.h>
21330 #if ((' ' & 0x0FF) == 0x020)
21331 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21332 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21333 #else
21334 # define ISLOWER(c) \
21335                    (('a' <= (c) && (c) <= 'i') \
21336                      || ('j' <= (c) && (c) <= 'r') \
21337                      || ('s' <= (c) && (c) <= 'z'))
21338 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21339 #endif
21340
21341 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21342 int
21343 main ()
21344 {
21345   int i;
21346   for (i = 0; i < 256; i++)
21347     if (XOR (islower (i), ISLOWER (i))
21348         || toupper (i) != TOUPPER (i))
21349       return 2;
21350   return 0;
21351 }
21352 _ACEOF
21353 if ac_fn_c_try_run "$LINENO"; then :
21354
21355 else
21356   ac_cv_header_stdc=no
21357 fi
21358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21359   conftest.$ac_objext conftest.beam conftest.$ac_ext
21360 fi
21361
21362 fi
21363 fi
21364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21365 $as_echo "$ac_cv_header_stdc" >&6; }
21366 if test $ac_cv_header_stdc = yes; then
21367
21368 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21369
21370 fi
21371
21372 if ! test x"$ac_cv_header_stdc" = x"yes"; then
21373     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
21374     header files.  Compilation cannot proceed.  Please install the ANSI C
21375     headers and rerun this script." >&5
21376 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21377     header files.  Compilation cannot proceed.  Please install the ANSI C
21378     headers and rerun this script." >&2;};
21379 fi
21380
21381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21382 $as_echo_n "checking whether to enable assertions... " >&6; }
21383   # Check whether --enable-assert was given.
21384 if test "${enable_assert+set}" = set; then :
21385   enableval=$enable_assert; ac_enable_assert=$enableval
21386      if       test "x$enableval" = xno; then :
21387
21388 $as_echo "#define NDEBUG 1" >>confdefs.h
21389
21390 elif test "x$enableval" != xyes; then :
21391   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21392 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21393         ac_enable_assert=yes
21394 fi
21395 else
21396   ac_enable_assert=yes
21397 fi
21398
21399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21400 $as_echo "$ac_enable_assert" >&6; }
21401
21402 ac_header_dirent=no
21403 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21404   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21406 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21407 if eval \${$as_ac_Header+:} false; then :
21408   $as_echo_n "(cached) " >&6
21409 else
21410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21411 /* end confdefs.h.  */
21412 #include <sys/types.h>
21413 #include <$ac_hdr>
21414
21415 int
21416 main ()
21417 {
21418 if ((DIR *) 0)
21419 return 0;
21420   ;
21421   return 0;
21422 }
21423 _ACEOF
21424 if ac_fn_c_try_compile "$LINENO"; then :
21425   eval "$as_ac_Header=yes"
21426 else
21427   eval "$as_ac_Header=no"
21428 fi
21429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21430 fi
21431 eval ac_res=\$$as_ac_Header
21432                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21433 $as_echo "$ac_res" >&6; }
21434 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21435   cat >>confdefs.h <<_ACEOF
21436 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21437 _ACEOF
21438
21439 ac_header_dirent=$ac_hdr; break
21440 fi
21441
21442 done
21443 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21444 if test $ac_header_dirent = dirent.h; then
21445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21446 $as_echo_n "checking for library containing opendir... " >&6; }
21447 if ${ac_cv_search_opendir+:} false; then :
21448   $as_echo_n "(cached) " >&6
21449 else
21450   ac_func_search_save_LIBS=$LIBS
21451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21452 /* end confdefs.h.  */
21453
21454 /* Override any GCC internal prototype to avoid an error.
21455    Use char because int might match the return type of a GCC
21456    builtin and then its argument prototype would still apply.  */
21457 #ifdef __cplusplus
21458 extern "C"
21459 #endif
21460 char opendir ();
21461 int
21462 main ()
21463 {
21464 return opendir ();
21465   ;
21466   return 0;
21467 }
21468 _ACEOF
21469 for ac_lib in '' dir; do
21470   if test -z "$ac_lib"; then
21471     ac_res="none required"
21472   else
21473     ac_res=-l$ac_lib
21474     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21475   fi
21476   if ac_fn_c_try_link "$LINENO"; then :
21477   ac_cv_search_opendir=$ac_res
21478 fi
21479 rm -f core conftest.err conftest.$ac_objext \
21480     conftest$ac_exeext
21481   if ${ac_cv_search_opendir+:} false; then :
21482   break
21483 fi
21484 done
21485 if ${ac_cv_search_opendir+:} false; then :
21486
21487 else
21488   ac_cv_search_opendir=no
21489 fi
21490 rm conftest.$ac_ext
21491 LIBS=$ac_func_search_save_LIBS
21492 fi
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21494 $as_echo "$ac_cv_search_opendir" >&6; }
21495 ac_res=$ac_cv_search_opendir
21496 if test "$ac_res" != no; then :
21497   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21498
21499 fi
21500
21501 else
21502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21503 $as_echo_n "checking for library containing opendir... " >&6; }
21504 if ${ac_cv_search_opendir+:} false; then :
21505   $as_echo_n "(cached) " >&6
21506 else
21507   ac_func_search_save_LIBS=$LIBS
21508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21509 /* end confdefs.h.  */
21510
21511 /* Override any GCC internal prototype to avoid an error.
21512    Use char because int might match the return type of a GCC
21513    builtin and then its argument prototype would still apply.  */
21514 #ifdef __cplusplus
21515 extern "C"
21516 #endif
21517 char opendir ();
21518 int
21519 main ()
21520 {
21521 return opendir ();
21522   ;
21523   return 0;
21524 }
21525 _ACEOF
21526 for ac_lib in '' x; do
21527   if test -z "$ac_lib"; then
21528     ac_res="none required"
21529   else
21530     ac_res=-l$ac_lib
21531     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21532   fi
21533   if ac_fn_c_try_link "$LINENO"; then :
21534   ac_cv_search_opendir=$ac_res
21535 fi
21536 rm -f core conftest.err conftest.$ac_objext \
21537     conftest$ac_exeext
21538   if ${ac_cv_search_opendir+:} false; then :
21539   break
21540 fi
21541 done
21542 if ${ac_cv_search_opendir+:} false; then :
21543
21544 else
21545   ac_cv_search_opendir=no
21546 fi
21547 rm conftest.$ac_ext
21548 LIBS=$ac_func_search_save_LIBS
21549 fi
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21551 $as_echo "$ac_cv_search_opendir" >&6; }
21552 ac_res=$ac_cv_search_opendir
21553 if test "$ac_res" != no; then :
21554   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21555
21556 fi
21557
21558 fi
21559
21560
21561 # Check additional headers
21562 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
21563 do :
21564   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21565 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21566 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21567   cat >>confdefs.h <<_ACEOF
21568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21569 _ACEOF
21570
21571 fi
21572
21573 done
21574
21575
21576 ########
21577 #
21578 # Checks for typedefs, structures, and compiler characteristics.
21579 #
21580 ########
21581
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21583 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21584 if ${ac_cv_header_stdbool_h+:} false; then :
21585   $as_echo_n "(cached) " >&6
21586 else
21587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21588 /* end confdefs.h.  */
21589
21590 #include <stdbool.h>
21591 #ifndef bool
21592  "error: bool is not defined"
21593 #endif
21594 #ifndef false
21595  "error: false is not defined"
21596 #endif
21597 #if false
21598  "error: false is not 0"
21599 #endif
21600 #ifndef true
21601  "error: true is not defined"
21602 #endif
21603 #if true != 1
21604  "error: true is not 1"
21605 #endif
21606 #ifndef __bool_true_false_are_defined
21607  "error: __bool_true_false_are_defined is not defined"
21608 #endif
21609
21610         struct s { _Bool s: 1; _Bool t; } s;
21611
21612         char a[true == 1 ? 1 : -1];
21613         char b[false == 0 ? 1 : -1];
21614         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21615         char d[(bool) 0.5 == true ? 1 : -1];
21616         /* See body of main program for 'e'.  */
21617         char f[(_Bool) 0.0 == false ? 1 : -1];
21618         char g[true];
21619         char h[sizeof (_Bool)];
21620         char i[sizeof s.t];
21621         enum { j = false, k = true, l = false * true, m = true * 256 };
21622         /* The following fails for
21623            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21624         _Bool n[m];
21625         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21626         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21627         /* Catch a bug in an HP-UX C compiler.  See
21628            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21629            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21630          */
21631         _Bool q = true;
21632         _Bool *pq = &q;
21633
21634 int
21635 main ()
21636 {
21637
21638         bool e = &s;
21639         *pq |= q;
21640         *pq |= ! q;
21641         /* Refer to every declared value, to avoid compiler optimizations.  */
21642         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21643                 + !m + !n + !o + !p + !q + !pq);
21644
21645   ;
21646   return 0;
21647 }
21648 _ACEOF
21649 if ac_fn_c_try_compile "$LINENO"; then :
21650   ac_cv_header_stdbool_h=yes
21651 else
21652   ac_cv_header_stdbool_h=no
21653 fi
21654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21655 fi
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21657 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21658 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21659 if test "x$ac_cv_type__Bool" = xyes; then :
21660
21661 cat >>confdefs.h <<_ACEOF
21662 #define HAVE__BOOL 1
21663 _ACEOF
21664
21665
21666 fi
21667
21668 if test $ac_cv_header_stdbool_h = yes; then
21669
21670 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
21671
21672 fi
21673
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
21675 $as_echo_n "checking for working volatile... " >&6; }
21676 if ${ac_cv_c_volatile+:} false; then :
21677   $as_echo_n "(cached) " >&6
21678 else
21679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21680 /* end confdefs.h.  */
21681
21682 int
21683 main ()
21684 {
21685
21686 volatile int x;
21687 int * volatile y = (int *) 0;
21688 return !x && !y;
21689   ;
21690   return 0;
21691 }
21692 _ACEOF
21693 if ac_fn_c_try_compile "$LINENO"; then :
21694   ac_cv_c_volatile=yes
21695 else
21696   ac_cv_c_volatile=no
21697 fi
21698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21699 fi
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
21701 $as_echo "$ac_cv_c_volatile" >&6; }
21702 if test $ac_cv_c_volatile = no; then
21703
21704 $as_echo "#define volatile /**/" >>confdefs.h
21705
21706 fi
21707
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
21709 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
21710 if ${ac_cv_c_stringize+:} false; then :
21711   $as_echo_n "(cached) " >&6
21712 else
21713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21714 /* end confdefs.h.  */
21715 #define x(y) #y
21716
21717 char *s = x(teststring);
21718 _ACEOF
21719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21720   $EGREP "#teststring" >/dev/null 2>&1; then :
21721   ac_cv_c_stringize=no
21722 else
21723   ac_cv_c_stringize=yes
21724 fi
21725 rm -f conftest*
21726
21727 fi
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
21729 $as_echo "$ac_cv_c_stringize" >&6; }
21730 if test $ac_cv_c_stringize = yes; then
21731
21732 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
21733
21734 fi
21735
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21737 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21738 if ${ac_cv_header_stat_broken+:} false; then :
21739   $as_echo_n "(cached) " >&6
21740 else
21741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21742 /* end confdefs.h.  */
21743 #include <sys/types.h>
21744 #include <sys/stat.h>
21745
21746 #if defined S_ISBLK && defined S_IFDIR
21747 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21748 #endif
21749
21750 #if defined S_ISBLK && defined S_IFCHR
21751 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21752 #endif
21753
21754 #if defined S_ISLNK && defined S_IFREG
21755 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21756 #endif
21757
21758 #if defined S_ISSOCK && defined S_IFREG
21759 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21760 #endif
21761
21762 _ACEOF
21763 if ac_fn_c_try_compile "$LINENO"; then :
21764   ac_cv_header_stat_broken=no
21765 else
21766   ac_cv_header_stat_broken=yes
21767 fi
21768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21769 fi
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21771 $as_echo "$ac_cv_header_stat_broken" >&6; }
21772 if test $ac_cv_header_stat_broken = yes; then
21773
21774 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21775
21776 fi
21777
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21779 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21780 if ${ac_cv_header_time+:} false; then :
21781   $as_echo_n "(cached) " >&6
21782 else
21783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21784 /* end confdefs.h.  */
21785 #include <sys/types.h>
21786 #include <sys/time.h>
21787 #include <time.h>
21788
21789 int
21790 main ()
21791 {
21792 if ((struct tm *) 0)
21793 return 0;
21794   ;
21795   return 0;
21796 }
21797 _ACEOF
21798 if ac_fn_c_try_compile "$LINENO"; then :
21799   ac_cv_header_time=yes
21800 else
21801   ac_cv_header_time=no
21802 fi
21803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21804 fi
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21806 $as_echo "$ac_cv_header_time" >&6; }
21807 if test $ac_cv_header_time = yes; then
21808
21809 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21810
21811 fi
21812
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21814 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21815 if ${ac_cv_struct_tm+:} false; then :
21816   $as_echo_n "(cached) " >&6
21817 else
21818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21819 /* end confdefs.h.  */
21820 #include <sys/types.h>
21821 #include <time.h>
21822
21823 int
21824 main ()
21825 {
21826 struct tm tm;
21827                                      int *p = &tm.tm_sec;
21828                                      return !p;
21829   ;
21830   return 0;
21831 }
21832 _ACEOF
21833 if ac_fn_c_try_compile "$LINENO"; then :
21834   ac_cv_struct_tm=time.h
21835 else
21836   ac_cv_struct_tm=sys/time.h
21837 fi
21838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21839 fi
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21841 $as_echo "$ac_cv_struct_tm" >&6; }
21842 if test $ac_cv_struct_tm = sys/time.h; then
21843
21844 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21845
21846 fi
21847
21848 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21849 #include <$ac_cv_struct_tm>
21850
21851 "
21852 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
21853
21854 cat >>confdefs.h <<_ACEOF
21855 #define HAVE_STRUCT_TM_TM_ZONE 1
21856 _ACEOF
21857
21858
21859 fi
21860
21861 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21862
21863 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21864
21865 else
21866   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21867 "
21868 if test "x$ac_cv_have_decl_tzname" = xyes; then :
21869   ac_have_decl=1
21870 else
21871   ac_have_decl=0
21872 fi
21873
21874 cat >>confdefs.h <<_ACEOF
21875 #define HAVE_DECL_TZNAME $ac_have_decl
21876 _ACEOF
21877
21878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21879 $as_echo_n "checking for tzname... " >&6; }
21880 if ${ac_cv_var_tzname+:} false; then :
21881   $as_echo_n "(cached) " >&6
21882 else
21883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21884 /* end confdefs.h.  */
21885 #include <time.h>
21886 #if !HAVE_DECL_TZNAME
21887 extern char *tzname[];
21888 #endif
21889
21890 int
21891 main ()
21892 {
21893 return tzname[0][0];
21894   ;
21895   return 0;
21896 }
21897 _ACEOF
21898 if ac_fn_c_try_link "$LINENO"; then :
21899   ac_cv_var_tzname=yes
21900 else
21901   ac_cv_var_tzname=no
21902 fi
21903 rm -f core conftest.err conftest.$ac_objext \
21904     conftest$ac_exeext conftest.$ac_ext
21905 fi
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21907 $as_echo "$ac_cv_var_tzname" >&6; }
21908   if test $ac_cv_var_tzname = yes; then
21909
21910 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21911
21912   fi
21913 fi
21914
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
21916 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
21917 if ${ac_cv_sys_interpreter+:} false; then :
21918   $as_echo_n "(cached) " >&6
21919 else
21920   echo '#! /bin/cat
21921 exit 69
21922 ' >conftest
21923 chmod u+x conftest
21924 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21925 if test $? -ne 69; then
21926    ac_cv_sys_interpreter=yes
21927 else
21928    ac_cv_sys_interpreter=no
21929 fi
21930 rm -f conftest
21931 fi
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
21933 $as_echo "$ac_cv_sys_interpreter" >&6; }
21934 interpval=$ac_cv_sys_interpreter
21935
21936
21937 # If the C compiler supports the keyword inline, do nothing. Otherwise
21938 # define inline to __inline__ or __inline if it accepts one of those,
21939 # otherwise define inline to be empty.
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
21941 $as_echo_n "checking for inline... " >&6; }
21942 if ${ac_cv_c_inline+:} false; then :
21943   $as_echo_n "(cached) " >&6
21944 else
21945   ac_cv_c_inline=no
21946 for ac_kw in inline __inline__ __inline; do
21947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21948 /* end confdefs.h.  */
21949 #ifndef __cplusplus
21950 typedef int foo_t;
21951 static $ac_kw foo_t static_foo () {return 0; }
21952 $ac_kw foo_t foo () {return 0; }
21953 #endif
21954
21955 _ACEOF
21956 if ac_fn_c_try_compile "$LINENO"; then :
21957   ac_cv_c_inline=$ac_kw
21958 fi
21959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21960   test "$ac_cv_c_inline" != no && break
21961 done
21962
21963 fi
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
21965 $as_echo "$ac_cv_c_inline" >&6; }
21966
21967 case $ac_cv_c_inline in
21968   inline | yes) ;;
21969   *)
21970     case $ac_cv_c_inline in
21971       no) ac_val=;;
21972       *) ac_val=$ac_cv_c_inline;;
21973     esac
21974     cat >>confdefs.h <<_ACEOF
21975 #ifndef __cplusplus
21976 #define inline $ac_val
21977 #endif
21978 _ACEOF
21979     ;;
21980 esac
21981
21982
21983 # If the C compiler supports the keyword restrict, do nothing. Otherwise
21984 # define restrict to __restrict__ or __restrict if it accepts one of those,
21985 # otherwise define restrict to be empty.
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
21987 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
21988 if ${ac_cv_c_restrict+:} false; then :
21989   $as_echo_n "(cached) " >&6
21990 else
21991   ac_cv_c_restrict=no
21992    # The order here caters to the fact that C++ does not require restrict.
21993    for ac_kw in __restrict __restrict__ _Restrict restrict; do
21994      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21995 /* end confdefs.h.  */
21996 typedef int * int_ptr;
21997         int foo (int_ptr $ac_kw ip) {
21998         return ip[0];
21999        }
22000 int
22001 main ()
22002 {
22003 int s[1];
22004         int * $ac_kw t = s;
22005         t[0] = 0;
22006         return foo(t)
22007   ;
22008   return 0;
22009 }
22010 _ACEOF
22011 if ac_fn_c_try_compile "$LINENO"; then :
22012   ac_cv_c_restrict=$ac_kw
22013 fi
22014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22015      test "$ac_cv_c_restrict" != no && break
22016    done
22017
22018 fi
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
22020 $as_echo "$ac_cv_c_restrict" >&6; }
22021
22022  case $ac_cv_c_restrict in
22023    restrict) ;;
22024    no) $as_echo "#define restrict /**/" >>confdefs.h
22025  ;;
22026    *)  cat >>confdefs.h <<_ACEOF
22027 #define restrict $ac_cv_c_restrict
22028 _ACEOF
22029  ;;
22030  esac
22031
22032
22033 # If words are stored with the most significant byte first (like
22034 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
22035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22036 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22037 if ${ac_cv_c_bigendian+:} false; then :
22038   $as_echo_n "(cached) " >&6
22039 else
22040   ac_cv_c_bigendian=unknown
22041     # See if we're dealing with a universal compiler.
22042     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22043 /* end confdefs.h.  */
22044 #ifndef __APPLE_CC__
22045                not a universal capable compiler
22046              #endif
22047              typedef int dummy;
22048
22049 _ACEOF
22050 if ac_fn_c_try_compile "$LINENO"; then :
22051
22052         # Check for potential -arch flags.  It is not universal unless
22053         # there are at least two -arch flags with different values.
22054         ac_arch=
22055         ac_prev=
22056         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22057          if test -n "$ac_prev"; then
22058            case $ac_word in
22059              i?86 | x86_64 | ppc | ppc64)
22060                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22061                  ac_arch=$ac_word
22062                else
22063                  ac_cv_c_bigendian=universal
22064                  break
22065                fi
22066                ;;
22067            esac
22068            ac_prev=
22069          elif test "x$ac_word" = "x-arch"; then
22070            ac_prev=arch
22071          fi
22072        done
22073 fi
22074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22075     if test $ac_cv_c_bigendian = unknown; then
22076       # See if sys/param.h defines the BYTE_ORDER macro.
22077       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22078 /* end confdefs.h.  */
22079 #include <sys/types.h>
22080              #include <sys/param.h>
22081
22082 int
22083 main ()
22084 {
22085 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22086                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22087                      && LITTLE_ENDIAN)
22088               bogus endian macros
22089              #endif
22090
22091   ;
22092   return 0;
22093 }
22094 _ACEOF
22095 if ac_fn_c_try_compile "$LINENO"; then :
22096   # It does; now see whether it defined to BIG_ENDIAN or not.
22097          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22098 /* end confdefs.h.  */
22099 #include <sys/types.h>
22100                 #include <sys/param.h>
22101
22102 int
22103 main ()
22104 {
22105 #if BYTE_ORDER != BIG_ENDIAN
22106                  not big endian
22107                 #endif
22108
22109   ;
22110   return 0;
22111 }
22112 _ACEOF
22113 if ac_fn_c_try_compile "$LINENO"; then :
22114   ac_cv_c_bigendian=yes
22115 else
22116   ac_cv_c_bigendian=no
22117 fi
22118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22119 fi
22120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22121     fi
22122     if test $ac_cv_c_bigendian = unknown; then
22123       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22124       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22125 /* end confdefs.h.  */
22126 #include <limits.h>
22127
22128 int
22129 main ()
22130 {
22131 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22132               bogus endian macros
22133              #endif
22134
22135   ;
22136   return 0;
22137 }
22138 _ACEOF
22139 if ac_fn_c_try_compile "$LINENO"; then :
22140   # It does; now see whether it defined to _BIG_ENDIAN or not.
22141          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22142 /* end confdefs.h.  */
22143 #include <limits.h>
22144
22145 int
22146 main ()
22147 {
22148 #ifndef _BIG_ENDIAN
22149                  not big endian
22150                 #endif
22151
22152   ;
22153   return 0;
22154 }
22155 _ACEOF
22156 if ac_fn_c_try_compile "$LINENO"; then :
22157   ac_cv_c_bigendian=yes
22158 else
22159   ac_cv_c_bigendian=no
22160 fi
22161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22162 fi
22163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22164     fi
22165     if test $ac_cv_c_bigendian = unknown; then
22166       # Compile a test program.
22167       if test "$cross_compiling" = yes; then :
22168   # Try to guess by grepping values from an object file.
22169          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22170 /* end confdefs.h.  */
22171 short int ascii_mm[] =
22172                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22173                 short int ascii_ii[] =
22174                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22175                 int use_ascii (int i) {
22176                   return ascii_mm[i] + ascii_ii[i];
22177                 }
22178                 short int ebcdic_ii[] =
22179                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22180                 short int ebcdic_mm[] =
22181                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22182                 int use_ebcdic (int i) {
22183                   return ebcdic_mm[i] + ebcdic_ii[i];
22184                 }
22185                 extern int foo;
22186
22187 int
22188 main ()
22189 {
22190 return use_ascii (foo) == use_ebcdic (foo);
22191   ;
22192   return 0;
22193 }
22194 _ACEOF
22195 if ac_fn_c_try_compile "$LINENO"; then :
22196   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22197               ac_cv_c_bigendian=yes
22198             fi
22199             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22200               if test "$ac_cv_c_bigendian" = unknown; then
22201                 ac_cv_c_bigendian=no
22202               else
22203                 # finding both strings is unlikely to happen, but who knows?
22204                 ac_cv_c_bigendian=unknown
22205               fi
22206             fi
22207 fi
22208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22209 else
22210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22211 /* end confdefs.h.  */
22212 $ac_includes_default
22213 int
22214 main ()
22215 {
22216
22217              /* Are we little or big endian?  From Harbison&Steele.  */
22218              union
22219              {
22220                long int l;
22221                char c[sizeof (long int)];
22222              } u;
22223              u.l = 1;
22224              return u.c[sizeof (long int) - 1] == 1;
22225
22226   ;
22227   return 0;
22228 }
22229 _ACEOF
22230 if ac_fn_c_try_run "$LINENO"; then :
22231   ac_cv_c_bigendian=no
22232 else
22233   ac_cv_c_bigendian=yes
22234 fi
22235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22236   conftest.$ac_objext conftest.beam conftest.$ac_ext
22237 fi
22238
22239     fi
22240 fi
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22242 $as_echo "$ac_cv_c_bigendian" >&6; }
22243  case $ac_cv_c_bigendian in #(
22244    yes)
22245      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
22246 ;; #(
22247    no)
22248       ;; #(
22249    universal)
22250
22251 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22252
22253      ;; #(
22254    *)
22255      as_fn_error $? "unknown endianness
22256  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22257  esac
22258
22259
22260 # Define mode_t to a suitable type, if standard headers do not define it.
22261 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22262 if test "x$ac_cv_type_mode_t" = xyes; then :
22263
22264 else
22265
22266 cat >>confdefs.h <<_ACEOF
22267 #define mode_t int
22268 _ACEOF
22269
22270 fi
22271
22272
22273 # Define off_t to a suitable type, if standard headers do not define it.
22274 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22275 if test "x$ac_cv_type_off_t" = xyes; then :
22276
22277 else
22278
22279 cat >>confdefs.h <<_ACEOF
22280 #define off_t long int
22281 _ACEOF
22282
22283 fi
22284
22285
22286 # Define pid_t to a suitable type, if standard headers do not define it.
22287 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22288 if test "x$ac_cv_type_pid_t" = xyes; then :
22289
22290 else
22291
22292 cat >>confdefs.h <<_ACEOF
22293 #define pid_t int
22294 _ACEOF
22295
22296 fi
22297
22298
22299 # Define size_t to a suitable type, if standard headers do not define it.
22300 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22301 if test "x$ac_cv_type_size_t" = xyes; then :
22302
22303 else
22304
22305 cat >>confdefs.h <<_ACEOF
22306 #define size_t unsigned int
22307 _ACEOF
22308
22309 fi
22310
22311
22312 # Define ssize_t to a suitable type, if standard headers do not define it.
22313 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22314 if test "x$ac_cv_type_ssize_t" = xyes; then :
22315
22316 else
22317
22318 cat >>confdefs.h <<_ACEOF
22319 #define ssize_t int
22320 _ACEOF
22321
22322 fi
22323
22324
22325 # If the C compiler supports a working long double type with more range
22326 # or precision than the double type, define HAVE_LONG_DOUBLE.
22327
22328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
22329 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
22330 if ${ac_cv_type_long_double_wider+:} false; then :
22331   $as_echo_n "(cached) " >&6
22332 else
22333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22334 /* end confdefs.h.  */
22335 #include <float.h>
22336             long double const a[] =
22337               {
22338                  0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22339                  LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22340               };
22341             long double
22342             f (long double x)
22343             {
22344                return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22345                         + (x ? f (x) : 'c'));
22346             }
22347
22348 int
22349 main ()
22350 {
22351 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22352                    + (DBL_MANT_DIG < LDBL_MANT_DIG)
22353                    - (LDBL_MAX_EXP < DBL_MAX_EXP)
22354                    - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22355             && (int) LDBL_EPSILON == 0
22356           )];
22357 test_array [0] = 0
22358
22359   ;
22360   return 0;
22361 }
22362 _ACEOF
22363 if ac_fn_c_try_compile "$LINENO"; then :
22364   ac_cv_type_long_double_wider=yes
22365 else
22366   ac_cv_type_long_double_wider=no
22367 fi
22368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22369 fi
22370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
22371 $as_echo "$ac_cv_type_long_double_wider" >&6; }
22372   if test $ac_cv_type_long_double_wider = yes; then
22373
22374 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
22375
22376   fi
22377
22378
22379 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
22380 # C compiler predefines it.
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22382 $as_echo_n "checking whether char is unsigned... " >&6; }
22383 if ${ac_cv_c_char_unsigned+:} false; then :
22384   $as_echo_n "(cached) " >&6
22385 else
22386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22387 /* end confdefs.h.  */
22388 $ac_includes_default
22389 int
22390 main ()
22391 {
22392 static int test_array [1 - 2 * !(((char) -1) < 0)];
22393 test_array [0] = 0
22394
22395   ;
22396   return 0;
22397 }
22398 _ACEOF
22399 if ac_fn_c_try_compile "$LINENO"; then :
22400   ac_cv_c_char_unsigned=no
22401 else
22402   ac_cv_c_char_unsigned=yes
22403 fi
22404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22405 fi
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22407 $as_echo "$ac_cv_c_char_unsigned" >&6; }
22408 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22409   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22410
22411 fi
22412
22413
22414 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
22415 # The cast to long int works around a bug in the HP C Compiler
22416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22418 # This bug is HP SR number 8606223364.
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
22420 $as_echo_n "checking size of signed short... " >&6; }
22421 if ${ac_cv_sizeof_signed_short+:} false; then :
22422   $as_echo_n "(cached) " >&6
22423 else
22424   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
22425
22426 else
22427   if test "$ac_cv_type_signed_short" = yes; then
22428      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22430 as_fn_error 77 "cannot compute sizeof (signed short)
22431 See \`config.log' for more details" "$LINENO" 5; }
22432    else
22433      ac_cv_sizeof_signed_short=0
22434    fi
22435 fi
22436
22437 fi
22438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
22439 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
22440
22441
22442
22443 cat >>confdefs.h <<_ACEOF
22444 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
22445 _ACEOF
22446
22447
22448
22449 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
22450 # The cast to long int works around a bug in the HP C Compiler
22451 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22452 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22453 # This bug is HP SR number 8606223364.
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
22455 $as_echo_n "checking size of unsigned short... " >&6; }
22456 if ${ac_cv_sizeof_unsigned_short+:} false; then :
22457   $as_echo_n "(cached) " >&6
22458 else
22459   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
22460
22461 else
22462   if test "$ac_cv_type_unsigned_short" = yes; then
22463      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22465 as_fn_error 77 "cannot compute sizeof (unsigned short)
22466 See \`config.log' for more details" "$LINENO" 5; }
22467    else
22468      ac_cv_sizeof_unsigned_short=0
22469    fi
22470 fi
22471
22472 fi
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
22474 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
22475
22476
22477
22478 cat >>confdefs.h <<_ACEOF
22479 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
22480 _ACEOF
22481
22482
22483
22484 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
22485 # The cast to long int works around a bug in the HP C Compiler
22486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22488 # This bug is HP SR number 8606223364.
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
22490 $as_echo_n "checking size of signed int... " >&6; }
22491 if ${ac_cv_sizeof_signed_int+:} false; then :
22492   $as_echo_n "(cached) " >&6
22493 else
22494   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
22495
22496 else
22497   if test "$ac_cv_type_signed_int" = yes; then
22498      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22500 as_fn_error 77 "cannot compute sizeof (signed int)
22501 See \`config.log' for more details" "$LINENO" 5; }
22502    else
22503      ac_cv_sizeof_signed_int=0
22504    fi
22505 fi
22506
22507 fi
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
22509 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
22510
22511
22512
22513 cat >>confdefs.h <<_ACEOF
22514 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
22515 _ACEOF
22516
22517
22518
22519 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
22520 # The cast to long int works around a bug in the HP C Compiler
22521 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22522 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22523 # This bug is HP SR number 8606223364.
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
22525 $as_echo_n "checking size of unsigned int... " >&6; }
22526 if ${ac_cv_sizeof_unsigned_int+:} false; then :
22527   $as_echo_n "(cached) " >&6
22528 else
22529   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
22530
22531 else
22532   if test "$ac_cv_type_unsigned_int" = yes; then
22533      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22535 as_fn_error 77 "cannot compute sizeof (unsigned int)
22536 See \`config.log' for more details" "$LINENO" 5; }
22537    else
22538      ac_cv_sizeof_unsigned_int=0
22539    fi
22540 fi
22541
22542 fi
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
22544 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
22545
22546
22547
22548 cat >>confdefs.h <<_ACEOF
22549 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
22550 _ACEOF
22551
22552
22553
22554 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
22555 # The cast to long int works around a bug in the HP C Compiler
22556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22558 # This bug is HP SR number 8606223364.
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
22560 $as_echo_n "checking size of signed long... " >&6; }
22561 if ${ac_cv_sizeof_signed_long+:} false; then :
22562   $as_echo_n "(cached) " >&6
22563 else
22564   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
22565
22566 else
22567   if test "$ac_cv_type_signed_long" = yes; then
22568      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22570 as_fn_error 77 "cannot compute sizeof (signed long)
22571 See \`config.log' for more details" "$LINENO" 5; }
22572    else
22573      ac_cv_sizeof_signed_long=0
22574    fi
22575 fi
22576
22577 fi
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
22579 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
22580
22581
22582
22583 cat >>confdefs.h <<_ACEOF
22584 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
22585 _ACEOF
22586
22587
22588
22589 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
22590 # The cast to long int works around a bug in the HP C Compiler
22591 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22592 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22593 # This bug is HP SR number 8606223364.
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
22595 $as_echo_n "checking size of unsigned long... " >&6; }
22596 if ${ac_cv_sizeof_unsigned_long+:} false; then :
22597   $as_echo_n "(cached) " >&6
22598 else
22599   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
22600
22601 else
22602   if test "$ac_cv_type_unsigned_long" = yes; then
22603      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22605 as_fn_error 77 "cannot compute sizeof (unsigned long)
22606 See \`config.log' for more details" "$LINENO" 5; }
22607    else
22608      ac_cv_sizeof_unsigned_long=0
22609    fi
22610 fi
22611
22612 fi
22613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
22614 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22615
22616
22617
22618 cat >>confdefs.h <<_ACEOF
22619 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22620 _ACEOF
22621
22622
22623
22624 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.  If
22625 # 'signed long long' is not supported then the value defined is zero.
22626 # The cast to long int works around a bug in the HP C Compiler
22627 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22628 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22629 # This bug is HP SR number 8606223364.
22630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
22631 $as_echo_n "checking size of signed long long... " >&6; }
22632 if ${ac_cv_sizeof_signed_long_long+:} false; then :
22633   $as_echo_n "(cached) " >&6
22634 else
22635   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
22636
22637 else
22638   if test "$ac_cv_type_signed_long_long" = yes; then
22639      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22641 as_fn_error 77 "cannot compute sizeof (signed long long)
22642 See \`config.log' for more details" "$LINENO" 5; }
22643    else
22644      ac_cv_sizeof_signed_long_long=0
22645    fi
22646 fi
22647
22648 fi
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
22650 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
22651
22652
22653
22654 cat >>confdefs.h <<_ACEOF
22655 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
22656 _ACEOF
22657
22658
22659
22660 # Obtain size of a 'unsigned long long' and define as
22661 # SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
22662 # supported then the value defined is zero.
22663 # The cast to long int works around a bug in the HP C Compiler
22664 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22665 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22666 # This bug is HP SR number 8606223364.
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
22668 $as_echo_n "checking size of unsigned long long... " >&6; }
22669 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
22670   $as_echo_n "(cached) " >&6
22671 else
22672   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
22673
22674 else
22675   if test "$ac_cv_type_unsigned_long_long" = yes; then
22676      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22678 as_fn_error 77 "cannot compute sizeof (unsigned long long)
22679 See \`config.log' for more details" "$LINENO" 5; }
22680    else
22681      ac_cv_sizeof_unsigned_long_long=0
22682    fi
22683 fi
22684
22685 fi
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
22687 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22688
22689
22690
22691 cat >>confdefs.h <<_ACEOF
22692 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22693 _ACEOF
22694
22695
22696
22697 # Obtain size of off_t and define as SIZEOF_OFF_T
22698 # The cast to long int works around a bug in the HP C Compiler
22699 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22700 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22701 # This bug is HP SR number 8606223364.
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
22703 $as_echo_n "checking size of off_t... " >&6; }
22704 if ${ac_cv_sizeof_off_t+:} false; then :
22705   $as_echo_n "(cached) " >&6
22706 else
22707   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
22708
22709 else
22710   if test "$ac_cv_type_off_t" = yes; then
22711      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22713 as_fn_error 77 "cannot compute sizeof (off_t)
22714 See \`config.log' for more details" "$LINENO" 5; }
22715    else
22716      ac_cv_sizeof_off_t=0
22717    fi
22718 fi
22719
22720 fi
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
22722 $as_echo "$ac_cv_sizeof_off_t" >&6; }
22723
22724
22725
22726 cat >>confdefs.h <<_ACEOF
22727 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22728 _ACEOF
22729
22730
22731
22732 # Obtain size of size_t and define as SIZEOF_SIZE_T
22733 # The cast to long int works around a bug in the HP C Compiler
22734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22736 # This bug is HP SR number 8606223364.
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
22738 $as_echo_n "checking size of size_t... " >&6; }
22739 if ${ac_cv_sizeof_size_t+:} false; then :
22740   $as_echo_n "(cached) " >&6
22741 else
22742   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
22743
22744 else
22745   if test "$ac_cv_type_size_t" = yes; then
22746      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22748 as_fn_error 77 "cannot compute sizeof (size_t)
22749 See \`config.log' for more details" "$LINENO" 5; }
22750    else
22751      ac_cv_sizeof_size_t=0
22752    fi
22753 fi
22754
22755 fi
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
22757 $as_echo "$ac_cv_sizeof_size_t" >&6; }
22758
22759
22760
22761 cat >>confdefs.h <<_ACEOF
22762 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22763 _ACEOF
22764
22765
22766
22767 # Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22768 # The cast to long int works around a bug in the HP C Compiler
22769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22771 # This bug is HP SR number 8606223364.
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22773 $as_echo_n "checking size of ssize_t... " >&6; }
22774 if ${ac_cv_sizeof_ssize_t+:} false; then :
22775   $as_echo_n "(cached) " >&6
22776 else
22777   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
22778
22779 else
22780   if test "$ac_cv_type_ssize_t" = yes; then
22781      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22783 as_fn_error 77 "cannot compute sizeof (ssize_t)
22784 See \`config.log' for more details" "$LINENO" 5; }
22785    else
22786      ac_cv_sizeof_ssize_t=0
22787    fi
22788 fi
22789
22790 fi
22791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22792 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22793
22794
22795
22796 cat >>confdefs.h <<_ACEOF
22797 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22798 _ACEOF
22799
22800
22801
22802 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22803 # The cast to long int works around a bug in the HP C Compiler
22804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22806 # This bug is HP SR number 8606223364.
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
22808 $as_echo_n "checking size of unsigned int*... " >&6; }
22809 if ${ac_cv_sizeof_unsigned_intp+:} false; then :
22810   $as_echo_n "(cached) " >&6
22811 else
22812   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp"        "$ac_includes_default"; then :
22813
22814 else
22815   if test "$ac_cv_type_unsigned_intp" = yes; then
22816      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22818 as_fn_error 77 "cannot compute sizeof (unsigned int*)
22819 See \`config.log' for more details" "$LINENO" 5; }
22820    else
22821      ac_cv_sizeof_unsigned_intp=0
22822    fi
22823 fi
22824
22825 fi
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
22827 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22828
22829
22830
22831 cat >>confdefs.h <<_ACEOF
22832 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22833 _ACEOF
22834
22835
22836
22837 #
22838 # Compute sized types for current CPU and compiler options.
22839 #
22840
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
22842 $as_echo_n "checking for signed 8-bit type... " >&6; }
22843 INT8_T='signed char'
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
22845 $as_echo "$INT8_T" >&6; }
22846
22847
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
22849 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
22850 UINT8_T='unsigned char'
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
22852 $as_echo "$UINT8_T" >&6; }
22853
22854
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
22856 $as_echo_n "checking for signed 16-bit type... " >&6; }
22857 INT16_T='signed short'
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
22859 $as_echo "$INT16_T" >&6; }
22860
22861
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
22863 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
22864 UINT16_T='unsigned short'
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
22866 $as_echo "$UINT16_T" >&6; }
22867
22868
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
22870 $as_echo_n "checking for signed 32-bit type... " >&6; }
22871 INT32_T='none'
22872 if test $ac_cv_sizeof_signed_int -eq 4; then
22873   INT32_T='signed int'
22874 elif test $ac_cv_sizeof_signed_long -eq 4; then
22875   INT32_T='signed long'
22876 fi
22877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
22878 $as_echo "$INT32_T" >&6; }
22879
22880
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
22882 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
22883 UINT32_T='none'
22884 if test $ac_cv_sizeof_unsigned_int -eq 4; then
22885   UINT32_T='unsigned int'
22886 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22887   UINT32_T='unsigned long'
22888 fi
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
22890 $as_echo "$UINT32_T" >&6; }
22891
22892
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
22894 $as_echo_n "checking for signed 64-bit type... " >&6; }
22895 INT64_T='none'
22896 if test $ac_cv_sizeof_signed_long -eq 8; then
22897   INT64_T='signed long'
22898 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22899   INT64_T='signed long long'
22900 fi
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
22902 $as_echo "$INT64_T" >&6; }
22903
22904
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
22906 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
22907 UINT64_T='none'
22908 if test $ac_cv_sizeof_unsigned_long -eq 8; then
22909   UINT64_T='unsigned long'
22910 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22911   UINT64_T='unsigned long long'
22912 fi
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
22914 $as_echo "$UINT64_T" >&6; }
22915
22916
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
22918 $as_echo_n "checking for unsigned maximum type... " >&6; }
22919 UINTMAX_T='none'
22920 if test "$UINT64_T" != 'none'; then
22921   UINTMAX_T=$UINT64_T
22922 elif test "$UINT32_T" != 'none'; then
22923   UINTMAX_T=$UINT32_T
22924 fi
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
22926 $as_echo "$UINTMAX_T" >&6; }
22927
22928
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
22930 $as_echo_n "checking for pointer difference type... " >&6; }
22931 UINTPTR_T='none'
22932 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22933   UINTPTR_T='unsigned long'
22934 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22935   UINTPTR_T='unsigned long long'
22936 fi
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
22938 $as_echo "$UINTPTR_T" >&6; }
22939
22940
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
22942 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
22943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22944 /* end confdefs.h.  */
22945
22946 int
22947 main ()
22948 {
22949 { const char *func = __func__; return(func != 0 ? 0 : 1); }
22950   ;
22951   return 0;
22952 }
22953 _ACEOF
22954 if ac_fn_c_try_compile "$LINENO"; then :
22955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22956 $as_echo "yes" >&6; }
22957 else
22958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22959 $as_echo "no" >&6; }
22960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
22961 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
22962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22963 /* end confdefs.h.  */
22964
22965 int
22966 main ()
22967 {
22968 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22969   ;
22970   return 0;
22971 }
22972 _ACEOF
22973 if ac_fn_c_try_compile "$LINENO"; then :
22974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22975 $as_echo "yes" >&6; }
22976
22977 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
22978
22979 else
22980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22981 $as_echo "no" >&6; }
22982
22983 $as_echo "#define __func__ __FILE__" >>confdefs.h
22984
22985 fi
22986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22987 fi
22988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22989
22990 ########
22991 #
22992 # Check for functions
22993 #
22994 ########
22995 for ac_header in stdlib.h unistd.h
22996 do :
22997   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22998 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22999 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23000   cat >>confdefs.h <<_ACEOF
23001 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23002 _ACEOF
23003
23004 fi
23005
23006 done
23007
23008 for ac_func in getpagesize
23009 do :
23010   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
23011 if test "x$ac_cv_func_getpagesize" = xyes; then :
23012   cat >>confdefs.h <<_ACEOF
23013 #define HAVE_GETPAGESIZE 1
23014 _ACEOF
23015
23016 fi
23017 done
23018
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23020 $as_echo_n "checking for working mmap file i/o... " >&6; }
23021 if ${magick_cv_func_mmap_fileio+:} false; then :
23022   $as_echo_n "(cached) " >&6
23023 else
23024   if test "$cross_compiling" = yes; then :
23025   magick_cv_func_mmap_fileio=no
23026 else
23027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23028 /* end confdefs.h.  */
23029 $ac_includes_default
23030 /* malloc might have been renamed as rpl_malloc. */
23031 #undef malloc
23032
23033 /*
23034    This test is derived from GNU Autoconf's similar macro.
23035    The purpose of this test is to verify that files may be memory
23036    mapped, and that memory mapping and file I/O are coherent.
23037
23038    The test creates a test file, memory maps the file, updates
23039    the file using the memory map, and then reads the file using
23040    file I/O to verify that the file contains the updates.
23041 */
23042
23043 #include <fcntl.h>
23044 #include <sys/mman.h>
23045
23046 #if !STDC_HEADERS && !HAVE_STDLIB_H
23047 char *malloc ();
23048 #endif
23049
23050 /* This mess was copied from the GNU getpagesize.h.  */
23051 #if !HAVE_GETPAGESIZE
23052 /* Assume that all systems that can run configure have sys/param.h.  */
23053 # if !HAVE_SYS_PARAM_H
23054 #  define HAVE_SYS_PARAM_H 1
23055 # endif
23056
23057 # ifdef _SC_PAGESIZE
23058 #  define getpagesize() sysconf(_SC_PAGESIZE)
23059 # else /* no _SC_PAGESIZE */
23060 #  if HAVE_SYS_PARAM_H
23061 #   include <sys/param.h>
23062 #   ifdef EXEC_PAGESIZE
23063 #    define getpagesize() EXEC_PAGESIZE
23064 #   else /* no EXEC_PAGESIZE */
23065 #    ifdef NBPG
23066 #     define getpagesize() NBPG * CLSIZE
23067 #     ifndef CLSIZE
23068 #      define CLSIZE 1
23069 #     endif /* no CLSIZE */
23070 #    else /* no NBPG */
23071 #     ifdef NBPC
23072 #      define getpagesize() NBPC
23073 #     else /* no NBPC */
23074 #      ifdef PAGESIZE
23075 #       define getpagesize() PAGESIZE
23076 #      endif /* PAGESIZE */
23077 #     endif /* no NBPC */
23078 #    endif /* no NBPG */
23079 #   endif /* no EXEC_PAGESIZE */
23080 #  else /* no HAVE_SYS_PARAM_H */
23081 #   define getpagesize() 8192   /* punt totally */
23082 #  endif /* no HAVE_SYS_PARAM_H */
23083 # endif /* no _SC_PAGESIZE */
23084
23085 #endif /* no HAVE_GETPAGESIZE */
23086
23087 int
23088 main ()
23089 {
23090   char *data, *data2, *data3;
23091   int i, pagesize;
23092   int fd;
23093
23094   pagesize = getpagesize ();
23095
23096   /* First, make a file with some known garbage in it. */
23097   data = (char *) malloc (pagesize);
23098   if (!data)
23099     exit (1);
23100   for (i = 0; i < pagesize; ++i)
23101     *(data + i) = rand ();
23102   umask (0);
23103   fd = creat ("conftest.mmap", 0600);
23104   if (fd < 0)
23105     exit (1);
23106   if (write (fd, data, pagesize) != pagesize)
23107     exit (1);
23108   close (fd);
23109
23110   /* Mmap the file as read/write/shared and verify that we see the
23111   same garbage. */
23112   fd = open ("conftest.mmap", O_RDWR);
23113   if (fd < 0)
23114     exit (1);
23115   data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23116   if (data2 == 0)
23117     exit (1);
23118   for (i = 0; i < pagesize; ++i)
23119     if (*(data + i) != *(data2 + i))
23120       exit (1);
23121
23122   /* Finally, make sure that changes to the mapped area
23123      percolate back to the file as seen by read().  */
23124   for (i = 0; i < pagesize; ++i)
23125     *(data2 + i) = *(data2 + i) + 1;
23126   data3 = (char *) malloc (pagesize);
23127   if (!data3)
23128     exit (1);
23129   if (read (fd, data3, pagesize) != pagesize)
23130     exit (1);
23131   for (i = 0; i < pagesize; ++i)
23132     if (*(data2 + i) != *(data3 + i))
23133       exit (1);
23134   close (fd);
23135   exit (0);
23136 }
23137 _ACEOF
23138 if ac_fn_c_try_run "$LINENO"; then :
23139   magick_cv_func_mmap_fileio=yes
23140 else
23141   magick_cv_func_mmap_fileio=no
23142 fi
23143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23144   conftest.$ac_objext conftest.beam conftest.$ac_ext
23145 fi
23146
23147 fi
23148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23149 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
23150 if test $magick_cv_func_mmap_fileio = yes; then
23151
23152 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23153
23154 fi
23155 rm -f conftest.mmap
23156
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
23158 $as_echo_n "checking whether closedir returns void... " >&6; }
23159 if ${ac_cv_func_closedir_void+:} false; then :
23160   $as_echo_n "(cached) " >&6
23161 else
23162   if test "$cross_compiling" = yes; then :
23163   ac_cv_func_closedir_void=yes
23164 else
23165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23166 /* end confdefs.h.  */
23167 $ac_includes_default
23168 #include <$ac_header_dirent>
23169 #ifndef __cplusplus
23170 int closedir ();
23171 #endif
23172
23173 int
23174 main ()
23175 {
23176 return closedir (opendir (".")) != 0;
23177   ;
23178   return 0;
23179 }
23180 _ACEOF
23181 if ac_fn_c_try_run "$LINENO"; then :
23182   ac_cv_func_closedir_void=no
23183 else
23184   ac_cv_func_closedir_void=yes
23185 fi
23186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23187   conftest.$ac_objext conftest.beam conftest.$ac_ext
23188 fi
23189
23190 fi
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
23192 $as_echo "$ac_cv_func_closedir_void" >&6; }
23193 if test $ac_cv_func_closedir_void = yes; then
23194
23195 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
23196
23197 fi
23198
23199
23200
23201
23202   for ac_header in $ac_header_list
23203 do :
23204   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23205 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23206 "
23207 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23208   cat >>confdefs.h <<_ACEOF
23209 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23210 _ACEOF
23211
23212 fi
23213
23214 done
23215
23216
23217
23218
23219
23220
23221
23222
23223 for ac_func in getpagesize
23224 do :
23225   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
23226 if test "x$ac_cv_func_getpagesize" = xyes; then :
23227   cat >>confdefs.h <<_ACEOF
23228 #define HAVE_GETPAGESIZE 1
23229 _ACEOF
23230
23231 fi
23232 done
23233
23234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
23235 $as_echo_n "checking for working mmap... " >&6; }
23236 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
23237   $as_echo_n "(cached) " >&6
23238 else
23239   if test "$cross_compiling" = yes; then :
23240   ac_cv_func_mmap_fixed_mapped=no
23241 else
23242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23243 /* end confdefs.h.  */
23244 $ac_includes_default
23245 /* malloc might have been renamed as rpl_malloc. */
23246 #undef malloc
23247
23248 /* Thanks to Mike Haertel and Jim Avera for this test.
23249    Here is a matrix of mmap possibilities:
23250         mmap private not fixed
23251         mmap private fixed at somewhere currently unmapped
23252         mmap private fixed at somewhere already mapped
23253         mmap shared not fixed
23254         mmap shared fixed at somewhere currently unmapped
23255         mmap shared fixed at somewhere already mapped
23256    For private mappings, we should verify that changes cannot be read()
23257    back from the file, nor mmap's back from the file at a different
23258    address.  (There have been systems where private was not correctly
23259    implemented like the infamous i386 svr4.0, and systems where the
23260    VM page cache was not coherent with the file system buffer cache
23261    like early versions of FreeBSD and possibly contemporary NetBSD.)
23262    For shared mappings, we should conversely verify that changes get
23263    propagated back to all the places they're supposed to be.
23264
23265    Grep wants private fixed already mapped.
23266    The main things grep needs to know about mmap are:
23267    * does it exist and is it safe to write into the mmap'd area
23268    * how to use it (BSD variants)  */
23269
23270 #include <fcntl.h>
23271 #include <sys/mman.h>
23272
23273 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23274 char *malloc ();
23275 #endif
23276
23277 /* This mess was copied from the GNU getpagesize.h.  */
23278 #ifndef HAVE_GETPAGESIZE
23279 # ifdef _SC_PAGESIZE
23280 #  define getpagesize() sysconf(_SC_PAGESIZE)
23281 # else /* no _SC_PAGESIZE */
23282 #  ifdef HAVE_SYS_PARAM_H
23283 #   include <sys/param.h>
23284 #   ifdef EXEC_PAGESIZE
23285 #    define getpagesize() EXEC_PAGESIZE
23286 #   else /* no EXEC_PAGESIZE */
23287 #    ifdef NBPG
23288 #     define getpagesize() NBPG * CLSIZE
23289 #     ifndef CLSIZE
23290 #      define CLSIZE 1
23291 #     endif /* no CLSIZE */
23292 #    else /* no NBPG */
23293 #     ifdef NBPC
23294 #      define getpagesize() NBPC
23295 #     else /* no NBPC */
23296 #      ifdef PAGESIZE
23297 #       define getpagesize() PAGESIZE
23298 #      endif /* PAGESIZE */
23299 #     endif /* no NBPC */
23300 #    endif /* no NBPG */
23301 #   endif /* no EXEC_PAGESIZE */
23302 #  else /* no HAVE_SYS_PARAM_H */
23303 #   define getpagesize() 8192   /* punt totally */
23304 #  endif /* no HAVE_SYS_PARAM_H */
23305 # endif /* no _SC_PAGESIZE */
23306
23307 #endif /* no HAVE_GETPAGESIZE */
23308
23309 int
23310 main ()
23311 {
23312   char *data, *data2, *data3;
23313   const char *cdata2;
23314   int i, pagesize;
23315   int fd, fd2;
23316
23317   pagesize = getpagesize ();
23318
23319   /* First, make a file with some known garbage in it. */
23320   data = (char *) malloc (pagesize);
23321   if (!data)
23322     return 1;
23323   for (i = 0; i < pagesize; ++i)
23324     *(data + i) = rand ();
23325   umask (0);
23326   fd = creat ("conftest.mmap", 0600);
23327   if (fd < 0)
23328     return 2;
23329   if (write (fd, data, pagesize) != pagesize)
23330     return 3;
23331   close (fd);
23332
23333   /* Next, check that the tail of a page is zero-filled.  File must have
23334      non-zero length, otherwise we risk SIGBUS for entire page.  */
23335   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
23336   if (fd2 < 0)
23337     return 4;
23338   cdata2 = "";
23339   if (write (fd2, cdata2, 1) != 1)
23340     return 5;
23341   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
23342   if (data2 == MAP_FAILED)
23343     return 6;
23344   for (i = 0; i < pagesize; ++i)
23345     if (*(data2 + i))
23346       return 7;
23347   close (fd2);
23348   if (munmap (data2, pagesize))
23349     return 8;
23350
23351   /* Next, try to mmap the file at a fixed address which already has
23352      something else allocated at it.  If we can, also make sure that
23353      we see the same garbage.  */
23354   fd = open ("conftest.mmap", O_RDWR);
23355   if (fd < 0)
23356     return 9;
23357   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23358                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
23359     return 10;
23360   for (i = 0; i < pagesize; ++i)
23361     if (*(data + i) != *(data2 + i))
23362       return 11;
23363
23364   /* Finally, make sure that changes to the mapped area do not
23365      percolate back to the file as seen by read().  (This is a bug on
23366      some variants of i386 svr4.0.)  */
23367   for (i = 0; i < pagesize; ++i)
23368     *(data2 + i) = *(data2 + i) + 1;
23369   data3 = (char *) malloc (pagesize);
23370   if (!data3)
23371     return 12;
23372   if (read (fd, data3, pagesize) != pagesize)
23373     return 13;
23374   for (i = 0; i < pagesize; ++i)
23375     if (*(data + i) != *(data3 + i))
23376       return 14;
23377   close (fd);
23378   return 0;
23379 }
23380 _ACEOF
23381 if ac_fn_c_try_run "$LINENO"; then :
23382   ac_cv_func_mmap_fixed_mapped=yes
23383 else
23384   ac_cv_func_mmap_fixed_mapped=no
23385 fi
23386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23387   conftest.$ac_objext conftest.beam conftest.$ac_ext
23388 fi
23389
23390 fi
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
23392 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
23393 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23394
23395 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
23396
23397 fi
23398 rm -f conftest.mmap conftest.txt
23399
23400 for ac_header in vfork.h
23401 do :
23402   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
23403 if test "x$ac_cv_header_vfork_h" = xyes; then :
23404   cat >>confdefs.h <<_ACEOF
23405 #define HAVE_VFORK_H 1
23406 _ACEOF
23407
23408 fi
23409
23410 done
23411
23412 for ac_func in fork vfork
23413 do :
23414   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23415 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23416 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23417   cat >>confdefs.h <<_ACEOF
23418 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23419 _ACEOF
23420
23421 fi
23422 done
23423
23424 if test "x$ac_cv_func_fork" = xyes; then
23425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
23426 $as_echo_n "checking for working fork... " >&6; }
23427 if ${ac_cv_func_fork_works+:} false; then :
23428   $as_echo_n "(cached) " >&6
23429 else
23430   if test "$cross_compiling" = yes; then :
23431   ac_cv_func_fork_works=cross
23432 else
23433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23434 /* end confdefs.h.  */
23435 $ac_includes_default
23436 int
23437 main ()
23438 {
23439
23440           /* By Ruediger Kuhlmann. */
23441           return fork () < 0;
23442
23443   ;
23444   return 0;
23445 }
23446 _ACEOF
23447 if ac_fn_c_try_run "$LINENO"; then :
23448   ac_cv_func_fork_works=yes
23449 else
23450   ac_cv_func_fork_works=no
23451 fi
23452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23453   conftest.$ac_objext conftest.beam conftest.$ac_ext
23454 fi
23455
23456 fi
23457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
23458 $as_echo "$ac_cv_func_fork_works" >&6; }
23459
23460 else
23461   ac_cv_func_fork_works=$ac_cv_func_fork
23462 fi
23463 if test "x$ac_cv_func_fork_works" = xcross; then
23464   case $host in
23465     *-*-amigaos* | *-*-msdosdjgpp*)
23466       # Override, as these systems have only a dummy fork() stub
23467       ac_cv_func_fork_works=no
23468       ;;
23469     *)
23470       ac_cv_func_fork_works=yes
23471       ;;
23472   esac
23473   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23474 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23475 fi
23476 ac_cv_func_vfork_works=$ac_cv_func_vfork
23477 if test "x$ac_cv_func_vfork" = xyes; then
23478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
23479 $as_echo_n "checking for working vfork... " >&6; }
23480 if ${ac_cv_func_vfork_works+:} false; then :
23481   $as_echo_n "(cached) " >&6
23482 else
23483   if test "$cross_compiling" = yes; then :
23484   ac_cv_func_vfork_works=cross
23485 else
23486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23487 /* end confdefs.h.  */
23488 /* Thanks to Paul Eggert for this test.  */
23489 $ac_includes_default
23490 #include <sys/wait.h>
23491 #ifdef HAVE_VFORK_H
23492 # include <vfork.h>
23493 #endif
23494 /* On some sparc systems, changes by the child to local and incoming
23495    argument registers are propagated back to the parent.  The compiler
23496    is told about this with #include <vfork.h>, but some compilers
23497    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
23498    static variable whose address is put into a register that is
23499    clobbered by the vfork.  */
23500 static void
23501 #ifdef __cplusplus
23502 sparc_address_test (int arg)
23503 # else
23504 sparc_address_test (arg) int arg;
23505 #endif
23506 {
23507   static pid_t child;
23508   if (!child) {
23509     child = vfork ();
23510     if (child < 0) {
23511       perror ("vfork");
23512       _exit(2);
23513     }
23514     if (!child) {
23515       arg = getpid();
23516       write(-1, "", 0);
23517       _exit (arg);
23518     }
23519   }
23520 }
23521
23522 int
23523 main ()
23524 {
23525   pid_t parent = getpid ();
23526   pid_t child;
23527
23528   sparc_address_test (0);
23529
23530   child = vfork ();
23531
23532   if (child == 0) {
23533     /* Here is another test for sparc vfork register problems.  This
23534        test uses lots of local variables, at least as many local
23535        variables as main has allocated so far including compiler
23536        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
23537        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
23538        reuse the register of parent for one of the local variables,
23539        since it will think that parent can't possibly be used any more
23540        in this routine.  Assigning to the local variable will thus
23541        munge parent in the parent process.  */
23542     pid_t
23543       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23544       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23545     /* Convince the compiler that p..p7 are live; otherwise, it might
23546        use the same hardware register for all 8 local variables.  */
23547     if (p != p1 || p != p2 || p != p3 || p != p4
23548         || p != p5 || p != p6 || p != p7)
23549       _exit(1);
23550
23551     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23552        from child file descriptors.  If the child closes a descriptor
23553        before it execs or exits, this munges the parent's descriptor
23554        as well.  Test for this by closing stdout in the child.  */
23555     _exit(close(fileno(stdout)) != 0);
23556   } else {
23557     int status;
23558     struct stat st;
23559
23560     while (wait(&status) != child)
23561       ;
23562     return (
23563          /* Was there some problem with vforking?  */
23564          child < 0
23565
23566          /* Did the child fail?  (This shouldn't happen.)  */
23567          || status
23568
23569          /* Did the vfork/compiler bug occur?  */
23570          || parent != getpid()
23571
23572          /* Did the file descriptor bug occur?  */
23573          || fstat(fileno(stdout), &st) != 0
23574          );
23575   }
23576 }
23577 _ACEOF
23578 if ac_fn_c_try_run "$LINENO"; then :
23579   ac_cv_func_vfork_works=yes
23580 else
23581   ac_cv_func_vfork_works=no
23582 fi
23583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23584   conftest.$ac_objext conftest.beam conftest.$ac_ext
23585 fi
23586
23587 fi
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
23589 $as_echo "$ac_cv_func_vfork_works" >&6; }
23590
23591 fi;
23592 if test "x$ac_cv_func_fork_works" = xcross; then
23593   ac_cv_func_vfork_works=$ac_cv_func_vfork
23594   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23595 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23596 fi
23597
23598 if test "x$ac_cv_func_vfork_works" = xyes; then
23599
23600 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
23601
23602 else
23603
23604 $as_echo "#define vfork fork" >>confdefs.h
23605
23606 fi
23607 if test "x$ac_cv_func_fork_works" = xyes; then
23608
23609 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
23610
23611 fi
23612
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
23614 $as_echo_n "checking for working memcmp... " >&6; }
23615 if ${ac_cv_func_memcmp_working+:} false; then :
23616   $as_echo_n "(cached) " >&6
23617 else
23618   if test "$cross_compiling" = yes; then :
23619   ac_cv_func_memcmp_working=no
23620 else
23621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23622 /* end confdefs.h.  */
23623 $ac_includes_default
23624 int
23625 main ()
23626 {
23627
23628   /* Some versions of memcmp are not 8-bit clean.  */
23629   char c0 = '\100', c1 = '\200', c2 = '\201';
23630   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23631     return 1;
23632
23633   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23634      or more and with at least one buffer not starting on a 4-byte boundary.
23635      William Lewis provided this test program.   */
23636   {
23637     char foo[21];
23638     char bar[21];
23639     int i;
23640     for (i = 0; i < 4; i++)
23641       {
23642         char *a = foo + i;
23643         char *b = bar + i;
23644         strcpy (a, "--------01111111");
23645         strcpy (b, "--------10000000");
23646         if (memcmp (a, b, 16) >= 0)
23647           return 1;
23648       }
23649     return 0;
23650   }
23651
23652   ;
23653   return 0;
23654 }
23655 _ACEOF
23656 if ac_fn_c_try_run "$LINENO"; then :
23657   ac_cv_func_memcmp_working=yes
23658 else
23659   ac_cv_func_memcmp_working=no
23660 fi
23661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23662   conftest.$ac_objext conftest.beam conftest.$ac_ext
23663 fi
23664
23665 fi
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
23667 $as_echo "$ac_cv_func_memcmp_working" >&6; }
23668 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23669   *" memcmp.$ac_objext "* ) ;;
23670   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23671  ;;
23672 esac
23673
23674
23675 for ac_header in sys/select.h sys/socket.h
23676 do :
23677   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23678 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23679 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23680   cat >>confdefs.h <<_ACEOF
23681 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23682 _ACEOF
23683
23684 fi
23685
23686 done
23687
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
23689 $as_echo_n "checking types of arguments for select... " >&6; }
23690 if ${ac_cv_func_select_args+:} false; then :
23691   $as_echo_n "(cached) " >&6
23692 else
23693   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23694  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23695   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
23696    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23697 /* end confdefs.h.  */
23698 $ac_includes_default
23699 #ifdef HAVE_SYS_SELECT_H
23700 # include <sys/select.h>
23701 #endif
23702 #ifdef HAVE_SYS_SOCKET_H
23703 # include <sys/socket.h>
23704 #endif
23705
23706 int
23707 main ()
23708 {
23709 extern int select ($ac_arg1,
23710                                             $ac_arg234, $ac_arg234, $ac_arg234,
23711                                             $ac_arg5);
23712   ;
23713   return 0;
23714 }
23715 _ACEOF
23716 if ac_fn_c_try_compile "$LINENO"; then :
23717   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
23718 fi
23719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23720   done
23721  done
23722 done
23723 # Provide a safe default value.
23724 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
23725
23726 fi
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
23728 $as_echo "$ac_cv_func_select_args" >&6; }
23729 ac_save_IFS=$IFS; IFS=','
23730 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23731 IFS=$ac_save_IFS
23732 shift
23733
23734 cat >>confdefs.h <<_ACEOF
23735 #define SELECT_TYPE_ARG1 $1
23736 _ACEOF
23737
23738
23739 cat >>confdefs.h <<_ACEOF
23740 #define SELECT_TYPE_ARG234 ($2)
23741 _ACEOF
23742
23743
23744 cat >>confdefs.h <<_ACEOF
23745 #define SELECT_TYPE_ARG5 ($3)
23746 _ACEOF
23747
23748 rm -f conftest*
23749
23750 if ${ac_cv_func_setvbuf_reversed+:} false; then :
23751   $as_echo_n "(cached) " >&6
23752 else
23753   ac_cv_func_setvbuf_reversed=no
23754 fi
23755
23756
23757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
23758 $as_echo_n "checking return type of signal handlers... " >&6; }
23759 if ${ac_cv_type_signal+:} false; then :
23760   $as_echo_n "(cached) " >&6
23761 else
23762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23763 /* end confdefs.h.  */
23764 #include <sys/types.h>
23765 #include <signal.h>
23766
23767 int
23768 main ()
23769 {
23770 return *(signal (0, 0)) (0) == 1;
23771   ;
23772   return 0;
23773 }
23774 _ACEOF
23775 if ac_fn_c_try_compile "$LINENO"; then :
23776   ac_cv_type_signal=int
23777 else
23778   ac_cv_type_signal=void
23779 fi
23780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23781 fi
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
23783 $as_echo "$ac_cv_type_signal" >&6; }
23784
23785 cat >>confdefs.h <<_ACEOF
23786 #define RETSIGTYPE $ac_cv_type_signal
23787 _ACEOF
23788
23789
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
23791 $as_echo_n "checking for working strtod... " >&6; }
23792 if ${ac_cv_func_strtod+:} false; then :
23793   $as_echo_n "(cached) " >&6
23794 else
23795   if test "$cross_compiling" = yes; then :
23796   ac_cv_func_strtod=no
23797 else
23798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23799 /* end confdefs.h.  */
23800
23801 $ac_includes_default
23802 #ifndef strtod
23803 double strtod ();
23804 #endif
23805 int
23806 main()
23807 {
23808   {
23809     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
23810     char *string = " +69";
23811     char *term;
23812     double value;
23813     value = strtod (string, &term);
23814     if (value != 69 || term != (string + 4))
23815       return 1;
23816   }
23817
23818   {
23819     /* Under Solaris 2.4, strtod returns the wrong value for the
23820        terminating character under some conditions.  */
23821     char *string = "NaN";
23822     char *term;
23823     strtod (string, &term);
23824     if (term != string && *(term - 1) == 0)
23825       return 1;
23826   }
23827   return 0;
23828 }
23829
23830 _ACEOF
23831 if ac_fn_c_try_run "$LINENO"; then :
23832   ac_cv_func_strtod=yes
23833 else
23834   ac_cv_func_strtod=no
23835 fi
23836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23837   conftest.$ac_objext conftest.beam conftest.$ac_ext
23838 fi
23839
23840 fi
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
23842 $as_echo "$ac_cv_func_strtod" >&6; }
23843 if test $ac_cv_func_strtod = no; then
23844   case " $LIBOBJS " in
23845   *" strtod.$ac_objext "* ) ;;
23846   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23847  ;;
23848 esac
23849
23850 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23851 if test "x$ac_cv_func_pow" = xyes; then :
23852
23853 fi
23854
23855 if test $ac_cv_func_pow = no; then
23856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
23857 $as_echo_n "checking for pow in -lm... " >&6; }
23858 if ${ac_cv_lib_m_pow+:} false; then :
23859   $as_echo_n "(cached) " >&6
23860 else
23861   ac_check_lib_save_LIBS=$LIBS
23862 LIBS="-lm  $LIBS"
23863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23864 /* end confdefs.h.  */
23865
23866 /* Override any GCC internal prototype to avoid an error.
23867    Use char because int might match the return type of a GCC
23868    builtin and then its argument prototype would still apply.  */
23869 #ifdef __cplusplus
23870 extern "C"
23871 #endif
23872 char pow ();
23873 int
23874 main ()
23875 {
23876 return pow ();
23877   ;
23878   return 0;
23879 }
23880 _ACEOF
23881 if ac_fn_c_try_link "$LINENO"; then :
23882   ac_cv_lib_m_pow=yes
23883 else
23884   ac_cv_lib_m_pow=no
23885 fi
23886 rm -f core conftest.err conftest.$ac_objext \
23887     conftest$ac_exeext conftest.$ac_ext
23888 LIBS=$ac_check_lib_save_LIBS
23889 fi
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
23891 $as_echo "$ac_cv_lib_m_pow" >&6; }
23892 if test "x$ac_cv_lib_m_pow" = xyes; then :
23893   POW_LIB=-lm
23894 else
23895   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
23896 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23897 fi
23898
23899 fi
23900
23901 fi
23902
23903 for ac_func in vprintf
23904 do :
23905   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23906 if test "x$ac_cv_func_vprintf" = xyes; then :
23907   cat >>confdefs.h <<_ACEOF
23908 #define HAVE_VPRINTF 1
23909 _ACEOF
23910
23911 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23912 if test "x$ac_cv_func__doprnt" = xyes; then :
23913
23914 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23915
23916 fi
23917
23918 fi
23919 done
23920
23921
23922
23923 #
23924 # Find math library
23925 #
23926 MATH_LIBS=''
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23928 $as_echo_n "checking for sqrt in -lm... " >&6; }
23929 if ${ac_cv_lib_m_sqrt+:} false; then :
23930   $as_echo_n "(cached) " >&6
23931 else
23932   ac_check_lib_save_LIBS=$LIBS
23933 LIBS="-lm  $LIBS"
23934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23935 /* end confdefs.h.  */
23936
23937 /* Override any GCC internal prototype to avoid an error.
23938    Use char because int might match the return type of a GCC
23939    builtin and then its argument prototype would still apply.  */
23940 #ifdef __cplusplus
23941 extern "C"
23942 #endif
23943 char sqrt ();
23944 int
23945 main ()
23946 {
23947 return sqrt ();
23948   ;
23949   return 0;
23950 }
23951 _ACEOF
23952 if ac_fn_c_try_link "$LINENO"; then :
23953   ac_cv_lib_m_sqrt=yes
23954 else
23955   ac_cv_lib_m_sqrt=no
23956 fi
23957 rm -f core conftest.err conftest.$ac_objext \
23958     conftest$ac_exeext conftest.$ac_ext
23959 LIBS=$ac_check_lib_save_LIBS
23960 fi
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23962 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
23963 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
23964   MATH_LIBS="-lm"
23965 fi
23966
23967 LIBS="$MATH_LIBS $LIBS"
23968
23969
23970 for ac_func in 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 _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 strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
23971 do :
23972   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23973 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23974 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23975   cat >>confdefs.h <<_ACEOF
23976 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23977 _ACEOF
23978
23979 fi
23980 done
23981
23982
23983 #
23984 # Check for clock_gettime().
23985 #
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
23987 $as_echo_n "checking for library containing clock_gettime... " >&6; }
23988 if ${ac_cv_search_clock_gettime+:} false; then :
23989   $as_echo_n "(cached) " >&6
23990 else
23991   ac_func_search_save_LIBS=$LIBS
23992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23993 /* end confdefs.h.  */
23994
23995 /* Override any GCC internal prototype to avoid an error.
23996    Use char because int might match the return type of a GCC
23997    builtin and then its argument prototype would still apply.  */
23998 #ifdef __cplusplus
23999 extern "C"
24000 #endif
24001 char clock_gettime ();
24002 int
24003 main ()
24004 {
24005 return clock_gettime ();
24006   ;
24007   return 0;
24008 }
24009 _ACEOF
24010 for ac_lib in '' rt; do
24011   if test -z "$ac_lib"; then
24012     ac_res="none required"
24013   else
24014     ac_res=-l$ac_lib
24015     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24016   fi
24017   if ac_fn_c_try_link "$LINENO"; then :
24018   ac_cv_search_clock_gettime=$ac_res
24019 fi
24020 rm -f core conftest.err conftest.$ac_objext \
24021     conftest$ac_exeext
24022   if ${ac_cv_search_clock_gettime+:} false; then :
24023   break
24024 fi
24025 done
24026 if ${ac_cv_search_clock_gettime+:} false; then :
24027
24028 else
24029   ac_cv_search_clock_gettime=no
24030 fi
24031 rm conftest.$ac_ext
24032 LIBS=$ac_func_search_save_LIBS
24033 fi
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
24035 $as_echo "$ac_cv_search_clock_gettime" >&6; }
24036 ac_res=$ac_cv_search_clock_gettime
24037 if test "$ac_res" != no; then :
24038   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24039
24040
24041 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
24042
24043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
24044 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
24045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24046 /* end confdefs.h.  */
24047
24048     #include <time.h>
24049 int
24050 main ()
24051 {
24052 clockid_t clockType = CLOCK_REALTIME;
24053   ;
24054   return 0;
24055 }
24056 _ACEOF
24057 if ac_fn_c_try_compile "$LINENO"; then :
24058
24059         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24060 $as_echo "yes" >&6; }
24061
24062 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
24063
24064
24065 else
24066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24067 $as_echo "no" >&6; }
24068
24069 fi
24070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24071
24072 else
24073
24074     for ac_func in gettimeofday ftime
24075 do :
24076   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24077 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24078 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24079   cat >>confdefs.h <<_ACEOF
24080 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24081 _ACEOF
24082  break
24083 fi
24084 done
24085
24086
24087
24088 fi
24089
24090
24091 ########
24092 #
24093 # Check for function prototypes
24094 #
24095 ########
24096
24097 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
24098 #include <unistd.h>
24099 "
24100 if test "x$ac_cv_have_decl_pread" = xyes; then :
24101   ac_have_decl=1
24102 else
24103   ac_have_decl=0
24104 fi
24105
24106 cat >>confdefs.h <<_ACEOF
24107 #define HAVE_DECL_PREAD $ac_have_decl
24108 _ACEOF
24109 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
24110 #include <unistd.h>
24111 "
24112 if test "x$ac_cv_have_decl_pwrite" = xyes; then :
24113   ac_have_decl=1
24114 else
24115   ac_have_decl=0
24116 fi
24117
24118 cat >>confdefs.h <<_ACEOF
24119 #define HAVE_DECL_PWRITE $ac_have_decl
24120 _ACEOF
24121
24122
24123 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
24124 #include <strings.h>
24125 "
24126 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
24127   ac_have_decl=1
24128 else
24129   ac_have_decl=0
24130 fi
24131
24132 cat >>confdefs.h <<_ACEOF
24133 #define HAVE_DECL_STRLCPY $ac_have_decl
24134 _ACEOF
24135
24136
24137 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
24138 #include <stdio.h>
24139 #include <stdarg.h>
24140 "
24141 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
24142   ac_have_decl=1
24143 else
24144   ac_have_decl=0
24145 fi
24146
24147 cat >>confdefs.h <<_ACEOF
24148 #define HAVE_DECL_VSNPRINTF $ac_have_decl
24149 _ACEOF
24150
24151
24152 ########
24153 #
24154 # C++ Support Tests (For Magick++)
24155 #
24156 ########
24157 have_magick_plus_plus='no'
24158 if test "$with_magick_plus_plus" = 'yes'; then
24159     OLIBS="$LIBS"
24160     LIBS=''
24161     ac_ext=cpp
24162 ac_cpp='$CXXCPP $CPPFLAGS'
24163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24166
24167
24168     # Full set of headers used...
24169     # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24170     # functional iomanip iosfwd iostream iterator list string strstream utility
24171     ac_ext=cpp
24172 ac_cpp='$CXXCPP $CPPFLAGS'
24173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24176
24177     ac_ext=cpp
24178 ac_cpp='$CXXCPP $CPPFLAGS'
24179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24182 if test -z "$CXX"; then
24183   if test -n "$CCC"; then
24184     CXX=$CCC
24185   else
24186     if test -n "$ac_tool_prefix"; then
24187   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24188   do
24189     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24190 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24192 $as_echo_n "checking for $ac_word... " >&6; }
24193 if ${ac_cv_prog_CXX+:} false; then :
24194   $as_echo_n "(cached) " >&6
24195 else
24196   if test -n "$CXX"; then
24197   ac_cv_prog_CXX="$CXX" # Let the user override the test.
24198 else
24199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24200 for as_dir in $PATH
24201 do
24202   IFS=$as_save_IFS
24203   test -z "$as_dir" && as_dir=.
24204     for ac_exec_ext in '' $ac_executable_extensions; do
24205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24206     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
24207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24208     break 2
24209   fi
24210 done
24211   done
24212 IFS=$as_save_IFS
24213
24214 fi
24215 fi
24216 CXX=$ac_cv_prog_CXX
24217 if test -n "$CXX"; then
24218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
24219 $as_echo "$CXX" >&6; }
24220 else
24221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24222 $as_echo "no" >&6; }
24223 fi
24224
24225
24226     test -n "$CXX" && break
24227   done
24228 fi
24229 if test -z "$CXX"; then
24230   ac_ct_CXX=$CXX
24231   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24232 do
24233   # Extract the first word of "$ac_prog", so it can be a program name with args.
24234 set dummy $ac_prog; ac_word=$2
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24236 $as_echo_n "checking for $ac_word... " >&6; }
24237 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
24238   $as_echo_n "(cached) " >&6
24239 else
24240   if test -n "$ac_ct_CXX"; then
24241   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24242 else
24243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24244 for as_dir in $PATH
24245 do
24246   IFS=$as_save_IFS
24247   test -z "$as_dir" && as_dir=.
24248     for ac_exec_ext in '' $ac_executable_extensions; do
24249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24250     ac_cv_prog_ac_ct_CXX="$ac_prog"
24251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24252     break 2
24253   fi
24254 done
24255   done
24256 IFS=$as_save_IFS
24257
24258 fi
24259 fi
24260 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
24261 if test -n "$ac_ct_CXX"; then
24262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
24263 $as_echo "$ac_ct_CXX" >&6; }
24264 else
24265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24266 $as_echo "no" >&6; }
24267 fi
24268
24269
24270   test -n "$ac_ct_CXX" && break
24271 done
24272
24273   if test "x$ac_ct_CXX" = x; then
24274     CXX="g++"
24275   else
24276     case $cross_compiling:$ac_tool_warned in
24277 yes:)
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24280 ac_tool_warned=yes ;;
24281 esac
24282     CXX=$ac_ct_CXX
24283   fi
24284 fi
24285
24286   fi
24287 fi
24288 # Provide some information about the compiler.
24289 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
24290 set X $ac_compile
24291 ac_compiler=$2
24292 for ac_option in --version -v -V -qversion; do
24293   { { ac_try="$ac_compiler $ac_option >&5"
24294 case "(($ac_try" in
24295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24296   *) ac_try_echo=$ac_try;;
24297 esac
24298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
24299 $as_echo "$ac_try_echo"; } >&5
24300   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
24301   ac_status=$?
24302   if test -s conftest.err; then
24303     sed '10a\
24304 ... rest of stderr output deleted ...
24305          10q' conftest.err >conftest.er1
24306     cat conftest.er1 >&5
24307   fi
24308   rm -f conftest.er1 conftest.err
24309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24310   test $ac_status = 0; }
24311 done
24312
24313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
24314 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
24315 if ${ac_cv_cxx_compiler_gnu+:} false; then :
24316   $as_echo_n "(cached) " >&6
24317 else
24318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24319 /* end confdefs.h.  */
24320
24321 int
24322 main ()
24323 {
24324 #ifndef __GNUC__
24325        choke me
24326 #endif
24327
24328   ;
24329   return 0;
24330 }
24331 _ACEOF
24332 if ac_fn_cxx_try_compile "$LINENO"; then :
24333   ac_compiler_gnu=yes
24334 else
24335   ac_compiler_gnu=no
24336 fi
24337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24338 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
24339
24340 fi
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
24342 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
24343 if test $ac_compiler_gnu = yes; then
24344   GXX=yes
24345 else
24346   GXX=
24347 fi
24348 ac_test_CXXFLAGS=${CXXFLAGS+set}
24349 ac_save_CXXFLAGS=$CXXFLAGS
24350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
24351 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
24352 if ${ac_cv_prog_cxx_g+:} false; then :
24353   $as_echo_n "(cached) " >&6
24354 else
24355   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
24356    ac_cxx_werror_flag=yes
24357    ac_cv_prog_cxx_g=no
24358    CXXFLAGS="-g"
24359    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24360 /* end confdefs.h.  */
24361
24362 int
24363 main ()
24364 {
24365
24366   ;
24367   return 0;
24368 }
24369 _ACEOF
24370 if ac_fn_cxx_try_compile "$LINENO"; then :
24371   ac_cv_prog_cxx_g=yes
24372 else
24373   CXXFLAGS=""
24374       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24375 /* end confdefs.h.  */
24376
24377 int
24378 main ()
24379 {
24380
24381   ;
24382   return 0;
24383 }
24384 _ACEOF
24385 if ac_fn_cxx_try_compile "$LINENO"; then :
24386
24387 else
24388   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
24389          CXXFLAGS="-g"
24390          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24391 /* end confdefs.h.  */
24392
24393 int
24394 main ()
24395 {
24396
24397   ;
24398   return 0;
24399 }
24400 _ACEOF
24401 if ac_fn_cxx_try_compile "$LINENO"; then :
24402   ac_cv_prog_cxx_g=yes
24403 fi
24404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24405 fi
24406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24407 fi
24408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24409    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
24410 fi
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
24412 $as_echo "$ac_cv_prog_cxx_g" >&6; }
24413 if test "$ac_test_CXXFLAGS" = set; then
24414   CXXFLAGS=$ac_save_CXXFLAGS
24415 elif test $ac_cv_prog_cxx_g = yes; then
24416   if test "$GXX" = yes; then
24417     CXXFLAGS="-g -O2"
24418   else
24419     CXXFLAGS="-g"
24420   fi
24421 else
24422   if test "$GXX" = yes; then
24423     CXXFLAGS="-O2"
24424   else
24425     CXXFLAGS=
24426   fi
24427 fi
24428 ac_ext=cpp
24429 ac_cpp='$CXXCPP $CPPFLAGS'
24430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24433
24434 depcc="$CXX"  am_compiler_list=
24435
24436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
24437 $as_echo_n "checking dependency style of $depcc... " >&6; }
24438 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
24439   $as_echo_n "(cached) " >&6
24440 else
24441   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
24442   # We make a subdir and do the tests there.  Otherwise we can end up
24443   # making bogus files that we don't know about and never remove.  For
24444   # instance it was reported that on HP-UX the gcc test will end up
24445   # making a dummy file named `D' -- because `-MD' means `put the output
24446   # in D'.
24447   mkdir conftest.dir
24448   # Copy depcomp to subdir because otherwise we won't find it if we're
24449   # using a relative directory.
24450   cp "$am_depcomp" conftest.dir
24451   cd conftest.dir
24452   # We will build objects and dependencies in a subdirectory because
24453   # it helps to detect inapplicable dependency modes.  For instance
24454   # both Tru64's cc and ICC support -MD to output dependencies as a
24455   # side effect of compilation, but ICC will put the dependencies in
24456   # the current directory while Tru64 will put them in the object
24457   # directory.
24458   mkdir sub
24459
24460   am_cv_CXX_dependencies_compiler_type=none
24461   if test "$am_compiler_list" = ""; then
24462      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
24463   fi
24464   am__universal=false
24465   case " $depcc " in #(
24466      *\ -arch\ *\ -arch\ *) am__universal=true ;;
24467      esac
24468
24469   for depmode in $am_compiler_list; do
24470     # Setup a source with many dependencies, because some compilers
24471     # like to wrap large dependency lists on column 80 (with \), and
24472     # we should not choose a depcomp mode which is confused by this.
24473     #
24474     # We need to recreate these files for each test, as the compiler may
24475     # overwrite some of them when testing with obscure command lines.
24476     # This happens at least with the AIX C compiler.
24477     : > sub/conftest.c
24478     for i in 1 2 3 4 5 6; do
24479       echo '#include "conftst'$i'.h"' >> sub/conftest.c
24480       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
24481       # Solaris 8's {/usr,}/bin/sh.
24482       touch sub/conftst$i.h
24483     done
24484     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
24485
24486     # We check with `-c' and `-o' for the sake of the "dashmstdout"
24487     # mode.  It turns out that the SunPro C++ compiler does not properly
24488     # handle `-M -o', and we need to detect this.  Also, some Intel
24489     # versions had trouble with output in subdirs
24490     am__obj=sub/conftest.${OBJEXT-o}
24491     am__minus_obj="-o $am__obj"
24492     case $depmode in
24493     gcc)
24494       # This depmode causes a compiler race in universal mode.
24495       test "$am__universal" = false || continue
24496       ;;
24497     nosideeffect)
24498       # after this tag, mechanisms are not by side-effect, so they'll
24499       # only be used when explicitly requested
24500       if test "x$enable_dependency_tracking" = xyes; then
24501         continue
24502       else
24503         break
24504       fi
24505       ;;
24506     msvisualcpp | msvcmsys)
24507       # This compiler won't grok `-c -o', but also, the minuso test has
24508       # not run yet.  These depmodes are late enough in the game, and
24509       # so weak that their functioning should not be impacted.
24510       am__obj=conftest.${OBJEXT-o}
24511       am__minus_obj=
24512       ;;
24513     none) break ;;
24514     esac
24515     if depmode=$depmode \
24516        source=sub/conftest.c object=$am__obj \
24517        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
24518        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
24519          >/dev/null 2>conftest.err &&
24520        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
24521        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
24522        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
24523        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
24524       # icc doesn't choke on unknown options, it will just issue warnings
24525       # or remarks (even with -Werror).  So we grep stderr for any message
24526       # that says an option was ignored or not supported.
24527       # When given -MP, icc 7.0 and 7.1 complain thusly:
24528       #   icc: Command line warning: ignoring option '-M'; no argument required
24529       # The diagnosis changed in icc 8.0:
24530       #   icc: Command line remark: option '-MP' not supported
24531       if (grep 'ignoring option' conftest.err ||
24532           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
24533         am_cv_CXX_dependencies_compiler_type=$depmode
24534         break
24535       fi
24536     fi
24537   done
24538
24539   cd ..
24540   rm -rf conftest.dir
24541 else
24542   am_cv_CXX_dependencies_compiler_type=none
24543 fi
24544
24545 fi
24546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
24547 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
24548 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
24549
24550  if
24551   test "x$enable_dependency_tracking" != xno \
24552   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
24553   am__fastdepCXX_TRUE=
24554   am__fastdepCXX_FALSE='#'
24555 else
24556   am__fastdepCXX_TRUE='#'
24557   am__fastdepCXX_FALSE=
24558 fi
24559
24560
24561     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
24562 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
24563 if ${ax_cv_cxx_bool+:} false; then :
24564   $as_echo_n "(cached) " >&6
24565 else
24566
24567  ac_ext=cpp
24568 ac_cpp='$CXXCPP $CPPFLAGS'
24569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24572
24573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24574 /* end confdefs.h.  */
24575
24576 int f(int  x){return 1;}
24577 int f(char x){return 1;}
24578 int f(bool x){return 1;}
24579
24580 int
24581 main ()
24582 {
24583 bool b = true; return f(b);
24584   ;
24585   return 0;
24586 }
24587 _ACEOF
24588 if ac_fn_cxx_try_compile "$LINENO"; then :
24589   ax_cv_cxx_bool=yes
24590 else
24591   ax_cv_cxx_bool=no
24592 fi
24593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24594  ac_ext=cpp
24595 ac_cpp='$CXXCPP $CPPFLAGS'
24596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24599
24600
24601 fi
24602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
24603 $as_echo "$ax_cv_cxx_bool" >&6; }
24604 if test "$ax_cv_cxx_bool" = yes; then
24605
24606 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
24607
24608 fi
24609
24610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
24611 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
24612 if ${ax_cv_cxx_namespaces+:} false; then :
24613   $as_echo_n "(cached) " >&6
24614 else
24615
24616  ac_ext=cpp
24617 ac_cpp='$CXXCPP $CPPFLAGS'
24618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24621
24622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24623 /* end confdefs.h.  */
24624 namespace Outer { namespace Inner { int i = 0; }}
24625 int
24626 main ()
24627 {
24628 using namespace Outer::Inner; return i;
24629   ;
24630   return 0;
24631 }
24632 _ACEOF
24633 if ac_fn_cxx_try_compile "$LINENO"; then :
24634   ax_cv_cxx_namespaces=yes
24635 else
24636   ax_cv_cxx_namespaces=no
24637 fi
24638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24639  ac_ext=cpp
24640 ac_cpp='$CXXCPP $CPPFLAGS'
24641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24644
24645
24646 fi
24647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
24648 $as_echo "$ax_cv_cxx_namespaces" >&6; }
24649 if test "$ax_cv_cxx_namespaces" = yes; then
24650
24651 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
24652
24653 fi
24654
24655
24656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24657 $as_echo_n "checking if g++ supports namespace std... " >&6; }
24658 if ${ax_cv_cxx_have_std_namespace+:} false; then :
24659   $as_echo_n "(cached) " >&6
24660 else
24661
24662   ac_ext=cpp
24663 ac_cpp='$CXXCPP $CPPFLAGS'
24664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24667
24668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24669 /* end confdefs.h.  */
24670 #include <iostream>
24671                   std::istream& is = std::cin;
24672 int
24673 main ()
24674 {
24675
24676   ;
24677   return 0;
24678 }
24679 _ACEOF
24680 if ac_fn_cxx_try_compile "$LINENO"; then :
24681   ax_cv_cxx_have_std_namespace=yes
24682 else
24683   ax_cv_cxx_have_std_namespace=no
24684 fi
24685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24686   ac_ext=cpp
24687 ac_cpp='$CXXCPP $CPPFLAGS'
24688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24691
24692
24693 fi
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24695 $as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24696   if test "$ax_cv_cxx_have_std_namespace" = yes; then
24697
24698 $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
24699
24700   fi
24701
24702     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
24703 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
24704 if ${ac_cv_cxx_have_std_libs+:} false; then :
24705   $as_echo_n "(cached) " >&6
24706 else
24707
24708
24709  ac_ext=cpp
24710 ac_cpp='$CXXCPP $CPPFLAGS'
24711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24714
24715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24716 /* end confdefs.h.  */
24717 #include <iostream>
24718 #include <map>
24719 #include <iomanip>
24720 #include <cmath>
24721 #ifdef HAVE_NAMESPACES
24722 using namespace std;
24723 #endif
24724 int
24725 main ()
24726 {
24727 return 0;
24728   ;
24729   return 0;
24730 }
24731 _ACEOF
24732 if ac_fn_cxx_try_compile "$LINENO"; then :
24733   ac_cv_cxx_have_std_libs=yes
24734 else
24735   ac_cv_cxx_have_std_libs=no
24736 fi
24737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24738  ac_ext=cpp
24739 ac_cpp='$CXXCPP $CPPFLAGS'
24740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24743
24744
24745 fi
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
24747 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24748 if test "$ac_cv_cxx_have_std_libs" = yes; then
24749
24750 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
24751
24752 fi
24753
24754
24755   OPENMP_CXXFLAGS=
24756   # Check whether --enable-openmp was given.
24757 if test "${enable_openmp+set}" = set; then :
24758   enableval=$enable_openmp;
24759 fi
24760
24761   if test "$enable_openmp" != no; then
24762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24763 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
24764 if ${ac_cv_prog_cxx_openmp+:} false; then :
24765   $as_echo_n "(cached) " >&6
24766 else
24767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24768 /* end confdefs.h.  */
24769
24770 #ifndef _OPENMP
24771  choke me
24772 #endif
24773 #include <omp.h>
24774 int main () { return omp_get_num_threads (); }
24775
24776 _ACEOF
24777 if ac_fn_cxx_try_link "$LINENO"; then :
24778   ac_cv_prog_cxx_openmp='none needed'
24779 else
24780   ac_cv_prog_cxx_openmp='unsupported'
24781                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24782             ac_save_CXXFLAGS=$CXXFLAGS
24783             CXXFLAGS="$CXXFLAGS $ac_option"
24784             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24785 /* end confdefs.h.  */
24786
24787 #ifndef _OPENMP
24788  choke me
24789 #endif
24790 #include <omp.h>
24791 int main () { return omp_get_num_threads (); }
24792
24793 _ACEOF
24794 if ac_fn_cxx_try_link "$LINENO"; then :
24795   ac_cv_prog_cxx_openmp=$ac_option
24796 fi
24797 rm -f core conftest.err conftest.$ac_objext \
24798     conftest$ac_exeext conftest.$ac_ext
24799             CXXFLAGS=$ac_save_CXXFLAGS
24800             if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24801               break
24802             fi
24803           done
24804 fi
24805 rm -f core conftest.err conftest.$ac_objext \
24806     conftest$ac_exeext conftest.$ac_ext
24807 fi
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
24809 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24810     case $ac_cv_prog_cxx_openmp in #(
24811       "none needed" | unsupported)
24812         ;; #(
24813       *)
24814         OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
24815     esac
24816   fi
24817
24818
24819     ac_ext=c
24820 ac_cpp='$CPP $CPPFLAGS'
24821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24824
24825
24826     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
24827 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24828     if \
24829         test $ax_cv_cxx_bool = 'yes' && \
24830         test $ax_cv_cxx_namespaces = 'yes' && \
24831         test $ac_cv_cxx_have_std_libs = 'yes' && \
24832         test $ax_cv_cxx_have_std_namespace = 'yes'; then
24833         have_magick_plus_plus='yes'
24834     else
24835         have_magick_plus_plus='no (failed tests)'
24836     fi
24837     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
24838 $as_echo "$have_magick_plus_plus" >&6; }
24839     LIBS="$OLIBS"
24840 fi
24841  if test "$have_magick_plus_plus" = 'yes'; then
24842   WITH_MAGICK_PLUS_PLUS_TRUE=
24843   WITH_MAGICK_PLUS_PLUS_FALSE='#'
24844 else
24845   WITH_MAGICK_PLUS_PLUS_TRUE='#'
24846   WITH_MAGICK_PLUS_PLUS_FALSE=
24847 fi
24848
24849
24850 # Only check for delegate libraries in subdirectories if requested.
24851 if test "$enable_delegate_build" != 'no'; then
24852     # Check for delegate sub-directories and add -I & -L options as required.
24853     # This presumes that delegates are installed as detailed in the ImageMagick
24854     # README. If delegates are installed in a standard location where the
24855     # compiler will automatically find them then these options should not be
24856     # required.
24857
24858     #
24859     # Most delegates have includes in the same directory as the library, but not all...
24860     #
24861     # Includes
24862     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
24863         if test -d "$builddir/$dir"; then
24864             CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24865         else
24866             if test -d "$srcdirfull/$dir"; then
24867                 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24868             fi
24869         fi
24870     done
24871
24872     # Libraries
24873     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
24874     if test -d "$builddir/$dir/.libs"; then
24875         LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24876     else
24877         if test -d "$srcdirfull/$dir/.libs"; then
24878             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24879         fi
24880     fi
24881     if test -d "$builddir/$dir"; then
24882         LDFLAGS="$LDFLAGS -L$builddir/$dir"
24883     else
24884         if test -d "$srcdirfull/$dir"; then
24885             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24886         fi
24887     fi
24888   done
24889 fi
24890
24891 # Assume that delegate headers reside under same directory as ImageMagick
24892 # installation prefix.
24893 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24894
24895 #
24896 # Find the X11 RGB database
24897 #
24898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
24899 $as_echo_n "checking for X11 configure files... " >&6; }
24900 if ${im_cv_x_configure+:} false; then :
24901   $as_echo_n "(cached) " >&6
24902 else
24903   # Look for the header file in a standard set of common directories.
24904 # Check X11 before X11Rn because it is often a symlink to the current release.
24905     for ac_dir in          \
24906     /lib/usr/lib/X11       \
24907     /usr/X11/lib           \
24908     /usr/X11R4/lib         \
24909     /usr/X11R5/lib         \
24910     /usr/X11R6/lib         \
24911     /usr/X11R7/lib         \
24912     /usr/X386/lib          \
24913     /usr/XFree86/lib/X11   \
24914     /usr/athena/lib        \
24915     /usr/lib               \
24916     /usr/lib/X11           \
24917     /usr/lib/X11R4         \
24918     /usr/lib/X11R5         \
24919     /usr/lib/X11R6         \
24920     /usr/lib/X11R7         \
24921     /usr/local/X11/lib     \
24922     /usr/local/X11R4/lib   \
24923     /usr/local/X11R5/lib   \
24924     /usr/local/X11R6/lib   \
24925     /usr/local/lib         \
24926     /usr/local/lib/X11     \
24927     /usr/local/lib/X11R4   \
24928     /usr/local/lib/X11R5   \
24929     /usr/local/lib/X11R6   \
24930     /usr/local/lib/X11R7   \
24931     /usr/local/x11r5/lib   \
24932     /usr/lpp/Xamples/lib   \
24933     /usr/openwin/lib       \
24934     /usr/openwin/share/lib \
24935     /usr/unsupported/lib   \
24936     /usr/x386/lib          \
24937     ; do
24938     if test -f "$ac_dir/X11/rgb.txt"; then
24939       im_cv_x_configure="$ac_dir/X11/"
24940       break
24941     elif test -f "$ac_dir/rgb.txt"; then
24942       im_cv_x_configure="$ac_dir/"
24943       break
24944     fi
24945
24946   done
24947 fi
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
24949 $as_echo "$im_cv_x_configure" >&6; }
24950 X11_CONFIGURE_PATH="$im_cv_x_configure"
24951 case "${build_os}" in
24952   mingw* )
24953     X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24954   ;;
24955 esac
24956
24957 cat >>confdefs.h <<_ACEOF
24958 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
24959 _ACEOF
24960
24961
24962 #
24963 # Find OpenMP library
24964 #
24965 GOMP_LIBS=''
24966 if test "$enable_openmp" != 'no'; then
24967   if test "${GCC}" = "yes"; then
24968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
24969 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
24970 if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
24971   $as_echo_n "(cached) " >&6
24972 else
24973   ac_check_lib_save_LIBS=$LIBS
24974 LIBS="-lgomp  $LIBS"
24975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24976 /* end confdefs.h.  */
24977
24978 /* Override any GCC internal prototype to avoid an error.
24979    Use char because int might match the return type of a GCC
24980    builtin and then its argument prototype would still apply.  */
24981 #ifdef __cplusplus
24982 extern "C"
24983 #endif
24984 char GOMP_parallel_start ();
24985 int
24986 main ()
24987 {
24988 return GOMP_parallel_start ();
24989   ;
24990   return 0;
24991 }
24992 _ACEOF
24993 if ac_fn_c_try_link "$LINENO"; then :
24994   ac_cv_lib_gomp_GOMP_parallel_start=yes
24995 else
24996   ac_cv_lib_gomp_GOMP_parallel_start=no
24997 fi
24998 rm -f core conftest.err conftest.$ac_objext \
24999     conftest$ac_exeext conftest.$ac_ext
25000 LIBS=$ac_check_lib_save_LIBS
25001 fi
25002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
25003 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
25004 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
25005   GOMP_LIBS="-lgomp"
25006 fi
25007   # gcc
25008   else
25009     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
25010 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
25011 if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
25012   $as_echo_n "(cached) " >&6
25013 else
25014   ac_check_lib_save_LIBS=$LIBS
25015 LIBS="-lmtsk  $LIBS"
25016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25017 /* end confdefs.h.  */
25018
25019 /* Override any GCC internal prototype to avoid an error.
25020    Use char because int might match the return type of a GCC
25021    builtin and then its argument prototype would still apply.  */
25022 #ifdef __cplusplus
25023 extern "C"
25024 #endif
25025 char sunw_mp_register_warn ();
25026 int
25027 main ()
25028 {
25029 return sunw_mp_register_warn ();
25030   ;
25031   return 0;
25032 }
25033 _ACEOF
25034 if ac_fn_c_try_link "$LINENO"; then :
25035   ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25036 else
25037   ac_cv_lib_mtsk_sunw_mp_register_warn=no
25038 fi
25039 rm -f core conftest.err conftest.$ac_objext \
25040     conftest$ac_exeext conftest.$ac_ext
25041 LIBS=$ac_check_lib_save_LIBS
25042 fi
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
25044 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
25045 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
25046   GOMP_LIBS="-lmtsk"
25047 fi
25048   # solaris cc
25049     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
25050 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
25051 if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
25052   $as_echo_n "(cached) " >&6
25053 else
25054   ac_check_lib_save_LIBS=$LIBS
25055 LIBS="-lxlsmp  $LIBS"
25056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25057 /* end confdefs.h.  */
25058
25059 /* Override any GCC internal prototype to avoid an error.
25060    Use char because int might match the return type of a GCC
25061    builtin and then its argument prototype would still apply.  */
25062 #ifdef __cplusplus
25063 extern "C"
25064 #endif
25065 char _xlsmpFlush ();
25066 int
25067 main ()
25068 {
25069 return _xlsmpFlush ();
25070   ;
25071   return 0;
25072 }
25073 _ACEOF
25074 if ac_fn_c_try_link "$LINENO"; then :
25075   ac_cv_lib_xlsmp__xlsmpFlush=yes
25076 else
25077   ac_cv_lib_xlsmp__xlsmpFlush=no
25078 fi
25079 rm -f core conftest.err conftest.$ac_objext \
25080     conftest$ac_exeext conftest.$ac_ext
25081 LIBS=$ac_check_lib_save_LIBS
25082 fi
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
25084 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
25085 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
25086   GOMP_LIBS="-lxlsmp"
25087 fi
25088   # AIX xlc
25089     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
25090 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
25091 if ${ac_cv_lib_mp_mp_destroy+:} false; then :
25092   $as_echo_n "(cached) " >&6
25093 else
25094   ac_check_lib_save_LIBS=$LIBS
25095 LIBS="-lmp  $LIBS"
25096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25097 /* end confdefs.h.  */
25098
25099 /* Override any GCC internal prototype to avoid an error.
25100    Use char because int might match the return type of a GCC
25101    builtin and then its argument prototype would still apply.  */
25102 #ifdef __cplusplus
25103 extern "C"
25104 #endif
25105 char mp_destroy ();
25106 int
25107 main ()
25108 {
25109 return mp_destroy ();
25110   ;
25111   return 0;
25112 }
25113 _ACEOF
25114 if ac_fn_c_try_link "$LINENO"; then :
25115   ac_cv_lib_mp_mp_destroy=yes
25116 else
25117   ac_cv_lib_mp_mp_destroy=no
25118 fi
25119 rm -f core conftest.err conftest.$ac_objext \
25120     conftest$ac_exeext conftest.$ac_ext
25121 LIBS=$ac_check_lib_save_LIBS
25122 fi
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
25124 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
25125 if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
25126   GOMP_LIBS="-lmp"
25127 fi
25128   # SGI IRIX 6.5 MIPSpro C/C++
25129   fi
25130   LIBS="$GOMP_LIBS $LIBS"
25131 fi
25132
25133
25134 #
25135 # Find Posix threads library
25136 #
25137 THREAD_LIBS=''
25138 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25139
25140     if test "x$PTHREAD_LIBS" = "x"; then
25141     case "${host_cpu}-${host_os}" in
25142       *-freebsd*)
25143
25144
25145
25146 ac_ext=c
25147 ac_cpp='$CPP $CPPFLAGS'
25148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25151
25152 magick_pthread_lib_ok=no
25153
25154 LIB=-lc_r
25155 save_LIBS="$LIBS"
25156 LIBS="$LIBS $LIB"
25157
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25159 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
25160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25161 /* end confdefs.h.  */
25162 #include <pthread.h>
25163 int
25164 main ()
25165 {
25166   pthread_t th;
25167   pthread_join(th, 0);
25168   pthread_attr_init(0);
25169   pthread_cleanup_push(0, 0);
25170   pthread_create(0,0,0,0);
25171   pthread_cleanup_pop(0);
25172   ;
25173   return 0;
25174 }
25175 _ACEOF
25176 if ac_fn_c_try_link "$LINENO"; then :
25177   magick_pthread_lib_ok=yes
25178 fi
25179 rm -f core conftest.err conftest.$ac_objext \
25180     conftest$ac_exeext conftest.$ac_ext
25181
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25183 $as_echo "${magick_pthread_lib_ok}" >&6; }
25184 if test "$magick_pthread_lib_ok" = yes
25185 then
25186   PTHREAD_LIBS=-lc_r
25187   :
25188 else
25189
25190   :
25191 fi
25192
25193 LIBS="$save_LIBS"
25194
25195 ac_ext=c
25196 ac_cpp='$CPP $CPPFLAGS'
25197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25200
25201  ;;
25202     esac
25203     fi
25204
25205     for lib in pthread pthreads; do
25206         if test "x$PTHREAD_LIBS" = "x"; then
25207
25208
25209
25210 ac_ext=c
25211 ac_cpp='$CPP $CPPFLAGS'
25212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25215
25216 magick_pthread_lib_ok=no
25217
25218 LIB=-l$lib
25219 save_LIBS="$LIBS"
25220 LIBS="$LIBS $LIB"
25221
25222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25223 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
25224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25225 /* end confdefs.h.  */
25226 #include <pthread.h>
25227 int
25228 main ()
25229 {
25230   pthread_t th;
25231   pthread_join(th, 0);
25232   pthread_attr_init(0);
25233   pthread_cleanup_push(0, 0);
25234   pthread_create(0,0,0,0);
25235   pthread_cleanup_pop(0);
25236   ;
25237   return 0;
25238 }
25239 _ACEOF
25240 if ac_fn_c_try_link "$LINENO"; then :
25241   magick_pthread_lib_ok=yes
25242 fi
25243 rm -f core conftest.err conftest.$ac_objext \
25244     conftest$ac_exeext conftest.$ac_ext
25245
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25247 $as_echo "${magick_pthread_lib_ok}" >&6; }
25248 if test "$magick_pthread_lib_ok" = yes
25249 then
25250   PTHREAD_LIBS=-l$lib
25251   :
25252 else
25253
25254   :
25255 fi
25256
25257 LIBS="$save_LIBS"
25258
25259 ac_ext=c
25260 ac_cpp='$CPP $CPPFLAGS'
25261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25264
25265
25266         fi
25267     done
25268
25269     THREAD_LIBS="$PTHREAD_LIBS"
25270     LIBS="$LIBS $THREAD_LIBS"
25271 fi
25272
25273
25274 #
25275 # Check for umem.
25276 #
25277 have_umem='no'
25278 UMEM_LIBS=''
25279 if test "$with_umem" != 'no'; then
25280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
25281 $as_echo_n "checking for UMEM support ... " >&6; }
25282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25283 $as_echo "" >&6; }
25284   failed=0
25285   passed=0
25286   ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
25287 if test "x$ac_cv_header_umem_h" = xyes; then :
25288   passed=`expr $passed + 1`
25289 else
25290   failed=`expr $failed + 1`
25291 fi
25292
25293
25294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
25295 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
25296 if ${ac_cv_lib_umem_umem_alloc+:} false; then :
25297   $as_echo_n "(cached) " >&6
25298 else
25299   ac_check_lib_save_LIBS=$LIBS
25300 LIBS="-lumem  $LIBS"
25301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25302 /* end confdefs.h.  */
25303
25304 /* Override any GCC internal prototype to avoid an error.
25305    Use char because int might match the return type of a GCC
25306    builtin and then its argument prototype would still apply.  */
25307 #ifdef __cplusplus
25308 extern "C"
25309 #endif
25310 char umem_alloc ();
25311 int
25312 main ()
25313 {
25314 return umem_alloc ();
25315   ;
25316   return 0;
25317 }
25318 _ACEOF
25319 if ac_fn_c_try_link "$LINENO"; then :
25320   ac_cv_lib_umem_umem_alloc=yes
25321 else
25322   ac_cv_lib_umem_umem_alloc=no
25323 fi
25324 rm -f core conftest.err conftest.$ac_objext \
25325     conftest$ac_exeext conftest.$ac_ext
25326 LIBS=$ac_check_lib_save_LIBS
25327 fi
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
25329 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
25330 if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
25331   passed=`expr $passed + 1`
25332 else
25333   failed=`expr $failed + 1`
25334 fi
25335
25336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
25337 $as_echo_n "checking for umem_free in -lumem... " >&6; }
25338 if ${ac_cv_lib_umem_umem_free+:} false; then :
25339   $as_echo_n "(cached) " >&6
25340 else
25341   ac_check_lib_save_LIBS=$LIBS
25342 LIBS="-lumem  $LIBS"
25343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25344 /* end confdefs.h.  */
25345
25346 /* Override any GCC internal prototype to avoid an error.
25347    Use char because int might match the return type of a GCC
25348    builtin and then its argument prototype would still apply.  */
25349 #ifdef __cplusplus
25350 extern "C"
25351 #endif
25352 char umem_free ();
25353 int
25354 main ()
25355 {
25356 return umem_free ();
25357   ;
25358   return 0;
25359 }
25360 _ACEOF
25361 if ac_fn_c_try_link "$LINENO"; then :
25362   ac_cv_lib_umem_umem_free=yes
25363 else
25364   ac_cv_lib_umem_umem_free=no
25365 fi
25366 rm -f core conftest.err conftest.$ac_objext \
25367     conftest$ac_exeext conftest.$ac_ext
25368 LIBS=$ac_check_lib_save_LIBS
25369 fi
25370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
25371 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
25372 if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
25373   passed=`expr $passed + 1`
25374 else
25375   failed=`expr $failed + 1`
25376 fi
25377
25378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
25379 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
25380   if test $passed -gt 0; then
25381     if test $failed -gt 0; then
25382       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25383 $as_echo "no -- some components failed test" >&6; }
25384       have_umem='no (failed tests)'
25385     else
25386       UMEM_LIBS='-lumem'
25387       LIBS="$UMEM_LIBS $LIBS"
25388
25389 $as_echo "#define HasUMEM 1" >>confdefs.h
25390
25391       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25392 $as_echo "yes" >&6; }
25393       have_umem='yes'
25394     fi
25395   else
25396     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25397 $as_echo "no" >&6; }
25398   fi
25399 fi
25400  if test "$have_umem" = 'yes'; then
25401   HasUMEM_TRUE=
25402   HasUMEM_FALSE='#'
25403 else
25404   HasUMEM_TRUE='#'
25405   HasUMEM_FALSE=
25406 fi
25407
25408
25409
25410 #
25411 # Add support for ccmalloc memory debugging library if requested
25412 #
25413 have_ccmalloc='no'
25414 CCMALLOC_LIBS=''
25415 if test "$enable_ccmalloc" = 'yes'; then
25416     # Extract the first word of "ccmalloc", so it can be a program name with args.
25417 set dummy ccmalloc; ac_word=$2
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25419 $as_echo_n "checking for $ac_word... " >&6; }
25420 if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
25421   $as_echo_n "(cached) " >&6
25422 else
25423   case $CCMALLOCDelegate in
25424   [\\/]* | ?:[\\/]*)
25425   ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
25426   ;;
25427   *)
25428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25429 for as_dir in $PATH
25430 do
25431   IFS=$as_save_IFS
25432   test -z "$as_dir" && as_dir=.
25433     for ac_exec_ext in '' $ac_executable_extensions; do
25434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25435     ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
25436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25437     break 2
25438   fi
25439 done
25440   done
25441 IFS=$as_save_IFS
25442
25443   ;;
25444 esac
25445 fi
25446 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
25447 if test -n "$CCMALLOCDelegate"; then
25448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
25449 $as_echo "$CCMALLOCDelegate" >&6; }
25450 else
25451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25452 $as_echo "no" >&6; }
25453 fi
25454
25455
25456     if test -n "$CCMALLOCDelegate"; then
25457         eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
25458         OLIBS="$LIBS"
25459         # Assume that gcc is used with ccmalloc.
25460         LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
25461        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
25462 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
25463 if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
25464   $as_echo_n "(cached) " >&6
25465 else
25466   ac_check_lib_save_LIBS=$LIBS
25467 LIBS="-lccmalloc -ldl $LIBS"
25468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25469 /* end confdefs.h.  */
25470
25471 /* Override any GCC internal prototype to avoid an error.
25472    Use char because int might match the return type of a GCC
25473    builtin and then its argument prototype would still apply.  */
25474 #ifdef __cplusplus
25475 extern "C"
25476 #endif
25477 char ccmalloc_malloc ();
25478 int
25479 main ()
25480 {
25481 return ccmalloc_malloc ();
25482   ;
25483   return 0;
25484 }
25485 _ACEOF
25486 if ac_fn_c_try_link "$LINENO"; then :
25487   ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
25488 else
25489   ac_cv_lib_ccmalloc_ccmalloc_malloc=no
25490 fi
25491 rm -f core conftest.err conftest.$ac_objext \
25492     conftest$ac_exeext conftest.$ac_ext
25493 LIBS=$ac_check_lib_save_LIBS
25494 fi
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
25496 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
25497 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
25498   CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
25499 fi
25500
25501         if test -n "$CCMALLOC_LIBS"; then
25502             LIBS="$OLIBS"
25503             LIBS="$LIBS $CCMALLOC_LIBS"
25504             have_ccmalloc='yes'
25505         else
25506             LIBS="$OLIBS"
25507         fi
25508     fi
25509 fi
25510
25511 #
25512 # Add support for efence memory debugging library if requested
25513 #
25514 if test "$enable_efence" = 'yes'; then
25515     EFENCE_LIBS='-lefence'
25516     LIBS="$EFENCE_LIBS $LIBS"
25517 fi
25518
25519
25520 #
25521 # Check for BZLIB
25522 #
25523
25524
25525 # Check whether --with-bzlib was given.
25526 if test "${with_bzlib+set}" = set; then :
25527   withval=$with_bzlib; with_bzlib=$withval
25528 else
25529   with_bzlib='yes'
25530 fi
25531
25532
25533 if test "$with_bzlib" != 'yes'; then
25534     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
25535 fi
25536
25537 have_bzlib='no'
25538 if test "$with_bzlib" != 'no'; then
25539     BZLIB_LIBS=''
25540     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25541 $as_echo "-------------------------------------------------------------" >&6; }
25542     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
25543 $as_echo_n "checking for BZLIB... " >&6; }
25544     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25545 $as_echo "" >&6; }
25546     failed=0
25547     passed=0
25548     found_libbz=0
25549     ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
25550 if test "x$ac_cv_header_bzlib_h" = xyes; then :
25551   passed=`expr $passed + 1`
25552 else
25553   failed=`expr $failed + 1`
25554 fi
25555
25556
25557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
25558 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
25559 if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
25560   $as_echo_n "(cached) " >&6
25561 else
25562   ac_check_lib_save_LIBS=$LIBS
25563 LIBS="-lbz2  $LIBS"
25564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25565 /* end confdefs.h.  */
25566
25567 /* Override any GCC internal prototype to avoid an error.
25568    Use char because int might match the return type of a GCC
25569    builtin and then its argument prototype would still apply.  */
25570 #ifdef __cplusplus
25571 extern "C"
25572 #endif
25573 char BZ2_bzDecompress ();
25574 int
25575 main ()
25576 {
25577 return BZ2_bzDecompress ();
25578   ;
25579   return 0;
25580 }
25581 _ACEOF
25582 if ac_fn_c_try_link "$LINENO"; then :
25583   ac_cv_lib_bz2_BZ2_bzDecompress=yes
25584 else
25585   ac_cv_lib_bz2_BZ2_bzDecompress=no
25586 fi
25587 rm -f core conftest.err conftest.$ac_objext \
25588     conftest$ac_exeext conftest.$ac_ext
25589 LIBS=$ac_check_lib_save_LIBS
25590 fi
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
25592 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
25593 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
25594   found_libbz=`expr $found_libbz + 1`
25595 fi
25596
25597     if test "$native_win32_build" = 'yes'; then
25598       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
25599 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
25600 if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
25601   $as_echo_n "(cached) " >&6
25602 else
25603   ac_check_lib_save_LIBS=$LIBS
25604 LIBS="-lbz2  $LIBS"
25605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25606 /* end confdefs.h.  */
25607
25608 /* Override any GCC internal prototype to avoid an error.
25609    Use char because int might match the return type of a GCC
25610    builtin and then its argument prototype would still apply.  */
25611 #ifdef __cplusplus
25612 extern "C"
25613 #endif
25614 char _imp__BZ2_decompress ();
25615 int
25616 main ()
25617 {
25618 return _imp__BZ2_decompress ();
25619   ;
25620   return 0;
25621 }
25622 _ACEOF
25623 if ac_fn_c_try_link "$LINENO"; then :
25624   ac_cv_lib_bz2__imp__BZ2_decompress=yes
25625 else
25626   ac_cv_lib_bz2__imp__BZ2_decompress=no
25627 fi
25628 rm -f core conftest.err conftest.$ac_objext \
25629     conftest$ac_exeext conftest.$ac_ext
25630 LIBS=$ac_check_lib_save_LIBS
25631 fi
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
25633 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
25634 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
25635   found_libbz=`expr $found_libbz + 1`
25636 fi
25637
25638     fi
25639     if test $found_libbz -gt 0; then
25640       passed=`expr $passed + 1`
25641     else
25642       failed=`expr $failed + 1`
25643     fi
25644     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
25645 $as_echo_n "checking if BZLIB package is complete... " >&6; }
25646     if test $passed -gt 0; then
25647       if test $failed -gt 0; then
25648         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25649 $as_echo "no -- some components failed test" >&6; }
25650         have_bzlib='no (failed tests)'
25651       else
25652         BZLIB_LIBS='-lbz2'
25653         LIBS="$BZLIB_LIBS $LIBS"
25654
25655 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
25656
25657         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25658 $as_echo "yes" >&6; }
25659         have_bzlib='yes'
25660       fi
25661     else
25662       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25663 $as_echo "no" >&6; }
25664     fi
25665 fi
25666  if test "$have_bzlib" = 'yes'; then
25667   BZLIB_DELEGATE_TRUE=
25668   BZLIB_DELEGATE_FALSE='#'
25669 else
25670   BZLIB_DELEGATE_TRUE='#'
25671   BZLIB_DELEGATE_FALSE=
25672 fi
25673
25674
25675
25676 #
25677 # Find the X11 include and library directories.
25678 #
25679 IPC_LIBS=''
25680 X11_LIBS=''
25681 XEXT_LIBS=''
25682 XT_LIBS=''
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25684 $as_echo_n "checking for X... " >&6; }
25685
25686
25687 # Check whether --with-x was given.
25688 if test "${with_x+set}" = set; then :
25689   withval=$with_x;
25690 fi
25691
25692 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25693 if test "x$with_x" = xno; then
25694   # The user explicitly disabled X.
25695   have_x=disabled
25696 else
25697   case $x_includes,$x_libraries in #(
25698     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25699     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25700   $as_echo_n "(cached) " >&6
25701 else
25702   # One or both of the vars are not set, and there is no cached value.
25703 ac_x_includes=no ac_x_libraries=no
25704 rm -f -r conftest.dir
25705 if mkdir conftest.dir; then
25706   cd conftest.dir
25707   cat >Imakefile <<'_ACEOF'
25708 incroot:
25709         @echo incroot='${INCROOT}'
25710 usrlibdir:
25711         @echo usrlibdir='${USRLIBDIR}'
25712 libdir:
25713         @echo libdir='${LIBDIR}'
25714 _ACEOF
25715   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25716     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25717     for ac_var in incroot usrlibdir libdir; do
25718       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25719     done
25720     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25721     for ac_extension in a so sl dylib la dll; do
25722       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25723          test -f "$ac_im_libdir/libX11.$ac_extension"; then
25724         ac_im_usrlibdir=$ac_im_libdir; break
25725       fi
25726     done
25727     # Screen out bogus values from the imake configuration.  They are
25728     # bogus both because they are the default anyway, and because
25729     # using them would break gcc on systems where it needs fixed includes.
25730     case $ac_im_incroot in
25731         /usr/include) ac_x_includes= ;;
25732         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25733     esac
25734     case $ac_im_usrlibdir in
25735         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25736         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25737     esac
25738   fi
25739   cd ..
25740   rm -f -r conftest.dir
25741 fi
25742
25743 # Standard set of common directories for X headers.
25744 # Check X11 before X11Rn because it is often a symlink to the current release.
25745 ac_x_header_dirs='
25746 /usr/X11/include
25747 /usr/X11R7/include
25748 /usr/X11R6/include
25749 /usr/X11R5/include
25750 /usr/X11R4/include
25751
25752 /usr/include/X11
25753 /usr/include/X11R7
25754 /usr/include/X11R6
25755 /usr/include/X11R5
25756 /usr/include/X11R4
25757
25758 /usr/local/X11/include
25759 /usr/local/X11R7/include
25760 /usr/local/X11R6/include
25761 /usr/local/X11R5/include
25762 /usr/local/X11R4/include
25763
25764 /usr/local/include/X11
25765 /usr/local/include/X11R7
25766 /usr/local/include/X11R6
25767 /usr/local/include/X11R5
25768 /usr/local/include/X11R4
25769
25770 /usr/X386/include
25771 /usr/x386/include
25772 /usr/XFree86/include/X11
25773
25774 /usr/include
25775 /usr/local/include
25776 /usr/unsupported/include
25777 /usr/athena/include
25778 /usr/local/x11r5/include
25779 /usr/lpp/Xamples/include
25780
25781 /usr/openwin/include
25782 /usr/openwin/share/include'
25783
25784 if test "$ac_x_includes" = no; then
25785   # Guess where to find include files, by looking for Xlib.h.
25786   # First, try using that file with no special directory specified.
25787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25788 /* end confdefs.h.  */
25789 #include <X11/Xlib.h>
25790 _ACEOF
25791 if ac_fn_c_try_cpp "$LINENO"; then :
25792   # We can compile using X headers with no special include directory.
25793 ac_x_includes=
25794 else
25795   for ac_dir in $ac_x_header_dirs; do
25796   if test -r "$ac_dir/X11/Xlib.h"; then
25797     ac_x_includes=$ac_dir
25798     break
25799   fi
25800 done
25801 fi
25802 rm -f conftest.err conftest.i conftest.$ac_ext
25803 fi # $ac_x_includes = no
25804
25805 if test "$ac_x_libraries" = no; then
25806   # Check for the libraries.
25807   # See if we find them without any special options.
25808   # Don't add to $LIBS permanently.
25809   ac_save_LIBS=$LIBS
25810   LIBS="-lX11 $LIBS"
25811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25812 /* end confdefs.h.  */
25813 #include <X11/Xlib.h>
25814 int
25815 main ()
25816 {
25817 XrmInitialize ()
25818   ;
25819   return 0;
25820 }
25821 _ACEOF
25822 if ac_fn_c_try_link "$LINENO"; then :
25823   LIBS=$ac_save_LIBS
25824 # We can link X programs with no special library path.
25825 ac_x_libraries=
25826 else
25827   LIBS=$ac_save_LIBS
25828 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25829 do
25830   # Don't even attempt the hair of trying to link an X program!
25831   for ac_extension in a so sl dylib la dll; do
25832     if test -r "$ac_dir/libX11.$ac_extension"; then
25833       ac_x_libraries=$ac_dir
25834       break 2
25835     fi
25836   done
25837 done
25838 fi
25839 rm -f core conftest.err conftest.$ac_objext \
25840     conftest$ac_exeext conftest.$ac_ext
25841 fi # $ac_x_libraries = no
25842
25843 case $ac_x_includes,$ac_x_libraries in #(
25844   no,* | *,no | *\'*)
25845     # Didn't find X, or a directory has "'" in its name.
25846     ac_cv_have_x="have_x=no";; #(
25847   *)
25848     # Record where we found X for the cache.
25849     ac_cv_have_x="have_x=yes\
25850         ac_x_includes='$ac_x_includes'\
25851         ac_x_libraries='$ac_x_libraries'"
25852 esac
25853 fi
25854 ;; #(
25855     *) have_x=yes;;
25856   esac
25857   eval "$ac_cv_have_x"
25858 fi # $with_x != no
25859
25860 if test "$have_x" != yes; then
25861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25862 $as_echo "$have_x" >&6; }
25863   no_x=yes
25864 else
25865   # If each of the values was on the command line, it overrides each guess.
25866   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25867   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25868   # Update the cache value to reflect the command line values.
25869   ac_cv_have_x="have_x=yes\
25870         ac_x_includes='$x_includes'\
25871         ac_x_libraries='$x_libraries'"
25872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25873 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25874 fi
25875
25876 if test "$no_x" = yes; then
25877   # Not all programs may use this symbol, but it does not hurt to define it.
25878
25879 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25880
25881   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25882 else
25883   if test -n "$x_includes"; then
25884     X_CFLAGS="$X_CFLAGS -I$x_includes"
25885   fi
25886
25887   # It would also be nice to do this for all -L options, not just this one.
25888   if test -n "$x_libraries"; then
25889     X_LIBS="$X_LIBS -L$x_libraries"
25890     # For Solaris; some versions of Sun CC require a space after -R and
25891     # others require no space.  Words are not sufficient . . . .
25892     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25893 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25894     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25895     ac_xsave_c_werror_flag=$ac_c_werror_flag
25896     ac_c_werror_flag=yes
25897     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25898 /* end confdefs.h.  */
25899
25900 int
25901 main ()
25902 {
25903
25904   ;
25905   return 0;
25906 }
25907 _ACEOF
25908 if ac_fn_c_try_link "$LINENO"; then :
25909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25910 $as_echo "no" >&6; }
25911        X_LIBS="$X_LIBS -R$x_libraries"
25912 else
25913   LIBS="$ac_xsave_LIBS -R $x_libraries"
25914        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25915 /* end confdefs.h.  */
25916
25917 int
25918 main ()
25919 {
25920
25921   ;
25922   return 0;
25923 }
25924 _ACEOF
25925 if ac_fn_c_try_link "$LINENO"; then :
25926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25927 $as_echo "yes" >&6; }
25928           X_LIBS="$X_LIBS -R $x_libraries"
25929 else
25930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25931 $as_echo "neither works" >&6; }
25932 fi
25933 rm -f core conftest.err conftest.$ac_objext \
25934     conftest$ac_exeext conftest.$ac_ext
25935 fi
25936 rm -f core conftest.err conftest.$ac_objext \
25937     conftest$ac_exeext conftest.$ac_ext
25938     ac_c_werror_flag=$ac_xsave_c_werror_flag
25939     LIBS=$ac_xsave_LIBS
25940   fi
25941
25942   # Check for system-dependent libraries X programs must link with.
25943   # Do this before checking for the system-independent R6 libraries
25944   # (-lICE), since we may need -lsocket or whatever for X linking.
25945
25946   if test "$ISC" = yes; then
25947     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25948   else
25949     # Martyn Johnson says this is needed for Ultrix, if the X
25950     # libraries were built with DECnet support.  And Karl Berry says
25951     # the Alpha needs dnet_stub (dnet does not exist).
25952     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25953     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25954 /* end confdefs.h.  */
25955
25956 /* Override any GCC internal prototype to avoid an error.
25957    Use char because int might match the return type of a GCC
25958    builtin and then its argument prototype would still apply.  */
25959 #ifdef __cplusplus
25960 extern "C"
25961 #endif
25962 char XOpenDisplay ();
25963 int
25964 main ()
25965 {
25966 return XOpenDisplay ();
25967   ;
25968   return 0;
25969 }
25970 _ACEOF
25971 if ac_fn_c_try_link "$LINENO"; then :
25972
25973 else
25974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25975 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25976 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25977   $as_echo_n "(cached) " >&6
25978 else
25979   ac_check_lib_save_LIBS=$LIBS
25980 LIBS="-ldnet  $LIBS"
25981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25982 /* end confdefs.h.  */
25983
25984 /* Override any GCC internal prototype to avoid an error.
25985    Use char because int might match the return type of a GCC
25986    builtin and then its argument prototype would still apply.  */
25987 #ifdef __cplusplus
25988 extern "C"
25989 #endif
25990 char dnet_ntoa ();
25991 int
25992 main ()
25993 {
25994 return dnet_ntoa ();
25995   ;
25996   return 0;
25997 }
25998 _ACEOF
25999 if ac_fn_c_try_link "$LINENO"; then :
26000   ac_cv_lib_dnet_dnet_ntoa=yes
26001 else
26002   ac_cv_lib_dnet_dnet_ntoa=no
26003 fi
26004 rm -f core conftest.err conftest.$ac_objext \
26005     conftest$ac_exeext conftest.$ac_ext
26006 LIBS=$ac_check_lib_save_LIBS
26007 fi
26008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26009 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
26010 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
26011   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26012 fi
26013
26014     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26015       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
26016 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
26017 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
26018   $as_echo_n "(cached) " >&6
26019 else
26020   ac_check_lib_save_LIBS=$LIBS
26021 LIBS="-ldnet_stub  $LIBS"
26022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26023 /* end confdefs.h.  */
26024
26025 /* Override any GCC internal prototype to avoid an error.
26026    Use char because int might match the return type of a GCC
26027    builtin and then its argument prototype would still apply.  */
26028 #ifdef __cplusplus
26029 extern "C"
26030 #endif
26031 char dnet_ntoa ();
26032 int
26033 main ()
26034 {
26035 return dnet_ntoa ();
26036   ;
26037   return 0;
26038 }
26039 _ACEOF
26040 if ac_fn_c_try_link "$LINENO"; then :
26041   ac_cv_lib_dnet_stub_dnet_ntoa=yes
26042 else
26043   ac_cv_lib_dnet_stub_dnet_ntoa=no
26044 fi
26045 rm -f core conftest.err conftest.$ac_objext \
26046     conftest$ac_exeext conftest.$ac_ext
26047 LIBS=$ac_check_lib_save_LIBS
26048 fi
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26050 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
26051 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
26052   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26053 fi
26054
26055     fi
26056 fi
26057 rm -f core conftest.err conftest.$ac_objext \
26058     conftest$ac_exeext conftest.$ac_ext
26059     LIBS="$ac_xsave_LIBS"
26060
26061     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26062     # to get the SysV transport functions.
26063     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26064     # needs -lnsl.
26065     # The nsl library prevents programs from opening the X display
26066     # on Irix 5.2, according to T.E. Dickey.
26067     # The functions gethostbyname, getservbyname, and inet_addr are
26068     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26069     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
26070 if test "x$ac_cv_func_gethostbyname" = xyes; then :
26071
26072 fi
26073
26074     if test $ac_cv_func_gethostbyname = no; then
26075       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
26076 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
26077 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
26078   $as_echo_n "(cached) " >&6
26079 else
26080   ac_check_lib_save_LIBS=$LIBS
26081 LIBS="-lnsl  $LIBS"
26082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26083 /* end confdefs.h.  */
26084
26085 /* Override any GCC internal prototype to avoid an error.
26086    Use char because int might match the return type of a GCC
26087    builtin and then its argument prototype would still apply.  */
26088 #ifdef __cplusplus
26089 extern "C"
26090 #endif
26091 char gethostbyname ();
26092 int
26093 main ()
26094 {
26095 return gethostbyname ();
26096   ;
26097   return 0;
26098 }
26099 _ACEOF
26100 if ac_fn_c_try_link "$LINENO"; then :
26101   ac_cv_lib_nsl_gethostbyname=yes
26102 else
26103   ac_cv_lib_nsl_gethostbyname=no
26104 fi
26105 rm -f core conftest.err conftest.$ac_objext \
26106     conftest$ac_exeext conftest.$ac_ext
26107 LIBS=$ac_check_lib_save_LIBS
26108 fi
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
26110 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
26111 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
26112   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26113 fi
26114
26115       if test $ac_cv_lib_nsl_gethostbyname = no; then
26116         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
26117 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
26118 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
26119   $as_echo_n "(cached) " >&6
26120 else
26121   ac_check_lib_save_LIBS=$LIBS
26122 LIBS="-lbsd  $LIBS"
26123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26124 /* end confdefs.h.  */
26125
26126 /* Override any GCC internal prototype to avoid an error.
26127    Use char because int might match the return type of a GCC
26128    builtin and then its argument prototype would still apply.  */
26129 #ifdef __cplusplus
26130 extern "C"
26131 #endif
26132 char gethostbyname ();
26133 int
26134 main ()
26135 {
26136 return gethostbyname ();
26137   ;
26138   return 0;
26139 }
26140 _ACEOF
26141 if ac_fn_c_try_link "$LINENO"; then :
26142   ac_cv_lib_bsd_gethostbyname=yes
26143 else
26144   ac_cv_lib_bsd_gethostbyname=no
26145 fi
26146 rm -f core conftest.err conftest.$ac_objext \
26147     conftest$ac_exeext conftest.$ac_ext
26148 LIBS=$ac_check_lib_save_LIBS
26149 fi
26150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
26151 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
26152 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
26153   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26154 fi
26155
26156       fi
26157     fi
26158
26159     # lieder@skyler.mavd.honeywell.com says without -lsocket,
26160     # socket/setsockopt and other routines are undefined under SCO ODT
26161     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
26162     # on later versions), says Simon Leinen: it contains gethostby*
26163     # variants that don't use the name server (or something).  -lsocket
26164     # must be given before -lnsl if both are needed.  We assume that
26165     # if connect needs -lnsl, so does gethostbyname.
26166     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
26167 if test "x$ac_cv_func_connect" = xyes; then :
26168
26169 fi
26170
26171     if test $ac_cv_func_connect = no; then
26172       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
26173 $as_echo_n "checking for connect in -lsocket... " >&6; }
26174 if ${ac_cv_lib_socket_connect+:} false; then :
26175   $as_echo_n "(cached) " >&6
26176 else
26177   ac_check_lib_save_LIBS=$LIBS
26178 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26180 /* end confdefs.h.  */
26181
26182 /* Override any GCC internal prototype to avoid an error.
26183    Use char because int might match the return type of a GCC
26184    builtin and then its argument prototype would still apply.  */
26185 #ifdef __cplusplus
26186 extern "C"
26187 #endif
26188 char connect ();
26189 int
26190 main ()
26191 {
26192 return connect ();
26193   ;
26194   return 0;
26195 }
26196 _ACEOF
26197 if ac_fn_c_try_link "$LINENO"; then :
26198   ac_cv_lib_socket_connect=yes
26199 else
26200   ac_cv_lib_socket_connect=no
26201 fi
26202 rm -f core conftest.err conftest.$ac_objext \
26203     conftest$ac_exeext conftest.$ac_ext
26204 LIBS=$ac_check_lib_save_LIBS
26205 fi
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
26207 $as_echo "$ac_cv_lib_socket_connect" >&6; }
26208 if test "x$ac_cv_lib_socket_connect" = xyes; then :
26209   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26210 fi
26211
26212     fi
26213
26214     # Guillermo Gomez says -lposix is necessary on A/UX.
26215     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
26216 if test "x$ac_cv_func_remove" = xyes; then :
26217
26218 fi
26219
26220     if test $ac_cv_func_remove = no; then
26221       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
26222 $as_echo_n "checking for remove in -lposix... " >&6; }
26223 if ${ac_cv_lib_posix_remove+:} false; then :
26224   $as_echo_n "(cached) " >&6
26225 else
26226   ac_check_lib_save_LIBS=$LIBS
26227 LIBS="-lposix  $LIBS"
26228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26229 /* end confdefs.h.  */
26230
26231 /* Override any GCC internal prototype to avoid an error.
26232    Use char because int might match the return type of a GCC
26233    builtin and then its argument prototype would still apply.  */
26234 #ifdef __cplusplus
26235 extern "C"
26236 #endif
26237 char remove ();
26238 int
26239 main ()
26240 {
26241 return remove ();
26242   ;
26243   return 0;
26244 }
26245 _ACEOF
26246 if ac_fn_c_try_link "$LINENO"; then :
26247   ac_cv_lib_posix_remove=yes
26248 else
26249   ac_cv_lib_posix_remove=no
26250 fi
26251 rm -f core conftest.err conftest.$ac_objext \
26252     conftest$ac_exeext conftest.$ac_ext
26253 LIBS=$ac_check_lib_save_LIBS
26254 fi
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
26256 $as_echo "$ac_cv_lib_posix_remove" >&6; }
26257 if test "x$ac_cv_lib_posix_remove" = xyes; then :
26258   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26259 fi
26260
26261     fi
26262
26263     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26264     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
26265 if test "x$ac_cv_func_shmat" = xyes; then :
26266
26267 fi
26268
26269     if test $ac_cv_func_shmat = no; then
26270       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
26271 $as_echo_n "checking for shmat in -lipc... " >&6; }
26272 if ${ac_cv_lib_ipc_shmat+:} false; then :
26273   $as_echo_n "(cached) " >&6
26274 else
26275   ac_check_lib_save_LIBS=$LIBS
26276 LIBS="-lipc  $LIBS"
26277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26278 /* end confdefs.h.  */
26279
26280 /* Override any GCC internal prototype to avoid an error.
26281    Use char because int might match the return type of a GCC
26282    builtin and then its argument prototype would still apply.  */
26283 #ifdef __cplusplus
26284 extern "C"
26285 #endif
26286 char shmat ();
26287 int
26288 main ()
26289 {
26290 return shmat ();
26291   ;
26292   return 0;
26293 }
26294 _ACEOF
26295 if ac_fn_c_try_link "$LINENO"; then :
26296   ac_cv_lib_ipc_shmat=yes
26297 else
26298   ac_cv_lib_ipc_shmat=no
26299 fi
26300 rm -f core conftest.err conftest.$ac_objext \
26301     conftest$ac_exeext conftest.$ac_ext
26302 LIBS=$ac_check_lib_save_LIBS
26303 fi
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
26305 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
26306 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
26307   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26308 fi
26309
26310     fi
26311   fi
26312
26313   # Check for libraries that X11R6 Xt/Xaw programs need.
26314   ac_save_LDFLAGS=$LDFLAGS
26315   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26316   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26317   # check for ICE first), but we must link in the order -lSM -lICE or
26318   # we get undefined symbols.  So assume we have SM if we have ICE.
26319   # These have to be linked with before -lX11, unlike the other
26320   # libraries we check for below, so use a different variable.
26321   # John Interrante, Karl Berry
26322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
26323 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
26324 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
26325   $as_echo_n "(cached) " >&6
26326 else
26327   ac_check_lib_save_LIBS=$LIBS
26328 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26330 /* end confdefs.h.  */
26331
26332 /* Override any GCC internal prototype to avoid an error.
26333    Use char because int might match the return type of a GCC
26334    builtin and then its argument prototype would still apply.  */
26335 #ifdef __cplusplus
26336 extern "C"
26337 #endif
26338 char IceConnectionNumber ();
26339 int
26340 main ()
26341 {
26342 return IceConnectionNumber ();
26343   ;
26344   return 0;
26345 }
26346 _ACEOF
26347 if ac_fn_c_try_link "$LINENO"; then :
26348   ac_cv_lib_ICE_IceConnectionNumber=yes
26349 else
26350   ac_cv_lib_ICE_IceConnectionNumber=no
26351 fi
26352 rm -f core conftest.err conftest.$ac_objext \
26353     conftest$ac_exeext conftest.$ac_ext
26354 LIBS=$ac_check_lib_save_LIBS
26355 fi
26356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26357 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
26358 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
26359   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26360 fi
26361
26362   LDFLAGS=$ac_save_LDFLAGS
26363
26364 fi
26365
26366 if test "$no_x" != 'yes'; then
26367     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26368 $as_echo "-------------------------------------------------------------" >&6; }
26369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
26370 $as_echo_n "checking for X11... " >&6; }
26371     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26372 $as_echo "" >&6; }
26373     LDFLAGS="$LDFLAGS $X_LIBS"
26374     X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
26375     LIBS="$X11_LIBS $LIBS"
26376     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
26377
26378
26379 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
26380
26381     #
26382     # Check for X11 shared memory extension
26383     #
26384     # shmctl is required to support the shared memory extension
26385     ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
26386 if test "x$ac_cv_func_shmctl" = xyes; then :
26387   have_shmctl='yes'
26388 fi
26389
26390     if test "$have_shmctl" != 'yes'; then
26391         PERSIST_LIBS=$LIBS
26392         LIBS="$LIBS -lcygipc"
26393         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26394 /* end confdefs.h.  */
26395
26396 /* Override any GCC internal prototype to avoid an error.
26397    Use char because int might match the return type of a GCC
26398    builtin and then its argument prototype would still apply.  */
26399 #ifdef __cplusplus
26400 extern "C"
26401 #endif
26402 char shmctl ();
26403 int
26404 main ()
26405 {
26406 return shmctl ();
26407   ;
26408   return 0;
26409 }
26410 _ACEOF
26411 if ac_fn_c_try_link "$LINENO"; then :
26412   have_shmctl='yes'; IPC_LIBS='-lcygipc'
26413 fi
26414 rm -f core conftest.err conftest.$ac_objext \
26415     conftest$ac_exeext conftest.$ac_ext
26416         LIBS=$PERSIST_LIBS
26417     fi
26418
26419     if test "$have_shmctl" = 'yes'; then
26420         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
26421 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
26422 if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
26423   $as_echo_n "(cached) " >&6
26424 else
26425   ac_check_lib_save_LIBS=$LIBS
26426 LIBS="-lXext  $LIBS"
26427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26428 /* end confdefs.h.  */
26429
26430 /* Override any GCC internal prototype to avoid an error.
26431    Use char because int might match the return type of a GCC
26432    builtin and then its argument prototype would still apply.  */
26433 #ifdef __cplusplus
26434 extern "C"
26435 #endif
26436 char XShmAttach ();
26437 int
26438 main ()
26439 {
26440 return XShmAttach ();
26441   ;
26442   return 0;
26443 }
26444 _ACEOF
26445 if ac_fn_c_try_link "$LINENO"; then :
26446   ac_cv_lib_Xext_XShmAttach=yes
26447 else
26448   ac_cv_lib_Xext_XShmAttach=no
26449 fi
26450 rm -f core conftest.err conftest.$ac_objext \
26451     conftest$ac_exeext conftest.$ac_ext
26452 LIBS=$ac_check_lib_save_LIBS
26453 fi
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
26455 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
26456 if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
26457   XEXT_LIBS='-lXext' ;
26458 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
26459
26460 fi
26461
26462     fi
26463
26464     #
26465     # Check for X11 shape extension
26466     #
26467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
26468 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
26469 if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
26470   $as_echo_n "(cached) " >&6
26471 else
26472   ac_check_lib_save_LIBS=$LIBS
26473 LIBS="-lXext  $LIBS"
26474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26475 /* end confdefs.h.  */
26476
26477 /* Override any GCC internal prototype to avoid an error.
26478    Use char because int might match the return type of a GCC
26479    builtin and then its argument prototype would still apply.  */
26480 #ifdef __cplusplus
26481 extern "C"
26482 #endif
26483 char XShapeCombineMask ();
26484 int
26485 main ()
26486 {
26487 return XShapeCombineMask ();
26488   ;
26489   return 0;
26490 }
26491 _ACEOF
26492 if ac_fn_c_try_link "$LINENO"; then :
26493   ac_cv_lib_Xext_XShapeCombineMask=yes
26494 else
26495   ac_cv_lib_Xext_XShapeCombineMask=no
26496 fi
26497 rm -f core conftest.err conftest.$ac_objext \
26498     conftest$ac_exeext conftest.$ac_ext
26499 LIBS=$ac_check_lib_save_LIBS
26500 fi
26501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
26502 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
26503 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
26504   XEXT_LIBS='-lXext' ;
26505 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
26506
26507 fi
26508
26509     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
26510 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
26511 if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
26512   $as_echo_n "(cached) " >&6
26513 else
26514   ac_check_lib_save_LIBS=$LIBS
26515 LIBS="-lXt  $LIBS"
26516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26517 /* end confdefs.h.  */
26518
26519 /* Override any GCC internal prototype to avoid an error.
26520    Use char because int might match the return type of a GCC
26521    builtin and then its argument prototype would still apply.  */
26522 #ifdef __cplusplus
26523 extern "C"
26524 #endif
26525 char XtSetEventDispatcher ();
26526 int
26527 main ()
26528 {
26529 return XtSetEventDispatcher ();
26530   ;
26531   return 0;
26532 }
26533 _ACEOF
26534 if ac_fn_c_try_link "$LINENO"; then :
26535   ac_cv_lib_Xt_XtSetEventDispatcher=yes
26536 else
26537   ac_cv_lib_Xt_XtSetEventDispatcher=no
26538 fi
26539 rm -f core conftest.err conftest.$ac_objext \
26540     conftest$ac_exeext conftest.$ac_ext
26541 LIBS=$ac_check_lib_save_LIBS
26542 fi
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
26544 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
26545 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
26546   XT_LIBS='-lXt'
26547 fi
26548
26549     LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
26550 fi
26551 if test "$no_x" != 'yes'; then
26552   have_x='yes'
26553 else
26554   have_x='no'
26555 fi
26556  if test "$have_x" = 'yes'; then
26557   X11_DELEGATE_TRUE=
26558   X11_DELEGATE_FALSE='#'
26559 else
26560   X11_DELEGATE_TRUE='#'
26561   X11_DELEGATE_FALSE=
26562 fi
26563
26564
26565
26566
26567
26568 #
26569 # Check for ZLIB
26570 #
26571
26572 # Check whether --with-zlib was given.
26573 if test "${with_zlib+set}" = set; then :
26574   withval=$with_zlib; with_zlib=$withval
26575 else
26576   with_zlib='yes'
26577 fi
26578
26579
26580 if test "$with_zlib" != 'yes'; then
26581     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
26582 fi
26583
26584 have_zlib='no'
26585 ZLIB_LIBS=''
26586 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
26587     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26588 $as_echo "-------------------------------------------------------------" >&6; }
26589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
26590 $as_echo_n "checking for ZLIB... " >&6; }
26591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26592 $as_echo "" >&6; }
26593     ZLIB_LIBS=''
26594     failed=0
26595     passed=0
26596     ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
26597 if test "x$ac_cv_header_zconf_h" = xyes; then :
26598   passed=`expr $passed + 1`
26599 else
26600   failed=`expr $failed + 1`
26601 fi
26602
26603
26604     ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
26605 if test "x$ac_cv_header_zlib_h" = xyes; then :
26606   passed=`expr $passed + 1`
26607 else
26608   failed=`expr $failed + 1`
26609 fi
26610
26611
26612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
26613 $as_echo_n "checking for compress in -lz... " >&6; }
26614 if ${ac_cv_lib_z_compress+:} false; then :
26615   $as_echo_n "(cached) " >&6
26616 else
26617   ac_check_lib_save_LIBS=$LIBS
26618 LIBS="-lz  $LIBS"
26619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26620 /* end confdefs.h.  */
26621
26622 /* Override any GCC internal prototype to avoid an error.
26623    Use char because int might match the return type of a GCC
26624    builtin and then its argument prototype would still apply.  */
26625 #ifdef __cplusplus
26626 extern "C"
26627 #endif
26628 char compress ();
26629 int
26630 main ()
26631 {
26632 return compress ();
26633   ;
26634   return 0;
26635 }
26636 _ACEOF
26637 if ac_fn_c_try_link "$LINENO"; then :
26638   ac_cv_lib_z_compress=yes
26639 else
26640   ac_cv_lib_z_compress=no
26641 fi
26642 rm -f core conftest.err conftest.$ac_objext \
26643     conftest$ac_exeext conftest.$ac_ext
26644 LIBS=$ac_check_lib_save_LIBS
26645 fi
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
26647 $as_echo "$ac_cv_lib_z_compress" >&6; }
26648 if test "x$ac_cv_lib_z_compress" = xyes; then :
26649   passed=`expr $passed + 1`
26650 else
26651   failed=`expr $failed + 1`
26652 fi
26653
26654     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
26655 $as_echo_n "checking for uncompress in -lz... " >&6; }
26656 if ${ac_cv_lib_z_uncompress+:} false; then :
26657   $as_echo_n "(cached) " >&6
26658 else
26659   ac_check_lib_save_LIBS=$LIBS
26660 LIBS="-lz  $LIBS"
26661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26662 /* end confdefs.h.  */
26663
26664 /* Override any GCC internal prototype to avoid an error.
26665    Use char because int might match the return type of a GCC
26666    builtin and then its argument prototype would still apply.  */
26667 #ifdef __cplusplus
26668 extern "C"
26669 #endif
26670 char uncompress ();
26671 int
26672 main ()
26673 {
26674 return uncompress ();
26675   ;
26676   return 0;
26677 }
26678 _ACEOF
26679 if ac_fn_c_try_link "$LINENO"; then :
26680   ac_cv_lib_z_uncompress=yes
26681 else
26682   ac_cv_lib_z_uncompress=no
26683 fi
26684 rm -f core conftest.err conftest.$ac_objext \
26685     conftest$ac_exeext conftest.$ac_ext
26686 LIBS=$ac_check_lib_save_LIBS
26687 fi
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
26689 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
26690 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
26691   passed=`expr $passed + 1`
26692 else
26693   failed=`expr $failed + 1`
26694 fi
26695
26696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
26697 $as_echo_n "checking for deflate in -lz... " >&6; }
26698 if ${ac_cv_lib_z_deflate+:} false; then :
26699   $as_echo_n "(cached) " >&6
26700 else
26701   ac_check_lib_save_LIBS=$LIBS
26702 LIBS="-lz  $LIBS"
26703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26704 /* end confdefs.h.  */
26705
26706 /* Override any GCC internal prototype to avoid an error.
26707    Use char because int might match the return type of a GCC
26708    builtin and then its argument prototype would still apply.  */
26709 #ifdef __cplusplus
26710 extern "C"
26711 #endif
26712 char deflate ();
26713 int
26714 main ()
26715 {
26716 return deflate ();
26717   ;
26718   return 0;
26719 }
26720 _ACEOF
26721 if ac_fn_c_try_link "$LINENO"; then :
26722   ac_cv_lib_z_deflate=yes
26723 else
26724   ac_cv_lib_z_deflate=no
26725 fi
26726 rm -f core conftest.err conftest.$ac_objext \
26727     conftest$ac_exeext conftest.$ac_ext
26728 LIBS=$ac_check_lib_save_LIBS
26729 fi
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
26731 $as_echo "$ac_cv_lib_z_deflate" >&6; }
26732 if test "x$ac_cv_lib_z_deflate" = xyes; then :
26733   passed=`expr $passed + 1`
26734 else
26735   failed=`expr $failed + 1`
26736 fi
26737
26738     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
26739 $as_echo_n "checking for inflate in -lz... " >&6; }
26740 if ${ac_cv_lib_z_inflate+:} false; then :
26741   $as_echo_n "(cached) " >&6
26742 else
26743   ac_check_lib_save_LIBS=$LIBS
26744 LIBS="-lz  $LIBS"
26745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26746 /* end confdefs.h.  */
26747
26748 /* Override any GCC internal prototype to avoid an error.
26749    Use char because int might match the return type of a GCC
26750    builtin and then its argument prototype would still apply.  */
26751 #ifdef __cplusplus
26752 extern "C"
26753 #endif
26754 char inflate ();
26755 int
26756 main ()
26757 {
26758 return inflate ();
26759   ;
26760   return 0;
26761 }
26762 _ACEOF
26763 if ac_fn_c_try_link "$LINENO"; then :
26764   ac_cv_lib_z_inflate=yes
26765 else
26766   ac_cv_lib_z_inflate=no
26767 fi
26768 rm -f core conftest.err conftest.$ac_objext \
26769     conftest$ac_exeext conftest.$ac_ext
26770 LIBS=$ac_check_lib_save_LIBS
26771 fi
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
26773 $as_echo "$ac_cv_lib_z_inflate" >&6; }
26774 if test "x$ac_cv_lib_z_inflate" = xyes; then :
26775   passed=`expr $passed + 1`
26776 else
26777   failed=`expr $failed + 1`
26778 fi
26779
26780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
26781 $as_echo_n "checking for gzseek in -lz... " >&6; }
26782 if ${ac_cv_lib_z_gzseek+:} false; then :
26783   $as_echo_n "(cached) " >&6
26784 else
26785   ac_check_lib_save_LIBS=$LIBS
26786 LIBS="-lz  $LIBS"
26787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26788 /* end confdefs.h.  */
26789
26790 /* Override any GCC internal prototype to avoid an error.
26791    Use char because int might match the return type of a GCC
26792    builtin and then its argument prototype would still apply.  */
26793 #ifdef __cplusplus
26794 extern "C"
26795 #endif
26796 char gzseek ();
26797 int
26798 main ()
26799 {
26800 return gzseek ();
26801   ;
26802   return 0;
26803 }
26804 _ACEOF
26805 if ac_fn_c_try_link "$LINENO"; then :
26806   ac_cv_lib_z_gzseek=yes
26807 else
26808   ac_cv_lib_z_gzseek=no
26809 fi
26810 rm -f core conftest.err conftest.$ac_objext \
26811     conftest$ac_exeext conftest.$ac_ext
26812 LIBS=$ac_check_lib_save_LIBS
26813 fi
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
26815 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
26816 if test "x$ac_cv_lib_z_gzseek" = xyes; then :
26817   passed=`expr $passed + 1`
26818 else
26819   failed=`expr $failed + 1`
26820 fi
26821
26822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
26823 $as_echo_n "checking for gztell in -lz... " >&6; }
26824 if ${ac_cv_lib_z_gztell+:} false; then :
26825   $as_echo_n "(cached) " >&6
26826 else
26827   ac_check_lib_save_LIBS=$LIBS
26828 LIBS="-lz  $LIBS"
26829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26830 /* end confdefs.h.  */
26831
26832 /* Override any GCC internal prototype to avoid an error.
26833    Use char because int might match the return type of a GCC
26834    builtin and then its argument prototype would still apply.  */
26835 #ifdef __cplusplus
26836 extern "C"
26837 #endif
26838 char gztell ();
26839 int
26840 main ()
26841 {
26842 return gztell ();
26843   ;
26844   return 0;
26845 }
26846 _ACEOF
26847 if ac_fn_c_try_link "$LINENO"; then :
26848   ac_cv_lib_z_gztell=yes
26849 else
26850   ac_cv_lib_z_gztell=no
26851 fi
26852 rm -f core conftest.err conftest.$ac_objext \
26853     conftest$ac_exeext conftest.$ac_ext
26854 LIBS=$ac_check_lib_save_LIBS
26855 fi
26856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
26857 $as_echo "$ac_cv_lib_z_gztell" >&6; }
26858 if test "x$ac_cv_lib_z_gztell" = xyes; then :
26859   passed=`expr $passed + 1`
26860 else
26861   failed=`expr $failed + 1`
26862 fi
26863
26864     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
26865 $as_echo_n "checking if ZLIB package is complete... " >&6; }
26866     if test $passed -gt 0; then
26867         if test $failed -gt 0; then
26868             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26869 $as_echo "no -- some components failed test" >&6; }
26870             have_zlib='no (failed tests)'
26871         else
26872             ZLIB_LIBS='-lz'
26873             LIBS="$ZLIB_LIBS $LIBS"
26874
26875 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
26876
26877             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26878 $as_echo "yes" >&6; }
26879             have_zlib='yes'
26880         fi
26881     else
26882         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26883 $as_echo "no" >&6; }
26884     fi
26885 fi
26886  if test "$have_zlib" = 'yes'; then
26887   ZLIB_DELEGATE_TRUE=
26888   ZLIB_DELEGATE_FALSE='#'
26889 else
26890   ZLIB_DELEGATE_TRUE='#'
26891   ZLIB_DELEGATE_FALSE=
26892 fi
26893
26894
26895
26896 #
26897 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26898 #
26899 LIB_DL=''
26900 if test "$enable_profiling" = 'yes'; then
26901     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
26902 $as_echo_n "checking for dlopen in -ldl... " >&6; }
26903 if ${ac_cv_lib_dl_dlopen+:} false; then :
26904   $as_echo_n "(cached) " >&6
26905 else
26906   ac_check_lib_save_LIBS=$LIBS
26907 LIBS="-ldl  $LIBS"
26908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26909 /* end confdefs.h.  */
26910
26911 /* Override any GCC internal prototype to avoid an error.
26912    Use char because int might match the return type of a GCC
26913    builtin and then its argument prototype would still apply.  */
26914 #ifdef __cplusplus
26915 extern "C"
26916 #endif
26917 char dlopen ();
26918 int
26919 main ()
26920 {
26921 return dlopen ();
26922   ;
26923   return 0;
26924 }
26925 _ACEOF
26926 if ac_fn_c_try_link "$LINENO"; then :
26927   ac_cv_lib_dl_dlopen=yes
26928 else
26929   ac_cv_lib_dl_dlopen=no
26930 fi
26931 rm -f core conftest.err conftest.$ac_objext \
26932     conftest$ac_exeext conftest.$ac_ext
26933 LIBS=$ac_check_lib_save_LIBS
26934 fi
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
26936 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
26937 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
26938   LIB_DL='-ldl'
26939 fi
26940
26941     LIBS="$LIB_DL $LIBS"
26942 fi
26943
26944
26945
26946 #
26947 # Check for Autotrace delegate library.
26948 #
26949
26950 # Check whether --with-autotrace was given.
26951 if test "${with_autotrace+set}" = set; then :
26952   withval=$with_autotrace; with_autotrace=$withval
26953 else
26954   with_autotrace='no'
26955 fi
26956
26957
26958 if test "$with_autotrace" != 'yes'; then
26959     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26960 fi
26961
26962 have_autotrace='no'
26963 AUTOTRACE_CFLAGS=""
26964 AUTOTRACE_LIBS=""
26965 AUTOTRACE_PKG=""
26966 if test "x$with_autotrace" = "xyes"; then
26967     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26968 $as_echo "-------------------------------------------------------------" >&6; }
26969
26970 pkg_failed=no
26971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26972 $as_echo_n "checking for AUTOTRACE... " >&6; }
26973
26974 if test -n "$AUTOTRACE_CFLAGS"; then
26975     pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26976  elif test -n "$PKG_CONFIG"; then
26977     if test -n "$PKG_CONFIG" && \
26978     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26979   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26980   ac_status=$?
26981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26982   test $ac_status = 0; }; then
26983   pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26984 else
26985   pkg_failed=yes
26986 fi
26987  else
26988     pkg_failed=untried
26989 fi
26990 if test -n "$AUTOTRACE_LIBS"; then
26991     pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26992  elif test -n "$PKG_CONFIG"; then
26993     if test -n "$PKG_CONFIG" && \
26994     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26995   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26996   ac_status=$?
26997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26998   test $ac_status = 0; }; then
26999   pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27000 else
27001   pkg_failed=yes
27002 fi
27003  else
27004     pkg_failed=untried
27005 fi
27006
27007
27008
27009 if test $pkg_failed = yes; then
27010
27011 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27012         _pkg_short_errors_supported=yes
27013 else
27014         _pkg_short_errors_supported=no
27015 fi
27016         if test $_pkg_short_errors_supported = yes; then
27017                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27018         else
27019                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27020         fi
27021         # Put the nasty error message in config.log where it belongs
27022         echo "$AUTOTRACE_PKG_ERRORS" >&5
27023
27024         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27025 $as_echo "no" >&6; }
27026                 have_autotrace=no
27027 elif test $pkg_failed = untried; then
27028         have_autotrace=no
27029 else
27030         AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27031         AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27032         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27033 $as_echo "yes" >&6; }
27034         have_autotrace=yes
27035 fi
27036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27037 $as_echo "" >&6; }
27038 fi
27039
27040 if test "$have_autotrace" = 'yes'; then
27041     failed=0
27042
27043 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
27044
27045     if test "$with_modules" = 'no'; then
27046     CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27047     fi
27048 fi
27049
27050  if test "$have_autotrace" = 'yes'; then
27051   AUTOTRACE_DELEGATE_TRUE=
27052   AUTOTRACE_DELEGATE_FALSE='#'
27053 else
27054   AUTOTRACE_DELEGATE_TRUE='#'
27055   AUTOTRACE_DELEGATE_FALSE=
27056 fi
27057
27058
27059
27060
27061
27062 #
27063 # Check for Display Postscript delegate library.
27064 #
27065
27066 # Check whether --with-dps was given.
27067 if test "${with_dps+set}" = set; then :
27068   withval=$with_dps; with_dps=$withval
27069 else
27070   with_dps='yes'
27071 fi
27072
27073
27074 if test "$with_dps" != 'yes'; then
27075     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27076 fi
27077
27078 have_dps='no'
27079 DPS_LIBS=''
27080 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
27081     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27082 $as_echo "-------------------------------------------------------------" >&6; }
27083     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
27084 $as_echo_n "checking for DPS... " >&6; }
27085     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27086 $as_echo "" >&6; }
27087     failed=0
27088     passed=0
27089     PERSIST_CPPFLAGS="$CPPFLAGS"
27090     CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
27091     ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
27092 if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
27093   passed=`expr $passed + 1`
27094 else
27095   failed=`expr $failed + 1`
27096 fi
27097
27098
27099     # DPS issues:
27100     # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27101     # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27102     # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27103     # ImageMagick itself doesn't use -lXt.
27104     have_libdps='no'
27105     LIBDPS_XT=''
27106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
27107 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
27108 if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
27109   $as_echo_n "(cached) " >&6
27110 else
27111   ac_check_lib_save_LIBS=$LIBS
27112 LIBS="-ldps  $LIBS"
27113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27114 /* end confdefs.h.  */
27115
27116 /* Override any GCC internal prototype to avoid an error.
27117    Use char because int might match the return type of a GCC
27118    builtin and then its argument prototype would still apply.  */
27119 #ifdef __cplusplus
27120 extern "C"
27121 #endif
27122 char DPSInitialize ();
27123 int
27124 main ()
27125 {
27126 return DPSInitialize ();
27127   ;
27128   return 0;
27129 }
27130 _ACEOF
27131 if ac_fn_c_try_link "$LINENO"; then :
27132   ac_cv_lib_dps_DPSInitialize=yes
27133 else
27134   ac_cv_lib_dps_DPSInitialize=no
27135 fi
27136 rm -f core conftest.err conftest.$ac_objext \
27137     conftest$ac_exeext conftest.$ac_ext
27138 LIBS=$ac_check_lib_save_LIBS
27139 fi
27140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
27141 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
27142 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
27143   have_libdps='yes'
27144 else
27145   have_libdps='no'
27146 fi
27147
27148     if test "$have_libdps" != 'yes'; then
27149         # Unset cache variable so we can try again.
27150         unset ac_cv_lib_dps_DPSInitialize
27151         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
27152 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
27153 if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
27154   $as_echo_n "(cached) " >&6
27155 else
27156   ac_check_lib_save_LIBS=$LIBS
27157 LIBS="-ldps -lXt $LIBS"
27158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27159 /* end confdefs.h.  */
27160
27161 /* Override any GCC internal prototype to avoid an error.
27162    Use char because int might match the return type of a GCC
27163    builtin and then its argument prototype would still apply.  */
27164 #ifdef __cplusplus
27165 extern "C"
27166 #endif
27167 char DPSInitialize ();
27168 int
27169 main ()
27170 {
27171 return DPSInitialize ();
27172   ;
27173   return 0;
27174 }
27175 _ACEOF
27176 if ac_fn_c_try_link "$LINENO"; then :
27177   ac_cv_lib_dps_DPSInitialize=yes
27178 else
27179   ac_cv_lib_dps_DPSInitialize=no
27180 fi
27181 rm -f core conftest.err conftest.$ac_objext \
27182     conftest$ac_exeext conftest.$ac_ext
27183 LIBS=$ac_check_lib_save_LIBS
27184 fi
27185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
27186 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
27187 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
27188   have_libdps='yes'
27189 else
27190   have_libdps='no'
27191 fi
27192
27193         if test "$have_libdps" = 'yes'; then
27194             LIBDPS_XT='-lXt'
27195         fi
27196     fi
27197     if test "$have_libdps" = 'yes'; then
27198         passed=`expr $passed + 1`
27199     else
27200         failed=`expr $failed + 1`
27201     fi
27202     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
27203 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
27204 if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
27205   $as_echo_n "(cached) " >&6
27206 else
27207   ac_check_lib_save_LIBS=$LIBS
27208 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
27209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27210 /* end confdefs.h.  */
27211
27212 /* Override any GCC internal prototype to avoid an error.
27213    Use char because int might match the return type of a GCC
27214    builtin and then its argument prototype would still apply.  */
27215 #ifdef __cplusplus
27216 extern "C"
27217 #endif
27218 char XDPSPixelsPerPoint ();
27219 int
27220 main ()
27221 {
27222 return XDPSPixelsPerPoint ();
27223   ;
27224   return 0;
27225 }
27226 _ACEOF
27227 if ac_fn_c_try_link "$LINENO"; then :
27228   ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
27229 else
27230   ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
27231 fi
27232 rm -f core conftest.err conftest.$ac_objext \
27233     conftest$ac_exeext conftest.$ac_ext
27234 LIBS=$ac_check_lib_save_LIBS
27235 fi
27236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
27237 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
27238 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
27239   passed=`expr $passed + 1`
27240 else
27241   failed=`expr $failed + 1`
27242 fi
27243
27244     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
27245 $as_echo_n "checking if DPS package is complete... " >&6; }
27246     if test $passed -gt 0; then
27247         if test $failed -gt 0; then
27248             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27249 $as_echo "no -- some components failed test" >&6; }
27250             have_dps='no (failed tests)'
27251             CPPFLAGS="$PERSIST_CPPFLAGS"
27252         else
27253             DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
27254             LIBS="$DPS_LIBS $LIBS"
27255
27256 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
27257
27258             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27259 $as_echo "yes" >&6; }
27260             have_dps='yes'
27261         fi
27262     else
27263         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27264 $as_echo "no" >&6; }
27265         CPPFLAGS=$PERSIST_CPPFLAGS
27266     fi
27267 fi
27268  if test "$have_dps" = 'yes'; then
27269   DPS_DELEGATE_TRUE=
27270   DPS_DELEGATE_FALSE='#'
27271 else
27272   DPS_DELEGATE_TRUE='#'
27273   DPS_DELEGATE_FALSE=
27274 fi
27275
27276
27277
27278
27279 #
27280 # Check for DJVU delegate library.
27281 #
27282
27283 # Check whether --with-djvu was given.
27284 if test "${with_djvu+set}" = set; then :
27285   withval=$with_djvu; with_djvu=$withval
27286 else
27287   with_djvu='yes'
27288 fi
27289
27290
27291 if test "$with_djvu" != 'yes'; then
27292     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
27293 fi
27294
27295 have_djvu='no'
27296 DJVU_LIBS=''
27297 if test "$with_djvu" != 'no'; then
27298     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27299 $as_echo "-------------------------------------------------------------" >&6; }
27300     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
27301 $as_echo_n "checking for DJVU... " >&6; }
27302     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27303 $as_echo "" >&6; }
27304     failed=0
27305     passed=0
27306     ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
27307 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
27308   passed=`expr $passed + 1`
27309 else
27310   failed=`expr $failed + 1`
27311 fi
27312
27313
27314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
27315 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
27316 if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
27317   $as_echo_n "(cached) " >&6
27318 else
27319   ac_check_lib_save_LIBS=$LIBS
27320 LIBS="-ldjvulibre  $LIBS"
27321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27322 /* end confdefs.h.  */
27323
27324 /* Override any GCC internal prototype to avoid an error.
27325    Use char because int might match the return type of a GCC
27326    builtin and then its argument prototype would still apply.  */
27327 #ifdef __cplusplus
27328 extern "C"
27329 #endif
27330 char ddjvu_context_create ();
27331 int
27332 main ()
27333 {
27334 return ddjvu_context_create ();
27335   ;
27336   return 0;
27337 }
27338 _ACEOF
27339 if ac_fn_c_try_link "$LINENO"; then :
27340   ac_cv_lib_djvulibre_ddjvu_context_create=yes
27341 else
27342   ac_cv_lib_djvulibre_ddjvu_context_create=no
27343 fi
27344 rm -f core conftest.err conftest.$ac_objext \
27345     conftest$ac_exeext conftest.$ac_ext
27346 LIBS=$ac_check_lib_save_LIBS
27347 fi
27348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
27349 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
27350 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
27351   passed=`expr $passed + 1`
27352 else
27353   failed=`expr $failed + 1`
27354 fi
27355
27356     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
27357 $as_echo_n "checking if DJVU package is complete... " >&6; }
27358     if test $passed -gt 0; then
27359         if test $failed -gt 0; then
27360             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27361 $as_echo "no -- some components failed test" >&6; }
27362             have_djvu='no (failed tests)'
27363         else
27364             DJVU_LIBS='-ldjvulibre'
27365             LIBS="$DJVU_LIBS $LIBS"
27366
27367 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
27368
27369             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27370 $as_echo "yes" >&6; }
27371             have_djvu='yes'
27372         fi
27373     else
27374         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27375 $as_echo "no" >&6; }
27376     fi
27377 fi
27378  if test "$have_djvu" = 'yes'; then
27379   DJVU_DELEGATE_TRUE=
27380   DJVU_DELEGATE_FALSE='#'
27381 else
27382   DJVU_DELEGATE_TRUE='#'
27383   DJVU_DELEGATE_FALSE=
27384 fi
27385
27386
27387
27388
27389 #
27390 # Set DejaVu font directory.
27391 #
27392
27393 # Check whether --with-dejavu-font-dir was given.
27394 if test "${with_dejavu_font_dir+set}" = set; then :
27395   withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
27396 else
27397   with_dejavu_font_dir='default'
27398 fi
27399
27400
27401 if test "$with_dejavu_font_dir" != 'default'; then
27402     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
27403 fi
27404
27405
27406 #
27407 # Check for FFTW delegate library.
27408 #
27409
27410 # Check whether --with-fftw was given.
27411 if test "${with_fftw+set}" = set; then :
27412   withval=$with_fftw; with_fftw=$withval
27413 else
27414   with_fftw='yes'
27415 fi
27416
27417
27418 if test "$with_fftw" != 'yes'; then
27419     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
27420 fi
27421
27422 have_fftw='no'
27423 FFTW_LIBS=''
27424 if test "$with_fftw" != 'no'; then
27425     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27426 $as_echo "-------------------------------------------------------------" >&6; }
27427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
27428 $as_echo_n "checking for FFTW... " >&6; }
27429     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27430 $as_echo "" >&6; }
27431     failed=0
27432     passed=0
27433     ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
27434 if test "x$ac_cv_header_fftw3_h" = xyes; then :
27435   passed=`expr $passed + 1`
27436 else
27437   failed=`expr $failed + 1`
27438 fi
27439
27440
27441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
27442 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
27443 if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
27444   $as_echo_n "(cached) " >&6
27445 else
27446   ac_check_lib_save_LIBS=$LIBS
27447 LIBS="-lfftw3  $LIBS"
27448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27449 /* end confdefs.h.  */
27450
27451 /* Override any GCC internal prototype to avoid an error.
27452    Use char because int might match the return type of a GCC
27453    builtin and then its argument prototype would still apply.  */
27454 #ifdef __cplusplus
27455 extern "C"
27456 #endif
27457 char fftw_execute ();
27458 int
27459 main ()
27460 {
27461 return fftw_execute ();
27462   ;
27463   return 0;
27464 }
27465 _ACEOF
27466 if ac_fn_c_try_link "$LINENO"; then :
27467   ac_cv_lib_fftw3_fftw_execute=yes
27468 else
27469   ac_cv_lib_fftw3_fftw_execute=no
27470 fi
27471 rm -f core conftest.err conftest.$ac_objext \
27472     conftest$ac_exeext conftest.$ac_ext
27473 LIBS=$ac_check_lib_save_LIBS
27474 fi
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
27476 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
27477 if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
27478   passed=`expr $passed + 1`
27479 else
27480   failed=`expr $failed + 1`
27481 fi
27482
27483     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
27484 $as_echo_n "checking if FFTW package is complete... " >&6; }
27485     if test $passed -gt 0; then
27486         if test $failed -gt 0; then
27487             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27488 $as_echo "no -- some components failed test" >&6; }
27489             have_fftw='no (failed tests)'
27490         else
27491             FFTW_LIBS='-lfftw3'
27492             LIBS="$FFTW_LIBS $LIBS"
27493
27494 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
27495
27496             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27497 $as_echo "yes" >&6; }
27498             have_fftw='yes'
27499         fi
27500     else
27501         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27502 $as_echo "no" >&6; }
27503     fi
27504 fi
27505  if test "$have_fftw" = 'yes'; then
27506   FFTW_DELEGATE_TRUE=
27507   FFTW_DELEGATE_FALSE='#'
27508 else
27509   FFTW_DELEGATE_TRUE='#'
27510   FFTW_DELEGATE_FALSE=
27511 fi
27512
27513
27514
27515
27516 #
27517 # Check for FlashPIX delegate library.
27518 #
27519
27520 # Check whether --with-fpx was given.
27521 if test "${with_fpx+set}" = set; then :
27522   withval=$with_fpx; with_fpx=$withval
27523 else
27524   with_fpx='yes'
27525 fi
27526
27527
27528 if test "$with_fpx" != 'yes'; then
27529     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
27530 fi
27531
27532 have_fpx='no'
27533 FPX_LIBS=''
27534 if test "$with_fpx" != 'no'; then
27535     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27536 $as_echo "-------------------------------------------------------------" >&6; }
27537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
27538 $as_echo_n "checking for FlashPIX... " >&6; }
27539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27540 $as_echo "" >&6; }
27541     failed=0
27542     passed=0
27543     ac_ext=cpp
27544 ac_cpp='$CXXCPP $CPPFLAGS'
27545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27548
27549
27550 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
27551 if test "x$ac_cv_header_fpxlib_h" = xyes; then :
27552   passed=`expr $passed + 1`
27553 else
27554   failed=`expr $failed + 1`
27555 fi
27556
27557
27558     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
27559 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
27560 if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
27561   $as_echo_n "(cached) " >&6
27562 else
27563   ac_check_lib_save_LIBS=$LIBS
27564 LIBS="-lfpx  $LIBS"
27565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27566 /* end confdefs.h.  */
27567
27568 /* Override any GCC internal prototype to avoid an error.
27569    Use char because int might match the return type of a GCC
27570    builtin and then its argument prototype would still apply.  */
27571 #ifdef __cplusplus
27572 extern "C"
27573 #endif
27574 char FPX_OpenImageByFilename ();
27575 int
27576 main ()
27577 {
27578 return FPX_OpenImageByFilename ();
27579   ;
27580   return 0;
27581 }
27582 _ACEOF
27583 if ac_fn_cxx_try_link "$LINENO"; then :
27584   ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
27585 else
27586   ac_cv_lib_fpx_FPX_OpenImageByFilename=no
27587 fi
27588 rm -f core conftest.err conftest.$ac_objext \
27589     conftest$ac_exeext conftest.$ac_ext
27590 LIBS=$ac_check_lib_save_LIBS
27591 fi
27592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
27593 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
27594 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
27595   passed=`expr $passed + 1`
27596 else
27597   failed=`expr $failed + 1`
27598 fi
27599
27600     ac_ext=c
27601 ac_cpp='$CPP $CPPFLAGS'
27602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27605
27606     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
27607 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
27608     if test $passed -gt 0; then
27609         if test $failed -gt 0; then
27610             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27611 $as_echo "no -- some components failed test" >&6; }
27612             have_fpx='no (failed tests)'
27613         else
27614             FPX_LIBS='-lfpx'
27615
27616 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
27617
27618             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27619 $as_echo "yes" >&6; }
27620             have_fpx='yes'
27621             PERLMAINCC="$CXX"
27622         fi
27623     else
27624         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27625 $as_echo "no" >&6; }
27626     fi
27627 fi
27628  if test "$have_fpx" = 'yes'; then
27629   FPX_DELEGATE_TRUE=
27630   FPX_DELEGATE_FALSE='#'
27631 else
27632   FPX_DELEGATE_TRUE='#'
27633   FPX_DELEGATE_FALSE=
27634 fi
27635
27636
27637
27638
27639 #
27640 # Check for fontconfig delegate library.
27641 #
27642
27643 # Check whether --with-fontconfig was given.
27644 if test "${with_fontconfig+set}" = set; then :
27645   withval=$with_fontconfig; with_fontconfig=$withval
27646 else
27647   with_fontconfig=$have_x
27648 fi
27649
27650
27651 if test "$with_fontconfig" != 'yes'; then
27652     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27653 fi
27654
27655 have_fontconfig='no'
27656 FONTCONFIG_CFLAGS=""
27657 FONTCONFIG_LIBS=""
27658 FONTCONFIG_PKG=""
27659 if test "x$with_fontconfig" = "xyes"; then
27660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27661 $as_echo "-------------------------------------------------------------" >&6; }
27662
27663 pkg_failed=no
27664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
27665 $as_echo_n "checking for FONTCONFIG... " >&6; }
27666
27667 if test -n "$FONTCONFIG_CFLAGS"; then
27668     pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27669  elif test -n "$PKG_CONFIG"; then
27670     if test -n "$PKG_CONFIG" && \
27671     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27672   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27673   ac_status=$?
27674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27675   test $ac_status = 0; }; then
27676   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27677 else
27678   pkg_failed=yes
27679 fi
27680  else
27681     pkg_failed=untried
27682 fi
27683 if test -n "$FONTCONFIG_LIBS"; then
27684     pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27685  elif test -n "$PKG_CONFIG"; then
27686     if test -n "$PKG_CONFIG" && \
27687     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27688   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27689   ac_status=$?
27690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27691   test $ac_status = 0; }; then
27692   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27693 else
27694   pkg_failed=yes
27695 fi
27696  else
27697     pkg_failed=untried
27698 fi
27699
27700
27701
27702 if test $pkg_failed = yes; then
27703
27704 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27705         _pkg_short_errors_supported=yes
27706 else
27707         _pkg_short_errors_supported=no
27708 fi
27709         if test $_pkg_short_errors_supported = yes; then
27710                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27711         else
27712                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27713         fi
27714         # Put the nasty error message in config.log where it belongs
27715         echo "$FONTCONFIG_PKG_ERRORS" >&5
27716
27717         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27718 $as_echo "no" >&6; }
27719                 have_fontconfig=no
27720 elif test $pkg_failed = untried; then
27721         have_fontconfig=no
27722 else
27723         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27724         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
27725         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27726 $as_echo "yes" >&6; }
27727         have_fontconfig=yes
27728 fi
27729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27730 $as_echo "" >&6; }
27731 fi
27732
27733 if test "$have_fontconfig" = 'yes'; then
27734
27735 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
27736
27737   if test "$with_modules" = 'no'; then
27738     CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
27739   fi
27740 fi
27741
27742  if test "$have_fontconfig" = 'yes'; then
27743   FONTCONFIG_DELEGATE_TRUE=
27744   FONTCONFIG_DELEGATE_FALSE='#'
27745 else
27746   FONTCONFIG_DELEGATE_TRUE='#'
27747   FONTCONFIG_DELEGATE_FALSE=
27748 fi
27749
27750
27751
27752
27753
27754 #
27755 # Check for freetype delegate library.
27756 #
27757
27758 # Check whether --with-freetype was given.
27759 if test "${with_freetype+set}" = set; then :
27760   withval=$with_freetype; with_freetype=$withval
27761 else
27762   with_freetype='yes'
27763 fi
27764
27765
27766
27767 if test "$with_freetype" != 'yes'; then
27768     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27769 fi
27770
27771 have_freetype='no'
27772 FREETYPE_LIBS=''
27773 if test "$with_freetype" != 'no'; then
27774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27775 $as_echo "-------------------------------------------------------------" >&6; }
27776     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
27777 $as_echo_n "checking for FreeType 2.0... " >&6; }
27778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27779 $as_echo "" >&6; }
27780     failed=0
27781     passed=0
27782     PERSIST_LIBS="$LIBS"
27783     PERSIST_CPPFLAGS="$CPPFLAGS"
27784     if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27785         :
27786     else
27787         freetype_config=''
27788         for ac_prog in freetype-config
27789 do
27790   # Extract the first word of "$ac_prog", so it can be a program name with args.
27791 set dummy $ac_prog; ac_word=$2
27792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27793 $as_echo_n "checking for $ac_word... " >&6; }
27794 if ${ac_cv_prog_freetype_config+:} false; then :
27795   $as_echo_n "(cached) " >&6
27796 else
27797   if test -n "$freetype_config"; then
27798   ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27799 else
27800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27801 for as_dir in $PATH
27802 do
27803   IFS=$as_save_IFS
27804   test -z "$as_dir" && as_dir=.
27805     for ac_exec_ext in '' $ac_executable_extensions; do
27806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27807     ac_cv_prog_freetype_config="$ac_prog"
27808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27809     break 2
27810   fi
27811 done
27812   done
27813 IFS=$as_save_IFS
27814
27815 fi
27816 fi
27817 freetype_config=$ac_cv_prog_freetype_config
27818 if test -n "$freetype_config"; then
27819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
27820 $as_echo "$freetype_config" >&6; }
27821 else
27822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27823 $as_echo "no" >&6; }
27824 fi
27825
27826
27827   test -n "$freetype_config" && break
27828 done
27829         if test -n "$freetype_config"; then
27830             freetype_cflags=`$freetype_config --cflags`
27831             freetype_libs=`$freetype_config --libs`
27832             LIBS="$LIBS $freetype_libs"
27833             CPPFLAGS="$freetype_cflags $CPPFLAGS"
27834         fi
27835     fi
27836
27837     if test "$FREETYPE_LIBS" = ''; then
27838         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
27839 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
27840 if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
27841   $as_echo_n "(cached) " >&6
27842 else
27843   ac_check_lib_save_LIBS=$LIBS
27844 LIBS="-lfreetype  $LIBS"
27845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27846 /* end confdefs.h.  */
27847
27848 /* Override any GCC internal prototype to avoid an error.
27849    Use char because int might match the return type of a GCC
27850    builtin and then its argument prototype would still apply.  */
27851 #ifdef __cplusplus
27852 extern "C"
27853 #endif
27854 char FT_Init_FreeType ();
27855 int
27856 main ()
27857 {
27858 return FT_Init_FreeType ();
27859   ;
27860   return 0;
27861 }
27862 _ACEOF
27863 if ac_fn_c_try_link "$LINENO"; then :
27864   ac_cv_lib_freetype_FT_Init_FreeType=yes
27865 else
27866   ac_cv_lib_freetype_FT_Init_FreeType=no
27867 fi
27868 rm -f core conftest.err conftest.$ac_objext \
27869     conftest$ac_exeext conftest.$ac_ext
27870 LIBS=$ac_check_lib_save_LIBS
27871 fi
27872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
27873 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
27874 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
27875   FREETYPE_LIBS='-lfreetype'
27876 fi
27877
27878         if test "$FREETYPE_LIBS" != ''; then
27879             passed=`expr $passed + 1`
27880         else
27881             failed=`expr $failed + 1`
27882             LIBS="$PERSIST_LIBS"
27883         fi
27884     fi
27885
27886     ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27887 if test "x$ac_cv_header_ft2build_h" = xyes; then :
27888   FT2BUILD_H='#include <ft2build.h>'
27889 else
27890   ft2build=''
27891 fi
27892
27893
27894     ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27895 "
27896 if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
27897   have_freetype_h='yes'
27898 else
27899   have_freetype_h='no'
27900 fi
27901
27902
27903     if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27904         passed=`expr $passed + 1`
27905     else
27906         failed=`expr $failed + 1`
27907         CPPFLAGS="$PERSIST_CPPFLAGS"
27908     fi
27909
27910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
27911 $as_echo_n "checking if FreeType package is complete... " >&6; }
27912     if test $passed -gt 0; then
27913         if test $failed -gt 0; then
27914             FREETYPE_LIBS=''
27915             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27916 $as_echo "no -- some components failed test" >&6; }
27917             have_freetype='no (failed tests)'
27918         else
27919             LIBS="$FREETYPE_LIBS $LIBS"
27920
27921 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
27922
27923             if test "$ac_cv_header_ft2build_h" = 'yes'; then
27924
27925 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
27926
27927             fi
27928             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27929 $as_echo "yes" >&6; }
27930             have_freetype='yes'
27931         fi
27932     else
27933         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27934 $as_echo "no" >&6; }
27935     fi
27936 fi
27937  if test "$have_freetype" = 'yes'; then
27938   FREETYPE_DELEGATE_TRUE=
27939   FREETYPE_DELEGATE_FALSE='#'
27940 else
27941   FREETYPE_DELEGATE_TRUE='#'
27942   FREETYPE_DELEGATE_FALSE=
27943 fi
27944
27945
27946
27947
27948
27949 #
27950 # Check for Ghostscript library or framework.
27951 #
27952 # Test for iapi.h & test for gsapi_new_instance in -lgs
27953 # or -framework Ghostscript
27954
27955
27956 # Check whether --with-gslib was given.
27957 if test "${with_gslib+set}" = set; then :
27958   withval=$with_gslib; with_gslib=$withval
27959 else
27960   with_gslib='no'
27961 fi
27962
27963
27964 gslib_framework='no'
27965 if test "$with_gslib" != 'yes'; then
27966     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27967 fi
27968
27969 have_gslib='no'
27970 GS_LIBS=''
27971 if test "$with_gslib" != 'no'; then
27972     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27973 $as_echo "-------------------------------------------------------------" >&6; }
27974     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
27975 $as_echo_n "checking for Ghostscript... " >&6; }
27976     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27977 $as_echo "" >&6; }
27978     framework=0
27979     failed=0
27980     passed=0
27981     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27982 if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
27983   passed=`expr $passed + 1`
27984 else
27985   failed=`expr $failed + 1`
27986 fi
27987
27988
27989     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27990 if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
27991   passed=`expr $passed + 1`
27992 else
27993   failed=`expr $failed + 1`
27994 fi
27995
27996
27997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27998 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
27999 if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
28000   $as_echo_n "(cached) " >&6
28001 else
28002   ac_check_framework_save_LIBS=$LIBS
28003 LIBS="-framework Ghostscript  $LIBS"
28004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28005 /* end confdefs.h.  */
28006
28007 /* Override any GCC internal prototype to avoid an error.
28008    Use char because int might match the return type of a GCC
28009    builtin and then its argument prototype would still apply.  */
28010 #ifdef __cplusplus
28011 extern "C"
28012 #endif
28013 char gsapi_new_instance ();
28014 int
28015 main ()
28016 {
28017 return gsapi_new_instance ();
28018   ;
28019   return 0;
28020 }
28021 _ACEOF
28022 if ac_fn_c_try_link "$LINENO"; then :
28023   ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28024 else
28025   ac_cv_framework_Ghostscript_gsapi_new_instance=no
28026 fi
28027 rm -f core conftest.err conftest.$ac_objext \
28028     conftest$ac_exeext conftest.$ac_ext
28029 LIBS=$ac_check_framework_save_LIBS
28030 fi
28031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28032 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28033 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28034   framework=`expr $framework + 1`
28035 else
28036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
28037 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
28038 if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
28039   $as_echo_n "(cached) " >&6
28040 else
28041   ac_check_lib_save_LIBS=$LIBS
28042 LIBS="-lgs  $LIBS"
28043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28044 /* end confdefs.h.  */
28045
28046 /* Override any GCC internal prototype to avoid an error.
28047    Use char because int might match the return type of a GCC
28048    builtin and then its argument prototype would still apply.  */
28049 #ifdef __cplusplus
28050 extern "C"
28051 #endif
28052 char gsapi_new_instance ();
28053 int
28054 main ()
28055 {
28056 return gsapi_new_instance ();
28057   ;
28058   return 0;
28059 }
28060 _ACEOF
28061 if ac_fn_c_try_link "$LINENO"; then :
28062   ac_cv_lib_gs_gsapi_new_instance=yes
28063 else
28064   ac_cv_lib_gs_gsapi_new_instance=no
28065 fi
28066 rm -f core conftest.err conftest.$ac_objext \
28067     conftest$ac_exeext conftest.$ac_ext
28068 LIBS=$ac_check_lib_save_LIBS
28069 fi
28070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
28071 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
28072 if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
28073   passed=`expr $passed + 1`
28074 else
28075   failed=`expr $failed + 1`
28076 fi
28077
28078 fi
28079     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
28080 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
28081     if test $passed -gt 0; then
28082         if test $failed -gt 0; then
28083             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28084 $as_echo "no -- some components failed test" >&6; }
28085             have_gslib='no (failed tests)'
28086         else
28087             if test $framework -gt 0; then
28088                 GS_LIBS='-framework Ghostscript'
28089                 gslib_framework='yes'
28090                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
28091 $as_echo "yes, using framework." >&6; }
28092             else
28093                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
28094 $as_echo "yes, using library." >&6; }
28095                 GS_LIBS='-lgs'
28096             fi
28097             LIBS="$GS_LIBS $LIBS"
28098
28099 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
28100
28101             have_gslib='yes'
28102         fi
28103     else
28104         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28105 $as_echo "no" >&6; }
28106     fi
28107 fi
28108  if test "$have_gslib" = 'yes'; then
28109   GS_DELEGATE_TRUE=
28110   GS_DELEGATE_FALSE='#'
28111 else
28112   GS_DELEGATE_TRUE='#'
28113   GS_DELEGATE_FALSE=
28114 fi
28115
28116
28117
28118 # Set default font search path
28119
28120 # Check whether --with-fontpath was given.
28121 if test "${with_fontpath+set}" = set; then :
28122   withval=$with_fontpath; with_fontpath=$withval
28123 else
28124   with_fontpath=''
28125 fi
28126
28127
28128 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28129     with_fontpath=''
28130 else
28131
28132 cat >>confdefs.h <<_ACEOF
28133 #define MAGICK_FONT_PATH "$with_fontpath"
28134 _ACEOF
28135
28136 fi
28137 if test "$with_fontpath=" != ''; then
28138     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28139 fi
28140
28141 # Set Ghostscript font directory
28142
28143 # Check whether --with-gs-font-dir was given.
28144 if test "${with_gs_font_dir+set}" = set; then :
28145   withval=$with_gs_font_dir; with_gs_font_dir=$withval
28146 else
28147   with_gs_font_dir='default'
28148 fi
28149
28150
28151 if test "$with_gs_font_dir" != 'default'; then
28152     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28153 fi
28154
28155
28156 #
28157 # Check for GVC delegate library.
28158 #
28159
28160 # Check whether --with-gvc was given.
28161 if test "${with_gvc+set}" = set; then :
28162   withval=$with_gvc; with_gvc=$withval
28163 else
28164   with_gvc='yes'
28165 fi
28166
28167
28168 if test "$with_gvc" != 'yes'; then
28169     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28170 fi
28171
28172 GVC_PKG=""
28173 if test "x$with_gvc" = "xyes"; then
28174     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28175 $as_echo "-------------------------------------------------------------" >&6; }
28176
28177 pkg_failed=no
28178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28179 $as_echo_n "checking for GVC... " >&6; }
28180
28181 if test -n "$GVC_CFLAGS"; then
28182     pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28183  elif test -n "$PKG_CONFIG"; then
28184     if test -n "$PKG_CONFIG" && \
28185     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28186   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28187   ac_status=$?
28188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28189   test $ac_status = 0; }; then
28190   pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28191 else
28192   pkg_failed=yes
28193 fi
28194  else
28195     pkg_failed=untried
28196 fi
28197 if test -n "$GVC_LIBS"; then
28198     pkg_cv_GVC_LIBS="$GVC_LIBS"
28199  elif test -n "$PKG_CONFIG"; then
28200     if test -n "$PKG_CONFIG" && \
28201     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28202   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28203   ac_status=$?
28204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28205   test $ac_status = 0; }; then
28206   pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28207 else
28208   pkg_failed=yes
28209 fi
28210  else
28211     pkg_failed=untried
28212 fi
28213
28214
28215
28216 if test $pkg_failed = yes; then
28217
28218 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28219         _pkg_short_errors_supported=yes
28220 else
28221         _pkg_short_errors_supported=no
28222 fi
28223         if test $_pkg_short_errors_supported = yes; then
28224                 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28225         else
28226                 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28227         fi
28228         # Put the nasty error message in config.log where it belongs
28229         echo "$GVC_PKG_ERRORS" >&5
28230
28231         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28232 $as_echo "no" >&6; }
28233                 have_gvc=no
28234 elif test $pkg_failed = untried; then
28235         have_gvc=no
28236 else
28237         GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28238         GVC_LIBS=$pkg_cv_GVC_LIBS
28239         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28240 $as_echo "yes" >&6; }
28241         have_gvc=yes
28242 fi
28243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28244 $as_echo "" >&6; }
28245 fi
28246
28247 if test "$have_gvc" = 'yes'; then
28248
28249 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
28250
28251     if test "$with_modules" = 'no'; then
28252         CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
28253     fi
28254 fi
28255
28256  if test "$have_gvc" = 'yes'; then
28257   GVC_DELEGATE_TRUE=
28258   GVC_DELEGATE_FALSE='#'
28259 else
28260   GVC_DELEGATE_TRUE='#'
28261   GVC_DELEGATE_FALSE=
28262 fi
28263
28264
28265
28266
28267
28268 #
28269 # Check for JBIG delegate library.
28270 #
28271
28272
28273 # Check whether --with-jbig was given.
28274 if test "${with_jbig+set}" = set; then :
28275   withval=$with_jbig; with_jbig=$withval
28276 else
28277   with_jbig='yes'
28278 fi
28279
28280
28281 have_jbig='no'
28282 JBIG_LIBS=''
28283 if test "$with_jbig" != 'no'; then
28284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28285 $as_echo "-------------------------------------------------------------" >&6; }
28286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
28287 $as_echo_n "checking for JBIG... " >&6; }
28288     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28289 $as_echo "" >&6; }
28290     failed=0
28291     passed=0
28292     ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
28293 if test "x$ac_cv_header_jbig_h" = xyes; then :
28294   passed=`expr $passed + 1`
28295 else
28296   failed=`expr $failed + 1`
28297 fi
28298
28299
28300     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
28301 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
28302 if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
28303   $as_echo_n "(cached) " >&6
28304 else
28305   ac_check_lib_save_LIBS=$LIBS
28306 LIBS="-ljbig  $LIBS"
28307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28308 /* end confdefs.h.  */
28309
28310 /* Override any GCC internal prototype to avoid an error.
28311    Use char because int might match the return type of a GCC
28312    builtin and then its argument prototype would still apply.  */
28313 #ifdef __cplusplus
28314 extern "C"
28315 #endif
28316 char jbg_dec_init ();
28317 int
28318 main ()
28319 {
28320 return jbg_dec_init ();
28321   ;
28322   return 0;
28323 }
28324 _ACEOF
28325 if ac_fn_c_try_link "$LINENO"; then :
28326   ac_cv_lib_jbig_jbg_dec_init=yes
28327 else
28328   ac_cv_lib_jbig_jbg_dec_init=no
28329 fi
28330 rm -f core conftest.err conftest.$ac_objext \
28331     conftest$ac_exeext conftest.$ac_ext
28332 LIBS=$ac_check_lib_save_LIBS
28333 fi
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
28335 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
28336 if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
28337   passed=`expr $passed + 1`
28338 else
28339   failed=`expr $failed + 1`
28340 fi
28341
28342     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
28343 $as_echo_n "checking if JBIG package is complete... " >&6; }
28344     if test $passed -gt 0; then
28345         if test $failed -gt 0; then
28346             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28347 $as_echo "no -- some components failed test" >&6; }
28348             have_jbig='no (failed tests)'
28349         else
28350             JBIG_LIBS='-ljbig'
28351             LIBS="$JBIG_LIBS $LIBS"
28352
28353 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
28354
28355             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28356 $as_echo "yes" >&6; }
28357             have_jbig='yes'
28358         fi
28359     else
28360         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28361 $as_echo "no" >&6; }
28362     fi
28363 fi
28364  if test "$have_jbig" = 'yes'; then
28365   JBIG_DELEGATE_TRUE=
28366   JBIG_DELEGATE_FALSE='#'
28367 else
28368   JBIG_DELEGATE_TRUE='#'
28369   JBIG_DELEGATE_FALSE=
28370 fi
28371
28372
28373
28374
28375 #
28376 # Check for JPEG delegate library.
28377 #
28378
28379 # Check whether --with-jpeg was given.
28380 if test "${with_jpeg+set}" = set; then :
28381   withval=$with_jpeg; with_jpeg=$withval
28382 else
28383   with_jpeg='yes'
28384 fi
28385
28386
28387 if test "$with_jpeg" != 'yes'; then
28388     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
28389 fi
28390
28391 have_jpeg='no'
28392 JPEG_LIBS=''
28393 if test "$with_jpeg" != 'no'; then
28394     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28395 $as_echo "-------------------------------------------------------------" >&6; }
28396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
28397 $as_echo_n "checking for JPEG... " >&6; }
28398     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28399 $as_echo "" >&6; }
28400     failed=0
28401     passed=0
28402     ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
28403 if test "x$ac_cv_header_jconfig_h" = xyes; then :
28404   passed=`expr $passed + 1`
28405 else
28406   failed=`expr $failed + 1`
28407 fi
28408
28409
28410     ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
28411 if test "x$ac_cv_header_jerror_h" = xyes; then :
28412   passed=`expr $passed + 1`
28413 else
28414   failed=`expr $failed + 1`
28415 fi
28416
28417
28418     ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
28419 if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
28420   passed=`expr $passed + 1`
28421 else
28422   failed=`expr $failed + 1`
28423 fi
28424
28425
28426     ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
28427 if test "x$ac_cv_header_jpeglib_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 jpeg_read_header in -ljpeg" >&5
28435 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
28436 if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
28437   $as_echo_n "(cached) " >&6
28438 else
28439   ac_check_lib_save_LIBS=$LIBS
28440 LIBS="-ljpeg  $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 jpeg_read_header ();
28451 int
28452 main ()
28453 {
28454 return jpeg_read_header ();
28455   ;
28456   return 0;
28457 }
28458 _ACEOF
28459 if ac_fn_c_try_link "$LINENO"; then :
28460   ac_cv_lib_jpeg_jpeg_read_header=yes
28461 else
28462   ac_cv_lib_jpeg_jpeg_read_header=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_jpeg_jpeg_read_header" >&5
28469 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
28470 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
28471   passed=`expr $passed + 1`
28472 else
28473   failed=`expr $failed + 1`
28474 fi
28475
28476
28477 # Test for compatible JPEG library
28478 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
28479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
28480 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
28481 if ${ac_cv_jpeg_version_ok+:} false; then :
28482   $as_echo_n "(cached) " >&6
28483 else
28484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28485 /* end confdefs.h.  */
28486 #include <stdio.h>
28487 #include <stdlib.h>
28488 #include <jpeglib.h>
28489
28490 int
28491 main ()
28492 {
28493
28494 #if JPEG_LIB_VERSION < 62
28495 #error IJG JPEG library must be version 6b or newer!
28496 #endif
28497 return 0;
28498
28499   ;
28500   return 0;
28501 }
28502 _ACEOF
28503 if ac_fn_c_try_compile "$LINENO"; then :
28504   ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
28505 else
28506   ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
28507 fi
28508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28509 fi
28510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
28511 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
28512 fi
28513     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
28514 $as_echo_n "checking if JPEG package is complete... " >&6; }
28515     if test $passed -gt 0; then
28516         if test $failed -gt 0; then
28517             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28518 $as_echo "no -- some components failed test" >&6; }
28519             have_jpeg='no (failed tests)'
28520         else
28521             JPEG_LIBS='-ljpeg'
28522             LIBS="$JPEG_LIBS $LIBS"
28523
28524 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
28525
28526             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28527 $as_echo "yes" >&6; }
28528             have_jpeg='yes'
28529         fi
28530     else
28531         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28532 $as_echo "no" >&6; }
28533     fi
28534 fi
28535  if test "$have_jpeg" = 'yes'; then
28536   JPEG_DELEGATE_TRUE=
28537   JPEG_DELEGATE_FALSE='#'
28538 else
28539   JPEG_DELEGATE_TRUE='#'
28540   JPEG_DELEGATE_FALSE=
28541 fi
28542
28543
28544
28545
28546 #
28547 # Check for JPEG Version 2 delegate library.
28548 #
28549
28550 # Check whether --with-jp2 was given.
28551 if test "${with_jp2+set}" = set; then :
28552   withval=$with_jp2; with_jp2=$withval
28553 else
28554   with_jp2='yes'
28555 fi
28556
28557
28558 if test "$with_jp2" != 'yes'; then
28559     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
28560 fi
28561
28562 have_jp2='no'
28563 JP2_LIBS=''
28564 if test "$with_jp2" != 'no'; then
28565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28566 $as_echo "-------------------------------------------------------------" >&6; }
28567     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
28568 $as_echo_n "checking for JPEG Version 2... " >&6; }
28569     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28570 $as_echo "" >&6; }
28571     failed=0
28572     passed=0
28573     ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
28574 if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
28575   passed=`expr $passed + 1`
28576 else
28577   failed=`expr $failed + 1`
28578 fi
28579
28580
28581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
28582 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
28583 if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
28584   $as_echo_n "(cached) " >&6
28585 else
28586   ac_check_lib_save_LIBS=$LIBS
28587 LIBS="-ljasper  $LIBS"
28588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28589 /* end confdefs.h.  */
28590
28591 /* Override any GCC internal prototype to avoid an error.
28592    Use char because int might match the return type of a GCC
28593    builtin and then its argument prototype would still apply.  */
28594 #ifdef __cplusplus
28595 extern "C"
28596 #endif
28597 char jas_stream_fopen ();
28598 int
28599 main ()
28600 {
28601 return jas_stream_fopen ();
28602   ;
28603   return 0;
28604 }
28605 _ACEOF
28606 if ac_fn_c_try_link "$LINENO"; then :
28607   ac_cv_lib_jasper_jas_stream_fopen=yes
28608 else
28609   ac_cv_lib_jasper_jas_stream_fopen=no
28610 fi
28611 rm -f core conftest.err conftest.$ac_objext \
28612     conftest$ac_exeext conftest.$ac_ext
28613 LIBS=$ac_check_lib_save_LIBS
28614 fi
28615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
28616 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
28617 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
28618   passed=`expr $passed + 1`
28619 else
28620   failed=`expr $failed + 1`
28621 fi
28622
28623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
28624 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28625     if test $passed -gt 0; then
28626         if test $failed -gt 0; then
28627             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28628 $as_echo "no -- some components failed test" >&6; }
28629             have_jp2='no (failed tests)'
28630         else
28631             JP2_LIBS='-ljasper'
28632             LIBS="$JP2_LIBS $LIBS"
28633
28634 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
28635
28636             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28637 $as_echo "yes" >&6; }
28638             have_jp2='yes'
28639         fi
28640     else
28641         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28642 $as_echo "no" >&6; }
28643     fi
28644 fi
28645  if test "$have_jp2" = 'yes'; then
28646   JP2_DELEGATE_TRUE=
28647   JP2_DELEGATE_FALSE='#'
28648 else
28649   JP2_DELEGATE_TRUE='#'
28650   JP2_DELEGATE_FALSE=
28651 fi
28652
28653
28654
28655
28656 #
28657 # Check for LCMS delegate library.
28658 #
28659 # Disable LCMS.
28660
28661 # Check whether --with-lcms was given.
28662 if test "${with_lcms+set}" = set; then :
28663   withval=$with_lcms; with_lcms=$withval
28664 else
28665   with_lcms='yes'
28666 fi
28667
28668 if test "$with_lcms" != 'yes' ; then
28669     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28670 fi
28671
28672 # Disable LCMS2.
28673
28674 # Check whether --with-lcms2 was given.
28675 if test "${with_lcms2+set}" = set; then :
28676   withval=$with_lcms2; with_lcms2=$withval
28677 else
28678   with_lcms2='yes'
28679 fi
28680
28681 if test "$with_lcms2" != 'yes' ; then
28682     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
28683 fi
28684
28685 have_lcms2='no'
28686 LCMS_LIBS=''
28687 if test "$with_lcms2" != 'no'; then
28688     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28689 $as_echo "-------------------------------------------------------------" >&6; }
28690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
28691 $as_echo_n "checking for LCMS v2... " >&6; }
28692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28693 $as_echo "" >&6; }
28694     failed=0
28695     passed=0
28696     have_lcms_header='no'
28697
28698     # Check for <lcms2.h>
28699     ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
28700 if test "x$ac_cv_header_lcms2_h" = xyes; then :
28701   have_lcms_header='yes'
28702 fi
28703
28704
28705     if test "$have_lcms_header" = 'yes'; then
28706
28707 $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28708
28709        passed=`expr $passed + 1`
28710     fi
28711
28712     # Check for <lcms2/lcms2.h)
28713     if test "$have_lcms_header" != 'yes'; then
28714       ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
28715 if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
28716   have_lcms_header='yes'
28717 fi
28718
28719
28720       if test "$have_lcms_header" = 'yes'; then
28721         passed=`expr $passed + 1`
28722
28723 $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
28724
28725       fi
28726     fi
28727
28728     # Failed to find lcms header?
28729     if test "$have_lcms_header" != 'yes'; then
28730       failed=`expr $failed + 1`
28731     fi
28732
28733     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
28734 $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
28735 if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
28736   $as_echo_n "(cached) " >&6
28737 else
28738   ac_check_lib_save_LIBS=$LIBS
28739 LIBS="-llcms2  $LIBS"
28740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28741 /* end confdefs.h.  */
28742
28743 /* Override any GCC internal prototype to avoid an error.
28744    Use char because int might match the return type of a GCC
28745    builtin and then its argument prototype would still apply.  */
28746 #ifdef __cplusplus
28747 extern "C"
28748 #endif
28749 char cmsSetLogErrorHandler ();
28750 int
28751 main ()
28752 {
28753 return cmsSetLogErrorHandler ();
28754   ;
28755   return 0;
28756 }
28757 _ACEOF
28758 if ac_fn_c_try_link "$LINENO"; then :
28759   ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
28760 else
28761   ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
28762 fi
28763 rm -f core conftest.err conftest.$ac_objext \
28764     conftest$ac_exeext conftest.$ac_ext
28765 LIBS=$ac_check_lib_save_LIBS
28766 fi
28767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
28768 $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
28769 if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
28770   passed=`expr $passed + 1`
28771 else
28772   failed=`expr $failed + 1`
28773 fi
28774
28775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
28776 $as_echo_n "checking if LCMS v2 package is complete... " >&6; }
28777     if test $passed -gt 0; then
28778       if test $failed -gt 0; then
28779         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28780 $as_echo "no -- some components failed test" >&6; }
28781         have_lcms2='no (failed tests)'
28782       else
28783         LCMS_LIBS='-llcms2'
28784         LIBS="$LCMS_LIBS $LIBS"
28785         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28786 $as_echo "yes" >&6; }
28787         have_lcms2='yes'
28788       fi
28789     else
28790       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28791 $as_echo "no" >&6; }
28792     fi
28793 fi
28794
28795 #
28796 # Check for LCMS v1 (1.11 or later)
28797 #
28798 if test $have_lcms2 = 'yes'; then
28799   with_lcms='no'
28800 fi
28801
28802 have_lcms='no'
28803 if test "$with_lcms" != 'no'; then
28804     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28805 $as_echo "-------------------------------------------------------------" >&6; }
28806     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28807 $as_echo_n "checking for LCMS v1.1X... " >&6; }
28808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28809 $as_echo "" >&6; }
28810     failed=0
28811     passed=0
28812     have_lcms_header='no'
28813
28814     # Check for <lcms.h>
28815     if test "$have_lcms_header" != 'yes'; then
28816       ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
28817 if test "x$ac_cv_header_lcms_h" = xyes; then :
28818   have_lcms_header='yes'
28819 fi
28820
28821
28822       if test "$have_lcms_header" = 'yes'; then
28823         passed=`expr $passed + 1`
28824
28825 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
28826
28827       fi
28828     fi
28829
28830     # Check for <lcms/lcms.h>
28831     if test "$have_lcms_header" != 'yes'; then
28832       ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
28833 if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
28834   have_lcms_header='yes'
28835 fi
28836
28837
28838       if test "$have_lcms_header" = 'yes'; then
28839         passed=`expr $passed + 1`
28840
28841 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
28842
28843       fi
28844     fi
28845
28846     # Failed to find lcms header?
28847     if test "$have_lcms_header" != 'yes'; then
28848       failed=`expr $failed + 1`
28849     fi
28850
28851     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28852 $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28853 if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
28854   $as_echo_n "(cached) " >&6
28855 else
28856   ac_check_lib_save_LIBS=$LIBS
28857 LIBS="-llcms  $LIBS"
28858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28859 /* end confdefs.h.  */
28860
28861 /* Override any GCC internal prototype to avoid an error.
28862    Use char because int might match the return type of a GCC
28863    builtin and then its argument prototype would still apply.  */
28864 #ifdef __cplusplus
28865 extern "C"
28866 #endif
28867 char cmsSetErrorHandler ();
28868 int
28869 main ()
28870 {
28871 return cmsSetErrorHandler ();
28872   ;
28873   return 0;
28874 }
28875 _ACEOF
28876 if ac_fn_c_try_link "$LINENO"; then :
28877   ac_cv_lib_lcms_cmsSetErrorHandler=yes
28878 else
28879   ac_cv_lib_lcms_cmsSetErrorHandler=no
28880 fi
28881 rm -f core conftest.err conftest.$ac_objext \
28882     conftest$ac_exeext conftest.$ac_ext
28883 LIBS=$ac_check_lib_save_LIBS
28884 fi
28885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28886 $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28887 if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
28888   passed=`expr $passed + 1`
28889 else
28890   failed=`expr $failed + 1`
28891 fi
28892
28893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
28894 $as_echo_n "checking if LCMS package is complete... " >&6; }
28895     if test $passed -gt 0; then
28896       if test $failed -gt 0; then
28897         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28898 $as_echo "no -- some components failed test" >&6; }
28899         have_lcms='no (failed tests)'
28900       else
28901         LCMS_LIBS='-llcms'
28902         LIBS="$LCMS_LIBS $LIBS"
28903         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28904 $as_echo "yes" >&6; }
28905         have_lcms='yes'
28906       fi
28907     else
28908       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28909 $as_echo "no" >&6; }
28910     fi
28911 fi
28912
28913  if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28914   LCMS_DELEGATE_TRUE=
28915   LCMS_DELEGATE_FALSE='#'
28916 else
28917   LCMS_DELEGATE_TRUE='#'
28918   LCMS_DELEGATE_FALSE=
28919 fi
28920
28921 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28922
28923 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28924
28925 fi
28926
28927
28928
28929
28930 #
28931 # Check for the LQR (Liquid Rescale) delegate library.
28932 #
28933
28934 # Check whether --with-lqr was given.
28935 if test "${with_lqr+set}" = set; then :
28936   withval=$with_lqr; with_lqr=$withval
28937 else
28938   with_lqr='yes'
28939 fi
28940
28941
28942 if test "$with_lqr" != 'yes'; then
28943     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28944 fi
28945
28946 have_lqr='no'
28947 LQR_CFLAGS=""
28948 LQR_LIBS=""
28949 LQR_PKG=""
28950 if test "x$with_lqr" = "xyes"; then
28951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28952 $as_echo "-------------------------------------------------------------" >&6; }
28953
28954 pkg_failed=no
28955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28956 $as_echo_n "checking for LQR... " >&6; }
28957
28958 if test -n "$LQR_CFLAGS"; then
28959     pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28960  elif test -n "$PKG_CONFIG"; then
28961     if test -n "$PKG_CONFIG" && \
28962     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28963   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28964   ac_status=$?
28965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28966   test $ac_status = 0; }; then
28967   pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28968 else
28969   pkg_failed=yes
28970 fi
28971  else
28972     pkg_failed=untried
28973 fi
28974 if test -n "$LQR_LIBS"; then
28975     pkg_cv_LQR_LIBS="$LQR_LIBS"
28976  elif test -n "$PKG_CONFIG"; then
28977     if test -n "$PKG_CONFIG" && \
28978     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28979   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28980   ac_status=$?
28981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28982   test $ac_status = 0; }; then
28983   pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28984 else
28985   pkg_failed=yes
28986 fi
28987  else
28988     pkg_failed=untried
28989 fi
28990
28991
28992
28993 if test $pkg_failed = yes; then
28994
28995 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28996         _pkg_short_errors_supported=yes
28997 else
28998         _pkg_short_errors_supported=no
28999 fi
29000         if test $_pkg_short_errors_supported = yes; then
29001                 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29002         else
29003                 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29004         fi
29005         # Put the nasty error message in config.log where it belongs
29006         echo "$LQR_PKG_ERRORS" >&5
29007
29008         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29009 $as_echo "no" >&6; }
29010                 have_lqr=no
29011 elif test $pkg_failed = untried; then
29012         have_lqr=no
29013 else
29014         LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29015         LQR_LIBS=$pkg_cv_LQR_LIBS
29016         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29017 $as_echo "yes" >&6; }
29018         have_lqr=yes
29019 fi
29020     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29021 $as_echo "" >&6; }
29022 fi
29023
29024 if test "$have_lqr" = 'yes'; then
29025
29026 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
29027
29028     CFLAGS="$LQR_CFLAGS $CFLAGS"
29029 fi
29030
29031  if test "$have_lqr" = 'yes'; then
29032   LQR_DELEGATE_TRUE=
29033   LQR_DELEGATE_FALSE='#'
29034 else
29035   LQR_DELEGATE_TRUE='#'
29036   LQR_DELEGATE_FALSE=
29037 fi
29038
29039
29040
29041
29042
29043 # Disable LZMA (lzma library)
29044
29045 # Check whether --with-lzma was given.
29046 if test "${with_lzma+set}" = set; then :
29047   withval=$with_lzma; with_lzma=$withval
29048 else
29049   with_lzma='yes'
29050 fi
29051
29052 if test "$with_lzma" != 'yes' ; then
29053     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29054 fi
29055
29056 #
29057 # Check for LZMA
29058 #
29059 have_lzma='no'
29060 LZMA_LIBS=''
29061 if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
29062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29063 $as_echo "-------------------------------------------------------------" >&6; }
29064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
29065 $as_echo_n "checking for LZMA... " >&6; }
29066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29067 $as_echo "" >&6; }
29068   failed=0
29069   passed=0
29070   ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
29071 if test "x$ac_cv_header_lzma_h" = xyes; then :
29072   passed=`expr $passed + 1`
29073 else
29074   failed=`expr $failed + 1`
29075 fi
29076
29077
29078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29079 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
29080 if ${ac_cv_lib_lzma_lzma_code+:} false; then :
29081   $as_echo_n "(cached) " >&6
29082 else
29083   ac_check_lib_save_LIBS=$LIBS
29084 LIBS="-llzma  $LIBS"
29085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29086 /* end confdefs.h.  */
29087
29088 /* Override any GCC internal prototype to avoid an error.
29089    Use char because int might match the return type of a GCC
29090    builtin and then its argument prototype would still apply.  */
29091 #ifdef __cplusplus
29092 extern "C"
29093 #endif
29094 char lzma_code ();
29095 int
29096 main ()
29097 {
29098 return lzma_code ();
29099   ;
29100   return 0;
29101 }
29102 _ACEOF
29103 if ac_fn_c_try_link "$LINENO"; then :
29104   ac_cv_lib_lzma_lzma_code=yes
29105 else
29106   ac_cv_lib_lzma_lzma_code=no
29107 fi
29108 rm -f core conftest.err conftest.$ac_objext \
29109     conftest$ac_exeext conftest.$ac_ext
29110 LIBS=$ac_check_lib_save_LIBS
29111 fi
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29113 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
29114 if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
29115   passed=`expr $passed + 1`
29116 else
29117   failed=`expr $failed + 1`
29118 fi
29119
29120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29121 $as_echo_n "checking if LZMA package is complete... " >&6; }
29122   if test $passed -gt 0; then
29123     if test $failed -gt 0; then
29124       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29125 $as_echo "no -- some components failed test" >&6; }
29126       have_lzma='no (failed tests)'
29127     else
29128       LZMA_LIBS='-llzma'
29129       LIBS="$LZMA_LIBS $LIBS"
29130
29131 $as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29132
29133       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29134 $as_echo "yes" >&6; }
29135       have_lzma='yes'
29136     fi
29137   else
29138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29139 $as_echo "no" >&6; }
29140   fi
29141 fi
29142  if test "$have_lzma" = 'yes'; then
29143   LZMA_DELEGATE_TRUE=
29144   LZMA_DELEGATE_FALSE='#'
29145 else
29146   LZMA_DELEGATE_TRUE='#'
29147   LZMA_DELEGATE_FALSE=
29148 fi
29149
29150
29151
29152
29153 #
29154 # Check for the OpenEXR delegate library.
29155 #
29156
29157 # Check whether --with-openexr was given.
29158 if test "${with_openexr+set}" = set; then :
29159   withval=$with_openexr; with_openexr=$withval
29160 else
29161   with_openexr='yes'
29162 fi
29163
29164
29165 if test "$with_openexr" != 'yes'; then
29166     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29167 fi
29168
29169 have_openexr='no'
29170 OPENEXR_CFLAGS=""
29171 OPENEXR_LIBS=""
29172 OPENEXR_PKG=""
29173 if test "x$with_openexr" = "xyes"; then
29174     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29175 $as_echo "-------------------------------------------------------------" >&6; }
29176
29177 pkg_failed=no
29178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29179 $as_echo_n "checking for OPENEXR... " >&6; }
29180
29181 if test -n "$OPENEXR_CFLAGS"; then
29182     pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29183  elif test -n "$PKG_CONFIG"; then
29184     if test -n "$PKG_CONFIG" && \
29185     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29186   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29187   ac_status=$?
29188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29189   test $ac_status = 0; }; then
29190   pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29191 else
29192   pkg_failed=yes
29193 fi
29194  else
29195     pkg_failed=untried
29196 fi
29197 if test -n "$OPENEXR_LIBS"; then
29198     pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29199  elif test -n "$PKG_CONFIG"; then
29200     if test -n "$PKG_CONFIG" && \
29201     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29202   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29203   ac_status=$?
29204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29205   test $ac_status = 0; }; then
29206   pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29207 else
29208   pkg_failed=yes
29209 fi
29210  else
29211     pkg_failed=untried
29212 fi
29213
29214
29215
29216 if test $pkg_failed = yes; then
29217
29218 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29219         _pkg_short_errors_supported=yes
29220 else
29221         _pkg_short_errors_supported=no
29222 fi
29223         if test $_pkg_short_errors_supported = yes; then
29224                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29225         else
29226                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29227         fi
29228         # Put the nasty error message in config.log where it belongs
29229         echo "$OPENEXR_PKG_ERRORS" >&5
29230
29231         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29232 $as_echo "no" >&6; }
29233                 have_openexr=no
29234 elif test $pkg_failed = untried; then
29235         have_openexr=no
29236 else
29237         OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29238         OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29239         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29240 $as_echo "yes" >&6; }
29241         have_openexr=yes
29242 fi
29243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29244 $as_echo "" >&6; }
29245 fi
29246
29247 if test "$have_openexr" = 'yes'; then
29248
29249 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
29250
29251     if test "$with_modules" = 'no'; then
29252         CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
29253     fi
29254 fi
29255
29256  if test "$have_openexr" = 'yes'; then
29257   OPENEXR_DELEGATE_TRUE=
29258   OPENEXR_DELEGATE_FALSE='#'
29259 else
29260   OPENEXR_DELEGATE_TRUE='#'
29261   OPENEXR_DELEGATE_FALSE=
29262 fi
29263
29264
29265
29266
29267
29268 #
29269 # Check for PNG delegate library.
29270 #
29271
29272 # Check whether --with-png was given.
29273 if test "${with_png+set}" = set; then :
29274   withval=$with_png; with_png=$withval
29275 else
29276   with_png='yes'
29277 fi
29278
29279
29280 if test "$with_png" != 'yes'; then
29281     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
29282 fi
29283
29284 have_png='no'
29285 PNG_LIBS=''
29286 if test "$with_png" != 'no'; then
29287     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29288 $as_echo "-------------------------------------------------------------" >&6; }
29289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
29290 $as_echo_n "checking for PNG... " >&6; }
29291     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29292 $as_echo "" >&6; }
29293     failed=0
29294     passed=0
29295     ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
29296 if test "x$ac_cv_header_png_h" = xyes; then :
29297   passed=`expr $passed + 1`
29298 else
29299   failed=`expr $failed + 1`
29300 fi
29301
29302
29303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
29304 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
29305 if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
29306   $as_echo_n "(cached) " >&6
29307 else
29308   ac_check_lib_save_LIBS=$LIBS
29309 LIBS="-lpng  $LIBS"
29310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29311 /* end confdefs.h.  */
29312
29313 /* Override any GCC internal prototype to avoid an error.
29314    Use char because int might match the return type of a GCC
29315    builtin and then its argument prototype would still apply.  */
29316 #ifdef __cplusplus
29317 extern "C"
29318 #endif
29319 char png_get_io_ptr ();
29320 int
29321 main ()
29322 {
29323 return png_get_io_ptr ();
29324   ;
29325   return 0;
29326 }
29327 _ACEOF
29328 if ac_fn_c_try_link "$LINENO"; then :
29329   ac_cv_lib_png_png_get_io_ptr=yes
29330 else
29331   ac_cv_lib_png_png_get_io_ptr=no
29332 fi
29333 rm -f core conftest.err conftest.$ac_objext \
29334     conftest$ac_exeext conftest.$ac_ext
29335 LIBS=$ac_check_lib_save_LIBS
29336 fi
29337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
29338 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
29339 if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
29340   passed=`expr $passed + 1`
29341 else
29342   failed=`expr $failed + 1`
29343 fi
29344
29345     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
29346 $as_echo_n "checking if PNG package is complete... " >&6; }
29347     if test $passed -gt 0; then
29348         if test $failed -gt 0; then
29349             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29350 $as_echo "no -- some components failed test" >&6; }
29351             have_png='no (failed tests)'
29352         else
29353             PNG_LIBS='-lpng'
29354             LIBS="$PNG_LIBS $LIBS"
29355
29356 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
29357
29358             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29359 $as_echo "yes" >&6; }
29360             have_png='yes'
29361         fi
29362     else
29363         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29364 $as_echo "no" >&6; }
29365     fi
29366 fi
29367  if test "$have_png" = 'yes'; then
29368   PNG_DELEGATE_TRUE=
29369   PNG_DELEGATE_FALSE='#'
29370 else
29371   PNG_DELEGATE_TRUE='#'
29372   PNG_DELEGATE_FALSE=
29373 fi
29374
29375
29376
29377
29378 #
29379 # Check for RSVG delegate library.
29380 #
29381
29382 # Check whether --with-rsvg was given.
29383 if test "${with_rsvg+set}" = set; then :
29384   withval=$with_rsvg; with_rsvg=$withval
29385 else
29386   with_rsvg=$have_x
29387 fi
29388
29389
29390 if test "$with_rsvg" != 'yes'; then
29391     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
29392 fi
29393
29394 have_rsvg='no'
29395 have_cairo='no'
29396 RSVG_CFLAGS=""
29397 RSVG_LIBS=""
29398 RSVG_PKG=""
29399 if test "x$with_rsvg" = "xyes"; then
29400     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29401 $as_echo "-------------------------------------------------------------" >&6; }
29402
29403 pkg_failed=no
29404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
29405 $as_echo_n "checking for RSVG... " >&6; }
29406
29407 if test -n "$RSVG_CFLAGS"; then
29408     pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
29409  elif test -n "$PKG_CONFIG"; then
29410     if test -n "$PKG_CONFIG" && \
29411     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
29412   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
29413   ac_status=$?
29414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29415   test $ac_status = 0; }; then
29416   pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
29417 else
29418   pkg_failed=yes
29419 fi
29420  else
29421     pkg_failed=untried
29422 fi
29423 if test -n "$RSVG_LIBS"; then
29424     pkg_cv_RSVG_LIBS="$RSVG_LIBS"
29425  elif test -n "$PKG_CONFIG"; then
29426     if test -n "$PKG_CONFIG" && \
29427     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
29428   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
29429   ac_status=$?
29430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29431   test $ac_status = 0; }; then
29432   pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
29433 else
29434   pkg_failed=yes
29435 fi
29436  else
29437     pkg_failed=untried
29438 fi
29439
29440
29441
29442 if test $pkg_failed = yes; then
29443
29444 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29445         _pkg_short_errors_supported=yes
29446 else
29447         _pkg_short_errors_supported=no
29448 fi
29449         if test $_pkg_short_errors_supported = yes; then
29450                 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
29451         else
29452                 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
29453         fi
29454         # Put the nasty error message in config.log where it belongs
29455         echo "$RSVG_PKG_ERRORS" >&5
29456
29457         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29458 $as_echo "no" >&6; }
29459                 have_rsvg=no
29460 elif test $pkg_failed = untried; then
29461         have_rsvg=no
29462 else
29463         RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
29464         RSVG_LIBS=$pkg_cv_RSVG_LIBS
29465         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29466 $as_echo "yes" >&6; }
29467         have_rsvg=yes
29468 fi
29469     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29470 $as_echo "" >&6; }
29471
29472 pkg_failed=no
29473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
29474 $as_echo_n "checking for CAIRO_SVG... " >&6; }
29475
29476 if test -n "$CAIRO_SVG_CFLAGS"; then
29477     pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
29478  elif test -n "$PKG_CONFIG"; then
29479     if test -n "$PKG_CONFIG" && \
29480     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
29481   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
29482   ac_status=$?
29483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29484   test $ac_status = 0; }; then
29485   pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
29486 else
29487   pkg_failed=yes
29488 fi
29489  else
29490     pkg_failed=untried
29491 fi
29492 if test -n "$CAIRO_SVG_LIBS"; then
29493     pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
29494  elif test -n "$PKG_CONFIG"; then
29495     if test -n "$PKG_CONFIG" && \
29496     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
29497   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
29498   ac_status=$?
29499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29500   test $ac_status = 0; }; then
29501   pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
29502 else
29503   pkg_failed=yes
29504 fi
29505  else
29506     pkg_failed=untried
29507 fi
29508
29509
29510
29511 if test $pkg_failed = yes; then
29512
29513 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29514         _pkg_short_errors_supported=yes
29515 else
29516         _pkg_short_errors_supported=no
29517 fi
29518         if test $_pkg_short_errors_supported = yes; then
29519                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
29520         else
29521                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
29522         fi
29523         # Put the nasty error message in config.log where it belongs
29524         echo "$CAIRO_SVG_PKG_ERRORS" >&5
29525
29526         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29527 $as_echo "no" >&6; }
29528                 have_cairo=no
29529 elif test $pkg_failed = untried; then
29530         have_cairo=no
29531 else
29532         CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
29533         CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
29534         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29535 $as_echo "yes" >&6; }
29536         have_cairo=yes
29537 fi
29538     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29539 $as_echo "" >&6; }
29540 fi
29541
29542 if test "$have_rsvg" = 'yes'; then
29543
29544 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
29545
29546     if test "$with_modules" = 'no'; then
29547         CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
29548     fi
29549 fi
29550
29551 if test "$have_cairo" = 'yes'; then
29552
29553 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
29554
29555     if test "$with_modules" = 'no'; then
29556         CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
29557     fi
29558 fi
29559
29560  if test "$have_rsvg" = 'yes'; then
29561   RSVG_DELEGATE_TRUE=
29562   RSVG_DELEGATE_FALSE='#'
29563 else
29564   RSVG_DELEGATE_TRUE='#'
29565   RSVG_DELEGATE_FALSE=
29566 fi
29567
29568  if test "$have_cairo" = 'yes'; then
29569   CAIRO_DELEGATE_TRUE=
29570   CAIRO_DELEGATE_FALSE='#'
29571 else
29572   CAIRO_DELEGATE_TRUE='#'
29573   CAIRO_DELEGATE_FALSE=
29574 fi
29575
29576
29577
29578
29579
29580 #
29581 # Check for TIFF delegate library.
29582 #
29583
29584 # Check whether --with-tiff was given.
29585 if test "${with_tiff+set}" = set; then :
29586   withval=$with_tiff; with_tiff=$withval
29587 else
29588   with_tiff='yes'
29589 fi
29590
29591
29592 if test "$with_tiff" != 'yes'; then
29593     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
29594 fi
29595
29596 have_tiff='no'
29597 TIFF_LIBS=''
29598 if test "$with_tiff" != 'no'; then
29599     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29600 $as_echo "-------------------------------------------------------------" >&6; }
29601     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
29602 $as_echo_n "checking for TIFF... " >&6; }
29603     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29604 $as_echo "" >&6; }
29605     failed=0
29606     passed=0
29607     ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
29608 if test "x$ac_cv_header_tiff_h" = xyes; then :
29609   passed=`expr $passed + 1`
29610 else
29611   failed=`expr $failed + 1`
29612 fi
29613
29614
29615     ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
29616 if test "x$ac_cv_header_tiffio_h" = xyes; then :
29617   passed=`expr $passed + 1`
29618 else
29619   failed=`expr $failed + 1`
29620 fi
29621
29622
29623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
29624 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
29625 if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
29626   $as_echo_n "(cached) " >&6
29627 else
29628   ac_check_lib_save_LIBS=$LIBS
29629 LIBS="-ltiff  $LIBS"
29630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29631 /* end confdefs.h.  */
29632
29633 /* Override any GCC internal prototype to avoid an error.
29634    Use char because int might match the return type of a GCC
29635    builtin and then its argument prototype would still apply.  */
29636 #ifdef __cplusplus
29637 extern "C"
29638 #endif
29639 char TIFFOpen ();
29640 int
29641 main ()
29642 {
29643 return TIFFOpen ();
29644   ;
29645   return 0;
29646 }
29647 _ACEOF
29648 if ac_fn_c_try_link "$LINENO"; then :
29649   ac_cv_lib_tiff_TIFFOpen=yes
29650 else
29651   ac_cv_lib_tiff_TIFFOpen=no
29652 fi
29653 rm -f core conftest.err conftest.$ac_objext \
29654     conftest$ac_exeext conftest.$ac_ext
29655 LIBS=$ac_check_lib_save_LIBS
29656 fi
29657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
29658 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
29659 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
29660   passed=`expr $passed + 1`
29661 else
29662   failed=`expr $failed + 1`
29663 fi
29664
29665     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
29666 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
29667 if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
29668   $as_echo_n "(cached) " >&6
29669 else
29670   ac_check_lib_save_LIBS=$LIBS
29671 LIBS="-ltiff  $LIBS"
29672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29673 /* end confdefs.h.  */
29674
29675 /* Override any GCC internal prototype to avoid an error.
29676    Use char because int might match the return type of a GCC
29677    builtin and then its argument prototype would still apply.  */
29678 #ifdef __cplusplus
29679 extern "C"
29680 #endif
29681 char TIFFClientOpen ();
29682 int
29683 main ()
29684 {
29685 return TIFFClientOpen ();
29686   ;
29687   return 0;
29688 }
29689 _ACEOF
29690 if ac_fn_c_try_link "$LINENO"; then :
29691   ac_cv_lib_tiff_TIFFClientOpen=yes
29692 else
29693   ac_cv_lib_tiff_TIFFClientOpen=no
29694 fi
29695 rm -f core conftest.err conftest.$ac_objext \
29696     conftest$ac_exeext conftest.$ac_ext
29697 LIBS=$ac_check_lib_save_LIBS
29698 fi
29699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
29700 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
29701 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
29702   passed=`expr $passed + 1`
29703 else
29704   failed=`expr $failed + 1`
29705 fi
29706
29707     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
29708 $as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
29709 if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
29710   $as_echo_n "(cached) " >&6
29711 else
29712   ac_check_lib_save_LIBS=$LIBS
29713 LIBS="-ltiff  $LIBS"
29714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29715 /* end confdefs.h.  */
29716
29717 /* Override any GCC internal prototype to avoid an error.
29718    Use char because int might match the return type of a GCC
29719    builtin and then its argument prototype would still apply.  */
29720 #ifdef __cplusplus
29721 extern "C"
29722 #endif
29723 char TIFFIsBigEndian ();
29724 int
29725 main ()
29726 {
29727 return TIFFIsBigEndian ();
29728   ;
29729   return 0;
29730 }
29731 _ACEOF
29732 if ac_fn_c_try_link "$LINENO"; then :
29733   ac_cv_lib_tiff_TIFFIsBigEndian=yes
29734 else
29735   ac_cv_lib_tiff_TIFFIsBigEndian=no
29736 fi
29737 rm -f core conftest.err conftest.$ac_objext \
29738     conftest$ac_exeext conftest.$ac_ext
29739 LIBS=$ac_check_lib_save_LIBS
29740 fi
29741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
29742 $as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
29743 if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
29744   passed=`expr $passed + 1`
29745 else
29746   failed=`expr $failed + 1`
29747 fi
29748
29749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
29750 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
29751 if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
29752   $as_echo_n "(cached) " >&6
29753 else
29754   ac_check_lib_save_LIBS=$LIBS
29755 LIBS="-ltiff  $LIBS"
29756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29757 /* end confdefs.h.  */
29758
29759 /* Override any GCC internal prototype to avoid an error.
29760    Use char because int might match the return type of a GCC
29761    builtin and then its argument prototype would still apply.  */
29762 #ifdef __cplusplus
29763 extern "C"
29764 #endif
29765 char TIFFIsByteSwapped ();
29766 int
29767 main ()
29768 {
29769 return TIFFIsByteSwapped ();
29770   ;
29771   return 0;
29772 }
29773 _ACEOF
29774 if ac_fn_c_try_link "$LINENO"; then :
29775   ac_cv_lib_tiff_TIFFIsByteSwapped=yes
29776 else
29777   ac_cv_lib_tiff_TIFFIsByteSwapped=no
29778 fi
29779 rm -f core conftest.err conftest.$ac_objext \
29780     conftest$ac_exeext conftest.$ac_ext
29781 LIBS=$ac_check_lib_save_LIBS
29782 fi
29783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
29784 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
29785 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
29786   passed=`expr $passed + 1`
29787 else
29788   failed=`expr $failed + 1`
29789 fi
29790
29791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
29792 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
29793 if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
29794   $as_echo_n "(cached) " >&6
29795 else
29796   ac_check_lib_save_LIBS=$LIBS
29797 LIBS="-ltiff  $LIBS"
29798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29799 /* end confdefs.h.  */
29800
29801 /* Override any GCC internal prototype to avoid an error.
29802    Use char because int might match the return type of a GCC
29803    builtin and then its argument prototype would still apply.  */
29804 #ifdef __cplusplus
29805 extern "C"
29806 #endif
29807 char TIFFReadRGBATile ();
29808 int
29809 main ()
29810 {
29811 return TIFFReadRGBATile ();
29812   ;
29813   return 0;
29814 }
29815 _ACEOF
29816 if ac_fn_c_try_link "$LINENO"; then :
29817   ac_cv_lib_tiff_TIFFReadRGBATile=yes
29818 else
29819   ac_cv_lib_tiff_TIFFReadRGBATile=no
29820 fi
29821 rm -f core conftest.err conftest.$ac_objext \
29822     conftest$ac_exeext conftest.$ac_ext
29823 LIBS=$ac_check_lib_save_LIBS
29824 fi
29825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
29826 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
29827 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
29828   passed=`expr $passed + 1`
29829 else
29830   failed=`expr $failed + 1`
29831 fi
29832
29833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
29834 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
29835 if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
29836   $as_echo_n "(cached) " >&6
29837 else
29838   ac_check_lib_save_LIBS=$LIBS
29839 LIBS="-ltiff  $LIBS"
29840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29841 /* end confdefs.h.  */
29842
29843 /* Override any GCC internal prototype to avoid an error.
29844    Use char because int might match the return type of a GCC
29845    builtin and then its argument prototype would still apply.  */
29846 #ifdef __cplusplus
29847 extern "C"
29848 #endif
29849 char TIFFReadRGBAStrip ();
29850 int
29851 main ()
29852 {
29853 return TIFFReadRGBAStrip ();
29854   ;
29855   return 0;
29856 }
29857 _ACEOF
29858 if ac_fn_c_try_link "$LINENO"; then :
29859   ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29860 else
29861   ac_cv_lib_tiff_TIFFReadRGBAStrip=no
29862 fi
29863 rm -f core conftest.err conftest.$ac_objext \
29864     conftest$ac_exeext conftest.$ac_ext
29865 LIBS=$ac_check_lib_save_LIBS
29866 fi
29867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
29868 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
29869 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
29870   passed=`expr $passed + 1`
29871 else
29872   failed=`expr $failed + 1`
29873 fi
29874
29875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
29876 $as_echo_n "checking if TIFF package is complete... " >&6; }
29877     if test $passed -gt 0; then
29878         if test $failed -gt 0; then
29879             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29880 $as_echo "no -- some components failed test" >&6; }
29881             have_tiff='no (failed tests)'
29882         else
29883             TIFF_LIBS='-ltiff'
29884             LIBS="$TIFF_LIBS $LIBS"
29885
29886 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
29887
29888             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29889 $as_echo "yes" >&6; }
29890             have_tiff='yes'
29891             for ac_header in tiffconf.h
29892 do :
29893   ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
29894 if test "x$ac_cv_header_tiffconf_h" = xyes; then :
29895   cat >>confdefs.h <<_ACEOF
29896 #define HAVE_TIFFCONF_H 1
29897 _ACEOF
29898
29899 fi
29900
29901 done
29902
29903             for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
29904               TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29905               TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
29906 do :
29907   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29908 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29909 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29910   cat >>confdefs.h <<_ACEOF
29911 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29912 _ACEOF
29913
29914 fi
29915 done
29916
29917         fi
29918     else
29919         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29920 $as_echo "no" >&6; }
29921     fi
29922 fi
29923  if test "$have_tiff" = 'yes'; then
29924   TIFF_DELEGATE_TRUE=
29925   TIFF_DELEGATE_FALSE='#'
29926 else
29927   TIFF_DELEGATE_TRUE='#'
29928   TIFF_DELEGATE_FALSE=
29929 fi
29930
29931
29932
29933
29934 #
29935 # Check for WEBP delegate library.
29936 #
29937
29938 # Check whether --with-webp was given.
29939 if test "${with_webp+set}" = set; then :
29940   withval=$with_webp; with_webp=$withval
29941 else
29942   with_webp='yes'
29943 fi
29944
29945
29946 if test "$with_webp" != 'yes'; then
29947     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
29948 fi
29949
29950 have_webp='no'
29951 WEBP_LIBS=''
29952 if test "$with_webp" != 'no'; then
29953     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29954 $as_echo "-------------------------------------------------------------" >&6; }
29955     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
29956 $as_echo_n "checking for WEBP... " >&6; }
29957     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29958 $as_echo "" >&6; }
29959     failed=0
29960     passed=0
29961     ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
29962 if test "x$ac_cv_header_webp_decode_h" = xyes; then :
29963   passed=`expr $passed + 1`
29964 else
29965   failed=`expr $failed + 1`
29966 fi
29967
29968
29969     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
29970 $as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
29971 if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
29972   $as_echo_n "(cached) " >&6
29973 else
29974   ac_check_lib_save_LIBS=$LIBS
29975 LIBS="-lwebp  $LIBS"
29976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29977 /* end confdefs.h.  */
29978
29979 /* Override any GCC internal prototype to avoid an error.
29980    Use char because int might match the return type of a GCC
29981    builtin and then its argument prototype would still apply.  */
29982 #ifdef __cplusplus
29983 extern "C"
29984 #endif
29985 char WebPDecodeRGB ();
29986 int
29987 main ()
29988 {
29989 return WebPDecodeRGB ();
29990   ;
29991   return 0;
29992 }
29993 _ACEOF
29994 if ac_fn_c_try_link "$LINENO"; then :
29995   ac_cv_lib_webp_WebPDecodeRGB=yes
29996 else
29997   ac_cv_lib_webp_WebPDecodeRGB=no
29998 fi
29999 rm -f core conftest.err conftest.$ac_objext \
30000     conftest$ac_exeext conftest.$ac_ext
30001 LIBS=$ac_check_lib_save_LIBS
30002 fi
30003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
30004 $as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
30005 if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
30006   passed=`expr $passed + 1`
30007 else
30008   failed=`expr $failed + 1`
30009 fi
30010
30011     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
30012 $as_echo_n "checking if WEBP package is complete... " >&6; }
30013     if test $passed -gt 0; then
30014         if test $failed -gt 0; then
30015             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30016 $as_echo "no -- some components failed test" >&6; }
30017             have_webp='no (failed tests)'
30018         else
30019             WEBP_LIBS='-lwebp'
30020             LIBS="$WEBP_LIBS $LIBS"
30021
30022 $as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
30023
30024             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30025 $as_echo "yes" >&6; }
30026             have_webp='yes'
30027         fi
30028     else
30029         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30030 $as_echo "no" >&6; }
30031     fi
30032 fi
30033  if test "$have_webp" = 'yes'; then
30034   WEBP_DELEGATE_TRUE=
30035   WEBP_DELEGATE_FALSE='#'
30036 else
30037   WEBP_DELEGATE_TRUE='#'
30038   WEBP_DELEGATE_FALSE=
30039 fi
30040
30041
30042
30043
30044 #
30045 # Set Windows font directory.
30046 #
30047
30048 # Check whether --with-windows-font-dir was given.
30049 if test "${with_windows_font_dir+set}" = set; then :
30050   withval=$with_windows_font_dir; with_windows_font_dir=$withval
30051 else
30052   with_windows_font_dir=''
30053 fi
30054
30055 if test "$with_windows_font_dir" != '' ; then
30056     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
30057 fi
30058
30059
30060 #
30061 # Check for WMF delegate library.
30062 #
30063
30064 # Check whether --with-wmf was given.
30065 if test "${with_wmf+set}" = set; then :
30066   withval=$with_wmf; with_wmf=$withval
30067 else
30068   with_wmf='yes'
30069 fi
30070
30071
30072 if test "$with_wmf" != 'yes'; then
30073     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
30074 fi
30075
30076 have_wmf='no'
30077 WMF_LIBS=''
30078 if test "$with_wmf" != 'no'; then
30079     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30080 $as_echo "-------------------------------------------------------------" >&6; }
30081     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
30082 $as_echo_n "checking for WMF... " >&6; }
30083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30084 $as_echo "" >&6; }
30085     failed=0
30086     passed=0
30087     ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
30088 if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
30089   passed=`expr $passed + 1`
30090 else
30091   failed=`expr $failed + 1`
30092 fi
30093
30094
30095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
30096 $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
30097 if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
30098   $as_echo_n "(cached) " >&6
30099 else
30100   ac_check_lib_save_LIBS=$LIBS
30101 LIBS="-lwmf "-lwmflite" $LIBS"
30102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30103 /* end confdefs.h.  */
30104
30105 /* Override any GCC internal prototype to avoid an error.
30106    Use char because int might match the return type of a GCC
30107    builtin and then its argument prototype would still apply.  */
30108 #ifdef __cplusplus
30109 extern "C"
30110 #endif
30111 char wmf_eps_function ();
30112 int
30113 main ()
30114 {
30115 return wmf_eps_function ();
30116   ;
30117   return 0;
30118 }
30119 _ACEOF
30120 if ac_fn_c_try_link "$LINENO"; then :
30121   ac_cv_lib_wmf_wmf_eps_function=yes
30122 else
30123   ac_cv_lib_wmf_wmf_eps_function=no
30124 fi
30125 rm -f core conftest.err conftest.$ac_objext \
30126     conftest$ac_exeext conftest.$ac_ext
30127 LIBS=$ac_check_lib_save_LIBS
30128 fi
30129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
30130 $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
30131 if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
30132   passed=`expr $passed + 1`
30133 else
30134   failed=`expr $failed + 1`
30135 fi
30136
30137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
30138 $as_echo_n "checking if WMF package is complete... " >&6; }
30139     if test $passed -gt 0; then
30140         if test $failed -gt 0; then
30141             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30142 $as_echo "no -- some components failed test" >&6; }
30143             have_wmf='no (failed tests)'
30144         else
30145             WMF_LIBS='-lwmf -lwmflite'
30146             LIBS="$WMF_LIBS $LIBS"
30147
30148 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
30149
30150             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30151 $as_echo "yes" >&6; }
30152             have_wmf='yes'
30153         fi
30154     else
30155         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30156 $as_echo "no" >&6; }
30157     fi
30158 fi
30159  if test "$have_wmf" = 'yes'; then
30160   WMF_DELEGATE_TRUE=
30161   WMF_DELEGATE_FALSE='#'
30162 else
30163   WMF_DELEGATE_TRUE='#'
30164   WMF_DELEGATE_FALSE=
30165 fi
30166
30167
30168
30169
30170
30171
30172 #
30173 # Check for XML delegate library.
30174 #
30175
30176 # Check whether --with-xml was given.
30177 if test "${with_xml+set}" = set; then :
30178   withval=$with_xml; with_xml=$withval
30179 else
30180   with_xml=$have_x
30181 fi
30182
30183
30184 if test "$with_xml" != 'yes' ; then
30185     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
30186 fi
30187
30188 have_xml='no'
30189 XML_LIBS=''
30190 if test "$with_xml" != 'no'; then
30191     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30192 $as_echo "-------------------------------------------------------------" >&6; }
30193     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
30194 $as_echo_n "checking for XML... " >&6; }
30195     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30196 $as_echo "" >&6; }
30197     PERSIST_LDFLAGS=$LDFLAGS
30198     PERSIST_CPPFLAGS=$CPPFLAGS
30199     xml2_config=''
30200     for ac_prog in xml2-config
30201 do
30202   # Extract the first word of "$ac_prog", so it can be a program name with args.
30203 set dummy $ac_prog; ac_word=$2
30204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30205 $as_echo_n "checking for $ac_word... " >&6; }
30206 if ${ac_cv_prog_xml2_config+:} false; then :
30207   $as_echo_n "(cached) " >&6
30208 else
30209   if test -n "$xml2_config"; then
30210   ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
30211 else
30212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30213 for as_dir in $PATH
30214 do
30215   IFS=$as_save_IFS
30216   test -z "$as_dir" && as_dir=.
30217     for ac_exec_ext in '' $ac_executable_extensions; do
30218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30219     ac_cv_prog_xml2_config="$ac_prog"
30220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30221     break 2
30222   fi
30223 done
30224   done
30225 IFS=$as_save_IFS
30226
30227 fi
30228 fi
30229 xml2_config=$ac_cv_prog_xml2_config
30230 if test -n "$xml2_config"; then
30231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
30232 $as_echo "$xml2_config" >&6; }
30233 else
30234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30235 $as_echo "no" >&6; }
30236 fi
30237
30238
30239   test -n "$xml2_config" && break
30240 done
30241     if test -n "$xml2_config"; then
30242         # Debian installs libxml headers under /usr/include/libxml2/libxml with
30243         # the shared library installed under /usr/lib, whereas the package
30244         # installs itself under $prefix/libxml and $prefix/lib.
30245         xml2_prefix=`xml2-config --prefix`
30246         if test -d "${xml2_prefix}/include/libxml2"; then
30247             CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
30248         fi
30249         if test "${xml2_prefix}" != '/usr'; then
30250             LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
30251         fi
30252     fi
30253     failed=0
30254     passed=0
30255     ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
30256 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
30257   passed=`expr $passed + 1`
30258 else
30259   failed=`expr $failed + 1`
30260 fi
30261
30262
30263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
30264 $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
30265 if ${ac_cv_lib_xml2_xmlParseExternalEntity+:} false; then :
30266   $as_echo_n "(cached) " >&6
30267 else
30268   ac_check_lib_save_LIBS=$LIBS
30269 LIBS="-lxml2  $LIBS"
30270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30271 /* end confdefs.h.  */
30272
30273 /* Override any GCC internal prototype to avoid an error.
30274    Use char because int might match the return type of a GCC
30275    builtin and then its argument prototype would still apply.  */
30276 #ifdef __cplusplus
30277 extern "C"
30278 #endif
30279 char xmlParseExternalEntity ();
30280 int
30281 main ()
30282 {
30283 return xmlParseExternalEntity ();
30284   ;
30285   return 0;
30286 }
30287 _ACEOF
30288 if ac_fn_c_try_link "$LINENO"; then :
30289   ac_cv_lib_xml2_xmlParseExternalEntity=yes
30290 else
30291   ac_cv_lib_xml2_xmlParseExternalEntity=no
30292 fi
30293 rm -f core conftest.err conftest.$ac_objext \
30294     conftest$ac_exeext conftest.$ac_ext
30295 LIBS=$ac_check_lib_save_LIBS
30296 fi
30297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
30298 $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
30299 if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = xyes; then :
30300   passed=`expr $passed + 1`
30301 else
30302   failed=`expr $failed + 1`
30303 fi
30304
30305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
30306 $as_echo_n "checking if XML package is complete... " >&6; }
30307     if test $passed -gt 0; then
30308         if test $failed -gt 0; then
30309             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30310 $as_echo "no -- some components failed test" >&6; }
30311             have_xml='no (failed tests)'
30312             LDFLAGS="$PERSIST_LDFLAGS"
30313             CPPFLAGS="$PERSIST_CPPFLAGS"
30314         else
30315             XML_LIBS='-lxml2'
30316             LIBS="$XML_LIBS $LIBS"
30317
30318 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
30319
30320             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30321 $as_echo "yes" >&6; }
30322             have_xml='yes'
30323         fi
30324     else
30325         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30326 $as_echo "no" >&6; }
30327     fi
30328 fi
30329  if test "$have_xml" = 'yes'; then
30330   XML_DELEGATE_TRUE=
30331   XML_DELEGATE_FALSE='#'
30332 else
30333   XML_DELEGATE_TRUE='#'
30334   XML_DELEGATE_FALSE=
30335 fi
30336
30337
30338
30339
30340 # Substitute compiler name to build/link PerlMagick
30341 #
30342
30343
30344 #
30345 # Configure install Paths
30346 #
30347
30348 # Subdirectory under lib to place ImageMagick lib files
30349 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30350
30351 cat >>confdefs.h <<_ACEOF
30352 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
30353 _ACEOF
30354
30355
30356 # Path to ImageMagick bin directory
30357 EXECUTABLE_PATH="${BIN_DIR}"
30358 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
30359 case "${build_os}" in
30360   mingw* )
30361     DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
30362     ;;
30363 esac
30364
30365 cat >>confdefs.h <<_ACEOF
30366 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
30367 _ACEOF
30368
30369
30370
30371 # Path to ImageMagick lib
30372 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
30373 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
30374 case "${build_os}" in
30375   mingw* )
30376     DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
30377     ;;
30378 esac
30379
30380 cat >>confdefs.h <<_ACEOF
30381 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
30382 _ACEOF
30383
30384
30385
30386 #
30387 # Subdirectory under lib to place ImageMagick coder module files
30388 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
30389
30390 cat >>confdefs.h <<_ACEOF
30391 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
30392 _ACEOF
30393
30394 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
30395 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
30396 case "${build_os}" in
30397   mingw* )
30398     DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
30399     ;;
30400 esac
30401
30402 cat >>confdefs.h <<_ACEOF
30403 #define CODER_PATH "$DEFINE_CODER_PATH"
30404 _ACEOF
30405
30406
30407
30408 #
30409 # Subdirectory under lib to place ImageMagick filter module files
30410 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
30411
30412 cat >>confdefs.h <<_ACEOF
30413 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
30414 _ACEOF
30415
30416 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
30417 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
30418 case "${build_os}" in
30419   mingw* )
30420     DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
30421     ;;
30422 esac
30423
30424 cat >>confdefs.h <<_ACEOF
30425 #define FILTER_PATH "$DEFINE_FILTER_PATH"
30426 _ACEOF
30427
30428
30429
30430 #
30431 # Path to ImageMagick documentation files
30432 DOCUMENTATION_RELATIVE_PATH=""
30433 DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
30434 DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
30435 case "${build_os}" in
30436   mingw* )
30437     DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
30438     ;;
30439 esac
30440
30441 cat >>confdefs.h <<_ACEOF
30442 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
30443 _ACEOF
30444
30445
30446
30447 #
30448 # Path to ImageMagick share files
30449 SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30450 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
30451 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
30452 case "${build_os}" in
30453   mingw* )
30454     DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
30455     ;;
30456 esac
30457
30458 cat >>confdefs.h <<_ACEOF
30459 #define SHARE_PATH "$DEFINE_SHARE_PATH"
30460 _ACEOF
30461
30462
30463
30464 # Subdirectory to place ImageMagick configuration files
30465 CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
30466
30467 cat >>confdefs.h <<_ACEOF
30468 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
30469 _ACEOF
30470
30471 CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
30472 DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
30473 case "${build_os}" in
30474   mingw* )
30475     DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
30476     ;;
30477 esac
30478
30479 cat >>confdefs.h <<_ACEOF
30480 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
30481 _ACEOF
30482
30483
30484
30485 # Subdirectory to place ImageMagick configuration files
30486 SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
30487
30488 cat >>confdefs.h <<_ACEOF
30489 #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
30490 _ACEOF
30491
30492 SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
30493 DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
30494 case "${build_os}" in
30495   mingw* )
30496     DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
30497     ;;
30498 esac
30499
30500 cat >>confdefs.h <<_ACEOF
30501 #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
30502 _ACEOF
30503
30504
30505
30506 #
30507 # program_transform_name is formed for use in a Makefile, so create a
30508 # modified version for use in a shell script.
30509 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
30510
30511 # Default delegate definitions
30512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30513 $as_echo "-------------------------------------------------------------" >&6; }
30514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
30515 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
30516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30517 $as_echo "" >&6; }
30518 AutotraceDecodeDelegateDefault='autotrace'
30519 BlenderDecodeDelegateDefault='blender'
30520 BZIPDelegateDefault='bzip2'
30521 BrowseDelegateDefault='xdg-open'
30522 CGMDecodeDelegateDefault='ralcgm'
30523 CatDelegateDefault='cat'
30524 DNGDecodeDelegateDefault='ufraw-batch'
30525 GVCDecodeDelegateDefault='dot'
30526 DVIDecodeDelegateDefault='dvips'
30527 EchoDelegateDefault='echo'
30528 EditorDelegateDefault='xterm'
30529 FIGDecodeDelegateDefault='fig2dev'
30530 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
30531 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
30532 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
30533 GnuplotDecodeDelegateDefault='gnuplot'
30534 HPGLDecodeDelegateDefault='hp2xx'
30535 HTMLDecodeDelegateDefault='html2ps'
30536 ILBMDecodeDelegateDefault='ilbmtoppm'
30537 ILBMEncodeDelegateDefault='ppmtoilbm'
30538 LPDelegateDefault='lp'
30539 LPRDelegateDefault='lpr'
30540 LZWDecodeDelegateDefault='uncompress'
30541 LZWEncodeDelegateDefault='compress'
30542 LaunchDelegateDefault='gimp'
30543 MANDelegateDefault='groff'
30544 MPEGDecodeDelegateDefault='ffmpeg'
30545 MPEGEncodeDelegateDefault='ffmpeg'
30546 MrSIDDecodeDelegateDefault='mrsidgeodecode'
30547 MVDelegateDefault='mv'
30548 PCLDelegateDefault='pcl6'
30549 PGPDecodeDelegateDefault='pgpv'
30550 POVDelegateDefault='povray'
30551 if test "$native_win32_build" = 'yes'; then
30552     PSDelegateDefault='gswin32c'
30553 elif test "$gslib_framework" = 'yes'; then
30554     PSDelegateDefault='gsc'
30555 else
30556     PSDelegateDefault='gs'
30557 fi
30558 RLEEncodeDelegateDefault='rawtorle'
30559 RMDelegateDefault='rm'
30560 RSVGDecodeDelegateDefault='rsvg'
30561 SCANDecodeDelegateDefault='scanimage'
30562 TXTDelegateDefault='enscript'
30563 UniconvertorDelegateDefault='uniconvertor'
30564 WMFDecodeDelegateDefault='wmf2eps'
30565 WWWDecodeDelegateDefault='curl'
30566 XPSDelegateDefault='gxps'
30567 ZipDelegateDefault='gzip'
30568
30569 # Search for delegates
30570 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
30571 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
30572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30573 $as_echo_n "checking for $ac_word... " >&6; }
30574 if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
30575   $as_echo_n "(cached) " >&6
30576 else
30577   case $AutotraceDecodeDelegate in
30578   [\\/]* | ?:[\\/]*)
30579   ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
30580   ;;
30581   *)
30582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30583 for as_dir in $PATH
30584 do
30585   IFS=$as_save_IFS
30586   test -z "$as_dir" && as_dir=.
30587     for ac_exec_ext in '' $ac_executable_extensions; do
30588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30589     ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30591     break 2
30592   fi
30593 done
30594   done
30595 IFS=$as_save_IFS
30596
30597   test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
30598   ;;
30599 esac
30600 fi
30601 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
30602 if test -n "$AutotraceDecodeDelegate"; then
30603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
30604 $as_echo "$AutotraceDecodeDelegate" >&6; }
30605 else
30606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30607 $as_echo "no" >&6; }
30608 fi
30609
30610
30611 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
30612 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
30613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30614 $as_echo_n "checking for $ac_word... " >&6; }
30615 if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
30616   $as_echo_n "(cached) " >&6
30617 else
30618   case $BlenderDecodeDelegate in
30619   [\\/]* | ?:[\\/]*)
30620   ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
30621   ;;
30622   *)
30623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30624 for as_dir in $PATH
30625 do
30626   IFS=$as_save_IFS
30627   test -z "$as_dir" && as_dir=.
30628     for ac_exec_ext in '' $ac_executable_extensions; do
30629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30630     ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30632     break 2
30633   fi
30634 done
30635   done
30636 IFS=$as_save_IFS
30637
30638   test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
30639   ;;
30640 esac
30641 fi
30642 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
30643 if test -n "$BlenderDecodeDelegate"; then
30644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
30645 $as_echo "$BlenderDecodeDelegate" >&6; }
30646 else
30647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30648 $as_echo "no" >&6; }
30649 fi
30650
30651
30652 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
30653 set dummy "$BZIPDelegateDefault"; ac_word=$2
30654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30655 $as_echo_n "checking for $ac_word... " >&6; }
30656 if ${ac_cv_path_BZIPDelegate+:} false; then :
30657   $as_echo_n "(cached) " >&6
30658 else
30659   case $BZIPDelegate in
30660   [\\/]* | ?:[\\/]*)
30661   ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
30662   ;;
30663   *)
30664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30665 for as_dir in $PATH
30666 do
30667   IFS=$as_save_IFS
30668   test -z "$as_dir" && as_dir=.
30669     for ac_exec_ext in '' $ac_executable_extensions; do
30670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30671     ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
30672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30673     break 2
30674   fi
30675 done
30676   done
30677 IFS=$as_save_IFS
30678
30679   test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
30680   ;;
30681 esac
30682 fi
30683 BZIPDelegate=$ac_cv_path_BZIPDelegate
30684 if test -n "$BZIPDelegate"; then
30685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
30686 $as_echo "$BZIPDelegate" >&6; }
30687 else
30688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30689 $as_echo "no" >&6; }
30690 fi
30691
30692
30693 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
30694 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
30695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30696 $as_echo_n "checking for $ac_word... " >&6; }
30697 if ${ac_cv_path_BrowseDelegate+:} false; then :
30698   $as_echo_n "(cached) " >&6
30699 else
30700   case $BrowseDelegate in
30701   [\\/]* | ?:[\\/]*)
30702   ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
30703   ;;
30704   *)
30705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30706 for as_dir in $PATH
30707 do
30708   IFS=$as_save_IFS
30709   test -z "$as_dir" && as_dir=.
30710     for ac_exec_ext in '' $ac_executable_extensions; do
30711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30712     ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
30713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30714     break 2
30715   fi
30716 done
30717   done
30718 IFS=$as_save_IFS
30719
30720   test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
30721   ;;
30722 esac
30723 fi
30724 BrowseDelegate=$ac_cv_path_BrowseDelegate
30725 if test -n "$BrowseDelegate"; then
30726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
30727 $as_echo "$BrowseDelegate" >&6; }
30728 else
30729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30730 $as_echo "no" >&6; }
30731 fi
30732
30733
30734 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
30735 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
30736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30737 $as_echo_n "checking for $ac_word... " >&6; }
30738 if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
30739   $as_echo_n "(cached) " >&6
30740 else
30741   case $CGMDecodeDelegate in
30742   [\\/]* | ?:[\\/]*)
30743   ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
30744   ;;
30745   *)
30746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30747 for as_dir in $PATH
30748 do
30749   IFS=$as_save_IFS
30750   test -z "$as_dir" && as_dir=.
30751     for ac_exec_ext in '' $ac_executable_extensions; do
30752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30753     ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30755     break 2
30756   fi
30757 done
30758   done
30759 IFS=$as_save_IFS
30760
30761   test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
30762   ;;
30763 esac
30764 fi
30765 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
30766 if test -n "$CGMDecodeDelegate"; then
30767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
30768 $as_echo "$CGMDecodeDelegate" >&6; }
30769 else
30770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30771 $as_echo "no" >&6; }
30772 fi
30773
30774
30775 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
30776 set dummy "$CatDelegateDefault"; ac_word=$2
30777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30778 $as_echo_n "checking for $ac_word... " >&6; }
30779 if ${ac_cv_path_CatDelegate+:} false; then :
30780   $as_echo_n "(cached) " >&6
30781 else
30782   case $CatDelegate in
30783   [\\/]* | ?:[\\/]*)
30784   ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
30785   ;;
30786   *)
30787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30788 for as_dir in $PATH
30789 do
30790   IFS=$as_save_IFS
30791   test -z "$as_dir" && as_dir=.
30792     for ac_exec_ext in '' $ac_executable_extensions; do
30793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30794     ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
30795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30796     break 2
30797   fi
30798 done
30799   done
30800 IFS=$as_save_IFS
30801
30802   test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
30803   ;;
30804 esac
30805 fi
30806 CatDelegate=$ac_cv_path_CatDelegate
30807 if test -n "$CatDelegate"; then
30808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
30809 $as_echo "$CatDelegate" >&6; }
30810 else
30811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30812 $as_echo "no" >&6; }
30813 fi
30814
30815
30816 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
30817 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
30818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30819 $as_echo_n "checking for $ac_word... " >&6; }
30820 if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
30821   $as_echo_n "(cached) " >&6
30822 else
30823   case $DNGDecodeDelegate in
30824   [\\/]* | ?:[\\/]*)
30825   ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
30826   ;;
30827   *)
30828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30829 for as_dir in $PATH
30830 do
30831   IFS=$as_save_IFS
30832   test -z "$as_dir" && as_dir=.
30833     for ac_exec_ext in '' $ac_executable_extensions; do
30834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30835     ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30837     break 2
30838   fi
30839 done
30840   done
30841 IFS=$as_save_IFS
30842
30843   test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
30844   ;;
30845 esac
30846 fi
30847 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
30848 if test -n "$DNGDecodeDelegate"; then
30849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
30850 $as_echo "$DNGDecodeDelegate" >&6; }
30851 else
30852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30853 $as_echo "no" >&6; }
30854 fi
30855
30856
30857 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
30858 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
30859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30860 $as_echo_n "checking for $ac_word... " >&6; }
30861 if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
30862   $as_echo_n "(cached) " >&6
30863 else
30864   case $GVCDecodeDelegate in
30865   [\\/]* | ?:[\\/]*)
30866   ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
30867   ;;
30868   *)
30869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30870 for as_dir in $PATH
30871 do
30872   IFS=$as_save_IFS
30873   test -z "$as_dir" && as_dir=.
30874     for ac_exec_ext in '' $ac_executable_extensions; do
30875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30876     ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30878     break 2
30879   fi
30880 done
30881   done
30882 IFS=$as_save_IFS
30883
30884   test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30885   ;;
30886 esac
30887 fi
30888 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30889 if test -n "$GVCDecodeDelegate"; then
30890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
30891 $as_echo "$GVCDecodeDelegate" >&6; }
30892 else
30893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30894 $as_echo "no" >&6; }
30895 fi
30896
30897
30898 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30899 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
30900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30901 $as_echo_n "checking for $ac_word... " >&6; }
30902 if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
30903   $as_echo_n "(cached) " >&6
30904 else
30905   case $DVIDecodeDelegate in
30906   [\\/]* | ?:[\\/]*)
30907   ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30908   ;;
30909   *)
30910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30911 for as_dir in $PATH
30912 do
30913   IFS=$as_save_IFS
30914   test -z "$as_dir" && as_dir=.
30915     for ac_exec_ext in '' $ac_executable_extensions; do
30916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30917     ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30919     break 2
30920   fi
30921 done
30922   done
30923 IFS=$as_save_IFS
30924
30925   test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30926   ;;
30927 esac
30928 fi
30929 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30930 if test -n "$DVIDecodeDelegate"; then
30931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
30932 $as_echo "$DVIDecodeDelegate" >&6; }
30933 else
30934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30935 $as_echo "no" >&6; }
30936 fi
30937
30938
30939 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30940 set dummy "$EchoDelegateDefault"; ac_word=$2
30941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30942 $as_echo_n "checking for $ac_word... " >&6; }
30943 if ${ac_cv_path_EchoDelegate+:} false; then :
30944   $as_echo_n "(cached) " >&6
30945 else
30946   case $EchoDelegate in
30947   [\\/]* | ?:[\\/]*)
30948   ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30949   ;;
30950   *)
30951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30952 for as_dir in $PATH
30953 do
30954   IFS=$as_save_IFS
30955   test -z "$as_dir" && as_dir=.
30956     for ac_exec_ext in '' $ac_executable_extensions; do
30957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30958     ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
30959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30960     break 2
30961   fi
30962 done
30963   done
30964 IFS=$as_save_IFS
30965
30966   test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30967   ;;
30968 esac
30969 fi
30970 EchoDelegate=$ac_cv_path_EchoDelegate
30971 if test -n "$EchoDelegate"; then
30972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
30973 $as_echo "$EchoDelegate" >&6; }
30974 else
30975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30976 $as_echo "no" >&6; }
30977 fi
30978
30979
30980 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30981 set dummy "$EditorDelegateDefault"; ac_word=$2
30982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30983 $as_echo_n "checking for $ac_word... " >&6; }
30984 if ${ac_cv_path_EditorDelegate+:} false; then :
30985   $as_echo_n "(cached) " >&6
30986 else
30987   case $EditorDelegate in
30988   [\\/]* | ?:[\\/]*)
30989   ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30990   ;;
30991   *)
30992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30993 for as_dir in $PATH
30994 do
30995   IFS=$as_save_IFS
30996   test -z "$as_dir" && as_dir=.
30997     for ac_exec_ext in '' $ac_executable_extensions; do
30998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30999     ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
31000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31001     break 2
31002   fi
31003 done
31004   done
31005 IFS=$as_save_IFS
31006
31007   test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
31008   ;;
31009 esac
31010 fi
31011 EditorDelegate=$ac_cv_path_EditorDelegate
31012 if test -n "$EditorDelegate"; then
31013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
31014 $as_echo "$EditorDelegate" >&6; }
31015 else
31016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31017 $as_echo "no" >&6; }
31018 fi
31019
31020
31021 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
31022 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
31023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31024 $as_echo_n "checking for $ac_word... " >&6; }
31025 if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
31026   $as_echo_n "(cached) " >&6
31027 else
31028   case $FIGDecodeDelegate in
31029   [\\/]* | ?:[\\/]*)
31030   ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
31031   ;;
31032   *)
31033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31034 for as_dir in $PATH
31035 do
31036   IFS=$as_save_IFS
31037   test -z "$as_dir" && as_dir=.
31038     for ac_exec_ext in '' $ac_executable_extensions; do
31039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31040     ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31042     break 2
31043   fi
31044 done
31045   done
31046 IFS=$as_save_IFS
31047
31048   test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
31049   ;;
31050 esac
31051 fi
31052 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
31053 if test -n "$FIGDecodeDelegate"; then
31054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
31055 $as_echo "$FIGDecodeDelegate" >&6; }
31056 else
31057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31058 $as_echo "no" >&6; }
31059 fi
31060
31061
31062 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
31063 set dummy "$ConvertDelegateDefault"; ac_word=$2
31064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31065 $as_echo_n "checking for $ac_word... " >&6; }
31066 if ${ac_cv_path_ConvertDelegate+:} false; then :
31067   $as_echo_n "(cached) " >&6
31068 else
31069   case $ConvertDelegate in
31070   [\\/]* | ?:[\\/]*)
31071   ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
31072   ;;
31073   *)
31074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31075 for as_dir in $PATH
31076 do
31077   IFS=$as_save_IFS
31078   test -z "$as_dir" && as_dir=.
31079     for ac_exec_ext in '' $ac_executable_extensions; do
31080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31081     ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
31082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31083     break 2
31084   fi
31085 done
31086   done
31087 IFS=$as_save_IFS
31088
31089   test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
31090   ;;
31091 esac
31092 fi
31093 ConvertDelegate=$ac_cv_path_ConvertDelegate
31094 if test -n "$ConvertDelegate"; then
31095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
31096 $as_echo "$ConvertDelegate" >&6; }
31097 else
31098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31099 $as_echo "no" >&6; }
31100 fi
31101
31102
31103 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
31104 set dummy "$DisplayDelegateDefault"; ac_word=$2
31105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31106 $as_echo_n "checking for $ac_word... " >&6; }
31107 if ${ac_cv_path_DisplayDelegate+:} false; then :
31108   $as_echo_n "(cached) " >&6
31109 else
31110   case $DisplayDelegate in
31111   [\\/]* | ?:[\\/]*)
31112   ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
31113   ;;
31114   *)
31115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31116 for as_dir in $PATH
31117 do
31118   IFS=$as_save_IFS
31119   test -z "$as_dir" && as_dir=.
31120     for ac_exec_ext in '' $ac_executable_extensions; do
31121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31122     ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
31123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31124     break 2
31125   fi
31126 done
31127   done
31128 IFS=$as_save_IFS
31129
31130   test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
31131   ;;
31132 esac
31133 fi
31134 DisplayDelegate=$ac_cv_path_DisplayDelegate
31135 if test -n "$DisplayDelegate"; then
31136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
31137 $as_echo "$DisplayDelegate" >&6; }
31138 else
31139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31140 $as_echo "no" >&6; }
31141 fi
31142
31143
31144 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
31145 set dummy "$MogrifyDelegateDefault"; ac_word=$2
31146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31147 $as_echo_n "checking for $ac_word... " >&6; }
31148 if ${ac_cv_path_MogrifyDelegate+:} false; then :
31149   $as_echo_n "(cached) " >&6
31150 else
31151   case $MogrifyDelegate in
31152   [\\/]* | ?:[\\/]*)
31153   ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
31154   ;;
31155   *)
31156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31157 for as_dir in $PATH
31158 do
31159   IFS=$as_save_IFS
31160   test -z "$as_dir" && as_dir=.
31161     for ac_exec_ext in '' $ac_executable_extensions; do
31162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31163     ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
31164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31165     break 2
31166   fi
31167 done
31168   done
31169 IFS=$as_save_IFS
31170
31171   test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
31172   ;;
31173 esac
31174 fi
31175 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
31176 if test -n "$MogrifyDelegate"; then
31177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
31178 $as_echo "$MogrifyDelegate" >&6; }
31179 else
31180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31181 $as_echo "no" >&6; }
31182 fi
31183
31184
31185 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
31186 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
31187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31188 $as_echo_n "checking for $ac_word... " >&6; }
31189 if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
31190   $as_echo_n "(cached) " >&6
31191 else
31192   case $GnuplotDecodeDelegate in
31193   [\\/]* | ?:[\\/]*)
31194   ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
31195   ;;
31196   *)
31197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31198 for as_dir in $PATH
31199 do
31200   IFS=$as_save_IFS
31201   test -z "$as_dir" && as_dir=.
31202     for ac_exec_ext in '' $ac_executable_extensions; do
31203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31204     ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31206     break 2
31207   fi
31208 done
31209   done
31210 IFS=$as_save_IFS
31211
31212   test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
31213   ;;
31214 esac
31215 fi
31216 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
31217 if test -n "$GnuplotDecodeDelegate"; then
31218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
31219 $as_echo "$GnuplotDecodeDelegate" >&6; }
31220 else
31221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31222 $as_echo "no" >&6; }
31223 fi
31224
31225
31226 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
31227 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
31228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31229 $as_echo_n "checking for $ac_word... " >&6; }
31230 if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
31231   $as_echo_n "(cached) " >&6
31232 else
31233   case $HPGLDecodeDelegate in
31234   [\\/]* | ?:[\\/]*)
31235   ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
31236   ;;
31237   *)
31238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31239 for as_dir in $PATH
31240 do
31241   IFS=$as_save_IFS
31242   test -z "$as_dir" && as_dir=.
31243     for ac_exec_ext in '' $ac_executable_extensions; do
31244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31245     ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31247     break 2
31248   fi
31249 done
31250   done
31251 IFS=$as_save_IFS
31252
31253   test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
31254   ;;
31255 esac
31256 fi
31257 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
31258 if test -n "$HPGLDecodeDelegate"; then
31259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
31260 $as_echo "$HPGLDecodeDelegate" >&6; }
31261 else
31262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31263 $as_echo "no" >&6; }
31264 fi
31265
31266
31267 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
31268 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
31269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31270 $as_echo_n "checking for $ac_word... " >&6; }
31271 if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
31272   $as_echo_n "(cached) " >&6
31273 else
31274   case $HTMLDecodeDelegate in
31275   [\\/]* | ?:[\\/]*)
31276   ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
31277   ;;
31278   *)
31279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31280 for as_dir in $PATH
31281 do
31282   IFS=$as_save_IFS
31283   test -z "$as_dir" && as_dir=.
31284     for ac_exec_ext in '' $ac_executable_extensions; do
31285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31286     ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31288     break 2
31289   fi
31290 done
31291   done
31292 IFS=$as_save_IFS
31293
31294   test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
31295   ;;
31296 esac
31297 fi
31298 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
31299 if test -n "$HTMLDecodeDelegate"; then
31300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
31301 $as_echo "$HTMLDecodeDelegate" >&6; }
31302 else
31303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31304 $as_echo "no" >&6; }
31305 fi
31306
31307
31308 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
31309 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
31310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31311 $as_echo_n "checking for $ac_word... " >&6; }
31312 if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
31313   $as_echo_n "(cached) " >&6
31314 else
31315   case $ILBMDecodeDelegate in
31316   [\\/]* | ?:[\\/]*)
31317   ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
31318   ;;
31319   *)
31320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31321 for as_dir in $PATH
31322 do
31323   IFS=$as_save_IFS
31324   test -z "$as_dir" && as_dir=.
31325     for ac_exec_ext in '' $ac_executable_extensions; do
31326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31327     ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31329     break 2
31330   fi
31331 done
31332   done
31333 IFS=$as_save_IFS
31334
31335   test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
31336   ;;
31337 esac
31338 fi
31339 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
31340 if test -n "$ILBMDecodeDelegate"; then
31341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
31342 $as_echo "$ILBMDecodeDelegate" >&6; }
31343 else
31344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31345 $as_echo "no" >&6; }
31346 fi
31347
31348
31349 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
31350 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
31351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31352 $as_echo_n "checking for $ac_word... " >&6; }
31353 if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
31354   $as_echo_n "(cached) " >&6
31355 else
31356   case $ILBMEncodeDelegate in
31357   [\\/]* | ?:[\\/]*)
31358   ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
31359   ;;
31360   *)
31361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31362 for as_dir in $PATH
31363 do
31364   IFS=$as_save_IFS
31365   test -z "$as_dir" && as_dir=.
31366     for ac_exec_ext in '' $ac_executable_extensions; do
31367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31368     ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31370     break 2
31371   fi
31372 done
31373   done
31374 IFS=$as_save_IFS
31375
31376   test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
31377   ;;
31378 esac
31379 fi
31380 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
31381 if test -n "$ILBMEncodeDelegate"; then
31382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
31383 $as_echo "$ILBMEncodeDelegate" >&6; }
31384 else
31385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31386 $as_echo "no" >&6; }
31387 fi
31388
31389
31390 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
31391 set dummy "$LPDelegateDefault"; ac_word=$2
31392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31393 $as_echo_n "checking for $ac_word... " >&6; }
31394 if ${ac_cv_path_LPDelegate+:} false; then :
31395   $as_echo_n "(cached) " >&6
31396 else
31397   case $LPDelegate in
31398   [\\/]* | ?:[\\/]*)
31399   ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
31400   ;;
31401   *)
31402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31403 for as_dir in $PATH
31404 do
31405   IFS=$as_save_IFS
31406   test -z "$as_dir" && as_dir=.
31407     for ac_exec_ext in '' $ac_executable_extensions; do
31408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31409     ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
31410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31411     break 2
31412   fi
31413 done
31414   done
31415 IFS=$as_save_IFS
31416
31417   test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
31418   ;;
31419 esac
31420 fi
31421 LPDelegate=$ac_cv_path_LPDelegate
31422 if test -n "$LPDelegate"; then
31423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
31424 $as_echo "$LPDelegate" >&6; }
31425 else
31426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31427 $as_echo "no" >&6; }
31428 fi
31429
31430
31431 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
31432 set dummy "$LPRDelegateDefault"; ac_word=$2
31433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31434 $as_echo_n "checking for $ac_word... " >&6; }
31435 if ${ac_cv_path_LPRDelegate+:} false; then :
31436   $as_echo_n "(cached) " >&6
31437 else
31438   case $LPRDelegate in
31439   [\\/]* | ?:[\\/]*)
31440   ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
31441   ;;
31442   *)
31443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31444 for as_dir in $PATH
31445 do
31446   IFS=$as_save_IFS
31447   test -z "$as_dir" && as_dir=.
31448     for ac_exec_ext in '' $ac_executable_extensions; do
31449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31450     ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
31451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31452     break 2
31453   fi
31454 done
31455   done
31456 IFS=$as_save_IFS
31457
31458   test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
31459   ;;
31460 esac
31461 fi
31462 LPRDelegate=$ac_cv_path_LPRDelegate
31463 if test -n "$LPRDelegate"; then
31464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
31465 $as_echo "$LPRDelegate" >&6; }
31466 else
31467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31468 $as_echo "no" >&6; }
31469 fi
31470
31471
31472 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
31473 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
31474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31475 $as_echo_n "checking for $ac_word... " >&6; }
31476 if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
31477   $as_echo_n "(cached) " >&6
31478 else
31479   case $LZWDecodeDelegate in
31480   [\\/]* | ?:[\\/]*)
31481   ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
31482   ;;
31483   *)
31484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31485 for as_dir in $PATH
31486 do
31487   IFS=$as_save_IFS
31488   test -z "$as_dir" && as_dir=.
31489     for ac_exec_ext in '' $ac_executable_extensions; do
31490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31491     ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31493     break 2
31494   fi
31495 done
31496   done
31497 IFS=$as_save_IFS
31498
31499   test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
31500   ;;
31501 esac
31502 fi
31503 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
31504 if test -n "$LZWDecodeDelegate"; then
31505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
31506 $as_echo "$LZWDecodeDelegate" >&6; }
31507 else
31508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31509 $as_echo "no" >&6; }
31510 fi
31511
31512
31513 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
31514 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
31515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31516 $as_echo_n "checking for $ac_word... " >&6; }
31517 if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
31518   $as_echo_n "(cached) " >&6
31519 else
31520   case $LZWEncodeDelegate in
31521   [\\/]* | ?:[\\/]*)
31522   ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
31523   ;;
31524   *)
31525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31526 for as_dir in $PATH
31527 do
31528   IFS=$as_save_IFS
31529   test -z "$as_dir" && as_dir=.
31530     for ac_exec_ext in '' $ac_executable_extensions; do
31531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31532     ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31534     break 2
31535   fi
31536 done
31537   done
31538 IFS=$as_save_IFS
31539
31540   test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
31541   ;;
31542 esac
31543 fi
31544 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
31545 if test -n "$LZWEncodeDelegate"; then
31546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
31547 $as_echo "$LZWEncodeDelegate" >&6; }
31548 else
31549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31550 $as_echo "no" >&6; }
31551 fi
31552
31553
31554 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
31555 set dummy "$LaunchDelegateDefault"; ac_word=$2
31556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31557 $as_echo_n "checking for $ac_word... " >&6; }
31558 if ${ac_cv_path_LaunchDelegate+:} false; then :
31559   $as_echo_n "(cached) " >&6
31560 else
31561   case $LaunchDelegate in
31562   [\\/]* | ?:[\\/]*)
31563   ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
31564   ;;
31565   *)
31566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31567 for as_dir in $PATH
31568 do
31569   IFS=$as_save_IFS
31570   test -z "$as_dir" && as_dir=.
31571     for ac_exec_ext in '' $ac_executable_extensions; do
31572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31573     ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
31574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31575     break 2
31576   fi
31577 done
31578   done
31579 IFS=$as_save_IFS
31580
31581   test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
31582   ;;
31583 esac
31584 fi
31585 LaunchDelegate=$ac_cv_path_LaunchDelegate
31586 if test -n "$LaunchDelegate"; then
31587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
31588 $as_echo "$LaunchDelegate" >&6; }
31589 else
31590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31591 $as_echo "no" >&6; }
31592 fi
31593
31594
31595 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
31596 set dummy "$MANDelegateDefault"; ac_word=$2
31597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31598 $as_echo_n "checking for $ac_word... " >&6; }
31599 if ${ac_cv_path_MANDelegate+:} false; then :
31600   $as_echo_n "(cached) " >&6
31601 else
31602   case $MANDelegate in
31603   [\\/]* | ?:[\\/]*)
31604   ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
31605   ;;
31606   *)
31607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31608 for as_dir in $PATH
31609 do
31610   IFS=$as_save_IFS
31611   test -z "$as_dir" && as_dir=.
31612     for ac_exec_ext in '' $ac_executable_extensions; do
31613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31614     ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
31615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31616     break 2
31617   fi
31618 done
31619   done
31620 IFS=$as_save_IFS
31621
31622   test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
31623   ;;
31624 esac
31625 fi
31626 MANDelegate=$ac_cv_path_MANDelegate
31627 if test -n "$MANDelegate"; then
31628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
31629 $as_echo "$MANDelegate" >&6; }
31630 else
31631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31632 $as_echo "no" >&6; }
31633 fi
31634
31635
31636 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
31637 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
31638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31639 $as_echo_n "checking for $ac_word... " >&6; }
31640 if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
31641   $as_echo_n "(cached) " >&6
31642 else
31643   case $MPEGDecodeDelegate in
31644   [\\/]* | ?:[\\/]*)
31645   ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
31646   ;;
31647   *)
31648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31649 for as_dir in $PATH
31650 do
31651   IFS=$as_save_IFS
31652   test -z "$as_dir" && as_dir=.
31653     for ac_exec_ext in '' $ac_executable_extensions; do
31654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31655     ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31657     break 2
31658   fi
31659 done
31660   done
31661 IFS=$as_save_IFS
31662
31663   test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
31664   ;;
31665 esac
31666 fi
31667 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
31668 if test -n "$MPEGDecodeDelegate"; then
31669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
31670 $as_echo "$MPEGDecodeDelegate" >&6; }
31671 else
31672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31673 $as_echo "no" >&6; }
31674 fi
31675
31676
31677 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
31678 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
31679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31680 $as_echo_n "checking for $ac_word... " >&6; }
31681 if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
31682   $as_echo_n "(cached) " >&6
31683 else
31684   case $MPEGEncodeDelegate in
31685   [\\/]* | ?:[\\/]*)
31686   ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
31687   ;;
31688   *)
31689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31690 for as_dir in $PATH
31691 do
31692   IFS=$as_save_IFS
31693   test -z "$as_dir" && as_dir=.
31694     for ac_exec_ext in '' $ac_executable_extensions; do
31695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31696     ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31698     break 2
31699   fi
31700 done
31701   done
31702 IFS=$as_save_IFS
31703
31704   test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
31705   ;;
31706 esac
31707 fi
31708 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
31709 if test -n "$MPEGEncodeDelegate"; then
31710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
31711 $as_echo "$MPEGEncodeDelegate" >&6; }
31712 else
31713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31714 $as_echo "no" >&6; }
31715 fi
31716
31717
31718 # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
31719 set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
31720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31721 $as_echo_n "checking for $ac_word... " >&6; }
31722 if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
31723   $as_echo_n "(cached) " >&6
31724 else
31725   case $MrSIDDecodeDelegate in
31726   [\\/]* | ?:[\\/]*)
31727   ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
31728   ;;
31729   *)
31730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31731 for as_dir in $PATH
31732 do
31733   IFS=$as_save_IFS
31734   test -z "$as_dir" && as_dir=.
31735     for ac_exec_ext in '' $ac_executable_extensions; do
31736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31737     ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31739     break 2
31740   fi
31741 done
31742   done
31743 IFS=$as_save_IFS
31744
31745   test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
31746   ;;
31747 esac
31748 fi
31749 MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
31750 if test -n "$MrSIDDecodeDelegate"; then
31751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
31752 $as_echo "$MrSIDDecodeDelegate" >&6; }
31753 else
31754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31755 $as_echo "no" >&6; }
31756 fi
31757
31758
31759 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
31760 set dummy "$MVDelegateDefault"; ac_word=$2
31761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31762 $as_echo_n "checking for $ac_word... " >&6; }
31763 if ${ac_cv_path_MVDelegate+:} false; then :
31764   $as_echo_n "(cached) " >&6
31765 else
31766   case $MVDelegate in
31767   [\\/]* | ?:[\\/]*)
31768   ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
31769   ;;
31770   *)
31771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31772 for as_dir in $PATH
31773 do
31774   IFS=$as_save_IFS
31775   test -z "$as_dir" && as_dir=.
31776     for ac_exec_ext in '' $ac_executable_extensions; do
31777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31778     ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
31779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31780     break 2
31781   fi
31782 done
31783   done
31784 IFS=$as_save_IFS
31785
31786   test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
31787   ;;
31788 esac
31789 fi
31790 MVDelegate=$ac_cv_path_MVDelegate
31791 if test -n "$MVDelegate"; then
31792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
31793 $as_echo "$MVDelegate" >&6; }
31794 else
31795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31796 $as_echo "no" >&6; }
31797 fi
31798
31799
31800 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
31801 set dummy "$PCLDelegateDefault"; ac_word=$2
31802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31803 $as_echo_n "checking for $ac_word... " >&6; }
31804 if ${ac_cv_path_PCLDelegate+:} false; then :
31805   $as_echo_n "(cached) " >&6
31806 else
31807   case $PCLDelegate in
31808   [\\/]* | ?:[\\/]*)
31809   ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
31810   ;;
31811   *)
31812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31813 for as_dir in $PATH
31814 do
31815   IFS=$as_save_IFS
31816   test -z "$as_dir" && as_dir=.
31817     for ac_exec_ext in '' $ac_executable_extensions; do
31818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31819     ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
31820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31821     break 2
31822   fi
31823 done
31824   done
31825 IFS=$as_save_IFS
31826
31827   test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
31828   ;;
31829 esac
31830 fi
31831 PCLDelegate=$ac_cv_path_PCLDelegate
31832 if test -n "$PCLDelegate"; then
31833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
31834 $as_echo "$PCLDelegate" >&6; }
31835 else
31836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31837 $as_echo "no" >&6; }
31838 fi
31839
31840
31841 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31842 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
31843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31844 $as_echo_n "checking for $ac_word... " >&6; }
31845 if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
31846   $as_echo_n "(cached) " >&6
31847 else
31848   case $PGPDecodeDelegate in
31849   [\\/]* | ?:[\\/]*)
31850   ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31851   ;;
31852   *)
31853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31854 for as_dir in $PATH
31855 do
31856   IFS=$as_save_IFS
31857   test -z "$as_dir" && as_dir=.
31858     for ac_exec_ext in '' $ac_executable_extensions; do
31859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31860     ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31862     break 2
31863   fi
31864 done
31865   done
31866 IFS=$as_save_IFS
31867
31868   test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31869   ;;
31870 esac
31871 fi
31872 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31873 if test -n "$PGPDecodeDelegate"; then
31874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
31875 $as_echo "$PGPDecodeDelegate" >&6; }
31876 else
31877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31878 $as_echo "no" >&6; }
31879 fi
31880
31881
31882 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31883 set dummy "$POVDelegateDefault"; ac_word=$2
31884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31885 $as_echo_n "checking for $ac_word... " >&6; }
31886 if ${ac_cv_path_POVDelegate+:} false; then :
31887   $as_echo_n "(cached) " >&6
31888 else
31889   case $POVDelegate in
31890   [\\/]* | ?:[\\/]*)
31891   ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31892   ;;
31893   *)
31894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31895 for as_dir in $PATH
31896 do
31897   IFS=$as_save_IFS
31898   test -z "$as_dir" && as_dir=.
31899     for ac_exec_ext in '' $ac_executable_extensions; do
31900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31901     ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
31902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31903     break 2
31904   fi
31905 done
31906   done
31907 IFS=$as_save_IFS
31908
31909   test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31910   ;;
31911 esac
31912 fi
31913 POVDelegate=$ac_cv_path_POVDelegate
31914 if test -n "$POVDelegate"; then
31915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
31916 $as_echo "$POVDelegate" >&6; }
31917 else
31918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31919 $as_echo "no" >&6; }
31920 fi
31921
31922
31923 for ac_prog in gsx gsc "$PSDelegateDefault"
31924 do
31925   # Extract the first word of "$ac_prog", so it can be a program name with args.
31926 set dummy $ac_prog; ac_word=$2
31927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31928 $as_echo_n "checking for $ac_word... " >&6; }
31929 if ${ac_cv_path_PSDelegate+:} false; then :
31930   $as_echo_n "(cached) " >&6
31931 else
31932   case $PSDelegate in
31933   [\\/]* | ?:[\\/]*)
31934   ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31935   ;;
31936   *)
31937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31938 for as_dir in $PATH
31939 do
31940   IFS=$as_save_IFS
31941   test -z "$as_dir" && as_dir=.
31942     for ac_exec_ext in '' $ac_executable_extensions; do
31943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31944     ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
31945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31946     break 2
31947   fi
31948 done
31949   done
31950 IFS=$as_save_IFS
31951
31952   ;;
31953 esac
31954 fi
31955 PSDelegate=$ac_cv_path_PSDelegate
31956 if test -n "$PSDelegate"; then
31957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
31958 $as_echo "$PSDelegate" >&6; }
31959 else
31960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31961 $as_echo "no" >&6; }
31962 fi
31963
31964
31965   test -n "$PSDelegate" && break
31966 done
31967 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31968
31969 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31970 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
31971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31972 $as_echo_n "checking for $ac_word... " >&6; }
31973 if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
31974   $as_echo_n "(cached) " >&6
31975 else
31976   case $RLEEncodeDelegate in
31977   [\\/]* | ?:[\\/]*)
31978   ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31979   ;;
31980   *)
31981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31982 for as_dir in $PATH
31983 do
31984   IFS=$as_save_IFS
31985   test -z "$as_dir" && as_dir=.
31986     for ac_exec_ext in '' $ac_executable_extensions; do
31987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31988     ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31990     break 2
31991   fi
31992 done
31993   done
31994 IFS=$as_save_IFS
31995
31996   test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31997   ;;
31998 esac
31999 fi
32000 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
32001 if test -n "$RLEEncodeDelegate"; then
32002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
32003 $as_echo "$RLEEncodeDelegate" >&6; }
32004 else
32005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32006 $as_echo "no" >&6; }
32007 fi
32008
32009
32010 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
32011 set dummy "$RMDelegateDefault"; ac_word=$2
32012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32013 $as_echo_n "checking for $ac_word... " >&6; }
32014 if ${ac_cv_path_RMDelegate+:} false; then :
32015   $as_echo_n "(cached) " >&6
32016 else
32017   case $RMDelegate in
32018   [\\/]* | ?:[\\/]*)
32019   ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
32020   ;;
32021   *)
32022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32023 for as_dir in $PATH
32024 do
32025   IFS=$as_save_IFS
32026   test -z "$as_dir" && as_dir=.
32027     for ac_exec_ext in '' $ac_executable_extensions; do
32028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32029     ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
32030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32031     break 2
32032   fi
32033 done
32034   done
32035 IFS=$as_save_IFS
32036
32037   test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
32038   ;;
32039 esac
32040 fi
32041 RMDelegate=$ac_cv_path_RMDelegate
32042 if test -n "$RMDelegate"; then
32043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
32044 $as_echo "$RMDelegate" >&6; }
32045 else
32046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32047 $as_echo "no" >&6; }
32048 fi
32049
32050
32051 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
32052 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
32053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32054 $as_echo_n "checking for $ac_word... " >&6; }
32055 if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
32056   $as_echo_n "(cached) " >&6
32057 else
32058   case $RSVGDecodeDelegate in
32059   [\\/]* | ?:[\\/]*)
32060   ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
32061   ;;
32062   *)
32063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32064 for as_dir in $PATH
32065 do
32066   IFS=$as_save_IFS
32067   test -z "$as_dir" && as_dir=.
32068     for ac_exec_ext in '' $ac_executable_extensions; do
32069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32070     ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32072     break 2
32073   fi
32074 done
32075   done
32076 IFS=$as_save_IFS
32077
32078   test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
32079   ;;
32080 esac
32081 fi
32082 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
32083 if test -n "$RSVGDecodeDelegate"; then
32084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
32085 $as_echo "$RSVGDecodeDelegate" >&6; }
32086 else
32087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32088 $as_echo "no" >&6; }
32089 fi
32090
32091
32092 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
32093 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
32094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32095 $as_echo_n "checking for $ac_word... " >&6; }
32096 if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
32097   $as_echo_n "(cached) " >&6
32098 else
32099   case $SCANDecodeDelegate in
32100   [\\/]* | ?:[\\/]*)
32101   ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
32102   ;;
32103   *)
32104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32105 for as_dir in $PATH
32106 do
32107   IFS=$as_save_IFS
32108   test -z "$as_dir" && as_dir=.
32109     for ac_exec_ext in '' $ac_executable_extensions; do
32110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32111     ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32113     break 2
32114   fi
32115 done
32116   done
32117 IFS=$as_save_IFS
32118
32119   test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
32120   ;;
32121 esac
32122 fi
32123 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
32124 if test -n "$SCANDecodeDelegate"; then
32125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
32126 $as_echo "$SCANDecodeDelegate" >&6; }
32127 else
32128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32129 $as_echo "no" >&6; }
32130 fi
32131
32132
32133 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
32134 set dummy "$TXTDelegateDefault"; ac_word=$2
32135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32136 $as_echo_n "checking for $ac_word... " >&6; }
32137 if ${ac_cv_path_TXTDelegate+:} false; then :
32138   $as_echo_n "(cached) " >&6
32139 else
32140   case $TXTDelegate in
32141   [\\/]* | ?:[\\/]*)
32142   ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
32143   ;;
32144   *)
32145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32146 for as_dir in $PATH
32147 do
32148   IFS=$as_save_IFS
32149   test -z "$as_dir" && as_dir=.
32150     for ac_exec_ext in '' $ac_executable_extensions; do
32151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32152     ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
32153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32154     break 2
32155   fi
32156 done
32157   done
32158 IFS=$as_save_IFS
32159
32160   test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
32161   ;;
32162 esac
32163 fi
32164 TXTDelegate=$ac_cv_path_TXTDelegate
32165 if test -n "$TXTDelegate"; then
32166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
32167 $as_echo "$TXTDelegate" >&6; }
32168 else
32169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32170 $as_echo "no" >&6; }
32171 fi
32172
32173
32174 # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
32175 set dummy "$UniconvertorDelegateDefault"; ac_word=$2
32176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32177 $as_echo_n "checking for $ac_word... " >&6; }
32178 if ${ac_cv_path_UniconvertorDelegate+:} false; then :
32179   $as_echo_n "(cached) " >&6
32180 else
32181   case $UniconvertorDelegate in
32182   [\\/]* | ?:[\\/]*)
32183   ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
32184   ;;
32185   *)
32186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32187 for as_dir in $PATH
32188 do
32189   IFS=$as_save_IFS
32190   test -z "$as_dir" && as_dir=.
32191     for ac_exec_ext in '' $ac_executable_extensions; do
32192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32193     ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
32194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32195     break 2
32196   fi
32197 done
32198   done
32199 IFS=$as_save_IFS
32200
32201   test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
32202   ;;
32203 esac
32204 fi
32205 UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
32206 if test -n "$UniconvertorDelegate"; then
32207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
32208 $as_echo "$UniconvertorDelegate" >&6; }
32209 else
32210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32211 $as_echo "no" >&6; }
32212 fi
32213
32214
32215 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
32216 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
32217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32218 $as_echo_n "checking for $ac_word... " >&6; }
32219 if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
32220   $as_echo_n "(cached) " >&6
32221 else
32222   case $WMFDecodeDelegate in
32223   [\\/]* | ?:[\\/]*)
32224   ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
32225   ;;
32226   *)
32227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32228 for as_dir in $PATH
32229 do
32230   IFS=$as_save_IFS
32231   test -z "$as_dir" && as_dir=.
32232     for ac_exec_ext in '' $ac_executable_extensions; do
32233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32234     ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32236     break 2
32237   fi
32238 done
32239   done
32240 IFS=$as_save_IFS
32241
32242   test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
32243   ;;
32244 esac
32245 fi
32246 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
32247 if test -n "$WMFDecodeDelegate"; then
32248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
32249 $as_echo "$WMFDecodeDelegate" >&6; }
32250 else
32251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32252 $as_echo "no" >&6; }
32253 fi
32254
32255
32256 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
32257 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
32258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32259 $as_echo_n "checking for $ac_word... " >&6; }
32260 if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
32261   $as_echo_n "(cached) " >&6
32262 else
32263   case $WWWDecodeDelegate in
32264   [\\/]* | ?:[\\/]*)
32265   ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
32266   ;;
32267   *)
32268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32269 for as_dir in $PATH
32270 do
32271   IFS=$as_save_IFS
32272   test -z "$as_dir" && as_dir=.
32273     for ac_exec_ext in '' $ac_executable_extensions; do
32274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32275     ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32277     break 2
32278   fi
32279 done
32280   done
32281 IFS=$as_save_IFS
32282
32283   test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
32284   ;;
32285 esac
32286 fi
32287 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
32288 if test -n "$WWWDecodeDelegate"; then
32289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
32290 $as_echo "$WWWDecodeDelegate" >&6; }
32291 else
32292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32293 $as_echo "no" >&6; }
32294 fi
32295
32296
32297 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
32298 set dummy "$XPSDelegateDefault"; ac_word=$2
32299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32300 $as_echo_n "checking for $ac_word... " >&6; }
32301 if ${ac_cv_path_XPSDelegate+:} false; then :
32302   $as_echo_n "(cached) " >&6
32303 else
32304   case $XPSDelegate in
32305   [\\/]* | ?:[\\/]*)
32306   ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
32307   ;;
32308   *)
32309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32310 for as_dir in $PATH
32311 do
32312   IFS=$as_save_IFS
32313   test -z "$as_dir" && as_dir=.
32314     for ac_exec_ext in '' $ac_executable_extensions; do
32315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32316     ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
32317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32318     break 2
32319   fi
32320 done
32321   done
32322 IFS=$as_save_IFS
32323
32324   test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
32325   ;;
32326 esac
32327 fi
32328 XPSDelegate=$ac_cv_path_XPSDelegate
32329 if test -n "$XPSDelegate"; then
32330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
32331 $as_echo "$XPSDelegate" >&6; }
32332 else
32333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32334 $as_echo "no" >&6; }
32335 fi
32336
32337
32338 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
32339 set dummy "$ZipDelegateDefault"; ac_word=$2
32340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32341 $as_echo_n "checking for $ac_word... " >&6; }
32342 if ${ac_cv_path_ZipDelegate+:} false; then :
32343   $as_echo_n "(cached) " >&6
32344 else
32345   case $ZipDelegate in
32346   [\\/]* | ?:[\\/]*)
32347   ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
32348   ;;
32349   *)
32350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32351 for as_dir in $PATH
32352 do
32353   IFS=$as_save_IFS
32354   test -z "$as_dir" && as_dir=.
32355     for ac_exec_ext in '' $ac_executable_extensions; do
32356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32357     ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
32358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32359     break 2
32360   fi
32361 done
32362   done
32363 IFS=$as_save_IFS
32364
32365   test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
32366   ;;
32367 esac
32368 fi
32369 ZipDelegate=$ac_cv_path_ZipDelegate
32370 if test -n "$ZipDelegate"; then
32371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
32372 $as_echo "$ZipDelegate" >&6; }
32373 else
32374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32375 $as_echo "no" >&6; }
32376 fi
32377
32378
32379
32380 # Prefer lpr to lp; lp needs options tacked on.
32381 if test "$LPRDelegate" != no; then
32382     PrintDelegate="$LPRDelegate"
32383 else
32384     PrintDelegate="$LPDelegate -c -s"
32385 fi
32386
32387
32388 # Installed ImageMagick utiltity paths
32389 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
32390 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
32391 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
32392
32393 # Set delegate booleans
32394 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
32395 have_fig2dev='no'    ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
32396 have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
32397 have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
32398 have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
32399 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
32400 have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
32401 have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
32402 have_ralcgm='no'     ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
32403 have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
32404
32405 #
32406 # Test for font directories
32407 #
32408 type_include_files=''
32409
32410 # Dejavu fonts.
32411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
32412 $as_echo_n "checking for Dejavu fonts directory... " >&6; }
32413 dejavu_font_dir=''
32414 if test "${with_dejavu_font_dir}" != 'default'; then
32415   dejavu_font_dir="${with_dejavu_font_dir}/"
32416 else
32417   for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
32418     if test -f "${font_dir}DejaVuSerif.ttf"; then
32419       dejavu_font_dir="${font_dir}"
32420       break 1
32421     fi
32422   done
32423 fi
32424 if test "${dejavu_font_dir}x" != 'x'; then
32425   type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
32426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
32427 $as_echo "$dejavu_font_dir" >&6; }
32428 else
32429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
32430 $as_echo "not found!" >&6; };
32431 fi
32432
32433
32434 # Windows
32435 windows_font_dir=''
32436 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
32437    windows_font_dir="${with_windows_font_dir}/"
32438 fi
32439 if test "${windows_font_dir}x" != 'x'; then
32440     if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
32441       windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
32442     fi
32443     if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
32444       windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
32445     fi
32446     if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
32447       windows_font_dir='/usr/share/fonts/msttcore/truetype/'
32448     fi
32449 fi
32450 if test "${windows_font_dir}x" != 'x'; then
32451   type_include_files="$type_include_files "'<include file="type-windows.xml" />'
32452 fi
32453
32454
32455 # Ghostscript
32456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
32457 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
32458 ghostscript_font_dir=''
32459 if test "${with_gs_font_dir}" != 'default'; then
32460   ghostscript_font_dir="${with_gs_font_dir}/"
32461 else
32462   if test "${native_win32_build}" = 'yes'; then
32463     # Native Windows Build
32464     for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
32465       if test -f "${font_dir}a010013l.pfb"; then
32466         ghostscript_font_dir="$font_dir"
32467         break 1
32468       fi
32469     done
32470     if test "${PSDelegate}" != 'gswin32c'; then
32471       ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
32472     fi
32473   else
32474     # Linux / Mac OS X / Unix Build
32475     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
32476       if test -f "${font_dir}a010013l.pfb"; then
32477         ghostscript_font_dir="${font_dir}"
32478         break 1
32479       fi
32480     done
32481     if test "${ghostscript_font_dir}x" = 'x'; then
32482       if test "$PSDelegate" != 'gs'; then
32483         ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
32484       fi
32485     fi
32486   fi
32487 fi
32488 if test "${ghostscript_font_dir}x" != 'x'; then
32489   type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
32490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
32491 $as_echo "$ghostscript_font_dir" >&6; }
32492 else
32493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
32494 $as_echo "not found!" >&6; };
32495 fi
32496
32497 case "${build_os}" in
32498   mingw* )
32499     PSDelegate=`$WinPathScript "$PSDelegate" 1`
32500     ;;
32501 esac
32502
32503
32504
32505 #
32506 # Handle case where user doesn't want frozen paths
32507 #
32508 if test "$with_frozenpaths" != 'yes'; then
32509   # Re-set delegate definitions to default (no paths)
32510   AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
32511   BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
32512   BZIPDelegate="$BZIPDelegateDefault"
32513   BrowseDelegate="$BrowseDelegateDefault"
32514   CGMDecodeDelegate="$CGMDecodeDelegateDefault"
32515   CatDelegate="$CatDelegateDefault"
32516   ConvertDelegate="$ConvertDelegateDefault"
32517   GVCDecodeDelegate="$GVCDecodeDelegateDefault"
32518   DVIDecodeDelegate="$DVIDecodeDelegateDefault"
32519   EchoDelegate="$EchoDelegateDefault"
32520   EditorDelegate="$EditorDelegateDefault"
32521   FIGDecodeDelegate="$FIGDecodeDelegateDefault"
32522   GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
32523   HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
32524   HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
32525   ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
32526   ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
32527   LPDelegate="$LPDelegateDefault"
32528   LZWDecodeDelegate="$LZWDecodeDelegateDefault"
32529   LZWEncodeDelegate="$LZWEncodeDelegateDefault"
32530   LaunchDelegate="$LaunchDelegateDefault"
32531   MANDelegate="$MANDelegateDefault"
32532   MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
32533   MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
32534   MogrifyDelegate="$MogrifyDelegateDefault"
32535   MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
32536   MVDelegate="$MVDelegateDefault"
32537   PCLDelegate="$PCLDelegateDefault"
32538   PGPDecodeDelegate="$PGPDecodeDelegateDefault"
32539   POVDelegate="$POVDelegateDefault"
32540   PSDelegate="$PSDelegateDefault"
32541   RLEEncodeDelegate="$RLEEncodeDelegateDefault"
32542   RMDelegate="$RMDelegateDefault"
32543   RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
32544   SCANDecodeDelegate="$SCANDecodeDelegateDefault"
32545   ShowImageDelegate="$ShowImageDelegateDefault"
32546   TXTDelegate="$TXTDelegateDefault"
32547   UniconvertorDelegate="$UniconvertorDelegateDefault"
32548   WMFDecodeDelegate="$WMFDecodeDelegateDefault"
32549   WWWDecodeDelegate="$WWWDecodeDelegateDefault"
32550   XPSDelegate="$XPSDelegateDefault"
32551   ZipDelegate="$ZipDelegateDefault"
32552 fi
32553
32554 # Delegate substitutions
32555
32556
32557
32558
32559
32560
32561
32562
32563
32564
32565
32566
32567
32568
32569
32570
32571
32572
32573
32574
32575
32576
32577
32578
32579
32580
32581
32582
32583
32584
32585
32586
32587
32588
32589
32590
32591
32592
32593
32594
32595
32596
32597 #
32598 # RPM support.
32599 #
32600 RPM=''
32601 for ac_prog in gnutar gtar tar
32602 do
32603   # Extract the first word of "$ac_prog", so it can be a program name with args.
32604 set dummy $ac_prog; ac_word=$2
32605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32606 $as_echo_n "checking for $ac_word... " >&6; }
32607 if ${ac_cv_prog_TAR+:} false; then :
32608   $as_echo_n "(cached) " >&6
32609 else
32610   if test -n "$TAR"; then
32611   ac_cv_prog_TAR="$TAR" # Let the user override the test.
32612 else
32613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32614 for as_dir in $PATH
32615 do
32616   IFS=$as_save_IFS
32617   test -z "$as_dir" && as_dir=.
32618     for ac_exec_ext in '' $ac_executable_extensions; do
32619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32620     ac_cv_prog_TAR="$ac_prog"
32621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32622     break 2
32623   fi
32624 done
32625   done
32626 IFS=$as_save_IFS
32627
32628 fi
32629 fi
32630 TAR=$ac_cv_prog_TAR
32631 if test -n "$TAR"; then
32632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
32633 $as_echo "$TAR" >&6; }
32634 else
32635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32636 $as_echo "no" >&6; }
32637 fi
32638
32639
32640   test -n "$TAR" && break
32641 done
32642
32643 for ac_prog in perl
32644 do
32645   # Extract the first word of "$ac_prog", so it can be a program name with args.
32646 set dummy $ac_prog; ac_word=$2
32647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32648 $as_echo_n "checking for $ac_word... " >&6; }
32649 if ${ac_cv_prog_PERL+:} false; then :
32650   $as_echo_n "(cached) " >&6
32651 else
32652   if test -n "$PERL"; then
32653   ac_cv_prog_PERL="$PERL" # Let the user override the test.
32654 else
32655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32656 for as_dir in $PATH
32657 do
32658   IFS=$as_save_IFS
32659   test -z "$as_dir" && as_dir=.
32660     for ac_exec_ext in '' $ac_executable_extensions; do
32661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32662     ac_cv_prog_PERL="$ac_prog"
32663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32664     break 2
32665   fi
32666 done
32667   done
32668 IFS=$as_save_IFS
32669
32670 fi
32671 fi
32672 PERL=$ac_cv_prog_PERL
32673 if test -n "$PERL"; then
32674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
32675 $as_echo "$PERL" >&6; }
32676 else
32677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32678 $as_echo "no" >&6; }
32679 fi
32680
32681
32682   test -n "$PERL" && break
32683 done
32684
32685 for ac_prog in rpmbuild rpm
32686 do
32687   # Extract the first word of "$ac_prog", so it can be a program name with args.
32688 set dummy $ac_prog; ac_word=$2
32689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32690 $as_echo_n "checking for $ac_word... " >&6; }
32691 if ${ac_cv_prog_RPM+:} false; then :
32692   $as_echo_n "(cached) " >&6
32693 else
32694   if test -n "$RPM"; then
32695   ac_cv_prog_RPM="$RPM" # Let the user override the test.
32696 else
32697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32698 for as_dir in $PATH
32699 do
32700   IFS=$as_save_IFS
32701   test -z "$as_dir" && as_dir=.
32702     for ac_exec_ext in '' $ac_executable_extensions; do
32703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32704     ac_cv_prog_RPM="$ac_prog"
32705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32706     break 2
32707   fi
32708 done
32709   done
32710 IFS=$as_save_IFS
32711
32712 fi
32713 fi
32714 RPM=$ac_cv_prog_RPM
32715 if test -n "$RPM"; then
32716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
32717 $as_echo "$RPM" >&6; }
32718 else
32719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32720 $as_echo "no" >&6; }
32721 fi
32722
32723
32724   test -n "$RPM" && break
32725 done
32726
32727
32728 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
32729
32730
32731 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
32732
32733
32734 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
32735
32736
32737 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
32738
32739
32740  if test "x$RPM" != "x" ; then
32741   RPM_DELEGATE_TRUE=
32742   RPM_DELEGATE_FALSE='#'
32743 else
32744   RPM_DELEGATE_TRUE='#'
32745   RPM_DELEGATE_FALSE=
32746 fi
32747
32748
32749 #
32750 # 7ZIP support (http://p7zip.sourceforge.net/)
32751 #
32752 P7ZIP=''
32753 for ac_prog in 7za
32754 do
32755   # Extract the first word of "$ac_prog", so it can be a program name with args.
32756 set dummy $ac_prog; ac_word=$2
32757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32758 $as_echo_n "checking for $ac_word... " >&6; }
32759 if ${ac_cv_prog_P7ZIP+:} false; then :
32760   $as_echo_n "(cached) " >&6
32761 else
32762   if test -n "$P7ZIP"; then
32763   ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
32764 else
32765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32766 for as_dir in $PATH
32767 do
32768   IFS=$as_save_IFS
32769   test -z "$as_dir" && as_dir=.
32770     for ac_exec_ext in '' $ac_executable_extensions; do
32771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32772     ac_cv_prog_P7ZIP="$ac_prog"
32773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32774     break 2
32775   fi
32776 done
32777   done
32778 IFS=$as_save_IFS
32779
32780 fi
32781 fi
32782 P7ZIP=$ac_cv_prog_P7ZIP
32783 if test -n "$P7ZIP"; then
32784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
32785 $as_echo "$P7ZIP" >&6; }
32786 else
32787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32788 $as_echo "no" >&6; }
32789 fi
32790
32791
32792   test -n "$P7ZIP" && break
32793 done
32794
32795
32796  if test "x$P7ZIP" != "x" ; then
32797   P7ZIP_DELEGATE_TRUE=
32798   P7ZIP_DELEGATE_FALSE='#'
32799 else
32800   P7ZIP_DELEGATE_TRUE='#'
32801   P7ZIP_DELEGATE_FALSE=
32802 fi
32803
32804
32805 #
32806 # ZIP support (http://www.info-zip.org/Zip.html)
32807 #
32808 ZIP=''
32809 for ac_prog in zip
32810 do
32811   # Extract the first word of "$ac_prog", so it can be a program name with args.
32812 set dummy $ac_prog; ac_word=$2
32813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32814 $as_echo_n "checking for $ac_word... " >&6; }
32815 if ${ac_cv_prog_ZIP+:} false; then :
32816   $as_echo_n "(cached) " >&6
32817 else
32818   if test -n "$ZIP"; then
32819   ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
32820 else
32821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32822 for as_dir in $PATH
32823 do
32824   IFS=$as_save_IFS
32825   test -z "$as_dir" && as_dir=.
32826     for ac_exec_ext in '' $ac_executable_extensions; do
32827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32828     ac_cv_prog_ZIP="$ac_prog"
32829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32830     break 2
32831   fi
32832 done
32833   done
32834 IFS=$as_save_IFS
32835
32836 fi
32837 fi
32838 ZIP=$ac_cv_prog_ZIP
32839 if test -n "$ZIP"; then
32840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
32841 $as_echo "$ZIP" >&6; }
32842 else
32843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32844 $as_echo "no" >&6; }
32845 fi
32846
32847
32848   test -n "$ZIP" && break
32849 done
32850
32851
32852  if test "x$ZIP" != "x" ; then
32853   ZIP_DELEGATE_TRUE=
32854   ZIP_DELEGATE_FALSE='#'
32855 else
32856   ZIP_DELEGATE_TRUE='#'
32857   ZIP_DELEGATE_FALSE=
32858 fi
32859
32860
32861 #
32862 # GhostPCL related configuration.
32863 #
32864 PCLColorDevice=ppmraw
32865 PCLCMYKDevice=bmpsep8
32866 PCLMonoDevice=pbmraw
32867 if test -z "$PCLVersion"; then
32868     PCLVersion='unknown'
32869 fi
32870 if test $have_pcl = 'yes'; then
32871     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32872 $as_echo "-------------------------------------------------------------" >&6; }
32873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
32874 $as_echo_n "checking for PCL... " >&6; }
32875     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32876 $as_echo "" >&6; }
32877     # PCLColorDevice
32878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
32879 $as_echo_n "checking for pcl color device... " >&6; }
32880     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32881         :
32882     else
32883         PCLColorDevice=ppmraw
32884     fi
32885     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
32886 $as_echo "$PCLColorDevice" >&6; }
32887
32888     # PCLCMYKDevice
32889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
32890 $as_echo_n "checking for pcl CMYK device... " >&6; }
32891     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32892         :
32893     else
32894         PCLCMYKDevice=$PCLColorDevice
32895     fi
32896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
32897 $as_echo "$PCLCMYKDevice" >&6; }
32898
32899     # PCLMonoDevice
32900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
32901 $as_echo_n "checking for pcl mono device... " >&6; }
32902     if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32903         :
32904     else
32905         PCLMonoDevice=$PCLColorDevice
32906     fi
32907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
32908 $as_echo "$PCLMonoDevice" >&6; }
32909 fi
32910
32911
32912
32913
32914
32915
32916 #
32917 # GhostXPS related configuration.
32918 #
32919 XPSColorDevice=ppmraw
32920 XPSCMYKDevice=bmpsep8
32921 XPSMonoDevice=pbmraw
32922 if test -z "$XPSVersion"; then
32923     XPSVersion='unknown'
32924 fi
32925 if test $have_xps = 'yes'; then
32926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32927 $as_echo "-------------------------------------------------------------" >&6; }
32928     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
32929 $as_echo_n "checking for XPS... " >&6; }
32930     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32931 $as_echo "" >&6; }
32932     # XPSColorDevice
32933     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
32934 $as_echo_n "checking for xps color device... " >&6; }
32935     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32936         :
32937     else
32938         XPSColorDevice=ppmraw
32939     fi
32940     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
32941 $as_echo "$XPSColorDevice" >&6; }
32942
32943     # XPSCMYKDevice
32944     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
32945 $as_echo_n "checking for xps CMYK device... " >&6; }
32946     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32947         :
32948     else
32949         XPSCMYKDevice=$XPSColorDevice
32950     fi
32951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
32952 $as_echo "$XPSCMYKDevice" >&6; }
32953
32954     # XPSMonoDevice
32955     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
32956 $as_echo_n "checking for xps mono device... " >&6; }
32957     if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32958         :
32959     else
32960         XPSMonoDevice=$XPSColorDevice
32961     fi
32962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
32963 $as_echo "$XPSMonoDevice" >&6; }
32964 fi
32965
32966
32967
32968
32969
32970
32971 #
32972 # Ghostscript related configuration.
32973 #
32974 GSAlphaDevice=pngalpha
32975 GSColorDevice=pnmraw
32976 GSCMYKDevice=pam
32977 GSMonoDevice=pbmraw
32978 GSPDFDevice=pdfwrite
32979 GSPSDevice=pswrite
32980 GSEPSDevice=epswrite
32981 GSVersion='unknown'
32982 if test $have_gs = 'yes'; then
32983     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32984 $as_echo "-------------------------------------------------------------" >&6; }
32985     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
32986 $as_echo_n "checking for Ghostscript... " >&6; }
32987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32988 $as_echo "" >&6; }
32989     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
32990 $as_echo_n "checking for Ghostscript version... " >&6; }
32991     if GSVersion=`$PSDelegate --version`; then
32992         :
32993     else
32994         GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32995     fi
32996     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
32997 $as_echo "$GSVersion" >&6; }
32998
32999     # GSAlphaDevice
33000     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
33001 $as_echo_n "checking for gs alpha device... " >&6; }
33002     if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33003         :
33004     else
33005         GSAlphaDevice=pnmraw
33006     fi
33007     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
33008 $as_echo "$GSAlphaDevice" >&6; }
33009
33010     # GSColorDevice
33011     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
33012 $as_echo_n "checking for gs color device... " >&6; }
33013     if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33014         :
33015     else
33016         GSColorDevice=pnmraw
33017     fi
33018     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
33019 $as_echo "$GSColorDevice" >&6; }
33020
33021     # GSCMYKDevice
33022     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
33023 $as_echo_n "checking for gs CMYK device... " >&6; }
33024     if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33025         :
33026     else
33027         GSCMYKDevice=bmpsep8
33028     fi
33029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
33030 $as_echo "$GSCMYKDevice" >&6; }
33031
33032     # GSMonoDevice
33033     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
33034 $as_echo_n "checking for gs mono device... " >&6; }
33035     if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33036         :
33037     else
33038         GSMonoDevice=$GSColorDevice
33039     fi
33040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
33041 $as_echo "$GSMonoDevice" >&6; }
33042
33043     # GSPDFDevice
33044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
33045 $as_echo_n "checking for gs PDF writing device... " >&6; }
33046     if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33047         :
33048     else
33049         GSPDFDevice=nodevice
33050     fi
33051         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
33052 $as_echo "$GSPDFDevice" >&6; }
33053
33054     # GSPSDevice
33055     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
33056 $as_echo_n "checking for gs PS writing device... " >&6; }
33057     if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33058         :
33059     else
33060         GSPSDevice=nodevice
33061     fi
33062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
33063 $as_echo "$GSPSDevice" >&6; }
33064
33065     # GSEPSDevice
33066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
33067 $as_echo_n "checking for gs EPS writing device... " >&6; }
33068     if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33069         :
33070     else
33071         GSEPSDevice=nodevice
33072     fi
33073     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
33074 $as_echo "$GSEPSDevice" >&6; }
33075 fi
33076
33077
33078
33079
33080
33081
33082
33083
33084
33085
33086 #
33087 # PerlMagick-related configuration
33088 #
33089
33090 # Look for PERL if PerlMagick requested
33091 # If name/path of desired PERL interpreter is specified, look for that one first
33092 have_perl='no'
33093 if test "$with_perl" != 'no'; then
33094     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33095 $as_echo "-------------------------------------------------------------" >&6; }
33096     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
33097 $as_echo_n "checking for Perl... " >&6; }
33098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33099 $as_echo "" >&6; }
33100     if test "$with_perl" != 'yes'; then
33101         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
33102 $as_echo_n "checking for perl... " >&6; }
33103 if ${ac_cv_path_PERL+:} false; then :
33104   $as_echo_n "(cached) " >&6
33105 else
33106   ac_cv_path_PERL="$with_perl"
33107 fi
33108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
33109 $as_echo "$ac_cv_path_PERL" >&6; };
33110         PERL=$ac_cv_path_PERL
33111                 have_perl="$ac_cv_path_PERL"
33112     else
33113         for ac_prog in perl perl5
33114 do
33115   # Extract the first word of "$ac_prog", so it can be a program name with args.
33116 set dummy $ac_prog; ac_word=$2
33117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33118 $as_echo_n "checking for $ac_word... " >&6; }
33119 if ${ac_cv_path_PERL+:} false; then :
33120   $as_echo_n "(cached) " >&6
33121 else
33122   case $PERL in
33123   [\\/]* | ?:[\\/]*)
33124   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33125   ;;
33126   *)
33127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33128 for as_dir in $PATH
33129 do
33130   IFS=$as_save_IFS
33131   test -z "$as_dir" && as_dir=.
33132     for ac_exec_ext in '' $ac_executable_extensions; do
33133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33134     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
33135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33136     break 2
33137   fi
33138 done
33139   done
33140 IFS=$as_save_IFS
33141
33142   ;;
33143 esac
33144 fi
33145 PERL=$ac_cv_path_PERL
33146 if test -n "$PERL"; then
33147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
33148 $as_echo "$PERL" >&6; }
33149 else
33150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33151 $as_echo "no" >&6; }
33152 fi
33153
33154
33155   test -n "$PERL" && break
33156 done
33157         if test "$ac_cv_path_PERL"; then
33158             have_perl="$ac_cv_path_PERL"
33159         fi
33160     fi
33161 fi
33162
33163 if test "$with_perl" != 'yes' ; then
33164     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
33165 fi
33166
33167 PERL_SUPPORTS_DESTDIR='no'
33168
33169 with_perl_static='no'
33170 with_perl_dynamic='no'
33171 if test "$have_perl" != 'no'; then
33172     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
33173         with_perl_static='yes'
33174     fi
33175     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
33176         with_perl_dynamic='yes'
33177     fi
33178     # Is PERL's MakeMaker new enough to support DESTDIR?
33179
33180
33181
33182
33183     if test -n "$PERL"; then :
33184
33185         ax_perl_version="5.8.1"
33186
33187         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
33188 $as_echo_n "checking for perl version... " >&6; }
33189
33190         perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
33191
33192         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
33193 $as_echo "$perl_version" >&6; }
33194
33195         PERL_VERSION=$perl_version
33196
33197
33198
33199
33200
33201   # Used to indicate true or false condition
33202   ax_compare_version=false
33203
33204   # Convert the two version strings to be compared into a format that
33205   # allows a simple string comparison.  The end result is that a version
33206   # string of the form 1.12.5-r617 will be converted to the form
33207   # 0001001200050617.  In other words, each number is zero padded to four
33208   # digits, and non digits are removed.
33209
33210   ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33211                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33212                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33213                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33214                      -e 's/[^0-9]//g'`
33215
33216
33217   ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33218                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33219                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33220                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33221                      -e 's/[^0-9]//g'`
33222
33223
33224     ax_compare_version=`echo "x$ax_compare_version_A
33225 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
33226
33227
33228
33229     if test "$ax_compare_version" = "true" ; then
33230
33231             :
33232             PERL_SUPPORTS_DESTDIR='yes'
33233
33234     else
33235             :
33236             PERL_SUPPORTS_DESTDIR='no'
33237
33238   fi
33239
33240
33241 else
33242
33243         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
33244 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
33245         PERL_SUPPORTS_DESTDIR='no'
33246
33247 fi
33248
33249 fi
33250  if test "$have_perl" != 'no'; then
33251   WITH_PERL_TRUE=
33252   WITH_PERL_FALSE='#'
33253 else
33254   WITH_PERL_TRUE='#'
33255   WITH_PERL_FALSE=
33256 fi
33257
33258  if test $with_perl_static = 'yes'; then
33259   WITH_PERL_STATIC_TRUE=
33260   WITH_PERL_STATIC_FALSE='#'
33261 else
33262   WITH_PERL_STATIC_TRUE='#'
33263   WITH_PERL_STATIC_FALSE=
33264 fi
33265
33266  if test $with_perl_dynamic = 'yes'; then
33267   WITH_PERL_DYNAMIC_TRUE=
33268   WITH_PERL_DYNAMIC_FALSE='#'
33269 else
33270   WITH_PERL_DYNAMIC_TRUE='#'
33271   WITH_PERL_DYNAMIC_FALSE=
33272 fi
33273
33274
33275
33276 # Determine path to pick up MagickCore library from for use with building PerlMagick
33277 MAGICKCORE_PATH="${LIB_DIR}"
33278 if test $with_perl_static = 'yes'; then
33279     # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
33280     libtool_objdir=$objdir
33281
33282     # Linker search path to library, followed by -lMagickCore
33283     MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
33284 fi
33285
33286
33287 # Create a simple string containing format names for all delegate libraries
33288 DELEGATES=''
33289 if test "$have_autotrace"  = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
33290 if test "$have_bzlib"      = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
33291 if test "$have_djvu"       = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
33292 if test "$have_dps"        = 'yes'; then DELEGATES="$DELEGATES dps"; fi
33293 if test "$have_fftw"       = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
33294 if test "$have_fpx"        = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
33295 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
33296 if test "$have_freetype"   = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
33297 if test "$have_gslib"      = 'yes'; then DELEGATES="$DELEGATES gs"; fi
33298 if test "$have_gvc"        = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
33299 if test "$have_jbig"       = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
33300 if test "$have_jpeg"       = 'yes'; then
33301   DELEGATES="$DELEGATES jpeg";
33302   if test "$have_png"      = 'yes'; then DELEGATES="$DELEGATES jng"; fi
33303 fi
33304 if test "$have_jp2"        = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
33305 if test "$have_lcms2"      = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
33306 if test "$have_lcms"       = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
33307 if test "$have_lqr"        = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
33308 if test "$have_lzma"       = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
33309 if test "$have_ffmpeg"     = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
33310 if test "$have_openexr"    = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
33311 if test "$have_png"        = 'yes'; then DELEGATES="$DELEGATES png"; fi
33312 if test "$have_rsvg"       = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
33313 if test "$have_tiff"       = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
33314 if test "$have_x"          = 'yes'; then DELEGATES="$DELEGATES x11"; fi
33315 if test "$have_xml"        = 'yes'; then DELEGATES="$DELEGATES xml"; fi
33316 if test "$have_wmf"        = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
33317 if test "$have_zlib"       = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
33318
33319
33320
33321 #
33322 # Handle special compiler flags
33323 #
33324
33325 # Add '-p' if prof source profiling support enabled
33326 if test "$enable_prof" = 'yes'; then
33327     CFLAGS="-p $CFLAGS"
33328     CXXFLAGS="-p $CXXFLAGS"
33329     LDFLAGS="-p $LDFLAGS"
33330 fi
33331
33332 # Add '-pg' if gprof source profiling support enabled
33333 if test "$enable_gprof" = 'yes'; then
33334     CFLAGS="-pg $CFLAGS"
33335     CXXFLAGS="-pg $CXXFLAGS"
33336     LDFLAGS="-pg $LDFLAGS"
33337 fi
33338
33339 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
33340 # This is a gcc-specific feature
33341 if test "$enable_gcov" = 'yes'; then
33342     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
33343 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
33344 if ${ac_cv_lib_gcov__gcov_init+:} false; then :
33345   $as_echo_n "(cached) " >&6
33346 else
33347   ac_check_lib_save_LIBS=$LIBS
33348 LIBS="-lgcov  $LIBS"
33349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33350 /* end confdefs.h.  */
33351
33352 /* Override any GCC internal prototype to avoid an error.
33353    Use char because int might match the return type of a GCC
33354    builtin and then its argument prototype would still apply.  */
33355 #ifdef __cplusplus
33356 extern "C"
33357 #endif
33358 char _gcov_init ();
33359 int
33360 main ()
33361 {
33362 return _gcov_init ();
33363   ;
33364   return 0;
33365 }
33366 _ACEOF
33367 if ac_fn_c_try_link "$LINENO"; then :
33368   ac_cv_lib_gcov__gcov_init=yes
33369 else
33370   ac_cv_lib_gcov__gcov_init=no
33371 fi
33372 rm -f core conftest.err conftest.$ac_objext \
33373     conftest$ac_exeext conftest.$ac_ext
33374 LIBS=$ac_check_lib_save_LIBS
33375 fi
33376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
33377 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
33378 if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
33379   cat >>confdefs.h <<_ACEOF
33380 #define HAVE_LIBGCOV 1
33381 _ACEOF
33382
33383   LIBS="-lgcov $LIBS"
33384
33385 fi
33386
33387     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
33388 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
33389 if ${ac_cv_lib_gcov___gcov_init+:} false; then :
33390   $as_echo_n "(cached) " >&6
33391 else
33392   ac_check_lib_save_LIBS=$LIBS
33393 LIBS="-lgcov  $LIBS"
33394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33395 /* end confdefs.h.  */
33396
33397 /* Override any GCC internal prototype to avoid an error.
33398    Use char because int might match the return type of a GCC
33399    builtin and then its argument prototype would still apply.  */
33400 #ifdef __cplusplus
33401 extern "C"
33402 #endif
33403 char __gcov_init ();
33404 int
33405 main ()
33406 {
33407 return __gcov_init ();
33408   ;
33409   return 0;
33410 }
33411 _ACEOF
33412 if ac_fn_c_try_link "$LINENO"; then :
33413   ac_cv_lib_gcov___gcov_init=yes
33414 else
33415   ac_cv_lib_gcov___gcov_init=no
33416 fi
33417 rm -f core conftest.err conftest.$ac_objext \
33418     conftest$ac_exeext conftest.$ac_ext
33419 LIBS=$ac_check_lib_save_LIBS
33420 fi
33421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
33422 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
33423 if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
33424   cat >>confdefs.h <<_ACEOF
33425 #define HAVE_LIBGCOV 1
33426 _ACEOF
33427
33428   LIBS="-lgcov $LIBS"
33429
33430 fi
33431
33432     case "$target_os" in
33433         darwin*)
33434             OSX_GCOV_LDFLAG="-Wl,-single_module"
33435         ;;
33436         *)
33437             OSX_GCOV_LDFLAG=""
33438         ;;
33439     esac
33440
33441     CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS"
33442     CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS"
33443     LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
33444 fi
33445
33446 #
33447 # Build library dependency list for libMagickCore
33448 #
33449
33450 MAGICK_LIBLTDL='' # Libltdl for build
33451 MAGICK_API_LIBLTDL=''   # libltdl for dependent application (API) build
33452 MAGICK_LTDLDEPS=''      # extra libltdl dependencies
33453 if test "$with_ltdl" != 'no'
33454 then
33455   if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
33456     MAGICK_API_LIBLTDL='-lltdl'
33457   fi
33458   MAGICK_LIBLTDL=${LIBLTDL}
33459   MAGICK_LTDLDEPS=${LTDLDEPS}
33460 fi
33461
33462
33463
33464 if test "$with_modules" != 'no'; then
33465     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"
33466 else
33467     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 $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
33468 fi
33469
33470
33471 #
33472 # Remove extraneous spaces from output variables (asthetic)
33473 #
33474 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/  */ /g'`
33475 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/  */ /g'`
33476 X_LIBS=`echo $X_LIBS | sed -e 's/  */ /g'`
33477 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/  */ /g'`
33478
33479 CC=`echo $CC | sed -e 's/  */ /g'`
33480 CFLAGS=`echo $CFLAGS | sed -e 's/  */ /g'`
33481 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/  */ /g'`
33482 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/  */ /g'`
33483 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
33484 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/  */ /g'`
33485 LDFLAGS=`echo $LDFLAGS | sed -e 's/  */ /g'`
33486 TESTED_LIBS=`echo $LIBS | sed -e 's/  */ /g'`
33487 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/  */ /g'`
33488 #LIBS=`echo $LIBS | sed -e 's/  */ /g'`
33489
33490 # Pass only user-provided LIBS as "global" libraries
33491 LIBS=$USER_LIBS
33492
33493 #AC_SUBST(CPPFLAGS)
33494
33495 #AC_SUBST(LDFLAGS)
33496 #AC_SUBST(X_PRE_LIBS)
33497 #AC_SUBST(X_LIBS)
33498 #AC_SUBST(X_EXTRA_LIBS)
33499
33500 MAGICK_CFLAGS=$CFLAGS
33501 MAGICK_CXXFLAGS="$CXXFLAGS"
33502 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'`
33503 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'`
33504 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
33505 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
33506
33507
33508
33509
33510
33511
33512
33513
33514
33515 # Set configured scripts to executable.
33516 ac_config_commands="$ac_config_commands default"
33517
33518 ac_config_commands="$ac_config_commands MagickCore-config.in"
33519
33520 ac_config_commands="$ac_config_commands Magick-config.in"
33521
33522 ac_config_commands="$ac_config_commands MagickWand-config.in"
33523
33524 ac_config_commands="$ac_config_commands Wand-config.in"
33525
33526 ac_config_commands="$ac_config_commands Magick++-config.in"
33527
33528 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
33529
33530
33531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33532 $as_echo "-------------------------------------------------------------" >&6; }
33533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
33534 $as_echo "Update ImageMagick configuration" >&6; }
33535 cat >confcache <<\_ACEOF
33536 # This file is a shell script that caches the results of configure
33537 # tests run on this system so they can be shared between configure
33538 # scripts and configure runs, see configure's option --config-cache.
33539 # It is not useful on other systems.  If it contains results you don't
33540 # want to keep, you may remove or edit it.
33541 #
33542 # config.status only pays attention to the cache file if you give it
33543 # the --recheck option to rerun configure.
33544 #
33545 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33546 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33547 # following values.
33548
33549 _ACEOF
33550
33551 # The following way of writing the cache mishandles newlines in values,
33552 # but we know of no workaround that is simple, portable, and efficient.
33553 # So, we kill variables containing newlines.
33554 # Ultrix sh set writes to stderr and can't be redirected directly,
33555 # and sets the high bit in the cache file unless we assign to the vars.
33556 (
33557   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33558     eval ac_val=\$$ac_var
33559     case $ac_val in #(
33560     *${as_nl}*)
33561       case $ac_var in #(
33562       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33563 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33564       esac
33565       case $ac_var in #(
33566       _ | IFS | as_nl) ;; #(
33567       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
33568       *) { eval $ac_var=; unset $ac_var;} ;;
33569       esac ;;
33570     esac
33571   done
33572
33573   (set) 2>&1 |
33574     case $as_nl`(ac_space=' '; set) 2>&1` in #(
33575     *${as_nl}ac_space=\ *)
33576       # `set' does not quote correctly, so add quotes: double-quote
33577       # substitution turns \\\\ into \\, and sed turns \\ into \.
33578       sed -n \
33579         "s/'/'\\\\''/g;
33580           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33581       ;; #(
33582     *)
33583       # `set' quotes correctly as required by POSIX, so do not add quotes.
33584       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33585       ;;
33586     esac |
33587     sort
33588 ) |
33589   sed '
33590      /^ac_cv_env_/b end
33591      t clear
33592      :clear
33593      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33594      t end
33595      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33596      :end' >>confcache
33597 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33598   if test -w "$cache_file"; then
33599     if test "x$cache_file" != "x/dev/null"; then
33600       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33601 $as_echo "$as_me: updating cache $cache_file" >&6;}
33602       if test ! -f "$cache_file" || test -h "$cache_file"; then
33603         cat confcache >"$cache_file"
33604       else
33605         case $cache_file in #(
33606         */* | ?:*)
33607           mv -f confcache "$cache_file"$$ &&
33608           mv -f "$cache_file"$$ "$cache_file" ;; #(
33609         *)
33610           mv -f confcache "$cache_file" ;;
33611         esac
33612       fi
33613     fi
33614   else
33615     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33616 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33617   fi
33618 fi
33619 rm -f confcache
33620
33621 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33622 # Let make expand exec_prefix.
33623 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33624
33625 DEFS=-DHAVE_CONFIG_H
33626
33627 ac_libobjs=
33628 ac_ltlibobjs=
33629 U=
33630 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33631   # 1. Remove the extension, and $U if already installed.
33632   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33633   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33634   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33635   #    will be set to the directory where LIBOBJS objects are built.
33636   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33637   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33638 done
33639 LIBOBJS=$ac_libobjs
33640
33641 LTLIBOBJS=$ac_ltlibobjs
33642
33643
33644  if test -n "$EXEEXT"; then
33645   am__EXEEXT_TRUE=
33646   am__EXEEXT_FALSE='#'
33647 else
33648   am__EXEEXT_TRUE='#'
33649   am__EXEEXT_FALSE=
33650 fi
33651
33652 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33653   as_fn_error $? "conditional \"AMDEP\" was never defined.
33654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33655 fi
33656 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33657   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
33658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33659 fi
33660 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33661   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
33662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33663 fi
33664 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
33665   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
33666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33667 fi
33668 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
33669   as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
33670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33671 fi
33672 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
33673   as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
33674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33675 fi
33676 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
33677   as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
33678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33679 fi
33680 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
33681   as_fn_error $? "conditional \"USING_CL\" was never defined.
33682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33683 fi
33684 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33685   as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
33686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33687 fi
33688 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33689   as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
33690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33691 fi
33692 LT_CONFIG_H=config/config.h
33693
33694     _ltdl_libobjs=
33695     _ltdl_ltlibobjs=
33696     if test -n "$_LT_LIBOBJS"; then
33697       # Remove the extension.
33698       _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
33699       for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
33700         _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
33701         _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
33702       done
33703     fi
33704     ltdl_LIBOBJS=$_ltdl_libobjs
33705
33706     ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
33707
33708
33709 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
33710   as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
33711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33712 fi
33713 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
33714   as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
33715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33716 fi
33717 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
33718   as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
33719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33720 fi
33721 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33722   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
33723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33724 fi
33725
33726 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
33727   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
33728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33729 fi
33730 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
33731   as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
33732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33733 fi
33734 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
33735   as_fn_error $? "conditional \"HasUMEM\" was never defined.
33736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33737 fi
33738 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
33739   as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
33740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33741 fi
33742 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
33743   as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
33744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33745 fi
33746 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
33747   as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
33748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33749 fi
33750 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
33751   as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
33752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33753 fi
33754 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
33755   as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
33756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33757 fi
33758 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
33759   as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
33760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33761 fi
33762 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
33763   as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
33764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33765 fi
33766 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
33767   as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
33768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33769 fi
33770 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
33771   as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
33772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33773 fi
33774 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
33775   as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
33776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33777 fi
33778 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
33779   as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
33780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33781 fi
33782 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
33783   as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
33784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33785 fi
33786 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
33787   as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
33788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33789 fi
33790 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
33791   as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
33792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33793 fi
33794 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
33795   as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
33796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33797 fi
33798 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
33799   as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
33800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33801 fi
33802 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
33803   as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
33804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33805 fi
33806 if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
33807   as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
33808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33809 fi
33810 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
33811   as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
33812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33813 fi
33814 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
33815   as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
33816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33817 fi
33818 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
33819   as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
33820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33821 fi
33822 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
33823   as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
33824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33825 fi
33826 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
33827   as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
33828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33829 fi
33830 if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
33831   as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
33832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33833 fi
33834 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
33835   as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
33836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33837 fi
33838 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
33839   as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
33840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33841 fi
33842 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
33843   as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
33844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33845 fi
33846 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
33847   as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
33848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33849 fi
33850 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
33851   as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
33852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33853 fi
33854 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
33855   as_fn_error $? "conditional \"WITH_PERL\" was never defined.
33856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33857 fi
33858 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
33859   as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
33860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33861 fi
33862 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
33863   as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
33864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33865 fi
33866
33867 : "${CONFIG_STATUS=./config.status}"
33868 ac_write_fail=0
33869 ac_clean_files_save=$ac_clean_files
33870 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33871 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33872 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33873 as_write_fail=0
33874 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33875 #! $SHELL
33876 # Generated by $as_me.
33877 # Run this file to recreate the current configuration.
33878 # Compiler output produced by configure, useful for debugging
33879 # configure, is in config.log if it exists.
33880
33881 debug=false
33882 ac_cs_recheck=false
33883 ac_cs_silent=false
33884
33885 SHELL=\${CONFIG_SHELL-$SHELL}
33886 export SHELL
33887 _ASEOF
33888 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33889 ## -------------------- ##
33890 ## M4sh Initialization. ##
33891 ## -------------------- ##
33892
33893 # Be more Bourne compatible
33894 DUALCASE=1; export DUALCASE # for MKS sh
33895 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33896   emulate sh
33897   NULLCMD=:
33898   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33899   # is contrary to our usage.  Disable this feature.
33900   alias -g '${1+"$@"}'='"$@"'
33901   setopt NO_GLOB_SUBST
33902 else
33903   case `(set -o) 2>/dev/null` in #(
33904   *posix*) :
33905     set -o posix ;; #(
33906   *) :
33907      ;;
33908 esac
33909 fi
33910
33911
33912 as_nl='
33913 '
33914 export as_nl
33915 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33916 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33917 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33918 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33919 # Prefer a ksh shell builtin over an external printf program on Solaris,
33920 # but without wasting forks for bash or zsh.
33921 if test -z "$BASH_VERSION$ZSH_VERSION" \
33922     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33923   as_echo='print -r --'
33924   as_echo_n='print -rn --'
33925 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33926   as_echo='printf %s\n'
33927   as_echo_n='printf %s'
33928 else
33929   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33930     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33931     as_echo_n='/usr/ucb/echo -n'
33932   else
33933     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33934     as_echo_n_body='eval
33935       arg=$1;
33936       case $arg in #(
33937       *"$as_nl"*)
33938         expr "X$arg" : "X\\(.*\\)$as_nl";
33939         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33940       esac;
33941       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33942     '
33943     export as_echo_n_body
33944     as_echo_n='sh -c $as_echo_n_body as_echo'
33945   fi
33946   export as_echo_body
33947   as_echo='sh -c $as_echo_body as_echo'
33948 fi
33949
33950 # The user is always right.
33951 if test "${PATH_SEPARATOR+set}" != set; then
33952   PATH_SEPARATOR=:
33953   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33954     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33955       PATH_SEPARATOR=';'
33956   }
33957 fi
33958
33959
33960 # IFS
33961 # We need space, tab and new line, in precisely that order.  Quoting is
33962 # there to prevent editors from complaining about space-tab.
33963 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33964 # splitting by setting IFS to empty value.)
33965 IFS=" ""        $as_nl"
33966
33967 # Find who we are.  Look in the path if we contain no directory separator.
33968 as_myself=
33969 case $0 in #((
33970   *[\\/]* ) as_myself=$0 ;;
33971   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33972 for as_dir in $PATH
33973 do
33974   IFS=$as_save_IFS
33975   test -z "$as_dir" && as_dir=.
33976     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33977   done
33978 IFS=$as_save_IFS
33979
33980      ;;
33981 esac
33982 # We did not find ourselves, most probably we were run as `sh COMMAND'
33983 # in which case we are not to be found in the path.
33984 if test "x$as_myself" = x; then
33985   as_myself=$0
33986 fi
33987 if test ! -f "$as_myself"; then
33988   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33989   exit 1
33990 fi
33991
33992 # Unset variables that we do not need and which cause bugs (e.g. in
33993 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
33994 # suppresses any "Segmentation fault" message there.  '((' could
33995 # trigger a bug in pdksh 5.2.14.
33996 for as_var in BASH_ENV ENV MAIL MAILPATH
33997 do eval test x\${$as_var+set} = xset \
33998   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33999 done
34000 PS1='$ '
34001 PS2='> '
34002 PS4='+ '
34003
34004 # NLS nuisances.
34005 LC_ALL=C
34006 export LC_ALL
34007 LANGUAGE=C
34008 export LANGUAGE
34009
34010 # CDPATH.
34011 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34012
34013
34014 # as_fn_error STATUS ERROR [LINENO LOG_FD]
34015 # ----------------------------------------
34016 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
34017 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
34018 # script with STATUS, using 1 if that was 0.
34019 as_fn_error ()
34020 {
34021   as_status=$1; test $as_status -eq 0 && as_status=1
34022   if test "$4"; then
34023     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
34024     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
34025   fi
34026   $as_echo "$as_me: error: $2" >&2
34027   as_fn_exit $as_status
34028 } # as_fn_error
34029
34030
34031 # as_fn_set_status STATUS
34032 # -----------------------
34033 # Set $? to STATUS, without forking.
34034 as_fn_set_status ()
34035 {
34036   return $1
34037 } # as_fn_set_status
34038
34039 # as_fn_exit STATUS
34040 # -----------------
34041 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34042 as_fn_exit ()
34043 {
34044   set +e
34045   as_fn_set_status $1
34046   exit $1
34047 } # as_fn_exit
34048
34049 # as_fn_unset VAR
34050 # ---------------
34051 # Portably unset VAR.
34052 as_fn_unset ()
34053 {
34054   { eval $1=; unset $1;}
34055 }
34056 as_unset=as_fn_unset
34057 # as_fn_append VAR VALUE
34058 # ----------------------
34059 # Append the text in VALUE to the end of the definition contained in VAR. Take
34060 # advantage of any shell optimizations that allow amortized linear growth over
34061 # repeated appends, instead of the typical quadratic growth present in naive
34062 # implementations.
34063 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34064   eval 'as_fn_append ()
34065   {
34066     eval $1+=\$2
34067   }'
34068 else
34069   as_fn_append ()
34070   {
34071     eval $1=\$$1\$2
34072   }
34073 fi # as_fn_append
34074
34075 # as_fn_arith ARG...
34076 # ------------------
34077 # Perform arithmetic evaluation on the ARGs, and store the result in the
34078 # global $as_val. Take advantage of shells that can avoid forks. The arguments
34079 # must be portable across $(()) and expr.
34080 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
34081   eval 'as_fn_arith ()
34082   {
34083     as_val=$(( $* ))
34084   }'
34085 else
34086   as_fn_arith ()
34087   {
34088     as_val=`expr "$@" || test $? -eq 1`
34089   }
34090 fi # as_fn_arith
34091
34092
34093 if expr a : '\(a\)' >/dev/null 2>&1 &&
34094    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34095   as_expr=expr
34096 else
34097   as_expr=false
34098 fi
34099
34100 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34101   as_basename=basename
34102 else
34103   as_basename=false
34104 fi
34105
34106 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34107   as_dirname=dirname
34108 else
34109   as_dirname=false
34110 fi
34111
34112 as_me=`$as_basename -- "$0" ||
34113 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34114          X"$0" : 'X\(//\)$' \| \
34115          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34116 $as_echo X/"$0" |
34117     sed '/^.*\/\([^/][^/]*\)\/*$/{
34118             s//\1/
34119             q
34120           }
34121           /^X\/\(\/\/\)$/{
34122             s//\1/
34123             q
34124           }
34125           /^X\/\(\/\).*/{
34126             s//\1/
34127             q
34128           }
34129           s/.*/./; q'`
34130
34131 # Avoid depending upon Character Ranges.
34132 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34133 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34134 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34135 as_cr_digits='0123456789'
34136 as_cr_alnum=$as_cr_Letters$as_cr_digits
34137
34138 ECHO_C= ECHO_N= ECHO_T=
34139 case `echo -n x` in #(((((
34140 -n*)
34141   case `echo 'xy\c'` in
34142   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34143   xy)  ECHO_C='\c';;
34144   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
34145        ECHO_T=' ';;
34146   esac;;
34147 *)
34148   ECHO_N='-n';;
34149 esac
34150
34151 rm -f conf$$ conf$$.exe conf$$.file
34152 if test -d conf$$.dir; then
34153   rm -f conf$$.dir/conf$$.file
34154 else
34155   rm -f conf$$.dir
34156   mkdir conf$$.dir 2>/dev/null
34157 fi
34158 if (echo >conf$$.file) 2>/dev/null; then
34159   if ln -s conf$$.file conf$$ 2>/dev/null; then
34160     as_ln_s='ln -s'
34161     # ... but there are two gotchas:
34162     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34163     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34164     # In both cases, we have to default to `cp -p'.
34165     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34166       as_ln_s='cp -p'
34167   elif ln conf$$.file conf$$ 2>/dev/null; then
34168     as_ln_s=ln
34169   else
34170     as_ln_s='cp -p'
34171   fi
34172 else
34173   as_ln_s='cp -p'
34174 fi
34175 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34176 rmdir conf$$.dir 2>/dev/null
34177
34178
34179 # as_fn_mkdir_p
34180 # -------------
34181 # Create "$as_dir" as a directory, including parents if necessary.
34182 as_fn_mkdir_p ()
34183 {
34184
34185   case $as_dir in #(
34186   -*) as_dir=./$as_dir;;
34187   esac
34188   test -d "$as_dir" || eval $as_mkdir_p || {
34189     as_dirs=
34190     while :; do
34191       case $as_dir in #(
34192       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34193       *) as_qdir=$as_dir;;
34194       esac
34195       as_dirs="'$as_qdir' $as_dirs"
34196       as_dir=`$as_dirname -- "$as_dir" ||
34197 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34198          X"$as_dir" : 'X\(//\)[^/]' \| \
34199          X"$as_dir" : 'X\(//\)$' \| \
34200          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34201 $as_echo X"$as_dir" |
34202     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34203             s//\1/
34204             q
34205           }
34206           /^X\(\/\/\)[^/].*/{
34207             s//\1/
34208             q
34209           }
34210           /^X\(\/\/\)$/{
34211             s//\1/
34212             q
34213           }
34214           /^X\(\/\).*/{
34215             s//\1/
34216             q
34217           }
34218           s/.*/./; q'`
34219       test -d "$as_dir" && break
34220     done
34221     test -z "$as_dirs" || eval "mkdir $as_dirs"
34222   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
34223
34224
34225 } # as_fn_mkdir_p
34226 if mkdir -p . 2>/dev/null; then
34227   as_mkdir_p='mkdir -p "$as_dir"'
34228 else
34229   test -d ./-p && rmdir ./-p
34230   as_mkdir_p=false
34231 fi
34232
34233 if test -x / >/dev/null 2>&1; then
34234   as_test_x='test -x'
34235 else
34236   if ls -dL / >/dev/null 2>&1; then
34237     as_ls_L_option=L
34238   else
34239     as_ls_L_option=
34240   fi
34241   as_test_x='
34242     eval sh -c '\''
34243       if test -d "$1"; then
34244         test -d "$1/.";
34245       else
34246         case $1 in #(
34247         -*)set "./$1";;
34248         esac;
34249         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
34250         ???[sx]*):;;*)false;;esac;fi
34251     '\'' sh
34252   '
34253 fi
34254 as_executable_p=$as_test_x
34255
34256 # Sed expression to map a string onto a valid CPP name.
34257 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34258
34259 # Sed expression to map a string onto a valid variable name.
34260 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34261
34262
34263 exec 6>&1
34264 ## ----------------------------------- ##
34265 ## Main body of $CONFIG_STATUS script. ##
34266 ## ----------------------------------- ##
34267 _ASEOF
34268 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
34269
34270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34271 # Save the log message, to keep $0 and so on meaningful, and to
34272 # report actual input values of CONFIG_FILES etc. instead of their
34273 # values after options handling.
34274 ac_log="
34275 This file was extended by ImageMagick $as_me 6.6.9, which was
34276 generated by GNU Autoconf 2.68.  Invocation command line was
34277
34278   CONFIG_FILES    = $CONFIG_FILES
34279   CONFIG_HEADERS  = $CONFIG_HEADERS
34280   CONFIG_LINKS    = $CONFIG_LINKS
34281   CONFIG_COMMANDS = $CONFIG_COMMANDS
34282   $ $0 $@
34283
34284 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34285 "
34286
34287 _ACEOF
34288
34289 case $ac_config_files in *"
34290 "*) set x $ac_config_files; shift; ac_config_files=$*;;
34291 esac
34292
34293 case $ac_config_headers in *"
34294 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34295 esac
34296
34297
34298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34299 # Files that config.status was made for.
34300 config_files="$ac_config_files"
34301 config_headers="$ac_config_headers"
34302 config_commands="$ac_config_commands"
34303
34304 _ACEOF
34305
34306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34307 ac_cs_usage="\
34308 \`$as_me' instantiates files and other configuration actions
34309 from templates according to the current configuration.  Unless the files
34310 and actions are specified as TAGs, all are instantiated by default.
34311
34312 Usage: $0 [OPTION]... [TAG]...
34313
34314   -h, --help       print this help, then exit
34315   -V, --version    print version number and configuration settings, then exit
34316       --config     print configuration, then exit
34317   -q, --quiet, --silent
34318                    do not print progress messages
34319   -d, --debug      don't remove temporary files
34320       --recheck    update $as_me by reconfiguring in the same conditions
34321       --file=FILE[:TEMPLATE]
34322                    instantiate the configuration file FILE
34323       --header=FILE[:TEMPLATE]
34324                    instantiate the configuration header FILE
34325
34326 Configuration files:
34327 $config_files
34328
34329 Configuration headers:
34330 $config_headers
34331
34332 Configuration commands:
34333 $config_commands
34334
34335 Report bugs to <http://www.imagemagick.org>."
34336
34337 _ACEOF
34338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34339 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
34340 ac_cs_version="\\
34341 ImageMagick config.status 6.6.9
34342 configured by $0, generated by GNU Autoconf 2.68,
34343   with options \\"\$ac_cs_config\\"
34344
34345 Copyright (C) 2010 Free Software Foundation, Inc.
34346 This config.status script is free software; the Free Software Foundation
34347 gives unlimited permission to copy, distribute and modify it."
34348
34349 ac_pwd='$ac_pwd'
34350 srcdir='$srcdir'
34351 INSTALL='$INSTALL'
34352 MKDIR_P='$MKDIR_P'
34353 AWK='$AWK'
34354 test -n "\$AWK" || AWK=awk
34355 _ACEOF
34356
34357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34358 # The default lists apply if the user does not specify any file.
34359 ac_need_defaults=:
34360 while test $# != 0
34361 do
34362   case $1 in
34363   --*=?*)
34364     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34365     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34366     ac_shift=:
34367     ;;
34368   --*=)
34369     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34370     ac_optarg=
34371     ac_shift=:
34372     ;;
34373   *)
34374     ac_option=$1
34375     ac_optarg=$2
34376     ac_shift=shift
34377     ;;
34378   esac
34379
34380   case $ac_option in
34381   # Handling of the options.
34382   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34383     ac_cs_recheck=: ;;
34384   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34385     $as_echo "$ac_cs_version"; exit ;;
34386   --config | --confi | --conf | --con | --co | --c )
34387     $as_echo "$ac_cs_config"; exit ;;
34388   --debug | --debu | --deb | --de | --d | -d )
34389     debug=: ;;
34390   --file | --fil | --fi | --f )
34391     $ac_shift
34392     case $ac_optarg in
34393     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34394     '') as_fn_error $? "missing file argument" ;;
34395     esac
34396     as_fn_append CONFIG_FILES " '$ac_optarg'"
34397     ac_need_defaults=false;;
34398   --header | --heade | --head | --hea )
34399     $ac_shift
34400     case $ac_optarg in
34401     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34402     esac
34403     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
34404     ac_need_defaults=false;;
34405   --he | --h)
34406     # Conflict between --help and --header
34407     as_fn_error $? "ambiguous option: \`$1'
34408 Try \`$0 --help' for more information.";;
34409   --help | --hel | -h )
34410     $as_echo "$ac_cs_usage"; exit ;;
34411   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34412   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34413     ac_cs_silent=: ;;
34414
34415   # This is an error.
34416   -*) as_fn_error $? "unrecognized option: \`$1'
34417 Try \`$0 --help' for more information." ;;
34418
34419   *) as_fn_append ac_config_targets " $1"
34420      ac_need_defaults=false ;;
34421
34422   esac
34423   shift
34424 done
34425
34426 ac_configure_extra_args=
34427
34428 if $ac_cs_silent; then
34429   exec 6>/dev/null
34430   ac_configure_extra_args="$ac_configure_extra_args --silent"
34431 fi
34432
34433 _ACEOF
34434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34435 if \$ac_cs_recheck; then
34436   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34437   shift
34438   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34439   CONFIG_SHELL='$SHELL'
34440   export CONFIG_SHELL
34441   exec "\$@"
34442 fi
34443
34444 _ACEOF
34445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34446 exec 5>>config.log
34447 {
34448   echo
34449   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34450 ## Running $as_me. ##
34451 _ASBOX
34452   $as_echo "$ac_log"
34453 } >&5
34454
34455 _ACEOF
34456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34457 #
34458 # INIT-COMMANDS
34459 #
34460 PACKAGE="$PACKAGE"
34461 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34462
34463
34464 # The HP-UX ksh and POSIX shell print the target directory to stdout
34465 # if CDPATH is set.
34466 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34467
34468 sed_quote_subst='$sed_quote_subst'
34469 double_quote_subst='$double_quote_subst'
34470 delay_variable_subst='$delay_variable_subst'
34471 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34472 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34473 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34474 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34475 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34476 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34477 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34478 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34479 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34480 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34481 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
34482 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34483 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34484 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34485 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34486 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34487 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34488 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34489 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34490 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34491 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34492 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34493 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34494 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34495 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34496 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34497 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34498 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34499 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34500 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34501 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
34502 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34503 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
34504 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34505 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34506 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34507 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
34508 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34509 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34510 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
34511 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34512 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
34513 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
34514 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34515 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34516 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34517 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34518 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34519 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34520 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34521 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34522 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34523 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34524 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34525 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34526 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34527 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"`'
34528 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34529 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
34530 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34531 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34532 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
34533 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
34534 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
34535 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34536 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34537 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
34538 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
34539 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34540 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34541 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34542 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34543 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34544 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34545 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34546 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34547 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34548 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34549 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34550 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34551 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34552 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34553 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34554 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34555 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34556 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34557 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34558 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34559 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34560 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34561 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34562 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
34563 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34564 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34565 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34566 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34567 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34568 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34569 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34570 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
34571 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34572 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34573 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34574 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34575 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
34576 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
34577 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34578 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34579 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34580 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34581 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34582 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34583 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34584 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34585 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34586 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34587 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34588 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34589 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34590 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34591 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34592 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34593 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34594 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34595 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
34596 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34597 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34598 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34599 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34600 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34601 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34602 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
34603 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
34604 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
34605 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
34606 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
34607 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
34608 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
34609 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
34610 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34611 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34612 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
34613 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
34614 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
34615 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
34616 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
34617 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
34618 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
34619 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
34620 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
34621 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34622 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34623 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
34624 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34625 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34626 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34627 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34628 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34629 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34630 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
34631 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34632 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34633 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34634 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
34635 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
34636 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
34637 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
34638 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
34639 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
34640 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
34641 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
34642 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
34643 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
34644 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34645 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34646 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34647 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34648 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34649 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
34650 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
34651 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
34652 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34653 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34654 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
34655 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
34656 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
34657
34658 LTCC='$LTCC'
34659 LTCFLAGS='$LTCFLAGS'
34660 compiler='$compiler_DEFAULT'
34661
34662 # A function that is used when there is no print builtin or printf.
34663 func_fallback_echo ()
34664 {
34665   eval 'cat <<_LTECHO_EOF
34666 \$1
34667 _LTECHO_EOF'
34668 }
34669
34670 # Quote evaled strings.
34671 for var in SED \
34672 GREP \
34673 EGREP \
34674 FGREP \
34675 SHELL \
34676 ECHO \
34677 LD \
34678 AS \
34679 DLLTOOL \
34680 OBJDUMP \
34681 NM \
34682 LN_S \
34683 lt_SP2NL \
34684 lt_NL2SP \
34685 reload_flag \
34686 deplibs_check_method \
34687 file_magic_cmd \
34688 file_magic_glob \
34689 want_nocaseglob \
34690 sharedlib_from_linklib_cmd \
34691 AR \
34692 AR_FLAGS \
34693 archiver_list_spec \
34694 STRIP \
34695 RANLIB \
34696 CC \
34697 CFLAGS \
34698 compiler \
34699 lt_cv_sys_global_symbol_pipe \
34700 lt_cv_sys_global_symbol_to_cdecl \
34701 lt_cv_sys_global_symbol_to_c_name_address \
34702 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34703 nm_file_list_spec \
34704 lt_prog_compiler_no_builtin_flag \
34705 lt_prog_compiler_pic \
34706 lt_prog_compiler_wl \
34707 lt_prog_compiler_static \
34708 lt_cv_prog_compiler_c_o \
34709 need_locks \
34710 MANIFEST_TOOL \
34711 DSYMUTIL \
34712 NMEDIT \
34713 LIPO \
34714 OTOOL \
34715 OTOOL64 \
34716 shrext_cmds \
34717 export_dynamic_flag_spec \
34718 whole_archive_flag_spec \
34719 compiler_needs_object \
34720 with_gnu_ld \
34721 allow_undefined_flag \
34722 no_undefined_flag \
34723 hardcode_libdir_flag_spec \
34724 hardcode_libdir_flag_spec_ld \
34725 hardcode_libdir_separator \
34726 exclude_expsyms \
34727 include_expsyms \
34728 file_list_spec \
34729 variables_saved_for_relink \
34730 libname_spec \
34731 library_names_spec \
34732 soname_spec \
34733 install_override_mode \
34734 finish_eval \
34735 old_striplib \
34736 striplib \
34737 compiler_lib_search_dirs \
34738 predep_objects \
34739 postdep_objects \
34740 predeps \
34741 postdeps \
34742 compiler_lib_search_path \
34743 LD_CXX \
34744 reload_flag_CXX \
34745 compiler_CXX \
34746 lt_prog_compiler_no_builtin_flag_CXX \
34747 lt_prog_compiler_pic_CXX \
34748 lt_prog_compiler_wl_CXX \
34749 lt_prog_compiler_static_CXX \
34750 lt_cv_prog_compiler_c_o_CXX \
34751 export_dynamic_flag_spec_CXX \
34752 whole_archive_flag_spec_CXX \
34753 compiler_needs_object_CXX \
34754 with_gnu_ld_CXX \
34755 allow_undefined_flag_CXX \
34756 no_undefined_flag_CXX \
34757 hardcode_libdir_flag_spec_CXX \
34758 hardcode_libdir_flag_spec_ld_CXX \
34759 hardcode_libdir_separator_CXX \
34760 exclude_expsyms_CXX \
34761 include_expsyms_CXX \
34762 file_list_spec_CXX \
34763 compiler_lib_search_dirs_CXX \
34764 predep_objects_CXX \
34765 postdep_objects_CXX \
34766 predeps_CXX \
34767 postdeps_CXX \
34768 compiler_lib_search_path_CXX; do
34769     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34770     *[\\\\\\\`\\"\\\$]*)
34771       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
34772       ;;
34773     *)
34774       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34775       ;;
34776     esac
34777 done
34778
34779 # Double-quote double-evaled strings.
34780 for var in reload_cmds \
34781 old_postinstall_cmds \
34782 old_postuninstall_cmds \
34783 old_archive_cmds \
34784 extract_expsyms_cmds \
34785 old_archive_from_new_cmds \
34786 old_archive_from_expsyms_cmds \
34787 archive_cmds \
34788 archive_expsym_cmds \
34789 module_cmds \
34790 module_expsym_cmds \
34791 export_symbols_cmds \
34792 prelink_cmds \
34793 postlink_cmds \
34794 postinstall_cmds \
34795 postuninstall_cmds \
34796 finish_cmds \
34797 sys_lib_search_path_spec \
34798 sys_lib_dlsearch_path_spec \
34799 reload_cmds_CXX \
34800 old_archive_cmds_CXX \
34801 old_archive_from_new_cmds_CXX \
34802 old_archive_from_expsyms_cmds_CXX \
34803 archive_cmds_CXX \
34804 archive_expsym_cmds_CXX \
34805 module_cmds_CXX \
34806 module_expsym_cmds_CXX \
34807 export_symbols_cmds_CXX \
34808 prelink_cmds_CXX \
34809 postlink_cmds_CXX; do
34810     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34811     *[\\\\\\\`\\"\\\$]*)
34812       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
34813       ;;
34814     *)
34815       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34816       ;;
34817     esac
34818 done
34819
34820 ac_aux_dir='$ac_aux_dir'
34821 xsi_shell='$xsi_shell'
34822 lt_shell_append='$lt_shell_append'
34823
34824 # See if we are running on zsh, and set the options which allow our
34825 # commands through without removal of \ escapes INIT.
34826 if test -n "\${ZSH_VERSION+set}" ; then
34827    setopt NO_GLOB_SUBST
34828 fi
34829
34830
34831     PACKAGE='$PACKAGE'
34832     VERSION='$VERSION'
34833     TIMESTAMP='$TIMESTAMP'
34834     RM='$RM'
34835     ofile='$ofile'
34836
34837
34838
34839
34840
34841
34842 _ACEOF
34843
34844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34845
34846 # Handling of arguments.
34847 for ac_config_target in $ac_config_targets
34848 do
34849   case $ac_config_target in
34850     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
34851     "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
34852     "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
34853     "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
34854     "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
34855     "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
34856     "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
34857     "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
34858     "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
34859     "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
34860     "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
34861     "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
34862     "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
34863     "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
34864     "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
34865     "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
34866     "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
34867     "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
34868     "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
34869     "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
34870     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34871     "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
34872     "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
34873     "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
34874     "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
34875     "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
34876     "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
34877     "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
34878     "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
34879     "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34880     "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34881     "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34882     "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34883     "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34884     "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34885     "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34886     "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34887     "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34888     "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34889     "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34890     "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
34891     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34892     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34893     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34894     "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34895     "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34896     "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34897     "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34898     "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34899     "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34900
34901   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34902   esac
34903 done
34904
34905
34906 # If the user did not use the arguments to specify the items to instantiate,
34907 # then the envvar interface is used.  Set only those that are not.
34908 # We use the long form for the default assignment because of an extremely
34909 # bizarre bug on SunOS 4.1.3.
34910 if $ac_need_defaults; then
34911   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34912   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34913   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34914 fi
34915
34916 # Have a temporary directory for convenience.  Make it in the build tree
34917 # simply because there is no reason against having it here, and in addition,
34918 # creating and moving files from /tmp can sometimes cause problems.
34919 # Hook for its removal unless debugging.
34920 # Note that there is a small window in which the directory will not be cleaned:
34921 # after its creation but before its name has been assigned to `$tmp'.
34922 $debug ||
34923 {
34924   tmp= ac_tmp=
34925   trap 'exit_status=$?
34926   : "${ac_tmp:=$tmp}"
34927   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34928 ' 0
34929   trap 'as_fn_exit 1' 1 2 13 15
34930 }
34931 # Create a (secure) tmp directory for tmp files.
34932
34933 {
34934   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34935   test -d "$tmp"
34936 }  ||
34937 {
34938   tmp=./conf$$-$RANDOM
34939   (umask 077 && mkdir "$tmp")
34940 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34941 ac_tmp=$tmp
34942
34943 # Set up the scripts for CONFIG_FILES section.
34944 # No need to generate them if there are no CONFIG_FILES.
34945 # This happens for instance with `./config.status config.h'.
34946 if test -n "$CONFIG_FILES"; then
34947
34948
34949 ac_cr=`echo X | tr X '\015'`
34950 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34951 # But we know of no other shell where ac_cr would be empty at this
34952 # point, so we can use a bashism as a fallback.
34953 if test "x$ac_cr" = x; then
34954   eval ac_cr=\$\'\\r\'
34955 fi
34956 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34957 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34958   ac_cs_awk_cr='\\r'
34959 else
34960   ac_cs_awk_cr=$ac_cr
34961 fi
34962
34963 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34964 _ACEOF
34965
34966
34967 {
34968   echo "cat >conf$$subs.awk <<_ACEOF" &&
34969   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34970   echo "_ACEOF"
34971 } >conf$$subs.sh ||
34972   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34973 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34974 ac_delim='%!_!# '
34975 for ac_last_try in false false false false false :; do
34976   . ./conf$$subs.sh ||
34977     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34978
34979   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34980   if test $ac_delim_n = $ac_delim_num; then
34981     break
34982   elif $ac_last_try; then
34983     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34984   else
34985     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34986   fi
34987 done
34988 rm -f conf$$subs.sh
34989
34990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34991 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
34992 _ACEOF
34993 sed -n '
34994 h
34995 s/^/S["/; s/!.*/"]=/
34996 p
34997 g
34998 s/^[^!]*!//
34999 :repl
35000 t repl
35001 s/'"$ac_delim"'$//
35002 t delim
35003 :nl
35004 h
35005 s/\(.\{148\}\)..*/\1/
35006 t more1
35007 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35008 p
35009 n
35010 b repl
35011 :more1
35012 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35013 p
35014 g
35015 s/.\{148\}//
35016 t nl
35017 :delim
35018 h
35019 s/\(.\{148\}\)..*/\1/
35020 t more2
35021 s/["\\]/\\&/g; s/^/"/; s/$/"/
35022 p
35023 b
35024 :more2
35025 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35026 p
35027 g
35028 s/.\{148\}//
35029 t delim
35030 ' <conf$$subs.awk | sed '
35031 /^[^""]/{
35032   N
35033   s/\n//
35034 }
35035 ' >>$CONFIG_STATUS || ac_write_fail=1
35036 rm -f conf$$subs.awk
35037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35038 _ACAWK
35039 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
35040   for (key in S) S_is_set[key] = 1
35041   FS = "\a"
35042
35043 }
35044 {
35045   line = $ 0
35046   nfields = split(line, field, "@")
35047   substed = 0
35048   len = length(field[1])
35049   for (i = 2; i < nfields; i++) {
35050     key = field[i]
35051     keylen = length(key)
35052     if (S_is_set[key]) {
35053       value = S[key]
35054       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35055       len += length(value) + length(field[++i])
35056       substed = 1
35057     } else
35058       len += 1 + keylen
35059   }
35060
35061   print line
35062 }
35063
35064 _ACAWK
35065 _ACEOF
35066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35067 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35068   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35069 else
35070   cat
35071 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
35072   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
35073 _ACEOF
35074
35075 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35076 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
35077 # trailing colons and then remove the whole line if VPATH becomes empty
35078 # (actually we leave an empty line to preserve line numbers).
35079 if test "x$srcdir" = x.; then
35080   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
35081 h
35082 s///
35083 s/^/:/
35084 s/[      ]*$/:/
35085 s/:\$(srcdir):/:/g
35086 s/:\${srcdir}:/:/g
35087 s/:@srcdir@:/:/g
35088 s/^:*//
35089 s/:*$//
35090 x
35091 s/\(=[   ]*\).*/\1/
35092 G
35093 s/\n//
35094 s/^[^=]*=[       ]*$//
35095 }'
35096 fi
35097
35098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35099 fi # test -n "$CONFIG_FILES"
35100
35101 # Set up the scripts for CONFIG_HEADERS section.
35102 # No need to generate them if there are no CONFIG_HEADERS.
35103 # This happens for instance with `./config.status Makefile'.
35104 if test -n "$CONFIG_HEADERS"; then
35105 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
35106 BEGIN {
35107 _ACEOF
35108
35109 # Transform confdefs.h into an awk script `defines.awk', embedded as
35110 # here-document in config.status, that substitutes the proper values into
35111 # config.h.in to produce config.h.
35112
35113 # Create a delimiter string that does not exist in confdefs.h, to ease
35114 # handling of long lines.
35115 ac_delim='%!_!# '
35116 for ac_last_try in false false :; do
35117   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35118   if test -z "$ac_tt"; then
35119     break
35120   elif $ac_last_try; then
35121     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
35122   else
35123     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35124   fi
35125 done
35126
35127 # For the awk script, D is an array of macro values keyed by name,
35128 # likewise P contains macro parameters if any.  Preserve backslash
35129 # newline sequences.
35130
35131 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35132 sed -n '
35133 s/.\{148\}/&'"$ac_delim"'/g
35134 t rset
35135 :rset
35136 s/^[     ]*#[    ]*define[       ][      ]*/ /
35137 t def
35138 d
35139 :def
35140 s/\\$//
35141 t bsnl
35142 s/["\\]/\\&/g
35143 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
35144 D["\1"]=" \3"/p
35145 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
35146 d
35147 :bsnl
35148 s/["\\]/\\&/g
35149 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
35150 D["\1"]=" \3\\\\\\n"\\/p
35151 t cont
35152 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35153 t cont
35154 d
35155 :cont
35156 n
35157 s/.\{148\}/&'"$ac_delim"'/g
35158 t clear
35159 :clear
35160 s/\\$//
35161 t bsnlc
35162 s/["\\]/\\&/g; s/^/"/; s/$/"/p
35163 d
35164 :bsnlc
35165 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35166 b cont
35167 ' <confdefs.h | sed '
35168 s/'"$ac_delim"'/"\\\
35169 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35170
35171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35172   for (key in D) D_is_set[key] = 1
35173   FS = "\a"
35174 }
35175 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35176   line = \$ 0
35177   split(line, arg, " ")
35178   if (arg[1] == "#") {
35179     defundef = arg[2]
35180     mac1 = arg[3]
35181   } else {
35182     defundef = substr(arg[1], 2)
35183     mac1 = arg[2]
35184   }
35185   split(mac1, mac2, "(") #)
35186   macro = mac2[1]
35187   prefix = substr(line, 1, index(line, defundef) - 1)
35188   if (D_is_set[macro]) {
35189     # Preserve the white space surrounding the "#".
35190     print prefix "define", macro P[macro] D[macro]
35191     next
35192   } else {
35193     # Replace #undef with comments.  This is necessary, for example,
35194     # in the case of _POSIX_SOURCE, which is predefined and required
35195     # on some systems where configure will not decide to define it.
35196     if (defundef == "undef") {
35197       print "/*", prefix defundef, macro, "*/"
35198       next
35199     }
35200   }
35201 }
35202 { print }
35203 _ACAWK
35204 _ACEOF
35205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35206   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
35207 fi # test -n "$CONFIG_HEADERS"
35208
35209
35210 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
35211 shift
35212 for ac_tag
35213 do
35214   case $ac_tag in
35215   :[FHLC]) ac_mode=$ac_tag; continue;;
35216   esac
35217   case $ac_mode$ac_tag in
35218   :[FHL]*:*);;
35219   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
35220   :[FH]-) ac_tag=-:-;;
35221   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35222   esac
35223   ac_save_IFS=$IFS
35224   IFS=:
35225   set x $ac_tag
35226   IFS=$ac_save_IFS
35227   shift
35228   ac_file=$1
35229   shift
35230
35231   case $ac_mode in
35232   :L) ac_source=$1;;
35233   :[FH])
35234     ac_file_inputs=
35235     for ac_f
35236     do
35237       case $ac_f in
35238       -) ac_f="$ac_tmp/stdin";;
35239       *) # Look for the file first in the build tree, then in the source tree
35240          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35241          # because $ac_f cannot contain `:'.
35242          test -f "$ac_f" ||
35243            case $ac_f in
35244            [\\/$]*) false;;
35245            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35246            esac ||
35247            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35248       esac
35249       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35250       as_fn_append ac_file_inputs " '$ac_f'"
35251     done
35252
35253     # Let's still pretend it is `configure' which instantiates (i.e., don't
35254     # use $as_me), people would be surprised to read:
35255     #    /* config.h.  Generated by config.status.  */
35256     configure_input='Generated from '`
35257           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35258         `' by configure.'
35259     if test x"$ac_file" != x-; then
35260       configure_input="$ac_file.  $configure_input"
35261       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
35262 $as_echo "$as_me: creating $ac_file" >&6;}
35263     fi
35264     # Neutralize special characters interpreted by sed in replacement strings.
35265     case $configure_input in #(
35266     *\&* | *\|* | *\\* )
35267        ac_sed_conf_input=`$as_echo "$configure_input" |
35268        sed 's/[\\\\&|]/\\\\&/g'`;; #(
35269     *) ac_sed_conf_input=$configure_input;;
35270     esac
35271
35272     case $ac_tag in
35273     *:-:* | *:-) cat >"$ac_tmp/stdin" \
35274       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
35275     esac
35276     ;;
35277   esac
35278
35279   ac_dir=`$as_dirname -- "$ac_file" ||
35280 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35281          X"$ac_file" : 'X\(//\)[^/]' \| \
35282          X"$ac_file" : 'X\(//\)$' \| \
35283          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35284 $as_echo X"$ac_file" |
35285     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35286             s//\1/
35287             q
35288           }
35289           /^X\(\/\/\)[^/].*/{
35290             s//\1/
35291             q
35292           }
35293           /^X\(\/\/\)$/{
35294             s//\1/
35295             q
35296           }
35297           /^X\(\/\).*/{
35298             s//\1/
35299             q
35300           }
35301           s/.*/./; q'`
35302   as_dir="$ac_dir"; as_fn_mkdir_p
35303   ac_builddir=.
35304
35305 case "$ac_dir" in
35306 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35307 *)
35308   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35309   # A ".." for each directory in $ac_dir_suffix.
35310   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35311   case $ac_top_builddir_sub in
35312   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35313   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35314   esac ;;
35315 esac
35316 ac_abs_top_builddir=$ac_pwd
35317 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35318 # for backward compatibility:
35319 ac_top_builddir=$ac_top_build_prefix
35320
35321 case $srcdir in
35322   .)  # We are building in place.
35323     ac_srcdir=.
35324     ac_top_srcdir=$ac_top_builddir_sub
35325     ac_abs_top_srcdir=$ac_pwd ;;
35326   [\\/]* | ?:[\\/]* )  # Absolute name.
35327     ac_srcdir=$srcdir$ac_dir_suffix;
35328     ac_top_srcdir=$srcdir
35329     ac_abs_top_srcdir=$srcdir ;;
35330   *) # Relative name.
35331     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35332     ac_top_srcdir=$ac_top_build_prefix$srcdir
35333     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35334 esac
35335 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35336
35337
35338   case $ac_mode in
35339   :F)
35340   #
35341   # CONFIG_FILE
35342   #
35343
35344   case $INSTALL in
35345   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35346   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35347   esac
35348   ac_MKDIR_P=$MKDIR_P
35349   case $MKDIR_P in
35350   [\\/$]* | ?:[\\/]* ) ;;
35351   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
35352   esac
35353 _ACEOF
35354
35355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35356 # If the template does not know about datarootdir, expand it.
35357 # FIXME: This hack should be removed a few years after 2.60.
35358 ac_datarootdir_hack=; ac_datarootdir_seen=
35359 ac_sed_dataroot='
35360 /datarootdir/ {
35361   p
35362   q
35363 }
35364 /@datadir@/p
35365 /@docdir@/p
35366 /@infodir@/p
35367 /@localedir@/p
35368 /@mandir@/p'
35369 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35370 *datarootdir*) ac_datarootdir_seen=yes;;
35371 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35372   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35373 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35374 _ACEOF
35375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35376   ac_datarootdir_hack='
35377   s&@datadir@&$datadir&g
35378   s&@docdir@&$docdir&g
35379   s&@infodir@&$infodir&g
35380   s&@localedir@&$localedir&g
35381   s&@mandir@&$mandir&g
35382   s&\\\${datarootdir}&$datarootdir&g' ;;
35383 esac
35384 _ACEOF
35385
35386 # Neutralize VPATH when `$srcdir' = `.'.
35387 # Shell code in configure.ac might set extrasub.
35388 # FIXME: do we really want to maintain this feature?
35389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35390 ac_sed_extra="$ac_vpsub
35391 $extrasub
35392 _ACEOF
35393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35394 :t
35395 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35396 s|@configure_input@|$ac_sed_conf_input|;t t
35397 s&@top_builddir@&$ac_top_builddir_sub&;t t
35398 s&@top_build_prefix@&$ac_top_build_prefix&;t t
35399 s&@srcdir@&$ac_srcdir&;t t
35400 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35401 s&@top_srcdir@&$ac_top_srcdir&;t t
35402 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35403 s&@builddir@&$ac_builddir&;t t
35404 s&@abs_builddir@&$ac_abs_builddir&;t t
35405 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35406 s&@INSTALL@&$ac_INSTALL&;t t
35407 s&@MKDIR_P@&$ac_MKDIR_P&;t t
35408 $ac_datarootdir_hack
35409 "
35410 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
35411   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35412
35413 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35414   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35415   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
35416       "$ac_tmp/out"`; test -z "$ac_out"; } &&
35417   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35418 which seems to be undefined.  Please make sure it is defined" >&5
35419 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35420 which seems to be undefined.  Please make sure it is defined" >&2;}
35421
35422   rm -f "$ac_tmp/stdin"
35423   case $ac_file in
35424   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35425   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
35426   esac \
35427   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35428  ;;
35429   :H)
35430   #
35431   # CONFIG_HEADER
35432   #
35433   if test x"$ac_file" != x-; then
35434     {
35435       $as_echo "/* $configure_input  */" \
35436       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35437     } >"$ac_tmp/config.h" \
35438       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35439     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
35440       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
35441 $as_echo "$as_me: $ac_file is unchanged" >&6;}
35442     else
35443       rm -f "$ac_file"
35444       mv "$ac_tmp/config.h" "$ac_file" \
35445         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35446     fi
35447   else
35448     $as_echo "/* $configure_input  */" \
35449       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
35450       || as_fn_error $? "could not create -" "$LINENO" 5
35451   fi
35452 # Compute "$ac_file"'s index in $config_headers.
35453 _am_arg="$ac_file"
35454 _am_stamp_count=1
35455 for _am_header in $config_headers :; do
35456   case $_am_header in
35457     $_am_arg | $_am_arg:* )
35458       break ;;
35459     * )
35460       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35461   esac
35462 done
35463 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
35464 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35465          X"$_am_arg" : 'X\(//\)[^/]' \| \
35466          X"$_am_arg" : 'X\(//\)$' \| \
35467          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
35468 $as_echo X"$_am_arg" |
35469     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35470             s//\1/
35471             q
35472           }
35473           /^X\(\/\/\)[^/].*/{
35474             s//\1/
35475             q
35476           }
35477           /^X\(\/\/\)$/{
35478             s//\1/
35479             q
35480           }
35481           /^X\(\/\).*/{
35482             s//\1/
35483             q
35484           }
35485           s/.*/./; q'`/stamp-h$_am_stamp_count
35486  ;;
35487
35488   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
35489 $as_echo "$as_me: executing $ac_file commands" >&6;}
35490  ;;
35491   esac
35492
35493
35494   case $ac_file$ac_mode in
35495     "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
35496 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
35497 ac_prefix_conf_PKG=`echo MagickCore`
35498 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
35499 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
35500 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
35501 if test ".$ac_prefix_conf_INP" = "."; then
35502    for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
35503      case "$ac_file" in
35504         *.h) ac_prefix_conf_INP=$ac_file ;;
35505         *)
35506      esac
35507      test ".$ac_prefix_conf_INP" != "." && break
35508    done
35509 fi
35510 if test ".$ac_prefix_conf_INP" = "."; then
35511    case "$ac_prefix_conf_OUT" in
35512       */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
35513       ;;
35514       *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
35515       ;;
35516       *) ac_prefix_conf_INP=config.h
35517       ;;
35518    esac
35519 fi
35520 if test -z "$ac_prefix_conf_PKG" ; then
35521    as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
35522 else
35523   if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
35524      ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
35525   fi fi
35526   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
35527 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
35528   if test -f $ac_prefix_conf_INP ; then
35529     $as_echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
35530     $as_echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
35531     $as_echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
35532     $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
35533     $as_echo "#endif/" >> conftest.prefix
35534     $as_echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
35535     $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
35536     $as_echo "#endif/" >> conftest.prefix
35537     # now executing _script on _DEF input to create _OUT output file
35538     echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
35539     echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
35540     echo ' ' >>$tmp/pconfig.h
35541     echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
35542
35543     sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
35544     echo ' ' >>$tmp/pconfig.h
35545     echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
35546     echo "#endif" >>$tmp/pconfig.h
35547     if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
35548       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
35549 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
35550     else
35551       ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
35552 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35553          X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
35554          X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
35555          X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
35556 $as_echo X"$ac_prefix_conf_OUT" |
35557     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35558             s//\1/
35559             q
35560           }
35561           /^X\(\/\/\)[^/].*/{
35562             s//\1/
35563             q
35564           }
35565           /^X\(\/\/\)$/{
35566             s//\1/
35567             q
35568           }
35569           /^X\(\/\).*/{
35570             s//\1/
35571             q
35572           }
35573           s/.*/./; q'`
35574       as_dir="$ac_dir"; as_fn_mkdir_p
35575       rm -f "$ac_prefix_conf_OUT"
35576       mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
35577     fi
35578     cp conftest.prefix _configs.sed
35579   else
35580     as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
35581   fi
35582   rm -f conftest.*
35583 fi
35584  ;;
35585     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
35586   # Autoconf 2.62 quotes --file arguments for eval, but not when files
35587   # are listed without --file.  Let's play safe and only enable the eval
35588   # if we detect the quoting.
35589   case $CONFIG_FILES in
35590   *\'*) eval set x "$CONFIG_FILES" ;;
35591   *)   set x $CONFIG_FILES ;;
35592   esac
35593   shift
35594   for mf
35595   do
35596     # Strip MF so we end up with the name of the file.
35597     mf=`echo "$mf" | sed -e 's/:.*$//'`
35598     # Check whether this is an Automake generated Makefile or not.
35599     # We used to match only the files named `Makefile.in', but
35600     # some people rename them; so instead we look at the file content.
35601     # Grep'ing the first line is not enough: some people post-process
35602     # each Makefile.in and add a new line on top of each file to say so.
35603     # Grep'ing the whole file is not good either: AIX grep has a line
35604     # limit of 2048, but all sed's we know have understand at least 4000.
35605     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
35606       dirpart=`$as_dirname -- "$mf" ||
35607 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35608          X"$mf" : 'X\(//\)[^/]' \| \
35609          X"$mf" : 'X\(//\)$' \| \
35610          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35611 $as_echo X"$mf" |
35612     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35613             s//\1/
35614             q
35615           }
35616           /^X\(\/\/\)[^/].*/{
35617             s//\1/
35618             q
35619           }
35620           /^X\(\/\/\)$/{
35621             s//\1/
35622             q
35623           }
35624           /^X\(\/\).*/{
35625             s//\1/
35626             q
35627           }
35628           s/.*/./; q'`
35629     else
35630       continue
35631     fi
35632     # Extract the definition of DEPDIR, am__include, and am__quote
35633     # from the Makefile without running `make'.
35634     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35635     test -z "$DEPDIR" && continue
35636     am__include=`sed -n 's/^am__include = //p' < "$mf"`
35637     test -z "am__include" && continue
35638     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35639     # When using ansi2knr, U may be empty or an underscore; expand it
35640     U=`sed -n 's/^U = //p' < "$mf"`
35641     # Find all dependency output files, they are included files with
35642     # $(DEPDIR) in their names.  We invoke sed twice because it is the
35643     # simplest approach to changing $(DEPDIR) to its actual value in the
35644     # expansion.
35645     for file in `sed -n "
35646       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35647          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35648       # Make sure the directory exists.
35649       test -f "$dirpart/$file" && continue
35650       fdir=`$as_dirname -- "$file" ||
35651 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35652          X"$file" : 'X\(//\)[^/]' \| \
35653          X"$file" : 'X\(//\)$' \| \
35654          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35655 $as_echo X"$file" |
35656     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35657             s//\1/
35658             q
35659           }
35660           /^X\(\/\/\)[^/].*/{
35661             s//\1/
35662             q
35663           }
35664           /^X\(\/\/\)$/{
35665             s//\1/
35666             q
35667           }
35668           /^X\(\/\).*/{
35669             s//\1/
35670             q
35671           }
35672           s/.*/./; q'`
35673       as_dir=$dirpart/$fdir; as_fn_mkdir_p
35674       # echo "creating $dirpart/$file"
35675       echo '# dummy' > "$dirpart/$file"
35676     done
35677   done
35678 }
35679  ;;
35680     "libtool":C)
35681
35682     # See if we are running on zsh, and set the options which allow our
35683     # commands through without removal of \ escapes.
35684     if test -n "${ZSH_VERSION+set}" ; then
35685       setopt NO_GLOB_SUBST
35686     fi
35687
35688     cfgfile="${ofile}T"
35689     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35690     $RM "$cfgfile"
35691
35692     cat <<_LT_EOF >> "$cfgfile"
35693 #! $SHELL
35694
35695 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
35696 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
35697 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35698 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
35699 #
35700 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
35701 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
35702 #                 Inc.
35703 #   Written by Gordon Matzigkeit, 1996
35704 #
35705 #   This file is part of GNU Libtool.
35706 #
35707 # GNU Libtool is free software; you can redistribute it and/or
35708 # modify it under the terms of the GNU General Public License as
35709 # published by the Free Software Foundation; either version 2 of
35710 # the License, or (at your option) any later version.
35711 #
35712 # As a special exception to the GNU General Public License,
35713 # if you distribute this file as part of a program or library that
35714 # is built using GNU Libtool, you may include this file under the
35715 # same distribution terms that you use for the rest of that program.
35716 #
35717 # GNU Libtool is distributed in the hope that it will be useful,
35718 # but WITHOUT ANY WARRANTY; without even the implied warranty of
35719 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35720 # GNU General Public License for more details.
35721 #
35722 # You should have received a copy of the GNU General Public License
35723 # along with GNU Libtool; see the file COPYING.  If not, a copy
35724 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
35725 # obtained by writing to the Free Software Foundation, Inc.,
35726 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35727
35728
35729 # The names of the tagged configurations supported by this script.
35730 available_tags="CXX "
35731
35732 # ### BEGIN LIBTOOL CONFIG
35733
35734 # A sed program that does not truncate output.
35735 SED=$lt_SED
35736
35737 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
35738 Xsed="\$SED -e 1s/^X//"
35739
35740 # A grep program that handles long lines.
35741 GREP=$lt_GREP
35742
35743 # An ERE matcher.
35744 EGREP=$lt_EGREP
35745
35746 # A literal string matcher.
35747 FGREP=$lt_FGREP
35748
35749 # Shell to use when invoking shell scripts.
35750 SHELL=$lt_SHELL
35751
35752 # An echo program that protects backslashes.
35753 ECHO=$lt_ECHO
35754
35755 # Which release of libtool.m4 was used?
35756 macro_version=$macro_version
35757 macro_revision=$macro_revision
35758
35759 # Assembler program.
35760 AS=$lt_AS
35761
35762 # DLL creation program.
35763 DLLTOOL=$lt_DLLTOOL
35764
35765 # Object dumper program.
35766 OBJDUMP=$lt_OBJDUMP
35767
35768 # Whether or not to build shared libraries.
35769 build_libtool_libs=$enable_shared
35770
35771 # Whether or not to build static libraries.
35772 build_old_libs=$enable_static
35773
35774 # What type of objects to build.
35775 pic_mode=$pic_mode
35776
35777 # Whether or not to optimize for fast installation.
35778 fast_install=$enable_fast_install
35779
35780 # The host system.
35781 host_alias=$host_alias
35782 host=$host
35783 host_os=$host_os
35784
35785 # The build system.
35786 build_alias=$build_alias
35787 build=$build
35788 build_os=$build_os
35789
35790 # A BSD- or MS-compatible name lister.
35791 NM=$lt_NM
35792
35793 # Whether we need soft or hard links.
35794 LN_S=$lt_LN_S
35795
35796 # What is the maximum length of a command?
35797 max_cmd_len=$max_cmd_len
35798
35799 # Object file suffix (normally "o").
35800 objext=$ac_objext
35801
35802 # Executable file suffix (normally "").
35803 exeext=$exeext
35804
35805 # whether the shell understands "unset".
35806 lt_unset=$lt_unset
35807
35808 # turn spaces into newlines.
35809 SP2NL=$lt_lt_SP2NL
35810
35811 # turn newlines into spaces.
35812 NL2SP=$lt_lt_NL2SP
35813
35814 # convert \$build file names to \$host format.
35815 to_host_file_cmd=$lt_cv_to_host_file_cmd
35816
35817 # convert \$build files to toolchain format.
35818 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35819
35820 # Method to check whether dependent libraries are shared objects.
35821 deplibs_check_method=$lt_deplibs_check_method
35822
35823 # Command to use when deplibs_check_method = "file_magic".
35824 file_magic_cmd=$lt_file_magic_cmd
35825
35826 # How to find potential files when deplibs_check_method = "file_magic".
35827 file_magic_glob=$lt_file_magic_glob
35828
35829 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35830 want_nocaseglob=$lt_want_nocaseglob
35831
35832 # Command to associate shared and link libraries.
35833 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35834
35835 # The archiver.
35836 AR=$lt_AR
35837
35838 # Flags to create an archive.
35839 AR_FLAGS=$lt_AR_FLAGS
35840
35841 # How to feed a file listing to the archiver.
35842 archiver_list_spec=$lt_archiver_list_spec
35843
35844 # A symbol stripping program.
35845 STRIP=$lt_STRIP
35846
35847 # Commands used to install an old-style archive.
35848 RANLIB=$lt_RANLIB
35849 old_postinstall_cmds=$lt_old_postinstall_cmds
35850 old_postuninstall_cmds=$lt_old_postuninstall_cmds
35851
35852 # Whether to use a lock for old archive extraction.
35853 lock_old_archive_extraction=$lock_old_archive_extraction
35854
35855 # A C compiler.
35856 LTCC=$lt_CC
35857
35858 # LTCC compiler flags.
35859 LTCFLAGS=$lt_CFLAGS
35860
35861 # Take the output of nm and produce a listing of raw symbols and C names.
35862 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35863
35864 # Transform the output of nm in a proper C declaration.
35865 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35866
35867 # Transform the output of nm in a C name address pair.
35868 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35869
35870 # Transform the output of nm in a C name address pair when lib prefix is needed.
35871 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35872
35873 # Specify filename containing input files for \$NM.
35874 nm_file_list_spec=$lt_nm_file_list_spec
35875
35876 # The root where to search for dependent libraries,and in which our libraries should be installed.
35877 lt_sysroot=$lt_sysroot
35878
35879 # The name of the directory that contains temporary libtool files.
35880 objdir=$objdir
35881
35882 # Used to examine libraries when file_magic_cmd begins with "file".
35883 MAGIC_CMD=$MAGIC_CMD
35884
35885 # Must we lock files when doing compilation?
35886 need_locks=$lt_need_locks
35887
35888 # Manifest tool.
35889 MANIFEST_TOOL=$lt_MANIFEST_TOOL
35890
35891 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35892 DSYMUTIL=$lt_DSYMUTIL
35893
35894 # Tool to change global to local symbols on Mac OS X.
35895 NMEDIT=$lt_NMEDIT
35896
35897 # Tool to manipulate fat objects and archives on Mac OS X.
35898 LIPO=$lt_LIPO
35899
35900 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
35901 OTOOL=$lt_OTOOL
35902
35903 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35904 OTOOL64=$lt_OTOOL64
35905
35906 # Old archive suffix (normally "a").
35907 libext=$libext
35908
35909 # Shared library suffix (normally ".so").
35910 shrext_cmds=$lt_shrext_cmds
35911
35912 # The commands to extract the exported symbol list from a shared archive.
35913 extract_expsyms_cmds=$lt_extract_expsyms_cmds
35914
35915 # Variables whose values should be saved in libtool wrapper scripts and
35916 # restored at link time.
35917 variables_saved_for_relink=$lt_variables_saved_for_relink
35918
35919 # Do we need the "lib" prefix for modules?
35920 need_lib_prefix=$need_lib_prefix
35921
35922 # Do we need a version for libraries?
35923 need_version=$need_version
35924
35925 # Library versioning type.
35926 version_type=$version_type
35927
35928 # Shared library runtime path variable.
35929 runpath_var=$runpath_var
35930
35931 # Shared library path variable.
35932 shlibpath_var=$shlibpath_var
35933
35934 # Is shlibpath searched before the hard-coded library search path?
35935 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35936
35937 # Format of library name prefix.
35938 libname_spec=$lt_libname_spec
35939
35940 # List of archive names.  First name is the real one, the rest are links.
35941 # The last name is the one that the linker finds with -lNAME
35942 library_names_spec=$lt_library_names_spec
35943
35944 # The coded name of the library, if different from the real name.
35945 soname_spec=$lt_soname_spec
35946
35947 # Permission mode override for installation of shared libraries.
35948 install_override_mode=$lt_install_override_mode
35949
35950 # Command to use after installation of a shared archive.
35951 postinstall_cmds=$lt_postinstall_cmds
35952
35953 # Command to use after uninstallation of a shared archive.
35954 postuninstall_cmds=$lt_postuninstall_cmds
35955
35956 # Commands used to finish a libtool library installation in a directory.
35957 finish_cmds=$lt_finish_cmds
35958
35959 # As "finish_cmds", except a single script fragment to be evaled but
35960 # not shown.
35961 finish_eval=$lt_finish_eval
35962
35963 # Whether we should hardcode library paths into libraries.
35964 hardcode_into_libs=$hardcode_into_libs
35965
35966 # Compile-time system search path for libraries.
35967 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35968
35969 # Run-time system search path for libraries.
35970 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35971
35972 # Whether dlopen is supported.
35973 dlopen_support=$enable_dlopen
35974
35975 # Whether dlopen of programs is supported.
35976 dlopen_self=$enable_dlopen_self
35977
35978 # Whether dlopen of statically linked programs is supported.
35979 dlopen_self_static=$enable_dlopen_self_static
35980
35981 # Commands to strip libraries.
35982 old_striplib=$lt_old_striplib
35983 striplib=$lt_striplib
35984
35985
35986 # The linker used to build libraries.
35987 LD=$lt_LD
35988
35989 # How to create reloadable object files.
35990 reload_flag=$lt_reload_flag
35991 reload_cmds=$lt_reload_cmds
35992
35993 # Commands used to build an old-style archive.
35994 old_archive_cmds=$lt_old_archive_cmds
35995
35996 # A language specific compiler.
35997 CC=$lt_compiler
35998
35999 # Is the compiler the GNU compiler?
36000 with_gcc=$GCC
36001
36002 # Compiler flag to turn off builtin functions.
36003 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
36004
36005 # Additional compiler flags for building library objects.
36006 pic_flag=$lt_lt_prog_compiler_pic
36007
36008 # How to pass a linker flag through the compiler.
36009 wl=$lt_lt_prog_compiler_wl
36010
36011 # Compiler flag to prevent dynamic linking.
36012 link_static_flag=$lt_lt_prog_compiler_static
36013
36014 # Does compiler simultaneously support -c and -o options?
36015 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
36016
36017 # Whether or not to add -lc for building shared libraries.
36018 build_libtool_need_lc=$archive_cmds_need_lc
36019
36020 # Whether or not to disallow shared libs when runtime libs are static.
36021 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
36022
36023 # Compiler flag to allow reflexive dlopens.
36024 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
36025
36026 # Compiler flag to generate shared objects directly from archives.
36027 whole_archive_flag_spec=$lt_whole_archive_flag_spec
36028
36029 # Whether the compiler copes with passing no objects directly.
36030 compiler_needs_object=$lt_compiler_needs_object
36031
36032 # Create an old-style archive from a shared archive.
36033 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
36034
36035 # Create a temporary old-style archive to link instead of a shared archive.
36036 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
36037
36038 # Commands used to build a shared archive.
36039 archive_cmds=$lt_archive_cmds
36040 archive_expsym_cmds=$lt_archive_expsym_cmds
36041
36042 # Commands used to build a loadable module if different from building
36043 # a shared archive.
36044 module_cmds=$lt_module_cmds
36045 module_expsym_cmds=$lt_module_expsym_cmds
36046
36047 # Whether we are building with GNU ld or not.
36048 with_gnu_ld=$lt_with_gnu_ld
36049
36050 # Flag that allows shared libraries with undefined symbols to be built.
36051 allow_undefined_flag=$lt_allow_undefined_flag
36052
36053 # Flag that enforces no undefined symbols.
36054 no_undefined_flag=$lt_no_undefined_flag
36055
36056 # Flag to hardcode \$libdir into a binary during linking.
36057 # This must work even if \$libdir does not exist
36058 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
36059
36060 # If ld is used when linking, flag to hardcode \$libdir into a binary
36061 # during linking.  This must work even if \$libdir does not exist.
36062 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
36063
36064 # Whether we need a single "-rpath" flag with a separated argument.
36065 hardcode_libdir_separator=$lt_hardcode_libdir_separator
36066
36067 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36068 # DIR into the resulting binary.
36069 hardcode_direct=$hardcode_direct
36070
36071 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36072 # DIR into the resulting binary and the resulting library dependency is
36073 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36074 # library is relocated.
36075 hardcode_direct_absolute=$hardcode_direct_absolute
36076
36077 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36078 # into the resulting binary.
36079 hardcode_minus_L=$hardcode_minus_L
36080
36081 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36082 # into the resulting binary.
36083 hardcode_shlibpath_var=$hardcode_shlibpath_var
36084
36085 # Set to "yes" if building a shared library automatically hardcodes DIR
36086 # into the library and all subsequent libraries and executables linked
36087 # against it.
36088 hardcode_automatic=$hardcode_automatic
36089
36090 # Set to yes if linker adds runtime paths of dependent libraries
36091 # to runtime path list.
36092 inherit_rpath=$inherit_rpath
36093
36094 # Whether libtool must link a program against all its dependency libraries.
36095 link_all_deplibs=$link_all_deplibs
36096
36097 # Set to "yes" if exported symbols are required.
36098 always_export_symbols=$always_export_symbols
36099
36100 # The commands to list exported symbols.
36101 export_symbols_cmds=$lt_export_symbols_cmds
36102
36103 # Symbols that should not be listed in the preloaded symbols.
36104 exclude_expsyms=$lt_exclude_expsyms
36105
36106 # Symbols that must always be exported.
36107 include_expsyms=$lt_include_expsyms
36108
36109 # Commands necessary for linking programs (against libraries) with templates.
36110 prelink_cmds=$lt_prelink_cmds
36111
36112 # Commands necessary for finishing linking programs.
36113 postlink_cmds=$lt_postlink_cmds
36114
36115 # Specify filename containing input files.
36116 file_list_spec=$lt_file_list_spec
36117
36118 # How to hardcode a shared library path into an executable.
36119 hardcode_action=$hardcode_action
36120
36121 # The directories searched by this compiler when creating a shared library.
36122 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
36123
36124 # Dependencies to place before and after the objects being linked to
36125 # create a shared library.
36126 predep_objects=$lt_predep_objects
36127 postdep_objects=$lt_postdep_objects
36128 predeps=$lt_predeps
36129 postdeps=$lt_postdeps
36130
36131 # The library search path used internally by the compiler when linking
36132 # a shared library.
36133 compiler_lib_search_path=$lt_compiler_lib_search_path
36134
36135 # ### END LIBTOOL CONFIG
36136
36137 _LT_EOF
36138
36139   case $host_os in
36140   aix3*)
36141     cat <<\_LT_EOF >> "$cfgfile"
36142 # AIX sometimes has problems with the GCC collect2 program.  For some
36143 # reason, if we set the COLLECT_NAMES environment variable, the problems
36144 # vanish in a puff of smoke.
36145 if test "X${COLLECT_NAMES+set}" != Xset; then
36146   COLLECT_NAMES=
36147   export COLLECT_NAMES
36148 fi
36149 _LT_EOF
36150     ;;
36151   esac
36152
36153
36154 ltmain="$ac_aux_dir/ltmain.sh"
36155
36156
36157   # We use sed instead of cat because bash on DJGPP gets confused if
36158   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
36159   # text mode, it properly converts lines to CR/LF.  This bash problem
36160   # is reportedly fixed, but why not run on old versions too?
36161   sed '$q' "$ltmain" >> "$cfgfile" \
36162      || (rm -f "$cfgfile"; exit 1)
36163
36164   if test x"$xsi_shell" = xyes; then
36165   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
36166 func_dirname ()\
36167 {\
36168 \    case ${1} in\
36169 \      */*) func_dirname_result="${1%/*}${2}" ;;\
36170 \      *  ) func_dirname_result="${3}" ;;\
36171 \    esac\
36172 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
36173   && mv -f "$cfgfile.tmp" "$cfgfile" \
36174     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36175 test 0 -eq $? || _lt_function_replace_fail=:
36176
36177
36178   sed -e '/^func_basename ()$/,/^} # func_basename /c\
36179 func_basename ()\
36180 {\
36181 \    func_basename_result="${1##*/}"\
36182 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
36183   && mv -f "$cfgfile.tmp" "$cfgfile" \
36184     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36185 test 0 -eq $? || _lt_function_replace_fail=:
36186
36187
36188   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
36189 func_dirname_and_basename ()\
36190 {\
36191 \    case ${1} in\
36192 \      */*) func_dirname_result="${1%/*}${2}" ;;\
36193 \      *  ) func_dirname_result="${3}" ;;\
36194 \    esac\
36195 \    func_basename_result="${1##*/}"\
36196 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
36197   && mv -f "$cfgfile.tmp" "$cfgfile" \
36198     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36199 test 0 -eq $? || _lt_function_replace_fail=:
36200
36201
36202   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
36203 func_stripname ()\
36204 {\
36205 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
36206 \    # positional parameters, so assign one to ordinary parameter first.\
36207 \    func_stripname_result=${3}\
36208 \    func_stripname_result=${func_stripname_result#"${1}"}\
36209 \    func_stripname_result=${func_stripname_result%"${2}"}\
36210 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
36211   && mv -f "$cfgfile.tmp" "$cfgfile" \
36212     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36213 test 0 -eq $? || _lt_function_replace_fail=:
36214
36215
36216   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
36217 func_split_long_opt ()\
36218 {\
36219 \    func_split_long_opt_name=${1%%=*}\
36220 \    func_split_long_opt_arg=${1#*=}\
36221 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
36222   && mv -f "$cfgfile.tmp" "$cfgfile" \
36223     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36224 test 0 -eq $? || _lt_function_replace_fail=:
36225
36226
36227   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
36228 func_split_short_opt ()\
36229 {\
36230 \    func_split_short_opt_arg=${1#??}\
36231 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
36232 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
36233   && mv -f "$cfgfile.tmp" "$cfgfile" \
36234     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36235 test 0 -eq $? || _lt_function_replace_fail=:
36236
36237
36238   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
36239 func_lo2o ()\
36240 {\
36241 \    case ${1} in\
36242 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
36243 \      *)    func_lo2o_result=${1} ;;\
36244 \    esac\
36245 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
36246   && mv -f "$cfgfile.tmp" "$cfgfile" \
36247     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36248 test 0 -eq $? || _lt_function_replace_fail=:
36249
36250
36251   sed -e '/^func_xform ()$/,/^} # func_xform /c\
36252 func_xform ()\
36253 {\
36254     func_xform_result=${1%.*}.lo\
36255 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
36256   && mv -f "$cfgfile.tmp" "$cfgfile" \
36257     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36258 test 0 -eq $? || _lt_function_replace_fail=:
36259
36260
36261   sed -e '/^func_arith ()$/,/^} # func_arith /c\
36262 func_arith ()\
36263 {\
36264     func_arith_result=$(( $* ))\
36265 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
36266   && mv -f "$cfgfile.tmp" "$cfgfile" \
36267     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36268 test 0 -eq $? || _lt_function_replace_fail=:
36269
36270
36271   sed -e '/^func_len ()$/,/^} # func_len /c\
36272 func_len ()\
36273 {\
36274     func_len_result=${#1}\
36275 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
36276   && mv -f "$cfgfile.tmp" "$cfgfile" \
36277     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36278 test 0 -eq $? || _lt_function_replace_fail=:
36279
36280 fi
36281
36282 if test x"$lt_shell_append" = xyes; then
36283   sed -e '/^func_append ()$/,/^} # func_append /c\
36284 func_append ()\
36285 {\
36286     eval "${1}+=\\${2}"\
36287 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
36288   && mv -f "$cfgfile.tmp" "$cfgfile" \
36289     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36290 test 0 -eq $? || _lt_function_replace_fail=:
36291
36292
36293   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
36294 func_append_quoted ()\
36295 {\
36296 \    func_quote_for_eval "${2}"\
36297 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
36298 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
36299   && mv -f "$cfgfile.tmp" "$cfgfile" \
36300     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36301 test 0 -eq $? || _lt_function_replace_fail=:
36302
36303
36304   # Save a `func_append' function call where possible by direct use of '+='
36305   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
36306     && mv -f "$cfgfile.tmp" "$cfgfile" \
36307       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36308   test 0 -eq $? || _lt_function_replace_fail=:
36309 else
36310   # Save a `func_append' function call even when '+=' is not available
36311   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
36312     && mv -f "$cfgfile.tmp" "$cfgfile" \
36313       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36314   test 0 -eq $? || _lt_function_replace_fail=:
36315 fi
36316
36317 if test x"$_lt_function_replace_fail" = x":"; then
36318   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
36319 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
36320 fi
36321
36322
36323    mv -f "$cfgfile" "$ofile" ||
36324     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
36325   chmod +x "$ofile"
36326
36327
36328     cat <<_LT_EOF >> "$ofile"
36329
36330 # ### BEGIN LIBTOOL TAG CONFIG: CXX
36331
36332 # The linker used to build libraries.
36333 LD=$lt_LD_CXX
36334
36335 # How to create reloadable object files.
36336 reload_flag=$lt_reload_flag_CXX
36337 reload_cmds=$lt_reload_cmds_CXX
36338
36339 # Commands used to build an old-style archive.
36340 old_archive_cmds=$lt_old_archive_cmds_CXX
36341
36342 # A language specific compiler.
36343 CC=$lt_compiler_CXX
36344
36345 # Is the compiler the GNU compiler?
36346 with_gcc=$GCC_CXX
36347
36348 # Compiler flag to turn off builtin functions.
36349 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
36350
36351 # Additional compiler flags for building library objects.
36352 pic_flag=$lt_lt_prog_compiler_pic_CXX
36353
36354 # How to pass a linker flag through the compiler.
36355 wl=$lt_lt_prog_compiler_wl_CXX
36356
36357 # Compiler flag to prevent dynamic linking.
36358 link_static_flag=$lt_lt_prog_compiler_static_CXX
36359
36360 # Does compiler simultaneously support -c and -o options?
36361 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
36362
36363 # Whether or not to add -lc for building shared libraries.
36364 build_libtool_need_lc=$archive_cmds_need_lc_CXX
36365
36366 # Whether or not to disallow shared libs when runtime libs are static.
36367 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
36368
36369 # Compiler flag to allow reflexive dlopens.
36370 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
36371
36372 # Compiler flag to generate shared objects directly from archives.
36373 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
36374
36375 # Whether the compiler copes with passing no objects directly.
36376 compiler_needs_object=$lt_compiler_needs_object_CXX
36377
36378 # Create an old-style archive from a shared archive.
36379 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
36380
36381 # Create a temporary old-style archive to link instead of a shared archive.
36382 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
36383
36384 # Commands used to build a shared archive.
36385 archive_cmds=$lt_archive_cmds_CXX
36386 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
36387
36388 # Commands used to build a loadable module if different from building
36389 # a shared archive.
36390 module_cmds=$lt_module_cmds_CXX
36391 module_expsym_cmds=$lt_module_expsym_cmds_CXX
36392
36393 # Whether we are building with GNU ld or not.
36394 with_gnu_ld=$lt_with_gnu_ld_CXX
36395
36396 # Flag that allows shared libraries with undefined symbols to be built.
36397 allow_undefined_flag=$lt_allow_undefined_flag_CXX
36398
36399 # Flag that enforces no undefined symbols.
36400 no_undefined_flag=$lt_no_undefined_flag_CXX
36401
36402 # Flag to hardcode \$libdir into a binary during linking.
36403 # This must work even if \$libdir does not exist
36404 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
36405
36406 # If ld is used when linking, flag to hardcode \$libdir into a binary
36407 # during linking.  This must work even if \$libdir does not exist.
36408 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
36409
36410 # Whether we need a single "-rpath" flag with a separated argument.
36411 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
36412
36413 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36414 # DIR into the resulting binary.
36415 hardcode_direct=$hardcode_direct_CXX
36416
36417 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36418 # DIR into the resulting binary and the resulting library dependency is
36419 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36420 # library is relocated.
36421 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
36422
36423 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36424 # into the resulting binary.
36425 hardcode_minus_L=$hardcode_minus_L_CXX
36426
36427 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36428 # into the resulting binary.
36429 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
36430
36431 # Set to "yes" if building a shared library automatically hardcodes DIR
36432 # into the library and all subsequent libraries and executables linked
36433 # against it.
36434 hardcode_automatic=$hardcode_automatic_CXX
36435
36436 # Set to yes if linker adds runtime paths of dependent libraries
36437 # to runtime path list.
36438 inherit_rpath=$inherit_rpath_CXX
36439
36440 # Whether libtool must link a program against all its dependency libraries.
36441 link_all_deplibs=$link_all_deplibs_CXX
36442
36443 # Set to "yes" if exported symbols are required.
36444 always_export_symbols=$always_export_symbols_CXX
36445
36446 # The commands to list exported symbols.
36447 export_symbols_cmds=$lt_export_symbols_cmds_CXX
36448
36449 # Symbols that should not be listed in the preloaded symbols.
36450 exclude_expsyms=$lt_exclude_expsyms_CXX
36451
36452 # Symbols that must always be exported.
36453 include_expsyms=$lt_include_expsyms_CXX
36454
36455 # Commands necessary for linking programs (against libraries) with templates.
36456 prelink_cmds=$lt_prelink_cmds_CXX
36457
36458 # Commands necessary for finishing linking programs.
36459 postlink_cmds=$lt_postlink_cmds_CXX
36460
36461 # Specify filename containing input files.
36462 file_list_spec=$lt_file_list_spec_CXX
36463
36464 # How to hardcode a shared library path into an executable.
36465 hardcode_action=$hardcode_action_CXX
36466
36467 # The directories searched by this compiler when creating a shared library.
36468 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
36469
36470 # Dependencies to place before and after the objects being linked to
36471 # create a shared library.
36472 predep_objects=$lt_predep_objects_CXX
36473 postdep_objects=$lt_postdep_objects_CXX
36474 predeps=$lt_predeps_CXX
36475 postdeps=$lt_postdeps_CXX
36476
36477 # The library search path used internally by the compiler when linking
36478 # a shared library.
36479 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
36480
36481 # ### END LIBTOOL TAG CONFIG: CXX
36482 _LT_EOF
36483
36484  ;;
36485     "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
36486     "Magick-config.in":C) chmod +x magick/Magick-config ;;
36487     "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
36488     "Wand-config.in":C) chmod +x wand/Wand-config ;;
36489     "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
36490     "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
36491
36492   esac
36493 done # for ac_tag
36494
36495
36496 as_fn_exit 0
36497 _ACEOF
36498 ac_clean_files=$ac_clean_files_save
36499
36500 test $ac_write_fail = 0 ||
36501   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
36502
36503
36504 # configure is writing to config.log, and then calls config.status.
36505 # config.status does its own redirection, appending to config.log.
36506 # Unfortunately, on DOS this fails, as config.log is still kept open
36507 # by configure, so config.status won't be able to write to it; its
36508 # output is simply discarded.  So we exec the FD to /dev/null,
36509 # effectively closing config.log, so it can be properly (re)opened and
36510 # appended to by config.status.  When coming back to configure, we
36511 # need to make the FD available again.
36512 if test "$no_create" != yes; then
36513   ac_cs_success=:
36514   ac_config_status_args=
36515   test "$silent" = yes &&
36516     ac_config_status_args="$ac_config_status_args --quiet"
36517   exec 5>/dev/null
36518   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36519   exec 5>>config.log
36520   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36521   # would make configure fail if this is the last instruction.
36522   $ac_cs_success || as_fn_exit 1
36523 fi
36524 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36525   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36526 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
36527 fi
36528
36529
36530 rm -f magick-version
36531
36532 result_dejavu_font_dir='none'
36533 if test "${dejavu_font_dir}x" != 'x'; then
36534     result_dejavu_font_dir=$dejavu_font_dir
36535 fi
36536
36537 result_ghostscript_font_dir='none'
36538 if test "${ghostscript_font_dir}x" != 'x'; then
36539     result_ghostscript_font_dir=$ghostscript_font_dir
36540 fi
36541
36542 result_windows_font_dir='none'
36543 if test "${windows_font_dir}x" != 'x'; then
36544     result_windows_font_dir=${windows_font_dir}
36545 fi
36546
36547 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
36548 ImageMagick is configured as follows. Please verify that this configuration
36549 matches your expectations.
36550
36551 Host system type: $host
36552 Build system type: $build
36553
36554                   Option                        Value
36555 -------------------------------------------------------------------------------
36556 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
36557 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
36558 Module support    --with-modules=$with_modules          $with_modules
36559 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
36560 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
36561 High Dynamic Range Imagery
36562                   --enable-hdri=$enable_hdri            $enable_hdri
36563
36564 Delegate Configuration:
36565 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
36566 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
36567 Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir  $result_dejavu_font_dir
36568 DJVU              --with-djvu=$with_djvu                $have_djvu
36569 DPS               --with-dps=$with_dps          $have_dps
36570 FFTW              --with-fftw=$with_fftw                $have_fftw
36571 FlashPIX          --with-fpx=$with_fpx          $have_fpx
36572 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
36573 FreeType          --with-freetype=$with_freetype                $have_freetype
36574 GhostPCL          None                          $PCLDelegate ($PCLVersion)
36575 GhostXPS          None                          $XPSDelegate ($XPSVersion)
36576 Ghostscript       None                          $PSDelegate ($GSVersion)
36577 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
36578 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
36579 Graphviz          --with-gvc=$with_gvc          $have_gvc
36580 JBIG              --with-jbig=$with_jbig                $have_jbig
36581 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
36582 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
36583 LCMS v1           --with-lcms=$with_lcms                $have_lcms
36584 LCMS v2           --with-lcms2=$with_lcms2              $have_lcms2
36585 LQR               --with-lqr=$with_lqr          $have_lqr
36586 LZMA              --with-lzma=$with_lzma                $have_lzma
36587 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
36588 OpenEXR           --with-openexr=$with_openexr          $have_openexr
36589 PERL              --with-perl=$with_perl                $have_perl
36590 PNG               --with-png=$with_png          $have_png
36591 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
36592 TIFF              --with-tiff=$with_tiff                $have_tiff
36593 WEBP              --with-webp=$with_webp                $have_webp
36594 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
36595 WMF               --with-wmf=$with_wmf          $have_wmf
36596 X11               --with-x=$with_x                      $have_x
36597 XML               --with-xml=$with_xml          $have_xml
36598 ZLIB              --with-zlib=$with_zlib                $have_zlib
36599
36600 X11 Configuration:
36601       X_CFLAGS        = $X_CFLAGS
36602       X_PRE_LIBS      = $X_PRE_LIBS
36603       X_LIBS          = $X_LIBS
36604       X_EXTRA_LIBS    = $X_EXTRA_LIBS
36605
36606 Options used to compile and link:
36607   PREFIX          = $PREFIX_DIR
36608   EXEC-PREFIX     = $EXEC_PREFIX_DIR
36609   VERSION         = $PACKAGE_VERSION
36610   CC              = $CC
36611   CFLAGS          = $CFLAGS
36612   CPPFLAGS        = $MAGICK_CPPFLAGS
36613   PCFLAGS         = $MAGICK_PCFLAGS
36614   DEFS            = $DEFS
36615   LDFLAGS         = $LDFLAGS
36616   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
36617   LIBS            = $MAGICK_LIBS
36618   CXX             = $CXX
36619   CXXFLAGS        = $CXXFLAGS
36620   FEATURES        = $MAGICK_FEATURES
36621 " >&5
36622 $as_echo "
36623 ImageMagick is configured as follows. Please verify that this configuration
36624 matches your expectations.
36625
36626 Host system type: $host
36627 Build system type: $build
36628
36629                   Option                        Value
36630 -------------------------------------------------------------------------------
36631 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
36632 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
36633 Module support    --with-modules=$with_modules          $with_modules
36634 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
36635 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
36636 High Dynamic Range Imagery
36637                   --enable-hdri=$enable_hdri            $enable_hdri
36638
36639 Delegate Configuration:
36640 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
36641 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
36642 Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir  $result_dejavu_font_dir
36643 DJVU              --with-djvu=$with_djvu                $have_djvu
36644 DPS               --with-dps=$with_dps          $have_dps
36645 FFTW              --with-fftw=$with_fftw                $have_fftw
36646 FlashPIX          --with-fpx=$with_fpx          $have_fpx
36647 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
36648 FreeType          --with-freetype=$with_freetype                $have_freetype
36649 GhostPCL          None                          $PCLDelegate ($PCLVersion)
36650 GhostXPS          None                          $XPSDelegate ($XPSVersion)
36651 Ghostscript       None                          $PSDelegate ($GSVersion)
36652 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
36653 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
36654 Graphviz          --with-gvc=$with_gvc          $have_gvc
36655 JBIG              --with-jbig=$with_jbig                $have_jbig
36656 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
36657 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
36658 LCMS v1           --with-lcms=$with_lcms                $have_lcms
36659 LCMS v2           --with-lcms2=$with_lcms2              $have_lcms2
36660 LQR               --with-lqr=$with_lqr          $have_lqr
36661 LZMA              --with-lzma=$with_lzma                $have_lzma
36662 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
36663 OpenEXR           --with-openexr=$with_openexr          $have_openexr
36664 PERL              --with-perl=$with_perl                $have_perl
36665 PNG               --with-png=$with_png          $have_png
36666 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
36667 TIFF              --with-tiff=$with_tiff                $have_tiff
36668 WEBP              --with-webp=$with_webp                $have_webp
36669 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
36670 WMF               --with-wmf=$with_wmf          $have_wmf
36671 X11               --with-x=$with_x                      $have_x
36672 XML               --with-xml=$with_xml          $have_xml
36673 ZLIB              --with-zlib=$with_zlib                $have_zlib
36674
36675 X11 Configuration:
36676       X_CFLAGS        = $X_CFLAGS
36677       X_PRE_LIBS      = $X_PRE_LIBS
36678       X_LIBS          = $X_LIBS
36679       X_EXTRA_LIBS    = $X_EXTRA_LIBS
36680
36681 Options used to compile and link:
36682   PREFIX          = $PREFIX_DIR
36683   EXEC-PREFIX     = $EXEC_PREFIX_DIR
36684   VERSION         = $PACKAGE_VERSION
36685   CC              = $CC
36686   CFLAGS          = $CFLAGS
36687   CPPFLAGS        = $MAGICK_CPPFLAGS
36688   PCFLAGS         = $MAGICK_PCFLAGS
36689   DEFS            = $DEFS
36690   LDFLAGS         = $LDFLAGS
36691   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
36692   LIBS            = $MAGICK_LIBS
36693   CXX             = $CXX
36694   CXXFLAGS        = $CXXFLAGS
36695   FEATURES        = $MAGICK_FEATURES
36696 " >&6; }