]> granicus.if.org Git - imagemagick/blob - configure
(no commit message)
[imagemagick] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for ImageMagick 6.5.8.
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 Free Software Foundation,
10 # 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 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: http://www.imagemagick.org about your system, including
235 $0: any error possibly output before this message. Then
236 $0: install a modern shell, or manually run the script
237 $0: under such a shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$?; test $as_status -eq 0 && as_status=1
370   if test "$3"; then
371     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373   fi
374   $as_echo "$as_me: error: $1" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538   # Remove one level of quotation (which was required for Make).
539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540   ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545   # Discard the --no-reexec flag, and continue.
546   shift
547 elif test "X$1" = X--fallback-echo; then
548   # Avoid inline document here, it may be left over
549   :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551   # Yippee, $ECHO works!
552   :
553 else
554   # Restart under the correct shell.
555   exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559   # used as fallback echo
560   shift
561   cat <<_LT_EOF
562 $*
563 _LT_EOF
564   exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572   if test "X${echo_test_string+set}" != Xset; then
573     # find a string as large as possible, as long as the shell can cope with it
574     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578       then
579         break
580       fi
581     done
582   fi
583
584   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586      test "X$echo_testing_string" = "X$echo_test_string"; then
587     :
588   else
589     # The Solaris, AIX, and Digital Unix default echo programs unquote
590     # backslashes.  This makes it impossible to quote backslashes using
591     #   echo "$something" | sed 's/\\/\\\\/g'
592     #
593     # So, first we look for a working echo in the user's PATH.
594
595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596     for dir in $PATH /usr/ucb; do
597       IFS="$lt_save_ifs"
598       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601          test "X$echo_testing_string" = "X$echo_test_string"; then
602         ECHO="$dir/echo"
603         break
604       fi
605     done
606     IFS="$lt_save_ifs"
607
608     if test "X$ECHO" = Xecho; then
609       # We didn't find a better echo, so look for alternatives.
610       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612          test "X$echo_testing_string" = "X$echo_test_string"; then
613         # This shell has a builtin print -r that does the trick.
614         ECHO='print -r'
615       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616            test "X$CONFIG_SHELL" != X/bin/ksh; then
617         # If we have ksh, try running configure again with it.
618         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619         export ORIGINAL_CONFIG_SHELL
620         CONFIG_SHELL=/bin/ksh
621         export CONFIG_SHELL
622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623       else
624         # Try using printf.
625         ECHO='printf %s\n'
626         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628            test "X$echo_testing_string" = "X$echo_test_string"; then
629           # Cool, printf works
630           :
631         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632              test "X$echo_testing_string" = 'X\t' &&
633              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634              test "X$echo_testing_string" = "X$echo_test_string"; then
635           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636           export CONFIG_SHELL
637           SHELL="$CONFIG_SHELL"
638           export SHELL
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641              test "X$echo_testing_string" = 'X\t' &&
642              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643              test "X$echo_testing_string" = "X$echo_test_string"; then
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         else
646           # maybe with a smaller string...
647           prev=:
648
649           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651             then
652               break
653             fi
654             prev="$cmd"
655           done
656
657           if test "$prev" != 'sed 50q "$0"'; then
658             echo_test_string=`eval $prev`
659             export echo_test_string
660             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661           else
662             # Oops.  We lost completely, so just stick with echo.
663             ECHO=echo
664           fi
665         fi
666       fi
667     fi
668   fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 lt_ltdl_dir='ltdl'
682
683 lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
684
685 test -n "$DJDIR" || exec 7<&0 </dev/null
686 exec 6>&1
687
688 # Name of the host.
689 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
690 # so uname gets run too.
691 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692
693 #
694 # Initializations.
695 #
696 ac_default_prefix=/usr/local
697 ac_clean_files=
698 ac_config_libobj_dir=.
699 LIBOBJS=
700 cross_compiling=no
701 subdirs=
702 MFLAGS=
703 MAKEFLAGS=
704
705 # Identity of this package.
706 PACKAGE_NAME='ImageMagick'
707 PACKAGE_TARNAME='ImageMagick'
708 PACKAGE_VERSION='6.5.8'
709 PACKAGE_STRING='ImageMagick 6.5.8'
710 PACKAGE_BUGREPORT='http://www.imagemagick.org'
711 PACKAGE_URL=''
712
713 ac_unique_file="magick/MagickCore.h"
714 ac_config_libobj_dir=ltdl
715 # Factoring default headers for most tests.
716 ac_includes_default="\
717 #include <stdio.h>
718 #ifdef HAVE_SYS_TYPES_H
719 # include <sys/types.h>
720 #endif
721 #ifdef HAVE_SYS_STAT_H
722 # include <sys/stat.h>
723 #endif
724 #ifdef STDC_HEADERS
725 # include <stdlib.h>
726 # include <stddef.h>
727 #else
728 # ifdef HAVE_STDLIB_H
729 #  include <stdlib.h>
730 # endif
731 #endif
732 #ifdef HAVE_STRING_H
733 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734 #  include <memory.h>
735 # endif
736 # include <string.h>
737 #endif
738 #ifdef HAVE_STRINGS_H
739 # include <strings.h>
740 #endif
741 #ifdef HAVE_INTTYPES_H
742 # include <inttypes.h>
743 #endif
744 #ifdef HAVE_STDINT_H
745 # include <stdint.h>
746 #endif
747 #ifdef HAVE_UNISTD_H
748 # include <unistd.h>
749 #endif"
750
751 ac_header_list=
752 ac_subst_vars='ltdl_LTLIBOBJS
753 ltdl_LIBOBJS
754 am__EXEEXT_FALSE
755 am__EXEEXT_TRUE
756 LTLIBOBJS
757 MAGICK_LIBS
758 MAGICK_LDFLAGS
759 MAGICK_PCFLAGS
760 MAGICK_CPPFLAGS
761 MAGICK_CXXFLAGS
762 MAGICK_CFLAGS
763 MAGICK_DEP_LIBS
764 MAGICK_LTDLDEPS
765 MAGICK_LIBLTDL
766 OSX_GCOV_LDFLAG
767 DELEGATES
768 MAGICKCORE_PATH
769 PERL_SUPPORTS_DESTDIR
770 WITH_PERL_DYNAMIC_FALSE
771 WITH_PERL_DYNAMIC_TRUE
772 WITH_PERL_STATIC_FALSE
773 WITH_PERL_STATIC_TRUE
774 WITH_PERL_FALSE
775 WITH_PERL_TRUE
776 GSVersion
777 GSPSDevice
778 GSPDFDevice
779 GSMonoDevice
780 GSEPSDevice
781 GSColorDevice
782 GSCMYKDevice
783 GSAlphaDevice
784 XPSVersion
785 XPSCMYKDevice
786 XPSColorDevice
787 XPSMonoDevice
788 PCLVersion
789 PCLCMYKDevice
790 PCLColorDevice
791 PCLMonoDevice
792 ZIP_DELEGATE_FALSE
793 ZIP_DELEGATE_TRUE
794 ZIP
795 P7ZIP_DELEGATE_FALSE
796 P7ZIP_DELEGATE_TRUE
797 P7ZIP
798 RPM_DELEGATE_FALSE
799 RPM_DELEGATE_TRUE
800 RPM
801 PERL
802 TAR
803 ShowImageDelegate
804 type_include_files
805 ghostscript_font_dir
806 windows_font_dir
807 PrintDelegate
808 ZipDelegate
809 XPSDelegate
810 WWWDecodeDelegate
811 WMFDecodeDelegate
812 TXTDelegate
813 SCANDecodeDelegate
814 RMDelegate
815 RLEEncodeDelegate
816 PSDelegate
817 POVDelegate
818 PGPDecodeDelegate
819 PCLDelegate
820 MVDelegate
821 MPEGEncodeDelegate
822 MPEGDecodeDelegate
823 MANDelegate
824 LaunchDelegate
825 LZWEncodeDelegate
826 LZWDecodeDelegate
827 LPRDelegate
828 LPDelegate
829 ILBMEncodeDelegate
830 ILBMDecodeDelegate
831 HTMLDecodeDelegate
832 HPGLDecodeDelegate
833 HDRDecodeDelegate
834 GnuplotDecodeDelegate
835 MogrifyDelegate
836 DisplayDelegate
837 ConvertDelegate
838 FIGDecodeDelegate
839 EditorDelegate
840 EchoDelegate
841 DVIDecodeDelegate
842 GVCDecodeDelegate
843 DNGDecodeDelegate
844 CatDelegate
845 CGMDecodeDelegate
846 BrowseDelegate
847 BZIPDelegate
848 BlenderDecodeDelegate
849 AVIDecodeDelegate
850 AutotraceDecodeDelegate
851 SHARE_CONFIGURE_PATH
852 SHARE_PATH
853 DOCUMENTATION_PATH
854 FILTER_PATH
855 CODER_PATH
856 CONFIGURE_PATH
857 LIBRARY_PATH
858 EXECUTABLE_PATH
859 PERLMAINCC
860 XML_LIBS
861 XML_DELEGATE_FALSE
862 XML_DELEGATE_TRUE
863 xml2_config
864 WMF_LIBS_DEPS
865 WMF_LIBS
866 WMF_DELEGATE_FALSE
867 WMF_DELEGATE_TRUE
868 TIFF_LIBS
869 TIFF_DELEGATE_FALSE
870 TIFF_DELEGATE_TRUE
871 CAIRO_DELEGATE_FALSE
872 CAIRO_DELEGATE_TRUE
873 RSVG_DELEGATE_FALSE
874 RSVG_DELEGATE_TRUE
875 CAIRO_SVG_LIBS
876 CAIRO_SVG_CFLAGS
877 RSVG_LIBS
878 RSVG_CFLAGS
879 PNG_LIBS
880 PNG_DELEGATE_FALSE
881 PNG_DELEGATE_TRUE
882 OPENEXR_DELEGATE_FALSE
883 OPENEXR_DELEGATE_TRUE
884 OPENEXR_LIBS
885 OPENEXR_CFLAGS
886 LQR_DELEGATE_FALSE
887 LQR_DELEGATE_TRUE
888 LQR_LIBS
889 LQR_CFLAGS
890 LCMS_LIBS
891 LCMS_DELEGATE_FALSE
892 LCMS_DELEGATE_TRUE
893 JP2_LIBS
894 JP2_DELEGATE_FALSE
895 JP2_DELEGATE_TRUE
896 JPEG_LIBS
897 JPEG_DELEGATE_FALSE
898 JPEG_DELEGATE_TRUE
899 JBIG_LIBS
900 JBIG_DELEGATE_FALSE
901 JBIG_DELEGATE_TRUE
902 GVC_DELEGATE_FALSE
903 GVC_DELEGATE_TRUE
904 GVC_LIBS
905 GVC_CFLAGS
906 GS_LIBS
907 GS_DELEGATE_FALSE
908 GS_DELEGATE_TRUE
909 FREETYPE_LIBS
910 FREETYPE_DELEGATE_FALSE
911 FREETYPE_DELEGATE_TRUE
912 freetype_config
913 FONTCONFIG_DELEGATE_FALSE
914 FONTCONFIG_DELEGATE_TRUE
915 FONTCONFIG_LIBS
916 FONTCONFIG_CFLAGS
917 FPX_LIBS
918 FPX_DELEGATE_FALSE
919 FPX_DELEGATE_TRUE
920 FFTW_LIBS
921 FFTW_DELEGATE_FALSE
922 FFTW_DELEGATE_TRUE
923 DJVU_LIBS
924 DJVU_DELEGATE_FALSE
925 DJVU_DELEGATE_TRUE
926 DPS_LIBS
927 DPS_DELEGATE_FALSE
928 DPS_DELEGATE_TRUE
929 AUTOTRACE_DELEGATE_FALSE
930 AUTOTRACE_DELEGATE_TRUE
931 AUTOTRACE_LIBS
932 AUTOTRACE_CFLAGS
933 LIB_DL
934 ZLIB_LIBS
935 ZLIB_DELEGATE_FALSE
936 ZLIB_DELEGATE_TRUE
937 XEXT_LIBS
938 X11_LIBS
939 X11_DELEGATE_FALSE
940 X11_DELEGATE_TRUE
941 X_EXTRA_LIBS
942 X_LIBS
943 X_PRE_LIBS
944 X_CFLAGS
945 XMKMF
946 BZLIB_LIBS
947 BZLIB_DELEGATE_FALSE
948 BZLIB_DELEGATE_TRUE
949 MATH_LIBS
950 CCMALLOCDelegate
951 UMEM_LIBS
952 HasUMEM_FALSE
953 HasUMEM_TRUE
954 THREAD_LIBS
955 GOMP_LIBS
956 WITH_MAGICK_PLUS_PLUS_FALSE
957 WITH_MAGICK_PLUS_PLUS_TRUE
958 OPENMP_CXXFLAGS
959 POW_LIB
960 LIBOBJS
961 UINTPTR_T
962 UINTMAX_T
963 UINT64_T
964 INT64_T
965 UINT32_T
966 INT32_T
967 UINT16_T
968 INT16_T
969 UINT8_T
970 INT8_T
971 LIBRARY_EXTRA_CPPFLAGS
972 MODULE_EXTRA_CPPFLAGS
973 LIBSTDCLDFLAGS
974 PERL_MAKE_OPTIONS
975 QUANTUM_DEPTH
976 MAINT
977 MAINTAINER_MODE_FALSE
978 MAINTAINER_MODE_TRUE
979 MAGICK_HDRI
980 DLLDFLAGS
981 WITH_LTDL_FALSE
982 WITH_LTDL_TRUE
983 WITH_MODULES_FALSE
984 WITH_MODULES_TRUE
985 LTCXXLIBOPTS
986 LTDLOPEN
987 LT_CONFIG_H
988 CONVENIENCE_LTDL_FALSE
989 CONVENIENCE_LTDL_TRUE
990 INSTALL_LTDL_FALSE
991 INSTALL_LTDL_TRUE
992 ARGZ_H
993 sys_symbol_underscore
994 LIBADD_DL
995 LT_DLPREOPEN
996 LIBADD_DLD_LINK
997 LIBADD_SHL_LOAD
998 LIBADD_DLOPEN
999 LT_DLLOADERS
1000 INCLTDL
1001 LTDLINCL
1002 LTDLDEPS
1003 LIBLTDL
1004 LIBTOOL_DEPS
1005 CXXCPP
1006 OTOOL64
1007 OTOOL
1008 LIPO
1009 NMEDIT
1010 DSYMUTIL
1011 lt_ECHO
1012 AR
1013 NM
1014 ac_ct_DUMPBIN
1015 DUMPBIN
1016 LIBTOOL
1017 OBJDUMP
1018 DLLTOOL
1019 AS
1020 LFS_CPPFLAGS
1021 CL_LIBS
1022 CL_CFLAGS
1023 OPENMP_CFLAGS
1024 PTHREAD_CFLAGS
1025 PTHREAD_LIBS
1026 PTHREAD_CC
1027 acx_pthread_config
1028 WinPathScript
1029 USING_CL_FALSE
1030 USING_CL_TRUE
1031 CYGWIN_BUILD_FALSE
1032 CYGWIN_BUILD_TRUE
1033 WIN32_NATIVE_BUILD_FALSE
1034 WIN32_NATIVE_BUILD_TRUE
1035 WINGDI32_DELEGATE_FALSE
1036 WINGDI32_DELEGATE_TRUE
1037 GDI32_LIBS
1038 PKG_CONFIG
1039 LN_S
1040 RANLIB
1041 LD
1042 FGREP
1043 EGREP
1044 GREP
1045 SED
1046 CPP
1047 am__fastdepCXX_FALSE
1048 am__fastdepCXX_TRUE
1049 CXXDEPMODE
1050 ac_ct_CXX
1051 CXXFLAGS
1052 CXX
1053 am__fastdepCC_FALSE
1054 am__fastdepCC_TRUE
1055 CCDEPMODE
1056 AMDEPBACKSLASH
1057 AMDEP_FALSE
1058 AMDEP_TRUE
1059 am__quote
1060 am__include
1061 DEPDIR
1062 OBJEXT
1063 EXEEXT
1064 ac_ct_CC
1065 CPPFLAGS
1066 LDFLAGS
1067 CFLAGS
1068 CC
1069 DIRSEP
1070 MAGICK_FILTER_MODULE_PATH
1071 MAGICK_CONFIGURE_BUILD_PATH
1072 MAGICK_CONFIGURE_SRC_PATH
1073 MAGICK_CODER_MODULE_PATH
1074 MAN_DIR
1075 INFO_DIR
1076 PERSISTINCLUDE_DIR
1077 INCLUDE_DIR
1078 LIB_DIR
1079 LOCALSTATE_DIR
1080 SHAREDSTATE_DIR
1081 SYSCONF_DIR
1082 DATA_DIR
1083 LIBEXEC_DIR
1084 SBIN_DIR
1085 BIN_DIR
1086 EXEC_PREFIX_DIR
1087 PREFIX_DIR
1088 CONFIG_STATUS_DEPENDENCIES
1089 MAGICK_LIB_VERSION_NUMBER
1090 MAGICK_LIB_VERSION_TEXT
1091 MAGICK_LIB_VERSION
1092 AM_BACKSLASH
1093 AM_DEFAULT_VERBOSITY
1094 am__untar
1095 am__tar
1096 AMTAR
1097 am__leading_dot
1098 SET_MAKE
1099 AWK
1100 mkdir_p
1101 MKDIR_P
1102 INSTALL_STRIP_PROGRAM
1103 STRIP
1104 install_sh
1105 MAKEINFO
1106 AUTOHEADER
1107 AUTOMAKE
1108 AUTOCONF
1109 ACLOCAL
1110 VERSION
1111 PACKAGE
1112 CYGPATH_W
1113 am__isrc
1114 INSTALL_DATA
1115 INSTALL_SCRIPT
1116 INSTALL_PROGRAM
1117 PACKAGE_LIB_SUBVERSION
1118 PACKAGE_RELEASE_DATE
1119 PACKAGE_LIB_VERSION_NUMBER
1120 PACKAGE_LIB_VERSION
1121 PACKAGE_CHANGE_DATE
1122 PACKAGE_RELEASE
1123 MAGICK_LIBRARY_AGE
1124 MAGICK_LIBRARY_REVISION
1125 MAGICK_LIBRARY_CURRENT
1126 target_os
1127 target_vendor
1128 target_cpu
1129 target
1130 host_os
1131 host_vendor
1132 host_cpu
1133 host
1134 build_os
1135 build_vendor
1136 build_cpu
1137 build
1138 CONFIGURE_ARGS
1139 DISTCHECK_CONFIG_FLAGS
1140 target_alias
1141 host_alias
1142 build_alias
1143 LIBS
1144 ECHO_T
1145 ECHO_N
1146 ECHO_C
1147 DEFS
1148 mandir
1149 localedir
1150 libdir
1151 psdir
1152 pdfdir
1153 dvidir
1154 htmldir
1155 infodir
1156 docdir
1157 oldincludedir
1158 includedir
1159 localstatedir
1160 sharedstatedir
1161 sysconfdir
1162 datadir
1163 datarootdir
1164 libexecdir
1165 sbindir
1166 bindir
1167 program_transform_name
1168 prefix
1169 exec_prefix
1170 PACKAGE_URL
1171 PACKAGE_BUGREPORT
1172 PACKAGE_STRING
1173 PACKAGE_VERSION
1174 PACKAGE_TARNAME
1175 PACKAGE_NAME
1176 PATH_SEPARATOR
1177 SHELL'
1178 ac_subst_files=''
1179 ac_user_opts='
1180 enable_option_checking
1181 enable_silent_rules
1182 enable_dependency_tracking
1183 with_gnu_ld
1184 with_maximum_compile_warnings
1185 with_dmalloc
1186 enable_bounds_checking
1187 enable_osx_universal_binary
1188 with_threads
1189 enable_openmp
1190 enable_largefile
1191 enable_shared
1192 enable_static
1193 with_pic
1194 enable_fast_install
1195 enable_libtool_lock
1196 with_included_ltdl
1197 with_ltdl_include
1198 with_ltdl_lib
1199 enable_ltdl_install
1200 with_modules
1201 enable_delegate_build
1202 enable_deprecated
1203 enable_installed
1204 enable_cipher
1205 enable_embeddable
1206 enable_hdri
1207 enable_assert
1208 enable_maintainer_mode
1209 enable_ccmalloc
1210 enable_efence
1211 enable_prof
1212 enable_gprof
1213 enable_gcov
1214 with_method_prefix
1215 with_quantum_depth
1216 with_cache
1217 with_frozenpaths
1218 with_magick_plus_plus
1219 with_perl
1220 with_perl_options
1221 with_umem
1222 with_libstdc
1223 with_bzlib
1224 with_x
1225 with_zlib
1226 with_autotrace
1227 with_dps
1228 with_djvu
1229 with_fftw
1230 with_fpx
1231 with_fontconfig
1232 with_freetype
1233 with_gslib
1234 with_fontpath
1235 with_gs_font_dir
1236 with_gvc
1237 with_jbig
1238 with_jpeg
1239 with_jp2
1240 with_lcms
1241 with_lqr
1242 with_openexr
1243 with_png
1244 with_rsvg
1245 with_tiff
1246 with_windows_font_dir
1247 with_wmf
1248 with_xml
1249 '
1250       ac_precious_vars='build_alias
1251 host_alias
1252 target_alias
1253 CC
1254 CFLAGS
1255 LDFLAGS
1256 LIBS
1257 CPPFLAGS
1258 CXX
1259 CXXFLAGS
1260 CCC
1261 CPP
1262 PKG_CONFIG
1263 CXXCPP
1264 XMKMF
1265 AUTOTRACE_CFLAGS
1266 AUTOTRACE_LIBS
1267 FONTCONFIG_CFLAGS
1268 FONTCONFIG_LIBS
1269 GVC_CFLAGS
1270 GVC_LIBS
1271 LQR_CFLAGS
1272 LQR_LIBS
1273 OPENEXR_CFLAGS
1274 OPENEXR_LIBS
1275 RSVG_CFLAGS
1276 RSVG_LIBS
1277 CAIRO_SVG_CFLAGS
1278 CAIRO_SVG_LIBS'
1279
1280
1281 # Initialize some variables set by options.
1282 ac_init_help=
1283 ac_init_version=false
1284 ac_unrecognized_opts=
1285 ac_unrecognized_sep=
1286 # The variables have the same names as the options, with
1287 # dashes changed to underlines.
1288 cache_file=/dev/null
1289 exec_prefix=NONE
1290 no_create=
1291 no_recursion=
1292 prefix=NONE
1293 program_prefix=NONE
1294 program_suffix=NONE
1295 program_transform_name=s,x,x,
1296 silent=
1297 site=
1298 srcdir=
1299 verbose=
1300 x_includes=NONE
1301 x_libraries=NONE
1302
1303 # Installation directory options.
1304 # These are left unexpanded so users can "make install exec_prefix=/foo"
1305 # and all the variables that are supposed to be based on exec_prefix
1306 # by default will actually change.
1307 # Use braces instead of parens because sh, perl, etc. also accept them.
1308 # (The list follows the same order as the GNU Coding Standards.)
1309 bindir='${exec_prefix}/bin'
1310 sbindir='${exec_prefix}/sbin'
1311 libexecdir='${exec_prefix}/libexec'
1312 datarootdir='${prefix}/share'
1313 datadir='${datarootdir}'
1314 sysconfdir='${prefix}/etc'
1315 sharedstatedir='${prefix}/com'
1316 localstatedir='${prefix}/var'
1317 includedir='${prefix}/include'
1318 oldincludedir='/usr/include'
1319 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1320 infodir='${datarootdir}/info'
1321 htmldir='${docdir}'
1322 dvidir='${docdir}'
1323 pdfdir='${docdir}'
1324 psdir='${docdir}'
1325 libdir='${exec_prefix}/lib'
1326 localedir='${datarootdir}/locale'
1327 mandir='${datarootdir}/man'
1328
1329 ac_prev=
1330 ac_dashdash=
1331 for ac_option
1332 do
1333   # If the previous option needs an argument, assign it.
1334   if test -n "$ac_prev"; then
1335     eval $ac_prev=\$ac_option
1336     ac_prev=
1337     continue
1338   fi
1339
1340   case $ac_option in
1341   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1342   *)    ac_optarg=yes ;;
1343   esac
1344
1345   # Accept the important Cygnus configure options, so we can diagnose typos.
1346
1347   case $ac_dashdash$ac_option in
1348   --)
1349     ac_dashdash=yes ;;
1350
1351   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1352     ac_prev=bindir ;;
1353   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1354     bindir=$ac_optarg ;;
1355
1356   -build | --build | --buil | --bui | --bu)
1357     ac_prev=build_alias ;;
1358   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1359     build_alias=$ac_optarg ;;
1360
1361   -cache-file | --cache-file | --cache-fil | --cache-fi \
1362   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1363     ac_prev=cache_file ;;
1364   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1365   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1366     cache_file=$ac_optarg ;;
1367
1368   --config-cache | -C)
1369     cache_file=config.cache ;;
1370
1371   -datadir | --datadir | --datadi | --datad)
1372     ac_prev=datadir ;;
1373   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1374     datadir=$ac_optarg ;;
1375
1376   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1377   | --dataroo | --dataro | --datar)
1378     ac_prev=datarootdir ;;
1379   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1380   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1381     datarootdir=$ac_optarg ;;
1382
1383   -disable-* | --disable-*)
1384     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1385     # Reject names that are not valid shell variable names.
1386     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1387       as_fn_error "invalid feature name: $ac_useropt"
1388     ac_useropt_orig=$ac_useropt
1389     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1390     case $ac_user_opts in
1391       *"
1392 "enable_$ac_useropt"
1393 "*) ;;
1394       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1395          ac_unrecognized_sep=', ';;
1396     esac
1397     eval enable_$ac_useropt=no ;;
1398
1399   -docdir | --docdir | --docdi | --doc | --do)
1400     ac_prev=docdir ;;
1401   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1402     docdir=$ac_optarg ;;
1403
1404   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1405     ac_prev=dvidir ;;
1406   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1407     dvidir=$ac_optarg ;;
1408
1409   -enable-* | --enable-*)
1410     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1411     # Reject names that are not valid shell variable names.
1412     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1413       as_fn_error "invalid feature name: $ac_useropt"
1414     ac_useropt_orig=$ac_useropt
1415     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1416     case $ac_user_opts in
1417       *"
1418 "enable_$ac_useropt"
1419 "*) ;;
1420       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1421          ac_unrecognized_sep=', ';;
1422     esac
1423     eval enable_$ac_useropt=\$ac_optarg ;;
1424
1425   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1426   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1427   | --exec | --exe | --ex)
1428     ac_prev=exec_prefix ;;
1429   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1430   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1431   | --exec=* | --exe=* | --ex=*)
1432     exec_prefix=$ac_optarg ;;
1433
1434   -gas | --gas | --ga | --g)
1435     # Obsolete; use --with-gas.
1436     with_gas=yes ;;
1437
1438   -help | --help | --hel | --he | -h)
1439     ac_init_help=long ;;
1440   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1441     ac_init_help=recursive ;;
1442   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1443     ac_init_help=short ;;
1444
1445   -host | --host | --hos | --ho)
1446     ac_prev=host_alias ;;
1447   -host=* | --host=* | --hos=* | --ho=*)
1448     host_alias=$ac_optarg ;;
1449
1450   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1451     ac_prev=htmldir ;;
1452   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1453   | --ht=*)
1454     htmldir=$ac_optarg ;;
1455
1456   -includedir | --includedir | --includedi | --included | --include \
1457   | --includ | --inclu | --incl | --inc)
1458     ac_prev=includedir ;;
1459   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1460   | --includ=* | --inclu=* | --incl=* | --inc=*)
1461     includedir=$ac_optarg ;;
1462
1463   -infodir | --infodir | --infodi | --infod | --info | --inf)
1464     ac_prev=infodir ;;
1465   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1466     infodir=$ac_optarg ;;
1467
1468   -libdir | --libdir | --libdi | --libd)
1469     ac_prev=libdir ;;
1470   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1471     libdir=$ac_optarg ;;
1472
1473   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1474   | --libexe | --libex | --libe)
1475     ac_prev=libexecdir ;;
1476   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1477   | --libexe=* | --libex=* | --libe=*)
1478     libexecdir=$ac_optarg ;;
1479
1480   -localedir | --localedir | --localedi | --localed | --locale)
1481     ac_prev=localedir ;;
1482   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1483     localedir=$ac_optarg ;;
1484
1485   -localstatedir | --localstatedir | --localstatedi | --localstated \
1486   | --localstate | --localstat | --localsta | --localst | --locals)
1487     ac_prev=localstatedir ;;
1488   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1489   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1490     localstatedir=$ac_optarg ;;
1491
1492   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1493     ac_prev=mandir ;;
1494   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1495     mandir=$ac_optarg ;;
1496
1497   -nfp | --nfp | --nf)
1498     # Obsolete; use --without-fp.
1499     with_fp=no ;;
1500
1501   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1502   | --no-cr | --no-c | -n)
1503     no_create=yes ;;
1504
1505   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1506   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1507     no_recursion=yes ;;
1508
1509   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1510   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1511   | --oldin | --oldi | --old | --ol | --o)
1512     ac_prev=oldincludedir ;;
1513   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1514   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1515   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1516     oldincludedir=$ac_optarg ;;
1517
1518   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1519     ac_prev=prefix ;;
1520   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1521     prefix=$ac_optarg ;;
1522
1523   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1524   | --program-pre | --program-pr | --program-p)
1525     ac_prev=program_prefix ;;
1526   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1527   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1528     program_prefix=$ac_optarg ;;
1529
1530   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1531   | --program-suf | --program-su | --program-s)
1532     ac_prev=program_suffix ;;
1533   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1534   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1535     program_suffix=$ac_optarg ;;
1536
1537   -program-transform-name | --program-transform-name \
1538   | --program-transform-nam | --program-transform-na \
1539   | --program-transform-n | --program-transform- \
1540   | --program-transform | --program-transfor \
1541   | --program-transfo | --program-transf \
1542   | --program-trans | --program-tran \
1543   | --progr-tra | --program-tr | --program-t)
1544     ac_prev=program_transform_name ;;
1545   -program-transform-name=* | --program-transform-name=* \
1546   | --program-transform-nam=* | --program-transform-na=* \
1547   | --program-transform-n=* | --program-transform-=* \
1548   | --program-transform=* | --program-transfor=* \
1549   | --program-transfo=* | --program-transf=* \
1550   | --program-trans=* | --program-tran=* \
1551   | --progr-tra=* | --program-tr=* | --program-t=*)
1552     program_transform_name=$ac_optarg ;;
1553
1554   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1555     ac_prev=pdfdir ;;
1556   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1557     pdfdir=$ac_optarg ;;
1558
1559   -psdir | --psdir | --psdi | --psd | --ps)
1560     ac_prev=psdir ;;
1561   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1562     psdir=$ac_optarg ;;
1563
1564   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1565   | -silent | --silent | --silen | --sile | --sil)
1566     silent=yes ;;
1567
1568   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1569     ac_prev=sbindir ;;
1570   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1571   | --sbi=* | --sb=*)
1572     sbindir=$ac_optarg ;;
1573
1574   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1575   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1576   | --sharedst | --shareds | --shared | --share | --shar \
1577   | --sha | --sh)
1578     ac_prev=sharedstatedir ;;
1579   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1580   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1581   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1582   | --sha=* | --sh=*)
1583     sharedstatedir=$ac_optarg ;;
1584
1585   -site | --site | --sit)
1586     ac_prev=site ;;
1587   -site=* | --site=* | --sit=*)
1588     site=$ac_optarg ;;
1589
1590   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1591     ac_prev=srcdir ;;
1592   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1593     srcdir=$ac_optarg ;;
1594
1595   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1596   | --syscon | --sysco | --sysc | --sys | --sy)
1597     ac_prev=sysconfdir ;;
1598   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1599   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1600     sysconfdir=$ac_optarg ;;
1601
1602   -target | --target | --targe | --targ | --tar | --ta | --t)
1603     ac_prev=target_alias ;;
1604   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1605     target_alias=$ac_optarg ;;
1606
1607   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1608     verbose=yes ;;
1609
1610   -version | --version | --versio | --versi | --vers | -V)
1611     ac_init_version=: ;;
1612
1613   -with-* | --with-*)
1614     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1615     # Reject names that are not valid shell variable names.
1616     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1617       as_fn_error "invalid package name: $ac_useropt"
1618     ac_useropt_orig=$ac_useropt
1619     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1620     case $ac_user_opts in
1621       *"
1622 "with_$ac_useropt"
1623 "*) ;;
1624       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1625          ac_unrecognized_sep=', ';;
1626     esac
1627     eval with_$ac_useropt=\$ac_optarg ;;
1628
1629   -without-* | --without-*)
1630     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1631     # Reject names that are not valid shell variable names.
1632     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1633       as_fn_error "invalid package name: $ac_useropt"
1634     ac_useropt_orig=$ac_useropt
1635     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1636     case $ac_user_opts in
1637       *"
1638 "with_$ac_useropt"
1639 "*) ;;
1640       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1641          ac_unrecognized_sep=', ';;
1642     esac
1643     eval with_$ac_useropt=no ;;
1644
1645   --x)
1646     # Obsolete; use --with-x.
1647     with_x=yes ;;
1648
1649   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1650   | --x-incl | --x-inc | --x-in | --x-i)
1651     ac_prev=x_includes ;;
1652   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1653   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1654     x_includes=$ac_optarg ;;
1655
1656   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1657   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1658     ac_prev=x_libraries ;;
1659   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1660   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1661     x_libraries=$ac_optarg ;;
1662
1663   -*) as_fn_error "unrecognized option: \`$ac_option'
1664 Try \`$0 --help' for more information."
1665     ;;
1666
1667   *=*)
1668     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1669     # Reject names that are not valid shell variable names.
1670     case $ac_envvar in #(
1671       '' | [0-9]* | *[!_$as_cr_alnum]* )
1672       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1673     esac
1674     eval $ac_envvar=\$ac_optarg
1675     export $ac_envvar ;;
1676
1677   *)
1678     # FIXME: should be removed in autoconf 3.0.
1679     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1680     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1681       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1682     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1683     ;;
1684
1685   esac
1686 done
1687
1688 if test -n "$ac_prev"; then
1689   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1690   as_fn_error "missing argument to $ac_option"
1691 fi
1692
1693 if test -n "$ac_unrecognized_opts"; then
1694   case $enable_option_checking in
1695     no) ;;
1696     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1697     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1698   esac
1699 fi
1700
1701 # Check all directory arguments for consistency.
1702 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1703                 datadir sysconfdir sharedstatedir localstatedir includedir \
1704                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1705                 libdir localedir mandir
1706 do
1707   eval ac_val=\$$ac_var
1708   # Remove trailing slashes.
1709   case $ac_val in
1710     */ )
1711       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1712       eval $ac_var=\$ac_val;;
1713   esac
1714   # Be sure to have absolute directory names.
1715   case $ac_val in
1716     [\\/$]* | ?:[\\/]* )  continue;;
1717     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1718   esac
1719   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1720 done
1721
1722 # There might be people who depend on the old broken behavior: `$host'
1723 # used to hold the argument of --host etc.
1724 # FIXME: To remove some day.
1725 build=$build_alias
1726 host=$host_alias
1727 target=$target_alias
1728
1729 # FIXME: To remove some day.
1730 if test "x$host_alias" != x; then
1731   if test "x$build_alias" = x; then
1732     cross_compiling=maybe
1733     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1734     If a cross compiler is detected then cross compile mode will be used." >&2
1735   elif test "x$build_alias" != "x$host_alias"; then
1736     cross_compiling=yes
1737   fi
1738 fi
1739
1740 ac_tool_prefix=
1741 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1742
1743 test "$silent" = yes && exec 6>/dev/null
1744
1745
1746 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1747 ac_ls_di=`ls -di .` &&
1748 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1749   as_fn_error "working directory cannot be determined"
1750 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1751   as_fn_error "pwd does not report name of working directory"
1752
1753
1754 # Find the source files, if location was not specified.
1755 if test -z "$srcdir"; then
1756   ac_srcdir_defaulted=yes
1757   # Try the directory containing this script, then the parent directory.
1758   ac_confdir=`$as_dirname -- "$as_myself" ||
1759 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1760          X"$as_myself" : 'X\(//\)[^/]' \| \
1761          X"$as_myself" : 'X\(//\)$' \| \
1762          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1763 $as_echo X"$as_myself" |
1764     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1765             s//\1/
1766             q
1767           }
1768           /^X\(\/\/\)[^/].*/{
1769             s//\1/
1770             q
1771           }
1772           /^X\(\/\/\)$/{
1773             s//\1/
1774             q
1775           }
1776           /^X\(\/\).*/{
1777             s//\1/
1778             q
1779           }
1780           s/.*/./; q'`
1781   srcdir=$ac_confdir
1782   if test ! -r "$srcdir/$ac_unique_file"; then
1783     srcdir=..
1784   fi
1785 else
1786   ac_srcdir_defaulted=no
1787 fi
1788 if test ! -r "$srcdir/$ac_unique_file"; then
1789   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1790   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1791 fi
1792 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1793 ac_abs_confdir=`(
1794         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1795         pwd)`
1796 # When building in place, set srcdir=.
1797 if test "$ac_abs_confdir" = "$ac_pwd"; then
1798   srcdir=.
1799 fi
1800 # Remove unnecessary trailing slashes from srcdir.
1801 # Double slashes in file names in object file debugging info
1802 # mess up M-x gdb in Emacs.
1803 case $srcdir in
1804 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1805 esac
1806 for ac_var in $ac_precious_vars; do
1807   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1808   eval ac_env_${ac_var}_value=\$${ac_var}
1809   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1810   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1811 done
1812
1813 #
1814 # Report the --help message.
1815 #
1816 if test "$ac_init_help" = "long"; then
1817   # Omit some internal or obsolete options to make the list less imposing.
1818   # This message is too long to be a string in the A/UX 3.1 sh.
1819   cat <<_ACEOF
1820 \`configure' configures ImageMagick 6.5.8 to adapt to many kinds of systems.
1821
1822 Usage: $0 [OPTION]... [VAR=VALUE]...
1823
1824 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1825 VAR=VALUE.  See below for descriptions of some of the useful variables.
1826
1827 Defaults for the options are specified in brackets.
1828
1829 Configuration:
1830   -h, --help              display this help and exit
1831       --help=short        display options specific to this package
1832       --help=recursive    display the short help of all the included packages
1833   -V, --version           display version information and exit
1834   -q, --quiet, --silent   do not print \`checking...' messages
1835       --cache-file=FILE   cache test results in FILE [disabled]
1836   -C, --config-cache      alias for \`--cache-file=config.cache'
1837   -n, --no-create         do not create output files
1838       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1839
1840 Installation directories:
1841   --prefix=PREFIX         install architecture-independent files in PREFIX
1842                           [$ac_default_prefix]
1843   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1844                           [PREFIX]
1845
1846 By default, \`make install' will install all the files in
1847 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1848 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1849 for instance \`--prefix=\$HOME'.
1850
1851 For better control, use the options below.
1852
1853 Fine tuning of the installation directories:
1854   --bindir=DIR            user executables [EPREFIX/bin]
1855   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1856   --libexecdir=DIR        program executables [EPREFIX/libexec]
1857   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1858   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1859   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1860   --libdir=DIR            object code libraries [EPREFIX/lib]
1861   --includedir=DIR        C header files [PREFIX/include]
1862   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1863   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1864   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1865   --infodir=DIR           info documentation [DATAROOTDIR/info]
1866   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1867   --mandir=DIR            man documentation [DATAROOTDIR/man]
1868   --docdir=DIR            documentation root [DATAROOTDIR/doc/ImageMagick]
1869   --htmldir=DIR           html documentation [DOCDIR]
1870   --dvidir=DIR            dvi documentation [DOCDIR]
1871   --pdfdir=DIR            pdf documentation [DOCDIR]
1872   --psdir=DIR             ps documentation [DOCDIR]
1873 _ACEOF
1874
1875   cat <<\_ACEOF
1876
1877 Program names:
1878   --program-prefix=PREFIX            prepend PREFIX to installed program names
1879   --program-suffix=SUFFIX            append SUFFIX to installed program names
1880   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1881
1882 X features:
1883   --x-includes=DIR    X include files are in DIR
1884   --x-libraries=DIR   X library files are in DIR
1885
1886 System types:
1887   --build=BUILD     configure for building on BUILD [guessed]
1888   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1889   --target=TARGET   configure for building compilers for TARGET [HOST]
1890 _ACEOF
1891 fi
1892
1893 if test -n "$ac_init_help"; then
1894   case $ac_init_help in
1895      short | recursive ) echo "Configuration of ImageMagick 6.5.8:";;
1896    esac
1897   cat <<\_ACEOF
1898
1899 Optional Features:
1900   --disable-option-checking  ignore unrecognized --enable/--with options
1901   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1902   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1903   --enable-silent-rules          less verbose build output (undo: `make V=1')
1904   --disable-silent-rules         verbose build output (undo: `make V=0')
1905   --disable-dependency-tracking  speeds up one-time build
1906   --enable-dependency-tracking   do not reject slow dependency extractors
1907   --bounds-checking       enable run-time bounds-checking
1908   --enable-osx-universal-binary
1909                           build universal binary on OS X [[default=no]]
1910   --disable-openmp        do not use OpenMP
1911   --disable-largefile     omit support for large files
1912   --enable-shared[=PKGS]  build shared libraries [default=yes]
1913   --enable-static[=PKGS]  build static libraries [default=yes]
1914   --enable-fast-install[=PKGS]
1915                           optimize for fast installation [default=yes]
1916   --disable-libtool-lock  avoid locking (might break parallel builds)
1917   --enable-ltdl-install   install libltdl
1918   --enable-delegate-build look for delegate libraries in build directory
1919   --disable-deprecated    exclude deprecated methods in MagickCore and
1920                           MagickWand API's
1921   --disable-installed     Formally install ImageMagick under PREFIX
1922   --disable-cipher        disable enciphering and deciphering image pixels
1923   --enable-embeddable     enable self-contained, embeddable,
1924                           zero-configuration ImageMagick
1925   --enable-hdri           accurately represent the wide range of intensity
1926                           levels found in real scenes
1927   --disable-assert        disable assert() statements in build
1928   --enable-maintainer-mode  enable make rules and dependencies not useful
1929                           (and sometimes confusing) to the casual installer
1930   --enable-ccmalloc       enable 'ccmalloc' memory debug support
1931   --enable-efence         enable 'efence' memory debug support
1932   --enable-prof           enable 'prof' profiling support
1933   --enable-gprof          enable 'gprof' profiling support
1934   --enable-gcov           enable 'gcov' profiling support
1935
1936 Optional Packages:
1937   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1938   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1939   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1940   --without-maximum-compile-warnings
1941                           Disable maximum warning verbosity
1942   --with-dmalloc          use dmalloc, as in
1943                           http://www.dmalloc.com/dmalloc.tar.gz
1944   --without-threads       disable threads support
1945   --with-pic              try to use only PIC/non-PIC objects [default=use
1946                           both]
1947   --with-included-ltdl    use the GNU ltdl sources included here
1948   --with-ltdl-include=DIR use the ltdl headers installed in DIR
1949   --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1950   --with-modules          enable building dynamically loadable modules
1951   --with-method-prefix=PREFIX
1952                           prefix MagickCore API methods
1953   --with-quantum-depth=DEPTH
1954                           number of bits in a pixel quantum (default 16)
1955   --with-cache=THRESHOLD  set pixel cache threshhold in MB (default available
1956                           memory)
1957   --with-frozenpaths      freeze delegate paths
1958   --without-magick-plus-plus
1959                           disable build/install of Magick++
1960   --with-perl             enable build/install of PerlMagick
1961   --with-perl-options=OPTIONS
1962                           options to pass on command-line when generating
1963                           PerlMagick's build file
1964   --with-umem             enable umem memory allocation library support
1965   --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++)
1966   --without-bzlib         disable BZLIB support
1967   --with-x                use the X Window System
1968   --without-zlib          disable ZLIB support
1969   --with-autotrace        enable autotrace support
1970   --without-dps           disable Display Postscript support
1971   --without-djvu          disable DjVu support
1972   --without-fftw          disable FFTW support
1973   --without-fpx           disable FlashPIX support
1974   --without-fontconfig    disable fontconfig support
1975   --without-freetype      disable Freetype support
1976   --without-gslib         enable Ghostscript library support
1977   --with-fontpath=DIR     prepend to default font search path
1978   --with-gs-font-dir=DIR  Ghostscript font directory
1979   --without-gvc           disable GVC support
1980   --without-jbig          disable JBIG support
1981   --without-jpeg          disable JPEG support
1982   --without-jp2           disable JPEG-2000 support
1983   --without-lcms          disable LCMS support
1984   --without-lqr           disable Liquid Rescale support (experimental)
1985   --without-openexr       disable OpenEXR support
1986   --without-png           disable PNG support
1987   --without-rsvg          disable RSVG support
1988   --without-tiff          disable TIFF support
1989   --with-windows-font-dir=DIR
1990                           directory containing MS-Windows fonts
1991   --without-wmf           disable WMF support
1992   --without-xml           disable XML support
1993
1994 Some influential environment variables:
1995   CC          C compiler command
1996   CFLAGS      C compiler flags
1997   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1998               nonstandard directory <lib dir>
1999   LIBS        libraries to pass to the linker, e.g. -l<library>
2000   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2001               you have headers in a nonstandard directory <include dir>
2002   CXX         C++ compiler command
2003   CXXFLAGS    C++ compiler flags
2004   CPP         C preprocessor
2005   PKG_CONFIG  path to pkg-config utility
2006   CXXCPP      C++ preprocessor
2007   XMKMF       Path to xmkmf, Makefile generator for X Window System
2008   AUTOTRACE_CFLAGS
2009               C compiler flags for AUTOTRACE, overriding pkg-config
2010   AUTOTRACE_LIBS
2011               linker flags for AUTOTRACE, overriding pkg-config
2012   FONTCONFIG_CFLAGS
2013               C compiler flags for FONTCONFIG, overriding pkg-config
2014   FONTCONFIG_LIBS
2015               linker flags for FONTCONFIG, overriding pkg-config
2016   GVC_CFLAGS  C compiler flags for GVC, overriding pkg-config
2017   GVC_LIBS    linker flags for GVC, overriding pkg-config
2018   LQR_CFLAGS  C compiler flags for LQR, overriding pkg-config
2019   LQR_LIBS    linker flags for LQR, overriding pkg-config
2020   OPENEXR_CFLAGS
2021               C compiler flags for OPENEXR, overriding pkg-config
2022   OPENEXR_LIBS
2023               linker flags for OPENEXR, overriding pkg-config
2024   RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2025   RSVG_LIBS   linker flags for RSVG, overriding pkg-config
2026   CAIRO_SVG_CFLAGS
2027               C compiler flags for CAIRO_SVG, overriding pkg-config
2028   CAIRO_SVG_LIBS
2029               linker flags for CAIRO_SVG, overriding pkg-config
2030
2031 Use these variables to override the choices made by `configure' or to help
2032 it to find libraries and programs with nonstandard names/locations.
2033
2034 Report bugs to <http://www.imagemagick.org>.
2035 _ACEOF
2036 ac_status=$?
2037 fi
2038
2039 if test "$ac_init_help" = "recursive"; then
2040   # If there are subdirs, report their specific --help.
2041   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2042     test -d "$ac_dir" ||
2043       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2044       continue
2045     ac_builddir=.
2046
2047 case "$ac_dir" in
2048 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2049 *)
2050   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2051   # A ".." for each directory in $ac_dir_suffix.
2052   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2053   case $ac_top_builddir_sub in
2054   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2055   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2056   esac ;;
2057 esac
2058 ac_abs_top_builddir=$ac_pwd
2059 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2060 # for backward compatibility:
2061 ac_top_builddir=$ac_top_build_prefix
2062
2063 case $srcdir in
2064   .)  # We are building in place.
2065     ac_srcdir=.
2066     ac_top_srcdir=$ac_top_builddir_sub
2067     ac_abs_top_srcdir=$ac_pwd ;;
2068   [\\/]* | ?:[\\/]* )  # Absolute name.
2069     ac_srcdir=$srcdir$ac_dir_suffix;
2070     ac_top_srcdir=$srcdir
2071     ac_abs_top_srcdir=$srcdir ;;
2072   *) # Relative name.
2073     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2074     ac_top_srcdir=$ac_top_build_prefix$srcdir
2075     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2076 esac
2077 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2078
2079     cd "$ac_dir" || { ac_status=$?; continue; }
2080     # Check for guested configure.
2081     if test -f "$ac_srcdir/configure.gnu"; then
2082       echo &&
2083       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2084     elif test -f "$ac_srcdir/configure"; then
2085       echo &&
2086       $SHELL "$ac_srcdir/configure" --help=recursive
2087     else
2088       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2089     fi || ac_status=$?
2090     cd "$ac_pwd" || { ac_status=$?; break; }
2091   done
2092 fi
2093
2094 test -n "$ac_init_help" && exit $ac_status
2095 if $ac_init_version; then
2096   cat <<\_ACEOF
2097 ImageMagick configure 6.5.8
2098 generated by GNU Autoconf 2.65
2099
2100 Copyright (C) 2009 Free Software Foundation, Inc.
2101 This configure script is free software; the Free Software Foundation
2102 gives unlimited permission to copy, distribute and modify it.
2103 _ACEOF
2104   exit
2105 fi
2106
2107 ## ------------------------ ##
2108 ## Autoconf initialization. ##
2109 ## ------------------------ ##
2110
2111 # ac_fn_c_try_compile LINENO
2112 # --------------------------
2113 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2114 ac_fn_c_try_compile ()
2115 {
2116   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117   rm -f conftest.$ac_objext
2118   if { { ac_try="$ac_compile"
2119 case "(($ac_try" in
2120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121   *) ac_try_echo=$ac_try;;
2122 esac
2123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2124 $as_echo "$ac_try_echo"; } >&5
2125   (eval "$ac_compile") 2>conftest.err
2126   ac_status=$?
2127   if test -s conftest.err; then
2128     grep -v '^ *+' conftest.err >conftest.er1
2129     cat conftest.er1 >&5
2130     mv -f conftest.er1 conftest.err
2131   fi
2132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2133   test $ac_status = 0; } && {
2134          test -z "$ac_c_werror_flag" ||
2135          test ! -s conftest.err
2136        } && test -s conftest.$ac_objext; then :
2137   ac_retval=0
2138 else
2139   $as_echo "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.$ac_ext >&5
2141
2142         ac_retval=1
2143 fi
2144   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2145   as_fn_set_status $ac_retval
2146
2147 } # ac_fn_c_try_compile
2148
2149 # ac_fn_cxx_try_compile LINENO
2150 # ----------------------------
2151 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2152 ac_fn_cxx_try_compile ()
2153 {
2154   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155   rm -f conftest.$ac_objext
2156   if { { ac_try="$ac_compile"
2157 case "(($ac_try" in
2158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159   *) ac_try_echo=$ac_try;;
2160 esac
2161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2162 $as_echo "$ac_try_echo"; } >&5
2163   (eval "$ac_compile") 2>conftest.err
2164   ac_status=$?
2165   if test -s conftest.err; then
2166     grep -v '^ *+' conftest.err >conftest.er1
2167     cat conftest.er1 >&5
2168     mv -f conftest.er1 conftest.err
2169   fi
2170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2171   test $ac_status = 0; } && {
2172          test -z "$ac_cxx_werror_flag" ||
2173          test ! -s conftest.err
2174        } && test -s conftest.$ac_objext; then :
2175   ac_retval=0
2176 else
2177   $as_echo "$as_me: failed program was:" >&5
2178 sed 's/^/| /' conftest.$ac_ext >&5
2179
2180         ac_retval=1
2181 fi
2182   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2183   as_fn_set_status $ac_retval
2184
2185 } # ac_fn_cxx_try_compile
2186
2187 # ac_fn_c_try_cpp LINENO
2188 # ----------------------
2189 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2190 ac_fn_c_try_cpp ()
2191 {
2192   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193   if { { ac_try="$ac_cpp conftest.$ac_ext"
2194 case "(($ac_try" in
2195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2196   *) ac_try_echo=$ac_try;;
2197 esac
2198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199 $as_echo "$ac_try_echo"; } >&5
2200   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2201   ac_status=$?
2202   if test -s conftest.err; then
2203     grep -v '^ *+' conftest.err >conftest.er1
2204     cat conftest.er1 >&5
2205     mv -f conftest.er1 conftest.err
2206   fi
2207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208   test $ac_status = 0; } >/dev/null && {
2209          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2210          test ! -s conftest.err
2211        }; then :
2212   ac_retval=0
2213 else
2214   $as_echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2216
2217     ac_retval=1
2218 fi
2219   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2220   as_fn_set_status $ac_retval
2221
2222 } # ac_fn_c_try_cpp
2223
2224 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2225 # -------------------------------------------------------
2226 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2227 # the include files in INCLUDES and setting the cache variable VAR
2228 # accordingly.
2229 ac_fn_c_check_header_mongrel ()
2230 {
2231   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234 $as_echo_n "checking for $2... " >&6; }
2235 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2236   $as_echo_n "(cached) " >&6
2237 fi
2238 eval ac_res=\$$3
2239                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240 $as_echo "$ac_res" >&6; }
2241 else
2242   # Is the header compilable?
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2244 $as_echo_n "checking $2 usability... " >&6; }
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h.  */
2247 $4
2248 #include <$2>
2249 _ACEOF
2250 if ac_fn_c_try_compile "$LINENO"; then :
2251   ac_header_compiler=yes
2252 else
2253   ac_header_compiler=no
2254 fi
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2257 $as_echo "$ac_header_compiler" >&6; }
2258
2259 # Is the header present?
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2261 $as_echo_n "checking $2 presence... " >&6; }
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h.  */
2264 #include <$2>
2265 _ACEOF
2266 if ac_fn_c_try_cpp "$LINENO"; then :
2267   ac_header_preproc=yes
2268 else
2269   ac_header_preproc=no
2270 fi
2271 rm -f conftest.err conftest.$ac_ext
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2273 $as_echo "$ac_header_preproc" >&6; }
2274
2275 # So?  What about this header?
2276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2277   yes:no: )
2278     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2279 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2280     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2281 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2282     ;;
2283   no:yes:* )
2284     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2285 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2286     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2287 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2288     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2289 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2290     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2291 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2292     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2293 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2294 ( cat <<\_ASBOX
2295 ## ----------------------------------------- ##
2296 ## Report this to http://www.imagemagick.org ##
2297 ## ----------------------------------------- ##
2298 _ASBOX
2299      ) | sed "s/^/$as_me: WARNING:     /" >&2
2300     ;;
2301 esac
2302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2303 $as_echo_n "checking for $2... " >&6; }
2304 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2305   $as_echo_n "(cached) " >&6
2306 else
2307   eval "$3=\$ac_header_compiler"
2308 fi
2309 eval ac_res=\$$3
2310                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2312 fi
2313   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2314
2315 } # ac_fn_c_check_header_mongrel
2316
2317 # ac_fn_c_try_run LINENO
2318 # ----------------------
2319 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2320 # that executables *can* be run.
2321 ac_fn_c_try_run ()
2322 {
2323   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324   if { { ac_try="$ac_link"
2325 case "(($ac_try" in
2326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327   *) ac_try_echo=$ac_try;;
2328 esac
2329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2330 $as_echo "$ac_try_echo"; } >&5
2331   (eval "$ac_link") 2>&5
2332   ac_status=$?
2333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2334   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2335   { { case "(($ac_try" in
2336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337   *) ac_try_echo=$ac_try;;
2338 esac
2339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2340 $as_echo "$ac_try_echo"; } >&5
2341   (eval "$ac_try") 2>&5
2342   ac_status=$?
2343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344   test $ac_status = 0; }; }; then :
2345   ac_retval=0
2346 else
2347   $as_echo "$as_me: program exited with status $ac_status" >&5
2348        $as_echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2350
2351        ac_retval=$ac_status
2352 fi
2353   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2354   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2355   as_fn_set_status $ac_retval
2356
2357 } # ac_fn_c_try_run
2358
2359 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2360 # -------------------------------------------------------
2361 # Tests whether HEADER exists and can be compiled using the include files in
2362 # INCLUDES, setting the cache variable VAR accordingly.
2363 ac_fn_c_check_header_compile ()
2364 {
2365   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2367 $as_echo_n "checking for $2... " >&6; }
2368 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2369   $as_echo_n "(cached) " >&6
2370 else
2371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h.  */
2373 $4
2374 #include <$2>
2375 _ACEOF
2376 if ac_fn_c_try_compile "$LINENO"; then :
2377   eval "$3=yes"
2378 else
2379   eval "$3=no"
2380 fi
2381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382 fi
2383 eval ac_res=\$$3
2384                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2385 $as_echo "$ac_res" >&6; }
2386   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2387
2388 } # ac_fn_c_check_header_compile
2389
2390 # ac_fn_c_try_link LINENO
2391 # -----------------------
2392 # Try to link conftest.$ac_ext, and return whether this succeeded.
2393 ac_fn_c_try_link ()
2394 {
2395   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2396   rm -f conftest.$ac_objext conftest$ac_exeext
2397   if { { ac_try="$ac_link"
2398 case "(($ac_try" in
2399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400   *) ac_try_echo=$ac_try;;
2401 esac
2402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2403 $as_echo "$ac_try_echo"; } >&5
2404   (eval "$ac_link") 2>conftest.err
2405   ac_status=$?
2406   if test -s conftest.err; then
2407     grep -v '^ *+' conftest.err >conftest.er1
2408     cat conftest.er1 >&5
2409     mv -f conftest.er1 conftest.err
2410   fi
2411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2412   test $ac_status = 0; } && {
2413          test -z "$ac_c_werror_flag" ||
2414          test ! -s conftest.err
2415        } && test -s conftest$ac_exeext && {
2416          test "$cross_compiling" = yes ||
2417          $as_test_x conftest$ac_exeext
2418        }; then :
2419   ac_retval=0
2420 else
2421   $as_echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2423
2424         ac_retval=1
2425 fi
2426   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2427   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2428   # interfere with the next link command; also delete a directory that is
2429   # left behind by Apple's compiler.  We do this before executing the actions.
2430   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2431   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2432   as_fn_set_status $ac_retval
2433
2434 } # ac_fn_c_try_link
2435
2436 # ac_fn_c_check_func LINENO FUNC VAR
2437 # ----------------------------------
2438 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2439 ac_fn_c_check_func ()
2440 {
2441   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2443 $as_echo_n "checking for $2... " >&6; }
2444 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2445   $as_echo_n "(cached) " >&6
2446 else
2447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h.  */
2449 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2451 #define $2 innocuous_$2
2452
2453 /* System header to define __stub macros and hopefully few prototypes,
2454     which can conflict with char $2 (); below.
2455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2456     <limits.h> exists even on freestanding compilers.  */
2457
2458 #ifdef __STDC__
2459 # include <limits.h>
2460 #else
2461 # include <assert.h>
2462 #endif
2463
2464 #undef $2
2465
2466 /* Override any GCC internal prototype to avoid an error.
2467    Use char because int might match the return type of a GCC
2468    builtin and then its argument prototype would still apply.  */
2469 #ifdef __cplusplus
2470 extern "C"
2471 #endif
2472 char $2 ();
2473 /* The GNU C library defines this for functions which it implements
2474     to always fail with ENOSYS.  Some functions are actually named
2475     something starting with __ and the normal name is an alias.  */
2476 #if defined __stub_$2 || defined __stub___$2
2477 choke me
2478 #endif
2479
2480 int
2481 main ()
2482 {
2483 return $2 ();
2484   ;
2485   return 0;
2486 }
2487 _ACEOF
2488 if ac_fn_c_try_link "$LINENO"; then :
2489   eval "$3=yes"
2490 else
2491   eval "$3=no"
2492 fi
2493 rm -f core conftest.err conftest.$ac_objext \
2494     conftest$ac_exeext conftest.$ac_ext
2495 fi
2496 eval ac_res=\$$3
2497                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2498 $as_echo "$ac_res" >&6; }
2499   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2500
2501 } # ac_fn_c_check_func
2502
2503 # ac_fn_cxx_try_cpp LINENO
2504 # ------------------------
2505 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2506 ac_fn_cxx_try_cpp ()
2507 {
2508   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2509   if { { ac_try="$ac_cpp conftest.$ac_ext"
2510 case "(($ac_try" in
2511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512   *) ac_try_echo=$ac_try;;
2513 esac
2514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2515 $as_echo "$ac_try_echo"; } >&5
2516   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2517   ac_status=$?
2518   if test -s conftest.err; then
2519     grep -v '^ *+' conftest.err >conftest.er1
2520     cat conftest.er1 >&5
2521     mv -f conftest.er1 conftest.err
2522   fi
2523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2524   test $ac_status = 0; } >/dev/null && {
2525          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2526          test ! -s conftest.err
2527        }; then :
2528   ac_retval=0
2529 else
2530   $as_echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.$ac_ext >&5
2532
2533     ac_retval=1
2534 fi
2535   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2536   as_fn_set_status $ac_retval
2537
2538 } # ac_fn_cxx_try_cpp
2539
2540 # ac_fn_cxx_try_link LINENO
2541 # -------------------------
2542 # Try to link conftest.$ac_ext, and return whether this succeeded.
2543 ac_fn_cxx_try_link ()
2544 {
2545   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2546   rm -f conftest.$ac_objext conftest$ac_exeext
2547   if { { ac_try="$ac_link"
2548 case "(($ac_try" in
2549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550   *) ac_try_echo=$ac_try;;
2551 esac
2552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2553 $as_echo "$ac_try_echo"; } >&5
2554   (eval "$ac_link") 2>conftest.err
2555   ac_status=$?
2556   if test -s conftest.err; then
2557     grep -v '^ *+' conftest.err >conftest.er1
2558     cat conftest.er1 >&5
2559     mv -f conftest.er1 conftest.err
2560   fi
2561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2562   test $ac_status = 0; } && {
2563          test -z "$ac_cxx_werror_flag" ||
2564          test ! -s conftest.err
2565        } && test -s conftest$ac_exeext && {
2566          test "$cross_compiling" = yes ||
2567          $as_test_x conftest$ac_exeext
2568        }; then :
2569   ac_retval=0
2570 else
2571   $as_echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2573
2574         ac_retval=1
2575 fi
2576   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2577   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2578   # interfere with the next link command; also delete a directory that is
2579   # left behind by Apple's compiler.  We do this before executing the actions.
2580   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2581   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2582   as_fn_set_status $ac_retval
2583
2584 } # ac_fn_cxx_try_link
2585
2586 # ac_fn_c_check_decl LINENO SYMBOL VAR
2587 # ------------------------------------
2588 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2589 ac_fn_c_check_decl ()
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 whether $2 is declared" >&5
2593 $as_echo_n "checking whether $2 is declared... " >&6; }
2594 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2595   $as_echo_n "(cached) " >&6
2596 else
2597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h.  */
2599 $4
2600 int
2601 main ()
2602 {
2603 #ifndef $2
2604   (void) $2;
2605 #endif
2606
2607   ;
2608   return 0;
2609 }
2610 _ACEOF
2611 if ac_fn_c_try_compile "$LINENO"; then :
2612   eval "$3=yes"
2613 else
2614   eval "$3=no"
2615 fi
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 fi
2618 eval ac_res=\$$3
2619                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2620 $as_echo "$ac_res" >&6; }
2621   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2622
2623 } # ac_fn_c_check_decl
2624
2625 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2626 # -------------------------------------------
2627 # Tests whether TYPE exists after having included INCLUDES, setting cache
2628 # variable VAR accordingly.
2629 ac_fn_c_check_type ()
2630 {
2631   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2633 $as_echo_n "checking for $2... " >&6; }
2634 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2635   $as_echo_n "(cached) " >&6
2636 else
2637   eval "$3=no"
2638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639 /* end confdefs.h.  */
2640 $4
2641 int
2642 main ()
2643 {
2644 if (sizeof ($2))
2645          return 0;
2646   ;
2647   return 0;
2648 }
2649 _ACEOF
2650 if ac_fn_c_try_compile "$LINENO"; then :
2651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652 /* end confdefs.h.  */
2653 $4
2654 int
2655 main ()
2656 {
2657 if (sizeof (($2)))
2658             return 0;
2659   ;
2660   return 0;
2661 }
2662 _ACEOF
2663 if ac_fn_c_try_compile "$LINENO"; then :
2664
2665 else
2666   eval "$3=yes"
2667 fi
2668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669 fi
2670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671 fi
2672 eval ac_res=\$$3
2673                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2674 $as_echo "$ac_res" >&6; }
2675   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2676
2677 } # ac_fn_c_check_type
2678
2679 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2680 # --------------------------------------------
2681 # Tries to find the compile-time value of EXPR in a program that includes
2682 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2683 # computed
2684 ac_fn_c_compute_int ()
2685 {
2686   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687   if test "$cross_compiling" = yes; then
2688     # Depending upon the size, compute the lo and hi bounds.
2689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2690 /* end confdefs.h.  */
2691 $4
2692 int
2693 main ()
2694 {
2695 static int test_array [1 - 2 * !(($2) >= 0)];
2696 test_array [0] = 0
2697
2698   ;
2699   return 0;
2700 }
2701 _ACEOF
2702 if ac_fn_c_try_compile "$LINENO"; then :
2703   ac_lo=0 ac_mid=0
2704   while :; do
2705     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2706 /* end confdefs.h.  */
2707 $4
2708 int
2709 main ()
2710 {
2711 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2712 test_array [0] = 0
2713
2714   ;
2715   return 0;
2716 }
2717 _ACEOF
2718 if ac_fn_c_try_compile "$LINENO"; then :
2719   ac_hi=$ac_mid; break
2720 else
2721   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2722                         if test $ac_lo -le $ac_mid; then
2723                           ac_lo= ac_hi=
2724                           break
2725                         fi
2726                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2727 fi
2728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2729   done
2730 else
2731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2732 /* end confdefs.h.  */
2733 $4
2734 int
2735 main ()
2736 {
2737 static int test_array [1 - 2 * !(($2) < 0)];
2738 test_array [0] = 0
2739
2740   ;
2741   return 0;
2742 }
2743 _ACEOF
2744 if ac_fn_c_try_compile "$LINENO"; then :
2745   ac_hi=-1 ac_mid=-1
2746   while :; do
2747     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2748 /* end confdefs.h.  */
2749 $4
2750 int
2751 main ()
2752 {
2753 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2754 test_array [0] = 0
2755
2756   ;
2757   return 0;
2758 }
2759 _ACEOF
2760 if ac_fn_c_try_compile "$LINENO"; then :
2761   ac_lo=$ac_mid; break
2762 else
2763   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2764                         if test $ac_mid -le $ac_hi; then
2765                           ac_lo= ac_hi=
2766                           break
2767                         fi
2768                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2769 fi
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771   done
2772 else
2773   ac_lo= ac_hi=
2774 fi
2775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2776 fi
2777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2778 # Binary search between lo and hi bounds.
2779 while test "x$ac_lo" != "x$ac_hi"; do
2780   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2782 /* end confdefs.h.  */
2783 $4
2784 int
2785 main ()
2786 {
2787 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2788 test_array [0] = 0
2789
2790   ;
2791   return 0;
2792 }
2793 _ACEOF
2794 if ac_fn_c_try_compile "$LINENO"; then :
2795   ac_hi=$ac_mid
2796 else
2797   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2798 fi
2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800 done
2801 case $ac_lo in #((
2802 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2803 '') ac_retval=1 ;;
2804 esac
2805   else
2806     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807 /* end confdefs.h.  */
2808 $4
2809 static long int longval () { return $2; }
2810 static unsigned long int ulongval () { return $2; }
2811 #include <stdio.h>
2812 #include <stdlib.h>
2813 int
2814 main ()
2815 {
2816
2817   FILE *f = fopen ("conftest.val", "w");
2818   if (! f)
2819     return 1;
2820   if (($2) < 0)
2821     {
2822       long int i = longval ();
2823       if (i != ($2))
2824         return 1;
2825       fprintf (f, "%ld", i);
2826     }
2827   else
2828     {
2829       unsigned long int i = ulongval ();
2830       if (i != ($2))
2831         return 1;
2832       fprintf (f, "%lu", i);
2833     }
2834   /* Do not output a trailing newline, as this causes \r\n confusion
2835      on some platforms.  */
2836   return ferror (f) || fclose (f) != 0;
2837
2838   ;
2839   return 0;
2840 }
2841 _ACEOF
2842 if ac_fn_c_try_run "$LINENO"; then :
2843   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2844 else
2845   ac_retval=1
2846 fi
2847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2848   conftest.$ac_objext conftest.beam conftest.$ac_ext
2849 rm -f conftest.val
2850
2851   fi
2852   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2853   as_fn_set_status $ac_retval
2854
2855 } # ac_fn_c_compute_int
2856
2857 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2858 # ---------------------------------------------------------
2859 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2860 # the include files in INCLUDES and setting the cache variable VAR
2861 # accordingly.
2862 ac_fn_cxx_check_header_mongrel ()
2863 {
2864   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2865   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2867 $as_echo_n "checking for $2... " >&6; }
2868 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2869   $as_echo_n "(cached) " >&6
2870 fi
2871 eval ac_res=\$$3
2872                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2873 $as_echo "$ac_res" >&6; }
2874 else
2875   # Is the header compilable?
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2877 $as_echo_n "checking $2 usability... " >&6; }
2878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879 /* end confdefs.h.  */
2880 $4
2881 #include <$2>
2882 _ACEOF
2883 if ac_fn_cxx_try_compile "$LINENO"; then :
2884   ac_header_compiler=yes
2885 else
2886   ac_header_compiler=no
2887 fi
2888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2890 $as_echo "$ac_header_compiler" >&6; }
2891
2892 # Is the header present?
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2894 $as_echo_n "checking $2 presence... " >&6; }
2895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2896 /* end confdefs.h.  */
2897 #include <$2>
2898 _ACEOF
2899 if ac_fn_cxx_try_cpp "$LINENO"; then :
2900   ac_header_preproc=yes
2901 else
2902   ac_header_preproc=no
2903 fi
2904 rm -f conftest.err conftest.$ac_ext
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2906 $as_echo "$ac_header_preproc" >&6; }
2907
2908 # So?  What about this header?
2909 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2910   yes:no: )
2911     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2912 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2913     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2914 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2915     ;;
2916   no:yes:* )
2917     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2918 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2919     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2920 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2921     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2922 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2923     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2924 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2925     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2926 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2927 ( cat <<\_ASBOX
2928 ## ----------------------------------------- ##
2929 ## Report this to http://www.imagemagick.org ##
2930 ## ----------------------------------------- ##
2931 _ASBOX
2932      ) | sed "s/^/$as_me: WARNING:     /" >&2
2933     ;;
2934 esac
2935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2936 $as_echo_n "checking for $2... " >&6; }
2937 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2938   $as_echo_n "(cached) " >&6
2939 else
2940   eval "$3=\$ac_header_compiler"
2941 fi
2942 eval ac_res=\$$3
2943                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2944 $as_echo "$ac_res" >&6; }
2945 fi
2946   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2947
2948 } # ac_fn_cxx_check_header_mongrel
2949 cat >config.log <<_ACEOF
2950 This file contains any messages produced by compilers while
2951 running configure, to aid debugging if configure makes a mistake.
2952
2953 It was created by ImageMagick $as_me 6.5.8, which was
2954 generated by GNU Autoconf 2.65.  Invocation command line was
2955
2956   $ $0 $@
2957
2958 _ACEOF
2959 exec 5>>config.log
2960 {
2961 cat <<_ASUNAME
2962 ## --------- ##
2963 ## Platform. ##
2964 ## --------- ##
2965
2966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2971
2972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2973 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2974
2975 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2976 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2978 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2979 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2980 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2981 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2982
2983 _ASUNAME
2984
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2987 do
2988   IFS=$as_save_IFS
2989   test -z "$as_dir" && as_dir=.
2990     $as_echo "PATH: $as_dir"
2991   done
2992 IFS=$as_save_IFS
2993
2994 } >&5
2995
2996 cat >&5 <<_ACEOF
2997
2998
2999 ## ----------- ##
3000 ## Core tests. ##
3001 ## ----------- ##
3002
3003 _ACEOF
3004
3005
3006 # Keep a trace of the command line.
3007 # Strip out --no-create and --no-recursion so they do not pile up.
3008 # Strip out --silent because we don't want to record it for future runs.
3009 # Also quote any args containing shell meta-characters.
3010 # Make two passes to allow for proper duplicate-argument suppression.
3011 ac_configure_args=
3012 ac_configure_args0=
3013 ac_configure_args1=
3014 ac_must_keep_next=false
3015 for ac_pass in 1 2
3016 do
3017   for ac_arg
3018   do
3019     case $ac_arg in
3020     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3021     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3022     | -silent | --silent | --silen | --sile | --sil)
3023       continue ;;
3024     *\'*)
3025       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3026     esac
3027     case $ac_pass in
3028     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3029     2)
3030       as_fn_append ac_configure_args1 " '$ac_arg'"
3031       if test $ac_must_keep_next = true; then
3032         ac_must_keep_next=false # Got value, back to normal.
3033       else
3034         case $ac_arg in
3035           *=* | --config-cache | -C | -disable-* | --disable-* \
3036           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3037           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3038           | -with-* | --with-* | -without-* | --without-* | --x)
3039             case "$ac_configure_args0 " in
3040               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3041             esac
3042             ;;
3043           -* ) ac_must_keep_next=true ;;
3044         esac
3045       fi
3046       as_fn_append ac_configure_args " '$ac_arg'"
3047       ;;
3048     esac
3049   done
3050 done
3051 { ac_configure_args0=; unset ac_configure_args0;}
3052 { ac_configure_args1=; unset ac_configure_args1;}
3053
3054 # When interrupted or exit'd, cleanup temporary files, and complete
3055 # config.log.  We remove comments because anyway the quotes in there
3056 # would cause problems or look ugly.
3057 # WARNING: Use '\'' to represent an apostrophe within the trap.
3058 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3059 trap 'exit_status=$?
3060   # Save into config.log some information that might help in debugging.
3061   {
3062     echo
3063
3064     cat <<\_ASBOX
3065 ## ---------------- ##
3066 ## Cache variables. ##
3067 ## ---------------- ##
3068 _ASBOX
3069     echo
3070     # The following way of writing the cache mishandles newlines in values,
3071 (
3072   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3073     eval ac_val=\$$ac_var
3074     case $ac_val in #(
3075     *${as_nl}*)
3076       case $ac_var in #(
3077       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3078 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3079       esac
3080       case $ac_var in #(
3081       _ | IFS | as_nl) ;; #(
3082       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3083       *) { eval $ac_var=; unset $ac_var;} ;;
3084       esac ;;
3085     esac
3086   done
3087   (set) 2>&1 |
3088     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3089     *${as_nl}ac_space=\ *)
3090       sed -n \
3091         "s/'\''/'\''\\\\'\'''\''/g;
3092           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3093       ;; #(
3094     *)
3095       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3096       ;;
3097     esac |
3098     sort
3099 )
3100     echo
3101
3102     cat <<\_ASBOX
3103 ## ----------------- ##
3104 ## Output variables. ##
3105 ## ----------------- ##
3106 _ASBOX
3107     echo
3108     for ac_var in $ac_subst_vars
3109     do
3110       eval ac_val=\$$ac_var
3111       case $ac_val in
3112       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3113       esac
3114       $as_echo "$ac_var='\''$ac_val'\''"
3115     done | sort
3116     echo
3117
3118     if test -n "$ac_subst_files"; then
3119       cat <<\_ASBOX
3120 ## ------------------- ##
3121 ## File substitutions. ##
3122 ## ------------------- ##
3123 _ASBOX
3124       echo
3125       for ac_var in $ac_subst_files
3126       do
3127         eval ac_val=\$$ac_var
3128         case $ac_val in
3129         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3130         esac
3131         $as_echo "$ac_var='\''$ac_val'\''"
3132       done | sort
3133       echo
3134     fi
3135
3136     if test -s confdefs.h; then
3137       cat <<\_ASBOX
3138 ## ----------- ##
3139 ## confdefs.h. ##
3140 ## ----------- ##
3141 _ASBOX
3142       echo
3143       cat confdefs.h
3144       echo
3145     fi
3146     test "$ac_signal" != 0 &&
3147       $as_echo "$as_me: caught signal $ac_signal"
3148     $as_echo "$as_me: exit $exit_status"
3149   } >&5
3150   rm -f core *.core core.conftest.* &&
3151     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3152     exit $exit_status
3153 ' 0
3154 for ac_signal in 1 2 13 15; do
3155   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3156 done
3157 ac_signal=0
3158
3159 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3160 rm -f -r conftest* confdefs.h
3161
3162 $as_echo "/* confdefs.h */" > confdefs.h
3163
3164 # Predefined preprocessor variables.
3165
3166 cat >>confdefs.h <<_ACEOF
3167 #define PACKAGE_NAME "$PACKAGE_NAME"
3168 _ACEOF
3169
3170 cat >>confdefs.h <<_ACEOF
3171 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3172 _ACEOF
3173
3174 cat >>confdefs.h <<_ACEOF
3175 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3176 _ACEOF
3177
3178 cat >>confdefs.h <<_ACEOF
3179 #define PACKAGE_STRING "$PACKAGE_STRING"
3180 _ACEOF
3181
3182 cat >>confdefs.h <<_ACEOF
3183 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3184 _ACEOF
3185
3186 cat >>confdefs.h <<_ACEOF
3187 #define PACKAGE_URL "$PACKAGE_URL"
3188 _ACEOF
3189
3190
3191 # Let the site file select an alternate cache file if it wants to.
3192 # Prefer an explicitly selected file to automatically selected ones.
3193 ac_site_file1=NONE
3194 ac_site_file2=NONE
3195 if test -n "$CONFIG_SITE"; then
3196   ac_site_file1=$CONFIG_SITE
3197 elif test "x$prefix" != xNONE; then
3198   ac_site_file1=$prefix/share/config.site
3199   ac_site_file2=$prefix/etc/config.site
3200 else
3201   ac_site_file1=$ac_default_prefix/share/config.site
3202   ac_site_file2=$ac_default_prefix/etc/config.site
3203 fi
3204 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3205 do
3206   test "x$ac_site_file" = xNONE && continue
3207   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3208     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3209 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3210     sed 's/^/| /' "$ac_site_file" >&5
3211     . "$ac_site_file"
3212   fi
3213 done
3214
3215 if test -r "$cache_file"; then
3216   # Some versions of bash will fail to source /dev/null (special files
3217   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3218   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3219     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3220 $as_echo "$as_me: loading cache $cache_file" >&6;}
3221     case $cache_file in
3222       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3223       *)                      . "./$cache_file";;
3224     esac
3225   fi
3226 else
3227   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3228 $as_echo "$as_me: creating cache $cache_file" >&6;}
3229   >$cache_file
3230 fi
3231
3232 as_fn_append ac_header_list " stdlib.h"
3233 as_fn_append ac_header_list " unistd.h"
3234 as_fn_append ac_header_list " sys/param.h"
3235 # Check that the precious variables saved in the cache have kept the same
3236 # value.
3237 ac_cache_corrupted=false
3238 for ac_var in $ac_precious_vars; do
3239   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3240   eval ac_new_set=\$ac_env_${ac_var}_set
3241   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3242   eval ac_new_val=\$ac_env_${ac_var}_value
3243   case $ac_old_set,$ac_new_set in
3244     set,)
3245       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3246 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3247       ac_cache_corrupted=: ;;
3248     ,set)
3249       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3250 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3251       ac_cache_corrupted=: ;;
3252     ,);;
3253     *)
3254       if test "x$ac_old_val" != "x$ac_new_val"; then
3255         # differences in whitespace do not lead to failure.
3256         ac_old_val_w=`echo x $ac_old_val`
3257         ac_new_val_w=`echo x $ac_new_val`
3258         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3259           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3260 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3261           ac_cache_corrupted=:
3262         else
3263           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3264 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3265           eval $ac_var=\$ac_old_val
3266         fi
3267         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3268 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3269         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3270 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3271       fi;;
3272   esac
3273   # Pass precious variables to config.status.
3274   if test "$ac_new_set" = set; then
3275     case $ac_new_val in
3276     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3277     *) ac_arg=$ac_var=$ac_new_val ;;
3278     esac
3279     case " $ac_configure_args " in
3280       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3281       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3282     esac
3283   fi
3284 done
3285 if $ac_cache_corrupted; then
3286   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3289 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3290   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3291 fi
3292 ## -------------------- ##
3293 ## Main body of script. ##
3294 ## -------------------- ##
3295
3296 ac_ext=c
3297 ac_cpp='$CPP $CPPFLAGS'
3298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3301
3302
3303
3304 ac_aux_dir=
3305 for ac_dir in config "$srcdir"/config; do
3306   for ac_t in install-sh install.sh shtool; do
3307     if test -f "$ac_dir/$ac_t"; then
3308       ac_aux_dir=$ac_dir
3309       ac_install_sh="$ac_aux_dir/$ac_t -c"
3310       break 2
3311     fi
3312   done
3313 done
3314 if test -z "$ac_aux_dir"; then
3315   as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3316 fi
3317
3318 # These three variables are undocumented and unsupported,
3319 # and are intended to be withdrawn in a future Autoconf release.
3320 # They can cause serious problems if a builder's source tree is in a directory
3321 # whose full name contains unusual characters.
3322 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3323 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3324 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3325
3326
3327
3328
3329 ac_config_headers="$ac_config_headers config/config.h"
3330
3331 ac_config_commands="$ac_config_commands magick/magick-config.h"
3332
3333 ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox 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"
3334
3335
3336 #
3337 # Save initial user-tunable values
3338 #
3339 USER_LIBS=$LIBS
3340 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3341   eval isset=\${$var+set}
3342     if test "$isset" = 'set'; then
3343         eval val=$`echo $var`
3344         DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3345     fi
3346 done
3347
3348
3349 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3350
3351
3352 # Source file containing package/library versioning information.
3353 . ${srcdir}/version.sh
3354
3355 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3356 # Make sure we can run config.sub.
3357 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3358   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3359
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3361 $as_echo_n "checking build system type... " >&6; }
3362 if test "${ac_cv_build+set}" = set; then :
3363   $as_echo_n "(cached) " >&6
3364 else
3365   ac_build_alias=$build_alias
3366 test "x$ac_build_alias" = x &&
3367   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3368 test "x$ac_build_alias" = x &&
3369   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3370 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3371   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3372
3373 fi
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3375 $as_echo "$ac_cv_build" >&6; }
3376 case $ac_cv_build in
3377 *-*-*) ;;
3378 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3379 esac
3380 build=$ac_cv_build
3381 ac_save_IFS=$IFS; IFS='-'
3382 set x $ac_cv_build
3383 shift
3384 build_cpu=$1
3385 build_vendor=$2
3386 shift; shift
3387 # Remember, the first character of IFS is used to create $*,
3388 # except with old shells:
3389 build_os=$*
3390 IFS=$ac_save_IFS
3391 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3392
3393
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3395 $as_echo_n "checking host system type... " >&6; }
3396 if test "${ac_cv_host+set}" = set; then :
3397   $as_echo_n "(cached) " >&6
3398 else
3399   if test "x$host_alias" = x; then
3400   ac_cv_host=$ac_cv_build
3401 else
3402   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3403     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3404 fi
3405
3406 fi
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3408 $as_echo "$ac_cv_host" >&6; }
3409 case $ac_cv_host in
3410 *-*-*) ;;
3411 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3412 esac
3413 host=$ac_cv_host
3414 ac_save_IFS=$IFS; IFS='-'
3415 set x $ac_cv_host
3416 shift
3417 host_cpu=$1
3418 host_vendor=$2
3419 shift; shift
3420 # Remember, the first character of IFS is used to create $*,
3421 # except with old shells:
3422 host_os=$*
3423 IFS=$ac_save_IFS
3424 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3425
3426
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3428 $as_echo_n "checking target system type... " >&6; }
3429 if test "${ac_cv_target+set}" = set; then :
3430   $as_echo_n "(cached) " >&6
3431 else
3432   if test "x$target_alias" = x; then
3433   ac_cv_target=$ac_cv_host
3434 else
3435   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3436     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3437 fi
3438
3439 fi
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3441 $as_echo "$ac_cv_target" >&6; }
3442 case $ac_cv_target in
3443 *-*-*) ;;
3444 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3445 esac
3446 target=$ac_cv_target
3447 ac_save_IFS=$IFS; IFS='-'
3448 set x $ac_cv_target
3449 shift
3450 target_cpu=$1
3451 target_vendor=$2
3452 shift; shift
3453 # Remember, the first character of IFS is used to create $*,
3454 # except with old shells:
3455 target_os=$*
3456 IFS=$ac_save_IFS
3457 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3458
3459
3460 # The aliases save the names the user supplied, while $host etc.
3461 # will get canonicalized.
3462 test -n "$target_alias" &&
3463   test "$program_prefix$program_suffix$program_transform_name" = \
3464     NONENONEs,x,x, &&
3465   program_prefix=${target_alias}-
3466
3467 # Substitute library versioning
3468
3469
3470 # Ensure that make can run correctly
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3472 $as_echo_n "checking whether build environment is sane... " >&6; }
3473 # Just in case
3474 sleep 1
3475 echo timestamp > conftest.file
3476 # Reject unsafe characters in $srcdir or the absolute working directory
3477 # name.  Accept space and tab only in the latter.
3478 am_lf='
3479 '
3480 case `pwd` in
3481   *[\\\"\#\$\&\'\`$am_lf]*)
3482     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3483 esac
3484 case $srcdir in
3485   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3486     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3487 esac
3488
3489 # Do `set' in a subshell so we don't clobber the current shell's
3490 # arguments.  Must try -L first in case configure is actually a
3491 # symlink; some systems play weird games with the mod time of symlinks
3492 # (eg FreeBSD returns the mod time of the symlink's containing
3493 # directory).
3494 if (
3495    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3496    if test "$*" = "X"; then
3497       # -L didn't work.
3498       set X `ls -t "$srcdir/configure" conftest.file`
3499    fi
3500    rm -f conftest.file
3501    if test "$*" != "X $srcdir/configure conftest.file" \
3502       && test "$*" != "X conftest.file $srcdir/configure"; then
3503
3504       # If neither matched, then we have a broken ls.  This can happen
3505       # if, for instance, CONFIG_SHELL is bash and it inherits a
3506       # broken ls alias from the environment.  This has actually
3507       # happened.  Such a system could not be considered "sane".
3508       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3509 alias in your environment" "$LINENO" 5
3510    fi
3511
3512    test "$2" = conftest.file
3513    )
3514 then
3515    # Ok.
3516    :
3517 else
3518    as_fn_error "newly created file is older than distributed files!
3519 Check your system clock" "$LINENO" 5
3520 fi
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3522 $as_echo "yes" >&6; }
3523
3524 am__api_version='1.11'
3525
3526 # Find a good install program.  We prefer a C program (faster),
3527 # so one script is as good as another.  But avoid the broken or
3528 # incompatible versions:
3529 # SysV /etc/install, /usr/sbin/install
3530 # SunOS /usr/etc/install
3531 # IRIX /sbin/install
3532 # AIX /bin/install
3533 # AmigaOS /C/install, which installs bootblocks on floppy discs
3534 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3535 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3536 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3537 # OS/2's system install, which has a completely different semantic
3538 # ./install, which can be erroneously created by make from ./install.sh.
3539 # Reject install programs that cannot install multiple files.
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3541 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3542 if test -z "$INSTALL"; then
3543 if test "${ac_cv_path_install+set}" = set; then :
3544   $as_echo_n "(cached) " >&6
3545 else
3546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549   IFS=$as_save_IFS
3550   test -z "$as_dir" && as_dir=.
3551     # Account for people who put trailing slashes in PATH elements.
3552 case $as_dir/ in #((
3553   ./ | .// | /[cC]/* | \
3554   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3555   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3556   /usr/ucb/* ) ;;
3557   *)
3558     # OSF1 and SCO ODT 3.0 have their own names for install.
3559     # Don't use installbsd from OSF since it installs stuff as root
3560     # by default.
3561     for ac_prog in ginstall scoinst install; do
3562       for ac_exec_ext in '' $ac_executable_extensions; do
3563         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3564           if test $ac_prog = install &&
3565             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3566             # AIX install.  It has an incompatible calling convention.
3567             :
3568           elif test $ac_prog = install &&
3569             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3570             # program-specific install script used by HP pwplus--don't use.
3571             :
3572           else
3573             rm -rf conftest.one conftest.two conftest.dir
3574             echo one > conftest.one
3575             echo two > conftest.two
3576             mkdir conftest.dir
3577             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3578               test -s conftest.one && test -s conftest.two &&
3579               test -s conftest.dir/conftest.one &&
3580               test -s conftest.dir/conftest.two
3581             then
3582               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3583               break 3
3584             fi
3585           fi
3586         fi
3587       done
3588     done
3589     ;;
3590 esac
3591
3592   done
3593 IFS=$as_save_IFS
3594
3595 rm -rf conftest.one conftest.two conftest.dir
3596
3597 fi
3598   if test "${ac_cv_path_install+set}" = set; then
3599     INSTALL=$ac_cv_path_install
3600   else
3601     # As a last resort, use the slow shell script.  Don't cache a
3602     # value for INSTALL within a source directory, because that will
3603     # break other packages using the cache if that directory is
3604     # removed, or if the value is a relative name.
3605     INSTALL=$ac_install_sh
3606   fi
3607 fi
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3609 $as_echo "$INSTALL" >&6; }
3610
3611 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3612 # It thinks the first close brace ends the variable substitution.
3613 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3614
3615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3616
3617 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3618
3619 test "$program_prefix" != NONE &&
3620   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3621 # Use a double $ so make ignores it.
3622 test "$program_suffix" != NONE &&
3623   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3624 # Double any \ or $.
3625 # By default was `s,x,x', remove it if useless.
3626 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3627 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3628
3629 # expand $ac_aux_dir to an absolute path
3630 am_aux_dir=`cd $ac_aux_dir && pwd`
3631
3632 if test x"${MISSING+set}" != xset; then
3633   case $am_aux_dir in
3634   *\ * | *\     *)
3635     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3636   *)
3637     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3638   esac
3639 fi
3640 # Use eval to expand $SHELL
3641 if eval "$MISSING --run true"; then
3642   am_missing_run="$MISSING --run "
3643 else
3644   am_missing_run=
3645   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3646 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3647 fi
3648
3649 if test x"${install_sh}" != xset; then
3650   case $am_aux_dir in
3651   *\ * | *\     *)
3652     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3653   *)
3654     install_sh="\${SHELL} $am_aux_dir/install-sh"
3655   esac
3656 fi
3657
3658 # Installed binaries are usually stripped using `strip' when the user
3659 # run `make install-strip'.  However `strip' might not be the right
3660 # tool to use in cross-compilation environments, therefore Automake
3661 # will honor the `STRIP' environment variable to overrule this program.
3662 if test "$cross_compiling" != no; then
3663   if test -n "$ac_tool_prefix"; then
3664   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3665 set dummy ${ac_tool_prefix}strip; ac_word=$2
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; }
3668 if test "${ac_cv_prog_STRIP+set}" = set; then :
3669   $as_echo_n "(cached) " >&6
3670 else
3671   if test -n "$STRIP"; then
3672   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3673 else
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH
3676 do
3677   IFS=$as_save_IFS
3678   test -z "$as_dir" && as_dir=.
3679     for ac_exec_ext in '' $ac_executable_extensions; do
3680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3683     break 2
3684   fi
3685 done
3686   done
3687 IFS=$as_save_IFS
3688
3689 fi
3690 fi
3691 STRIP=$ac_cv_prog_STRIP
3692 if test -n "$STRIP"; then
3693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3694 $as_echo "$STRIP" >&6; }
3695 else
3696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 $as_echo "no" >&6; }
3698 fi
3699
3700
3701 fi
3702 if test -z "$ac_cv_prog_STRIP"; then
3703   ac_ct_STRIP=$STRIP
3704   # Extract the first word of "strip", so it can be a program name with args.
3705 set dummy strip; ac_word=$2
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3707 $as_echo_n "checking for $ac_word... " >&6; }
3708 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3709   $as_echo_n "(cached) " >&6
3710 else
3711   if test -n "$ac_ct_STRIP"; then
3712   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3713 else
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH
3716 do
3717   IFS=$as_save_IFS
3718   test -z "$as_dir" && as_dir=.
3719     for ac_exec_ext in '' $ac_executable_extensions; do
3720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3721     ac_cv_prog_ac_ct_STRIP="strip"
3722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3723     break 2
3724   fi
3725 done
3726   done
3727 IFS=$as_save_IFS
3728
3729 fi
3730 fi
3731 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3732 if test -n "$ac_ct_STRIP"; then
3733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3734 $as_echo "$ac_ct_STRIP" >&6; }
3735 else
3736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 $as_echo "no" >&6; }
3738 fi
3739
3740   if test "x$ac_ct_STRIP" = x; then
3741     STRIP=":"
3742   else
3743     case $cross_compiling:$ac_tool_warned in
3744 yes:)
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3747 ac_tool_warned=yes ;;
3748 esac
3749     STRIP=$ac_ct_STRIP
3750   fi
3751 else
3752   STRIP="$ac_cv_prog_STRIP"
3753 fi
3754
3755 fi
3756 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3757
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3759 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3760 if test -z "$MKDIR_P"; then
3761   if test "${ac_cv_path_mkdir+set}" = set; then :
3762   $as_echo_n "(cached) " >&6
3763 else
3764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3766 do
3767   IFS=$as_save_IFS
3768   test -z "$as_dir" && as_dir=.
3769     for ac_prog in mkdir gmkdir; do
3770          for ac_exec_ext in '' $ac_executable_extensions; do
3771            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3772            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3773              'mkdir (GNU coreutils) '* | \
3774              'mkdir (coreutils) '* | \
3775              'mkdir (fileutils) '4.1*)
3776                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3777                break 3;;
3778            esac
3779          done
3780        done
3781   done
3782 IFS=$as_save_IFS
3783
3784 fi
3785
3786   test -d ./--version && rmdir ./--version
3787   if test "${ac_cv_path_mkdir+set}" = set; then
3788     MKDIR_P="$ac_cv_path_mkdir -p"
3789   else
3790     # As a last resort, use the slow shell script.  Don't cache a
3791     # value for MKDIR_P within a source directory, because that will
3792     # break other packages using the cache if that directory is
3793     # removed, or if the value is a relative name.
3794     MKDIR_P="$ac_install_sh -d"
3795   fi
3796 fi
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3798 $as_echo "$MKDIR_P" >&6; }
3799
3800 mkdir_p="$MKDIR_P"
3801 case $mkdir_p in
3802   [\\/$]* | ?:[\\/]*) ;;
3803   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3804 esac
3805
3806 for ac_prog in gawk mawk nawk awk
3807 do
3808   # Extract the first word of "$ac_prog", so it can be a program name with args.
3809 set dummy $ac_prog; ac_word=$2
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811 $as_echo_n "checking for $ac_word... " >&6; }
3812 if test "${ac_cv_prog_AWK+set}" = set; then :
3813   $as_echo_n "(cached) " >&6
3814 else
3815   if test -n "$AWK"; then
3816   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3817 else
3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 for as_dir in $PATH
3820 do
3821   IFS=$as_save_IFS
3822   test -z "$as_dir" && as_dir=.
3823     for ac_exec_ext in '' $ac_executable_extensions; do
3824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3825     ac_cv_prog_AWK="$ac_prog"
3826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3827     break 2
3828   fi
3829 done
3830   done
3831 IFS=$as_save_IFS
3832
3833 fi
3834 fi
3835 AWK=$ac_cv_prog_AWK
3836 if test -n "$AWK"; then
3837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3838 $as_echo "$AWK" >&6; }
3839 else
3840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 $as_echo "no" >&6; }
3842 fi
3843
3844
3845   test -n "$AWK" && break
3846 done
3847
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3849 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3850 set x ${MAKE-make}
3851 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3852 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3853   $as_echo_n "(cached) " >&6
3854 else
3855   cat >conftest.make <<\_ACEOF
3856 SHELL = /bin/sh
3857 all:
3858         @echo '@@@%%%=$(MAKE)=@@@%%%'
3859 _ACEOF
3860 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3861 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3862   *@@@%%%=?*=@@@%%%*)
3863     eval ac_cv_prog_make_${ac_make}_set=yes;;
3864   *)
3865     eval ac_cv_prog_make_${ac_make}_set=no;;
3866 esac
3867 rm -f conftest.make
3868 fi
3869 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3871 $as_echo "yes" >&6; }
3872   SET_MAKE=
3873 else
3874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 $as_echo "no" >&6; }
3876   SET_MAKE="MAKE=${MAKE-make}"
3877 fi
3878
3879 rm -rf .tst 2>/dev/null
3880 mkdir .tst 2>/dev/null
3881 if test -d .tst; then
3882   am__leading_dot=.
3883 else
3884   am__leading_dot=_
3885 fi
3886 rmdir .tst 2>/dev/null
3887
3888 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3889   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3890   # is not polluted with repeated "-I."
3891   am__isrc=' -I$(srcdir)'
3892   # test to see if srcdir already configured
3893   if test -f $srcdir/config.status; then
3894     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3895   fi
3896 fi
3897
3898 # test whether we have cygpath
3899 if test -z "$CYGPATH_W"; then
3900   if (cygpath --version) >/dev/null 2>/dev/null; then
3901     CYGPATH_W='cygpath -w'
3902   else
3903     CYGPATH_W=echo
3904   fi
3905 fi
3906
3907
3908 # Define the identity of the package.
3909  PACKAGE=$PACKAGE_NAME
3910  VERSION="${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3911
3912
3913 # Some tools Automake needs.
3914
3915 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3916
3917
3918 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3919
3920
3921 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3922
3923
3924 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3925
3926
3927 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3928
3929 # We need awk for the "check" target.  The system "awk" is bad on
3930 # some platforms.
3931 # Always define AMTAR for backward compatibility.
3932
3933 AMTAR=${AMTAR-"${am_missing_run}tar"}
3934
3935 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3936
3937
3938
3939
3940
3941
3942 # Enable support for silent build rules
3943 # Check whether --enable-silent-rules was given.
3944 if test "${enable_silent_rules+set}" = set; then :
3945   enableval=$enable_silent_rules;
3946 fi
3947
3948 case $enable_silent_rules in
3949 yes) AM_DEFAULT_VERBOSITY=0;;
3950 no)  AM_DEFAULT_VERBOSITY=1;;
3951 *)   AM_DEFAULT_VERBOSITY=0;;
3952 esac
3953 AM_BACKSLASH='\'
3954
3955
3956 MAGICK_LIB_VERSION="0x"
3957 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3958   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3959 fi
3960 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3961 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3962   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3963 fi
3964 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3965 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3966   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3967 fi
3968 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3969
3970
3971 # Definition used to define MagickLibVersionText in version.h
3972 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3973
3974
3975 # Definition used to define MagickLibVersionNumber in version.h
3976 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3977
3978
3979 # Regenerate config.status if ChangeLog or version.sh is updated.
3980 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3981
3982
3983 PERLMAINCC=$CC
3984
3985 MAGICK_CFLAGS=''
3986 MAGICK_CPPFLAGS=$CPPFLAGS_USER
3987 MAGICK_PCFLAGS=$CPPFLAGS_USER
3988 MAGICK_LDFLAGS=''
3989 MAGICK_LIBS=''
3990
3991 #
3992 # Evaluate shell variable equivalents to Makefile directory variables
3993 #
3994 if test "x$prefix" = xNONE; then
3995     prefix=$ac_default_prefix
3996 fi
3997 # Let make expand exec_prefix.
3998 if test "x$exec_prefix" = xNONE; then
3999     exec_prefix='${prefix}'
4000 fi
4001
4002 #
4003 eval "eval PREFIX_DIR=${prefix}"
4004
4005 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4006
4007 eval "eval BIN_DIR=$bindir"
4008
4009 eval "eval SBIN_DIR=$sbindir"
4010
4011 eval "eval LIBEXEC_DIR=$libexecdir"
4012
4013 eval "eval DATA_DIR=$datadir"
4014
4015 eval "eval SYSCONF_DIR=$sysconfdir"
4016
4017 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4018
4019 eval "eval LOCALSTATE_DIR=$localstatedir"
4020
4021 eval "eval LIB_DIR=$libdir"
4022
4023 eval "eval INCLUDE_DIR=$includedir"
4024
4025 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4026
4027 eval "eval INFO_DIR=$infodir"
4028
4029 eval "eval MAN_DIR=$mandir"
4030
4031
4032 # Get full paths to source and build directories
4033 srcdirfull="`cd $srcdir && pwd`"
4034 builddir="`pwd`"
4035
4036 #
4037 # Compute variables useful for running uninstalled software.
4038 #
4039 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4040 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4041 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4042 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4043 DIRSEP=':'
4044 case "${build_os}" in
4045     mingw* )
4046         MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4047         MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4048         MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4049         MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4050         DIRSEP=';'
4051     ;;
4052 esac
4053 case "${host_os}" in
4054   mingw* )
4055     DIRSEP=';'
4056     ;;
4057 esac
4058
4059
4060
4061
4062
4063
4064 # Check for programs
4065 ac_ext=c
4066 ac_cpp='$CPP $CPPFLAGS'
4067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070 if test -n "$ac_tool_prefix"; then
4071   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4072 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074 $as_echo_n "checking for $ac_word... " >&6; }
4075 if test "${ac_cv_prog_CC+set}" = set; then :
4076   $as_echo_n "(cached) " >&6
4077 else
4078   if test -n "$CC"; then
4079   ac_cv_prog_CC="$CC" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4083 do
4084   IFS=$as_save_IFS
4085   test -z "$as_dir" && as_dir=.
4086     for ac_exec_ext in '' $ac_executable_extensions; do
4087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4088     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4090     break 2
4091   fi
4092 done
4093   done
4094 IFS=$as_save_IFS
4095
4096 fi
4097 fi
4098 CC=$ac_cv_prog_CC
4099 if test -n "$CC"; then
4100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4101 $as_echo "$CC" >&6; }
4102 else
4103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104 $as_echo "no" >&6; }
4105 fi
4106
4107
4108 fi
4109 if test -z "$ac_cv_prog_CC"; then
4110   ac_ct_CC=$CC
4111   # Extract the first word of "gcc", so it can be a program name with args.
4112 set dummy gcc; ac_word=$2
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114 $as_echo_n "checking for $ac_word... " >&6; }
4115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4116   $as_echo_n "(cached) " >&6
4117 else
4118   if test -n "$ac_ct_CC"; then
4119   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4120 else
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $PATH
4123 do
4124   IFS=$as_save_IFS
4125   test -z "$as_dir" && as_dir=.
4126     for ac_exec_ext in '' $ac_executable_extensions; do
4127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4128     ac_cv_prog_ac_ct_CC="gcc"
4129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4130     break 2
4131   fi
4132 done
4133   done
4134 IFS=$as_save_IFS
4135
4136 fi
4137 fi
4138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4139 if test -n "$ac_ct_CC"; then
4140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4141 $as_echo "$ac_ct_CC" >&6; }
4142 else
4143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144 $as_echo "no" >&6; }
4145 fi
4146
4147   if test "x$ac_ct_CC" = x; then
4148     CC=""
4149   else
4150     case $cross_compiling:$ac_tool_warned in
4151 yes:)
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4154 ac_tool_warned=yes ;;
4155 esac
4156     CC=$ac_ct_CC
4157   fi
4158 else
4159   CC="$ac_cv_prog_CC"
4160 fi
4161
4162 if test -z "$CC"; then
4163           if test -n "$ac_tool_prefix"; then
4164     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4165 set dummy ${ac_tool_prefix}cc; ac_word=$2
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 $as_echo_n "checking for $ac_word... " >&6; }
4168 if test "${ac_cv_prog_CC+set}" = set; then :
4169   $as_echo_n "(cached) " >&6
4170 else
4171   if test -n "$CC"; then
4172   ac_cv_prog_CC="$CC" # Let the user override the test.
4173 else
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH
4176 do
4177   IFS=$as_save_IFS
4178   test -z "$as_dir" && as_dir=.
4179     for ac_exec_ext in '' $ac_executable_extensions; do
4180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4181     ac_cv_prog_CC="${ac_tool_prefix}cc"
4182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183     break 2
4184   fi
4185 done
4186   done
4187 IFS=$as_save_IFS
4188
4189 fi
4190 fi
4191 CC=$ac_cv_prog_CC
4192 if test -n "$CC"; then
4193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4194 $as_echo "$CC" >&6; }
4195 else
4196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 $as_echo "no" >&6; }
4198 fi
4199
4200
4201   fi
4202 fi
4203 if test -z "$CC"; then
4204   # Extract the first word of "cc", so it can be a program name with args.
4205 set dummy cc; ac_word=$2
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207 $as_echo_n "checking for $ac_word... " >&6; }
4208 if test "${ac_cv_prog_CC+set}" = set; then :
4209   $as_echo_n "(cached) " >&6
4210 else
4211   if test -n "$CC"; then
4212   ac_cv_prog_CC="$CC" # Let the user override the test.
4213 else
4214   ac_prog_rejected=no
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218   IFS=$as_save_IFS
4219   test -z "$as_dir" && as_dir=.
4220     for ac_exec_ext in '' $ac_executable_extensions; do
4221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4222     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4223        ac_prog_rejected=yes
4224        continue
4225      fi
4226     ac_cv_prog_CC="cc"
4227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228     break 2
4229   fi
4230 done
4231   done
4232 IFS=$as_save_IFS
4233
4234 if test $ac_prog_rejected = yes; then
4235   # We found a bogon in the path, so make sure we never use it.
4236   set dummy $ac_cv_prog_CC
4237   shift
4238   if test $# != 0; then
4239     # We chose a different compiler from the bogus one.
4240     # However, it has the same basename, so the bogon will be chosen
4241     # first if we set CC to just the basename; use the full file name.
4242     shift
4243     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4244   fi
4245 fi
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 if test -z "$CC"; then
4260   if test -n "$ac_tool_prefix"; then
4261   for ac_prog in cl.exe
4262   do
4263     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if test "${ac_cv_prog_CC+set}" = set; then :
4268   $as_echo_n "(cached) " >&6
4269 else
4270   if test -n "$CC"; then
4271   ac_cv_prog_CC="$CC" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4275 do
4276   IFS=$as_save_IFS
4277   test -z "$as_dir" && as_dir=.
4278     for ac_exec_ext in '' $ac_executable_extensions; do
4279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282     break 2
4283   fi
4284 done
4285   done
4286 IFS=$as_save_IFS
4287
4288 fi
4289 fi
4290 CC=$ac_cv_prog_CC
4291 if test -n "$CC"; then
4292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4293 $as_echo "$CC" >&6; }
4294 else
4295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4297 fi
4298
4299
4300     test -n "$CC" && break
4301   done
4302 fi
4303 if test -z "$CC"; then
4304   ac_ct_CC=$CC
4305   for ac_prog in cl.exe
4306 do
4307   # Extract the first word of "$ac_prog", so it can be a program name with args.
4308 set dummy $ac_prog; ac_word=$2
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310 $as_echo_n "checking for $ac_word... " >&6; }
4311 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4312   $as_echo_n "(cached) " >&6
4313 else
4314   if test -n "$ac_ct_CC"; then
4315   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4316 else
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4319 do
4320   IFS=$as_save_IFS
4321   test -z "$as_dir" && as_dir=.
4322     for ac_exec_ext in '' $ac_executable_extensions; do
4323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324     ac_cv_prog_ac_ct_CC="$ac_prog"
4325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326     break 2
4327   fi
4328 done
4329   done
4330 IFS=$as_save_IFS
4331
4332 fi
4333 fi
4334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4335 if test -n "$ac_ct_CC"; then
4336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4337 $as_echo "$ac_ct_CC" >&6; }
4338 else
4339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 $as_echo "no" >&6; }
4341 fi
4342
4343
4344   test -n "$ac_ct_CC" && break
4345 done
4346
4347   if test "x$ac_ct_CC" = x; then
4348     CC=""
4349   else
4350     case $cross_compiling:$ac_tool_warned in
4351 yes:)
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4354 ac_tool_warned=yes ;;
4355 esac
4356     CC=$ac_ct_CC
4357   fi
4358 fi
4359
4360 fi
4361
4362
4363 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4365 as_fn_error "no acceptable C compiler found in \$PATH
4366 See \`config.log' for more details." "$LINENO" 5; }
4367
4368 # Provide some information about the compiler.
4369 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4370 set X $ac_compile
4371 ac_compiler=$2
4372 for ac_option in --version -v -V -qversion; do
4373   { { ac_try="$ac_compiler $ac_option >&5"
4374 case "(($ac_try" in
4375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376   *) ac_try_echo=$ac_try;;
4377 esac
4378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4379 $as_echo "$ac_try_echo"; } >&5
4380   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4381   ac_status=$?
4382   if test -s conftest.err; then
4383     sed '10a\
4384 ... rest of stderr output deleted ...
4385          10q' conftest.err >conftest.er1
4386     cat conftest.er1 >&5
4387   fi
4388   rm -f conftest.er1 conftest.err
4389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390   test $ac_status = 0; }
4391 done
4392
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h.  */
4395
4396 int
4397 main ()
4398 {
4399
4400   ;
4401   return 0;
4402 }
4403 _ACEOF
4404 ac_clean_files_save=$ac_clean_files
4405 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4406 # Try to create an executable without -o first, disregard a.out.
4407 # It will help us diagnose broken compilers, and finding out an intuition
4408 # of exeext.
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4410 $as_echo_n "checking whether the C compiler works... " >&6; }
4411 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4412
4413 # The possible output files:
4414 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4415
4416 ac_rmfiles=
4417 for ac_file in $ac_files
4418 do
4419   case $ac_file in
4420     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4421     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4422   esac
4423 done
4424 rm -f $ac_rmfiles
4425
4426 if { { ac_try="$ac_link_default"
4427 case "(($ac_try" in
4428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429   *) ac_try_echo=$ac_try;;
4430 esac
4431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432 $as_echo "$ac_try_echo"; } >&5
4433   (eval "$ac_link_default") 2>&5
4434   ac_status=$?
4435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436   test $ac_status = 0; }; then :
4437   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4438 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4439 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4440 # so that the user can short-circuit this test for compilers unknown to
4441 # Autoconf.
4442 for ac_file in $ac_files ''
4443 do
4444   test -f "$ac_file" || continue
4445   case $ac_file in
4446     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4447         ;;
4448     [ab].out )
4449         # We found the default executable, but exeext='' is most
4450         # certainly right.
4451         break;;
4452     *.* )
4453         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4454         then :; else
4455            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4456         fi
4457         # We set ac_cv_exeext here because the later test for it is not
4458         # safe: cross compilers may not add the suffix if given an `-o'
4459         # argument, so we may need to know it at that point already.
4460         # Even if this section looks crufty: it has the advantage of
4461         # actually working.
4462         break;;
4463     * )
4464         break;;
4465   esac
4466 done
4467 test "$ac_cv_exeext" = no && ac_cv_exeext=
4468
4469 else
4470   ac_file=''
4471 fi
4472 if test -z "$ac_file"; then :
4473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4475 $as_echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4480 { as_fn_set_status 77
4481 as_fn_error "C compiler cannot create executables
4482 See \`config.log' for more details." "$LINENO" 5; }; }
4483 else
4484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4485 $as_echo "yes" >&6; }
4486 fi
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4488 $as_echo_n "checking for C compiler default output file name... " >&6; }
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4490 $as_echo "$ac_file" >&6; }
4491 ac_exeext=$ac_cv_exeext
4492
4493 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4494 ac_clean_files=$ac_clean_files_save
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4496 $as_echo_n "checking for suffix of executables... " >&6; }
4497 if { { ac_try="$ac_link"
4498 case "(($ac_try" in
4499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500   *) ac_try_echo=$ac_try;;
4501 esac
4502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503 $as_echo "$ac_try_echo"; } >&5
4504   (eval "$ac_link") 2>&5
4505   ac_status=$?
4506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4507   test $ac_status = 0; }; then :
4508   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4509 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4510 # work properly (i.e., refer to `conftest.exe'), while it won't with
4511 # `rm'.
4512 for ac_file in conftest.exe conftest conftest.*; do
4513   test -f "$ac_file" || continue
4514   case $ac_file in
4515     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4516     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4517           break;;
4518     * ) break;;
4519   esac
4520 done
4521 else
4522   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4524 as_fn_error "cannot compute suffix of executables: cannot compile and link
4525 See \`config.log' for more details." "$LINENO" 5; }
4526 fi
4527 rm -f conftest conftest$ac_cv_exeext
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4529 $as_echo "$ac_cv_exeext" >&6; }
4530
4531 rm -f conftest.$ac_ext
4532 EXEEXT=$ac_cv_exeext
4533 ac_exeext=$EXEEXT
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h.  */
4536 #include <stdio.h>
4537 int
4538 main ()
4539 {
4540 FILE *f = fopen ("conftest.out", "w");
4541  return ferror (f) || fclose (f) != 0;
4542
4543   ;
4544   return 0;
4545 }
4546 _ACEOF
4547 ac_clean_files="$ac_clean_files conftest.out"
4548 # Check that the compiler produces executables we can run.  If not, either
4549 # the compiler is broken, or we cross compile.
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4551 $as_echo_n "checking whether we are cross compiling... " >&6; }
4552 if test "$cross_compiling" != yes; then
4553   { { 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; }
4564   if { ac_try='./conftest$ac_cv_exeext'
4565   { { case "(($ac_try" in
4566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567   *) ac_try_echo=$ac_try;;
4568 esac
4569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570 $as_echo "$ac_try_echo"; } >&5
4571   (eval "$ac_try") 2>&5
4572   ac_status=$?
4573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4574   test $ac_status = 0; }; }; then
4575     cross_compiling=no
4576   else
4577     if test "$cross_compiling" = maybe; then
4578         cross_compiling=yes
4579     else
4580         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4582 as_fn_error "cannot run C compiled programs.
4583 If you meant to cross compile, use \`--host'.
4584 See \`config.log' for more details." "$LINENO" 5; }
4585     fi
4586   fi
4587 fi
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4589 $as_echo "$cross_compiling" >&6; }
4590
4591 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4592 ac_clean_files=$ac_clean_files_save
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4594 $as_echo_n "checking for suffix of object files... " >&6; }
4595 if test "${ac_cv_objext+set}" = set; then :
4596   $as_echo_n "(cached) " >&6
4597 else
4598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h.  */
4600
4601 int
4602 main ()
4603 {
4604
4605   ;
4606   return 0;
4607 }
4608 _ACEOF
4609 rm -f conftest.o conftest.obj
4610 if { { ac_try="$ac_compile"
4611 case "(($ac_try" in
4612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613   *) ac_try_echo=$ac_try;;
4614 esac
4615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4616 $as_echo "$ac_try_echo"; } >&5
4617   (eval "$ac_compile") 2>&5
4618   ac_status=$?
4619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4620   test $ac_status = 0; }; then :
4621   for ac_file in conftest.o conftest.obj conftest.*; do
4622   test -f "$ac_file" || continue;
4623   case $ac_file in
4624     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4625     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4626        break;;
4627   esac
4628 done
4629 else
4630   $as_echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4632
4633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4635 as_fn_error "cannot compute suffix of object files: cannot compile
4636 See \`config.log' for more details." "$LINENO" 5; }
4637 fi
4638 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4639 fi
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4641 $as_echo "$ac_cv_objext" >&6; }
4642 OBJEXT=$ac_cv_objext
4643 ac_objext=$OBJEXT
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4645 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4646 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4647   $as_echo_n "(cached) " >&6
4648 else
4649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h.  */
4651
4652 int
4653 main ()
4654 {
4655 #ifndef __GNUC__
4656        choke me
4657 #endif
4658
4659   ;
4660   return 0;
4661 }
4662 _ACEOF
4663 if ac_fn_c_try_compile "$LINENO"; then :
4664   ac_compiler_gnu=yes
4665 else
4666   ac_compiler_gnu=no
4667 fi
4668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4670
4671 fi
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4673 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4674 if test $ac_compiler_gnu = yes; then
4675   GCC=yes
4676 else
4677   GCC=
4678 fi
4679 ac_test_CFLAGS=${CFLAGS+set}
4680 ac_save_CFLAGS=$CFLAGS
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4682 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4683 if test "${ac_cv_prog_cc_g+set}" = set; then :
4684   $as_echo_n "(cached) " >&6
4685 else
4686   ac_save_c_werror_flag=$ac_c_werror_flag
4687    ac_c_werror_flag=yes
4688    ac_cv_prog_cc_g=no
4689    CFLAGS="-g"
4690    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h.  */
4692
4693 int
4694 main ()
4695 {
4696
4697   ;
4698   return 0;
4699 }
4700 _ACEOF
4701 if ac_fn_c_try_compile "$LINENO"; then :
4702   ac_cv_prog_cc_g=yes
4703 else
4704   CFLAGS=""
4705       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h.  */
4707
4708 int
4709 main ()
4710 {
4711
4712   ;
4713   return 0;
4714 }
4715 _ACEOF
4716 if ac_fn_c_try_compile "$LINENO"; then :
4717
4718 else
4719   ac_c_werror_flag=$ac_save_c_werror_flag
4720          CFLAGS="-g"
4721          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h.  */
4723
4724 int
4725 main ()
4726 {
4727
4728   ;
4729   return 0;
4730 }
4731 _ACEOF
4732 if ac_fn_c_try_compile "$LINENO"; then :
4733   ac_cv_prog_cc_g=yes
4734 fi
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 fi
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 fi
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740    ac_c_werror_flag=$ac_save_c_werror_flag
4741 fi
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4743 $as_echo "$ac_cv_prog_cc_g" >&6; }
4744 if test "$ac_test_CFLAGS" = set; then
4745   CFLAGS=$ac_save_CFLAGS
4746 elif test $ac_cv_prog_cc_g = yes; then
4747   if test "$GCC" = yes; then
4748     CFLAGS="-g -O2"
4749   else
4750     CFLAGS="-g"
4751   fi
4752 else
4753   if test "$GCC" = yes; then
4754     CFLAGS="-O2"
4755   else
4756     CFLAGS=
4757   fi
4758 fi
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4760 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4761 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4762   $as_echo_n "(cached) " >&6
4763 else
4764   ac_cv_prog_cc_c89=no
4765 ac_save_CC=$CC
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h.  */
4768 #include <stdarg.h>
4769 #include <stdio.h>
4770 #include <sys/types.h>
4771 #include <sys/stat.h>
4772 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4773 struct buf { int x; };
4774 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4775 static char *e (p, i)
4776      char **p;
4777      int i;
4778 {
4779   return p[i];
4780 }
4781 static char *f (char * (*g) (char **, int), char **p, ...)
4782 {
4783   char *s;
4784   va_list v;
4785   va_start (v,p);
4786   s = g (p, va_arg (v,int));
4787   va_end (v);
4788   return s;
4789 }
4790
4791 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4792    function prototypes and stuff, but not '\xHH' hex character constants.
4793    These don't provoke an error unfortunately, instead are silently treated
4794    as 'x'.  The following induces an error, until -std is added to get
4795    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4796    array size at least.  It's necessary to write '\x00'==0 to get something
4797    that's true only with -std.  */
4798 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4799
4800 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4801    inside strings and character constants.  */
4802 #define FOO(x) 'x'
4803 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4804
4805 int test (int i, double x);
4806 struct s1 {int (*f) (int a);};
4807 struct s2 {int (*f) (double a);};
4808 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4809 int argc;
4810 char **argv;
4811 int
4812 main ()
4813 {
4814 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4815   ;
4816   return 0;
4817 }
4818 _ACEOF
4819 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4820         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4821 do
4822   CC="$ac_save_CC $ac_arg"
4823   if ac_fn_c_try_compile "$LINENO"; then :
4824   ac_cv_prog_cc_c89=$ac_arg
4825 fi
4826 rm -f core conftest.err conftest.$ac_objext
4827   test "x$ac_cv_prog_cc_c89" != "xno" && break
4828 done
4829 rm -f conftest.$ac_ext
4830 CC=$ac_save_CC
4831
4832 fi
4833 # AC_CACHE_VAL
4834 case "x$ac_cv_prog_cc_c89" in
4835   x)
4836     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4837 $as_echo "none needed" >&6; } ;;
4838   xno)
4839     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4840 $as_echo "unsupported" >&6; } ;;
4841   *)
4842     CC="$CC $ac_cv_prog_cc_c89"
4843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4844 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4845 esac
4846 if test "x$ac_cv_prog_cc_c89" != xno; then :
4847
4848 fi
4849
4850 ac_ext=c
4851 ac_cpp='$CPP $CPPFLAGS'
4852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4855 DEPDIR="${am__leading_dot}deps"
4856
4857 ac_config_commands="$ac_config_commands depfiles"
4858
4859
4860 am_make=${MAKE-make}
4861 cat > confinc << 'END'
4862 am__doit:
4863         @echo this is the am__doit target
4864 .PHONY: am__doit
4865 END
4866 # If we don't find an include directive, just comment out the code.
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4868 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4869 am__include="#"
4870 am__quote=
4871 _am_result=none
4872 # First try GNU make style include.
4873 echo "include confinc" > confmf
4874 # Ignore all kinds of additional output from `make'.
4875 case `$am_make -s -f confmf 2> /dev/null` in #(
4876 *the\ am__doit\ target*)
4877   am__include=include
4878   am__quote=
4879   _am_result=GNU
4880   ;;
4881 esac
4882 # Now try BSD make style include.
4883 if test "$am__include" = "#"; then
4884    echo '.include "confinc"' > confmf
4885    case `$am_make -s -f confmf 2> /dev/null` in #(
4886    *the\ am__doit\ target*)
4887      am__include=.include
4888      am__quote="\""
4889      _am_result=BSD
4890      ;;
4891    esac
4892 fi
4893
4894
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4896 $as_echo "$_am_result" >&6; }
4897 rm -f confinc confmf
4898
4899 # Check whether --enable-dependency-tracking was given.
4900 if test "${enable_dependency_tracking+set}" = set; then :
4901   enableval=$enable_dependency_tracking;
4902 fi
4903
4904 if test "x$enable_dependency_tracking" != xno; then
4905   am_depcomp="$ac_aux_dir/depcomp"
4906   AMDEPBACKSLASH='\'
4907 fi
4908  if test "x$enable_dependency_tracking" != xno; then
4909   AMDEP_TRUE=
4910   AMDEP_FALSE='#'
4911 else
4912   AMDEP_TRUE='#'
4913   AMDEP_FALSE=
4914 fi
4915
4916
4917
4918 depcc="$CC"   am_compiler_list=
4919
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4921 $as_echo_n "checking dependency style of $depcc... " >&6; }
4922 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4923   $as_echo_n "(cached) " >&6
4924 else
4925   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4926   # We make a subdir and do the tests there.  Otherwise we can end up
4927   # making bogus files that we don't know about and never remove.  For
4928   # instance it was reported that on HP-UX the gcc test will end up
4929   # making a dummy file named `D' -- because `-MD' means `put the output
4930   # in D'.
4931   mkdir conftest.dir
4932   # Copy depcomp to subdir because otherwise we won't find it if we're
4933   # using a relative directory.
4934   cp "$am_depcomp" conftest.dir
4935   cd conftest.dir
4936   # We will build objects and dependencies in a subdirectory because
4937   # it helps to detect inapplicable dependency modes.  For instance
4938   # both Tru64's cc and ICC support -MD to output dependencies as a
4939   # side effect of compilation, but ICC will put the dependencies in
4940   # the current directory while Tru64 will put them in the object
4941   # directory.
4942   mkdir sub
4943
4944   am_cv_CC_dependencies_compiler_type=none
4945   if test "$am_compiler_list" = ""; then
4946      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4947   fi
4948   am__universal=false
4949   case " $depcc " in #(
4950      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4951      esac
4952
4953   for depmode in $am_compiler_list; do
4954     # Setup a source with many dependencies, because some compilers
4955     # like to wrap large dependency lists on column 80 (with \), and
4956     # we should not choose a depcomp mode which is confused by this.
4957     #
4958     # We need to recreate these files for each test, as the compiler may
4959     # overwrite some of them when testing with obscure command lines.
4960     # This happens at least with the AIX C compiler.
4961     : > sub/conftest.c
4962     for i in 1 2 3 4 5 6; do
4963       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4964       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4965       # Solaris 8's {/usr,}/bin/sh.
4966       touch sub/conftst$i.h
4967     done
4968     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4969
4970     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4971     # mode.  It turns out that the SunPro C++ compiler does not properly
4972     # handle `-M -o', and we need to detect this.  Also, some Intel
4973     # versions had trouble with output in subdirs
4974     am__obj=sub/conftest.${OBJEXT-o}
4975     am__minus_obj="-o $am__obj"
4976     case $depmode in
4977     gcc)
4978       # This depmode causes a compiler race in universal mode.
4979       test "$am__universal" = false || continue
4980       ;;
4981     nosideeffect)
4982       # after this tag, mechanisms are not by side-effect, so they'll
4983       # only be used when explicitly requested
4984       if test "x$enable_dependency_tracking" = xyes; then
4985         continue
4986       else
4987         break
4988       fi
4989       ;;
4990     msvisualcpp | msvcmsys)
4991       # This compiler won't grok `-c -o', but also, the minuso test has
4992       # not run yet.  These depmodes are late enough in the game, and
4993       # so weak that their functioning should not be impacted.
4994       am__obj=conftest.${OBJEXT-o}
4995       am__minus_obj=
4996       ;;
4997     none) break ;;
4998     esac
4999     if depmode=$depmode \
5000        source=sub/conftest.c object=$am__obj \
5001        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5002        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5003          >/dev/null 2>conftest.err &&
5004        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5005        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5006        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5007        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5008       # icc doesn't choke on unknown options, it will just issue warnings
5009       # or remarks (even with -Werror).  So we grep stderr for any message
5010       # that says an option was ignored or not supported.
5011       # When given -MP, icc 7.0 and 7.1 complain thusly:
5012       #   icc: Command line warning: ignoring option '-M'; no argument required
5013       # The diagnosis changed in icc 8.0:
5014       #   icc: Command line remark: option '-MP' not supported
5015       if (grep 'ignoring option' conftest.err ||
5016           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5017         am_cv_CC_dependencies_compiler_type=$depmode
5018         break
5019       fi
5020     fi
5021   done
5022
5023   cd ..
5024   rm -rf conftest.dir
5025 else
5026   am_cv_CC_dependencies_compiler_type=none
5027 fi
5028
5029 fi
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5031 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5032 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5033
5034  if
5035   test "x$enable_dependency_tracking" != xno \
5036   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5037   am__fastdepCC_TRUE=
5038   am__fastdepCC_FALSE='#'
5039 else
5040   am__fastdepCC_TRUE='#'
5041   am__fastdepCC_FALSE=
5042 fi
5043
5044
5045 ac_ext=cpp
5046 ac_cpp='$CXXCPP $CPPFLAGS'
5047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5050 if test -z "$CXX"; then
5051   if test -n "$CCC"; then
5052     CXX=$CCC
5053   else
5054     if test -n "$ac_tool_prefix"; then
5055   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5056   do
5057     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5058 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if test "${ac_cv_prog_CXX+set}" = set; then :
5062   $as_echo_n "(cached) " >&6
5063 else
5064   if test -n "$CXX"; then
5065   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5066 else
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5069 do
5070   IFS=$as_save_IFS
5071   test -z "$as_dir" && as_dir=.
5072     for ac_exec_ext in '' $ac_executable_extensions; do
5073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5074     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076     break 2
5077   fi
5078 done
5079   done
5080 IFS=$as_save_IFS
5081
5082 fi
5083 fi
5084 CXX=$ac_cv_prog_CXX
5085 if test -n "$CXX"; then
5086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5087 $as_echo "$CXX" >&6; }
5088 else
5089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090 $as_echo "no" >&6; }
5091 fi
5092
5093
5094     test -n "$CXX" && break
5095   done
5096 fi
5097 if test -z "$CXX"; then
5098   ac_ct_CXX=$CXX
5099   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5100 do
5101   # Extract the first word of "$ac_prog", so it can be a program name with args.
5102 set dummy $ac_prog; ac_word=$2
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104 $as_echo_n "checking for $ac_word... " >&6; }
5105 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5106   $as_echo_n "(cached) " >&6
5107 else
5108   if test -n "$ac_ct_CXX"; then
5109   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5110 else
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5113 do
5114   IFS=$as_save_IFS
5115   test -z "$as_dir" && as_dir=.
5116     for ac_exec_ext in '' $ac_executable_extensions; do
5117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118     ac_cv_prog_ac_ct_CXX="$ac_prog"
5119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120     break 2
5121   fi
5122 done
5123   done
5124 IFS=$as_save_IFS
5125
5126 fi
5127 fi
5128 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5129 if test -n "$ac_ct_CXX"; then
5130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5131 $as_echo "$ac_ct_CXX" >&6; }
5132 else
5133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134 $as_echo "no" >&6; }
5135 fi
5136
5137
5138   test -n "$ac_ct_CXX" && break
5139 done
5140
5141   if test "x$ac_ct_CXX" = x; then
5142     CXX="g++"
5143   else
5144     case $cross_compiling:$ac_tool_warned in
5145 yes:)
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5148 ac_tool_warned=yes ;;
5149 esac
5150     CXX=$ac_ct_CXX
5151   fi
5152 fi
5153
5154   fi
5155 fi
5156 # Provide some information about the compiler.
5157 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5158 set X $ac_compile
5159 ac_compiler=$2
5160 for ac_option in --version -v -V -qversion; do
5161   { { ac_try="$ac_compiler $ac_option >&5"
5162 case "(($ac_try" in
5163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164   *) ac_try_echo=$ac_try;;
5165 esac
5166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5167 $as_echo "$ac_try_echo"; } >&5
5168   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5169   ac_status=$?
5170   if test -s conftest.err; then
5171     sed '10a\
5172 ... rest of stderr output deleted ...
5173          10q' conftest.err >conftest.er1
5174     cat conftest.er1 >&5
5175   fi
5176   rm -f conftest.er1 conftest.err
5177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5178   test $ac_status = 0; }
5179 done
5180
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5182 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5183 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5184   $as_echo_n "(cached) " >&6
5185 else
5186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h.  */
5188
5189 int
5190 main ()
5191 {
5192 #ifndef __GNUC__
5193        choke me
5194 #endif
5195
5196   ;
5197   return 0;
5198 }
5199 _ACEOF
5200 if ac_fn_cxx_try_compile "$LINENO"; then :
5201   ac_compiler_gnu=yes
5202 else
5203   ac_compiler_gnu=no
5204 fi
5205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5206 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5207
5208 fi
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5210 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5211 if test $ac_compiler_gnu = yes; then
5212   GXX=yes
5213 else
5214   GXX=
5215 fi
5216 ac_test_CXXFLAGS=${CXXFLAGS+set}
5217 ac_save_CXXFLAGS=$CXXFLAGS
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5219 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5220 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5221   $as_echo_n "(cached) " >&6
5222 else
5223   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5224    ac_cxx_werror_flag=yes
5225    ac_cv_prog_cxx_g=no
5226    CXXFLAGS="-g"
5227    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h.  */
5229
5230 int
5231 main ()
5232 {
5233
5234   ;
5235   return 0;
5236 }
5237 _ACEOF
5238 if ac_fn_cxx_try_compile "$LINENO"; then :
5239   ac_cv_prog_cxx_g=yes
5240 else
5241   CXXFLAGS=""
5242       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h.  */
5244
5245 int
5246 main ()
5247 {
5248
5249   ;
5250   return 0;
5251 }
5252 _ACEOF
5253 if ac_fn_cxx_try_compile "$LINENO"; then :
5254
5255 else
5256   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5257          CXXFLAGS="-g"
5258          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h.  */
5260
5261 int
5262 main ()
5263 {
5264
5265   ;
5266   return 0;
5267 }
5268 _ACEOF
5269 if ac_fn_cxx_try_compile "$LINENO"; then :
5270   ac_cv_prog_cxx_g=yes
5271 fi
5272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273 fi
5274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275 fi
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5278 fi
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5280 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5281 if test "$ac_test_CXXFLAGS" = set; then
5282   CXXFLAGS=$ac_save_CXXFLAGS
5283 elif test $ac_cv_prog_cxx_g = yes; then
5284   if test "$GXX" = yes; then
5285     CXXFLAGS="-g -O2"
5286   else
5287     CXXFLAGS="-g"
5288   fi
5289 else
5290   if test "$GXX" = yes; then
5291     CXXFLAGS="-O2"
5292   else
5293     CXXFLAGS=
5294   fi
5295 fi
5296 ac_ext=c
5297 ac_cpp='$CPP $CPPFLAGS'
5298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5301
5302 depcc="$CXX"  am_compiler_list=
5303
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5305 $as_echo_n "checking dependency style of $depcc... " >&6; }
5306 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5307   $as_echo_n "(cached) " >&6
5308 else
5309   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5310   # We make a subdir and do the tests there.  Otherwise we can end up
5311   # making bogus files that we don't know about and never remove.  For
5312   # instance it was reported that on HP-UX the gcc test will end up
5313   # making a dummy file named `D' -- because `-MD' means `put the output
5314   # in D'.
5315   mkdir conftest.dir
5316   # Copy depcomp to subdir because otherwise we won't find it if we're
5317   # using a relative directory.
5318   cp "$am_depcomp" conftest.dir
5319   cd conftest.dir
5320   # We will build objects and dependencies in a subdirectory because
5321   # it helps to detect inapplicable dependency modes.  For instance
5322   # both Tru64's cc and ICC support -MD to output dependencies as a
5323   # side effect of compilation, but ICC will put the dependencies in
5324   # the current directory while Tru64 will put them in the object
5325   # directory.
5326   mkdir sub
5327
5328   am_cv_CXX_dependencies_compiler_type=none
5329   if test "$am_compiler_list" = ""; then
5330      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5331   fi
5332   am__universal=false
5333   case " $depcc " in #(
5334      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5335      esac
5336
5337   for depmode in $am_compiler_list; do
5338     # Setup a source with many dependencies, because some compilers
5339     # like to wrap large dependency lists on column 80 (with \), and
5340     # we should not choose a depcomp mode which is confused by this.
5341     #
5342     # We need to recreate these files for each test, as the compiler may
5343     # overwrite some of them when testing with obscure command lines.
5344     # This happens at least with the AIX C compiler.
5345     : > sub/conftest.c
5346     for i in 1 2 3 4 5 6; do
5347       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5348       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5349       # Solaris 8's {/usr,}/bin/sh.
5350       touch sub/conftst$i.h
5351     done
5352     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5353
5354     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5355     # mode.  It turns out that the SunPro C++ compiler does not properly
5356     # handle `-M -o', and we need to detect this.  Also, some Intel
5357     # versions had trouble with output in subdirs
5358     am__obj=sub/conftest.${OBJEXT-o}
5359     am__minus_obj="-o $am__obj"
5360     case $depmode in
5361     gcc)
5362       # This depmode causes a compiler race in universal mode.
5363       test "$am__universal" = false || continue
5364       ;;
5365     nosideeffect)
5366       # after this tag, mechanisms are not by side-effect, so they'll
5367       # only be used when explicitly requested
5368       if test "x$enable_dependency_tracking" = xyes; then
5369         continue
5370       else
5371         break
5372       fi
5373       ;;
5374     msvisualcpp | msvcmsys)
5375       # This compiler won't grok `-c -o', but also, the minuso test has
5376       # not run yet.  These depmodes are late enough in the game, and
5377       # so weak that their functioning should not be impacted.
5378       am__obj=conftest.${OBJEXT-o}
5379       am__minus_obj=
5380       ;;
5381     none) break ;;
5382     esac
5383     if depmode=$depmode \
5384        source=sub/conftest.c object=$am__obj \
5385        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5386        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5387          >/dev/null 2>conftest.err &&
5388        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5389        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5390        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5391        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5392       # icc doesn't choke on unknown options, it will just issue warnings
5393       # or remarks (even with -Werror).  So we grep stderr for any message
5394       # that says an option was ignored or not supported.
5395       # When given -MP, icc 7.0 and 7.1 complain thusly:
5396       #   icc: Command line warning: ignoring option '-M'; no argument required
5397       # The diagnosis changed in icc 8.0:
5398       #   icc: Command line remark: option '-MP' not supported
5399       if (grep 'ignoring option' conftest.err ||
5400           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5401         am_cv_CXX_dependencies_compiler_type=$depmode
5402         break
5403       fi
5404     fi
5405   done
5406
5407   cd ..
5408   rm -rf conftest.dir
5409 else
5410   am_cv_CXX_dependencies_compiler_type=none
5411 fi
5412
5413 fi
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5415 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5416 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5417
5418  if
5419   test "x$enable_dependency_tracking" != xno \
5420   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5421   am__fastdepCXX_TRUE=
5422   am__fastdepCXX_FALSE='#'
5423 else
5424   am__fastdepCXX_TRUE='#'
5425   am__fastdepCXX_FALSE=
5426 fi
5427
5428
5429    case $ac_cv_prog_cc_stdc in #(
5430   no) :
5431     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5432   *) :
5433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5434 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5435 if test "${ac_cv_prog_cc_c99+set}" = set; then :
5436   $as_echo_n "(cached) " >&6
5437 else
5438   ac_cv_prog_cc_c99=no
5439 ac_save_CC=$CC
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h.  */
5442 #include <stdarg.h>
5443 #include <stdbool.h>
5444 #include <stdlib.h>
5445 #include <wchar.h>
5446 #include <stdio.h>
5447
5448 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
5449 #define debug(...) fprintf (stderr, __VA_ARGS__)
5450 #define showlist(...) puts (#__VA_ARGS__)
5451 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5452 static void
5453 test_varargs_macros (void)
5454 {
5455   int x = 1234;
5456   int y = 5678;
5457   debug ("Flag");
5458   debug ("X = %d\n", x);
5459   showlist (The first, second, and third items.);
5460   report (x>y, "x is %d but y is %d", x, y);
5461 }
5462
5463 // Check long long types.
5464 #define BIG64 18446744073709551615ull
5465 #define BIG32 4294967295ul
5466 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5467 #if !BIG_OK
5468   your preprocessor is broken;
5469 #endif
5470 #if BIG_OK
5471 #else
5472   your preprocessor is broken;
5473 #endif
5474 static long long int bignum = -9223372036854775807LL;
5475 static unsigned long long int ubignum = BIG64;
5476
5477 struct incomplete_array
5478 {
5479   int datasize;
5480   double data[];
5481 };
5482
5483 struct named_init {
5484   int number;
5485   const wchar_t *name;
5486   double average;
5487 };
5488
5489 typedef const char *ccp;
5490
5491 static inline int
5492 test_restrict (ccp restrict text)
5493 {
5494   // See if C++-style comments work.
5495   // Iterate through items via the restricted pointer.
5496   // Also check for declarations in for loops.
5497   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5498     continue;
5499   return 0;
5500 }
5501
5502 // Check varargs and va_copy.
5503 static void
5504 test_varargs (const char *format, ...)
5505 {
5506   va_list args;
5507   va_start (args, format);
5508   va_list args_copy;
5509   va_copy (args_copy, args);
5510
5511   const char *str;
5512   int number;
5513   float fnumber;
5514
5515   while (*format)
5516     {
5517       switch (*format++)
5518         {
5519         case 's': // string
5520           str = va_arg (args_copy, const char *);
5521           break;
5522         case 'd': // int
5523           number = va_arg (args_copy, int);
5524           break;
5525         case 'f': // float
5526           fnumber = va_arg (args_copy, double);
5527           break;
5528         default:
5529           break;
5530         }
5531     }
5532   va_end (args_copy);
5533   va_end (args);
5534 }
5535
5536 int
5537 main ()
5538 {
5539
5540   // Check bool.
5541   _Bool success = false;
5542
5543   // Check restrict.
5544   if (test_restrict ("String literal") == 0)
5545     success = true;
5546   char *restrict newvar = "Another string";
5547
5548   // Check varargs.
5549   test_varargs ("s, d' f .", "string", 65, 34.234);
5550   test_varargs_macros ();
5551
5552   // Check flexible array members.
5553   struct incomplete_array *ia =
5554     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5555   ia->datasize = 10;
5556   for (int i = 0; i < ia->datasize; ++i)
5557     ia->data[i] = i * 1.234;
5558
5559   // Check named initializers.
5560   struct named_init ni = {
5561     .number = 34,
5562     .name = L"Test wide string",
5563     .average = 543.34343,
5564   };
5565
5566   ni.number = 58;
5567
5568   int dynamic_array[ni.number];
5569   dynamic_array[ni.number - 1] = 543;
5570
5571   // work around unused variable warnings
5572   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5573           || dynamic_array[ni.number - 1] != 543);
5574
5575   ;
5576   return 0;
5577 }
5578 _ACEOF
5579 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5580 do
5581   CC="$ac_save_CC $ac_arg"
5582   if ac_fn_c_try_compile "$LINENO"; then :
5583   ac_cv_prog_cc_c99=$ac_arg
5584 fi
5585 rm -f core conftest.err conftest.$ac_objext
5586   test "x$ac_cv_prog_cc_c99" != "xno" && break
5587 done
5588 rm -f conftest.$ac_ext
5589 CC=$ac_save_CC
5590
5591 fi
5592 # AC_CACHE_VAL
5593 case "x$ac_cv_prog_cc_c99" in
5594   x)
5595     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5596 $as_echo "none needed" >&6; } ;;
5597   xno)
5598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5599 $as_echo "unsupported" >&6; } ;;
5600   *)
5601     CC="$CC $ac_cv_prog_cc_c99"
5602     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5603 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5604 esac
5605 if test "x$ac_cv_prog_cc_c99" != xno; then :
5606   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5607 else
5608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5609 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5610 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5611   $as_echo_n "(cached) " >&6
5612 else
5613   ac_cv_prog_cc_c89=no
5614 ac_save_CC=$CC
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h.  */
5617 #include <stdarg.h>
5618 #include <stdio.h>
5619 #include <sys/types.h>
5620 #include <sys/stat.h>
5621 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5622 struct buf { int x; };
5623 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5624 static char *e (p, i)
5625      char **p;
5626      int i;
5627 {
5628   return p[i];
5629 }
5630 static char *f (char * (*g) (char **, int), char **p, ...)
5631 {
5632   char *s;
5633   va_list v;
5634   va_start (v,p);
5635   s = g (p, va_arg (v,int));
5636   va_end (v);
5637   return s;
5638 }
5639
5640 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5641    function prototypes and stuff, but not '\xHH' hex character constants.
5642    These don't provoke an error unfortunately, instead are silently treated
5643    as 'x'.  The following induces an error, until -std is added to get
5644    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5645    array size at least.  It's necessary to write '\x00'==0 to get something
5646    that's true only with -std.  */
5647 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5648
5649 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5650    inside strings and character constants.  */
5651 #define FOO(x) 'x'
5652 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5653
5654 int test (int i, double x);
5655 struct s1 {int (*f) (int a);};
5656 struct s2 {int (*f) (double a);};
5657 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5658 int argc;
5659 char **argv;
5660 int
5661 main ()
5662 {
5663 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5664   ;
5665   return 0;
5666 }
5667 _ACEOF
5668 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5669         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5670 do
5671   CC="$ac_save_CC $ac_arg"
5672   if ac_fn_c_try_compile "$LINENO"; then :
5673   ac_cv_prog_cc_c89=$ac_arg
5674 fi
5675 rm -f core conftest.err conftest.$ac_objext
5676   test "x$ac_cv_prog_cc_c89" != "xno" && break
5677 done
5678 rm -f conftest.$ac_ext
5679 CC=$ac_save_CC
5680
5681 fi
5682 # AC_CACHE_VAL
5683 case "x$ac_cv_prog_cc_c89" in
5684   x)
5685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5686 $as_echo "none needed" >&6; } ;;
5687   xno)
5688     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5689 $as_echo "unsupported" >&6; } ;;
5690   *)
5691     CC="$CC $ac_cv_prog_cc_c89"
5692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5693 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5694 esac
5695 if test "x$ac_cv_prog_cc_c89" != xno; then :
5696   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5697 else
5698   ac_cv_prog_cc_stdc=no
5699 fi
5700
5701 fi
5702  ;;
5703 esac
5704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5705 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5706   if test "${ac_cv_prog_cc_stdc+set}" = set; then :
5707   $as_echo_n "(cached) " >&6
5708 fi
5709
5710   case $ac_cv_prog_cc_stdc in #(
5711   no) :
5712     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5713 $as_echo "unsupported" >&6; } ;; #(
5714   '') :
5715     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5716 $as_echo "none needed" >&6; } ;; #(
5717   *) :
5718     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5719 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5720 esac
5721
5722 ac_ext=c
5723 ac_cpp='$CPP $CPPFLAGS'
5724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5728 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5729 # On Suns, sometimes $CPP names a directory.
5730 if test -n "$CPP" && test -d "$CPP"; then
5731   CPP=
5732 fi
5733 if test -z "$CPP"; then
5734   if test "${ac_cv_prog_CPP+set}" = set; then :
5735   $as_echo_n "(cached) " >&6
5736 else
5737       # Double quotes because CPP needs to be expanded
5738     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5739     do
5740       ac_preproc_ok=false
5741 for ac_c_preproc_warn_flag in '' yes
5742 do
5743   # Use a header file that comes with gcc, so configuring glibc
5744   # with a fresh cross-compiler works.
5745   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5746   # <limits.h> exists even on freestanding compilers.
5747   # On the NeXT, cc -E runs the code through the compiler's parser,
5748   # not just through cpp. "Syntax error" is here to catch this case.
5749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h.  */
5751 #ifdef __STDC__
5752 # include <limits.h>
5753 #else
5754 # include <assert.h>
5755 #endif
5756                      Syntax error
5757 _ACEOF
5758 if ac_fn_c_try_cpp "$LINENO"; then :
5759
5760 else
5761   # Broken: fails on valid input.
5762 continue
5763 fi
5764 rm -f conftest.err conftest.$ac_ext
5765
5766   # OK, works on sane cases.  Now check whether nonexistent headers
5767   # can be detected and how.
5768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h.  */
5770 #include <ac_nonexistent.h>
5771 _ACEOF
5772 if ac_fn_c_try_cpp "$LINENO"; then :
5773   # Broken: success on invalid input.
5774 continue
5775 else
5776   # Passes both tests.
5777 ac_preproc_ok=:
5778 break
5779 fi
5780 rm -f conftest.err conftest.$ac_ext
5781
5782 done
5783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5784 rm -f conftest.err conftest.$ac_ext
5785 if $ac_preproc_ok; then :
5786   break
5787 fi
5788
5789     done
5790     ac_cv_prog_CPP=$CPP
5791
5792 fi
5793   CPP=$ac_cv_prog_CPP
5794 else
5795   ac_cv_prog_CPP=$CPP
5796 fi
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5798 $as_echo "$CPP" >&6; }
5799 ac_preproc_ok=false
5800 for ac_c_preproc_warn_flag in '' yes
5801 do
5802   # Use a header file that comes with gcc, so configuring glibc
5803   # with a fresh cross-compiler works.
5804   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5805   # <limits.h> exists even on freestanding compilers.
5806   # On the NeXT, cc -E runs the code through the compiler's parser,
5807   # not just through cpp. "Syntax error" is here to catch this case.
5808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h.  */
5810 #ifdef __STDC__
5811 # include <limits.h>
5812 #else
5813 # include <assert.h>
5814 #endif
5815                      Syntax error
5816 _ACEOF
5817 if ac_fn_c_try_cpp "$LINENO"; then :
5818
5819 else
5820   # Broken: fails on valid input.
5821 continue
5822 fi
5823 rm -f conftest.err conftest.$ac_ext
5824
5825   # OK, works on sane cases.  Now check whether nonexistent headers
5826   # can be detected and how.
5827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h.  */
5829 #include <ac_nonexistent.h>
5830 _ACEOF
5831 if ac_fn_c_try_cpp "$LINENO"; then :
5832   # Broken: success on invalid input.
5833 continue
5834 else
5835   # Passes both tests.
5836 ac_preproc_ok=:
5837 break
5838 fi
5839 rm -f conftest.err conftest.$ac_ext
5840
5841 done
5842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5843 rm -f conftest.err conftest.$ac_ext
5844 if $ac_preproc_ok; then :
5845
5846 else
5847   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5849 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5850 See \`config.log' for more details." "$LINENO" 5; }
5851 fi
5852
5853 ac_ext=c
5854 ac_cpp='$CPP $CPPFLAGS'
5855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5858
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5860 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5861 if test "${ac_cv_path_SED+set}" = set; then :
5862   $as_echo_n "(cached) " >&6
5863 else
5864             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5865      for ac_i in 1 2 3 4 5 6 7; do
5866        ac_script="$ac_script$as_nl$ac_script"
5867      done
5868      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5869      { ac_script=; unset ac_script;}
5870      if test -z "$SED"; then
5871   ac_path_SED_found=false
5872   # Loop through the user's path and test for each of PROGNAME-LIST
5873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH
5875 do
5876   IFS=$as_save_IFS
5877   test -z "$as_dir" && as_dir=.
5878     for ac_prog in sed gsed; do
5879     for ac_exec_ext in '' $ac_executable_extensions; do
5880       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5881       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5882 # Check for GNU ac_path_SED and select it if it is found.
5883   # Check for GNU $ac_path_SED
5884 case `"$ac_path_SED" --version 2>&1` in
5885 *GNU*)
5886   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5887 *)
5888   ac_count=0
5889   $as_echo_n 0123456789 >"conftest.in"
5890   while :
5891   do
5892     cat "conftest.in" "conftest.in" >"conftest.tmp"
5893     mv "conftest.tmp" "conftest.in"
5894     cp "conftest.in" "conftest.nl"
5895     $as_echo '' >> "conftest.nl"
5896     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5897     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5898     as_fn_arith $ac_count + 1 && ac_count=$as_val
5899     if test $ac_count -gt ${ac_path_SED_max-0}; then
5900       # Best one so far, save it but keep looking for a better one
5901       ac_cv_path_SED="$ac_path_SED"
5902       ac_path_SED_max=$ac_count
5903     fi
5904     # 10*(2^10) chars as input seems more than enough
5905     test $ac_count -gt 10 && break
5906   done
5907   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5908 esac
5909
5910       $ac_path_SED_found && break 3
5911     done
5912   done
5913   done
5914 IFS=$as_save_IFS
5915   if test -z "$ac_cv_path_SED"; then
5916     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5917   fi
5918 else
5919   ac_cv_path_SED=$SED
5920 fi
5921
5922 fi
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5924 $as_echo "$ac_cv_path_SED" >&6; }
5925  SED="$ac_cv_path_SED"
5926   rm -f conftest.sed
5927
5928 test -z "$SED" && SED=sed
5929 Xsed="$SED -e 1s/^X//"
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5942 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5943 if test "${ac_cv_path_GREP+set}" = set; then :
5944   $as_echo_n "(cached) " >&6
5945 else
5946   if test -z "$GREP"; then
5947   ac_path_GREP_found=false
5948   # Loop through the user's path and test for each of PROGNAME-LIST
5949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5951 do
5952   IFS=$as_save_IFS
5953   test -z "$as_dir" && as_dir=.
5954     for ac_prog in grep ggrep; do
5955     for ac_exec_ext in '' $ac_executable_extensions; do
5956       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5957       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5958 # Check for GNU ac_path_GREP and select it if it is found.
5959   # Check for GNU $ac_path_GREP
5960 case `"$ac_path_GREP" --version 2>&1` in
5961 *GNU*)
5962   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5963 *)
5964   ac_count=0
5965   $as_echo_n 0123456789 >"conftest.in"
5966   while :
5967   do
5968     cat "conftest.in" "conftest.in" >"conftest.tmp"
5969     mv "conftest.tmp" "conftest.in"
5970     cp "conftest.in" "conftest.nl"
5971     $as_echo 'GREP' >> "conftest.nl"
5972     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5973     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5974     as_fn_arith $ac_count + 1 && ac_count=$as_val
5975     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5976       # Best one so far, save it but keep looking for a better one
5977       ac_cv_path_GREP="$ac_path_GREP"
5978       ac_path_GREP_max=$ac_count
5979     fi
5980     # 10*(2^10) chars as input seems more than enough
5981     test $ac_count -gt 10 && break
5982   done
5983   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5984 esac
5985
5986       $ac_path_GREP_found && break 3
5987     done
5988   done
5989   done
5990 IFS=$as_save_IFS
5991   if test -z "$ac_cv_path_GREP"; then
5992     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5993   fi
5994 else
5995   ac_cv_path_GREP=$GREP
5996 fi
5997
5998 fi
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6000 $as_echo "$ac_cv_path_GREP" >&6; }
6001  GREP="$ac_cv_path_GREP"
6002
6003
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6005 $as_echo_n "checking for egrep... " >&6; }
6006 if test "${ac_cv_path_EGREP+set}" = set; then :
6007   $as_echo_n "(cached) " >&6
6008 else
6009   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6010    then ac_cv_path_EGREP="$GREP -E"
6011    else
6012      if test -z "$EGREP"; then
6013   ac_path_EGREP_found=false
6014   # Loop through the user's path and test for each of PROGNAME-LIST
6015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6017 do
6018   IFS=$as_save_IFS
6019   test -z "$as_dir" && as_dir=.
6020     for ac_prog in egrep; do
6021     for ac_exec_ext in '' $ac_executable_extensions; do
6022       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6023       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6024 # Check for GNU ac_path_EGREP and select it if it is found.
6025   # Check for GNU $ac_path_EGREP
6026 case `"$ac_path_EGREP" --version 2>&1` in
6027 *GNU*)
6028   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6029 *)
6030   ac_count=0
6031   $as_echo_n 0123456789 >"conftest.in"
6032   while :
6033   do
6034     cat "conftest.in" "conftest.in" >"conftest.tmp"
6035     mv "conftest.tmp" "conftest.in"
6036     cp "conftest.in" "conftest.nl"
6037     $as_echo 'EGREP' >> "conftest.nl"
6038     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6039     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6040     as_fn_arith $ac_count + 1 && ac_count=$as_val
6041     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6042       # Best one so far, save it but keep looking for a better one
6043       ac_cv_path_EGREP="$ac_path_EGREP"
6044       ac_path_EGREP_max=$ac_count
6045     fi
6046     # 10*(2^10) chars as input seems more than enough
6047     test $ac_count -gt 10 && break
6048   done
6049   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6050 esac
6051
6052       $ac_path_EGREP_found && break 3
6053     done
6054   done
6055   done
6056 IFS=$as_save_IFS
6057   if test -z "$ac_cv_path_EGREP"; then
6058     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6059   fi
6060 else
6061   ac_cv_path_EGREP=$EGREP
6062 fi
6063
6064    fi
6065 fi
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6067 $as_echo "$ac_cv_path_EGREP" >&6; }
6068  EGREP="$ac_cv_path_EGREP"
6069
6070
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6072 $as_echo_n "checking for fgrep... " >&6; }
6073 if test "${ac_cv_path_FGREP+set}" = set; then :
6074   $as_echo_n "(cached) " >&6
6075 else
6076   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6077    then ac_cv_path_FGREP="$GREP -F"
6078    else
6079      if test -z "$FGREP"; then
6080   ac_path_FGREP_found=false
6081   # Loop through the user's path and test for each of PROGNAME-LIST
6082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6084 do
6085   IFS=$as_save_IFS
6086   test -z "$as_dir" && as_dir=.
6087     for ac_prog in fgrep; do
6088     for ac_exec_ext in '' $ac_executable_extensions; do
6089       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6090       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6091 # Check for GNU ac_path_FGREP and select it if it is found.
6092   # Check for GNU $ac_path_FGREP
6093 case `"$ac_path_FGREP" --version 2>&1` in
6094 *GNU*)
6095   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6096 *)
6097   ac_count=0
6098   $as_echo_n 0123456789 >"conftest.in"
6099   while :
6100   do
6101     cat "conftest.in" "conftest.in" >"conftest.tmp"
6102     mv "conftest.tmp" "conftest.in"
6103     cp "conftest.in" "conftest.nl"
6104     $as_echo 'FGREP' >> "conftest.nl"
6105     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6106     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6107     as_fn_arith $ac_count + 1 && ac_count=$as_val
6108     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6109       # Best one so far, save it but keep looking for a better one
6110       ac_cv_path_FGREP="$ac_path_FGREP"
6111       ac_path_FGREP_max=$ac_count
6112     fi
6113     # 10*(2^10) chars as input seems more than enough
6114     test $ac_count -gt 10 && break
6115   done
6116   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6117 esac
6118
6119       $ac_path_FGREP_found && break 3
6120     done
6121   done
6122   done
6123 IFS=$as_save_IFS
6124   if test -z "$ac_cv_path_FGREP"; then
6125     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6126   fi
6127 else
6128   ac_cv_path_FGREP=$FGREP
6129 fi
6130
6131    fi
6132 fi
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6134 $as_echo "$ac_cv_path_FGREP" >&6; }
6135  FGREP="$ac_cv_path_FGREP"
6136
6137
6138 test -z "$GREP" && GREP=grep
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158 # Check whether --with-gnu-ld was given.
6159 if test "${with_gnu_ld+set}" = set; then :
6160   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6161 else
6162   with_gnu_ld=no
6163 fi
6164
6165 ac_prog=ld
6166 if test "$GCC" = yes; then
6167   # Check if gcc -print-prog-name=ld gives a path.
6168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6169 $as_echo_n "checking for ld used by $CC... " >&6; }
6170   case $host in
6171   *-*-mingw*)
6172     # gcc leaves a trailing carriage return which upsets mingw
6173     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6174   *)
6175     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6176   esac
6177   case $ac_prog in
6178     # Accept absolute paths.
6179     [\\/]* | ?:[\\/]*)
6180       re_direlt='/[^/][^/]*/\.\./'
6181       # Canonicalize the pathname of ld
6182       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6183       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6184         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6185       done
6186       test -z "$LD" && LD="$ac_prog"
6187       ;;
6188   "")
6189     # If it fails, then pretend we aren't using GCC.
6190     ac_prog=ld
6191     ;;
6192   *)
6193     # If it is relative, then search for the first ld in PATH.
6194     with_gnu_ld=unknown
6195     ;;
6196   esac
6197 elif test "$with_gnu_ld" = yes; then
6198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6199 $as_echo_n "checking for GNU ld... " >&6; }
6200 else
6201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6202 $as_echo_n "checking for non-GNU ld... " >&6; }
6203 fi
6204 if test "${lt_cv_path_LD+set}" = set; then :
6205   $as_echo_n "(cached) " >&6
6206 else
6207   if test -z "$LD"; then
6208   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6209   for ac_dir in $PATH; do
6210     IFS="$lt_save_ifs"
6211     test -z "$ac_dir" && ac_dir=.
6212     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6213       lt_cv_path_LD="$ac_dir/$ac_prog"
6214       # Check to see if the program is GNU ld.  I'd rather use --version,
6215       # but apparently some variants of GNU ld only accept -v.
6216       # Break only if it was the GNU/non-GNU ld that we prefer.
6217       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6218       *GNU* | *'with BFD'*)
6219         test "$with_gnu_ld" != no && break
6220         ;;
6221       *)
6222         test "$with_gnu_ld" != yes && break
6223         ;;
6224       esac
6225     fi
6226   done
6227   IFS="$lt_save_ifs"
6228 else
6229   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6230 fi
6231 fi
6232
6233 LD="$lt_cv_path_LD"
6234 if test -n "$LD"; then
6235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6236 $as_echo "$LD" >&6; }
6237 else
6238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6240 fi
6241 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6243 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6244 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6245   $as_echo_n "(cached) " >&6
6246 else
6247   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6248 case `$LD -v 2>&1 </dev/null` in
6249 *GNU* | *'with BFD'*)
6250   lt_cv_prog_gnu_ld=yes
6251   ;;
6252 *)
6253   lt_cv_prog_gnu_ld=no
6254   ;;
6255 esac
6256 fi
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6258 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6259 with_gnu_ld=$lt_cv_prog_gnu_ld
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269 if test -n "$ac_tool_prefix"; then
6270   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6271 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6273 $as_echo_n "checking for $ac_word... " >&6; }
6274 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6275   $as_echo_n "(cached) " >&6
6276 else
6277   if test -n "$RANLIB"; then
6278   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6279 else
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6282 do
6283   IFS=$as_save_IFS
6284   test -z "$as_dir" && as_dir=.
6285     for ac_exec_ext in '' $ac_executable_extensions; do
6286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6287     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6289     break 2
6290   fi
6291 done
6292   done
6293 IFS=$as_save_IFS
6294
6295 fi
6296 fi
6297 RANLIB=$ac_cv_prog_RANLIB
6298 if test -n "$RANLIB"; then
6299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6300 $as_echo "$RANLIB" >&6; }
6301 else
6302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6303 $as_echo "no" >&6; }
6304 fi
6305
6306
6307 fi
6308 if test -z "$ac_cv_prog_RANLIB"; then
6309   ac_ct_RANLIB=$RANLIB
6310   # Extract the first word of "ranlib", so it can be a program name with args.
6311 set dummy ranlib; ac_word=$2
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6313 $as_echo_n "checking for $ac_word... " >&6; }
6314 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6315   $as_echo_n "(cached) " >&6
6316 else
6317   if test -n "$ac_ct_RANLIB"; then
6318   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6319 else
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH
6322 do
6323   IFS=$as_save_IFS
6324   test -z "$as_dir" && as_dir=.
6325     for ac_exec_ext in '' $ac_executable_extensions; do
6326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6327     ac_cv_prog_ac_ct_RANLIB="ranlib"
6328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329     break 2
6330   fi
6331 done
6332   done
6333 IFS=$as_save_IFS
6334
6335 fi
6336 fi
6337 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6338 if test -n "$ac_ct_RANLIB"; then
6339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6340 $as_echo "$ac_ct_RANLIB" >&6; }
6341 else
6342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343 $as_echo "no" >&6; }
6344 fi
6345
6346   if test "x$ac_ct_RANLIB" = x; then
6347     RANLIB=":"
6348   else
6349     case $cross_compiling:$ac_tool_warned in
6350 yes:)
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6353 ac_tool_warned=yes ;;
6354 esac
6355     RANLIB=$ac_ct_RANLIB
6356   fi
6357 else
6358   RANLIB="$ac_cv_prog_RANLIB"
6359 fi
6360
6361
6362 if test "x$CC" != xcc; then
6363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6364 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6365 else
6366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6367 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6368 fi
6369 set dummy $CC; ac_cc=`$as_echo "$2" |
6370                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6371 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
6372   $as_echo_n "(cached) " >&6
6373 else
6374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375 /* end confdefs.h.  */
6376
6377 int
6378 main ()
6379 {
6380
6381   ;
6382   return 0;
6383 }
6384 _ACEOF
6385 # Make sure it works both with $CC and with simple cc.
6386 # We do the test twice because some compilers refuse to overwrite an
6387 # existing .o file with -o, though they will create one.
6388 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6389 rm -f conftest2.*
6390 if { { case "(($ac_try" in
6391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6392   *) ac_try_echo=$ac_try;;
6393 esac
6394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6395 $as_echo "$ac_try_echo"; } >&5
6396   (eval "$ac_try") 2>&5
6397   ac_status=$?
6398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6399   test $ac_status = 0; } &&
6400    test -f conftest2.$ac_objext && { { case "(($ac_try" in
6401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402   *) ac_try_echo=$ac_try;;
6403 esac
6404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6405 $as_echo "$ac_try_echo"; } >&5
6406   (eval "$ac_try") 2>&5
6407   ac_status=$?
6408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409   test $ac_status = 0; };
6410 then
6411   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6412   if test "x$CC" != xcc; then
6413     # Test first that cc exists at all.
6414     if { ac_try='cc -c conftest.$ac_ext >&5'
6415   { { case "(($ac_try" in
6416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417   *) ac_try_echo=$ac_try;;
6418 esac
6419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6420 $as_echo "$ac_try_echo"; } >&5
6421   (eval "$ac_try") 2>&5
6422   ac_status=$?
6423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6424   test $ac_status = 0; }; }; then
6425       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6426       rm -f conftest2.*
6427       if { { case "(($ac_try" in
6428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6429   *) ac_try_echo=$ac_try;;
6430 esac
6431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6432 $as_echo "$ac_try_echo"; } >&5
6433   (eval "$ac_try") 2>&5
6434   ac_status=$?
6435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6436   test $ac_status = 0; } &&
6437          test -f conftest2.$ac_objext && { { case "(($ac_try" in
6438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439   *) ac_try_echo=$ac_try;;
6440 esac
6441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6442 $as_echo "$ac_try_echo"; } >&5
6443   (eval "$ac_try") 2>&5
6444   ac_status=$?
6445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6446   test $ac_status = 0; };
6447       then
6448         # cc works too.
6449         :
6450       else
6451         # cc exists but doesn't like -o.
6452         eval ac_cv_prog_cc_${ac_cc}_c_o=no
6453       fi
6454     fi
6455   fi
6456 else
6457   eval ac_cv_prog_cc_${ac_cc}_c_o=no
6458 fi
6459 rm -f core conftest*
6460
6461 fi
6462 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6464 $as_echo "yes" >&6; }
6465 else
6466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 $as_echo "no" >&6; }
6468
6469 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6470
6471 fi
6472
6473 # FIXME: we rely on the cache variable name because
6474 # there is no other way.
6475 set dummy $CC
6476 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6477 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6478 if test "$am_t" != yes; then
6479    # Losing compiler, so override with the script.
6480    # FIXME: It is wrong to rewrite CC.
6481    # But if we don't then we get into trouble of one sort or another.
6482    # A longer-term fix would be to have automake use am__CC in this case,
6483    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6484    CC="$am_aux_dir/compile $CC"
6485 fi
6486
6487
6488
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6490 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6491 set x ${MAKE-make}
6492 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6493 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6494   $as_echo_n "(cached) " >&6
6495 else
6496   cat >conftest.make <<\_ACEOF
6497 SHELL = /bin/sh
6498 all:
6499         @echo '@@@%%%=$(MAKE)=@@@%%%'
6500 _ACEOF
6501 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6502 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6503   *@@@%%%=?*=@@@%%%*)
6504     eval ac_cv_prog_make_${ac_make}_set=yes;;
6505   *)
6506     eval ac_cv_prog_make_${ac_make}_set=no;;
6507 esac
6508 rm -f conftest.make
6509 fi
6510 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6512 $as_echo "yes" >&6; }
6513   SET_MAKE=
6514 else
6515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6517   SET_MAKE="MAKE=${MAKE-make}"
6518 fi
6519
6520
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
6522 $as_echo_n "checking maximum warning verbosity option... " >&6; }
6523
6524
6525
6526
6527 # Check whether --with-maximum-compile-warnings was given.
6528 if test "${with_maximum_compile_warnings+set}" = set; then :
6529   withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
6530 else
6531   ac_compile_warnings_on=""
6532 fi
6533
6534
6535   if test x"$ac_compile_warnings_on" = xno
6536   then
6537     ac_compile_warnings_msg=no
6538   else
6539     if test -n "$CXX"
6540     then
6541       if test "$GXX" = "yes"
6542       then
6543         ac_compile_warnings_opt='-Wall -W'
6544       fi
6545       CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
6546       ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
6547     fi
6548
6549   if test -n "$CC"
6550   then
6551     if test "$GCC" = "yes"
6552     then
6553       ac_compile_warnings_opt='-Wall -W'
6554     fi
6555     CFLAGS="$CFLAGS $ac_compile_warnings_opt"
6556     ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
6557   fi
6558   fi
6559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
6560 $as_echo "$ac_compile_warnings_msg" >&6; }
6561   unset ac_compile_warnings_msg
6562   unset ac_compile_warnings_opt
6563
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6565 $as_echo_n "checking whether ln -s works... " >&6; }
6566 LN_S=$as_ln_s
6567 if test "$LN_S" = "ln -s"; then
6568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6569 $as_echo "yes" >&6; }
6570 else
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6572 $as_echo "no, using $LN_S" >&6; }
6573 fi
6574
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
6576 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
6577
6578 # Check whether --with-dmalloc was given.
6579 if test "${with_dmalloc+set}" = set; then :
6580   withval=$with_dmalloc; if test "$withval" = yes; then
6581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6582 $as_echo "yes" >&6; }
6583
6584 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
6585
6586   LIBS="$LIBS -ldmalloc"
6587   LDFLAGS="$LDFLAGS -g"
6588 else
6589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590 $as_echo "no" >&6; }
6591 fi
6592 else
6593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 $as_echo "no" >&6; }
6595 fi
6596
6597
6598
6599
6600 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6601         if test -n "$ac_tool_prefix"; then
6602   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6603 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605 $as_echo_n "checking for $ac_word... " >&6; }
6606 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6607   $as_echo_n "(cached) " >&6
6608 else
6609   case $PKG_CONFIG in
6610   [\\/]* | ?:[\\/]*)
6611   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6612   ;;
6613   *)
6614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617   IFS=$as_save_IFS
6618   test -z "$as_dir" && as_dir=.
6619     for ac_exec_ext in '' $ac_executable_extensions; do
6620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6623     break 2
6624   fi
6625 done
6626   done
6627 IFS=$as_save_IFS
6628
6629   ;;
6630 esac
6631 fi
6632 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6633 if test -n "$PKG_CONFIG"; then
6634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6635 $as_echo "$PKG_CONFIG" >&6; }
6636 else
6637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638 $as_echo "no" >&6; }
6639 fi
6640
6641
6642 fi
6643 if test -z "$ac_cv_path_PKG_CONFIG"; then
6644   ac_pt_PKG_CONFIG=$PKG_CONFIG
6645   # Extract the first word of "pkg-config", so it can be a program name with args.
6646 set dummy pkg-config; ac_word=$2
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648 $as_echo_n "checking for $ac_word... " >&6; }
6649 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
6650   $as_echo_n "(cached) " >&6
6651 else
6652   case $ac_pt_PKG_CONFIG in
6653   [\\/]* | ?:[\\/]*)
6654   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6655   ;;
6656   *)
6657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660   IFS=$as_save_IFS
6661   test -z "$as_dir" && as_dir=.
6662     for ac_exec_ext in '' $ac_executable_extensions; do
6663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6664     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666     break 2
6667   fi
6668 done
6669   done
6670 IFS=$as_save_IFS
6671
6672   ;;
6673 esac
6674 fi
6675 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6676 if test -n "$ac_pt_PKG_CONFIG"; then
6677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6678 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6679 else
6680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681 $as_echo "no" >&6; }
6682 fi
6683
6684   if test "x$ac_pt_PKG_CONFIG" = x; then
6685     PKG_CONFIG=""
6686   else
6687     case $cross_compiling:$ac_tool_warned in
6688 yes:)
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691 ac_tool_warned=yes ;;
6692 esac
6693     PKG_CONFIG=$ac_pt_PKG_CONFIG
6694   fi
6695 else
6696   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6697 fi
6698
6699 fi
6700 if test -n "$PKG_CONFIG"; then
6701         _pkg_min_version=0.9.0
6702         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6703 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6704         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6705                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6706 $as_echo "yes" >&6; }
6707         else
6708                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6710                 PKG_CONFIG=""
6711         fi
6712
6713 fi
6714
6715 #
6716 # Enable OS features.
6717 #
6718
6719
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6721 $as_echo_n "checking for ANSI C header files... " >&6; }
6722 if test "${ac_cv_header_stdc+set}" = set; then :
6723   $as_echo_n "(cached) " >&6
6724 else
6725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726 /* end confdefs.h.  */
6727 #include <stdlib.h>
6728 #include <stdarg.h>
6729 #include <string.h>
6730 #include <float.h>
6731
6732 int
6733 main ()
6734 {
6735
6736   ;
6737   return 0;
6738 }
6739 _ACEOF
6740 if ac_fn_c_try_compile "$LINENO"; then :
6741   ac_cv_header_stdc=yes
6742 else
6743   ac_cv_header_stdc=no
6744 fi
6745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6746
6747 if test $ac_cv_header_stdc = yes; then
6748   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h.  */
6751 #include <string.h>
6752
6753 _ACEOF
6754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6755   $EGREP "memchr" >/dev/null 2>&1; then :
6756
6757 else
6758   ac_cv_header_stdc=no
6759 fi
6760 rm -f conftest*
6761
6762 fi
6763
6764 if test $ac_cv_header_stdc = yes; then
6765   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h.  */
6768 #include <stdlib.h>
6769
6770 _ACEOF
6771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6772   $EGREP "free" >/dev/null 2>&1; then :
6773
6774 else
6775   ac_cv_header_stdc=no
6776 fi
6777 rm -f conftest*
6778
6779 fi
6780
6781 if test $ac_cv_header_stdc = yes; then
6782   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6783   if test "$cross_compiling" = yes; then :
6784   :
6785 else
6786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h.  */
6788 #include <ctype.h>
6789 #include <stdlib.h>
6790 #if ((' ' & 0x0FF) == 0x020)
6791 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6792 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6793 #else
6794 # define ISLOWER(c) \
6795                    (('a' <= (c) && (c) <= 'i') \
6796                      || ('j' <= (c) && (c) <= 'r') \
6797                      || ('s' <= (c) && (c) <= 'z'))
6798 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6799 #endif
6800
6801 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6802 int
6803 main ()
6804 {
6805   int i;
6806   for (i = 0; i < 256; i++)
6807     if (XOR (islower (i), ISLOWER (i))
6808         || toupper (i) != TOUPPER (i))
6809       return 2;
6810   return 0;
6811 }
6812 _ACEOF
6813 if ac_fn_c_try_run "$LINENO"; then :
6814
6815 else
6816   ac_cv_header_stdc=no
6817 fi
6818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6819   conftest.$ac_objext conftest.beam conftest.$ac_ext
6820 fi
6821
6822 fi
6823 fi
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6825 $as_echo "$ac_cv_header_stdc" >&6; }
6826 if test $ac_cv_header_stdc = yes; then
6827
6828 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6829
6830 fi
6831
6832 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6833 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6834                   inttypes.h stdint.h unistd.h
6835 do :
6836   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6837 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6838 "
6839 eval as_val=\$$as_ac_Header
6840    if test "x$as_val" = x""yes; then :
6841   cat >>confdefs.h <<_ACEOF
6842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6843 _ACEOF
6844
6845 fi
6846
6847 done
6848
6849
6850
6851   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6852 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6853   MINIX=yes
6854 else
6855   MINIX=
6856 fi
6857
6858
6859   if test "$MINIX" = yes; then
6860
6861 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6862
6863
6864 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6865
6866
6867 $as_echo "#define _MINIX 1" >>confdefs.h
6868
6869   fi
6870
6871
6872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6873 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6874 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6875   $as_echo_n "(cached) " >&6
6876 else
6877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h.  */
6879
6880 #         define __EXTENSIONS__ 1
6881           $ac_includes_default
6882 int
6883 main ()
6884 {
6885
6886   ;
6887   return 0;
6888 }
6889 _ACEOF
6890 if ac_fn_c_try_compile "$LINENO"; then :
6891   ac_cv_safe_to_define___extensions__=yes
6892 else
6893   ac_cv_safe_to_define___extensions__=no
6894 fi
6895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896 fi
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6898 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6899   test $ac_cv_safe_to_define___extensions__ = yes &&
6900     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6901
6902   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6903
6904   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6905
6906   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6907
6908   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6909
6910
6911
6912 #
6913 # Enable run-time checking.
6914 #
6915 # Check whether --enable-bounds-checking was given.
6916 if test "${enable_bounds_checking+set}" = set; then :
6917   enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
6918 else
6919   enable_bounds_checking='no'
6920 fi
6921
6922
6923 if test "$enable_bounds_checking" = yes; then
6924
6925 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
6926
6927 fi
6928
6929 #
6930 # Tests for Windows
6931 #
6932
6933
6934
6935 GDI32_LIBS=''
6936 StaticCplusPlusLibraries='no'
6937 native_win32_build='no'
6938 cygwin_build='no'
6939 case "${host_os}" in
6940     cygwin* )
6941         StaticCplusPlusLibraries='yes'
6942         cygwin_build='yes'
6943         GDI32_LIBS='-lgdi32'
6944     ;;
6945     mingw* )
6946         StaticCplusPlusLibraries='yes'
6947         native_win32_build='yes'
6948         GDI32_LIBS='-lgdi32'
6949     ;;
6950 esac
6951 if test "${GDI32_LIBS}x" != 'x'; then
6952
6953 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
6954
6955 fi
6956
6957  if test "${GDI32_LIBS}x" != 'x' ; then
6958   WINGDI32_DELEGATE_TRUE=
6959   WINGDI32_DELEGATE_FALSE='#'
6960 else
6961   WINGDI32_DELEGATE_TRUE='#'
6962   WINGDI32_DELEGATE_FALSE=
6963 fi
6964
6965  if test "${native_win32_build}" = 'yes' ; then
6966   WIN32_NATIVE_BUILD_TRUE=
6967   WIN32_NATIVE_BUILD_FALSE='#'
6968 else
6969   WIN32_NATIVE_BUILD_TRUE='#'
6970   WIN32_NATIVE_BUILD_FALSE=
6971 fi
6972
6973  if test "${cygwin_build}" = 'yes' ; then
6974   CYGWIN_BUILD_TRUE=
6975   CYGWIN_BUILD_FALSE='#'
6976 else
6977   CYGWIN_BUILD_TRUE='#'
6978   CYGWIN_BUILD_FALSE=
6979 fi
6980
6981  if test "x${CC}" = 'xcl.exe' ; then
6982   USING_CL_TRUE=
6983   USING_CL_FALSE='#'
6984 else
6985   USING_CL_TRUE='#'
6986   USING_CL_FALSE=
6987 fi
6988
6989
6990 WinPathScript="${srcdirfull}/winpath.sh"
6991
6992
6993 #
6994 # Compiler flags tweaks
6995 #
6996 if test "${GCC}" != "yes"; then
6997     case "${host}" in
6998         *-*-hpux* )
6999             # aCC: HP ANSI C++ B3910B A.03.34
7000             CFLAGS="${CFLAGS} -Wp,-H30000"
7001             if test -n "${CXXFLAGS}"; then
7002                 CXXFLAGS='-AA'
7003             else
7004                 CXXFLAGS="${CXXFLAGS} -AA"
7005             fi
7006         ;;
7007         *-dec-osf5.* )
7008             # Compaq alphaev68-dec-osf5.1 compiler
7009             if test -n "${CXXFLAGS}"; then
7010                 CXXFLAGS='-std strict_ansi -noimplicit_include'
7011             else
7012                 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7013             fi
7014   esac
7015 fi
7016
7017 # Check for lazy-loading.
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
7019 $as_echo_n "checking for linker lazyload option... " >&6; }
7020 if test "${im_cv_ld_lazyload+set}" = set; then :
7021   $as_echo_n "(cached) " >&6
7022 else
7023
7024 im_cv_ld_lazyload='none'
7025 case "${host}" in
7026   *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7027     if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7028        im_cv_ld_lazyload='-Wl,-zlazyload'
7029     fi
7030     ;;
7031 esac
7032
7033 fi
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
7035 $as_echo "$im_cv_ld_lazyload" >&6; }
7036 if test "${im_cv_ld_lazyload}" != 'none' ; then
7037   if test -z "${LDFLAGS}" ; then
7038     LDFLAGS="${im_cv_ld_lazyload}"
7039   else
7040     LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7041   fi
7042 fi
7043
7044 case "$host" in
7045 *darwin* | *-macos10*)
7046   if test -d /opt/local ; then
7047     CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7048     LDFLAGS="$LDFLAGS -L/opt/local/lib"
7049   elif test -d /sw ; then
7050     CPPFLAGS="$CPPFLAGS -I/sw/include"
7051     LDFLAGS="$LDFLAGS -L/sw/lib"
7052   fi
7053     # Check whether --enable-osx-universal-binary was given.
7054 if test "${enable_osx_universal_binary+set}" = set; then :
7055   enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7056 else
7057   build_osxuniversal=no
7058 fi
7059
7060
7061   if test "${build_osxuniversal}" != no ; then
7062     if test "$enable_dependency_tracking" != no ; then
7063       as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
7064 Please re-run configure with these options:
7065   --disable-dependency-tracking --enable-osx-universal-binary
7066         " "$LINENO" 5
7067     fi
7068     CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7069     CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7070     LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7071   fi
7072   ;;
7073 esac
7074
7075 # Enable support for threads
7076
7077 # Check whether --with-threads was given.
7078 if test "${with_threads+set}" = set; then :
7079   withval=$with_threads; with_threads=$withval
7080 else
7081   with_threads='yes'
7082 fi
7083
7084
7085 have_threads=no
7086 if test "$with_threads" != 'no'; then
7087
7088
7089
7090 ac_ext=c
7091 ac_cpp='$CPP $CPPFLAGS'
7092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7095
7096 acx_pthread_ok=no
7097
7098 # We used to check for pthread.h first, but this fails if pthread.h
7099 # requires special compiler flags (e.g. on True64 or Sequent).
7100 # It gets checked for in the link test anyway.
7101
7102 # First of all, check if the user has set any of the PTHREAD_LIBS,
7103 # etcetera environment variables, and if threads linking works using
7104 # them:
7105 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7106         save_CFLAGS="$CFLAGS"
7107         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7108         save_LIBS="$LIBS"
7109         LIBS="$PTHREAD_LIBS $LIBS"
7110         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7111 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
7112         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h.  */
7114
7115 /* Override any GCC internal prototype to avoid an error.
7116    Use char because int might match the return type of a GCC
7117    builtin and then its argument prototype would still apply.  */
7118 #ifdef __cplusplus
7119 extern "C"
7120 #endif
7121 char pthread_join ();
7122 int
7123 main ()
7124 {
7125 return pthread_join ();
7126   ;
7127   return 0;
7128 }
7129 _ACEOF
7130 if ac_fn_c_try_link "$LINENO"; then :
7131   acx_pthread_ok=yes
7132 fi
7133 rm -f core conftest.err conftest.$ac_objext \
7134     conftest$ac_exeext conftest.$ac_ext
7135         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
7136 $as_echo "$acx_pthread_ok" >&6; }
7137         if test x"$acx_pthread_ok" = xno; then
7138                 PTHREAD_LIBS=""
7139                 PTHREAD_CFLAGS=""
7140         fi
7141         LIBS="$save_LIBS"
7142         CFLAGS="$save_CFLAGS"
7143 fi
7144
7145 # We must check for the threads library under a number of different
7146 # names; the ordering is very important because some systems
7147 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7148 # libraries is broken (non-POSIX).
7149
7150 # Create a list of thread flags to try.  Items starting with a "-" are
7151 # C compiler flags, and other items are library names, except for "none"
7152 # which indicates that we try without any flags at all, and "pthread-config"
7153 # which is a program returning the flags for the Pth emulation library.
7154
7155 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7156
7157 # The ordering *is* (sometimes) important.  Some notes on the
7158 # individual items follow:
7159
7160 # pthreads: AIX (must check this before -lpthread)
7161 # none: in case threads are in libc; should be tried before -Kthread and
7162 #       other compiler flags to prevent continual compiler warnings
7163 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7164 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7165 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7166 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7167 # -pthreads: Solaris/gcc
7168 # -mthreads: Mingw32/gcc, Lynx/gcc
7169 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7170 #      doesn't hurt to check since this sometimes defines pthreads too;
7171 #      also defines -D_REENTRANT)
7172 #      ... -mt is also the pthreads flag for HP/aCC
7173 # pthread: Linux, etcetera
7174 # --thread-safe: KAI C++
7175 # pthread-config: use pthread-config program (for GNU Pth library)
7176
7177 case "${host_cpu}-${host_os}" in
7178         *solaris*)
7179
7180         # On Solaris (at least, for some versions), libc contains stubbed
7181         # (non-functional) versions of the pthreads routines, so link-based
7182         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
7183         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
7184         # a function called by this macro, so we could check for that, but
7185         # who knows whether they'll stub that too in a future libc.)  So,
7186         # we'll just look for -pthreads and -lpthread first:
7187
7188         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7189         ;;
7190 esac
7191
7192 if test x"$acx_pthread_ok" = xno; then
7193 for flag in $acx_pthread_flags; do
7194
7195         case $flag in
7196                 none)
7197                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7198 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
7199                 ;;
7200
7201                 -*)
7202                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
7203 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
7204                 PTHREAD_CFLAGS="$flag"
7205                 ;;
7206
7207                 pthread-config)
7208                 # Extract the first word of "pthread-config", so it can be a program name with args.
7209 set dummy pthread-config; ac_word=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
7213   $as_echo_n "(cached) " >&6
7214 else
7215   if test -n "$acx_pthread_config"; then
7216   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7217 else
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7220 do
7221   IFS=$as_save_IFS
7222   test -z "$as_dir" && as_dir=.
7223     for ac_exec_ext in '' $ac_executable_extensions; do
7224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7225     ac_cv_prog_acx_pthread_config="yes"
7226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227     break 2
7228   fi
7229 done
7230   done
7231 IFS=$as_save_IFS
7232
7233   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7234 fi
7235 fi
7236 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7237 if test -n "$acx_pthread_config"; then
7238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
7239 $as_echo "$acx_pthread_config" >&6; }
7240 else
7241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242 $as_echo "no" >&6; }
7243 fi
7244
7245
7246                 if test x"$acx_pthread_config" = xno; then continue; fi
7247                 PTHREAD_CFLAGS="`pthread-config --cflags`"
7248                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7249                 ;;
7250
7251                 *)
7252                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
7253 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7254                 PTHREAD_LIBS="-l$flag"
7255                 ;;
7256         esac
7257
7258         save_LIBS="$LIBS"
7259         save_CFLAGS="$CFLAGS"
7260         LIBS="$PTHREAD_LIBS $LIBS"
7261         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7262
7263         # Check for various functions.  We must include pthread.h,
7264         # since some functions may be macros.  (On the Sequent, we
7265         # need a special flag -Kthread to make this header compile.)
7266         # We check for pthread_join because it is in -lpthread on IRIX
7267         # while pthread_create is in libc.  We check for pthread_attr_init
7268         # due to DEC craziness with -lpthreads.  We check for
7269         # pthread_cleanup_push because it is one of the few pthread
7270         # functions on Solaris that doesn't have a non-functional libc stub.
7271         # We try pthread_create on general principles.
7272         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h.  */
7274 #include <pthread.h>
7275 int
7276 main ()
7277 {
7278 pthread_t th; pthread_join(th, 0);
7279                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
7280                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7281   ;
7282   return 0;
7283 }
7284 _ACEOF
7285 if ac_fn_c_try_link "$LINENO"; then :
7286   acx_pthread_ok=yes
7287 fi
7288 rm -f core conftest.err conftest.$ac_objext \
7289     conftest$ac_exeext conftest.$ac_ext
7290
7291         LIBS="$save_LIBS"
7292         CFLAGS="$save_CFLAGS"
7293
7294         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
7295 $as_echo "$acx_pthread_ok" >&6; }
7296         if test "x$acx_pthread_ok" = xyes; then
7297                 break;
7298         fi
7299
7300         PTHREAD_LIBS=""
7301         PTHREAD_CFLAGS=""
7302 done
7303 fi
7304
7305 # Various other checks:
7306 if test "x$acx_pthread_ok" = xyes; then
7307         save_LIBS="$LIBS"
7308         LIBS="$PTHREAD_LIBS $LIBS"
7309         save_CFLAGS="$CFLAGS"
7310         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7311
7312         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7313         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7314 $as_echo_n "checking for joinable pthread attribute... " >&6; }
7315         attr_name=unknown
7316         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7317             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h.  */
7319 #include <pthread.h>
7320 int
7321 main ()
7322 {
7323 int attr=$attr; return attr;
7324   ;
7325   return 0;
7326 }
7327 _ACEOF
7328 if ac_fn_c_try_link "$LINENO"; then :
7329   attr_name=$attr; break
7330 fi
7331 rm -f core conftest.err conftest.$ac_objext \
7332     conftest$ac_exeext conftest.$ac_ext
7333         done
7334         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
7335 $as_echo "$attr_name" >&6; }
7336         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7337
7338 cat >>confdefs.h <<_ACEOF
7339 #define PTHREAD_CREATE_JOINABLE $attr_name
7340 _ACEOF
7341
7342         fi
7343
7344         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
7345 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
7346         flag=no
7347         case "${host_cpu}-${host_os}" in
7348             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7349             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7350         esac
7351         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
7352 $as_echo "${flag}" >&6; }
7353         if test "x$flag" != xno; then
7354             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7355         fi
7356
7357         LIBS="$save_LIBS"
7358         CFLAGS="$save_CFLAGS"
7359
7360         # More AIX lossage: must compile with xlc_r or cc_r
7361         if test x"$GCC" != xyes; then
7362           for ac_prog in xlc_r cc_r
7363 do
7364   # Extract the first word of "$ac_prog", so it can be a program name with args.
7365 set dummy $ac_prog; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
7369   $as_echo_n "(cached) " >&6
7370 else
7371   if test -n "$PTHREAD_CC"; then
7372   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377   IFS=$as_save_IFS
7378   test -z "$as_dir" && as_dir=.
7379     for ac_exec_ext in '' $ac_executable_extensions; do
7380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7381     ac_cv_prog_PTHREAD_CC="$ac_prog"
7382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383     break 2
7384   fi
7385 done
7386   done
7387 IFS=$as_save_IFS
7388
7389 fi
7390 fi
7391 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7392 if test -n "$PTHREAD_CC"; then
7393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7394 $as_echo "$PTHREAD_CC" >&6; }
7395 else
7396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7398 fi
7399
7400
7401   test -n "$PTHREAD_CC" && break
7402 done
7403 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7404
7405         else
7406           PTHREAD_CC=$CC
7407         fi
7408 else
7409         PTHREAD_CC="$CC"
7410 fi
7411
7412
7413
7414
7415
7416 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7417 if test x"$acx_pthread_ok" = xyes; then
7418
7419 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
7420
7421         :
7422 else
7423         acx_pthread_ok=no
7424
7425 fi
7426 ac_ext=c
7427 ac_cpp='$CPP $CPPFLAGS'
7428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7431
7432
7433     if test "$acx_pthread_ok" = yes; then
7434         have_threads=yes
7435         DEF_THREAD="$PTHREAD_CFLAGS"
7436         CFLAGS="$CFLAGS $DEF_THREAD"
7437         CXXFLAGS="$CXXFLAGS $DEF_THREAD"
7438         if test "$CC" != "$PTHREAD_CC"; then
7439             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
7440 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
7441             CC="$PTHREAD_CC"
7442         fi
7443     fi
7444 fi
7445
7446 # Enable support for OpenMP
7447 if test "$have_threads" != 'yes'; then
7448   ac_cv_prog_c_openmp=unsupported
7449 fi
7450
7451   OPENMP_CFLAGS=
7452   # Check whether --enable-openmp was given.
7453 if test "${enable_openmp+set}" = set; then :
7454   enableval=$enable_openmp;
7455 fi
7456
7457   if test "$enable_openmp" != no; then
7458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
7459 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
7460 if test "${ac_cv_prog_c_openmp+set}" = set; then :
7461   $as_echo_n "(cached) " >&6
7462 else
7463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h.  */
7465
7466 #ifndef _OPENMP
7467  choke me
7468 #endif
7469 #include <omp.h>
7470 int main () { return omp_get_num_threads (); }
7471
7472 _ACEOF
7473 if ac_fn_c_try_link "$LINENO"; then :
7474   ac_cv_prog_c_openmp='none needed'
7475 else
7476   ac_cv_prog_c_openmp='unsupported'
7477                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
7478             ac_save_CFLAGS=$CFLAGS
7479             CFLAGS="$CFLAGS $ac_option"
7480             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h.  */
7482
7483 #ifndef _OPENMP
7484  choke me
7485 #endif
7486 #include <omp.h>
7487 int main () { return omp_get_num_threads (); }
7488
7489 _ACEOF
7490 if ac_fn_c_try_link "$LINENO"; then :
7491   ac_cv_prog_c_openmp=$ac_option
7492 fi
7493 rm -f core conftest.err conftest.$ac_objext \
7494     conftest$ac_exeext conftest.$ac_ext
7495             CFLAGS=$ac_save_CFLAGS
7496             if test "$ac_cv_prog_c_openmp" != unsupported; then
7497               break
7498             fi
7499           done
7500 fi
7501 rm -f core conftest.err conftest.$ac_objext \
7502     conftest$ac_exeext conftest.$ac_ext
7503 fi
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
7505 $as_echo "$ac_cv_prog_c_openmp" >&6; }
7506     case $ac_cv_prog_c_openmp in #(
7507       "none needed" | unsupported)
7508         ;; #(
7509       *)
7510         OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
7511     esac
7512   fi
7513
7514
7515 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
7516 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
7517
7518
7519 # Enable support for OpenCL
7520
7521 ac_ext=c
7522 ac_cpp='$CPP $CPPFLAGS'
7523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7526
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7528 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7529 if test "${ax_cv_c_compiler_ms+set}" = set; then :
7530   $as_echo_n "(cached) " >&6
7531 else
7532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h.  */
7534
7535 int
7536 main ()
7537 {
7538 #ifndef _MSC_VER
7539        choke me
7540 #endif
7541
7542   ;
7543   return 0;
7544 }
7545 _ACEOF
7546 if ac_fn_c_try_compile "$LINENO"; then :
7547   ax_compiler_ms=yes
7548 else
7549   ax_compiler_ms=no
7550 fi
7551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552 ax_cv_c_compiler_ms=$ax_compiler_ms
7553
7554 fi
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7556 $as_echo "$ax_cv_c_compiler_ms" >&6; }
7557 if test X$ax_compiler_ms = Xno; then :
7558   CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
7559 fi
7560
7561 ax_save_CPPFLAGS=$CPPFLAGS
7562 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
7563 for ac_header in CL/opencl.h OpenCL/OpenCL.h
7564 do :
7565   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7566 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7567 eval as_val=\$$as_ac_Header
7568    if test "x$as_val" = x""yes; then :
7569   cat >>confdefs.h <<_ACEOF
7570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7571 _ACEOF
7572
7573 fi
7574
7575 done
7576
7577 CPPFLAGS=$ax_save_CPPFLAGS
7578
7579 for ac_header in windows.h
7580 do :
7581   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
7582 if test "x$ac_cv_header_windows_h" = x""yes; then :
7583   cat >>confdefs.h <<_ACEOF
7584 #define HAVE_WINDOWS_H 1
7585 _ACEOF
7586
7587 fi
7588
7589 done
7590
7591
7592
7593
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
7595 $as_echo_n "checking for OpenCL library... " >&6; }
7596 if test "${ax_cv_check_cl_libcl+set}" = set; then :
7597   $as_echo_n "(cached) " >&6
7598 else
7599   ax_cv_check_cl_libcl=no
7600 case $host_cpu in
7601   x86_64) ax_check_cl_libdir=lib64 ;;
7602   *)      ax_check_cl_libdir=lib ;;
7603 esac
7604 ax_save_CPPFLAGS=$CPPFLAGS
7605 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
7606 ax_save_LIBS=$LIBS
7607 LIBS=""
7608 ax_check_libs="-lOpenCL -lCL"
7609 for ax_lib in $ax_check_libs; do
7610   if test X$ax_compiler_ms = Xyes; then :
7611   ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
7612 else
7613   ax_try_lib=$ax_lib
7614 fi
7615   LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617 /* end confdefs.h.  */
7618
7619 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7620 #   include <windows.h>
7621 # endif
7622 # ifdef HAVE_CL_OPENCL_H
7623 #   include <CL/opencl.h>
7624 # elif defined(HAVE_OPENCL_OPENCL_H)
7625 #   include <OpenCL/OpenCL.h>
7626 # else
7627 #   error no OpenCL.h
7628 # endif
7629 int
7630 main ()
7631 {
7632 clCreateContextFromType(0,0,0,0,0)
7633   ;
7634   return 0;
7635 }
7636 _ACEOF
7637 if ac_fn_c_try_link "$LINENO"; then :
7638   ax_cv_check_cl_libcl=$ax_try_lib; break
7639 else
7640   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"
7641                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h.  */
7643
7644 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7645 #   include <windows.h>
7646 # endif
7647 # ifdef HAVE_CL_OPENCL_H
7648 #   include <CL/opencl.h>
7649 # elif defined(HAVE_OPENCL_OPENCL_H)
7650 #   include <OpenCL/OpenCL.h>
7651 # else
7652 #   error no OpenCL.h
7653 # endif
7654 int
7655 main ()
7656 {
7657 clCreateContextFromType(0,0,0,0,0)
7658   ;
7659   return 0;
7660 }
7661 _ACEOF
7662 if ac_fn_c_try_link "$LINENO"; then :
7663   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
7664 else
7665   ax_check_cl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib:/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
7666                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h.  */
7668
7669 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7670 #   include <windows.h>
7671 # endif
7672 # ifdef HAVE_CL_OPENCL_H
7673 #   include <CL/opencl.h>
7674 # elif defined(HAVE_OPENCL_OPENCL_H)
7675 #   include <OpenCL/OpenCL.h>
7676 # else
7677 #   error no OpenCL.h
7678 # endif
7679 int
7680 main ()
7681 {
7682 clCreateContextFromType(0,0,0,0,0)
7683   ;
7684   return 0;
7685 }
7686 _ACEOF
7687 if ac_fn_c_try_link "$LINENO"; then :
7688   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
7689 fi
7690 rm -f core conftest.err conftest.$ac_objext \
7691     conftest$ac_exeext conftest.$ac_ext
7692 fi
7693 rm -f core conftest.err conftest.$ac_objext \
7694     conftest$ac_exeext conftest.$ac_ext
7695 fi
7696 rm -f core conftest.err conftest.$ac_objext \
7697     conftest$ac_exeext conftest.$ac_ext
7698 done
7699
7700 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
7701   LIBS='-framework OpenCL'
7702       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h.  */
7704
7705 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7706 #   include <windows.h>
7707 # endif
7708 # ifdef HAVE_CL_OPENCL_H
7709 #   include <CL/opencl.h>
7710 # elif defined(HAVE_OPENCL_OPENCL_H)
7711 #   include <OpenCL/OpenCL.h>
7712 # else
7713 #   error no OpenCL.h
7714 # endif
7715 int
7716 main ()
7717 {
7718 clCreateContextFromType(0,0,0,0,0)
7719   ;
7720   return 0;
7721 }
7722 _ACEOF
7723 if ac_fn_c_try_link "$LINENO"; then :
7724   ax_cv_check_cl_libcl=$LIBS
7725 fi
7726 rm -f core conftest.err conftest.$ac_objext \
7727     conftest$ac_exeext conftest.$ac_ext
7728 fi
7729
7730 LIBS=$ax_save_LIBS
7731 CPPFLAGS=$ax_save_CPPFLAGS
7732 fi
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
7734 $as_echo "$ax_cv_check_cl_libcl" >&6; }
7735
7736 if test "X$ax_cv_check_cl_libcl" = Xno; then :
7737   no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
7738 else
7739   CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"
7740 fi
7741 ac_ext=c
7742 ac_cpp='$CPP $CPPFLAGS'
7743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7746
7747
7748
7749
7750
7751 CFLAGS="$CL_CFLAGS $CFLAGS"
7752 LIBS="$CL_LIBS $LIBS"
7753
7754
7755 ########
7756 #
7757 # Check for large file support
7758 #
7759 ########
7760 # Check whether --enable-largefile was given.
7761 if test "${enable_largefile+set}" = set; then :
7762   enableval=$enable_largefile;
7763 fi
7764
7765 if test "$enable_largefile" != no; then
7766
7767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7768 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7769 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7770   $as_echo_n "(cached) " >&6
7771 else
7772   ac_cv_sys_largefile_CC=no
7773      if test "$GCC" != yes; then
7774        ac_save_CC=$CC
7775        while :; do
7776          # IRIX 6.2 and later do not support large files by default,
7777          # so use the C compiler's -n32 option if that helps.
7778          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h.  */
7780 #include <sys/types.h>
7781  /* Check that off_t can represent 2**63 - 1 correctly.
7782     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7783     since some C++ compilers masquerading as C compilers
7784     incorrectly reject 9223372036854775807.  */
7785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7786   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7787                        && LARGE_OFF_T % 2147483647 == 1)
7788                       ? 1 : -1];
7789 int
7790 main ()
7791 {
7792
7793   ;
7794   return 0;
7795 }
7796 _ACEOF
7797          if ac_fn_c_try_compile "$LINENO"; then :
7798   break
7799 fi
7800 rm -f core conftest.err conftest.$ac_objext
7801          CC="$CC -n32"
7802          if ac_fn_c_try_compile "$LINENO"; then :
7803   ac_cv_sys_largefile_CC=' -n32'; break
7804 fi
7805 rm -f core conftest.err conftest.$ac_objext
7806          break
7807        done
7808        CC=$ac_save_CC
7809        rm -f conftest.$ac_ext
7810     fi
7811 fi
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7813 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7814   if test "$ac_cv_sys_largefile_CC" != no; then
7815     CC=$CC$ac_cv_sys_largefile_CC
7816   fi
7817
7818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7819 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7820 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7821   $as_echo_n "(cached) " >&6
7822 else
7823   while :; do
7824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h.  */
7826 #include <sys/types.h>
7827  /* Check that off_t can represent 2**63 - 1 correctly.
7828     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7829     since some C++ compilers masquerading as C compilers
7830     incorrectly reject 9223372036854775807.  */
7831 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7832   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7833                        && LARGE_OFF_T % 2147483647 == 1)
7834                       ? 1 : -1];
7835 int
7836 main ()
7837 {
7838
7839   ;
7840   return 0;
7841 }
7842 _ACEOF
7843 if ac_fn_c_try_compile "$LINENO"; then :
7844   ac_cv_sys_file_offset_bits=no; break
7845 fi
7846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h.  */
7849 #define _FILE_OFFSET_BITS 64
7850 #include <sys/types.h>
7851  /* Check that off_t can represent 2**63 - 1 correctly.
7852     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7853     since some C++ compilers masquerading as C compilers
7854     incorrectly reject 9223372036854775807.  */
7855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7856   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7857                        && LARGE_OFF_T % 2147483647 == 1)
7858                       ? 1 : -1];
7859 int
7860 main ()
7861 {
7862
7863   ;
7864   return 0;
7865 }
7866 _ACEOF
7867 if ac_fn_c_try_compile "$LINENO"; then :
7868   ac_cv_sys_file_offset_bits=64; break
7869 fi
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871   ac_cv_sys_file_offset_bits=unknown
7872   break
7873 done
7874 fi
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7876 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7877 case $ac_cv_sys_file_offset_bits in #(
7878   no | unknown) ;;
7879   *)
7880 cat >>confdefs.h <<_ACEOF
7881 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7882 _ACEOF
7883 ;;
7884 esac
7885 rm -rf conftest*
7886   if test $ac_cv_sys_file_offset_bits = unknown; then
7887     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7888 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7889 if test "${ac_cv_sys_large_files+set}" = set; then :
7890   $as_echo_n "(cached) " >&6
7891 else
7892   while :; do
7893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h.  */
7895 #include <sys/types.h>
7896  /* Check that off_t can represent 2**63 - 1 correctly.
7897     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7898     since some C++ compilers masquerading as C compilers
7899     incorrectly reject 9223372036854775807.  */
7900 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7901   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7902                        && LARGE_OFF_T % 2147483647 == 1)
7903                       ? 1 : -1];
7904 int
7905 main ()
7906 {
7907
7908   ;
7909   return 0;
7910 }
7911 _ACEOF
7912 if ac_fn_c_try_compile "$LINENO"; then :
7913   ac_cv_sys_large_files=no; break
7914 fi
7915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h.  */
7918 #define _LARGE_FILES 1
7919 #include <sys/types.h>
7920  /* Check that off_t can represent 2**63 - 1 correctly.
7921     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7922     since some C++ compilers masquerading as C compilers
7923     incorrectly reject 9223372036854775807.  */
7924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7925   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7926                        && LARGE_OFF_T % 2147483647 == 1)
7927                       ? 1 : -1];
7928 int
7929 main ()
7930 {
7931
7932   ;
7933   return 0;
7934 }
7935 _ACEOF
7936 if ac_fn_c_try_compile "$LINENO"; then :
7937   ac_cv_sys_large_files=1; break
7938 fi
7939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940   ac_cv_sys_large_files=unknown
7941   break
7942 done
7943 fi
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7945 $as_echo "$ac_cv_sys_large_files" >&6; }
7946 case $ac_cv_sys_large_files in #(
7947   no | unknown) ;;
7948   *)
7949 cat >>confdefs.h <<_ACEOF
7950 #define _LARGE_FILES $ac_cv_sys_large_files
7951 _ACEOF
7952 ;;
7953 esac
7954 rm -rf conftest*
7955   fi
7956 fi
7957
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7959 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
7960 if test "${ac_cv_sys_largefile_source+set}" = set; then :
7961   $as_echo_n "(cached) " >&6
7962 else
7963   while :; do
7964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h.  */
7966 #include <sys/types.h> /* for off_t */
7967      #include <stdio.h>
7968 int
7969 main ()
7970 {
7971 int (*fp) (FILE *, off_t, int) = fseeko;
7972      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7973   ;
7974   return 0;
7975 }
7976 _ACEOF
7977 if ac_fn_c_try_link "$LINENO"; then :
7978   ac_cv_sys_largefile_source=no; break
7979 fi
7980 rm -f core conftest.err conftest.$ac_objext \
7981     conftest$ac_exeext conftest.$ac_ext
7982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h.  */
7984 #define _LARGEFILE_SOURCE 1
7985 #include <sys/types.h> /* for off_t */
7986      #include <stdio.h>
7987 int
7988 main ()
7989 {
7990 int (*fp) (FILE *, off_t, int) = fseeko;
7991      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7992   ;
7993   return 0;
7994 }
7995 _ACEOF
7996 if ac_fn_c_try_link "$LINENO"; then :
7997   ac_cv_sys_largefile_source=1; break
7998 fi
7999 rm -f core conftest.err conftest.$ac_objext \
8000     conftest$ac_exeext conftest.$ac_ext
8001   ac_cv_sys_largefile_source=unknown
8002   break
8003 done
8004 fi
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
8006 $as_echo "$ac_cv_sys_largefile_source" >&6; }
8007 case $ac_cv_sys_largefile_source in #(
8008   no | unknown) ;;
8009   *)
8010 cat >>confdefs.h <<_ACEOF
8011 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8012 _ACEOF
8013 ;;
8014 esac
8015 rm -rf conftest*
8016
8017 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8018 # in glibc 2.1.3, but that breaks too many other things.
8019 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8020 if test $ac_cv_sys_largefile_source != unknown; then
8021
8022 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
8023
8024 fi
8025
8026 LFS_CPPFLAGS=''
8027 if test "$enable_largefile" != no; then
8028     if test "$ac_cv_sys_file_offset_bits" != 'no'; then
8029         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8030     else
8031         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
8032 $as_echo_n "checking for native large file support... " >&6; }
8033         if test "$cross_compiling" = yes; then :
8034   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8036 as_fn_error "cannot run test program while cross compiling
8037 See \`config.log' for more details." "$LINENO" 5; }
8038 else
8039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h.  */
8041 #include <unistd.h>
8042           main () {
8043           exit(!(sizeof(off_t) == 8));
8044         }
8045 _ACEOF
8046 if ac_fn_c_try_run "$LINENO"; then :
8047   ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
8048
8049          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8050 $as_echo "yes" >&6; }
8051 else
8052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8054 fi
8055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8056   conftest.$ac_objext conftest.beam conftest.$ac_ext
8057 fi
8058
8059     fi
8060     if test "$ac_cv_sys_large_files" != 'no'; then
8061         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8062     fi
8063     if test "$ac_cv_sys_largefile_source" != 'no'; then
8064         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
8065     fi
8066 fi
8067
8068
8069 #
8070 # Configure libtool & libltdl
8071 #
8072 # Configure libtool
8073 enable_dlopen=yes
8074
8075
8076
8077 case `pwd` in
8078   *\ * | *\     *)
8079     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8080 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8081 esac
8082
8083
8084
8085 macro_version='2.2.6b'
8086 macro_revision='1.3017'
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100 ltmain="$ac_aux_dir/ltmain.sh"
8101
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8103 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8104 if test "${lt_cv_path_NM+set}" = set; then :
8105   $as_echo_n "(cached) " >&6
8106 else
8107   if test -n "$NM"; then
8108   # Let the user override the test.
8109   lt_cv_path_NM="$NM"
8110 else
8111   lt_nm_to_check="${ac_tool_prefix}nm"
8112   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8113     lt_nm_to_check="$lt_nm_to_check nm"
8114   fi
8115   for lt_tmp_nm in $lt_nm_to_check; do
8116     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8117     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8118       IFS="$lt_save_ifs"
8119       test -z "$ac_dir" && ac_dir=.
8120       tmp_nm="$ac_dir/$lt_tmp_nm"
8121       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8122         # Check to see if the nm accepts a BSD-compat flag.
8123         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8124         #   nm: unknown option "B" ignored
8125         # Tru64's nm complains that /dev/null is an invalid object file
8126         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8127         */dev/null* | *'Invalid file or object type'*)
8128           lt_cv_path_NM="$tmp_nm -B"
8129           break
8130           ;;
8131         *)
8132           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8133           */dev/null*)
8134             lt_cv_path_NM="$tmp_nm -p"
8135             break
8136             ;;
8137           *)
8138             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8139             continue # so that we can try to find one that supports BSD flags
8140             ;;
8141           esac
8142           ;;
8143         esac
8144       fi
8145     done
8146     IFS="$lt_save_ifs"
8147   done
8148   : ${lt_cv_path_NM=no}
8149 fi
8150 fi
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8152 $as_echo "$lt_cv_path_NM" >&6; }
8153 if test "$lt_cv_path_NM" != "no"; then
8154   NM="$lt_cv_path_NM"
8155 else
8156   # Didn't find any BSD compatible name lister, look for dumpbin.
8157   if test -n "$ac_tool_prefix"; then
8158   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8159   do
8160     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8161 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163 $as_echo_n "checking for $ac_word... " >&6; }
8164 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
8165   $as_echo_n "(cached) " >&6
8166 else
8167   if test -n "$DUMPBIN"; then
8168   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8169 else
8170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171 for as_dir in $PATH
8172 do
8173   IFS=$as_save_IFS
8174   test -z "$as_dir" && as_dir=.
8175     for ac_exec_ext in '' $ac_executable_extensions; do
8176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8177     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8179     break 2
8180   fi
8181 done
8182   done
8183 IFS=$as_save_IFS
8184
8185 fi
8186 fi
8187 DUMPBIN=$ac_cv_prog_DUMPBIN
8188 if test -n "$DUMPBIN"; then
8189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8190 $as_echo "$DUMPBIN" >&6; }
8191 else
8192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8193 $as_echo "no" >&6; }
8194 fi
8195
8196
8197     test -n "$DUMPBIN" && break
8198   done
8199 fi
8200 if test -z "$DUMPBIN"; then
8201   ac_ct_DUMPBIN=$DUMPBIN
8202   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8203 do
8204   # Extract the first word of "$ac_prog", so it can be a program name with args.
8205 set dummy $ac_prog; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
8209   $as_echo_n "(cached) " >&6
8210 else
8211   if test -n "$ac_ct_DUMPBIN"; then
8212   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8213 else
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 for as_dir in $PATH
8216 do
8217   IFS=$as_save_IFS
8218   test -z "$as_dir" && as_dir=.
8219     for ac_exec_ext in '' $ac_executable_extensions; do
8220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8221     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223     break 2
8224   fi
8225 done
8226   done
8227 IFS=$as_save_IFS
8228
8229 fi
8230 fi
8231 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8232 if test -n "$ac_ct_DUMPBIN"; then
8233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8234 $as_echo "$ac_ct_DUMPBIN" >&6; }
8235 else
8236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8238 fi
8239
8240
8241   test -n "$ac_ct_DUMPBIN" && break
8242 done
8243
8244   if test "x$ac_ct_DUMPBIN" = x; then
8245     DUMPBIN=":"
8246   else
8247     case $cross_compiling:$ac_tool_warned in
8248 yes:)
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8251 ac_tool_warned=yes ;;
8252 esac
8253     DUMPBIN=$ac_ct_DUMPBIN
8254   fi
8255 fi
8256
8257
8258   if test "$DUMPBIN" != ":"; then
8259     NM="$DUMPBIN"
8260   fi
8261 fi
8262 test -z "$NM" && NM=nm
8263
8264
8265
8266
8267
8268
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8270 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8271 if test "${lt_cv_nm_interface+set}" = set; then :
8272   $as_echo_n "(cached) " >&6
8273 else
8274   lt_cv_nm_interface="BSD nm"
8275   echo "int some_variable = 0;" > conftest.$ac_ext
8276   (eval echo "\"\$as_me:8276: $ac_compile\"" >&5)
8277   (eval "$ac_compile" 2>conftest.err)
8278   cat conftest.err >&5
8279   (eval echo "\"\$as_me:8279: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8280   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8281   cat conftest.err >&5
8282   (eval echo "\"\$as_me:8282: output\"" >&5)
8283   cat conftest.out >&5
8284   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8285     lt_cv_nm_interface="MS dumpbin"
8286   fi
8287   rm -f conftest*
8288 fi
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8290 $as_echo "$lt_cv_nm_interface" >&6; }
8291
8292 # find the maximum length of command line arguments
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8294 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8295 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
8296   $as_echo_n "(cached) " >&6
8297 else
8298     i=0
8299   teststring="ABCD"
8300
8301   case $build_os in
8302   msdosdjgpp*)
8303     # On DJGPP, this test can blow up pretty badly due to problems in libc
8304     # (any single argument exceeding 2000 bytes causes a buffer overrun
8305     # during glob expansion).  Even if it were fixed, the result of this
8306     # check would be larger than it should be.
8307     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8308     ;;
8309
8310   gnu*)
8311     # Under GNU Hurd, this test is not required because there is
8312     # no limit to the length of command line arguments.
8313     # Libtool will interpret -1 as no limit whatsoever
8314     lt_cv_sys_max_cmd_len=-1;
8315     ;;
8316
8317   cygwin* | mingw* | cegcc*)
8318     # On Win9x/ME, this test blows up -- it succeeds, but takes
8319     # about 5 minutes as the teststring grows exponentially.
8320     # Worse, since 9x/ME are not pre-emptively multitasking,
8321     # you end up with a "frozen" computer, even though with patience
8322     # the test eventually succeeds (with a max line length of 256k).
8323     # Instead, let's just punt: use the minimum linelength reported by
8324     # all of the supported platforms: 8192 (on NT/2K/XP).
8325     lt_cv_sys_max_cmd_len=8192;
8326     ;;
8327
8328   amigaos*)
8329     # On AmigaOS with pdksh, this test takes hours, literally.
8330     # So we just punt and use a minimum line length of 8192.
8331     lt_cv_sys_max_cmd_len=8192;
8332     ;;
8333
8334   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8335     # This has been around since 386BSD, at least.  Likely further.
8336     if test -x /sbin/sysctl; then
8337       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8338     elif test -x /usr/sbin/sysctl; then
8339       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8340     else
8341       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8342     fi
8343     # And add a safety zone
8344     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8345     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8346     ;;
8347
8348   interix*)
8349     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8350     lt_cv_sys_max_cmd_len=196608
8351     ;;
8352
8353   osf*)
8354     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8355     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8356     # nice to cause kernel panics so lets avoid the loop below.
8357     # First set a reasonable default.
8358     lt_cv_sys_max_cmd_len=16384
8359     #
8360     if test -x /sbin/sysconfig; then
8361       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8362         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8363       esac
8364     fi
8365     ;;
8366   sco3.2v5*)
8367     lt_cv_sys_max_cmd_len=102400
8368     ;;
8369   sysv5* | sco5v6* | sysv4.2uw2*)
8370     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8371     if test -n "$kargmax"; then
8372       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8373     else
8374       lt_cv_sys_max_cmd_len=32768
8375     fi
8376     ;;
8377   *)
8378     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8379     if test -n "$lt_cv_sys_max_cmd_len"; then
8380       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8381       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8382     else
8383       # Make teststring a little bigger before we do anything with it.
8384       # a 1K string should be a reasonable start.
8385       for i in 1 2 3 4 5 6 7 8 ; do
8386         teststring=$teststring$teststring
8387       done
8388       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8389       # If test is not a shell built-in, we'll probably end up computing a
8390       # maximum length that is only half of the actual maximum length, but
8391       # we can't tell.
8392       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8393                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
8394               test $i != 17 # 1/2 MB should be enough
8395       do
8396         i=`expr $i + 1`
8397         teststring=$teststring$teststring
8398       done
8399       # Only check the string length outside the loop.
8400       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8401       teststring=
8402       # Add a significant safety factor because C++ compilers can tack on
8403       # massive amounts of additional arguments before passing them to the
8404       # linker.  It appears as though 1/2 is a usable value.
8405       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8406     fi
8407     ;;
8408   esac
8409
8410 fi
8411
8412 if test -n $lt_cv_sys_max_cmd_len ; then
8413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8414 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8415 else
8416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8417 $as_echo "none" >&6; }
8418 fi
8419 max_cmd_len=$lt_cv_sys_max_cmd_len
8420
8421
8422
8423
8424
8425
8426 : ${CP="cp -f"}
8427 : ${MV="mv -f"}
8428 : ${RM="rm -f"}
8429
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8431 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8432 # Try some XSI features
8433 xsi_shell=no
8434 ( _lt_dummy="a/b/c"
8435   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8436       = c,a/b,, \
8437     && eval 'test $(( 1 + 1 )) -eq 2 \
8438     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8439   && xsi_shell=yes
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8441 $as_echo "$xsi_shell" >&6; }
8442
8443
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8445 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8446 lt_shell_append=no
8447 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8448     >/dev/null 2>&1 \
8449   && lt_shell_append=yes
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8451 $as_echo "$lt_shell_append" >&6; }
8452
8453
8454 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8455   lt_unset=unset
8456 else
8457   lt_unset=false
8458 fi
8459
8460
8461
8462
8463
8464 # test EBCDIC or ASCII
8465 case `echo X|tr X '\101'` in
8466  A) # ASCII based system
8467     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8468   lt_SP2NL='tr \040 \012'
8469   lt_NL2SP='tr \015\012 \040\040'
8470   ;;
8471  *) # EBCDIC based system
8472   lt_SP2NL='tr \100 \n'
8473   lt_NL2SP='tr \r\n \100\100'
8474   ;;
8475 esac
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8486 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8487 if test "${lt_cv_ld_reload_flag+set}" = set; then :
8488   $as_echo_n "(cached) " >&6
8489 else
8490   lt_cv_ld_reload_flag='-r'
8491 fi
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8493 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8494 reload_flag=$lt_cv_ld_reload_flag
8495 case $reload_flag in
8496 "" | " "*) ;;
8497 *) reload_flag=" $reload_flag" ;;
8498 esac
8499 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8500 case $host_os in
8501   darwin*)
8502     if test "$GCC" = yes; then
8503       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8504     else
8505       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8506     fi
8507     ;;
8508 esac
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518 if test -n "$ac_tool_prefix"; then
8519   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8520 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8522 $as_echo_n "checking for $ac_word... " >&6; }
8523 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8524   $as_echo_n "(cached) " >&6
8525 else
8526   if test -n "$OBJDUMP"; then
8527   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8528 else
8529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8530 for as_dir in $PATH
8531 do
8532   IFS=$as_save_IFS
8533   test -z "$as_dir" && as_dir=.
8534     for ac_exec_ext in '' $ac_executable_extensions; do
8535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8536     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8538     break 2
8539   fi
8540 done
8541   done
8542 IFS=$as_save_IFS
8543
8544 fi
8545 fi
8546 OBJDUMP=$ac_cv_prog_OBJDUMP
8547 if test -n "$OBJDUMP"; then
8548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8549 $as_echo "$OBJDUMP" >&6; }
8550 else
8551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552 $as_echo "no" >&6; }
8553 fi
8554
8555
8556 fi
8557 if test -z "$ac_cv_prog_OBJDUMP"; then
8558   ac_ct_OBJDUMP=$OBJDUMP
8559   # Extract the first word of "objdump", so it can be a program name with args.
8560 set dummy objdump; ac_word=$2
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8562 $as_echo_n "checking for $ac_word... " >&6; }
8563 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
8564   $as_echo_n "(cached) " >&6
8565 else
8566   if test -n "$ac_ct_OBJDUMP"; then
8567   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8568 else
8569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570 for as_dir in $PATH
8571 do
8572   IFS=$as_save_IFS
8573   test -z "$as_dir" && as_dir=.
8574     for ac_exec_ext in '' $ac_executable_extensions; do
8575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8576     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8578     break 2
8579   fi
8580 done
8581   done
8582 IFS=$as_save_IFS
8583
8584 fi
8585 fi
8586 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8587 if test -n "$ac_ct_OBJDUMP"; then
8588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8589 $as_echo "$ac_ct_OBJDUMP" >&6; }
8590 else
8591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8592 $as_echo "no" >&6; }
8593 fi
8594
8595   if test "x$ac_ct_OBJDUMP" = x; then
8596     OBJDUMP="false"
8597   else
8598     case $cross_compiling:$ac_tool_warned in
8599 yes:)
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8602 ac_tool_warned=yes ;;
8603 esac
8604     OBJDUMP=$ac_ct_OBJDUMP
8605   fi
8606 else
8607   OBJDUMP="$ac_cv_prog_OBJDUMP"
8608 fi
8609
8610 test -z "$OBJDUMP" && OBJDUMP=objdump
8611
8612
8613
8614
8615
8616
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8618 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8619 if test "${lt_cv_deplibs_check_method+set}" = set; then :
8620   $as_echo_n "(cached) " >&6
8621 else
8622   lt_cv_file_magic_cmd='$MAGIC_CMD'
8623 lt_cv_file_magic_test_file=
8624 lt_cv_deplibs_check_method='unknown'
8625 # Need to set the preceding variable on all platforms that support
8626 # interlibrary dependencies.
8627 # 'none' -- dependencies not supported.
8628 # `unknown' -- same as none, but documents that we really don't know.
8629 # 'pass_all' -- all dependencies passed with no checks.
8630 # 'test_compile' -- check by making test program.
8631 # 'file_magic [[regex]]' -- check by looking for files in library path
8632 # which responds to the $file_magic_cmd with a given extended regex.
8633 # If you have `file' or equivalent on your system and you're not sure
8634 # whether `pass_all' will *always* work, you probably want this one.
8635
8636 case $host_os in
8637 aix[4-9]*)
8638   lt_cv_deplibs_check_method=pass_all
8639   ;;
8640
8641 beos*)
8642   lt_cv_deplibs_check_method=pass_all
8643   ;;
8644
8645 bsdi[45]*)
8646   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8647   lt_cv_file_magic_cmd='/usr/bin/file -L'
8648   lt_cv_file_magic_test_file=/shlib/libc.so
8649   ;;
8650
8651 cygwin*)
8652   # func_win32_libid is a shell function defined in ltmain.sh
8653   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8654   lt_cv_file_magic_cmd='func_win32_libid'
8655   ;;
8656
8657 mingw* | pw32*)
8658   # Base MSYS/MinGW do not provide the 'file' command needed by
8659   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8660   # unless we find 'file', for example because we are cross-compiling.
8661   if ( file / ) >/dev/null 2>&1; then
8662     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8663     lt_cv_file_magic_cmd='func_win32_libid'
8664   else
8665     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8666     lt_cv_file_magic_cmd='$OBJDUMP -f'
8667   fi
8668   ;;
8669
8670 cegcc)
8671   # use the weaker test based on 'objdump'. See mingw*.
8672   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8673   lt_cv_file_magic_cmd='$OBJDUMP -f'
8674   ;;
8675
8676 darwin* | rhapsody*)
8677   lt_cv_deplibs_check_method=pass_all
8678   ;;
8679
8680 freebsd* | dragonfly*)
8681   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8682     case $host_cpu in
8683     i*86 )
8684       # Not sure whether the presence of OpenBSD here was a mistake.
8685       # Let's accept both of them until this is cleared up.
8686       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8687       lt_cv_file_magic_cmd=/usr/bin/file
8688       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8689       ;;
8690     esac
8691   else
8692     lt_cv_deplibs_check_method=pass_all
8693   fi
8694   ;;
8695
8696 gnu*)
8697   lt_cv_deplibs_check_method=pass_all
8698   ;;
8699
8700 hpux10.20* | hpux11*)
8701   lt_cv_file_magic_cmd=/usr/bin/file
8702   case $host_cpu in
8703   ia64*)
8704     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8705     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8706     ;;
8707   hppa*64*)
8708     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
8709     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8710     ;;
8711   *)
8712     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8713     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8714     ;;
8715   esac
8716   ;;
8717
8718 interix[3-9]*)
8719   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8720   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8721   ;;
8722
8723 irix5* | irix6* | nonstopux*)
8724   case $LD in
8725   *-32|*"-32 ") libmagic=32-bit;;
8726   *-n32|*"-n32 ") libmagic=N32;;
8727   *-64|*"-64 ") libmagic=64-bit;;
8728   *) libmagic=never-match;;
8729   esac
8730   lt_cv_deplibs_check_method=pass_all
8731   ;;
8732
8733 # This must be Linux ELF.
8734 linux* | k*bsd*-gnu)
8735   lt_cv_deplibs_check_method=pass_all
8736   ;;
8737
8738 netbsd*)
8739   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8740     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8741   else
8742     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8743   fi
8744   ;;
8745
8746 newos6*)
8747   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8748   lt_cv_file_magic_cmd=/usr/bin/file
8749   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8750   ;;
8751
8752 *nto* | *qnx*)
8753   lt_cv_deplibs_check_method=pass_all
8754   ;;
8755
8756 openbsd*)
8757   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8758     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8759   else
8760     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8761   fi
8762   ;;
8763
8764 osf3* | osf4* | osf5*)
8765   lt_cv_deplibs_check_method=pass_all
8766   ;;
8767
8768 rdos*)
8769   lt_cv_deplibs_check_method=pass_all
8770   ;;
8771
8772 solaris*)
8773   lt_cv_deplibs_check_method=pass_all
8774   ;;
8775
8776 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8777   lt_cv_deplibs_check_method=pass_all
8778   ;;
8779
8780 sysv4 | sysv4.3*)
8781   case $host_vendor in
8782   motorola)
8783     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]'
8784     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8785     ;;
8786   ncr)
8787     lt_cv_deplibs_check_method=pass_all
8788     ;;
8789   sequent)
8790     lt_cv_file_magic_cmd='/bin/file'
8791     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8792     ;;
8793   sni)
8794     lt_cv_file_magic_cmd='/bin/file'
8795     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8796     lt_cv_file_magic_test_file=/lib/libc.so
8797     ;;
8798   siemens)
8799     lt_cv_deplibs_check_method=pass_all
8800     ;;
8801   pc)
8802     lt_cv_deplibs_check_method=pass_all
8803     ;;
8804   esac
8805   ;;
8806
8807 tpf*)
8808   lt_cv_deplibs_check_method=pass_all
8809   ;;
8810 esac
8811
8812 fi
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8814 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8815 file_magic_cmd=$lt_cv_file_magic_cmd
8816 deplibs_check_method=$lt_cv_deplibs_check_method
8817 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830 if test -n "$ac_tool_prefix"; then
8831   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8832 set dummy ${ac_tool_prefix}ar; ac_word=$2
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834 $as_echo_n "checking for $ac_word... " >&6; }
8835 if test "${ac_cv_prog_AR+set}" = set; then :
8836   $as_echo_n "(cached) " >&6
8837 else
8838   if test -n "$AR"; then
8839   ac_cv_prog_AR="$AR" # Let the user override the test.
8840 else
8841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842 for as_dir in $PATH
8843 do
8844   IFS=$as_save_IFS
8845   test -z "$as_dir" && as_dir=.
8846     for ac_exec_ext in '' $ac_executable_extensions; do
8847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8848     ac_cv_prog_AR="${ac_tool_prefix}ar"
8849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8850     break 2
8851   fi
8852 done
8853   done
8854 IFS=$as_save_IFS
8855
8856 fi
8857 fi
8858 AR=$ac_cv_prog_AR
8859 if test -n "$AR"; then
8860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8861 $as_echo "$AR" >&6; }
8862 else
8863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864 $as_echo "no" >&6; }
8865 fi
8866
8867
8868 fi
8869 if test -z "$ac_cv_prog_AR"; then
8870   ac_ct_AR=$AR
8871   # Extract the first word of "ar", so it can be a program name with args.
8872 set dummy ar; ac_word=$2
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874 $as_echo_n "checking for $ac_word... " >&6; }
8875 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8876   $as_echo_n "(cached) " >&6
8877 else
8878   if test -n "$ac_ct_AR"; then
8879   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8880 else
8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882 for as_dir in $PATH
8883 do
8884   IFS=$as_save_IFS
8885   test -z "$as_dir" && as_dir=.
8886     for ac_exec_ext in '' $ac_executable_extensions; do
8887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8888     ac_cv_prog_ac_ct_AR="ar"
8889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890     break 2
8891   fi
8892 done
8893   done
8894 IFS=$as_save_IFS
8895
8896 fi
8897 fi
8898 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8899 if test -n "$ac_ct_AR"; then
8900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8901 $as_echo "$ac_ct_AR" >&6; }
8902 else
8903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8905 fi
8906
8907   if test "x$ac_ct_AR" = x; then
8908     AR="false"
8909   else
8910     case $cross_compiling:$ac_tool_warned in
8911 yes:)
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8914 ac_tool_warned=yes ;;
8915 esac
8916     AR=$ac_ct_AR
8917   fi
8918 else
8919   AR="$ac_cv_prog_AR"
8920 fi
8921
8922 test -z "$AR" && AR=ar
8923 test -z "$AR_FLAGS" && AR_FLAGS=cru
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935 if test -n "$ac_tool_prefix"; then
8936   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8937 set dummy ${ac_tool_prefix}strip; ac_word=$2
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8939 $as_echo_n "checking for $ac_word... " >&6; }
8940 if test "${ac_cv_prog_STRIP+set}" = set; then :
8941   $as_echo_n "(cached) " >&6
8942 else
8943   if test -n "$STRIP"; then
8944   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8945 else
8946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8947 for as_dir in $PATH
8948 do
8949   IFS=$as_save_IFS
8950   test -z "$as_dir" && as_dir=.
8951     for ac_exec_ext in '' $ac_executable_extensions; do
8952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8953     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8955     break 2
8956   fi
8957 done
8958   done
8959 IFS=$as_save_IFS
8960
8961 fi
8962 fi
8963 STRIP=$ac_cv_prog_STRIP
8964 if test -n "$STRIP"; then
8965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8966 $as_echo "$STRIP" >&6; }
8967 else
8968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8969 $as_echo "no" >&6; }
8970 fi
8971
8972
8973 fi
8974 if test -z "$ac_cv_prog_STRIP"; then
8975   ac_ct_STRIP=$STRIP
8976   # Extract the first word of "strip", so it can be a program name with args.
8977 set dummy strip; ac_word=$2
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979 $as_echo_n "checking for $ac_word... " >&6; }
8980 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8981   $as_echo_n "(cached) " >&6
8982 else
8983   if test -n "$ac_ct_STRIP"; then
8984   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8985 else
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987 for as_dir in $PATH
8988 do
8989   IFS=$as_save_IFS
8990   test -z "$as_dir" && as_dir=.
8991     for ac_exec_ext in '' $ac_executable_extensions; do
8992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8993     ac_cv_prog_ac_ct_STRIP="strip"
8994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8995     break 2
8996   fi
8997 done
8998   done
8999 IFS=$as_save_IFS
9000
9001 fi
9002 fi
9003 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9004 if test -n "$ac_ct_STRIP"; then
9005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9006 $as_echo "$ac_ct_STRIP" >&6; }
9007 else
9008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009 $as_echo "no" >&6; }
9010 fi
9011
9012   if test "x$ac_ct_STRIP" = x; then
9013     STRIP=":"
9014   else
9015     case $cross_compiling:$ac_tool_warned in
9016 yes:)
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9019 ac_tool_warned=yes ;;
9020 esac
9021     STRIP=$ac_ct_STRIP
9022   fi
9023 else
9024   STRIP="$ac_cv_prog_STRIP"
9025 fi
9026
9027 test -z "$STRIP" && STRIP=:
9028
9029
9030
9031
9032
9033
9034 if test -n "$ac_tool_prefix"; then
9035   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9036 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9038 $as_echo_n "checking for $ac_word... " >&6; }
9039 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9040   $as_echo_n "(cached) " >&6
9041 else
9042   if test -n "$RANLIB"; then
9043   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9044 else
9045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9046 for as_dir in $PATH
9047 do
9048   IFS=$as_save_IFS
9049   test -z "$as_dir" && as_dir=.
9050     for ac_exec_ext in '' $ac_executable_extensions; do
9051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9052     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9054     break 2
9055   fi
9056 done
9057   done
9058 IFS=$as_save_IFS
9059
9060 fi
9061 fi
9062 RANLIB=$ac_cv_prog_RANLIB
9063 if test -n "$RANLIB"; then
9064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9065 $as_echo "$RANLIB" >&6; }
9066 else
9067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9068 $as_echo "no" >&6; }
9069 fi
9070
9071
9072 fi
9073 if test -z "$ac_cv_prog_RANLIB"; then
9074   ac_ct_RANLIB=$RANLIB
9075   # Extract the first word of "ranlib", so it can be a program name with args.
9076 set dummy ranlib; ac_word=$2
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9078 $as_echo_n "checking for $ac_word... " >&6; }
9079 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9080   $as_echo_n "(cached) " >&6
9081 else
9082   if test -n "$ac_ct_RANLIB"; then
9083   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9084 else
9085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086 for as_dir in $PATH
9087 do
9088   IFS=$as_save_IFS
9089   test -z "$as_dir" && as_dir=.
9090     for ac_exec_ext in '' $ac_executable_extensions; do
9091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9092     ac_cv_prog_ac_ct_RANLIB="ranlib"
9093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9094     break 2
9095   fi
9096 done
9097   done
9098 IFS=$as_save_IFS
9099
9100 fi
9101 fi
9102 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9103 if test -n "$ac_ct_RANLIB"; then
9104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9105 $as_echo "$ac_ct_RANLIB" >&6; }
9106 else
9107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9108 $as_echo "no" >&6; }
9109 fi
9110
9111   if test "x$ac_ct_RANLIB" = x; then
9112     RANLIB=":"
9113   else
9114     case $cross_compiling:$ac_tool_warned in
9115 yes:)
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9118 ac_tool_warned=yes ;;
9119 esac
9120     RANLIB=$ac_ct_RANLIB
9121   fi
9122 else
9123   RANLIB="$ac_cv_prog_RANLIB"
9124 fi
9125
9126 test -z "$RANLIB" && RANLIB=:
9127
9128
9129
9130
9131
9132
9133 # Determine commands to create old-style static archives.
9134 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9135 old_postinstall_cmds='chmod 644 $oldlib'
9136 old_postuninstall_cmds=
9137
9138 if test -n "$RANLIB"; then
9139   case $host_os in
9140   openbsd*)
9141     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9142     ;;
9143   *)
9144     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9145     ;;
9146   esac
9147   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9148 fi
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183 # If no C compiler was specified, use CC.
9184 LTCC=${LTCC-"$CC"}
9185
9186 # If no C compiler flags were specified, use CFLAGS.
9187 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9188
9189 # Allow CC to be a program name with arguments.
9190 compiler=$CC
9191
9192
9193 # Check for command to grab the raw symbol name followed by C symbol from nm.
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9195 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9196 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
9197   $as_echo_n "(cached) " >&6
9198 else
9199
9200 # These are sane defaults that work on at least a few old systems.
9201 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9202
9203 # Character class describing NM global symbol codes.
9204 symcode='[BCDEGRST]'
9205
9206 # Regexp to match symbols that can be accessed directly from C.
9207 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9208
9209 # Define system-specific variables.
9210 case $host_os in
9211 aix*)
9212   symcode='[BCDT]'
9213   ;;
9214 cygwin* | mingw* | pw32* | cegcc*)
9215   symcode='[ABCDGISTW]'
9216   ;;
9217 hpux*)
9218   if test "$host_cpu" = ia64; then
9219     symcode='[ABCDEGRST]'
9220   fi
9221   ;;
9222 irix* | nonstopux*)
9223   symcode='[BCDEGRST]'
9224   ;;
9225 osf*)
9226   symcode='[BCDEGQRST]'
9227   ;;
9228 solaris*)
9229   symcode='[BDRT]'
9230   ;;
9231 sco3.2v5*)
9232   symcode='[DT]'
9233   ;;
9234 sysv4.2uw2*)
9235   symcode='[DT]'
9236   ;;
9237 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9238   symcode='[ABDT]'
9239   ;;
9240 sysv4)
9241   symcode='[DFNSTU]'
9242   ;;
9243 esac
9244
9245 # If we're using GNU nm, then use its standard symbol codes.
9246 case `$NM -V 2>&1` in
9247 *GNU* | *'with BFD'*)
9248   symcode='[ABCDGIRSTW]' ;;
9249 esac
9250
9251 # Transform an extracted symbol line into a proper C declaration.
9252 # Some systems (esp. on ia64) link data and code symbols differently,
9253 # so use this general approach.
9254 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9255
9256 # Transform an extracted symbol line into symbol name and symbol address
9257 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9258 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'"
9259
9260 # Handle CRLF in mingw tool chain
9261 opt_cr=
9262 case $build_os in
9263 mingw*)
9264   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9265   ;;
9266 esac
9267
9268 # Try without a prefix underscore, then with it.
9269 for ac_symprfx in "" "_"; do
9270
9271   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9272   symxfrm="\\1 $ac_symprfx\\2 \\2"
9273
9274   # Write the raw and C identifiers.
9275   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9276     # Fake it for dumpbin and say T for any non-static function
9277     # and D for any global variable.
9278     # Also find C++ and __fastcall symbols from MSVC++,
9279     # which start with @ or ?.
9280     lt_cv_sys_global_symbol_pipe="$AWK '"\
9281 "     {last_section=section; section=\$ 3};"\
9282 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9283 "     \$ 0!~/External *\|/{next};"\
9284 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9285 "     {if(hide[section]) next};"\
9286 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9287 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9288 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9289 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9290 "     ' prfx=^$ac_symprfx"
9291   else
9292     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9293   fi
9294
9295   # Check to see that the pipe works correctly.
9296   pipe_works=no
9297
9298   rm -f conftest*
9299   cat > conftest.$ac_ext <<_LT_EOF
9300 #ifdef __cplusplus
9301 extern "C" {
9302 #endif
9303 char nm_test_var;
9304 void nm_test_func(void);
9305 void nm_test_func(void){}
9306 #ifdef __cplusplus
9307 }
9308 #endif
9309 int main(){nm_test_var='a';nm_test_func();return(0);}
9310 _LT_EOF
9311
9312   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9313   (eval $ac_compile) 2>&5
9314   ac_status=$?
9315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9316   test $ac_status = 0; }; then
9317     # Now try to grab the symbols.
9318     nlist=conftest.nm
9319     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9320   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9321   ac_status=$?
9322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9323   test $ac_status = 0; } && test -s "$nlist"; then
9324       # Try sorting and uniquifying the output.
9325       if sort "$nlist" | uniq > "$nlist"T; then
9326         mv -f "$nlist"T "$nlist"
9327       else
9328         rm -f "$nlist"T
9329       fi
9330
9331       # Make sure that we snagged all the symbols we need.
9332       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9333         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9334           cat <<_LT_EOF > conftest.$ac_ext
9335 #ifdef __cplusplus
9336 extern "C" {
9337 #endif
9338
9339 _LT_EOF
9340           # Now generate the symbol file.
9341           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9342
9343           cat <<_LT_EOF >> conftest.$ac_ext
9344
9345 /* The mapping between symbol names and symbols.  */
9346 const struct {
9347   const char *name;
9348   void       *address;
9349 }
9350 lt__PROGRAM__LTX_preloaded_symbols[] =
9351 {
9352   { "@PROGRAM@", (void *) 0 },
9353 _LT_EOF
9354           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9355           cat <<\_LT_EOF >> conftest.$ac_ext
9356   {0, (void *) 0}
9357 };
9358
9359 /* This works around a problem in FreeBSD linker */
9360 #ifdef FREEBSD_WORKAROUND
9361 static const void *lt_preloaded_setup() {
9362   return lt__PROGRAM__LTX_preloaded_symbols;
9363 }
9364 #endif
9365
9366 #ifdef __cplusplus
9367 }
9368 #endif
9369 _LT_EOF
9370           # Now try linking the two files.
9371           mv conftest.$ac_objext conftstm.$ac_objext
9372           lt_save_LIBS="$LIBS"
9373           lt_save_CFLAGS="$CFLAGS"
9374           LIBS="conftstm.$ac_objext"
9375           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9376           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9377   (eval $ac_link) 2>&5
9378   ac_status=$?
9379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9380   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9381             pipe_works=yes
9382           fi
9383           LIBS="$lt_save_LIBS"
9384           CFLAGS="$lt_save_CFLAGS"
9385         else
9386           echo "cannot find nm_test_func in $nlist" >&5
9387         fi
9388       else
9389         echo "cannot find nm_test_var in $nlist" >&5
9390       fi
9391     else
9392       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9393     fi
9394   else
9395     echo "$progname: failed program was:" >&5
9396     cat conftest.$ac_ext >&5
9397   fi
9398   rm -rf conftest* conftst*
9399
9400   # Do not use the global_symbol_pipe unless it works.
9401   if test "$pipe_works" = yes; then
9402     break
9403   else
9404     lt_cv_sys_global_symbol_pipe=
9405   fi
9406 done
9407
9408 fi
9409
9410 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9411   lt_cv_sys_global_symbol_to_cdecl=
9412 fi
9413 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9415 $as_echo "failed" >&6; }
9416 else
9417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9418 $as_echo "ok" >&6; }
9419 fi
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442 # Check whether --enable-libtool-lock was given.
9443 if test "${enable_libtool_lock+set}" = set; then :
9444   enableval=$enable_libtool_lock;
9445 fi
9446
9447 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9448
9449 # Some flags need to be propagated to the compiler or linker for good
9450 # libtool support.
9451 case $host in
9452 ia64-*-hpux*)
9453   # Find out which ABI we are using.
9454   echo 'int i;' > conftest.$ac_ext
9455   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9456   (eval $ac_compile) 2>&5
9457   ac_status=$?
9458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9459   test $ac_status = 0; }; then
9460     case `/usr/bin/file conftest.$ac_objext` in
9461       *ELF-32*)
9462         HPUX_IA64_MODE="32"
9463         ;;
9464       *ELF-64*)
9465         HPUX_IA64_MODE="64"
9466         ;;
9467     esac
9468   fi
9469   rm -rf conftest*
9470   ;;
9471 *-*-irix6*)
9472   # Find out which ABI we are using.
9473   echo '#line 9473 "configure"' > conftest.$ac_ext
9474   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9475   (eval $ac_compile) 2>&5
9476   ac_status=$?
9477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9478   test $ac_status = 0; }; then
9479     if test "$lt_cv_prog_gnu_ld" = yes; then
9480       case `/usr/bin/file conftest.$ac_objext` in
9481         *32-bit*)
9482           LD="${LD-ld} -melf32bsmip"
9483           ;;
9484         *N32*)
9485           LD="${LD-ld} -melf32bmipn32"
9486           ;;
9487         *64-bit*)
9488           LD="${LD-ld} -melf64bmip"
9489         ;;
9490       esac
9491     else
9492       case `/usr/bin/file conftest.$ac_objext` in
9493         *32-bit*)
9494           LD="${LD-ld} -32"
9495           ;;
9496         *N32*)
9497           LD="${LD-ld} -n32"
9498           ;;
9499         *64-bit*)
9500           LD="${LD-ld} -64"
9501           ;;
9502       esac
9503     fi
9504   fi
9505   rm -rf conftest*
9506   ;;
9507
9508 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9509 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9510   # Find out which ABI we are using.
9511   echo 'int i;' > conftest.$ac_ext
9512   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9513   (eval $ac_compile) 2>&5
9514   ac_status=$?
9515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9516   test $ac_status = 0; }; then
9517     case `/usr/bin/file conftest.o` in
9518       *32-bit*)
9519         case $host in
9520           x86_64-*kfreebsd*-gnu)
9521             LD="${LD-ld} -m elf_i386_fbsd"
9522             ;;
9523           x86_64-*linux*)
9524             LD="${LD-ld} -m elf_i386"
9525             ;;
9526           ppc64-*linux*|powerpc64-*linux*)
9527             LD="${LD-ld} -m elf32ppclinux"
9528             ;;
9529           s390x-*linux*)
9530             LD="${LD-ld} -m elf_s390"
9531             ;;
9532           sparc64-*linux*)
9533             LD="${LD-ld} -m elf32_sparc"
9534             ;;
9535         esac
9536         ;;
9537       *64-bit*)
9538         case $host in
9539           x86_64-*kfreebsd*-gnu)
9540             LD="${LD-ld} -m elf_x86_64_fbsd"
9541             ;;
9542           x86_64-*linux*)
9543             LD="${LD-ld} -m elf_x86_64"
9544             ;;
9545           ppc*-*linux*|powerpc*-*linux*)
9546             LD="${LD-ld} -m elf64ppc"
9547             ;;
9548           s390*-*linux*|s390*-*tpf*)
9549             LD="${LD-ld} -m elf64_s390"
9550             ;;
9551           sparc*-*linux*)
9552             LD="${LD-ld} -m elf64_sparc"
9553             ;;
9554         esac
9555         ;;
9556     esac
9557   fi
9558   rm -rf conftest*
9559   ;;
9560
9561 *-*-sco3.2v5*)
9562   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9563   SAVE_CFLAGS="$CFLAGS"
9564   CFLAGS="$CFLAGS -belf"
9565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9566 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9567 if test "${lt_cv_cc_needs_belf+set}" = set; then :
9568   $as_echo_n "(cached) " >&6
9569 else
9570   ac_ext=c
9571 ac_cpp='$CPP $CPPFLAGS'
9572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9575
9576      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h.  */
9578
9579 int
9580 main ()
9581 {
9582
9583   ;
9584   return 0;
9585 }
9586 _ACEOF
9587 if ac_fn_c_try_link "$LINENO"; then :
9588   lt_cv_cc_needs_belf=yes
9589 else
9590   lt_cv_cc_needs_belf=no
9591 fi
9592 rm -f core conftest.err conftest.$ac_objext \
9593     conftest$ac_exeext conftest.$ac_ext
9594      ac_ext=c
9595 ac_cpp='$CPP $CPPFLAGS'
9596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9599
9600 fi
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9602 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9603   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9604     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9605     CFLAGS="$SAVE_CFLAGS"
9606   fi
9607   ;;
9608 sparc*-*solaris*)
9609   # Find out which ABI we are using.
9610   echo 'int i;' > conftest.$ac_ext
9611   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9612   (eval $ac_compile) 2>&5
9613   ac_status=$?
9614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9615   test $ac_status = 0; }; then
9616     case `/usr/bin/file conftest.o` in
9617     *64-bit*)
9618       case $lt_cv_prog_gnu_ld in
9619       yes*) LD="${LD-ld} -m elf64_sparc" ;;
9620       *)
9621         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9622           LD="${LD-ld} -64"
9623         fi
9624         ;;
9625       esac
9626       ;;
9627     esac
9628   fi
9629   rm -rf conftest*
9630   ;;
9631 esac
9632
9633 need_locks="$enable_libtool_lock"
9634
9635
9636   case $host_os in
9637     rhapsody* | darwin*)
9638     if test -n "$ac_tool_prefix"; then
9639   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9640 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9642 $as_echo_n "checking for $ac_word... " >&6; }
9643 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
9644   $as_echo_n "(cached) " >&6
9645 else
9646   if test -n "$DSYMUTIL"; then
9647   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9648 else
9649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650 for as_dir in $PATH
9651 do
9652   IFS=$as_save_IFS
9653   test -z "$as_dir" && as_dir=.
9654     for ac_exec_ext in '' $ac_executable_extensions; do
9655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9656     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9658     break 2
9659   fi
9660 done
9661   done
9662 IFS=$as_save_IFS
9663
9664 fi
9665 fi
9666 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9667 if test -n "$DSYMUTIL"; then
9668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9669 $as_echo "$DSYMUTIL" >&6; }
9670 else
9671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9672 $as_echo "no" >&6; }
9673 fi
9674
9675
9676 fi
9677 if test -z "$ac_cv_prog_DSYMUTIL"; then
9678   ac_ct_DSYMUTIL=$DSYMUTIL
9679   # Extract the first word of "dsymutil", so it can be a program name with args.
9680 set dummy dsymutil; ac_word=$2
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9682 $as_echo_n "checking for $ac_word... " >&6; }
9683 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
9684   $as_echo_n "(cached) " >&6
9685 else
9686   if test -n "$ac_ct_DSYMUTIL"; then
9687   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9688 else
9689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690 for as_dir in $PATH
9691 do
9692   IFS=$as_save_IFS
9693   test -z "$as_dir" && as_dir=.
9694     for ac_exec_ext in '' $ac_executable_extensions; do
9695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9696     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9698     break 2
9699   fi
9700 done
9701   done
9702 IFS=$as_save_IFS
9703
9704 fi
9705 fi
9706 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9707 if test -n "$ac_ct_DSYMUTIL"; then
9708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9709 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9710 else
9711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9712 $as_echo "no" >&6; }
9713 fi
9714
9715   if test "x$ac_ct_DSYMUTIL" = x; then
9716     DSYMUTIL=":"
9717   else
9718     case $cross_compiling:$ac_tool_warned in
9719 yes:)
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9722 ac_tool_warned=yes ;;
9723 esac
9724     DSYMUTIL=$ac_ct_DSYMUTIL
9725   fi
9726 else
9727   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9728 fi
9729
9730     if test -n "$ac_tool_prefix"; then
9731   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9732 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9734 $as_echo_n "checking for $ac_word... " >&6; }
9735 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9736   $as_echo_n "(cached) " >&6
9737 else
9738   if test -n "$NMEDIT"; then
9739   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9740 else
9741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742 for as_dir in $PATH
9743 do
9744   IFS=$as_save_IFS
9745   test -z "$as_dir" && as_dir=.
9746     for ac_exec_ext in '' $ac_executable_extensions; do
9747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9748     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9750     break 2
9751   fi
9752 done
9753   done
9754 IFS=$as_save_IFS
9755
9756 fi
9757 fi
9758 NMEDIT=$ac_cv_prog_NMEDIT
9759 if test -n "$NMEDIT"; then
9760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9761 $as_echo "$NMEDIT" >&6; }
9762 else
9763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9764 $as_echo "no" >&6; }
9765 fi
9766
9767
9768 fi
9769 if test -z "$ac_cv_prog_NMEDIT"; then
9770   ac_ct_NMEDIT=$NMEDIT
9771   # Extract the first word of "nmedit", so it can be a program name with args.
9772 set dummy nmedit; ac_word=$2
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9774 $as_echo_n "checking for $ac_word... " >&6; }
9775 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9776   $as_echo_n "(cached) " >&6
9777 else
9778   if test -n "$ac_ct_NMEDIT"; then
9779   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9780 else
9781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9782 for as_dir in $PATH
9783 do
9784   IFS=$as_save_IFS
9785   test -z "$as_dir" && as_dir=.
9786     for ac_exec_ext in '' $ac_executable_extensions; do
9787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9788     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9790     break 2
9791   fi
9792 done
9793   done
9794 IFS=$as_save_IFS
9795
9796 fi
9797 fi
9798 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9799 if test -n "$ac_ct_NMEDIT"; then
9800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9801 $as_echo "$ac_ct_NMEDIT" >&6; }
9802 else
9803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9804 $as_echo "no" >&6; }
9805 fi
9806
9807   if test "x$ac_ct_NMEDIT" = x; then
9808     NMEDIT=":"
9809   else
9810     case $cross_compiling:$ac_tool_warned in
9811 yes:)
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9814 ac_tool_warned=yes ;;
9815 esac
9816     NMEDIT=$ac_ct_NMEDIT
9817   fi
9818 else
9819   NMEDIT="$ac_cv_prog_NMEDIT"
9820 fi
9821
9822     if test -n "$ac_tool_prefix"; then
9823   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9824 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9826 $as_echo_n "checking for $ac_word... " >&6; }
9827 if test "${ac_cv_prog_LIPO+set}" = set; then :
9828   $as_echo_n "(cached) " >&6
9829 else
9830   if test -n "$LIPO"; then
9831   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9832 else
9833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9834 for as_dir in $PATH
9835 do
9836   IFS=$as_save_IFS
9837   test -z "$as_dir" && as_dir=.
9838     for ac_exec_ext in '' $ac_executable_extensions; do
9839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9840     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9842     break 2
9843   fi
9844 done
9845   done
9846 IFS=$as_save_IFS
9847
9848 fi
9849 fi
9850 LIPO=$ac_cv_prog_LIPO
9851 if test -n "$LIPO"; then
9852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9853 $as_echo "$LIPO" >&6; }
9854 else
9855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9856 $as_echo "no" >&6; }
9857 fi
9858
9859
9860 fi
9861 if test -z "$ac_cv_prog_LIPO"; then
9862   ac_ct_LIPO=$LIPO
9863   # Extract the first word of "lipo", so it can be a program name with args.
9864 set dummy lipo; ac_word=$2
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9866 $as_echo_n "checking for $ac_word... " >&6; }
9867 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9868   $as_echo_n "(cached) " >&6
9869 else
9870   if test -n "$ac_ct_LIPO"; then
9871   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9872 else
9873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9874 for as_dir in $PATH
9875 do
9876   IFS=$as_save_IFS
9877   test -z "$as_dir" && as_dir=.
9878     for ac_exec_ext in '' $ac_executable_extensions; do
9879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9880     ac_cv_prog_ac_ct_LIPO="lipo"
9881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9882     break 2
9883   fi
9884 done
9885   done
9886 IFS=$as_save_IFS
9887
9888 fi
9889 fi
9890 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9891 if test -n "$ac_ct_LIPO"; then
9892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9893 $as_echo "$ac_ct_LIPO" >&6; }
9894 else
9895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9896 $as_echo "no" >&6; }
9897 fi
9898
9899   if test "x$ac_ct_LIPO" = x; then
9900     LIPO=":"
9901   else
9902     case $cross_compiling:$ac_tool_warned in
9903 yes:)
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9906 ac_tool_warned=yes ;;
9907 esac
9908     LIPO=$ac_ct_LIPO
9909   fi
9910 else
9911   LIPO="$ac_cv_prog_LIPO"
9912 fi
9913
9914     if test -n "$ac_tool_prefix"; then
9915   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9916 set dummy ${ac_tool_prefix}otool; ac_word=$2
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9918 $as_echo_n "checking for $ac_word... " >&6; }
9919 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9920   $as_echo_n "(cached) " >&6
9921 else
9922   if test -n "$OTOOL"; then
9923   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9924 else
9925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9926 for as_dir in $PATH
9927 do
9928   IFS=$as_save_IFS
9929   test -z "$as_dir" && as_dir=.
9930     for ac_exec_ext in '' $ac_executable_extensions; do
9931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9932     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9934     break 2
9935   fi
9936 done
9937   done
9938 IFS=$as_save_IFS
9939
9940 fi
9941 fi
9942 OTOOL=$ac_cv_prog_OTOOL
9943 if test -n "$OTOOL"; then
9944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9945 $as_echo "$OTOOL" >&6; }
9946 else
9947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9948 $as_echo "no" >&6; }
9949 fi
9950
9951
9952 fi
9953 if test -z "$ac_cv_prog_OTOOL"; then
9954   ac_ct_OTOOL=$OTOOL
9955   # Extract the first word of "otool", so it can be a program name with args.
9956 set dummy otool; ac_word=$2
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9958 $as_echo_n "checking for $ac_word... " >&6; }
9959 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9960   $as_echo_n "(cached) " >&6
9961 else
9962   if test -n "$ac_ct_OTOOL"; then
9963   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9964 else
9965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966 for as_dir in $PATH
9967 do
9968   IFS=$as_save_IFS
9969   test -z "$as_dir" && as_dir=.
9970     for ac_exec_ext in '' $ac_executable_extensions; do
9971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9972     ac_cv_prog_ac_ct_OTOOL="otool"
9973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9974     break 2
9975   fi
9976 done
9977   done
9978 IFS=$as_save_IFS
9979
9980 fi
9981 fi
9982 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9983 if test -n "$ac_ct_OTOOL"; then
9984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9985 $as_echo "$ac_ct_OTOOL" >&6; }
9986 else
9987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9988 $as_echo "no" >&6; }
9989 fi
9990
9991   if test "x$ac_ct_OTOOL" = x; then
9992     OTOOL=":"
9993   else
9994     case $cross_compiling:$ac_tool_warned in
9995 yes:)
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9998 ac_tool_warned=yes ;;
9999 esac
10000     OTOOL=$ac_ct_OTOOL
10001   fi
10002 else
10003   OTOOL="$ac_cv_prog_OTOOL"
10004 fi
10005
10006     if test -n "$ac_tool_prefix"; then
10007   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10008 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10010 $as_echo_n "checking for $ac_word... " >&6; }
10011 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
10012   $as_echo_n "(cached) " >&6
10013 else
10014   if test -n "$OTOOL64"; then
10015   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10016 else
10017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10018 for as_dir in $PATH
10019 do
10020   IFS=$as_save_IFS
10021   test -z "$as_dir" && as_dir=.
10022     for ac_exec_ext in '' $ac_executable_extensions; do
10023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10024     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10026     break 2
10027   fi
10028 done
10029   done
10030 IFS=$as_save_IFS
10031
10032 fi
10033 fi
10034 OTOOL64=$ac_cv_prog_OTOOL64
10035 if test -n "$OTOOL64"; then
10036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10037 $as_echo "$OTOOL64" >&6; }
10038 else
10039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10040 $as_echo "no" >&6; }
10041 fi
10042
10043
10044 fi
10045 if test -z "$ac_cv_prog_OTOOL64"; then
10046   ac_ct_OTOOL64=$OTOOL64
10047   # Extract the first word of "otool64", so it can be a program name with args.
10048 set dummy otool64; ac_word=$2
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10050 $as_echo_n "checking for $ac_word... " >&6; }
10051 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
10052   $as_echo_n "(cached) " >&6
10053 else
10054   if test -n "$ac_ct_OTOOL64"; then
10055   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10056 else
10057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10058 for as_dir in $PATH
10059 do
10060   IFS=$as_save_IFS
10061   test -z "$as_dir" && as_dir=.
10062     for ac_exec_ext in '' $ac_executable_extensions; do
10063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10064     ac_cv_prog_ac_ct_OTOOL64="otool64"
10065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10066     break 2
10067   fi
10068 done
10069   done
10070 IFS=$as_save_IFS
10071
10072 fi
10073 fi
10074 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10075 if test -n "$ac_ct_OTOOL64"; then
10076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10077 $as_echo "$ac_ct_OTOOL64" >&6; }
10078 else
10079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080 $as_echo "no" >&6; }
10081 fi
10082
10083   if test "x$ac_ct_OTOOL64" = x; then
10084     OTOOL64=":"
10085   else
10086     case $cross_compiling:$ac_tool_warned in
10087 yes:)
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10090 ac_tool_warned=yes ;;
10091 esac
10092     OTOOL64=$ac_ct_OTOOL64
10093   fi
10094 else
10095   OTOOL64="$ac_cv_prog_OTOOL64"
10096 fi
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10125 $as_echo_n "checking for -single_module linker flag... " >&6; }
10126 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
10127   $as_echo_n "(cached) " >&6
10128 else
10129   lt_cv_apple_cc_single_mod=no
10130       if test -z "${LT_MULTI_MODULE}"; then
10131         # By default we will add the -single_module flag. You can override
10132         # by either setting the environment variable LT_MULTI_MODULE
10133         # non-empty at configure time, or by adding -multi_module to the
10134         # link flags.
10135         rm -rf libconftest.dylib*
10136         echo "int foo(void){return 1;}" > conftest.c
10137         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10138 -dynamiclib -Wl,-single_module conftest.c" >&5
10139         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10140           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10141         _lt_result=$?
10142         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10143           lt_cv_apple_cc_single_mod=yes
10144         else
10145           cat conftest.err >&5
10146         fi
10147         rm -rf libconftest.dylib*
10148         rm -f conftest.*
10149       fi
10150 fi
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10152 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10153     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10154 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10155 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
10156   $as_echo_n "(cached) " >&6
10157 else
10158   lt_cv_ld_exported_symbols_list=no
10159       save_LDFLAGS=$LDFLAGS
10160       echo "_main" > conftest.sym
10161       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10162       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163 /* end confdefs.h.  */
10164
10165 int
10166 main ()
10167 {
10168
10169   ;
10170   return 0;
10171 }
10172 _ACEOF
10173 if ac_fn_c_try_link "$LINENO"; then :
10174   lt_cv_ld_exported_symbols_list=yes
10175 else
10176   lt_cv_ld_exported_symbols_list=no
10177 fi
10178 rm -f core conftest.err conftest.$ac_objext \
10179     conftest$ac_exeext conftest.$ac_ext
10180         LDFLAGS="$save_LDFLAGS"
10181
10182 fi
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10184 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10185     case $host_os in
10186     rhapsody* | darwin1.[012])
10187       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10188     darwin1.*)
10189       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10190     darwin*) # darwin 5.x on
10191       # if running on 10.5 or later, the deployment target defaults
10192       # to the OS version, if on x86, and 10.4, the deployment
10193       # target defaults to 10.4. Don't you love it?
10194       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10195         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10196           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10197         10.[012]*)
10198           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10199         10.*)
10200           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10201       esac
10202     ;;
10203   esac
10204     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10205       _lt_dar_single_mod='$single_module'
10206     fi
10207     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10208       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10209     else
10210       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10211     fi
10212     if test "$DSYMUTIL" != ":"; then
10213       _lt_dsymutil='~$DSYMUTIL $lib || :'
10214     else
10215       _lt_dsymutil=
10216     fi
10217     ;;
10218   esac
10219
10220 for ac_header in dlfcn.h
10221 do :
10222   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10223 "
10224 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10225   cat >>confdefs.h <<_ACEOF
10226 #define HAVE_DLFCN_H 1
10227 _ACEOF
10228
10229 fi
10230
10231 done
10232
10233
10234
10235 ac_ext=cpp
10236 ac_cpp='$CXXCPP $CPPFLAGS'
10237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10240 if test -z "$CXX"; then
10241   if test -n "$CCC"; then
10242     CXX=$CCC
10243   else
10244     if test -n "$ac_tool_prefix"; then
10245   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10246   do
10247     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10250 $as_echo_n "checking for $ac_word... " >&6; }
10251 if test "${ac_cv_prog_CXX+set}" = set; then :
10252   $as_echo_n "(cached) " >&6
10253 else
10254   if test -n "$CXX"; then
10255   ac_cv_prog_CXX="$CXX" # Let the user override the test.
10256 else
10257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258 for as_dir in $PATH
10259 do
10260   IFS=$as_save_IFS
10261   test -z "$as_dir" && as_dir=.
10262     for ac_exec_ext in '' $ac_executable_extensions; do
10263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10264     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10266     break 2
10267   fi
10268 done
10269   done
10270 IFS=$as_save_IFS
10271
10272 fi
10273 fi
10274 CXX=$ac_cv_prog_CXX
10275 if test -n "$CXX"; then
10276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10277 $as_echo "$CXX" >&6; }
10278 else
10279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280 $as_echo "no" >&6; }
10281 fi
10282
10283
10284     test -n "$CXX" && break
10285   done
10286 fi
10287 if test -z "$CXX"; then
10288   ac_ct_CXX=$CXX
10289   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10290 do
10291   # Extract the first word of "$ac_prog", so it can be a program name with args.
10292 set dummy $ac_prog; ac_word=$2
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10294 $as_echo_n "checking for $ac_word... " >&6; }
10295 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10296   $as_echo_n "(cached) " >&6
10297 else
10298   if test -n "$ac_ct_CXX"; then
10299   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10300 else
10301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10302 for as_dir in $PATH
10303 do
10304   IFS=$as_save_IFS
10305   test -z "$as_dir" && as_dir=.
10306     for ac_exec_ext in '' $ac_executable_extensions; do
10307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10308     ac_cv_prog_ac_ct_CXX="$ac_prog"
10309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10310     break 2
10311   fi
10312 done
10313   done
10314 IFS=$as_save_IFS
10315
10316 fi
10317 fi
10318 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10319 if test -n "$ac_ct_CXX"; then
10320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10321 $as_echo "$ac_ct_CXX" >&6; }
10322 else
10323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10324 $as_echo "no" >&6; }
10325 fi
10326
10327
10328   test -n "$ac_ct_CXX" && break
10329 done
10330
10331   if test "x$ac_ct_CXX" = x; then
10332     CXX="g++"
10333   else
10334     case $cross_compiling:$ac_tool_warned in
10335 yes:)
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10338 ac_tool_warned=yes ;;
10339 esac
10340     CXX=$ac_ct_CXX
10341   fi
10342 fi
10343
10344   fi
10345 fi
10346 # Provide some information about the compiler.
10347 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10348 set X $ac_compile
10349 ac_compiler=$2
10350 for ac_option in --version -v -V -qversion; do
10351   { { ac_try="$ac_compiler $ac_option >&5"
10352 case "(($ac_try" in
10353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354   *) ac_try_echo=$ac_try;;
10355 esac
10356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10357 $as_echo "$ac_try_echo"; } >&5
10358   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10359   ac_status=$?
10360   if test -s conftest.err; then
10361     sed '10a\
10362 ... rest of stderr output deleted ...
10363          10q' conftest.err >conftest.er1
10364     cat conftest.er1 >&5
10365   fi
10366   rm -f conftest.er1 conftest.err
10367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10368   test $ac_status = 0; }
10369 done
10370
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10372 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10373 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10374   $as_echo_n "(cached) " >&6
10375 else
10376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10377 /* end confdefs.h.  */
10378
10379 int
10380 main ()
10381 {
10382 #ifndef __GNUC__
10383        choke me
10384 #endif
10385
10386   ;
10387   return 0;
10388 }
10389 _ACEOF
10390 if ac_fn_cxx_try_compile "$LINENO"; then :
10391   ac_compiler_gnu=yes
10392 else
10393   ac_compiler_gnu=no
10394 fi
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10397
10398 fi
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10400 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10401 if test $ac_compiler_gnu = yes; then
10402   GXX=yes
10403 else
10404   GXX=
10405 fi
10406 ac_test_CXXFLAGS=${CXXFLAGS+set}
10407 ac_save_CXXFLAGS=$CXXFLAGS
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10409 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10410 if test "${ac_cv_prog_cxx_g+set}" = set; then :
10411   $as_echo_n "(cached) " >&6
10412 else
10413   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10414    ac_cxx_werror_flag=yes
10415    ac_cv_prog_cxx_g=no
10416    CXXFLAGS="-g"
10417    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h.  */
10419
10420 int
10421 main ()
10422 {
10423
10424   ;
10425   return 0;
10426 }
10427 _ACEOF
10428 if ac_fn_cxx_try_compile "$LINENO"; then :
10429   ac_cv_prog_cxx_g=yes
10430 else
10431   CXXFLAGS=""
10432       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h.  */
10434
10435 int
10436 main ()
10437 {
10438
10439   ;
10440   return 0;
10441 }
10442 _ACEOF
10443 if ac_fn_cxx_try_compile "$LINENO"; then :
10444
10445 else
10446   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10447          CXXFLAGS="-g"
10448          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h.  */
10450
10451 int
10452 main ()
10453 {
10454
10455   ;
10456   return 0;
10457 }
10458 _ACEOF
10459 if ac_fn_cxx_try_compile "$LINENO"; then :
10460   ac_cv_prog_cxx_g=yes
10461 fi
10462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10463 fi
10464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10465 fi
10466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10467    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10468 fi
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10470 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10471 if test "$ac_test_CXXFLAGS" = set; then
10472   CXXFLAGS=$ac_save_CXXFLAGS
10473 elif test $ac_cv_prog_cxx_g = yes; then
10474   if test "$GXX" = yes; then
10475     CXXFLAGS="-g -O2"
10476   else
10477     CXXFLAGS="-g"
10478   fi
10479 else
10480   if test "$GXX" = yes; then
10481     CXXFLAGS="-O2"
10482   else
10483     CXXFLAGS=
10484   fi
10485 fi
10486 ac_ext=c
10487 ac_cpp='$CPP $CPPFLAGS'
10488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10491
10492 depcc="$CXX"  am_compiler_list=
10493
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10495 $as_echo_n "checking dependency style of $depcc... " >&6; }
10496 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10497   $as_echo_n "(cached) " >&6
10498 else
10499   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10500   # We make a subdir and do the tests there.  Otherwise we can end up
10501   # making bogus files that we don't know about and never remove.  For
10502   # instance it was reported that on HP-UX the gcc test will end up
10503   # making a dummy file named `D' -- because `-MD' means `put the output
10504   # in D'.
10505   mkdir conftest.dir
10506   # Copy depcomp to subdir because otherwise we won't find it if we're
10507   # using a relative directory.
10508   cp "$am_depcomp" conftest.dir
10509   cd conftest.dir
10510   # We will build objects and dependencies in a subdirectory because
10511   # it helps to detect inapplicable dependency modes.  For instance
10512   # both Tru64's cc and ICC support -MD to output dependencies as a
10513   # side effect of compilation, but ICC will put the dependencies in
10514   # the current directory while Tru64 will put them in the object
10515   # directory.
10516   mkdir sub
10517
10518   am_cv_CXX_dependencies_compiler_type=none
10519   if test "$am_compiler_list" = ""; then
10520      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10521   fi
10522   am__universal=false
10523   case " $depcc " in #(
10524      *\ -arch\ *\ -arch\ *) am__universal=true ;;
10525      esac
10526
10527   for depmode in $am_compiler_list; do
10528     # Setup a source with many dependencies, because some compilers
10529     # like to wrap large dependency lists on column 80 (with \), and
10530     # we should not choose a depcomp mode which is confused by this.
10531     #
10532     # We need to recreate these files for each test, as the compiler may
10533     # overwrite some of them when testing with obscure command lines.
10534     # This happens at least with the AIX C compiler.
10535     : > sub/conftest.c
10536     for i in 1 2 3 4 5 6; do
10537       echo '#include "conftst'$i'.h"' >> sub/conftest.c
10538       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10539       # Solaris 8's {/usr,}/bin/sh.
10540       touch sub/conftst$i.h
10541     done
10542     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10543
10544     # We check with `-c' and `-o' for the sake of the "dashmstdout"
10545     # mode.  It turns out that the SunPro C++ compiler does not properly
10546     # handle `-M -o', and we need to detect this.  Also, some Intel
10547     # versions had trouble with output in subdirs
10548     am__obj=sub/conftest.${OBJEXT-o}
10549     am__minus_obj="-o $am__obj"
10550     case $depmode in
10551     gcc)
10552       # This depmode causes a compiler race in universal mode.
10553       test "$am__universal" = false || continue
10554       ;;
10555     nosideeffect)
10556       # after this tag, mechanisms are not by side-effect, so they'll
10557       # only be used when explicitly requested
10558       if test "x$enable_dependency_tracking" = xyes; then
10559         continue
10560       else
10561         break
10562       fi
10563       ;;
10564     msvisualcpp | msvcmsys)
10565       # This compiler won't grok `-c -o', but also, the minuso test has
10566       # not run yet.  These depmodes are late enough in the game, and
10567       # so weak that their functioning should not be impacted.
10568       am__obj=conftest.${OBJEXT-o}
10569       am__minus_obj=
10570       ;;
10571     none) break ;;
10572     esac
10573     if depmode=$depmode \
10574        source=sub/conftest.c object=$am__obj \
10575        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10576        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10577          >/dev/null 2>conftest.err &&
10578        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10579        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10580        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10581        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10582       # icc doesn't choke on unknown options, it will just issue warnings
10583       # or remarks (even with -Werror).  So we grep stderr for any message
10584       # that says an option was ignored or not supported.
10585       # When given -MP, icc 7.0 and 7.1 complain thusly:
10586       #   icc: Command line warning: ignoring option '-M'; no argument required
10587       # The diagnosis changed in icc 8.0:
10588       #   icc: Command line remark: option '-MP' not supported
10589       if (grep 'ignoring option' conftest.err ||
10590           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10591         am_cv_CXX_dependencies_compiler_type=$depmode
10592         break
10593       fi
10594     fi
10595   done
10596
10597   cd ..
10598   rm -rf conftest.dir
10599 else
10600   am_cv_CXX_dependencies_compiler_type=none
10601 fi
10602
10603 fi
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10605 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10606 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10607
10608  if
10609   test "x$enable_dependency_tracking" != xno \
10610   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10611   am__fastdepCXX_TRUE=
10612   am__fastdepCXX_FALSE='#'
10613 else
10614   am__fastdepCXX_TRUE='#'
10615   am__fastdepCXX_FALSE=
10616 fi
10617
10618
10619 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10620     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10621     (test "X$CXX" != "Xg++"))) ; then
10622   ac_ext=cpp
10623 ac_cpp='$CXXCPP $CPPFLAGS'
10624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10628 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10629 if test -z "$CXXCPP"; then
10630   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10631   $as_echo_n "(cached) " >&6
10632 else
10633       # Double quotes because CXXCPP needs to be expanded
10634     for CXXCPP in "$CXX -E" "/lib/cpp"
10635     do
10636       ac_preproc_ok=false
10637 for ac_cxx_preproc_warn_flag in '' yes
10638 do
10639   # Use a header file that comes with gcc, so configuring glibc
10640   # with a fresh cross-compiler works.
10641   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10642   # <limits.h> exists even on freestanding compilers.
10643   # On the NeXT, cc -E runs the code through the compiler's parser,
10644   # not just through cpp. "Syntax error" is here to catch this case.
10645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h.  */
10647 #ifdef __STDC__
10648 # include <limits.h>
10649 #else
10650 # include <assert.h>
10651 #endif
10652                      Syntax error
10653 _ACEOF
10654 if ac_fn_cxx_try_cpp "$LINENO"; then :
10655
10656 else
10657   # Broken: fails on valid input.
10658 continue
10659 fi
10660 rm -f conftest.err conftest.$ac_ext
10661
10662   # OK, works on sane cases.  Now check whether nonexistent headers
10663   # can be detected and how.
10664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665 /* end confdefs.h.  */
10666 #include <ac_nonexistent.h>
10667 _ACEOF
10668 if ac_fn_cxx_try_cpp "$LINENO"; then :
10669   # Broken: success on invalid input.
10670 continue
10671 else
10672   # Passes both tests.
10673 ac_preproc_ok=:
10674 break
10675 fi
10676 rm -f conftest.err conftest.$ac_ext
10677
10678 done
10679 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10680 rm -f conftest.err conftest.$ac_ext
10681 if $ac_preproc_ok; then :
10682   break
10683 fi
10684
10685     done
10686     ac_cv_prog_CXXCPP=$CXXCPP
10687
10688 fi
10689   CXXCPP=$ac_cv_prog_CXXCPP
10690 else
10691   ac_cv_prog_CXXCPP=$CXXCPP
10692 fi
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10694 $as_echo "$CXXCPP" >&6; }
10695 ac_preproc_ok=false
10696 for ac_cxx_preproc_warn_flag in '' yes
10697 do
10698   # Use a header file that comes with gcc, so configuring glibc
10699   # with a fresh cross-compiler works.
10700   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10701   # <limits.h> exists even on freestanding compilers.
10702   # On the NeXT, cc -E runs the code through the compiler's parser,
10703   # not just through cpp. "Syntax error" is here to catch this case.
10704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h.  */
10706 #ifdef __STDC__
10707 # include <limits.h>
10708 #else
10709 # include <assert.h>
10710 #endif
10711                      Syntax error
10712 _ACEOF
10713 if ac_fn_cxx_try_cpp "$LINENO"; then :
10714
10715 else
10716   # Broken: fails on valid input.
10717 continue
10718 fi
10719 rm -f conftest.err conftest.$ac_ext
10720
10721   # OK, works on sane cases.  Now check whether nonexistent headers
10722   # can be detected and how.
10723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h.  */
10725 #include <ac_nonexistent.h>
10726 _ACEOF
10727 if ac_fn_cxx_try_cpp "$LINENO"; then :
10728   # Broken: success on invalid input.
10729 continue
10730 else
10731   # Passes both tests.
10732 ac_preproc_ok=:
10733 break
10734 fi
10735 rm -f conftest.err conftest.$ac_ext
10736
10737 done
10738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10739 rm -f conftest.err conftest.$ac_ext
10740 if $ac_preproc_ok; then :
10741
10742 else
10743   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10745 _lt_caught_CXX_error=yes; }
10746 fi
10747
10748 ac_ext=c
10749 ac_cpp='$CPP $CPPFLAGS'
10750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10753
10754 else
10755   _lt_caught_CXX_error=yes
10756 fi
10757
10758
10759
10760
10761
10762 # Set options
10763 enable_win32_dll=yes
10764
10765 case $host in
10766 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
10767   if test -n "$ac_tool_prefix"; then
10768   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10769 set dummy ${ac_tool_prefix}as; ac_word=$2
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10771 $as_echo_n "checking for $ac_word... " >&6; }
10772 if test "${ac_cv_prog_AS+set}" = set; then :
10773   $as_echo_n "(cached) " >&6
10774 else
10775   if test -n "$AS"; then
10776   ac_cv_prog_AS="$AS" # Let the user override the test.
10777 else
10778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779 for as_dir in $PATH
10780 do
10781   IFS=$as_save_IFS
10782   test -z "$as_dir" && as_dir=.
10783     for ac_exec_ext in '' $ac_executable_extensions; do
10784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10785     ac_cv_prog_AS="${ac_tool_prefix}as"
10786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10787     break 2
10788   fi
10789 done
10790   done
10791 IFS=$as_save_IFS
10792
10793 fi
10794 fi
10795 AS=$ac_cv_prog_AS
10796 if test -n "$AS"; then
10797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10798 $as_echo "$AS" >&6; }
10799 else
10800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801 $as_echo "no" >&6; }
10802 fi
10803
10804
10805 fi
10806 if test -z "$ac_cv_prog_AS"; then
10807   ac_ct_AS=$AS
10808   # Extract the first word of "as", so it can be a program name with args.
10809 set dummy as; ac_word=$2
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10811 $as_echo_n "checking for $ac_word... " >&6; }
10812 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
10813   $as_echo_n "(cached) " >&6
10814 else
10815   if test -n "$ac_ct_AS"; then
10816   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10817 else
10818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10819 for as_dir in $PATH
10820 do
10821   IFS=$as_save_IFS
10822   test -z "$as_dir" && as_dir=.
10823     for ac_exec_ext in '' $ac_executable_extensions; do
10824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10825     ac_cv_prog_ac_ct_AS="as"
10826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10827     break 2
10828   fi
10829 done
10830   done
10831 IFS=$as_save_IFS
10832
10833 fi
10834 fi
10835 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10836 if test -n "$ac_ct_AS"; then
10837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10838 $as_echo "$ac_ct_AS" >&6; }
10839 else
10840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841 $as_echo "no" >&6; }
10842 fi
10843
10844   if test "x$ac_ct_AS" = x; then
10845     AS="false"
10846   else
10847     case $cross_compiling:$ac_tool_warned in
10848 yes:)
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10851 ac_tool_warned=yes ;;
10852 esac
10853     AS=$ac_ct_AS
10854   fi
10855 else
10856   AS="$ac_cv_prog_AS"
10857 fi
10858
10859   if test -n "$ac_tool_prefix"; then
10860   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10861 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10863 $as_echo_n "checking for $ac_word... " >&6; }
10864 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
10865   $as_echo_n "(cached) " >&6
10866 else
10867   if test -n "$DLLTOOL"; then
10868   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10869 else
10870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871 for as_dir in $PATH
10872 do
10873   IFS=$as_save_IFS
10874   test -z "$as_dir" && as_dir=.
10875     for ac_exec_ext in '' $ac_executable_extensions; do
10876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10877     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10879     break 2
10880   fi
10881 done
10882   done
10883 IFS=$as_save_IFS
10884
10885 fi
10886 fi
10887 DLLTOOL=$ac_cv_prog_DLLTOOL
10888 if test -n "$DLLTOOL"; then
10889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10890 $as_echo "$DLLTOOL" >&6; }
10891 else
10892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10893 $as_echo "no" >&6; }
10894 fi
10895
10896
10897 fi
10898 if test -z "$ac_cv_prog_DLLTOOL"; then
10899   ac_ct_DLLTOOL=$DLLTOOL
10900   # Extract the first word of "dlltool", so it can be a program name with args.
10901 set dummy dlltool; ac_word=$2
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10903 $as_echo_n "checking for $ac_word... " >&6; }
10904 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
10905   $as_echo_n "(cached) " >&6
10906 else
10907   if test -n "$ac_ct_DLLTOOL"; then
10908   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10909 else
10910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911 for as_dir in $PATH
10912 do
10913   IFS=$as_save_IFS
10914   test -z "$as_dir" && as_dir=.
10915     for ac_exec_ext in '' $ac_executable_extensions; do
10916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10917     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10919     break 2
10920   fi
10921 done
10922   done
10923 IFS=$as_save_IFS
10924
10925 fi
10926 fi
10927 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10928 if test -n "$ac_ct_DLLTOOL"; then
10929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10930 $as_echo "$ac_ct_DLLTOOL" >&6; }
10931 else
10932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10933 $as_echo "no" >&6; }
10934 fi
10935
10936   if test "x$ac_ct_DLLTOOL" = x; then
10937     DLLTOOL="false"
10938   else
10939     case $cross_compiling:$ac_tool_warned in
10940 yes:)
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10943 ac_tool_warned=yes ;;
10944 esac
10945     DLLTOOL=$ac_ct_DLLTOOL
10946   fi
10947 else
10948   DLLTOOL="$ac_cv_prog_DLLTOOL"
10949 fi
10950
10951   if test -n "$ac_tool_prefix"; then
10952   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10953 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10955 $as_echo_n "checking for $ac_word... " >&6; }
10956 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10957   $as_echo_n "(cached) " >&6
10958 else
10959   if test -n "$OBJDUMP"; then
10960   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10961 else
10962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10963 for as_dir in $PATH
10964 do
10965   IFS=$as_save_IFS
10966   test -z "$as_dir" && as_dir=.
10967     for ac_exec_ext in '' $ac_executable_extensions; do
10968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10969     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10971     break 2
10972   fi
10973 done
10974   done
10975 IFS=$as_save_IFS
10976
10977 fi
10978 fi
10979 OBJDUMP=$ac_cv_prog_OBJDUMP
10980 if test -n "$OBJDUMP"; then
10981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10982 $as_echo "$OBJDUMP" >&6; }
10983 else
10984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10985 $as_echo "no" >&6; }
10986 fi
10987
10988
10989 fi
10990 if test -z "$ac_cv_prog_OBJDUMP"; then
10991   ac_ct_OBJDUMP=$OBJDUMP
10992   # Extract the first word of "objdump", so it can be a program name with args.
10993 set dummy objdump; ac_word=$2
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10995 $as_echo_n "checking for $ac_word... " >&6; }
10996 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
10997   $as_echo_n "(cached) " >&6
10998 else
10999   if test -n "$ac_ct_OBJDUMP"; then
11000   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11001 else
11002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003 for as_dir in $PATH
11004 do
11005   IFS=$as_save_IFS
11006   test -z "$as_dir" && as_dir=.
11007     for ac_exec_ext in '' $ac_executable_extensions; do
11008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11009     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11011     break 2
11012   fi
11013 done
11014   done
11015 IFS=$as_save_IFS
11016
11017 fi
11018 fi
11019 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11020 if test -n "$ac_ct_OBJDUMP"; then
11021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11022 $as_echo "$ac_ct_OBJDUMP" >&6; }
11023 else
11024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025 $as_echo "no" >&6; }
11026 fi
11027
11028   if test "x$ac_ct_OBJDUMP" = x; then
11029     OBJDUMP="false"
11030   else
11031     case $cross_compiling:$ac_tool_warned in
11032 yes:)
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11035 ac_tool_warned=yes ;;
11036 esac
11037     OBJDUMP=$ac_ct_OBJDUMP
11038   fi
11039 else
11040   OBJDUMP="$ac_cv_prog_OBJDUMP"
11041 fi
11042
11043   ;;
11044 esac
11045
11046 test -z "$AS" && AS=as
11047
11048
11049
11050
11051
11052 test -z "$DLLTOOL" && DLLTOOL=dlltool
11053
11054
11055
11056
11057
11058 test -z "$OBJDUMP" && OBJDUMP=objdump
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068             # Check whether --enable-shared was given.
11069 if test "${enable_shared+set}" = set; then :
11070   enableval=$enable_shared; p=${PACKAGE-default}
11071     case $enableval in
11072     yes) enable_shared=yes ;;
11073     no) enable_shared=no ;;
11074     *)
11075       enable_shared=no
11076       # Look at the argument we got.  We use all the common list separators.
11077       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11078       for pkg in $enableval; do
11079         IFS="$lt_save_ifs"
11080         if test "X$pkg" = "X$p"; then
11081           enable_shared=yes
11082         fi
11083       done
11084       IFS="$lt_save_ifs"
11085       ;;
11086     esac
11087 else
11088   enable_shared=yes
11089 fi
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099   # Check whether --enable-static was given.
11100 if test "${enable_static+set}" = set; then :
11101   enableval=$enable_static; p=${PACKAGE-default}
11102     case $enableval in
11103     yes) enable_static=yes ;;
11104     no) enable_static=no ;;
11105     *)
11106      enable_static=no
11107       # Look at the argument we got.  We use all the common list separators.
11108       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11109       for pkg in $enableval; do
11110         IFS="$lt_save_ifs"
11111         if test "X$pkg" = "X$p"; then
11112           enable_static=yes
11113         fi
11114       done
11115       IFS="$lt_save_ifs"
11116       ;;
11117     esac
11118 else
11119   enable_static=yes
11120 fi
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131 # Check whether --with-pic was given.
11132 if test "${with_pic+set}" = set; then :
11133   withval=$with_pic; pic_mode="$withval"
11134 else
11135   pic_mode=default
11136 fi
11137
11138
11139 test -z "$pic_mode" && pic_mode=default
11140
11141
11142
11143
11144
11145
11146
11147   # Check whether --enable-fast-install was given.
11148 if test "${enable_fast_install+set}" = set; then :
11149   enableval=$enable_fast_install; p=${PACKAGE-default}
11150     case $enableval in
11151     yes) enable_fast_install=yes ;;
11152     no) enable_fast_install=no ;;
11153     *)
11154       enable_fast_install=no
11155       # Look at the argument we got.  We use all the common list separators.
11156       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11157       for pkg in $enableval; do
11158         IFS="$lt_save_ifs"
11159         if test "X$pkg" = "X$p"; then
11160           enable_fast_install=yes
11161         fi
11162       done
11163       IFS="$lt_save_ifs"
11164       ;;
11165     esac
11166 else
11167   enable_fast_install=yes
11168 fi
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180 # This can be used to rebuild libtool when needed
11181 LIBTOOL_DEPS="$ltmain"
11182
11183 # Always use our own libtool.
11184 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210 test -z "$LN_S" && LN_S="ln -s"
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225 if test -n "${ZSH_VERSION+set}" ; then
11226    setopt NO_GLOB_SUBST
11227 fi
11228
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11230 $as_echo_n "checking for objdir... " >&6; }
11231 if test "${lt_cv_objdir+set}" = set; then :
11232   $as_echo_n "(cached) " >&6
11233 else
11234   rm -f .libs 2>/dev/null
11235 mkdir .libs 2>/dev/null
11236 if test -d .libs; then
11237   lt_cv_objdir=.libs
11238 else
11239   # MS-DOS does not allow filenames that begin with a dot.
11240   lt_cv_objdir=_libs
11241 fi
11242 rmdir .libs 2>/dev/null
11243 fi
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11245 $as_echo "$lt_cv_objdir" >&6; }
11246 objdir=$lt_cv_objdir
11247
11248
11249
11250
11251
11252 cat >>confdefs.h <<_ACEOF
11253 #define LT_OBJDIR "$lt_cv_objdir/"
11254 _ACEOF
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272 case $host_os in
11273 aix3*)
11274   # AIX sometimes has problems with the GCC collect2 program.  For some
11275   # reason, if we set the COLLECT_NAMES environment variable, the problems
11276   # vanish in a puff of smoke.
11277   if test "X${COLLECT_NAMES+set}" != Xset; then
11278     COLLECT_NAMES=
11279     export COLLECT_NAMES
11280   fi
11281   ;;
11282 esac
11283
11284 # Sed substitution that helps us do robust quoting.  It backslashifies
11285 # metacharacters that are still active within double-quoted strings.
11286 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11287
11288 # Same as above, but do not quote variable references.
11289 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11290
11291 # Sed substitution to delay expansion of an escaped shell variable in a
11292 # double_quote_subst'ed string.
11293 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11294
11295 # Sed substitution to delay expansion of an escaped single quote.
11296 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11297
11298 # Sed substitution to avoid accidental globbing in evaled expressions
11299 no_glob_subst='s/\*/\\\*/g'
11300
11301 # Global variables:
11302 ofile=libtool
11303 can_build_shared=yes
11304
11305 # All known linkers require a `.a' archive for static linking (except MSVC,
11306 # which needs '.lib').
11307 libext=a
11308
11309 with_gnu_ld="$lt_cv_prog_gnu_ld"
11310
11311 old_CC="$CC"
11312 old_CFLAGS="$CFLAGS"
11313
11314 # Set sane defaults for various variables
11315 test -z "$CC" && CC=cc
11316 test -z "$LTCC" && LTCC=$CC
11317 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11318 test -z "$LD" && LD=ld
11319 test -z "$ac_objext" && ac_objext=o
11320
11321 for cc_temp in $compiler""; do
11322   case $cc_temp in
11323     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11324     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11325     \-*) ;;
11326     *) break;;
11327   esac
11328 done
11329 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11330
11331
11332 # Only perform the check for file, if the check method requires it
11333 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11334 case $deplibs_check_method in
11335 file_magic*)
11336   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11338 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11339 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11340   $as_echo_n "(cached) " >&6
11341 else
11342   case $MAGIC_CMD in
11343 [\\/*] |  ?:[\\/]*)
11344   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11345   ;;
11346 *)
11347   lt_save_MAGIC_CMD="$MAGIC_CMD"
11348   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11349   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11350   for ac_dir in $ac_dummy; do
11351     IFS="$lt_save_ifs"
11352     test -z "$ac_dir" && ac_dir=.
11353     if test -f $ac_dir/${ac_tool_prefix}file; then
11354       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11355       if test -n "$file_magic_test_file"; then
11356         case $deplibs_check_method in
11357         "file_magic "*)
11358           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11359           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11360           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11361             $EGREP "$file_magic_regex" > /dev/null; then
11362             :
11363           else
11364             cat <<_LT_EOF 1>&2
11365
11366 *** Warning: the command libtool uses to detect shared libraries,
11367 *** $file_magic_cmd, produces output that libtool cannot recognize.
11368 *** The result is that libtool may fail to recognize shared libraries
11369 *** as such.  This will affect the creation of libtool libraries that
11370 *** depend on shared libraries, but programs linked with such libtool
11371 *** libraries will work regardless of this problem.  Nevertheless, you
11372 *** may want to report the problem to your system manager and/or to
11373 *** bug-libtool@gnu.org
11374
11375 _LT_EOF
11376           fi ;;
11377         esac
11378       fi
11379       break
11380     fi
11381   done
11382   IFS="$lt_save_ifs"
11383   MAGIC_CMD="$lt_save_MAGIC_CMD"
11384   ;;
11385 esac
11386 fi
11387
11388 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11389 if test -n "$MAGIC_CMD"; then
11390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11391 $as_echo "$MAGIC_CMD" >&6; }
11392 else
11393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11394 $as_echo "no" >&6; }
11395 fi
11396
11397
11398
11399
11400
11401 if test -z "$lt_cv_path_MAGIC_CMD"; then
11402   if test -n "$ac_tool_prefix"; then
11403     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11404 $as_echo_n "checking for file... " >&6; }
11405 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11406   $as_echo_n "(cached) " >&6
11407 else
11408   case $MAGIC_CMD in
11409 [\\/*] |  ?:[\\/]*)
11410   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11411   ;;
11412 *)
11413   lt_save_MAGIC_CMD="$MAGIC_CMD"
11414   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11415   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11416   for ac_dir in $ac_dummy; do
11417     IFS="$lt_save_ifs"
11418     test -z "$ac_dir" && ac_dir=.
11419     if test -f $ac_dir/file; then
11420       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11421       if test -n "$file_magic_test_file"; then
11422         case $deplibs_check_method in
11423         "file_magic "*)
11424           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11425           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11426           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11427             $EGREP "$file_magic_regex" > /dev/null; then
11428             :
11429           else
11430             cat <<_LT_EOF 1>&2
11431
11432 *** Warning: the command libtool uses to detect shared libraries,
11433 *** $file_magic_cmd, produces output that libtool cannot recognize.
11434 *** The result is that libtool may fail to recognize shared libraries
11435 *** as such.  This will affect the creation of libtool libraries that
11436 *** depend on shared libraries, but programs linked with such libtool
11437 *** libraries will work regardless of this problem.  Nevertheless, you
11438 *** may want to report the problem to your system manager and/or to
11439 *** bug-libtool@gnu.org
11440
11441 _LT_EOF
11442           fi ;;
11443         esac
11444       fi
11445       break
11446     fi
11447   done
11448   IFS="$lt_save_ifs"
11449   MAGIC_CMD="$lt_save_MAGIC_CMD"
11450   ;;
11451 esac
11452 fi
11453
11454 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11455 if test -n "$MAGIC_CMD"; then
11456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11457 $as_echo "$MAGIC_CMD" >&6; }
11458 else
11459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460 $as_echo "no" >&6; }
11461 fi
11462
11463
11464   else
11465     MAGIC_CMD=:
11466   fi
11467 fi
11468
11469   fi
11470   ;;
11471 esac
11472
11473 # Use C for the default configuration in the libtool script
11474
11475 lt_save_CC="$CC"
11476 ac_ext=c
11477 ac_cpp='$CPP $CPPFLAGS'
11478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11481
11482
11483 # Source file extension for C test sources.
11484 ac_ext=c
11485
11486 # Object file extension for compiled C test sources.
11487 objext=o
11488 objext=$objext
11489
11490 # Code to be used in simple compile tests
11491 lt_simple_compile_test_code="int some_variable = 0;"
11492
11493 # Code to be used in simple link tests
11494 lt_simple_link_test_code='int main(){return(0);}'
11495
11496
11497
11498
11499
11500
11501
11502 # If no C compiler was specified, use CC.
11503 LTCC=${LTCC-"$CC"}
11504
11505 # If no C compiler flags were specified, use CFLAGS.
11506 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11507
11508 # Allow CC to be a program name with arguments.
11509 compiler=$CC
11510
11511 # Save the default compiler, since it gets overwritten when the other
11512 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11513 compiler_DEFAULT=$CC
11514
11515 # save warnings/boilerplate of simple test code
11516 ac_outfile=conftest.$ac_objext
11517 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11518 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11519 _lt_compiler_boilerplate=`cat conftest.err`
11520 $RM conftest*
11521
11522 ac_outfile=conftest.$ac_objext
11523 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11524 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11525 _lt_linker_boilerplate=`cat conftest.err`
11526 $RM -r conftest*
11527
11528
11529 ## CAVEAT EMPTOR:
11530 ## There is no encapsulation within the following macros, do not change
11531 ## the running order or otherwise move them around unless you know exactly
11532 ## what you are doing...
11533 if test -n "$compiler"; then
11534
11535 lt_prog_compiler_no_builtin_flag=
11536
11537 if test "$GCC" = yes; then
11538   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11539
11540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11541 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11542 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11543   $as_echo_n "(cached) " >&6
11544 else
11545   lt_cv_prog_compiler_rtti_exceptions=no
11546    ac_outfile=conftest.$ac_objext
11547    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11548    lt_compiler_flag="-fno-rtti -fno-exceptions"
11549    # Insert the option either (1) after the last *FLAGS variable, or
11550    # (2) before a word containing "conftest.", or (3) at the end.
11551    # Note that $ac_compile itself does not contain backslashes and begins
11552    # with a dollar sign (not a hyphen), so the echo should work correctly.
11553    # The option is referenced via a variable to avoid confusing sed.
11554    lt_compile=`echo "$ac_compile" | $SED \
11555    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11556    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11557    -e 's:$: $lt_compiler_flag:'`
11558    (eval echo "\"\$as_me:11558: $lt_compile\"" >&5)
11559    (eval "$lt_compile" 2>conftest.err)
11560    ac_status=$?
11561    cat conftest.err >&5
11562    echo "$as_me:11562: \$? = $ac_status" >&5
11563    if (exit $ac_status) && test -s "$ac_outfile"; then
11564      # The compiler can only warn and ignore the option if not recognized
11565      # So say no if there are warnings other than the usual output.
11566      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11567      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11568      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11569        lt_cv_prog_compiler_rtti_exceptions=yes
11570      fi
11571    fi
11572    $RM conftest*
11573
11574 fi
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11576 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11577
11578 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11579     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11580 else
11581     :
11582 fi
11583
11584 fi
11585
11586
11587
11588
11589
11590
11591   lt_prog_compiler_wl=
11592 lt_prog_compiler_pic=
11593 lt_prog_compiler_static=
11594
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11596 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11597
11598   if test "$GCC" = yes; then
11599     lt_prog_compiler_wl='-Wl,'
11600     lt_prog_compiler_static='-static'
11601
11602     case $host_os in
11603       aix*)
11604       # All AIX code is PIC.
11605       if test "$host_cpu" = ia64; then
11606         # AIX 5 now supports IA64 processor
11607         lt_prog_compiler_static='-Bstatic'
11608       fi
11609       ;;
11610
11611     amigaos*)
11612       case $host_cpu in
11613       powerpc)
11614             # see comment about AmigaOS4 .so support
11615             lt_prog_compiler_pic='-fPIC'
11616         ;;
11617       m68k)
11618             # FIXME: we need at least 68020 code to build shared libraries, but
11619             # adding the `-m68020' flag to GCC prevents building anything better,
11620             # like `-m68040'.
11621             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11622         ;;
11623       esac
11624       ;;
11625
11626     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11627       # PIC is the default for these OSes.
11628       ;;
11629
11630     mingw* | cygwin* | pw32* | os2* | cegcc*)
11631       # This hack is so that the source file can tell whether it is being
11632       # built for inclusion in a dll (and should export symbols for example).
11633       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11634       # (--disable-auto-import) libraries
11635       lt_prog_compiler_pic='-DDLL_EXPORT'
11636       ;;
11637
11638     darwin* | rhapsody*)
11639       # PIC is the default on this platform
11640       # Common symbols not allowed in MH_DYLIB files
11641       lt_prog_compiler_pic='-fno-common'
11642       ;;
11643
11644     hpux*)
11645       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11646       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11647       # sets the default TLS model and affects inlining.
11648       case $host_cpu in
11649       hppa*64*)
11650         # +Z the default
11651         ;;
11652       *)
11653         lt_prog_compiler_pic='-fPIC'
11654         ;;
11655       esac
11656       ;;
11657
11658     interix[3-9]*)
11659       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11660       # Instead, we relocate shared libraries at runtime.
11661       ;;
11662
11663     msdosdjgpp*)
11664       # Just because we use GCC doesn't mean we suddenly get shared libraries
11665       # on systems that don't support them.
11666       lt_prog_compiler_can_build_shared=no
11667       enable_shared=no
11668       ;;
11669
11670     *nto* | *qnx*)
11671       # QNX uses GNU C++, but need to define -shared option too, otherwise
11672       # it will coredump.
11673       lt_prog_compiler_pic='-fPIC -shared'
11674       ;;
11675
11676     sysv4*MP*)
11677       if test -d /usr/nec; then
11678         lt_prog_compiler_pic=-Kconform_pic
11679       fi
11680       ;;
11681
11682     *)
11683       lt_prog_compiler_pic='-fPIC'
11684       ;;
11685     esac
11686   else
11687     # PORTME Check for flag to pass linker flags through the system compiler.
11688     case $host_os in
11689     aix*)
11690       lt_prog_compiler_wl='-Wl,'
11691       if test "$host_cpu" = ia64; then
11692         # AIX 5 now supports IA64 processor
11693         lt_prog_compiler_static='-Bstatic'
11694       else
11695         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11696       fi
11697       ;;
11698
11699     mingw* | cygwin* | pw32* | os2* | cegcc*)
11700       # This hack is so that the source file can tell whether it is being
11701       # built for inclusion in a dll (and should export symbols for example).
11702       lt_prog_compiler_pic='-DDLL_EXPORT'
11703       ;;
11704
11705     hpux9* | hpux10* | hpux11*)
11706       lt_prog_compiler_wl='-Wl,'
11707       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11708       # not for PA HP-UX.
11709       case $host_cpu in
11710       hppa*64*|ia64*)
11711         # +Z the default
11712         ;;
11713       *)
11714         lt_prog_compiler_pic='+Z'
11715         ;;
11716       esac
11717       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11718       lt_prog_compiler_static='${wl}-a ${wl}archive'
11719       ;;
11720
11721     irix5* | irix6* | nonstopux*)
11722       lt_prog_compiler_wl='-Wl,'
11723       # PIC (with -KPIC) is the default.
11724       lt_prog_compiler_static='-non_shared'
11725       ;;
11726
11727     linux* | k*bsd*-gnu)
11728       case $cc_basename in
11729       # old Intel for x86_64 which still supported -KPIC.
11730       ecc*)
11731         lt_prog_compiler_wl='-Wl,'
11732         lt_prog_compiler_pic='-KPIC'
11733         lt_prog_compiler_static='-static'
11734         ;;
11735       # icc used to be incompatible with GCC.
11736       # ICC 10 doesn't accept -KPIC any more.
11737       icc* | ifort*)
11738         lt_prog_compiler_wl='-Wl,'
11739         lt_prog_compiler_pic='-fPIC'
11740         lt_prog_compiler_static='-static'
11741         ;;
11742       # Lahey Fortran 8.1.
11743       lf95*)
11744         lt_prog_compiler_wl='-Wl,'
11745         lt_prog_compiler_pic='--shared'
11746         lt_prog_compiler_static='--static'
11747         ;;
11748       pgcc* | pgf77* | pgf90* | pgf95*)
11749         # Portland Group compilers (*not* the Pentium gcc compiler,
11750         # which looks to be a dead project)
11751         lt_prog_compiler_wl='-Wl,'
11752         lt_prog_compiler_pic='-fpic'
11753         lt_prog_compiler_static='-Bstatic'
11754         ;;
11755       ccc*)
11756         lt_prog_compiler_wl='-Wl,'
11757         # All Alpha code is PIC.
11758         lt_prog_compiler_static='-non_shared'
11759         ;;
11760       xl*)
11761         # IBM XL C 8.0/Fortran 10.1 on PPC
11762         lt_prog_compiler_wl='-Wl,'
11763         lt_prog_compiler_pic='-qpic'
11764         lt_prog_compiler_static='-qstaticlink'
11765         ;;
11766       *)
11767         case `$CC -V 2>&1 | sed 5q` in
11768         *Sun\ C*)
11769           # Sun C 5.9
11770           lt_prog_compiler_pic='-KPIC'
11771           lt_prog_compiler_static='-Bstatic'
11772           lt_prog_compiler_wl='-Wl,'
11773           ;;
11774         *Sun\ F*)
11775           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11776           lt_prog_compiler_pic='-KPIC'
11777           lt_prog_compiler_static='-Bstatic'
11778           lt_prog_compiler_wl=''
11779           ;;
11780         esac
11781         ;;
11782       esac
11783       ;;
11784
11785     newsos6)
11786       lt_prog_compiler_pic='-KPIC'
11787       lt_prog_compiler_static='-Bstatic'
11788       ;;
11789
11790     *nto* | *qnx*)
11791       # QNX uses GNU C++, but need to define -shared option too, otherwise
11792       # it will coredump.
11793       lt_prog_compiler_pic='-fPIC -shared'
11794       ;;
11795
11796     osf3* | osf4* | osf5*)
11797       lt_prog_compiler_wl='-Wl,'
11798       # All OSF/1 code is PIC.
11799       lt_prog_compiler_static='-non_shared'
11800       ;;
11801
11802     rdos*)
11803       lt_prog_compiler_static='-non_shared'
11804       ;;
11805
11806     solaris*)
11807       lt_prog_compiler_pic='-KPIC'
11808       lt_prog_compiler_static='-Bstatic'
11809       case $cc_basename in
11810       f77* | f90* | f95*)
11811         lt_prog_compiler_wl='-Qoption ld ';;
11812       *)
11813         lt_prog_compiler_wl='-Wl,';;
11814       esac
11815       ;;
11816
11817     sunos4*)
11818       lt_prog_compiler_wl='-Qoption ld '
11819       lt_prog_compiler_pic='-PIC'
11820       lt_prog_compiler_static='-Bstatic'
11821       ;;
11822
11823     sysv4 | sysv4.2uw2* | sysv4.3*)
11824       lt_prog_compiler_wl='-Wl,'
11825       lt_prog_compiler_pic='-KPIC'
11826       lt_prog_compiler_static='-Bstatic'
11827       ;;
11828
11829     sysv4*MP*)
11830       if test -d /usr/nec ;then
11831         lt_prog_compiler_pic='-Kconform_pic'
11832         lt_prog_compiler_static='-Bstatic'
11833       fi
11834       ;;
11835
11836     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11837       lt_prog_compiler_wl='-Wl,'
11838       lt_prog_compiler_pic='-KPIC'
11839       lt_prog_compiler_static='-Bstatic'
11840       ;;
11841
11842     unicos*)
11843       lt_prog_compiler_wl='-Wl,'
11844       lt_prog_compiler_can_build_shared=no
11845       ;;
11846
11847     uts4*)
11848       lt_prog_compiler_pic='-pic'
11849       lt_prog_compiler_static='-Bstatic'
11850       ;;
11851
11852     *)
11853       lt_prog_compiler_can_build_shared=no
11854       ;;
11855     esac
11856   fi
11857
11858 case $host_os in
11859   # For platforms which do not support PIC, -DPIC is meaningless:
11860   *djgpp*)
11861     lt_prog_compiler_pic=
11862     ;;
11863   *)
11864     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11865     ;;
11866 esac
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
11868 $as_echo "$lt_prog_compiler_pic" >&6; }
11869
11870
11871
11872
11873
11874
11875 #
11876 # Check to make sure the PIC flag actually works.
11877 #
11878 if test -n "$lt_prog_compiler_pic"; then
11879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11880 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11881 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
11882   $as_echo_n "(cached) " >&6
11883 else
11884   lt_cv_prog_compiler_pic_works=no
11885    ac_outfile=conftest.$ac_objext
11886    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11887    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11888    # Insert the option either (1) after the last *FLAGS variable, or
11889    # (2) before a word containing "conftest.", or (3) at the end.
11890    # Note that $ac_compile itself does not contain backslashes and begins
11891    # with a dollar sign (not a hyphen), so the echo should work correctly.
11892    # The option is referenced via a variable to avoid confusing sed.
11893    lt_compile=`echo "$ac_compile" | $SED \
11894    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11895    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11896    -e 's:$: $lt_compiler_flag:'`
11897    (eval echo "\"\$as_me:11897: $lt_compile\"" >&5)
11898    (eval "$lt_compile" 2>conftest.err)
11899    ac_status=$?
11900    cat conftest.err >&5
11901    echo "$as_me:11901: \$? = $ac_status" >&5
11902    if (exit $ac_status) && test -s "$ac_outfile"; then
11903      # The compiler can only warn and ignore the option if not recognized
11904      # So say no if there are warnings other than the usual output.
11905      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11906      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11907      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11908        lt_cv_prog_compiler_pic_works=yes
11909      fi
11910    fi
11911    $RM conftest*
11912
11913 fi
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11915 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11916
11917 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11918     case $lt_prog_compiler_pic in
11919      "" | " "*) ;;
11920      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11921      esac
11922 else
11923     lt_prog_compiler_pic=
11924      lt_prog_compiler_can_build_shared=no
11925 fi
11926
11927 fi
11928
11929
11930
11931
11932
11933
11934 #
11935 # Check to make sure the static flag actually works.
11936 #
11937 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11939 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11940 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
11941   $as_echo_n "(cached) " >&6
11942 else
11943   lt_cv_prog_compiler_static_works=no
11944    save_LDFLAGS="$LDFLAGS"
11945    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11946    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11947    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11948      # The linker can only warn and ignore the option if not recognized
11949      # So say no if there are warnings
11950      if test -s conftest.err; then
11951        # Append any errors to the config.log.
11952        cat conftest.err 1>&5
11953        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11954        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11955        if diff conftest.exp conftest.er2 >/dev/null; then
11956          lt_cv_prog_compiler_static_works=yes
11957        fi
11958      else
11959        lt_cv_prog_compiler_static_works=yes
11960      fi
11961    fi
11962    $RM -r conftest*
11963    LDFLAGS="$save_LDFLAGS"
11964
11965 fi
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11967 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11968
11969 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11970     :
11971 else
11972     lt_prog_compiler_static=
11973 fi
11974
11975
11976
11977
11978
11979
11980
11981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11982 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11983 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11984   $as_echo_n "(cached) " >&6
11985 else
11986   lt_cv_prog_compiler_c_o=no
11987    $RM -r conftest 2>/dev/null
11988    mkdir conftest
11989    cd conftest
11990    mkdir out
11991    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11992
11993    lt_compiler_flag="-o out/conftest2.$ac_objext"
11994    # Insert the option either (1) after the last *FLAGS variable, or
11995    # (2) before a word containing "conftest.", or (3) at the end.
11996    # Note that $ac_compile itself does not contain backslashes and begins
11997    # with a dollar sign (not a hyphen), so the echo should work correctly.
11998    lt_compile=`echo "$ac_compile" | $SED \
11999    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12000    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12001    -e 's:$: $lt_compiler_flag:'`
12002    (eval echo "\"\$as_me:12002: $lt_compile\"" >&5)
12003    (eval "$lt_compile" 2>out/conftest.err)
12004    ac_status=$?
12005    cat out/conftest.err >&5
12006    echo "$as_me:12006: \$? = $ac_status" >&5
12007    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12008    then
12009      # The compiler can only warn and ignore the option if not recognized
12010      # So say no if there are warnings
12011      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12012      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12013      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12014        lt_cv_prog_compiler_c_o=yes
12015      fi
12016    fi
12017    chmod u+w . 2>&5
12018    $RM conftest*
12019    # SGI C++ compiler will create directory out/ii_files/ for
12020    # template instantiation
12021    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12022    $RM out/* && rmdir out
12023    cd ..
12024    $RM -r conftest
12025    $RM conftest*
12026
12027 fi
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12029 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12030
12031
12032
12033
12034
12035
12036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12037 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12038 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12039   $as_echo_n "(cached) " >&6
12040 else
12041   lt_cv_prog_compiler_c_o=no
12042    $RM -r conftest 2>/dev/null
12043    mkdir conftest
12044    cd conftest
12045    mkdir out
12046    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12047
12048    lt_compiler_flag="-o out/conftest2.$ac_objext"
12049    # Insert the option either (1) after the last *FLAGS variable, or
12050    # (2) before a word containing "conftest.", or (3) at the end.
12051    # Note that $ac_compile itself does not contain backslashes and begins
12052    # with a dollar sign (not a hyphen), so the echo should work correctly.
12053    lt_compile=`echo "$ac_compile" | $SED \
12054    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12055    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12056    -e 's:$: $lt_compiler_flag:'`
12057    (eval echo "\"\$as_me:12057: $lt_compile\"" >&5)
12058    (eval "$lt_compile" 2>out/conftest.err)
12059    ac_status=$?
12060    cat out/conftest.err >&5
12061    echo "$as_me:12061: \$? = $ac_status" >&5
12062    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12063    then
12064      # The compiler can only warn and ignore the option if not recognized
12065      # So say no if there are warnings
12066      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12067      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12068      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12069        lt_cv_prog_compiler_c_o=yes
12070      fi
12071    fi
12072    chmod u+w . 2>&5
12073    $RM conftest*
12074    # SGI C++ compiler will create directory out/ii_files/ for
12075    # template instantiation
12076    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12077    $RM out/* && rmdir out
12078    cd ..
12079    $RM -r conftest
12080    $RM conftest*
12081
12082 fi
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12084 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12085
12086
12087
12088
12089 hard_links="nottested"
12090 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12091   # do not overwrite the value of need_locks provided by the user
12092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12093 $as_echo_n "checking if we can lock with hard links... " >&6; }
12094   hard_links=yes
12095   $RM conftest*
12096   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12097   touch conftest.a
12098   ln conftest.a conftest.b 2>&5 || hard_links=no
12099   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12101 $as_echo "$hard_links" >&6; }
12102   if test "$hard_links" = no; then
12103     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12104 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12105     need_locks=warn
12106   fi
12107 else
12108   need_locks=no
12109 fi
12110
12111
12112
12113
12114
12115
12116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12117 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12118
12119   runpath_var=
12120   allow_undefined_flag=
12121   always_export_symbols=no
12122   archive_cmds=
12123   archive_expsym_cmds=
12124   compiler_needs_object=no
12125   enable_shared_with_static_runtimes=no
12126   export_dynamic_flag_spec=
12127   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12128   hardcode_automatic=no
12129   hardcode_direct=no
12130   hardcode_direct_absolute=no
12131   hardcode_libdir_flag_spec=
12132   hardcode_libdir_flag_spec_ld=
12133   hardcode_libdir_separator=
12134   hardcode_minus_L=no
12135   hardcode_shlibpath_var=unsupported
12136   inherit_rpath=no
12137   link_all_deplibs=unknown
12138   module_cmds=
12139   module_expsym_cmds=
12140   old_archive_from_new_cmds=
12141   old_archive_from_expsyms_cmds=
12142   thread_safe_flag_spec=
12143   whole_archive_flag_spec=
12144   # include_expsyms should be a list of space-separated symbols to be *always*
12145   # included in the symbol list
12146   include_expsyms=
12147   # exclude_expsyms can be an extended regexp of symbols to exclude
12148   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12149   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12150   # as well as any symbol that contains `d'.
12151   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12152   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12153   # platforms (ab)use it in PIC code, but their linkers get confused if
12154   # the symbol is explicitly referenced.  Since portable code cannot
12155   # rely on this symbol name, it's probably fine to never include it in
12156   # preloaded symbol tables.
12157   # Exclude shared library initialization/finalization symbols.
12158   extract_expsyms_cmds=
12159
12160   case $host_os in
12161   cygwin* | mingw* | pw32* | cegcc*)
12162     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12163     # When not using gcc, we currently assume that we are using
12164     # Microsoft Visual C++.
12165     if test "$GCC" != yes; then
12166       with_gnu_ld=no
12167     fi
12168     ;;
12169   interix*)
12170     # we just hope/assume this is gcc and not c89 (= MSVC++)
12171     with_gnu_ld=yes
12172     ;;
12173   openbsd*)
12174     with_gnu_ld=no
12175     ;;
12176   esac
12177
12178   ld_shlibs=yes
12179   if test "$with_gnu_ld" = yes; then
12180     # If archive_cmds runs LD, not CC, wlarc should be empty
12181     wlarc='${wl}'
12182
12183     # Set some defaults for GNU ld with shared library support. These
12184     # are reset later if shared libraries are not supported. Putting them
12185     # here allows them to be overridden if necessary.
12186     runpath_var=LD_RUN_PATH
12187     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12188     export_dynamic_flag_spec='${wl}--export-dynamic'
12189     # ancient GNU ld didn't support --whole-archive et. al.
12190     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12191       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12192     else
12193       whole_archive_flag_spec=
12194     fi
12195     supports_anon_versioning=no
12196     case `$LD -v 2>&1` in
12197       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12198       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12199       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12200       *\ 2.11.*) ;; # other 2.11 versions
12201       *) supports_anon_versioning=yes ;;
12202     esac
12203
12204     # See if GNU ld supports shared libraries.
12205     case $host_os in
12206     aix[3-9]*)
12207       # On AIX/PPC, the GNU linker is very broken
12208       if test "$host_cpu" != ia64; then
12209         ld_shlibs=no
12210         cat <<_LT_EOF 1>&2
12211
12212 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12213 *** to be unable to reliably create shared libraries on AIX.
12214 *** Therefore, libtool is disabling shared libraries support.  If you
12215 *** really care for shared libraries, you may want to modify your PATH
12216 *** so that a non-GNU linker is found, and then restart.
12217
12218 _LT_EOF
12219       fi
12220       ;;
12221
12222     amigaos*)
12223       case $host_cpu in
12224       powerpc)
12225             # see comment about AmigaOS4 .so support
12226             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12227             archive_expsym_cmds=''
12228         ;;
12229       m68k)
12230             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)'
12231             hardcode_libdir_flag_spec='-L$libdir'
12232             hardcode_minus_L=yes
12233         ;;
12234       esac
12235       ;;
12236
12237     beos*)
12238       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12239         allow_undefined_flag=unsupported
12240         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12241         # support --undefined.  This deserves some investigation.  FIXME
12242         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12243       else
12244         ld_shlibs=no
12245       fi
12246       ;;
12247
12248     cygwin* | mingw* | pw32* | cegcc*)
12249       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12250       # as there is no search path for DLLs.
12251       hardcode_libdir_flag_spec='-L$libdir'
12252       allow_undefined_flag=unsupported
12253       always_export_symbols=no
12254       enable_shared_with_static_runtimes=yes
12255       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12256
12257       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12258         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12259         # If the export-symbols file already is a .def file (1st line
12260         # is EXPORTS), use it as is; otherwise, prepend...
12261         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12262           cp $export_symbols $output_objdir/$soname.def;
12263         else
12264           echo EXPORTS > $output_objdir/$soname.def;
12265           cat $export_symbols >> $output_objdir/$soname.def;
12266         fi~
12267         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12268       else
12269         ld_shlibs=no
12270       fi
12271       ;;
12272
12273     interix[3-9]*)
12274       hardcode_direct=no
12275       hardcode_shlibpath_var=no
12276       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12277       export_dynamic_flag_spec='${wl}-E'
12278       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12279       # Instead, shared libraries are loaded at an image base (0x10000000 by
12280       # default) and relocated if they conflict, which is a slow very memory
12281       # consuming and fragmenting process.  To avoid this, we pick a random,
12282       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12283       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12284       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12285       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'
12286       ;;
12287
12288     gnu* | linux* | tpf* | k*bsd*-gnu)
12289       tmp_diet=no
12290       if test "$host_os" = linux-dietlibc; then
12291         case $cc_basename in
12292           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12293         esac
12294       fi
12295       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12296          && test "$tmp_diet" = no
12297       then
12298         tmp_addflag=
12299         tmp_sharedflag='-shared'
12300         case $cc_basename,$host_cpu in
12301         pgcc*)                          # Portland Group C compiler
12302           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12303           tmp_addflag=' $pic_flag'
12304           ;;
12305         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
12306           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12307           tmp_addflag=' $pic_flag -Mnomain' ;;
12308         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12309           tmp_addflag=' -i_dynamic' ;;
12310         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12311           tmp_addflag=' -i_dynamic -nofor_main' ;;
12312         ifc* | ifort*)                  # Intel Fortran compiler
12313           tmp_addflag=' -nofor_main' ;;
12314         lf95*)                          # Lahey Fortran 8.1
12315           whole_archive_flag_spec=
12316           tmp_sharedflag='--shared' ;;
12317         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
12318           tmp_sharedflag='-qmkshrobj'
12319           tmp_addflag= ;;
12320         esac
12321         case `$CC -V 2>&1 | sed 5q` in
12322         *Sun\ C*)                       # Sun C 5.9
12323           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12324           compiler_needs_object=yes
12325           tmp_sharedflag='-G' ;;
12326         *Sun\ F*)                       # Sun Fortran 8.3
12327           tmp_sharedflag='-G' ;;
12328         esac
12329         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12330
12331         if test "x$supports_anon_versioning" = xyes; then
12332           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12333             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12334             echo "local: *; };" >> $output_objdir/$libname.ver~
12335             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12336         fi
12337
12338         case $cc_basename in
12339         xlf*)
12340           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12341           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12342           hardcode_libdir_flag_spec=
12343           hardcode_libdir_flag_spec_ld='-rpath $libdir'
12344           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12345           if test "x$supports_anon_versioning" = xyes; then
12346             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12347               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12348               echo "local: *; };" >> $output_objdir/$libname.ver~
12349               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12350           fi
12351           ;;
12352         esac
12353       else
12354         ld_shlibs=no
12355       fi
12356       ;;
12357
12358     netbsd*)
12359       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12360         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12361         wlarc=
12362       else
12363         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12364         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12365       fi
12366       ;;
12367
12368     solaris*)
12369       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12370         ld_shlibs=no
12371         cat <<_LT_EOF 1>&2
12372
12373 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12374 *** create shared libraries on Solaris systems.  Therefore, libtool
12375 *** is disabling shared libraries support.  We urge you to upgrade GNU
12376 *** binutils to release 2.9.1 or newer.  Another option is to modify
12377 *** your PATH or compiler configuration so that the native linker is
12378 *** used, and then restart.
12379
12380 _LT_EOF
12381       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12382         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12383         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12384       else
12385         ld_shlibs=no
12386       fi
12387       ;;
12388
12389     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12390       case `$LD -v 2>&1` in
12391         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12392         ld_shlibs=no
12393         cat <<_LT_EOF 1>&2
12394
12395 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12396 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12397 *** is disabling shared libraries support.  We urge you to upgrade GNU
12398 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12399 *** your PATH or compiler configuration so that the native linker is
12400 *** used, and then restart.
12401
12402 _LT_EOF
12403         ;;
12404         *)
12405           # For security reasons, it is highly recommended that you always
12406           # use absolute paths for naming shared libraries, and exclude the
12407           # DT_RUNPATH tag from executables and libraries.  But doing so
12408           # requires that you compile everything twice, which is a pain.
12409           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12410             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12411             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12412             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12413           else
12414             ld_shlibs=no
12415           fi
12416         ;;
12417       esac
12418       ;;
12419
12420     sunos4*)
12421       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12422       wlarc=
12423       hardcode_direct=yes
12424       hardcode_shlibpath_var=no
12425       ;;
12426
12427     *)
12428       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12429         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12430         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12431       else
12432         ld_shlibs=no
12433       fi
12434       ;;
12435     esac
12436
12437     if test "$ld_shlibs" = no; then
12438       runpath_var=
12439       hardcode_libdir_flag_spec=
12440       export_dynamic_flag_spec=
12441       whole_archive_flag_spec=
12442     fi
12443   else
12444     # PORTME fill in a description of your system's linker (not GNU ld)
12445     case $host_os in
12446     aix3*)
12447       allow_undefined_flag=unsupported
12448       always_export_symbols=yes
12449       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'
12450       # Note: this linker hardcodes the directories in LIBPATH if there
12451       # are no directories specified by -L.
12452       hardcode_minus_L=yes
12453       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12454         # Neither direct hardcoding nor static linking is supported with a
12455         # broken collect2.
12456         hardcode_direct=unsupported
12457       fi
12458       ;;
12459
12460     aix[4-9]*)
12461       if test "$host_cpu" = ia64; then
12462         # On IA64, the linker does run time linking by default, so we don't
12463         # have to do anything special.
12464         aix_use_runtimelinking=no
12465         exp_sym_flag='-Bexport'
12466         no_entry_flag=""
12467       else
12468         # If we're using GNU nm, then we don't want the "-C" option.
12469         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12470         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12471           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12472         else
12473           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'
12474         fi
12475         aix_use_runtimelinking=no
12476
12477         # Test if we are trying to use run time linking or normal
12478         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12479         # need to do runtime linking.
12480         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12481           for ld_flag in $LDFLAGS; do
12482           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12483             aix_use_runtimelinking=yes
12484             break
12485           fi
12486           done
12487           ;;
12488         esac
12489
12490         exp_sym_flag='-bexport'
12491         no_entry_flag='-bnoentry'
12492       fi
12493
12494       # When large executables or shared objects are built, AIX ld can
12495       # have problems creating the table of contents.  If linking a library
12496       # or program results in "error TOC overflow" add -mminimal-toc to
12497       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12498       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12499
12500       archive_cmds=''
12501       hardcode_direct=yes
12502       hardcode_direct_absolute=yes
12503       hardcode_libdir_separator=':'
12504       link_all_deplibs=yes
12505       file_list_spec='${wl}-f,'
12506
12507       if test "$GCC" = yes; then
12508         case $host_os in aix4.[012]|aix4.[012].*)
12509         # We only want to do this on AIX 4.2 and lower, the check
12510         # below for broken collect2 doesn't work under 4.3+
12511           collect2name=`${CC} -print-prog-name=collect2`
12512           if test -f "$collect2name" &&
12513            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12514           then
12515           # We have reworked collect2
12516           :
12517           else
12518           # We have old collect2
12519           hardcode_direct=unsupported
12520           # It fails to find uninstalled libraries when the uninstalled
12521           # path is not listed in the libpath.  Setting hardcode_minus_L
12522           # to unsupported forces relinking
12523           hardcode_minus_L=yes
12524           hardcode_libdir_flag_spec='-L$libdir'
12525           hardcode_libdir_separator=
12526           fi
12527           ;;
12528         esac
12529         shared_flag='-shared'
12530         if test "$aix_use_runtimelinking" = yes; then
12531           shared_flag="$shared_flag "'${wl}-G'
12532         fi
12533       else
12534         # not using gcc
12535         if test "$host_cpu" = ia64; then
12536         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12537         # chokes on -Wl,-G. The following line is correct:
12538           shared_flag='-G'
12539         else
12540           if test "$aix_use_runtimelinking" = yes; then
12541             shared_flag='${wl}-G'
12542           else
12543             shared_flag='${wl}-bM:SRE'
12544           fi
12545         fi
12546       fi
12547
12548       export_dynamic_flag_spec='${wl}-bexpall'
12549       # It seems that -bexpall does not export symbols beginning with
12550       # underscore (_), so it is better to generate a list of symbols to export.
12551       always_export_symbols=yes
12552       if test "$aix_use_runtimelinking" = yes; then
12553         # Warning - without using the other runtime loading flags (-brtl),
12554         # -berok will link without error, but may produce a broken library.
12555         allow_undefined_flag='-berok'
12556         # Determine the default libpath from the value encoded in an
12557         # empty executable.
12558         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h.  */
12560
12561 int
12562 main ()
12563 {
12564
12565   ;
12566   return 0;
12567 }
12568 _ACEOF
12569 if ac_fn_c_try_link "$LINENO"; then :
12570
12571 lt_aix_libpath_sed='
12572     /Import File Strings/,/^$/ {
12573         /^0/ {
12574             s/^0  *\(.*\)$/\1/
12575             p
12576         }
12577     }'
12578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12579 # Check for a 64-bit object if we didn't find anything.
12580 if test -z "$aix_libpath"; then
12581   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12582 fi
12583 fi
12584 rm -f core conftest.err conftest.$ac_objext \
12585     conftest$ac_exeext conftest.$ac_ext
12586 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12587
12588         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12589         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12590       else
12591         if test "$host_cpu" = ia64; then
12592           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12593           allow_undefined_flag="-z nodefs"
12594           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"
12595         else
12596          # Determine the default libpath from the value encoded in an
12597          # empty executable.
12598          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12599 /* end confdefs.h.  */
12600
12601 int
12602 main ()
12603 {
12604
12605   ;
12606   return 0;
12607 }
12608 _ACEOF
12609 if ac_fn_c_try_link "$LINENO"; then :
12610
12611 lt_aix_libpath_sed='
12612     /Import File Strings/,/^$/ {
12613         /^0/ {
12614             s/^0  *\(.*\)$/\1/
12615             p
12616         }
12617     }'
12618 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12619 # Check for a 64-bit object if we didn't find anything.
12620 if test -z "$aix_libpath"; then
12621   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12622 fi
12623 fi
12624 rm -f core conftest.err conftest.$ac_objext \
12625     conftest$ac_exeext conftest.$ac_ext
12626 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12627
12628          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12629           # Warning - without using the other run time loading flags,
12630           # -berok will link without error, but may produce a broken library.
12631           no_undefined_flag=' ${wl}-bernotok'
12632           allow_undefined_flag=' ${wl}-berok'
12633           # Exported symbols can be pulled into shared objects from archives
12634           whole_archive_flag_spec='$convenience'
12635           archive_cmds_need_lc=yes
12636           # This is similar to how AIX traditionally builds its shared libraries.
12637           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'
12638         fi
12639       fi
12640       ;;
12641
12642     amigaos*)
12643       case $host_cpu in
12644       powerpc)
12645             # see comment about AmigaOS4 .so support
12646             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12647             archive_expsym_cmds=''
12648         ;;
12649       m68k)
12650             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)'
12651             hardcode_libdir_flag_spec='-L$libdir'
12652             hardcode_minus_L=yes
12653         ;;
12654       esac
12655       ;;
12656
12657     bsdi[45]*)
12658       export_dynamic_flag_spec=-rdynamic
12659       ;;
12660
12661     cygwin* | mingw* | pw32* | cegcc*)
12662       # When not using gcc, we currently assume that we are using
12663       # Microsoft Visual C++.
12664       # hardcode_libdir_flag_spec is actually meaningless, as there is
12665       # no search path for DLLs.
12666       hardcode_libdir_flag_spec=' '
12667       allow_undefined_flag=unsupported
12668       # Tell ltmain to make .lib files, not .a files.
12669       libext=lib
12670       # Tell ltmain to make .dll files, not .so files.
12671       shrext_cmds=".dll"
12672       # FIXME: Setting linknames here is a bad hack.
12673       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12674       # The linker will automatically build a .lib file if we build a DLL.
12675       old_archive_from_new_cmds='true'
12676       # FIXME: Should let the user specify the lib program.
12677       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12678       fix_srcfile_path='`cygpath -w "$srcfile"`'
12679       enable_shared_with_static_runtimes=yes
12680       ;;
12681
12682     darwin* | rhapsody*)
12683
12684
12685   archive_cmds_need_lc=no
12686   hardcode_direct=no
12687   hardcode_automatic=yes
12688   hardcode_shlibpath_var=unsupported
12689   whole_archive_flag_spec=''
12690   link_all_deplibs=yes
12691   allow_undefined_flag="$_lt_dar_allow_undefined"
12692   case $cc_basename in
12693      ifort*) _lt_dar_can_shared=yes ;;
12694      *) _lt_dar_can_shared=$GCC ;;
12695   esac
12696   if test "$_lt_dar_can_shared" = "yes"; then
12697     output_verbose_link_cmd=echo
12698     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12699     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12700     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}"
12701     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}"
12702
12703   else
12704   ld_shlibs=no
12705   fi
12706
12707       ;;
12708
12709     dgux*)
12710       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12711       hardcode_libdir_flag_spec='-L$libdir'
12712       hardcode_shlibpath_var=no
12713       ;;
12714
12715     freebsd1*)
12716       ld_shlibs=no
12717       ;;
12718
12719     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12720     # support.  Future versions do this automatically, but an explicit c++rt0.o
12721     # does not break anything, and helps significantly (at the cost of a little
12722     # extra space).
12723     freebsd2.2*)
12724       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12725       hardcode_libdir_flag_spec='-R$libdir'
12726       hardcode_direct=yes
12727       hardcode_shlibpath_var=no
12728       ;;
12729
12730     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12731     freebsd2*)
12732       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12733       hardcode_direct=yes
12734       hardcode_minus_L=yes
12735       hardcode_shlibpath_var=no
12736       ;;
12737
12738     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12739     freebsd* | dragonfly*)
12740       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12741       hardcode_libdir_flag_spec='-R$libdir'
12742       hardcode_direct=yes
12743       hardcode_shlibpath_var=no
12744       ;;
12745
12746     hpux9*)
12747       if test "$GCC" = yes; then
12748         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12749       else
12750         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'
12751       fi
12752       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12753       hardcode_libdir_separator=:
12754       hardcode_direct=yes
12755
12756       # hardcode_minus_L: Not really in the search PATH,
12757       # but as the default location of the library.
12758       hardcode_minus_L=yes
12759       export_dynamic_flag_spec='${wl}-E'
12760       ;;
12761
12762     hpux10*)
12763       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12764         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12765       else
12766         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12767       fi
12768       if test "$with_gnu_ld" = no; then
12769         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12770         hardcode_libdir_flag_spec_ld='+b $libdir'
12771         hardcode_libdir_separator=:
12772         hardcode_direct=yes
12773         hardcode_direct_absolute=yes
12774         export_dynamic_flag_spec='${wl}-E'
12775         # hardcode_minus_L: Not really in the search PATH,
12776         # but as the default location of the library.
12777         hardcode_minus_L=yes
12778       fi
12779       ;;
12780
12781     hpux11*)
12782       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12783         case $host_cpu in
12784         hppa*64*)
12785           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12786           ;;
12787         ia64*)
12788           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12789           ;;
12790         *)
12791           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12792           ;;
12793         esac
12794       else
12795         case $host_cpu in
12796         hppa*64*)
12797           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12798           ;;
12799         ia64*)
12800           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12801           ;;
12802         *)
12803           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12804           ;;
12805         esac
12806       fi
12807       if test "$with_gnu_ld" = no; then
12808         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12809         hardcode_libdir_separator=:
12810
12811         case $host_cpu in
12812         hppa*64*|ia64*)
12813           hardcode_direct=no
12814           hardcode_shlibpath_var=no
12815           ;;
12816         *)
12817           hardcode_direct=yes
12818           hardcode_direct_absolute=yes
12819           export_dynamic_flag_spec='${wl}-E'
12820
12821           # hardcode_minus_L: Not really in the search PATH,
12822           # but as the default location of the library.
12823           hardcode_minus_L=yes
12824           ;;
12825         esac
12826       fi
12827       ;;
12828
12829     irix5* | irix6* | nonstopux*)
12830       if test "$GCC" = yes; then
12831         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12832         # Try to use the -exported_symbol ld option, if it does not
12833         # work, assume that -exports_file does not work either and
12834         # implicitly export all symbols.
12835         save_LDFLAGS="$LDFLAGS"
12836         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12837         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12838 /* end confdefs.h.  */
12839 int foo(void) {}
12840 _ACEOF
12841 if ac_fn_c_try_link "$LINENO"; then :
12842   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12843
12844 fi
12845 rm -f core conftest.err conftest.$ac_objext \
12846     conftest$ac_exeext conftest.$ac_ext
12847         LDFLAGS="$save_LDFLAGS"
12848       else
12849         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12850         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12851       fi
12852       archive_cmds_need_lc='no'
12853       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12854       hardcode_libdir_separator=:
12855       inherit_rpath=yes
12856       link_all_deplibs=yes
12857       ;;
12858
12859     netbsd*)
12860       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12861         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12862       else
12863         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12864       fi
12865       hardcode_libdir_flag_spec='-R$libdir'
12866       hardcode_direct=yes
12867       hardcode_shlibpath_var=no
12868       ;;
12869
12870     newsos6)
12871       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12872       hardcode_direct=yes
12873       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12874       hardcode_libdir_separator=:
12875       hardcode_shlibpath_var=no
12876       ;;
12877
12878     *nto* | *qnx*)
12879       ;;
12880
12881     openbsd*)
12882       if test -f /usr/libexec/ld.so; then
12883         hardcode_direct=yes
12884         hardcode_shlibpath_var=no
12885         hardcode_direct_absolute=yes
12886         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12887           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12888           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12889           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12890           export_dynamic_flag_spec='${wl}-E'
12891         else
12892           case $host_os in
12893            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12894              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12895              hardcode_libdir_flag_spec='-R$libdir'
12896              ;;
12897            *)
12898              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12899              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12900              ;;
12901           esac
12902         fi
12903       else
12904         ld_shlibs=no
12905       fi
12906       ;;
12907
12908     os2*)
12909       hardcode_libdir_flag_spec='-L$libdir'
12910       hardcode_minus_L=yes
12911       allow_undefined_flag=unsupported
12912       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'
12913       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12914       ;;
12915
12916     osf3*)
12917       if test "$GCC" = yes; then
12918         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12919         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12920       else
12921         allow_undefined_flag=' -expect_unresolved \*'
12922         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12923       fi
12924       archive_cmds_need_lc='no'
12925       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12926       hardcode_libdir_separator=:
12927       ;;
12928
12929     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12930       if test "$GCC" = yes; then
12931         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12932         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12933         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12934       else
12935         allow_undefined_flag=' -expect_unresolved \*'
12936         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12937         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~
12938         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12939
12940         # Both c and cxx compiler support -rpath directly
12941         hardcode_libdir_flag_spec='-rpath $libdir'
12942       fi
12943       archive_cmds_need_lc='no'
12944       hardcode_libdir_separator=:
12945       ;;
12946
12947     solaris*)
12948       no_undefined_flag=' -z defs'
12949       if test "$GCC" = yes; then
12950         wlarc='${wl}'
12951         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12952         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12953           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12954       else
12955         case `$CC -V 2>&1` in
12956         *"Compilers 5.0"*)
12957           wlarc=''
12958           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12959           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12960           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12961           ;;
12962         *)
12963           wlarc='${wl}'
12964           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12965           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12966           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12967           ;;
12968         esac
12969       fi
12970       hardcode_libdir_flag_spec='-R$libdir'
12971       hardcode_shlibpath_var=no
12972       case $host_os in
12973       solaris2.[0-5] | solaris2.[0-5].*) ;;
12974       *)
12975         # The compiler driver will combine and reorder linker options,
12976         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12977         # but is careful enough not to reorder.
12978         # Supported since Solaris 2.6 (maybe 2.5.1?)
12979         if test "$GCC" = yes; then
12980           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12981         else
12982           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12983         fi
12984         ;;
12985       esac
12986       link_all_deplibs=yes
12987       ;;
12988
12989     sunos4*)
12990       if test "x$host_vendor" = xsequent; then
12991         # Use $CC to link under sequent, because it throws in some extra .o
12992         # files that make .init and .fini sections work.
12993         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12994       else
12995         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12996       fi
12997       hardcode_libdir_flag_spec='-L$libdir'
12998       hardcode_direct=yes
12999       hardcode_minus_L=yes
13000       hardcode_shlibpath_var=no
13001       ;;
13002
13003     sysv4)
13004       case $host_vendor in
13005         sni)
13006           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13007           hardcode_direct=yes # is this really true???
13008         ;;
13009         siemens)
13010           ## LD is ld it makes a PLAMLIB
13011           ## CC just makes a GrossModule.
13012           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13013           reload_cmds='$CC -r -o $output$reload_objs'
13014           hardcode_direct=no
13015         ;;
13016         motorola)
13017           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13018           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13019         ;;
13020       esac
13021       runpath_var='LD_RUN_PATH'
13022       hardcode_shlibpath_var=no
13023       ;;
13024
13025     sysv4.3*)
13026       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13027       hardcode_shlibpath_var=no
13028       export_dynamic_flag_spec='-Bexport'
13029       ;;
13030
13031     sysv4*MP*)
13032       if test -d /usr/nec; then
13033         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13034         hardcode_shlibpath_var=no
13035         runpath_var=LD_RUN_PATH
13036         hardcode_runpath_var=yes
13037         ld_shlibs=yes
13038       fi
13039       ;;
13040
13041     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13042       no_undefined_flag='${wl}-z,text'
13043       archive_cmds_need_lc=no
13044       hardcode_shlibpath_var=no
13045       runpath_var='LD_RUN_PATH'
13046
13047       if test "$GCC" = yes; then
13048         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13049         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13050       else
13051         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13052         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13053       fi
13054       ;;
13055
13056     sysv5* | sco3.2v5* | sco5v6*)
13057       # Note: We can NOT use -z defs as we might desire, because we do not
13058       # link with -lc, and that would cause any symbols used from libc to
13059       # always be unresolved, which means just about no library would
13060       # ever link correctly.  If we're not using GNU ld we use -z text
13061       # though, which does catch some bad symbols but isn't as heavy-handed
13062       # as -z defs.
13063       no_undefined_flag='${wl}-z,text'
13064       allow_undefined_flag='${wl}-z,nodefs'
13065       archive_cmds_need_lc=no
13066       hardcode_shlibpath_var=no
13067       hardcode_libdir_flag_spec='${wl}-R,$libdir'
13068       hardcode_libdir_separator=':'
13069       link_all_deplibs=yes
13070       export_dynamic_flag_spec='${wl}-Bexport'
13071       runpath_var='LD_RUN_PATH'
13072
13073       if test "$GCC" = yes; then
13074         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13075         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13076       else
13077         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13078         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13079       fi
13080       ;;
13081
13082     uts4*)
13083       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13084       hardcode_libdir_flag_spec='-L$libdir'
13085       hardcode_shlibpath_var=no
13086       ;;
13087
13088     *)
13089       ld_shlibs=no
13090       ;;
13091     esac
13092
13093     if test x$host_vendor = xsni; then
13094       case $host in
13095       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13096         export_dynamic_flag_spec='${wl}-Blargedynsym'
13097         ;;
13098       esac
13099     fi
13100   fi
13101
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13103 $as_echo "$ld_shlibs" >&6; }
13104 test "$ld_shlibs" = no && can_build_shared=no
13105
13106 with_gnu_ld=$with_gnu_ld
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122 #
13123 # Do we need to explicitly link libc?
13124 #
13125 case "x$archive_cmds_need_lc" in
13126 x|xyes)
13127   # Assume -lc should be added
13128   archive_cmds_need_lc=yes
13129
13130   if test "$enable_shared" = yes && test "$GCC" = yes; then
13131     case $archive_cmds in
13132     *'~'*)
13133       # FIXME: we may have to deal with multi-command sequences.
13134       ;;
13135     '$CC '*)
13136       # Test whether the compiler implicitly links with -lc since on some
13137       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13138       # to ld, don't add -lc before -lgcc.
13139       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13140 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13141       $RM conftest*
13142       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13143
13144       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13145   (eval $ac_compile) 2>&5
13146   ac_status=$?
13147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13148   test $ac_status = 0; } 2>conftest.err; then
13149         soname=conftest
13150         lib=conftest
13151         libobjs=conftest.$ac_objext
13152         deplibs=
13153         wl=$lt_prog_compiler_wl
13154         pic_flag=$lt_prog_compiler_pic
13155         compiler_flags=-v
13156         linker_flags=-v
13157         verstring=
13158         output_objdir=.
13159         libname=conftest
13160         lt_save_allow_undefined_flag=$allow_undefined_flag
13161         allow_undefined_flag=
13162         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13163   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13164   ac_status=$?
13165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13166   test $ac_status = 0; }
13167         then
13168           archive_cmds_need_lc=no
13169         else
13170           archive_cmds_need_lc=yes
13171         fi
13172         allow_undefined_flag=$lt_save_allow_undefined_flag
13173       else
13174         cat conftest.err 1>&5
13175       fi
13176       $RM conftest*
13177       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13178 $as_echo "$archive_cmds_need_lc" >&6; }
13179       ;;
13180     esac
13181   fi
13182   ;;
13183 esac
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13342 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13343
13344 if test "$GCC" = yes; then
13345   case $host_os in
13346     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13347     *) lt_awk_arg="/^libraries:/" ;;
13348   esac
13349   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13350   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
13351     # if the path contains ";" then we assume it to be the separator
13352     # otherwise default to the standard path separator (i.e. ":") - it is
13353     # assumed that no part of a normal pathname contains ";" but that should
13354     # okay in the real world where ";" in dirpaths is itself problematic.
13355     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13356   else
13357     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13358   fi
13359   # Ok, now we have the path, separated by spaces, we can step through it
13360   # and add multilib dir if necessary.
13361   lt_tmp_lt_search_path_spec=
13362   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13363   for lt_sys_path in $lt_search_path_spec; do
13364     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13365       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13366     else
13367       test -d "$lt_sys_path" && \
13368         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13369     fi
13370   done
13371   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
13372 BEGIN {RS=" "; FS="/|\n";} {
13373   lt_foo="";
13374   lt_count=0;
13375   for (lt_i = NF; lt_i > 0; lt_i--) {
13376     if ($lt_i != "" && $lt_i != ".") {
13377       if ($lt_i == "..") {
13378         lt_count++;
13379       } else {
13380         if (lt_count == 0) {
13381           lt_foo="/" $lt_i lt_foo;
13382         } else {
13383           lt_count--;
13384         }
13385       }
13386     }
13387   }
13388   if (lt_foo != "") { lt_freq[lt_foo]++; }
13389   if (lt_freq[lt_foo] == 1) { print lt_foo; }
13390 }'`
13391   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
13392 else
13393   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13394 fi
13395 library_names_spec=
13396 libname_spec='lib$name'
13397 soname_spec=
13398 shrext_cmds=".so"
13399 postinstall_cmds=
13400 postuninstall_cmds=
13401 finish_cmds=
13402 finish_eval=
13403 shlibpath_var=
13404 shlibpath_overrides_runpath=unknown
13405 version_type=none
13406 dynamic_linker="$host_os ld.so"
13407 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13408 need_lib_prefix=unknown
13409 hardcode_into_libs=no
13410
13411 # when you set need_version to no, make sure it does not cause -set_version
13412 # flags to be left without arguments
13413 need_version=unknown
13414
13415 case $host_os in
13416 aix3*)
13417   version_type=linux
13418   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13419   shlibpath_var=LIBPATH
13420
13421   # AIX 3 has no versioning support, so we append a major version to the name.
13422   soname_spec='${libname}${release}${shared_ext}$major'
13423   ;;
13424
13425 aix[4-9]*)
13426   version_type=linux
13427   need_lib_prefix=no
13428   need_version=no
13429   hardcode_into_libs=yes
13430   if test "$host_cpu" = ia64; then
13431     # AIX 5 supports IA64
13432     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13433     shlibpath_var=LD_LIBRARY_PATH
13434   else
13435     # With GCC up to 2.95.x, collect2 would create an import file
13436     # for dependence libraries.  The import file would start with
13437     # the line `#! .'.  This would cause the generated library to
13438     # depend on `.', always an invalid library.  This was fixed in
13439     # development snapshots of GCC prior to 3.0.
13440     case $host_os in
13441       aix4 | aix4.[01] | aix4.[01].*)
13442       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13443            echo ' yes '
13444            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13445         :
13446       else
13447         can_build_shared=no
13448       fi
13449       ;;
13450     esac
13451     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13452     # soname into executable. Probably we can add versioning support to
13453     # collect2, so additional links can be useful in future.
13454     if test "$aix_use_runtimelinking" = yes; then
13455       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13456       # instead of lib<name>.a to let people know that these are not
13457       # typical AIX shared libraries.
13458       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13459     else
13460       # We preserve .a as extension for shared libraries through AIX4.2
13461       # and later when we are not doing run time linking.
13462       library_names_spec='${libname}${release}.a $libname.a'
13463       soname_spec='${libname}${release}${shared_ext}$major'
13464     fi
13465     shlibpath_var=LIBPATH
13466   fi
13467   ;;
13468
13469 amigaos*)
13470   case $host_cpu in
13471   powerpc)
13472     # Since July 2007 AmigaOS4 officially supports .so libraries.
13473     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13474     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13475     ;;
13476   m68k)
13477     library_names_spec='$libname.ixlibrary $libname.a'
13478     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13479     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
13480     ;;
13481   esac
13482   ;;
13483
13484 beos*)
13485   library_names_spec='${libname}${shared_ext}'
13486   dynamic_linker="$host_os ld.so"
13487   shlibpath_var=LIBRARY_PATH
13488   ;;
13489
13490 bsdi[45]*)
13491   version_type=linux
13492   need_version=no
13493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494   soname_spec='${libname}${release}${shared_ext}$major'
13495   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13496   shlibpath_var=LD_LIBRARY_PATH
13497   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13498   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13499   # the default ld.so.conf also contains /usr/contrib/lib and
13500   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13501   # libtool to hard-code these into programs
13502   ;;
13503
13504 cygwin* | mingw* | pw32* | cegcc*)
13505   version_type=windows
13506   shrext_cmds=".dll"
13507   need_version=no
13508   need_lib_prefix=no
13509
13510   case $GCC,$host_os in
13511   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13512     library_names_spec='$libname.dll.a'
13513     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13514     postinstall_cmds='base_file=`basename \${file}`~
13515       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13516       dldir=$destdir/`dirname \$dlpath`~
13517       test -d \$dldir || mkdir -p \$dldir~
13518       $install_prog $dir/$dlname \$dldir/$dlname~
13519       chmod a+x \$dldir/$dlname~
13520       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13521         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13522       fi'
13523     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13524       dlpath=$dir/\$dldll~
13525        $RM \$dlpath'
13526     shlibpath_overrides_runpath=yes
13527
13528     case $host_os in
13529     cygwin*)
13530       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13531       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13532       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13533       ;;
13534     mingw* | cegcc*)
13535       # MinGW DLLs use traditional 'lib' prefix
13536       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13537       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13538       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13539         # It is most probably a Windows format PATH printed by
13540         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13541         # path with ; separators, and with drive letters. We can handle the
13542         # drive letters (cygwin fileutils understands them), so leave them,
13543         # especially as we might pass files found there to a mingw objdump,
13544         # which wouldn't understand a cygwinified path. Ahh.
13545         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13546       else
13547         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13548       fi
13549       ;;
13550     pw32*)
13551       # pw32 DLLs use 'pw' prefix rather than 'lib'
13552       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13553       ;;
13554     esac
13555     ;;
13556
13557   *)
13558     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13559     ;;
13560   esac
13561   dynamic_linker='Win32 ld.exe'
13562   # FIXME: first we should search . and the directory the executable is in
13563   shlibpath_var=PATH
13564   ;;
13565
13566 darwin* | rhapsody*)
13567   dynamic_linker="$host_os dyld"
13568   version_type=darwin
13569   need_lib_prefix=no
13570   need_version=no
13571   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13572   soname_spec='${libname}${release}${major}$shared_ext'
13573   shlibpath_overrides_runpath=yes
13574   shlibpath_var=DYLD_LIBRARY_PATH
13575   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13576
13577   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13578   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13579   ;;
13580
13581 dgux*)
13582   version_type=linux
13583   need_lib_prefix=no
13584   need_version=no
13585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13586   soname_spec='${libname}${release}${shared_ext}$major'
13587   shlibpath_var=LD_LIBRARY_PATH
13588   ;;
13589
13590 freebsd1*)
13591   dynamic_linker=no
13592   ;;
13593
13594 freebsd* | dragonfly*)
13595   # DragonFly does not have aout.  When/if they implement a new
13596   # versioning mechanism, adjust this.
13597   if test -x /usr/bin/objformat; then
13598     objformat=`/usr/bin/objformat`
13599   else
13600     case $host_os in
13601     freebsd[123]*) objformat=aout ;;
13602     *) objformat=elf ;;
13603     esac
13604   fi
13605   version_type=freebsd-$objformat
13606   case $version_type in
13607     freebsd-elf*)
13608       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13609       need_version=no
13610       need_lib_prefix=no
13611       ;;
13612     freebsd-*)
13613       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13614       need_version=yes
13615       ;;
13616   esac
13617   shlibpath_var=LD_LIBRARY_PATH
13618   case $host_os in
13619   freebsd2*)
13620     shlibpath_overrides_runpath=yes
13621     ;;
13622   freebsd3.[01]* | freebsdelf3.[01]*)
13623     shlibpath_overrides_runpath=yes
13624     hardcode_into_libs=yes
13625     ;;
13626   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13627   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13628     shlibpath_overrides_runpath=no
13629     hardcode_into_libs=yes
13630     ;;
13631   *) # from 4.6 on, and DragonFly
13632     shlibpath_overrides_runpath=yes
13633     hardcode_into_libs=yes
13634     ;;
13635   esac
13636   ;;
13637
13638 gnu*)
13639   version_type=linux
13640   need_lib_prefix=no
13641   need_version=no
13642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13643   soname_spec='${libname}${release}${shared_ext}$major'
13644   shlibpath_var=LD_LIBRARY_PATH
13645   hardcode_into_libs=yes
13646   ;;
13647
13648 hpux9* | hpux10* | hpux11*)
13649   # Give a soname corresponding to the major version so that dld.sl refuses to
13650   # link against other versions.
13651   version_type=sunos
13652   need_lib_prefix=no
13653   need_version=no
13654   case $host_cpu in
13655   ia64*)
13656     shrext_cmds='.so'
13657     hardcode_into_libs=yes
13658     dynamic_linker="$host_os dld.so"
13659     shlibpath_var=LD_LIBRARY_PATH
13660     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13661     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13662     soname_spec='${libname}${release}${shared_ext}$major'
13663     if test "X$HPUX_IA64_MODE" = X32; then
13664       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13665     else
13666       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13667     fi
13668     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13669     ;;
13670   hppa*64*)
13671     shrext_cmds='.sl'
13672     hardcode_into_libs=yes
13673     dynamic_linker="$host_os dld.sl"
13674     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13675     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13676     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13677     soname_spec='${libname}${release}${shared_ext}$major'
13678     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13679     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13680     ;;
13681   *)
13682     shrext_cmds='.sl'
13683     dynamic_linker="$host_os dld.sl"
13684     shlibpath_var=SHLIB_PATH
13685     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13686     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13687     soname_spec='${libname}${release}${shared_ext}$major'
13688     ;;
13689   esac
13690   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13691   postinstall_cmds='chmod 555 $lib'
13692   ;;
13693
13694 interix[3-9]*)
13695   version_type=linux
13696   need_lib_prefix=no
13697   need_version=no
13698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13699   soname_spec='${libname}${release}${shared_ext}$major'
13700   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13701   shlibpath_var=LD_LIBRARY_PATH
13702   shlibpath_overrides_runpath=no
13703   hardcode_into_libs=yes
13704   ;;
13705
13706 irix5* | irix6* | nonstopux*)
13707   case $host_os in
13708     nonstopux*) version_type=nonstopux ;;
13709     *)
13710         if test "$lt_cv_prog_gnu_ld" = yes; then
13711                 version_type=linux
13712         else
13713                 version_type=irix
13714         fi ;;
13715   esac
13716   need_lib_prefix=no
13717   need_version=no
13718   soname_spec='${libname}${release}${shared_ext}$major'
13719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13720   case $host_os in
13721   irix5* | nonstopux*)
13722     libsuff= shlibsuff=
13723     ;;
13724   *)
13725     case $LD in # libtool.m4 will add one of these switches to LD
13726     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13727       libsuff= shlibsuff= libmagic=32-bit;;
13728     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13729       libsuff=32 shlibsuff=N32 libmagic=N32;;
13730     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13731       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13732     *) libsuff= shlibsuff= libmagic=never-match;;
13733     esac
13734     ;;
13735   esac
13736   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13737   shlibpath_overrides_runpath=no
13738   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13739   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13740   hardcode_into_libs=yes
13741   ;;
13742
13743 # No shared lib support for Linux oldld, aout, or coff.
13744 linux*oldld* | linux*aout* | linux*coff*)
13745   dynamic_linker=no
13746   ;;
13747
13748 # This must be Linux ELF.
13749 linux* | k*bsd*-gnu)
13750   version_type=linux
13751   need_lib_prefix=no
13752   need_version=no
13753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13754   soname_spec='${libname}${release}${shared_ext}$major'
13755   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13756   shlibpath_var=LD_LIBRARY_PATH
13757   shlibpath_overrides_runpath=no
13758   # Some binutils ld are patched to set DT_RUNPATH
13759   save_LDFLAGS=$LDFLAGS
13760   save_libdir=$libdir
13761   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13762        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764 /* end confdefs.h.  */
13765
13766 int
13767 main ()
13768 {
13769
13770   ;
13771   return 0;
13772 }
13773 _ACEOF
13774 if ac_fn_c_try_link "$LINENO"; then :
13775   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13776   shlibpath_overrides_runpath=yes
13777 fi
13778 fi
13779 rm -f core conftest.err conftest.$ac_objext \
13780     conftest$ac_exeext conftest.$ac_ext
13781   LDFLAGS=$save_LDFLAGS
13782   libdir=$save_libdir
13783
13784   # This implies no fast_install, which is unacceptable.
13785   # Some rework will be needed to allow for fast_install
13786   # before this can be enabled.
13787   hardcode_into_libs=yes
13788
13789   # Add ABI-specific directories to the system library path.
13790   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13791
13792   # Append ld.so.conf contents to the search path
13793   if test -f /etc/ld.so.conf; then
13794     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;/^$/d' | tr '\n' ' '`
13795     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13796   fi
13797
13798   # We used to test for /lib/ld.so.1 and disable shared libraries on
13799   # powerpc, because MkLinux only supported shared libraries with the
13800   # GNU dynamic linker.  Since this was broken with cross compilers,
13801   # most powerpc-linux boxes support dynamic linking these days and
13802   # people can always --disable-shared, the test was removed, and we
13803   # assume the GNU/Linux dynamic linker is in use.
13804   dynamic_linker='GNU/Linux ld.so'
13805   ;;
13806
13807 netbsd*)
13808   version_type=sunos
13809   need_lib_prefix=no
13810   need_version=no
13811   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13812     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13813     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13814     dynamic_linker='NetBSD (a.out) ld.so'
13815   else
13816     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13817     soname_spec='${libname}${release}${shared_ext}$major'
13818     dynamic_linker='NetBSD ld.elf_so'
13819   fi
13820   shlibpath_var=LD_LIBRARY_PATH
13821   shlibpath_overrides_runpath=yes
13822   hardcode_into_libs=yes
13823   ;;
13824
13825 newsos6)
13826   version_type=linux
13827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13828   shlibpath_var=LD_LIBRARY_PATH
13829   shlibpath_overrides_runpath=yes
13830   ;;
13831
13832 *nto* | *qnx*)
13833   version_type=qnx
13834   need_lib_prefix=no
13835   need_version=no
13836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13837   soname_spec='${libname}${release}${shared_ext}$major'
13838   shlibpath_var=LD_LIBRARY_PATH
13839   shlibpath_overrides_runpath=no
13840   hardcode_into_libs=yes
13841   dynamic_linker='ldqnx.so'
13842   ;;
13843
13844 openbsd*)
13845   version_type=sunos
13846   sys_lib_dlsearch_path_spec="/usr/lib"
13847   need_lib_prefix=no
13848   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13849   case $host_os in
13850     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
13851     *)                          need_version=no  ;;
13852   esac
13853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13854   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13855   shlibpath_var=LD_LIBRARY_PATH
13856   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13857     case $host_os in
13858       openbsd2.[89] | openbsd2.[89].*)
13859         shlibpath_overrides_runpath=no
13860         ;;
13861       *)
13862         shlibpath_overrides_runpath=yes
13863         ;;
13864       esac
13865   else
13866     shlibpath_overrides_runpath=yes
13867   fi
13868   ;;
13869
13870 os2*)
13871   libname_spec='$name'
13872   shrext_cmds=".dll"
13873   need_lib_prefix=no
13874   library_names_spec='$libname${shared_ext} $libname.a'
13875   dynamic_linker='OS/2 ld.exe'
13876   shlibpath_var=LIBPATH
13877   ;;
13878
13879 osf3* | osf4* | osf5*)
13880   version_type=osf
13881   need_lib_prefix=no
13882   need_version=no
13883   soname_spec='${libname}${release}${shared_ext}$major'
13884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13885   shlibpath_var=LD_LIBRARY_PATH
13886   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13887   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13888   ;;
13889
13890 rdos*)
13891   dynamic_linker=no
13892   ;;
13893
13894 solaris*)
13895   version_type=linux
13896   need_lib_prefix=no
13897   need_version=no
13898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13899   soname_spec='${libname}${release}${shared_ext}$major'
13900   shlibpath_var=LD_LIBRARY_PATH
13901   shlibpath_overrides_runpath=yes
13902   hardcode_into_libs=yes
13903   # ldd complains unless libraries are executable
13904   postinstall_cmds='chmod +x $lib'
13905   ;;
13906
13907 sunos4*)
13908   version_type=sunos
13909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13910   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13911   shlibpath_var=LD_LIBRARY_PATH
13912   shlibpath_overrides_runpath=yes
13913   if test "$with_gnu_ld" = yes; then
13914     need_lib_prefix=no
13915   fi
13916   need_version=yes
13917   ;;
13918
13919 sysv4 | sysv4.3*)
13920   version_type=linux
13921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13922   soname_spec='${libname}${release}${shared_ext}$major'
13923   shlibpath_var=LD_LIBRARY_PATH
13924   case $host_vendor in
13925     sni)
13926       shlibpath_overrides_runpath=no
13927       need_lib_prefix=no
13928       runpath_var=LD_RUN_PATH
13929       ;;
13930     siemens)
13931       need_lib_prefix=no
13932       ;;
13933     motorola)
13934       need_lib_prefix=no
13935       need_version=no
13936       shlibpath_overrides_runpath=no
13937       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13938       ;;
13939   esac
13940   ;;
13941
13942 sysv4*MP*)
13943   if test -d /usr/nec ;then
13944     version_type=linux
13945     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13946     soname_spec='$libname${shared_ext}.$major'
13947     shlibpath_var=LD_LIBRARY_PATH
13948   fi
13949   ;;
13950
13951 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13952   version_type=freebsd-elf
13953   need_lib_prefix=no
13954   need_version=no
13955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13956   soname_spec='${libname}${release}${shared_ext}$major'
13957   shlibpath_var=LD_LIBRARY_PATH
13958   shlibpath_overrides_runpath=yes
13959   hardcode_into_libs=yes
13960   if test "$with_gnu_ld" = yes; then
13961     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13962   else
13963     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13964     case $host_os in
13965       sco3.2v5*)
13966         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13967         ;;
13968     esac
13969   fi
13970   sys_lib_dlsearch_path_spec='/usr/lib'
13971   ;;
13972
13973 tpf*)
13974   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13975   version_type=linux
13976   need_lib_prefix=no
13977   need_version=no
13978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13979   shlibpath_var=LD_LIBRARY_PATH
13980   shlibpath_overrides_runpath=no
13981   hardcode_into_libs=yes
13982   ;;
13983
13984 uts4*)
13985   version_type=linux
13986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13987   soname_spec='${libname}${release}${shared_ext}$major'
13988   shlibpath_var=LD_LIBRARY_PATH
13989   ;;
13990
13991 *)
13992   dynamic_linker=no
13993   ;;
13994 esac
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13996 $as_echo "$dynamic_linker" >&6; }
13997 test "$dynamic_linker" = no && can_build_shared=no
13998
13999 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14000 if test "$GCC" = yes; then
14001   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14002 fi
14003
14004 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14005   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14006 fi
14007 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14008   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14009 fi
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14098 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14099 hardcode_action=
14100 if test -n "$hardcode_libdir_flag_spec" ||
14101    test -n "$runpath_var" ||
14102    test "X$hardcode_automatic" = "Xyes" ; then
14103
14104   # We can hardcode non-existent directories.
14105   if test "$hardcode_direct" != no &&
14106      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14107      # have to relink, otherwise we might link with an installed library
14108      # when we should be linking with a yet-to-be-installed one
14109      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14110      test "$hardcode_minus_L" != no; then
14111     # Linking always hardcodes the temporary library directory.
14112     hardcode_action=relink
14113   else
14114     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14115     hardcode_action=immediate
14116   fi
14117 else
14118   # We cannot hardcode anything, or else we can only hardcode existing
14119   # directories.
14120   hardcode_action=unsupported
14121 fi
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14123 $as_echo "$hardcode_action" >&6; }
14124
14125 if test "$hardcode_action" = relink ||
14126    test "$inherit_rpath" = yes; then
14127   # Fast installation is not supported
14128   enable_fast_install=no
14129 elif test "$shlibpath_overrides_runpath" = yes ||
14130      test "$enable_shared" = no; then
14131   # Fast installation is not necessary
14132   enable_fast_install=needless
14133 fi
14134
14135
14136
14137
14138
14139
14140   if test "x$enable_dlopen" != xyes; then
14141   enable_dlopen=unknown
14142   enable_dlopen_self=unknown
14143   enable_dlopen_self_static=unknown
14144 else
14145   lt_cv_dlopen=no
14146   lt_cv_dlopen_libs=
14147
14148   case $host_os in
14149   beos*)
14150     lt_cv_dlopen="load_add_on"
14151     lt_cv_dlopen_libs=
14152     lt_cv_dlopen_self=yes
14153     ;;
14154
14155   mingw* | pw32* | cegcc*)
14156     lt_cv_dlopen="LoadLibrary"
14157     lt_cv_dlopen_libs=
14158     ;;
14159
14160   cygwin*)
14161     lt_cv_dlopen="dlopen"
14162     lt_cv_dlopen_libs=
14163     ;;
14164
14165   darwin*)
14166   # if libdl is installed we need to link against it
14167     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14168 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14169 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14170   $as_echo_n "(cached) " >&6
14171 else
14172   ac_check_lib_save_LIBS=$LIBS
14173 LIBS="-ldl  $LIBS"
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h.  */
14176
14177 /* Override any GCC internal prototype to avoid an error.
14178    Use char because int might match the return type of a GCC
14179    builtin and then its argument prototype would still apply.  */
14180 #ifdef __cplusplus
14181 extern "C"
14182 #endif
14183 char dlopen ();
14184 int
14185 main ()
14186 {
14187 return dlopen ();
14188   ;
14189   return 0;
14190 }
14191 _ACEOF
14192 if ac_fn_c_try_link "$LINENO"; then :
14193   ac_cv_lib_dl_dlopen=yes
14194 else
14195   ac_cv_lib_dl_dlopen=no
14196 fi
14197 rm -f core conftest.err conftest.$ac_objext \
14198     conftest$ac_exeext conftest.$ac_ext
14199 LIBS=$ac_check_lib_save_LIBS
14200 fi
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14202 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14203 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14204   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14205 else
14206
14207     lt_cv_dlopen="dyld"
14208     lt_cv_dlopen_libs=
14209     lt_cv_dlopen_self=yes
14210
14211 fi
14212
14213     ;;
14214
14215   *)
14216     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14217 if test "x$ac_cv_func_shl_load" = x""yes; then :
14218   lt_cv_dlopen="shl_load"
14219 else
14220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14221 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14222 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
14223   $as_echo_n "(cached) " >&6
14224 else
14225   ac_check_lib_save_LIBS=$LIBS
14226 LIBS="-ldld  $LIBS"
14227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228 /* end confdefs.h.  */
14229
14230 /* Override any GCC internal prototype to avoid an error.
14231    Use char because int might match the return type of a GCC
14232    builtin and then its argument prototype would still apply.  */
14233 #ifdef __cplusplus
14234 extern "C"
14235 #endif
14236 char shl_load ();
14237 int
14238 main ()
14239 {
14240 return shl_load ();
14241   ;
14242   return 0;
14243 }
14244 _ACEOF
14245 if ac_fn_c_try_link "$LINENO"; then :
14246   ac_cv_lib_dld_shl_load=yes
14247 else
14248   ac_cv_lib_dld_shl_load=no
14249 fi
14250 rm -f core conftest.err conftest.$ac_objext \
14251     conftest$ac_exeext conftest.$ac_ext
14252 LIBS=$ac_check_lib_save_LIBS
14253 fi
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14255 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14256 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
14257   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14258 else
14259   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14260 if test "x$ac_cv_func_dlopen" = x""yes; then :
14261   lt_cv_dlopen="dlopen"
14262 else
14263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14264 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14265 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14266   $as_echo_n "(cached) " >&6
14267 else
14268   ac_check_lib_save_LIBS=$LIBS
14269 LIBS="-ldl  $LIBS"
14270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14271 /* end confdefs.h.  */
14272
14273 /* Override any GCC internal prototype to avoid an error.
14274    Use char because int might match the return type of a GCC
14275    builtin and then its argument prototype would still apply.  */
14276 #ifdef __cplusplus
14277 extern "C"
14278 #endif
14279 char dlopen ();
14280 int
14281 main ()
14282 {
14283 return dlopen ();
14284   ;
14285   return 0;
14286 }
14287 _ACEOF
14288 if ac_fn_c_try_link "$LINENO"; then :
14289   ac_cv_lib_dl_dlopen=yes
14290 else
14291   ac_cv_lib_dl_dlopen=no
14292 fi
14293 rm -f core conftest.err conftest.$ac_objext \
14294     conftest$ac_exeext conftest.$ac_ext
14295 LIBS=$ac_check_lib_save_LIBS
14296 fi
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14298 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14299 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14300   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14301 else
14302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14303 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14304 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
14305   $as_echo_n "(cached) " >&6
14306 else
14307   ac_check_lib_save_LIBS=$LIBS
14308 LIBS="-lsvld  $LIBS"
14309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h.  */
14311
14312 /* Override any GCC internal prototype to avoid an error.
14313    Use char because int might match the return type of a GCC
14314    builtin and then its argument prototype would still apply.  */
14315 #ifdef __cplusplus
14316 extern "C"
14317 #endif
14318 char dlopen ();
14319 int
14320 main ()
14321 {
14322 return dlopen ();
14323   ;
14324   return 0;
14325 }
14326 _ACEOF
14327 if ac_fn_c_try_link "$LINENO"; then :
14328   ac_cv_lib_svld_dlopen=yes
14329 else
14330   ac_cv_lib_svld_dlopen=no
14331 fi
14332 rm -f core conftest.err conftest.$ac_objext \
14333     conftest$ac_exeext conftest.$ac_ext
14334 LIBS=$ac_check_lib_save_LIBS
14335 fi
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14337 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14338 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
14339   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14340 else
14341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14342 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14343 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
14344   $as_echo_n "(cached) " >&6
14345 else
14346   ac_check_lib_save_LIBS=$LIBS
14347 LIBS="-ldld  $LIBS"
14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h.  */
14350
14351 /* Override any GCC internal prototype to avoid an error.
14352    Use char because int might match the return type of a GCC
14353    builtin and then its argument prototype would still apply.  */
14354 #ifdef __cplusplus
14355 extern "C"
14356 #endif
14357 char dld_link ();
14358 int
14359 main ()
14360 {
14361 return dld_link ();
14362   ;
14363   return 0;
14364 }
14365 _ACEOF
14366 if ac_fn_c_try_link "$LINENO"; then :
14367   ac_cv_lib_dld_dld_link=yes
14368 else
14369   ac_cv_lib_dld_dld_link=no
14370 fi
14371 rm -f core conftest.err conftest.$ac_objext \
14372     conftest$ac_exeext conftest.$ac_ext
14373 LIBS=$ac_check_lib_save_LIBS
14374 fi
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14376 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14377 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
14378   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14379 fi
14380
14381
14382 fi
14383
14384
14385 fi
14386
14387
14388 fi
14389
14390
14391 fi
14392
14393
14394 fi
14395
14396     ;;
14397   esac
14398
14399   if test "x$lt_cv_dlopen" != xno; then
14400     enable_dlopen=yes
14401   else
14402     enable_dlopen=no
14403   fi
14404
14405   case $lt_cv_dlopen in
14406   dlopen)
14407     save_CPPFLAGS="$CPPFLAGS"
14408     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14409
14410     save_LDFLAGS="$LDFLAGS"
14411     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14412
14413     save_LIBS="$LIBS"
14414     LIBS="$lt_cv_dlopen_libs $LIBS"
14415
14416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14417 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14418 if test "${lt_cv_dlopen_self+set}" = set; then :
14419   $as_echo_n "(cached) " >&6
14420 else
14421           if test "$cross_compiling" = yes; then :
14422   lt_cv_dlopen_self=cross
14423 else
14424   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14425   lt_status=$lt_dlunknown
14426   cat > conftest.$ac_ext <<_LT_EOF
14427 #line 14427 "configure"
14428 #include "confdefs.h"
14429
14430 #if HAVE_DLFCN_H
14431 #include <dlfcn.h>
14432 #endif
14433
14434 #include <stdio.h>
14435
14436 #ifdef RTLD_GLOBAL
14437 #  define LT_DLGLOBAL           RTLD_GLOBAL
14438 #else
14439 #  ifdef DL_GLOBAL
14440 #    define LT_DLGLOBAL         DL_GLOBAL
14441 #  else
14442 #    define LT_DLGLOBAL         0
14443 #  endif
14444 #endif
14445
14446 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14447    find out it does not work in some platform. */
14448 #ifndef LT_DLLAZY_OR_NOW
14449 #  ifdef RTLD_LAZY
14450 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14451 #  else
14452 #    ifdef DL_LAZY
14453 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14454 #    else
14455 #      ifdef RTLD_NOW
14456 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14457 #      else
14458 #        ifdef DL_NOW
14459 #          define LT_DLLAZY_OR_NOW      DL_NOW
14460 #        else
14461 #          define LT_DLLAZY_OR_NOW      0
14462 #        endif
14463 #      endif
14464 #    endif
14465 #  endif
14466 #endif
14467
14468 void fnord() { int i=42;}
14469 int main ()
14470 {
14471   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14472   int status = $lt_dlunknown;
14473
14474   if (self)
14475     {
14476       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14477       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14478       /* dlclose (self); */
14479     }
14480   else
14481     puts (dlerror ());
14482
14483   return status;
14484 }
14485 _LT_EOF
14486   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14487   (eval $ac_link) 2>&5
14488   ac_status=$?
14489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14490   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14491     (./conftest; exit; ) >&5 2>/dev/null
14492     lt_status=$?
14493     case x$lt_status in
14494       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14495       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14496       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14497     esac
14498   else :
14499     # compilation failed
14500     lt_cv_dlopen_self=no
14501   fi
14502 fi
14503 rm -fr conftest*
14504
14505
14506 fi
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14508 $as_echo "$lt_cv_dlopen_self" >&6; }
14509
14510     if test "x$lt_cv_dlopen_self" = xyes; then
14511       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14512       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14513 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14514 if test "${lt_cv_dlopen_self_static+set}" = set; then :
14515   $as_echo_n "(cached) " >&6
14516 else
14517           if test "$cross_compiling" = yes; then :
14518   lt_cv_dlopen_self_static=cross
14519 else
14520   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14521   lt_status=$lt_dlunknown
14522   cat > conftest.$ac_ext <<_LT_EOF
14523 #line 14523 "configure"
14524 #include "confdefs.h"
14525
14526 #if HAVE_DLFCN_H
14527 #include <dlfcn.h>
14528 #endif
14529
14530 #include <stdio.h>
14531
14532 #ifdef RTLD_GLOBAL
14533 #  define LT_DLGLOBAL           RTLD_GLOBAL
14534 #else
14535 #  ifdef DL_GLOBAL
14536 #    define LT_DLGLOBAL         DL_GLOBAL
14537 #  else
14538 #    define LT_DLGLOBAL         0
14539 #  endif
14540 #endif
14541
14542 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14543    find out it does not work in some platform. */
14544 #ifndef LT_DLLAZY_OR_NOW
14545 #  ifdef RTLD_LAZY
14546 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14547 #  else
14548 #    ifdef DL_LAZY
14549 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14550 #    else
14551 #      ifdef RTLD_NOW
14552 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14553 #      else
14554 #        ifdef DL_NOW
14555 #          define LT_DLLAZY_OR_NOW      DL_NOW
14556 #        else
14557 #          define LT_DLLAZY_OR_NOW      0
14558 #        endif
14559 #      endif
14560 #    endif
14561 #  endif
14562 #endif
14563
14564 void fnord() { int i=42;}
14565 int main ()
14566 {
14567   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14568   int status = $lt_dlunknown;
14569
14570   if (self)
14571     {
14572       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14573       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14574       /* dlclose (self); */
14575     }
14576   else
14577     puts (dlerror ());
14578
14579   return status;
14580 }
14581 _LT_EOF
14582   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14583   (eval $ac_link) 2>&5
14584   ac_status=$?
14585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14586   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14587     (./conftest; exit; ) >&5 2>/dev/null
14588     lt_status=$?
14589     case x$lt_status in
14590       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14591       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14592       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14593     esac
14594   else :
14595     # compilation failed
14596     lt_cv_dlopen_self_static=no
14597   fi
14598 fi
14599 rm -fr conftest*
14600
14601
14602 fi
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14604 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14605     fi
14606
14607     CPPFLAGS="$save_CPPFLAGS"
14608     LDFLAGS="$save_LDFLAGS"
14609     LIBS="$save_LIBS"
14610     ;;
14611   esac
14612
14613   case $lt_cv_dlopen_self in
14614   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14615   *) enable_dlopen_self=unknown ;;
14616   esac
14617
14618   case $lt_cv_dlopen_self_static in
14619   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14620   *) enable_dlopen_self_static=unknown ;;
14621   esac
14622 fi
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640 striplib=
14641 old_striplib=
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14643 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14644 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14645   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14646   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14648 $as_echo "yes" >&6; }
14649 else
14650 # FIXME - insert some real tests, host_os isn't really good enough
14651   case $host_os in
14652   darwin*)
14653     if test -n "$STRIP" ; then
14654       striplib="$STRIP -x"
14655       old_striplib="$STRIP -S"
14656       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14657 $as_echo "yes" >&6; }
14658     else
14659       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14660 $as_echo "no" >&6; }
14661     fi
14662     ;;
14663   *)
14664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14665 $as_echo "no" >&6; }
14666     ;;
14667   esac
14668 fi
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681   # Report which library types will actually be built
14682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14683 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14685 $as_echo "$can_build_shared" >&6; }
14686
14687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14688 $as_echo_n "checking whether to build shared libraries... " >&6; }
14689   test "$can_build_shared" = "no" && enable_shared=no
14690
14691   # On AIX, shared libraries and static libraries use the same namespace, and
14692   # are all built from PIC.
14693   case $host_os in
14694   aix3*)
14695     test "$enable_shared" = yes && enable_static=no
14696     if test -n "$RANLIB"; then
14697       archive_cmds="$archive_cmds~\$RANLIB \$lib"
14698       postinstall_cmds='$RANLIB $lib'
14699     fi
14700     ;;
14701
14702   aix[4-9]*)
14703     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14704       test "$enable_shared" = yes && enable_static=no
14705     fi
14706     ;;
14707   esac
14708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14709 $as_echo "$enable_shared" >&6; }
14710
14711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14712 $as_echo_n "checking whether to build static libraries... " >&6; }
14713   # Make sure either enable_shared or enable_static is yes.
14714   test "$enable_shared" = yes || enable_static=yes
14715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14716 $as_echo "$enable_static" >&6; }
14717
14718
14719
14720
14721 fi
14722 ac_ext=c
14723 ac_cpp='$CPP $CPPFLAGS'
14724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14727
14728 CC="$lt_save_CC"
14729
14730
14731 ac_ext=cpp
14732 ac_cpp='$CXXCPP $CPPFLAGS'
14733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14736
14737 archive_cmds_need_lc_CXX=no
14738 allow_undefined_flag_CXX=
14739 always_export_symbols_CXX=no
14740 archive_expsym_cmds_CXX=
14741 compiler_needs_object_CXX=no
14742 export_dynamic_flag_spec_CXX=
14743 hardcode_direct_CXX=no
14744 hardcode_direct_absolute_CXX=no
14745 hardcode_libdir_flag_spec_CXX=
14746 hardcode_libdir_flag_spec_ld_CXX=
14747 hardcode_libdir_separator_CXX=
14748 hardcode_minus_L_CXX=no
14749 hardcode_shlibpath_var_CXX=unsupported
14750 hardcode_automatic_CXX=no
14751 inherit_rpath_CXX=no
14752 module_cmds_CXX=
14753 module_expsym_cmds_CXX=
14754 link_all_deplibs_CXX=unknown
14755 old_archive_cmds_CXX=$old_archive_cmds
14756 no_undefined_flag_CXX=
14757 whole_archive_flag_spec_CXX=
14758 enable_shared_with_static_runtimes_CXX=no
14759
14760 # Source file extension for C++ test sources.
14761 ac_ext=cpp
14762
14763 # Object file extension for compiled C++ test sources.
14764 objext=o
14765 objext_CXX=$objext
14766
14767 # No sense in running all these tests if we already determined that
14768 # the CXX compiler isn't working.  Some variables (like enable_shared)
14769 # are currently assumed to apply to all compilers on this platform,
14770 # and will be corrupted by setting them based on a non-working compiler.
14771 if test "$_lt_caught_CXX_error" != yes; then
14772   # Code to be used in simple compile tests
14773   lt_simple_compile_test_code="int some_variable = 0;"
14774
14775   # Code to be used in simple link tests
14776   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14777
14778   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14779
14780
14781
14782
14783
14784
14785 # If no C compiler was specified, use CC.
14786 LTCC=${LTCC-"$CC"}
14787
14788 # If no C compiler flags were specified, use CFLAGS.
14789 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14790
14791 # Allow CC to be a program name with arguments.
14792 compiler=$CC
14793
14794
14795   # save warnings/boilerplate of simple test code
14796   ac_outfile=conftest.$ac_objext
14797 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14798 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14799 _lt_compiler_boilerplate=`cat conftest.err`
14800 $RM conftest*
14801
14802   ac_outfile=conftest.$ac_objext
14803 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14804 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14805 _lt_linker_boilerplate=`cat conftest.err`
14806 $RM -r conftest*
14807
14808
14809   # Allow CC to be a program name with arguments.
14810   lt_save_CC=$CC
14811   lt_save_LD=$LD
14812   lt_save_GCC=$GCC
14813   GCC=$GXX
14814   lt_save_with_gnu_ld=$with_gnu_ld
14815   lt_save_path_LD=$lt_cv_path_LD
14816   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14817     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14818   else
14819     $as_unset lt_cv_prog_gnu_ld
14820   fi
14821   if test -n "${lt_cv_path_LDCXX+set}"; then
14822     lt_cv_path_LD=$lt_cv_path_LDCXX
14823   else
14824     $as_unset lt_cv_path_LD
14825   fi
14826   test -z "${LDCXX+set}" || LD=$LDCXX
14827   CC=${CXX-"c++"}
14828   compiler=$CC
14829   compiler_CXX=$CC
14830   for cc_temp in $compiler""; do
14831   case $cc_temp in
14832     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14833     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14834     \-*) ;;
14835     *) break;;
14836   esac
14837 done
14838 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14839
14840
14841   if test -n "$compiler"; then
14842     # We don't want -fno-exception when compiling C++ code, so set the
14843     # no_builtin_flag separately
14844     if test "$GXX" = yes; then
14845       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14846     else
14847       lt_prog_compiler_no_builtin_flag_CXX=
14848     fi
14849
14850     if test "$GXX" = yes; then
14851       # Set up default GNU C++ configuration
14852
14853
14854
14855 # Check whether --with-gnu-ld was given.
14856 if test "${with_gnu_ld+set}" = set; then :
14857   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14858 else
14859   with_gnu_ld=no
14860 fi
14861
14862 ac_prog=ld
14863 if test "$GCC" = yes; then
14864   # Check if gcc -print-prog-name=ld gives a path.
14865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14866 $as_echo_n "checking for ld used by $CC... " >&6; }
14867   case $host in
14868   *-*-mingw*)
14869     # gcc leaves a trailing carriage return which upsets mingw
14870     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14871   *)
14872     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14873   esac
14874   case $ac_prog in
14875     # Accept absolute paths.
14876     [\\/]* | ?:[\\/]*)
14877       re_direlt='/[^/][^/]*/\.\./'
14878       # Canonicalize the pathname of ld
14879       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14880       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14881         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14882       done
14883       test -z "$LD" && LD="$ac_prog"
14884       ;;
14885   "")
14886     # If it fails, then pretend we aren't using GCC.
14887     ac_prog=ld
14888     ;;
14889   *)
14890     # If it is relative, then search for the first ld in PATH.
14891     with_gnu_ld=unknown
14892     ;;
14893   esac
14894 elif test "$with_gnu_ld" = yes; then
14895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14896 $as_echo_n "checking for GNU ld... " >&6; }
14897 else
14898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14899 $as_echo_n "checking for non-GNU ld... " >&6; }
14900 fi
14901 if test "${lt_cv_path_LD+set}" = set; then :
14902   $as_echo_n "(cached) " >&6
14903 else
14904   if test -z "$LD"; then
14905   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14906   for ac_dir in $PATH; do
14907     IFS="$lt_save_ifs"
14908     test -z "$ac_dir" && ac_dir=.
14909     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14910       lt_cv_path_LD="$ac_dir/$ac_prog"
14911       # Check to see if the program is GNU ld.  I'd rather use --version,
14912       # but apparently some variants of GNU ld only accept -v.
14913       # Break only if it was the GNU/non-GNU ld that we prefer.
14914       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14915       *GNU* | *'with BFD'*)
14916         test "$with_gnu_ld" != no && break
14917         ;;
14918       *)
14919         test "$with_gnu_ld" != yes && break
14920         ;;
14921       esac
14922     fi
14923   done
14924   IFS="$lt_save_ifs"
14925 else
14926   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14927 fi
14928 fi
14929
14930 LD="$lt_cv_path_LD"
14931 if test -n "$LD"; then
14932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14933 $as_echo "$LD" >&6; }
14934 else
14935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14936 $as_echo "no" >&6; }
14937 fi
14938 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14940 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14941 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14942   $as_echo_n "(cached) " >&6
14943 else
14944   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14945 case `$LD -v 2>&1 </dev/null` in
14946 *GNU* | *'with BFD'*)
14947   lt_cv_prog_gnu_ld=yes
14948   ;;
14949 *)
14950   lt_cv_prog_gnu_ld=no
14951   ;;
14952 esac
14953 fi
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14955 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14956 with_gnu_ld=$lt_cv_prog_gnu_ld
14957
14958
14959
14960
14961
14962
14963
14964       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14965       # archiving commands below assume that GNU ld is being used.
14966       if test "$with_gnu_ld" = yes; then
14967         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14968         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14969
14970         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14971         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14972
14973         # If archive_cmds runs LD, not CC, wlarc should be empty
14974         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14975         #     investigate it a little bit more. (MM)
14976         wlarc='${wl}'
14977
14978         # ancient GNU ld didn't support --whole-archive et. al.
14979         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14980           $GREP 'no-whole-archive' > /dev/null; then
14981           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14982         else
14983           whole_archive_flag_spec_CXX=
14984         fi
14985       else
14986         with_gnu_ld=no
14987         wlarc=
14988
14989         # A generic and very simple default shared library creation
14990         # command for GNU C++ for the case where it uses the native
14991         # linker, instead of GNU ld.  If possible, this setting should
14992         # overridden to take advantage of the native linker features on
14993         # the platform it is being used on.
14994         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14995       fi
14996
14997       # Commands to make compiler produce verbose output that lists
14998       # what "hidden" libraries, object files and flags are used when
14999       # linking a shared library.
15000       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15001
15002     else
15003       GXX=no
15004       with_gnu_ld=no
15005       wlarc=
15006     fi
15007
15008     # PORTME: fill in a description of your system's C++ link characteristics
15009     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15010 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15011     ld_shlibs_CXX=yes
15012     case $host_os in
15013       aix3*)
15014         # FIXME: insert proper C++ library support
15015         ld_shlibs_CXX=no
15016         ;;
15017       aix[4-9]*)
15018         if test "$host_cpu" = ia64; then
15019           # On IA64, the linker does run time linking by default, so we don't
15020           # have to do anything special.
15021           aix_use_runtimelinking=no
15022           exp_sym_flag='-Bexport'
15023           no_entry_flag=""
15024         else
15025           aix_use_runtimelinking=no
15026
15027           # Test if we are trying to use run time linking or normal
15028           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15029           # need to do runtime linking.
15030           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15031             for ld_flag in $LDFLAGS; do
15032               case $ld_flag in
15033               *-brtl*)
15034                 aix_use_runtimelinking=yes
15035                 break
15036                 ;;
15037               esac
15038             done
15039             ;;
15040           esac
15041
15042           exp_sym_flag='-bexport'
15043           no_entry_flag='-bnoentry'
15044         fi
15045
15046         # When large executables or shared objects are built, AIX ld can
15047         # have problems creating the table of contents.  If linking a library
15048         # or program results in "error TOC overflow" add -mminimal-toc to
15049         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15050         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15051
15052         archive_cmds_CXX=''
15053         hardcode_direct_CXX=yes
15054         hardcode_direct_absolute_CXX=yes
15055         hardcode_libdir_separator_CXX=':'
15056         link_all_deplibs_CXX=yes
15057         file_list_spec_CXX='${wl}-f,'
15058
15059         if test "$GXX" = yes; then
15060           case $host_os in aix4.[012]|aix4.[012].*)
15061           # We only want to do this on AIX 4.2 and lower, the check
15062           # below for broken collect2 doesn't work under 4.3+
15063           collect2name=`${CC} -print-prog-name=collect2`
15064           if test -f "$collect2name" &&
15065              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15066           then
15067             # We have reworked collect2
15068             :
15069           else
15070             # We have old collect2
15071             hardcode_direct_CXX=unsupported
15072             # It fails to find uninstalled libraries when the uninstalled
15073             # path is not listed in the libpath.  Setting hardcode_minus_L
15074             # to unsupported forces relinking
15075             hardcode_minus_L_CXX=yes
15076             hardcode_libdir_flag_spec_CXX='-L$libdir'
15077             hardcode_libdir_separator_CXX=
15078           fi
15079           esac
15080           shared_flag='-shared'
15081           if test "$aix_use_runtimelinking" = yes; then
15082             shared_flag="$shared_flag "'${wl}-G'
15083           fi
15084         else
15085           # not using gcc
15086           if test "$host_cpu" = ia64; then
15087           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15088           # chokes on -Wl,-G. The following line is correct:
15089           shared_flag='-G'
15090           else
15091             if test "$aix_use_runtimelinking" = yes; then
15092               shared_flag='${wl}-G'
15093             else
15094               shared_flag='${wl}-bM:SRE'
15095             fi
15096           fi
15097         fi
15098
15099         export_dynamic_flag_spec_CXX='${wl}-bexpall'
15100         # It seems that -bexpall does not export symbols beginning with
15101         # underscore (_), so it is better to generate a list of symbols to
15102         # export.
15103         always_export_symbols_CXX=yes
15104         if test "$aix_use_runtimelinking" = yes; then
15105           # Warning - without using the other runtime loading flags (-brtl),
15106           # -berok will link without error, but may produce a broken library.
15107           allow_undefined_flag_CXX='-berok'
15108           # Determine the default libpath from the value encoded in an empty
15109           # executable.
15110           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111 /* end confdefs.h.  */
15112
15113 int
15114 main ()
15115 {
15116
15117   ;
15118   return 0;
15119 }
15120 _ACEOF
15121 if ac_fn_cxx_try_link "$LINENO"; then :
15122
15123 lt_aix_libpath_sed='
15124     /Import File Strings/,/^$/ {
15125         /^0/ {
15126             s/^0  *\(.*\)$/\1/
15127             p
15128         }
15129     }'
15130 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15131 # Check for a 64-bit object if we didn't find anything.
15132 if test -z "$aix_libpath"; then
15133   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15134 fi
15135 fi
15136 rm -f core conftest.err conftest.$ac_objext \
15137     conftest$ac_exeext conftest.$ac_ext
15138 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15139
15140           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15141
15142           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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15143         else
15144           if test "$host_cpu" = ia64; then
15145             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15146             allow_undefined_flag_CXX="-z nodefs"
15147             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"
15148           else
15149             # Determine the default libpath from the value encoded in an
15150             # empty executable.
15151             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15152 /* end confdefs.h.  */
15153
15154 int
15155 main ()
15156 {
15157
15158   ;
15159   return 0;
15160 }
15161 _ACEOF
15162 if ac_fn_cxx_try_link "$LINENO"; then :
15163
15164 lt_aix_libpath_sed='
15165     /Import File Strings/,/^$/ {
15166         /^0/ {
15167             s/^0  *\(.*\)$/\1/
15168             p
15169         }
15170     }'
15171 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15172 # Check for a 64-bit object if we didn't find anything.
15173 if test -z "$aix_libpath"; then
15174   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15175 fi
15176 fi
15177 rm -f core conftest.err conftest.$ac_objext \
15178     conftest$ac_exeext conftest.$ac_ext
15179 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15180
15181             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15182             # Warning - without using the other run time loading flags,
15183             # -berok will link without error, but may produce a broken library.
15184             no_undefined_flag_CXX=' ${wl}-bernotok'
15185             allow_undefined_flag_CXX=' ${wl}-berok'
15186             # Exported symbols can be pulled into shared objects from archives
15187             whole_archive_flag_spec_CXX='$convenience'
15188             archive_cmds_need_lc_CXX=yes
15189             # This is similar to how AIX traditionally builds its shared
15190             # libraries.
15191             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'
15192           fi
15193         fi
15194         ;;
15195
15196       beos*)
15197         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15198           allow_undefined_flag_CXX=unsupported
15199           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15200           # support --undefined.  This deserves some investigation.  FIXME
15201           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15202         else
15203           ld_shlibs_CXX=no
15204         fi
15205         ;;
15206
15207       chorus*)
15208         case $cc_basename in
15209           *)
15210           # FIXME: insert proper C++ library support
15211           ld_shlibs_CXX=no
15212           ;;
15213         esac
15214         ;;
15215
15216       cygwin* | mingw* | pw32* | cegcc*)
15217         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15218         # as there is no search path for DLLs.
15219         hardcode_libdir_flag_spec_CXX='-L$libdir'
15220         allow_undefined_flag_CXX=unsupported
15221         always_export_symbols_CXX=no
15222         enable_shared_with_static_runtimes_CXX=yes
15223
15224         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15225           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'
15226           # If the export-symbols file already is a .def file (1st line
15227           # is EXPORTS), use it as is; otherwise, prepend...
15228           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15229             cp $export_symbols $output_objdir/$soname.def;
15230           else
15231             echo EXPORTS > $output_objdir/$soname.def;
15232             cat $export_symbols >> $output_objdir/$soname.def;
15233           fi~
15234           $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'
15235         else
15236           ld_shlibs_CXX=no
15237         fi
15238         ;;
15239       darwin* | rhapsody*)
15240
15241
15242   archive_cmds_need_lc_CXX=no
15243   hardcode_direct_CXX=no
15244   hardcode_automatic_CXX=yes
15245   hardcode_shlibpath_var_CXX=unsupported
15246   whole_archive_flag_spec_CXX=''
15247   link_all_deplibs_CXX=yes
15248   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15249   case $cc_basename in
15250      ifort*) _lt_dar_can_shared=yes ;;
15251      *) _lt_dar_can_shared=$GCC ;;
15252   esac
15253   if test "$_lt_dar_can_shared" = "yes"; then
15254     output_verbose_link_cmd=echo
15255     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}"
15256     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15257     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}"
15258     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}"
15259        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15260       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}"
15261       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}"
15262     fi
15263
15264   else
15265   ld_shlibs_CXX=no
15266   fi
15267
15268         ;;
15269
15270       dgux*)
15271         case $cc_basename in
15272           ec++*)
15273             # FIXME: insert proper C++ library support
15274             ld_shlibs_CXX=no
15275             ;;
15276           ghcx*)
15277             # Green Hills C++ Compiler
15278             # FIXME: insert proper C++ library support
15279             ld_shlibs_CXX=no
15280             ;;
15281           *)
15282             # FIXME: insert proper C++ library support
15283             ld_shlibs_CXX=no
15284             ;;
15285         esac
15286         ;;
15287
15288       freebsd[12]*)
15289         # C++ shared libraries reported to be fairly broken before
15290         # switch to ELF
15291         ld_shlibs_CXX=no
15292         ;;
15293
15294       freebsd-elf*)
15295         archive_cmds_need_lc_CXX=no
15296         ;;
15297
15298       freebsd* | dragonfly*)
15299         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15300         # conventions
15301         ld_shlibs_CXX=yes
15302         ;;
15303
15304       gnu*)
15305         ;;
15306
15307       hpux9*)
15308         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15309         hardcode_libdir_separator_CXX=:
15310         export_dynamic_flag_spec_CXX='${wl}-E'
15311         hardcode_direct_CXX=yes
15312         hardcode_minus_L_CXX=yes # Not in the search PATH,
15313                                              # but as the default
15314                                              # location of the library.
15315
15316         case $cc_basename in
15317           CC*)
15318             # FIXME: insert proper C++ library support
15319             ld_shlibs_CXX=no
15320             ;;
15321           aCC*)
15322             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'
15323             # Commands to make compiler produce verbose output that lists
15324             # what "hidden" libraries, object files and flags are used when
15325             # linking a shared library.
15326             #
15327             # There doesn't appear to be a way to prevent this compiler from
15328             # explicitly linking system object files so we need to strip them
15329             # from the output so that they don't get included in the library
15330             # dependencies.
15331             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; $ECHO "X$list" | $Xsed'
15332             ;;
15333           *)
15334             if test "$GXX" = yes; then
15335               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
15336             else
15337               # FIXME: insert proper C++ library support
15338               ld_shlibs_CXX=no
15339             fi
15340             ;;
15341         esac
15342         ;;
15343
15344       hpux10*|hpux11*)
15345         if test $with_gnu_ld = no; then
15346           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15347           hardcode_libdir_separator_CXX=:
15348
15349           case $host_cpu in
15350             hppa*64*|ia64*)
15351               ;;
15352             *)
15353               export_dynamic_flag_spec_CXX='${wl}-E'
15354               ;;
15355           esac
15356         fi
15357         case $host_cpu in
15358           hppa*64*|ia64*)
15359             hardcode_direct_CXX=no
15360             hardcode_shlibpath_var_CXX=no
15361             ;;
15362           *)
15363             hardcode_direct_CXX=yes
15364             hardcode_direct_absolute_CXX=yes
15365             hardcode_minus_L_CXX=yes # Not in the search PATH,
15366                                                  # but as the default
15367                                                  # location of the library.
15368             ;;
15369         esac
15370
15371         case $cc_basename in
15372           CC*)
15373             # FIXME: insert proper C++ library support
15374             ld_shlibs_CXX=no
15375             ;;
15376           aCC*)
15377             case $host_cpu in
15378               hppa*64*)
15379                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15380                 ;;
15381               ia64*)
15382                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15383                 ;;
15384               *)
15385                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15386                 ;;
15387             esac
15388             # Commands to make compiler produce verbose output that lists
15389             # what "hidden" libraries, object files and flags are used when
15390             # linking a shared library.
15391             #
15392             # There doesn't appear to be a way to prevent this compiler from
15393             # explicitly linking system object files so we need to strip them
15394             # from the output so that they don't get included in the library
15395             # dependencies.
15396             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; $ECHO "X$list" | $Xsed'
15397             ;;
15398           *)
15399             if test "$GXX" = yes; then
15400               if test $with_gnu_ld = no; then
15401                 case $host_cpu in
15402                   hppa*64*)
15403                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15404                     ;;
15405                   ia64*)
15406                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15407                     ;;
15408                   *)
15409                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15410                     ;;
15411                 esac
15412               fi
15413             else
15414               # FIXME: insert proper C++ library support
15415               ld_shlibs_CXX=no
15416             fi
15417             ;;
15418         esac
15419         ;;
15420
15421       interix[3-9]*)
15422         hardcode_direct_CXX=no
15423         hardcode_shlibpath_var_CXX=no
15424         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15425         export_dynamic_flag_spec_CXX='${wl}-E'
15426         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15427         # Instead, shared libraries are loaded at an image base (0x10000000 by
15428         # default) and relocated if they conflict, which is a slow very memory
15429         # consuming and fragmenting process.  To avoid this, we pick a random,
15430         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15431         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15432         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'
15433         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'
15434         ;;
15435       irix5* | irix6*)
15436         case $cc_basename in
15437           CC*)
15438             # SGI C++
15439             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15440
15441             # Archives containing C++ object files must be created using
15442             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15443             # necessary to make sure instantiated templates are included
15444             # in the archive.
15445             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15446             ;;
15447           *)
15448             if test "$GXX" = yes; then
15449               if test "$with_gnu_ld" = no; then
15450                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15451               else
15452                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
15453               fi
15454             fi
15455             link_all_deplibs_CXX=yes
15456             ;;
15457         esac
15458         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15459         hardcode_libdir_separator_CXX=:
15460         inherit_rpath_CXX=yes
15461         ;;
15462
15463       linux* | k*bsd*-gnu)
15464         case $cc_basename in
15465           KCC*)
15466             # Kuck and Associates, Inc. (KAI) C++ Compiler
15467
15468             # KCC will only create a shared library if the output file
15469             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15470             # to its proper name (with version) after linking.
15471             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'
15472             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'
15473             # Commands to make compiler produce verbose output that lists
15474             # what "hidden" libraries, object files and flags are used when
15475             # linking a shared library.
15476             #
15477             # There doesn't appear to be a way to prevent this compiler from
15478             # explicitly linking system object files so we need to strip them
15479             # from the output so that they don't get included in the library
15480             # dependencies.
15481             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; $ECHO "X$list" | $Xsed'
15482
15483             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15484             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15485
15486             # Archives containing C++ object files must be created using
15487             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15488             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15489             ;;
15490           icpc* | ecpc* )
15491             # Intel C++
15492             with_gnu_ld=yes
15493             # version 8.0 and above of icpc choke on multiply defined symbols
15494             # if we add $predep_objects and $postdep_objects, however 7.1 and
15495             # earlier do not add the objects themselves.
15496             case `$CC -V 2>&1` in
15497               *"Version 7."*)
15498                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15499                 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'
15500                 ;;
15501               *)  # Version 8.0 or newer
15502                 tmp_idyn=
15503                 case $host_cpu in
15504                   ia64*) tmp_idyn=' -i_dynamic';;
15505                 esac
15506                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15507                 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'
15508                 ;;
15509             esac
15510             archive_cmds_need_lc_CXX=no
15511             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15512             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15513             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15514             ;;
15515           pgCC* | pgcpp*)
15516             # Portland Group C++ compiler
15517             case `$CC -V` in
15518             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15519               prelink_cmds_CXX='tpldir=Template.dir~
15520                 rm -rf $tpldir~
15521                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15522                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15523               old_archive_cmds_CXX='tpldir=Template.dir~
15524                 rm -rf $tpldir~
15525                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15526                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15527                 $RANLIB $oldlib'
15528               archive_cmds_CXX='tpldir=Template.dir~
15529                 rm -rf $tpldir~
15530                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15531                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15532               archive_expsym_cmds_CXX='tpldir=Template.dir~
15533                 rm -rf $tpldir~
15534                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15535                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15536               ;;
15537             *) # Version 6 will use weak symbols
15538               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15539               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'
15540               ;;
15541             esac
15542
15543             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15544             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15545             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15546             ;;
15547           cxx*)
15548             # Compaq C++
15549             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15550             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'
15551
15552             runpath_var=LD_RUN_PATH
15553             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15554             hardcode_libdir_separator_CXX=:
15555
15556             # Commands to make compiler produce verbose output that lists
15557             # what "hidden" libraries, object files and flags are used when
15558             # linking a shared library.
15559             #
15560             # There doesn't appear to be a way to prevent this compiler from
15561             # explicitly linking system object files so we need to strip them
15562             # from the output so that they don't get included in the library
15563             # dependencies.
15564             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15565             ;;
15566           xl*)
15567             # IBM XL 8.0 on PPC, with GNU ld
15568             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15569             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15570             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15571             if test "x$supports_anon_versioning" = xyes; then
15572               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15573                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15574                 echo "local: *; };" >> $output_objdir/$libname.ver~
15575                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15576             fi
15577             ;;
15578           *)
15579             case `$CC -V 2>&1 | sed 5q` in
15580             *Sun\ C*)
15581               # Sun C++ 5.9
15582               no_undefined_flag_CXX=' -zdefs'
15583               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15584               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'
15585               hardcode_libdir_flag_spec_CXX='-R$libdir'
15586               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15587               compiler_needs_object_CXX=yes
15588
15589               # Not sure whether something based on
15590               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15591               # would be better.
15592               output_verbose_link_cmd='echo'
15593
15594               # Archives containing C++ object files must be created using
15595               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15596               # necessary to make sure instantiated templates are included
15597               # in the archive.
15598               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15599               ;;
15600             esac
15601             ;;
15602         esac
15603         ;;
15604
15605       lynxos*)
15606         # FIXME: insert proper C++ library support
15607         ld_shlibs_CXX=no
15608         ;;
15609
15610       m88k*)
15611         # FIXME: insert proper C++ library support
15612         ld_shlibs_CXX=no
15613         ;;
15614
15615       mvs*)
15616         case $cc_basename in
15617           cxx*)
15618             # FIXME: insert proper C++ library support
15619             ld_shlibs_CXX=no
15620             ;;
15621           *)
15622             # FIXME: insert proper C++ library support
15623             ld_shlibs_CXX=no
15624             ;;
15625         esac
15626         ;;
15627
15628       netbsd*)
15629         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15630           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15631           wlarc=
15632           hardcode_libdir_flag_spec_CXX='-R$libdir'
15633           hardcode_direct_CXX=yes
15634           hardcode_shlibpath_var_CXX=no
15635         fi
15636         # Workaround some broken pre-1.5 toolchains
15637         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15638         ;;
15639
15640       *nto* | *qnx*)
15641         ld_shlibs_CXX=yes
15642         ;;
15643
15644       openbsd2*)
15645         # C++ shared libraries are fairly broken
15646         ld_shlibs_CXX=no
15647         ;;
15648
15649       openbsd*)
15650         if test -f /usr/libexec/ld.so; then
15651           hardcode_direct_CXX=yes
15652           hardcode_shlibpath_var_CXX=no
15653           hardcode_direct_absolute_CXX=yes
15654           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15655           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15656           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15657             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15658             export_dynamic_flag_spec_CXX='${wl}-E'
15659             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15660           fi
15661           output_verbose_link_cmd=echo
15662         else
15663           ld_shlibs_CXX=no
15664         fi
15665         ;;
15666
15667       osf3* | osf4* | osf5*)
15668         case $cc_basename in
15669           KCC*)
15670             # Kuck and Associates, Inc. (KAI) C++ Compiler
15671
15672             # KCC will only create a shared library if the output file
15673             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15674             # to its proper name (with version) after linking.
15675             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'
15676
15677             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15678             hardcode_libdir_separator_CXX=:
15679
15680             # Archives containing C++ object files must be created using
15681             # the KAI C++ compiler.
15682             case $host in
15683               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15684               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15685             esac
15686             ;;
15687           RCC*)
15688             # Rational C++ 2.4.1
15689             # FIXME: insert proper C++ library support
15690             ld_shlibs_CXX=no
15691             ;;
15692           cxx*)
15693             case $host in
15694               osf3*)
15695                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15696                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15697                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15698                 ;;
15699               *)
15700                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15701                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15702                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15703                   echo "-hidden">> $lib.exp~
15704                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
15705                   $RM $lib.exp'
15706                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15707                 ;;
15708             esac
15709
15710             hardcode_libdir_separator_CXX=:
15711
15712             # Commands to make compiler produce verbose output that lists
15713             # what "hidden" libraries, object files and flags are used when
15714             # linking a shared library.
15715             #
15716             # There doesn't appear to be a way to prevent this compiler from
15717             # explicitly linking system object files so we need to strip them
15718             # from the output so that they don't get included in the library
15719             # dependencies.
15720             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15721             ;;
15722           *)
15723             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15724               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15725               case $host in
15726                 osf3*)
15727                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15728                   ;;
15729                 *)
15730                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15731                   ;;
15732               esac
15733
15734               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15735               hardcode_libdir_separator_CXX=:
15736
15737               # Commands to make compiler produce verbose output that lists
15738               # what "hidden" libraries, object files and flags are used when
15739               # linking a shared library.
15740               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15741
15742             else
15743               # FIXME: insert proper C++ library support
15744               ld_shlibs_CXX=no
15745             fi
15746             ;;
15747         esac
15748         ;;
15749
15750       psos*)
15751         # FIXME: insert proper C++ library support
15752         ld_shlibs_CXX=no
15753         ;;
15754
15755       sunos4*)
15756         case $cc_basename in
15757           CC*)
15758             # Sun C++ 4.x
15759             # FIXME: insert proper C++ library support
15760             ld_shlibs_CXX=no
15761             ;;
15762           lcc*)
15763             # Lucid
15764             # FIXME: insert proper C++ library support
15765             ld_shlibs_CXX=no
15766             ;;
15767           *)
15768             # FIXME: insert proper C++ library support
15769             ld_shlibs_CXX=no
15770             ;;
15771         esac
15772         ;;
15773
15774       solaris*)
15775         case $cc_basename in
15776           CC*)
15777             # Sun C++ 4.2, 5.x and Centerline C++
15778             archive_cmds_need_lc_CXX=yes
15779             no_undefined_flag_CXX=' -zdefs'
15780             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15781             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15782               $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'
15783
15784             hardcode_libdir_flag_spec_CXX='-R$libdir'
15785             hardcode_shlibpath_var_CXX=no
15786             case $host_os in
15787               solaris2.[0-5] | solaris2.[0-5].*) ;;
15788               *)
15789                 # The compiler driver will combine and reorder linker options,
15790                 # but understands `-z linker_flag'.
15791                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15792                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15793                 ;;
15794             esac
15795             link_all_deplibs_CXX=yes
15796
15797             output_verbose_link_cmd='echo'
15798
15799             # Archives containing C++ object files must be created using
15800             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15801             # necessary to make sure instantiated templates are included
15802             # in the archive.
15803             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15804             ;;
15805           gcx*)
15806             # Green Hills C++ Compiler
15807             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15808
15809             # The C++ compiler must be used to create the archive.
15810             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15811             ;;
15812           *)
15813             # GNU C++ compiler with Solaris linker
15814             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15815               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15816               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15817                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15818                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15819                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15820
15821                 # Commands to make compiler produce verbose output that lists
15822                 # what "hidden" libraries, object files and flags are used when
15823                 # linking a shared library.
15824                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15825               else
15826                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15827                 # platform.
15828                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15829                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15830                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15831
15832                 # Commands to make compiler produce verbose output that lists
15833                 # what "hidden" libraries, object files and flags are used when
15834                 # linking a shared library.
15835                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15836               fi
15837
15838               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15839               case $host_os in
15840                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15841                 *)
15842                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15843                   ;;
15844               esac
15845             fi
15846             ;;
15847         esac
15848         ;;
15849
15850     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15851       no_undefined_flag_CXX='${wl}-z,text'
15852       archive_cmds_need_lc_CXX=no
15853       hardcode_shlibpath_var_CXX=no
15854       runpath_var='LD_RUN_PATH'
15855
15856       case $cc_basename in
15857         CC*)
15858           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15859           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15860           ;;
15861         *)
15862           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15863           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15864           ;;
15865       esac
15866       ;;
15867
15868       sysv5* | sco3.2v5* | sco5v6*)
15869         # Note: We can NOT use -z defs as we might desire, because we do not
15870         # link with -lc, and that would cause any symbols used from libc to
15871         # always be unresolved, which means just about no library would
15872         # ever link correctly.  If we're not using GNU ld we use -z text
15873         # though, which does catch some bad symbols but isn't as heavy-handed
15874         # as -z defs.
15875         no_undefined_flag_CXX='${wl}-z,text'
15876         allow_undefined_flag_CXX='${wl}-z,nodefs'
15877         archive_cmds_need_lc_CXX=no
15878         hardcode_shlibpath_var_CXX=no
15879         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15880         hardcode_libdir_separator_CXX=':'
15881         link_all_deplibs_CXX=yes
15882         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15883         runpath_var='LD_RUN_PATH'
15884
15885         case $cc_basename in
15886           CC*)
15887             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15888             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15889             ;;
15890           *)
15891             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15892             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15893             ;;
15894         esac
15895       ;;
15896
15897       tandem*)
15898         case $cc_basename in
15899           NCC*)
15900             # NonStop-UX NCC 3.20
15901             # FIXME: insert proper C++ library support
15902             ld_shlibs_CXX=no
15903             ;;
15904           *)
15905             # FIXME: insert proper C++ library support
15906             ld_shlibs_CXX=no
15907             ;;
15908         esac
15909         ;;
15910
15911       vxworks*)
15912         # FIXME: insert proper C++ library support
15913         ld_shlibs_CXX=no
15914         ;;
15915
15916       *)
15917         # FIXME: insert proper C++ library support
15918         ld_shlibs_CXX=no
15919         ;;
15920     esac
15921
15922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15923 $as_echo "$ld_shlibs_CXX" >&6; }
15924     test "$ld_shlibs_CXX" = no && can_build_shared=no
15925
15926     GCC_CXX="$GXX"
15927     LD_CXX="$LD"
15928
15929     ## CAVEAT EMPTOR:
15930     ## There is no encapsulation within the following macros, do not change
15931     ## the running order or otherwise move them around unless you know exactly
15932     ## what you are doing...
15933     # Dependencies to place before and after the object being linked:
15934 predep_objects_CXX=
15935 postdep_objects_CXX=
15936 predeps_CXX=
15937 postdeps_CXX=
15938 compiler_lib_search_path_CXX=
15939
15940 cat > conftest.$ac_ext <<_LT_EOF
15941 class Foo
15942 {
15943 public:
15944   Foo (void) { a = 0; }
15945 private:
15946   int a;
15947 };
15948 _LT_EOF
15949
15950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15951   (eval $ac_compile) 2>&5
15952   ac_status=$?
15953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15954   test $ac_status = 0; }; then
15955   # Parse the compiler output and extract the necessary
15956   # objects, libraries and library flags.
15957
15958   # Sentinel used to keep track of whether or not we are before
15959   # the conftest object file.
15960   pre_test_object_deps_done=no
15961
15962   for p in `eval "$output_verbose_link_cmd"`; do
15963     case $p in
15964
15965     -L* | -R* | -l*)
15966        # Some compilers place space between "-{L,R}" and the path.
15967        # Remove the space.
15968        if test $p = "-L" ||
15969           test $p = "-R"; then
15970          prev=$p
15971          continue
15972        else
15973          prev=
15974        fi
15975
15976        if test "$pre_test_object_deps_done" = no; then
15977          case $p in
15978          -L* | -R*)
15979            # Internal compiler library paths should come after those
15980            # provided the user.  The postdeps already come after the
15981            # user supplied libs so there is no need to process them.
15982            if test -z "$compiler_lib_search_path_CXX"; then
15983              compiler_lib_search_path_CXX="${prev}${p}"
15984            else
15985              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15986            fi
15987            ;;
15988          # The "-l" case would never come before the object being
15989          # linked, so don't bother handling this case.
15990          esac
15991        else
15992          if test -z "$postdeps_CXX"; then
15993            postdeps_CXX="${prev}${p}"
15994          else
15995            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15996          fi
15997        fi
15998        ;;
15999
16000     *.$objext)
16001        # This assumes that the test object file only shows up
16002        # once in the compiler output.
16003        if test "$p" = "conftest.$objext"; then
16004          pre_test_object_deps_done=yes
16005          continue
16006        fi
16007
16008        if test "$pre_test_object_deps_done" = no; then
16009          if test -z "$predep_objects_CXX"; then
16010            predep_objects_CXX="$p"
16011          else
16012            predep_objects_CXX="$predep_objects_CXX $p"
16013          fi
16014        else
16015          if test -z "$postdep_objects_CXX"; then
16016            postdep_objects_CXX="$p"
16017          else
16018            postdep_objects_CXX="$postdep_objects_CXX $p"
16019          fi
16020        fi
16021        ;;
16022
16023     *) ;; # Ignore the rest.
16024
16025     esac
16026   done
16027
16028   # Clean up.
16029   rm -f a.out a.exe
16030 else
16031   echo "libtool.m4: error: problem compiling CXX test program"
16032 fi
16033
16034 $RM -f confest.$objext
16035
16036 # PORTME: override above test on systems where it is broken
16037 case $host_os in
16038 interix[3-9]*)
16039   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16040   # hack all around it, let's just trust "g++" to DTRT.
16041   predep_objects_CXX=
16042   postdep_objects_CXX=
16043   postdeps_CXX=
16044   ;;
16045
16046 linux*)
16047   case `$CC -V 2>&1 | sed 5q` in
16048   *Sun\ C*)
16049     # Sun C++ 5.9
16050
16051     # The more standards-conforming stlport4 library is
16052     # incompatible with the Cstd library. Avoid specifying
16053     # it if it's in CXXFLAGS. Ignore libCrun as
16054     # -library=stlport4 depends on it.
16055     case " $CXX $CXXFLAGS " in
16056     *" -library=stlport4 "*)
16057       solaris_use_stlport4=yes
16058       ;;
16059     esac
16060
16061     if test "$solaris_use_stlport4" != yes; then
16062       postdeps_CXX='-library=Cstd -library=Crun'
16063     fi
16064     ;;
16065   esac
16066   ;;
16067
16068 solaris*)
16069   case $cc_basename in
16070   CC*)
16071     # The more standards-conforming stlport4 library is
16072     # incompatible with the Cstd library. Avoid specifying
16073     # it if it's in CXXFLAGS. Ignore libCrun as
16074     # -library=stlport4 depends on it.
16075     case " $CXX $CXXFLAGS " in
16076     *" -library=stlport4 "*)
16077       solaris_use_stlport4=yes
16078       ;;
16079     esac
16080
16081     # Adding this requires a known-good setup of shared libraries for
16082     # Sun compiler versions before 5.6, else PIC objects from an old
16083     # archive will be linked into the output, leading to subtle bugs.
16084     if test "$solaris_use_stlport4" != yes; then
16085       postdeps_CXX='-library=Cstd -library=Crun'
16086     fi
16087     ;;
16088   esac
16089   ;;
16090 esac
16091
16092
16093 case " $postdeps_CXX " in
16094 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16095 esac
16096  compiler_lib_search_dirs_CXX=
16097 if test -n "${compiler_lib_search_path_CXX}"; then
16098  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16099 fi
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131     lt_prog_compiler_wl_CXX=
16132 lt_prog_compiler_pic_CXX=
16133 lt_prog_compiler_static_CXX=
16134
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16136 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16137
16138   # C++ specific cases for pic, static, wl, etc.
16139   if test "$GXX" = yes; then
16140     lt_prog_compiler_wl_CXX='-Wl,'
16141     lt_prog_compiler_static_CXX='-static'
16142
16143     case $host_os in
16144     aix*)
16145       # All AIX code is PIC.
16146       if test "$host_cpu" = ia64; then
16147         # AIX 5 now supports IA64 processor
16148         lt_prog_compiler_static_CXX='-Bstatic'
16149       fi
16150       ;;
16151
16152     amigaos*)
16153       case $host_cpu in
16154       powerpc)
16155             # see comment about AmigaOS4 .so support
16156             lt_prog_compiler_pic_CXX='-fPIC'
16157         ;;
16158       m68k)
16159             # FIXME: we need at least 68020 code to build shared libraries, but
16160             # adding the `-m68020' flag to GCC prevents building anything better,
16161             # like `-m68040'.
16162             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16163         ;;
16164       esac
16165       ;;
16166
16167     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16168       # PIC is the default for these OSes.
16169       ;;
16170     mingw* | cygwin* | os2* | pw32* | cegcc*)
16171       # This hack is so that the source file can tell whether it is being
16172       # built for inclusion in a dll (and should export symbols for example).
16173       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16174       # (--disable-auto-import) libraries
16175       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16176       ;;
16177     darwin* | rhapsody*)
16178       # PIC is the default on this platform
16179       # Common symbols not allowed in MH_DYLIB files
16180       lt_prog_compiler_pic_CXX='-fno-common'
16181       ;;
16182     *djgpp*)
16183       # DJGPP does not support shared libraries at all
16184       lt_prog_compiler_pic_CXX=
16185       ;;
16186     interix[3-9]*)
16187       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16188       # Instead, we relocate shared libraries at runtime.
16189       ;;
16190     sysv4*MP*)
16191       if test -d /usr/nec; then
16192         lt_prog_compiler_pic_CXX=-Kconform_pic
16193       fi
16194       ;;
16195     hpux*)
16196       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16197       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16198       # sets the default TLS model and affects inlining.
16199       case $host_cpu in
16200       hppa*64*)
16201         ;;
16202       *)
16203         lt_prog_compiler_pic_CXX='-fPIC'
16204         ;;
16205       esac
16206       ;;
16207     *qnx* | *nto*)
16208       # QNX uses GNU C++, but need to define -shared option too, otherwise
16209       # it will coredump.
16210       lt_prog_compiler_pic_CXX='-fPIC -shared'
16211       ;;
16212     *)
16213       lt_prog_compiler_pic_CXX='-fPIC'
16214       ;;
16215     esac
16216   else
16217     case $host_os in
16218       aix[4-9]*)
16219         # All AIX code is PIC.
16220         if test "$host_cpu" = ia64; then
16221           # AIX 5 now supports IA64 processor
16222           lt_prog_compiler_static_CXX='-Bstatic'
16223         else
16224           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16225         fi
16226         ;;
16227       chorus*)
16228         case $cc_basename in
16229         cxch68*)
16230           # Green Hills C++ Compiler
16231           # _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"
16232           ;;
16233         esac
16234         ;;
16235       dgux*)
16236         case $cc_basename in
16237           ec++*)
16238             lt_prog_compiler_pic_CXX='-KPIC'
16239             ;;
16240           ghcx*)
16241             # Green Hills C++ Compiler
16242             lt_prog_compiler_pic_CXX='-pic'
16243             ;;
16244           *)
16245             ;;
16246         esac
16247         ;;
16248       freebsd* | dragonfly*)
16249         # FreeBSD uses GNU C++
16250         ;;
16251       hpux9* | hpux10* | hpux11*)
16252         case $cc_basename in
16253           CC*)
16254             lt_prog_compiler_wl_CXX='-Wl,'
16255             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16256             if test "$host_cpu" != ia64; then
16257               lt_prog_compiler_pic_CXX='+Z'
16258             fi
16259             ;;
16260           aCC*)
16261             lt_prog_compiler_wl_CXX='-Wl,'
16262             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16263             case $host_cpu in
16264             hppa*64*|ia64*)
16265               # +Z the default
16266               ;;
16267             *)
16268               lt_prog_compiler_pic_CXX='+Z'
16269               ;;
16270             esac
16271             ;;
16272           *)
16273             ;;
16274         esac
16275         ;;
16276       interix*)
16277         # This is c89, which is MS Visual C++ (no shared libs)
16278         # Anyone wants to do a port?
16279         ;;
16280       irix5* | irix6* | nonstopux*)
16281         case $cc_basename in
16282           CC*)
16283             lt_prog_compiler_wl_CXX='-Wl,'
16284             lt_prog_compiler_static_CXX='-non_shared'
16285             # CC pic flag -KPIC is the default.
16286             ;;
16287           *)
16288             ;;
16289         esac
16290         ;;
16291       linux* | k*bsd*-gnu)
16292         case $cc_basename in
16293           KCC*)
16294             # KAI C++ Compiler
16295             lt_prog_compiler_wl_CXX='--backend -Wl,'
16296             lt_prog_compiler_pic_CXX='-fPIC'
16297             ;;
16298           ecpc* )
16299             # old Intel C++ for x86_64 which still supported -KPIC.
16300             lt_prog_compiler_wl_CXX='-Wl,'
16301             lt_prog_compiler_pic_CXX='-KPIC'
16302             lt_prog_compiler_static_CXX='-static'
16303             ;;
16304           icpc* )
16305             # Intel C++, used to be incompatible with GCC.
16306             # ICC 10 doesn't accept -KPIC any more.
16307             lt_prog_compiler_wl_CXX='-Wl,'
16308             lt_prog_compiler_pic_CXX='-fPIC'
16309             lt_prog_compiler_static_CXX='-static'
16310             ;;
16311           pgCC* | pgcpp*)
16312             # Portland Group C++ compiler
16313             lt_prog_compiler_wl_CXX='-Wl,'
16314             lt_prog_compiler_pic_CXX='-fpic'
16315             lt_prog_compiler_static_CXX='-Bstatic'
16316             ;;
16317           cxx*)
16318             # Compaq C++
16319             # Make sure the PIC flag is empty.  It appears that all Alpha
16320             # Linux and Compaq Tru64 Unix objects are PIC.
16321             lt_prog_compiler_pic_CXX=
16322             lt_prog_compiler_static_CXX='-non_shared'
16323             ;;
16324           xlc* | xlC*)
16325             # IBM XL 8.0 on PPC
16326             lt_prog_compiler_wl_CXX='-Wl,'
16327             lt_prog_compiler_pic_CXX='-qpic'
16328             lt_prog_compiler_static_CXX='-qstaticlink'
16329             ;;
16330           *)
16331             case `$CC -V 2>&1 | sed 5q` in
16332             *Sun\ C*)
16333               # Sun C++ 5.9
16334               lt_prog_compiler_pic_CXX='-KPIC'
16335               lt_prog_compiler_static_CXX='-Bstatic'
16336               lt_prog_compiler_wl_CXX='-Qoption ld '
16337               ;;
16338             esac
16339             ;;
16340         esac
16341         ;;
16342       lynxos*)
16343         ;;
16344       m88k*)
16345         ;;
16346       mvs*)
16347         case $cc_basename in
16348           cxx*)
16349             lt_prog_compiler_pic_CXX='-W c,exportall'
16350             ;;
16351           *)
16352             ;;
16353         esac
16354         ;;
16355       netbsd*)
16356         ;;
16357       *qnx* | *nto*)
16358         # QNX uses GNU C++, but need to define -shared option too, otherwise
16359         # it will coredump.
16360         lt_prog_compiler_pic_CXX='-fPIC -shared'
16361         ;;
16362       osf3* | osf4* | osf5*)
16363         case $cc_basename in
16364           KCC*)
16365             lt_prog_compiler_wl_CXX='--backend -Wl,'
16366             ;;
16367           RCC*)
16368             # Rational C++ 2.4.1
16369             lt_prog_compiler_pic_CXX='-pic'
16370             ;;
16371           cxx*)
16372             # Digital/Compaq C++
16373             lt_prog_compiler_wl_CXX='-Wl,'
16374             # Make sure the PIC flag is empty.  It appears that all Alpha
16375             # Linux and Compaq Tru64 Unix objects are PIC.
16376             lt_prog_compiler_pic_CXX=
16377             lt_prog_compiler_static_CXX='-non_shared'
16378             ;;
16379           *)
16380             ;;
16381         esac
16382         ;;
16383       psos*)
16384         ;;
16385       solaris*)
16386         case $cc_basename in
16387           CC*)
16388             # Sun C++ 4.2, 5.x and Centerline C++
16389             lt_prog_compiler_pic_CXX='-KPIC'
16390             lt_prog_compiler_static_CXX='-Bstatic'
16391             lt_prog_compiler_wl_CXX='-Qoption ld '
16392             ;;
16393           gcx*)
16394             # Green Hills C++ Compiler
16395             lt_prog_compiler_pic_CXX='-PIC'
16396             ;;
16397           *)
16398             ;;
16399         esac
16400         ;;
16401       sunos4*)
16402         case $cc_basename in
16403           CC*)
16404             # Sun C++ 4.x
16405             lt_prog_compiler_pic_CXX='-pic'
16406             lt_prog_compiler_static_CXX='-Bstatic'
16407             ;;
16408           lcc*)
16409             # Lucid
16410             lt_prog_compiler_pic_CXX='-pic'
16411             ;;
16412           *)
16413             ;;
16414         esac
16415         ;;
16416       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16417         case $cc_basename in
16418           CC*)
16419             lt_prog_compiler_wl_CXX='-Wl,'
16420             lt_prog_compiler_pic_CXX='-KPIC'
16421             lt_prog_compiler_static_CXX='-Bstatic'
16422             ;;
16423         esac
16424         ;;
16425       tandem*)
16426         case $cc_basename in
16427           NCC*)
16428             # NonStop-UX NCC 3.20
16429             lt_prog_compiler_pic_CXX='-KPIC'
16430             ;;
16431           *)
16432             ;;
16433         esac
16434         ;;
16435       vxworks*)
16436         ;;
16437       *)
16438         lt_prog_compiler_can_build_shared_CXX=no
16439         ;;
16440     esac
16441   fi
16442
16443 case $host_os in
16444   # For platforms which do not support PIC, -DPIC is meaningless:
16445   *djgpp*)
16446     lt_prog_compiler_pic_CXX=
16447     ;;
16448   *)
16449     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16450     ;;
16451 esac
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
16453 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16454
16455
16456
16457 #
16458 # Check to make sure the PIC flag actually works.
16459 #
16460 if test -n "$lt_prog_compiler_pic_CXX"; then
16461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16462 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16463 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
16464   $as_echo_n "(cached) " >&6
16465 else
16466   lt_cv_prog_compiler_pic_works_CXX=no
16467    ac_outfile=conftest.$ac_objext
16468    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16469    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16470    # Insert the option either (1) after the last *FLAGS variable, or
16471    # (2) before a word containing "conftest.", or (3) at the end.
16472    # Note that $ac_compile itself does not contain backslashes and begins
16473    # with a dollar sign (not a hyphen), so the echo should work correctly.
16474    # The option is referenced via a variable to avoid confusing sed.
16475    lt_compile=`echo "$ac_compile" | $SED \
16476    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16477    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16478    -e 's:$: $lt_compiler_flag:'`
16479    (eval echo "\"\$as_me:16479: $lt_compile\"" >&5)
16480    (eval "$lt_compile" 2>conftest.err)
16481    ac_status=$?
16482    cat conftest.err >&5
16483    echo "$as_me:16483: \$? = $ac_status" >&5
16484    if (exit $ac_status) && test -s "$ac_outfile"; then
16485      # The compiler can only warn and ignore the option if not recognized
16486      # So say no if there are warnings other than the usual output.
16487      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16488      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16489      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16490        lt_cv_prog_compiler_pic_works_CXX=yes
16491      fi
16492    fi
16493    $RM conftest*
16494
16495 fi
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16497 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16498
16499 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16500     case $lt_prog_compiler_pic_CXX in
16501      "" | " "*) ;;
16502      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16503      esac
16504 else
16505     lt_prog_compiler_pic_CXX=
16506      lt_prog_compiler_can_build_shared_CXX=no
16507 fi
16508
16509 fi
16510
16511
16512
16513 #
16514 # Check to make sure the static flag actually works.
16515 #
16516 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16518 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16519 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
16520   $as_echo_n "(cached) " >&6
16521 else
16522   lt_cv_prog_compiler_static_works_CXX=no
16523    save_LDFLAGS="$LDFLAGS"
16524    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16525    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16526    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16527      # The linker can only warn and ignore the option if not recognized
16528      # So say no if there are warnings
16529      if test -s conftest.err; then
16530        # Append any errors to the config.log.
16531        cat conftest.err 1>&5
16532        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16533        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16534        if diff conftest.exp conftest.er2 >/dev/null; then
16535          lt_cv_prog_compiler_static_works_CXX=yes
16536        fi
16537      else
16538        lt_cv_prog_compiler_static_works_CXX=yes
16539      fi
16540    fi
16541    $RM -r conftest*
16542    LDFLAGS="$save_LDFLAGS"
16543
16544 fi
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16546 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16547
16548 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16549     :
16550 else
16551     lt_prog_compiler_static_CXX=
16552 fi
16553
16554
16555
16556
16557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16558 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16559 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16560   $as_echo_n "(cached) " >&6
16561 else
16562   lt_cv_prog_compiler_c_o_CXX=no
16563    $RM -r conftest 2>/dev/null
16564    mkdir conftest
16565    cd conftest
16566    mkdir out
16567    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16568
16569    lt_compiler_flag="-o out/conftest2.$ac_objext"
16570    # Insert the option either (1) after the last *FLAGS variable, or
16571    # (2) before a word containing "conftest.", or (3) at the end.
16572    # Note that $ac_compile itself does not contain backslashes and begins
16573    # with a dollar sign (not a hyphen), so the echo should work correctly.
16574    lt_compile=`echo "$ac_compile" | $SED \
16575    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16576    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16577    -e 's:$: $lt_compiler_flag:'`
16578    (eval echo "\"\$as_me:16578: $lt_compile\"" >&5)
16579    (eval "$lt_compile" 2>out/conftest.err)
16580    ac_status=$?
16581    cat out/conftest.err >&5
16582    echo "$as_me:16582: \$? = $ac_status" >&5
16583    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16584    then
16585      # The compiler can only warn and ignore the option if not recognized
16586      # So say no if there are warnings
16587      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16588      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16589      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16590        lt_cv_prog_compiler_c_o_CXX=yes
16591      fi
16592    fi
16593    chmod u+w . 2>&5
16594    $RM conftest*
16595    # SGI C++ compiler will create directory out/ii_files/ for
16596    # template instantiation
16597    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16598    $RM out/* && rmdir out
16599    cd ..
16600    $RM -r conftest
16601    $RM conftest*
16602
16603 fi
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16605 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16606
16607
16608
16609     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16610 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16611 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16612   $as_echo_n "(cached) " >&6
16613 else
16614   lt_cv_prog_compiler_c_o_CXX=no
16615    $RM -r conftest 2>/dev/null
16616    mkdir conftest
16617    cd conftest
16618    mkdir out
16619    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16620
16621    lt_compiler_flag="-o out/conftest2.$ac_objext"
16622    # Insert the option either (1) after the last *FLAGS variable, or
16623    # (2) before a word containing "conftest.", or (3) at the end.
16624    # Note that $ac_compile itself does not contain backslashes and begins
16625    # with a dollar sign (not a hyphen), so the echo should work correctly.
16626    lt_compile=`echo "$ac_compile" | $SED \
16627    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16628    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16629    -e 's:$: $lt_compiler_flag:'`
16630    (eval echo "\"\$as_me:16630: $lt_compile\"" >&5)
16631    (eval "$lt_compile" 2>out/conftest.err)
16632    ac_status=$?
16633    cat out/conftest.err >&5
16634    echo "$as_me:16634: \$? = $ac_status" >&5
16635    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16636    then
16637      # The compiler can only warn and ignore the option if not recognized
16638      # So say no if there are warnings
16639      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16640      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16641      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16642        lt_cv_prog_compiler_c_o_CXX=yes
16643      fi
16644    fi
16645    chmod u+w . 2>&5
16646    $RM conftest*
16647    # SGI C++ compiler will create directory out/ii_files/ for
16648    # template instantiation
16649    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16650    $RM out/* && rmdir out
16651    cd ..
16652    $RM -r conftest
16653    $RM conftest*
16654
16655 fi
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16657 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16658
16659
16660
16661
16662 hard_links="nottested"
16663 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16664   # do not overwrite the value of need_locks provided by the user
16665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16666 $as_echo_n "checking if we can lock with hard links... " >&6; }
16667   hard_links=yes
16668   $RM conftest*
16669   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16670   touch conftest.a
16671   ln conftest.a conftest.b 2>&5 || hard_links=no
16672   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16674 $as_echo "$hard_links" >&6; }
16675   if test "$hard_links" = no; then
16676     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16677 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16678     need_locks=warn
16679   fi
16680 else
16681   need_locks=no
16682 fi
16683
16684
16685
16686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16687 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16688
16689   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16690   case $host_os in
16691   aix[4-9]*)
16692     # If we're using GNU nm, then we don't want the "-C" option.
16693     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16694     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16695       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16696     else
16697       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'
16698     fi
16699     ;;
16700   pw32*)
16701     export_symbols_cmds_CXX="$ltdll_cmds"
16702   ;;
16703   cygwin* | mingw* | cegcc*)
16704     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16705   ;;
16706   *)
16707     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16708   ;;
16709   esac
16710   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16711
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16713 $as_echo "$ld_shlibs_CXX" >&6; }
16714 test "$ld_shlibs_CXX" = no && can_build_shared=no
16715
16716 with_gnu_ld_CXX=$with_gnu_ld
16717
16718
16719
16720
16721
16722
16723 #
16724 # Do we need to explicitly link libc?
16725 #
16726 case "x$archive_cmds_need_lc_CXX" in
16727 x|xyes)
16728   # Assume -lc should be added
16729   archive_cmds_need_lc_CXX=yes
16730
16731   if test "$enable_shared" = yes && test "$GCC" = yes; then
16732     case $archive_cmds_CXX in
16733     *'~'*)
16734       # FIXME: we may have to deal with multi-command sequences.
16735       ;;
16736     '$CC '*)
16737       # Test whether the compiler implicitly links with -lc since on some
16738       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16739       # to ld, don't add -lc before -lgcc.
16740       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16741 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16742       $RM conftest*
16743       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16744
16745       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16746   (eval $ac_compile) 2>&5
16747   ac_status=$?
16748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16749   test $ac_status = 0; } 2>conftest.err; then
16750         soname=conftest
16751         lib=conftest
16752         libobjs=conftest.$ac_objext
16753         deplibs=
16754         wl=$lt_prog_compiler_wl_CXX
16755         pic_flag=$lt_prog_compiler_pic_CXX
16756         compiler_flags=-v
16757         linker_flags=-v
16758         verstring=
16759         output_objdir=.
16760         libname=conftest
16761         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16762         allow_undefined_flag_CXX=
16763         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16764   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16765   ac_status=$?
16766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16767   test $ac_status = 0; }
16768         then
16769           archive_cmds_need_lc_CXX=no
16770         else
16771           archive_cmds_need_lc_CXX=yes
16772         fi
16773         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16774       else
16775         cat conftest.err 1>&5
16776       fi
16777       $RM conftest*
16778       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
16779 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
16780       ;;
16781     esac
16782   fi
16783   ;;
16784 esac
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16850 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16851
16852 library_names_spec=
16853 libname_spec='lib$name'
16854 soname_spec=
16855 shrext_cmds=".so"
16856 postinstall_cmds=
16857 postuninstall_cmds=
16858 finish_cmds=
16859 finish_eval=
16860 shlibpath_var=
16861 shlibpath_overrides_runpath=unknown
16862 version_type=none
16863 dynamic_linker="$host_os ld.so"
16864 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16865 need_lib_prefix=unknown
16866 hardcode_into_libs=no
16867
16868 # when you set need_version to no, make sure it does not cause -set_version
16869 # flags to be left without arguments
16870 need_version=unknown
16871
16872 case $host_os in
16873 aix3*)
16874   version_type=linux
16875   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16876   shlibpath_var=LIBPATH
16877
16878   # AIX 3 has no versioning support, so we append a major version to the name.
16879   soname_spec='${libname}${release}${shared_ext}$major'
16880   ;;
16881
16882 aix[4-9]*)
16883   version_type=linux
16884   need_lib_prefix=no
16885   need_version=no
16886   hardcode_into_libs=yes
16887   if test "$host_cpu" = ia64; then
16888     # AIX 5 supports IA64
16889     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16890     shlibpath_var=LD_LIBRARY_PATH
16891   else
16892     # With GCC up to 2.95.x, collect2 would create an import file
16893     # for dependence libraries.  The import file would start with
16894     # the line `#! .'.  This would cause the generated library to
16895     # depend on `.', always an invalid library.  This was fixed in
16896     # development snapshots of GCC prior to 3.0.
16897     case $host_os in
16898       aix4 | aix4.[01] | aix4.[01].*)
16899       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16900            echo ' yes '
16901            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16902         :
16903       else
16904         can_build_shared=no
16905       fi
16906       ;;
16907     esac
16908     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16909     # soname into executable. Probably we can add versioning support to
16910     # collect2, so additional links can be useful in future.
16911     if test "$aix_use_runtimelinking" = yes; then
16912       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16913       # instead of lib<name>.a to let people know that these are not
16914       # typical AIX shared libraries.
16915       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16916     else
16917       # We preserve .a as extension for shared libraries through AIX4.2
16918       # and later when we are not doing run time linking.
16919       library_names_spec='${libname}${release}.a $libname.a'
16920       soname_spec='${libname}${release}${shared_ext}$major'
16921     fi
16922     shlibpath_var=LIBPATH
16923   fi
16924   ;;
16925
16926 amigaos*)
16927   case $host_cpu in
16928   powerpc)
16929     # Since July 2007 AmigaOS4 officially supports .so libraries.
16930     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16931     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16932     ;;
16933   m68k)
16934     library_names_spec='$libname.ixlibrary $libname.a'
16935     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16936     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
16937     ;;
16938   esac
16939   ;;
16940
16941 beos*)
16942   library_names_spec='${libname}${shared_ext}'
16943   dynamic_linker="$host_os ld.so"
16944   shlibpath_var=LIBRARY_PATH
16945   ;;
16946
16947 bsdi[45]*)
16948   version_type=linux
16949   need_version=no
16950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16951   soname_spec='${libname}${release}${shared_ext}$major'
16952   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16953   shlibpath_var=LD_LIBRARY_PATH
16954   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16955   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16956   # the default ld.so.conf also contains /usr/contrib/lib and
16957   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16958   # libtool to hard-code these into programs
16959   ;;
16960
16961 cygwin* | mingw* | pw32* | cegcc*)
16962   version_type=windows
16963   shrext_cmds=".dll"
16964   need_version=no
16965   need_lib_prefix=no
16966
16967   case $GCC,$host_os in
16968   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16969     library_names_spec='$libname.dll.a'
16970     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16971     postinstall_cmds='base_file=`basename \${file}`~
16972       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16973       dldir=$destdir/`dirname \$dlpath`~
16974       test -d \$dldir || mkdir -p \$dldir~
16975       $install_prog $dir/$dlname \$dldir/$dlname~
16976       chmod a+x \$dldir/$dlname~
16977       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16978         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16979       fi'
16980     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16981       dlpath=$dir/\$dldll~
16982        $RM \$dlpath'
16983     shlibpath_overrides_runpath=yes
16984
16985     case $host_os in
16986     cygwin*)
16987       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16988       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16989       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16990       ;;
16991     mingw* | cegcc*)
16992       # MinGW DLLs use traditional 'lib' prefix
16993       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16994       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16995       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16996         # It is most probably a Windows format PATH printed by
16997         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16998         # path with ; separators, and with drive letters. We can handle the
16999         # drive letters (cygwin fileutils understands them), so leave them,
17000         # especially as we might pass files found there to a mingw objdump,
17001         # which wouldn't understand a cygwinified path. Ahh.
17002         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17003       else
17004         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17005       fi
17006       ;;
17007     pw32*)
17008       # pw32 DLLs use 'pw' prefix rather than 'lib'
17009       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17010       ;;
17011     esac
17012     ;;
17013
17014   *)
17015     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17016     ;;
17017   esac
17018   dynamic_linker='Win32 ld.exe'
17019   # FIXME: first we should search . and the directory the executable is in
17020   shlibpath_var=PATH
17021   ;;
17022
17023 darwin* | rhapsody*)
17024   dynamic_linker="$host_os dyld"
17025   version_type=darwin
17026   need_lib_prefix=no
17027   need_version=no
17028   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17029   soname_spec='${libname}${release}${major}$shared_ext'
17030   shlibpath_overrides_runpath=yes
17031   shlibpath_var=DYLD_LIBRARY_PATH
17032   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17033
17034   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17035   ;;
17036
17037 dgux*)
17038   version_type=linux
17039   need_lib_prefix=no
17040   need_version=no
17041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17042   soname_spec='${libname}${release}${shared_ext}$major'
17043   shlibpath_var=LD_LIBRARY_PATH
17044   ;;
17045
17046 freebsd1*)
17047   dynamic_linker=no
17048   ;;
17049
17050 freebsd* | dragonfly*)
17051   # DragonFly does not have aout.  When/if they implement a new
17052   # versioning mechanism, adjust this.
17053   if test -x /usr/bin/objformat; then
17054     objformat=`/usr/bin/objformat`
17055   else
17056     case $host_os in
17057     freebsd[123]*) objformat=aout ;;
17058     *) objformat=elf ;;
17059     esac
17060   fi
17061   version_type=freebsd-$objformat
17062   case $version_type in
17063     freebsd-elf*)
17064       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17065       need_version=no
17066       need_lib_prefix=no
17067       ;;
17068     freebsd-*)
17069       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17070       need_version=yes
17071       ;;
17072   esac
17073   shlibpath_var=LD_LIBRARY_PATH
17074   case $host_os in
17075   freebsd2*)
17076     shlibpath_overrides_runpath=yes
17077     ;;
17078   freebsd3.[01]* | freebsdelf3.[01]*)
17079     shlibpath_overrides_runpath=yes
17080     hardcode_into_libs=yes
17081     ;;
17082   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17083   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17084     shlibpath_overrides_runpath=no
17085     hardcode_into_libs=yes
17086     ;;
17087   *) # from 4.6 on, and DragonFly
17088     shlibpath_overrides_runpath=yes
17089     hardcode_into_libs=yes
17090     ;;
17091   esac
17092   ;;
17093
17094 gnu*)
17095   version_type=linux
17096   need_lib_prefix=no
17097   need_version=no
17098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17099   soname_spec='${libname}${release}${shared_ext}$major'
17100   shlibpath_var=LD_LIBRARY_PATH
17101   hardcode_into_libs=yes
17102   ;;
17103
17104 hpux9* | hpux10* | hpux11*)
17105   # Give a soname corresponding to the major version so that dld.sl refuses to
17106   # link against other versions.
17107   version_type=sunos
17108   need_lib_prefix=no
17109   need_version=no
17110   case $host_cpu in
17111   ia64*)
17112     shrext_cmds='.so'
17113     hardcode_into_libs=yes
17114     dynamic_linker="$host_os dld.so"
17115     shlibpath_var=LD_LIBRARY_PATH
17116     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17117     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17118     soname_spec='${libname}${release}${shared_ext}$major'
17119     if test "X$HPUX_IA64_MODE" = X32; then
17120       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17121     else
17122       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17123     fi
17124     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17125     ;;
17126   hppa*64*)
17127     shrext_cmds='.sl'
17128     hardcode_into_libs=yes
17129     dynamic_linker="$host_os dld.sl"
17130     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17131     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17132     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17133     soname_spec='${libname}${release}${shared_ext}$major'
17134     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17135     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17136     ;;
17137   *)
17138     shrext_cmds='.sl'
17139     dynamic_linker="$host_os dld.sl"
17140     shlibpath_var=SHLIB_PATH
17141     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17142     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17143     soname_spec='${libname}${release}${shared_ext}$major'
17144     ;;
17145   esac
17146   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17147   postinstall_cmds='chmod 555 $lib'
17148   ;;
17149
17150 interix[3-9]*)
17151   version_type=linux
17152   need_lib_prefix=no
17153   need_version=no
17154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17155   soname_spec='${libname}${release}${shared_ext}$major'
17156   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17157   shlibpath_var=LD_LIBRARY_PATH
17158   shlibpath_overrides_runpath=no
17159   hardcode_into_libs=yes
17160   ;;
17161
17162 irix5* | irix6* | nonstopux*)
17163   case $host_os in
17164     nonstopux*) version_type=nonstopux ;;
17165     *)
17166         if test "$lt_cv_prog_gnu_ld" = yes; then
17167                 version_type=linux
17168         else
17169                 version_type=irix
17170         fi ;;
17171   esac
17172   need_lib_prefix=no
17173   need_version=no
17174   soname_spec='${libname}${release}${shared_ext}$major'
17175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17176   case $host_os in
17177   irix5* | nonstopux*)
17178     libsuff= shlibsuff=
17179     ;;
17180   *)
17181     case $LD in # libtool.m4 will add one of these switches to LD
17182     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17183       libsuff= shlibsuff= libmagic=32-bit;;
17184     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17185       libsuff=32 shlibsuff=N32 libmagic=N32;;
17186     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17187       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17188     *) libsuff= shlibsuff= libmagic=never-match;;
17189     esac
17190     ;;
17191   esac
17192   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17193   shlibpath_overrides_runpath=no
17194   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17195   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17196   hardcode_into_libs=yes
17197   ;;
17198
17199 # No shared lib support for Linux oldld, aout, or coff.
17200 linux*oldld* | linux*aout* | linux*coff*)
17201   dynamic_linker=no
17202   ;;
17203
17204 # This must be Linux ELF.
17205 linux* | k*bsd*-gnu)
17206   version_type=linux
17207   need_lib_prefix=no
17208   need_version=no
17209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17210   soname_spec='${libname}${release}${shared_ext}$major'
17211   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17212   shlibpath_var=LD_LIBRARY_PATH
17213   shlibpath_overrides_runpath=no
17214   # Some binutils ld are patched to set DT_RUNPATH
17215   save_LDFLAGS=$LDFLAGS
17216   save_libdir=$libdir
17217   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17218        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17220 /* end confdefs.h.  */
17221
17222 int
17223 main ()
17224 {
17225
17226   ;
17227   return 0;
17228 }
17229 _ACEOF
17230 if ac_fn_cxx_try_link "$LINENO"; then :
17231   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17232   shlibpath_overrides_runpath=yes
17233 fi
17234 fi
17235 rm -f core conftest.err conftest.$ac_objext \
17236     conftest$ac_exeext conftest.$ac_ext
17237   LDFLAGS=$save_LDFLAGS
17238   libdir=$save_libdir
17239
17240   # This implies no fast_install, which is unacceptable.
17241   # Some rework will be needed to allow for fast_install
17242   # before this can be enabled.
17243   hardcode_into_libs=yes
17244
17245   # Add ABI-specific directories to the system library path.
17246   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17247
17248   # Append ld.so.conf contents to the search path
17249   if test -f /etc/ld.so.conf; then
17250     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;/^$/d' | tr '\n' ' '`
17251     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17252   fi
17253
17254   # We used to test for /lib/ld.so.1 and disable shared libraries on
17255   # powerpc, because MkLinux only supported shared libraries with the
17256   # GNU dynamic linker.  Since this was broken with cross compilers,
17257   # most powerpc-linux boxes support dynamic linking these days and
17258   # people can always --disable-shared, the test was removed, and we
17259   # assume the GNU/Linux dynamic linker is in use.
17260   dynamic_linker='GNU/Linux ld.so'
17261   ;;
17262
17263 netbsd*)
17264   version_type=sunos
17265   need_lib_prefix=no
17266   need_version=no
17267   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17268     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17269     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17270     dynamic_linker='NetBSD (a.out) ld.so'
17271   else
17272     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17273     soname_spec='${libname}${release}${shared_ext}$major'
17274     dynamic_linker='NetBSD ld.elf_so'
17275   fi
17276   shlibpath_var=LD_LIBRARY_PATH
17277   shlibpath_overrides_runpath=yes
17278   hardcode_into_libs=yes
17279   ;;
17280
17281 newsos6)
17282   version_type=linux
17283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17284   shlibpath_var=LD_LIBRARY_PATH
17285   shlibpath_overrides_runpath=yes
17286   ;;
17287
17288 *nto* | *qnx*)
17289   version_type=qnx
17290   need_lib_prefix=no
17291   need_version=no
17292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17293   soname_spec='${libname}${release}${shared_ext}$major'
17294   shlibpath_var=LD_LIBRARY_PATH
17295   shlibpath_overrides_runpath=no
17296   hardcode_into_libs=yes
17297   dynamic_linker='ldqnx.so'
17298   ;;
17299
17300 openbsd*)
17301   version_type=sunos
17302   sys_lib_dlsearch_path_spec="/usr/lib"
17303   need_lib_prefix=no
17304   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17305   case $host_os in
17306     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17307     *)                          need_version=no  ;;
17308   esac
17309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17310   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17311   shlibpath_var=LD_LIBRARY_PATH
17312   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17313     case $host_os in
17314       openbsd2.[89] | openbsd2.[89].*)
17315         shlibpath_overrides_runpath=no
17316         ;;
17317       *)
17318         shlibpath_overrides_runpath=yes
17319         ;;
17320       esac
17321   else
17322     shlibpath_overrides_runpath=yes
17323   fi
17324   ;;
17325
17326 os2*)
17327   libname_spec='$name'
17328   shrext_cmds=".dll"
17329   need_lib_prefix=no
17330   library_names_spec='$libname${shared_ext} $libname.a'
17331   dynamic_linker='OS/2 ld.exe'
17332   shlibpath_var=LIBPATH
17333   ;;
17334
17335 osf3* | osf4* | osf5*)
17336   version_type=osf
17337   need_lib_prefix=no
17338   need_version=no
17339   soname_spec='${libname}${release}${shared_ext}$major'
17340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17341   shlibpath_var=LD_LIBRARY_PATH
17342   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17343   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17344   ;;
17345
17346 rdos*)
17347   dynamic_linker=no
17348   ;;
17349
17350 solaris*)
17351   version_type=linux
17352   need_lib_prefix=no
17353   need_version=no
17354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17355   soname_spec='${libname}${release}${shared_ext}$major'
17356   shlibpath_var=LD_LIBRARY_PATH
17357   shlibpath_overrides_runpath=yes
17358   hardcode_into_libs=yes
17359   # ldd complains unless libraries are executable
17360   postinstall_cmds='chmod +x $lib'
17361   ;;
17362
17363 sunos4*)
17364   version_type=sunos
17365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17366   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17367   shlibpath_var=LD_LIBRARY_PATH
17368   shlibpath_overrides_runpath=yes
17369   if test "$with_gnu_ld" = yes; then
17370     need_lib_prefix=no
17371   fi
17372   need_version=yes
17373   ;;
17374
17375 sysv4 | sysv4.3*)
17376   version_type=linux
17377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17378   soname_spec='${libname}${release}${shared_ext}$major'
17379   shlibpath_var=LD_LIBRARY_PATH
17380   case $host_vendor in
17381     sni)
17382       shlibpath_overrides_runpath=no
17383       need_lib_prefix=no
17384       runpath_var=LD_RUN_PATH
17385       ;;
17386     siemens)
17387       need_lib_prefix=no
17388       ;;
17389     motorola)
17390       need_lib_prefix=no
17391       need_version=no
17392       shlibpath_overrides_runpath=no
17393       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17394       ;;
17395   esac
17396   ;;
17397
17398 sysv4*MP*)
17399   if test -d /usr/nec ;then
17400     version_type=linux
17401     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17402     soname_spec='$libname${shared_ext}.$major'
17403     shlibpath_var=LD_LIBRARY_PATH
17404   fi
17405   ;;
17406
17407 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17408   version_type=freebsd-elf
17409   need_lib_prefix=no
17410   need_version=no
17411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17412   soname_spec='${libname}${release}${shared_ext}$major'
17413   shlibpath_var=LD_LIBRARY_PATH
17414   shlibpath_overrides_runpath=yes
17415   hardcode_into_libs=yes
17416   if test "$with_gnu_ld" = yes; then
17417     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17418   else
17419     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17420     case $host_os in
17421       sco3.2v5*)
17422         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17423         ;;
17424     esac
17425   fi
17426   sys_lib_dlsearch_path_spec='/usr/lib'
17427   ;;
17428
17429 tpf*)
17430   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17431   version_type=linux
17432   need_lib_prefix=no
17433   need_version=no
17434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17435   shlibpath_var=LD_LIBRARY_PATH
17436   shlibpath_overrides_runpath=no
17437   hardcode_into_libs=yes
17438   ;;
17439
17440 uts4*)
17441   version_type=linux
17442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17443   soname_spec='${libname}${release}${shared_ext}$major'
17444   shlibpath_var=LD_LIBRARY_PATH
17445   ;;
17446
17447 *)
17448   dynamic_linker=no
17449   ;;
17450 esac
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17452 $as_echo "$dynamic_linker" >&6; }
17453 test "$dynamic_linker" = no && can_build_shared=no
17454
17455 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17456 if test "$GCC" = yes; then
17457   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17458 fi
17459
17460 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17461   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17462 fi
17463 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17464   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17465 fi
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17503 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17504 hardcode_action_CXX=
17505 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17506    test -n "$runpath_var_CXX" ||
17507    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17508
17509   # We can hardcode non-existent directories.
17510   if test "$hardcode_direct_CXX" != no &&
17511      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17512      # have to relink, otherwise we might link with an installed library
17513      # when we should be linking with a yet-to-be-installed one
17514      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17515      test "$hardcode_minus_L_CXX" != no; then
17516     # Linking always hardcodes the temporary library directory.
17517     hardcode_action_CXX=relink
17518   else
17519     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17520     hardcode_action_CXX=immediate
17521   fi
17522 else
17523   # We cannot hardcode anything, or else we can only hardcode existing
17524   # directories.
17525   hardcode_action_CXX=unsupported
17526 fi
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17528 $as_echo "$hardcode_action_CXX" >&6; }
17529
17530 if test "$hardcode_action_CXX" = relink ||
17531    test "$inherit_rpath_CXX" = yes; then
17532   # Fast installation is not supported
17533   enable_fast_install=no
17534 elif test "$shlibpath_overrides_runpath" = yes ||
17535      test "$enable_shared" = no; then
17536   # Fast installation is not necessary
17537   enable_fast_install=needless
17538 fi
17539
17540
17541
17542
17543
17544
17545
17546   fi # test -n "$compiler"
17547
17548   CC=$lt_save_CC
17549   LDCXX=$LD
17550   LD=$lt_save_LD
17551   GCC=$lt_save_GCC
17552   with_gnu_ld=$lt_save_with_gnu_ld
17553   lt_cv_path_LDCXX=$lt_cv_path_LD
17554   lt_cv_path_LD=$lt_save_path_LD
17555   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17556   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17557 fi # test "$_lt_caught_CXX_error" != yes
17558
17559 ac_ext=c
17560 ac_cpp='$CPP $CPPFLAGS'
17561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577         ac_config_commands="$ac_config_commands libtool"
17578
17579
17580
17581
17582 # Only expand once:
17583
17584
17585
17586
17587
17588 # Configure libltdl
17589
17590
17591
17592
17593
17594
17595
17596
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
17598 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
17599 if test "${libltdl_cv_shlibext+set}" = set; then :
17600   $as_echo_n "(cached) " >&6
17601 else
17602
17603 module=yes
17604 eval libltdl_cv_shlibext=$shrext_cmds
17605
17606 fi
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
17608 $as_echo "$libltdl_cv_shlibext" >&6; }
17609 if test -n "$libltdl_cv_shlibext"; then
17610
17611 cat >>confdefs.h <<_ACEOF
17612 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
17613 _ACEOF
17614
17615 fi
17616
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
17618 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
17619 if test "${lt_cv_module_path_var+set}" = set; then :
17620   $as_echo_n "(cached) " >&6
17621 else
17622   lt_cv_module_path_var="$shlibpath_var"
17623 fi
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
17625 $as_echo "$lt_cv_module_path_var" >&6; }
17626 if test -n "$lt_cv_module_path_var"; then
17627
17628 cat >>confdefs.h <<_ACEOF
17629 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
17630 _ACEOF
17631
17632 fi
17633
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
17635 $as_echo_n "checking for the default library search path... " >&6; }
17636 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
17637   $as_echo_n "(cached) " >&6
17638 else
17639   lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
17640 fi
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
17642 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
17643 if test -n "$lt_cv_sys_dlsearch_path"; then
17644   sys_dlsearch_path=
17645   for dir in $lt_cv_sys_dlsearch_path; do
17646     if test -z "$sys_dlsearch_path"; then
17647       sys_dlsearch_path="$dir"
17648     else
17649       sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
17650     fi
17651   done
17652
17653 cat >>confdefs.h <<_ACEOF
17654 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
17655 _ACEOF
17656
17657 fi
17658
17659
17660 LT_DLLOADERS=
17661
17662
17663 ac_ext=c
17664 ac_cpp='$CPP $CPPFLAGS'
17665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17668
17669
17670 LIBADD_DLOPEN=
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17672 $as_echo_n "checking for library containing dlopen... " >&6; }
17673 if test "${ac_cv_search_dlopen+set}" = set; then :
17674   $as_echo_n "(cached) " >&6
17675 else
17676   ac_func_search_save_LIBS=$LIBS
17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h.  */
17679
17680 /* Override any GCC internal prototype to avoid an error.
17681    Use char because int might match the return type of a GCC
17682    builtin and then its argument prototype would still apply.  */
17683 #ifdef __cplusplus
17684 extern "C"
17685 #endif
17686 char dlopen ();
17687 int
17688 main ()
17689 {
17690 return dlopen ();
17691   ;
17692   return 0;
17693 }
17694 _ACEOF
17695 for ac_lib in '' dl; do
17696   if test -z "$ac_lib"; then
17697     ac_res="none required"
17698   else
17699     ac_res=-l$ac_lib
17700     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17701   fi
17702   if ac_fn_c_try_link "$LINENO"; then :
17703   ac_cv_search_dlopen=$ac_res
17704 fi
17705 rm -f core conftest.err conftest.$ac_objext \
17706     conftest$ac_exeext
17707   if test "${ac_cv_search_dlopen+set}" = set; then :
17708   break
17709 fi
17710 done
17711 if test "${ac_cv_search_dlopen+set}" = set; then :
17712
17713 else
17714   ac_cv_search_dlopen=no
17715 fi
17716 rm conftest.$ac_ext
17717 LIBS=$ac_func_search_save_LIBS
17718 fi
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17720 $as_echo "$ac_cv_search_dlopen" >&6; }
17721 ac_res=$ac_cv_search_dlopen
17722 if test "$ac_res" != no; then :
17723   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17724
17725 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
17726
17727         if test "$ac_cv_search_dlopen" != "none required" ; then
17728           LIBADD_DLOPEN="-ldl"
17729         fi
17730         libltdl_cv_lib_dl_dlopen="yes"
17731         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17732 else
17733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17734 /* end confdefs.h.  */
17735 #if HAVE_DLFCN_H
17736 #  include <dlfcn.h>
17737 #endif
17738
17739 int
17740 main ()
17741 {
17742 dlopen(0, 0);
17743   ;
17744   return 0;
17745 }
17746 _ACEOF
17747 if ac_fn_c_try_link "$LINENO"; then :
17748
17749 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
17750
17751             libltdl_cv_func_dlopen="yes"
17752             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17753 else
17754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17755 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17756 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17757   $as_echo_n "(cached) " >&6
17758 else
17759   ac_check_lib_save_LIBS=$LIBS
17760 LIBS="-lsvld  $LIBS"
17761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17762 /* end confdefs.h.  */
17763
17764 /* Override any GCC internal prototype to avoid an error.
17765    Use char because int might match the return type of a GCC
17766    builtin and then its argument prototype would still apply.  */
17767 #ifdef __cplusplus
17768 extern "C"
17769 #endif
17770 char dlopen ();
17771 int
17772 main ()
17773 {
17774 return dlopen ();
17775   ;
17776   return 0;
17777 }
17778 _ACEOF
17779 if ac_fn_c_try_link "$LINENO"; then :
17780   ac_cv_lib_svld_dlopen=yes
17781 else
17782   ac_cv_lib_svld_dlopen=no
17783 fi
17784 rm -f core conftest.err conftest.$ac_objext \
17785     conftest$ac_exeext conftest.$ac_ext
17786 LIBS=$ac_check_lib_save_LIBS
17787 fi
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17789 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17790 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17791
17792 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
17793
17794                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
17795                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17796 fi
17797
17798 fi
17799 rm -f core conftest.err conftest.$ac_objext \
17800     conftest$ac_exeext conftest.$ac_ext
17801 fi
17802
17803 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
17804 then
17805   lt_save_LIBS="$LIBS"
17806   LIBS="$LIBS $LIBADD_DLOPEN"
17807   for ac_func in dlerror
17808 do :
17809   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
17810 if test "x$ac_cv_func_dlerror" = x""yes; then :
17811   cat >>confdefs.h <<_ACEOF
17812 #define HAVE_DLERROR 1
17813 _ACEOF
17814
17815 fi
17816 done
17817
17818   LIBS="$lt_save_LIBS"
17819 fi
17820
17821
17822 LIBADD_SHL_LOAD=
17823 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17824 if test "x$ac_cv_func_shl_load" = x""yes; then :
17825
17826 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
17827
17828         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17829 else
17830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17831 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17832 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17833   $as_echo_n "(cached) " >&6
17834 else
17835   ac_check_lib_save_LIBS=$LIBS
17836 LIBS="-ldld  $LIBS"
17837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17838 /* end confdefs.h.  */
17839
17840 /* Override any GCC internal prototype to avoid an error.
17841    Use char because int might match the return type of a GCC
17842    builtin and then its argument prototype would still apply.  */
17843 #ifdef __cplusplus
17844 extern "C"
17845 #endif
17846 char shl_load ();
17847 int
17848 main ()
17849 {
17850 return shl_load ();
17851   ;
17852   return 0;
17853 }
17854 _ACEOF
17855 if ac_fn_c_try_link "$LINENO"; then :
17856   ac_cv_lib_dld_shl_load=yes
17857 else
17858   ac_cv_lib_dld_shl_load=no
17859 fi
17860 rm -f core conftest.err conftest.$ac_objext \
17861     conftest$ac_exeext conftest.$ac_ext
17862 LIBS=$ac_check_lib_save_LIBS
17863 fi
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17865 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17866 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17867
17868 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
17869
17870             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17871             LIBADD_SHL_LOAD="-ldld"
17872 fi
17873
17874 fi
17875
17876
17877
17878 case $host_os in
17879 darwin[1567].*)
17880 # We only want this for pre-Mac OS X 10.4.
17881   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
17882 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
17883
17884 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
17885
17886         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
17887 fi
17888
17889   ;;
17890 beos*)
17891   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
17892   ;;
17893 cygwin* | mingw* | os2* | pw32*)
17894   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
17895 "
17896 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
17897   ac_have_decl=1
17898 else
17899   ac_have_decl=0
17900 fi
17901
17902 cat >>confdefs.h <<_ACEOF
17903 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
17904 _ACEOF
17905
17906   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
17907   ;;
17908 esac
17909
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17911 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17912 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17913   $as_echo_n "(cached) " >&6
17914 else
17915   ac_check_lib_save_LIBS=$LIBS
17916 LIBS="-ldld  $LIBS"
17917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17918 /* end confdefs.h.  */
17919
17920 /* Override any GCC internal prototype to avoid an error.
17921    Use char because int might match the return type of a GCC
17922    builtin and then its argument prototype would still apply.  */
17923 #ifdef __cplusplus
17924 extern "C"
17925 #endif
17926 char dld_link ();
17927 int
17928 main ()
17929 {
17930 return dld_link ();
17931   ;
17932   return 0;
17933 }
17934 _ACEOF
17935 if ac_fn_c_try_link "$LINENO"; then :
17936   ac_cv_lib_dld_dld_link=yes
17937 else
17938   ac_cv_lib_dld_dld_link=no
17939 fi
17940 rm -f core conftest.err conftest.$ac_objext \
17941     conftest$ac_exeext conftest.$ac_ext
17942 LIBS=$ac_check_lib_save_LIBS
17943 fi
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17945 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17946 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17947
17948 $as_echo "#define HAVE_DLD 1" >>confdefs.h
17949
17950                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
17951 fi
17952
17953
17954
17955
17956 LT_DLPREOPEN=
17957 if test -n "$LT_DLLOADERS"
17958 then
17959   for lt_loader in $LT_DLLOADERS; do
17960     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
17961   done
17962
17963 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
17964
17965 fi
17966
17967
17968 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
17969
17970
17971 ac_ext=c
17972 ac_cpp='$CPP $CPPFLAGS'
17973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17976
17977
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
17979 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
17980 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
17981   $as_echo_n "(cached) " >&6
17982 else
17983   lt_cv_sys_symbol_underscore=no
17984   cat > conftest.$ac_ext <<_LT_EOF
17985 void nm_test_func(){}
17986 int main(){nm_test_func;return 0;}
17987 _LT_EOF
17988   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17989   (eval $ac_compile) 2>&5
17990   ac_status=$?
17991   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17992   test $ac_status = 0; }; then
17993     # Now try to grab the symbols.
17994     ac_nlist=conftest.nm
17995     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
17996   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
17997   ac_status=$?
17998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17999   test $ac_status = 0; } && test -s "$ac_nlist"; then
18000       # See whether the symbols have a leading underscore.
18001       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
18002         lt_cv_sys_symbol_underscore=yes
18003       else
18004         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18005           :
18006         else
18007           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18008         fi
18009       fi
18010     else
18011       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18012     fi
18013   else
18014     echo "configure: failed program was:" >&5
18015     cat conftest.c >&5
18016   fi
18017   rm -rf conftest*
18018
18019 fi
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
18021 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
18022   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
18023
18024
18025 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
18026   if test x"$libltdl_cv_func_dlopen" = xyes ||
18027      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
18028         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
18029 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
18030 if test "${libltdl_cv_need_uscore+set}" = set; then :
18031   $as_echo_n "(cached) " >&6
18032 else
18033   libltdl_cv_need_uscore=unknown
18034           save_LIBS="$LIBS"
18035           LIBS="$LIBS $LIBADD_DLOPEN"
18036           if test "$cross_compiling" = yes; then :
18037   libltdl_cv_need_uscore=cross
18038 else
18039   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18040   lt_status=$lt_dlunknown
18041   cat > conftest.$ac_ext <<_LT_EOF
18042 #line 18042 "configure"
18043 #include "confdefs.h"
18044
18045 #if HAVE_DLFCN_H
18046 #include <dlfcn.h>
18047 #endif
18048
18049 #include <stdio.h>
18050
18051 #ifdef RTLD_GLOBAL
18052 #  define LT_DLGLOBAL           RTLD_GLOBAL
18053 #else
18054 #  ifdef DL_GLOBAL
18055 #    define LT_DLGLOBAL         DL_GLOBAL
18056 #  else
18057 #    define LT_DLGLOBAL         0
18058 #  endif
18059 #endif
18060
18061 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18062    find out it does not work in some platform. */
18063 #ifndef LT_DLLAZY_OR_NOW
18064 #  ifdef RTLD_LAZY
18065 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18066 #  else
18067 #    ifdef DL_LAZY
18068 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18069 #    else
18070 #      ifdef RTLD_NOW
18071 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18072 #      else
18073 #        ifdef DL_NOW
18074 #          define LT_DLLAZY_OR_NOW      DL_NOW
18075 #        else
18076 #          define LT_DLLAZY_OR_NOW      0
18077 #        endif
18078 #      endif
18079 #    endif
18080 #  endif
18081 #endif
18082
18083 void fnord() { int i=42;}
18084 int main ()
18085 {
18086   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18087   int status = $lt_dlunknown;
18088
18089   if (self)
18090     {
18091       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18092       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18093       /* dlclose (self); */
18094     }
18095   else
18096     puts (dlerror ());
18097
18098   return status;
18099 }
18100 _LT_EOF
18101   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18102   (eval $ac_link) 2>&5
18103   ac_status=$?
18104   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18105   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18106     (./conftest; exit; ) >&5 2>/dev/null
18107     lt_status=$?
18108     case x$lt_status in
18109       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
18110       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
18111       x$lt_dlunknown|x*)  ;;
18112     esac
18113   else :
18114     # compilation failed
18115
18116   fi
18117 fi
18118 rm -fr conftest*
18119
18120           LIBS="$save_LIBS"
18121
18122 fi
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
18124 $as_echo "$libltdl_cv_need_uscore" >&6; }
18125   fi
18126 fi
18127
18128 if test x"$libltdl_cv_need_uscore" = xyes; then
18129
18130 $as_echo "#define NEED_USCORE 1" >>confdefs.h
18131
18132 fi
18133
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
18135 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
18136 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
18137   $as_echo_n "(cached) " >&6
18138 else
18139   # PORTME does your system automatically load deplibs for dlopen?
18140   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
18141   # For now, we just catch OSes we know something about -- in the
18142   # future, we'll try test this programmatically.
18143   lt_cv_sys_dlopen_deplibs=unknown
18144   case $host_os in
18145   aix3*|aix4.1.*|aix4.2.*)
18146     # Unknown whether this is true for these versions of AIX, but
18147     # we want this `case' here to explicitly catch those versions.
18148     lt_cv_sys_dlopen_deplibs=unknown
18149     ;;
18150   aix[4-9]*)
18151     lt_cv_sys_dlopen_deplibs=yes
18152     ;;
18153   amigaos*)
18154     case $host_cpu in
18155     powerpc)
18156       lt_cv_sys_dlopen_deplibs=no
18157       ;;
18158     esac
18159     ;;
18160   darwin*)
18161     # Assuming the user has installed a libdl from somewhere, this is true
18162     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
18163     lt_cv_sys_dlopen_deplibs=yes
18164     ;;
18165   freebsd* | dragonfly*)
18166     lt_cv_sys_dlopen_deplibs=yes
18167     ;;
18168   gnu* | linux* | k*bsd*-gnu)
18169     # GNU and its variants, using gnu ld.so (Glibc)
18170     lt_cv_sys_dlopen_deplibs=yes
18171     ;;
18172   hpux10*|hpux11*)
18173     lt_cv_sys_dlopen_deplibs=yes
18174     ;;
18175   interix*)
18176     lt_cv_sys_dlopen_deplibs=yes
18177     ;;
18178   irix[12345]*|irix6.[01]*)
18179     # Catch all versions of IRIX before 6.2, and indicate that we don't
18180     # know how it worked for any of those versions.
18181     lt_cv_sys_dlopen_deplibs=unknown
18182     ;;
18183   irix*)
18184     # The case above catches anything before 6.2, and it's known that
18185     # at 6.2 and later dlopen does load deplibs.
18186     lt_cv_sys_dlopen_deplibs=yes
18187     ;;
18188   netbsd*)
18189     lt_cv_sys_dlopen_deplibs=yes
18190     ;;
18191   openbsd*)
18192     lt_cv_sys_dlopen_deplibs=yes
18193     ;;
18194   osf[1234]*)
18195     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
18196     # it did *not* use an RPATH in a shared library to find objects the
18197     # library depends on, so we explicitly say `no'.
18198     lt_cv_sys_dlopen_deplibs=no
18199     ;;
18200   osf5.0|osf5.0a|osf5.1)
18201     # dlopen *does* load deplibs and with the right loader patch applied
18202     # it even uses RPATH in a shared library to search for shared objects
18203     # that the library depends on, but there's no easy way to know if that
18204     # patch is installed.  Since this is the case, all we can really
18205     # say is unknown -- it depends on the patch being installed.  If
18206     # it is, this changes to `yes'.  Without it, it would be `no'.
18207     lt_cv_sys_dlopen_deplibs=unknown
18208     ;;
18209   osf*)
18210     # the two cases above should catch all versions of osf <= 5.1.  Read
18211     # the comments above for what we know about them.
18212     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
18213     # is used to find them so we can finally say `yes'.
18214     lt_cv_sys_dlopen_deplibs=yes
18215     ;;
18216   qnx*)
18217     lt_cv_sys_dlopen_deplibs=yes
18218     ;;
18219   solaris*)
18220     lt_cv_sys_dlopen_deplibs=yes
18221     ;;
18222   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18223     libltdl_cv_sys_dlopen_deplibs=yes
18224     ;;
18225   esac
18226
18227 fi
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
18229 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
18230 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
18231
18232 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
18233
18234 fi
18235
18236 :
18237
18238 for ac_header in argz.h
18239 do :
18240   ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
18241 "
18242 if test "x$ac_cv_header_argz_h" = x""yes; then :
18243   cat >>confdefs.h <<_ACEOF
18244 #define HAVE_ARGZ_H 1
18245 _ACEOF
18246
18247 fi
18248
18249 done
18250
18251
18252 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
18253 #  include <argz.h>
18254 #endif
18255 "
18256 if test "x$ac_cv_type_error_t" = x""yes; then :
18257
18258 cat >>confdefs.h <<_ACEOF
18259 #define HAVE_ERROR_T 1
18260 _ACEOF
18261
18262
18263 else
18264
18265 $as_echo "#define error_t int" >>confdefs.h
18266
18267
18268 $as_echo "#define __error_t_defined 1" >>confdefs.h
18269
18270 fi
18271
18272
18273 ARGZ_H=
18274 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
18275         argz_next argz_stringify
18276 do :
18277   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18278 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18279 eval as_val=\$$as_ac_var
18280    if test "x$as_val" = x""yes; then :
18281   cat >>confdefs.h <<_ACEOF
18282 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18283 _ACEOF
18284
18285 else
18286   ARGZ_H=argz.h;
18287
18288   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18289
18290 fi
18291 done
18292
18293
18294 if test -z "$ARGZ_H"; then :
18295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
18296 $as_echo_n "checking if argz actually works... " >&6; }
18297 if test "${lt_cv_sys_argz_works+set}" = set; then :
18298   $as_echo_n "(cached) " >&6
18299 else
18300   case $host_os in #(
18301          *cygwin*)
18302            lt_cv_sys_argz_works=no
18303            if test "$cross_compiling" != no; then
18304              lt_cv_sys_argz_works="guessing no"
18305            else
18306              lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
18307              save_IFS=$IFS
18308              IFS=-.
18309              set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
18310              IFS=$save_IFS
18311              lt_os_major=${2-0}
18312              lt_os_minor=${3-0}
18313              lt_os_micro=${4-0}
18314              if test "$lt_os_major" -gt 1 \
18315                 || { test "$lt_os_major" -eq 1 \
18316                   && { test "$lt_os_minor" -gt 5 \
18317                     || { test "$lt_os_minor" -eq 5 \
18318                       && test "$lt_os_micro" -gt 24; }; }; }; then
18319                lt_cv_sys_argz_works=yes
18320              fi
18321            fi
18322            ;; #(
18323          *) lt_cv_sys_argz_works=yes ;;
18324          esac
18325 fi
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
18327 $as_echo "$lt_cv_sys_argz_works" >&6; }
18328      if test $lt_cv_sys_argz_works = yes; then :
18329
18330 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
18331
18332 else
18333   ARGZ_H=argz.h
18334
18335
18336   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18337
18338 fi
18339 fi
18340
18341
18342
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
18344 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
18345 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
18346   $as_echo_n "(cached) " >&6
18347 else
18348   if test -n "$lt_cv_sys_global_symbol_pipe"; then
18349     libltdl_cv_preloaded_symbols=yes
18350   else
18351     libltdl_cv_preloaded_symbols=no
18352   fi
18353
18354 fi
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
18356 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
18357 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
18358
18359 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
18360
18361 fi
18362
18363 # Set options
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375 # Check whether --with-included_ltdl was given.
18376 if test "${with_included_ltdl+set}" = set; then :
18377   withval=$with_included_ltdl;
18378 fi
18379
18380
18381 if test "x$with_included_ltdl" != xyes; then
18382   # We are not being forced to use the included libltdl sources, so
18383   # decide whether there is a useful installed version we can use.
18384   ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
18385
18386 "
18387 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
18388   ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
18389             #include <ltdl.h>
18390 "
18391 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
18392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
18393 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
18394 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
18395   $as_echo_n "(cached) " >&6
18396 else
18397   ac_check_lib_save_LIBS=$LIBS
18398 LIBS="-lltdl  $LIBS"
18399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18400 /* end confdefs.h.  */
18401
18402 /* Override any GCC internal prototype to avoid an error.
18403    Use char because int might match the return type of a GCC
18404    builtin and then its argument prototype would still apply.  */
18405 #ifdef __cplusplus
18406 extern "C"
18407 #endif
18408 char lt_dladvise_preload ();
18409 int
18410 main ()
18411 {
18412 return lt_dladvise_preload ();
18413   ;
18414   return 0;
18415 }
18416 _ACEOF
18417 if ac_fn_c_try_link "$LINENO"; then :
18418   ac_cv_lib_ltdl_lt_dladvise_preload=yes
18419 else
18420   ac_cv_lib_ltdl_lt_dladvise_preload=no
18421 fi
18422 rm -f core conftest.err conftest.$ac_objext \
18423     conftest$ac_exeext conftest.$ac_ext
18424 LIBS=$ac_check_lib_save_LIBS
18425 fi
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
18427 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
18428 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
18429   with_included_ltdl=no
18430 else
18431   with_included_ltdl=yes
18432 fi
18433
18434 else
18435   with_included_ltdl=yes
18436 fi
18437
18438 else
18439   with_included_ltdl=yes
18440 fi
18441
18442
18443 fi
18444
18445
18446
18447
18448 # Check whether --with-ltdl_include was given.
18449 if test "${with_ltdl_include+set}" = set; then :
18450   withval=$with_ltdl_include;
18451 fi
18452
18453
18454 if test -n "$with_ltdl_include"; then
18455   if test -f "$with_ltdl_include/ltdl.h"; then :
18456   else
18457     as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
18458   fi
18459 else
18460   with_ltdl_include=no
18461 fi
18462
18463
18464 # Check whether --with-ltdl_lib was given.
18465 if test "${with_ltdl_lib+set}" = set; then :
18466   withval=$with_ltdl_lib;
18467 fi
18468
18469
18470 if test -n "$with_ltdl_lib"; then
18471   if test -f "$with_ltdl_lib/libltdl.la"; then :
18472   else
18473     as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
18474   fi
18475 else
18476   with_ltdl_lib=no
18477 fi
18478
18479 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
18480   ,yes,no,no,)
18481         case $enable_ltdl_convenience in
18482   no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
18483   "") enable_ltdl_convenience=yes
18484       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
18485 esac
18486 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
18487 LTDLDEPS=$LIBLTDL
18488 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
18489
18490
18491
18492
18493
18494 # For backwards non-gettext consistent compatibility...
18495 INCLTDL="$LTDLINCL"
18496
18497
18498         ;;
18499   ,no,no,no,)
18500         # If the included ltdl is not to be used, then use the
18501         # preinstalled libltdl we found.
18502
18503 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
18504
18505         LIBLTDL=-lltdl
18506         LTDLDEPS=
18507         LTDLINCL=
18508         ;;
18509   ,no*,no,*)
18510         as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
18511         ;;
18512   *)    with_included_ltdl=no
18513         LIBLTDL="-L$with_ltdl_lib -lltdl"
18514         LTDLDEPS=
18515         LTDLINCL="-I$with_ltdl_include"
18516         ;;
18517 esac
18518 INCLTDL="$LTDLINCL"
18519
18520 # Report our decision...
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
18522 $as_echo_n "checking where to find libltdl headers... " >&6; }
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
18524 $as_echo "$LTDLINCL" >&6; }
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
18526 $as_echo_n "checking where to find libltdl library... " >&6; }
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
18528 $as_echo "$LIBLTDL" >&6; }
18529
18530
18531
18532 # Check whether --enable-ltdl-install was given.
18533 if test "${enable_ltdl_install+set}" = set; then :
18534   enableval=$enable_ltdl_install;
18535 fi
18536
18537
18538 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
18539   *yes*) ;;
18540   *) enable_ltdl_convenience=yes ;;
18541 esac
18542
18543  if test x"${enable_ltdl_install-no}" != xno; then
18544   INSTALL_LTDL_TRUE=
18545   INSTALL_LTDL_FALSE='#'
18546 else
18547   INSTALL_LTDL_TRUE='#'
18548   INSTALL_LTDL_FALSE=
18549 fi
18550
18551   if test x"${enable_ltdl_convenience-no}" != xno; then
18552   CONVENIENCE_LTDL_TRUE=
18553   CONVENIENCE_LTDL_FALSE='#'
18554 else
18555   CONVENIENCE_LTDL_TRUE='#'
18556   CONVENIENCE_LTDL_FALSE=
18557 fi
18558
18559
18560
18561
18562
18563
18564
18565 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
18566 # the user used.  This is so that ltdl.h can pick up the parent projects
18567 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
18568 # definitions required by ltdl.c.
18569 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
18570
18571
18572
18573 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
18574 do :
18575   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18576 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18577 "
18578 eval as_val=\$$as_ac_Header
18579    if test "x$as_val" = x""yes; then :
18580   cat >>confdefs.h <<_ACEOF
18581 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18582 _ACEOF
18583
18584 fi
18585
18586 done
18587
18588
18589 for ac_func in closedir opendir readdir
18590 do :
18591   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18592 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18593 eval as_val=\$$as_ac_var
18594    if test "x$as_val" = x""yes; then :
18595   cat >>confdefs.h <<_ACEOF
18596 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18597 _ACEOF
18598
18599 else
18600
18601
18602   _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
18603
18604 fi
18605 done
18606
18607 for ac_func in strlcat strlcpy
18608 do :
18609   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18610 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18611 eval as_val=\$$as_ac_var
18612    if test "x$as_val" = x""yes; then :
18613   cat >>confdefs.h <<_ACEOF
18614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18615 _ACEOF
18616
18617 else
18618
18619
18620   _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
18621
18622 fi
18623 done
18624
18625
18626
18627 cat >>confdefs.h <<_ACEOF
18628 #define LT_LIBEXT "$libext"
18629 _ACEOF
18630
18631
18632 name=ltdl
18633 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
18634
18635
18636
18637
18638
18639
18640
18641
18642 # Only expand once:
18643
18644
18645
18646 # Check to see if building shared libraries
18647 libtool_build_shared_libs='no'
18648 if test "$enable_shared" = 'yes'; then
18649     libtool_build_shared_libs='yes'
18650 fi
18651
18652 # Check to see if building static libraries
18653 libtool_build_static_libs='no'
18654 if test "$enable_static" = 'yes'; then
18655     libtool_build_static_libs='yes'
18656 fi
18657
18658 # MinGW and Cygwin can't build C++ DLLs which support exceptions.
18659 if test "${StaticCplusPlusLibraries}" = 'yes'; then
18660     LTCXXLIBOPTS='--static'
18661
18662 fi
18663
18664 #
18665 # Enable support for building loadable modules
18666 #
18667
18668 # Check whether --with-modules was given.
18669 if test "${with_modules+set}" = set; then :
18670   withval=$with_modules; with_modules=$withval
18671 else
18672   with_modules=$libtool_build_shared_libs
18673 fi
18674
18675
18676 # Only allow building loadable modules if we are building shared libraries
18677 if test "$with_modules" != 'no' ; then
18678     if test "$libtool_build_shared_libs" = 'no'; then
18679         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
18680 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
18681         with_modules='no'
18682     fi
18683 fi
18684 if test "$with_modules" != 'no'; then
18685
18686 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
18687
18688 fi
18689  if test "$with_modules" != 'no'; then
18690   WITH_MODULES_TRUE=
18691   WITH_MODULES_FALSE='#'
18692 else
18693   WITH_MODULES_TRUE='#'
18694   WITH_MODULES_FALSE=
18695 fi
18696
18697
18698 # Enable building/use of libltdl if we are building shared libraries regardless
18699 # of whether modules are built or not.
18700 with_ltdl='no'
18701 if test "$libtool_build_shared_libs" != 'no'; then
18702     with_ltdl='yes'
18703 fi
18704
18705  if test "$with_ltdl" != 'no'; then
18706   WITH_LTDL_TRUE=
18707   WITH_LTDL_FALSE='#'
18708 else
18709   WITH_LTDL_TRUE='#'
18710   WITH_LTDL_FALSE=
18711 fi
18712
18713 if test "$with_ltdl" != 'no'; then
18714
18715 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
18716
18717
18718     # Set DLLDFLAGS
18719     if test X"$enable_shared" = Xyes; then
18720         DLLDFLAGS=-export-dynamic
18721
18722     fi
18723 fi
18724
18725 # Enable build using delegate libraries built in subdirectories rather than installed
18726 # delegate libraries (bzlib fftw fpx jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
18727 # Check whether --enable-delegate-build was given.
18728 if test "${enable_delegate_build+set}" = set; then :
18729   enableval=$enable_delegate_build; enable_delegate_build=$enableval
18730 else
18731   enable_delegate_build='no'
18732 fi
18733
18734
18735 # Check whether --enable-deprecated was given.
18736 if test "${enable_deprecated+set}" = set; then :
18737   enableval=$enable_deprecated; enable_deprecated=$enableval
18738 else
18739   enable_deprecated='no'
18740 fi
18741
18742
18743 if test "$enable_deprecated" = 'yes'; then
18744
18745 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
18746
18747 else
18748   DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
18749 fi
18750
18751 # Build a version of ImageMagick which operates uninstalled.
18752 # Used to build distributions located via MAGICK_HOME / executable path
18753 # Check whether --enable-installed was given.
18754 if test "${enable_installed+set}" = set; then :
18755   enableval=$enable_installed; enable_installed=$enableval
18756 else
18757   enable_installed='yes'
18758 fi
18759
18760
18761 if test "$enable_installed" = 'yes'; then
18762
18763 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
18764
18765 else
18766     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
18767 fi
18768
18769 # Permit enciphering and deciphering image pixels.
18770 # Check whether --enable-cipher was given.
18771 if test "${enable_cipher+set}" = set; then :
18772   enableval=$enable_cipher; enable_cipher=$enableval
18773 else
18774   enable_cipher='yes'
18775 fi
18776
18777
18778 if test "$enable_cipher" = 'yes'; then
18779
18780 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
18781
18782 fi
18783
18784 # Build an embeddable version of ImageMagick.
18785 # Check whether --enable-embeddable was given.
18786 if test "${enable_embeddable+set}" = set; then :
18787   enableval=$enable_embeddable; enable_embeddable=$enableval
18788 else
18789   enable_embeddable='no'
18790 fi
18791
18792
18793 if test "$enable_embeddable" = 'yes'; then
18794
18795 $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
18796
18797 fi
18798
18799 # Build a high dynamic range version of ImageMagick.
18800 # Check whether --enable-hdri was given.
18801 if test "${enable_hdri+set}" = set; then :
18802   enableval=$enable_hdri; enable_hdri=$enableval
18803 else
18804   enable_hdri='no'
18805 fi
18806
18807
18808 MAGICK_HDRI=""
18809 if test "$enable_hdri" = 'yes'; then
18810     MAGICK_HDRI="HDRI"
18811
18812 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
18813
18814 fi
18815
18816 # Build a version of ImageMagick with assert statements.
18817 # Check whether --enable-assert was given.
18818 if test "${enable_assert+set}" = set; then :
18819   enableval=$enable_assert; enable_assert=$enableval
18820 else
18821   enable_assert='yes'
18822 fi
18823
18824
18825 if test "$enable_assert" = 'no'; then
18826
18827 $as_echo "#define NDEBUG 1" >>confdefs.h
18828
18829 fi
18830
18831 # Add configure option --enable-maintainer-mode which enables dependency
18832 # checking and generation useful to package maintainers.  This is made an
18833 # option to avoid confusing end users.
18834
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18836 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18837     # Check whether --enable-maintainer-mode was given.
18838 if test "${enable_maintainer_mode+set}" = set; then :
18839   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18840 else
18841   USE_MAINTAINER_MODE=no
18842 fi
18843
18844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18845 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18846    if test $USE_MAINTAINER_MODE = yes; then
18847   MAINTAINER_MODE_TRUE=
18848   MAINTAINER_MODE_FALSE='#'
18849 else
18850   MAINTAINER_MODE_TRUE='#'
18851   MAINTAINER_MODE_FALSE=
18852 fi
18853
18854   MAINT=$MAINTAINER_MODE_TRUE
18855
18856
18857
18858
18859 # Enable ccmalloc memory debugging support
18860 # Check whether --enable-ccmalloc was given.
18861 if test "${enable_ccmalloc+set}" = set; then :
18862   enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
18863 else
18864   enable_ccmalloc='no'
18865 fi
18866
18867
18868 # Enable Electric Fence memory debugging support
18869 # Check whether --enable-efence was given.
18870 if test "${enable_efence+set}" = set; then :
18871   enableval=$enable_efence; enable_efence=$enableval
18872 else
18873   enable_efence='no'
18874 fi
18875
18876
18877 # Enable prof-based profiling support
18878 # Check whether --enable-prof was given.
18879 if test "${enable_prof+set}" = set; then :
18880   enableval=$enable_prof; enable_prof=$enableval
18881 else
18882   enable_prof='no'
18883 fi
18884
18885
18886 # Enable gprof-based profiling support
18887 # Check whether --enable-gprof was given.
18888 if test "${enable_gprof+set}" = set; then :
18889   enableval=$enable_gprof; enable_gprof=$enableval
18890 else
18891   enable_gprof='no'
18892 fi
18893
18894
18895 # Enable gcov-based profiling support
18896 # Check whether --enable-gcov was given.
18897 if test "${enable_gcov+set}" = set; then :
18898   enableval=$enable_gcov; enable_gcov=$enableval
18899 else
18900   enable_gcov='no'
18901 fi
18902
18903
18904 enable_profiling='no'
18905 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
18906     enable_profiling='yes'
18907     if test "$libtool_build_shared_libs" = 'yes'; then
18908         echo "Warning: Can not profile code using shared libraries"
18909     fi
18910 fi
18911
18912 # Magick API method prefix
18913
18914 # Check whether --with-method-prefix was given.
18915 if test "${with_method_prefix+set}" = set; then :
18916   withval=$with_method_prefix; with_method_prefix=$enableval
18917 else
18918   with_method_prefix=''
18919 fi
18920
18921
18922 if test "$with_method_prefix" != ''; then
18923
18924 cat >>confdefs.h <<_ACEOF
18925 #define NAMESPACE_PREFIX $with_method_prefix
18926 _ACEOF
18927
18928 fi
18929
18930 # Number of bits in a Quantum
18931
18932 # Check whether --with-quantum-depth was given.
18933 if test "${with_quantum_depth+set}" = set; then :
18934   withval=$with_quantum_depth; with_quantum_depth=$withval
18935 else
18936   with_quantum_depth=16
18937 fi
18938
18939
18940 if test "$with_quantum_depth" != '8'; then
18941     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
18942 fi
18943
18944 case "${with_quantum_depth}" in
18945     8 ) ;;
18946     16 ) ;;
18947     32 ) ;;
18948     64 ) ;;
18949     * ) { as_fn_set_status 16
18950 as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
18951 esac
18952 QUANTUM_DEPTH="$with_quantum_depth"
18953
18954 cat >>confdefs.h <<_ACEOF
18955 #define QUANTUM_DEPTH $QUANTUM_DEPTH
18956 _ACEOF
18957
18958
18959 # Set pixel cache threshold
18960
18961 # Check whether --with-cache was given.
18962 if test "${with_cache+set}" = set; then :
18963   withval=$with_cache; with_cache=$withval
18964 else
18965   with_cache=''
18966 fi
18967
18968
18969 if test "$with_cache" != ''; then
18970
18971 cat >>confdefs.h <<_ACEOF
18972 #define PixelCacheThreshold $with_cache
18973 _ACEOF
18974
18975     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
18976 fi
18977
18978 # Disable/Enable support for full delegate paths
18979
18980 # Check whether --with-frozenpaths was given.
18981 if test "${with_frozenpaths+set}" = set; then :
18982   withval=$with_frozenpaths; with_frozenpaths=$withval
18983 else
18984   with_frozenpaths='no'
18985 fi
18986
18987
18988 # Enable build/install of Magick++
18989
18990 # Check whether --with-magick-plus-plus was given.
18991 if test "${with_magick_plus_plus+set}" = set; then :
18992   withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
18993 else
18994   with_magick_plus_plus='yes'
18995 fi
18996
18997
18998 # Disable build/install of PerlMagick.
18999
19000 # Check whether --with-perl was given.
19001 if test "${with_perl+set}" = set; then :
19002   withval=$with_perl; with_perl=$withval
19003 else
19004   with_perl=$libtool_build_shared_libs
19005 fi
19006
19007
19008 # Options to pass when configuring PerlMagick
19009
19010 # Check whether --with-perl-options was given.
19011 if test "${with_perl_options+set}" = set; then :
19012   withval=$with_perl_options;
19013 fi
19014
19015
19016 PERL_MAKE_OPTIONS=$with_perl_options
19017
19018
19019
19020 # Enable umem, object-caching memory allocation library.
19021
19022 # Check whether --with-umem was given.
19023 if test "${with_umem+set}" = set; then :
19024   withval=$with_umem; with_umem=$withval
19025 else
19026   with_umem='no'
19027 fi
19028
19029 if test "$with_umem" != 'yes' ; then
19030     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
19031 fi
19032
19033 #
19034 # Specify path to shared libstdc++ if not in normal location
19035 #
19036
19037 # Check whether --with-libstdc was given.
19038 if test "${with_libstdc+set}" = set; then :
19039   withval=$with_libstdc; with_libstdc=$withval
19040 else
19041   with_libstdc=''
19042 fi
19043
19044
19045 if test "$with_libstdc" != ''; then
19046     if test -d "$with_libstdc"; then
19047         LIBSTDCLDFLAGS="-L$with_libstdc"
19048     fi
19049 fi
19050
19051
19052 # Does gcc required -traditional?
19053 if test $ac_cv_c_compiler_gnu = yes; then
19054     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
19055 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
19056 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
19057   $as_echo_n "(cached) " >&6
19058 else
19059     ac_pattern="Autoconf.*'x'"
19060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19061 /* end confdefs.h.  */
19062 #include <sgtty.h>
19063 Autoconf TIOCGETP
19064 _ACEOF
19065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19066   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
19067   ac_cv_prog_gcc_traditional=yes
19068 else
19069   ac_cv_prog_gcc_traditional=no
19070 fi
19071 rm -f conftest*
19072
19073
19074   if test $ac_cv_prog_gcc_traditional = no; then
19075     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19076 /* end confdefs.h.  */
19077 #include <termio.h>
19078 Autoconf TCGETA
19079 _ACEOF
19080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19081   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
19082   ac_cv_prog_gcc_traditional=yes
19083 fi
19084 rm -f conftest*
19085
19086   fi
19087 fi
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
19089 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
19090   if test $ac_cv_prog_gcc_traditional = yes; then
19091     CC="$CC -traditional"
19092   fi
19093 fi
19094
19095
19096 ########
19097 #
19098 # Set defines required to build DLLs and modules using MinGW
19099 #
19100 ########
19101 # These options are set for multi-thread DLL module build
19102 #  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_
19103 #  module:              _DLL
19104 #  executable/Magick++: _DLL _MAGICKMOD_
19105 MODULE_EXTRA_CPPFLAGS=''
19106 LIBRARY_EXTRA_CPPFLAGS=''
19107 if test "${native_win32_build}" = 'yes'; then
19108     if test "${libtool_build_shared_libs}" = 'yes'; then
19109         CPPFLAGS="$CPPFLAGS -D_DLL"
19110         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
19111         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
19112         LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19113         if test "$with_modules" = 'yes'; then
19114             LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
19115         else
19116             MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19117         fi
19118     else
19119         CPPFLAGS="$CPPFLAGS -D_LIB"
19120         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
19121         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
19122     fi
19123     if test "$with_threads" = 'yes'; then
19124          CPPFLAGS="$CPPFLAGS -D_MT"
19125          MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
19126          MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
19127     fi
19128 fi
19129
19130
19131
19132 # Check standard headers
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19134 $as_echo_n "checking for ANSI C header files... " >&6; }
19135 if test "${ac_cv_header_stdc+set}" = set; then :
19136   $as_echo_n "(cached) " >&6
19137 else
19138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19139 /* end confdefs.h.  */
19140 #include <stdlib.h>
19141 #include <stdarg.h>
19142 #include <string.h>
19143 #include <float.h>
19144
19145 int
19146 main ()
19147 {
19148
19149   ;
19150   return 0;
19151 }
19152 _ACEOF
19153 if ac_fn_c_try_compile "$LINENO"; then :
19154   ac_cv_header_stdc=yes
19155 else
19156   ac_cv_header_stdc=no
19157 fi
19158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19159
19160 if test $ac_cv_header_stdc = yes; then
19161   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19163 /* end confdefs.h.  */
19164 #include <string.h>
19165
19166 _ACEOF
19167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19168   $EGREP "memchr" >/dev/null 2>&1; then :
19169
19170 else
19171   ac_cv_header_stdc=no
19172 fi
19173 rm -f conftest*
19174
19175 fi
19176
19177 if test $ac_cv_header_stdc = yes; then
19178   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19180 /* end confdefs.h.  */
19181 #include <stdlib.h>
19182
19183 _ACEOF
19184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19185   $EGREP "free" >/dev/null 2>&1; then :
19186
19187 else
19188   ac_cv_header_stdc=no
19189 fi
19190 rm -f conftest*
19191
19192 fi
19193
19194 if test $ac_cv_header_stdc = yes; then
19195   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19196   if test "$cross_compiling" = yes; then :
19197   :
19198 else
19199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19200 /* end confdefs.h.  */
19201 #include <ctype.h>
19202 #include <stdlib.h>
19203 #if ((' ' & 0x0FF) == 0x020)
19204 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19205 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19206 #else
19207 # define ISLOWER(c) \
19208                    (('a' <= (c) && (c) <= 'i') \
19209                      || ('j' <= (c) && (c) <= 'r') \
19210                      || ('s' <= (c) && (c) <= 'z'))
19211 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19212 #endif
19213
19214 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19215 int
19216 main ()
19217 {
19218   int i;
19219   for (i = 0; i < 256; i++)
19220     if (XOR (islower (i), ISLOWER (i))
19221         || toupper (i) != TOUPPER (i))
19222       return 2;
19223   return 0;
19224 }
19225 _ACEOF
19226 if ac_fn_c_try_run "$LINENO"; then :
19227
19228 else
19229   ac_cv_header_stdc=no
19230 fi
19231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19232   conftest.$ac_objext conftest.beam conftest.$ac_ext
19233 fi
19234
19235 fi
19236 fi
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19238 $as_echo "$ac_cv_header_stdc" >&6; }
19239 if test $ac_cv_header_stdc = yes; then
19240
19241 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19242
19243 fi
19244
19245 if ! test x"$ac_cv_header_stdc" = x"yes"; then
19246     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
19247     header files.  Compilation cannot proceed.  Please install the ANSI C
19248     headers and rerun this script." >&5
19249 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
19250     header files.  Compilation cannot proceed.  Please install the ANSI C
19251     headers and rerun this script." >&2;};
19252 fi
19253 ac_header_dirent=no
19254 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19255   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19257 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
19259   $as_echo_n "(cached) " >&6
19260 else
19261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19262 /* end confdefs.h.  */
19263 #include <sys/types.h>
19264 #include <$ac_hdr>
19265
19266 int
19267 main ()
19268 {
19269 if ((DIR *) 0)
19270 return 0;
19271   ;
19272   return 0;
19273 }
19274 _ACEOF
19275 if ac_fn_c_try_compile "$LINENO"; then :
19276   eval "$as_ac_Header=yes"
19277 else
19278   eval "$as_ac_Header=no"
19279 fi
19280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19281 fi
19282 eval ac_res=\$$as_ac_Header
19283                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19284 $as_echo "$ac_res" >&6; }
19285 eval as_val=\$$as_ac_Header
19286    if test "x$as_val" = x""yes; then :
19287   cat >>confdefs.h <<_ACEOF
19288 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19289 _ACEOF
19290
19291 ac_header_dirent=$ac_hdr; break
19292 fi
19293
19294 done
19295 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19296 if test $ac_header_dirent = dirent.h; then
19297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19298 $as_echo_n "checking for library containing opendir... " >&6; }
19299 if test "${ac_cv_search_opendir+set}" = set; then :
19300   $as_echo_n "(cached) " >&6
19301 else
19302   ac_func_search_save_LIBS=$LIBS
19303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19304 /* end confdefs.h.  */
19305
19306 /* Override any GCC internal prototype to avoid an error.
19307    Use char because int might match the return type of a GCC
19308    builtin and then its argument prototype would still apply.  */
19309 #ifdef __cplusplus
19310 extern "C"
19311 #endif
19312 char opendir ();
19313 int
19314 main ()
19315 {
19316 return opendir ();
19317   ;
19318   return 0;
19319 }
19320 _ACEOF
19321 for ac_lib in '' dir; do
19322   if test -z "$ac_lib"; then
19323     ac_res="none required"
19324   else
19325     ac_res=-l$ac_lib
19326     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19327   fi
19328   if ac_fn_c_try_link "$LINENO"; then :
19329   ac_cv_search_opendir=$ac_res
19330 fi
19331 rm -f core conftest.err conftest.$ac_objext \
19332     conftest$ac_exeext
19333   if test "${ac_cv_search_opendir+set}" = set; then :
19334   break
19335 fi
19336 done
19337 if test "${ac_cv_search_opendir+set}" = set; then :
19338
19339 else
19340   ac_cv_search_opendir=no
19341 fi
19342 rm conftest.$ac_ext
19343 LIBS=$ac_func_search_save_LIBS
19344 fi
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19346 $as_echo "$ac_cv_search_opendir" >&6; }
19347 ac_res=$ac_cv_search_opendir
19348 if test "$ac_res" != no; then :
19349   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19350
19351 fi
19352
19353 else
19354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19355 $as_echo_n "checking for library containing opendir... " >&6; }
19356 if test "${ac_cv_search_opendir+set}" = set; then :
19357   $as_echo_n "(cached) " >&6
19358 else
19359   ac_func_search_save_LIBS=$LIBS
19360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19361 /* end confdefs.h.  */
19362
19363 /* Override any GCC internal prototype to avoid an error.
19364    Use char because int might match the return type of a GCC
19365    builtin and then its argument prototype would still apply.  */
19366 #ifdef __cplusplus
19367 extern "C"
19368 #endif
19369 char opendir ();
19370 int
19371 main ()
19372 {
19373 return opendir ();
19374   ;
19375   return 0;
19376 }
19377 _ACEOF
19378 for ac_lib in '' x; do
19379   if test -z "$ac_lib"; then
19380     ac_res="none required"
19381   else
19382     ac_res=-l$ac_lib
19383     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19384   fi
19385   if ac_fn_c_try_link "$LINENO"; then :
19386   ac_cv_search_opendir=$ac_res
19387 fi
19388 rm -f core conftest.err conftest.$ac_objext \
19389     conftest$ac_exeext
19390   if test "${ac_cv_search_opendir+set}" = set; then :
19391   break
19392 fi
19393 done
19394 if test "${ac_cv_search_opendir+set}" = set; then :
19395
19396 else
19397   ac_cv_search_opendir=no
19398 fi
19399 rm conftest.$ac_ext
19400 LIBS=$ac_func_search_save_LIBS
19401 fi
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19403 $as_echo "$ac_cv_search_opendir" >&6; }
19404 ac_res=$ac_cv_search_opendir
19405 if test "$ac_res" != no; then :
19406   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19407
19408 fi
19409
19410 fi
19411
19412
19413 # Check additional headers
19414 for ac_header in arm/limits.h complex.h errno.h fcntl.h inttypes.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h stdarg.h stddef.h string.h strings.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/wait.h unistd.h wchar.h
19415 do :
19416   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19417 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19418 eval as_val=\$$as_ac_Header
19419    if test "x$as_val" = x""yes; then :
19420   cat >>confdefs.h <<_ACEOF
19421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19422 _ACEOF
19423
19424 fi
19425
19426 done
19427
19428
19429 ########
19430 #
19431 # Checks for typedefs, structures, and compiler characteristics.
19432 #
19433 ########
19434
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19436 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19437 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19438   $as_echo_n "(cached) " >&6
19439 else
19440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19441 /* end confdefs.h.  */
19442
19443 #include <stdbool.h>
19444 #ifndef bool
19445  "error: bool is not defined"
19446 #endif
19447 #ifndef false
19448  "error: false is not defined"
19449 #endif
19450 #if false
19451  "error: false is not 0"
19452 #endif
19453 #ifndef true
19454  "error: true is not defined"
19455 #endif
19456 #if true != 1
19457  "error: true is not 1"
19458 #endif
19459 #ifndef __bool_true_false_are_defined
19460  "error: __bool_true_false_are_defined is not defined"
19461 #endif
19462
19463         struct s { _Bool s: 1; _Bool t; } s;
19464
19465         char a[true == 1 ? 1 : -1];
19466         char b[false == 0 ? 1 : -1];
19467         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19468         char d[(bool) 0.5 == true ? 1 : -1];
19469         bool e = &s;
19470         char f[(_Bool) 0.0 == false ? 1 : -1];
19471         char g[true];
19472         char h[sizeof (_Bool)];
19473         char i[sizeof s.t];
19474         enum { j = false, k = true, l = false * true, m = true * 256 };
19475         /* The following fails for
19476            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19477         _Bool n[m];
19478         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19479         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19480 #       if defined __xlc__ || defined __GNUC__
19481          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
19482             reported by James Lemley on 2005-10-05; see
19483             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
19484             This test is not quite right, since xlc is allowed to
19485             reject this program, as the initializer for xlcbug is
19486             not one of the forms that C requires support for.
19487             However, doing the test right would require a runtime
19488             test, and that would make cross-compilation harder.
19489             Let us hope that IBM fixes the xlc bug, and also adds
19490             support for this kind of constant expression.  In the
19491             meantime, this test will reject xlc, which is OK, since
19492             our stdbool.h substitute should suffice.  We also test
19493             this with GCC, where it should work, to detect more
19494             quickly whether someone messes up the test in the
19495             future.  */
19496          char digs[] = "0123456789";
19497          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
19498 #       endif
19499         /* Catch a bug in an HP-UX C compiler.  See
19500            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19501            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19502          */
19503         _Bool q = true;
19504         _Bool *pq = &q;
19505
19506 int
19507 main ()
19508 {
19509
19510         *pq |= q;
19511         *pq |= ! q;
19512         /* Refer to every declared value, to avoid compiler optimizations.  */
19513         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19514                 + !m + !n + !o + !p + !q + !pq);
19515
19516   ;
19517   return 0;
19518 }
19519 _ACEOF
19520 if ac_fn_c_try_compile "$LINENO"; then :
19521   ac_cv_header_stdbool_h=yes
19522 else
19523   ac_cv_header_stdbool_h=no
19524 fi
19525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19526 fi
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19528 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19529 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19530 if test "x$ac_cv_type__Bool" = x""yes; then :
19531
19532 cat >>confdefs.h <<_ACEOF
19533 #define HAVE__BOOL 1
19534 _ACEOF
19535
19536
19537 fi
19538
19539 if test $ac_cv_header_stdbool_h = yes; then
19540
19541 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
19542
19543 fi
19544
19545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
19546 $as_echo_n "checking for working volatile... " >&6; }
19547 if test "${ac_cv_c_volatile+set}" = set; then :
19548   $as_echo_n "(cached) " >&6
19549 else
19550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19551 /* end confdefs.h.  */
19552
19553 int
19554 main ()
19555 {
19556
19557 volatile int x;
19558 int * volatile y = (int *) 0;
19559 return !x && !y;
19560   ;
19561   return 0;
19562 }
19563 _ACEOF
19564 if ac_fn_c_try_compile "$LINENO"; then :
19565   ac_cv_c_volatile=yes
19566 else
19567   ac_cv_c_volatile=no
19568 fi
19569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19570 fi
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
19572 $as_echo "$ac_cv_c_volatile" >&6; }
19573 if test $ac_cv_c_volatile = no; then
19574
19575 $as_echo "#define volatile /**/" >>confdefs.h
19576
19577 fi
19578
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
19580 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
19581 if test "${ac_cv_c_stringize+set}" = set; then :
19582   $as_echo_n "(cached) " >&6
19583 else
19584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19585 /* end confdefs.h.  */
19586 #define x(y) #y
19587
19588 char *s = x(teststring);
19589 _ACEOF
19590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19591   $EGREP "#teststring" >/dev/null 2>&1; then :
19592   ac_cv_c_stringize=no
19593 else
19594   ac_cv_c_stringize=yes
19595 fi
19596 rm -f conftest*
19597
19598 fi
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
19600 $as_echo "$ac_cv_c_stringize" >&6; }
19601 if test $ac_cv_c_stringize = yes; then
19602
19603 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
19604
19605 fi
19606
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19608 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19609 if test "${ac_cv_header_stat_broken+set}" = set; then :
19610   $as_echo_n "(cached) " >&6
19611 else
19612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19613 /* end confdefs.h.  */
19614 #include <sys/types.h>
19615 #include <sys/stat.h>
19616
19617 #if defined S_ISBLK && defined S_IFDIR
19618 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19619 #endif
19620
19621 #if defined S_ISBLK && defined S_IFCHR
19622 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19623 #endif
19624
19625 #if defined S_ISLNK && defined S_IFREG
19626 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19627 #endif
19628
19629 #if defined S_ISSOCK && defined S_IFREG
19630 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19631 #endif
19632
19633 _ACEOF
19634 if ac_fn_c_try_compile "$LINENO"; then :
19635   ac_cv_header_stat_broken=no
19636 else
19637   ac_cv_header_stat_broken=yes
19638 fi
19639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19640 fi
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19642 $as_echo "$ac_cv_header_stat_broken" >&6; }
19643 if test $ac_cv_header_stat_broken = yes; then
19644
19645 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19646
19647 fi
19648
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19650 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19651 if test "${ac_cv_header_time+set}" = set; then :
19652   $as_echo_n "(cached) " >&6
19653 else
19654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19655 /* end confdefs.h.  */
19656 #include <sys/types.h>
19657 #include <sys/time.h>
19658 #include <time.h>
19659
19660 int
19661 main ()
19662 {
19663 if ((struct tm *) 0)
19664 return 0;
19665   ;
19666   return 0;
19667 }
19668 _ACEOF
19669 if ac_fn_c_try_compile "$LINENO"; then :
19670   ac_cv_header_time=yes
19671 else
19672   ac_cv_header_time=no
19673 fi
19674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19675 fi
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19677 $as_echo "$ac_cv_header_time" >&6; }
19678 if test $ac_cv_header_time = yes; then
19679
19680 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19681
19682 fi
19683
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19685 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19686 if test "${ac_cv_struct_tm+set}" = set; then :
19687   $as_echo_n "(cached) " >&6
19688 else
19689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19690 /* end confdefs.h.  */
19691 #include <sys/types.h>
19692 #include <time.h>
19693
19694 int
19695 main ()
19696 {
19697 struct tm tm;
19698                                      int *p = &tm.tm_sec;
19699                                      return !p;
19700   ;
19701   return 0;
19702 }
19703 _ACEOF
19704 if ac_fn_c_try_compile "$LINENO"; then :
19705   ac_cv_struct_tm=time.h
19706 else
19707   ac_cv_struct_tm=sys/time.h
19708 fi
19709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19710 fi
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19712 $as_echo "$ac_cv_struct_tm" >&6; }
19713 if test $ac_cv_struct_tm = sys/time.h; then
19714
19715 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19716
19717 fi
19718
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
19720 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
19721 if test "${ac_cv_sys_interpreter+set}" = set; then :
19722   $as_echo_n "(cached) " >&6
19723 else
19724   echo '#! /bin/cat
19725 exit 69
19726 ' >conftest
19727 chmod u+x conftest
19728 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
19729 if test $? -ne 69; then
19730    ac_cv_sys_interpreter=yes
19731 else
19732    ac_cv_sys_interpreter=no
19733 fi
19734 rm -f conftest
19735 fi
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
19737 $as_echo "$ac_cv_sys_interpreter" >&6; }
19738 interpval=$ac_cv_sys_interpreter
19739
19740
19741 # If the C compiler does not fully support the ANSI C qualifier const,
19742 # define const to be empty.
19743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19744 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19745 if test "${ac_cv_c_const+set}" = set; then :
19746   $as_echo_n "(cached) " >&6
19747 else
19748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19749 /* end confdefs.h.  */
19750
19751 int
19752 main ()
19753 {
19754 /* FIXME: Include the comments suggested by Paul. */
19755 #ifndef __cplusplus
19756   /* Ultrix mips cc rejects this.  */
19757   typedef int charset[2];
19758   const charset cs;
19759   /* SunOS 4.1.1 cc rejects this.  */
19760   char const *const *pcpcc;
19761   char **ppc;
19762   /* NEC SVR4.0.2 mips cc rejects this.  */
19763   struct point {int x, y;};
19764   static struct point const zero = {0,0};
19765   /* AIX XL C 1.02.0.0 rejects this.
19766      It does not let you subtract one const X* pointer from another in
19767      an arm of an if-expression whose if-part is not a constant
19768      expression */
19769   const char *g = "string";
19770   pcpcc = &g + (g ? g-g : 0);
19771   /* HPUX 7.0 cc rejects these. */
19772   ++pcpcc;
19773   ppc = (char**) pcpcc;
19774   pcpcc = (char const *const *) ppc;
19775   { /* SCO 3.2v4 cc rejects this.  */
19776     char *t;
19777     char const *s = 0 ? (char *) 0 : (char const *) 0;
19778
19779     *t++ = 0;
19780     if (s) return 0;
19781   }
19782   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19783     int x[] = {25, 17};
19784     const int *foo = &x[0];
19785     ++foo;
19786   }
19787   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19788     typedef const int *iptr;
19789     iptr p = 0;
19790     ++p;
19791   }
19792   { /* AIX XL C 1.02.0.0 rejects this saying
19793        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19794     struct s { int j; const int *ap[3]; };
19795     struct s *b; b->j = 5;
19796   }
19797   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19798     const int foo = 10;
19799     if (!foo) return 0;
19800   }
19801   return !cs[0] && !zero.x;
19802 #endif
19803
19804   ;
19805   return 0;
19806 }
19807 _ACEOF
19808 if ac_fn_c_try_compile "$LINENO"; then :
19809   ac_cv_c_const=yes
19810 else
19811   ac_cv_c_const=no
19812 fi
19813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19814 fi
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19816 $as_echo "$ac_cv_c_const" >&6; }
19817 if test $ac_cv_c_const = no; then
19818
19819 $as_echo "#define const /**/" >>confdefs.h
19820
19821 fi
19822
19823
19824 # If the C compiler supports the keyword inline, do nothing. Otherwise
19825 # define inline to __inline__ or __inline if it accepts one of those,
19826 # otherwise define inline to be empty.
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19828 $as_echo_n "checking for inline... " >&6; }
19829 if test "${ac_cv_c_inline+set}" = set; then :
19830   $as_echo_n "(cached) " >&6
19831 else
19832   ac_cv_c_inline=no
19833 for ac_kw in inline __inline__ __inline; do
19834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19835 /* end confdefs.h.  */
19836 #ifndef __cplusplus
19837 typedef int foo_t;
19838 static $ac_kw foo_t static_foo () {return 0; }
19839 $ac_kw foo_t foo () {return 0; }
19840 #endif
19841
19842 _ACEOF
19843 if ac_fn_c_try_compile "$LINENO"; then :
19844   ac_cv_c_inline=$ac_kw
19845 fi
19846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19847   test "$ac_cv_c_inline" != no && break
19848 done
19849
19850 fi
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19852 $as_echo "$ac_cv_c_inline" >&6; }
19853
19854 case $ac_cv_c_inline in
19855   inline | yes) ;;
19856   *)
19857     case $ac_cv_c_inline in
19858       no) ac_val=;;
19859       *) ac_val=$ac_cv_c_inline;;
19860     esac
19861     cat >>confdefs.h <<_ACEOF
19862 #ifndef __cplusplus
19863 #define inline $ac_val
19864 #endif
19865 _ACEOF
19866     ;;
19867 esac
19868
19869
19870 # If the C compiler supports the keyword restrict, do nothing. Otherwise
19871 # define restrict to __restrict__ or __restrict if it accepts one of those,
19872 # otherwise define restrict to be empty.
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19874 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19875 if test "${ac_cv_c_restrict+set}" = set; then :
19876   $as_echo_n "(cached) " >&6
19877 else
19878   ac_cv_c_restrict=no
19879    # The order here caters to the fact that C++ does not require restrict.
19880    for ac_kw in __restrict __restrict__ _Restrict restrict; do
19881      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19882 /* end confdefs.h.  */
19883 typedef int * int_ptr;
19884         int foo (int_ptr $ac_kw ip) {
19885         return ip[0];
19886        }
19887 int
19888 main ()
19889 {
19890 int s[1];
19891         int * $ac_kw t = s;
19892         t[0] = 0;
19893         return foo(t)
19894   ;
19895   return 0;
19896 }
19897 _ACEOF
19898 if ac_fn_c_try_compile "$LINENO"; then :
19899   ac_cv_c_restrict=$ac_kw
19900 fi
19901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19902      test "$ac_cv_c_restrict" != no && break
19903    done
19904
19905 fi
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19907 $as_echo "$ac_cv_c_restrict" >&6; }
19908
19909  case $ac_cv_c_restrict in
19910    restrict) ;;
19911    no) $as_echo "#define restrict /**/" >>confdefs.h
19912  ;;
19913    *)  cat >>confdefs.h <<_ACEOF
19914 #define restrict $ac_cv_c_restrict
19915 _ACEOF
19916  ;;
19917  esac
19918
19919
19920 # If words are stored with the most significant byte first (like
19921 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
19922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
19923 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
19924 if test "${ac_cv_c_bigendian+set}" = set; then :
19925   $as_echo_n "(cached) " >&6
19926 else
19927   ac_cv_c_bigendian=unknown
19928     # See if we're dealing with a universal compiler.
19929     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19930 /* end confdefs.h.  */
19931 #ifndef __APPLE_CC__
19932                not a universal capable compiler
19933              #endif
19934              typedef int dummy;
19935
19936 _ACEOF
19937 if ac_fn_c_try_compile "$LINENO"; then :
19938
19939         # Check for potential -arch flags.  It is not universal unless
19940         # there are at least two -arch flags with different values.
19941         ac_arch=
19942         ac_prev=
19943         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
19944          if test -n "$ac_prev"; then
19945            case $ac_word in
19946              i?86 | x86_64 | ppc | ppc64)
19947                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
19948                  ac_arch=$ac_word
19949                else
19950                  ac_cv_c_bigendian=universal
19951                  break
19952                fi
19953                ;;
19954            esac
19955            ac_prev=
19956          elif test "x$ac_word" = "x-arch"; then
19957            ac_prev=arch
19958          fi
19959        done
19960 fi
19961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19962     if test $ac_cv_c_bigendian = unknown; then
19963       # See if sys/param.h defines the BYTE_ORDER macro.
19964       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19965 /* end confdefs.h.  */
19966 #include <sys/types.h>
19967              #include <sys/param.h>
19968
19969 int
19970 main ()
19971 {
19972 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
19973                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
19974                      && LITTLE_ENDIAN)
19975               bogus endian macros
19976              #endif
19977
19978   ;
19979   return 0;
19980 }
19981 _ACEOF
19982 if ac_fn_c_try_compile "$LINENO"; then :
19983   # It does; now see whether it defined to BIG_ENDIAN or not.
19984          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19985 /* end confdefs.h.  */
19986 #include <sys/types.h>
19987                 #include <sys/param.h>
19988
19989 int
19990 main ()
19991 {
19992 #if BYTE_ORDER != BIG_ENDIAN
19993                  not big endian
19994                 #endif
19995
19996   ;
19997   return 0;
19998 }
19999 _ACEOF
20000 if ac_fn_c_try_compile "$LINENO"; then :
20001   ac_cv_c_bigendian=yes
20002 else
20003   ac_cv_c_bigendian=no
20004 fi
20005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20006 fi
20007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20008     fi
20009     if test $ac_cv_c_bigendian = unknown; then
20010       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20011       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20012 /* end confdefs.h.  */
20013 #include <limits.h>
20014
20015 int
20016 main ()
20017 {
20018 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20019               bogus endian macros
20020              #endif
20021
20022   ;
20023   return 0;
20024 }
20025 _ACEOF
20026 if ac_fn_c_try_compile "$LINENO"; then :
20027   # It does; now see whether it defined to _BIG_ENDIAN or not.
20028          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20029 /* end confdefs.h.  */
20030 #include <limits.h>
20031
20032 int
20033 main ()
20034 {
20035 #ifndef _BIG_ENDIAN
20036                  not big endian
20037                 #endif
20038
20039   ;
20040   return 0;
20041 }
20042 _ACEOF
20043 if ac_fn_c_try_compile "$LINENO"; then :
20044   ac_cv_c_bigendian=yes
20045 else
20046   ac_cv_c_bigendian=no
20047 fi
20048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20049 fi
20050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20051     fi
20052     if test $ac_cv_c_bigendian = unknown; then
20053       # Compile a test program.
20054       if test "$cross_compiling" = yes; then :
20055   # Try to guess by grepping values from an object file.
20056          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20057 /* end confdefs.h.  */
20058 short int ascii_mm[] =
20059                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20060                 short int ascii_ii[] =
20061                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20062                 int use_ascii (int i) {
20063                   return ascii_mm[i] + ascii_ii[i];
20064                 }
20065                 short int ebcdic_ii[] =
20066                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20067                 short int ebcdic_mm[] =
20068                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20069                 int use_ebcdic (int i) {
20070                   return ebcdic_mm[i] + ebcdic_ii[i];
20071                 }
20072                 extern int foo;
20073
20074 int
20075 main ()
20076 {
20077 return use_ascii (foo) == use_ebcdic (foo);
20078   ;
20079   return 0;
20080 }
20081 _ACEOF
20082 if ac_fn_c_try_compile "$LINENO"; then :
20083   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20084               ac_cv_c_bigendian=yes
20085             fi
20086             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20087               if test "$ac_cv_c_bigendian" = unknown; then
20088                 ac_cv_c_bigendian=no
20089               else
20090                 # finding both strings is unlikely to happen, but who knows?
20091                 ac_cv_c_bigendian=unknown
20092               fi
20093             fi
20094 fi
20095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20096 else
20097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20098 /* end confdefs.h.  */
20099 $ac_includes_default
20100 int
20101 main ()
20102 {
20103
20104              /* Are we little or big endian?  From Harbison&Steele.  */
20105              union
20106              {
20107                long int l;
20108                char c[sizeof (long int)];
20109              } u;
20110              u.l = 1;
20111              return u.c[sizeof (long int) - 1] == 1;
20112
20113   ;
20114   return 0;
20115 }
20116 _ACEOF
20117 if ac_fn_c_try_run "$LINENO"; then :
20118   ac_cv_c_bigendian=no
20119 else
20120   ac_cv_c_bigendian=yes
20121 fi
20122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20123   conftest.$ac_objext conftest.beam conftest.$ac_ext
20124 fi
20125
20126     fi
20127 fi
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20129 $as_echo "$ac_cv_c_bigendian" >&6; }
20130  case $ac_cv_c_bigendian in #(
20131    yes)
20132      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
20133 ;; #(
20134    no)
20135       ;; #(
20136    universal)
20137
20138 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20139
20140      ;; #(
20141    *)
20142      as_fn_error "unknown endianness
20143  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
20144  esac
20145
20146
20147 # Define mode_t to a suitable type, if standard headers do not define it.
20148 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20149 if test "x$ac_cv_type_mode_t" = x""yes; then :
20150
20151 else
20152
20153 cat >>confdefs.h <<_ACEOF
20154 #define mode_t int
20155 _ACEOF
20156
20157 fi
20158
20159
20160 # Define off_t to a suitable type, if standard headers do not define it.
20161 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20162 if test "x$ac_cv_type_off_t" = x""yes; then :
20163
20164 else
20165
20166 cat >>confdefs.h <<_ACEOF
20167 #define off_t long int
20168 _ACEOF
20169
20170 fi
20171
20172
20173 # Define pid_t to a suitable type, if standard headers do not define it.
20174 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20175 if test "x$ac_cv_type_pid_t" = x""yes; then :
20176
20177 else
20178
20179 cat >>confdefs.h <<_ACEOF
20180 #define pid_t int
20181 _ACEOF
20182
20183 fi
20184
20185
20186 # Define size_t to a suitable type, if standard headers do not define it.
20187 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20188 if test "x$ac_cv_type_size_t" = x""yes; then :
20189
20190 else
20191
20192 cat >>confdefs.h <<_ACEOF
20193 #define size_t unsigned int
20194 _ACEOF
20195
20196 fi
20197
20198
20199 # Define ssize_t to a suitable type, if standard headers do not define it.
20200 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20201 if test "x$ac_cv_type_ssize_t" = x""yes; then :
20202
20203 else
20204
20205 cat >>confdefs.h <<_ACEOF
20206 #define ssize_t int
20207 _ACEOF
20208
20209 fi
20210
20211
20212 # If the C compiler supports a working long double type with more range
20213 # or precision than the double type, define HAVE_LONG_DOUBLE.
20214
20215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
20216 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
20217 if test "${ac_cv_type_long_double_wider+set}" = set; then :
20218   $as_echo_n "(cached) " >&6
20219 else
20220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20221 /* end confdefs.h.  */
20222 #include <float.h>
20223             long double const a[] =
20224               {
20225                  0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
20226                  LDBL_MIN, LDBL_MAX, LDBL_EPSILON
20227               };
20228             long double
20229             f (long double x)
20230             {
20231                return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
20232                         + (x ? f (x) : 'c'));
20233             }
20234
20235 int
20236 main ()
20237 {
20238 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
20239                    + (DBL_MANT_DIG < LDBL_MANT_DIG)
20240                    - (LDBL_MAX_EXP < DBL_MAX_EXP)
20241                    - (LDBL_MANT_DIG < DBL_MANT_DIG)))
20242             && (int) LDBL_EPSILON == 0
20243           )];
20244 test_array [0] = 0
20245
20246   ;
20247   return 0;
20248 }
20249 _ACEOF
20250 if ac_fn_c_try_compile "$LINENO"; then :
20251   ac_cv_type_long_double_wider=yes
20252 else
20253   ac_cv_type_long_double_wider=no
20254 fi
20255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20256 fi
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
20258 $as_echo "$ac_cv_type_long_double_wider" >&6; }
20259   if test $ac_cv_type_long_double_wider = yes; then
20260
20261 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
20262
20263   fi
20264
20265
20266 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
20267 # C compiler predefines it.
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
20269 $as_echo_n "checking whether char is unsigned... " >&6; }
20270 if test "${ac_cv_c_char_unsigned+set}" = set; then :
20271   $as_echo_n "(cached) " >&6
20272 else
20273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20274 /* end confdefs.h.  */
20275 $ac_includes_default
20276 int
20277 main ()
20278 {
20279 static int test_array [1 - 2 * !(((char) -1) < 0)];
20280 test_array [0] = 0
20281
20282   ;
20283   return 0;
20284 }
20285 _ACEOF
20286 if ac_fn_c_try_compile "$LINENO"; then :
20287   ac_cv_c_char_unsigned=no
20288 else
20289   ac_cv_c_char_unsigned=yes
20290 fi
20291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20292 fi
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
20294 $as_echo "$ac_cv_c_char_unsigned" >&6; }
20295 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20296   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
20297
20298 fi
20299
20300
20301 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
20302 # The cast to long int works around a bug in the HP C Compiler
20303 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20304 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20305 # This bug is HP SR number 8606223364.
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
20307 $as_echo_n "checking size of signed short... " >&6; }
20308 if test "${ac_cv_sizeof_signed_short+set}" = set; then :
20309   $as_echo_n "(cached) " >&6
20310 else
20311   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
20312
20313 else
20314   if test "$ac_cv_type_signed_short" = yes; then
20315      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20317 { as_fn_set_status 77
20318 as_fn_error "cannot compute sizeof (signed short)
20319 See \`config.log' for more details." "$LINENO" 5; }; }
20320    else
20321      ac_cv_sizeof_signed_short=0
20322    fi
20323 fi
20324
20325 fi
20326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
20327 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
20328
20329
20330
20331 cat >>confdefs.h <<_ACEOF
20332 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
20333 _ACEOF
20334
20335
20336
20337 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
20338 # The cast to long int works around a bug in the HP C Compiler
20339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20341 # This bug is HP SR number 8606223364.
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
20343 $as_echo_n "checking size of unsigned short... " >&6; }
20344 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
20345   $as_echo_n "(cached) " >&6
20346 else
20347   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
20348
20349 else
20350   if test "$ac_cv_type_unsigned_short" = yes; then
20351      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20353 { as_fn_set_status 77
20354 as_fn_error "cannot compute sizeof (unsigned short)
20355 See \`config.log' for more details." "$LINENO" 5; }; }
20356    else
20357      ac_cv_sizeof_unsigned_short=0
20358    fi
20359 fi
20360
20361 fi
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
20363 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20364
20365
20366
20367 cat >>confdefs.h <<_ACEOF
20368 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20369 _ACEOF
20370
20371
20372
20373 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
20374 # The cast to long int works around a bug in the HP C Compiler
20375 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20376 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20377 # This bug is HP SR number 8606223364.
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
20379 $as_echo_n "checking size of signed int... " >&6; }
20380 if test "${ac_cv_sizeof_signed_int+set}" = set; then :
20381   $as_echo_n "(cached) " >&6
20382 else
20383   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
20384
20385 else
20386   if test "$ac_cv_type_signed_int" = yes; then
20387      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20389 { as_fn_set_status 77
20390 as_fn_error "cannot compute sizeof (signed int)
20391 See \`config.log' for more details." "$LINENO" 5; }; }
20392    else
20393      ac_cv_sizeof_signed_int=0
20394    fi
20395 fi
20396
20397 fi
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
20399 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
20400
20401
20402
20403 cat >>confdefs.h <<_ACEOF
20404 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
20405 _ACEOF
20406
20407
20408
20409 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
20410 # The cast to long int works around a bug in the HP C Compiler
20411 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20412 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20413 # This bug is HP SR number 8606223364.
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20415 $as_echo_n "checking size of unsigned int... " >&6; }
20416 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
20417   $as_echo_n "(cached) " >&6
20418 else
20419   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
20420
20421 else
20422   if test "$ac_cv_type_unsigned_int" = yes; then
20423      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20425 { as_fn_set_status 77
20426 as_fn_error "cannot compute sizeof (unsigned int)
20427 See \`config.log' for more details." "$LINENO" 5; }; }
20428    else
20429      ac_cv_sizeof_unsigned_int=0
20430    fi
20431 fi
20432
20433 fi
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20435 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20436
20437
20438
20439 cat >>confdefs.h <<_ACEOF
20440 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20441 _ACEOF
20442
20443
20444
20445 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
20446 # The cast to long int works around a bug in the HP C Compiler
20447 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20448 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20449 # This bug is HP SR number 8606223364.
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
20451 $as_echo_n "checking size of signed long... " >&6; }
20452 if test "${ac_cv_sizeof_signed_long+set}" = set; then :
20453   $as_echo_n "(cached) " >&6
20454 else
20455   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
20456
20457 else
20458   if test "$ac_cv_type_signed_long" = yes; then
20459      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20461 { as_fn_set_status 77
20462 as_fn_error "cannot compute sizeof (signed long)
20463 See \`config.log' for more details." "$LINENO" 5; }; }
20464    else
20465      ac_cv_sizeof_signed_long=0
20466    fi
20467 fi
20468
20469 fi
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
20471 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
20472
20473
20474
20475 cat >>confdefs.h <<_ACEOF
20476 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
20477 _ACEOF
20478
20479
20480
20481 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
20482 # The cast to long int works around a bug in the HP C Compiler
20483 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20484 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20485 # This bug is HP SR number 8606223364.
20486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
20487 $as_echo_n "checking size of unsigned long... " >&6; }
20488 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
20489   $as_echo_n "(cached) " >&6
20490 else
20491   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
20492
20493 else
20494   if test "$ac_cv_type_unsigned_long" = yes; then
20495      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20497 { as_fn_set_status 77
20498 as_fn_error "cannot compute sizeof (unsigned long)
20499 See \`config.log' for more details." "$LINENO" 5; }; }
20500    else
20501      ac_cv_sizeof_unsigned_long=0
20502    fi
20503 fi
20504
20505 fi
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
20507 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20508
20509
20510
20511 cat >>confdefs.h <<_ACEOF
20512 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20513 _ACEOF
20514
20515
20516
20517 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.  If
20518 # 'signed long long' is not supported then the value defined is zero.
20519 # The cast to long int works around a bug in the HP C Compiler
20520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20522 # This bug is HP SR number 8606223364.
20523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
20524 $as_echo_n "checking size of signed long long... " >&6; }
20525 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
20526   $as_echo_n "(cached) " >&6
20527 else
20528   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
20529
20530 else
20531   if test "$ac_cv_type_signed_long_long" = yes; then
20532      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20534 { as_fn_set_status 77
20535 as_fn_error "cannot compute sizeof (signed long long)
20536 See \`config.log' for more details." "$LINENO" 5; }; }
20537    else
20538      ac_cv_sizeof_signed_long_long=0
20539    fi
20540 fi
20541
20542 fi
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
20544 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
20545
20546
20547
20548 cat >>confdefs.h <<_ACEOF
20549 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
20550 _ACEOF
20551
20552
20553
20554 # Obtain size of a 'unsigned long long' and define as
20555 # SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
20556 # supported then the value defined is zero.
20557 # The cast to long int works around a bug in the HP C Compiler
20558 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20559 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20560 # This bug is HP SR number 8606223364.
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
20562 $as_echo_n "checking size of unsigned long long... " >&6; }
20563 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
20564   $as_echo_n "(cached) " >&6
20565 else
20566   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
20567
20568 else
20569   if test "$ac_cv_type_unsigned_long_long" = yes; then
20570      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20572 { as_fn_set_status 77
20573 as_fn_error "cannot compute sizeof (unsigned long long)
20574 See \`config.log' for more details." "$LINENO" 5; }; }
20575    else
20576      ac_cv_sizeof_unsigned_long_long=0
20577    fi
20578 fi
20579
20580 fi
20581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
20582 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
20583
20584
20585
20586 cat >>confdefs.h <<_ACEOF
20587 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
20588 _ACEOF
20589
20590
20591
20592 # Obtain size of off_t and define as SIZEOF_OFF_T
20593 # The cast to long int works around a bug in the HP C Compiler
20594 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20595 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20596 # This bug is HP SR number 8606223364.
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
20598 $as_echo_n "checking size of off_t... " >&6; }
20599 if test "${ac_cv_sizeof_off_t+set}" = set; then :
20600   $as_echo_n "(cached) " >&6
20601 else
20602   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
20603
20604 else
20605   if test "$ac_cv_type_off_t" = yes; then
20606      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20608 { as_fn_set_status 77
20609 as_fn_error "cannot compute sizeof (off_t)
20610 See \`config.log' for more details." "$LINENO" 5; }; }
20611    else
20612      ac_cv_sizeof_off_t=0
20613    fi
20614 fi
20615
20616 fi
20617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
20618 $as_echo "$ac_cv_sizeof_off_t" >&6; }
20619
20620
20621
20622 cat >>confdefs.h <<_ACEOF
20623 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
20624 _ACEOF
20625
20626
20627
20628 # Obtain size of size_t and define as SIZEOF_SIZE_T
20629 # The cast to long int works around a bug in the HP C Compiler
20630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20632 # This bug is HP SR number 8606223364.
20633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
20634 $as_echo_n "checking size of size_t... " >&6; }
20635 if test "${ac_cv_sizeof_size_t+set}" = set; then :
20636   $as_echo_n "(cached) " >&6
20637 else
20638   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
20639
20640 else
20641   if test "$ac_cv_type_size_t" = yes; then
20642      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20644 { as_fn_set_status 77
20645 as_fn_error "cannot compute sizeof (size_t)
20646 See \`config.log' for more details." "$LINENO" 5; }; }
20647    else
20648      ac_cv_sizeof_size_t=0
20649    fi
20650 fi
20651
20652 fi
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
20654 $as_echo "$ac_cv_sizeof_size_t" >&6; }
20655
20656
20657
20658 cat >>confdefs.h <<_ACEOF
20659 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20660 _ACEOF
20661
20662
20663
20664 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
20665 # The cast to long int works around a bug in the HP C Compiler
20666 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20667 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20668 # This bug is HP SR number 8606223364.
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
20670 $as_echo_n "checking size of unsigned int*... " >&6; }
20671 if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
20672   $as_echo_n "(cached) " >&6
20673 else
20674   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp"        "$ac_includes_default"; then :
20675
20676 else
20677   if test "$ac_cv_type_unsigned_intp" = yes; then
20678      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20680 { as_fn_set_status 77
20681 as_fn_error "cannot compute sizeof (unsigned int*)
20682 See \`config.log' for more details." "$LINENO" 5; }; }
20683    else
20684      ac_cv_sizeof_unsigned_intp=0
20685    fi
20686 fi
20687
20688 fi
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
20690 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
20691
20692
20693
20694 cat >>confdefs.h <<_ACEOF
20695 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
20696 _ACEOF
20697
20698
20699
20700 #
20701 # Compute sized types for current CPU and compiler options.
20702 #
20703
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
20705 $as_echo_n "checking for signed 8-bit type... " >&6; }
20706 INT8_T='signed char'
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
20708 $as_echo "$INT8_T" >&6; }
20709
20710
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
20712 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
20713 UINT8_T='unsigned char'
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
20715 $as_echo "$UINT8_T" >&6; }
20716
20717
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
20719 $as_echo_n "checking for signed 16-bit type... " >&6; }
20720 INT16_T='signed short'
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
20722 $as_echo "$INT16_T" >&6; }
20723
20724
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
20726 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
20727 UINT16_T='unsigned short'
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
20729 $as_echo "$UINT16_T" >&6; }
20730
20731
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
20733 $as_echo_n "checking for signed 32-bit type... " >&6; }
20734 INT32_T='none'
20735 if test $ac_cv_sizeof_signed_int -eq 4; then
20736   INT32_T='signed int'
20737 elif test $ac_cv_sizeof_signed_long -eq 4; then
20738   INT32_T='signed long'
20739 fi
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
20741 $as_echo "$INT32_T" >&6; }
20742
20743
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
20745 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
20746 UINT32_T='none'
20747 if test $ac_cv_sizeof_unsigned_int -eq 4; then
20748   UINT32_T='unsigned int'
20749 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
20750   UINT32_T='unsigned long'
20751 fi
20752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
20753 $as_echo "$UINT32_T" >&6; }
20754
20755
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
20757 $as_echo_n "checking for signed 64-bit type... " >&6; }
20758 INT64_T='none'
20759 if test $ac_cv_sizeof_signed_long -eq 8; then
20760   INT64_T='signed long'
20761 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
20762   INT64_T='signed long long'
20763 fi
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
20765 $as_echo "$INT64_T" >&6; }
20766
20767
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
20769 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
20770 UINT64_T='none'
20771 if test $ac_cv_sizeof_unsigned_long -eq 8; then
20772   UINT64_T='unsigned long'
20773 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
20774   UINT64_T='unsigned long long'
20775 fi
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
20777 $as_echo "$UINT64_T" >&6; }
20778
20779
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
20781 $as_echo_n "checking for unsigned maximum type... " >&6; }
20782 UINTMAX_T='none'
20783 if test "$UINT64_T" != 'none'; then
20784   UINTMAX_T=$UINT64_T
20785 elif test "$UINT32_T" != 'none'; then
20786   UINTMAX_T=$UINT32_T
20787 fi
20788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
20789 $as_echo "$UINTMAX_T" >&6; }
20790
20791
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
20793 $as_echo_n "checking for pointer difference type... " >&6; }
20794 UINTPTR_T='none'
20795 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
20796   UINTPTR_T='unsigned long'
20797 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
20798   UINTPTR_T='unsigned long long'
20799 fi
20800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
20801 $as_echo "$UINTPTR_T" >&6; }
20802
20803
20804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
20805 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
20806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20807 /* end confdefs.h.  */
20808
20809 int
20810 main ()
20811 {
20812 { const char *func = __func__; return(func != 0 ? 0 : 1); }
20813   ;
20814   return 0;
20815 }
20816 _ACEOF
20817 if ac_fn_c_try_compile "$LINENO"; then :
20818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20819 $as_echo "yes" >&6; }
20820 else
20821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20822 $as_echo "no" >&6; }
20823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
20824 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
20825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20826 /* end confdefs.h.  */
20827
20828 int
20829 main ()
20830 {
20831 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
20832   ;
20833   return 0;
20834 }
20835 _ACEOF
20836 if ac_fn_c_try_compile "$LINENO"; then :
20837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20838 $as_echo "yes" >&6; }
20839
20840 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
20841
20842 else
20843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20844 $as_echo "no" >&6; }
20845
20846 $as_echo "#define __func__ __FILE__" >>confdefs.h
20847
20848 fi
20849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20850 fi
20851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20852
20853 ########
20854 #
20855 # Check for functions
20856 #
20857 ########
20858 for ac_header in stdlib.h unistd.h
20859 do :
20860   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20861 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20862 eval as_val=\$$as_ac_Header
20863    if test "x$as_val" = x""yes; then :
20864   cat >>confdefs.h <<_ACEOF
20865 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20866 _ACEOF
20867
20868 fi
20869
20870 done
20871
20872 for ac_func in getpagesize
20873 do :
20874   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20875 if test "x$ac_cv_func_getpagesize" = x""yes; then :
20876   cat >>confdefs.h <<_ACEOF
20877 #define HAVE_GETPAGESIZE 1
20878 _ACEOF
20879
20880 fi
20881 done
20882
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
20884 $as_echo_n "checking for working mmap file i/o... " >&6; }
20885 if test "${magick_cv_func_mmap_fileio+set}" = set; then :
20886   $as_echo_n "(cached) " >&6
20887 else
20888   if test "$cross_compiling" = yes; then :
20889   magick_cv_func_mmap_fileio=no
20890 else
20891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20892 /* end confdefs.h.  */
20893 $ac_includes_default
20894 /* malloc might have been renamed as rpl_malloc. */
20895 #undef malloc
20896
20897 /*
20898    This test is derived from GNU Autoconf's similar macro.
20899    The purpose of this test is to verify that files may be memory
20900    mapped, and that memory mapping and file I/O are coherent.
20901
20902    The test creates a test file, memory maps the file, updates
20903    the file using the memory map, and then reads the file using
20904    file I/O to verify that the file contains the updates.
20905 */
20906
20907 #include <fcntl.h>
20908 #include <sys/mman.h>
20909
20910 #if !STDC_HEADERS && !HAVE_STDLIB_H
20911 char *malloc ();
20912 #endif
20913
20914 /* This mess was copied from the GNU getpagesize.h.  */
20915 #if !HAVE_GETPAGESIZE
20916 /* Assume that all systems that can run configure have sys/param.h.  */
20917 # if !HAVE_SYS_PARAM_H
20918 #  define HAVE_SYS_PARAM_H 1
20919 # endif
20920
20921 # ifdef _SC_PAGESIZE
20922 #  define getpagesize() sysconf(_SC_PAGESIZE)
20923 # else /* no _SC_PAGESIZE */
20924 #  if HAVE_SYS_PARAM_H
20925 #   include <sys/param.h>
20926 #   ifdef EXEC_PAGESIZE
20927 #    define getpagesize() EXEC_PAGESIZE
20928 #   else /* no EXEC_PAGESIZE */
20929 #    ifdef NBPG
20930 #     define getpagesize() NBPG * CLSIZE
20931 #     ifndef CLSIZE
20932 #      define CLSIZE 1
20933 #     endif /* no CLSIZE */
20934 #    else /* no NBPG */
20935 #     ifdef NBPC
20936 #      define getpagesize() NBPC
20937 #     else /* no NBPC */
20938 #      ifdef PAGESIZE
20939 #       define getpagesize() PAGESIZE
20940 #      endif /* PAGESIZE */
20941 #     endif /* no NBPC */
20942 #    endif /* no NBPG */
20943 #   endif /* no EXEC_PAGESIZE */
20944 #  else /* no HAVE_SYS_PARAM_H */
20945 #   define getpagesize() 8192   /* punt totally */
20946 #  endif /* no HAVE_SYS_PARAM_H */
20947 # endif /* no _SC_PAGESIZE */
20948
20949 #endif /* no HAVE_GETPAGESIZE */
20950
20951 int
20952 main ()
20953 {
20954   char *data, *data2, *data3;
20955   int i, pagesize;
20956   int fd;
20957
20958   pagesize = getpagesize ();
20959
20960   /* First, make a file with some known garbage in it. */
20961   data = (char *) malloc (pagesize);
20962   if (!data)
20963     exit (1);
20964   for (i = 0; i < pagesize; ++i)
20965     *(data + i) = rand ();
20966   umask (0);
20967   fd = creat ("conftest.mmap", 0600);
20968   if (fd < 0)
20969     exit (1);
20970   if (write (fd, data, pagesize) != pagesize)
20971     exit (1);
20972   close (fd);
20973
20974   /* Mmap the file as read/write/shared and verify that we see the
20975   same garbage. */
20976   fd = open ("conftest.mmap", O_RDWR);
20977   if (fd < 0)
20978     exit (1);
20979   data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
20980   if (data2 == 0)
20981     exit (1);
20982   for (i = 0; i < pagesize; ++i)
20983     if (*(data + i) != *(data2 + i))
20984       exit (1);
20985
20986   /* Finally, make sure that changes to the mapped area
20987      percolate back to the file as seen by read().  */
20988   for (i = 0; i < pagesize; ++i)
20989     *(data2 + i) = *(data2 + i) + 1;
20990   data3 = (char *) malloc (pagesize);
20991   if (!data3)
20992     exit (1);
20993   if (read (fd, data3, pagesize) != pagesize)
20994     exit (1);
20995   for (i = 0; i < pagesize; ++i)
20996     if (*(data2 + i) != *(data3 + i))
20997       exit (1);
20998   close (fd);
20999   exit (0);
21000 }
21001 _ACEOF
21002 if ac_fn_c_try_run "$LINENO"; then :
21003   magick_cv_func_mmap_fileio=yes
21004 else
21005   magick_cv_func_mmap_fileio=no
21006 fi
21007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21008   conftest.$ac_objext conftest.beam conftest.$ac_ext
21009 fi
21010
21011 fi
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
21013 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
21014 if test $magick_cv_func_mmap_fileio = yes; then
21015
21016 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
21017
21018 fi
21019 rm -f conftest.mmap
21020
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
21022 $as_echo_n "checking whether closedir returns void... " >&6; }
21023 if test "${ac_cv_func_closedir_void+set}" = set; then :
21024   $as_echo_n "(cached) " >&6
21025 else
21026   if test "$cross_compiling" = yes; then :
21027   ac_cv_func_closedir_void=yes
21028 else
21029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21030 /* end confdefs.h.  */
21031 $ac_includes_default
21032 #include <$ac_header_dirent>
21033 #ifndef __cplusplus
21034 int closedir ();
21035 #endif
21036
21037 int
21038 main ()
21039 {
21040 return closedir (opendir (".")) != 0;
21041   ;
21042   return 0;
21043 }
21044 _ACEOF
21045 if ac_fn_c_try_run "$LINENO"; then :
21046   ac_cv_func_closedir_void=no
21047 else
21048   ac_cv_func_closedir_void=yes
21049 fi
21050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21051   conftest.$ac_objext conftest.beam conftest.$ac_ext
21052 fi
21053
21054 fi
21055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
21056 $as_echo "$ac_cv_func_closedir_void" >&6; }
21057 if test $ac_cv_func_closedir_void = yes; then
21058
21059 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
21060
21061 fi
21062
21063
21064
21065
21066   for ac_header in $ac_header_list
21067 do :
21068   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21069 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21070 "
21071 eval as_val=\$$as_ac_Header
21072    if test "x$as_val" = x""yes; then :
21073   cat >>confdefs.h <<_ACEOF
21074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21075 _ACEOF
21076
21077 fi
21078
21079 done
21080
21081
21082
21083
21084
21085
21086
21087
21088 for ac_func in getpagesize
21089 do :
21090   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21091 if test "x$ac_cv_func_getpagesize" = x""yes; then :
21092   cat >>confdefs.h <<_ACEOF
21093 #define HAVE_GETPAGESIZE 1
21094 _ACEOF
21095
21096 fi
21097 done
21098
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
21100 $as_echo_n "checking for working mmap... " >&6; }
21101 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
21102   $as_echo_n "(cached) " >&6
21103 else
21104   if test "$cross_compiling" = yes; then :
21105   ac_cv_func_mmap_fixed_mapped=no
21106 else
21107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21108 /* end confdefs.h.  */
21109 $ac_includes_default
21110 /* malloc might have been renamed as rpl_malloc. */
21111 #undef malloc
21112
21113 /* Thanks to Mike Haertel and Jim Avera for this test.
21114    Here is a matrix of mmap possibilities:
21115         mmap private not fixed
21116         mmap private fixed at somewhere currently unmapped
21117         mmap private fixed at somewhere already mapped
21118         mmap shared not fixed
21119         mmap shared fixed at somewhere currently unmapped
21120         mmap shared fixed at somewhere already mapped
21121    For private mappings, we should verify that changes cannot be read()
21122    back from the file, nor mmap's back from the file at a different
21123    address.  (There have been systems where private was not correctly
21124    implemented like the infamous i386 svr4.0, and systems where the
21125    VM page cache was not coherent with the file system buffer cache
21126    like early versions of FreeBSD and possibly contemporary NetBSD.)
21127    For shared mappings, we should conversely verify that changes get
21128    propagated back to all the places they're supposed to be.
21129
21130    Grep wants private fixed already mapped.
21131    The main things grep needs to know about mmap are:
21132    * does it exist and is it safe to write into the mmap'd area
21133    * how to use it (BSD variants)  */
21134
21135 #include <fcntl.h>
21136 #include <sys/mman.h>
21137
21138 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21139 char *malloc ();
21140 #endif
21141
21142 /* This mess was copied from the GNU getpagesize.h.  */
21143 #ifndef HAVE_GETPAGESIZE
21144 # ifdef _SC_PAGESIZE
21145 #  define getpagesize() sysconf(_SC_PAGESIZE)
21146 # else /* no _SC_PAGESIZE */
21147 #  ifdef HAVE_SYS_PARAM_H
21148 #   include <sys/param.h>
21149 #   ifdef EXEC_PAGESIZE
21150 #    define getpagesize() EXEC_PAGESIZE
21151 #   else /* no EXEC_PAGESIZE */
21152 #    ifdef NBPG
21153 #     define getpagesize() NBPG * CLSIZE
21154 #     ifndef CLSIZE
21155 #      define CLSIZE 1
21156 #     endif /* no CLSIZE */
21157 #    else /* no NBPG */
21158 #     ifdef NBPC
21159 #      define getpagesize() NBPC
21160 #     else /* no NBPC */
21161 #      ifdef PAGESIZE
21162 #       define getpagesize() PAGESIZE
21163 #      endif /* PAGESIZE */
21164 #     endif /* no NBPC */
21165 #    endif /* no NBPG */
21166 #   endif /* no EXEC_PAGESIZE */
21167 #  else /* no HAVE_SYS_PARAM_H */
21168 #   define getpagesize() 8192   /* punt totally */
21169 #  endif /* no HAVE_SYS_PARAM_H */
21170 # endif /* no _SC_PAGESIZE */
21171
21172 #endif /* no HAVE_GETPAGESIZE */
21173
21174 int
21175 main ()
21176 {
21177   char *data, *data2, *data3;
21178   const char *cdata2;
21179   int i, pagesize;
21180   int fd, fd2;
21181
21182   pagesize = getpagesize ();
21183
21184   /* First, make a file with some known garbage in it. */
21185   data = (char *) malloc (pagesize);
21186   if (!data)
21187     return 1;
21188   for (i = 0; i < pagesize; ++i)
21189     *(data + i) = rand ();
21190   umask (0);
21191   fd = creat ("conftest.mmap", 0600);
21192   if (fd < 0)
21193     return 2;
21194   if (write (fd, data, pagesize) != pagesize)
21195     return 3;
21196   close (fd);
21197
21198   /* Next, check that the tail of a page is zero-filled.  File must have
21199      non-zero length, otherwise we risk SIGBUS for entire page.  */
21200   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
21201   if (fd2 < 0)
21202     return 4;
21203   cdata2 = "";
21204   if (write (fd2, cdata2, 1) != 1)
21205     return 5;
21206   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
21207   if (data2 == MAP_FAILED)
21208     return 6;
21209   for (i = 0; i < pagesize; ++i)
21210     if (*(data2 + i))
21211       return 7;
21212   close (fd2);
21213   if (munmap (data2, pagesize))
21214     return 8;
21215
21216   /* Next, try to mmap the file at a fixed address which already has
21217      something else allocated at it.  If we can, also make sure that
21218      we see the same garbage.  */
21219   fd = open ("conftest.mmap", O_RDWR);
21220   if (fd < 0)
21221     return 9;
21222   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21223                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21224     return 10;
21225   for (i = 0; i < pagesize; ++i)
21226     if (*(data + i) != *(data2 + i))
21227       return 11;
21228
21229   /* Finally, make sure that changes to the mapped area do not
21230      percolate back to the file as seen by read().  (This is a bug on
21231      some variants of i386 svr4.0.)  */
21232   for (i = 0; i < pagesize; ++i)
21233     *(data2 + i) = *(data2 + i) + 1;
21234   data3 = (char *) malloc (pagesize);
21235   if (!data3)
21236     return 12;
21237   if (read (fd, data3, pagesize) != pagesize)
21238     return 13;
21239   for (i = 0; i < pagesize; ++i)
21240     if (*(data + i) != *(data3 + i))
21241       return 14;
21242   close (fd);
21243   return 0;
21244 }
21245 _ACEOF
21246 if ac_fn_c_try_run "$LINENO"; then :
21247   ac_cv_func_mmap_fixed_mapped=yes
21248 else
21249   ac_cv_func_mmap_fixed_mapped=no
21250 fi
21251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21252   conftest.$ac_objext conftest.beam conftest.$ac_ext
21253 fi
21254
21255 fi
21256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
21257 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21258 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21259
21260 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
21261
21262 fi
21263 rm -f conftest.mmap conftest.txt
21264
21265 for ac_header in vfork.h
21266 do :
21267   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21268 if test "x$ac_cv_header_vfork_h" = x""yes; then :
21269   cat >>confdefs.h <<_ACEOF
21270 #define HAVE_VFORK_H 1
21271 _ACEOF
21272
21273 fi
21274
21275 done
21276
21277 for ac_func in fork vfork
21278 do :
21279   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21280 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21281 eval as_val=\$$as_ac_var
21282    if test "x$as_val" = x""yes; then :
21283   cat >>confdefs.h <<_ACEOF
21284 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21285 _ACEOF
21286
21287 fi
21288 done
21289
21290 if test "x$ac_cv_func_fork" = xyes; then
21291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21292 $as_echo_n "checking for working fork... " >&6; }
21293 if test "${ac_cv_func_fork_works+set}" = set; then :
21294   $as_echo_n "(cached) " >&6
21295 else
21296   if test "$cross_compiling" = yes; then :
21297   ac_cv_func_fork_works=cross
21298 else
21299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21300 /* end confdefs.h.  */
21301 $ac_includes_default
21302 int
21303 main ()
21304 {
21305
21306           /* By Ruediger Kuhlmann. */
21307           return fork () < 0;
21308
21309   ;
21310   return 0;
21311 }
21312 _ACEOF
21313 if ac_fn_c_try_run "$LINENO"; then :
21314   ac_cv_func_fork_works=yes
21315 else
21316   ac_cv_func_fork_works=no
21317 fi
21318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21319   conftest.$ac_objext conftest.beam conftest.$ac_ext
21320 fi
21321
21322 fi
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21324 $as_echo "$ac_cv_func_fork_works" >&6; }
21325
21326 else
21327   ac_cv_func_fork_works=$ac_cv_func_fork
21328 fi
21329 if test "x$ac_cv_func_fork_works" = xcross; then
21330   case $host in
21331     *-*-amigaos* | *-*-msdosdjgpp*)
21332       # Override, as these systems have only a dummy fork() stub
21333       ac_cv_func_fork_works=no
21334       ;;
21335     *)
21336       ac_cv_func_fork_works=yes
21337       ;;
21338   esac
21339   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21340 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21341 fi
21342 ac_cv_func_vfork_works=$ac_cv_func_vfork
21343 if test "x$ac_cv_func_vfork" = xyes; then
21344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21345 $as_echo_n "checking for working vfork... " >&6; }
21346 if test "${ac_cv_func_vfork_works+set}" = set; then :
21347   $as_echo_n "(cached) " >&6
21348 else
21349   if test "$cross_compiling" = yes; then :
21350   ac_cv_func_vfork_works=cross
21351 else
21352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21353 /* end confdefs.h.  */
21354 /* Thanks to Paul Eggert for this test.  */
21355 $ac_includes_default
21356 #include <sys/wait.h>
21357 #ifdef HAVE_VFORK_H
21358 # include <vfork.h>
21359 #endif
21360 /* On some sparc systems, changes by the child to local and incoming
21361    argument registers are propagated back to the parent.  The compiler
21362    is told about this with #include <vfork.h>, but some compilers
21363    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
21364    static variable whose address is put into a register that is
21365    clobbered by the vfork.  */
21366 static void
21367 #ifdef __cplusplus
21368 sparc_address_test (int arg)
21369 # else
21370 sparc_address_test (arg) int arg;
21371 #endif
21372 {
21373   static pid_t child;
21374   if (!child) {
21375     child = vfork ();
21376     if (child < 0) {
21377       perror ("vfork");
21378       _exit(2);
21379     }
21380     if (!child) {
21381       arg = getpid();
21382       write(-1, "", 0);
21383       _exit (arg);
21384     }
21385   }
21386 }
21387
21388 int
21389 main ()
21390 {
21391   pid_t parent = getpid ();
21392   pid_t child;
21393
21394   sparc_address_test (0);
21395
21396   child = vfork ();
21397
21398   if (child == 0) {
21399     /* Here is another test for sparc vfork register problems.  This
21400        test uses lots of local variables, at least as many local
21401        variables as main has allocated so far including compiler
21402        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
21403        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
21404        reuse the register of parent for one of the local variables,
21405        since it will think that parent can't possibly be used any more
21406        in this routine.  Assigning to the local variable will thus
21407        munge parent in the parent process.  */
21408     pid_t
21409       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21410       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21411     /* Convince the compiler that p..p7 are live; otherwise, it might
21412        use the same hardware register for all 8 local variables.  */
21413     if (p != p1 || p != p2 || p != p3 || p != p4
21414         || p != p5 || p != p6 || p != p7)
21415       _exit(1);
21416
21417     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21418        from child file descriptors.  If the child closes a descriptor
21419        before it execs or exits, this munges the parent's descriptor
21420        as well.  Test for this by closing stdout in the child.  */
21421     _exit(close(fileno(stdout)) != 0);
21422   } else {
21423     int status;
21424     struct stat st;
21425
21426     while (wait(&status) != child)
21427       ;
21428     return (
21429          /* Was there some problem with vforking?  */
21430          child < 0
21431
21432          /* Did the child fail?  (This shouldn't happen.)  */
21433          || status
21434
21435          /* Did the vfork/compiler bug occur?  */
21436          || parent != getpid()
21437
21438          /* Did the file descriptor bug occur?  */
21439          || fstat(fileno(stdout), &st) != 0
21440          );
21441   }
21442 }
21443 _ACEOF
21444 if ac_fn_c_try_run "$LINENO"; then :
21445   ac_cv_func_vfork_works=yes
21446 else
21447   ac_cv_func_vfork_works=no
21448 fi
21449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21450   conftest.$ac_objext conftest.beam conftest.$ac_ext
21451 fi
21452
21453 fi
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21455 $as_echo "$ac_cv_func_vfork_works" >&6; }
21456
21457 fi;
21458 if test "x$ac_cv_func_fork_works" = xcross; then
21459   ac_cv_func_vfork_works=$ac_cv_func_vfork
21460   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21461 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21462 fi
21463
21464 if test "x$ac_cv_func_vfork_works" = xyes; then
21465
21466 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21467
21468 else
21469
21470 $as_echo "#define vfork fork" >>confdefs.h
21471
21472 fi
21473 if test "x$ac_cv_func_fork_works" = xyes; then
21474
21475 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21476
21477 fi
21478
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
21480 $as_echo_n "checking for working memcmp... " >&6; }
21481 if test "${ac_cv_func_memcmp_working+set}" = set; then :
21482   $as_echo_n "(cached) " >&6
21483 else
21484   if test "$cross_compiling" = yes; then :
21485   ac_cv_func_memcmp_working=no
21486 else
21487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21488 /* end confdefs.h.  */
21489 $ac_includes_default
21490 int
21491 main ()
21492 {
21493
21494   /* Some versions of memcmp are not 8-bit clean.  */
21495   char c0 = '\100', c1 = '\200', c2 = '\201';
21496   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21497     return 1;
21498
21499   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21500      or more and with at least one buffer not starting on a 4-byte boundary.
21501      William Lewis provided this test program.   */
21502   {
21503     char foo[21];
21504     char bar[21];
21505     int i;
21506     for (i = 0; i < 4; i++)
21507       {
21508         char *a = foo + i;
21509         char *b = bar + i;
21510         strcpy (a, "--------01111111");
21511         strcpy (b, "--------10000000");
21512         if (memcmp (a, b, 16) >= 0)
21513           return 1;
21514       }
21515     return 0;
21516   }
21517
21518   ;
21519   return 0;
21520 }
21521 _ACEOF
21522 if ac_fn_c_try_run "$LINENO"; then :
21523   ac_cv_func_memcmp_working=yes
21524 else
21525   ac_cv_func_memcmp_working=no
21526 fi
21527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21528   conftest.$ac_objext conftest.beam conftest.$ac_ext
21529 fi
21530
21531 fi
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
21533 $as_echo "$ac_cv_func_memcmp_working" >&6; }
21534 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21535   *" memcmp.$ac_objext "* ) ;;
21536   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21537  ;;
21538 esac
21539
21540
21541 for ac_header in sys/select.h sys/socket.h
21542 do :
21543   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21544 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21545 eval as_val=\$$as_ac_Header
21546    if test "x$as_val" = x""yes; then :
21547   cat >>confdefs.h <<_ACEOF
21548 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21549 _ACEOF
21550
21551 fi
21552
21553 done
21554
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
21556 $as_echo_n "checking types of arguments for select... " >&6; }
21557 if test "${ac_cv_func_select_args+set}" = set; then :
21558   $as_echo_n "(cached) " >&6
21559 else
21560   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21561  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21562   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
21563    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21564 /* end confdefs.h.  */
21565 $ac_includes_default
21566 #ifdef HAVE_SYS_SELECT_H
21567 # include <sys/select.h>
21568 #endif
21569 #ifdef HAVE_SYS_SOCKET_H
21570 # include <sys/socket.h>
21571 #endif
21572
21573 int
21574 main ()
21575 {
21576 extern int select ($ac_arg1,
21577                                             $ac_arg234, $ac_arg234, $ac_arg234,
21578                                             $ac_arg5);
21579   ;
21580   return 0;
21581 }
21582 _ACEOF
21583 if ac_fn_c_try_compile "$LINENO"; then :
21584   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21585 fi
21586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21587   done
21588  done
21589 done
21590 # Provide a safe default value.
21591 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
21592
21593 fi
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
21595 $as_echo "$ac_cv_func_select_args" >&6; }
21596 ac_save_IFS=$IFS; IFS=','
21597 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21598 IFS=$ac_save_IFS
21599 shift
21600
21601 cat >>confdefs.h <<_ACEOF
21602 #define SELECT_TYPE_ARG1 $1
21603 _ACEOF
21604
21605
21606 cat >>confdefs.h <<_ACEOF
21607 #define SELECT_TYPE_ARG234 ($2)
21608 _ACEOF
21609
21610
21611 cat >>confdefs.h <<_ACEOF
21612 #define SELECT_TYPE_ARG5 ($3)
21613 _ACEOF
21614
21615 rm -f conftest*
21616
21617 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
21618   $as_echo_n "(cached) " >&6
21619 else
21620   ac_cv_func_setvbuf_reversed=no
21621 fi
21622
21623
21624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
21625 $as_echo_n "checking return type of signal handlers... " >&6; }
21626 if test "${ac_cv_type_signal+set}" = set; then :
21627   $as_echo_n "(cached) " >&6
21628 else
21629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21630 /* end confdefs.h.  */
21631 #include <sys/types.h>
21632 #include <signal.h>
21633
21634 int
21635 main ()
21636 {
21637 return *(signal (0, 0)) (0) == 1;
21638   ;
21639   return 0;
21640 }
21641 _ACEOF
21642 if ac_fn_c_try_compile "$LINENO"; then :
21643   ac_cv_type_signal=int
21644 else
21645   ac_cv_type_signal=void
21646 fi
21647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21648 fi
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
21650 $as_echo "$ac_cv_type_signal" >&6; }
21651
21652 cat >>confdefs.h <<_ACEOF
21653 #define RETSIGTYPE $ac_cv_type_signal
21654 _ACEOF
21655
21656
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
21658 $as_echo_n "checking for working strtod... " >&6; }
21659 if test "${ac_cv_func_strtod+set}" = set; then :
21660   $as_echo_n "(cached) " >&6
21661 else
21662   if test "$cross_compiling" = yes; then :
21663   ac_cv_func_strtod=no
21664 else
21665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21666 /* end confdefs.h.  */
21667
21668 $ac_includes_default
21669 #ifndef strtod
21670 double strtod ();
21671 #endif
21672 int
21673 main()
21674 {
21675   {
21676     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
21677     char *string = " +69";
21678     char *term;
21679     double value;
21680     value = strtod (string, &term);
21681     if (value != 69 || term != (string + 4))
21682       return 1;
21683   }
21684
21685   {
21686     /* Under Solaris 2.4, strtod returns the wrong value for the
21687        terminating character under some conditions.  */
21688     char *string = "NaN";
21689     char *term;
21690     strtod (string, &term);
21691     if (term != string && *(term - 1) == 0)
21692       return 1;
21693   }
21694   return 0;
21695 }
21696
21697 _ACEOF
21698 if ac_fn_c_try_run "$LINENO"; then :
21699   ac_cv_func_strtod=yes
21700 else
21701   ac_cv_func_strtod=no
21702 fi
21703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21704   conftest.$ac_objext conftest.beam conftest.$ac_ext
21705 fi
21706
21707 fi
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
21709 $as_echo "$ac_cv_func_strtod" >&6; }
21710 if test $ac_cv_func_strtod = no; then
21711   case " $LIBOBJS " in
21712   *" strtod.$ac_objext "* ) ;;
21713   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
21714  ;;
21715 esac
21716
21717 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
21718 if test "x$ac_cv_func_pow" = x""yes; then :
21719
21720 fi
21721
21722 if test $ac_cv_func_pow = no; then
21723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
21724 $as_echo_n "checking for pow in -lm... " >&6; }
21725 if test "${ac_cv_lib_m_pow+set}" = set; then :
21726   $as_echo_n "(cached) " >&6
21727 else
21728   ac_check_lib_save_LIBS=$LIBS
21729 LIBS="-lm  $LIBS"
21730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21731 /* end confdefs.h.  */
21732
21733 /* Override any GCC internal prototype to avoid an error.
21734    Use char because int might match the return type of a GCC
21735    builtin and then its argument prototype would still apply.  */
21736 #ifdef __cplusplus
21737 extern "C"
21738 #endif
21739 char pow ();
21740 int
21741 main ()
21742 {
21743 return pow ();
21744   ;
21745   return 0;
21746 }
21747 _ACEOF
21748 if ac_fn_c_try_link "$LINENO"; then :
21749   ac_cv_lib_m_pow=yes
21750 else
21751   ac_cv_lib_m_pow=no
21752 fi
21753 rm -f core conftest.err conftest.$ac_objext \
21754     conftest$ac_exeext conftest.$ac_ext
21755 LIBS=$ac_check_lib_save_LIBS
21756 fi
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
21758 $as_echo "$ac_cv_lib_m_pow" >&6; }
21759 if test "x$ac_cv_lib_m_pow" = x""yes; then :
21760   POW_LIB=-lm
21761 else
21762   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
21763 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
21764 fi
21765
21766 fi
21767
21768 fi
21769
21770 for ac_func in vprintf
21771 do :
21772   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21773 if test "x$ac_cv_func_vprintf" = x""yes; then :
21774   cat >>confdefs.h <<_ACEOF
21775 #define HAVE_VPRINTF 1
21776 _ACEOF
21777
21778 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21779 if test "x$ac_cv_func__doprnt" = x""yes; then :
21780
21781 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
21782
21783 fi
21784
21785 fi
21786 done
21787
21788
21789
21790 for ac_func in _exit atexit clock directio execvp floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r localtime_r lstat memmove memset mkstemp munmap _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign pow pread pwrite 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 strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep vsprintf vsnprintf waitpid _wfopen _wstat
21791 do :
21792   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21793 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21794 eval as_val=\$$as_ac_var
21795    if test "x$as_val" = x""yes; then :
21796   cat >>confdefs.h <<_ACEOF
21797 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21798 _ACEOF
21799
21800 fi
21801 done
21802
21803
21804 #
21805 # Check for clock_gettime().
21806 #
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21808 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21809 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21810   $as_echo_n "(cached) " >&6
21811 else
21812   ac_func_search_save_LIBS=$LIBS
21813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21814 /* end confdefs.h.  */
21815
21816 /* Override any GCC internal prototype to avoid an error.
21817    Use char because int might match the return type of a GCC
21818    builtin and then its argument prototype would still apply.  */
21819 #ifdef __cplusplus
21820 extern "C"
21821 #endif
21822 char clock_gettime ();
21823 int
21824 main ()
21825 {
21826 return clock_gettime ();
21827   ;
21828   return 0;
21829 }
21830 _ACEOF
21831 for ac_lib in '' rt; do
21832   if test -z "$ac_lib"; then
21833     ac_res="none required"
21834   else
21835     ac_res=-l$ac_lib
21836     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21837   fi
21838   if ac_fn_c_try_link "$LINENO"; then :
21839   ac_cv_search_clock_gettime=$ac_res
21840 fi
21841 rm -f core conftest.err conftest.$ac_objext \
21842     conftest$ac_exeext
21843   if test "${ac_cv_search_clock_gettime+set}" = set; then :
21844   break
21845 fi
21846 done
21847 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21848
21849 else
21850   ac_cv_search_clock_gettime=no
21851 fi
21852 rm conftest.$ac_ext
21853 LIBS=$ac_func_search_save_LIBS
21854 fi
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21856 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21857 ac_res=$ac_cv_search_clock_gettime
21858 if test "$ac_res" != no; then :
21859   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21860
21861
21862 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
21863
21864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
21865 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
21866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21867 /* end confdefs.h.  */
21868 #include <time.h>
21869 int
21870 main ()
21871 {
21872 clockid_t clockType = CLOCK_REALTIME;
21873   ;
21874   return 0;
21875 }
21876 _ACEOF
21877 if ac_fn_c_try_compile "$LINENO"; then :
21878
21879         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21880 $as_echo "yes" >&6; }
21881
21882 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
21883
21884
21885 else
21886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21887 $as_echo "no" >&6; }
21888
21889 fi
21890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21891
21892 else
21893
21894     for ac_func in gettimeofday ftime
21895 do :
21896   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21897 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21898 eval as_val=\$$as_ac_var
21899    if test "x$as_val" = x""yes; then :
21900   cat >>confdefs.h <<_ACEOF
21901 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21902 _ACEOF
21903  break
21904 fi
21905 done
21906
21907
21908
21909 fi
21910
21911
21912 ########
21913 #
21914 # Check for function prototypes
21915 #
21916 ########
21917
21918 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
21919 #include <unistd.h>
21920 "
21921 if test "x$ac_cv_have_decl_pread" = x""yes; then :
21922   ac_have_decl=1
21923 else
21924   ac_have_decl=0
21925 fi
21926
21927 cat >>confdefs.h <<_ACEOF
21928 #define HAVE_DECL_PREAD $ac_have_decl
21929 _ACEOF
21930 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
21931 #include <unistd.h>
21932 "
21933 if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
21934   ac_have_decl=1
21935 else
21936   ac_have_decl=0
21937 fi
21938
21939 cat >>confdefs.h <<_ACEOF
21940 #define HAVE_DECL_PWRITE $ac_have_decl
21941 _ACEOF
21942
21943
21944 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
21945 #include <strings.h>
21946 "
21947 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
21948   ac_have_decl=1
21949 else
21950   ac_have_decl=0
21951 fi
21952
21953 cat >>confdefs.h <<_ACEOF
21954 #define HAVE_DECL_STRLCPY $ac_have_decl
21955 _ACEOF
21956
21957
21958 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
21959 #include <stdio.h>
21960 #include <stdarg.h>
21961 "
21962 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
21963   ac_have_decl=1
21964 else
21965   ac_have_decl=0
21966 fi
21967
21968 cat >>confdefs.h <<_ACEOF
21969 #define HAVE_DECL_VSNPRINTF $ac_have_decl
21970 _ACEOF
21971
21972
21973 ########
21974 #
21975 # C++ Support Tests (For Magick++)
21976 #
21977 ########
21978 have_magick_plus_plus='no'
21979 if test "$with_magick_plus_plus" = 'yes'; then
21980     OLIBS="$LIBS"
21981     LIBS=''
21982     ac_ext=cpp
21983 ac_cpp='$CXXCPP $CPPFLAGS'
21984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21987
21988
21989     # Full set of headers used...
21990     # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
21991     # functional iomanip iosfwd iostream iterator list string strstream utility
21992     ac_ext=cpp
21993 ac_cpp='$CXXCPP $CPPFLAGS'
21994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21997
21998     ac_ext=cpp
21999 ac_cpp='$CXXCPP $CPPFLAGS'
22000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22003 if test -z "$CXX"; then
22004   if test -n "$CCC"; then
22005     CXX=$CCC
22006   else
22007     if test -n "$ac_tool_prefix"; then
22008   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22009   do
22010     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22011 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22013 $as_echo_n "checking for $ac_word... " >&6; }
22014 if test "${ac_cv_prog_CXX+set}" = set; then :
22015   $as_echo_n "(cached) " >&6
22016 else
22017   if test -n "$CXX"; then
22018   ac_cv_prog_CXX="$CXX" # Let the user override the test.
22019 else
22020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22021 for as_dir in $PATH
22022 do
22023   IFS=$as_save_IFS
22024   test -z "$as_dir" && as_dir=.
22025     for ac_exec_ext in '' $ac_executable_extensions; do
22026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22027     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
22028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22029     break 2
22030   fi
22031 done
22032   done
22033 IFS=$as_save_IFS
22034
22035 fi
22036 fi
22037 CXX=$ac_cv_prog_CXX
22038 if test -n "$CXX"; then
22039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
22040 $as_echo "$CXX" >&6; }
22041 else
22042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22043 $as_echo "no" >&6; }
22044 fi
22045
22046
22047     test -n "$CXX" && break
22048   done
22049 fi
22050 if test -z "$CXX"; then
22051   ac_ct_CXX=$CXX
22052   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22053 do
22054   # Extract the first word of "$ac_prog", so it can be a program name with args.
22055 set dummy $ac_prog; ac_word=$2
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22057 $as_echo_n "checking for $ac_word... " >&6; }
22058 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
22059   $as_echo_n "(cached) " >&6
22060 else
22061   if test -n "$ac_ct_CXX"; then
22062   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
22063 else
22064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22065 for as_dir in $PATH
22066 do
22067   IFS=$as_save_IFS
22068   test -z "$as_dir" && as_dir=.
22069     for ac_exec_ext in '' $ac_executable_extensions; do
22070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22071     ac_cv_prog_ac_ct_CXX="$ac_prog"
22072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22073     break 2
22074   fi
22075 done
22076   done
22077 IFS=$as_save_IFS
22078
22079 fi
22080 fi
22081 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
22082 if test -n "$ac_ct_CXX"; then
22083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
22084 $as_echo "$ac_ct_CXX" >&6; }
22085 else
22086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22087 $as_echo "no" >&6; }
22088 fi
22089
22090
22091   test -n "$ac_ct_CXX" && break
22092 done
22093
22094   if test "x$ac_ct_CXX" = x; then
22095     CXX="g++"
22096   else
22097     case $cross_compiling:$ac_tool_warned in
22098 yes:)
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22101 ac_tool_warned=yes ;;
22102 esac
22103     CXX=$ac_ct_CXX
22104   fi
22105 fi
22106
22107   fi
22108 fi
22109 # Provide some information about the compiler.
22110 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
22111 set X $ac_compile
22112 ac_compiler=$2
22113 for ac_option in --version -v -V -qversion; do
22114   { { ac_try="$ac_compiler $ac_option >&5"
22115 case "(($ac_try" in
22116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117   *) ac_try_echo=$ac_try;;
22118 esac
22119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22120 $as_echo "$ac_try_echo"; } >&5
22121   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
22122   ac_status=$?
22123   if test -s conftest.err; then
22124     sed '10a\
22125 ... rest of stderr output deleted ...
22126          10q' conftest.err >conftest.er1
22127     cat conftest.er1 >&5
22128   fi
22129   rm -f conftest.er1 conftest.err
22130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22131   test $ac_status = 0; }
22132 done
22133
22134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
22135 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22136 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
22137   $as_echo_n "(cached) " >&6
22138 else
22139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22140 /* end confdefs.h.  */
22141
22142 int
22143 main ()
22144 {
22145 #ifndef __GNUC__
22146        choke me
22147 #endif
22148
22149   ;
22150   return 0;
22151 }
22152 _ACEOF
22153 if ac_fn_cxx_try_compile "$LINENO"; then :
22154   ac_compiler_gnu=yes
22155 else
22156   ac_compiler_gnu=no
22157 fi
22158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22159 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
22160
22161 fi
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
22163 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
22164 if test $ac_compiler_gnu = yes; then
22165   GXX=yes
22166 else
22167   GXX=
22168 fi
22169 ac_test_CXXFLAGS=${CXXFLAGS+set}
22170 ac_save_CXXFLAGS=$CXXFLAGS
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
22172 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
22173 if test "${ac_cv_prog_cxx_g+set}" = set; then :
22174   $as_echo_n "(cached) " >&6
22175 else
22176   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
22177    ac_cxx_werror_flag=yes
22178    ac_cv_prog_cxx_g=no
22179    CXXFLAGS="-g"
22180    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22181 /* end confdefs.h.  */
22182
22183 int
22184 main ()
22185 {
22186
22187   ;
22188   return 0;
22189 }
22190 _ACEOF
22191 if ac_fn_cxx_try_compile "$LINENO"; then :
22192   ac_cv_prog_cxx_g=yes
22193 else
22194   CXXFLAGS=""
22195       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22196 /* end confdefs.h.  */
22197
22198 int
22199 main ()
22200 {
22201
22202   ;
22203   return 0;
22204 }
22205 _ACEOF
22206 if ac_fn_cxx_try_compile "$LINENO"; then :
22207
22208 else
22209   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22210          CXXFLAGS="-g"
22211          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22212 /* end confdefs.h.  */
22213
22214 int
22215 main ()
22216 {
22217
22218   ;
22219   return 0;
22220 }
22221 _ACEOF
22222 if ac_fn_cxx_try_compile "$LINENO"; then :
22223   ac_cv_prog_cxx_g=yes
22224 fi
22225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22226 fi
22227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22228 fi
22229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22230    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22231 fi
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
22233 $as_echo "$ac_cv_prog_cxx_g" >&6; }
22234 if test "$ac_test_CXXFLAGS" = set; then
22235   CXXFLAGS=$ac_save_CXXFLAGS
22236 elif test $ac_cv_prog_cxx_g = yes; then
22237   if test "$GXX" = yes; then
22238     CXXFLAGS="-g -O2"
22239   else
22240     CXXFLAGS="-g"
22241   fi
22242 else
22243   if test "$GXX" = yes; then
22244     CXXFLAGS="-O2"
22245   else
22246     CXXFLAGS=
22247   fi
22248 fi
22249 ac_ext=cpp
22250 ac_cpp='$CXXCPP $CPPFLAGS'
22251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22254
22255 depcc="$CXX"  am_compiler_list=
22256
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
22258 $as_echo_n "checking dependency style of $depcc... " >&6; }
22259 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
22260   $as_echo_n "(cached) " >&6
22261 else
22262   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22263   # We make a subdir and do the tests there.  Otherwise we can end up
22264   # making bogus files that we don't know about and never remove.  For
22265   # instance it was reported that on HP-UX the gcc test will end up
22266   # making a dummy file named `D' -- because `-MD' means `put the output
22267   # in D'.
22268   mkdir conftest.dir
22269   # Copy depcomp to subdir because otherwise we won't find it if we're
22270   # using a relative directory.
22271   cp "$am_depcomp" conftest.dir
22272   cd conftest.dir
22273   # We will build objects and dependencies in a subdirectory because
22274   # it helps to detect inapplicable dependency modes.  For instance
22275   # both Tru64's cc and ICC support -MD to output dependencies as a
22276   # side effect of compilation, but ICC will put the dependencies in
22277   # the current directory while Tru64 will put them in the object
22278   # directory.
22279   mkdir sub
22280
22281   am_cv_CXX_dependencies_compiler_type=none
22282   if test "$am_compiler_list" = ""; then
22283      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22284   fi
22285   am__universal=false
22286   case " $depcc " in #(
22287      *\ -arch\ *\ -arch\ *) am__universal=true ;;
22288      esac
22289
22290   for depmode in $am_compiler_list; do
22291     # Setup a source with many dependencies, because some compilers
22292     # like to wrap large dependency lists on column 80 (with \), and
22293     # we should not choose a depcomp mode which is confused by this.
22294     #
22295     # We need to recreate these files for each test, as the compiler may
22296     # overwrite some of them when testing with obscure command lines.
22297     # This happens at least with the AIX C compiler.
22298     : > sub/conftest.c
22299     for i in 1 2 3 4 5 6; do
22300       echo '#include "conftst'$i'.h"' >> sub/conftest.c
22301       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22302       # Solaris 8's {/usr,}/bin/sh.
22303       touch sub/conftst$i.h
22304     done
22305     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22306
22307     # We check with `-c' and `-o' for the sake of the "dashmstdout"
22308     # mode.  It turns out that the SunPro C++ compiler does not properly
22309     # handle `-M -o', and we need to detect this.  Also, some Intel
22310     # versions had trouble with output in subdirs
22311     am__obj=sub/conftest.${OBJEXT-o}
22312     am__minus_obj="-o $am__obj"
22313     case $depmode in
22314     gcc)
22315       # This depmode causes a compiler race in universal mode.
22316       test "$am__universal" = false || continue
22317       ;;
22318     nosideeffect)
22319       # after this tag, mechanisms are not by side-effect, so they'll
22320       # only be used when explicitly requested
22321       if test "x$enable_dependency_tracking" = xyes; then
22322         continue
22323       else
22324         break
22325       fi
22326       ;;
22327     msvisualcpp | msvcmsys)
22328       # This compiler won't grok `-c -o', but also, the minuso test has
22329       # not run yet.  These depmodes are late enough in the game, and
22330       # so weak that their functioning should not be impacted.
22331       am__obj=conftest.${OBJEXT-o}
22332       am__minus_obj=
22333       ;;
22334     none) break ;;
22335     esac
22336     if depmode=$depmode \
22337        source=sub/conftest.c object=$am__obj \
22338        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22339        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
22340          >/dev/null 2>conftest.err &&
22341        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
22342        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22343        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
22344        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22345       # icc doesn't choke on unknown options, it will just issue warnings
22346       # or remarks (even with -Werror).  So we grep stderr for any message
22347       # that says an option was ignored or not supported.
22348       # When given -MP, icc 7.0 and 7.1 complain thusly:
22349       #   icc: Command line warning: ignoring option '-M'; no argument required
22350       # The diagnosis changed in icc 8.0:
22351       #   icc: Command line remark: option '-MP' not supported
22352       if (grep 'ignoring option' conftest.err ||
22353           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22354         am_cv_CXX_dependencies_compiler_type=$depmode
22355         break
22356       fi
22357     fi
22358   done
22359
22360   cd ..
22361   rm -rf conftest.dir
22362 else
22363   am_cv_CXX_dependencies_compiler_type=none
22364 fi
22365
22366 fi
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
22368 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
22369 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
22370
22371  if
22372   test "x$enable_dependency_tracking" != xno \
22373   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
22374   am__fastdepCXX_TRUE=
22375   am__fastdepCXX_FALSE='#'
22376 else
22377   am__fastdepCXX_TRUE='#'
22378   am__fastdepCXX_FALSE=
22379 fi
22380
22381
22382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
22383 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
22384 if test "${ac_cv_cxx_have_bool+set}" = set; then :
22385   $as_echo_n "(cached) " >&6
22386 else
22387
22388  ac_ext=cpp
22389 ac_cpp='$CXXCPP $CPPFLAGS'
22390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22393
22394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22395 /* end confdefs.h.  */
22396
22397 int f(int  x){return 1;}
22398 int f(char x){return 1;}
22399 int f(bool x){return 1;}
22400
22401 int
22402 main ()
22403 {
22404 bool b = true; return f(b);
22405   ;
22406   return 0;
22407 }
22408 _ACEOF
22409 if ac_fn_cxx_try_compile "$LINENO"; then :
22410   ac_cv_cxx_have_bool=yes
22411 else
22412   ac_cv_cxx_have_bool=no
22413 fi
22414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22415  ac_ext=cpp
22416 ac_cpp='$CXXCPP $CPPFLAGS'
22417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22420
22421
22422 fi
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
22424 $as_echo "$ac_cv_cxx_have_bool" >&6; }
22425 if test "$ac_cv_cxx_have_bool" = yes; then
22426
22427 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
22428
22429 fi
22430
22431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
22432 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
22433 if test "${ac_cv_cxx_have_namespaces+set}" = set; then :
22434   $as_echo_n "(cached) " >&6
22435 else
22436
22437  ac_ext=cpp
22438 ac_cpp='$CXXCPP $CPPFLAGS'
22439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22442
22443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22444 /* end confdefs.h.  */
22445 namespace Outer { namespace Inner { int i = 0; }}
22446 int
22447 main ()
22448 {
22449 using namespace Outer::Inner; return i;
22450   ;
22451   return 0;
22452 }
22453 _ACEOF
22454 if ac_fn_cxx_try_compile "$LINENO"; then :
22455   ac_cv_cxx_have_namespaces=yes
22456 else
22457   ac_cv_cxx_have_namespaces=no
22458 fi
22459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22460  ac_ext=cpp
22461 ac_cpp='$CXXCPP $CPPFLAGS'
22462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22465
22466
22467 fi
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
22469 $as_echo "$ac_cv_cxx_have_namespaces" >&6; }
22470 if test "$ac_cv_cxx_have_namespaces" = yes; then
22471
22472 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
22473
22474 fi
22475
22476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
22477 $as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
22478 if test "${ac_cv_cxx_have_std_namespace+set}" = set; then :
22479   $as_echo_n "(cached) " >&6
22480 else
22481
22482  ac_ext=cpp
22483 ac_cpp='$CXXCPP $CPPFLAGS'
22484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22487
22488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22489 /* end confdefs.h.  */
22490 #include <iostream>
22491         std::istream& is = std::cin;
22492
22493 int
22494 main ()
22495 {
22496 return 0;
22497   ;
22498   return 0;
22499 }
22500 _ACEOF
22501 if ac_fn_cxx_try_compile "$LINENO"; then :
22502   ac_cv_cxx_have_std_namespace=yes
22503 else
22504   ac_cv_cxx_have_std_namespace=no
22505 fi
22506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22507  ac_ext=cpp
22508 ac_cpp='$CXXCPP $CPPFLAGS'
22509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22512
22513
22514 fi
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
22516 $as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
22517 if test "$ac_cv_cxx_have_std_namespace" = yes; then
22518
22519 $as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
22520
22521 fi
22522
22523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
22524 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
22525 if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
22526   $as_echo_n "(cached) " >&6
22527 else
22528
22529
22530  ac_ext=cpp
22531 ac_cpp='$CXXCPP $CPPFLAGS'
22532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22535
22536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22537 /* end confdefs.h.  */
22538 #include <iostream>
22539 #include <map>
22540 #include <iomanip>
22541 #include <cmath>
22542 #ifdef HAVE_NAMESPACES
22543 using namespace std;
22544 #endif
22545 int
22546 main ()
22547 {
22548 return 0;
22549   ;
22550   return 0;
22551 }
22552 _ACEOF
22553 if ac_fn_cxx_try_compile "$LINENO"; then :
22554   ac_cv_cxx_have_std_libs=yes
22555 else
22556   ac_cv_cxx_have_std_libs=no
22557 fi
22558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22559  ac_ext=cpp
22560 ac_cpp='$CXXCPP $CPPFLAGS'
22561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22564
22565
22566 fi
22567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
22568 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
22569 if test "$ac_cv_cxx_have_std_libs" = yes; then
22570
22571 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
22572
22573 fi
22574
22575     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
22576 $as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
22577 if test "${ac_cv_cxx_have_lstring+set}" = set; then :
22578   $as_echo_n "(cached) " >&6
22579 else
22580
22581  ac_ext=cpp
22582 ac_cpp='$CXXCPP $CPPFLAGS'
22583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22586
22587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22588 /* end confdefs.h.  */
22589 const wchar_t* s=L"wide string";
22590 _ACEOF
22591 if ac_fn_cxx_try_compile "$LINENO"; then :
22592   ac_cv_cxx_have_lstring=yes
22593 else
22594   ac_cv_cxx_have_lstring=no
22595 fi
22596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22597  ac_ext=cpp
22598 ac_cpp='$CXXCPP $CPPFLAGS'
22599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22602
22603
22604 fi
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
22606 $as_echo "$ac_cv_cxx_have_lstring" >&6; }
22607 if test "$ac_cv_cxx_have_lstring" = yes; then
22608
22609 $as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
22610
22611 fi
22612
22613
22614   OPENMP_CXXFLAGS=
22615   # Check whether --enable-openmp was given.
22616 if test "${enable_openmp+set}" = set; then :
22617   enableval=$enable_openmp;
22618 fi
22619
22620   if test "$enable_openmp" != no; then
22621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
22622 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
22623 if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
22624   $as_echo_n "(cached) " >&6
22625 else
22626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22627 /* end confdefs.h.  */
22628
22629 #ifndef _OPENMP
22630  choke me
22631 #endif
22632 #include <omp.h>
22633 int main () { return omp_get_num_threads (); }
22634
22635 _ACEOF
22636 if ac_fn_cxx_try_link "$LINENO"; then :
22637   ac_cv_prog_cxx_openmp='none needed'
22638 else
22639   ac_cv_prog_cxx_openmp='unsupported'
22640                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
22641             ac_save_CXXFLAGS=$CXXFLAGS
22642             CXXFLAGS="$CXXFLAGS $ac_option"
22643             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22644 /* end confdefs.h.  */
22645
22646 #ifndef _OPENMP
22647  choke me
22648 #endif
22649 #include <omp.h>
22650 int main () { return omp_get_num_threads (); }
22651
22652 _ACEOF
22653 if ac_fn_cxx_try_link "$LINENO"; then :
22654   ac_cv_prog_cxx_openmp=$ac_option
22655 fi
22656 rm -f core conftest.err conftest.$ac_objext \
22657     conftest$ac_exeext conftest.$ac_ext
22658             CXXFLAGS=$ac_save_CXXFLAGS
22659             if test "$ac_cv_prog_cxx_openmp" != unsupported; then
22660               break
22661             fi
22662           done
22663 fi
22664 rm -f core conftest.err conftest.$ac_objext \
22665     conftest$ac_exeext conftest.$ac_ext
22666 fi
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
22668 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
22669     case $ac_cv_prog_cxx_openmp in #(
22670       "none needed" | unsupported)
22671         ;; #(
22672       *)
22673         OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
22674     esac
22675   fi
22676
22677
22678     ac_ext=c
22679 ac_cpp='$CPP $CPPFLAGS'
22680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22683
22684
22685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
22686 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
22687     if \
22688         test $ac_cv_cxx_have_bool = 'yes' && \
22689         test $ac_cv_cxx_have_lstring = 'yes' && \
22690         test $ac_cv_cxx_have_namespaces = 'yes' && \
22691         test $ac_cv_cxx_have_std_libs = 'yes' && \
22692         test $ac_cv_cxx_have_std_namespace = 'yes'; then
22693         have_magick_plus_plus='yes'
22694     else
22695         have_magick_plus_plus='no (failed tests)'
22696     fi
22697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
22698 $as_echo "$have_magick_plus_plus" >&6; }
22699     LIBS="$OLIBS"
22700 fi
22701  if test "$have_magick_plus_plus" = 'yes'; then
22702   WITH_MAGICK_PLUS_PLUS_TRUE=
22703   WITH_MAGICK_PLUS_PLUS_FALSE='#'
22704 else
22705   WITH_MAGICK_PLUS_PLUS_TRUE='#'
22706   WITH_MAGICK_PLUS_PLUS_FALSE=
22707 fi
22708
22709
22710 # Only check for delegate libraries in subdirectories if requested.
22711 if test "$enable_delegate_build" != 'no'; then
22712     # Check for delegate sub-directories and add -I & -L options as required.
22713     # This presumes that delegates are installed as detailed in the ImageMagick
22714     # README. If delegates are installed in a standard location where the
22715     # compiler will automatically find them then these options should not be
22716     # required.
22717
22718     #
22719     # Most delegates have includes in the same directory as the library, but not all...
22720     #
22721     # Includes
22722     for dir in bzlib fftw fpx jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
22723         if test -d "$builddir/$dir"; then
22724             CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
22725         else
22726             if test -d "$srcdirfull/$dir"; then
22727                 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
22728             fi
22729         fi
22730     done
22731
22732     # Libraries
22733     for dir in bzlib fftw fpx jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
22734     if test -d "$builddir/$dir/.libs"; then
22735         LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
22736     else
22737         if test -d "$srcdirfull/$dir/.libs"; then
22738             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
22739         fi
22740     fi
22741     if test -d "$builddir/$dir"; then
22742         LDFLAGS="$LDFLAGS -L$builddir/$dir"
22743     else
22744         if test -d "$srcdirfull/$dir"; then
22745             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
22746         fi
22747     fi
22748   done
22749 fi
22750
22751 # Assume that delegate headers reside under same directory as ImageMagick
22752 # installation prefix.
22753 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
22754
22755 #
22756 # Find the X11 RGB database
22757 #
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
22759 $as_echo_n "checking for X11 configure files... " >&6; }
22760 if test "${im_cv_x_configure+set}" = set; then :
22761   $as_echo_n "(cached) " >&6
22762 else
22763   # Look for the header file in a standard set of common directories.
22764 # Check X11 before X11Rn because it is often a symlink to the current release.
22765     for ac_dir in          \
22766     /lib/usr/lib/X11       \
22767     /usr/X11/lib           \
22768     /usr/X11R4/lib         \
22769     /usr/X11R5/lib         \
22770     /usr/X11R6/lib         \
22771     /usr/X11R7/lib         \
22772     /usr/X386/lib          \
22773     /usr/XFree86/lib/X11   \
22774     /usr/athena/lib        \
22775     /usr/lib               \
22776     /usr/lib/X11           \
22777     /usr/lib/X11R4         \
22778     /usr/lib/X11R5         \
22779     /usr/lib/X11R6         \
22780     /usr/lib/X11R7         \
22781     /usr/local/X11/lib     \
22782     /usr/local/X11R4/lib   \
22783     /usr/local/X11R5/lib   \
22784     /usr/local/X11R6/lib   \
22785     /usr/local/lib         \
22786     /usr/local/lib/X11     \
22787     /usr/local/lib/X11R4   \
22788     /usr/local/lib/X11R5   \
22789     /usr/local/lib/X11R6   \
22790     /usr/local/lib/X11R7   \
22791     /usr/local/x11r5/lib   \
22792     /usr/lpp/Xamples/lib   \
22793     /usr/openwin/lib       \
22794     /usr/openwin/share/lib \
22795     /usr/unsupported/lib   \
22796     /usr/x386/lib          \
22797     ; do
22798     if test -f "$ac_dir/X11/rgb.txt"; then
22799       im_cv_x_configure="$ac_dir/X11/"
22800       break
22801     elif test -f "$ac_dir/rgb.txt"; then
22802       im_cv_x_configure="$ac_dir/"
22803       break
22804     fi
22805
22806   done
22807 fi
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
22809 $as_echo "$im_cv_x_configure" >&6; }
22810 X11_CONFIGURE_PATH="$im_cv_x_configure"
22811 case "${build_os}" in
22812   mingw* )
22813     X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
22814   ;;
22815 esac
22816
22817 cat >>confdefs.h <<_ACEOF
22818 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
22819 _ACEOF
22820
22821
22822 #
22823 # Find OpenMP library
22824 #
22825 GOMP_LIBS=''
22826 if test "$enable_openmp" != 'no'; then
22827   if test "${GCC}" = "yes"; then
22828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
22829 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
22830 if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
22831   $as_echo_n "(cached) " >&6
22832 else
22833   ac_check_lib_save_LIBS=$LIBS
22834 LIBS="-lgomp  $LIBS"
22835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22836 /* end confdefs.h.  */
22837
22838 /* Override any GCC internal prototype to avoid an error.
22839    Use char because int might match the return type of a GCC
22840    builtin and then its argument prototype would still apply.  */
22841 #ifdef __cplusplus
22842 extern "C"
22843 #endif
22844 char GOMP_parallel_start ();
22845 int
22846 main ()
22847 {
22848 return GOMP_parallel_start ();
22849   ;
22850   return 0;
22851 }
22852 _ACEOF
22853 if ac_fn_c_try_link "$LINENO"; then :
22854   ac_cv_lib_gomp_GOMP_parallel_start=yes
22855 else
22856   ac_cv_lib_gomp_GOMP_parallel_start=no
22857 fi
22858 rm -f core conftest.err conftest.$ac_objext \
22859     conftest$ac_exeext conftest.$ac_ext
22860 LIBS=$ac_check_lib_save_LIBS
22861 fi
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
22863 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
22864 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
22865   GOMP_LIBS="-lgomp"
22866 fi
22867   # gcc
22868   else
22869     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
22870 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
22871 if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
22872   $as_echo_n "(cached) " >&6
22873 else
22874   ac_check_lib_save_LIBS=$LIBS
22875 LIBS="-lmtsk  $LIBS"
22876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22877 /* end confdefs.h.  */
22878
22879 /* Override any GCC internal prototype to avoid an error.
22880    Use char because int might match the return type of a GCC
22881    builtin and then its argument prototype would still apply.  */
22882 #ifdef __cplusplus
22883 extern "C"
22884 #endif
22885 char sunw_mp_register_warn ();
22886 int
22887 main ()
22888 {
22889 return sunw_mp_register_warn ();
22890   ;
22891   return 0;
22892 }
22893 _ACEOF
22894 if ac_fn_c_try_link "$LINENO"; then :
22895   ac_cv_lib_mtsk_sunw_mp_register_warn=yes
22896 else
22897   ac_cv_lib_mtsk_sunw_mp_register_warn=no
22898 fi
22899 rm -f core conftest.err conftest.$ac_objext \
22900     conftest$ac_exeext conftest.$ac_ext
22901 LIBS=$ac_check_lib_save_LIBS
22902 fi
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
22904 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
22905 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
22906   GOMP_LIBS="-lmtsk"
22907 fi
22908   # solaris cc
22909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
22910 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
22911 if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
22912   $as_echo_n "(cached) " >&6
22913 else
22914   ac_check_lib_save_LIBS=$LIBS
22915 LIBS="-lxlsmp  $LIBS"
22916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22917 /* end confdefs.h.  */
22918
22919 /* Override any GCC internal prototype to avoid an error.
22920    Use char because int might match the return type of a GCC
22921    builtin and then its argument prototype would still apply.  */
22922 #ifdef __cplusplus
22923 extern "C"
22924 #endif
22925 char _xlsmpFlush ();
22926 int
22927 main ()
22928 {
22929 return _xlsmpFlush ();
22930   ;
22931   return 0;
22932 }
22933 _ACEOF
22934 if ac_fn_c_try_link "$LINENO"; then :
22935   ac_cv_lib_xlsmp__xlsmpFlush=yes
22936 else
22937   ac_cv_lib_xlsmp__xlsmpFlush=no
22938 fi
22939 rm -f core conftest.err conftest.$ac_objext \
22940     conftest$ac_exeext conftest.$ac_ext
22941 LIBS=$ac_check_lib_save_LIBS
22942 fi
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
22944 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
22945 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
22946   GOMP_LIBS="-lxlsmp"
22947 fi
22948   # AIX xlc
22949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
22950 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
22951 if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
22952   $as_echo_n "(cached) " >&6
22953 else
22954   ac_check_lib_save_LIBS=$LIBS
22955 LIBS="-lmp  $LIBS"
22956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22957 /* end confdefs.h.  */
22958
22959 /* Override any GCC internal prototype to avoid an error.
22960    Use char because int might match the return type of a GCC
22961    builtin and then its argument prototype would still apply.  */
22962 #ifdef __cplusplus
22963 extern "C"
22964 #endif
22965 char mp_destroy ();
22966 int
22967 main ()
22968 {
22969 return mp_destroy ();
22970   ;
22971   return 0;
22972 }
22973 _ACEOF
22974 if ac_fn_c_try_link "$LINENO"; then :
22975   ac_cv_lib_mp_mp_destroy=yes
22976 else
22977   ac_cv_lib_mp_mp_destroy=no
22978 fi
22979 rm -f core conftest.err conftest.$ac_objext \
22980     conftest$ac_exeext conftest.$ac_ext
22981 LIBS=$ac_check_lib_save_LIBS
22982 fi
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
22984 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
22985 if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
22986   GOMP_LIBS="-lmp"
22987 fi
22988   # SGI IRIX 6.5 MIPSpro C/C++
22989   fi
22990   LIBS="$GOMP_LIBS $LIBS"
22991 fi
22992
22993
22994 #
22995 # Find Posix threads library
22996 #
22997 THREAD_LIBS=''
22998 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
22999
23000     if test "x$PTHREAD_LIBS" = "x"; then
23001     case "${host_cpu}-${host_os}" in
23002       *-freebsd*)
23003
23004
23005
23006 ac_ext=c
23007 ac_cpp='$CPP $CPPFLAGS'
23008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23011
23012 magick_pthread_lib_ok=no
23013
23014 LIB=-lc_r
23015 save_LIBS="$LIBS"
23016 LIBS="$LIBS $LIB"
23017
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
23019 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
23020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23021 /* end confdefs.h.  */
23022 #include <pthread.h>
23023 int
23024 main ()
23025 {
23026   pthread_t th;
23027   pthread_join(th, 0);
23028   pthread_attr_init(0);
23029   pthread_cleanup_push(0, 0);
23030   pthread_create(0,0,0,0);
23031   pthread_cleanup_pop(0);
23032   ;
23033   return 0;
23034 }
23035 _ACEOF
23036 if ac_fn_c_try_link "$LINENO"; then :
23037   magick_pthread_lib_ok=yes
23038 fi
23039 rm -f core conftest.err conftest.$ac_objext \
23040     conftest$ac_exeext conftest.$ac_ext
23041
23042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
23043 $as_echo "${magick_pthread_lib_ok}" >&6; }
23044 if test "$magick_pthread_lib_ok" = yes
23045 then
23046   PTHREAD_LIBS=-lc_r
23047   :
23048 else
23049
23050   :
23051 fi
23052
23053 LIBS="$save_LIBS"
23054
23055 ac_ext=c
23056 ac_cpp='$CPP $CPPFLAGS'
23057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23060
23061  ;;
23062     esac
23063     fi
23064
23065     for lib in pthread pthreads; do
23066         if test "x$PTHREAD_LIBS" = "x"; then
23067
23068
23069
23070 ac_ext=c
23071 ac_cpp='$CPP $CPPFLAGS'
23072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23075
23076 magick_pthread_lib_ok=no
23077
23078 LIB=-l$lib
23079 save_LIBS="$LIBS"
23080 LIBS="$LIBS $LIB"
23081
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
23083 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
23084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23085 /* end confdefs.h.  */
23086 #include <pthread.h>
23087 int
23088 main ()
23089 {
23090   pthread_t th;
23091   pthread_join(th, 0);
23092   pthread_attr_init(0);
23093   pthread_cleanup_push(0, 0);
23094   pthread_create(0,0,0,0);
23095   pthread_cleanup_pop(0);
23096   ;
23097   return 0;
23098 }
23099 _ACEOF
23100 if ac_fn_c_try_link "$LINENO"; then :
23101   magick_pthread_lib_ok=yes
23102 fi
23103 rm -f core conftest.err conftest.$ac_objext \
23104     conftest$ac_exeext conftest.$ac_ext
23105
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
23107 $as_echo "${magick_pthread_lib_ok}" >&6; }
23108 if test "$magick_pthread_lib_ok" = yes
23109 then
23110   PTHREAD_LIBS=-l$lib
23111   :
23112 else
23113
23114   :
23115 fi
23116
23117 LIBS="$save_LIBS"
23118
23119 ac_ext=c
23120 ac_cpp='$CPP $CPPFLAGS'
23121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23124
23125
23126         fi
23127     done
23128
23129     THREAD_LIBS="$PTHREAD_LIBS"
23130     LIBS="$LIBS $THREAD_LIBS"
23131 fi
23132
23133
23134 #
23135 # Check for umem.
23136 #
23137 have_umem='no'
23138 UMEM_LIBS=''
23139 if test "$with_umem" != 'no'; then
23140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
23141 $as_echo_n "checking for UMEM support ... " >&6; }
23142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
23143 $as_echo "" >&6; }
23144   failed=0
23145   passed=0
23146   ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
23147 if test "x$ac_cv_header_umem_h" = x""yes; then :
23148   passed=`expr $passed + 1`
23149 else
23150   failed=`expr $failed + 1`
23151 fi
23152
23153
23154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
23155 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
23156 if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
23157   $as_echo_n "(cached) " >&6
23158 else
23159   ac_check_lib_save_LIBS=$LIBS
23160 LIBS="-lumem  $LIBS"
23161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23162 /* end confdefs.h.  */
23163
23164 /* Override any GCC internal prototype to avoid an error.
23165    Use char because int might match the return type of a GCC
23166    builtin and then its argument prototype would still apply.  */
23167 #ifdef __cplusplus
23168 extern "C"
23169 #endif
23170 char umem_alloc ();
23171 int
23172 main ()
23173 {
23174 return umem_alloc ();
23175   ;
23176   return 0;
23177 }
23178 _ACEOF
23179 if ac_fn_c_try_link "$LINENO"; then :
23180   ac_cv_lib_umem_umem_alloc=yes
23181 else
23182   ac_cv_lib_umem_umem_alloc=no
23183 fi
23184 rm -f core conftest.err conftest.$ac_objext \
23185     conftest$ac_exeext conftest.$ac_ext
23186 LIBS=$ac_check_lib_save_LIBS
23187 fi
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
23189 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
23190 if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
23191   passed=`expr $passed + 1`
23192 else
23193   failed=`expr $failed + 1`
23194 fi
23195
23196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
23197 $as_echo_n "checking for umem_free in -lumem... " >&6; }
23198 if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
23199   $as_echo_n "(cached) " >&6
23200 else
23201   ac_check_lib_save_LIBS=$LIBS
23202 LIBS="-lumem  $LIBS"
23203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23204 /* end confdefs.h.  */
23205
23206 /* Override any GCC internal prototype to avoid an error.
23207    Use char because int might match the return type of a GCC
23208    builtin and then its argument prototype would still apply.  */
23209 #ifdef __cplusplus
23210 extern "C"
23211 #endif
23212 char umem_free ();
23213 int
23214 main ()
23215 {
23216 return umem_free ();
23217   ;
23218   return 0;
23219 }
23220 _ACEOF
23221 if ac_fn_c_try_link "$LINENO"; then :
23222   ac_cv_lib_umem_umem_free=yes
23223 else
23224   ac_cv_lib_umem_umem_free=no
23225 fi
23226 rm -f core conftest.err conftest.$ac_objext \
23227     conftest$ac_exeext conftest.$ac_ext
23228 LIBS=$ac_check_lib_save_LIBS
23229 fi
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
23231 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
23232 if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
23233   passed=`expr $passed + 1`
23234 else
23235   failed=`expr $failed + 1`
23236 fi
23237
23238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
23239 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
23240   if test $passed -gt 0; then
23241     if test $failed -gt 0; then
23242       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
23243 $as_echo "no -- some components failed test" >&6; }
23244       have_umem='no (failed tests)'
23245     else
23246       UMEM_LIBS='-lumem'
23247       LIBS="$UMEM_LIBS $LIBS"
23248
23249 $as_echo "#define HasUMEM 1" >>confdefs.h
23250
23251       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23252 $as_echo "yes" >&6; }
23253       have_umem='yes'
23254     fi
23255   else
23256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23257 $as_echo "no" >&6; }
23258   fi
23259 fi
23260  if test "$have_umem" = 'yes'; then
23261   HasUMEM_TRUE=
23262   HasUMEM_FALSE='#'
23263 else
23264   HasUMEM_TRUE='#'
23265   HasUMEM_FALSE=
23266 fi
23267
23268
23269
23270 #
23271 # Add support for ccmalloc memory debugging library if requested
23272 #
23273 have_ccmalloc='no'
23274 CCMALLOC_LIBS=''
23275 if test "$enable_ccmalloc" = 'yes'; then
23276     # Extract the first word of "ccmalloc", so it can be a program name with args.
23277 set dummy ccmalloc; ac_word=$2
23278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23279 $as_echo_n "checking for $ac_word... " >&6; }
23280 if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
23281   $as_echo_n "(cached) " >&6
23282 else
23283   case $CCMALLOCDelegate in
23284   [\\/]* | ?:[\\/]*)
23285   ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
23286   ;;
23287   *)
23288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23289 for as_dir in $PATH
23290 do
23291   IFS=$as_save_IFS
23292   test -z "$as_dir" && as_dir=.
23293     for ac_exec_ext in '' $ac_executable_extensions; do
23294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23295     ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
23296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23297     break 2
23298   fi
23299 done
23300   done
23301 IFS=$as_save_IFS
23302
23303   ;;
23304 esac
23305 fi
23306 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
23307 if test -n "$CCMALLOCDelegate"; then
23308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
23309 $as_echo "$CCMALLOCDelegate" >&6; }
23310 else
23311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23312 $as_echo "no" >&6; }
23313 fi
23314
23315
23316     if test -n "$CCMALLOCDelegate"; then
23317         eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
23318         OLIBS="$LIBS"
23319         # Assume that gcc is used with ccmalloc.
23320         LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
23321        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
23322 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
23323 if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
23324   $as_echo_n "(cached) " >&6
23325 else
23326   ac_check_lib_save_LIBS=$LIBS
23327 LIBS="-lccmalloc -ldl $LIBS"
23328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23329 /* end confdefs.h.  */
23330
23331 /* Override any GCC internal prototype to avoid an error.
23332    Use char because int might match the return type of a GCC
23333    builtin and then its argument prototype would still apply.  */
23334 #ifdef __cplusplus
23335 extern "C"
23336 #endif
23337 char ccmalloc_malloc ();
23338 int
23339 main ()
23340 {
23341 return ccmalloc_malloc ();
23342   ;
23343   return 0;
23344 }
23345 _ACEOF
23346 if ac_fn_c_try_link "$LINENO"; then :
23347   ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
23348 else
23349   ac_cv_lib_ccmalloc_ccmalloc_malloc=no
23350 fi
23351 rm -f core conftest.err conftest.$ac_objext \
23352     conftest$ac_exeext conftest.$ac_ext
23353 LIBS=$ac_check_lib_save_LIBS
23354 fi
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
23356 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
23357 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
23358   CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
23359 fi
23360
23361         if test -n "$CCMALLOC_LIBS"; then
23362             LIBS="$OLIBS"
23363             LIBS="$LIBS $CCMALLOC_LIBS"
23364             have_ccmalloc='yes'
23365         else
23366             LIBS="$OLIBS"
23367         fi
23368     fi
23369 fi
23370
23371 #
23372 # Add support for efence memory debugging library if requested
23373 #
23374 if test "$enable_efence" = 'yes'; then
23375     EFENCE_LIBS='-lefence'
23376     LIBS="$EFENCE_LIBS $LIBS"
23377 fi
23378
23379 #
23380 # Find math library
23381 #
23382 MATH_LIBS=''
23383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23384 $as_echo_n "checking for sqrt in -lm... " >&6; }
23385 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23386   $as_echo_n "(cached) " >&6
23387 else
23388   ac_check_lib_save_LIBS=$LIBS
23389 LIBS="-lm  $LIBS"
23390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23391 /* end confdefs.h.  */
23392
23393 /* Override any GCC internal prototype to avoid an error.
23394    Use char because int might match the return type of a GCC
23395    builtin and then its argument prototype would still apply.  */
23396 #ifdef __cplusplus
23397 extern "C"
23398 #endif
23399 char sqrt ();
23400 int
23401 main ()
23402 {
23403 return sqrt ();
23404   ;
23405   return 0;
23406 }
23407 _ACEOF
23408 if ac_fn_c_try_link "$LINENO"; then :
23409   ac_cv_lib_m_sqrt=yes
23410 else
23411   ac_cv_lib_m_sqrt=no
23412 fi
23413 rm -f core conftest.err conftest.$ac_objext \
23414     conftest$ac_exeext conftest.$ac_ext
23415 LIBS=$ac_check_lib_save_LIBS
23416 fi
23417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23418 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
23419 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23420   MATH_LIBS="-lm"
23421 fi
23422
23423 LIBS="$MATH_LIBS $LIBS"
23424
23425
23426
23427 #
23428 # Check for BZLIB
23429 #
23430
23431
23432 # Check whether --with-bzlib was given.
23433 if test "${with_bzlib+set}" = set; then :
23434   withval=$with_bzlib; with_bzlib=$withval
23435 else
23436   with_bzlib='yes'
23437 fi
23438
23439
23440 if test "$with_bzlib" != 'yes'; then
23441     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
23442 fi
23443
23444 have_bzlib='no'
23445 if test "$with_bzlib" != 'no'; then
23446     BZLIB_LIBS=''
23447     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
23448 $as_echo "-------------------------------------------------------------" >&6; }
23449     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
23450 $as_echo_n "checking for BZLIB... " >&6; }
23451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
23452 $as_echo "" >&6; }
23453     failed=0
23454     passed=0
23455     found_libbz=0
23456     ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
23457 if test "x$ac_cv_header_bzlib_h" = x""yes; then :
23458   passed=`expr $passed + 1`
23459 else
23460   failed=`expr $failed + 1`
23461 fi
23462
23463
23464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
23465 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
23466 if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
23467   $as_echo_n "(cached) " >&6
23468 else
23469   ac_check_lib_save_LIBS=$LIBS
23470 LIBS="-lbz2  $LIBS"
23471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23472 /* end confdefs.h.  */
23473
23474 /* Override any GCC internal prototype to avoid an error.
23475    Use char because int might match the return type of a GCC
23476    builtin and then its argument prototype would still apply.  */
23477 #ifdef __cplusplus
23478 extern "C"
23479 #endif
23480 char BZ2_bzDecompress ();
23481 int
23482 main ()
23483 {
23484 return BZ2_bzDecompress ();
23485   ;
23486   return 0;
23487 }
23488 _ACEOF
23489 if ac_fn_c_try_link "$LINENO"; then :
23490   ac_cv_lib_bz2_BZ2_bzDecompress=yes
23491 else
23492   ac_cv_lib_bz2_BZ2_bzDecompress=no
23493 fi
23494 rm -f core conftest.err conftest.$ac_objext \
23495     conftest$ac_exeext conftest.$ac_ext
23496 LIBS=$ac_check_lib_save_LIBS
23497 fi
23498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
23499 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
23500 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
23501   found_libbz=`expr $found_libbz + 1`
23502 fi
23503
23504     if test "$native_win32_build" = 'yes'; then
23505       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
23506 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
23507 if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
23508   $as_echo_n "(cached) " >&6
23509 else
23510   ac_check_lib_save_LIBS=$LIBS
23511 LIBS="-lbz2  $LIBS"
23512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23513 /* end confdefs.h.  */
23514
23515 /* Override any GCC internal prototype to avoid an error.
23516    Use char because int might match the return type of a GCC
23517    builtin and then its argument prototype would still apply.  */
23518 #ifdef __cplusplus
23519 extern "C"
23520 #endif
23521 char _imp__BZ2_decompress ();
23522 int
23523 main ()
23524 {
23525 return _imp__BZ2_decompress ();
23526   ;
23527   return 0;
23528 }
23529 _ACEOF
23530 if ac_fn_c_try_link "$LINENO"; then :
23531   ac_cv_lib_bz2__imp__BZ2_decompress=yes
23532 else
23533   ac_cv_lib_bz2__imp__BZ2_decompress=no
23534 fi
23535 rm -f core conftest.err conftest.$ac_objext \
23536     conftest$ac_exeext conftest.$ac_ext
23537 LIBS=$ac_check_lib_save_LIBS
23538 fi
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
23540 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
23541 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
23542   found_libbz=`expr $found_libbz + 1`
23543 fi
23544
23545     fi
23546     if test $found_libbz -gt 0; then
23547       passed=`expr $passed + 1`
23548     else
23549       failed=`expr $failed + 1`
23550     fi
23551     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
23552 $as_echo_n "checking if BZLIB package is complete... " >&6; }
23553     if test $passed -gt 0; then
23554       if test $failed -gt 0; then
23555         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
23556 $as_echo "no -- some components failed test" >&6; }
23557         have_bzlib='no (failed tests)'
23558       else
23559         BZLIB_LIBS='-lbz2'
23560         LIBS="$BZLIB_LIBS $LIBS"
23561
23562 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
23563
23564         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23565 $as_echo "yes" >&6; }
23566         have_bzlib='yes'
23567       fi
23568     else
23569       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23570 $as_echo "no" >&6; }
23571     fi
23572 fi
23573  if test "$have_bzlib" = 'yes'; then
23574   BZLIB_DELEGATE_TRUE=
23575   BZLIB_DELEGATE_FALSE='#'
23576 else
23577   BZLIB_DELEGATE_TRUE='#'
23578   BZLIB_DELEGATE_FALSE=
23579 fi
23580
23581
23582
23583 #
23584 # Find the X11 include and library directories.
23585 #
23586 IPC_LIBS=''
23587 X11_LIBS=''
23588 XEXT_LIBS=''
23589 XT_LIBS=''
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
23591 $as_echo_n "checking for X... " >&6; }
23592
23593
23594 # Check whether --with-x was given.
23595 if test "${with_x+set}" = set; then :
23596   withval=$with_x;
23597 fi
23598
23599 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23600 if test "x$with_x" = xno; then
23601   # The user explicitly disabled X.
23602   have_x=disabled
23603 else
23604   case $x_includes,$x_libraries in #(
23605     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
23606     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
23607   $as_echo_n "(cached) " >&6
23608 else
23609   # One or both of the vars are not set, and there is no cached value.
23610 ac_x_includes=no ac_x_libraries=no
23611 rm -f -r conftest.dir
23612 if mkdir conftest.dir; then
23613   cd conftest.dir
23614   cat >Imakefile <<'_ACEOF'
23615 incroot:
23616         @echo incroot='${INCROOT}'
23617 usrlibdir:
23618         @echo usrlibdir='${USRLIBDIR}'
23619 libdir:
23620         @echo libdir='${LIBDIR}'
23621 _ACEOF
23622   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
23623     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23624     for ac_var in incroot usrlibdir libdir; do
23625       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
23626     done
23627     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23628     for ac_extension in a so sl dylib la dll; do
23629       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
23630          test -f "$ac_im_libdir/libX11.$ac_extension"; then
23631         ac_im_usrlibdir=$ac_im_libdir; break
23632       fi
23633     done
23634     # Screen out bogus values from the imake configuration.  They are
23635     # bogus both because they are the default anyway, and because
23636     # using them would break gcc on systems where it needs fixed includes.
23637     case $ac_im_incroot in
23638         /usr/include) ac_x_includes= ;;
23639         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23640     esac
23641     case $ac_im_usrlibdir in
23642         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
23643         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23644     esac
23645   fi
23646   cd ..
23647   rm -f -r conftest.dir
23648 fi
23649
23650 # Standard set of common directories for X headers.
23651 # Check X11 before X11Rn because it is often a symlink to the current release.
23652 ac_x_header_dirs='
23653 /usr/X11/include
23654 /usr/X11R7/include
23655 /usr/X11R6/include
23656 /usr/X11R5/include
23657 /usr/X11R4/include
23658
23659 /usr/include/X11
23660 /usr/include/X11R7
23661 /usr/include/X11R6
23662 /usr/include/X11R5
23663 /usr/include/X11R4
23664
23665 /usr/local/X11/include
23666 /usr/local/X11R7/include
23667 /usr/local/X11R6/include
23668 /usr/local/X11R5/include
23669 /usr/local/X11R4/include
23670
23671 /usr/local/include/X11
23672 /usr/local/include/X11R7
23673 /usr/local/include/X11R6
23674 /usr/local/include/X11R5
23675 /usr/local/include/X11R4
23676
23677 /usr/X386/include
23678 /usr/x386/include
23679 /usr/XFree86/include/X11
23680
23681 /usr/include
23682 /usr/local/include
23683 /usr/unsupported/include
23684 /usr/athena/include
23685 /usr/local/x11r5/include
23686 /usr/lpp/Xamples/include
23687
23688 /usr/openwin/include
23689 /usr/openwin/share/include'
23690
23691 if test "$ac_x_includes" = no; then
23692   # Guess where to find include files, by looking for Xlib.h.
23693   # First, try using that file with no special directory specified.
23694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23695 /* end confdefs.h.  */
23696 #include <X11/Xlib.h>
23697 _ACEOF
23698 if ac_fn_c_try_cpp "$LINENO"; then :
23699   # We can compile using X headers with no special include directory.
23700 ac_x_includes=
23701 else
23702   for ac_dir in $ac_x_header_dirs; do
23703   if test -r "$ac_dir/X11/Xlib.h"; then
23704     ac_x_includes=$ac_dir
23705     break
23706   fi
23707 done
23708 fi
23709 rm -f conftest.err conftest.$ac_ext
23710 fi # $ac_x_includes = no
23711
23712 if test "$ac_x_libraries" = no; then
23713   # Check for the libraries.
23714   # See if we find them without any special options.
23715   # Don't add to $LIBS permanently.
23716   ac_save_LIBS=$LIBS
23717   LIBS="-lX11 $LIBS"
23718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23719 /* end confdefs.h.  */
23720 #include <X11/Xlib.h>
23721 int
23722 main ()
23723 {
23724 XrmInitialize ()
23725   ;
23726   return 0;
23727 }
23728 _ACEOF
23729 if ac_fn_c_try_link "$LINENO"; then :
23730   LIBS=$ac_save_LIBS
23731 # We can link X programs with no special library path.
23732 ac_x_libraries=
23733 else
23734   LIBS=$ac_save_LIBS
23735 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23736 do
23737   # Don't even attempt the hair of trying to link an X program!
23738   for ac_extension in a so sl dylib la dll; do
23739     if test -r "$ac_dir/libX11.$ac_extension"; then
23740       ac_x_libraries=$ac_dir
23741       break 2
23742     fi
23743   done
23744 done
23745 fi
23746 rm -f core conftest.err conftest.$ac_objext \
23747     conftest$ac_exeext conftest.$ac_ext
23748 fi # $ac_x_libraries = no
23749
23750 case $ac_x_includes,$ac_x_libraries in #(
23751   no,* | *,no | *\'*)
23752     # Didn't find X, or a directory has "'" in its name.
23753     ac_cv_have_x="have_x=no";; #(
23754   *)
23755     # Record where we found X for the cache.
23756     ac_cv_have_x="have_x=yes\
23757         ac_x_includes='$ac_x_includes'\
23758         ac_x_libraries='$ac_x_libraries'"
23759 esac
23760 fi
23761 ;; #(
23762     *) have_x=yes;;
23763   esac
23764   eval "$ac_cv_have_x"
23765 fi # $with_x != no
23766
23767 if test "$have_x" != yes; then
23768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
23769 $as_echo "$have_x" >&6; }
23770   no_x=yes
23771 else
23772   # If each of the values was on the command line, it overrides each guess.
23773   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23774   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23775   # Update the cache value to reflect the command line values.
23776   ac_cv_have_x="have_x=yes\
23777         ac_x_includes='$x_includes'\
23778         ac_x_libraries='$x_libraries'"
23779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
23780 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
23781 fi
23782
23783 if test "$no_x" = yes; then
23784   # Not all programs may use this symbol, but it does not hurt to define it.
23785
23786 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
23787
23788   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23789 else
23790   if test -n "$x_includes"; then
23791     X_CFLAGS="$X_CFLAGS -I$x_includes"
23792   fi
23793
23794   # It would also be nice to do this for all -L options, not just this one.
23795   if test -n "$x_libraries"; then
23796     X_LIBS="$X_LIBS -L$x_libraries"
23797     # For Solaris; some versions of Sun CC require a space after -R and
23798     # others require no space.  Words are not sufficient . . . .
23799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
23800 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
23801     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23802     ac_xsave_c_werror_flag=$ac_c_werror_flag
23803     ac_c_werror_flag=yes
23804     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23805 /* end confdefs.h.  */
23806
23807 int
23808 main ()
23809 {
23810
23811   ;
23812   return 0;
23813 }
23814 _ACEOF
23815 if ac_fn_c_try_link "$LINENO"; then :
23816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23817 $as_echo "no" >&6; }
23818        X_LIBS="$X_LIBS -R$x_libraries"
23819 else
23820   LIBS="$ac_xsave_LIBS -R $x_libraries"
23821        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23822 /* end confdefs.h.  */
23823
23824 int
23825 main ()
23826 {
23827
23828   ;
23829   return 0;
23830 }
23831 _ACEOF
23832 if ac_fn_c_try_link "$LINENO"; then :
23833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23834 $as_echo "yes" >&6; }
23835           X_LIBS="$X_LIBS -R $x_libraries"
23836 else
23837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
23838 $as_echo "neither works" >&6; }
23839 fi
23840 rm -f core conftest.err conftest.$ac_objext \
23841     conftest$ac_exeext conftest.$ac_ext
23842 fi
23843 rm -f core conftest.err conftest.$ac_objext \
23844     conftest$ac_exeext conftest.$ac_ext
23845     ac_c_werror_flag=$ac_xsave_c_werror_flag
23846     LIBS=$ac_xsave_LIBS
23847   fi
23848
23849   # Check for system-dependent libraries X programs must link with.
23850   # Do this before checking for the system-independent R6 libraries
23851   # (-lICE), since we may need -lsocket or whatever for X linking.
23852
23853   if test "$ISC" = yes; then
23854     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23855   else
23856     # Martyn Johnson says this is needed for Ultrix, if the X
23857     # libraries were built with DECnet support.  And Karl Berry says
23858     # the Alpha needs dnet_stub (dnet does not exist).
23859     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23860     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23861 /* end confdefs.h.  */
23862
23863 /* Override any GCC internal prototype to avoid an error.
23864    Use char because int might match the return type of a GCC
23865    builtin and then its argument prototype would still apply.  */
23866 #ifdef __cplusplus
23867 extern "C"
23868 #endif
23869 char XOpenDisplay ();
23870 int
23871 main ()
23872 {
23873 return XOpenDisplay ();
23874   ;
23875   return 0;
23876 }
23877 _ACEOF
23878 if ac_fn_c_try_link "$LINENO"; then :
23879
23880 else
23881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
23882 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
23883 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
23884   $as_echo_n "(cached) " >&6
23885 else
23886   ac_check_lib_save_LIBS=$LIBS
23887 LIBS="-ldnet  $LIBS"
23888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23889 /* end confdefs.h.  */
23890
23891 /* Override any GCC internal prototype to avoid an error.
23892    Use char because int might match the return type of a GCC
23893    builtin and then its argument prototype would still apply.  */
23894 #ifdef __cplusplus
23895 extern "C"
23896 #endif
23897 char dnet_ntoa ();
23898 int
23899 main ()
23900 {
23901 return dnet_ntoa ();
23902   ;
23903   return 0;
23904 }
23905 _ACEOF
23906 if ac_fn_c_try_link "$LINENO"; then :
23907   ac_cv_lib_dnet_dnet_ntoa=yes
23908 else
23909   ac_cv_lib_dnet_dnet_ntoa=no
23910 fi
23911 rm -f core conftest.err conftest.$ac_objext \
23912     conftest$ac_exeext conftest.$ac_ext
23913 LIBS=$ac_check_lib_save_LIBS
23914 fi
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23916 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23917 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
23918   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23919 fi
23920
23921     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23922       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
23923 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
23924 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
23925   $as_echo_n "(cached) " >&6
23926 else
23927   ac_check_lib_save_LIBS=$LIBS
23928 LIBS="-ldnet_stub  $LIBS"
23929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23930 /* end confdefs.h.  */
23931
23932 /* Override any GCC internal prototype to avoid an error.
23933    Use char because int might match the return type of a GCC
23934    builtin and then its argument prototype would still apply.  */
23935 #ifdef __cplusplus
23936 extern "C"
23937 #endif
23938 char dnet_ntoa ();
23939 int
23940 main ()
23941 {
23942 return dnet_ntoa ();
23943   ;
23944   return 0;
23945 }
23946 _ACEOF
23947 if ac_fn_c_try_link "$LINENO"; then :
23948   ac_cv_lib_dnet_stub_dnet_ntoa=yes
23949 else
23950   ac_cv_lib_dnet_stub_dnet_ntoa=no
23951 fi
23952 rm -f core conftest.err conftest.$ac_objext \
23953     conftest$ac_exeext conftest.$ac_ext
23954 LIBS=$ac_check_lib_save_LIBS
23955 fi
23956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23957 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23958 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
23959   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23960 fi
23961
23962     fi
23963 fi
23964 rm -f core conftest.err conftest.$ac_objext \
23965     conftest$ac_exeext conftest.$ac_ext
23966     LIBS="$ac_xsave_LIBS"
23967
23968     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23969     # to get the SysV transport functions.
23970     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23971     # needs -lnsl.
23972     # The nsl library prevents programs from opening the X display
23973     # on Irix 5.2, according to T.E. Dickey.
23974     # The functions gethostbyname, getservbyname, and inet_addr are
23975     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23976     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23977 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
23978
23979 fi
23980
23981     if test $ac_cv_func_gethostbyname = no; then
23982       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
23983 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
23984 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
23985   $as_echo_n "(cached) " >&6
23986 else
23987   ac_check_lib_save_LIBS=$LIBS
23988 LIBS="-lnsl  $LIBS"
23989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23990 /* end confdefs.h.  */
23991
23992 /* Override any GCC internal prototype to avoid an error.
23993    Use char because int might match the return type of a GCC
23994    builtin and then its argument prototype would still apply.  */
23995 #ifdef __cplusplus
23996 extern "C"
23997 #endif
23998 char gethostbyname ();
23999 int
24000 main ()
24001 {
24002 return gethostbyname ();
24003   ;
24004   return 0;
24005 }
24006 _ACEOF
24007 if ac_fn_c_try_link "$LINENO"; then :
24008   ac_cv_lib_nsl_gethostbyname=yes
24009 else
24010   ac_cv_lib_nsl_gethostbyname=no
24011 fi
24012 rm -f core conftest.err conftest.$ac_objext \
24013     conftest$ac_exeext conftest.$ac_ext
24014 LIBS=$ac_check_lib_save_LIBS
24015 fi
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24017 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24018 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24019   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24020 fi
24021
24022       if test $ac_cv_lib_nsl_gethostbyname = no; then
24023         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24024 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24025 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24026   $as_echo_n "(cached) " >&6
24027 else
24028   ac_check_lib_save_LIBS=$LIBS
24029 LIBS="-lbsd  $LIBS"
24030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24031 /* end confdefs.h.  */
24032
24033 /* Override any GCC internal prototype to avoid an error.
24034    Use char because int might match the return type of a GCC
24035    builtin and then its argument prototype would still apply.  */
24036 #ifdef __cplusplus
24037 extern "C"
24038 #endif
24039 char gethostbyname ();
24040 int
24041 main ()
24042 {
24043 return gethostbyname ();
24044   ;
24045   return 0;
24046 }
24047 _ACEOF
24048 if ac_fn_c_try_link "$LINENO"; then :
24049   ac_cv_lib_bsd_gethostbyname=yes
24050 else
24051   ac_cv_lib_bsd_gethostbyname=no
24052 fi
24053 rm -f core conftest.err conftest.$ac_objext \
24054     conftest$ac_exeext conftest.$ac_ext
24055 LIBS=$ac_check_lib_save_LIBS
24056 fi
24057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24058 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24059 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24060   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24061 fi
24062
24063       fi
24064     fi
24065
24066     # lieder@skyler.mavd.honeywell.com says without -lsocket,
24067     # socket/setsockopt and other routines are undefined under SCO ODT
24068     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24069     # on later versions), says Simon Leinen: it contains gethostby*
24070     # variants that don't use the name server (or something).  -lsocket
24071     # must be given before -lnsl if both are needed.  We assume that
24072     # if connect needs -lnsl, so does gethostbyname.
24073     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24074 if test "x$ac_cv_func_connect" = x""yes; then :
24075
24076 fi
24077
24078     if test $ac_cv_func_connect = no; then
24079       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24080 $as_echo_n "checking for connect in -lsocket... " >&6; }
24081 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24082   $as_echo_n "(cached) " >&6
24083 else
24084   ac_check_lib_save_LIBS=$LIBS
24085 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24087 /* end confdefs.h.  */
24088
24089 /* Override any GCC internal prototype to avoid an error.
24090    Use char because int might match the return type of a GCC
24091    builtin and then its argument prototype would still apply.  */
24092 #ifdef __cplusplus
24093 extern "C"
24094 #endif
24095 char connect ();
24096 int
24097 main ()
24098 {
24099 return connect ();
24100   ;
24101   return 0;
24102 }
24103 _ACEOF
24104 if ac_fn_c_try_link "$LINENO"; then :
24105   ac_cv_lib_socket_connect=yes
24106 else
24107   ac_cv_lib_socket_connect=no
24108 fi
24109 rm -f core conftest.err conftest.$ac_objext \
24110     conftest$ac_exeext conftest.$ac_ext
24111 LIBS=$ac_check_lib_save_LIBS
24112 fi
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24114 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24115 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24116   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24117 fi
24118
24119     fi
24120
24121     # Guillermo Gomez says -lposix is necessary on A/UX.
24122     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24123 if test "x$ac_cv_func_remove" = x""yes; then :
24124
24125 fi
24126
24127     if test $ac_cv_func_remove = no; then
24128       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24129 $as_echo_n "checking for remove in -lposix... " >&6; }
24130 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24131   $as_echo_n "(cached) " >&6
24132 else
24133   ac_check_lib_save_LIBS=$LIBS
24134 LIBS="-lposix  $LIBS"
24135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24136 /* end confdefs.h.  */
24137
24138 /* Override any GCC internal prototype to avoid an error.
24139    Use char because int might match the return type of a GCC
24140    builtin and then its argument prototype would still apply.  */
24141 #ifdef __cplusplus
24142 extern "C"
24143 #endif
24144 char remove ();
24145 int
24146 main ()
24147 {
24148 return remove ();
24149   ;
24150   return 0;
24151 }
24152 _ACEOF
24153 if ac_fn_c_try_link "$LINENO"; then :
24154   ac_cv_lib_posix_remove=yes
24155 else
24156   ac_cv_lib_posix_remove=no
24157 fi
24158 rm -f core conftest.err conftest.$ac_objext \
24159     conftest$ac_exeext conftest.$ac_ext
24160 LIBS=$ac_check_lib_save_LIBS
24161 fi
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24163 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24164 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24165   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24166 fi
24167
24168     fi
24169
24170     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24171     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24172 if test "x$ac_cv_func_shmat" = x""yes; then :
24173
24174 fi
24175
24176     if test $ac_cv_func_shmat = no; then
24177       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24178 $as_echo_n "checking for shmat in -lipc... " >&6; }
24179 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24180   $as_echo_n "(cached) " >&6
24181 else
24182   ac_check_lib_save_LIBS=$LIBS
24183 LIBS="-lipc  $LIBS"
24184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24185 /* end confdefs.h.  */
24186
24187 /* Override any GCC internal prototype to avoid an error.
24188    Use char because int might match the return type of a GCC
24189    builtin and then its argument prototype would still apply.  */
24190 #ifdef __cplusplus
24191 extern "C"
24192 #endif
24193 char shmat ();
24194 int
24195 main ()
24196 {
24197 return shmat ();
24198   ;
24199   return 0;
24200 }
24201 _ACEOF
24202 if ac_fn_c_try_link "$LINENO"; then :
24203   ac_cv_lib_ipc_shmat=yes
24204 else
24205   ac_cv_lib_ipc_shmat=no
24206 fi
24207 rm -f core conftest.err conftest.$ac_objext \
24208     conftest$ac_exeext conftest.$ac_ext
24209 LIBS=$ac_check_lib_save_LIBS
24210 fi
24211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24212 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24213 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24214   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24215 fi
24216
24217     fi
24218   fi
24219
24220   # Check for libraries that X11R6 Xt/Xaw programs need.
24221   ac_save_LDFLAGS=$LDFLAGS
24222   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24223   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24224   # check for ICE first), but we must link in the order -lSM -lICE or
24225   # we get undefined symbols.  So assume we have SM if we have ICE.
24226   # These have to be linked with before -lX11, unlike the other
24227   # libraries we check for below, so use a different variable.
24228   # John Interrante, Karl Berry
24229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24230 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24231 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
24232   $as_echo_n "(cached) " >&6
24233 else
24234   ac_check_lib_save_LIBS=$LIBS
24235 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24237 /* end confdefs.h.  */
24238
24239 /* Override any GCC internal prototype to avoid an error.
24240    Use char because int might match the return type of a GCC
24241    builtin and then its argument prototype would still apply.  */
24242 #ifdef __cplusplus
24243 extern "C"
24244 #endif
24245 char IceConnectionNumber ();
24246 int
24247 main ()
24248 {
24249 return IceConnectionNumber ();
24250   ;
24251   return 0;
24252 }
24253 _ACEOF
24254 if ac_fn_c_try_link "$LINENO"; then :
24255   ac_cv_lib_ICE_IceConnectionNumber=yes
24256 else
24257   ac_cv_lib_ICE_IceConnectionNumber=no
24258 fi
24259 rm -f core conftest.err conftest.$ac_objext \
24260     conftest$ac_exeext conftest.$ac_ext
24261 LIBS=$ac_check_lib_save_LIBS
24262 fi
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24264 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24265 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
24266   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24267 fi
24268
24269   LDFLAGS=$ac_save_LDFLAGS
24270
24271 fi
24272
24273 if test "$no_x" != 'yes'; then
24274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24275 $as_echo "-------------------------------------------------------------" >&6; }
24276     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
24277 $as_echo_n "checking for X11... " >&6; }
24278     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24279 $as_echo "" >&6; }
24280     LDFLAGS="$LDFLAGS $X_LIBS"
24281     X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
24282     LIBS="$X11_LIBS $LIBS"
24283     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
24284
24285
24286 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
24287
24288     #
24289     # Check for X11 shared memory extension
24290     #
24291     # shmctl is required to support the shared memory extension
24292     ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
24293 if test "x$ac_cv_func_shmctl" = x""yes; then :
24294   have_shmctl='yes'
24295 fi
24296
24297     if test "$have_shmctl" != 'yes'; then
24298         PERSIST_LIBS=$LIBS
24299         LIBS="$LIBS -lcygipc"
24300         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24301 /* end confdefs.h.  */
24302
24303 /* Override any GCC internal prototype to avoid an error.
24304    Use char because int might match the return type of a GCC
24305    builtin and then its argument prototype would still apply.  */
24306 #ifdef __cplusplus
24307 extern "C"
24308 #endif
24309 char shmctl ();
24310 int
24311 main ()
24312 {
24313 return shmctl ();
24314   ;
24315   return 0;
24316 }
24317 _ACEOF
24318 if ac_fn_c_try_link "$LINENO"; then :
24319   have_shmctl='yes'; IPC_LIBS='-lcygipc'
24320 fi
24321 rm -f core conftest.err conftest.$ac_objext \
24322     conftest$ac_exeext conftest.$ac_ext
24323         LIBS=$PERSIST_LIBS
24324     fi
24325
24326     if test "$have_shmctl" = 'yes'; then
24327         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
24328 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
24329 if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
24330   $as_echo_n "(cached) " >&6
24331 else
24332   ac_check_lib_save_LIBS=$LIBS
24333 LIBS="-lXext  $LIBS"
24334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24335 /* end confdefs.h.  */
24336
24337 /* Override any GCC internal prototype to avoid an error.
24338    Use char because int might match the return type of a GCC
24339    builtin and then its argument prototype would still apply.  */
24340 #ifdef __cplusplus
24341 extern "C"
24342 #endif
24343 char XShmAttach ();
24344 int
24345 main ()
24346 {
24347 return XShmAttach ();
24348   ;
24349   return 0;
24350 }
24351 _ACEOF
24352 if ac_fn_c_try_link "$LINENO"; then :
24353   ac_cv_lib_Xext_XShmAttach=yes
24354 else
24355   ac_cv_lib_Xext_XShmAttach=no
24356 fi
24357 rm -f core conftest.err conftest.$ac_objext \
24358     conftest$ac_exeext conftest.$ac_ext
24359 LIBS=$ac_check_lib_save_LIBS
24360 fi
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
24362 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
24363 if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
24364   XEXT_LIBS='-lXext' ;
24365 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
24366
24367 fi
24368
24369     fi
24370
24371     #
24372     # Check for X11 shape extension
24373     #
24374     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
24375 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
24376 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
24377   $as_echo_n "(cached) " >&6
24378 else
24379   ac_check_lib_save_LIBS=$LIBS
24380 LIBS="-lXext  $LIBS"
24381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24382 /* end confdefs.h.  */
24383
24384 /* Override any GCC internal prototype to avoid an error.
24385    Use char because int might match the return type of a GCC
24386    builtin and then its argument prototype would still apply.  */
24387 #ifdef __cplusplus
24388 extern "C"
24389 #endif
24390 char XShapeCombineMask ();
24391 int
24392 main ()
24393 {
24394 return XShapeCombineMask ();
24395   ;
24396   return 0;
24397 }
24398 _ACEOF
24399 if ac_fn_c_try_link "$LINENO"; then :
24400   ac_cv_lib_Xext_XShapeCombineMask=yes
24401 else
24402   ac_cv_lib_Xext_XShapeCombineMask=no
24403 fi
24404 rm -f core conftest.err conftest.$ac_objext \
24405     conftest$ac_exeext conftest.$ac_ext
24406 LIBS=$ac_check_lib_save_LIBS
24407 fi
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
24409 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
24410 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
24411   XEXT_LIBS='-lXext' ;
24412 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
24413
24414 fi
24415
24416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
24417 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
24418 if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
24419   $as_echo_n "(cached) " >&6
24420 else
24421   ac_check_lib_save_LIBS=$LIBS
24422 LIBS="-lXt  $LIBS"
24423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24424 /* end confdefs.h.  */
24425
24426 /* Override any GCC internal prototype to avoid an error.
24427    Use char because int might match the return type of a GCC
24428    builtin and then its argument prototype would still apply.  */
24429 #ifdef __cplusplus
24430 extern "C"
24431 #endif
24432 char XtSetEventDispatcher ();
24433 int
24434 main ()
24435 {
24436 return XtSetEventDispatcher ();
24437   ;
24438   return 0;
24439 }
24440 _ACEOF
24441 if ac_fn_c_try_link "$LINENO"; then :
24442   ac_cv_lib_Xt_XtSetEventDispatcher=yes
24443 else
24444   ac_cv_lib_Xt_XtSetEventDispatcher=no
24445 fi
24446 rm -f core conftest.err conftest.$ac_objext \
24447     conftest$ac_exeext conftest.$ac_ext
24448 LIBS=$ac_check_lib_save_LIBS
24449 fi
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
24451 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
24452 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
24453   XT_LIBS='-lXt'
24454 fi
24455
24456     LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
24457 fi
24458 if test "$no_x" != 'yes'; then
24459   have_x='yes'
24460 else
24461   have_x='no'
24462 fi
24463  if test "$have_x" = 'yes'; then
24464   X11_DELEGATE_TRUE=
24465   X11_DELEGATE_FALSE='#'
24466 else
24467   X11_DELEGATE_TRUE='#'
24468   X11_DELEGATE_FALSE=
24469 fi
24470
24471
24472
24473
24474
24475 #
24476 # Check for ZLIB
24477 #
24478
24479 # Check whether --with-zlib was given.
24480 if test "${with_zlib+set}" = set; then :
24481   withval=$with_zlib; with_zlib=$withval
24482 else
24483   with_zlib='yes'
24484 fi
24485
24486
24487 if test "$with_zlib" != 'yes'; then
24488     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
24489 fi
24490
24491 have_zlib='no'
24492 ZLIB_LIBS=''
24493 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
24494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24495 $as_echo "-------------------------------------------------------------" >&6; }
24496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
24497 $as_echo_n "checking for ZLIB... " >&6; }
24498     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24499 $as_echo "" >&6; }
24500     ZLIB_LIBS=''
24501     failed=0
24502     passed=0
24503     ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
24504 if test "x$ac_cv_header_zconf_h" = x""yes; then :
24505   passed=`expr $passed + 1`
24506 else
24507   failed=`expr $failed + 1`
24508 fi
24509
24510
24511     ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
24512 if test "x$ac_cv_header_zlib_h" = x""yes; then :
24513   passed=`expr $passed + 1`
24514 else
24515   failed=`expr $failed + 1`
24516 fi
24517
24518
24519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
24520 $as_echo_n "checking for compress in -lz... " >&6; }
24521 if test "${ac_cv_lib_z_compress+set}" = set; then :
24522   $as_echo_n "(cached) " >&6
24523 else
24524   ac_check_lib_save_LIBS=$LIBS
24525 LIBS="-lz  $LIBS"
24526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24527 /* end confdefs.h.  */
24528
24529 /* Override any GCC internal prototype to avoid an error.
24530    Use char because int might match the return type of a GCC
24531    builtin and then its argument prototype would still apply.  */
24532 #ifdef __cplusplus
24533 extern "C"
24534 #endif
24535 char compress ();
24536 int
24537 main ()
24538 {
24539 return compress ();
24540   ;
24541   return 0;
24542 }
24543 _ACEOF
24544 if ac_fn_c_try_link "$LINENO"; then :
24545   ac_cv_lib_z_compress=yes
24546 else
24547   ac_cv_lib_z_compress=no
24548 fi
24549 rm -f core conftest.err conftest.$ac_objext \
24550     conftest$ac_exeext conftest.$ac_ext
24551 LIBS=$ac_check_lib_save_LIBS
24552 fi
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
24554 $as_echo "$ac_cv_lib_z_compress" >&6; }
24555 if test "x$ac_cv_lib_z_compress" = x""yes; then :
24556   passed=`expr $passed + 1`
24557 else
24558   failed=`expr $failed + 1`
24559 fi
24560
24561     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
24562 $as_echo_n "checking for uncompress in -lz... " >&6; }
24563 if test "${ac_cv_lib_z_uncompress+set}" = set; then :
24564   $as_echo_n "(cached) " >&6
24565 else
24566   ac_check_lib_save_LIBS=$LIBS
24567 LIBS="-lz  $LIBS"
24568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24569 /* end confdefs.h.  */
24570
24571 /* Override any GCC internal prototype to avoid an error.
24572    Use char because int might match the return type of a GCC
24573    builtin and then its argument prototype would still apply.  */
24574 #ifdef __cplusplus
24575 extern "C"
24576 #endif
24577 char uncompress ();
24578 int
24579 main ()
24580 {
24581 return uncompress ();
24582   ;
24583   return 0;
24584 }
24585 _ACEOF
24586 if ac_fn_c_try_link "$LINENO"; then :
24587   ac_cv_lib_z_uncompress=yes
24588 else
24589   ac_cv_lib_z_uncompress=no
24590 fi
24591 rm -f core conftest.err conftest.$ac_objext \
24592     conftest$ac_exeext conftest.$ac_ext
24593 LIBS=$ac_check_lib_save_LIBS
24594 fi
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
24596 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
24597 if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
24598   passed=`expr $passed + 1`
24599 else
24600   failed=`expr $failed + 1`
24601 fi
24602
24603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
24604 $as_echo_n "checking for deflate in -lz... " >&6; }
24605 if test "${ac_cv_lib_z_deflate+set}" = set; then :
24606   $as_echo_n "(cached) " >&6
24607 else
24608   ac_check_lib_save_LIBS=$LIBS
24609 LIBS="-lz  $LIBS"
24610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24611 /* end confdefs.h.  */
24612
24613 /* Override any GCC internal prototype to avoid an error.
24614    Use char because int might match the return type of a GCC
24615    builtin and then its argument prototype would still apply.  */
24616 #ifdef __cplusplus
24617 extern "C"
24618 #endif
24619 char deflate ();
24620 int
24621 main ()
24622 {
24623 return deflate ();
24624   ;
24625   return 0;
24626 }
24627 _ACEOF
24628 if ac_fn_c_try_link "$LINENO"; then :
24629   ac_cv_lib_z_deflate=yes
24630 else
24631   ac_cv_lib_z_deflate=no
24632 fi
24633 rm -f core conftest.err conftest.$ac_objext \
24634     conftest$ac_exeext conftest.$ac_ext
24635 LIBS=$ac_check_lib_save_LIBS
24636 fi
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
24638 $as_echo "$ac_cv_lib_z_deflate" >&6; }
24639 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
24640   passed=`expr $passed + 1`
24641 else
24642   failed=`expr $failed + 1`
24643 fi
24644
24645     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
24646 $as_echo_n "checking for inflate in -lz... " >&6; }
24647 if test "${ac_cv_lib_z_inflate+set}" = set; then :
24648   $as_echo_n "(cached) " >&6
24649 else
24650   ac_check_lib_save_LIBS=$LIBS
24651 LIBS="-lz  $LIBS"
24652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24653 /* end confdefs.h.  */
24654
24655 /* Override any GCC internal prototype to avoid an error.
24656    Use char because int might match the return type of a GCC
24657    builtin and then its argument prototype would still apply.  */
24658 #ifdef __cplusplus
24659 extern "C"
24660 #endif
24661 char inflate ();
24662 int
24663 main ()
24664 {
24665 return inflate ();
24666   ;
24667   return 0;
24668 }
24669 _ACEOF
24670 if ac_fn_c_try_link "$LINENO"; then :
24671   ac_cv_lib_z_inflate=yes
24672 else
24673   ac_cv_lib_z_inflate=no
24674 fi
24675 rm -f core conftest.err conftest.$ac_objext \
24676     conftest$ac_exeext conftest.$ac_ext
24677 LIBS=$ac_check_lib_save_LIBS
24678 fi
24679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
24680 $as_echo "$ac_cv_lib_z_inflate" >&6; }
24681 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
24682   passed=`expr $passed + 1`
24683 else
24684   failed=`expr $failed + 1`
24685 fi
24686
24687     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
24688 $as_echo_n "checking for gzseek in -lz... " >&6; }
24689 if test "${ac_cv_lib_z_gzseek+set}" = set; then :
24690   $as_echo_n "(cached) " >&6
24691 else
24692   ac_check_lib_save_LIBS=$LIBS
24693 LIBS="-lz  $LIBS"
24694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24695 /* end confdefs.h.  */
24696
24697 /* Override any GCC internal prototype to avoid an error.
24698    Use char because int might match the return type of a GCC
24699    builtin and then its argument prototype would still apply.  */
24700 #ifdef __cplusplus
24701 extern "C"
24702 #endif
24703 char gzseek ();
24704 int
24705 main ()
24706 {
24707 return gzseek ();
24708   ;
24709   return 0;
24710 }
24711 _ACEOF
24712 if ac_fn_c_try_link "$LINENO"; then :
24713   ac_cv_lib_z_gzseek=yes
24714 else
24715   ac_cv_lib_z_gzseek=no
24716 fi
24717 rm -f core conftest.err conftest.$ac_objext \
24718     conftest$ac_exeext conftest.$ac_ext
24719 LIBS=$ac_check_lib_save_LIBS
24720 fi
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
24722 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
24723 if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
24724   passed=`expr $passed + 1`
24725 else
24726   failed=`expr $failed + 1`
24727 fi
24728
24729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
24730 $as_echo_n "checking for gztell in -lz... " >&6; }
24731 if test "${ac_cv_lib_z_gztell+set}" = set; then :
24732   $as_echo_n "(cached) " >&6
24733 else
24734   ac_check_lib_save_LIBS=$LIBS
24735 LIBS="-lz  $LIBS"
24736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24737 /* end confdefs.h.  */
24738
24739 /* Override any GCC internal prototype to avoid an error.
24740    Use char because int might match the return type of a GCC
24741    builtin and then its argument prototype would still apply.  */
24742 #ifdef __cplusplus
24743 extern "C"
24744 #endif
24745 char gztell ();
24746 int
24747 main ()
24748 {
24749 return gztell ();
24750   ;
24751   return 0;
24752 }
24753 _ACEOF
24754 if ac_fn_c_try_link "$LINENO"; then :
24755   ac_cv_lib_z_gztell=yes
24756 else
24757   ac_cv_lib_z_gztell=no
24758 fi
24759 rm -f core conftest.err conftest.$ac_objext \
24760     conftest$ac_exeext conftest.$ac_ext
24761 LIBS=$ac_check_lib_save_LIBS
24762 fi
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
24764 $as_echo "$ac_cv_lib_z_gztell" >&6; }
24765 if test "x$ac_cv_lib_z_gztell" = x""yes; then :
24766   passed=`expr $passed + 1`
24767 else
24768   failed=`expr $failed + 1`
24769 fi
24770
24771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
24772 $as_echo_n "checking if ZLIB package is complete... " >&6; }
24773     if test $passed -gt 0; then
24774         if test $failed -gt 0; then
24775             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24776 $as_echo "no -- some components failed test" >&6; }
24777             have_zlib='no (failed tests)'
24778         else
24779             ZLIB_LIBS='-lz'
24780             LIBS="$ZLIB_LIBS $LIBS"
24781
24782 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
24783
24784             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24785 $as_echo "yes" >&6; }
24786             have_zlib='yes'
24787         fi
24788     else
24789         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24790 $as_echo "no" >&6; }
24791     fi
24792 fi
24793  if test "$have_zlib" = 'yes'; then
24794   ZLIB_DELEGATE_TRUE=
24795   ZLIB_DELEGATE_FALSE='#'
24796 else
24797   ZLIB_DELEGATE_TRUE='#'
24798   ZLIB_DELEGATE_FALSE=
24799 fi
24800
24801
24802
24803 #
24804 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
24805 #
24806 LIB_DL=''
24807 if test "$enable_profiling" = 'yes'; then
24808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
24809 $as_echo_n "checking for dlopen in -ldl... " >&6; }
24810 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
24811   $as_echo_n "(cached) " >&6
24812 else
24813   ac_check_lib_save_LIBS=$LIBS
24814 LIBS="-ldl  $LIBS"
24815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24816 /* end confdefs.h.  */
24817
24818 /* Override any GCC internal prototype to avoid an error.
24819    Use char because int might match the return type of a GCC
24820    builtin and then its argument prototype would still apply.  */
24821 #ifdef __cplusplus
24822 extern "C"
24823 #endif
24824 char dlopen ();
24825 int
24826 main ()
24827 {
24828 return dlopen ();
24829   ;
24830   return 0;
24831 }
24832 _ACEOF
24833 if ac_fn_c_try_link "$LINENO"; then :
24834   ac_cv_lib_dl_dlopen=yes
24835 else
24836   ac_cv_lib_dl_dlopen=no
24837 fi
24838 rm -f core conftest.err conftest.$ac_objext \
24839     conftest$ac_exeext conftest.$ac_ext
24840 LIBS=$ac_check_lib_save_LIBS
24841 fi
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
24843 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
24844 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
24845   LIB_DL='-ldl'
24846 fi
24847
24848     LIBS="$LIB_DL $LIBS"
24849 fi
24850
24851
24852
24853 #
24854 # Check for Autotrace delegate library.
24855 #
24856
24857 # Check whether --with-autotrace was given.
24858 if test "${with_autotrace+set}" = set; then :
24859   withval=$with_autotrace; with_autotrace=$withval
24860 else
24861   with_autotrace='no'
24862 fi
24863
24864
24865 if test "$with_autotrace" != 'yes'; then
24866     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
24867 fi
24868
24869 have_autotrace='no'
24870 AUTOTRACE_CFLAGS=""
24871 AUTOTRACE_LIBS=""
24872 AUTOTRACE_PKG=""
24873 if test "x$with_autotrace" = "xyes"; then
24874     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24875 $as_echo "-------------------------------------------------------------" >&6; }
24876
24877 pkg_failed=no
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
24879 $as_echo_n "checking for AUTOTRACE... " >&6; }
24880
24881 if test -n "$AUTOTRACE_CFLAGS"; then
24882     pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
24883  elif test -n "$PKG_CONFIG"; then
24884     if test -n "$PKG_CONFIG" && \
24885     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
24886   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24887   ac_status=$?
24888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24889   test $ac_status = 0; }; then
24890   pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
24891 else
24892   pkg_failed=yes
24893 fi
24894  else
24895     pkg_failed=untried
24896 fi
24897 if test -n "$AUTOTRACE_LIBS"; then
24898     pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
24899  elif test -n "$PKG_CONFIG"; then
24900     if test -n "$PKG_CONFIG" && \
24901     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
24902   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24903   ac_status=$?
24904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24905   test $ac_status = 0; }; then
24906   pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
24907 else
24908   pkg_failed=yes
24909 fi
24910  else
24911     pkg_failed=untried
24912 fi
24913
24914
24915
24916 if test $pkg_failed = yes; then
24917
24918 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24919         _pkg_short_errors_supported=yes
24920 else
24921         _pkg_short_errors_supported=no
24922 fi
24923         if test $_pkg_short_errors_supported = yes; then
24924                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
24925         else
24926                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
24927         fi
24928         # Put the nasty error message in config.log where it belongs
24929         echo "$AUTOTRACE_PKG_ERRORS" >&5
24930
24931         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24932 $as_echo "no" >&6; }
24933                 have_autotrace=no
24934 elif test $pkg_failed = untried; then
24935         have_autotrace=no
24936 else
24937         AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
24938         AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
24939         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24940 $as_echo "yes" >&6; }
24941         have_autotrace=yes
24942 fi
24943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24944 $as_echo "" >&6; }
24945 fi
24946
24947 if test "$have_autotrace" = 'yes'; then
24948     failed=0
24949
24950 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
24951
24952     if test "$with_modules" = 'no'; then
24953     CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
24954     fi
24955 fi
24956
24957  if test "$have_autotrace" = 'yes'; then
24958   AUTOTRACE_DELEGATE_TRUE=
24959   AUTOTRACE_DELEGATE_FALSE='#'
24960 else
24961   AUTOTRACE_DELEGATE_TRUE='#'
24962   AUTOTRACE_DELEGATE_FALSE=
24963 fi
24964
24965
24966
24967
24968
24969 #
24970 # Check for Display Postscript delegate library.
24971 #
24972
24973 # Check whether --with-dps was given.
24974 if test "${with_dps+set}" = set; then :
24975   withval=$with_dps; with_dps=$withval
24976 else
24977   with_dps='yes'
24978 fi
24979
24980
24981 if test "$with_dps" != 'yes'; then
24982     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
24983 fi
24984
24985 have_dps='no'
24986 DPS_LIBS=''
24987 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
24988     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24989 $as_echo "-------------------------------------------------------------" >&6; }
24990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
24991 $as_echo_n "checking for DPS... " >&6; }
24992     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24993 $as_echo "" >&6; }
24994     failed=0
24995     passed=0
24996     PERSIST_CPPFLAGS="$CPPFLAGS"
24997     CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
24998     ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
24999 if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
25000   passed=`expr $passed + 1`
25001 else
25002   failed=`expr $failed + 1`
25003 fi
25004
25005
25006     # DPS issues:
25007     # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
25008     # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
25009     # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
25010     # ImageMagick itself doesn't use -lXt.
25011     have_libdps='no'
25012     LIBDPS_XT=''
25013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
25014 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
25015 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
25016   $as_echo_n "(cached) " >&6
25017 else
25018   ac_check_lib_save_LIBS=$LIBS
25019 LIBS="-ldps  $LIBS"
25020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25021 /* end confdefs.h.  */
25022
25023 /* Override any GCC internal prototype to avoid an error.
25024    Use char because int might match the return type of a GCC
25025    builtin and then its argument prototype would still apply.  */
25026 #ifdef __cplusplus
25027 extern "C"
25028 #endif
25029 char DPSInitialize ();
25030 int
25031 main ()
25032 {
25033 return DPSInitialize ();
25034   ;
25035   return 0;
25036 }
25037 _ACEOF
25038 if ac_fn_c_try_link "$LINENO"; then :
25039   ac_cv_lib_dps_DPSInitialize=yes
25040 else
25041   ac_cv_lib_dps_DPSInitialize=no
25042 fi
25043 rm -f core conftest.err conftest.$ac_objext \
25044     conftest$ac_exeext conftest.$ac_ext
25045 LIBS=$ac_check_lib_save_LIBS
25046 fi
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
25048 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
25049 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
25050   have_libdps='yes'
25051 else
25052   have_libdps='no'
25053 fi
25054
25055     if test "$have_libdps" != 'yes'; then
25056         # Unset cache variable so we can try again.
25057         unset ac_cv_lib_dps_DPSInitialize
25058         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
25059 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
25060 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
25061   $as_echo_n "(cached) " >&6
25062 else
25063   ac_check_lib_save_LIBS=$LIBS
25064 LIBS="-ldps -lXt $LIBS"
25065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25066 /* end confdefs.h.  */
25067
25068 /* Override any GCC internal prototype to avoid an error.
25069    Use char because int might match the return type of a GCC
25070    builtin and then its argument prototype would still apply.  */
25071 #ifdef __cplusplus
25072 extern "C"
25073 #endif
25074 char DPSInitialize ();
25075 int
25076 main ()
25077 {
25078 return DPSInitialize ();
25079   ;
25080   return 0;
25081 }
25082 _ACEOF
25083 if ac_fn_c_try_link "$LINENO"; then :
25084   ac_cv_lib_dps_DPSInitialize=yes
25085 else
25086   ac_cv_lib_dps_DPSInitialize=no
25087 fi
25088 rm -f core conftest.err conftest.$ac_objext \
25089     conftest$ac_exeext conftest.$ac_ext
25090 LIBS=$ac_check_lib_save_LIBS
25091 fi
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
25093 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
25094 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
25095   have_libdps='yes'
25096 else
25097   have_libdps='no'
25098 fi
25099
25100         if test "$have_libdps" = 'yes'; then
25101             LIBDPS_XT='-lXt'
25102         fi
25103     fi
25104     if test "$have_libdps" = 'yes'; then
25105         passed=`expr $passed + 1`
25106     else
25107         failed=`expr $failed + 1`
25108     fi
25109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
25110 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
25111 if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
25112   $as_echo_n "(cached) " >&6
25113 else
25114   ac_check_lib_save_LIBS=$LIBS
25115 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
25116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25117 /* end confdefs.h.  */
25118
25119 /* Override any GCC internal prototype to avoid an error.
25120    Use char because int might match the return type of a GCC
25121    builtin and then its argument prototype would still apply.  */
25122 #ifdef __cplusplus
25123 extern "C"
25124 #endif
25125 char XDPSPixelsPerPoint ();
25126 int
25127 main ()
25128 {
25129 return XDPSPixelsPerPoint ();
25130   ;
25131   return 0;
25132 }
25133 _ACEOF
25134 if ac_fn_c_try_link "$LINENO"; then :
25135   ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
25136 else
25137   ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
25138 fi
25139 rm -f core conftest.err conftest.$ac_objext \
25140     conftest$ac_exeext conftest.$ac_ext
25141 LIBS=$ac_check_lib_save_LIBS
25142 fi
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
25144 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
25145 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
25146   passed=`expr $passed + 1`
25147 else
25148   failed=`expr $failed + 1`
25149 fi
25150
25151     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
25152 $as_echo_n "checking if DPS package is complete... " >&6; }
25153     if test $passed -gt 0; then
25154         if test $failed -gt 0; then
25155             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25156 $as_echo "no -- some components failed test" >&6; }
25157             have_dps='no (failed tests)'
25158             CPPFLAGS="$PERSIST_CPPFLAGS"
25159         else
25160             DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
25161             LIBS="$DPS_LIBS $LIBS"
25162
25163 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
25164
25165             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25166 $as_echo "yes" >&6; }
25167             have_dps='yes'
25168         fi
25169     else
25170         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25171 $as_echo "no" >&6; }
25172         CPPFLAGS=$PERSIST_CPPFLAGS
25173     fi
25174 fi
25175  if test "$have_dps" = 'yes'; then
25176   DPS_DELEGATE_TRUE=
25177   DPS_DELEGATE_FALSE='#'
25178 else
25179   DPS_DELEGATE_TRUE='#'
25180   DPS_DELEGATE_FALSE=
25181 fi
25182
25183
25184
25185
25186 #
25187 # Check for DJVU delegate library.
25188 #
25189
25190 # Check whether --with-djvu was given.
25191 if test "${with_djvu+set}" = set; then :
25192   withval=$with_djvu; with_djvu=$withval
25193 else
25194   with_djvu='yes'
25195 fi
25196
25197
25198 if test "$with_djvu" != 'yes'; then
25199     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
25200 fi
25201
25202 have_djvu='no'
25203 DJVU_LIBS=''
25204 if test "$with_djvu" != 'no'; then
25205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25206 $as_echo "-------------------------------------------------------------" >&6; }
25207     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
25208 $as_echo_n "checking for DJVU... " >&6; }
25209     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25210 $as_echo "" >&6; }
25211     failed=0
25212     passed=0
25213     ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
25214 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
25215   passed=`expr $passed + 1`
25216 else
25217   failed=`expr $failed + 1`
25218 fi
25219
25220
25221     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
25222 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
25223 if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
25224   $as_echo_n "(cached) " >&6
25225 else
25226   ac_check_lib_save_LIBS=$LIBS
25227 LIBS="-ldjvulibre  $LIBS"
25228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25229 /* end confdefs.h.  */
25230
25231 /* Override any GCC internal prototype to avoid an error.
25232    Use char because int might match the return type of a GCC
25233    builtin and then its argument prototype would still apply.  */
25234 #ifdef __cplusplus
25235 extern "C"
25236 #endif
25237 char ddjvu_context_create ();
25238 int
25239 main ()
25240 {
25241 return ddjvu_context_create ();
25242   ;
25243   return 0;
25244 }
25245 _ACEOF
25246 if ac_fn_c_try_link "$LINENO"; then :
25247   ac_cv_lib_djvulibre_ddjvu_context_create=yes
25248 else
25249   ac_cv_lib_djvulibre_ddjvu_context_create=no
25250 fi
25251 rm -f core conftest.err conftest.$ac_objext \
25252     conftest$ac_exeext conftest.$ac_ext
25253 LIBS=$ac_check_lib_save_LIBS
25254 fi
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
25256 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
25257 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
25258   passed=`expr $passed + 1`
25259 else
25260   failed=`expr $failed + 1`
25261 fi
25262
25263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
25264 $as_echo_n "checking if DJVU package is complete... " >&6; }
25265     if test $passed -gt 0; then
25266         if test $failed -gt 0; then
25267             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25268 $as_echo "no -- some components failed test" >&6; }
25269             have_djvu='no (failed tests)'
25270         else
25271             DJVU_LIBS='-ldjvulibre'
25272             LIBS="$DJVU_LIBS $LIBS"
25273
25274 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
25275
25276             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25277 $as_echo "yes" >&6; }
25278             have_djvu='yes'
25279         fi
25280     else
25281         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25282 $as_echo "no" >&6; }
25283     fi
25284 fi
25285  if test "$have_djvu" = 'yes'; then
25286   DJVU_DELEGATE_TRUE=
25287   DJVU_DELEGATE_FALSE='#'
25288 else
25289   DJVU_DELEGATE_TRUE='#'
25290   DJVU_DELEGATE_FALSE=
25291 fi
25292
25293
25294
25295
25296 #
25297 # Check for FFTW delegate library.
25298 #
25299
25300 # Check whether --with-fftw was given.
25301 if test "${with_fftw+set}" = set; then :
25302   withval=$with_fftw; with_fftw=$withval
25303 else
25304   with_fftw='yes'
25305 fi
25306
25307
25308 if test "$with_fftw" != 'yes'; then
25309     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
25310 fi
25311
25312 have_fftw='no'
25313 FFTW_LIBS=''
25314 if test "$with_fftw" != 'no'; then
25315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25316 $as_echo "-------------------------------------------------------------" >&6; }
25317     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
25318 $as_echo_n "checking for FFTW... " >&6; }
25319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25320 $as_echo "" >&6; }
25321     failed=0
25322     passed=0
25323     ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
25324 if test "x$ac_cv_header_fftw3_h" = x""yes; then :
25325   passed=`expr $passed + 1`
25326 else
25327   failed=`expr $failed + 1`
25328 fi
25329
25330
25331     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
25332 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
25333 if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
25334   $as_echo_n "(cached) " >&6
25335 else
25336   ac_check_lib_save_LIBS=$LIBS
25337 LIBS="-lfftw3  $LIBS"
25338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25339 /* end confdefs.h.  */
25340
25341 /* Override any GCC internal prototype to avoid an error.
25342    Use char because int might match the return type of a GCC
25343    builtin and then its argument prototype would still apply.  */
25344 #ifdef __cplusplus
25345 extern "C"
25346 #endif
25347 char fftw_execute ();
25348 int
25349 main ()
25350 {
25351 return fftw_execute ();
25352   ;
25353   return 0;
25354 }
25355 _ACEOF
25356 if ac_fn_c_try_link "$LINENO"; then :
25357   ac_cv_lib_fftw3_fftw_execute=yes
25358 else
25359   ac_cv_lib_fftw3_fftw_execute=no
25360 fi
25361 rm -f core conftest.err conftest.$ac_objext \
25362     conftest$ac_exeext conftest.$ac_ext
25363 LIBS=$ac_check_lib_save_LIBS
25364 fi
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
25366 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
25367 if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
25368   passed=`expr $passed + 1`
25369 else
25370   failed=`expr $failed + 1`
25371 fi
25372
25373     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
25374 $as_echo_n "checking if FFTW package is complete... " >&6; }
25375     if test $passed -gt 0; then
25376         if test $failed -gt 0; then
25377             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25378 $as_echo "no -- some components failed test" >&6; }
25379             have_fftw='no (failed tests)'
25380         else
25381             FFTW_LIBS='-lfftw3'
25382             LIBS="$FFTW_LIBS $LIBS"
25383
25384 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
25385
25386             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25387 $as_echo "yes" >&6; }
25388             have_fftw='yes'
25389         fi
25390     else
25391         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25392 $as_echo "no" >&6; }
25393     fi
25394 fi
25395  if test "$have_fftw" = 'yes'; then
25396   FFTW_DELEGATE_TRUE=
25397   FFTW_DELEGATE_FALSE='#'
25398 else
25399   FFTW_DELEGATE_TRUE='#'
25400   FFTW_DELEGATE_FALSE=
25401 fi
25402
25403
25404
25405
25406 #
25407 # Check for FlashPIX delegate library.
25408 #
25409
25410 # Check whether --with-fpx was given.
25411 if test "${with_fpx+set}" = set; then :
25412   withval=$with_fpx; with_fpx=$withval
25413 else
25414   with_fpx='yes'
25415 fi
25416
25417
25418 if test "$with_fpx" != 'yes'; then
25419     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
25420 fi
25421
25422 have_fpx='no'
25423 FPX_LIBS=''
25424 if test "$with_fpx" != 'no'; then
25425     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25426 $as_echo "-------------------------------------------------------------" >&6; }
25427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
25428 $as_echo_n "checking for FlashPIX... " >&6; }
25429     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25430 $as_echo "" >&6; }
25431     failed=0
25432     passed=0
25433     ac_ext=cpp
25434 ac_cpp='$CXXCPP $CPPFLAGS'
25435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25438
25439
25440 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
25441 if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
25442   passed=`expr $passed + 1`
25443 else
25444   failed=`expr $failed + 1`
25445 fi
25446
25447
25448     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
25449 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
25450 if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
25451   $as_echo_n "(cached) " >&6
25452 else
25453   ac_check_lib_save_LIBS=$LIBS
25454 LIBS="-lfpx  $LIBS"
25455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25456 /* end confdefs.h.  */
25457
25458 /* Override any GCC internal prototype to avoid an error.
25459    Use char because int might match the return type of a GCC
25460    builtin and then its argument prototype would still apply.  */
25461 #ifdef __cplusplus
25462 extern "C"
25463 #endif
25464 char FPX_OpenImageByFilename ();
25465 int
25466 main ()
25467 {
25468 return FPX_OpenImageByFilename ();
25469   ;
25470   return 0;
25471 }
25472 _ACEOF
25473 if ac_fn_cxx_try_link "$LINENO"; then :
25474   ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
25475 else
25476   ac_cv_lib_fpx_FPX_OpenImageByFilename=no
25477 fi
25478 rm -f core conftest.err conftest.$ac_objext \
25479     conftest$ac_exeext conftest.$ac_ext
25480 LIBS=$ac_check_lib_save_LIBS
25481 fi
25482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
25483 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
25484 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
25485   passed=`expr $passed + 1`
25486 else
25487   failed=`expr $failed + 1`
25488 fi
25489
25490     ac_ext=c
25491 ac_cpp='$CPP $CPPFLAGS'
25492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25495
25496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
25497 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
25498     if test $passed -gt 0; then
25499         if test $failed -gt 0; then
25500             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25501 $as_echo "no -- some components failed test" >&6; }
25502             have_fpx='no (failed tests)'
25503         else
25504             FPX_LIBS='-lfpx'
25505
25506 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
25507
25508             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25509 $as_echo "yes" >&6; }
25510             have_fpx='yes'
25511             PERLMAINCC="$CXX"
25512         fi
25513     else
25514         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25515 $as_echo "no" >&6; }
25516     fi
25517 fi
25518  if test "$have_fpx" = 'yes'; then
25519   FPX_DELEGATE_TRUE=
25520   FPX_DELEGATE_FALSE='#'
25521 else
25522   FPX_DELEGATE_TRUE='#'
25523   FPX_DELEGATE_FALSE=
25524 fi
25525
25526
25527
25528
25529 #
25530 # Check for fontconfig delegate library.
25531 #
25532
25533 # Check whether --with-fontconfig was given.
25534 if test "${with_fontconfig+set}" = set; then :
25535   withval=$with_fontconfig; with_fontconfig=$withval
25536 else
25537   with_fontconfig=$have_x
25538 fi
25539
25540
25541 if test "$with_fontconfig" != 'yes'; then
25542     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
25543 fi
25544
25545 have_fontconfig='no'
25546 FONTCONFIG_CFLAGS=""
25547 FONTCONFIG_LIBS=""
25548 FONTCONFIG_PKG=""
25549 if test "x$with_fontconfig" = "xyes"; then
25550     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25551 $as_echo "-------------------------------------------------------------" >&6; }
25552
25553 pkg_failed=no
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
25555 $as_echo_n "checking for FONTCONFIG... " >&6; }
25556
25557 if test -n "$FONTCONFIG_CFLAGS"; then
25558     pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
25559  elif test -n "$PKG_CONFIG"; then
25560     if test -n "$PKG_CONFIG" && \
25561     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
25562   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25563   ac_status=$?
25564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25565   test $ac_status = 0; }; then
25566   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
25567 else
25568   pkg_failed=yes
25569 fi
25570  else
25571     pkg_failed=untried
25572 fi
25573 if test -n "$FONTCONFIG_LIBS"; then
25574     pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
25575  elif test -n "$PKG_CONFIG"; then
25576     if test -n "$PKG_CONFIG" && \
25577     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
25578   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25579   ac_status=$?
25580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25581   test $ac_status = 0; }; then
25582   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
25583 else
25584   pkg_failed=yes
25585 fi
25586  else
25587     pkg_failed=untried
25588 fi
25589
25590
25591
25592 if test $pkg_failed = yes; then
25593
25594 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25595         _pkg_short_errors_supported=yes
25596 else
25597         _pkg_short_errors_supported=no
25598 fi
25599         if test $_pkg_short_errors_supported = yes; then
25600                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
25601         else
25602                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
25603         fi
25604         # Put the nasty error message in config.log where it belongs
25605         echo "$FONTCONFIG_PKG_ERRORS" >&5
25606
25607         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25608 $as_echo "no" >&6; }
25609                 have_fontconfig=no
25610 elif test $pkg_failed = untried; then
25611         have_fontconfig=no
25612 else
25613         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
25614         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
25615         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25616 $as_echo "yes" >&6; }
25617         have_fontconfig=yes
25618 fi
25619     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25620 $as_echo "" >&6; }
25621 fi
25622
25623 if test "$have_fontconfig" = 'yes'; then
25624
25625 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
25626
25627     if test "$with_modules" = 'no'; then
25628     CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
25629     fi
25630 fi
25631
25632  if test "$have_fontconfig" = 'yes'; then
25633   FONTCONFIG_DELEGATE_TRUE=
25634   FONTCONFIG_DELEGATE_FALSE='#'
25635 else
25636   FONTCONFIG_DELEGATE_TRUE='#'
25637   FONTCONFIG_DELEGATE_FALSE=
25638 fi
25639
25640
25641
25642
25643
25644 #
25645 # Check for freetype delegate library.
25646 #
25647
25648 # Check whether --with-freetype was given.
25649 if test "${with_freetype+set}" = set; then :
25650   withval=$with_freetype; with_freetype=$withval
25651 else
25652   with_freetype='yes'
25653 fi
25654
25655
25656
25657 if test "$with_freetype" != 'yes'; then
25658     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
25659 fi
25660
25661 have_freetype='no'
25662 FREETYPE_LIBS=''
25663 if test "$with_freetype" != 'no'; then
25664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25665 $as_echo "-------------------------------------------------------------" >&6; }
25666     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
25667 $as_echo_n "checking for FreeType 2.0... " >&6; }
25668     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25669 $as_echo "" >&6; }
25670     failed=0
25671     passed=0
25672     PERSIST_LIBS="$LIBS"
25673     PERSIST_CPPFLAGS="$CPPFLAGS"
25674     if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
25675         :
25676     else
25677         freetype_config=''
25678         for ac_prog in freetype-config
25679 do
25680   # Extract the first word of "$ac_prog", so it can be a program name with args.
25681 set dummy $ac_prog; ac_word=$2
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25683 $as_echo_n "checking for $ac_word... " >&6; }
25684 if test "${ac_cv_prog_freetype_config+set}" = set; then :
25685   $as_echo_n "(cached) " >&6
25686 else
25687   if test -n "$freetype_config"; then
25688   ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
25689 else
25690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25691 for as_dir in $PATH
25692 do
25693   IFS=$as_save_IFS
25694   test -z "$as_dir" && as_dir=.
25695     for ac_exec_ext in '' $ac_executable_extensions; do
25696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25697     ac_cv_prog_freetype_config="$ac_prog"
25698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25699     break 2
25700   fi
25701 done
25702   done
25703 IFS=$as_save_IFS
25704
25705 fi
25706 fi
25707 freetype_config=$ac_cv_prog_freetype_config
25708 if test -n "$freetype_config"; then
25709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
25710 $as_echo "$freetype_config" >&6; }
25711 else
25712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25713 $as_echo "no" >&6; }
25714 fi
25715
25716
25717   test -n "$freetype_config" && break
25718 done
25719         if test -n "$freetype_config"; then
25720             freetype_cflags=`$freetype_config --cflags`
25721             freetype_libs=`$freetype_config --libs`
25722             LIBS="$LIBS $freetype_libs"
25723             CPPFLAGS="$freetype_cflags $CPPFLAGS"
25724         fi
25725     fi
25726
25727     if test "$FREETYPE_LIBS" = ''; then
25728         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
25729 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
25730 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
25731   $as_echo_n "(cached) " >&6
25732 else
25733   ac_check_lib_save_LIBS=$LIBS
25734 LIBS="-lfreetype  $LIBS"
25735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25736 /* end confdefs.h.  */
25737
25738 /* Override any GCC internal prototype to avoid an error.
25739    Use char because int might match the return type of a GCC
25740    builtin and then its argument prototype would still apply.  */
25741 #ifdef __cplusplus
25742 extern "C"
25743 #endif
25744 char FT_Init_FreeType ();
25745 int
25746 main ()
25747 {
25748 return FT_Init_FreeType ();
25749   ;
25750   return 0;
25751 }
25752 _ACEOF
25753 if ac_fn_c_try_link "$LINENO"; then :
25754   ac_cv_lib_freetype_FT_Init_FreeType=yes
25755 else
25756   ac_cv_lib_freetype_FT_Init_FreeType=no
25757 fi
25758 rm -f core conftest.err conftest.$ac_objext \
25759     conftest$ac_exeext conftest.$ac_ext
25760 LIBS=$ac_check_lib_save_LIBS
25761 fi
25762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
25763 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
25764 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
25765   FREETYPE_LIBS='-lfreetype'
25766 fi
25767
25768         if test "$FREETYPE_LIBS" != ''; then
25769             passed=`expr $passed + 1`
25770         else
25771             failed=`expr $failed + 1`
25772             LIBS="$PERSIST_LIBS"
25773         fi
25774     fi
25775
25776     ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
25777 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
25778   FT2BUILD_H='#include <ft2build.h>'
25779 else
25780   ft2build=''
25781 fi
25782
25783
25784     ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
25785 "
25786 if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
25787   have_freetype_h='yes'
25788 else
25789   have_freetype_h='no'
25790 fi
25791
25792
25793     if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
25794         passed=`expr $passed + 1`
25795     else
25796         failed=`expr $failed + 1`
25797         CPPFLAGS="$PERSIST_CPPFLAGS"
25798     fi
25799
25800     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
25801 $as_echo_n "checking if FreeType package is complete... " >&6; }
25802     if test $passed -gt 0; then
25803         if test $failed -gt 0; then
25804             FREETYPE_LIBS=''
25805             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25806 $as_echo "no -- some components failed test" >&6; }
25807             have_freetype='no (failed tests)'
25808         else
25809             LIBS="$FREETYPE_LIBS $LIBS"
25810
25811 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
25812
25813             if test "$ac_cv_header_ft2build_h" = 'yes'; then
25814
25815 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
25816
25817             fi
25818             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25819 $as_echo "yes" >&6; }
25820             have_freetype='yes'
25821         fi
25822     else
25823         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25824 $as_echo "no" >&6; }
25825     fi
25826 fi
25827  if test "$have_freetype" = 'yes'; then
25828   FREETYPE_DELEGATE_TRUE=
25829   FREETYPE_DELEGATE_FALSE='#'
25830 else
25831   FREETYPE_DELEGATE_TRUE='#'
25832   FREETYPE_DELEGATE_FALSE=
25833 fi
25834
25835
25836
25837
25838
25839 #
25840 # Check for Ghostscript library or framework.
25841 #
25842 # Test for iapi.h & test for gsapi_new_instance in -lgs
25843 # or -framework Ghostscript
25844
25845
25846 # Check whether --with-gslib was given.
25847 if test "${with_gslib+set}" = set; then :
25848   withval=$with_gslib; with_gslib=$withval
25849 else
25850   with_gslib='no'
25851 fi
25852
25853
25854 gslib_framework='no'
25855 if test "$with_gslib" != 'yes'; then
25856     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
25857 fi
25858
25859 have_gslib='no'
25860 GS_LIBS=''
25861 if test "$with_gslib" != 'no'; then
25862     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25863 $as_echo "-------------------------------------------------------------" >&6; }
25864     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
25865 $as_echo_n "checking for Ghostscript... " >&6; }
25866     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25867 $as_echo "" >&6; }
25868     framework=0
25869     failed=0
25870     passed=0
25871     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
25872 if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
25873   passed=`expr $passed + 1`
25874 else
25875   failed=`expr $failed + 1`
25876 fi
25877
25878
25879     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
25880 if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
25881   passed=`expr $passed + 1`
25882 else
25883   failed=`expr $failed + 1`
25884 fi
25885
25886
25887     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
25888 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
25889 if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
25890   $as_echo_n "(cached) " >&6
25891 else
25892   ac_check_framework_save_LIBS=$LIBS
25893 LIBS="-framework Ghostscript  $LIBS"
25894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25895 /* end confdefs.h.  */
25896
25897 /* Override any GCC internal prototype to avoid an error.
25898    Use char because int might match the return type of a GCC
25899    builtin and then its argument prototype would still apply.  */
25900 #ifdef __cplusplus
25901 extern "C"
25902 #endif
25903 char gsapi_new_instance ();
25904 int
25905 main ()
25906 {
25907 return gsapi_new_instance ();
25908   ;
25909   return 0;
25910 }
25911 _ACEOF
25912 if ac_fn_c_try_link "$LINENO"; then :
25913   ac_cv_framework_Ghostscript_gsapi_new_instance=yes
25914 else
25915   ac_cv_framework_Ghostscript_gsapi_new_instance=no
25916 fi
25917 rm -f core conftest.err conftest.$ac_objext \
25918     conftest$ac_exeext conftest.$ac_ext
25919 LIBS=$ac_check_framework_save_LIBS
25920 fi
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
25922 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
25923 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
25924   framework=`expr $framework + 1`
25925 else
25926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
25927 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
25928 if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
25929   $as_echo_n "(cached) " >&6
25930 else
25931   ac_check_lib_save_LIBS=$LIBS
25932 LIBS="-lgs  $LIBS"
25933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25934 /* end confdefs.h.  */
25935
25936 /* Override any GCC internal prototype to avoid an error.
25937    Use char because int might match the return type of a GCC
25938    builtin and then its argument prototype would still apply.  */
25939 #ifdef __cplusplus
25940 extern "C"
25941 #endif
25942 char gsapi_new_instance ();
25943 int
25944 main ()
25945 {
25946 return gsapi_new_instance ();
25947   ;
25948   return 0;
25949 }
25950 _ACEOF
25951 if ac_fn_c_try_link "$LINENO"; then :
25952   ac_cv_lib_gs_gsapi_new_instance=yes
25953 else
25954   ac_cv_lib_gs_gsapi_new_instance=no
25955 fi
25956 rm -f core conftest.err conftest.$ac_objext \
25957     conftest$ac_exeext conftest.$ac_ext
25958 LIBS=$ac_check_lib_save_LIBS
25959 fi
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
25961 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
25962 if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
25963   passed=`expr $passed + 1`
25964 else
25965   failed=`expr $failed + 1`
25966 fi
25967
25968 fi
25969     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
25970 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
25971     if test $passed -gt 0; then
25972         if test $failed -gt 0; then
25973             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25974 $as_echo "no -- some components failed test" >&6; }
25975             have_gslib='no (failed tests)'
25976         else
25977             if test $framework -gt 0; then
25978                 GS_LIBS='-framework Ghostscript'
25979                 gslib_framework='yes'
25980                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
25981 $as_echo "yes, using framework." >&6; }
25982             else
25983                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
25984 $as_echo "yes, using library." >&6; }
25985                 GS_LIBS='-lgs'
25986             fi
25987             LIBS="$GS_LIBS $LIBS"
25988
25989 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
25990
25991             have_gslib='yes'
25992         fi
25993     else
25994         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25995 $as_echo "no" >&6; }
25996     fi
25997 fi
25998  if test "$have_gslib" = 'yes'; then
25999   GS_DELEGATE_TRUE=
26000   GS_DELEGATE_FALSE='#'
26001 else
26002   GS_DELEGATE_TRUE='#'
26003   GS_DELEGATE_FALSE=
26004 fi
26005
26006
26007
26008 # Set default font search path
26009
26010 # Check whether --with-fontpath was given.
26011 if test "${with_fontpath+set}" = set; then :
26012   withval=$with_fontpath; with_fontpath=$withval
26013 else
26014   with_fontpath=''
26015 fi
26016
26017
26018 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
26019     with_fontpath=''
26020 else
26021
26022 cat >>confdefs.h <<_ACEOF
26023 #define MAGICK_FONT_PATH "$with_fontpath"
26024 _ACEOF
26025
26026 fi
26027 if test "$with_fontpath=" != ''; then
26028     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
26029 fi
26030
26031 # Set Ghostscript font directory
26032
26033 # Check whether --with-gs-font-dir was given.
26034 if test "${with_gs_font_dir+set}" = set; then :
26035   withval=$with_gs_font_dir; with_gs_font_dir=$withval
26036 else
26037   with_gs_font_dir='default'
26038 fi
26039
26040
26041 if test "$with_gs_font_dir" != 'default'; then
26042     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
26043 fi
26044
26045
26046 #
26047 # Check for GVC delegate library.
26048 #
26049
26050 # Check whether --with-gvc was given.
26051 if test "${with_gvc+set}" = set; then :
26052   withval=$with_gvc; with_gvc=$withval
26053 else
26054   with_gvc='yes'
26055 fi
26056
26057
26058 if test "$with_gvc" != 'yes'; then
26059     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
26060 fi
26061
26062 GVC_PKG=""
26063 if test "x$with_gvc" = "xyes"; then
26064     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26065 $as_echo "-------------------------------------------------------------" >&6; }
26066
26067 pkg_failed=no
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
26069 $as_echo_n "checking for GVC... " >&6; }
26070
26071 if test -n "$GVC_CFLAGS"; then
26072     pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
26073  elif test -n "$PKG_CONFIG"; then
26074     if test -n "$PKG_CONFIG" && \
26075     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
26076   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26077   ac_status=$?
26078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26079   test $ac_status = 0; }; then
26080   pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
26081 else
26082   pkg_failed=yes
26083 fi
26084  else
26085     pkg_failed=untried
26086 fi
26087 if test -n "$GVC_LIBS"; then
26088     pkg_cv_GVC_LIBS="$GVC_LIBS"
26089  elif test -n "$PKG_CONFIG"; then
26090     if test -n "$PKG_CONFIG" && \
26091     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
26092   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26093   ac_status=$?
26094   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26095   test $ac_status = 0; }; then
26096   pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
26097 else
26098   pkg_failed=yes
26099 fi
26100  else
26101     pkg_failed=untried
26102 fi
26103
26104
26105
26106 if test $pkg_failed = yes; then
26107
26108 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26109         _pkg_short_errors_supported=yes
26110 else
26111         _pkg_short_errors_supported=no
26112 fi
26113         if test $_pkg_short_errors_supported = yes; then
26114                 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
26115         else
26116                 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
26117         fi
26118         # Put the nasty error message in config.log where it belongs
26119         echo "$GVC_PKG_ERRORS" >&5
26120
26121         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26122 $as_echo "no" >&6; }
26123                 have_gvc=no
26124 elif test $pkg_failed = untried; then
26125         have_gvc=no
26126 else
26127         GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
26128         GVC_LIBS=$pkg_cv_GVC_LIBS
26129         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26130 $as_echo "yes" >&6; }
26131         have_gvc=yes
26132 fi
26133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26134 $as_echo "" >&6; }
26135 fi
26136
26137 if test "$have_gvc" = 'yes'; then
26138
26139 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
26140
26141     if test "$with_modules" = 'no'; then
26142         CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
26143     fi
26144 fi
26145
26146  if test "$have_gvc" = 'yes'; then
26147   GVC_DELEGATE_TRUE=
26148   GVC_DELEGATE_FALSE='#'
26149 else
26150   GVC_DELEGATE_TRUE='#'
26151   GVC_DELEGATE_FALSE=
26152 fi
26153
26154
26155
26156
26157
26158 #
26159 # Check for JBIG delegate library.
26160 #
26161
26162
26163 # Check whether --with-jbig was given.
26164 if test "${with_jbig+set}" = set; then :
26165   withval=$with_jbig; with_jbig=$withval
26166 else
26167   with_jbig='yes'
26168 fi
26169
26170
26171 have_jbig='no'
26172 JBIG_LIBS=''
26173 if test "$with_jbig" != 'no'; then
26174     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26175 $as_echo "-------------------------------------------------------------" >&6; }
26176     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
26177 $as_echo_n "checking for JBIG... " >&6; }
26178     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26179 $as_echo "" >&6; }
26180     failed=0
26181     passed=0
26182     ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
26183 if test "x$ac_cv_header_jbig_h" = x""yes; then :
26184   passed=`expr $passed + 1`
26185 else
26186   failed=`expr $failed + 1`
26187 fi
26188
26189
26190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
26191 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
26192 if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
26193   $as_echo_n "(cached) " >&6
26194 else
26195   ac_check_lib_save_LIBS=$LIBS
26196 LIBS="-ljbig  $LIBS"
26197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26198 /* end confdefs.h.  */
26199
26200 /* Override any GCC internal prototype to avoid an error.
26201    Use char because int might match the return type of a GCC
26202    builtin and then its argument prototype would still apply.  */
26203 #ifdef __cplusplus
26204 extern "C"
26205 #endif
26206 char jbg_dec_init ();
26207 int
26208 main ()
26209 {
26210 return jbg_dec_init ();
26211   ;
26212   return 0;
26213 }
26214 _ACEOF
26215 if ac_fn_c_try_link "$LINENO"; then :
26216   ac_cv_lib_jbig_jbg_dec_init=yes
26217 else
26218   ac_cv_lib_jbig_jbg_dec_init=no
26219 fi
26220 rm -f core conftest.err conftest.$ac_objext \
26221     conftest$ac_exeext conftest.$ac_ext
26222 LIBS=$ac_check_lib_save_LIBS
26223 fi
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
26225 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
26226 if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
26227   passed=`expr $passed + 1`
26228 else
26229   failed=`expr $failed + 1`
26230 fi
26231
26232     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
26233 $as_echo_n "checking if JBIG package is complete... " >&6; }
26234     if test $passed -gt 0; then
26235         if test $failed -gt 0; then
26236             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26237 $as_echo "no -- some components failed test" >&6; }
26238             have_jbig='no (failed tests)'
26239         else
26240             JBIG_LIBS='-ljbig'
26241             LIBS="$JBIG_LIBS $LIBS"
26242
26243 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
26244
26245             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26246 $as_echo "yes" >&6; }
26247             have_jbig='yes'
26248         fi
26249     else
26250         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26251 $as_echo "no" >&6; }
26252     fi
26253 fi
26254  if test "$have_jbig" = 'yes'; then
26255   JBIG_DELEGATE_TRUE=
26256   JBIG_DELEGATE_FALSE='#'
26257 else
26258   JBIG_DELEGATE_TRUE='#'
26259   JBIG_DELEGATE_FALSE=
26260 fi
26261
26262
26263
26264
26265 #
26266 # Check for JPEG delegate library.
26267 #
26268
26269 # Check whether --with-jpeg was given.
26270 if test "${with_jpeg+set}" = set; then :
26271   withval=$with_jpeg; with_jpeg=$withval
26272 else
26273   with_jpeg='yes'
26274 fi
26275
26276
26277 if test "$with_jpeg" != 'yes'; then
26278     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
26279 fi
26280
26281 have_jpeg='no'
26282 JPEG_LIBS=''
26283 if test "$with_jpeg" != 'no'; then
26284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26285 $as_echo "-------------------------------------------------------------" >&6; }
26286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
26287 $as_echo_n "checking for JPEG... " >&6; }
26288     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26289 $as_echo "" >&6; }
26290     failed=0
26291     passed=0
26292     ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
26293 if test "x$ac_cv_header_jconfig_h" = x""yes; then :
26294   passed=`expr $passed + 1`
26295 else
26296   failed=`expr $failed + 1`
26297 fi
26298
26299
26300     ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
26301 if test "x$ac_cv_header_jerror_h" = x""yes; then :
26302   passed=`expr $passed + 1`
26303 else
26304   failed=`expr $failed + 1`
26305 fi
26306
26307
26308     ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
26309 if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
26310   passed=`expr $passed + 1`
26311 else
26312   failed=`expr $failed + 1`
26313 fi
26314
26315
26316     ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
26317 if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
26318   passed=`expr $passed + 1`
26319 else
26320   failed=`expr $failed + 1`
26321 fi
26322
26323
26324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
26325 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
26326 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
26327   $as_echo_n "(cached) " >&6
26328 else
26329   ac_check_lib_save_LIBS=$LIBS
26330 LIBS="-ljpeg  $LIBS"
26331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26332 /* end confdefs.h.  */
26333
26334 /* Override any GCC internal prototype to avoid an error.
26335    Use char because int might match the return type of a GCC
26336    builtin and then its argument prototype would still apply.  */
26337 #ifdef __cplusplus
26338 extern "C"
26339 #endif
26340 char jpeg_read_header ();
26341 int
26342 main ()
26343 {
26344 return jpeg_read_header ();
26345   ;
26346   return 0;
26347 }
26348 _ACEOF
26349 if ac_fn_c_try_link "$LINENO"; then :
26350   ac_cv_lib_jpeg_jpeg_read_header=yes
26351 else
26352   ac_cv_lib_jpeg_jpeg_read_header=no
26353 fi
26354 rm -f core conftest.err conftest.$ac_objext \
26355     conftest$ac_exeext conftest.$ac_ext
26356 LIBS=$ac_check_lib_save_LIBS
26357 fi
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26359 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
26360 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
26361   passed=`expr $passed + 1`
26362 else
26363   failed=`expr $failed + 1`
26364 fi
26365
26366
26367 # Test for compatible JPEG library
26368 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
26370 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
26371 if test "${ac_cv_jpeg_version_ok+set}" = set; then :
26372   $as_echo_n "(cached) " >&6
26373 else
26374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26375 /* end confdefs.h.  */
26376 #include <stdio.h>
26377 #include <stdlib.h>
26378 #include <jpeglib.h>
26379
26380 int
26381 main ()
26382 {
26383
26384 #if JPEG_LIB_VERSION < 62
26385 #error IJG JPEG library must be version 6b or newer!
26386 #endif
26387 return 0;
26388
26389   ;
26390   return 0;
26391 }
26392 _ACEOF
26393 if ac_fn_c_try_compile "$LINENO"; then :
26394   ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
26395 else
26396   ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
26397 fi
26398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26399 fi
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
26401 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
26402 fi
26403     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
26404 $as_echo_n "checking if JPEG package is complete... " >&6; }
26405     if test $passed -gt 0; then
26406         if test $failed -gt 0; then
26407             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26408 $as_echo "no -- some components failed test" >&6; }
26409             have_jpeg='no (failed tests)'
26410         else
26411             JPEG_LIBS='-ljpeg'
26412             LIBS="$JPEG_LIBS $LIBS"
26413
26414 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
26415
26416             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26417 $as_echo "yes" >&6; }
26418             have_jpeg='yes'
26419         fi
26420     else
26421         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26422 $as_echo "no" >&6; }
26423     fi
26424 fi
26425  if test "$have_jpeg" = 'yes'; then
26426   JPEG_DELEGATE_TRUE=
26427   JPEG_DELEGATE_FALSE='#'
26428 else
26429   JPEG_DELEGATE_TRUE='#'
26430   JPEG_DELEGATE_FALSE=
26431 fi
26432
26433
26434
26435
26436 #
26437 # Check for JPEG Version 2 delegate library.
26438 #
26439
26440 # Check whether --with-jp2 was given.
26441 if test "${with_jp2+set}" = set; then :
26442   withval=$with_jp2; with_jp2=$withval
26443 else
26444   with_jp2='yes'
26445 fi
26446
26447
26448 if test "$with_jp2" != 'yes'; then
26449     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
26450 fi
26451
26452 have_jp2='no'
26453 JP2_LIBS=''
26454 if test "$with_jp2" != 'no'; then
26455     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26456 $as_echo "-------------------------------------------------------------" >&6; }
26457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
26458 $as_echo_n "checking for JPEG Version 2... " >&6; }
26459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26460 $as_echo "" >&6; }
26461     failed=0
26462     passed=0
26463     ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
26464 if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
26465   passed=`expr $passed + 1`
26466 else
26467   failed=`expr $failed + 1`
26468 fi
26469
26470
26471     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
26472 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
26473 if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
26474   $as_echo_n "(cached) " >&6
26475 else
26476   ac_check_lib_save_LIBS=$LIBS
26477 LIBS="-ljasper  $LIBS"
26478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26479 /* end confdefs.h.  */
26480
26481 /* Override any GCC internal prototype to avoid an error.
26482    Use char because int might match the return type of a GCC
26483    builtin and then its argument prototype would still apply.  */
26484 #ifdef __cplusplus
26485 extern "C"
26486 #endif
26487 char jas_stream_fopen ();
26488 int
26489 main ()
26490 {
26491 return jas_stream_fopen ();
26492   ;
26493   return 0;
26494 }
26495 _ACEOF
26496 if ac_fn_c_try_link "$LINENO"; then :
26497   ac_cv_lib_jasper_jas_stream_fopen=yes
26498 else
26499   ac_cv_lib_jasper_jas_stream_fopen=no
26500 fi
26501 rm -f core conftest.err conftest.$ac_objext \
26502     conftest$ac_exeext conftest.$ac_ext
26503 LIBS=$ac_check_lib_save_LIBS
26504 fi
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
26506 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
26507 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
26508   passed=`expr $passed + 1`
26509 else
26510   failed=`expr $failed + 1`
26511 fi
26512
26513     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
26514 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
26515     if test $passed -gt 0; then
26516         if test $failed -gt 0; then
26517             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26518 $as_echo "no -- some components failed test" >&6; }
26519             have_jp2='no (failed tests)'
26520         else
26521             JP2_LIBS='-ljasper'
26522             LIBS="$JP2_LIBS $LIBS"
26523
26524 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
26525
26526             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26527 $as_echo "yes" >&6; }
26528             have_jp2='yes'
26529         fi
26530     else
26531         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26532 $as_echo "no" >&6; }
26533     fi
26534 fi
26535  if test "$have_jp2" = 'yes'; then
26536   JP2_DELEGATE_TRUE=
26537   JP2_DELEGATE_FALSE='#'
26538 else
26539   JP2_DELEGATE_TRUE='#'
26540   JP2_DELEGATE_FALSE=
26541 fi
26542
26543
26544
26545
26546 #
26547 # Check for LCMS delegate library.
26548 #
26549
26550 # Check whether --with-lcms was given.
26551 if test "${with_lcms+set}" = set; then :
26552   withval=$with_lcms; with_lcms=$withval
26553 else
26554   with_lcms='yes'
26555 fi
26556
26557
26558 if test "$with_lcms" != 'yes'; then
26559     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
26560 fi
26561
26562 have_lcms='no'
26563 LCMS_LIBS=''
26564 if test "$with_lcms" != 'no'; then
26565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26566 $as_echo "-------------------------------------------------------------" >&6; }
26567     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
26568 $as_echo_n "checking for LCMS... " >&6; }
26569     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26570 $as_echo "" >&6; }
26571     failed=0
26572     passed=0
26573     have_lcms_header='no'
26574     ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
26575 if test "x$ac_cv_header_lcms_h" = x""yes; then :
26576   have_lcms_header='yes'
26577 fi
26578
26579
26580     if test "$have_lcms_header" = 'yes'; then
26581         passed=`expr $passed + 1`
26582
26583 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
26584
26585     else
26586         ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
26587 if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
26588   have_lcms_header='yes'
26589 fi
26590
26591
26592         if test "$have_lcms_header" = 'yes'; then
26593             passed=`expr $passed + 1`
26594
26595 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
26596
26597         else
26598             failed=`expr $failed + 1`
26599         fi
26600     fi
26601     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
26602 $as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
26603 if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
26604   $as_echo_n "(cached) " >&6
26605 else
26606   ac_check_lib_save_LIBS=$LIBS
26607 LIBS="-llcms  $LIBS"
26608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26609 /* end confdefs.h.  */
26610
26611 /* Override any GCC internal prototype to avoid an error.
26612    Use char because int might match the return type of a GCC
26613    builtin and then its argument prototype would still apply.  */
26614 #ifdef __cplusplus
26615 extern "C"
26616 #endif
26617 char cmsOpenProfileFromMem ();
26618 int
26619 main ()
26620 {
26621 return cmsOpenProfileFromMem ();
26622   ;
26623   return 0;
26624 }
26625 _ACEOF
26626 if ac_fn_c_try_link "$LINENO"; then :
26627   ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
26628 else
26629   ac_cv_lib_lcms_cmsOpenProfileFromMem=no
26630 fi
26631 rm -f core conftest.err conftest.$ac_objext \
26632     conftest$ac_exeext conftest.$ac_ext
26633 LIBS=$ac_check_lib_save_LIBS
26634 fi
26635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
26636 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
26637 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
26638   passed=`expr $passed + 1`
26639 else
26640   failed=`expr $failed + 1`
26641 fi
26642
26643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
26644 $as_echo_n "checking if LCMS package is complete... " >&6; }
26645     if test $passed -gt 0; then
26646         if test $failed -gt 0; then
26647             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26648 $as_echo "no -- some components failed test" >&6; }
26649             have_lcms='no (failed tests)'
26650         else
26651             LCMS_LIBS='-llcms'
26652             LIBS="$LCMS_LIBS $LIBS"
26653
26654 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
26655
26656             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26657 $as_echo "yes" >&6; }
26658             have_lcms='yes'
26659         fi
26660     else
26661         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26662 $as_echo "no" >&6; }
26663     fi
26664 fi
26665  if test "$have_lcms" = 'yes'; then
26666   LCMS_DELEGATE_TRUE=
26667   LCMS_DELEGATE_FALSE='#'
26668 else
26669   LCMS_DELEGATE_TRUE='#'
26670   LCMS_DELEGATE_FALSE=
26671 fi
26672
26673
26674
26675
26676 #
26677 # Check for the LQR (Liquid Rescale) delegate library.
26678 #
26679
26680 # Check whether --with-lqr was given.
26681 if test "${with_lqr+set}" = set; then :
26682   withval=$with_lqr; with_lqr=$withval
26683 else
26684   with_lqr='yes'
26685 fi
26686
26687
26688 if test "$with_lqr" != 'yes'; then
26689     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
26690 fi
26691
26692 have_lqr='no'
26693 LQR_CFLAGS=""
26694 LQR_LIBS=""
26695 LQR_PKG=""
26696 if test "x$with_lqr" = "xyes"; then
26697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26698 $as_echo "-------------------------------------------------------------" >&6; }
26699
26700 pkg_failed=no
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
26702 $as_echo_n "checking for LQR... " >&6; }
26703
26704 if test -n "$LQR_CFLAGS"; then
26705     pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
26706  elif test -n "$PKG_CONFIG"; then
26707     if test -n "$PKG_CONFIG" && \
26708     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
26709   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26710   ac_status=$?
26711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26712   test $ac_status = 0; }; then
26713   pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
26714 else
26715   pkg_failed=yes
26716 fi
26717  else
26718     pkg_failed=untried
26719 fi
26720 if test -n "$LQR_LIBS"; then
26721     pkg_cv_LQR_LIBS="$LQR_LIBS"
26722  elif test -n "$PKG_CONFIG"; then
26723     if test -n "$PKG_CONFIG" && \
26724     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
26725   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26726   ac_status=$?
26727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26728   test $ac_status = 0; }; then
26729   pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
26730 else
26731   pkg_failed=yes
26732 fi
26733  else
26734     pkg_failed=untried
26735 fi
26736
26737
26738
26739 if test $pkg_failed = yes; then
26740
26741 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26742         _pkg_short_errors_supported=yes
26743 else
26744         _pkg_short_errors_supported=no
26745 fi
26746         if test $_pkg_short_errors_supported = yes; then
26747                 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
26748         else
26749                 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
26750         fi
26751         # Put the nasty error message in config.log where it belongs
26752         echo "$LQR_PKG_ERRORS" >&5
26753
26754         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26755 $as_echo "no" >&6; }
26756                 have_lqr=no
26757 elif test $pkg_failed = untried; then
26758         have_lqr=no
26759 else
26760         LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
26761         LQR_LIBS=$pkg_cv_LQR_LIBS
26762         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26763 $as_echo "yes" >&6; }
26764         have_lqr=yes
26765 fi
26766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26767 $as_echo "" >&6; }
26768 fi
26769
26770 if test "$have_lqr" = 'yes'; then
26771
26772 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
26773
26774     CFLAGS="$LQR_CFLAGS $CFLAGS"
26775 fi
26776
26777  if test "$have_lqr" = 'yes'; then
26778   LQR_DELEGATE_TRUE=
26779   LQR_DELEGATE_FALSE='#'
26780 else
26781   LQR_DELEGATE_TRUE='#'
26782   LQR_DELEGATE_FALSE=
26783 fi
26784
26785
26786
26787
26788
26789 #
26790 # Check for the OpenEXR delegate library.
26791 #
26792
26793 # Check whether --with-openexr was given.
26794 if test "${with_openexr+set}" = set; then :
26795   withval=$with_openexr; with_openexr=$withval
26796 else
26797   with_openexr='yes'
26798 fi
26799
26800
26801 if test "$with_openexr" != 'yes'; then
26802     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
26803 fi
26804
26805 have_openexr='no'
26806 OPENEXR_CFLAGS=""
26807 OPENEXR_LIBS=""
26808 OPENEXR_PKG=""
26809 if test "x$with_openexr" = "xyes"; then
26810     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26811 $as_echo "-------------------------------------------------------------" >&6; }
26812
26813 pkg_failed=no
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
26815 $as_echo_n "checking for OPENEXR... " >&6; }
26816
26817 if test -n "$OPENEXR_CFLAGS"; then
26818     pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
26819  elif test -n "$PKG_CONFIG"; then
26820     if test -n "$PKG_CONFIG" && \
26821     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
26822   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26823   ac_status=$?
26824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26825   test $ac_status = 0; }; then
26826   pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
26827 else
26828   pkg_failed=yes
26829 fi
26830  else
26831     pkg_failed=untried
26832 fi
26833 if test -n "$OPENEXR_LIBS"; then
26834     pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
26835  elif test -n "$PKG_CONFIG"; then
26836     if test -n "$PKG_CONFIG" && \
26837     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
26838   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26839   ac_status=$?
26840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26841   test $ac_status = 0; }; then
26842   pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
26843 else
26844   pkg_failed=yes
26845 fi
26846  else
26847     pkg_failed=untried
26848 fi
26849
26850
26851
26852 if test $pkg_failed = yes; then
26853
26854 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26855         _pkg_short_errors_supported=yes
26856 else
26857         _pkg_short_errors_supported=no
26858 fi
26859         if test $_pkg_short_errors_supported = yes; then
26860                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
26861         else
26862                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
26863         fi
26864         # Put the nasty error message in config.log where it belongs
26865         echo "$OPENEXR_PKG_ERRORS" >&5
26866
26867         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26868 $as_echo "no" >&6; }
26869                 have_openexr=no
26870 elif test $pkg_failed = untried; then
26871         have_openexr=no
26872 else
26873         OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
26874         OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
26875         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26876 $as_echo "yes" >&6; }
26877         have_openexr=yes
26878 fi
26879     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26880 $as_echo "" >&6; }
26881 fi
26882
26883 if test "$have_openexr" = 'yes'; then
26884
26885 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
26886
26887     if test "$with_modules" = 'no'; then
26888         CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
26889     fi
26890 fi
26891
26892  if test "$have_openexr" = 'yes'; then
26893   OPENEXR_DELEGATE_TRUE=
26894   OPENEXR_DELEGATE_FALSE='#'
26895 else
26896   OPENEXR_DELEGATE_TRUE='#'
26897   OPENEXR_DELEGATE_FALSE=
26898 fi
26899
26900
26901
26902
26903
26904 #
26905 # Check for PNG delegate library.
26906 #
26907
26908 # Check whether --with-png was given.
26909 if test "${with_png+set}" = set; then :
26910   withval=$with_png; with_png=$withval
26911 else
26912   with_png='yes'
26913 fi
26914
26915
26916 if test "$with_png" != 'yes'; then
26917     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
26918 fi
26919
26920 have_png='no'
26921 PNG_LIBS=''
26922 if test "$with_png" != 'no'; then
26923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26924 $as_echo "-------------------------------------------------------------" >&6; }
26925     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
26926 $as_echo_n "checking for PNG... " >&6; }
26927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26928 $as_echo "" >&6; }
26929     failed=0
26930     passed=0
26931     ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
26932 if test "x$ac_cv_header_png_h" = x""yes; then :
26933   passed=`expr $passed + 1`
26934 else
26935   failed=`expr $failed + 1`
26936 fi
26937
26938
26939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
26940 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
26941 if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
26942   $as_echo_n "(cached) " >&6
26943 else
26944   ac_check_lib_save_LIBS=$LIBS
26945 LIBS="-lpng  $LIBS"
26946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26947 /* end confdefs.h.  */
26948
26949 /* Override any GCC internal prototype to avoid an error.
26950    Use char because int might match the return type of a GCC
26951    builtin and then its argument prototype would still apply.  */
26952 #ifdef __cplusplus
26953 extern "C"
26954 #endif
26955 char png_get_io_ptr ();
26956 int
26957 main ()
26958 {
26959 return png_get_io_ptr ();
26960   ;
26961   return 0;
26962 }
26963 _ACEOF
26964 if ac_fn_c_try_link "$LINENO"; then :
26965   ac_cv_lib_png_png_get_io_ptr=yes
26966 else
26967   ac_cv_lib_png_png_get_io_ptr=no
26968 fi
26969 rm -f core conftest.err conftest.$ac_objext \
26970     conftest$ac_exeext conftest.$ac_ext
26971 LIBS=$ac_check_lib_save_LIBS
26972 fi
26973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
26974 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
26975 if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
26976   passed=`expr $passed + 1`
26977 else
26978   failed=`expr $failed + 1`
26979 fi
26980
26981     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
26982 $as_echo_n "checking if PNG package is complete... " >&6; }
26983     if test $passed -gt 0; then
26984         if test $failed -gt 0; then
26985             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26986 $as_echo "no -- some components failed test" >&6; }
26987             have_png='no (failed tests)'
26988         else
26989             PNG_LIBS='-lpng'
26990             LIBS="$PNG_LIBS $LIBS"
26991
26992 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
26993
26994             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26995 $as_echo "yes" >&6; }
26996             have_png='yes'
26997         fi
26998     else
26999         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27000 $as_echo "no" >&6; }
27001     fi
27002 fi
27003  if test "$have_png" = 'yes'; then
27004   PNG_DELEGATE_TRUE=
27005   PNG_DELEGATE_FALSE='#'
27006 else
27007   PNG_DELEGATE_TRUE='#'
27008   PNG_DELEGATE_FALSE=
27009 fi
27010
27011
27012
27013
27014 #
27015 # Check for RSVG delegate library.
27016 #
27017
27018 # Check whether --with-rsvg was given.
27019 if test "${with_rsvg+set}" = set; then :
27020   withval=$with_rsvg; with_rsvg=$withval
27021 else
27022   with_rsvg=$have_x
27023 fi
27024
27025
27026 if test "$with_rsvg" != 'yes'; then
27027     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
27028 fi
27029
27030 have_rsvg='no'
27031 have_cairo='no'
27032 RSVG_CFLAGS=""
27033 RSVG_LIBS=""
27034 RSVG_PKG=""
27035 if test "x$with_rsvg" = "xyes"; then
27036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27037 $as_echo "-------------------------------------------------------------" >&6; }
27038
27039 pkg_failed=no
27040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
27041 $as_echo_n "checking for RSVG... " >&6; }
27042
27043 if test -n "$RSVG_CFLAGS"; then
27044     pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
27045  elif test -n "$PKG_CONFIG"; then
27046     if test -n "$PKG_CONFIG" && \
27047     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
27048   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27049   ac_status=$?
27050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27051   test $ac_status = 0; }; then
27052   pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27053 else
27054   pkg_failed=yes
27055 fi
27056  else
27057     pkg_failed=untried
27058 fi
27059 if test -n "$RSVG_LIBS"; then
27060     pkg_cv_RSVG_LIBS="$RSVG_LIBS"
27061  elif test -n "$PKG_CONFIG"; then
27062     if test -n "$PKG_CONFIG" && \
27063     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
27064   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27065   ac_status=$?
27066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27067   test $ac_status = 0; }; then
27068   pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27069 else
27070   pkg_failed=yes
27071 fi
27072  else
27073     pkg_failed=untried
27074 fi
27075
27076
27077
27078 if test $pkg_failed = yes; then
27079
27080 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27081         _pkg_short_errors_supported=yes
27082 else
27083         _pkg_short_errors_supported=no
27084 fi
27085         if test $_pkg_short_errors_supported = yes; then
27086                 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27087         else
27088                 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27089         fi
27090         # Put the nasty error message in config.log where it belongs
27091         echo "$RSVG_PKG_ERRORS" >&5
27092
27093         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27094 $as_echo "no" >&6; }
27095                 have_rsvg=no
27096 elif test $pkg_failed = untried; then
27097         have_rsvg=no
27098 else
27099         RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
27100         RSVG_LIBS=$pkg_cv_RSVG_LIBS
27101         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27102 $as_echo "yes" >&6; }
27103         have_rsvg=yes
27104 fi
27105     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27106 $as_echo "" >&6; }
27107
27108 pkg_failed=no
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
27110 $as_echo_n "checking for CAIRO_SVG... " >&6; }
27111
27112 if test -n "$CAIRO_SVG_CFLAGS"; then
27113     pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
27114  elif test -n "$PKG_CONFIG"; then
27115     if test -n "$PKG_CONFIG" && \
27116     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
27117   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27118   ac_status=$?
27119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27120   test $ac_status = 0; }; then
27121   pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
27122 else
27123   pkg_failed=yes
27124 fi
27125  else
27126     pkg_failed=untried
27127 fi
27128 if test -n "$CAIRO_SVG_LIBS"; then
27129     pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
27130  elif test -n "$PKG_CONFIG"; then
27131     if test -n "$PKG_CONFIG" && \
27132     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
27133   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27134   ac_status=$?
27135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27136   test $ac_status = 0; }; then
27137   pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
27138 else
27139   pkg_failed=yes
27140 fi
27141  else
27142     pkg_failed=untried
27143 fi
27144
27145
27146
27147 if test $pkg_failed = yes; then
27148
27149 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27150         _pkg_short_errors_supported=yes
27151 else
27152         _pkg_short_errors_supported=no
27153 fi
27154         if test $_pkg_short_errors_supported = yes; then
27155                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
27156         else
27157                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
27158         fi
27159         # Put the nasty error message in config.log where it belongs
27160         echo "$CAIRO_SVG_PKG_ERRORS" >&5
27161
27162         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27163 $as_echo "no" >&6; }
27164                 have_cairo=no
27165 elif test $pkg_failed = untried; then
27166         have_cairo=no
27167 else
27168         CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
27169         CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
27170         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27171 $as_echo "yes" >&6; }
27172         have_cairo=yes
27173 fi
27174     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27175 $as_echo "" >&6; }
27176 fi
27177
27178 if test "$have_rsvg" = 'yes'; then
27179
27180 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
27181
27182     if test "$with_modules" = 'no'; then
27183         CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
27184     fi
27185 fi
27186
27187 if test "$have_cairo" = 'yes'; then
27188
27189 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
27190
27191     if test "$with_modules" = 'no'; then
27192         CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
27193     fi
27194 fi
27195
27196  if test "$have_rsvg" = 'yes'; then
27197   RSVG_DELEGATE_TRUE=
27198   RSVG_DELEGATE_FALSE='#'
27199 else
27200   RSVG_DELEGATE_TRUE='#'
27201   RSVG_DELEGATE_FALSE=
27202 fi
27203
27204  if test "$have_cairo" = 'yes'; then
27205   CAIRO_DELEGATE_TRUE=
27206   CAIRO_DELEGATE_FALSE='#'
27207 else
27208   CAIRO_DELEGATE_TRUE='#'
27209   CAIRO_DELEGATE_FALSE=
27210 fi
27211
27212
27213
27214
27215
27216 #
27217 # Check for TIFF delegate library.
27218 #
27219
27220 # Check whether --with-tiff was given.
27221 if test "${with_tiff+set}" = set; then :
27222   withval=$with_tiff; with_tiff=$withval
27223 else
27224   with_tiff='yes'
27225 fi
27226
27227
27228 if test "$with_tiff" != 'yes'; then
27229     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
27230 fi
27231
27232 have_tiff='no'
27233 TIFF_LIBS=''
27234 if test "$with_tiff" != 'no'; then
27235     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27236 $as_echo "-------------------------------------------------------------" >&6; }
27237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
27238 $as_echo_n "checking for TIFF... " >&6; }
27239     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27240 $as_echo "" >&6; }
27241     failed=0
27242     passed=0
27243     ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
27244 if test "x$ac_cv_header_tiff_h" = x""yes; then :
27245   passed=`expr $passed + 1`
27246 else
27247   failed=`expr $failed + 1`
27248 fi
27249
27250
27251     ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
27252 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
27253   passed=`expr $passed + 1`
27254 else
27255   failed=`expr $failed + 1`
27256 fi
27257
27258
27259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
27260 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
27261 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
27262   $as_echo_n "(cached) " >&6
27263 else
27264   ac_check_lib_save_LIBS=$LIBS
27265 LIBS="-ltiff  $LIBS"
27266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27267 /* end confdefs.h.  */
27268
27269 /* Override any GCC internal prototype to avoid an error.
27270    Use char because int might match the return type of a GCC
27271    builtin and then its argument prototype would still apply.  */
27272 #ifdef __cplusplus
27273 extern "C"
27274 #endif
27275 char TIFFOpen ();
27276 int
27277 main ()
27278 {
27279 return TIFFOpen ();
27280   ;
27281   return 0;
27282 }
27283 _ACEOF
27284 if ac_fn_c_try_link "$LINENO"; then :
27285   ac_cv_lib_tiff_TIFFOpen=yes
27286 else
27287   ac_cv_lib_tiff_TIFFOpen=no
27288 fi
27289 rm -f core conftest.err conftest.$ac_objext \
27290     conftest$ac_exeext conftest.$ac_ext
27291 LIBS=$ac_check_lib_save_LIBS
27292 fi
27293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
27294 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
27295 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
27296   passed=`expr $passed + 1`
27297 else
27298   failed=`expr $failed + 1`
27299 fi
27300
27301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
27302 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
27303 if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
27304   $as_echo_n "(cached) " >&6
27305 else
27306   ac_check_lib_save_LIBS=$LIBS
27307 LIBS="-ltiff  $LIBS"
27308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27309 /* end confdefs.h.  */
27310
27311 /* Override any GCC internal prototype to avoid an error.
27312    Use char because int might match the return type of a GCC
27313    builtin and then its argument prototype would still apply.  */
27314 #ifdef __cplusplus
27315 extern "C"
27316 #endif
27317 char TIFFClientOpen ();
27318 int
27319 main ()
27320 {
27321 return TIFFClientOpen ();
27322   ;
27323   return 0;
27324 }
27325 _ACEOF
27326 if ac_fn_c_try_link "$LINENO"; then :
27327   ac_cv_lib_tiff_TIFFClientOpen=yes
27328 else
27329   ac_cv_lib_tiff_TIFFClientOpen=no
27330 fi
27331 rm -f core conftest.err conftest.$ac_objext \
27332     conftest$ac_exeext conftest.$ac_ext
27333 LIBS=$ac_check_lib_save_LIBS
27334 fi
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
27336 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
27337 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
27338   passed=`expr $passed + 1`
27339 else
27340   failed=`expr $failed + 1`
27341 fi
27342
27343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
27344 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
27345 if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
27346   $as_echo_n "(cached) " >&6
27347 else
27348   ac_check_lib_save_LIBS=$LIBS
27349 LIBS="-ltiff  $LIBS"
27350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27351 /* end confdefs.h.  */
27352
27353 /* Override any GCC internal prototype to avoid an error.
27354    Use char because int might match the return type of a GCC
27355    builtin and then its argument prototype would still apply.  */
27356 #ifdef __cplusplus
27357 extern "C"
27358 #endif
27359 char TIFFIsByteSwapped ();
27360 int
27361 main ()
27362 {
27363 return TIFFIsByteSwapped ();
27364   ;
27365   return 0;
27366 }
27367 _ACEOF
27368 if ac_fn_c_try_link "$LINENO"; then :
27369   ac_cv_lib_tiff_TIFFIsByteSwapped=yes
27370 else
27371   ac_cv_lib_tiff_TIFFIsByteSwapped=no
27372 fi
27373 rm -f core conftest.err conftest.$ac_objext \
27374     conftest$ac_exeext conftest.$ac_ext
27375 LIBS=$ac_check_lib_save_LIBS
27376 fi
27377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
27378 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
27379 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
27380   passed=`expr $passed + 1`
27381 else
27382   failed=`expr $failed + 1`
27383 fi
27384
27385     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
27386 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
27387 if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
27388   $as_echo_n "(cached) " >&6
27389 else
27390   ac_check_lib_save_LIBS=$LIBS
27391 LIBS="-ltiff  $LIBS"
27392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27393 /* end confdefs.h.  */
27394
27395 /* Override any GCC internal prototype to avoid an error.
27396    Use char because int might match the return type of a GCC
27397    builtin and then its argument prototype would still apply.  */
27398 #ifdef __cplusplus
27399 extern "C"
27400 #endif
27401 char TIFFReadRGBATile ();
27402 int
27403 main ()
27404 {
27405 return TIFFReadRGBATile ();
27406   ;
27407   return 0;
27408 }
27409 _ACEOF
27410 if ac_fn_c_try_link "$LINENO"; then :
27411   ac_cv_lib_tiff_TIFFReadRGBATile=yes
27412 else
27413   ac_cv_lib_tiff_TIFFReadRGBATile=no
27414 fi
27415 rm -f core conftest.err conftest.$ac_objext \
27416     conftest$ac_exeext conftest.$ac_ext
27417 LIBS=$ac_check_lib_save_LIBS
27418 fi
27419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
27420 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
27421 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
27422   passed=`expr $passed + 1`
27423 else
27424   failed=`expr $failed + 1`
27425 fi
27426
27427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
27428 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
27429 if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
27430   $as_echo_n "(cached) " >&6
27431 else
27432   ac_check_lib_save_LIBS=$LIBS
27433 LIBS="-ltiff  $LIBS"
27434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27435 /* end confdefs.h.  */
27436
27437 /* Override any GCC internal prototype to avoid an error.
27438    Use char because int might match the return type of a GCC
27439    builtin and then its argument prototype would still apply.  */
27440 #ifdef __cplusplus
27441 extern "C"
27442 #endif
27443 char TIFFReadRGBAStrip ();
27444 int
27445 main ()
27446 {
27447 return TIFFReadRGBAStrip ();
27448   ;
27449   return 0;
27450 }
27451 _ACEOF
27452 if ac_fn_c_try_link "$LINENO"; then :
27453   ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
27454 else
27455   ac_cv_lib_tiff_TIFFReadRGBAStrip=no
27456 fi
27457 rm -f core conftest.err conftest.$ac_objext \
27458     conftest$ac_exeext conftest.$ac_ext
27459 LIBS=$ac_check_lib_save_LIBS
27460 fi
27461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
27462 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
27463 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
27464   passed=`expr $passed + 1`
27465 else
27466   failed=`expr $failed + 1`
27467 fi
27468
27469     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
27470 $as_echo_n "checking if TIFF package is complete... " >&6; }
27471     if test $passed -gt 0; then
27472         if test $failed -gt 0; then
27473             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27474 $as_echo "no -- some components failed test" >&6; }
27475             have_tiff='no (failed tests)'
27476         else
27477             TIFF_LIBS='-ltiff'
27478             LIBS="$TIFF_LIBS $LIBS"
27479
27480 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
27481
27482             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27483 $as_echo "yes" >&6; }
27484             have_tiff='yes'
27485             for ac_header in tiffconf.h
27486 do :
27487   ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
27488 if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
27489   cat >>confdefs.h <<_ACEOF
27490 #define HAVE_TIFFCONF_H 1
27491 _ACEOF
27492
27493 fi
27494
27495 done
27496
27497             for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
27498               TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
27499               TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
27500 do :
27501   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27502 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27503 eval as_val=\$$as_ac_var
27504    if test "x$as_val" = x""yes; then :
27505   cat >>confdefs.h <<_ACEOF
27506 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27507 _ACEOF
27508
27509 fi
27510 done
27511
27512         fi
27513     else
27514         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27515 $as_echo "no" >&6; }
27516     fi
27517 fi
27518  if test "$have_tiff" = 'yes'; then
27519   TIFF_DELEGATE_TRUE=
27520   TIFF_DELEGATE_FALSE='#'
27521 else
27522   TIFF_DELEGATE_TRUE='#'
27523   TIFF_DELEGATE_FALSE=
27524 fi
27525
27526
27527
27528
27529 #
27530 # Set Windows font directory.
27531 #
27532
27533 # Check whether --with-windows-font-dir was given.
27534 if test "${with_windows_font_dir+set}" = set; then :
27535   withval=$with_windows_font_dir; with_windows_font_dir=$withval
27536 else
27537   with_windows_font_dir=''
27538 fi
27539
27540 if test "$with_windows_font_dir" != '' ; then
27541     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
27542 fi
27543
27544
27545 #
27546 # Check for WMF delegate library.
27547 #
27548
27549 # Check whether --with-wmf was given.
27550 if test "${with_wmf+set}" = set; then :
27551   withval=$with_wmf; with_wmf=$withval
27552 else
27553   with_wmf=$with_modules
27554 fi
27555
27556
27557 if test "$with_wmf" != 'yes'; then
27558     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
27559 fi
27560
27561 have_wmf='no'
27562 WMF_LIBS=''
27563 WMF_LIBS_DEPS=''
27564 OLIBS="$LIBS"
27565 if test "$with_wmf" != 'no'; then
27566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27567 $as_echo "-------------------------------------------------------------" >&6; }
27568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
27569 $as_echo_n "checking for WMF... " >&6; }
27570     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27571 $as_echo "" >&6; }
27572     have_libwmf='no'
27573     have_libwmflite='no'
27574     have_libwmf_ipa_h='no'
27575
27576     ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
27577 "
27578 if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then :
27579   have_libwmf_ipa_h='yes'
27580 fi
27581
27582
27583     if test "$have_libwmf_ipa_h" = 'yes'; then
27584         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
27585 $as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
27586 if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then :
27587   $as_echo_n "(cached) " >&6
27588 else
27589   ac_check_lib_save_LIBS=$LIBS
27590 LIBS="-lwmflite  $LIBS"
27591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27592 /* end confdefs.h.  */
27593
27594 /* Override any GCC internal prototype to avoid an error.
27595    Use char because int might match the return type of a GCC
27596    builtin and then its argument prototype would still apply.  */
27597 #ifdef __cplusplus
27598 extern "C"
27599 #endif
27600 char wmf_lite_create ();
27601 int
27602 main ()
27603 {
27604 return wmf_lite_create ();
27605   ;
27606   return 0;
27607 }
27608 _ACEOF
27609 if ac_fn_c_try_link "$LINENO"; then :
27610   ac_cv_lib_wmflite_wmf_lite_create=yes
27611 else
27612   ac_cv_lib_wmflite_wmf_lite_create=no
27613 fi
27614 rm -f core conftest.err conftest.$ac_objext \
27615     conftest$ac_exeext conftest.$ac_ext
27616 LIBS=$ac_check_lib_save_LIBS
27617 fi
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
27619 $as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
27620 if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then :
27621   have_libwmflite='yes'
27622 fi
27623
27624         if test "$have_libwmflite" = 'yes'; then
27625
27626 $as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
27627
27628             WMF_LIBS='-lwmflite'
27629             LIBS="$WMF_LIBS $LIBS"
27630             have_wmf='yes'
27631         else
27632             WMF_LIBS_DEPS=''
27633             WMF_CONFIG_LIBS=`libwmf-config --libs`
27634             for lib in xml2 expat freetype jpeg png z; do
27635                 testlib="-l${lib}"
27636                 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
27637             done
27638             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
27639 $as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
27640 if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then :
27641   $as_echo_n "(cached) " >&6
27642 else
27643   ac_check_lib_save_LIBS=$LIBS
27644 LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
27645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27646 /* end confdefs.h.  */
27647
27648 /* Override any GCC internal prototype to avoid an error.
27649    Use char because int might match the return type of a GCC
27650    builtin and then its argument prototype would still apply.  */
27651 #ifdef __cplusplus
27652 extern "C"
27653 #endif
27654 char wmf_api_create ();
27655 int
27656 main ()
27657 {
27658 return wmf_api_create ();
27659   ;
27660   return 0;
27661 }
27662 _ACEOF
27663 if ac_fn_c_try_link "$LINENO"; then :
27664   ac_cv_lib_wmf_wmf_api_create=yes
27665 else
27666   ac_cv_lib_wmf_wmf_api_create=no
27667 fi
27668 rm -f core conftest.err conftest.$ac_objext \
27669     conftest$ac_exeext conftest.$ac_ext
27670 LIBS=$ac_check_lib_save_LIBS
27671 fi
27672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
27673 $as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
27674 if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then :
27675   have_libwmf='yes'
27676 fi
27677
27678             if test "$have_libwmf" = 'yes'; then
27679
27680 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
27681
27682                 WMF_LIBS='-lwmf'
27683                 LIBS="$WMF_LIBS $LIBS"
27684                 have_wmf='yes'
27685             else
27686                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27687 $as_echo "no -- some components failed test" >&6; }
27688                 have_wmf='no (failed tests)'
27689                 have_wmflite='no (failed tests)'
27690                 LIBS="$OLIBS"
27691                 WMF_LIBS=''
27692             fi
27693         fi
27694     fi
27695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
27696 $as_echo_n "checking if WMF package is complete... " >&6; }
27697     if test "$have_wmf" = 'yes'; then
27698         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27699 $as_echo "yes" >&6; }
27700     else
27701         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27702 $as_echo "no" >&6; }
27703     fi
27704 fi
27705  if test "$have_wmf" = 'yes'; then
27706   WMF_DELEGATE_TRUE=
27707   WMF_DELEGATE_FALSE='#'
27708 else
27709   WMF_DELEGATE_TRUE='#'
27710   WMF_DELEGATE_FALSE=
27711 fi
27712
27713
27714
27715
27716
27717 #
27718 # Check for XML delegate library.
27719 #
27720
27721 # Check whether --with-xml was given.
27722 if test "${with_xml+set}" = set; then :
27723   withval=$with_xml; with_xml=$withval
27724 else
27725   with_xml=$have_x
27726 fi
27727
27728
27729 if test "$with_xml" != 'yes' ; then
27730     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
27731 fi
27732
27733 have_xml='no'
27734 XML_LIBS=''
27735 if test "$with_xml" != 'no'; then
27736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27737 $as_echo "-------------------------------------------------------------" >&6; }
27738     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
27739 $as_echo_n "checking for XML... " >&6; }
27740     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27741 $as_echo "" >&6; }
27742     PERSIST_LDFLAGS=$LDFLAGS
27743     PERSIST_CPPFLAGS=$CPPFLAGS
27744     xml2_config=''
27745     for ac_prog in xml2-config
27746 do
27747   # Extract the first word of "$ac_prog", so it can be a program name with args.
27748 set dummy $ac_prog; ac_word=$2
27749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27750 $as_echo_n "checking for $ac_word... " >&6; }
27751 if test "${ac_cv_prog_xml2_config+set}" = set; then :
27752   $as_echo_n "(cached) " >&6
27753 else
27754   if test -n "$xml2_config"; then
27755   ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
27756 else
27757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27758 for as_dir in $PATH
27759 do
27760   IFS=$as_save_IFS
27761   test -z "$as_dir" && as_dir=.
27762     for ac_exec_ext in '' $ac_executable_extensions; do
27763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27764     ac_cv_prog_xml2_config="$ac_prog"
27765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27766     break 2
27767   fi
27768 done
27769   done
27770 IFS=$as_save_IFS
27771
27772 fi
27773 fi
27774 xml2_config=$ac_cv_prog_xml2_config
27775 if test -n "$xml2_config"; then
27776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
27777 $as_echo "$xml2_config" >&6; }
27778 else
27779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27780 $as_echo "no" >&6; }
27781 fi
27782
27783
27784   test -n "$xml2_config" && break
27785 done
27786     if test -n "$xml2_config"; then
27787         # Debian installs libxml headers under /usr/include/libxml2/libxml with
27788         # the shared library installed under /usr/lib, whereas the package
27789         # installs itself under $prefix/libxml and $prefix/lib.
27790         xml2_prefix=`xml2-config --prefix`
27791         if test -d "${xml2_prefix}/include/libxml2"; then
27792             CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
27793         fi
27794         if test "${xml2_prefix}" != '/usr'; then
27795             LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
27796         fi
27797     fi
27798     failed=0
27799     passed=0
27800     ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
27801 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
27802   passed=`expr $passed + 1`
27803 else
27804   failed=`expr $failed + 1`
27805 fi
27806
27807
27808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
27809 $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
27810 if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
27811   $as_echo_n "(cached) " >&6
27812 else
27813   ac_check_lib_save_LIBS=$LIBS
27814 LIBS="-lxml2  $LIBS"
27815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27816 /* end confdefs.h.  */
27817
27818 /* Override any GCC internal prototype to avoid an error.
27819    Use char because int might match the return type of a GCC
27820    builtin and then its argument prototype would still apply.  */
27821 #ifdef __cplusplus
27822 extern "C"
27823 #endif
27824 char xmlParseExternalEntity ();
27825 int
27826 main ()
27827 {
27828 return xmlParseExternalEntity ();
27829   ;
27830   return 0;
27831 }
27832 _ACEOF
27833 if ac_fn_c_try_link "$LINENO"; then :
27834   ac_cv_lib_xml2_xmlParseExternalEntity=yes
27835 else
27836   ac_cv_lib_xml2_xmlParseExternalEntity=no
27837 fi
27838 rm -f core conftest.err conftest.$ac_objext \
27839     conftest$ac_exeext conftest.$ac_ext
27840 LIBS=$ac_check_lib_save_LIBS
27841 fi
27842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
27843 $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
27844 if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
27845   passed=`expr $passed + 1`
27846 else
27847   failed=`expr $failed + 1`
27848 fi
27849
27850     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
27851 $as_echo_n "checking if XML package is complete... " >&6; }
27852     if test $passed -gt 0; then
27853         if test $failed -gt 0; then
27854             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27855 $as_echo "no -- some components failed test" >&6; }
27856             have_xml='no (failed tests)'
27857             LDFLAGS="$PERSIST_LDFLAGS"
27858             CPPFLAGS="$PERSIST_CPPFLAGS"
27859         else
27860             XML_LIBS='-lxml2'
27861             LIBS="$XML_LIBS $LIBS"
27862
27863 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
27864
27865             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27866 $as_echo "yes" >&6; }
27867             have_xml='yes'
27868         fi
27869     else
27870         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27871 $as_echo "no" >&6; }
27872     fi
27873 fi
27874  if test "$have_xml" = 'yes'; then
27875   XML_DELEGATE_TRUE=
27876   XML_DELEGATE_FALSE='#'
27877 else
27878   XML_DELEGATE_TRUE='#'
27879   XML_DELEGATE_FALSE=
27880 fi
27881
27882
27883
27884
27885 # Substitute compiler name to build/link PerlMagick
27886 #
27887
27888
27889 #
27890 # Configure install Paths
27891 #
27892
27893 # Subdirectory under lib to place ImageMagick lib files
27894 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27895
27896 cat >>confdefs.h <<_ACEOF
27897 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
27898 _ACEOF
27899
27900
27901 # Path to ImageMagick bin directory
27902 EXECUTABLE_PATH="${BIN_DIR}"
27903 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
27904 case "${build_os}" in
27905   mingw* )
27906     DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
27907     ;;
27908 esac
27909
27910 cat >>confdefs.h <<_ACEOF
27911 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
27912 _ACEOF
27913
27914
27915
27916 # Path to ImageMagick lib
27917 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
27918 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
27919 case "${build_os}" in
27920   mingw* )
27921     DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
27922     ;;
27923 esac
27924
27925 cat >>confdefs.h <<_ACEOF
27926 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
27927 _ACEOF
27928
27929
27930
27931 # Subdirectory under lib to place ImageMagick configuration files
27932 CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
27933
27934 cat >>confdefs.h <<_ACEOF
27935 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
27936 _ACEOF
27937
27938 CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27939 DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27940 case "${build_os}" in
27941   mingw* )
27942     DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
27943     ;;
27944 esac
27945
27946 cat >>confdefs.h <<_ACEOF
27947 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
27948 _ACEOF
27949
27950
27951
27952 #
27953 # Subdirectory under lib to place ImageMagick coder module files
27954 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
27955
27956 cat >>confdefs.h <<_ACEOF
27957 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
27958 _ACEOF
27959
27960 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
27961 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
27962 case "${build_os}" in
27963   mingw* )
27964     DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
27965     ;;
27966 esac
27967
27968 cat >>confdefs.h <<_ACEOF
27969 #define CODER_PATH "$DEFINE_CODER_PATH"
27970 _ACEOF
27971
27972
27973
27974 #
27975 # Subdirectory under lib to place ImageMagick filter module files
27976 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
27977
27978 cat >>confdefs.h <<_ACEOF
27979 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
27980 _ACEOF
27981
27982 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
27983 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
27984 case "${build_os}" in
27985   mingw* )
27986     DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
27987     ;;
27988 esac
27989
27990 cat >>confdefs.h <<_ACEOF
27991 #define FILTER_PATH "$DEFINE_FILTER_PATH"
27992 _ACEOF
27993
27994
27995
27996 #
27997 # Path to ImageMagick documentation files
27998 DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27999 DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
28000 DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
28001 case "${build_os}" in
28002   mingw* )
28003     DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
28004     ;;
28005 esac
28006
28007 cat >>confdefs.h <<_ACEOF
28008 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
28009 _ACEOF
28010
28011
28012
28013 #
28014 # Path to ImageMagick share files
28015 SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28016 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
28017 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
28018 case "${build_os}" in
28019   mingw* )
28020     DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
28021     ;;
28022 esac
28023
28024 cat >>confdefs.h <<_ACEOF
28025 #define SHARE_PATH "$DEFINE_SHARE_PATH"
28026 _ACEOF
28027
28028
28029
28030 # Subdirectory under share to place ImageMagick configuration files
28031 SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28032
28033 cat >>confdefs.h <<_ACEOF
28034 #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
28035 _ACEOF
28036
28037 SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
28038 DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
28039 case "${build_os}" in
28040   mingw* )
28041     DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
28042     ;;
28043 esac
28044
28045 cat >>confdefs.h <<_ACEOF
28046 #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
28047 _ACEOF
28048
28049
28050
28051 #
28052 # program_transform_name is formed for use in a Makefile, so create a
28053 # modified version for use in a shell script.
28054 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
28055
28056 # Default delegate definitions
28057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28058 $as_echo "-------------------------------------------------------------" >&6; }
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
28060 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
28061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28062 $as_echo "" >&6; }
28063 AutotraceDecodeDelegateDefault='autotrace'
28064 AVIDecodeDelegateDefault='mplayer'
28065 BlenderDecodeDelegateDefault='blender'
28066 BZIPDelegateDefault='bzip2'
28067 BrowseDelegateDefault='xdg-open'
28068 CGMDecodeDelegateDefault='ralcgm'
28069 CatDelegateDefault='cat'
28070 DNGDecodeDelegateDefault='ufraw-batch'
28071 GVCDecodeDelegateDefault='dot'
28072 DVIDecodeDelegateDefault='dvips'
28073 EchoDelegateDefault='echo'
28074 EditorDelegateDefault='xterm'
28075 FIGDecodeDelegateDefault='fig2dev'
28076 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
28077 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
28078 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
28079 GnuplotDecodeDelegateDefault='gnuplot'
28080 HDRDecodeDelegateDefault='ra_pfm'
28081 HPGLDecodeDelegateDefault='hp2xx'
28082 HTMLDecodeDelegateDefault='html2ps'
28083 ILBMDecodeDelegateDefault='ilbmtoppm'
28084 ILBMEncodeDelegateDefault='ppmtoilbm'
28085 LPDelegateDefault='lp'
28086 LPRDelegateDefault='lpr'
28087 LZWDecodeDelegateDefault='uncompress'
28088 LZWEncodeDelegateDefault='compress'
28089 LaunchDelegateDefault='gimp'
28090 MANDelegateDefault='groff'
28091 MPEGDecodeDelegateDefault='ffmpeg'
28092 MPEGEncodeDelegateDefault='ffmpeg'
28093 MVDelegateDefault='mv'
28094 PCLDelegateDefault='pcl6'
28095 PGPDecodeDelegateDefault='pgpv'
28096 POVDelegateDefault='povray'
28097 if test "$native_win32_build" = 'yes'; then
28098     PSDelegateDefault='gswin32c'
28099 elif test "$gslib_framework" = 'yes'; then
28100     PSDelegateDefault='gsc'
28101 else
28102     PSDelegateDefault='gs'
28103 fi
28104 RLEEncodeDelegateDefault='rawtorle'
28105 RMDelegateDefault='rm'
28106 SCANDecodeDelegateDefault='scanimage'
28107 TXTDelegateDefault='enscript'
28108 WMFDecodeDelegateDefault='wmf2eps'
28109 WWWDecodeDelegateDefault='curl'
28110 XPSDelegateDefault='gxps'
28111 ZipDelegateDefault='gzip'
28112
28113 # Search for delegates
28114 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
28115 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
28116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28117 $as_echo_n "checking for $ac_word... " >&6; }
28118 if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
28119   $as_echo_n "(cached) " >&6
28120 else
28121   case $AutotraceDecodeDelegate in
28122   [\\/]* | ?:[\\/]*)
28123   ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
28124   ;;
28125   *)
28126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28127 for as_dir in $PATH
28128 do
28129   IFS=$as_save_IFS
28130   test -z "$as_dir" && as_dir=.
28131     for ac_exec_ext in '' $ac_executable_extensions; do
28132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28133     ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28135     break 2
28136   fi
28137 done
28138   done
28139 IFS=$as_save_IFS
28140
28141   test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
28142   ;;
28143 esac
28144 fi
28145 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
28146 if test -n "$AutotraceDecodeDelegate"; then
28147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
28148 $as_echo "$AutotraceDecodeDelegate" >&6; }
28149 else
28150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28151 $as_echo "no" >&6; }
28152 fi
28153
28154
28155 # Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
28156 set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
28157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28158 $as_echo_n "checking for $ac_word... " >&6; }
28159 if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
28160   $as_echo_n "(cached) " >&6
28161 else
28162   case $AVIDecodeDelegate in
28163   [\\/]* | ?:[\\/]*)
28164   ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
28165   ;;
28166   *)
28167   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28168 for as_dir in $PATH
28169 do
28170   IFS=$as_save_IFS
28171   test -z "$as_dir" && as_dir=.
28172     for ac_exec_ext in '' $ac_executable_extensions; do
28173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28174     ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28176     break 2
28177   fi
28178 done
28179   done
28180 IFS=$as_save_IFS
28181
28182   test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
28183   ;;
28184 esac
28185 fi
28186 AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
28187 if test -n "$AVIDecodeDelegate"; then
28188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
28189 $as_echo "$AVIDecodeDelegate" >&6; }
28190 else
28191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28192 $as_echo "no" >&6; }
28193 fi
28194
28195
28196 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
28197 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
28198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28199 $as_echo_n "checking for $ac_word... " >&6; }
28200 if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
28201   $as_echo_n "(cached) " >&6
28202 else
28203   case $BlenderDecodeDelegate in
28204   [\\/]* | ?:[\\/]*)
28205   ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
28206   ;;
28207   *)
28208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28209 for as_dir in $PATH
28210 do
28211   IFS=$as_save_IFS
28212   test -z "$as_dir" && as_dir=.
28213     for ac_exec_ext in '' $ac_executable_extensions; do
28214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28215     ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28217     break 2
28218   fi
28219 done
28220   done
28221 IFS=$as_save_IFS
28222
28223   test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
28224   ;;
28225 esac
28226 fi
28227 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
28228 if test -n "$BlenderDecodeDelegate"; then
28229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
28230 $as_echo "$BlenderDecodeDelegate" >&6; }
28231 else
28232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28233 $as_echo "no" >&6; }
28234 fi
28235
28236
28237 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
28238 set dummy "$BZIPDelegateDefault"; ac_word=$2
28239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28240 $as_echo_n "checking for $ac_word... " >&6; }
28241 if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
28242   $as_echo_n "(cached) " >&6
28243 else
28244   case $BZIPDelegate in
28245   [\\/]* | ?:[\\/]*)
28246   ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
28247   ;;
28248   *)
28249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28250 for as_dir in $PATH
28251 do
28252   IFS=$as_save_IFS
28253   test -z "$as_dir" && as_dir=.
28254     for ac_exec_ext in '' $ac_executable_extensions; do
28255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28256     ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
28257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28258     break 2
28259   fi
28260 done
28261   done
28262 IFS=$as_save_IFS
28263
28264   test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
28265   ;;
28266 esac
28267 fi
28268 BZIPDelegate=$ac_cv_path_BZIPDelegate
28269 if test -n "$BZIPDelegate"; then
28270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
28271 $as_echo "$BZIPDelegate" >&6; }
28272 else
28273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28274 $as_echo "no" >&6; }
28275 fi
28276
28277
28278 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
28279 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
28280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28281 $as_echo_n "checking for $ac_word... " >&6; }
28282 if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
28283   $as_echo_n "(cached) " >&6
28284 else
28285   case $BrowseDelegate in
28286   [\\/]* | ?:[\\/]*)
28287   ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
28288   ;;
28289   *)
28290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28291 for as_dir in $PATH
28292 do
28293   IFS=$as_save_IFS
28294   test -z "$as_dir" && as_dir=.
28295     for ac_exec_ext in '' $ac_executable_extensions; do
28296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28297     ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
28298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28299     break 2
28300   fi
28301 done
28302   done
28303 IFS=$as_save_IFS
28304
28305   test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
28306   ;;
28307 esac
28308 fi
28309 BrowseDelegate=$ac_cv_path_BrowseDelegate
28310 if test -n "$BrowseDelegate"; then
28311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
28312 $as_echo "$BrowseDelegate" >&6; }
28313 else
28314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28315 $as_echo "no" >&6; }
28316 fi
28317
28318
28319 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
28320 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
28321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28322 $as_echo_n "checking for $ac_word... " >&6; }
28323 if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
28324   $as_echo_n "(cached) " >&6
28325 else
28326   case $CGMDecodeDelegate in
28327   [\\/]* | ?:[\\/]*)
28328   ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
28329   ;;
28330   *)
28331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28332 for as_dir in $PATH
28333 do
28334   IFS=$as_save_IFS
28335   test -z "$as_dir" && as_dir=.
28336     for ac_exec_ext in '' $ac_executable_extensions; do
28337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28338     ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28340     break 2
28341   fi
28342 done
28343   done
28344 IFS=$as_save_IFS
28345
28346   test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
28347   ;;
28348 esac
28349 fi
28350 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
28351 if test -n "$CGMDecodeDelegate"; then
28352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
28353 $as_echo "$CGMDecodeDelegate" >&6; }
28354 else
28355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28356 $as_echo "no" >&6; }
28357 fi
28358
28359
28360 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
28361 set dummy "$CatDelegateDefault"; ac_word=$2
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28363 $as_echo_n "checking for $ac_word... " >&6; }
28364 if test "${ac_cv_path_CatDelegate+set}" = set; then :
28365   $as_echo_n "(cached) " >&6
28366 else
28367   case $CatDelegate in
28368   [\\/]* | ?:[\\/]*)
28369   ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
28370   ;;
28371   *)
28372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28373 for as_dir in $PATH
28374 do
28375   IFS=$as_save_IFS
28376   test -z "$as_dir" && as_dir=.
28377     for ac_exec_ext in '' $ac_executable_extensions; do
28378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28379     ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
28380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28381     break 2
28382   fi
28383 done
28384   done
28385 IFS=$as_save_IFS
28386
28387   test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
28388   ;;
28389 esac
28390 fi
28391 CatDelegate=$ac_cv_path_CatDelegate
28392 if test -n "$CatDelegate"; then
28393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
28394 $as_echo "$CatDelegate" >&6; }
28395 else
28396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28397 $as_echo "no" >&6; }
28398 fi
28399
28400
28401 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
28402 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28404 $as_echo_n "checking for $ac_word... " >&6; }
28405 if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
28406   $as_echo_n "(cached) " >&6
28407 else
28408   case $DNGDecodeDelegate in
28409   [\\/]* | ?:[\\/]*)
28410   ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
28411   ;;
28412   *)
28413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28414 for as_dir in $PATH
28415 do
28416   IFS=$as_save_IFS
28417   test -z "$as_dir" && as_dir=.
28418     for ac_exec_ext in '' $ac_executable_extensions; do
28419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28420     ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28422     break 2
28423   fi
28424 done
28425   done
28426 IFS=$as_save_IFS
28427
28428   test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
28429   ;;
28430 esac
28431 fi
28432 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
28433 if test -n "$DNGDecodeDelegate"; then
28434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
28435 $as_echo "$DNGDecodeDelegate" >&6; }
28436 else
28437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28438 $as_echo "no" >&6; }
28439 fi
28440
28441
28442 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
28443 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
28444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28445 $as_echo_n "checking for $ac_word... " >&6; }
28446 if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
28447   $as_echo_n "(cached) " >&6
28448 else
28449   case $GVCDecodeDelegate in
28450   [\\/]* | ?:[\\/]*)
28451   ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
28452   ;;
28453   *)
28454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28455 for as_dir in $PATH
28456 do
28457   IFS=$as_save_IFS
28458   test -z "$as_dir" && as_dir=.
28459     for ac_exec_ext in '' $ac_executable_extensions; do
28460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28461     ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28463     break 2
28464   fi
28465 done
28466   done
28467 IFS=$as_save_IFS
28468
28469   test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
28470   ;;
28471 esac
28472 fi
28473 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
28474 if test -n "$GVCDecodeDelegate"; then
28475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
28476 $as_echo "$GVCDecodeDelegate" >&6; }
28477 else
28478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28479 $as_echo "no" >&6; }
28480 fi
28481
28482
28483 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
28484 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
28485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28486 $as_echo_n "checking for $ac_word... " >&6; }
28487 if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
28488   $as_echo_n "(cached) " >&6
28489 else
28490   case $DVIDecodeDelegate in
28491   [\\/]* | ?:[\\/]*)
28492   ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
28493   ;;
28494   *)
28495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28496 for as_dir in $PATH
28497 do
28498   IFS=$as_save_IFS
28499   test -z "$as_dir" && as_dir=.
28500     for ac_exec_ext in '' $ac_executable_extensions; do
28501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28502     ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28504     break 2
28505   fi
28506 done
28507   done
28508 IFS=$as_save_IFS
28509
28510   test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
28511   ;;
28512 esac
28513 fi
28514 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
28515 if test -n "$DVIDecodeDelegate"; then
28516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
28517 $as_echo "$DVIDecodeDelegate" >&6; }
28518 else
28519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28520 $as_echo "no" >&6; }
28521 fi
28522
28523
28524 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
28525 set dummy "$EchoDelegateDefault"; ac_word=$2
28526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28527 $as_echo_n "checking for $ac_word... " >&6; }
28528 if test "${ac_cv_path_EchoDelegate+set}" = set; then :
28529   $as_echo_n "(cached) " >&6
28530 else
28531   case $EchoDelegate in
28532   [\\/]* | ?:[\\/]*)
28533   ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
28534   ;;
28535   *)
28536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28537 for as_dir in $PATH
28538 do
28539   IFS=$as_save_IFS
28540   test -z "$as_dir" && as_dir=.
28541     for ac_exec_ext in '' $ac_executable_extensions; do
28542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28543     ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
28544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28545     break 2
28546   fi
28547 done
28548   done
28549 IFS=$as_save_IFS
28550
28551   test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
28552   ;;
28553 esac
28554 fi
28555 EchoDelegate=$ac_cv_path_EchoDelegate
28556 if test -n "$EchoDelegate"; then
28557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
28558 $as_echo "$EchoDelegate" >&6; }
28559 else
28560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28561 $as_echo "no" >&6; }
28562 fi
28563
28564
28565 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
28566 set dummy "$EditorDelegateDefault"; ac_word=$2
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28568 $as_echo_n "checking for $ac_word... " >&6; }
28569 if test "${ac_cv_path_EditorDelegate+set}" = set; then :
28570   $as_echo_n "(cached) " >&6
28571 else
28572   case $EditorDelegate in
28573   [\\/]* | ?:[\\/]*)
28574   ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
28575   ;;
28576   *)
28577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28578 for as_dir in $PATH
28579 do
28580   IFS=$as_save_IFS
28581   test -z "$as_dir" && as_dir=.
28582     for ac_exec_ext in '' $ac_executable_extensions; do
28583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28584     ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
28585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28586     break 2
28587   fi
28588 done
28589   done
28590 IFS=$as_save_IFS
28591
28592   test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
28593   ;;
28594 esac
28595 fi
28596 EditorDelegate=$ac_cv_path_EditorDelegate
28597 if test -n "$EditorDelegate"; then
28598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
28599 $as_echo "$EditorDelegate" >&6; }
28600 else
28601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28602 $as_echo "no" >&6; }
28603 fi
28604
28605
28606 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
28607 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
28608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28609 $as_echo_n "checking for $ac_word... " >&6; }
28610 if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
28611   $as_echo_n "(cached) " >&6
28612 else
28613   case $FIGDecodeDelegate in
28614   [\\/]* | ?:[\\/]*)
28615   ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
28616   ;;
28617   *)
28618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28619 for as_dir in $PATH
28620 do
28621   IFS=$as_save_IFS
28622   test -z "$as_dir" && as_dir=.
28623     for ac_exec_ext in '' $ac_executable_extensions; do
28624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28625     ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28627     break 2
28628   fi
28629 done
28630   done
28631 IFS=$as_save_IFS
28632
28633   test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
28634   ;;
28635 esac
28636 fi
28637 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
28638 if test -n "$FIGDecodeDelegate"; then
28639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
28640 $as_echo "$FIGDecodeDelegate" >&6; }
28641 else
28642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28643 $as_echo "no" >&6; }
28644 fi
28645
28646
28647 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
28648 set dummy "$ConvertDelegateDefault"; ac_word=$2
28649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28650 $as_echo_n "checking for $ac_word... " >&6; }
28651 if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
28652   $as_echo_n "(cached) " >&6
28653 else
28654   case $ConvertDelegate in
28655   [\\/]* | ?:[\\/]*)
28656   ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
28657   ;;
28658   *)
28659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28660 for as_dir in $PATH
28661 do
28662   IFS=$as_save_IFS
28663   test -z "$as_dir" && as_dir=.
28664     for ac_exec_ext in '' $ac_executable_extensions; do
28665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28666     ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
28667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28668     break 2
28669   fi
28670 done
28671   done
28672 IFS=$as_save_IFS
28673
28674   test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
28675   ;;
28676 esac
28677 fi
28678 ConvertDelegate=$ac_cv_path_ConvertDelegate
28679 if test -n "$ConvertDelegate"; then
28680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
28681 $as_echo "$ConvertDelegate" >&6; }
28682 else
28683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28684 $as_echo "no" >&6; }
28685 fi
28686
28687
28688 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
28689 set dummy "$DisplayDelegateDefault"; ac_word=$2
28690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28691 $as_echo_n "checking for $ac_word... " >&6; }
28692 if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
28693   $as_echo_n "(cached) " >&6
28694 else
28695   case $DisplayDelegate in
28696   [\\/]* | ?:[\\/]*)
28697   ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
28698   ;;
28699   *)
28700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28701 for as_dir in $PATH
28702 do
28703   IFS=$as_save_IFS
28704   test -z "$as_dir" && as_dir=.
28705     for ac_exec_ext in '' $ac_executable_extensions; do
28706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28707     ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
28708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28709     break 2
28710   fi
28711 done
28712   done
28713 IFS=$as_save_IFS
28714
28715   test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
28716   ;;
28717 esac
28718 fi
28719 DisplayDelegate=$ac_cv_path_DisplayDelegate
28720 if test -n "$DisplayDelegate"; then
28721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
28722 $as_echo "$DisplayDelegate" >&6; }
28723 else
28724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28725 $as_echo "no" >&6; }
28726 fi
28727
28728
28729 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
28730 set dummy "$MogrifyDelegateDefault"; ac_word=$2
28731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28732 $as_echo_n "checking for $ac_word... " >&6; }
28733 if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
28734   $as_echo_n "(cached) " >&6
28735 else
28736   case $MogrifyDelegate in
28737   [\\/]* | ?:[\\/]*)
28738   ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
28739   ;;
28740   *)
28741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28742 for as_dir in $PATH
28743 do
28744   IFS=$as_save_IFS
28745   test -z "$as_dir" && as_dir=.
28746     for ac_exec_ext in '' $ac_executable_extensions; do
28747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28748     ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
28749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28750     break 2
28751   fi
28752 done
28753   done
28754 IFS=$as_save_IFS
28755
28756   test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
28757   ;;
28758 esac
28759 fi
28760 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
28761 if test -n "$MogrifyDelegate"; then
28762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
28763 $as_echo "$MogrifyDelegate" >&6; }
28764 else
28765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28766 $as_echo "no" >&6; }
28767 fi
28768
28769
28770 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
28771 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
28772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28773 $as_echo_n "checking for $ac_word... " >&6; }
28774 if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
28775   $as_echo_n "(cached) " >&6
28776 else
28777   case $GnuplotDecodeDelegate in
28778   [\\/]* | ?:[\\/]*)
28779   ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
28780   ;;
28781   *)
28782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28783 for as_dir in $PATH
28784 do
28785   IFS=$as_save_IFS
28786   test -z "$as_dir" && as_dir=.
28787     for ac_exec_ext in '' $ac_executable_extensions; do
28788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28789     ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28791     break 2
28792   fi
28793 done
28794   done
28795 IFS=$as_save_IFS
28796
28797   test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
28798   ;;
28799 esac
28800 fi
28801 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
28802 if test -n "$GnuplotDecodeDelegate"; then
28803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
28804 $as_echo "$GnuplotDecodeDelegate" >&6; }
28805 else
28806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28807 $as_echo "no" >&6; }
28808 fi
28809
28810
28811 # Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
28812 set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
28813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28814 $as_echo_n "checking for $ac_word... " >&6; }
28815 if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
28816   $as_echo_n "(cached) " >&6
28817 else
28818   case $HDRDecodeDelegate in
28819   [\\/]* | ?:[\\/]*)
28820   ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
28821   ;;
28822   *)
28823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28824 for as_dir in $PATH
28825 do
28826   IFS=$as_save_IFS
28827   test -z "$as_dir" && as_dir=.
28828     for ac_exec_ext in '' $ac_executable_extensions; do
28829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28830     ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28832     break 2
28833   fi
28834 done
28835   done
28836 IFS=$as_save_IFS
28837
28838   test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
28839   ;;
28840 esac
28841 fi
28842 HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
28843 if test -n "$HDRDecodeDelegate"; then
28844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
28845 $as_echo "$HDRDecodeDelegate" >&6; }
28846 else
28847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28848 $as_echo "no" >&6; }
28849 fi
28850
28851
28852 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
28853 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
28854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28855 $as_echo_n "checking for $ac_word... " >&6; }
28856 if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
28857   $as_echo_n "(cached) " >&6
28858 else
28859   case $HPGLDecodeDelegate in
28860   [\\/]* | ?:[\\/]*)
28861   ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
28862   ;;
28863   *)
28864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28865 for as_dir in $PATH
28866 do
28867   IFS=$as_save_IFS
28868   test -z "$as_dir" && as_dir=.
28869     for ac_exec_ext in '' $ac_executable_extensions; do
28870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28871     ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28873     break 2
28874   fi
28875 done
28876   done
28877 IFS=$as_save_IFS
28878
28879   test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
28880   ;;
28881 esac
28882 fi
28883 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
28884 if test -n "$HPGLDecodeDelegate"; then
28885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
28886 $as_echo "$HPGLDecodeDelegate" >&6; }
28887 else
28888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28889 $as_echo "no" >&6; }
28890 fi
28891
28892
28893 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
28894 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
28895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28896 $as_echo_n "checking for $ac_word... " >&6; }
28897 if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
28898   $as_echo_n "(cached) " >&6
28899 else
28900   case $HTMLDecodeDelegate in
28901   [\\/]* | ?:[\\/]*)
28902   ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
28903   ;;
28904   *)
28905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28906 for as_dir in $PATH
28907 do
28908   IFS=$as_save_IFS
28909   test -z "$as_dir" && as_dir=.
28910     for ac_exec_ext in '' $ac_executable_extensions; do
28911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28912     ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28914     break 2
28915   fi
28916 done
28917   done
28918 IFS=$as_save_IFS
28919
28920   test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
28921   ;;
28922 esac
28923 fi
28924 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
28925 if test -n "$HTMLDecodeDelegate"; then
28926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
28927 $as_echo "$HTMLDecodeDelegate" >&6; }
28928 else
28929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28930 $as_echo "no" >&6; }
28931 fi
28932
28933
28934 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
28935 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
28936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28937 $as_echo_n "checking for $ac_word... " >&6; }
28938 if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
28939   $as_echo_n "(cached) " >&6
28940 else
28941   case $ILBMDecodeDelegate in
28942   [\\/]* | ?:[\\/]*)
28943   ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
28944   ;;
28945   *)
28946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28947 for as_dir in $PATH
28948 do
28949   IFS=$as_save_IFS
28950   test -z "$as_dir" && as_dir=.
28951     for ac_exec_ext in '' $ac_executable_extensions; do
28952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28953     ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28955     break 2
28956   fi
28957 done
28958   done
28959 IFS=$as_save_IFS
28960
28961   test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
28962   ;;
28963 esac
28964 fi
28965 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
28966 if test -n "$ILBMDecodeDelegate"; then
28967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
28968 $as_echo "$ILBMDecodeDelegate" >&6; }
28969 else
28970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28971 $as_echo "no" >&6; }
28972 fi
28973
28974
28975 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
28976 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
28977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28978 $as_echo_n "checking for $ac_word... " >&6; }
28979 if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
28980   $as_echo_n "(cached) " >&6
28981 else
28982   case $ILBMEncodeDelegate in
28983   [\\/]* | ?:[\\/]*)
28984   ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
28985   ;;
28986   *)
28987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28988 for as_dir in $PATH
28989 do
28990   IFS=$as_save_IFS
28991   test -z "$as_dir" && as_dir=.
28992     for ac_exec_ext in '' $ac_executable_extensions; do
28993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28994     ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28996     break 2
28997   fi
28998 done
28999   done
29000 IFS=$as_save_IFS
29001
29002   test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
29003   ;;
29004 esac
29005 fi
29006 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
29007 if test -n "$ILBMEncodeDelegate"; then
29008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
29009 $as_echo "$ILBMEncodeDelegate" >&6; }
29010 else
29011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29012 $as_echo "no" >&6; }
29013 fi
29014
29015
29016 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
29017 set dummy "$LPDelegateDefault"; ac_word=$2
29018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29019 $as_echo_n "checking for $ac_word... " >&6; }
29020 if test "${ac_cv_path_LPDelegate+set}" = set; then :
29021   $as_echo_n "(cached) " >&6
29022 else
29023   case $LPDelegate in
29024   [\\/]* | ?:[\\/]*)
29025   ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
29026   ;;
29027   *)
29028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29029 for as_dir in $PATH
29030 do
29031   IFS=$as_save_IFS
29032   test -z "$as_dir" && as_dir=.
29033     for ac_exec_ext in '' $ac_executable_extensions; do
29034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29035     ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
29036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29037     break 2
29038   fi
29039 done
29040   done
29041 IFS=$as_save_IFS
29042
29043   test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
29044   ;;
29045 esac
29046 fi
29047 LPDelegate=$ac_cv_path_LPDelegate
29048 if test -n "$LPDelegate"; then
29049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
29050 $as_echo "$LPDelegate" >&6; }
29051 else
29052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29053 $as_echo "no" >&6; }
29054 fi
29055
29056
29057 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
29058 set dummy "$LPRDelegateDefault"; ac_word=$2
29059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29060 $as_echo_n "checking for $ac_word... " >&6; }
29061 if test "${ac_cv_path_LPRDelegate+set}" = set; then :
29062   $as_echo_n "(cached) " >&6
29063 else
29064   case $LPRDelegate in
29065   [\\/]* | ?:[\\/]*)
29066   ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
29067   ;;
29068   *)
29069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29070 for as_dir in $PATH
29071 do
29072   IFS=$as_save_IFS
29073   test -z "$as_dir" && as_dir=.
29074     for ac_exec_ext in '' $ac_executable_extensions; do
29075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29076     ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
29077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29078     break 2
29079   fi
29080 done
29081   done
29082 IFS=$as_save_IFS
29083
29084   test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
29085   ;;
29086 esac
29087 fi
29088 LPRDelegate=$ac_cv_path_LPRDelegate
29089 if test -n "$LPRDelegate"; then
29090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
29091 $as_echo "$LPRDelegate" >&6; }
29092 else
29093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29094 $as_echo "no" >&6; }
29095 fi
29096
29097
29098 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
29099 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
29100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29101 $as_echo_n "checking for $ac_word... " >&6; }
29102 if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
29103   $as_echo_n "(cached) " >&6
29104 else
29105   case $LZWDecodeDelegate in
29106   [\\/]* | ?:[\\/]*)
29107   ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
29108   ;;
29109   *)
29110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29111 for as_dir in $PATH
29112 do
29113   IFS=$as_save_IFS
29114   test -z "$as_dir" && as_dir=.
29115     for ac_exec_ext in '' $ac_executable_extensions; do
29116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29117     ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29119     break 2
29120   fi
29121 done
29122   done
29123 IFS=$as_save_IFS
29124
29125   test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
29126   ;;
29127 esac
29128 fi
29129 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
29130 if test -n "$LZWDecodeDelegate"; then
29131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
29132 $as_echo "$LZWDecodeDelegate" >&6; }
29133 else
29134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29135 $as_echo "no" >&6; }
29136 fi
29137
29138
29139 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
29140 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29142 $as_echo_n "checking for $ac_word... " >&6; }
29143 if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
29144   $as_echo_n "(cached) " >&6
29145 else
29146   case $LZWEncodeDelegate in
29147   [\\/]* | ?:[\\/]*)
29148   ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
29149   ;;
29150   *)
29151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29152 for as_dir in $PATH
29153 do
29154   IFS=$as_save_IFS
29155   test -z "$as_dir" && as_dir=.
29156     for ac_exec_ext in '' $ac_executable_extensions; do
29157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29158     ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29160     break 2
29161   fi
29162 done
29163   done
29164 IFS=$as_save_IFS
29165
29166   test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
29167   ;;
29168 esac
29169 fi
29170 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
29171 if test -n "$LZWEncodeDelegate"; then
29172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
29173 $as_echo "$LZWEncodeDelegate" >&6; }
29174 else
29175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29176 $as_echo "no" >&6; }
29177 fi
29178
29179
29180 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
29181 set dummy "$LaunchDelegateDefault"; ac_word=$2
29182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29183 $as_echo_n "checking for $ac_word... " >&6; }
29184 if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
29185   $as_echo_n "(cached) " >&6
29186 else
29187   case $LaunchDelegate in
29188   [\\/]* | ?:[\\/]*)
29189   ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
29190   ;;
29191   *)
29192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29193 for as_dir in $PATH
29194 do
29195   IFS=$as_save_IFS
29196   test -z "$as_dir" && as_dir=.
29197     for ac_exec_ext in '' $ac_executable_extensions; do
29198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29199     ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
29200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29201     break 2
29202   fi
29203 done
29204   done
29205 IFS=$as_save_IFS
29206
29207   test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
29208   ;;
29209 esac
29210 fi
29211 LaunchDelegate=$ac_cv_path_LaunchDelegate
29212 if test -n "$LaunchDelegate"; then
29213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
29214 $as_echo "$LaunchDelegate" >&6; }
29215 else
29216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29217 $as_echo "no" >&6; }
29218 fi
29219
29220
29221 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
29222 set dummy "$MANDelegateDefault"; ac_word=$2
29223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29224 $as_echo_n "checking for $ac_word... " >&6; }
29225 if test "${ac_cv_path_MANDelegate+set}" = set; then :
29226   $as_echo_n "(cached) " >&6
29227 else
29228   case $MANDelegate in
29229   [\\/]* | ?:[\\/]*)
29230   ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
29231   ;;
29232   *)
29233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29234 for as_dir in $PATH
29235 do
29236   IFS=$as_save_IFS
29237   test -z "$as_dir" && as_dir=.
29238     for ac_exec_ext in '' $ac_executable_extensions; do
29239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29240     ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
29241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29242     break 2
29243   fi
29244 done
29245   done
29246 IFS=$as_save_IFS
29247
29248   test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
29249   ;;
29250 esac
29251 fi
29252 MANDelegate=$ac_cv_path_MANDelegate
29253 if test -n "$MANDelegate"; then
29254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
29255 $as_echo "$MANDelegate" >&6; }
29256 else
29257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29258 $as_echo "no" >&6; }
29259 fi
29260
29261
29262 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
29263 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
29264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29265 $as_echo_n "checking for $ac_word... " >&6; }
29266 if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
29267   $as_echo_n "(cached) " >&6
29268 else
29269   case $MPEGDecodeDelegate in
29270   [\\/]* | ?:[\\/]*)
29271   ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
29272   ;;
29273   *)
29274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29275 for as_dir in $PATH
29276 do
29277   IFS=$as_save_IFS
29278   test -z "$as_dir" && as_dir=.
29279     for ac_exec_ext in '' $ac_executable_extensions; do
29280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29281     ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29283     break 2
29284   fi
29285 done
29286   done
29287 IFS=$as_save_IFS
29288
29289   test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
29290   ;;
29291 esac
29292 fi
29293 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
29294 if test -n "$MPEGDecodeDelegate"; then
29295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
29296 $as_echo "$MPEGDecodeDelegate" >&6; }
29297 else
29298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29299 $as_echo "no" >&6; }
29300 fi
29301
29302
29303 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
29304 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
29305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29306 $as_echo_n "checking for $ac_word... " >&6; }
29307 if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
29308   $as_echo_n "(cached) " >&6
29309 else
29310   case $MPEGEncodeDelegate in
29311   [\\/]* | ?:[\\/]*)
29312   ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
29313   ;;
29314   *)
29315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29316 for as_dir in $PATH
29317 do
29318   IFS=$as_save_IFS
29319   test -z "$as_dir" && as_dir=.
29320     for ac_exec_ext in '' $ac_executable_extensions; do
29321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29322     ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29324     break 2
29325   fi
29326 done
29327   done
29328 IFS=$as_save_IFS
29329
29330   test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
29331   ;;
29332 esac
29333 fi
29334 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
29335 if test -n "$MPEGEncodeDelegate"; then
29336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
29337 $as_echo "$MPEGEncodeDelegate" >&6; }
29338 else
29339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29340 $as_echo "no" >&6; }
29341 fi
29342
29343
29344 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
29345 set dummy "$MVDelegateDefault"; ac_word=$2
29346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29347 $as_echo_n "checking for $ac_word... " >&6; }
29348 if test "${ac_cv_path_MVDelegate+set}" = set; then :
29349   $as_echo_n "(cached) " >&6
29350 else
29351   case $MVDelegate in
29352   [\\/]* | ?:[\\/]*)
29353   ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
29354   ;;
29355   *)
29356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29357 for as_dir in $PATH
29358 do
29359   IFS=$as_save_IFS
29360   test -z "$as_dir" && as_dir=.
29361     for ac_exec_ext in '' $ac_executable_extensions; do
29362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29363     ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
29364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29365     break 2
29366   fi
29367 done
29368   done
29369 IFS=$as_save_IFS
29370
29371   test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
29372   ;;
29373 esac
29374 fi
29375 MVDelegate=$ac_cv_path_MVDelegate
29376 if test -n "$MVDelegate"; then
29377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
29378 $as_echo "$MVDelegate" >&6; }
29379 else
29380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29381 $as_echo "no" >&6; }
29382 fi
29383
29384
29385 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
29386 set dummy "$PCLDelegateDefault"; ac_word=$2
29387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29388 $as_echo_n "checking for $ac_word... " >&6; }
29389 if test "${ac_cv_path_PCLDelegate+set}" = set; then :
29390   $as_echo_n "(cached) " >&6
29391 else
29392   case $PCLDelegate in
29393   [\\/]* | ?:[\\/]*)
29394   ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
29395   ;;
29396   *)
29397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29398 for as_dir in $PATH
29399 do
29400   IFS=$as_save_IFS
29401   test -z "$as_dir" && as_dir=.
29402     for ac_exec_ext in '' $ac_executable_extensions; do
29403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29404     ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
29405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29406     break 2
29407   fi
29408 done
29409   done
29410 IFS=$as_save_IFS
29411
29412   test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
29413   ;;
29414 esac
29415 fi
29416 PCLDelegate=$ac_cv_path_PCLDelegate
29417 if test -n "$PCLDelegate"; then
29418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
29419 $as_echo "$PCLDelegate" >&6; }
29420 else
29421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29422 $as_echo "no" >&6; }
29423 fi
29424
29425
29426 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
29427 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
29428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29429 $as_echo_n "checking for $ac_word... " >&6; }
29430 if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
29431   $as_echo_n "(cached) " >&6
29432 else
29433   case $PGPDecodeDelegate in
29434   [\\/]* | ?:[\\/]*)
29435   ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
29436   ;;
29437   *)
29438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29439 for as_dir in $PATH
29440 do
29441   IFS=$as_save_IFS
29442   test -z "$as_dir" && as_dir=.
29443     for ac_exec_ext in '' $ac_executable_extensions; do
29444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29445     ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29447     break 2
29448   fi
29449 done
29450   done
29451 IFS=$as_save_IFS
29452
29453   test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
29454   ;;
29455 esac
29456 fi
29457 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
29458 if test -n "$PGPDecodeDelegate"; then
29459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
29460 $as_echo "$PGPDecodeDelegate" >&6; }
29461 else
29462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29463 $as_echo "no" >&6; }
29464 fi
29465
29466
29467 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
29468 set dummy "$POVDelegateDefault"; ac_word=$2
29469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29470 $as_echo_n "checking for $ac_word... " >&6; }
29471 if test "${ac_cv_path_POVDelegate+set}" = set; then :
29472   $as_echo_n "(cached) " >&6
29473 else
29474   case $POVDelegate in
29475   [\\/]* | ?:[\\/]*)
29476   ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
29477   ;;
29478   *)
29479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29480 for as_dir in $PATH
29481 do
29482   IFS=$as_save_IFS
29483   test -z "$as_dir" && as_dir=.
29484     for ac_exec_ext in '' $ac_executable_extensions; do
29485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29486     ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
29487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29488     break 2
29489   fi
29490 done
29491   done
29492 IFS=$as_save_IFS
29493
29494   test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
29495   ;;
29496 esac
29497 fi
29498 POVDelegate=$ac_cv_path_POVDelegate
29499 if test -n "$POVDelegate"; then
29500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
29501 $as_echo "$POVDelegate" >&6; }
29502 else
29503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29504 $as_echo "no" >&6; }
29505 fi
29506
29507
29508 for ac_prog in gsx gsc "$PSDelegateDefault"
29509 do
29510   # Extract the first word of "$ac_prog", so it can be a program name with args.
29511 set dummy $ac_prog; ac_word=$2
29512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29513 $as_echo_n "checking for $ac_word... " >&6; }
29514 if test "${ac_cv_path_PSDelegate+set}" = set; then :
29515   $as_echo_n "(cached) " >&6
29516 else
29517   case $PSDelegate in
29518   [\\/]* | ?:[\\/]*)
29519   ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
29520   ;;
29521   *)
29522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29523 for as_dir in $PATH
29524 do
29525   IFS=$as_save_IFS
29526   test -z "$as_dir" && as_dir=.
29527     for ac_exec_ext in '' $ac_executable_extensions; do
29528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29529     ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
29530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29531     break 2
29532   fi
29533 done
29534   done
29535 IFS=$as_save_IFS
29536
29537   ;;
29538 esac
29539 fi
29540 PSDelegate=$ac_cv_path_PSDelegate
29541 if test -n "$PSDelegate"; then
29542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
29543 $as_echo "$PSDelegate" >&6; }
29544 else
29545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29546 $as_echo "no" >&6; }
29547 fi
29548
29549
29550   test -n "$PSDelegate" && break
29551 done
29552 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
29553
29554 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
29555 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
29556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29557 $as_echo_n "checking for $ac_word... " >&6; }
29558 if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
29559   $as_echo_n "(cached) " >&6
29560 else
29561   case $RLEEncodeDelegate in
29562   [\\/]* | ?:[\\/]*)
29563   ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
29564   ;;
29565   *)
29566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29567 for as_dir in $PATH
29568 do
29569   IFS=$as_save_IFS
29570   test -z "$as_dir" && as_dir=.
29571     for ac_exec_ext in '' $ac_executable_extensions; do
29572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29573     ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29575     break 2
29576   fi
29577 done
29578   done
29579 IFS=$as_save_IFS
29580
29581   test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
29582   ;;
29583 esac
29584 fi
29585 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
29586 if test -n "$RLEEncodeDelegate"; then
29587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
29588 $as_echo "$RLEEncodeDelegate" >&6; }
29589 else
29590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29591 $as_echo "no" >&6; }
29592 fi
29593
29594
29595 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
29596 set dummy "$RMDelegateDefault"; ac_word=$2
29597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29598 $as_echo_n "checking for $ac_word... " >&6; }
29599 if test "${ac_cv_path_RMDelegate+set}" = set; then :
29600   $as_echo_n "(cached) " >&6
29601 else
29602   case $RMDelegate in
29603   [\\/]* | ?:[\\/]*)
29604   ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
29605   ;;
29606   *)
29607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29608 for as_dir in $PATH
29609 do
29610   IFS=$as_save_IFS
29611   test -z "$as_dir" && as_dir=.
29612     for ac_exec_ext in '' $ac_executable_extensions; do
29613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29614     ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
29615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29616     break 2
29617   fi
29618 done
29619   done
29620 IFS=$as_save_IFS
29621
29622   test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
29623   ;;
29624 esac
29625 fi
29626 RMDelegate=$ac_cv_path_RMDelegate
29627 if test -n "$RMDelegate"; then
29628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
29629 $as_echo "$RMDelegate" >&6; }
29630 else
29631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29632 $as_echo "no" >&6; }
29633 fi
29634
29635
29636 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
29637 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
29638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29639 $as_echo_n "checking for $ac_word... " >&6; }
29640 if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
29641   $as_echo_n "(cached) " >&6
29642 else
29643   case $SCANDecodeDelegate in
29644   [\\/]* | ?:[\\/]*)
29645   ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
29646   ;;
29647   *)
29648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29649 for as_dir in $PATH
29650 do
29651   IFS=$as_save_IFS
29652   test -z "$as_dir" && as_dir=.
29653     for ac_exec_ext in '' $ac_executable_extensions; do
29654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29655     ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29657     break 2
29658   fi
29659 done
29660   done
29661 IFS=$as_save_IFS
29662
29663   test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
29664   ;;
29665 esac
29666 fi
29667 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
29668 if test -n "$SCANDecodeDelegate"; then
29669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
29670 $as_echo "$SCANDecodeDelegate" >&6; }
29671 else
29672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29673 $as_echo "no" >&6; }
29674 fi
29675
29676
29677 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
29678 set dummy "$TXTDelegateDefault"; ac_word=$2
29679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29680 $as_echo_n "checking for $ac_word... " >&6; }
29681 if test "${ac_cv_path_TXTDelegate+set}" = set; then :
29682   $as_echo_n "(cached) " >&6
29683 else
29684   case $TXTDelegate in
29685   [\\/]* | ?:[\\/]*)
29686   ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
29687   ;;
29688   *)
29689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29690 for as_dir in $PATH
29691 do
29692   IFS=$as_save_IFS
29693   test -z "$as_dir" && as_dir=.
29694     for ac_exec_ext in '' $ac_executable_extensions; do
29695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29696     ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
29697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29698     break 2
29699   fi
29700 done
29701   done
29702 IFS=$as_save_IFS
29703
29704   test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
29705   ;;
29706 esac
29707 fi
29708 TXTDelegate=$ac_cv_path_TXTDelegate
29709 if test -n "$TXTDelegate"; then
29710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
29711 $as_echo "$TXTDelegate" >&6; }
29712 else
29713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29714 $as_echo "no" >&6; }
29715 fi
29716
29717
29718 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
29719 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
29720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29721 $as_echo_n "checking for $ac_word... " >&6; }
29722 if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
29723   $as_echo_n "(cached) " >&6
29724 else
29725   case $WMFDecodeDelegate in
29726   [\\/]* | ?:[\\/]*)
29727   ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
29728   ;;
29729   *)
29730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29731 for as_dir in $PATH
29732 do
29733   IFS=$as_save_IFS
29734   test -z "$as_dir" && as_dir=.
29735     for ac_exec_ext in '' $ac_executable_extensions; do
29736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29737     ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29739     break 2
29740   fi
29741 done
29742   done
29743 IFS=$as_save_IFS
29744
29745   test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
29746   ;;
29747 esac
29748 fi
29749 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
29750 if test -n "$WMFDecodeDelegate"; then
29751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
29752 $as_echo "$WMFDecodeDelegate" >&6; }
29753 else
29754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29755 $as_echo "no" >&6; }
29756 fi
29757
29758
29759 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
29760 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
29761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29762 $as_echo_n "checking for $ac_word... " >&6; }
29763 if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
29764   $as_echo_n "(cached) " >&6
29765 else
29766   case $WWWDecodeDelegate in
29767   [\\/]* | ?:[\\/]*)
29768   ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
29769   ;;
29770   *)
29771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29772 for as_dir in $PATH
29773 do
29774   IFS=$as_save_IFS
29775   test -z "$as_dir" && as_dir=.
29776     for ac_exec_ext in '' $ac_executable_extensions; do
29777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29778     ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29780     break 2
29781   fi
29782 done
29783   done
29784 IFS=$as_save_IFS
29785
29786   test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
29787   ;;
29788 esac
29789 fi
29790 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
29791 if test -n "$WWWDecodeDelegate"; then
29792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
29793 $as_echo "$WWWDecodeDelegate" >&6; }
29794 else
29795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29796 $as_echo "no" >&6; }
29797 fi
29798
29799
29800 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
29801 set dummy "$XPSDelegateDefault"; ac_word=$2
29802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29803 $as_echo_n "checking for $ac_word... " >&6; }
29804 if test "${ac_cv_path_XPSDelegate+set}" = set; then :
29805   $as_echo_n "(cached) " >&6
29806 else
29807   case $XPSDelegate in
29808   [\\/]* | ?:[\\/]*)
29809   ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
29810   ;;
29811   *)
29812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29813 for as_dir in $PATH
29814 do
29815   IFS=$as_save_IFS
29816   test -z "$as_dir" && as_dir=.
29817     for ac_exec_ext in '' $ac_executable_extensions; do
29818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29819     ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
29820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29821     break 2
29822   fi
29823 done
29824   done
29825 IFS=$as_save_IFS
29826
29827   test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
29828   ;;
29829 esac
29830 fi
29831 XPSDelegate=$ac_cv_path_XPSDelegate
29832 if test -n "$XPSDelegate"; then
29833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
29834 $as_echo "$XPSDelegate" >&6; }
29835 else
29836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29837 $as_echo "no" >&6; }
29838 fi
29839
29840
29841 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
29842 set dummy "$ZipDelegateDefault"; ac_word=$2
29843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29844 $as_echo_n "checking for $ac_word... " >&6; }
29845 if test "${ac_cv_path_ZipDelegate+set}" = set; then :
29846   $as_echo_n "(cached) " >&6
29847 else
29848   case $ZipDelegate in
29849   [\\/]* | ?:[\\/]*)
29850   ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
29851   ;;
29852   *)
29853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29854 for as_dir in $PATH
29855 do
29856   IFS=$as_save_IFS
29857   test -z "$as_dir" && as_dir=.
29858     for ac_exec_ext in '' $ac_executable_extensions; do
29859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29860     ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
29861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29862     break 2
29863   fi
29864 done
29865   done
29866 IFS=$as_save_IFS
29867
29868   test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
29869   ;;
29870 esac
29871 fi
29872 ZipDelegate=$ac_cv_path_ZipDelegate
29873 if test -n "$ZipDelegate"; then
29874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
29875 $as_echo "$ZipDelegate" >&6; }
29876 else
29877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29878 $as_echo "no" >&6; }
29879 fi
29880
29881
29882
29883 # Prefer lpr to lp; lp needs options tacked on.
29884 if test "$LPRDelegate" != no; then
29885     PrintDelegate="$LPRDelegate"
29886 else
29887     PrintDelegate="$LPDelegate -c -s"
29888 fi
29889
29890
29891 # Installed ImageMagick utiltity paths
29892 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
29893 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
29894 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
29895
29896 # Set delegate booleans
29897 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
29898 have_fig2dev='no'    ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
29899 have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
29900 have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
29901 have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
29902 have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
29903 have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
29904 have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
29905 have_ra_pfm='no'     ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
29906 have_ralcgm='no'     ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
29907 have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
29908
29909 #
29910 # Test for font directories
29911 #
29912 type_include_files=''
29913
29914 # Windows
29915 windows_font_dir=''
29916 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
29917    windows_font_dir="${with_windows_font_dir}/"
29918 fi
29919 if test -n "$windows_font_dir"; then
29920     if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
29921       windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
29922     fi
29923     if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
29924       windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
29925     fi
29926     if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
29927       windows_font_dir='/usr/share/fonts/msttcore/truetype/'
29928     fi
29929 fi
29930 if test -n "$windows_font_dir"; then
29931   type_include_files="$type_include_files "'<include file="type-windows.xml" />'
29932 fi
29933
29934
29935 # Ghostscript
29936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
29937 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
29938 ghostscript_font_dir=''
29939 if test "${with_gs_font_dir}" != 'default'; then
29940   ghostscript_font_dir="${with_gs_font_dir}/"
29941 else
29942   if test "${native_win32_build}" = 'yes'; then
29943     # Native Windows Build
29944     for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
29945       if test -f "${font_dir}a010013l.pfb"; then
29946         ghostscript_font_dir="$font_dir"
29947         break 1
29948       fi
29949     done
29950     if test "${PSDelegate}" != 'gswin32c'; then
29951       ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
29952     fi
29953   else
29954     # Linux / Mac OS X / Unix Build
29955     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
29956       if test -f "${font_dir}a010013l.pfb"; then
29957         ghostscript_font_dir="${font_dir}"
29958         break 1
29959       fi
29960     done
29961     if test "${ghostscript_font_dir}x" = 'x'; then
29962       if test "$PSDelegate" != 'gs'; then
29963         ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
29964       fi
29965     fi
29966   fi
29967 fi
29968 if test "${ghostscript_font_dir}x" != 'x'; then
29969   type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
29970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
29971 $as_echo "$ghostscript_font_dir" >&6; }
29972 else
29973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
29974 $as_echo "not found!" >&6; };
29975 fi
29976
29977 case "${build_os}" in
29978   mingw* )
29979     PSDelegate=`$WinPathScript "$PSDelegate" 1`
29980     ;;
29981 esac
29982
29983
29984
29985 #
29986 # Handle case where user doesn't want frozen paths
29987 #
29988 if test "$with_frozenpaths" != 'yes'; then
29989   # Re-set delegate definitions to default (no paths)
29990   AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
29991   AVIDecodeDelegate="$AVIDecodeDelegateDefault"
29992   BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
29993   BZIPDelegate="$BZIPDelegateDefault"
29994   BrowseDelegate="$BrowseDelegateDefault"
29995   CGMDecodeDelegate="$CGMDecodeDelegateDefault"
29996   CatDelegate="$CatDelegateDefault"
29997   ConvertDelegate="$ConvertDelegateDefault"
29998   GVCDecodeDelegate="$GVCDecodeDelegateDefault"
29999   DVIDecodeDelegate="$DVIDecodeDelegateDefault"
30000   EchoDelegate="$EchoDelegateDefault"
30001   EditorDelegate="$EditorDelegateDefault"
30002   FIGDecodeDelegate="$FIGDecodeDelegateDefault"
30003   GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
30004   HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
30005   HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
30006   ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
30007   ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
30008   LPDelegate="$LPDelegateDefault"
30009   LZWDecodeDelegate="$LZWDecodeDelegateDefault"
30010   LZWEncodeDelegate="$LZWEncodeDelegateDefault"
30011   LaunchDelegate="$LaunchDelegateDefault"
30012   MANDelegate="$MANDelegateDefault"
30013   MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
30014   MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
30015   MVDelegate="$MVDelegateDefault"
30016   MogrifyDelegate="$MogrifyDelegateDefault"
30017   PCLDelegate="$PCLDelegateDefault"
30018   PGPDecodeDelegate="$PGPDecodeDelegateDefault"
30019   POVDelegate="$POVDelegateDefault"
30020   PSDelegate="$PSDelegateDefault"
30021   HDRDecodeDelegate="$HDRDecodeDelegateDefault"
30022   RLEEncodeDelegate="$RLEEncodeDelegateDefault"
30023   RMDelegate="$RMDelegateDefault"
30024   SCANDecodeDelegate="$SCANDecodeDelegateDefault"
30025   ShowImageDelegate="$ShowImageDelegateDefault"
30026   TXTDelegate="$TXTDelegateDefault"
30027   WMFDecodeDelegate="$WMFDecodeDelegateDefault"
30028   WWWDecodeDelegate="$WWWDecodeDelegateDefault"
30029   XPSDelegate="$XPSDelegateDefault"
30030   ZipDelegate="$ZipDelegateDefault"
30031 fi
30032
30033 # Delegate substitutions
30034
30035
30036
30037
30038
30039
30040
30041
30042
30043
30044
30045
30046
30047
30048
30049
30050
30051
30052
30053
30054
30055
30056
30057
30058
30059
30060
30061
30062
30063
30064
30065
30066
30067
30068
30069
30070
30071
30072
30073
30074
30075
30076 #
30077 # RPM support.
30078 #
30079 RPM=''
30080 for ac_prog in gnutar gtar tar
30081 do
30082   # Extract the first word of "$ac_prog", so it can be a program name with args.
30083 set dummy $ac_prog; ac_word=$2
30084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30085 $as_echo_n "checking for $ac_word... " >&6; }
30086 if test "${ac_cv_prog_TAR+set}" = set; then :
30087   $as_echo_n "(cached) " >&6
30088 else
30089   if test -n "$TAR"; then
30090   ac_cv_prog_TAR="$TAR" # Let the user override the test.
30091 else
30092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30093 for as_dir in $PATH
30094 do
30095   IFS=$as_save_IFS
30096   test -z "$as_dir" && as_dir=.
30097     for ac_exec_ext in '' $ac_executable_extensions; do
30098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30099     ac_cv_prog_TAR="$ac_prog"
30100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30101     break 2
30102   fi
30103 done
30104   done
30105 IFS=$as_save_IFS
30106
30107 fi
30108 fi
30109 TAR=$ac_cv_prog_TAR
30110 if test -n "$TAR"; then
30111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
30112 $as_echo "$TAR" >&6; }
30113 else
30114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30115 $as_echo "no" >&6; }
30116 fi
30117
30118
30119   test -n "$TAR" && break
30120 done
30121
30122 for ac_prog in perl
30123 do
30124   # Extract the first word of "$ac_prog", so it can be a program name with args.
30125 set dummy $ac_prog; ac_word=$2
30126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30127 $as_echo_n "checking for $ac_word... " >&6; }
30128 if test "${ac_cv_prog_PERL+set}" = set; then :
30129   $as_echo_n "(cached) " >&6
30130 else
30131   if test -n "$PERL"; then
30132   ac_cv_prog_PERL="$PERL" # Let the user override the test.
30133 else
30134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30135 for as_dir in $PATH
30136 do
30137   IFS=$as_save_IFS
30138   test -z "$as_dir" && as_dir=.
30139     for ac_exec_ext in '' $ac_executable_extensions; do
30140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30141     ac_cv_prog_PERL="$ac_prog"
30142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30143     break 2
30144   fi
30145 done
30146   done
30147 IFS=$as_save_IFS
30148
30149 fi
30150 fi
30151 PERL=$ac_cv_prog_PERL
30152 if test -n "$PERL"; then
30153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
30154 $as_echo "$PERL" >&6; }
30155 else
30156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30157 $as_echo "no" >&6; }
30158 fi
30159
30160
30161   test -n "$PERL" && break
30162 done
30163
30164 for ac_prog in rpmbuild rpm
30165 do
30166   # Extract the first word of "$ac_prog", so it can be a program name with args.
30167 set dummy $ac_prog; ac_word=$2
30168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30169 $as_echo_n "checking for $ac_word... " >&6; }
30170 if test "${ac_cv_prog_RPM+set}" = set; then :
30171   $as_echo_n "(cached) " >&6
30172 else
30173   if test -n "$RPM"; then
30174   ac_cv_prog_RPM="$RPM" # Let the user override the test.
30175 else
30176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30177 for as_dir in $PATH
30178 do
30179   IFS=$as_save_IFS
30180   test -z "$as_dir" && as_dir=.
30181     for ac_exec_ext in '' $ac_executable_extensions; do
30182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30183     ac_cv_prog_RPM="$ac_prog"
30184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30185     break 2
30186   fi
30187 done
30188   done
30189 IFS=$as_save_IFS
30190
30191 fi
30192 fi
30193 RPM=$ac_cv_prog_RPM
30194 if test -n "$RPM"; then
30195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
30196 $as_echo "$RPM" >&6; }
30197 else
30198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30199 $as_echo "no" >&6; }
30200 fi
30201
30202
30203   test -n "$RPM" && break
30204 done
30205
30206
30207 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
30208
30209
30210 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
30211
30212
30213 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
30214
30215
30216 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
30217
30218
30219  if test "x$RPM" != "x" ; then
30220   RPM_DELEGATE_TRUE=
30221   RPM_DELEGATE_FALSE='#'
30222 else
30223   RPM_DELEGATE_TRUE='#'
30224   RPM_DELEGATE_FALSE=
30225 fi
30226
30227
30228 #
30229 # 7ZIP support (http://p7zip.sourceforge.net/)
30230 #
30231 P7ZIP=''
30232 for ac_prog in 7za
30233 do
30234   # Extract the first word of "$ac_prog", so it can be a program name with args.
30235 set dummy $ac_prog; ac_word=$2
30236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30237 $as_echo_n "checking for $ac_word... " >&6; }
30238 if test "${ac_cv_prog_P7ZIP+set}" = set; then :
30239   $as_echo_n "(cached) " >&6
30240 else
30241   if test -n "$P7ZIP"; then
30242   ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
30243 else
30244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30245 for as_dir in $PATH
30246 do
30247   IFS=$as_save_IFS
30248   test -z "$as_dir" && as_dir=.
30249     for ac_exec_ext in '' $ac_executable_extensions; do
30250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30251     ac_cv_prog_P7ZIP="$ac_prog"
30252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30253     break 2
30254   fi
30255 done
30256   done
30257 IFS=$as_save_IFS
30258
30259 fi
30260 fi
30261 P7ZIP=$ac_cv_prog_P7ZIP
30262 if test -n "$P7ZIP"; then
30263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
30264 $as_echo "$P7ZIP" >&6; }
30265 else
30266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30267 $as_echo "no" >&6; }
30268 fi
30269
30270
30271   test -n "$P7ZIP" && break
30272 done
30273
30274
30275  if test "x$P7ZIP" != "x" ; then
30276   P7ZIP_DELEGATE_TRUE=
30277   P7ZIP_DELEGATE_FALSE='#'
30278 else
30279   P7ZIP_DELEGATE_TRUE='#'
30280   P7ZIP_DELEGATE_FALSE=
30281 fi
30282
30283
30284 #
30285 # ZIP support (http://www.info-zip.org/Zip.html)
30286 #
30287 ZIP=''
30288 for ac_prog in zip
30289 do
30290   # Extract the first word of "$ac_prog", so it can be a program name with args.
30291 set dummy $ac_prog; ac_word=$2
30292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30293 $as_echo_n "checking for $ac_word... " >&6; }
30294 if test "${ac_cv_prog_ZIP+set}" = set; then :
30295   $as_echo_n "(cached) " >&6
30296 else
30297   if test -n "$ZIP"; then
30298   ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
30299 else
30300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30301 for as_dir in $PATH
30302 do
30303   IFS=$as_save_IFS
30304   test -z "$as_dir" && as_dir=.
30305     for ac_exec_ext in '' $ac_executable_extensions; do
30306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30307     ac_cv_prog_ZIP="$ac_prog"
30308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30309     break 2
30310   fi
30311 done
30312   done
30313 IFS=$as_save_IFS
30314
30315 fi
30316 fi
30317 ZIP=$ac_cv_prog_ZIP
30318 if test -n "$ZIP"; then
30319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
30320 $as_echo "$ZIP" >&6; }
30321 else
30322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30323 $as_echo "no" >&6; }
30324 fi
30325
30326
30327   test -n "$ZIP" && break
30328 done
30329
30330
30331  if test "x$ZIP" != "x" ; then
30332   ZIP_DELEGATE_TRUE=
30333   ZIP_DELEGATE_FALSE='#'
30334 else
30335   ZIP_DELEGATE_TRUE='#'
30336   ZIP_DELEGATE_FALSE=
30337 fi
30338
30339
30340 #
30341 # GhostPCL related configuration.
30342 #
30343 PCLColorDevice=ppmraw
30344 PCLCMYKDevice=bmpsep8
30345 PCLMonoDevice=pbmraw
30346 if test -z "$PCLVersion"; then
30347     PCLVersion='unknown'
30348 fi
30349 if test $have_pcl = 'yes'; then
30350     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30351 $as_echo "-------------------------------------------------------------" >&6; }
30352     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
30353 $as_echo_n "checking for PCL... " >&6; }
30354     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30355 $as_echo "" >&6; }
30356     # PCLColorDevice
30357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
30358 $as_echo_n "checking for pcl color device... " >&6; }
30359     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30360         :
30361     else
30362         PCLColorDevice=ppmraw
30363     fi
30364     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
30365 $as_echo "$PCLColorDevice" >&6; }
30366
30367     # PCLCMYKDevice
30368     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
30369 $as_echo_n "checking for pcl CMYK device... " >&6; }
30370     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30371         :
30372     else
30373         PCLCMYKDevice=$PCLColorDevice
30374     fi
30375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
30376 $as_echo "$PCLCMYKDevice" >&6; }
30377
30378     # PCLMonoDevice
30379     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
30380 $as_echo_n "checking for pcl mono device... " >&6; }
30381     if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30382         :
30383     else
30384         PCLMonoDevice=$PCLColorDevice
30385     fi
30386     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
30387 $as_echo "$PCLMonoDevice" >&6; }
30388 fi
30389
30390
30391
30392
30393
30394
30395 #
30396 # GhostXPS related configuration.
30397 #
30398 XPSColorDevice=ppmraw
30399 XPSCMYKDevice=bmpsep8
30400 XPSMonoDevice=pbmraw
30401 if test -z "$XPSVersion"; then
30402     XPSVersion='unknown'
30403 fi
30404 if test $have_xps = 'yes'; then
30405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30406 $as_echo "-------------------------------------------------------------" >&6; }
30407     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
30408 $as_echo_n "checking for XPS... " >&6; }
30409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30410 $as_echo "" >&6; }
30411     # XPSColorDevice
30412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
30413 $as_echo_n "checking for xps color device... " >&6; }
30414     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30415         :
30416     else
30417         XPSColorDevice=ppmraw
30418     fi
30419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
30420 $as_echo "$XPSColorDevice" >&6; }
30421
30422     # XPSCMYKDevice
30423     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
30424 $as_echo_n "checking for xps CMYK device... " >&6; }
30425     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30426         :
30427     else
30428         XPSCMYKDevice=$XPSColorDevice
30429     fi
30430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
30431 $as_echo "$XPSCMYKDevice" >&6; }
30432
30433     # XPSMonoDevice
30434     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
30435 $as_echo_n "checking for xps mono device... " >&6; }
30436     if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30437         :
30438     else
30439         XPSMonoDevice=$XPSColorDevice
30440     fi
30441     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
30442 $as_echo "$XPSMonoDevice" >&6; }
30443 fi
30444
30445
30446
30447
30448
30449
30450 #
30451 # Ghostscript related configuration.
30452 #
30453 if test "$have_png" = 'yes'; then
30454     GSAlphaDevice=pngalpha
30455 else
30456     GSAlphaDevice=pnmraw
30457 fi
30458 GSColorDevice=pnmraw
30459 GSCMYKDevice=pam
30460 GSMonoDevice=pbmraw
30461 GSPDFDevice=pdfwrite
30462 GSPSDevice=pswrite
30463 GSEPSDevice=epswrite
30464 GSVersion='unknown'
30465 if test $have_gs = 'yes'; then
30466     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30467 $as_echo "-------------------------------------------------------------" >&6; }
30468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
30469 $as_echo_n "checking for Ghostscript... " >&6; }
30470     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30471 $as_echo "" >&6; }
30472     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
30473 $as_echo_n "checking for Ghostscript version... " >&6; }
30474     if GSVersion=`$PSDelegate --version`; then
30475         :
30476     else
30477         GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
30478     fi
30479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
30480 $as_echo "$GSVersion" >&6; }
30481
30482     # GSAlphaDevice
30483     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
30484 $as_echo_n "checking for gs alpha device... " >&6; }
30485     if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30486         :
30487     else
30488         GSAlphaDevice=pnmraw
30489     fi
30490     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
30491 $as_echo "$GSAlphaDevice" >&6; }
30492
30493     # GSColorDevice
30494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
30495 $as_echo_n "checking for gs color device... " >&6; }
30496     if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30497         :
30498     else
30499         GSColorDevice=pnmraw
30500     fi
30501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
30502 $as_echo "$GSColorDevice" >&6; }
30503
30504     # GSCMYKDevice
30505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
30506 $as_echo_n "checking for gs CMYK device... " >&6; }
30507     if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30508         :
30509     else
30510         GSCMYKDevice=bmpsep8
30511     fi
30512     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
30513 $as_echo "$GSCMYKDevice" >&6; }
30514
30515     # GSMonoDevice
30516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
30517 $as_echo_n "checking for gs mono device... " >&6; }
30518     if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30519         :
30520     else
30521         GSMonoDevice=$GSColorDevice
30522     fi
30523     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
30524 $as_echo "$GSMonoDevice" >&6; }
30525
30526     # GSPDFDevice
30527     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
30528 $as_echo_n "checking for gs PDF writing device... " >&6; }
30529     if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30530         :
30531     else
30532         GSPDFDevice=nodevice
30533     fi
30534         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
30535 $as_echo "$GSPDFDevice" >&6; }
30536
30537     # GSPSDevice
30538     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
30539 $as_echo_n "checking for gs PS writing device... " >&6; }
30540     if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30541         :
30542     else
30543         GSPSDevice=nodevice
30544     fi
30545     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
30546 $as_echo "$GSPSDevice" >&6; }
30547
30548     # GSEPSDevice
30549     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
30550 $as_echo_n "checking for gs EPS writing device... " >&6; }
30551     if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30552         :
30553     else
30554         GSEPSDevice=nodevice
30555     fi
30556     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
30557 $as_echo "$GSEPSDevice" >&6; }
30558 fi
30559
30560
30561
30562
30563
30564
30565
30566
30567
30568
30569 #
30570 # PerlMagick-related configuration
30571 #
30572
30573 # Look for PERL if PerlMagick requested
30574 # If name/path of desired PERL interpreter is specified, look for that one first
30575 have_perl='no'
30576 if test "$with_perl" != 'no'; then
30577     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30578 $as_echo "-------------------------------------------------------------" >&6; }
30579     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
30580 $as_echo_n "checking for Perl... " >&6; }
30581     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30582 $as_echo "" >&6; }
30583     if test "$with_perl" != 'yes'; then
30584         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
30585 $as_echo_n "checking for perl... " >&6; }
30586 if test "${ac_cv_path_PERL+set}" = set; then :
30587   $as_echo_n "(cached) " >&6
30588 else
30589   ac_cv_path_PERL="$with_perl"
30590 fi
30591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
30592 $as_echo "$ac_cv_path_PERL" >&6; };
30593         PERL=$ac_cv_path_PERL
30594                 have_perl="$ac_cv_path_PERL"
30595     else
30596         for ac_prog in perl perl5
30597 do
30598   # Extract the first word of "$ac_prog", so it can be a program name with args.
30599 set dummy $ac_prog; ac_word=$2
30600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30601 $as_echo_n "checking for $ac_word... " >&6; }
30602 if test "${ac_cv_path_PERL+set}" = set; then :
30603   $as_echo_n "(cached) " >&6
30604 else
30605   case $PERL in
30606   [\\/]* | ?:[\\/]*)
30607   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
30608   ;;
30609   *)
30610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30611 for as_dir in $PATH
30612 do
30613   IFS=$as_save_IFS
30614   test -z "$as_dir" && as_dir=.
30615     for ac_exec_ext in '' $ac_executable_extensions; do
30616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30617     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
30618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30619     break 2
30620   fi
30621 done
30622   done
30623 IFS=$as_save_IFS
30624
30625   ;;
30626 esac
30627 fi
30628 PERL=$ac_cv_path_PERL
30629 if test -n "$PERL"; then
30630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
30631 $as_echo "$PERL" >&6; }
30632 else
30633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30634 $as_echo "no" >&6; }
30635 fi
30636
30637
30638   test -n "$PERL" && break
30639 done
30640         if test "$ac_cv_path_PERL"; then
30641             have_perl="$ac_cv_path_PERL"
30642         fi
30643     fi
30644 fi
30645
30646 with_perl_static='no'
30647 with_perl_dynamic='no'
30648 if test "$have_perl" != 'no'; then
30649     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
30650         with_perl_static='yes'
30651     fi
30652     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
30653         with_perl_dynamic='yes'
30654     fi
30655     # Is PERL's MakeMaker new enough to support DESTDIR?
30656     # Make sure we have perl
30657 if test -z "$PERL"; then
30658 # Extract the first word of "perl", so it can be a program name with args.
30659 set dummy perl; ac_word=$2
30660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30661 $as_echo_n "checking for $ac_word... " >&6; }
30662 if test "${ac_cv_prog_PERL+set}" = set; then :
30663   $as_echo_n "(cached) " >&6
30664 else
30665   if test -n "$PERL"; then
30666   ac_cv_prog_PERL="$PERL" # Let the user override the test.
30667 else
30668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30669 for as_dir in $PATH
30670 do
30671   IFS=$as_save_IFS
30672   test -z "$as_dir" && as_dir=.
30673     for ac_exec_ext in '' $ac_executable_extensions; do
30674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30675     ac_cv_prog_PERL="perl"
30676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30677     break 2
30678   fi
30679 done
30680   done
30681 IFS=$as_save_IFS
30682
30683 fi
30684 fi
30685 PERL=$ac_cv_prog_PERL
30686 if test -n "$PERL"; then
30687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
30688 $as_echo "$PERL" >&6; }
30689 else
30690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30691 $as_echo "no" >&6; }
30692 fi
30693
30694
30695 fi
30696
30697 # Check if version of Perl is sufficient
30698 ac_perl_version="5.8.1"
30699
30700 if test "x$PERL" != "x"; then
30701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
30702 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
30703   # NB: It would be nice to log the error if there is one, but we cannot rely
30704   # on autoconf internals
30705   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
30706   if test $? -ne 0; then
30707     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30708 $as_echo "no" >&6; };
30709     PERL_SUPPORTS_DESTDIR='no'
30710   else
30711     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
30712 $as_echo "ok" >&6; };
30713     PERL_SUPPORTS_DESTDIR='yes'
30714   fi
30715 else
30716   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
30717 $as_echo "$as_me: WARNING: could not find perl" >&2;}
30718 fi
30719
30720 fi
30721  if test "$have_perl" != 'no'; then
30722   WITH_PERL_TRUE=
30723   WITH_PERL_FALSE='#'
30724 else
30725   WITH_PERL_TRUE='#'
30726   WITH_PERL_FALSE=
30727 fi
30728
30729  if test $with_perl_static = 'yes'; then
30730   WITH_PERL_STATIC_TRUE=
30731   WITH_PERL_STATIC_FALSE='#'
30732 else
30733   WITH_PERL_STATIC_TRUE='#'
30734   WITH_PERL_STATIC_FALSE=
30735 fi
30736
30737  if test $with_perl_dynamic = 'yes'; then
30738   WITH_PERL_DYNAMIC_TRUE=
30739   WITH_PERL_DYNAMIC_FALSE='#'
30740 else
30741   WITH_PERL_DYNAMIC_TRUE='#'
30742   WITH_PERL_DYNAMIC_FALSE=
30743 fi
30744
30745
30746
30747 # Determine path to pick up MagickCore library from for use with building PerlMagick
30748 MAGICKCORE_PATH="${LIB_DIR}"
30749 if test $with_perl_static = 'yes'; then
30750     # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
30751     libtool_objdir=$objdir
30752
30753     # Linker search path to library, followed by -lMagickCore
30754     MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
30755 fi
30756
30757
30758 # Create a simple string containing format names for all delegate libraries
30759 DELEGATES=''
30760 if test "$have_autotrace"  = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
30761 if test "$have_bzlib"      = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
30762 if test "$have_djvu"       = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
30763 if test "$have_dps"        = 'yes'; then DELEGATES="$DELEGATES dps"; fi
30764 if test "$have_fftw"       = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
30765 if test "$have_fpx"        = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
30766 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
30767 if test "$have_freetype"   = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
30768 if test "$have_gslib"      = 'yes'; then DELEGATES="$DELEGATES gs"; fi
30769 if test "$have_gvc"        = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
30770 if test "$have_jbig"       = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
30771 if test "$have_jpeg"       = 'yes'; then
30772   DELEGATES="$DELEGATES jpeg";
30773   if test "$have_png"      = 'yes'; then DELEGATES="$DELEGATES jng"; fi
30774 fi
30775 if test "$have_jp2"        = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
30776 if test "$have_lcms"       = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
30777 if test "$have_lqr"        = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
30778 if test "$have_ffmpeg"     = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
30779 if test "$have_openexr"    = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
30780 if test "$have_png"        = 'yes'; then DELEGATES="$DELEGATES png"; fi
30781 if test "$have_rsvg"       = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
30782 if test "$have_tiff"       = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
30783 if test "$have_x"          = 'yes'; then DELEGATES="$DELEGATES x11"; fi
30784 if test "$have_xml"        = 'yes'; then DELEGATES="$DELEGATES xml"; fi
30785 if test "$have_wmf"        = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
30786 if test "$have_zlib"       = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
30787
30788
30789
30790 #
30791 # Handle special compiler flags
30792 #
30793
30794 # Add '-p' if prof source profiling support enabled
30795 if test "$enable_prof" = 'yes'; then
30796     CFLAGS="-p $CFLAGS"
30797     CXXFLAGS="-p $CXXFLAGS"
30798     LDFLAGS="-p $LDFLAGS"
30799 fi
30800
30801 # Add '-pg' if gprof source profiling support enabled
30802 if test "$enable_gprof" = 'yes'; then
30803     CFLAGS="-pg $CFLAGS"
30804     CXXFLAGS="-pg $CXXFLAGS"
30805     LDFLAGS="-pg $LDFLAGS"
30806 fi
30807
30808 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
30809 # This is a gcc-specific feature
30810 if test "$enable_gcov" = 'yes'; then
30811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
30812 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
30813 if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
30814   $as_echo_n "(cached) " >&6
30815 else
30816   ac_check_lib_save_LIBS=$LIBS
30817 LIBS="-lgcov  $LIBS"
30818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30819 /* end confdefs.h.  */
30820
30821 /* Override any GCC internal prototype to avoid an error.
30822    Use char because int might match the return type of a GCC
30823    builtin and then its argument prototype would still apply.  */
30824 #ifdef __cplusplus
30825 extern "C"
30826 #endif
30827 char _gcov_init ();
30828 int
30829 main ()
30830 {
30831 return _gcov_init ();
30832   ;
30833   return 0;
30834 }
30835 _ACEOF
30836 if ac_fn_c_try_link "$LINENO"; then :
30837   ac_cv_lib_gcov__gcov_init=yes
30838 else
30839   ac_cv_lib_gcov__gcov_init=no
30840 fi
30841 rm -f core conftest.err conftest.$ac_objext \
30842     conftest$ac_exeext conftest.$ac_ext
30843 LIBS=$ac_check_lib_save_LIBS
30844 fi
30845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
30846 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
30847 if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
30848   cat >>confdefs.h <<_ACEOF
30849 #define HAVE_LIBGCOV 1
30850 _ACEOF
30851
30852   LIBS="-lgcov $LIBS"
30853
30854 fi
30855
30856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
30857 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
30858 if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
30859   $as_echo_n "(cached) " >&6
30860 else
30861   ac_check_lib_save_LIBS=$LIBS
30862 LIBS="-lgcov  $LIBS"
30863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30864 /* end confdefs.h.  */
30865
30866 /* Override any GCC internal prototype to avoid an error.
30867    Use char because int might match the return type of a GCC
30868    builtin and then its argument prototype would still apply.  */
30869 #ifdef __cplusplus
30870 extern "C"
30871 #endif
30872 char __gcov_init ();
30873 int
30874 main ()
30875 {
30876 return __gcov_init ();
30877   ;
30878   return 0;
30879 }
30880 _ACEOF
30881 if ac_fn_c_try_link "$LINENO"; then :
30882   ac_cv_lib_gcov___gcov_init=yes
30883 else
30884   ac_cv_lib_gcov___gcov_init=no
30885 fi
30886 rm -f core conftest.err conftest.$ac_objext \
30887     conftest$ac_exeext conftest.$ac_ext
30888 LIBS=$ac_check_lib_save_LIBS
30889 fi
30890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
30891 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
30892 if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
30893   cat >>confdefs.h <<_ACEOF
30894 #define HAVE_LIBGCOV 1
30895 _ACEOF
30896
30897   LIBS="-lgcov $LIBS"
30898
30899 fi
30900
30901     case "$target_os" in
30902         darwin*)
30903             OSX_GCOV_LDFLAG="-Wl,-single_module"
30904         ;;
30905         *)
30906             OSX_GCOV_LDFLAG=""
30907         ;;
30908     esac
30909
30910     CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS"
30911     CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS"
30912     LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
30913 fi
30914
30915 #
30916 # Build library dependency list for libMagickCore
30917 #
30918
30919 MAGICK_LIBLTDL='' # Libltdl for build
30920 MAGICK_API_LIBLTDL=''   # libltdl for dependent application (API) build
30921 MAGICK_LTDLDEPS=''      # extra libltdl dependencies
30922 if test "$with_ltdl" != 'no'
30923 then
30924   if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
30925     MAGICK_API_LIBLTDL='-lltdl'
30926   fi
30927   MAGICK_LIBLTDL=${LIBLTDL}
30928   MAGICK_LTDLDEPS=${LTDLDEPS}
30929 fi
30930
30931
30932
30933 if test "$with_modules" != 'no'; then
30934     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 $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
30935 else
30936     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 $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_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"
30937 fi
30938
30939
30940 #
30941 # Remove extraneous spaces from output variables (asthetic)
30942 #
30943 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/  */ /g'`
30944 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/  */ /g'`
30945 X_LIBS=`echo $X_LIBS | sed -e 's/  */ /g'`
30946 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/  */ /g'`
30947
30948 CC=`echo $CC | sed -e 's/  */ /g'`
30949 CFLAGS=`echo $CFLAGS | sed -e 's/  */ /g'`
30950 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/  */ /g'`
30951 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/  */ /g'`
30952 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
30953 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/  */ /g'`
30954 LDFLAGS=`echo $LDFLAGS | sed -e 's/  */ /g'`
30955 TESTED_LIBS=`echo $LIBS | sed -e 's/  */ /g'`
30956 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/  */ /g'`
30957 #LIBS=`echo $LIBS | sed -e 's/  */ /g'`
30958
30959 # Pass only user-provided LIBS as "global" libraries
30960 LIBS=$USER_LIBS
30961
30962 #AC_SUBST(CPPFLAGS)
30963
30964 #AC_SUBST(LDFLAGS)
30965 #AC_SUBST(X_PRE_LIBS)
30966 #AC_SUBST(X_LIBS)
30967 #AC_SUBST(X_EXTRA_LIBS)
30968
30969 MAGICK_CFLAGS=$CFLAGS
30970 MAGICK_CXXFLAGS="$CXXFLAGS"
30971 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'`
30972 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'`
30973 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
30974 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
30975
30976
30977
30978
30979
30980
30981
30982
30983 # Set configured scripts to executable.
30984 ac_config_commands="$ac_config_commands default"
30985
30986 ac_config_commands="$ac_config_commands MagickCore-config.in"
30987
30988 ac_config_commands="$ac_config_commands Magick-config.in"
30989
30990 ac_config_commands="$ac_config_commands MagickWand-config.in"
30991
30992 ac_config_commands="$ac_config_commands Wand-config.in"
30993
30994 ac_config_commands="$ac_config_commands Magick++-config.in"
30995
30996 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
30997
30998
30999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31000 $as_echo "-------------------------------------------------------------" >&6; }
31001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
31002 $as_echo "Update ImageMagick configuration" >&6; }
31003 cat >confcache <<\_ACEOF
31004 # This file is a shell script that caches the results of configure
31005 # tests run on this system so they can be shared between configure
31006 # scripts and configure runs, see configure's option --config-cache.
31007 # It is not useful on other systems.  If it contains results you don't
31008 # want to keep, you may remove or edit it.
31009 #
31010 # config.status only pays attention to the cache file if you give it
31011 # the --recheck option to rerun configure.
31012 #
31013 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31014 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31015 # following values.
31016
31017 _ACEOF
31018
31019 # The following way of writing the cache mishandles newlines in values,
31020 # but we know of no workaround that is simple, portable, and efficient.
31021 # So, we kill variables containing newlines.
31022 # Ultrix sh set writes to stderr and can't be redirected directly,
31023 # and sets the high bit in the cache file unless we assign to the vars.
31024 (
31025   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31026     eval ac_val=\$$ac_var
31027     case $ac_val in #(
31028     *${as_nl}*)
31029       case $ac_var in #(
31030       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31031 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31032       esac
31033       case $ac_var in #(
31034       _ | IFS | as_nl) ;; #(
31035       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31036       *) { eval $ac_var=; unset $ac_var;} ;;
31037       esac ;;
31038     esac
31039   done
31040
31041   (set) 2>&1 |
31042     case $as_nl`(ac_space=' '; set) 2>&1` in #(
31043     *${as_nl}ac_space=\ *)
31044       # `set' does not quote correctly, so add quotes: double-quote
31045       # substitution turns \\\\ into \\, and sed turns \\ into \.
31046       sed -n \
31047         "s/'/'\\\\''/g;
31048           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31049       ;; #(
31050     *)
31051       # `set' quotes correctly as required by POSIX, so do not add quotes.
31052       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31053       ;;
31054     esac |
31055     sort
31056 ) |
31057   sed '
31058      /^ac_cv_env_/b end
31059      t clear
31060      :clear
31061      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31062      t end
31063      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31064      :end' >>confcache
31065 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31066   if test -w "$cache_file"; then
31067     test "x$cache_file" != "x/dev/null" &&
31068       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31069 $as_echo "$as_me: updating cache $cache_file" >&6;}
31070     cat confcache >$cache_file
31071   else
31072     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31073 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31074   fi
31075 fi
31076 rm -f confcache
31077
31078 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31079 # Let make expand exec_prefix.
31080 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31081
31082 DEFS=-DHAVE_CONFIG_H
31083
31084 ac_libobjs=
31085 ac_ltlibobjs=
31086 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31087   # 1. Remove the extension, and $U if already installed.
31088   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31089   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31090   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31091   #    will be set to the directory where LIBOBJS objects are built.
31092   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31093   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31094 done
31095 LIBOBJS=$ac_libobjs
31096
31097 LTLIBOBJS=$ac_ltlibobjs
31098
31099
31100  if test -n "$EXEEXT"; then
31101   am__EXEEXT_TRUE=
31102   am__EXEEXT_FALSE='#'
31103 else
31104   am__EXEEXT_TRUE='#'
31105   am__EXEEXT_FALSE=
31106 fi
31107
31108 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31109   as_fn_error "conditional \"AMDEP\" was never defined.
31110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31111 fi
31112 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31113   as_fn_error "conditional \"am__fastdepCC\" was never defined.
31114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31115 fi
31116 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31117   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31119 fi
31120 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
31121   as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
31122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31123 fi
31124 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
31125   as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
31126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31127 fi
31128 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
31129   as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
31130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31131 fi
31132 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
31133   as_fn_error "conditional \"USING_CL\" was never defined.
31134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31135 fi
31136 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31137   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31139 fi
31140 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31141   as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
31142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31143 fi
31144 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31145   as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
31146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31147 fi
31148 LT_CONFIG_H=config/config.h
31149
31150     _ltdl_libobjs=
31151     _ltdl_ltlibobjs=
31152     if test -n "$_LT_LIBOBJS"; then
31153       # Remove the extension.
31154       _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
31155       for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
31156         _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
31157         _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
31158       done
31159     fi
31160     ltdl_LIBOBJS=$_ltdl_libobjs
31161
31162     ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
31163
31164
31165 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
31166   as_fn_error "conditional \"WITH_MODULES\" was never defined.
31167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31168 fi
31169 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
31170   as_fn_error "conditional \"WITH_LTDL\" was never defined.
31171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31172 fi
31173 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31174   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
31175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31176 fi
31177
31178 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31179   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31181 fi
31182 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
31183   as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
31184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31185 fi
31186 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
31187   as_fn_error "conditional \"HasUMEM\" was never defined.
31188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31189 fi
31190 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
31191   as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
31192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31193 fi
31194 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
31195   as_fn_error "conditional \"X11_DELEGATE\" was never defined.
31196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31197 fi
31198 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
31199   as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
31200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31201 fi
31202 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
31203   as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
31204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31205 fi
31206 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
31207   as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
31208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31209 fi
31210 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
31211   as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
31212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31213 fi
31214 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
31215   as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
31216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31217 fi
31218 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
31219   as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
31220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31221 fi
31222 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
31223   as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
31224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31225 fi
31226 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
31227   as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
31228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31229 fi
31230 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
31231   as_fn_error "conditional \"GS_DELEGATE\" was never defined.
31232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31233 fi
31234 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
31235   as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
31236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31237 fi
31238 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
31239   as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
31240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31241 fi
31242 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
31243   as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
31244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31245 fi
31246 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
31247   as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
31248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31249 fi
31250 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
31251   as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
31252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31253 fi
31254 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
31255   as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
31256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31257 fi
31258 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
31259   as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
31260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31261 fi
31262 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
31263   as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
31264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31265 fi
31266 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
31267   as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
31268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31269 fi
31270 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
31271   as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
31272 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31273 fi
31274 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
31275   as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
31276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31277 fi
31278 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
31279   as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
31280 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31281 fi
31282 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
31283   as_fn_error "conditional \"XML_DELEGATE\" was never defined.
31284 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31285 fi
31286 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
31287   as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
31288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31289 fi
31290 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
31291   as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
31292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31293 fi
31294 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
31295   as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
31296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31297 fi
31298 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
31299   as_fn_error "conditional \"WITH_PERL\" was never defined.
31300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31301 fi
31302 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
31303   as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
31304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31305 fi
31306 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
31307   as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
31308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31309 fi
31310
31311 : ${CONFIG_STATUS=./config.status}
31312 ac_write_fail=0
31313 ac_clean_files_save=$ac_clean_files
31314 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31315 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31316 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31317 as_write_fail=0
31318 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31319 #! $SHELL
31320 # Generated by $as_me.
31321 # Run this file to recreate the current configuration.
31322 # Compiler output produced by configure, useful for debugging
31323 # configure, is in config.log if it exists.
31324
31325 debug=false
31326 ac_cs_recheck=false
31327 ac_cs_silent=false
31328
31329 SHELL=\${CONFIG_SHELL-$SHELL}
31330 export SHELL
31331 _ASEOF
31332 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31333 ## -------------------- ##
31334 ## M4sh Initialization. ##
31335 ## -------------------- ##
31336
31337 # Be more Bourne compatible
31338 DUALCASE=1; export DUALCASE # for MKS sh
31339 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31340   emulate sh
31341   NULLCMD=:
31342   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31343   # is contrary to our usage.  Disable this feature.
31344   alias -g '${1+"$@"}'='"$@"'
31345   setopt NO_GLOB_SUBST
31346 else
31347   case `(set -o) 2>/dev/null` in #(
31348   *posix*) :
31349     set -o posix ;; #(
31350   *) :
31351      ;;
31352 esac
31353 fi
31354
31355
31356 as_nl='
31357 '
31358 export as_nl
31359 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31360 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31361 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31362 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31363 # Prefer a ksh shell builtin over an external printf program on Solaris,
31364 # but without wasting forks for bash or zsh.
31365 if test -z "$BASH_VERSION$ZSH_VERSION" \
31366     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31367   as_echo='print -r --'
31368   as_echo_n='print -rn --'
31369 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31370   as_echo='printf %s\n'
31371   as_echo_n='printf %s'
31372 else
31373   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31374     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31375     as_echo_n='/usr/ucb/echo -n'
31376   else
31377     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31378     as_echo_n_body='eval
31379       arg=$1;
31380       case $arg in #(
31381       *"$as_nl"*)
31382         expr "X$arg" : "X\\(.*\\)$as_nl";
31383         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31384       esac;
31385       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31386     '
31387     export as_echo_n_body
31388     as_echo_n='sh -c $as_echo_n_body as_echo'
31389   fi
31390   export as_echo_body
31391   as_echo='sh -c $as_echo_body as_echo'
31392 fi
31393
31394 # The user is always right.
31395 if test "${PATH_SEPARATOR+set}" != set; then
31396   PATH_SEPARATOR=:
31397   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31398     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31399       PATH_SEPARATOR=';'
31400   }
31401 fi
31402
31403
31404 # IFS
31405 # We need space, tab and new line, in precisely that order.  Quoting is
31406 # there to prevent editors from complaining about space-tab.
31407 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31408 # splitting by setting IFS to empty value.)
31409 IFS=" ""        $as_nl"
31410
31411 # Find who we are.  Look in the path if we contain no directory separator.
31412 case $0 in #((
31413   *[\\/]* ) as_myself=$0 ;;
31414   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31415 for as_dir in $PATH
31416 do
31417   IFS=$as_save_IFS
31418   test -z "$as_dir" && as_dir=.
31419     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31420   done
31421 IFS=$as_save_IFS
31422
31423      ;;
31424 esac
31425 # We did not find ourselves, most probably we were run as `sh COMMAND'
31426 # in which case we are not to be found in the path.
31427 if test "x$as_myself" = x; then
31428   as_myself=$0
31429 fi
31430 if test ! -f "$as_myself"; then
31431   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31432   exit 1
31433 fi
31434
31435 # Unset variables that we do not need and which cause bugs (e.g. in
31436 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31437 # suppresses any "Segmentation fault" message there.  '((' could
31438 # trigger a bug in pdksh 5.2.14.
31439 for as_var in BASH_ENV ENV MAIL MAILPATH
31440 do eval test x\${$as_var+set} = xset \
31441   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31442 done
31443 PS1='$ '
31444 PS2='> '
31445 PS4='+ '
31446
31447 # NLS nuisances.
31448 LC_ALL=C
31449 export LC_ALL
31450 LANGUAGE=C
31451 export LANGUAGE
31452
31453 # CDPATH.
31454 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31455
31456
31457 # as_fn_error ERROR [LINENO LOG_FD]
31458 # ---------------------------------
31459 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31460 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31461 # script with status $?, using 1 if that was 0.
31462 as_fn_error ()
31463 {
31464   as_status=$?; test $as_status -eq 0 && as_status=1
31465   if test "$3"; then
31466     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31467     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
31468   fi
31469   $as_echo "$as_me: error: $1" >&2
31470   as_fn_exit $as_status
31471 } # as_fn_error
31472
31473
31474 # as_fn_set_status STATUS
31475 # -----------------------
31476 # Set $? to STATUS, without forking.
31477 as_fn_set_status ()
31478 {
31479   return $1
31480 } # as_fn_set_status
31481
31482 # as_fn_exit STATUS
31483 # -----------------
31484 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31485 as_fn_exit ()
31486 {
31487   set +e
31488   as_fn_set_status $1
31489   exit $1
31490 } # as_fn_exit
31491
31492 # as_fn_unset VAR
31493 # ---------------
31494 # Portably unset VAR.
31495 as_fn_unset ()
31496 {
31497   { eval $1=; unset $1;}
31498 }
31499 as_unset=as_fn_unset
31500 # as_fn_append VAR VALUE
31501 # ----------------------
31502 # Append the text in VALUE to the end of the definition contained in VAR. Take
31503 # advantage of any shell optimizations that allow amortized linear growth over
31504 # repeated appends, instead of the typical quadratic growth present in naive
31505 # implementations.
31506 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31507   eval 'as_fn_append ()
31508   {
31509     eval $1+=\$2
31510   }'
31511 else
31512   as_fn_append ()
31513   {
31514     eval $1=\$$1\$2
31515   }
31516 fi # as_fn_append
31517
31518 # as_fn_arith ARG...
31519 # ------------------
31520 # Perform arithmetic evaluation on the ARGs, and store the result in the
31521 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31522 # must be portable across $(()) and expr.
31523 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31524   eval 'as_fn_arith ()
31525   {
31526     as_val=$(( $* ))
31527   }'
31528 else
31529   as_fn_arith ()
31530   {
31531     as_val=`expr "$@" || test $? -eq 1`
31532   }
31533 fi # as_fn_arith
31534
31535
31536 if expr a : '\(a\)' >/dev/null 2>&1 &&
31537    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31538   as_expr=expr
31539 else
31540   as_expr=false
31541 fi
31542
31543 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31544   as_basename=basename
31545 else
31546   as_basename=false
31547 fi
31548
31549 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31550   as_dirname=dirname
31551 else
31552   as_dirname=false
31553 fi
31554
31555 as_me=`$as_basename -- "$0" ||
31556 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31557          X"$0" : 'X\(//\)$' \| \
31558          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31559 $as_echo X/"$0" |
31560     sed '/^.*\/\([^/][^/]*\)\/*$/{
31561             s//\1/
31562             q
31563           }
31564           /^X\/\(\/\/\)$/{
31565             s//\1/
31566             q
31567           }
31568           /^X\/\(\/\).*/{
31569             s//\1/
31570             q
31571           }
31572           s/.*/./; q'`
31573
31574 # Avoid depending upon Character Ranges.
31575 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31576 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31577 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31578 as_cr_digits='0123456789'
31579 as_cr_alnum=$as_cr_Letters$as_cr_digits
31580
31581 ECHO_C= ECHO_N= ECHO_T=
31582 case `echo -n x` in #(((((
31583 -n*)
31584   case `echo 'xy\c'` in
31585   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31586   xy)  ECHO_C='\c';;
31587   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31588        ECHO_T=' ';;
31589   esac;;
31590 *)
31591   ECHO_N='-n';;
31592 esac
31593
31594 rm -f conf$$ conf$$.exe conf$$.file
31595 if test -d conf$$.dir; then
31596   rm -f conf$$.dir/conf$$.file
31597 else
31598   rm -f conf$$.dir
31599   mkdir conf$$.dir 2>/dev/null
31600 fi
31601 if (echo >conf$$.file) 2>/dev/null; then
31602   if ln -s conf$$.file conf$$ 2>/dev/null; then
31603     as_ln_s='ln -s'
31604     # ... but there are two gotchas:
31605     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31606     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31607     # In both cases, we have to default to `cp -p'.
31608     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31609       as_ln_s='cp -p'
31610   elif ln conf$$.file conf$$ 2>/dev/null; then
31611     as_ln_s=ln
31612   else
31613     as_ln_s='cp -p'
31614   fi
31615 else
31616   as_ln_s='cp -p'
31617 fi
31618 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31619 rmdir conf$$.dir 2>/dev/null
31620
31621
31622 # as_fn_mkdir_p
31623 # -------------
31624 # Create "$as_dir" as a directory, including parents if necessary.
31625 as_fn_mkdir_p ()
31626 {
31627
31628   case $as_dir in #(
31629   -*) as_dir=./$as_dir;;
31630   esac
31631   test -d "$as_dir" || eval $as_mkdir_p || {
31632     as_dirs=
31633     while :; do
31634       case $as_dir in #(
31635       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31636       *) as_qdir=$as_dir;;
31637       esac
31638       as_dirs="'$as_qdir' $as_dirs"
31639       as_dir=`$as_dirname -- "$as_dir" ||
31640 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31641          X"$as_dir" : 'X\(//\)[^/]' \| \
31642          X"$as_dir" : 'X\(//\)$' \| \
31643          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31644 $as_echo X"$as_dir" |
31645     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31646             s//\1/
31647             q
31648           }
31649           /^X\(\/\/\)[^/].*/{
31650             s//\1/
31651             q
31652           }
31653           /^X\(\/\/\)$/{
31654             s//\1/
31655             q
31656           }
31657           /^X\(\/\).*/{
31658             s//\1/
31659             q
31660           }
31661           s/.*/./; q'`
31662       test -d "$as_dir" && break
31663     done
31664     test -z "$as_dirs" || eval "mkdir $as_dirs"
31665   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
31666
31667
31668 } # as_fn_mkdir_p
31669 if mkdir -p . 2>/dev/null; then
31670   as_mkdir_p='mkdir -p "$as_dir"'
31671 else
31672   test -d ./-p && rmdir ./-p
31673   as_mkdir_p=false
31674 fi
31675
31676 if test -x / >/dev/null 2>&1; then
31677   as_test_x='test -x'
31678 else
31679   if ls -dL / >/dev/null 2>&1; then
31680     as_ls_L_option=L
31681   else
31682     as_ls_L_option=
31683   fi
31684   as_test_x='
31685     eval sh -c '\''
31686       if test -d "$1"; then
31687         test -d "$1/.";
31688       else
31689         case $1 in #(
31690         -*)set "./$1";;
31691         esac;
31692         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
31693         ???[sx]*):;;*)false;;esac;fi
31694     '\'' sh
31695   '
31696 fi
31697 as_executable_p=$as_test_x
31698
31699 # Sed expression to map a string onto a valid CPP name.
31700 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31701
31702 # Sed expression to map a string onto a valid variable name.
31703 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31704
31705
31706 exec 6>&1
31707 ## ----------------------------------- ##
31708 ## Main body of $CONFIG_STATUS script. ##
31709 ## ----------------------------------- ##
31710 _ASEOF
31711 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31712
31713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31714 # Save the log message, to keep $0 and so on meaningful, and to
31715 # report actual input values of CONFIG_FILES etc. instead of their
31716 # values after options handling.
31717 ac_log="
31718 This file was extended by ImageMagick $as_me 6.5.8, which was
31719 generated by GNU Autoconf 2.65.  Invocation command line was
31720
31721   CONFIG_FILES    = $CONFIG_FILES
31722   CONFIG_HEADERS  = $CONFIG_HEADERS
31723   CONFIG_LINKS    = $CONFIG_LINKS
31724   CONFIG_COMMANDS = $CONFIG_COMMANDS
31725   $ $0 $@
31726
31727 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31728 "
31729
31730 _ACEOF
31731
31732 case $ac_config_files in *"
31733 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31734 esac
31735
31736 case $ac_config_headers in *"
31737 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31738 esac
31739
31740
31741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31742 # Files that config.status was made for.
31743 config_files="$ac_config_files"
31744 config_headers="$ac_config_headers"
31745 config_commands="$ac_config_commands"
31746
31747 _ACEOF
31748
31749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31750 ac_cs_usage="\
31751 \`$as_me' instantiates files and other configuration actions
31752 from templates according to the current configuration.  Unless the files
31753 and actions are specified as TAGs, all are instantiated by default.
31754
31755 Usage: $0 [OPTION]... [TAG]...
31756
31757   -h, --help       print this help, then exit
31758   -V, --version    print version number and configuration settings, then exit
31759       --config     print configuration, then exit
31760   -q, --quiet, --silent
31761                    do not print progress messages
31762   -d, --debug      don't remove temporary files
31763       --recheck    update $as_me by reconfiguring in the same conditions
31764       --file=FILE[:TEMPLATE]
31765                    instantiate the configuration file FILE
31766       --header=FILE[:TEMPLATE]
31767                    instantiate the configuration header FILE
31768
31769 Configuration files:
31770 $config_files
31771
31772 Configuration headers:
31773 $config_headers
31774
31775 Configuration commands:
31776 $config_commands
31777
31778 Report bugs to <http://www.imagemagick.org>."
31779
31780 _ACEOF
31781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31782 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31783 ac_cs_version="\\
31784 ImageMagick config.status 6.5.8
31785 configured by $0, generated by GNU Autoconf 2.65,
31786   with options \\"\$ac_cs_config\\"
31787
31788 Copyright (C) 2009 Free Software Foundation, Inc.
31789 This config.status script is free software; the Free Software Foundation
31790 gives unlimited permission to copy, distribute and modify it."
31791
31792 ac_pwd='$ac_pwd'
31793 srcdir='$srcdir'
31794 INSTALL='$INSTALL'
31795 MKDIR_P='$MKDIR_P'
31796 AWK='$AWK'
31797 test -n "\$AWK" || AWK=awk
31798 _ACEOF
31799
31800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31801 # The default lists apply if the user does not specify any file.
31802 ac_need_defaults=:
31803 while test $# != 0
31804 do
31805   case $1 in
31806   --*=*)
31807     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31808     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31809     ac_shift=:
31810     ;;
31811   *)
31812     ac_option=$1
31813     ac_optarg=$2
31814     ac_shift=shift
31815     ;;
31816   esac
31817
31818   case $ac_option in
31819   # Handling of the options.
31820   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31821     ac_cs_recheck=: ;;
31822   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31823     $as_echo "$ac_cs_version"; exit ;;
31824   --config | --confi | --conf | --con | --co | --c )
31825     $as_echo "$ac_cs_config"; exit ;;
31826   --debug | --debu | --deb | --de | --d | -d )
31827     debug=: ;;
31828   --file | --fil | --fi | --f )
31829     $ac_shift
31830     case $ac_optarg in
31831     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31832     esac
31833     as_fn_append CONFIG_FILES " '$ac_optarg'"
31834     ac_need_defaults=false;;
31835   --header | --heade | --head | --hea )
31836     $ac_shift
31837     case $ac_optarg in
31838     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31839     esac
31840     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31841     ac_need_defaults=false;;
31842   --he | --h)
31843     # Conflict between --help and --header
31844     as_fn_error "ambiguous option: \`$1'
31845 Try \`$0 --help' for more information.";;
31846   --help | --hel | -h )
31847     $as_echo "$ac_cs_usage"; exit ;;
31848   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31849   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31850     ac_cs_silent=: ;;
31851
31852   # This is an error.
31853   -*) as_fn_error "unrecognized option: \`$1'
31854 Try \`$0 --help' for more information." ;;
31855
31856   *) as_fn_append ac_config_targets " $1"
31857      ac_need_defaults=false ;;
31858
31859   esac
31860   shift
31861 done
31862
31863 ac_configure_extra_args=
31864
31865 if $ac_cs_silent; then
31866   exec 6>/dev/null
31867   ac_configure_extra_args="$ac_configure_extra_args --silent"
31868 fi
31869
31870 _ACEOF
31871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31872 if \$ac_cs_recheck; then
31873   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31874   shift
31875   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31876   CONFIG_SHELL='$SHELL'
31877   export CONFIG_SHELL
31878   exec "\$@"
31879 fi
31880
31881 _ACEOF
31882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31883 exec 5>>config.log
31884 {
31885   echo
31886   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31887 ## Running $as_me. ##
31888 _ASBOX
31889   $as_echo "$ac_log"
31890 } >&5
31891
31892 _ACEOF
31893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31894 #
31895 # INIT-COMMANDS
31896 #
31897 PACKAGE="$PACKAGE"
31898 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31899
31900
31901 # The HP-UX ksh and POSIX shell print the target directory to stdout
31902 # if CDPATH is set.
31903 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31904
31905 sed_quote_subst='$sed_quote_subst'
31906 double_quote_subst='$double_quote_subst'
31907 delay_variable_subst='$delay_variable_subst'
31908 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
31909 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
31910 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
31911 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
31912 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
31913 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
31914 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
31915 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
31916 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
31917 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31918 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
31919 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
31920 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
31921 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
31922 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
31923 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
31924 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
31925 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
31926 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
31927 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
31928 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
31929 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
31930 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
31931 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
31932 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
31933 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
31934 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
31935 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
31936 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
31937 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
31938 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31939 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
31940 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
31941 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
31942 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31943 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
31944 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
31945 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31946 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31947 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31948 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
31949 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31950 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
31951 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
31952 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
31953 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
31954 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
31955 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
31956 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
31957 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
31958 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
31959 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
31960 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
31961 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
31962 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
31963 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
31964 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
31965 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
31966 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
31967 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
31968 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
31969 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31970 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
31971 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
31972 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31973 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31974 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
31975 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
31976 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31977 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31978 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
31979 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31980 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31981 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31982 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31983 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31984 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31985 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
31986 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31987 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31988 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31989 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
31990 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
31991 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
31992 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
31993 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
31994 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31995 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
31996 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
31997 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
31998 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
31999 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
32000 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32001 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
32002 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
32003 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32004 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
32005 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
32006 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
32007 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
32008 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
32009 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32010 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32011 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
32012 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32013 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
32014 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32015 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32016 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32017 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32018 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
32019 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
32020 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32021 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32022 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
32023 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
32024 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
32025 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
32026 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
32027 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
32028 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
32029 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32030 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32031 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
32032 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
32033 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
32034 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32035 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32036 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32037 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32038 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32039 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32040 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32041 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32042 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32043 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32044 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32045 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32046 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32047 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32048 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32049 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32050 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32051 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32052 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32053 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32054 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32055 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32056 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32057 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32058 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32059 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32060 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32061 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32062 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32063 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32064 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32065 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32066 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32067 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32068 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32069 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32070 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32071 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32072 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32073 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32074 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32075 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32076 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32077 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32078 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32079 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32080 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32081
32082 LTCC='$LTCC'
32083 LTCFLAGS='$LTCFLAGS'
32084 compiler='$compiler_DEFAULT'
32085
32086 # Quote evaled strings.
32087 for var in SED \
32088 GREP \
32089 EGREP \
32090 FGREP \
32091 LD \
32092 NM \
32093 LN_S \
32094 lt_SP2NL \
32095 lt_NL2SP \
32096 reload_flag \
32097 deplibs_check_method \
32098 file_magic_cmd \
32099 AR \
32100 AR_FLAGS \
32101 STRIP \
32102 RANLIB \
32103 CC \
32104 CFLAGS \
32105 compiler \
32106 lt_cv_sys_global_symbol_pipe \
32107 lt_cv_sys_global_symbol_to_cdecl \
32108 lt_cv_sys_global_symbol_to_c_name_address \
32109 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32110 SHELL \
32111 ECHO \
32112 lt_prog_compiler_no_builtin_flag \
32113 lt_prog_compiler_wl \
32114 lt_prog_compiler_pic \
32115 lt_prog_compiler_static \
32116 lt_cv_prog_compiler_c_o \
32117 need_locks \
32118 DSYMUTIL \
32119 NMEDIT \
32120 LIPO \
32121 OTOOL \
32122 OTOOL64 \
32123 shrext_cmds \
32124 export_dynamic_flag_spec \
32125 whole_archive_flag_spec \
32126 compiler_needs_object \
32127 with_gnu_ld \
32128 allow_undefined_flag \
32129 no_undefined_flag \
32130 hardcode_libdir_flag_spec \
32131 hardcode_libdir_flag_spec_ld \
32132 hardcode_libdir_separator \
32133 fix_srcfile_path \
32134 exclude_expsyms \
32135 include_expsyms \
32136 file_list_spec \
32137 variables_saved_for_relink \
32138 libname_spec \
32139 library_names_spec \
32140 soname_spec \
32141 finish_eval \
32142 old_striplib \
32143 striplib \
32144 compiler_lib_search_dirs \
32145 predep_objects \
32146 postdep_objects \
32147 predeps \
32148 postdeps \
32149 compiler_lib_search_path \
32150 LD_CXX \
32151 compiler_CXX \
32152 lt_prog_compiler_no_builtin_flag_CXX \
32153 lt_prog_compiler_wl_CXX \
32154 lt_prog_compiler_pic_CXX \
32155 lt_prog_compiler_static_CXX \
32156 lt_cv_prog_compiler_c_o_CXX \
32157 export_dynamic_flag_spec_CXX \
32158 whole_archive_flag_spec_CXX \
32159 compiler_needs_object_CXX \
32160 with_gnu_ld_CXX \
32161 allow_undefined_flag_CXX \
32162 no_undefined_flag_CXX \
32163 hardcode_libdir_flag_spec_CXX \
32164 hardcode_libdir_flag_spec_ld_CXX \
32165 hardcode_libdir_separator_CXX \
32166 fix_srcfile_path_CXX \
32167 exclude_expsyms_CXX \
32168 include_expsyms_CXX \
32169 file_list_spec_CXX \
32170 compiler_lib_search_dirs_CXX \
32171 predep_objects_CXX \
32172 postdep_objects_CXX \
32173 predeps_CXX \
32174 postdeps_CXX \
32175 compiler_lib_search_path_CXX; do
32176     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
32177     *[\\\\\\\`\\"\\\$]*)
32178       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
32179       ;;
32180     *)
32181       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32182       ;;
32183     esac
32184 done
32185
32186 # Double-quote double-evaled strings.
32187 for var in reload_cmds \
32188 old_postinstall_cmds \
32189 old_postuninstall_cmds \
32190 old_archive_cmds \
32191 extract_expsyms_cmds \
32192 old_archive_from_new_cmds \
32193 old_archive_from_expsyms_cmds \
32194 archive_cmds \
32195 archive_expsym_cmds \
32196 module_cmds \
32197 module_expsym_cmds \
32198 export_symbols_cmds \
32199 prelink_cmds \
32200 postinstall_cmds \
32201 postuninstall_cmds \
32202 finish_cmds \
32203 sys_lib_search_path_spec \
32204 sys_lib_dlsearch_path_spec \
32205 old_archive_cmds_CXX \
32206 old_archive_from_new_cmds_CXX \
32207 old_archive_from_expsyms_cmds_CXX \
32208 archive_cmds_CXX \
32209 archive_expsym_cmds_CXX \
32210 module_cmds_CXX \
32211 module_expsym_cmds_CXX \
32212 export_symbols_cmds_CXX \
32213 prelink_cmds_CXX; do
32214     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
32215     *[\\\\\\\`\\"\\\$]*)
32216       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32217       ;;
32218     *)
32219       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32220       ;;
32221     esac
32222 done
32223
32224 # Fix-up fallback echo if it was mangled by the above quoting rules.
32225 case \$lt_ECHO in
32226 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
32227   ;;
32228 esac
32229
32230 ac_aux_dir='$ac_aux_dir'
32231 xsi_shell='$xsi_shell'
32232 lt_shell_append='$lt_shell_append'
32233
32234 # See if we are running on zsh, and set the options which allow our
32235 # commands through without removal of \ escapes INIT.
32236 if test -n "\${ZSH_VERSION+set}" ; then
32237    setopt NO_GLOB_SUBST
32238 fi
32239
32240
32241     PACKAGE='$PACKAGE'
32242     VERSION='$VERSION'
32243     TIMESTAMP='$TIMESTAMP'
32244     RM='$RM'
32245     ofile='$ofile'
32246
32247
32248
32249
32250
32251
32252 _ACEOF
32253
32254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32255
32256 # Handling of arguments.
32257 for ac_config_target in $ac_config_targets
32258 do
32259   case $ac_config_target in
32260     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
32261     "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
32262     "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
32263     "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
32264     "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
32265     "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
32266     "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
32267     "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
32268     "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
32269     "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
32270     "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
32271     "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
32272     "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
32273     "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
32274     "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
32275     "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
32276     "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
32277     "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
32278     "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
32279     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32280     "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
32281     "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
32282     "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
32283     "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
32284     "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
32285     "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
32286     "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
32287     "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
32288     "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
32289     "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
32290     "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
32291     "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
32292     "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
32293     "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
32294     "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
32295     "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
32296     "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
32297     "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
32298     "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
32299     "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
32300     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32301     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32302     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32303     "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
32304     "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
32305     "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
32306     "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
32307     "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
32308     "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
32309
32310   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32311   esac
32312 done
32313
32314
32315 # If the user did not use the arguments to specify the items to instantiate,
32316 # then the envvar interface is used.  Set only those that are not.
32317 # We use the long form for the default assignment because of an extremely
32318 # bizarre bug on SunOS 4.1.3.
32319 if $ac_need_defaults; then
32320   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32321   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32322   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32323 fi
32324
32325 # Have a temporary directory for convenience.  Make it in the build tree
32326 # simply because there is no reason against having it here, and in addition,
32327 # creating and moving files from /tmp can sometimes cause problems.
32328 # Hook for its removal unless debugging.
32329 # Note that there is a small window in which the directory will not be cleaned:
32330 # after its creation but before its name has been assigned to `$tmp'.
32331 $debug ||
32332 {
32333   tmp=
32334   trap 'exit_status=$?
32335   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32336 ' 0
32337   trap 'as_fn_exit 1' 1 2 13 15
32338 }
32339 # Create a (secure) tmp directory for tmp files.
32340
32341 {
32342   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32343   test -n "$tmp" && test -d "$tmp"
32344 }  ||
32345 {
32346   tmp=./conf$$-$RANDOM
32347   (umask 077 && mkdir "$tmp")
32348 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
32349
32350 # Set up the scripts for CONFIG_FILES section.
32351 # No need to generate them if there are no CONFIG_FILES.
32352 # This happens for instance with `./config.status config.h'.
32353 if test -n "$CONFIG_FILES"; then
32354
32355
32356 ac_cr=`echo X | tr X '\015'`
32357 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32358 # But we know of no other shell where ac_cr would be empty at this
32359 # point, so we can use a bashism as a fallback.
32360 if test "x$ac_cr" = x; then
32361   eval ac_cr=\$\'\\r\'
32362 fi
32363 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32364 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32365   ac_cs_awk_cr='\r'
32366 else
32367   ac_cs_awk_cr=$ac_cr
32368 fi
32369
32370 echo 'BEGIN {' >"$tmp/subs1.awk" &&
32371 _ACEOF
32372
32373
32374 {
32375   echo "cat >conf$$subs.awk <<_ACEOF" &&
32376   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32377   echo "_ACEOF"
32378 } >conf$$subs.sh ||
32379   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
32380 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32381 ac_delim='%!_!# '
32382 for ac_last_try in false false false false false :; do
32383   . ./conf$$subs.sh ||
32384     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
32385
32386   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32387   if test $ac_delim_n = $ac_delim_num; then
32388     break
32389   elif $ac_last_try; then
32390     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
32391   else
32392     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32393   fi
32394 done
32395 rm -f conf$$subs.sh
32396
32397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32398 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32399 _ACEOF
32400 sed -n '
32401 h
32402 s/^/S["/; s/!.*/"]=/
32403 p
32404 g
32405 s/^[^!]*!//
32406 :repl
32407 t repl
32408 s/'"$ac_delim"'$//
32409 t delim
32410 :nl
32411 h
32412 s/\(.\{148\}\)..*/\1/
32413 t more1
32414 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32415 p
32416 n
32417 b repl
32418 :more1
32419 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32420 p
32421 g
32422 s/.\{148\}//
32423 t nl
32424 :delim
32425 h
32426 s/\(.\{148\}\)..*/\1/
32427 t more2
32428 s/["\\]/\\&/g; s/^/"/; s/$/"/
32429 p
32430 b
32431 :more2
32432 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32433 p
32434 g
32435 s/.\{148\}//
32436 t delim
32437 ' <conf$$subs.awk | sed '
32438 /^[^""]/{
32439   N
32440   s/\n//
32441 }
32442 ' >>$CONFIG_STATUS || ac_write_fail=1
32443 rm -f conf$$subs.awk
32444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32445 _ACAWK
32446 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32447   for (key in S) S_is_set[key] = 1
32448   FS = "\a"
32449
32450 }
32451 {
32452   line = $ 0
32453   nfields = split(line, field, "@")
32454   substed = 0
32455   len = length(field[1])
32456   for (i = 2; i < nfields; i++) {
32457     key = field[i]
32458     keylen = length(key)
32459     if (S_is_set[key]) {
32460       value = S[key]
32461       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32462       len += length(value) + length(field[++i])
32463       substed = 1
32464     } else
32465       len += 1 + keylen
32466   }
32467
32468   print line
32469 }
32470
32471 _ACAWK
32472 _ACEOF
32473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32474 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32475   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32476 else
32477   cat
32478 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
32479   || as_fn_error "could not setup config files machinery" "$LINENO" 5
32480 _ACEOF
32481
32482 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32483 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32484 # trailing colons and then remove the whole line if VPATH becomes empty
32485 # (actually we leave an empty line to preserve line numbers).
32486 if test "x$srcdir" = x.; then
32487   ac_vpsub='/^[  ]*VPATH[        ]*=/{
32488 s/:*\$(srcdir):*/:/
32489 s/:*\${srcdir}:*/:/
32490 s/:*@srcdir@:*/:/
32491 s/^\([^=]*=[     ]*\):*/\1/
32492 s/:*$//
32493 s/^[^=]*=[       ]*$//
32494 }'
32495 fi
32496
32497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32498 fi # test -n "$CONFIG_FILES"
32499
32500 # Set up the scripts for CONFIG_HEADERS section.
32501 # No need to generate them if there are no CONFIG_HEADERS.
32502 # This happens for instance with `./config.status Makefile'.
32503 if test -n "$CONFIG_HEADERS"; then
32504 cat >"$tmp/defines.awk" <<\_ACAWK ||
32505 BEGIN {
32506 _ACEOF
32507
32508 # Transform confdefs.h into an awk script `defines.awk', embedded as
32509 # here-document in config.status, that substitutes the proper values into
32510 # config.h.in to produce config.h.
32511
32512 # Create a delimiter string that does not exist in confdefs.h, to ease
32513 # handling of long lines.
32514 ac_delim='%!_!# '
32515 for ac_last_try in false false :; do
32516   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32517   if test -z "$ac_t"; then
32518     break
32519   elif $ac_last_try; then
32520     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
32521   else
32522     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32523   fi
32524 done
32525
32526 # For the awk script, D is an array of macro values keyed by name,
32527 # likewise P contains macro parameters if any.  Preserve backslash
32528 # newline sequences.
32529
32530 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32531 sed -n '
32532 s/.\{148\}/&'"$ac_delim"'/g
32533 t rset
32534 :rset
32535 s/^[     ]*#[    ]*define[       ][      ]*/ /
32536 t def
32537 d
32538 :def
32539 s/\\$//
32540 t bsnl
32541 s/["\\]/\\&/g
32542 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32543 D["\1"]=" \3"/p
32544 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32545 d
32546 :bsnl
32547 s/["\\]/\\&/g
32548 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32549 D["\1"]=" \3\\\\\\n"\\/p
32550 t cont
32551 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32552 t cont
32553 d
32554 :cont
32555 n
32556 s/.\{148\}/&'"$ac_delim"'/g
32557 t clear
32558 :clear
32559 s/\\$//
32560 t bsnlc
32561 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32562 d
32563 :bsnlc
32564 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32565 b cont
32566 ' <confdefs.h | sed '
32567 s/'"$ac_delim"'/"\\\
32568 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32569
32570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32571   for (key in D) D_is_set[key] = 1
32572   FS = "\a"
32573 }
32574 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32575   line = \$ 0
32576   split(line, arg, " ")
32577   if (arg[1] == "#") {
32578     defundef = arg[2]
32579     mac1 = arg[3]
32580   } else {
32581     defundef = substr(arg[1], 2)
32582     mac1 = arg[2]
32583   }
32584   split(mac1, mac2, "(") #)
32585   macro = mac2[1]
32586   prefix = substr(line, 1, index(line, defundef) - 1)
32587   if (D_is_set[macro]) {
32588     # Preserve the white space surrounding the "#".
32589     print prefix "define", macro P[macro] D[macro]
32590     next
32591   } else {
32592     # Replace #undef with comments.  This is necessary, for example,
32593     # in the case of _POSIX_SOURCE, which is predefined and required
32594     # on some systems where configure will not decide to define it.
32595     if (defundef == "undef") {
32596       print "/*", prefix defundef, macro, "*/"
32597       next
32598     }
32599   }
32600 }
32601 { print }
32602 _ACAWK
32603 _ACEOF
32604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32605   as_fn_error "could not setup config headers machinery" "$LINENO" 5
32606 fi # test -n "$CONFIG_HEADERS"
32607
32608
32609 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32610 shift
32611 for ac_tag
32612 do
32613   case $ac_tag in
32614   :[FHLC]) ac_mode=$ac_tag; continue;;
32615   esac
32616   case $ac_mode$ac_tag in
32617   :[FHL]*:*);;
32618   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
32619   :[FH]-) ac_tag=-:-;;
32620   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32621   esac
32622   ac_save_IFS=$IFS
32623   IFS=:
32624   set x $ac_tag
32625   IFS=$ac_save_IFS
32626   shift
32627   ac_file=$1
32628   shift
32629
32630   case $ac_mode in
32631   :L) ac_source=$1;;
32632   :[FH])
32633     ac_file_inputs=
32634     for ac_f
32635     do
32636       case $ac_f in
32637       -) ac_f="$tmp/stdin";;
32638       *) # Look for the file first in the build tree, then in the source tree
32639          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32640          # because $ac_f cannot contain `:'.
32641          test -f "$ac_f" ||
32642            case $ac_f in
32643            [\\/$]*) false;;
32644            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32645            esac ||
32646            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32647       esac
32648       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32649       as_fn_append ac_file_inputs " '$ac_f'"
32650     done
32651
32652     # Let's still pretend it is `configure' which instantiates (i.e., don't
32653     # use $as_me), people would be surprised to read:
32654     #    /* config.h.  Generated by config.status.  */
32655     configure_input='Generated from '`
32656           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32657         `' by configure.'
32658     if test x"$ac_file" != x-; then
32659       configure_input="$ac_file.  $configure_input"
32660       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32661 $as_echo "$as_me: creating $ac_file" >&6;}
32662     fi
32663     # Neutralize special characters interpreted by sed in replacement strings.
32664     case $configure_input in #(
32665     *\&* | *\|* | *\\* )
32666        ac_sed_conf_input=`$as_echo "$configure_input" |
32667        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32668     *) ac_sed_conf_input=$configure_input;;
32669     esac
32670
32671     case $ac_tag in
32672     *:-:* | *:-) cat >"$tmp/stdin" \
32673       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
32674     esac
32675     ;;
32676   esac
32677
32678   ac_dir=`$as_dirname -- "$ac_file" ||
32679 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32680          X"$ac_file" : 'X\(//\)[^/]' \| \
32681          X"$ac_file" : 'X\(//\)$' \| \
32682          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32683 $as_echo X"$ac_file" |
32684     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32685             s//\1/
32686             q
32687           }
32688           /^X\(\/\/\)[^/].*/{
32689             s//\1/
32690             q
32691           }
32692           /^X\(\/\/\)$/{
32693             s//\1/
32694             q
32695           }
32696           /^X\(\/\).*/{
32697             s//\1/
32698             q
32699           }
32700           s/.*/./; q'`
32701   as_dir="$ac_dir"; as_fn_mkdir_p
32702   ac_builddir=.
32703
32704 case "$ac_dir" in
32705 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32706 *)
32707   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32708   # A ".." for each directory in $ac_dir_suffix.
32709   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32710   case $ac_top_builddir_sub in
32711   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32712   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32713   esac ;;
32714 esac
32715 ac_abs_top_builddir=$ac_pwd
32716 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32717 # for backward compatibility:
32718 ac_top_builddir=$ac_top_build_prefix
32719
32720 case $srcdir in
32721   .)  # We are building in place.
32722     ac_srcdir=.
32723     ac_top_srcdir=$ac_top_builddir_sub
32724     ac_abs_top_srcdir=$ac_pwd ;;
32725   [\\/]* | ?:[\\/]* )  # Absolute name.
32726     ac_srcdir=$srcdir$ac_dir_suffix;
32727     ac_top_srcdir=$srcdir
32728     ac_abs_top_srcdir=$srcdir ;;
32729   *) # Relative name.
32730     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32731     ac_top_srcdir=$ac_top_build_prefix$srcdir
32732     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32733 esac
32734 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32735
32736
32737   case $ac_mode in
32738   :F)
32739   #
32740   # CONFIG_FILE
32741   #
32742
32743   case $INSTALL in
32744   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32745   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32746   esac
32747   ac_MKDIR_P=$MKDIR_P
32748   case $MKDIR_P in
32749   [\\/$]* | ?:[\\/]* ) ;;
32750   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32751   esac
32752 _ACEOF
32753
32754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32755 # If the template does not know about datarootdir, expand it.
32756 # FIXME: This hack should be removed a few years after 2.60.
32757 ac_datarootdir_hack=; ac_datarootdir_seen=
32758 ac_sed_dataroot='
32759 /datarootdir/ {
32760   p
32761   q
32762 }
32763 /@datadir@/p
32764 /@docdir@/p
32765 /@infodir@/p
32766 /@localedir@/p
32767 /@mandir@/p'
32768 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32769 *datarootdir*) ac_datarootdir_seen=yes;;
32770 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32771   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32772 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32773 _ACEOF
32774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32775   ac_datarootdir_hack='
32776   s&@datadir@&$datadir&g
32777   s&@docdir@&$docdir&g
32778   s&@infodir@&$infodir&g
32779   s&@localedir@&$localedir&g
32780   s&@mandir@&$mandir&g
32781   s&\\\${datarootdir}&$datarootdir&g' ;;
32782 esac
32783 _ACEOF
32784
32785 # Neutralize VPATH when `$srcdir' = `.'.
32786 # Shell code in configure.ac might set extrasub.
32787 # FIXME: do we really want to maintain this feature?
32788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32789 ac_sed_extra="$ac_vpsub
32790 $extrasub
32791 _ACEOF
32792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32793 :t
32794 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32795 s|@configure_input@|$ac_sed_conf_input|;t t
32796 s&@top_builddir@&$ac_top_builddir_sub&;t t
32797 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32798 s&@srcdir@&$ac_srcdir&;t t
32799 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32800 s&@top_srcdir@&$ac_top_srcdir&;t t
32801 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32802 s&@builddir@&$ac_builddir&;t t
32803 s&@abs_builddir@&$ac_abs_builddir&;t t
32804 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32805 s&@INSTALL@&$ac_INSTALL&;t t
32806 s&@MKDIR_P@&$ac_MKDIR_P&;t t
32807 $ac_datarootdir_hack
32808 "
32809 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
32810   || as_fn_error "could not create $ac_file" "$LINENO" 5
32811
32812 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32813   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32814   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32815   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32816 which seems to be undefined.  Please make sure it is defined." >&5
32817 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32818 which seems to be undefined.  Please make sure it is defined." >&2;}
32819
32820   rm -f "$tmp/stdin"
32821   case $ac_file in
32822   -) cat "$tmp/out" && rm -f "$tmp/out";;
32823   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32824   esac \
32825   || as_fn_error "could not create $ac_file" "$LINENO" 5
32826  ;;
32827   :H)
32828   #
32829   # CONFIG_HEADER
32830   #
32831   if test x"$ac_file" != x-; then
32832     {
32833       $as_echo "/* $configure_input  */" \
32834       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32835     } >"$tmp/config.h" \
32836       || as_fn_error "could not create $ac_file" "$LINENO" 5
32837     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
32838       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32839 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32840     else
32841       rm -f "$ac_file"
32842       mv "$tmp/config.h" "$ac_file" \
32843         || as_fn_error "could not create $ac_file" "$LINENO" 5
32844     fi
32845   else
32846     $as_echo "/* $configure_input  */" \
32847       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
32848       || as_fn_error "could not create -" "$LINENO" 5
32849   fi
32850 # Compute "$ac_file"'s index in $config_headers.
32851 _am_arg="$ac_file"
32852 _am_stamp_count=1
32853 for _am_header in $config_headers :; do
32854   case $_am_header in
32855     $_am_arg | $_am_arg:* )
32856       break ;;
32857     * )
32858       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32859   esac
32860 done
32861 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32862 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32863          X"$_am_arg" : 'X\(//\)[^/]' \| \
32864          X"$_am_arg" : 'X\(//\)$' \| \
32865          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32866 $as_echo X"$_am_arg" |
32867     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32868             s//\1/
32869             q
32870           }
32871           /^X\(\/\/\)[^/].*/{
32872             s//\1/
32873             q
32874           }
32875           /^X\(\/\/\)$/{
32876             s//\1/
32877             q
32878           }
32879           /^X\(\/\).*/{
32880             s//\1/
32881             q
32882           }
32883           s/.*/./; q'`/stamp-h$_am_stamp_count
32884  ;;
32885
32886   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32887 $as_echo "$as_me: executing $ac_file commands" >&6;}
32888  ;;
32889   esac
32890
32891
32892   case $ac_file$ac_mode in
32893     "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
32894 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
32895 ac_prefix_conf_PKG=`echo MagickCore`
32896 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
32897 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
32898 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
32899 if test ".$ac_prefix_conf_INP" = "."; then
32900    for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
32901      case "$ac_file" in
32902         *.h) ac_prefix_conf_INP=$ac_file ;;
32903         *)
32904      esac
32905      test ".$ac_prefix_conf_INP" != "." && break
32906    done
32907 fi
32908 if test ".$ac_prefix_conf_INP" = "."; then
32909    case "$ac_prefix_conf_OUT" in
32910       */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
32911       ;;
32912       *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
32913       ;;
32914       *) ac_prefix_conf_INP=config.h
32915       ;;
32916    esac
32917 fi
32918 if test -z "$ac_prefix_conf_PKG" ; then
32919    as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
32920 else
32921   if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
32922      ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
32923   fi fi
32924   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
32925 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
32926   if test -f $ac_prefix_conf_INP ; then
32927     echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
32928     echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
32929     echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
32930     echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
32931     echo "#endif/" >>conftest.prefix
32932     echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
32933     echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
32934     echo "#endif/" >> conftest.prefix
32935     # now executing _script on _DEF input to create _OUT output file
32936     echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
32937     echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
32938     echo ' ' >>$tmp/pconfig.h
32939     echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
32940
32941     sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
32942     echo ' ' >>$tmp/pconfig.h
32943     echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
32944     echo "#endif" >>$tmp/pconfig.h
32945     if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
32946       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
32947 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
32948     else
32949       ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
32950 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32951          X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
32952          X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
32953          X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
32954 $as_echo X"$ac_prefix_conf_OUT" |
32955     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32956             s//\1/
32957             q
32958           }
32959           /^X\(\/\/\)[^/].*/{
32960             s//\1/
32961             q
32962           }
32963           /^X\(\/\/\)$/{
32964             s//\1/
32965             q
32966           }
32967           /^X\(\/\).*/{
32968             s//\1/
32969             q
32970           }
32971           s/.*/./; q'`
32972       as_dir="$ac_dir"; as_fn_mkdir_p
32973       rm -f "$ac_prefix_conf_OUT"
32974       mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
32975     fi
32976     cp conftest.prefix _configs.sed
32977   else
32978     as_fn_error "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
32979   fi
32980   rm -f conftest.*
32981 fi
32982  ;;
32983     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32984   # Autoconf 2.62 quotes --file arguments for eval, but not when files
32985   # are listed without --file.  Let's play safe and only enable the eval
32986   # if we detect the quoting.
32987   case $CONFIG_FILES in
32988   *\'*) eval set x "$CONFIG_FILES" ;;
32989   *)   set x $CONFIG_FILES ;;
32990   esac
32991   shift
32992   for mf
32993   do
32994     # Strip MF so we end up with the name of the file.
32995     mf=`echo "$mf" | sed -e 's/:.*$//'`
32996     # Check whether this is an Automake generated Makefile or not.
32997     # We used to match only the files named `Makefile.in', but
32998     # some people rename them; so instead we look at the file content.
32999     # Grep'ing the first line is not enough: some people post-process
33000     # each Makefile.in and add a new line on top of each file to say so.
33001     # Grep'ing the whole file is not good either: AIX grep has a line
33002     # limit of 2048, but all sed's we know have understand at least 4000.
33003     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
33004       dirpart=`$as_dirname -- "$mf" ||
33005 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33006          X"$mf" : 'X\(//\)[^/]' \| \
33007          X"$mf" : 'X\(//\)$' \| \
33008          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33009 $as_echo X"$mf" |
33010     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33011             s//\1/
33012             q
33013           }
33014           /^X\(\/\/\)[^/].*/{
33015             s//\1/
33016             q
33017           }
33018           /^X\(\/\/\)$/{
33019             s//\1/
33020             q
33021           }
33022           /^X\(\/\).*/{
33023             s//\1/
33024             q
33025           }
33026           s/.*/./; q'`
33027     else
33028       continue
33029     fi
33030     # Extract the definition of DEPDIR, am__include, and am__quote
33031     # from the Makefile without running `make'.
33032     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33033     test -z "$DEPDIR" && continue
33034     am__include=`sed -n 's/^am__include = //p' < "$mf"`
33035     test -z "am__include" && continue
33036     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33037     # When using ansi2knr, U may be empty or an underscore; expand it
33038     U=`sed -n 's/^U = //p' < "$mf"`
33039     # Find all dependency output files, they are included files with
33040     # $(DEPDIR) in their names.  We invoke sed twice because it is the
33041     # simplest approach to changing $(DEPDIR) to its actual value in the
33042     # expansion.
33043     for file in `sed -n "
33044       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33045          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33046       # Make sure the directory exists.
33047       test -f "$dirpart/$file" && continue
33048       fdir=`$as_dirname -- "$file" ||
33049 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33050          X"$file" : 'X\(//\)[^/]' \| \
33051          X"$file" : 'X\(//\)$' \| \
33052          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33053 $as_echo X"$file" |
33054     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33055             s//\1/
33056             q
33057           }
33058           /^X\(\/\/\)[^/].*/{
33059             s//\1/
33060             q
33061           }
33062           /^X\(\/\/\)$/{
33063             s//\1/
33064             q
33065           }
33066           /^X\(\/\).*/{
33067             s//\1/
33068             q
33069           }
33070           s/.*/./; q'`
33071       as_dir=$dirpart/$fdir; as_fn_mkdir_p
33072       # echo "creating $dirpart/$file"
33073       echo '# dummy' > "$dirpart/$file"
33074     done
33075   done
33076 }
33077  ;;
33078     "libtool":C)
33079
33080     # See if we are running on zsh, and set the options which allow our
33081     # commands through without removal of \ escapes.
33082     if test -n "${ZSH_VERSION+set}" ; then
33083       setopt NO_GLOB_SUBST
33084     fi
33085
33086     cfgfile="${ofile}T"
33087     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33088     $RM "$cfgfile"
33089
33090     cat <<_LT_EOF >> "$cfgfile"
33091 #! $SHELL
33092
33093 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33094 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33095 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33096 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
33097 #
33098 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33099 #                 2006, 2007, 2008 Free Software Foundation, Inc.
33100 #   Written by Gordon Matzigkeit, 1996
33101 #
33102 #   This file is part of GNU Libtool.
33103 #
33104 # GNU Libtool is free software; you can redistribute it and/or
33105 # modify it under the terms of the GNU General Public License as
33106 # published by the Free Software Foundation; either version 2 of
33107 # the License, or (at your option) any later version.
33108 #
33109 # As a special exception to the GNU General Public License,
33110 # if you distribute this file as part of a program or library that
33111 # is built using GNU Libtool, you may include this file under the
33112 # same distribution terms that you use for the rest of that program.
33113 #
33114 # GNU Libtool is distributed in the hope that it will be useful,
33115 # but WITHOUT ANY WARRANTY; without even the implied warranty of
33116 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
33117 # GNU General Public License for more details.
33118 #
33119 # You should have received a copy of the GNU General Public License
33120 # along with GNU Libtool; see the file COPYING.  If not, a copy
33121 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33122 # obtained by writing to the Free Software Foundation, Inc.,
33123 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33124
33125
33126 # The names of the tagged configurations supported by this script.
33127 available_tags="CXX "
33128
33129 # ### BEGIN LIBTOOL CONFIG
33130
33131 # A sed program that does not truncate output.
33132 SED=$lt_SED
33133
33134 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33135 Xsed="\$SED -e 1s/^X//"
33136
33137 # A grep program that handles long lines.
33138 GREP=$lt_GREP
33139
33140 # An ERE matcher.
33141 EGREP=$lt_EGREP
33142
33143 # A literal string matcher.
33144 FGREP=$lt_FGREP
33145
33146 # Which release of libtool.m4 was used?
33147 macro_version=$macro_version
33148 macro_revision=$macro_revision
33149
33150 # Assembler program.
33151 AS=$AS
33152
33153 # DLL creation program.
33154 DLLTOOL=$DLLTOOL
33155
33156 # Object dumper program.
33157 OBJDUMP=$OBJDUMP
33158
33159 # Whether or not to build shared libraries.
33160 build_libtool_libs=$enable_shared
33161
33162 # Whether or not to build static libraries.
33163 build_old_libs=$enable_static
33164
33165 # What type of objects to build.
33166 pic_mode=$pic_mode
33167
33168 # Whether or not to optimize for fast installation.
33169 fast_install=$enable_fast_install
33170
33171 # The host system.
33172 host_alias=$host_alias
33173 host=$host
33174 host_os=$host_os
33175
33176 # The build system.
33177 build_alias=$build_alias
33178 build=$build
33179 build_os=$build_os
33180
33181 # A BSD- or MS-compatible name lister.
33182 NM=$lt_NM
33183
33184 # Whether we need soft or hard links.
33185 LN_S=$lt_LN_S
33186
33187 # What is the maximum length of a command?
33188 max_cmd_len=$max_cmd_len
33189
33190 # Object file suffix (normally "o").
33191 objext=$ac_objext
33192
33193 # Executable file suffix (normally "").
33194 exeext=$exeext
33195
33196 # whether the shell understands "unset".
33197 lt_unset=$lt_unset
33198
33199 # turn spaces into newlines.
33200 SP2NL=$lt_lt_SP2NL
33201
33202 # turn newlines into spaces.
33203 NL2SP=$lt_lt_NL2SP
33204
33205 # How to create reloadable object files.
33206 reload_flag=$lt_reload_flag
33207 reload_cmds=$lt_reload_cmds
33208
33209 # Method to check whether dependent libraries are shared objects.
33210 deplibs_check_method=$lt_deplibs_check_method
33211
33212 # Command to use when deplibs_check_method == "file_magic".
33213 file_magic_cmd=$lt_file_magic_cmd
33214
33215 # The archiver.
33216 AR=$lt_AR
33217 AR_FLAGS=$lt_AR_FLAGS
33218
33219 # A symbol stripping program.
33220 STRIP=$lt_STRIP
33221
33222 # Commands used to install an old-style archive.
33223 RANLIB=$lt_RANLIB
33224 old_postinstall_cmds=$lt_old_postinstall_cmds
33225 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33226
33227 # A C compiler.
33228 LTCC=$lt_CC
33229
33230 # LTCC compiler flags.
33231 LTCFLAGS=$lt_CFLAGS
33232
33233 # Take the output of nm and produce a listing of raw symbols and C names.
33234 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33235
33236 # Transform the output of nm in a proper C declaration.
33237 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33238
33239 # Transform the output of nm in a C name address pair.
33240 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33241
33242 # Transform the output of nm in a C name address pair when lib prefix is needed.
33243 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33244
33245 # The name of the directory that contains temporary libtool files.
33246 objdir=$objdir
33247
33248 # Shell to use when invoking shell scripts.
33249 SHELL=$lt_SHELL
33250
33251 # An echo program that does not interpret backslashes.
33252 ECHO=$lt_ECHO
33253
33254 # Used to examine libraries when file_magic_cmd begins with "file".
33255 MAGIC_CMD=$MAGIC_CMD
33256
33257 # Must we lock files when doing compilation?
33258 need_locks=$lt_need_locks
33259
33260 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33261 DSYMUTIL=$lt_DSYMUTIL
33262
33263 # Tool to change global to local symbols on Mac OS X.
33264 NMEDIT=$lt_NMEDIT
33265
33266 # Tool to manipulate fat objects and archives on Mac OS X.
33267 LIPO=$lt_LIPO
33268
33269 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33270 OTOOL=$lt_OTOOL
33271
33272 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33273 OTOOL64=$lt_OTOOL64
33274
33275 # Old archive suffix (normally "a").
33276 libext=$libext
33277
33278 # Shared library suffix (normally ".so").
33279 shrext_cmds=$lt_shrext_cmds
33280
33281 # The commands to extract the exported symbol list from a shared archive.
33282 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33283
33284 # Variables whose values should be saved in libtool wrapper scripts and
33285 # restored at link time.
33286 variables_saved_for_relink=$lt_variables_saved_for_relink
33287
33288 # Do we need the "lib" prefix for modules?
33289 need_lib_prefix=$need_lib_prefix
33290
33291 # Do we need a version for libraries?
33292 need_version=$need_version
33293
33294 # Library versioning type.
33295 version_type=$version_type
33296
33297 # Shared library runtime path variable.
33298 runpath_var=$runpath_var
33299
33300 # Shared library path variable.
33301 shlibpath_var=$shlibpath_var
33302
33303 # Is shlibpath searched before the hard-coded library search path?
33304 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33305
33306 # Format of library name prefix.
33307 libname_spec=$lt_libname_spec
33308
33309 # List of archive names.  First name is the real one, the rest are links.
33310 # The last name is the one that the linker finds with -lNAME
33311 library_names_spec=$lt_library_names_spec
33312
33313 # The coded name of the library, if different from the real name.
33314 soname_spec=$lt_soname_spec
33315
33316 # Command to use after installation of a shared archive.
33317 postinstall_cmds=$lt_postinstall_cmds
33318
33319 # Command to use after uninstallation of a shared archive.
33320 postuninstall_cmds=$lt_postuninstall_cmds
33321
33322 # Commands used to finish a libtool library installation in a directory.
33323 finish_cmds=$lt_finish_cmds
33324
33325 # As "finish_cmds", except a single script fragment to be evaled but
33326 # not shown.
33327 finish_eval=$lt_finish_eval
33328
33329 # Whether we should hardcode library paths into libraries.
33330 hardcode_into_libs=$hardcode_into_libs
33331
33332 # Compile-time system search path for libraries.
33333 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33334
33335 # Run-time system search path for libraries.
33336 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33337
33338 # Whether dlopen is supported.
33339 dlopen_support=$enable_dlopen
33340
33341 # Whether dlopen of programs is supported.
33342 dlopen_self=$enable_dlopen_self
33343
33344 # Whether dlopen of statically linked programs is supported.
33345 dlopen_self_static=$enable_dlopen_self_static
33346
33347 # Commands to strip libraries.
33348 old_striplib=$lt_old_striplib
33349 striplib=$lt_striplib
33350
33351
33352 # The linker used to build libraries.
33353 LD=$lt_LD
33354
33355 # Commands used to build an old-style archive.
33356 old_archive_cmds=$lt_old_archive_cmds
33357
33358 # A language specific compiler.
33359 CC=$lt_compiler
33360
33361 # Is the compiler the GNU compiler?
33362 with_gcc=$GCC
33363
33364 # Compiler flag to turn off builtin functions.
33365 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33366
33367 # How to pass a linker flag through the compiler.
33368 wl=$lt_lt_prog_compiler_wl
33369
33370 # Additional compiler flags for building library objects.
33371 pic_flag=$lt_lt_prog_compiler_pic
33372
33373 # Compiler flag to prevent dynamic linking.
33374 link_static_flag=$lt_lt_prog_compiler_static
33375
33376 # Does compiler simultaneously support -c and -o options?
33377 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33378
33379 # Whether or not to add -lc for building shared libraries.
33380 build_libtool_need_lc=$archive_cmds_need_lc
33381
33382 # Whether or not to disallow shared libs when runtime libs are static.
33383 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33384
33385 # Compiler flag to allow reflexive dlopens.
33386 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33387
33388 # Compiler flag to generate shared objects directly from archives.
33389 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33390
33391 # Whether the compiler copes with passing no objects directly.
33392 compiler_needs_object=$lt_compiler_needs_object
33393
33394 # Create an old-style archive from a shared archive.
33395 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33396
33397 # Create a temporary old-style archive to link instead of a shared archive.
33398 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33399
33400 # Commands used to build a shared archive.
33401 archive_cmds=$lt_archive_cmds
33402 archive_expsym_cmds=$lt_archive_expsym_cmds
33403
33404 # Commands used to build a loadable module if different from building
33405 # a shared archive.
33406 module_cmds=$lt_module_cmds
33407 module_expsym_cmds=$lt_module_expsym_cmds
33408
33409 # Whether we are building with GNU ld or not.
33410 with_gnu_ld=$lt_with_gnu_ld
33411
33412 # Flag that allows shared libraries with undefined symbols to be built.
33413 allow_undefined_flag=$lt_allow_undefined_flag
33414
33415 # Flag that enforces no undefined symbols.
33416 no_undefined_flag=$lt_no_undefined_flag
33417
33418 # Flag to hardcode \$libdir into a binary during linking.
33419 # This must work even if \$libdir does not exist
33420 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33421
33422 # If ld is used when linking, flag to hardcode \$libdir into a binary
33423 # during linking.  This must work even if \$libdir does not exist.
33424 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33425
33426 # Whether we need a single "-rpath" flag with a separated argument.
33427 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33428
33429 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33430 # DIR into the resulting binary.
33431 hardcode_direct=$hardcode_direct
33432
33433 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33434 # DIR into the resulting binary and the resulting library dependency is
33435 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33436 # library is relocated.
33437 hardcode_direct_absolute=$hardcode_direct_absolute
33438
33439 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33440 # into the resulting binary.
33441 hardcode_minus_L=$hardcode_minus_L
33442
33443 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33444 # into the resulting binary.
33445 hardcode_shlibpath_var=$hardcode_shlibpath_var
33446
33447 # Set to "yes" if building a shared library automatically hardcodes DIR
33448 # into the library and all subsequent libraries and executables linked
33449 # against it.
33450 hardcode_automatic=$hardcode_automatic
33451
33452 # Set to yes if linker adds runtime paths of dependent libraries
33453 # to runtime path list.
33454 inherit_rpath=$inherit_rpath
33455
33456 # Whether libtool must link a program against all its dependency libraries.
33457 link_all_deplibs=$link_all_deplibs
33458
33459 # Fix the shell variable \$srcfile for the compiler.
33460 fix_srcfile_path=$lt_fix_srcfile_path
33461
33462 # Set to "yes" if exported symbols are required.
33463 always_export_symbols=$always_export_symbols
33464
33465 # The commands to list exported symbols.
33466 export_symbols_cmds=$lt_export_symbols_cmds
33467
33468 # Symbols that should not be listed in the preloaded symbols.
33469 exclude_expsyms=$lt_exclude_expsyms
33470
33471 # Symbols that must always be exported.
33472 include_expsyms=$lt_include_expsyms
33473
33474 # Commands necessary for linking programs (against libraries) with templates.
33475 prelink_cmds=$lt_prelink_cmds
33476
33477 # Specify filename containing input files.
33478 file_list_spec=$lt_file_list_spec
33479
33480 # How to hardcode a shared library path into an executable.
33481 hardcode_action=$hardcode_action
33482
33483 # The directories searched by this compiler when creating a shared library.
33484 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33485
33486 # Dependencies to place before and after the objects being linked to
33487 # create a shared library.
33488 predep_objects=$lt_predep_objects
33489 postdep_objects=$lt_postdep_objects
33490 predeps=$lt_predeps
33491 postdeps=$lt_postdeps
33492
33493 # The library search path used internally by the compiler when linking
33494 # a shared library.
33495 compiler_lib_search_path=$lt_compiler_lib_search_path
33496
33497 # ### END LIBTOOL CONFIG
33498
33499 _LT_EOF
33500
33501   case $host_os in
33502   aix3*)
33503     cat <<\_LT_EOF >> "$cfgfile"
33504 # AIX sometimes has problems with the GCC collect2 program.  For some
33505 # reason, if we set the COLLECT_NAMES environment variable, the problems
33506 # vanish in a puff of smoke.
33507 if test "X${COLLECT_NAMES+set}" != Xset; then
33508   COLLECT_NAMES=
33509   export COLLECT_NAMES
33510 fi
33511 _LT_EOF
33512     ;;
33513   esac
33514
33515
33516 ltmain="$ac_aux_dir/ltmain.sh"
33517
33518
33519   # We use sed instead of cat because bash on DJGPP gets confused if
33520   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33521   # text mode, it properly converts lines to CR/LF.  This bash problem
33522   # is reportedly fixed, but why not run on old versions too?
33523   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
33524     || (rm -f "$cfgfile"; exit 1)
33525
33526   case $xsi_shell in
33527   yes)
33528     cat << \_LT_EOF >> "$cfgfile"
33529
33530 # func_dirname file append nondir_replacement
33531 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
33532 # otherwise set result to NONDIR_REPLACEMENT.
33533 func_dirname ()
33534 {
33535   case ${1} in
33536     */*) func_dirname_result="${1%/*}${2}" ;;
33537     *  ) func_dirname_result="${3}" ;;
33538   esac
33539 }
33540
33541 # func_basename file
33542 func_basename ()
33543 {
33544   func_basename_result="${1##*/}"
33545 }
33546
33547 # func_dirname_and_basename file append nondir_replacement
33548 # perform func_basename and func_dirname in a single function
33549 # call:
33550 #   dirname:  Compute the dirname of FILE.  If nonempty,
33551 #             add APPEND to the result, otherwise set result
33552 #             to NONDIR_REPLACEMENT.
33553 #             value returned in "$func_dirname_result"
33554 #   basename: Compute filename of FILE.
33555 #             value retuned in "$func_basename_result"
33556 # Implementation must be kept synchronized with func_dirname
33557 # and func_basename. For efficiency, we do not delegate to
33558 # those functions but instead duplicate the functionality here.
33559 func_dirname_and_basename ()
33560 {
33561   case ${1} in
33562     */*) func_dirname_result="${1%/*}${2}" ;;
33563     *  ) func_dirname_result="${3}" ;;
33564   esac
33565   func_basename_result="${1##*/}"
33566 }
33567
33568 # func_stripname prefix suffix name
33569 # strip PREFIX and SUFFIX off of NAME.
33570 # PREFIX and SUFFIX must not contain globbing or regex special
33571 # characters, hashes, percent signs, but SUFFIX may contain a leading
33572 # dot (in which case that matches only a dot).
33573 func_stripname ()
33574 {
33575   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
33576   # positional parameters, so assign one to ordinary parameter first.
33577   func_stripname_result=${3}
33578   func_stripname_result=${func_stripname_result#"${1}"}
33579   func_stripname_result=${func_stripname_result%"${2}"}
33580 }
33581
33582 # func_opt_split
33583 func_opt_split ()
33584 {
33585   func_opt_split_opt=${1%%=*}
33586   func_opt_split_arg=${1#*=}
33587 }
33588
33589 # func_lo2o object
33590 func_lo2o ()
33591 {
33592   case ${1} in
33593     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
33594     *)    func_lo2o_result=${1} ;;
33595   esac
33596 }
33597
33598 # func_xform libobj-or-source
33599 func_xform ()
33600 {
33601   func_xform_result=${1%.*}.lo
33602 }
33603
33604 # func_arith arithmetic-term...
33605 func_arith ()
33606 {
33607   func_arith_result=$(( $* ))
33608 }
33609
33610 # func_len string
33611 # STRING may not start with a hyphen.
33612 func_len ()
33613 {
33614   func_len_result=${#1}
33615 }
33616
33617 _LT_EOF
33618     ;;
33619   *) # Bourne compatible functions.
33620     cat << \_LT_EOF >> "$cfgfile"
33621
33622 # func_dirname file append nondir_replacement
33623 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
33624 # otherwise set result to NONDIR_REPLACEMENT.
33625 func_dirname ()
33626 {
33627   # Extract subdirectory from the argument.
33628   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
33629   if test "X$func_dirname_result" = "X${1}"; then
33630     func_dirname_result="${3}"
33631   else
33632     func_dirname_result="$func_dirname_result${2}"
33633   fi
33634 }
33635
33636 # func_basename file
33637 func_basename ()
33638 {
33639   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
33640 }
33641
33642
33643 # func_stripname prefix suffix name
33644 # strip PREFIX and SUFFIX off of NAME.
33645 # PREFIX and SUFFIX must not contain globbing or regex special
33646 # characters, hashes, percent signs, but SUFFIX may contain a leading
33647 # dot (in which case that matches only a dot).
33648 # func_strip_suffix prefix name
33649 func_stripname ()
33650 {
33651   case ${2} in
33652     .*) func_stripname_result=`$ECHO "X${3}" \
33653            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
33654     *)  func_stripname_result=`$ECHO "X${3}" \
33655            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
33656   esac
33657 }
33658
33659 # sed scripts:
33660 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
33661 my_sed_long_arg='1s/^-[^=]*=//'
33662
33663 # func_opt_split
33664 func_opt_split ()
33665 {
33666   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
33667   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
33668 }
33669
33670 # func_lo2o object
33671 func_lo2o ()
33672 {
33673   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
33674 }
33675
33676 # func_xform libobj-or-source
33677 func_xform ()
33678 {
33679   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
33680 }
33681
33682 # func_arith arithmetic-term...
33683 func_arith ()
33684 {
33685   func_arith_result=`expr "$@"`
33686 }
33687
33688 # func_len string
33689 # STRING may not start with a hyphen.
33690 func_len ()
33691 {
33692   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
33693 }
33694
33695 _LT_EOF
33696 esac
33697
33698 case $lt_shell_append in
33699   yes)
33700     cat << \_LT_EOF >> "$cfgfile"
33701
33702 # func_append var value
33703 # Append VALUE to the end of shell variable VAR.
33704 func_append ()
33705 {
33706   eval "$1+=\$2"
33707 }
33708 _LT_EOF
33709     ;;
33710   *)
33711     cat << \_LT_EOF >> "$cfgfile"
33712
33713 # func_append var value
33714 # Append VALUE to the end of shell variable VAR.
33715 func_append ()
33716 {
33717   eval "$1=\$$1\$2"
33718 }
33719
33720 _LT_EOF
33721     ;;
33722   esac
33723
33724
33725   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
33726     || (rm -f "$cfgfile"; exit 1)
33727
33728   mv -f "$cfgfile" "$ofile" ||
33729     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33730   chmod +x "$ofile"
33731
33732
33733     cat <<_LT_EOF >> "$ofile"
33734
33735 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33736
33737 # The linker used to build libraries.
33738 LD=$lt_LD_CXX
33739
33740 # Commands used to build an old-style archive.
33741 old_archive_cmds=$lt_old_archive_cmds_CXX
33742
33743 # A language specific compiler.
33744 CC=$lt_compiler_CXX
33745
33746 # Is the compiler the GNU compiler?
33747 with_gcc=$GCC_CXX
33748
33749 # Compiler flag to turn off builtin functions.
33750 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33751
33752 # How to pass a linker flag through the compiler.
33753 wl=$lt_lt_prog_compiler_wl_CXX
33754
33755 # Additional compiler flags for building library objects.
33756 pic_flag=$lt_lt_prog_compiler_pic_CXX
33757
33758 # Compiler flag to prevent dynamic linking.
33759 link_static_flag=$lt_lt_prog_compiler_static_CXX
33760
33761 # Does compiler simultaneously support -c and -o options?
33762 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33763
33764 # Whether or not to add -lc for building shared libraries.
33765 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33766
33767 # Whether or not to disallow shared libs when runtime libs are static.
33768 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33769
33770 # Compiler flag to allow reflexive dlopens.
33771 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33772
33773 # Compiler flag to generate shared objects directly from archives.
33774 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33775
33776 # Whether the compiler copes with passing no objects directly.
33777 compiler_needs_object=$lt_compiler_needs_object_CXX
33778
33779 # Create an old-style archive from a shared archive.
33780 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33781
33782 # Create a temporary old-style archive to link instead of a shared archive.
33783 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33784
33785 # Commands used to build a shared archive.
33786 archive_cmds=$lt_archive_cmds_CXX
33787 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33788
33789 # Commands used to build a loadable module if different from building
33790 # a shared archive.
33791 module_cmds=$lt_module_cmds_CXX
33792 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33793
33794 # Whether we are building with GNU ld or not.
33795 with_gnu_ld=$lt_with_gnu_ld_CXX
33796
33797 # Flag that allows shared libraries with undefined symbols to be built.
33798 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33799
33800 # Flag that enforces no undefined symbols.
33801 no_undefined_flag=$lt_no_undefined_flag_CXX
33802
33803 # Flag to hardcode \$libdir into a binary during linking.
33804 # This must work even if \$libdir does not exist
33805 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33806
33807 # If ld is used when linking, flag to hardcode \$libdir into a binary
33808 # during linking.  This must work even if \$libdir does not exist.
33809 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33810
33811 # Whether we need a single "-rpath" flag with a separated argument.
33812 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33813
33814 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33815 # DIR into the resulting binary.
33816 hardcode_direct=$hardcode_direct_CXX
33817
33818 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33819 # DIR into the resulting binary and the resulting library dependency is
33820 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33821 # library is relocated.
33822 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33823
33824 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33825 # into the resulting binary.
33826 hardcode_minus_L=$hardcode_minus_L_CXX
33827
33828 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33829 # into the resulting binary.
33830 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33831
33832 # Set to "yes" if building a shared library automatically hardcodes DIR
33833 # into the library and all subsequent libraries and executables linked
33834 # against it.
33835 hardcode_automatic=$hardcode_automatic_CXX
33836
33837 # Set to yes if linker adds runtime paths of dependent libraries
33838 # to runtime path list.
33839 inherit_rpath=$inherit_rpath_CXX
33840
33841 # Whether libtool must link a program against all its dependency libraries.
33842 link_all_deplibs=$link_all_deplibs_CXX
33843
33844 # Fix the shell variable \$srcfile for the compiler.
33845 fix_srcfile_path=$lt_fix_srcfile_path_CXX
33846
33847 # Set to "yes" if exported symbols are required.
33848 always_export_symbols=$always_export_symbols_CXX
33849
33850 # The commands to list exported symbols.
33851 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33852
33853 # Symbols that should not be listed in the preloaded symbols.
33854 exclude_expsyms=$lt_exclude_expsyms_CXX
33855
33856 # Symbols that must always be exported.
33857 include_expsyms=$lt_include_expsyms_CXX
33858
33859 # Commands necessary for linking programs (against libraries) with templates.
33860 prelink_cmds=$lt_prelink_cmds_CXX
33861
33862 # Specify filename containing input files.
33863 file_list_spec=$lt_file_list_spec_CXX
33864
33865 # How to hardcode a shared library path into an executable.
33866 hardcode_action=$hardcode_action_CXX
33867
33868 # The directories searched by this compiler when creating a shared library.
33869 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33870
33871 # Dependencies to place before and after the objects being linked to
33872 # create a shared library.
33873 predep_objects=$lt_predep_objects_CXX
33874 postdep_objects=$lt_postdep_objects_CXX
33875 predeps=$lt_predeps_CXX
33876 postdeps=$lt_postdeps_CXX
33877
33878 # The library search path used internally by the compiler when linking
33879 # a shared library.
33880 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33881
33882 # ### END LIBTOOL TAG CONFIG: CXX
33883 _LT_EOF
33884
33885  ;;
33886     "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
33887     "Magick-config.in":C) chmod +x magick/Magick-config ;;
33888     "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
33889     "Wand-config.in":C) chmod +x wand/Wand-config ;;
33890     "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
33891     "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
33892
33893   esac
33894 done # for ac_tag
33895
33896
33897 as_fn_exit 0
33898 _ACEOF
33899 ac_clean_files=$ac_clean_files_save
33900
33901 test $ac_write_fail = 0 ||
33902   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
33903
33904
33905 # configure is writing to config.log, and then calls config.status.
33906 # config.status does its own redirection, appending to config.log.
33907 # Unfortunately, on DOS this fails, as config.log is still kept open
33908 # by configure, so config.status won't be able to write to it; its
33909 # output is simply discarded.  So we exec the FD to /dev/null,
33910 # effectively closing config.log, so it can be properly (re)opened and
33911 # appended to by config.status.  When coming back to configure, we
33912 # need to make the FD available again.
33913 if test "$no_create" != yes; then
33914   ac_cs_success=:
33915   ac_config_status_args=
33916   test "$silent" = yes &&
33917     ac_config_status_args="$ac_config_status_args --quiet"
33918   exec 5>/dev/null
33919   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33920   exec 5>>config.log
33921   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33922   # would make configure fail if this is the last instruction.
33923   $ac_cs_success || as_fn_exit $?
33924 fi
33925 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33926   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33927 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33928 fi
33929
33930
33931 rm -f magick-version
33932
33933 result_ghostscript_font_dir='none'
33934 if test "${ghostscript_font_dir}x" != 'x'; then
33935     result_ghostscript_font_dir=$ghostscript_font_dir
33936 fi
33937
33938 result_windows_font_dir='none'
33939 if test "${windows_font_dir}x" != 'x'; then
33940     result_windows_font_dir=${windows_font_dir}
33941 fi
33942
33943 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
33944 ImageMagick is configured as follows. Please verify that this configuration
33945 matches your expectations.
33946
33947 Host system type: $host
33948 Build system type: $build
33949
33950                   Option                        Value
33951 -------------------------------------------------------------------------------
33952 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
33953 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
33954 Module support    --with-modules=$with_modules          $with_modules
33955 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
33956 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
33957 High Dynamic Range Imagery
33958                   --enable-hdri=$enable_hdri            $enable_hdri
33959
33960 Delegate Configuration:
33961 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
33962 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
33963 DJVU              --with-djvu=$with_djvu                $have_djvu
33964 DPS               --with-dps=$with_dps          $have_dps
33965 FFTW              --with-fftw=$with_fftw                $have_fftw
33966 FlashPIX          --with-fpx=$with_fpx          $have_fpx
33967 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
33968 FreeType          --with-freetype=$with_freetype                $have_freetype
33969 GhostPCL          None                          $PCLDelegate ($PCLVersion)
33970 GhostXPS          None                          $XPSDelegate ($XPSVersion)
33971 Ghostscript       None                          $PSDelegate ($GSVersion)
33972 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
33973 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
33974 Graphviz          --with-gvc=$with_gvc          $have_gvc
33975 JBIG              --with-jbig=$with_jbig                $have_jbig
33976 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
33977 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
33978 LCMS              --with-lcms=$with_lcms                $have_lcms
33979 LQR               --with-lqr=$with_lqr          $have_lqr
33980 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
33981 OpenEXR           --with-openexr=$with_openexr          $have_openexr
33982 PERL              --with-perl=$with_perl                $have_perl
33983 PNG               --with-png=$with_png          $have_png
33984 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
33985 TIFF              --with-tiff=$with_tiff                $have_tiff
33986 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
33987 WMF               --with-wmf=$with_wmf          $have_wmf
33988 X11               --with-x=$with_x                      $have_x
33989 XML               --with-xml=$with_xml          $have_xml
33990 ZLIB              --with-zlib=$with_zlib                $have_zlib
33991
33992 X11 Configuration:
33993       X_CFLAGS        = $X_CFLAGS
33994       X_PRE_LIBS      = $X_PRE_LIBS
33995       X_LIBS          = $X_LIBS
33996       X_EXTRA_LIBS    = $X_EXTRA_LIBS
33997
33998 Options used to compile and link:
33999   PREFIX          = $PREFIX_DIR
34000   EXEC-PREFIX     = $EXEC_PREFIX_DIR
34001   VERSION         = $PACKAGE_VERSION
34002   CC              = $CC
34003   CFLAGS          = $CFLAGS
34004   CPPFLAGS        = $MAGICK_CPPFLAGS
34005   PCFLAGS         = $MAGICK_PCFLAGS
34006   DEFS            = $DEFS
34007   LDFLAGS         = $LDFLAGS
34008   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
34009   LIBS            = $MAGICK_LIBS
34010   CXX             = $CXX
34011   CXXFLAGS        = $CXXFLAGS
34012 " >&5
34013 $as_echo "
34014 ImageMagick is configured as follows. Please verify that this configuration
34015 matches your expectations.
34016
34017 Host system type: $host
34018 Build system type: $build
34019
34020                   Option                        Value
34021 -------------------------------------------------------------------------------
34022 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
34023 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
34024 Module support    --with-modules=$with_modules          $with_modules
34025 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
34026 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
34027 High Dynamic Range Imagery
34028                   --enable-hdri=$enable_hdri            $enable_hdri
34029
34030 Delegate Configuration:
34031 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
34032 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
34033 DJVU              --with-djvu=$with_djvu                $have_djvu
34034 DPS               --with-dps=$with_dps          $have_dps
34035 FFTW              --with-fftw=$with_fftw                $have_fftw
34036 FlashPIX          --with-fpx=$with_fpx          $have_fpx
34037 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
34038 FreeType          --with-freetype=$with_freetype                $have_freetype
34039 GhostPCL          None                          $PCLDelegate ($PCLVersion)
34040 GhostXPS          None                          $XPSDelegate ($XPSVersion)
34041 Ghostscript       None                          $PSDelegate ($GSVersion)
34042 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
34043 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
34044 Graphviz          --with-gvc=$with_gvc          $have_gvc
34045 JBIG              --with-jbig=$with_jbig                $have_jbig
34046 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
34047 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
34048 LCMS              --with-lcms=$with_lcms                $have_lcms
34049 LQR               --with-lqr=$with_lqr          $have_lqr
34050 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
34051 OpenEXR           --with-openexr=$with_openexr          $have_openexr
34052 PERL              --with-perl=$with_perl                $have_perl
34053 PNG               --with-png=$with_png          $have_png
34054 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
34055 TIFF              --with-tiff=$with_tiff                $have_tiff
34056 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
34057 WMF               --with-wmf=$with_wmf          $have_wmf
34058 X11               --with-x=$with_x                      $have_x
34059 XML               --with-xml=$with_xml          $have_xml
34060 ZLIB              --with-zlib=$with_zlib                $have_zlib
34061
34062 X11 Configuration:
34063       X_CFLAGS        = $X_CFLAGS
34064       X_PRE_LIBS      = $X_PRE_LIBS
34065       X_LIBS          = $X_LIBS
34066       X_EXTRA_LIBS    = $X_EXTRA_LIBS
34067
34068 Options used to compile and link:
34069   PREFIX          = $PREFIX_DIR
34070   EXEC-PREFIX     = $EXEC_PREFIX_DIR
34071   VERSION         = $PACKAGE_VERSION
34072   CC              = $CC
34073   CFLAGS          = $CFLAGS
34074   CPPFLAGS        = $MAGICK_CPPFLAGS
34075   PCFLAGS         = $MAGICK_PCFLAGS
34076   DEFS            = $DEFS
34077   LDFLAGS         = $LDFLAGS
34078   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
34079   LIBS            = $MAGICK_LIBS
34080   CXX             = $CXX
34081   CXXFLAGS        = $CXXFLAGS
34082 " >&6; }