]> 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 # Standards compliance definitions
3993 #
3994
3995 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3996
3997
3998 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
3999
4000
4001 #
4002 # Evaluate shell variable equivalents to Makefile directory variables
4003 #
4004 if test "x$prefix" = xNONE; then
4005     prefix=$ac_default_prefix
4006 fi
4007 # Let make expand exec_prefix.
4008 if test "x$exec_prefix" = xNONE; then
4009     exec_prefix='${prefix}'
4010 fi
4011
4012 #
4013 eval "eval PREFIX_DIR=${prefix}"
4014
4015 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4016
4017 eval "eval BIN_DIR=$bindir"
4018
4019 eval "eval SBIN_DIR=$sbindir"
4020
4021 eval "eval LIBEXEC_DIR=$libexecdir"
4022
4023 eval "eval DATA_DIR=$datadir"
4024
4025 eval "eval SYSCONF_DIR=$sysconfdir"
4026
4027 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4028
4029 eval "eval LOCALSTATE_DIR=$localstatedir"
4030
4031 eval "eval LIB_DIR=$libdir"
4032
4033 eval "eval INCLUDE_DIR=$includedir"
4034
4035 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4036
4037 eval "eval INFO_DIR=$infodir"
4038
4039 eval "eval MAN_DIR=$mandir"
4040
4041
4042 # Get full paths to source and build directories
4043 srcdirfull="`cd $srcdir && pwd`"
4044 builddir="`pwd`"
4045
4046 #
4047 # Compute variables useful for running uninstalled software.
4048 #
4049 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4050 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4051 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4052 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4053 DIRSEP=':'
4054 case "${build_os}" in
4055     mingw* )
4056         MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4057         MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4058         MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4059         MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4060         DIRSEP=';'
4061     ;;
4062 esac
4063 case "${host_os}" in
4064   mingw* )
4065     DIRSEP=';'
4066     ;;
4067 esac
4068
4069
4070
4071
4072
4073
4074 # Check for programs
4075 ac_ext=c
4076 ac_cpp='$CPP $CPPFLAGS'
4077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080 if test -n "$ac_tool_prefix"; then
4081   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4082 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4084 $as_echo_n "checking for $ac_word... " >&6; }
4085 if test "${ac_cv_prog_CC+set}" = set; then :
4086   $as_echo_n "(cached) " >&6
4087 else
4088   if test -n "$CC"; then
4089   ac_cv_prog_CC="$CC" # Let the user override the test.
4090 else
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH
4093 do
4094   IFS=$as_save_IFS
4095   test -z "$as_dir" && as_dir=.
4096     for ac_exec_ext in '' $ac_executable_extensions; do
4097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4098     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4100     break 2
4101   fi
4102 done
4103   done
4104 IFS=$as_save_IFS
4105
4106 fi
4107 fi
4108 CC=$ac_cv_prog_CC
4109 if test -n "$CC"; then
4110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4111 $as_echo "$CC" >&6; }
4112 else
4113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 $as_echo "no" >&6; }
4115 fi
4116
4117
4118 fi
4119 if test -z "$ac_cv_prog_CC"; then
4120   ac_ct_CC=$CC
4121   # Extract the first word of "gcc", so it can be a program name with args.
4122 set dummy gcc; ac_word=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4126   $as_echo_n "(cached) " >&6
4127 else
4128   if test -n "$ac_ct_CC"; then
4129   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4130 else
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4133 do
4134   IFS=$as_save_IFS
4135   test -z "$as_dir" && as_dir=.
4136     for ac_exec_ext in '' $ac_executable_extensions; do
4137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4138     ac_cv_prog_ac_ct_CC="gcc"
4139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4140     break 2
4141   fi
4142 done
4143   done
4144 IFS=$as_save_IFS
4145
4146 fi
4147 fi
4148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4149 if test -n "$ac_ct_CC"; then
4150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4151 $as_echo "$ac_ct_CC" >&6; }
4152 else
4153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4155 fi
4156
4157   if test "x$ac_ct_CC" = x; then
4158     CC=""
4159   else
4160     case $cross_compiling:$ac_tool_warned in
4161 yes:)
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4164 ac_tool_warned=yes ;;
4165 esac
4166     CC=$ac_ct_CC
4167   fi
4168 else
4169   CC="$ac_cv_prog_CC"
4170 fi
4171
4172 if test -z "$CC"; then
4173           if test -n "$ac_tool_prefix"; then
4174     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4175 set dummy ${ac_tool_prefix}cc; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if test "${ac_cv_prog_CC+set}" = set; then :
4179   $as_echo_n "(cached) " >&6
4180 else
4181   if test -n "$CC"; then
4182   ac_cv_prog_CC="$CC" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4186 do
4187   IFS=$as_save_IFS
4188   test -z "$as_dir" && as_dir=.
4189     for ac_exec_ext in '' $ac_executable_extensions; do
4190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191     ac_cv_prog_CC="${ac_tool_prefix}cc"
4192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193     break 2
4194   fi
4195 done
4196   done
4197 IFS=$as_save_IFS
4198
4199 fi
4200 fi
4201 CC=$ac_cv_prog_CC
4202 if test -n "$CC"; then
4203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4204 $as_echo "$CC" >&6; }
4205 else
4206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4208 fi
4209
4210
4211   fi
4212 fi
4213 if test -z "$CC"; then
4214   # Extract the first word of "cc", so it can be a program name with args.
4215 set dummy cc; ac_word=$2
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 $as_echo_n "checking for $ac_word... " >&6; }
4218 if test "${ac_cv_prog_CC+set}" = set; then :
4219   $as_echo_n "(cached) " >&6
4220 else
4221   if test -n "$CC"; then
4222   ac_cv_prog_CC="$CC" # Let the user override the test.
4223 else
4224   ac_prog_rejected=no
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4227 do
4228   IFS=$as_save_IFS
4229   test -z "$as_dir" && as_dir=.
4230     for ac_exec_ext in '' $ac_executable_extensions; do
4231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4232     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4233        ac_prog_rejected=yes
4234        continue
4235      fi
4236     ac_cv_prog_CC="cc"
4237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238     break 2
4239   fi
4240 done
4241   done
4242 IFS=$as_save_IFS
4243
4244 if test $ac_prog_rejected = yes; then
4245   # We found a bogon in the path, so make sure we never use it.
4246   set dummy $ac_cv_prog_CC
4247   shift
4248   if test $# != 0; then
4249     # We chose a different compiler from the bogus one.
4250     # However, it has the same basename, so the bogon will be chosen
4251     # first if we set CC to just the basename; use the full file name.
4252     shift
4253     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4254   fi
4255 fi
4256 fi
4257 fi
4258 CC=$ac_cv_prog_CC
4259 if test -n "$CC"; then
4260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4261 $as_echo "$CC" >&6; }
4262 else
4263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264 $as_echo "no" >&6; }
4265 fi
4266
4267
4268 fi
4269 if test -z "$CC"; then
4270   if test -n "$ac_tool_prefix"; then
4271   for ac_prog in cl.exe
4272   do
4273     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276 $as_echo_n "checking for $ac_word... " >&6; }
4277 if test "${ac_cv_prog_CC+set}" = set; then :
4278   $as_echo_n "(cached) " >&6
4279 else
4280   if test -n "$CC"; then
4281   ac_cv_prog_CC="$CC" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4285 do
4286   IFS=$as_save_IFS
4287   test -z "$as_dir" && as_dir=.
4288     for ac_exec_ext in '' $ac_executable_extensions; do
4289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4292     break 2
4293   fi
4294 done
4295   done
4296 IFS=$as_save_IFS
4297
4298 fi
4299 fi
4300 CC=$ac_cv_prog_CC
4301 if test -n "$CC"; then
4302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4303 $as_echo "$CC" >&6; }
4304 else
4305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306 $as_echo "no" >&6; }
4307 fi
4308
4309
4310     test -n "$CC" && break
4311   done
4312 fi
4313 if test -z "$CC"; then
4314   ac_ct_CC=$CC
4315   for ac_prog in cl.exe
4316 do
4317   # Extract the first word of "$ac_prog", so it can be a program name with args.
4318 set dummy $ac_prog; ac_word=$2
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320 $as_echo_n "checking for $ac_word... " >&6; }
4321 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4322   $as_echo_n "(cached) " >&6
4323 else
4324   if test -n "$ac_ct_CC"; then
4325   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4326 else
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH
4329 do
4330   IFS=$as_save_IFS
4331   test -z "$as_dir" && as_dir=.
4332     for ac_exec_ext in '' $ac_executable_extensions; do
4333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4334     ac_cv_prog_ac_ct_CC="$ac_prog"
4335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4336     break 2
4337   fi
4338 done
4339   done
4340 IFS=$as_save_IFS
4341
4342 fi
4343 fi
4344 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4345 if test -n "$ac_ct_CC"; then
4346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4347 $as_echo "$ac_ct_CC" >&6; }
4348 else
4349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4351 fi
4352
4353
4354   test -n "$ac_ct_CC" && break
4355 done
4356
4357   if test "x$ac_ct_CC" = x; then
4358     CC=""
4359   else
4360     case $cross_compiling:$ac_tool_warned in
4361 yes:)
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4364 ac_tool_warned=yes ;;
4365 esac
4366     CC=$ac_ct_CC
4367   fi
4368 fi
4369
4370 fi
4371
4372
4373 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4375 as_fn_error "no acceptable C compiler found in \$PATH
4376 See \`config.log' for more details." "$LINENO" 5; }
4377
4378 # Provide some information about the compiler.
4379 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4380 set X $ac_compile
4381 ac_compiler=$2
4382 for ac_option in --version -v -V -qversion; do
4383   { { ac_try="$ac_compiler $ac_option >&5"
4384 case "(($ac_try" in
4385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386   *) ac_try_echo=$ac_try;;
4387 esac
4388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4389 $as_echo "$ac_try_echo"; } >&5
4390   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4391   ac_status=$?
4392   if test -s conftest.err; then
4393     sed '10a\
4394 ... rest of stderr output deleted ...
4395          10q' conftest.err >conftest.er1
4396     cat conftest.er1 >&5
4397   fi
4398   rm -f conftest.er1 conftest.err
4399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400   test $ac_status = 0; }
4401 done
4402
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h.  */
4405
4406 int
4407 main ()
4408 {
4409
4410   ;
4411   return 0;
4412 }
4413 _ACEOF
4414 ac_clean_files_save=$ac_clean_files
4415 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4416 # Try to create an executable without -o first, disregard a.out.
4417 # It will help us diagnose broken compilers, and finding out an intuition
4418 # of exeext.
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4420 $as_echo_n "checking whether the C compiler works... " >&6; }
4421 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4422
4423 # The possible output files:
4424 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4425
4426 ac_rmfiles=
4427 for ac_file in $ac_files
4428 do
4429   case $ac_file in
4430     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4431     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4432   esac
4433 done
4434 rm -f $ac_rmfiles
4435
4436 if { { ac_try="$ac_link_default"
4437 case "(($ac_try" in
4438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439   *) ac_try_echo=$ac_try;;
4440 esac
4441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442 $as_echo "$ac_try_echo"; } >&5
4443   (eval "$ac_link_default") 2>&5
4444   ac_status=$?
4445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446   test $ac_status = 0; }; then :
4447   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4448 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4449 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4450 # so that the user can short-circuit this test for compilers unknown to
4451 # Autoconf.
4452 for ac_file in $ac_files ''
4453 do
4454   test -f "$ac_file" || continue
4455   case $ac_file in
4456     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4457         ;;
4458     [ab].out )
4459         # We found the default executable, but exeext='' is most
4460         # certainly right.
4461         break;;
4462     *.* )
4463         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4464         then :; else
4465            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4466         fi
4467         # We set ac_cv_exeext here because the later test for it is not
4468         # safe: cross compilers may not add the suffix if given an `-o'
4469         # argument, so we may need to know it at that point already.
4470         # Even if this section looks crufty: it has the advantage of
4471         # actually working.
4472         break;;
4473     * )
4474         break;;
4475   esac
4476 done
4477 test "$ac_cv_exeext" = no && ac_cv_exeext=
4478
4479 else
4480   ac_file=''
4481 fi
4482 if test -z "$ac_file"; then :
4483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 $as_echo "no" >&6; }
4485 $as_echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4487
4488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4490 { as_fn_set_status 77
4491 as_fn_error "C compiler cannot create executables
4492 See \`config.log' for more details." "$LINENO" 5; }; }
4493 else
4494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4495 $as_echo "yes" >&6; }
4496 fi
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4498 $as_echo_n "checking for C compiler default output file name... " >&6; }
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4500 $as_echo "$ac_file" >&6; }
4501 ac_exeext=$ac_cv_exeext
4502
4503 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4504 ac_clean_files=$ac_clean_files_save
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4506 $as_echo_n "checking for suffix of executables... " >&6; }
4507 if { { ac_try="$ac_link"
4508 case "(($ac_try" in
4509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510   *) ac_try_echo=$ac_try;;
4511 esac
4512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513 $as_echo "$ac_try_echo"; } >&5
4514   (eval "$ac_link") 2>&5
4515   ac_status=$?
4516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4517   test $ac_status = 0; }; then :
4518   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4519 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4520 # work properly (i.e., refer to `conftest.exe'), while it won't with
4521 # `rm'.
4522 for ac_file in conftest.exe conftest conftest.*; do
4523   test -f "$ac_file" || continue
4524   case $ac_file in
4525     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4526     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4527           break;;
4528     * ) break;;
4529   esac
4530 done
4531 else
4532   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4534 as_fn_error "cannot compute suffix of executables: cannot compile and link
4535 See \`config.log' for more details." "$LINENO" 5; }
4536 fi
4537 rm -f conftest conftest$ac_cv_exeext
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4539 $as_echo "$ac_cv_exeext" >&6; }
4540
4541 rm -f conftest.$ac_ext
4542 EXEEXT=$ac_cv_exeext
4543 ac_exeext=$EXEEXT
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h.  */
4546 #include <stdio.h>
4547 int
4548 main ()
4549 {
4550 FILE *f = fopen ("conftest.out", "w");
4551  return ferror (f) || fclose (f) != 0;
4552
4553   ;
4554   return 0;
4555 }
4556 _ACEOF
4557 ac_clean_files="$ac_clean_files conftest.out"
4558 # Check that the compiler produces executables we can run.  If not, either
4559 # the compiler is broken, or we cross compile.
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4561 $as_echo_n "checking whether we are cross compiling... " >&6; }
4562 if test "$cross_compiling" != yes; then
4563   { { ac_try="$ac_link"
4564 case "(($ac_try" in
4565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566   *) ac_try_echo=$ac_try;;
4567 esac
4568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4569 $as_echo "$ac_try_echo"; } >&5
4570   (eval "$ac_link") 2>&5
4571   ac_status=$?
4572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4573   test $ac_status = 0; }
4574   if { ac_try='./conftest$ac_cv_exeext'
4575   { { case "(($ac_try" in
4576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577   *) ac_try_echo=$ac_try;;
4578 esac
4579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4580 $as_echo "$ac_try_echo"; } >&5
4581   (eval "$ac_try") 2>&5
4582   ac_status=$?
4583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4584   test $ac_status = 0; }; }; then
4585     cross_compiling=no
4586   else
4587     if test "$cross_compiling" = maybe; then
4588         cross_compiling=yes
4589     else
4590         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4592 as_fn_error "cannot run C compiled programs.
4593 If you meant to cross compile, use \`--host'.
4594 See \`config.log' for more details." "$LINENO" 5; }
4595     fi
4596   fi
4597 fi
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4599 $as_echo "$cross_compiling" >&6; }
4600
4601 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4602 ac_clean_files=$ac_clean_files_save
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4604 $as_echo_n "checking for suffix of object files... " >&6; }
4605 if test "${ac_cv_objext+set}" = set; then :
4606   $as_echo_n "(cached) " >&6
4607 else
4608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h.  */
4610
4611 int
4612 main ()
4613 {
4614
4615   ;
4616   return 0;
4617 }
4618 _ACEOF
4619 rm -f conftest.o conftest.obj
4620 if { { ac_try="$ac_compile"
4621 case "(($ac_try" in
4622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623   *) ac_try_echo=$ac_try;;
4624 esac
4625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626 $as_echo "$ac_try_echo"; } >&5
4627   (eval "$ac_compile") 2>&5
4628   ac_status=$?
4629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630   test $ac_status = 0; }; then :
4631   for ac_file in conftest.o conftest.obj conftest.*; do
4632   test -f "$ac_file" || continue;
4633   case $ac_file in
4634     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4635     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4636        break;;
4637   esac
4638 done
4639 else
4640   $as_echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4642
4643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4645 as_fn_error "cannot compute suffix of object files: cannot compile
4646 See \`config.log' for more details." "$LINENO" 5; }
4647 fi
4648 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4649 fi
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4651 $as_echo "$ac_cv_objext" >&6; }
4652 OBJEXT=$ac_cv_objext
4653 ac_objext=$OBJEXT
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4655 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4656 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4657   $as_echo_n "(cached) " >&6
4658 else
4659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h.  */
4661
4662 int
4663 main ()
4664 {
4665 #ifndef __GNUC__
4666        choke me
4667 #endif
4668
4669   ;
4670   return 0;
4671 }
4672 _ACEOF
4673 if ac_fn_c_try_compile "$LINENO"; then :
4674   ac_compiler_gnu=yes
4675 else
4676   ac_compiler_gnu=no
4677 fi
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4680
4681 fi
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4683 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4684 if test $ac_compiler_gnu = yes; then
4685   GCC=yes
4686 else
4687   GCC=
4688 fi
4689 ac_test_CFLAGS=${CFLAGS+set}
4690 ac_save_CFLAGS=$CFLAGS
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4692 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4693 if test "${ac_cv_prog_cc_g+set}" = set; then :
4694   $as_echo_n "(cached) " >&6
4695 else
4696   ac_save_c_werror_flag=$ac_c_werror_flag
4697    ac_c_werror_flag=yes
4698    ac_cv_prog_cc_g=no
4699    CFLAGS="-g"
4700    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h.  */
4702
4703 int
4704 main ()
4705 {
4706
4707   ;
4708   return 0;
4709 }
4710 _ACEOF
4711 if ac_fn_c_try_compile "$LINENO"; then :
4712   ac_cv_prog_cc_g=yes
4713 else
4714   CFLAGS=""
4715       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h.  */
4717
4718 int
4719 main ()
4720 {
4721
4722   ;
4723   return 0;
4724 }
4725 _ACEOF
4726 if ac_fn_c_try_compile "$LINENO"; then :
4727
4728 else
4729   ac_c_werror_flag=$ac_save_c_werror_flag
4730          CFLAGS="-g"
4731          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h.  */
4733
4734 int
4735 main ()
4736 {
4737
4738   ;
4739   return 0;
4740 }
4741 _ACEOF
4742 if ac_fn_c_try_compile "$LINENO"; then :
4743   ac_cv_prog_cc_g=yes
4744 fi
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 fi
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 fi
4749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750    ac_c_werror_flag=$ac_save_c_werror_flag
4751 fi
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4753 $as_echo "$ac_cv_prog_cc_g" >&6; }
4754 if test "$ac_test_CFLAGS" = set; then
4755   CFLAGS=$ac_save_CFLAGS
4756 elif test $ac_cv_prog_cc_g = yes; then
4757   if test "$GCC" = yes; then
4758     CFLAGS="-g -O2"
4759   else
4760     CFLAGS="-g"
4761   fi
4762 else
4763   if test "$GCC" = yes; then
4764     CFLAGS="-O2"
4765   else
4766     CFLAGS=
4767   fi
4768 fi
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4770 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4771 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4772   $as_echo_n "(cached) " >&6
4773 else
4774   ac_cv_prog_cc_c89=no
4775 ac_save_CC=$CC
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h.  */
4778 #include <stdarg.h>
4779 #include <stdio.h>
4780 #include <sys/types.h>
4781 #include <sys/stat.h>
4782 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4783 struct buf { int x; };
4784 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4785 static char *e (p, i)
4786      char **p;
4787      int i;
4788 {
4789   return p[i];
4790 }
4791 static char *f (char * (*g) (char **, int), char **p, ...)
4792 {
4793   char *s;
4794   va_list v;
4795   va_start (v,p);
4796   s = g (p, va_arg (v,int));
4797   va_end (v);
4798   return s;
4799 }
4800
4801 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4802    function prototypes and stuff, but not '\xHH' hex character constants.
4803    These don't provoke an error unfortunately, instead are silently treated
4804    as 'x'.  The following induces an error, until -std is added to get
4805    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4806    array size at least.  It's necessary to write '\x00'==0 to get something
4807    that's true only with -std.  */
4808 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4809
4810 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4811    inside strings and character constants.  */
4812 #define FOO(x) 'x'
4813 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4814
4815 int test (int i, double x);
4816 struct s1 {int (*f) (int a);};
4817 struct s2 {int (*f) (double a);};
4818 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4819 int argc;
4820 char **argv;
4821 int
4822 main ()
4823 {
4824 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4825   ;
4826   return 0;
4827 }
4828 _ACEOF
4829 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4830         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4831 do
4832   CC="$ac_save_CC $ac_arg"
4833   if ac_fn_c_try_compile "$LINENO"; then :
4834   ac_cv_prog_cc_c89=$ac_arg
4835 fi
4836 rm -f core conftest.err conftest.$ac_objext
4837   test "x$ac_cv_prog_cc_c89" != "xno" && break
4838 done
4839 rm -f conftest.$ac_ext
4840 CC=$ac_save_CC
4841
4842 fi
4843 # AC_CACHE_VAL
4844 case "x$ac_cv_prog_cc_c89" in
4845   x)
4846     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4847 $as_echo "none needed" >&6; } ;;
4848   xno)
4849     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4850 $as_echo "unsupported" >&6; } ;;
4851   *)
4852     CC="$CC $ac_cv_prog_cc_c89"
4853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4854 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4855 esac
4856 if test "x$ac_cv_prog_cc_c89" != xno; then :
4857
4858 fi
4859
4860 ac_ext=c
4861 ac_cpp='$CPP $CPPFLAGS'
4862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4865 DEPDIR="${am__leading_dot}deps"
4866
4867 ac_config_commands="$ac_config_commands depfiles"
4868
4869
4870 am_make=${MAKE-make}
4871 cat > confinc << 'END'
4872 am__doit:
4873         @echo this is the am__doit target
4874 .PHONY: am__doit
4875 END
4876 # If we don't find an include directive, just comment out the code.
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4878 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4879 am__include="#"
4880 am__quote=
4881 _am_result=none
4882 # First try GNU make style include.
4883 echo "include confinc" > confmf
4884 # Ignore all kinds of additional output from `make'.
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=GNU
4890   ;;
4891 esac
4892 # Now try BSD make style include.
4893 if test "$am__include" = "#"; then
4894    echo '.include "confinc"' > confmf
4895    case `$am_make -s -f confmf 2> /dev/null` in #(
4896    *the\ am__doit\ target*)
4897      am__include=.include
4898      am__quote="\""
4899      _am_result=BSD
4900      ;;
4901    esac
4902 fi
4903
4904
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4906 $as_echo "$_am_result" >&6; }
4907 rm -f confinc confmf
4908
4909 # Check whether --enable-dependency-tracking was given.
4910 if test "${enable_dependency_tracking+set}" = set; then :
4911   enableval=$enable_dependency_tracking;
4912 fi
4913
4914 if test "x$enable_dependency_tracking" != xno; then
4915   am_depcomp="$ac_aux_dir/depcomp"
4916   AMDEPBACKSLASH='\'
4917 fi
4918  if test "x$enable_dependency_tracking" != xno; then
4919   AMDEP_TRUE=
4920   AMDEP_FALSE='#'
4921 else
4922   AMDEP_TRUE='#'
4923   AMDEP_FALSE=
4924 fi
4925
4926
4927
4928 depcc="$CC"   am_compiler_list=
4929
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4931 $as_echo_n "checking dependency style of $depcc... " >&6; }
4932 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4933   $as_echo_n "(cached) " >&6
4934 else
4935   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4936   # We make a subdir and do the tests there.  Otherwise we can end up
4937   # making bogus files that we don't know about and never remove.  For
4938   # instance it was reported that on HP-UX the gcc test will end up
4939   # making a dummy file named `D' -- because `-MD' means `put the output
4940   # in D'.
4941   mkdir conftest.dir
4942   # Copy depcomp to subdir because otherwise we won't find it if we're
4943   # using a relative directory.
4944   cp "$am_depcomp" conftest.dir
4945   cd conftest.dir
4946   # We will build objects and dependencies in a subdirectory because
4947   # it helps to detect inapplicable dependency modes.  For instance
4948   # both Tru64's cc and ICC support -MD to output dependencies as a
4949   # side effect of compilation, but ICC will put the dependencies in
4950   # the current directory while Tru64 will put them in the object
4951   # directory.
4952   mkdir sub
4953
4954   am_cv_CC_dependencies_compiler_type=none
4955   if test "$am_compiler_list" = ""; then
4956      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4957   fi
4958   am__universal=false
4959   case " $depcc " in #(
4960      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4961      esac
4962
4963   for depmode in $am_compiler_list; do
4964     # Setup a source with many dependencies, because some compilers
4965     # like to wrap large dependency lists on column 80 (with \), and
4966     # we should not choose a depcomp mode which is confused by this.
4967     #
4968     # We need to recreate these files for each test, as the compiler may
4969     # overwrite some of them when testing with obscure command lines.
4970     # This happens at least with the AIX C compiler.
4971     : > sub/conftest.c
4972     for i in 1 2 3 4 5 6; do
4973       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4974       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4975       # Solaris 8's {/usr,}/bin/sh.
4976       touch sub/conftst$i.h
4977     done
4978     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4979
4980     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4981     # mode.  It turns out that the SunPro C++ compiler does not properly
4982     # handle `-M -o', and we need to detect this.  Also, some Intel
4983     # versions had trouble with output in subdirs
4984     am__obj=sub/conftest.${OBJEXT-o}
4985     am__minus_obj="-o $am__obj"
4986     case $depmode in
4987     gcc)
4988       # This depmode causes a compiler race in universal mode.
4989       test "$am__universal" = false || continue
4990       ;;
4991     nosideeffect)
4992       # after this tag, mechanisms are not by side-effect, so they'll
4993       # only be used when explicitly requested
4994       if test "x$enable_dependency_tracking" = xyes; then
4995         continue
4996       else
4997         break
4998       fi
4999       ;;
5000     msvisualcpp | msvcmsys)
5001       # This compiler won't grok `-c -o', but also, the minuso test has
5002       # not run yet.  These depmodes are late enough in the game, and
5003       # so weak that their functioning should not be impacted.
5004       am__obj=conftest.${OBJEXT-o}
5005       am__minus_obj=
5006       ;;
5007     none) break ;;
5008     esac
5009     if depmode=$depmode \
5010        source=sub/conftest.c object=$am__obj \
5011        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5012        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5013          >/dev/null 2>conftest.err &&
5014        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5015        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5016        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5017        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5018       # icc doesn't choke on unknown options, it will just issue warnings
5019       # or remarks (even with -Werror).  So we grep stderr for any message
5020       # that says an option was ignored or not supported.
5021       # When given -MP, icc 7.0 and 7.1 complain thusly:
5022       #   icc: Command line warning: ignoring option '-M'; no argument required
5023       # The diagnosis changed in icc 8.0:
5024       #   icc: Command line remark: option '-MP' not supported
5025       if (grep 'ignoring option' conftest.err ||
5026           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5027         am_cv_CC_dependencies_compiler_type=$depmode
5028         break
5029       fi
5030     fi
5031   done
5032
5033   cd ..
5034   rm -rf conftest.dir
5035 else
5036   am_cv_CC_dependencies_compiler_type=none
5037 fi
5038
5039 fi
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5041 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5042 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5043
5044  if
5045   test "x$enable_dependency_tracking" != xno \
5046   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5047   am__fastdepCC_TRUE=
5048   am__fastdepCC_FALSE='#'
5049 else
5050   am__fastdepCC_TRUE='#'
5051   am__fastdepCC_FALSE=
5052 fi
5053
5054
5055 ac_ext=cpp
5056 ac_cpp='$CXXCPP $CPPFLAGS'
5057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5060 if test -z "$CXX"; then
5061   if test -n "$CCC"; then
5062     CXX=$CCC
5063   else
5064     if test -n "$ac_tool_prefix"; then
5065   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5066   do
5067     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 $as_echo_n "checking for $ac_word... " >&6; }
5071 if test "${ac_cv_prog_CXX+set}" = set; then :
5072   $as_echo_n "(cached) " >&6
5073 else
5074   if test -n "$CXX"; then
5075   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5076 else
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5079 do
5080   IFS=$as_save_IFS
5081   test -z "$as_dir" && as_dir=.
5082     for ac_exec_ext in '' $ac_executable_extensions; do
5083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086     break 2
5087   fi
5088 done
5089   done
5090 IFS=$as_save_IFS
5091
5092 fi
5093 fi
5094 CXX=$ac_cv_prog_CXX
5095 if test -n "$CXX"; then
5096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5097 $as_echo "$CXX" >&6; }
5098 else
5099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5101 fi
5102
5103
5104     test -n "$CXX" && break
5105   done
5106 fi
5107 if test -z "$CXX"; then
5108   ac_ct_CXX=$CXX
5109   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5110 do
5111   # Extract the first word of "$ac_prog", so it can be a program name with args.
5112 set dummy $ac_prog; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5116   $as_echo_n "(cached) " >&6
5117 else
5118   if test -n "$ac_ct_CXX"; then
5119   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5120 else
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124   IFS=$as_save_IFS
5125   test -z "$as_dir" && as_dir=.
5126     for ac_exec_ext in '' $ac_executable_extensions; do
5127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128     ac_cv_prog_ac_ct_CXX="$ac_prog"
5129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130     break 2
5131   fi
5132 done
5133   done
5134 IFS=$as_save_IFS
5135
5136 fi
5137 fi
5138 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5139 if test -n "$ac_ct_CXX"; then
5140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5141 $as_echo "$ac_ct_CXX" >&6; }
5142 else
5143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5145 fi
5146
5147
5148   test -n "$ac_ct_CXX" && break
5149 done
5150
5151   if test "x$ac_ct_CXX" = x; then
5152     CXX="g++"
5153   else
5154     case $cross_compiling:$ac_tool_warned in
5155 yes:)
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5158 ac_tool_warned=yes ;;
5159 esac
5160     CXX=$ac_ct_CXX
5161   fi
5162 fi
5163
5164   fi
5165 fi
5166 # Provide some information about the compiler.
5167 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5168 set X $ac_compile
5169 ac_compiler=$2
5170 for ac_option in --version -v -V -qversion; do
5171   { { ac_try="$ac_compiler $ac_option >&5"
5172 case "(($ac_try" in
5173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174   *) ac_try_echo=$ac_try;;
5175 esac
5176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5177 $as_echo "$ac_try_echo"; } >&5
5178   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5179   ac_status=$?
5180   if test -s conftest.err; then
5181     sed '10a\
5182 ... rest of stderr output deleted ...
5183          10q' conftest.err >conftest.er1
5184     cat conftest.er1 >&5
5185   fi
5186   rm -f conftest.er1 conftest.err
5187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5188   test $ac_status = 0; }
5189 done
5190
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5192 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5193 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5194   $as_echo_n "(cached) " >&6
5195 else
5196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h.  */
5198
5199 int
5200 main ()
5201 {
5202 #ifndef __GNUC__
5203        choke me
5204 #endif
5205
5206   ;
5207   return 0;
5208 }
5209 _ACEOF
5210 if ac_fn_cxx_try_compile "$LINENO"; then :
5211   ac_compiler_gnu=yes
5212 else
5213   ac_compiler_gnu=no
5214 fi
5215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5217
5218 fi
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5220 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5221 if test $ac_compiler_gnu = yes; then
5222   GXX=yes
5223 else
5224   GXX=
5225 fi
5226 ac_test_CXXFLAGS=${CXXFLAGS+set}
5227 ac_save_CXXFLAGS=$CXXFLAGS
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5229 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5230 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5231   $as_echo_n "(cached) " >&6
5232 else
5233   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5234    ac_cxx_werror_flag=yes
5235    ac_cv_prog_cxx_g=no
5236    CXXFLAGS="-g"
5237    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h.  */
5239
5240 int
5241 main ()
5242 {
5243
5244   ;
5245   return 0;
5246 }
5247 _ACEOF
5248 if ac_fn_cxx_try_compile "$LINENO"; then :
5249   ac_cv_prog_cxx_g=yes
5250 else
5251   CXXFLAGS=""
5252       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h.  */
5254
5255 int
5256 main ()
5257 {
5258
5259   ;
5260   return 0;
5261 }
5262 _ACEOF
5263 if ac_fn_cxx_try_compile "$LINENO"; then :
5264
5265 else
5266   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5267          CXXFLAGS="-g"
5268          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h.  */
5270
5271 int
5272 main ()
5273 {
5274
5275   ;
5276   return 0;
5277 }
5278 _ACEOF
5279 if ac_fn_cxx_try_compile "$LINENO"; then :
5280   ac_cv_prog_cxx_g=yes
5281 fi
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283 fi
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 fi
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5288 fi
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5290 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5291 if test "$ac_test_CXXFLAGS" = set; then
5292   CXXFLAGS=$ac_save_CXXFLAGS
5293 elif test $ac_cv_prog_cxx_g = yes; then
5294   if test "$GXX" = yes; then
5295     CXXFLAGS="-g -O2"
5296   else
5297     CXXFLAGS="-g"
5298   fi
5299 else
5300   if test "$GXX" = yes; then
5301     CXXFLAGS="-O2"
5302   else
5303     CXXFLAGS=
5304   fi
5305 fi
5306 ac_ext=c
5307 ac_cpp='$CPP $CPPFLAGS'
5308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311
5312 depcc="$CXX"  am_compiler_list=
5313
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5315 $as_echo_n "checking dependency style of $depcc... " >&6; }
5316 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5317   $as_echo_n "(cached) " >&6
5318 else
5319   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5320   # We make a subdir and do the tests there.  Otherwise we can end up
5321   # making bogus files that we don't know about and never remove.  For
5322   # instance it was reported that on HP-UX the gcc test will end up
5323   # making a dummy file named `D' -- because `-MD' means `put the output
5324   # in D'.
5325   mkdir conftest.dir
5326   # Copy depcomp to subdir because otherwise we won't find it if we're
5327   # using a relative directory.
5328   cp "$am_depcomp" conftest.dir
5329   cd conftest.dir
5330   # We will build objects and dependencies in a subdirectory because
5331   # it helps to detect inapplicable dependency modes.  For instance
5332   # both Tru64's cc and ICC support -MD to output dependencies as a
5333   # side effect of compilation, but ICC will put the dependencies in
5334   # the current directory while Tru64 will put them in the object
5335   # directory.
5336   mkdir sub
5337
5338   am_cv_CXX_dependencies_compiler_type=none
5339   if test "$am_compiler_list" = ""; then
5340      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5341   fi
5342   am__universal=false
5343   case " $depcc " in #(
5344      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5345      esac
5346
5347   for depmode in $am_compiler_list; do
5348     # Setup a source with many dependencies, because some compilers
5349     # like to wrap large dependency lists on column 80 (with \), and
5350     # we should not choose a depcomp mode which is confused by this.
5351     #
5352     # We need to recreate these files for each test, as the compiler may
5353     # overwrite some of them when testing with obscure command lines.
5354     # This happens at least with the AIX C compiler.
5355     : > sub/conftest.c
5356     for i in 1 2 3 4 5 6; do
5357       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5358       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5359       # Solaris 8's {/usr,}/bin/sh.
5360       touch sub/conftst$i.h
5361     done
5362     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5363
5364     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5365     # mode.  It turns out that the SunPro C++ compiler does not properly
5366     # handle `-M -o', and we need to detect this.  Also, some Intel
5367     # versions had trouble with output in subdirs
5368     am__obj=sub/conftest.${OBJEXT-o}
5369     am__minus_obj="-o $am__obj"
5370     case $depmode in
5371     gcc)
5372       # This depmode causes a compiler race in universal mode.
5373       test "$am__universal" = false || continue
5374       ;;
5375     nosideeffect)
5376       # after this tag, mechanisms are not by side-effect, so they'll
5377       # only be used when explicitly requested
5378       if test "x$enable_dependency_tracking" = xyes; then
5379         continue
5380       else
5381         break
5382       fi
5383       ;;
5384     msvisualcpp | msvcmsys)
5385       # This compiler won't grok `-c -o', but also, the minuso test has
5386       # not run yet.  These depmodes are late enough in the game, and
5387       # so weak that their functioning should not be impacted.
5388       am__obj=conftest.${OBJEXT-o}
5389       am__minus_obj=
5390       ;;
5391     none) break ;;
5392     esac
5393     if depmode=$depmode \
5394        source=sub/conftest.c object=$am__obj \
5395        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5396        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5397          >/dev/null 2>conftest.err &&
5398        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5399        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5400        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5401        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5402       # icc doesn't choke on unknown options, it will just issue warnings
5403       # or remarks (even with -Werror).  So we grep stderr for any message
5404       # that says an option was ignored or not supported.
5405       # When given -MP, icc 7.0 and 7.1 complain thusly:
5406       #   icc: Command line warning: ignoring option '-M'; no argument required
5407       # The diagnosis changed in icc 8.0:
5408       #   icc: Command line remark: option '-MP' not supported
5409       if (grep 'ignoring option' conftest.err ||
5410           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5411         am_cv_CXX_dependencies_compiler_type=$depmode
5412         break
5413       fi
5414     fi
5415   done
5416
5417   cd ..
5418   rm -rf conftest.dir
5419 else
5420   am_cv_CXX_dependencies_compiler_type=none
5421 fi
5422
5423 fi
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5425 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5426 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5427
5428  if
5429   test "x$enable_dependency_tracking" != xno \
5430   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5431   am__fastdepCXX_TRUE=
5432   am__fastdepCXX_FALSE='#'
5433 else
5434   am__fastdepCXX_TRUE='#'
5435   am__fastdepCXX_FALSE=
5436 fi
5437
5438
5439    case $ac_cv_prog_cc_stdc in #(
5440   no) :
5441     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5442   *) :
5443     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5444 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5445 if test "${ac_cv_prog_cc_c99+set}" = set; then :
5446   $as_echo_n "(cached) " >&6
5447 else
5448   ac_cv_prog_cc_c99=no
5449 ac_save_CC=$CC
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h.  */
5452 #include <stdarg.h>
5453 #include <stdbool.h>
5454 #include <stdlib.h>
5455 #include <wchar.h>
5456 #include <stdio.h>
5457
5458 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
5459 #define debug(...) fprintf (stderr, __VA_ARGS__)
5460 #define showlist(...) puts (#__VA_ARGS__)
5461 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5462 static void
5463 test_varargs_macros (void)
5464 {
5465   int x = 1234;
5466   int y = 5678;
5467   debug ("Flag");
5468   debug ("X = %d\n", x);
5469   showlist (The first, second, and third items.);
5470   report (x>y, "x is %d but y is %d", x, y);
5471 }
5472
5473 // Check long long types.
5474 #define BIG64 18446744073709551615ull
5475 #define BIG32 4294967295ul
5476 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5477 #if !BIG_OK
5478   your preprocessor is broken;
5479 #endif
5480 #if BIG_OK
5481 #else
5482   your preprocessor is broken;
5483 #endif
5484 static long long int bignum = -9223372036854775807LL;
5485 static unsigned long long int ubignum = BIG64;
5486
5487 struct incomplete_array
5488 {
5489   int datasize;
5490   double data[];
5491 };
5492
5493 struct named_init {
5494   int number;
5495   const wchar_t *name;
5496   double average;
5497 };
5498
5499 typedef const char *ccp;
5500
5501 static inline int
5502 test_restrict (ccp restrict text)
5503 {
5504   // See if C++-style comments work.
5505   // Iterate through items via the restricted pointer.
5506   // Also check for declarations in for loops.
5507   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5508     continue;
5509   return 0;
5510 }
5511
5512 // Check varargs and va_copy.
5513 static void
5514 test_varargs (const char *format, ...)
5515 {
5516   va_list args;
5517   va_start (args, format);
5518   va_list args_copy;
5519   va_copy (args_copy, args);
5520
5521   const char *str;
5522   int number;
5523   float fnumber;
5524
5525   while (*format)
5526     {
5527       switch (*format++)
5528         {
5529         case 's': // string
5530           str = va_arg (args_copy, const char *);
5531           break;
5532         case 'd': // int
5533           number = va_arg (args_copy, int);
5534           break;
5535         case 'f': // float
5536           fnumber = va_arg (args_copy, double);
5537           break;
5538         default:
5539           break;
5540         }
5541     }
5542   va_end (args_copy);
5543   va_end (args);
5544 }
5545
5546 int
5547 main ()
5548 {
5549
5550   // Check bool.
5551   _Bool success = false;
5552
5553   // Check restrict.
5554   if (test_restrict ("String literal") == 0)
5555     success = true;
5556   char *restrict newvar = "Another string";
5557
5558   // Check varargs.
5559   test_varargs ("s, d' f .", "string", 65, 34.234);
5560   test_varargs_macros ();
5561
5562   // Check flexible array members.
5563   struct incomplete_array *ia =
5564     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5565   ia->datasize = 10;
5566   for (int i = 0; i < ia->datasize; ++i)
5567     ia->data[i] = i * 1.234;
5568
5569   // Check named initializers.
5570   struct named_init ni = {
5571     .number = 34,
5572     .name = L"Test wide string",
5573     .average = 543.34343,
5574   };
5575
5576   ni.number = 58;
5577
5578   int dynamic_array[ni.number];
5579   dynamic_array[ni.number - 1] = 543;
5580
5581   // work around unused variable warnings
5582   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5583           || dynamic_array[ni.number - 1] != 543);
5584
5585   ;
5586   return 0;
5587 }
5588 _ACEOF
5589 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5590 do
5591   CC="$ac_save_CC $ac_arg"
5592   if ac_fn_c_try_compile "$LINENO"; then :
5593   ac_cv_prog_cc_c99=$ac_arg
5594 fi
5595 rm -f core conftest.err conftest.$ac_objext
5596   test "x$ac_cv_prog_cc_c99" != "xno" && break
5597 done
5598 rm -f conftest.$ac_ext
5599 CC=$ac_save_CC
5600
5601 fi
5602 # AC_CACHE_VAL
5603 case "x$ac_cv_prog_cc_c99" in
5604   x)
5605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5606 $as_echo "none needed" >&6; } ;;
5607   xno)
5608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5609 $as_echo "unsupported" >&6; } ;;
5610   *)
5611     CC="$CC $ac_cv_prog_cc_c99"
5612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5613 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5614 esac
5615 if test "x$ac_cv_prog_cc_c99" != xno; then :
5616   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5617 else
5618   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5619 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5620 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5621   $as_echo_n "(cached) " >&6
5622 else
5623   ac_cv_prog_cc_c89=no
5624 ac_save_CC=$CC
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h.  */
5627 #include <stdarg.h>
5628 #include <stdio.h>
5629 #include <sys/types.h>
5630 #include <sys/stat.h>
5631 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5632 struct buf { int x; };
5633 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5634 static char *e (p, i)
5635      char **p;
5636      int i;
5637 {
5638   return p[i];
5639 }
5640 static char *f (char * (*g) (char **, int), char **p, ...)
5641 {
5642   char *s;
5643   va_list v;
5644   va_start (v,p);
5645   s = g (p, va_arg (v,int));
5646   va_end (v);
5647   return s;
5648 }
5649
5650 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5651    function prototypes and stuff, but not '\xHH' hex character constants.
5652    These don't provoke an error unfortunately, instead are silently treated
5653    as 'x'.  The following induces an error, until -std is added to get
5654    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5655    array size at least.  It's necessary to write '\x00'==0 to get something
5656    that's true only with -std.  */
5657 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5658
5659 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5660    inside strings and character constants.  */
5661 #define FOO(x) 'x'
5662 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5663
5664 int test (int i, double x);
5665 struct s1 {int (*f) (int a);};
5666 struct s2 {int (*f) (double a);};
5667 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5668 int argc;
5669 char **argv;
5670 int
5671 main ()
5672 {
5673 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5674   ;
5675   return 0;
5676 }
5677 _ACEOF
5678 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5679         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5680 do
5681   CC="$ac_save_CC $ac_arg"
5682   if ac_fn_c_try_compile "$LINENO"; then :
5683   ac_cv_prog_cc_c89=$ac_arg
5684 fi
5685 rm -f core conftest.err conftest.$ac_objext
5686   test "x$ac_cv_prog_cc_c89" != "xno" && break
5687 done
5688 rm -f conftest.$ac_ext
5689 CC=$ac_save_CC
5690
5691 fi
5692 # AC_CACHE_VAL
5693 case "x$ac_cv_prog_cc_c89" in
5694   x)
5695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5696 $as_echo "none needed" >&6; } ;;
5697   xno)
5698     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5699 $as_echo "unsupported" >&6; } ;;
5700   *)
5701     CC="$CC $ac_cv_prog_cc_c89"
5702     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5703 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5704 esac
5705 if test "x$ac_cv_prog_cc_c89" != xno; then :
5706   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5707 else
5708   ac_cv_prog_cc_stdc=no
5709 fi
5710
5711 fi
5712  ;;
5713 esac
5714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5715 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5716   if test "${ac_cv_prog_cc_stdc+set}" = set; then :
5717   $as_echo_n "(cached) " >&6
5718 fi
5719
5720   case $ac_cv_prog_cc_stdc in #(
5721   no) :
5722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5723 $as_echo "unsupported" >&6; } ;; #(
5724   '') :
5725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5726 $as_echo "none needed" >&6; } ;; #(
5727   *) :
5728     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5729 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5730 esac
5731
5732 ac_ext=c
5733 ac_cpp='$CPP $CPPFLAGS'
5734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5738 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5739 # On Suns, sometimes $CPP names a directory.
5740 if test -n "$CPP" && test -d "$CPP"; then
5741   CPP=
5742 fi
5743 if test -z "$CPP"; then
5744   if test "${ac_cv_prog_CPP+set}" = set; then :
5745   $as_echo_n "(cached) " >&6
5746 else
5747       # Double quotes because CPP needs to be expanded
5748     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5749     do
5750       ac_preproc_ok=false
5751 for ac_c_preproc_warn_flag in '' yes
5752 do
5753   # Use a header file that comes with gcc, so configuring glibc
5754   # with a fresh cross-compiler works.
5755   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5756   # <limits.h> exists even on freestanding compilers.
5757   # On the NeXT, cc -E runs the code through the compiler's parser,
5758   # not just through cpp. "Syntax error" is here to catch this case.
5759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h.  */
5761 #ifdef __STDC__
5762 # include <limits.h>
5763 #else
5764 # include <assert.h>
5765 #endif
5766                      Syntax error
5767 _ACEOF
5768 if ac_fn_c_try_cpp "$LINENO"; then :
5769
5770 else
5771   # Broken: fails on valid input.
5772 continue
5773 fi
5774 rm -f conftest.err conftest.$ac_ext
5775
5776   # OK, works on sane cases.  Now check whether nonexistent headers
5777   # can be detected and how.
5778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h.  */
5780 #include <ac_nonexistent.h>
5781 _ACEOF
5782 if ac_fn_c_try_cpp "$LINENO"; then :
5783   # Broken: success on invalid input.
5784 continue
5785 else
5786   # Passes both tests.
5787 ac_preproc_ok=:
5788 break
5789 fi
5790 rm -f conftest.err conftest.$ac_ext
5791
5792 done
5793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5794 rm -f conftest.err conftest.$ac_ext
5795 if $ac_preproc_ok; then :
5796   break
5797 fi
5798
5799     done
5800     ac_cv_prog_CPP=$CPP
5801
5802 fi
5803   CPP=$ac_cv_prog_CPP
5804 else
5805   ac_cv_prog_CPP=$CPP
5806 fi
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5808 $as_echo "$CPP" >&6; }
5809 ac_preproc_ok=false
5810 for ac_c_preproc_warn_flag in '' yes
5811 do
5812   # Use a header file that comes with gcc, so configuring glibc
5813   # with a fresh cross-compiler works.
5814   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5815   # <limits.h> exists even on freestanding compilers.
5816   # On the NeXT, cc -E runs the code through the compiler's parser,
5817   # not just through cpp. "Syntax error" is here to catch this case.
5818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h.  */
5820 #ifdef __STDC__
5821 # include <limits.h>
5822 #else
5823 # include <assert.h>
5824 #endif
5825                      Syntax error
5826 _ACEOF
5827 if ac_fn_c_try_cpp "$LINENO"; then :
5828
5829 else
5830   # Broken: fails on valid input.
5831 continue
5832 fi
5833 rm -f conftest.err conftest.$ac_ext
5834
5835   # OK, works on sane cases.  Now check whether nonexistent headers
5836   # can be detected and how.
5837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h.  */
5839 #include <ac_nonexistent.h>
5840 _ACEOF
5841 if ac_fn_c_try_cpp "$LINENO"; then :
5842   # Broken: success on invalid input.
5843 continue
5844 else
5845   # Passes both tests.
5846 ac_preproc_ok=:
5847 break
5848 fi
5849 rm -f conftest.err conftest.$ac_ext
5850
5851 done
5852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5853 rm -f conftest.err conftest.$ac_ext
5854 if $ac_preproc_ok; then :
5855
5856 else
5857   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5859 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5860 See \`config.log' for more details." "$LINENO" 5; }
5861 fi
5862
5863 ac_ext=c
5864 ac_cpp='$CPP $CPPFLAGS'
5865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5868
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5870 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5871 if test "${ac_cv_path_SED+set}" = set; then :
5872   $as_echo_n "(cached) " >&6
5873 else
5874             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5875      for ac_i in 1 2 3 4 5 6 7; do
5876        ac_script="$ac_script$as_nl$ac_script"
5877      done
5878      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5879      { ac_script=; unset ac_script;}
5880      if test -z "$SED"; then
5881   ac_path_SED_found=false
5882   # Loop through the user's path and test for each of PROGNAME-LIST
5883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886   IFS=$as_save_IFS
5887   test -z "$as_dir" && as_dir=.
5888     for ac_prog in sed gsed; do
5889     for ac_exec_ext in '' $ac_executable_extensions; do
5890       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5891       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5892 # Check for GNU ac_path_SED and select it if it is found.
5893   # Check for GNU $ac_path_SED
5894 case `"$ac_path_SED" --version 2>&1` in
5895 *GNU*)
5896   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5897 *)
5898   ac_count=0
5899   $as_echo_n 0123456789 >"conftest.in"
5900   while :
5901   do
5902     cat "conftest.in" "conftest.in" >"conftest.tmp"
5903     mv "conftest.tmp" "conftest.in"
5904     cp "conftest.in" "conftest.nl"
5905     $as_echo '' >> "conftest.nl"
5906     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5907     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5908     as_fn_arith $ac_count + 1 && ac_count=$as_val
5909     if test $ac_count -gt ${ac_path_SED_max-0}; then
5910       # Best one so far, save it but keep looking for a better one
5911       ac_cv_path_SED="$ac_path_SED"
5912       ac_path_SED_max=$ac_count
5913     fi
5914     # 10*(2^10) chars as input seems more than enough
5915     test $ac_count -gt 10 && break
5916   done
5917   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5918 esac
5919
5920       $ac_path_SED_found && break 3
5921     done
5922   done
5923   done
5924 IFS=$as_save_IFS
5925   if test -z "$ac_cv_path_SED"; then
5926     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5927   fi
5928 else
5929   ac_cv_path_SED=$SED
5930 fi
5931
5932 fi
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5934 $as_echo "$ac_cv_path_SED" >&6; }
5935  SED="$ac_cv_path_SED"
5936   rm -f conftest.sed
5937
5938 test -z "$SED" && SED=sed
5939 Xsed="$SED -e 1s/^X//"
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5952 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5953 if test "${ac_cv_path_GREP+set}" = set; then :
5954   $as_echo_n "(cached) " >&6
5955 else
5956   if test -z "$GREP"; then
5957   ac_path_GREP_found=false
5958   # Loop through the user's path and test for each of PROGNAME-LIST
5959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5961 do
5962   IFS=$as_save_IFS
5963   test -z "$as_dir" && as_dir=.
5964     for ac_prog in grep ggrep; do
5965     for ac_exec_ext in '' $ac_executable_extensions; do
5966       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5967       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5968 # Check for GNU ac_path_GREP and select it if it is found.
5969   # Check for GNU $ac_path_GREP
5970 case `"$ac_path_GREP" --version 2>&1` in
5971 *GNU*)
5972   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5973 *)
5974   ac_count=0
5975   $as_echo_n 0123456789 >"conftest.in"
5976   while :
5977   do
5978     cat "conftest.in" "conftest.in" >"conftest.tmp"
5979     mv "conftest.tmp" "conftest.in"
5980     cp "conftest.in" "conftest.nl"
5981     $as_echo 'GREP' >> "conftest.nl"
5982     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5983     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5984     as_fn_arith $ac_count + 1 && ac_count=$as_val
5985     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5986       # Best one so far, save it but keep looking for a better one
5987       ac_cv_path_GREP="$ac_path_GREP"
5988       ac_path_GREP_max=$ac_count
5989     fi
5990     # 10*(2^10) chars as input seems more than enough
5991     test $ac_count -gt 10 && break
5992   done
5993   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5994 esac
5995
5996       $ac_path_GREP_found && break 3
5997     done
5998   done
5999   done
6000 IFS=$as_save_IFS
6001   if test -z "$ac_cv_path_GREP"; then
6002     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6003   fi
6004 else
6005   ac_cv_path_GREP=$GREP
6006 fi
6007
6008 fi
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6010 $as_echo "$ac_cv_path_GREP" >&6; }
6011  GREP="$ac_cv_path_GREP"
6012
6013
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6015 $as_echo_n "checking for egrep... " >&6; }
6016 if test "${ac_cv_path_EGREP+set}" = set; then :
6017   $as_echo_n "(cached) " >&6
6018 else
6019   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6020    then ac_cv_path_EGREP="$GREP -E"
6021    else
6022      if test -z "$EGREP"; then
6023   ac_path_EGREP_found=false
6024   # Loop through the user's path and test for each of PROGNAME-LIST
6025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6027 do
6028   IFS=$as_save_IFS
6029   test -z "$as_dir" && as_dir=.
6030     for ac_prog in egrep; do
6031     for ac_exec_ext in '' $ac_executable_extensions; do
6032       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6033       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6034 # Check for GNU ac_path_EGREP and select it if it is found.
6035   # Check for GNU $ac_path_EGREP
6036 case `"$ac_path_EGREP" --version 2>&1` in
6037 *GNU*)
6038   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6039 *)
6040   ac_count=0
6041   $as_echo_n 0123456789 >"conftest.in"
6042   while :
6043   do
6044     cat "conftest.in" "conftest.in" >"conftest.tmp"
6045     mv "conftest.tmp" "conftest.in"
6046     cp "conftest.in" "conftest.nl"
6047     $as_echo 'EGREP' >> "conftest.nl"
6048     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6049     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6050     as_fn_arith $ac_count + 1 && ac_count=$as_val
6051     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6052       # Best one so far, save it but keep looking for a better one
6053       ac_cv_path_EGREP="$ac_path_EGREP"
6054       ac_path_EGREP_max=$ac_count
6055     fi
6056     # 10*(2^10) chars as input seems more than enough
6057     test $ac_count -gt 10 && break
6058   done
6059   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6060 esac
6061
6062       $ac_path_EGREP_found && break 3
6063     done
6064   done
6065   done
6066 IFS=$as_save_IFS
6067   if test -z "$ac_cv_path_EGREP"; then
6068     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6069   fi
6070 else
6071   ac_cv_path_EGREP=$EGREP
6072 fi
6073
6074    fi
6075 fi
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6077 $as_echo "$ac_cv_path_EGREP" >&6; }
6078  EGREP="$ac_cv_path_EGREP"
6079
6080
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6082 $as_echo_n "checking for fgrep... " >&6; }
6083 if test "${ac_cv_path_FGREP+set}" = set; then :
6084   $as_echo_n "(cached) " >&6
6085 else
6086   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6087    then ac_cv_path_FGREP="$GREP -F"
6088    else
6089      if test -z "$FGREP"; then
6090   ac_path_FGREP_found=false
6091   # Loop through the user's path and test for each of PROGNAME-LIST
6092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6094 do
6095   IFS=$as_save_IFS
6096   test -z "$as_dir" && as_dir=.
6097     for ac_prog in fgrep; do
6098     for ac_exec_ext in '' $ac_executable_extensions; do
6099       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6100       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6101 # Check for GNU ac_path_FGREP and select it if it is found.
6102   # Check for GNU $ac_path_FGREP
6103 case `"$ac_path_FGREP" --version 2>&1` in
6104 *GNU*)
6105   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6106 *)
6107   ac_count=0
6108   $as_echo_n 0123456789 >"conftest.in"
6109   while :
6110   do
6111     cat "conftest.in" "conftest.in" >"conftest.tmp"
6112     mv "conftest.tmp" "conftest.in"
6113     cp "conftest.in" "conftest.nl"
6114     $as_echo 'FGREP' >> "conftest.nl"
6115     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6116     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6117     as_fn_arith $ac_count + 1 && ac_count=$as_val
6118     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6119       # Best one so far, save it but keep looking for a better one
6120       ac_cv_path_FGREP="$ac_path_FGREP"
6121       ac_path_FGREP_max=$ac_count
6122     fi
6123     # 10*(2^10) chars as input seems more than enough
6124     test $ac_count -gt 10 && break
6125   done
6126   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6127 esac
6128
6129       $ac_path_FGREP_found && break 3
6130     done
6131   done
6132   done
6133 IFS=$as_save_IFS
6134   if test -z "$ac_cv_path_FGREP"; then
6135     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6136   fi
6137 else
6138   ac_cv_path_FGREP=$FGREP
6139 fi
6140
6141    fi
6142 fi
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6144 $as_echo "$ac_cv_path_FGREP" >&6; }
6145  FGREP="$ac_cv_path_FGREP"
6146
6147
6148 test -z "$GREP" && GREP=grep
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168 # Check whether --with-gnu-ld was given.
6169 if test "${with_gnu_ld+set}" = set; then :
6170   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6171 else
6172   with_gnu_ld=no
6173 fi
6174
6175 ac_prog=ld
6176 if test "$GCC" = yes; then
6177   # Check if gcc -print-prog-name=ld gives a path.
6178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6179 $as_echo_n "checking for ld used by $CC... " >&6; }
6180   case $host in
6181   *-*-mingw*)
6182     # gcc leaves a trailing carriage return which upsets mingw
6183     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6184   *)
6185     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6186   esac
6187   case $ac_prog in
6188     # Accept absolute paths.
6189     [\\/]* | ?:[\\/]*)
6190       re_direlt='/[^/][^/]*/\.\./'
6191       # Canonicalize the pathname of ld
6192       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6193       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6194         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6195       done
6196       test -z "$LD" && LD="$ac_prog"
6197       ;;
6198   "")
6199     # If it fails, then pretend we aren't using GCC.
6200     ac_prog=ld
6201     ;;
6202   *)
6203     # If it is relative, then search for the first ld in PATH.
6204     with_gnu_ld=unknown
6205     ;;
6206   esac
6207 elif test "$with_gnu_ld" = yes; then
6208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6209 $as_echo_n "checking for GNU ld... " >&6; }
6210 else
6211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6212 $as_echo_n "checking for non-GNU ld... " >&6; }
6213 fi
6214 if test "${lt_cv_path_LD+set}" = set; then :
6215   $as_echo_n "(cached) " >&6
6216 else
6217   if test -z "$LD"; then
6218   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6219   for ac_dir in $PATH; do
6220     IFS="$lt_save_ifs"
6221     test -z "$ac_dir" && ac_dir=.
6222     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6223       lt_cv_path_LD="$ac_dir/$ac_prog"
6224       # Check to see if the program is GNU ld.  I'd rather use --version,
6225       # but apparently some variants of GNU ld only accept -v.
6226       # Break only if it was the GNU/non-GNU ld that we prefer.
6227       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6228       *GNU* | *'with BFD'*)
6229         test "$with_gnu_ld" != no && break
6230         ;;
6231       *)
6232         test "$with_gnu_ld" != yes && break
6233         ;;
6234       esac
6235     fi
6236   done
6237   IFS="$lt_save_ifs"
6238 else
6239   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6240 fi
6241 fi
6242
6243 LD="$lt_cv_path_LD"
6244 if test -n "$LD"; then
6245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6246 $as_echo "$LD" >&6; }
6247 else
6248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249 $as_echo "no" >&6; }
6250 fi
6251 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6253 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6254 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6255   $as_echo_n "(cached) " >&6
6256 else
6257   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6258 case `$LD -v 2>&1 </dev/null` in
6259 *GNU* | *'with BFD'*)
6260   lt_cv_prog_gnu_ld=yes
6261   ;;
6262 *)
6263   lt_cv_prog_gnu_ld=no
6264   ;;
6265 esac
6266 fi
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6268 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6269 with_gnu_ld=$lt_cv_prog_gnu_ld
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279 if test -n "$ac_tool_prefix"; then
6280   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6281 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283 $as_echo_n "checking for $ac_word... " >&6; }
6284 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6285   $as_echo_n "(cached) " >&6
6286 else
6287   if test -n "$RANLIB"; then
6288   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6289 else
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293   IFS=$as_save_IFS
6294   test -z "$as_dir" && as_dir=.
6295     for ac_exec_ext in '' $ac_executable_extensions; do
6296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299     break 2
6300   fi
6301 done
6302   done
6303 IFS=$as_save_IFS
6304
6305 fi
6306 fi
6307 RANLIB=$ac_cv_prog_RANLIB
6308 if test -n "$RANLIB"; then
6309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6310 $as_echo "$RANLIB" >&6; }
6311 else
6312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313 $as_echo "no" >&6; }
6314 fi
6315
6316
6317 fi
6318 if test -z "$ac_cv_prog_RANLIB"; then
6319   ac_ct_RANLIB=$RANLIB
6320   # Extract the first word of "ranlib", so it can be a program name with args.
6321 set dummy ranlib; ac_word=$2
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323 $as_echo_n "checking for $ac_word... " >&6; }
6324 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6325   $as_echo_n "(cached) " >&6
6326 else
6327   if test -n "$ac_ct_RANLIB"; then
6328   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6329 else
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 for as_dir in $PATH
6332 do
6333   IFS=$as_save_IFS
6334   test -z "$as_dir" && as_dir=.
6335     for ac_exec_ext in '' $ac_executable_extensions; do
6336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6337     ac_cv_prog_ac_ct_RANLIB="ranlib"
6338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339     break 2
6340   fi
6341 done
6342   done
6343 IFS=$as_save_IFS
6344
6345 fi
6346 fi
6347 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6348 if test -n "$ac_ct_RANLIB"; then
6349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6350 $as_echo "$ac_ct_RANLIB" >&6; }
6351 else
6352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6354 fi
6355
6356   if test "x$ac_ct_RANLIB" = x; then
6357     RANLIB=":"
6358   else
6359     case $cross_compiling:$ac_tool_warned in
6360 yes:)
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6363 ac_tool_warned=yes ;;
6364 esac
6365     RANLIB=$ac_ct_RANLIB
6366   fi
6367 else
6368   RANLIB="$ac_cv_prog_RANLIB"
6369 fi
6370
6371
6372 if test "x$CC" != xcc; then
6373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6374 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6375 else
6376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6377 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6378 fi
6379 set dummy $CC; ac_cc=`$as_echo "$2" |
6380                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6381 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
6382   $as_echo_n "(cached) " >&6
6383 else
6384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h.  */
6386
6387 int
6388 main ()
6389 {
6390
6391   ;
6392   return 0;
6393 }
6394 _ACEOF
6395 # Make sure it works both with $CC and with simple cc.
6396 # We do the test twice because some compilers refuse to overwrite an
6397 # existing .o file with -o, though they will create one.
6398 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6399 rm -f conftest2.*
6400 if { { 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    test -f conftest2.$ac_objext && { { case "(($ac_try" in
6411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412   *) ac_try_echo=$ac_try;;
6413 esac
6414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6415 $as_echo "$ac_try_echo"; } >&5
6416   (eval "$ac_try") 2>&5
6417   ac_status=$?
6418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6419   test $ac_status = 0; };
6420 then
6421   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6422   if test "x$CC" != xcc; then
6423     # Test first that cc exists at all.
6424     if { ac_try='cc -c conftest.$ac_ext >&5'
6425   { { case "(($ac_try" in
6426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427   *) ac_try_echo=$ac_try;;
6428 esac
6429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6430 $as_echo "$ac_try_echo"; } >&5
6431   (eval "$ac_try") 2>&5
6432   ac_status=$?
6433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6434   test $ac_status = 0; }; }; then
6435       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6436       rm -f conftest2.*
6437       if { { 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          test -f conftest2.$ac_objext && { { case "(($ac_try" in
6448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449   *) ac_try_echo=$ac_try;;
6450 esac
6451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6452 $as_echo "$ac_try_echo"; } >&5
6453   (eval "$ac_try") 2>&5
6454   ac_status=$?
6455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6456   test $ac_status = 0; };
6457       then
6458         # cc works too.
6459         :
6460       else
6461         # cc exists but doesn't like -o.
6462         eval ac_cv_prog_cc_${ac_cc}_c_o=no
6463       fi
6464     fi
6465   fi
6466 else
6467   eval ac_cv_prog_cc_${ac_cc}_c_o=no
6468 fi
6469 rm -f core conftest*
6470
6471 fi
6472 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6474 $as_echo "yes" >&6; }
6475 else
6476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6478
6479 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6480
6481 fi
6482
6483 # FIXME: we rely on the cache variable name because
6484 # there is no other way.
6485 set dummy $CC
6486 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6487 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6488 if test "$am_t" != yes; then
6489    # Losing compiler, so override with the script.
6490    # FIXME: It is wrong to rewrite CC.
6491    # But if we don't then we get into trouble of one sort or another.
6492    # A longer-term fix would be to have automake use am__CC in this case,
6493    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6494    CC="$am_aux_dir/compile $CC"
6495 fi
6496
6497
6498
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6500 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6501 set x ${MAKE-make}
6502 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6503 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6504   $as_echo_n "(cached) " >&6
6505 else
6506   cat >conftest.make <<\_ACEOF
6507 SHELL = /bin/sh
6508 all:
6509         @echo '@@@%%%=$(MAKE)=@@@%%%'
6510 _ACEOF
6511 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6512 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6513   *@@@%%%=?*=@@@%%%*)
6514     eval ac_cv_prog_make_${ac_make}_set=yes;;
6515   *)
6516     eval ac_cv_prog_make_${ac_make}_set=no;;
6517 esac
6518 rm -f conftest.make
6519 fi
6520 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6522 $as_echo "yes" >&6; }
6523   SET_MAKE=
6524 else
6525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526 $as_echo "no" >&6; }
6527   SET_MAKE="MAKE=${MAKE-make}"
6528 fi
6529
6530
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
6532 $as_echo_n "checking maximum warning verbosity option... " >&6; }
6533
6534
6535
6536
6537 # Check whether --with-maximum-compile-warnings was given.
6538 if test "${with_maximum_compile_warnings+set}" = set; then :
6539   withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
6540 else
6541   ac_compile_warnings_on=""
6542 fi
6543
6544
6545   if test x"$ac_compile_warnings_on" = xno
6546   then
6547     ac_compile_warnings_msg=no
6548   else
6549     if test -n "$CXX"
6550     then
6551       if test "$GXX" = "yes"
6552       then
6553         ac_compile_warnings_opt='-Wall -W'
6554       fi
6555       CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
6556       ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
6557     fi
6558
6559   if test -n "$CC"
6560   then
6561     if test "$GCC" = "yes"
6562     then
6563       ac_compile_warnings_opt='-Wall -W'
6564     fi
6565     CFLAGS="$CFLAGS $ac_compile_warnings_opt"
6566     ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
6567   fi
6568   fi
6569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
6570 $as_echo "$ac_compile_warnings_msg" >&6; }
6571   unset ac_compile_warnings_msg
6572   unset ac_compile_warnings_opt
6573
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6575 $as_echo_n "checking whether ln -s works... " >&6; }
6576 LN_S=$as_ln_s
6577 if test "$LN_S" = "ln -s"; then
6578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6579 $as_echo "yes" >&6; }
6580 else
6581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6582 $as_echo "no, using $LN_S" >&6; }
6583 fi
6584
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
6586 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
6587
6588 # Check whether --with-dmalloc was given.
6589 if test "${with_dmalloc+set}" = set; then :
6590   withval=$with_dmalloc; if test "$withval" = yes; then
6591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6592 $as_echo "yes" >&6; }
6593
6594 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
6595
6596   LIBS="$LIBS -ldmalloc"
6597   LDFLAGS="$LDFLAGS -g"
6598 else
6599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600 $as_echo "no" >&6; }
6601 fi
6602 else
6603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6605 fi
6606
6607
6608
6609
6610 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6611         if test -n "$ac_tool_prefix"; then
6612   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6613 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6617   $as_echo_n "(cached) " >&6
6618 else
6619   case $PKG_CONFIG in
6620   [\\/]* | ?:[\\/]*)
6621   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6622   ;;
6623   *)
6624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6626 do
6627   IFS=$as_save_IFS
6628   test -z "$as_dir" && as_dir=.
6629     for ac_exec_ext in '' $ac_executable_extensions; do
6630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6631     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6633     break 2
6634   fi
6635 done
6636   done
6637 IFS=$as_save_IFS
6638
6639   ;;
6640 esac
6641 fi
6642 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6643 if test -n "$PKG_CONFIG"; then
6644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6645 $as_echo "$PKG_CONFIG" >&6; }
6646 else
6647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 $as_echo "no" >&6; }
6649 fi
6650
6651
6652 fi
6653 if test -z "$ac_cv_path_PKG_CONFIG"; then
6654   ac_pt_PKG_CONFIG=$PKG_CONFIG
6655   # Extract the first word of "pkg-config", so it can be a program name with args.
6656 set dummy pkg-config; ac_word=$2
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
6660   $as_echo_n "(cached) " >&6
6661 else
6662   case $ac_pt_PKG_CONFIG in
6663   [\\/]* | ?:[\\/]*)
6664   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6665   ;;
6666   *)
6667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 for as_dir in $PATH
6669 do
6670   IFS=$as_save_IFS
6671   test -z "$as_dir" && as_dir=.
6672     for ac_exec_ext in '' $ac_executable_extensions; do
6673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6674     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6676     break 2
6677   fi
6678 done
6679   done
6680 IFS=$as_save_IFS
6681
6682   ;;
6683 esac
6684 fi
6685 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6686 if test -n "$ac_pt_PKG_CONFIG"; then
6687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6688 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6689 else
6690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6691 $as_echo "no" >&6; }
6692 fi
6693
6694   if test "x$ac_pt_PKG_CONFIG" = x; then
6695     PKG_CONFIG=""
6696   else
6697     case $cross_compiling:$ac_tool_warned in
6698 yes:)
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6701 ac_tool_warned=yes ;;
6702 esac
6703     PKG_CONFIG=$ac_pt_PKG_CONFIG
6704   fi
6705 else
6706   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6707 fi
6708
6709 fi
6710 if test -n "$PKG_CONFIG"; then
6711         _pkg_min_version=0.9.0
6712         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6713 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6714         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6715                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6716 $as_echo "yes" >&6; }
6717         else
6718                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 $as_echo "no" >&6; }
6720                 PKG_CONFIG=""
6721         fi
6722
6723 fi
6724
6725 #
6726 # Enable OS features.
6727 #
6728
6729
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6731 $as_echo_n "checking for ANSI C header files... " >&6; }
6732 if test "${ac_cv_header_stdc+set}" = set; then :
6733   $as_echo_n "(cached) " >&6
6734 else
6735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h.  */
6737 #include <stdlib.h>
6738 #include <stdarg.h>
6739 #include <string.h>
6740 #include <float.h>
6741
6742 int
6743 main ()
6744 {
6745
6746   ;
6747   return 0;
6748 }
6749 _ACEOF
6750 if ac_fn_c_try_compile "$LINENO"; then :
6751   ac_cv_header_stdc=yes
6752 else
6753   ac_cv_header_stdc=no
6754 fi
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756
6757 if test $ac_cv_header_stdc = yes; then
6758   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h.  */
6761 #include <string.h>
6762
6763 _ACEOF
6764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6765   $EGREP "memchr" >/dev/null 2>&1; then :
6766
6767 else
6768   ac_cv_header_stdc=no
6769 fi
6770 rm -f conftest*
6771
6772 fi
6773
6774 if test $ac_cv_header_stdc = yes; then
6775   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h.  */
6778 #include <stdlib.h>
6779
6780 _ACEOF
6781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6782   $EGREP "free" >/dev/null 2>&1; then :
6783
6784 else
6785   ac_cv_header_stdc=no
6786 fi
6787 rm -f conftest*
6788
6789 fi
6790
6791 if test $ac_cv_header_stdc = yes; then
6792   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6793   if test "$cross_compiling" = yes; then :
6794   :
6795 else
6796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h.  */
6798 #include <ctype.h>
6799 #include <stdlib.h>
6800 #if ((' ' & 0x0FF) == 0x020)
6801 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6802 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6803 #else
6804 # define ISLOWER(c) \
6805                    (('a' <= (c) && (c) <= 'i') \
6806                      || ('j' <= (c) && (c) <= 'r') \
6807                      || ('s' <= (c) && (c) <= 'z'))
6808 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6809 #endif
6810
6811 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6812 int
6813 main ()
6814 {
6815   int i;
6816   for (i = 0; i < 256; i++)
6817     if (XOR (islower (i), ISLOWER (i))
6818         || toupper (i) != TOUPPER (i))
6819       return 2;
6820   return 0;
6821 }
6822 _ACEOF
6823 if ac_fn_c_try_run "$LINENO"; then :
6824
6825 else
6826   ac_cv_header_stdc=no
6827 fi
6828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6829   conftest.$ac_objext conftest.beam conftest.$ac_ext
6830 fi
6831
6832 fi
6833 fi
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6835 $as_echo "$ac_cv_header_stdc" >&6; }
6836 if test $ac_cv_header_stdc = yes; then
6837
6838 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6839
6840 fi
6841
6842 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6843 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6844                   inttypes.h stdint.h unistd.h
6845 do :
6846   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6847 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6848 "
6849 eval as_val=\$$as_ac_Header
6850    if test "x$as_val" = x""yes; then :
6851   cat >>confdefs.h <<_ACEOF
6852 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6853 _ACEOF
6854
6855 fi
6856
6857 done
6858
6859
6860
6861   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6862 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6863   MINIX=yes
6864 else
6865   MINIX=
6866 fi
6867
6868
6869   if test "$MINIX" = yes; then
6870
6871 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6872
6873
6874 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6875
6876
6877 $as_echo "#define _MINIX 1" >>confdefs.h
6878
6879   fi
6880
6881
6882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6883 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6884 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6885   $as_echo_n "(cached) " >&6
6886 else
6887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888 /* end confdefs.h.  */
6889
6890 #         define __EXTENSIONS__ 1
6891           $ac_includes_default
6892 int
6893 main ()
6894 {
6895
6896   ;
6897   return 0;
6898 }
6899 _ACEOF
6900 if ac_fn_c_try_compile "$LINENO"; then :
6901   ac_cv_safe_to_define___extensions__=yes
6902 else
6903   ac_cv_safe_to_define___extensions__=no
6904 fi
6905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906 fi
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6908 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6909   test $ac_cv_safe_to_define___extensions__ = yes &&
6910     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6911
6912   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6913
6914   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6915
6916   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6917
6918   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6919
6920
6921
6922 #
6923 # Enable run-time checking.
6924 #
6925 # Check whether --enable-bounds-checking was given.
6926 if test "${enable_bounds_checking+set}" = set; then :
6927   enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
6928 else
6929   enable_bounds_checking='no'
6930 fi
6931
6932
6933 if test "$enable_bounds_checking" = yes; then
6934
6935 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
6936
6937 fi
6938
6939 #
6940 # Tests for Windows
6941 #
6942
6943
6944
6945 GDI32_LIBS=''
6946 StaticCplusPlusLibraries='no'
6947 native_win32_build='no'
6948 cygwin_build='no'
6949 case "${host_os}" in
6950     cygwin* )
6951         StaticCplusPlusLibraries='yes'
6952         cygwin_build='yes'
6953         GDI32_LIBS='-lgdi32'
6954     ;;
6955     mingw* )
6956         StaticCplusPlusLibraries='yes'
6957         native_win32_build='yes'
6958         GDI32_LIBS='-lgdi32'
6959     ;;
6960 esac
6961 if test "${GDI32_LIBS}x" != 'x'; then
6962
6963 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
6964
6965 fi
6966
6967  if test "${GDI32_LIBS}x" != 'x' ; then
6968   WINGDI32_DELEGATE_TRUE=
6969   WINGDI32_DELEGATE_FALSE='#'
6970 else
6971   WINGDI32_DELEGATE_TRUE='#'
6972   WINGDI32_DELEGATE_FALSE=
6973 fi
6974
6975  if test "${native_win32_build}" = 'yes' ; then
6976   WIN32_NATIVE_BUILD_TRUE=
6977   WIN32_NATIVE_BUILD_FALSE='#'
6978 else
6979   WIN32_NATIVE_BUILD_TRUE='#'
6980   WIN32_NATIVE_BUILD_FALSE=
6981 fi
6982
6983  if test "${cygwin_build}" = 'yes' ; then
6984   CYGWIN_BUILD_TRUE=
6985   CYGWIN_BUILD_FALSE='#'
6986 else
6987   CYGWIN_BUILD_TRUE='#'
6988   CYGWIN_BUILD_FALSE=
6989 fi
6990
6991  if test "x${CC}" = 'xcl.exe' ; then
6992   USING_CL_TRUE=
6993   USING_CL_FALSE='#'
6994 else
6995   USING_CL_TRUE='#'
6996   USING_CL_FALSE=
6997 fi
6998
6999
7000 WinPathScript="${srcdirfull}/winpath.sh"
7001
7002
7003 #
7004 # Compiler flags tweaks
7005 #
7006 if test "${GCC}" != "yes"; then
7007     case "${host}" in
7008         *-*-hpux* )
7009             # aCC: HP ANSI C++ B3910B A.03.34
7010             CFLAGS="${CFLAGS} -Wp,-H30000"
7011             if test -n "${CXXFLAGS}"; then
7012                 CXXFLAGS='-AA'
7013             else
7014                 CXXFLAGS="${CXXFLAGS} -AA"
7015             fi
7016         ;;
7017         *-dec-osf5.* )
7018             # Compaq alphaev68-dec-osf5.1 compiler
7019             if test -n "${CXXFLAGS}"; then
7020                 CXXFLAGS='-std strict_ansi -noimplicit_include'
7021             else
7022                 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7023             fi
7024   esac
7025 fi
7026
7027 # Check for lazy-loading.
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
7029 $as_echo_n "checking for linker lazyload option... " >&6; }
7030 if test "${im_cv_ld_lazyload+set}" = set; then :
7031   $as_echo_n "(cached) " >&6
7032 else
7033
7034 im_cv_ld_lazyload='none'
7035 case "${host}" in
7036   *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7037     if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7038        im_cv_ld_lazyload='-Wl,-zlazyload'
7039     fi
7040     ;;
7041 esac
7042
7043 fi
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
7045 $as_echo "$im_cv_ld_lazyload" >&6; }
7046 if test "${im_cv_ld_lazyload}" != 'none' ; then
7047   if test -z "${LDFLAGS}" ; then
7048     LDFLAGS="${im_cv_ld_lazyload}"
7049   else
7050     LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7051   fi
7052 fi
7053
7054 case "$host" in
7055 *darwin* | *-macos10*)
7056   if test -d /opt/local ; then
7057     CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7058     LDFLAGS="$LDFLAGS -L/opt/local/lib"
7059   elif test -d /sw ; then
7060     CPPFLAGS="$CPPFLAGS -I/sw/include"
7061     LDFLAGS="$LDFLAGS -L/sw/lib"
7062   fi
7063     # Check whether --enable-osx-universal-binary was given.
7064 if test "${enable_osx_universal_binary+set}" = set; then :
7065   enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7066 else
7067   build_osxuniversal=no
7068 fi
7069
7070
7071   if test "${build_osxuniversal}" != no ; then
7072     if test "$enable_dependency_tracking" != no ; then
7073       as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
7074 Please re-run configure with these options:
7075   --disable-dependency-tracking --enable-osx-universal-binary
7076         " "$LINENO" 5
7077     fi
7078     CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7079     CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7080     LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7081   fi
7082   ;;
7083 esac
7084
7085 # Enable support for threads
7086
7087 # Check whether --with-threads was given.
7088 if test "${with_threads+set}" = set; then :
7089   withval=$with_threads; with_threads=$withval
7090 else
7091   with_threads='yes'
7092 fi
7093
7094
7095 have_threads=no
7096 if test "$with_threads" != 'no'; then
7097
7098
7099
7100 ac_ext=c
7101 ac_cpp='$CPP $CPPFLAGS'
7102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7105
7106 acx_pthread_ok=no
7107
7108 # We used to check for pthread.h first, but this fails if pthread.h
7109 # requires special compiler flags (e.g. on True64 or Sequent).
7110 # It gets checked for in the link test anyway.
7111
7112 # First of all, check if the user has set any of the PTHREAD_LIBS,
7113 # etcetera environment variables, and if threads linking works using
7114 # them:
7115 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7116         save_CFLAGS="$CFLAGS"
7117         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7118         save_LIBS="$LIBS"
7119         LIBS="$PTHREAD_LIBS $LIBS"
7120         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7121 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
7122         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123 /* end confdefs.h.  */
7124
7125 /* Override any GCC internal prototype to avoid an error.
7126    Use char because int might match the return type of a GCC
7127    builtin and then its argument prototype would still apply.  */
7128 #ifdef __cplusplus
7129 extern "C"
7130 #endif
7131 char pthread_join ();
7132 int
7133 main ()
7134 {
7135 return pthread_join ();
7136   ;
7137   return 0;
7138 }
7139 _ACEOF
7140 if ac_fn_c_try_link "$LINENO"; then :
7141   acx_pthread_ok=yes
7142 fi
7143 rm -f core conftest.err conftest.$ac_objext \
7144     conftest$ac_exeext conftest.$ac_ext
7145         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
7146 $as_echo "$acx_pthread_ok" >&6; }
7147         if test x"$acx_pthread_ok" = xno; then
7148                 PTHREAD_LIBS=""
7149                 PTHREAD_CFLAGS=""
7150         fi
7151         LIBS="$save_LIBS"
7152         CFLAGS="$save_CFLAGS"
7153 fi
7154
7155 # We must check for the threads library under a number of different
7156 # names; the ordering is very important because some systems
7157 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7158 # libraries is broken (non-POSIX).
7159
7160 # Create a list of thread flags to try.  Items starting with a "-" are
7161 # C compiler flags, and other items are library names, except for "none"
7162 # which indicates that we try without any flags at all, and "pthread-config"
7163 # which is a program returning the flags for the Pth emulation library.
7164
7165 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7166
7167 # The ordering *is* (sometimes) important.  Some notes on the
7168 # individual items follow:
7169
7170 # pthreads: AIX (must check this before -lpthread)
7171 # none: in case threads are in libc; should be tried before -Kthread and
7172 #       other compiler flags to prevent continual compiler warnings
7173 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7174 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7175 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7176 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7177 # -pthreads: Solaris/gcc
7178 # -mthreads: Mingw32/gcc, Lynx/gcc
7179 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7180 #      doesn't hurt to check since this sometimes defines pthreads too;
7181 #      also defines -D_REENTRANT)
7182 #      ... -mt is also the pthreads flag for HP/aCC
7183 # pthread: Linux, etcetera
7184 # --thread-safe: KAI C++
7185 # pthread-config: use pthread-config program (for GNU Pth library)
7186
7187 case "${host_cpu}-${host_os}" in
7188         *solaris*)
7189
7190         # On Solaris (at least, for some versions), libc contains stubbed
7191         # (non-functional) versions of the pthreads routines, so link-based
7192         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
7193         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
7194         # a function called by this macro, so we could check for that, but
7195         # who knows whether they'll stub that too in a future libc.)  So,
7196         # we'll just look for -pthreads and -lpthread first:
7197
7198         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7199         ;;
7200 esac
7201
7202 if test x"$acx_pthread_ok" = xno; then
7203 for flag in $acx_pthread_flags; do
7204
7205         case $flag in
7206                 none)
7207                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7208 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
7209                 ;;
7210
7211                 -*)
7212                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
7213 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
7214                 PTHREAD_CFLAGS="$flag"
7215                 ;;
7216
7217                 pthread-config)
7218                 # Extract the first word of "pthread-config", so it can be a program name with args.
7219 set dummy pthread-config; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
7223   $as_echo_n "(cached) " >&6
7224 else
7225   if test -n "$acx_pthread_config"; then
7226   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7227 else
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231   IFS=$as_save_IFS
7232   test -z "$as_dir" && as_dir=.
7233     for ac_exec_ext in '' $ac_executable_extensions; do
7234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7235     ac_cv_prog_acx_pthread_config="yes"
7236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237     break 2
7238   fi
7239 done
7240   done
7241 IFS=$as_save_IFS
7242
7243   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7244 fi
7245 fi
7246 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7247 if test -n "$acx_pthread_config"; then
7248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
7249 $as_echo "$acx_pthread_config" >&6; }
7250 else
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7253 fi
7254
7255
7256                 if test x"$acx_pthread_config" = xno; then continue; fi
7257                 PTHREAD_CFLAGS="`pthread-config --cflags`"
7258                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7259                 ;;
7260
7261                 *)
7262                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
7263 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7264                 PTHREAD_LIBS="-l$flag"
7265                 ;;
7266         esac
7267
7268         save_LIBS="$LIBS"
7269         save_CFLAGS="$CFLAGS"
7270         LIBS="$PTHREAD_LIBS $LIBS"
7271         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7272
7273         # Check for various functions.  We must include pthread.h,
7274         # since some functions may be macros.  (On the Sequent, we
7275         # need a special flag -Kthread to make this header compile.)
7276         # We check for pthread_join because it is in -lpthread on IRIX
7277         # while pthread_create is in libc.  We check for pthread_attr_init
7278         # due to DEC craziness with -lpthreads.  We check for
7279         # pthread_cleanup_push because it is one of the few pthread
7280         # functions on Solaris that doesn't have a non-functional libc stub.
7281         # We try pthread_create on general principles.
7282         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h.  */
7284 #include <pthread.h>
7285 int
7286 main ()
7287 {
7288 pthread_t th; pthread_join(th, 0);
7289                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
7290                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7291   ;
7292   return 0;
7293 }
7294 _ACEOF
7295 if ac_fn_c_try_link "$LINENO"; then :
7296   acx_pthread_ok=yes
7297 fi
7298 rm -f core conftest.err conftest.$ac_objext \
7299     conftest$ac_exeext conftest.$ac_ext
7300
7301         LIBS="$save_LIBS"
7302         CFLAGS="$save_CFLAGS"
7303
7304         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
7305 $as_echo "$acx_pthread_ok" >&6; }
7306         if test "x$acx_pthread_ok" = xyes; then
7307                 break;
7308         fi
7309
7310         PTHREAD_LIBS=""
7311         PTHREAD_CFLAGS=""
7312 done
7313 fi
7314
7315 # Various other checks:
7316 if test "x$acx_pthread_ok" = xyes; then
7317         save_LIBS="$LIBS"
7318         LIBS="$PTHREAD_LIBS $LIBS"
7319         save_CFLAGS="$CFLAGS"
7320         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7321
7322         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7323         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7324 $as_echo_n "checking for joinable pthread attribute... " >&6; }
7325         attr_name=unknown
7326         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7327             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h.  */
7329 #include <pthread.h>
7330 int
7331 main ()
7332 {
7333 int attr=$attr; return attr;
7334   ;
7335   return 0;
7336 }
7337 _ACEOF
7338 if ac_fn_c_try_link "$LINENO"; then :
7339   attr_name=$attr; break
7340 fi
7341 rm -f core conftest.err conftest.$ac_objext \
7342     conftest$ac_exeext conftest.$ac_ext
7343         done
7344         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
7345 $as_echo "$attr_name" >&6; }
7346         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7347
7348 cat >>confdefs.h <<_ACEOF
7349 #define PTHREAD_CREATE_JOINABLE $attr_name
7350 _ACEOF
7351
7352         fi
7353
7354         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
7355 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
7356         flag=no
7357         case "${host_cpu}-${host_os}" in
7358             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7359             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7360         esac
7361         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
7362 $as_echo "${flag}" >&6; }
7363         if test "x$flag" != xno; then
7364             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7365         fi
7366
7367         LIBS="$save_LIBS"
7368         CFLAGS="$save_CFLAGS"
7369
7370         # More AIX lossage: must compile with xlc_r or cc_r
7371         if test x"$GCC" != xyes; then
7372           for ac_prog in xlc_r cc_r
7373 do
7374   # Extract the first word of "$ac_prog", so it can be a program name with args.
7375 set dummy $ac_prog; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
7379   $as_echo_n "(cached) " >&6
7380 else
7381   if test -n "$PTHREAD_CC"; then
7382   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7383 else
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7386 do
7387   IFS=$as_save_IFS
7388   test -z "$as_dir" && as_dir=.
7389     for ac_exec_ext in '' $ac_executable_extensions; do
7390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7391     ac_cv_prog_PTHREAD_CC="$ac_prog"
7392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393     break 2
7394   fi
7395 done
7396   done
7397 IFS=$as_save_IFS
7398
7399 fi
7400 fi
7401 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7402 if test -n "$PTHREAD_CC"; then
7403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7404 $as_echo "$PTHREAD_CC" >&6; }
7405 else
7406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7408 fi
7409
7410
7411   test -n "$PTHREAD_CC" && break
7412 done
7413 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7414
7415         else
7416           PTHREAD_CC=$CC
7417         fi
7418 else
7419         PTHREAD_CC="$CC"
7420 fi
7421
7422
7423
7424
7425
7426 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7427 if test x"$acx_pthread_ok" = xyes; then
7428
7429 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
7430
7431         :
7432 else
7433         acx_pthread_ok=no
7434
7435 fi
7436 ac_ext=c
7437 ac_cpp='$CPP $CPPFLAGS'
7438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7441
7442
7443     if test "$acx_pthread_ok" = yes; then
7444         have_threads=yes
7445         DEF_THREAD="$PTHREAD_CFLAGS"
7446         CFLAGS="$CFLAGS $DEF_THREAD"
7447         CXXFLAGS="$CXXFLAGS $DEF_THREAD"
7448         if test "$CC" != "$PTHREAD_CC"; then
7449             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
7450 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
7451             CC="$PTHREAD_CC"
7452         fi
7453     fi
7454 fi
7455
7456 # Enable support for OpenMP
7457 if test "$have_threads" != 'yes'; then
7458   ac_cv_prog_c_openmp=unsupported
7459 fi
7460
7461   OPENMP_CFLAGS=
7462   # Check whether --enable-openmp was given.
7463 if test "${enable_openmp+set}" = set; then :
7464   enableval=$enable_openmp;
7465 fi
7466
7467   if test "$enable_openmp" != no; then
7468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
7469 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
7470 if test "${ac_cv_prog_c_openmp+set}" = set; then :
7471   $as_echo_n "(cached) " >&6
7472 else
7473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h.  */
7475
7476 #ifndef _OPENMP
7477  choke me
7478 #endif
7479 #include <omp.h>
7480 int main () { return omp_get_num_threads (); }
7481
7482 _ACEOF
7483 if ac_fn_c_try_link "$LINENO"; then :
7484   ac_cv_prog_c_openmp='none needed'
7485 else
7486   ac_cv_prog_c_openmp='unsupported'
7487                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
7488             ac_save_CFLAGS=$CFLAGS
7489             CFLAGS="$CFLAGS $ac_option"
7490             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491 /* end confdefs.h.  */
7492
7493 #ifndef _OPENMP
7494  choke me
7495 #endif
7496 #include <omp.h>
7497 int main () { return omp_get_num_threads (); }
7498
7499 _ACEOF
7500 if ac_fn_c_try_link "$LINENO"; then :
7501   ac_cv_prog_c_openmp=$ac_option
7502 fi
7503 rm -f core conftest.err conftest.$ac_objext \
7504     conftest$ac_exeext conftest.$ac_ext
7505             CFLAGS=$ac_save_CFLAGS
7506             if test "$ac_cv_prog_c_openmp" != unsupported; then
7507               break
7508             fi
7509           done
7510 fi
7511 rm -f core conftest.err conftest.$ac_objext \
7512     conftest$ac_exeext conftest.$ac_ext
7513 fi
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
7515 $as_echo "$ac_cv_prog_c_openmp" >&6; }
7516     case $ac_cv_prog_c_openmp in #(
7517       "none needed" | unsupported)
7518         ;; #(
7519       *)
7520         OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
7521     esac
7522   fi
7523
7524
7525 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
7526 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
7527
7528
7529 # Enable support for OpenCL
7530
7531 ac_ext=c
7532 ac_cpp='$CPP $CPPFLAGS'
7533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7536
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7538 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7539 if test "${ax_cv_c_compiler_ms+set}" = set; then :
7540   $as_echo_n "(cached) " >&6
7541 else
7542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h.  */
7544
7545 int
7546 main ()
7547 {
7548 #ifndef _MSC_VER
7549        choke me
7550 #endif
7551
7552   ;
7553   return 0;
7554 }
7555 _ACEOF
7556 if ac_fn_c_try_compile "$LINENO"; then :
7557   ax_compiler_ms=yes
7558 else
7559   ax_compiler_ms=no
7560 fi
7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562 ax_cv_c_compiler_ms=$ax_compiler_ms
7563
7564 fi
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7566 $as_echo "$ax_cv_c_compiler_ms" >&6; }
7567 if test X$ax_compiler_ms = Xno; then :
7568   CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
7569 fi
7570
7571 ax_save_CPPFLAGS=$CPPFLAGS
7572 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
7573 for ac_header in CL/opencl.h OpenCL/OpenCL.h
7574 do :
7575   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7576 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7577 eval as_val=\$$as_ac_Header
7578    if test "x$as_val" = x""yes; then :
7579   cat >>confdefs.h <<_ACEOF
7580 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7581 _ACEOF
7582
7583 fi
7584
7585 done
7586
7587 CPPFLAGS=$ax_save_CPPFLAGS
7588
7589 for ac_header in windows.h
7590 do :
7591   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
7592 if test "x$ac_cv_header_windows_h" = x""yes; then :
7593   cat >>confdefs.h <<_ACEOF
7594 #define HAVE_WINDOWS_H 1
7595 _ACEOF
7596
7597 fi
7598
7599 done
7600
7601
7602
7603
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
7605 $as_echo_n "checking for OpenCL library... " >&6; }
7606 if test "${ax_cv_check_cl_libcl+set}" = set; then :
7607   $as_echo_n "(cached) " >&6
7608 else
7609   ax_cv_check_cl_libcl=no
7610 case $host_cpu in
7611   x86_64) ax_check_cl_libdir=lib64 ;;
7612   *)      ax_check_cl_libdir=lib ;;
7613 esac
7614 ax_save_CPPFLAGS=$CPPFLAGS
7615 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
7616 ax_save_LIBS=$LIBS
7617 LIBS=""
7618 ax_check_libs="-lOpenCL -lCL"
7619 for ax_lib in $ax_check_libs; do
7620   if test X$ax_compiler_ms = Xyes; then :
7621   ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
7622 else
7623   ax_try_lib=$ax_lib
7624 fi
7625   LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h.  */
7628
7629 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7630 #   include <windows.h>
7631 # endif
7632 # ifdef HAVE_CL_OPENCL_H
7633 #   include <CL/opencl.h>
7634 # elif defined(HAVE_OPENCL_OPENCL_H)
7635 #   include <OpenCL/OpenCL.h>
7636 # else
7637 #   error no OpenCL.h
7638 # endif
7639 int
7640 main ()
7641 {
7642 clCreateContextFromType(0,0,0,0,0)
7643   ;
7644   return 0;
7645 }
7646 _ACEOF
7647 if ac_fn_c_try_link "$LINENO"; then :
7648   ax_cv_check_cl_libcl=$ax_try_lib; break
7649 else
7650   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"
7651                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h.  */
7653
7654 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7655 #   include <windows.h>
7656 # endif
7657 # ifdef HAVE_CL_OPENCL_H
7658 #   include <CL/opencl.h>
7659 # elif defined(HAVE_OPENCL_OPENCL_H)
7660 #   include <OpenCL/OpenCL.h>
7661 # else
7662 #   error no OpenCL.h
7663 # endif
7664 int
7665 main ()
7666 {
7667 clCreateContextFromType(0,0,0,0,0)
7668   ;
7669   return 0;
7670 }
7671 _ACEOF
7672 if ac_fn_c_try_link "$LINENO"; then :
7673   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
7674 else
7675   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"
7676                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h.  */
7678
7679 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7680 #   include <windows.h>
7681 # endif
7682 # ifdef HAVE_CL_OPENCL_H
7683 #   include <CL/opencl.h>
7684 # elif defined(HAVE_OPENCL_OPENCL_H)
7685 #   include <OpenCL/OpenCL.h>
7686 # else
7687 #   error no OpenCL.h
7688 # endif
7689 int
7690 main ()
7691 {
7692 clCreateContextFromType(0,0,0,0,0)
7693   ;
7694   return 0;
7695 }
7696 _ACEOF
7697 if ac_fn_c_try_link "$LINENO"; then :
7698   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
7699 fi
7700 rm -f core conftest.err conftest.$ac_objext \
7701     conftest$ac_exeext conftest.$ac_ext
7702 fi
7703 rm -f core conftest.err conftest.$ac_objext \
7704     conftest$ac_exeext conftest.$ac_ext
7705 fi
7706 rm -f core conftest.err conftest.$ac_objext \
7707     conftest$ac_exeext conftest.$ac_ext
7708 done
7709
7710 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
7711   LIBS='-framework OpenCL'
7712       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h.  */
7714
7715 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7716 #   include <windows.h>
7717 # endif
7718 # ifdef HAVE_CL_OPENCL_H
7719 #   include <CL/opencl.h>
7720 # elif defined(HAVE_OPENCL_OPENCL_H)
7721 #   include <OpenCL/OpenCL.h>
7722 # else
7723 #   error no OpenCL.h
7724 # endif
7725 int
7726 main ()
7727 {
7728 clCreateContextFromType(0,0,0,0,0)
7729   ;
7730   return 0;
7731 }
7732 _ACEOF
7733 if ac_fn_c_try_link "$LINENO"; then :
7734   ax_cv_check_cl_libcl=$LIBS
7735 fi
7736 rm -f core conftest.err conftest.$ac_objext \
7737     conftest$ac_exeext conftest.$ac_ext
7738 fi
7739
7740 LIBS=$ax_save_LIBS
7741 CPPFLAGS=$ax_save_CPPFLAGS
7742 fi
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
7744 $as_echo "$ax_cv_check_cl_libcl" >&6; }
7745
7746 if test "X$ax_cv_check_cl_libcl" = Xno; then :
7747   no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
7748 else
7749   CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"
7750 fi
7751 ac_ext=c
7752 ac_cpp='$CPP $CPPFLAGS'
7753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7756
7757
7758
7759
7760
7761 CFLAGS="$CL_CFLAGS $CFLAGS"
7762 LIBS="$CL_LIBS $LIBS"
7763
7764
7765 ########
7766 #
7767 # Check for large file support
7768 #
7769 ########
7770 # Check whether --enable-largefile was given.
7771 if test "${enable_largefile+set}" = set; then :
7772   enableval=$enable_largefile;
7773 fi
7774
7775 if test "$enable_largefile" != no; then
7776
7777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7778 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7779 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7780   $as_echo_n "(cached) " >&6
7781 else
7782   ac_cv_sys_largefile_CC=no
7783      if test "$GCC" != yes; then
7784        ac_save_CC=$CC
7785        while :; do
7786          # IRIX 6.2 and later do not support large files by default,
7787          # so use the C compiler's -n32 option if that helps.
7788          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h.  */
7790 #include <sys/types.h>
7791  /* Check that off_t can represent 2**63 - 1 correctly.
7792     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7793     since some C++ compilers masquerading as C compilers
7794     incorrectly reject 9223372036854775807.  */
7795 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7796   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7797                        && LARGE_OFF_T % 2147483647 == 1)
7798                       ? 1 : -1];
7799 int
7800 main ()
7801 {
7802
7803   ;
7804   return 0;
7805 }
7806 _ACEOF
7807          if ac_fn_c_try_compile "$LINENO"; then :
7808   break
7809 fi
7810 rm -f core conftest.err conftest.$ac_objext
7811          CC="$CC -n32"
7812          if ac_fn_c_try_compile "$LINENO"; then :
7813   ac_cv_sys_largefile_CC=' -n32'; break
7814 fi
7815 rm -f core conftest.err conftest.$ac_objext
7816          break
7817        done
7818        CC=$ac_save_CC
7819        rm -f conftest.$ac_ext
7820     fi
7821 fi
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7823 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7824   if test "$ac_cv_sys_largefile_CC" != no; then
7825     CC=$CC$ac_cv_sys_largefile_CC
7826   fi
7827
7828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7829 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7830 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7831   $as_echo_n "(cached) " >&6
7832 else
7833   while :; do
7834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h.  */
7836 #include <sys/types.h>
7837  /* Check that off_t can represent 2**63 - 1 correctly.
7838     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7839     since some C++ compilers masquerading as C compilers
7840     incorrectly reject 9223372036854775807.  */
7841 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7842   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7843                        && LARGE_OFF_T % 2147483647 == 1)
7844                       ? 1 : -1];
7845 int
7846 main ()
7847 {
7848
7849   ;
7850   return 0;
7851 }
7852 _ACEOF
7853 if ac_fn_c_try_compile "$LINENO"; then :
7854   ac_cv_sys_file_offset_bits=no; break
7855 fi
7856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h.  */
7859 #define _FILE_OFFSET_BITS 64
7860 #include <sys/types.h>
7861  /* Check that off_t can represent 2**63 - 1 correctly.
7862     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7863     since some C++ compilers masquerading as C compilers
7864     incorrectly reject 9223372036854775807.  */
7865 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7866   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7867                        && LARGE_OFF_T % 2147483647 == 1)
7868                       ? 1 : -1];
7869 int
7870 main ()
7871 {
7872
7873   ;
7874   return 0;
7875 }
7876 _ACEOF
7877 if ac_fn_c_try_compile "$LINENO"; then :
7878   ac_cv_sys_file_offset_bits=64; break
7879 fi
7880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7881   ac_cv_sys_file_offset_bits=unknown
7882   break
7883 done
7884 fi
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7886 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7887 case $ac_cv_sys_file_offset_bits in #(
7888   no | unknown) ;;
7889   *)
7890 cat >>confdefs.h <<_ACEOF
7891 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7892 _ACEOF
7893 ;;
7894 esac
7895 rm -rf conftest*
7896   if test $ac_cv_sys_file_offset_bits = unknown; then
7897     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7898 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7899 if test "${ac_cv_sys_large_files+set}" = set; then :
7900   $as_echo_n "(cached) " >&6
7901 else
7902   while :; do
7903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h.  */
7905 #include <sys/types.h>
7906  /* Check that off_t can represent 2**63 - 1 correctly.
7907     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7908     since some C++ compilers masquerading as C compilers
7909     incorrectly reject 9223372036854775807.  */
7910 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7911   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7912                        && LARGE_OFF_T % 2147483647 == 1)
7913                       ? 1 : -1];
7914 int
7915 main ()
7916 {
7917
7918   ;
7919   return 0;
7920 }
7921 _ACEOF
7922 if ac_fn_c_try_compile "$LINENO"; then :
7923   ac_cv_sys_large_files=no; break
7924 fi
7925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h.  */
7928 #define _LARGE_FILES 1
7929 #include <sys/types.h>
7930  /* Check that off_t can represent 2**63 - 1 correctly.
7931     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7932     since some C++ compilers masquerading as C compilers
7933     incorrectly reject 9223372036854775807.  */
7934 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7935   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7936                        && LARGE_OFF_T % 2147483647 == 1)
7937                       ? 1 : -1];
7938 int
7939 main ()
7940 {
7941
7942   ;
7943   return 0;
7944 }
7945 _ACEOF
7946 if ac_fn_c_try_compile "$LINENO"; then :
7947   ac_cv_sys_large_files=1; break
7948 fi
7949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950   ac_cv_sys_large_files=unknown
7951   break
7952 done
7953 fi
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7955 $as_echo "$ac_cv_sys_large_files" >&6; }
7956 case $ac_cv_sys_large_files in #(
7957   no | unknown) ;;
7958   *)
7959 cat >>confdefs.h <<_ACEOF
7960 #define _LARGE_FILES $ac_cv_sys_large_files
7961 _ACEOF
7962 ;;
7963 esac
7964 rm -rf conftest*
7965   fi
7966 fi
7967
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7969 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
7970 if test "${ac_cv_sys_largefile_source+set}" = set; then :
7971   $as_echo_n "(cached) " >&6
7972 else
7973   while :; do
7974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h.  */
7976 #include <sys/types.h> /* for off_t */
7977      #include <stdio.h>
7978 int
7979 main ()
7980 {
7981 int (*fp) (FILE *, off_t, int) = fseeko;
7982      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7983   ;
7984   return 0;
7985 }
7986 _ACEOF
7987 if ac_fn_c_try_link "$LINENO"; then :
7988   ac_cv_sys_largefile_source=no; break
7989 fi
7990 rm -f core conftest.err conftest.$ac_objext \
7991     conftest$ac_exeext conftest.$ac_ext
7992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h.  */
7994 #define _LARGEFILE_SOURCE 1
7995 #include <sys/types.h> /* for off_t */
7996      #include <stdio.h>
7997 int
7998 main ()
7999 {
8000 int (*fp) (FILE *, off_t, int) = fseeko;
8001      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8002   ;
8003   return 0;
8004 }
8005 _ACEOF
8006 if ac_fn_c_try_link "$LINENO"; then :
8007   ac_cv_sys_largefile_source=1; break
8008 fi
8009 rm -f core conftest.err conftest.$ac_objext \
8010     conftest$ac_exeext conftest.$ac_ext
8011   ac_cv_sys_largefile_source=unknown
8012   break
8013 done
8014 fi
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
8016 $as_echo "$ac_cv_sys_largefile_source" >&6; }
8017 case $ac_cv_sys_largefile_source in #(
8018   no | unknown) ;;
8019   *)
8020 cat >>confdefs.h <<_ACEOF
8021 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8022 _ACEOF
8023 ;;
8024 esac
8025 rm -rf conftest*
8026
8027 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8028 # in glibc 2.1.3, but that breaks too many other things.
8029 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8030 if test $ac_cv_sys_largefile_source != unknown; then
8031
8032 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
8033
8034 fi
8035
8036 LFS_CPPFLAGS=''
8037 if test "$enable_largefile" != no; then
8038     if test "$ac_cv_sys_file_offset_bits" != 'no'; then
8039         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8040     else
8041         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
8042 $as_echo_n "checking for native large file support... " >&6; }
8043         if test "$cross_compiling" = yes; then :
8044   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8046 as_fn_error "cannot run test program while cross compiling
8047 See \`config.log' for more details." "$LINENO" 5; }
8048 else
8049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h.  */
8051 #include <unistd.h>
8052           main () {
8053           exit(!(sizeof(off_t) == 8));
8054         }
8055 _ACEOF
8056 if ac_fn_c_try_run "$LINENO"; then :
8057   ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
8058
8059          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8060 $as_echo "yes" >&6; }
8061 else
8062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063 $as_echo "no" >&6; }
8064 fi
8065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8066   conftest.$ac_objext conftest.beam conftest.$ac_ext
8067 fi
8068
8069     fi
8070     if test "$ac_cv_sys_large_files" != 'no'; then
8071         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8072     fi
8073     if test "$ac_cv_sys_largefile_source" != 'no'; then
8074         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
8075     fi
8076 fi
8077
8078
8079 #
8080 # Configure libtool & libltdl
8081 #
8082 # Configure libtool
8083 enable_dlopen=yes
8084
8085
8086
8087 case `pwd` in
8088   *\ * | *\     *)
8089     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8090 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8091 esac
8092
8093
8094
8095 macro_version='2.2.6b'
8096 macro_revision='1.3017'
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110 ltmain="$ac_aux_dir/ltmain.sh"
8111
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8113 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8114 if test "${lt_cv_path_NM+set}" = set; then :
8115   $as_echo_n "(cached) " >&6
8116 else
8117   if test -n "$NM"; then
8118   # Let the user override the test.
8119   lt_cv_path_NM="$NM"
8120 else
8121   lt_nm_to_check="${ac_tool_prefix}nm"
8122   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8123     lt_nm_to_check="$lt_nm_to_check nm"
8124   fi
8125   for lt_tmp_nm in $lt_nm_to_check; do
8126     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8127     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8128       IFS="$lt_save_ifs"
8129       test -z "$ac_dir" && ac_dir=.
8130       tmp_nm="$ac_dir/$lt_tmp_nm"
8131       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8132         # Check to see if the nm accepts a BSD-compat flag.
8133         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8134         #   nm: unknown option "B" ignored
8135         # Tru64's nm complains that /dev/null is an invalid object file
8136         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8137         */dev/null* | *'Invalid file or object type'*)
8138           lt_cv_path_NM="$tmp_nm -B"
8139           break
8140           ;;
8141         *)
8142           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8143           */dev/null*)
8144             lt_cv_path_NM="$tmp_nm -p"
8145             break
8146             ;;
8147           *)
8148             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8149             continue # so that we can try to find one that supports BSD flags
8150             ;;
8151           esac
8152           ;;
8153         esac
8154       fi
8155     done
8156     IFS="$lt_save_ifs"
8157   done
8158   : ${lt_cv_path_NM=no}
8159 fi
8160 fi
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8162 $as_echo "$lt_cv_path_NM" >&6; }
8163 if test "$lt_cv_path_NM" != "no"; then
8164   NM="$lt_cv_path_NM"
8165 else
8166   # Didn't find any BSD compatible name lister, look for dumpbin.
8167   if test -n "$ac_tool_prefix"; then
8168   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8169   do
8170     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8171 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173 $as_echo_n "checking for $ac_word... " >&6; }
8174 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
8175   $as_echo_n "(cached) " >&6
8176 else
8177   if test -n "$DUMPBIN"; then
8178   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8179 else
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181 for as_dir in $PATH
8182 do
8183   IFS=$as_save_IFS
8184   test -z "$as_dir" && as_dir=.
8185     for ac_exec_ext in '' $ac_executable_extensions; do
8186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8187     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8189     break 2
8190   fi
8191 done
8192   done
8193 IFS=$as_save_IFS
8194
8195 fi
8196 fi
8197 DUMPBIN=$ac_cv_prog_DUMPBIN
8198 if test -n "$DUMPBIN"; then
8199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8200 $as_echo "$DUMPBIN" >&6; }
8201 else
8202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 $as_echo "no" >&6; }
8204 fi
8205
8206
8207     test -n "$DUMPBIN" && break
8208   done
8209 fi
8210 if test -z "$DUMPBIN"; then
8211   ac_ct_DUMPBIN=$DUMPBIN
8212   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8213 do
8214   # Extract the first word of "$ac_prog", so it can be a program name with args.
8215 set dummy $ac_prog; ac_word=$2
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 $as_echo_n "checking for $ac_word... " >&6; }
8218 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
8219   $as_echo_n "(cached) " >&6
8220 else
8221   if test -n "$ac_ct_DUMPBIN"; then
8222   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8223 else
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 for as_dir in $PATH
8226 do
8227   IFS=$as_save_IFS
8228   test -z "$as_dir" && as_dir=.
8229     for ac_exec_ext in '' $ac_executable_extensions; do
8230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8231     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8233     break 2
8234   fi
8235 done
8236   done
8237 IFS=$as_save_IFS
8238
8239 fi
8240 fi
8241 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8242 if test -n "$ac_ct_DUMPBIN"; then
8243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8244 $as_echo "$ac_ct_DUMPBIN" >&6; }
8245 else
8246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 $as_echo "no" >&6; }
8248 fi
8249
8250
8251   test -n "$ac_ct_DUMPBIN" && break
8252 done
8253
8254   if test "x$ac_ct_DUMPBIN" = x; then
8255     DUMPBIN=":"
8256   else
8257     case $cross_compiling:$ac_tool_warned in
8258 yes:)
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8261 ac_tool_warned=yes ;;
8262 esac
8263     DUMPBIN=$ac_ct_DUMPBIN
8264   fi
8265 fi
8266
8267
8268   if test "$DUMPBIN" != ":"; then
8269     NM="$DUMPBIN"
8270   fi
8271 fi
8272 test -z "$NM" && NM=nm
8273
8274
8275
8276
8277
8278
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8280 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8281 if test "${lt_cv_nm_interface+set}" = set; then :
8282   $as_echo_n "(cached) " >&6
8283 else
8284   lt_cv_nm_interface="BSD nm"
8285   echo "int some_variable = 0;" > conftest.$ac_ext
8286   (eval echo "\"\$as_me:8286: $ac_compile\"" >&5)
8287   (eval "$ac_compile" 2>conftest.err)
8288   cat conftest.err >&5
8289   (eval echo "\"\$as_me:8289: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8290   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8291   cat conftest.err >&5
8292   (eval echo "\"\$as_me:8292: output\"" >&5)
8293   cat conftest.out >&5
8294   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8295     lt_cv_nm_interface="MS dumpbin"
8296   fi
8297   rm -f conftest*
8298 fi
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8300 $as_echo "$lt_cv_nm_interface" >&6; }
8301
8302 # find the maximum length of command line arguments
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8304 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8305 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
8306   $as_echo_n "(cached) " >&6
8307 else
8308     i=0
8309   teststring="ABCD"
8310
8311   case $build_os in
8312   msdosdjgpp*)
8313     # On DJGPP, this test can blow up pretty badly due to problems in libc
8314     # (any single argument exceeding 2000 bytes causes a buffer overrun
8315     # during glob expansion).  Even if it were fixed, the result of this
8316     # check would be larger than it should be.
8317     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8318     ;;
8319
8320   gnu*)
8321     # Under GNU Hurd, this test is not required because there is
8322     # no limit to the length of command line arguments.
8323     # Libtool will interpret -1 as no limit whatsoever
8324     lt_cv_sys_max_cmd_len=-1;
8325     ;;
8326
8327   cygwin* | mingw* | cegcc*)
8328     # On Win9x/ME, this test blows up -- it succeeds, but takes
8329     # about 5 minutes as the teststring grows exponentially.
8330     # Worse, since 9x/ME are not pre-emptively multitasking,
8331     # you end up with a "frozen" computer, even though with patience
8332     # the test eventually succeeds (with a max line length of 256k).
8333     # Instead, let's just punt: use the minimum linelength reported by
8334     # all of the supported platforms: 8192 (on NT/2K/XP).
8335     lt_cv_sys_max_cmd_len=8192;
8336     ;;
8337
8338   amigaos*)
8339     # On AmigaOS with pdksh, this test takes hours, literally.
8340     # So we just punt and use a minimum line length of 8192.
8341     lt_cv_sys_max_cmd_len=8192;
8342     ;;
8343
8344   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8345     # This has been around since 386BSD, at least.  Likely further.
8346     if test -x /sbin/sysctl; then
8347       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8348     elif test -x /usr/sbin/sysctl; then
8349       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8350     else
8351       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8352     fi
8353     # And add a safety zone
8354     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8355     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8356     ;;
8357
8358   interix*)
8359     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8360     lt_cv_sys_max_cmd_len=196608
8361     ;;
8362
8363   osf*)
8364     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8365     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8366     # nice to cause kernel panics so lets avoid the loop below.
8367     # First set a reasonable default.
8368     lt_cv_sys_max_cmd_len=16384
8369     #
8370     if test -x /sbin/sysconfig; then
8371       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8372         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8373       esac
8374     fi
8375     ;;
8376   sco3.2v5*)
8377     lt_cv_sys_max_cmd_len=102400
8378     ;;
8379   sysv5* | sco5v6* | sysv4.2uw2*)
8380     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8381     if test -n "$kargmax"; then
8382       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8383     else
8384       lt_cv_sys_max_cmd_len=32768
8385     fi
8386     ;;
8387   *)
8388     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8389     if test -n "$lt_cv_sys_max_cmd_len"; then
8390       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8391       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8392     else
8393       # Make teststring a little bigger before we do anything with it.
8394       # a 1K string should be a reasonable start.
8395       for i in 1 2 3 4 5 6 7 8 ; do
8396         teststring=$teststring$teststring
8397       done
8398       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8399       # If test is not a shell built-in, we'll probably end up computing a
8400       # maximum length that is only half of the actual maximum length, but
8401       # we can't tell.
8402       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8403                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
8404               test $i != 17 # 1/2 MB should be enough
8405       do
8406         i=`expr $i + 1`
8407         teststring=$teststring$teststring
8408       done
8409       # Only check the string length outside the loop.
8410       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8411       teststring=
8412       # Add a significant safety factor because C++ compilers can tack on
8413       # massive amounts of additional arguments before passing them to the
8414       # linker.  It appears as though 1/2 is a usable value.
8415       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8416     fi
8417     ;;
8418   esac
8419
8420 fi
8421
8422 if test -n $lt_cv_sys_max_cmd_len ; then
8423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8424 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8425 else
8426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8427 $as_echo "none" >&6; }
8428 fi
8429 max_cmd_len=$lt_cv_sys_max_cmd_len
8430
8431
8432
8433
8434
8435
8436 : ${CP="cp -f"}
8437 : ${MV="mv -f"}
8438 : ${RM="rm -f"}
8439
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8441 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8442 # Try some XSI features
8443 xsi_shell=no
8444 ( _lt_dummy="a/b/c"
8445   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8446       = c,a/b,, \
8447     && eval 'test $(( 1 + 1 )) -eq 2 \
8448     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8449   && xsi_shell=yes
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8451 $as_echo "$xsi_shell" >&6; }
8452
8453
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8455 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8456 lt_shell_append=no
8457 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8458     >/dev/null 2>&1 \
8459   && lt_shell_append=yes
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8461 $as_echo "$lt_shell_append" >&6; }
8462
8463
8464 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8465   lt_unset=unset
8466 else
8467   lt_unset=false
8468 fi
8469
8470
8471
8472
8473
8474 # test EBCDIC or ASCII
8475 case `echo X|tr X '\101'` in
8476  A) # ASCII based system
8477     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8478   lt_SP2NL='tr \040 \012'
8479   lt_NL2SP='tr \015\012 \040\040'
8480   ;;
8481  *) # EBCDIC based system
8482   lt_SP2NL='tr \100 \n'
8483   lt_NL2SP='tr \r\n \100\100'
8484   ;;
8485 esac
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8496 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8497 if test "${lt_cv_ld_reload_flag+set}" = set; then :
8498   $as_echo_n "(cached) " >&6
8499 else
8500   lt_cv_ld_reload_flag='-r'
8501 fi
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8503 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8504 reload_flag=$lt_cv_ld_reload_flag
8505 case $reload_flag in
8506 "" | " "*) ;;
8507 *) reload_flag=" $reload_flag" ;;
8508 esac
8509 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8510 case $host_os in
8511   darwin*)
8512     if test "$GCC" = yes; then
8513       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8514     else
8515       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8516     fi
8517     ;;
8518 esac
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528 if test -n "$ac_tool_prefix"; then
8529   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8530 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 $as_echo_n "checking for $ac_word... " >&6; }
8533 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8534   $as_echo_n "(cached) " >&6
8535 else
8536   if test -n "$OBJDUMP"; then
8537   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8538 else
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 for as_dir in $PATH
8541 do
8542   IFS=$as_save_IFS
8543   test -z "$as_dir" && as_dir=.
8544     for ac_exec_ext in '' $ac_executable_extensions; do
8545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8546     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8548     break 2
8549   fi
8550 done
8551   done
8552 IFS=$as_save_IFS
8553
8554 fi
8555 fi
8556 OBJDUMP=$ac_cv_prog_OBJDUMP
8557 if test -n "$OBJDUMP"; then
8558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8559 $as_echo "$OBJDUMP" >&6; }
8560 else
8561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 $as_echo "no" >&6; }
8563 fi
8564
8565
8566 fi
8567 if test -z "$ac_cv_prog_OBJDUMP"; then
8568   ac_ct_OBJDUMP=$OBJDUMP
8569   # Extract the first word of "objdump", so it can be a program name with args.
8570 set dummy objdump; ac_word=$2
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8572 $as_echo_n "checking for $ac_word... " >&6; }
8573 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
8574   $as_echo_n "(cached) " >&6
8575 else
8576   if test -n "$ac_ct_OBJDUMP"; then
8577   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8578 else
8579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8580 for as_dir in $PATH
8581 do
8582   IFS=$as_save_IFS
8583   test -z "$as_dir" && as_dir=.
8584     for ac_exec_ext in '' $ac_executable_extensions; do
8585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8586     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8588     break 2
8589   fi
8590 done
8591   done
8592 IFS=$as_save_IFS
8593
8594 fi
8595 fi
8596 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8597 if test -n "$ac_ct_OBJDUMP"; then
8598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8599 $as_echo "$ac_ct_OBJDUMP" >&6; }
8600 else
8601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602 $as_echo "no" >&6; }
8603 fi
8604
8605   if test "x$ac_ct_OBJDUMP" = x; then
8606     OBJDUMP="false"
8607   else
8608     case $cross_compiling:$ac_tool_warned in
8609 yes:)
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8612 ac_tool_warned=yes ;;
8613 esac
8614     OBJDUMP=$ac_ct_OBJDUMP
8615   fi
8616 else
8617   OBJDUMP="$ac_cv_prog_OBJDUMP"
8618 fi
8619
8620 test -z "$OBJDUMP" && OBJDUMP=objdump
8621
8622
8623
8624
8625
8626
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8628 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8629 if test "${lt_cv_deplibs_check_method+set}" = set; then :
8630   $as_echo_n "(cached) " >&6
8631 else
8632   lt_cv_file_magic_cmd='$MAGIC_CMD'
8633 lt_cv_file_magic_test_file=
8634 lt_cv_deplibs_check_method='unknown'
8635 # Need to set the preceding variable on all platforms that support
8636 # interlibrary dependencies.
8637 # 'none' -- dependencies not supported.
8638 # `unknown' -- same as none, but documents that we really don't know.
8639 # 'pass_all' -- all dependencies passed with no checks.
8640 # 'test_compile' -- check by making test program.
8641 # 'file_magic [[regex]]' -- check by looking for files in library path
8642 # which responds to the $file_magic_cmd with a given extended regex.
8643 # If you have `file' or equivalent on your system and you're not sure
8644 # whether `pass_all' will *always* work, you probably want this one.
8645
8646 case $host_os in
8647 aix[4-9]*)
8648   lt_cv_deplibs_check_method=pass_all
8649   ;;
8650
8651 beos*)
8652   lt_cv_deplibs_check_method=pass_all
8653   ;;
8654
8655 bsdi[45]*)
8656   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8657   lt_cv_file_magic_cmd='/usr/bin/file -L'
8658   lt_cv_file_magic_test_file=/shlib/libc.so
8659   ;;
8660
8661 cygwin*)
8662   # func_win32_libid is a shell function defined in ltmain.sh
8663   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8664   lt_cv_file_magic_cmd='func_win32_libid'
8665   ;;
8666
8667 mingw* | pw32*)
8668   # Base MSYS/MinGW do not provide the 'file' command needed by
8669   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8670   # unless we find 'file', for example because we are cross-compiling.
8671   if ( file / ) >/dev/null 2>&1; then
8672     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8673     lt_cv_file_magic_cmd='func_win32_libid'
8674   else
8675     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8676     lt_cv_file_magic_cmd='$OBJDUMP -f'
8677   fi
8678   ;;
8679
8680 cegcc)
8681   # use the weaker test based on 'objdump'. See mingw*.
8682   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8683   lt_cv_file_magic_cmd='$OBJDUMP -f'
8684   ;;
8685
8686 darwin* | rhapsody*)
8687   lt_cv_deplibs_check_method=pass_all
8688   ;;
8689
8690 freebsd* | dragonfly*)
8691   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8692     case $host_cpu in
8693     i*86 )
8694       # Not sure whether the presence of OpenBSD here was a mistake.
8695       # Let's accept both of them until this is cleared up.
8696       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8697       lt_cv_file_magic_cmd=/usr/bin/file
8698       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8699       ;;
8700     esac
8701   else
8702     lt_cv_deplibs_check_method=pass_all
8703   fi
8704   ;;
8705
8706 gnu*)
8707   lt_cv_deplibs_check_method=pass_all
8708   ;;
8709
8710 hpux10.20* | hpux11*)
8711   lt_cv_file_magic_cmd=/usr/bin/file
8712   case $host_cpu in
8713   ia64*)
8714     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8715     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8716     ;;
8717   hppa*64*)
8718     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]'
8719     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8720     ;;
8721   *)
8722     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8723     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8724     ;;
8725   esac
8726   ;;
8727
8728 interix[3-9]*)
8729   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8730   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8731   ;;
8732
8733 irix5* | irix6* | nonstopux*)
8734   case $LD in
8735   *-32|*"-32 ") libmagic=32-bit;;
8736   *-n32|*"-n32 ") libmagic=N32;;
8737   *-64|*"-64 ") libmagic=64-bit;;
8738   *) libmagic=never-match;;
8739   esac
8740   lt_cv_deplibs_check_method=pass_all
8741   ;;
8742
8743 # This must be Linux ELF.
8744 linux* | k*bsd*-gnu)
8745   lt_cv_deplibs_check_method=pass_all
8746   ;;
8747
8748 netbsd*)
8749   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8750     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8751   else
8752     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8753   fi
8754   ;;
8755
8756 newos6*)
8757   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8758   lt_cv_file_magic_cmd=/usr/bin/file
8759   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8760   ;;
8761
8762 *nto* | *qnx*)
8763   lt_cv_deplibs_check_method=pass_all
8764   ;;
8765
8766 openbsd*)
8767   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8768     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8769   else
8770     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8771   fi
8772   ;;
8773
8774 osf3* | osf4* | osf5*)
8775   lt_cv_deplibs_check_method=pass_all
8776   ;;
8777
8778 rdos*)
8779   lt_cv_deplibs_check_method=pass_all
8780   ;;
8781
8782 solaris*)
8783   lt_cv_deplibs_check_method=pass_all
8784   ;;
8785
8786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8787   lt_cv_deplibs_check_method=pass_all
8788   ;;
8789
8790 sysv4 | sysv4.3*)
8791   case $host_vendor in
8792   motorola)
8793     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]'
8794     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8795     ;;
8796   ncr)
8797     lt_cv_deplibs_check_method=pass_all
8798     ;;
8799   sequent)
8800     lt_cv_file_magic_cmd='/bin/file'
8801     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8802     ;;
8803   sni)
8804     lt_cv_file_magic_cmd='/bin/file'
8805     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8806     lt_cv_file_magic_test_file=/lib/libc.so
8807     ;;
8808   siemens)
8809     lt_cv_deplibs_check_method=pass_all
8810     ;;
8811   pc)
8812     lt_cv_deplibs_check_method=pass_all
8813     ;;
8814   esac
8815   ;;
8816
8817 tpf*)
8818   lt_cv_deplibs_check_method=pass_all
8819   ;;
8820 esac
8821
8822 fi
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8824 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8825 file_magic_cmd=$lt_cv_file_magic_cmd
8826 deplibs_check_method=$lt_cv_deplibs_check_method
8827 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840 if test -n "$ac_tool_prefix"; then
8841   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8842 set dummy ${ac_tool_prefix}ar; ac_word=$2
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8844 $as_echo_n "checking for $ac_word... " >&6; }
8845 if test "${ac_cv_prog_AR+set}" = set; then :
8846   $as_echo_n "(cached) " >&6
8847 else
8848   if test -n "$AR"; then
8849   ac_cv_prog_AR="$AR" # Let the user override the test.
8850 else
8851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852 for as_dir in $PATH
8853 do
8854   IFS=$as_save_IFS
8855   test -z "$as_dir" && as_dir=.
8856     for ac_exec_ext in '' $ac_executable_extensions; do
8857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8858     ac_cv_prog_AR="${ac_tool_prefix}ar"
8859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8860     break 2
8861   fi
8862 done
8863   done
8864 IFS=$as_save_IFS
8865
8866 fi
8867 fi
8868 AR=$ac_cv_prog_AR
8869 if test -n "$AR"; then
8870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8871 $as_echo "$AR" >&6; }
8872 else
8873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8874 $as_echo "no" >&6; }
8875 fi
8876
8877
8878 fi
8879 if test -z "$ac_cv_prog_AR"; then
8880   ac_ct_AR=$AR
8881   # Extract the first word of "ar", so it can be a program name with args.
8882 set dummy ar; ac_word=$2
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8884 $as_echo_n "checking for $ac_word... " >&6; }
8885 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8886   $as_echo_n "(cached) " >&6
8887 else
8888   if test -n "$ac_ct_AR"; then
8889   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8890 else
8891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892 for as_dir in $PATH
8893 do
8894   IFS=$as_save_IFS
8895   test -z "$as_dir" && as_dir=.
8896     for ac_exec_ext in '' $ac_executable_extensions; do
8897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8898     ac_cv_prog_ac_ct_AR="ar"
8899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8900     break 2
8901   fi
8902 done
8903   done
8904 IFS=$as_save_IFS
8905
8906 fi
8907 fi
8908 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8909 if test -n "$ac_ct_AR"; then
8910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8911 $as_echo "$ac_ct_AR" >&6; }
8912 else
8913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914 $as_echo "no" >&6; }
8915 fi
8916
8917   if test "x$ac_ct_AR" = x; then
8918     AR="false"
8919   else
8920     case $cross_compiling:$ac_tool_warned in
8921 yes:)
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8924 ac_tool_warned=yes ;;
8925 esac
8926     AR=$ac_ct_AR
8927   fi
8928 else
8929   AR="$ac_cv_prog_AR"
8930 fi
8931
8932 test -z "$AR" && AR=ar
8933 test -z "$AR_FLAGS" && AR_FLAGS=cru
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945 if test -n "$ac_tool_prefix"; then
8946   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8947 set dummy ${ac_tool_prefix}strip; ac_word=$2
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8949 $as_echo_n "checking for $ac_word... " >&6; }
8950 if test "${ac_cv_prog_STRIP+set}" = set; then :
8951   $as_echo_n "(cached) " >&6
8952 else
8953   if test -n "$STRIP"; then
8954   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8955 else
8956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8957 for as_dir in $PATH
8958 do
8959   IFS=$as_save_IFS
8960   test -z "$as_dir" && as_dir=.
8961     for ac_exec_ext in '' $ac_executable_extensions; do
8962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8963     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8965     break 2
8966   fi
8967 done
8968   done
8969 IFS=$as_save_IFS
8970
8971 fi
8972 fi
8973 STRIP=$ac_cv_prog_STRIP
8974 if test -n "$STRIP"; then
8975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8976 $as_echo "$STRIP" >&6; }
8977 else
8978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8979 $as_echo "no" >&6; }
8980 fi
8981
8982
8983 fi
8984 if test -z "$ac_cv_prog_STRIP"; then
8985   ac_ct_STRIP=$STRIP
8986   # Extract the first word of "strip", so it can be a program name with args.
8987 set dummy strip; ac_word=$2
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8989 $as_echo_n "checking for $ac_word... " >&6; }
8990 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8991   $as_echo_n "(cached) " >&6
8992 else
8993   if test -n "$ac_ct_STRIP"; then
8994   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8995 else
8996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8997 for as_dir in $PATH
8998 do
8999   IFS=$as_save_IFS
9000   test -z "$as_dir" && as_dir=.
9001     for ac_exec_ext in '' $ac_executable_extensions; do
9002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9003     ac_cv_prog_ac_ct_STRIP="strip"
9004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9005     break 2
9006   fi
9007 done
9008   done
9009 IFS=$as_save_IFS
9010
9011 fi
9012 fi
9013 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9014 if test -n "$ac_ct_STRIP"; then
9015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9016 $as_echo "$ac_ct_STRIP" >&6; }
9017 else
9018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 $as_echo "no" >&6; }
9020 fi
9021
9022   if test "x$ac_ct_STRIP" = x; then
9023     STRIP=":"
9024   else
9025     case $cross_compiling:$ac_tool_warned in
9026 yes:)
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9029 ac_tool_warned=yes ;;
9030 esac
9031     STRIP=$ac_ct_STRIP
9032   fi
9033 else
9034   STRIP="$ac_cv_prog_STRIP"
9035 fi
9036
9037 test -z "$STRIP" && STRIP=:
9038
9039
9040
9041
9042
9043
9044 if test -n "$ac_tool_prefix"; then
9045   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9046 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9048 $as_echo_n "checking for $ac_word... " >&6; }
9049 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9050   $as_echo_n "(cached) " >&6
9051 else
9052   if test -n "$RANLIB"; then
9053   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9054 else
9055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056 for as_dir in $PATH
9057 do
9058   IFS=$as_save_IFS
9059   test -z "$as_dir" && as_dir=.
9060     for ac_exec_ext in '' $ac_executable_extensions; do
9061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9062     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9064     break 2
9065   fi
9066 done
9067   done
9068 IFS=$as_save_IFS
9069
9070 fi
9071 fi
9072 RANLIB=$ac_cv_prog_RANLIB
9073 if test -n "$RANLIB"; then
9074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9075 $as_echo "$RANLIB" >&6; }
9076 else
9077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9078 $as_echo "no" >&6; }
9079 fi
9080
9081
9082 fi
9083 if test -z "$ac_cv_prog_RANLIB"; then
9084   ac_ct_RANLIB=$RANLIB
9085   # Extract the first word of "ranlib", so it can be a program name with args.
9086 set dummy ranlib; ac_word=$2
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9088 $as_echo_n "checking for $ac_word... " >&6; }
9089 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9090   $as_echo_n "(cached) " >&6
9091 else
9092   if test -n "$ac_ct_RANLIB"; then
9093   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9094 else
9095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096 for as_dir in $PATH
9097 do
9098   IFS=$as_save_IFS
9099   test -z "$as_dir" && as_dir=.
9100     for ac_exec_ext in '' $ac_executable_extensions; do
9101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9102     ac_cv_prog_ac_ct_RANLIB="ranlib"
9103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9104     break 2
9105   fi
9106 done
9107   done
9108 IFS=$as_save_IFS
9109
9110 fi
9111 fi
9112 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9113 if test -n "$ac_ct_RANLIB"; then
9114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9115 $as_echo "$ac_ct_RANLIB" >&6; }
9116 else
9117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9118 $as_echo "no" >&6; }
9119 fi
9120
9121   if test "x$ac_ct_RANLIB" = x; then
9122     RANLIB=":"
9123   else
9124     case $cross_compiling:$ac_tool_warned in
9125 yes:)
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9128 ac_tool_warned=yes ;;
9129 esac
9130     RANLIB=$ac_ct_RANLIB
9131   fi
9132 else
9133   RANLIB="$ac_cv_prog_RANLIB"
9134 fi
9135
9136 test -z "$RANLIB" && RANLIB=:
9137
9138
9139
9140
9141
9142
9143 # Determine commands to create old-style static archives.
9144 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9145 old_postinstall_cmds='chmod 644 $oldlib'
9146 old_postuninstall_cmds=
9147
9148 if test -n "$RANLIB"; then
9149   case $host_os in
9150   openbsd*)
9151     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9152     ;;
9153   *)
9154     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9155     ;;
9156   esac
9157   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9158 fi
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
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193 # If no C compiler was specified, use CC.
9194 LTCC=${LTCC-"$CC"}
9195
9196 # If no C compiler flags were specified, use CFLAGS.
9197 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9198
9199 # Allow CC to be a program name with arguments.
9200 compiler=$CC
9201
9202
9203 # Check for command to grab the raw symbol name followed by C symbol from nm.
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9205 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9206 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
9207   $as_echo_n "(cached) " >&6
9208 else
9209
9210 # These are sane defaults that work on at least a few old systems.
9211 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9212
9213 # Character class describing NM global symbol codes.
9214 symcode='[BCDEGRST]'
9215
9216 # Regexp to match symbols that can be accessed directly from C.
9217 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9218
9219 # Define system-specific variables.
9220 case $host_os in
9221 aix*)
9222   symcode='[BCDT]'
9223   ;;
9224 cygwin* | mingw* | pw32* | cegcc*)
9225   symcode='[ABCDGISTW]'
9226   ;;
9227 hpux*)
9228   if test "$host_cpu" = ia64; then
9229     symcode='[ABCDEGRST]'
9230   fi
9231   ;;
9232 irix* | nonstopux*)
9233   symcode='[BCDEGRST]'
9234   ;;
9235 osf*)
9236   symcode='[BCDEGQRST]'
9237   ;;
9238 solaris*)
9239   symcode='[BDRT]'
9240   ;;
9241 sco3.2v5*)
9242   symcode='[DT]'
9243   ;;
9244 sysv4.2uw2*)
9245   symcode='[DT]'
9246   ;;
9247 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9248   symcode='[ABDT]'
9249   ;;
9250 sysv4)
9251   symcode='[DFNSTU]'
9252   ;;
9253 esac
9254
9255 # If we're using GNU nm, then use its standard symbol codes.
9256 case `$NM -V 2>&1` in
9257 *GNU* | *'with BFD'*)
9258   symcode='[ABCDGIRSTW]' ;;
9259 esac
9260
9261 # Transform an extracted symbol line into a proper C declaration.
9262 # Some systems (esp. on ia64) link data and code symbols differently,
9263 # so use this general approach.
9264 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9265
9266 # Transform an extracted symbol line into symbol name and symbol address
9267 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9268 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'"
9269
9270 # Handle CRLF in mingw tool chain
9271 opt_cr=
9272 case $build_os in
9273 mingw*)
9274   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9275   ;;
9276 esac
9277
9278 # Try without a prefix underscore, then with it.
9279 for ac_symprfx in "" "_"; do
9280
9281   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9282   symxfrm="\\1 $ac_symprfx\\2 \\2"
9283
9284   # Write the raw and C identifiers.
9285   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9286     # Fake it for dumpbin and say T for any non-static function
9287     # and D for any global variable.
9288     # Also find C++ and __fastcall symbols from MSVC++,
9289     # which start with @ or ?.
9290     lt_cv_sys_global_symbol_pipe="$AWK '"\
9291 "     {last_section=section; section=\$ 3};"\
9292 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9293 "     \$ 0!~/External *\|/{next};"\
9294 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9295 "     {if(hide[section]) next};"\
9296 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9297 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9298 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9299 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9300 "     ' prfx=^$ac_symprfx"
9301   else
9302     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9303   fi
9304
9305   # Check to see that the pipe works correctly.
9306   pipe_works=no
9307
9308   rm -f conftest*
9309   cat > conftest.$ac_ext <<_LT_EOF
9310 #ifdef __cplusplus
9311 extern "C" {
9312 #endif
9313 char nm_test_var;
9314 void nm_test_func(void);
9315 void nm_test_func(void){}
9316 #ifdef __cplusplus
9317 }
9318 #endif
9319 int main(){nm_test_var='a';nm_test_func();return(0);}
9320 _LT_EOF
9321
9322   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9323   (eval $ac_compile) 2>&5
9324   ac_status=$?
9325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9326   test $ac_status = 0; }; then
9327     # Now try to grab the symbols.
9328     nlist=conftest.nm
9329     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9330   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9331   ac_status=$?
9332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9333   test $ac_status = 0; } && test -s "$nlist"; then
9334       # Try sorting and uniquifying the output.
9335       if sort "$nlist" | uniq > "$nlist"T; then
9336         mv -f "$nlist"T "$nlist"
9337       else
9338         rm -f "$nlist"T
9339       fi
9340
9341       # Make sure that we snagged all the symbols we need.
9342       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9343         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9344           cat <<_LT_EOF > conftest.$ac_ext
9345 #ifdef __cplusplus
9346 extern "C" {
9347 #endif
9348
9349 _LT_EOF
9350           # Now generate the symbol file.
9351           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9352
9353           cat <<_LT_EOF >> conftest.$ac_ext
9354
9355 /* The mapping between symbol names and symbols.  */
9356 const struct {
9357   const char *name;
9358   void       *address;
9359 }
9360 lt__PROGRAM__LTX_preloaded_symbols[] =
9361 {
9362   { "@PROGRAM@", (void *) 0 },
9363 _LT_EOF
9364           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9365           cat <<\_LT_EOF >> conftest.$ac_ext
9366   {0, (void *) 0}
9367 };
9368
9369 /* This works around a problem in FreeBSD linker */
9370 #ifdef FREEBSD_WORKAROUND
9371 static const void *lt_preloaded_setup() {
9372   return lt__PROGRAM__LTX_preloaded_symbols;
9373 }
9374 #endif
9375
9376 #ifdef __cplusplus
9377 }
9378 #endif
9379 _LT_EOF
9380           # Now try linking the two files.
9381           mv conftest.$ac_objext conftstm.$ac_objext
9382           lt_save_LIBS="$LIBS"
9383           lt_save_CFLAGS="$CFLAGS"
9384           LIBS="conftstm.$ac_objext"
9385           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9386           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9387   (eval $ac_link) 2>&5
9388   ac_status=$?
9389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9390   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9391             pipe_works=yes
9392           fi
9393           LIBS="$lt_save_LIBS"
9394           CFLAGS="$lt_save_CFLAGS"
9395         else
9396           echo "cannot find nm_test_func in $nlist" >&5
9397         fi
9398       else
9399         echo "cannot find nm_test_var in $nlist" >&5
9400       fi
9401     else
9402       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9403     fi
9404   else
9405     echo "$progname: failed program was:" >&5
9406     cat conftest.$ac_ext >&5
9407   fi
9408   rm -rf conftest* conftst*
9409
9410   # Do not use the global_symbol_pipe unless it works.
9411   if test "$pipe_works" = yes; then
9412     break
9413   else
9414     lt_cv_sys_global_symbol_pipe=
9415   fi
9416 done
9417
9418 fi
9419
9420 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9421   lt_cv_sys_global_symbol_to_cdecl=
9422 fi
9423 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9425 $as_echo "failed" >&6; }
9426 else
9427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9428 $as_echo "ok" >&6; }
9429 fi
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452 # Check whether --enable-libtool-lock was given.
9453 if test "${enable_libtool_lock+set}" = set; then :
9454   enableval=$enable_libtool_lock;
9455 fi
9456
9457 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9458
9459 # Some flags need to be propagated to the compiler or linker for good
9460 # libtool support.
9461 case $host in
9462 ia64-*-hpux*)
9463   # Find out which ABI we are using.
9464   echo 'int i;' > conftest.$ac_ext
9465   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9466   (eval $ac_compile) 2>&5
9467   ac_status=$?
9468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9469   test $ac_status = 0; }; then
9470     case `/usr/bin/file conftest.$ac_objext` in
9471       *ELF-32*)
9472         HPUX_IA64_MODE="32"
9473         ;;
9474       *ELF-64*)
9475         HPUX_IA64_MODE="64"
9476         ;;
9477     esac
9478   fi
9479   rm -rf conftest*
9480   ;;
9481 *-*-irix6*)
9482   # Find out which ABI we are using.
9483   echo '#line 9483 "configure"' > conftest.$ac_ext
9484   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9485   (eval $ac_compile) 2>&5
9486   ac_status=$?
9487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9488   test $ac_status = 0; }; then
9489     if test "$lt_cv_prog_gnu_ld" = yes; then
9490       case `/usr/bin/file conftest.$ac_objext` in
9491         *32-bit*)
9492           LD="${LD-ld} -melf32bsmip"
9493           ;;
9494         *N32*)
9495           LD="${LD-ld} -melf32bmipn32"
9496           ;;
9497         *64-bit*)
9498           LD="${LD-ld} -melf64bmip"
9499         ;;
9500       esac
9501     else
9502       case `/usr/bin/file conftest.$ac_objext` in
9503         *32-bit*)
9504           LD="${LD-ld} -32"
9505           ;;
9506         *N32*)
9507           LD="${LD-ld} -n32"
9508           ;;
9509         *64-bit*)
9510           LD="${LD-ld} -64"
9511           ;;
9512       esac
9513     fi
9514   fi
9515   rm -rf conftest*
9516   ;;
9517
9518 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9519 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9520   # Find out which ABI we are using.
9521   echo 'int i;' > conftest.$ac_ext
9522   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9523   (eval $ac_compile) 2>&5
9524   ac_status=$?
9525   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9526   test $ac_status = 0; }; then
9527     case `/usr/bin/file conftest.o` in
9528       *32-bit*)
9529         case $host in
9530           x86_64-*kfreebsd*-gnu)
9531             LD="${LD-ld} -m elf_i386_fbsd"
9532             ;;
9533           x86_64-*linux*)
9534             LD="${LD-ld} -m elf_i386"
9535             ;;
9536           ppc64-*linux*|powerpc64-*linux*)
9537             LD="${LD-ld} -m elf32ppclinux"
9538             ;;
9539           s390x-*linux*)
9540             LD="${LD-ld} -m elf_s390"
9541             ;;
9542           sparc64-*linux*)
9543             LD="${LD-ld} -m elf32_sparc"
9544             ;;
9545         esac
9546         ;;
9547       *64-bit*)
9548         case $host in
9549           x86_64-*kfreebsd*-gnu)
9550             LD="${LD-ld} -m elf_x86_64_fbsd"
9551             ;;
9552           x86_64-*linux*)
9553             LD="${LD-ld} -m elf_x86_64"
9554             ;;
9555           ppc*-*linux*|powerpc*-*linux*)
9556             LD="${LD-ld} -m elf64ppc"
9557             ;;
9558           s390*-*linux*|s390*-*tpf*)
9559             LD="${LD-ld} -m elf64_s390"
9560             ;;
9561           sparc*-*linux*)
9562             LD="${LD-ld} -m elf64_sparc"
9563             ;;
9564         esac
9565         ;;
9566     esac
9567   fi
9568   rm -rf conftest*
9569   ;;
9570
9571 *-*-sco3.2v5*)
9572   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9573   SAVE_CFLAGS="$CFLAGS"
9574   CFLAGS="$CFLAGS -belf"
9575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9576 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9577 if test "${lt_cv_cc_needs_belf+set}" = set; then :
9578   $as_echo_n "(cached) " >&6
9579 else
9580   ac_ext=c
9581 ac_cpp='$CPP $CPPFLAGS'
9582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9585
9586      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h.  */
9588
9589 int
9590 main ()
9591 {
9592
9593   ;
9594   return 0;
9595 }
9596 _ACEOF
9597 if ac_fn_c_try_link "$LINENO"; then :
9598   lt_cv_cc_needs_belf=yes
9599 else
9600   lt_cv_cc_needs_belf=no
9601 fi
9602 rm -f core conftest.err conftest.$ac_objext \
9603     conftest$ac_exeext conftest.$ac_ext
9604      ac_ext=c
9605 ac_cpp='$CPP $CPPFLAGS'
9606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9609
9610 fi
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9612 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9613   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9614     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9615     CFLAGS="$SAVE_CFLAGS"
9616   fi
9617   ;;
9618 sparc*-*solaris*)
9619   # Find out which ABI we are using.
9620   echo 'int i;' > conftest.$ac_ext
9621   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9622   (eval $ac_compile) 2>&5
9623   ac_status=$?
9624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9625   test $ac_status = 0; }; then
9626     case `/usr/bin/file conftest.o` in
9627     *64-bit*)
9628       case $lt_cv_prog_gnu_ld in
9629       yes*) LD="${LD-ld} -m elf64_sparc" ;;
9630       *)
9631         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9632           LD="${LD-ld} -64"
9633         fi
9634         ;;
9635       esac
9636       ;;
9637     esac
9638   fi
9639   rm -rf conftest*
9640   ;;
9641 esac
9642
9643 need_locks="$enable_libtool_lock"
9644
9645
9646   case $host_os in
9647     rhapsody* | darwin*)
9648     if test -n "$ac_tool_prefix"; then
9649   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9650 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9652 $as_echo_n "checking for $ac_word... " >&6; }
9653 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
9654   $as_echo_n "(cached) " >&6
9655 else
9656   if test -n "$DSYMUTIL"; then
9657   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9658 else
9659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9660 for as_dir in $PATH
9661 do
9662   IFS=$as_save_IFS
9663   test -z "$as_dir" && as_dir=.
9664     for ac_exec_ext in '' $ac_executable_extensions; do
9665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9666     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9668     break 2
9669   fi
9670 done
9671   done
9672 IFS=$as_save_IFS
9673
9674 fi
9675 fi
9676 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9677 if test -n "$DSYMUTIL"; then
9678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9679 $as_echo "$DSYMUTIL" >&6; }
9680 else
9681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9682 $as_echo "no" >&6; }
9683 fi
9684
9685
9686 fi
9687 if test -z "$ac_cv_prog_DSYMUTIL"; then
9688   ac_ct_DSYMUTIL=$DSYMUTIL
9689   # Extract the first word of "dsymutil", so it can be a program name with args.
9690 set dummy dsymutil; ac_word=$2
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692 $as_echo_n "checking for $ac_word... " >&6; }
9693 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
9694   $as_echo_n "(cached) " >&6
9695 else
9696   if test -n "$ac_ct_DSYMUTIL"; then
9697   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9698 else
9699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700 for as_dir in $PATH
9701 do
9702   IFS=$as_save_IFS
9703   test -z "$as_dir" && as_dir=.
9704     for ac_exec_ext in '' $ac_executable_extensions; do
9705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9706     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9708     break 2
9709   fi
9710 done
9711   done
9712 IFS=$as_save_IFS
9713
9714 fi
9715 fi
9716 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9717 if test -n "$ac_ct_DSYMUTIL"; then
9718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9719 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9720 else
9721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722 $as_echo "no" >&6; }
9723 fi
9724
9725   if test "x$ac_ct_DSYMUTIL" = x; then
9726     DSYMUTIL=":"
9727   else
9728     case $cross_compiling:$ac_tool_warned in
9729 yes:)
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9732 ac_tool_warned=yes ;;
9733 esac
9734     DSYMUTIL=$ac_ct_DSYMUTIL
9735   fi
9736 else
9737   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9738 fi
9739
9740     if test -n "$ac_tool_prefix"; then
9741   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9742 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9744 $as_echo_n "checking for $ac_word... " >&6; }
9745 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9746   $as_echo_n "(cached) " >&6
9747 else
9748   if test -n "$NMEDIT"; then
9749   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9750 else
9751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752 for as_dir in $PATH
9753 do
9754   IFS=$as_save_IFS
9755   test -z "$as_dir" && as_dir=.
9756     for ac_exec_ext in '' $ac_executable_extensions; do
9757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9758     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9760     break 2
9761   fi
9762 done
9763   done
9764 IFS=$as_save_IFS
9765
9766 fi
9767 fi
9768 NMEDIT=$ac_cv_prog_NMEDIT
9769 if test -n "$NMEDIT"; then
9770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9771 $as_echo "$NMEDIT" >&6; }
9772 else
9773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9774 $as_echo "no" >&6; }
9775 fi
9776
9777
9778 fi
9779 if test -z "$ac_cv_prog_NMEDIT"; then
9780   ac_ct_NMEDIT=$NMEDIT
9781   # Extract the first word of "nmedit", so it can be a program name with args.
9782 set dummy nmedit; ac_word=$2
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9784 $as_echo_n "checking for $ac_word... " >&6; }
9785 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9786   $as_echo_n "(cached) " >&6
9787 else
9788   if test -n "$ac_ct_NMEDIT"; then
9789   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9790 else
9791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9792 for as_dir in $PATH
9793 do
9794   IFS=$as_save_IFS
9795   test -z "$as_dir" && as_dir=.
9796     for ac_exec_ext in '' $ac_executable_extensions; do
9797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9798     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9800     break 2
9801   fi
9802 done
9803   done
9804 IFS=$as_save_IFS
9805
9806 fi
9807 fi
9808 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9809 if test -n "$ac_ct_NMEDIT"; then
9810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9811 $as_echo "$ac_ct_NMEDIT" >&6; }
9812 else
9813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9814 $as_echo "no" >&6; }
9815 fi
9816
9817   if test "x$ac_ct_NMEDIT" = x; then
9818     NMEDIT=":"
9819   else
9820     case $cross_compiling:$ac_tool_warned in
9821 yes:)
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9824 ac_tool_warned=yes ;;
9825 esac
9826     NMEDIT=$ac_ct_NMEDIT
9827   fi
9828 else
9829   NMEDIT="$ac_cv_prog_NMEDIT"
9830 fi
9831
9832     if test -n "$ac_tool_prefix"; then
9833   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9834 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9836 $as_echo_n "checking for $ac_word... " >&6; }
9837 if test "${ac_cv_prog_LIPO+set}" = set; then :
9838   $as_echo_n "(cached) " >&6
9839 else
9840   if test -n "$LIPO"; then
9841   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9842 else
9843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9844 for as_dir in $PATH
9845 do
9846   IFS=$as_save_IFS
9847   test -z "$as_dir" && as_dir=.
9848     for ac_exec_ext in '' $ac_executable_extensions; do
9849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9850     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9852     break 2
9853   fi
9854 done
9855   done
9856 IFS=$as_save_IFS
9857
9858 fi
9859 fi
9860 LIPO=$ac_cv_prog_LIPO
9861 if test -n "$LIPO"; then
9862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9863 $as_echo "$LIPO" >&6; }
9864 else
9865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866 $as_echo "no" >&6; }
9867 fi
9868
9869
9870 fi
9871 if test -z "$ac_cv_prog_LIPO"; then
9872   ac_ct_LIPO=$LIPO
9873   # Extract the first word of "lipo", so it can be a program name with args.
9874 set dummy lipo; ac_word=$2
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9876 $as_echo_n "checking for $ac_word... " >&6; }
9877 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9878   $as_echo_n "(cached) " >&6
9879 else
9880   if test -n "$ac_ct_LIPO"; then
9881   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9882 else
9883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884 for as_dir in $PATH
9885 do
9886   IFS=$as_save_IFS
9887   test -z "$as_dir" && as_dir=.
9888     for ac_exec_ext in '' $ac_executable_extensions; do
9889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9890     ac_cv_prog_ac_ct_LIPO="lipo"
9891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9892     break 2
9893   fi
9894 done
9895   done
9896 IFS=$as_save_IFS
9897
9898 fi
9899 fi
9900 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9901 if test -n "$ac_ct_LIPO"; then
9902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9903 $as_echo "$ac_ct_LIPO" >&6; }
9904 else
9905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9906 $as_echo "no" >&6; }
9907 fi
9908
9909   if test "x$ac_ct_LIPO" = x; then
9910     LIPO=":"
9911   else
9912     case $cross_compiling:$ac_tool_warned in
9913 yes:)
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9916 ac_tool_warned=yes ;;
9917 esac
9918     LIPO=$ac_ct_LIPO
9919   fi
9920 else
9921   LIPO="$ac_cv_prog_LIPO"
9922 fi
9923
9924     if test -n "$ac_tool_prefix"; then
9925   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9926 set dummy ${ac_tool_prefix}otool; ac_word=$2
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9928 $as_echo_n "checking for $ac_word... " >&6; }
9929 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9930   $as_echo_n "(cached) " >&6
9931 else
9932   if test -n "$OTOOL"; then
9933   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9934 else
9935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936 for as_dir in $PATH
9937 do
9938   IFS=$as_save_IFS
9939   test -z "$as_dir" && as_dir=.
9940     for ac_exec_ext in '' $ac_executable_extensions; do
9941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9942     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9944     break 2
9945   fi
9946 done
9947   done
9948 IFS=$as_save_IFS
9949
9950 fi
9951 fi
9952 OTOOL=$ac_cv_prog_OTOOL
9953 if test -n "$OTOOL"; then
9954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9955 $as_echo "$OTOOL" >&6; }
9956 else
9957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958 $as_echo "no" >&6; }
9959 fi
9960
9961
9962 fi
9963 if test -z "$ac_cv_prog_OTOOL"; then
9964   ac_ct_OTOOL=$OTOOL
9965   # Extract the first word of "otool", so it can be a program name with args.
9966 set dummy otool; ac_word=$2
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9968 $as_echo_n "checking for $ac_word... " >&6; }
9969 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9970   $as_echo_n "(cached) " >&6
9971 else
9972   if test -n "$ac_ct_OTOOL"; then
9973   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9974 else
9975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976 for as_dir in $PATH
9977 do
9978   IFS=$as_save_IFS
9979   test -z "$as_dir" && as_dir=.
9980     for ac_exec_ext in '' $ac_executable_extensions; do
9981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9982     ac_cv_prog_ac_ct_OTOOL="otool"
9983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9984     break 2
9985   fi
9986 done
9987   done
9988 IFS=$as_save_IFS
9989
9990 fi
9991 fi
9992 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9993 if test -n "$ac_ct_OTOOL"; then
9994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9995 $as_echo "$ac_ct_OTOOL" >&6; }
9996 else
9997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9998 $as_echo "no" >&6; }
9999 fi
10000
10001   if test "x$ac_ct_OTOOL" = x; then
10002     OTOOL=":"
10003   else
10004     case $cross_compiling:$ac_tool_warned in
10005 yes:)
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10008 ac_tool_warned=yes ;;
10009 esac
10010     OTOOL=$ac_ct_OTOOL
10011   fi
10012 else
10013   OTOOL="$ac_cv_prog_OTOOL"
10014 fi
10015
10016     if test -n "$ac_tool_prefix"; then
10017   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10018 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10020 $as_echo_n "checking for $ac_word... " >&6; }
10021 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
10022   $as_echo_n "(cached) " >&6
10023 else
10024   if test -n "$OTOOL64"; then
10025   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10026 else
10027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028 for as_dir in $PATH
10029 do
10030   IFS=$as_save_IFS
10031   test -z "$as_dir" && as_dir=.
10032     for ac_exec_ext in '' $ac_executable_extensions; do
10033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10034     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10036     break 2
10037   fi
10038 done
10039   done
10040 IFS=$as_save_IFS
10041
10042 fi
10043 fi
10044 OTOOL64=$ac_cv_prog_OTOOL64
10045 if test -n "$OTOOL64"; then
10046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10047 $as_echo "$OTOOL64" >&6; }
10048 else
10049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10050 $as_echo "no" >&6; }
10051 fi
10052
10053
10054 fi
10055 if test -z "$ac_cv_prog_OTOOL64"; then
10056   ac_ct_OTOOL64=$OTOOL64
10057   # Extract the first word of "otool64", so it can be a program name with args.
10058 set dummy otool64; ac_word=$2
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10060 $as_echo_n "checking for $ac_word... " >&6; }
10061 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
10062   $as_echo_n "(cached) " >&6
10063 else
10064   if test -n "$ac_ct_OTOOL64"; then
10065   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10066 else
10067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10068 for as_dir in $PATH
10069 do
10070   IFS=$as_save_IFS
10071   test -z "$as_dir" && as_dir=.
10072     for ac_exec_ext in '' $ac_executable_extensions; do
10073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10074     ac_cv_prog_ac_ct_OTOOL64="otool64"
10075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10076     break 2
10077   fi
10078 done
10079   done
10080 IFS=$as_save_IFS
10081
10082 fi
10083 fi
10084 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10085 if test -n "$ac_ct_OTOOL64"; then
10086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10087 $as_echo "$ac_ct_OTOOL64" >&6; }
10088 else
10089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10090 $as_echo "no" >&6; }
10091 fi
10092
10093   if test "x$ac_ct_OTOOL64" = x; then
10094     OTOOL64=":"
10095   else
10096     case $cross_compiling:$ac_tool_warned in
10097 yes:)
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10100 ac_tool_warned=yes ;;
10101 esac
10102     OTOOL64=$ac_ct_OTOOL64
10103   fi
10104 else
10105   OTOOL64="$ac_cv_prog_OTOOL64"
10106 fi
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10135 $as_echo_n "checking for -single_module linker flag... " >&6; }
10136 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
10137   $as_echo_n "(cached) " >&6
10138 else
10139   lt_cv_apple_cc_single_mod=no
10140       if test -z "${LT_MULTI_MODULE}"; then
10141         # By default we will add the -single_module flag. You can override
10142         # by either setting the environment variable LT_MULTI_MODULE
10143         # non-empty at configure time, or by adding -multi_module to the
10144         # link flags.
10145         rm -rf libconftest.dylib*
10146         echo "int foo(void){return 1;}" > conftest.c
10147         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10148 -dynamiclib -Wl,-single_module conftest.c" >&5
10149         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10150           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10151         _lt_result=$?
10152         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10153           lt_cv_apple_cc_single_mod=yes
10154         else
10155           cat conftest.err >&5
10156         fi
10157         rm -rf libconftest.dylib*
10158         rm -f conftest.*
10159       fi
10160 fi
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10162 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10164 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10165 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
10166   $as_echo_n "(cached) " >&6
10167 else
10168   lt_cv_ld_exported_symbols_list=no
10169       save_LDFLAGS=$LDFLAGS
10170       echo "_main" > conftest.sym
10171       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10172       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10173 /* end confdefs.h.  */
10174
10175 int
10176 main ()
10177 {
10178
10179   ;
10180   return 0;
10181 }
10182 _ACEOF
10183 if ac_fn_c_try_link "$LINENO"; then :
10184   lt_cv_ld_exported_symbols_list=yes
10185 else
10186   lt_cv_ld_exported_symbols_list=no
10187 fi
10188 rm -f core conftest.err conftest.$ac_objext \
10189     conftest$ac_exeext conftest.$ac_ext
10190         LDFLAGS="$save_LDFLAGS"
10191
10192 fi
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10194 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10195     case $host_os in
10196     rhapsody* | darwin1.[012])
10197       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10198     darwin1.*)
10199       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10200     darwin*) # darwin 5.x on
10201       # if running on 10.5 or later, the deployment target defaults
10202       # to the OS version, if on x86, and 10.4, the deployment
10203       # target defaults to 10.4. Don't you love it?
10204       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10205         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10206           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10207         10.[012]*)
10208           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10209         10.*)
10210           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10211       esac
10212     ;;
10213   esac
10214     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10215       _lt_dar_single_mod='$single_module'
10216     fi
10217     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10218       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10219     else
10220       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10221     fi
10222     if test "$DSYMUTIL" != ":"; then
10223       _lt_dsymutil='~$DSYMUTIL $lib || :'
10224     else
10225       _lt_dsymutil=
10226     fi
10227     ;;
10228   esac
10229
10230 for ac_header in dlfcn.h
10231 do :
10232   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10233 "
10234 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10235   cat >>confdefs.h <<_ACEOF
10236 #define HAVE_DLFCN_H 1
10237 _ACEOF
10238
10239 fi
10240
10241 done
10242
10243
10244
10245 ac_ext=cpp
10246 ac_cpp='$CXXCPP $CPPFLAGS'
10247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10250 if test -z "$CXX"; then
10251   if test -n "$CCC"; then
10252     CXX=$CCC
10253   else
10254     if test -n "$ac_tool_prefix"; then
10255   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10256   do
10257     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10258 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10260 $as_echo_n "checking for $ac_word... " >&6; }
10261 if test "${ac_cv_prog_CXX+set}" = set; then :
10262   $as_echo_n "(cached) " >&6
10263 else
10264   if test -n "$CXX"; then
10265   ac_cv_prog_CXX="$CXX" # Let the user override the test.
10266 else
10267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10268 for as_dir in $PATH
10269 do
10270   IFS=$as_save_IFS
10271   test -z "$as_dir" && as_dir=.
10272     for ac_exec_ext in '' $ac_executable_extensions; do
10273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10274     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10276     break 2
10277   fi
10278 done
10279   done
10280 IFS=$as_save_IFS
10281
10282 fi
10283 fi
10284 CXX=$ac_cv_prog_CXX
10285 if test -n "$CXX"; then
10286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10287 $as_echo "$CXX" >&6; }
10288 else
10289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290 $as_echo "no" >&6; }
10291 fi
10292
10293
10294     test -n "$CXX" && break
10295   done
10296 fi
10297 if test -z "$CXX"; then
10298   ac_ct_CXX=$CXX
10299   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10300 do
10301   # Extract the first word of "$ac_prog", so it can be a program name with args.
10302 set dummy $ac_prog; ac_word=$2
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10304 $as_echo_n "checking for $ac_word... " >&6; }
10305 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10306   $as_echo_n "(cached) " >&6
10307 else
10308   if test -n "$ac_ct_CXX"; then
10309   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10310 else
10311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312 for as_dir in $PATH
10313 do
10314   IFS=$as_save_IFS
10315   test -z "$as_dir" && as_dir=.
10316     for ac_exec_ext in '' $ac_executable_extensions; do
10317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10318     ac_cv_prog_ac_ct_CXX="$ac_prog"
10319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10320     break 2
10321   fi
10322 done
10323   done
10324 IFS=$as_save_IFS
10325
10326 fi
10327 fi
10328 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10329 if test -n "$ac_ct_CXX"; then
10330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10331 $as_echo "$ac_ct_CXX" >&6; }
10332 else
10333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334 $as_echo "no" >&6; }
10335 fi
10336
10337
10338   test -n "$ac_ct_CXX" && break
10339 done
10340
10341   if test "x$ac_ct_CXX" = x; then
10342     CXX="g++"
10343   else
10344     case $cross_compiling:$ac_tool_warned in
10345 yes:)
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10348 ac_tool_warned=yes ;;
10349 esac
10350     CXX=$ac_ct_CXX
10351   fi
10352 fi
10353
10354   fi
10355 fi
10356 # Provide some information about the compiler.
10357 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10358 set X $ac_compile
10359 ac_compiler=$2
10360 for ac_option in --version -v -V -qversion; do
10361   { { ac_try="$ac_compiler $ac_option >&5"
10362 case "(($ac_try" in
10363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364   *) ac_try_echo=$ac_try;;
10365 esac
10366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10367 $as_echo "$ac_try_echo"; } >&5
10368   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10369   ac_status=$?
10370   if test -s conftest.err; then
10371     sed '10a\
10372 ... rest of stderr output deleted ...
10373          10q' conftest.err >conftest.er1
10374     cat conftest.er1 >&5
10375   fi
10376   rm -f conftest.er1 conftest.err
10377   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10378   test $ac_status = 0; }
10379 done
10380
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10382 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10383 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10384   $as_echo_n "(cached) " >&6
10385 else
10386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h.  */
10388
10389 int
10390 main ()
10391 {
10392 #ifndef __GNUC__
10393        choke me
10394 #endif
10395
10396   ;
10397   return 0;
10398 }
10399 _ACEOF
10400 if ac_fn_cxx_try_compile "$LINENO"; then :
10401   ac_compiler_gnu=yes
10402 else
10403   ac_compiler_gnu=no
10404 fi
10405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10406 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10407
10408 fi
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10410 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10411 if test $ac_compiler_gnu = yes; then
10412   GXX=yes
10413 else
10414   GXX=
10415 fi
10416 ac_test_CXXFLAGS=${CXXFLAGS+set}
10417 ac_save_CXXFLAGS=$CXXFLAGS
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10419 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10420 if test "${ac_cv_prog_cxx_g+set}" = set; then :
10421   $as_echo_n "(cached) " >&6
10422 else
10423   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10424    ac_cxx_werror_flag=yes
10425    ac_cv_prog_cxx_g=no
10426    CXXFLAGS="-g"
10427    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428 /* end confdefs.h.  */
10429
10430 int
10431 main ()
10432 {
10433
10434   ;
10435   return 0;
10436 }
10437 _ACEOF
10438 if ac_fn_cxx_try_compile "$LINENO"; then :
10439   ac_cv_prog_cxx_g=yes
10440 else
10441   CXXFLAGS=""
10442       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443 /* end confdefs.h.  */
10444
10445 int
10446 main ()
10447 {
10448
10449   ;
10450   return 0;
10451 }
10452 _ACEOF
10453 if ac_fn_cxx_try_compile "$LINENO"; then :
10454
10455 else
10456   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10457          CXXFLAGS="-g"
10458          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10459 /* end confdefs.h.  */
10460
10461 int
10462 main ()
10463 {
10464
10465   ;
10466   return 0;
10467 }
10468 _ACEOF
10469 if ac_fn_cxx_try_compile "$LINENO"; then :
10470   ac_cv_prog_cxx_g=yes
10471 fi
10472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10473 fi
10474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10475 fi
10476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10477    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10478 fi
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10480 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10481 if test "$ac_test_CXXFLAGS" = set; then
10482   CXXFLAGS=$ac_save_CXXFLAGS
10483 elif test $ac_cv_prog_cxx_g = yes; then
10484   if test "$GXX" = yes; then
10485     CXXFLAGS="-g -O2"
10486   else
10487     CXXFLAGS="-g"
10488   fi
10489 else
10490   if test "$GXX" = yes; then
10491     CXXFLAGS="-O2"
10492   else
10493     CXXFLAGS=
10494   fi
10495 fi
10496 ac_ext=c
10497 ac_cpp='$CPP $CPPFLAGS'
10498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10501
10502 depcc="$CXX"  am_compiler_list=
10503
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10505 $as_echo_n "checking dependency style of $depcc... " >&6; }
10506 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10507   $as_echo_n "(cached) " >&6
10508 else
10509   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10510   # We make a subdir and do the tests there.  Otherwise we can end up
10511   # making bogus files that we don't know about and never remove.  For
10512   # instance it was reported that on HP-UX the gcc test will end up
10513   # making a dummy file named `D' -- because `-MD' means `put the output
10514   # in D'.
10515   mkdir conftest.dir
10516   # Copy depcomp to subdir because otherwise we won't find it if we're
10517   # using a relative directory.
10518   cp "$am_depcomp" conftest.dir
10519   cd conftest.dir
10520   # We will build objects and dependencies in a subdirectory because
10521   # it helps to detect inapplicable dependency modes.  For instance
10522   # both Tru64's cc and ICC support -MD to output dependencies as a
10523   # side effect of compilation, but ICC will put the dependencies in
10524   # the current directory while Tru64 will put them in the object
10525   # directory.
10526   mkdir sub
10527
10528   am_cv_CXX_dependencies_compiler_type=none
10529   if test "$am_compiler_list" = ""; then
10530      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10531   fi
10532   am__universal=false
10533   case " $depcc " in #(
10534      *\ -arch\ *\ -arch\ *) am__universal=true ;;
10535      esac
10536
10537   for depmode in $am_compiler_list; do
10538     # Setup a source with many dependencies, because some compilers
10539     # like to wrap large dependency lists on column 80 (with \), and
10540     # we should not choose a depcomp mode which is confused by this.
10541     #
10542     # We need to recreate these files for each test, as the compiler may
10543     # overwrite some of them when testing with obscure command lines.
10544     # This happens at least with the AIX C compiler.
10545     : > sub/conftest.c
10546     for i in 1 2 3 4 5 6; do
10547       echo '#include "conftst'$i'.h"' >> sub/conftest.c
10548       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10549       # Solaris 8's {/usr,}/bin/sh.
10550       touch sub/conftst$i.h
10551     done
10552     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10553
10554     # We check with `-c' and `-o' for the sake of the "dashmstdout"
10555     # mode.  It turns out that the SunPro C++ compiler does not properly
10556     # handle `-M -o', and we need to detect this.  Also, some Intel
10557     # versions had trouble with output in subdirs
10558     am__obj=sub/conftest.${OBJEXT-o}
10559     am__minus_obj="-o $am__obj"
10560     case $depmode in
10561     gcc)
10562       # This depmode causes a compiler race in universal mode.
10563       test "$am__universal" = false || continue
10564       ;;
10565     nosideeffect)
10566       # after this tag, mechanisms are not by side-effect, so they'll
10567       # only be used when explicitly requested
10568       if test "x$enable_dependency_tracking" = xyes; then
10569         continue
10570       else
10571         break
10572       fi
10573       ;;
10574     msvisualcpp | msvcmsys)
10575       # This compiler won't grok `-c -o', but also, the minuso test has
10576       # not run yet.  These depmodes are late enough in the game, and
10577       # so weak that their functioning should not be impacted.
10578       am__obj=conftest.${OBJEXT-o}
10579       am__minus_obj=
10580       ;;
10581     none) break ;;
10582     esac
10583     if depmode=$depmode \
10584        source=sub/conftest.c object=$am__obj \
10585        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10586        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10587          >/dev/null 2>conftest.err &&
10588        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10589        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10590        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10591        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10592       # icc doesn't choke on unknown options, it will just issue warnings
10593       # or remarks (even with -Werror).  So we grep stderr for any message
10594       # that says an option was ignored or not supported.
10595       # When given -MP, icc 7.0 and 7.1 complain thusly:
10596       #   icc: Command line warning: ignoring option '-M'; no argument required
10597       # The diagnosis changed in icc 8.0:
10598       #   icc: Command line remark: option '-MP' not supported
10599       if (grep 'ignoring option' conftest.err ||
10600           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10601         am_cv_CXX_dependencies_compiler_type=$depmode
10602         break
10603       fi
10604     fi
10605   done
10606
10607   cd ..
10608   rm -rf conftest.dir
10609 else
10610   am_cv_CXX_dependencies_compiler_type=none
10611 fi
10612
10613 fi
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10615 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10616 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10617
10618  if
10619   test "x$enable_dependency_tracking" != xno \
10620   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10621   am__fastdepCXX_TRUE=
10622   am__fastdepCXX_FALSE='#'
10623 else
10624   am__fastdepCXX_TRUE='#'
10625   am__fastdepCXX_FALSE=
10626 fi
10627
10628
10629 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10630     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10631     (test "X$CXX" != "Xg++"))) ; then
10632   ac_ext=cpp
10633 ac_cpp='$CXXCPP $CPPFLAGS'
10634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10638 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10639 if test -z "$CXXCPP"; then
10640   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10641   $as_echo_n "(cached) " >&6
10642 else
10643       # Double quotes because CXXCPP needs to be expanded
10644     for CXXCPP in "$CXX -E" "/lib/cpp"
10645     do
10646       ac_preproc_ok=false
10647 for ac_cxx_preproc_warn_flag in '' yes
10648 do
10649   # Use a header file that comes with gcc, so configuring glibc
10650   # with a fresh cross-compiler works.
10651   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10652   # <limits.h> exists even on freestanding compilers.
10653   # On the NeXT, cc -E runs the code through the compiler's parser,
10654   # not just through cpp. "Syntax error" is here to catch this case.
10655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h.  */
10657 #ifdef __STDC__
10658 # include <limits.h>
10659 #else
10660 # include <assert.h>
10661 #endif
10662                      Syntax error
10663 _ACEOF
10664 if ac_fn_cxx_try_cpp "$LINENO"; then :
10665
10666 else
10667   # Broken: fails on valid input.
10668 continue
10669 fi
10670 rm -f conftest.err conftest.$ac_ext
10671
10672   # OK, works on sane cases.  Now check whether nonexistent headers
10673   # can be detected and how.
10674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h.  */
10676 #include <ac_nonexistent.h>
10677 _ACEOF
10678 if ac_fn_cxx_try_cpp "$LINENO"; then :
10679   # Broken: success on invalid input.
10680 continue
10681 else
10682   # Passes both tests.
10683 ac_preproc_ok=:
10684 break
10685 fi
10686 rm -f conftest.err conftest.$ac_ext
10687
10688 done
10689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10690 rm -f conftest.err conftest.$ac_ext
10691 if $ac_preproc_ok; then :
10692   break
10693 fi
10694
10695     done
10696     ac_cv_prog_CXXCPP=$CXXCPP
10697
10698 fi
10699   CXXCPP=$ac_cv_prog_CXXCPP
10700 else
10701   ac_cv_prog_CXXCPP=$CXXCPP
10702 fi
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10704 $as_echo "$CXXCPP" >&6; }
10705 ac_preproc_ok=false
10706 for ac_cxx_preproc_warn_flag in '' yes
10707 do
10708   # Use a header file that comes with gcc, so configuring glibc
10709   # with a fresh cross-compiler works.
10710   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10711   # <limits.h> exists even on freestanding compilers.
10712   # On the NeXT, cc -E runs the code through the compiler's parser,
10713   # not just through cpp. "Syntax error" is here to catch this case.
10714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10715 /* end confdefs.h.  */
10716 #ifdef __STDC__
10717 # include <limits.h>
10718 #else
10719 # include <assert.h>
10720 #endif
10721                      Syntax error
10722 _ACEOF
10723 if ac_fn_cxx_try_cpp "$LINENO"; then :
10724
10725 else
10726   # Broken: fails on valid input.
10727 continue
10728 fi
10729 rm -f conftest.err conftest.$ac_ext
10730
10731   # OK, works on sane cases.  Now check whether nonexistent headers
10732   # can be detected and how.
10733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h.  */
10735 #include <ac_nonexistent.h>
10736 _ACEOF
10737 if ac_fn_cxx_try_cpp "$LINENO"; then :
10738   # Broken: success on invalid input.
10739 continue
10740 else
10741   # Passes both tests.
10742 ac_preproc_ok=:
10743 break
10744 fi
10745 rm -f conftest.err conftest.$ac_ext
10746
10747 done
10748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10749 rm -f conftest.err conftest.$ac_ext
10750 if $ac_preproc_ok; then :
10751
10752 else
10753   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10755 _lt_caught_CXX_error=yes; }
10756 fi
10757
10758 ac_ext=c
10759 ac_cpp='$CPP $CPPFLAGS'
10760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10763
10764 else
10765   _lt_caught_CXX_error=yes
10766 fi
10767
10768
10769
10770
10771
10772 # Set options
10773 enable_win32_dll=yes
10774
10775 case $host in
10776 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
10777   if test -n "$ac_tool_prefix"; then
10778   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10779 set dummy ${ac_tool_prefix}as; ac_word=$2
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10781 $as_echo_n "checking for $ac_word... " >&6; }
10782 if test "${ac_cv_prog_AS+set}" = set; then :
10783   $as_echo_n "(cached) " >&6
10784 else
10785   if test -n "$AS"; then
10786   ac_cv_prog_AS="$AS" # Let the user override the test.
10787 else
10788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789 for as_dir in $PATH
10790 do
10791   IFS=$as_save_IFS
10792   test -z "$as_dir" && as_dir=.
10793     for ac_exec_ext in '' $ac_executable_extensions; do
10794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10795     ac_cv_prog_AS="${ac_tool_prefix}as"
10796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10797     break 2
10798   fi
10799 done
10800   done
10801 IFS=$as_save_IFS
10802
10803 fi
10804 fi
10805 AS=$ac_cv_prog_AS
10806 if test -n "$AS"; then
10807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10808 $as_echo "$AS" >&6; }
10809 else
10810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811 $as_echo "no" >&6; }
10812 fi
10813
10814
10815 fi
10816 if test -z "$ac_cv_prog_AS"; then
10817   ac_ct_AS=$AS
10818   # Extract the first word of "as", so it can be a program name with args.
10819 set dummy as; ac_word=$2
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10821 $as_echo_n "checking for $ac_word... " >&6; }
10822 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
10823   $as_echo_n "(cached) " >&6
10824 else
10825   if test -n "$ac_ct_AS"; then
10826   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10827 else
10828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10829 for as_dir in $PATH
10830 do
10831   IFS=$as_save_IFS
10832   test -z "$as_dir" && as_dir=.
10833     for ac_exec_ext in '' $ac_executable_extensions; do
10834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10835     ac_cv_prog_ac_ct_AS="as"
10836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10837     break 2
10838   fi
10839 done
10840   done
10841 IFS=$as_save_IFS
10842
10843 fi
10844 fi
10845 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10846 if test -n "$ac_ct_AS"; then
10847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10848 $as_echo "$ac_ct_AS" >&6; }
10849 else
10850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851 $as_echo "no" >&6; }
10852 fi
10853
10854   if test "x$ac_ct_AS" = x; then
10855     AS="false"
10856   else
10857     case $cross_compiling:$ac_tool_warned in
10858 yes:)
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10861 ac_tool_warned=yes ;;
10862 esac
10863     AS=$ac_ct_AS
10864   fi
10865 else
10866   AS="$ac_cv_prog_AS"
10867 fi
10868
10869   if test -n "$ac_tool_prefix"; then
10870   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10871 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10873 $as_echo_n "checking for $ac_word... " >&6; }
10874 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
10875   $as_echo_n "(cached) " >&6
10876 else
10877   if test -n "$DLLTOOL"; then
10878   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10879 else
10880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881 for as_dir in $PATH
10882 do
10883   IFS=$as_save_IFS
10884   test -z "$as_dir" && as_dir=.
10885     for ac_exec_ext in '' $ac_executable_extensions; do
10886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10887     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10889     break 2
10890   fi
10891 done
10892   done
10893 IFS=$as_save_IFS
10894
10895 fi
10896 fi
10897 DLLTOOL=$ac_cv_prog_DLLTOOL
10898 if test -n "$DLLTOOL"; then
10899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10900 $as_echo "$DLLTOOL" >&6; }
10901 else
10902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; }
10904 fi
10905
10906
10907 fi
10908 if test -z "$ac_cv_prog_DLLTOOL"; then
10909   ac_ct_DLLTOOL=$DLLTOOL
10910   # Extract the first word of "dlltool", so it can be a program name with args.
10911 set dummy dlltool; ac_word=$2
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10913 $as_echo_n "checking for $ac_word... " >&6; }
10914 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
10915   $as_echo_n "(cached) " >&6
10916 else
10917   if test -n "$ac_ct_DLLTOOL"; then
10918   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10919 else
10920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921 for as_dir in $PATH
10922 do
10923   IFS=$as_save_IFS
10924   test -z "$as_dir" && as_dir=.
10925     for ac_exec_ext in '' $ac_executable_extensions; do
10926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10927     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10929     break 2
10930   fi
10931 done
10932   done
10933 IFS=$as_save_IFS
10934
10935 fi
10936 fi
10937 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10938 if test -n "$ac_ct_DLLTOOL"; then
10939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10940 $as_echo "$ac_ct_DLLTOOL" >&6; }
10941 else
10942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10943 $as_echo "no" >&6; }
10944 fi
10945
10946   if test "x$ac_ct_DLLTOOL" = x; then
10947     DLLTOOL="false"
10948   else
10949     case $cross_compiling:$ac_tool_warned in
10950 yes:)
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10953 ac_tool_warned=yes ;;
10954 esac
10955     DLLTOOL=$ac_ct_DLLTOOL
10956   fi
10957 else
10958   DLLTOOL="$ac_cv_prog_DLLTOOL"
10959 fi
10960
10961   if test -n "$ac_tool_prefix"; then
10962   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10963 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10965 $as_echo_n "checking for $ac_word... " >&6; }
10966 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10967   $as_echo_n "(cached) " >&6
10968 else
10969   if test -n "$OBJDUMP"; then
10970   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10971 else
10972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973 for as_dir in $PATH
10974 do
10975   IFS=$as_save_IFS
10976   test -z "$as_dir" && as_dir=.
10977     for ac_exec_ext in '' $ac_executable_extensions; do
10978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10979     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10981     break 2
10982   fi
10983 done
10984   done
10985 IFS=$as_save_IFS
10986
10987 fi
10988 fi
10989 OBJDUMP=$ac_cv_prog_OBJDUMP
10990 if test -n "$OBJDUMP"; then
10991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10992 $as_echo "$OBJDUMP" >&6; }
10993 else
10994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995 $as_echo "no" >&6; }
10996 fi
10997
10998
10999 fi
11000 if test -z "$ac_cv_prog_OBJDUMP"; then
11001   ac_ct_OBJDUMP=$OBJDUMP
11002   # Extract the first word of "objdump", so it can be a program name with args.
11003 set dummy objdump; ac_word=$2
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11005 $as_echo_n "checking for $ac_word... " >&6; }
11006 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11007   $as_echo_n "(cached) " >&6
11008 else
11009   if test -n "$ac_ct_OBJDUMP"; then
11010   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11011 else
11012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11013 for as_dir in $PATH
11014 do
11015   IFS=$as_save_IFS
11016   test -z "$as_dir" && as_dir=.
11017     for ac_exec_ext in '' $ac_executable_extensions; do
11018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11019     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11021     break 2
11022   fi
11023 done
11024   done
11025 IFS=$as_save_IFS
11026
11027 fi
11028 fi
11029 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11030 if test -n "$ac_ct_OBJDUMP"; then
11031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11032 $as_echo "$ac_ct_OBJDUMP" >&6; }
11033 else
11034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035 $as_echo "no" >&6; }
11036 fi
11037
11038   if test "x$ac_ct_OBJDUMP" = x; then
11039     OBJDUMP="false"
11040   else
11041     case $cross_compiling:$ac_tool_warned in
11042 yes:)
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11045 ac_tool_warned=yes ;;
11046 esac
11047     OBJDUMP=$ac_ct_OBJDUMP
11048   fi
11049 else
11050   OBJDUMP="$ac_cv_prog_OBJDUMP"
11051 fi
11052
11053   ;;
11054 esac
11055
11056 test -z "$AS" && AS=as
11057
11058
11059
11060
11061
11062 test -z "$DLLTOOL" && DLLTOOL=dlltool
11063
11064
11065
11066
11067
11068 test -z "$OBJDUMP" && OBJDUMP=objdump
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078             # Check whether --enable-shared was given.
11079 if test "${enable_shared+set}" = set; then :
11080   enableval=$enable_shared; p=${PACKAGE-default}
11081     case $enableval in
11082     yes) enable_shared=yes ;;
11083     no) enable_shared=no ;;
11084     *)
11085       enable_shared=no
11086       # Look at the argument we got.  We use all the common list separators.
11087       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11088       for pkg in $enableval; do
11089         IFS="$lt_save_ifs"
11090         if test "X$pkg" = "X$p"; then
11091           enable_shared=yes
11092         fi
11093       done
11094       IFS="$lt_save_ifs"
11095       ;;
11096     esac
11097 else
11098   enable_shared=yes
11099 fi
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109   # Check whether --enable-static was given.
11110 if test "${enable_static+set}" = set; then :
11111   enableval=$enable_static; p=${PACKAGE-default}
11112     case $enableval in
11113     yes) enable_static=yes ;;
11114     no) enable_static=no ;;
11115     *)
11116      enable_static=no
11117       # Look at the argument we got.  We use all the common list separators.
11118       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11119       for pkg in $enableval; do
11120         IFS="$lt_save_ifs"
11121         if test "X$pkg" = "X$p"; then
11122           enable_static=yes
11123         fi
11124       done
11125       IFS="$lt_save_ifs"
11126       ;;
11127     esac
11128 else
11129   enable_static=yes
11130 fi
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141 # Check whether --with-pic was given.
11142 if test "${with_pic+set}" = set; then :
11143   withval=$with_pic; pic_mode="$withval"
11144 else
11145   pic_mode=default
11146 fi
11147
11148
11149 test -z "$pic_mode" && pic_mode=default
11150
11151
11152
11153
11154
11155
11156
11157   # Check whether --enable-fast-install was given.
11158 if test "${enable_fast_install+set}" = set; then :
11159   enableval=$enable_fast_install; p=${PACKAGE-default}
11160     case $enableval in
11161     yes) enable_fast_install=yes ;;
11162     no) enable_fast_install=no ;;
11163     *)
11164       enable_fast_install=no
11165       # Look at the argument we got.  We use all the common list separators.
11166       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11167       for pkg in $enableval; do
11168         IFS="$lt_save_ifs"
11169         if test "X$pkg" = "X$p"; then
11170           enable_fast_install=yes
11171         fi
11172       done
11173       IFS="$lt_save_ifs"
11174       ;;
11175     esac
11176 else
11177   enable_fast_install=yes
11178 fi
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190 # This can be used to rebuild libtool when needed
11191 LIBTOOL_DEPS="$ltmain"
11192
11193 # Always use our own libtool.
11194 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220 test -z "$LN_S" && LN_S="ln -s"
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235 if test -n "${ZSH_VERSION+set}" ; then
11236    setopt NO_GLOB_SUBST
11237 fi
11238
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11240 $as_echo_n "checking for objdir... " >&6; }
11241 if test "${lt_cv_objdir+set}" = set; then :
11242   $as_echo_n "(cached) " >&6
11243 else
11244   rm -f .libs 2>/dev/null
11245 mkdir .libs 2>/dev/null
11246 if test -d .libs; then
11247   lt_cv_objdir=.libs
11248 else
11249   # MS-DOS does not allow filenames that begin with a dot.
11250   lt_cv_objdir=_libs
11251 fi
11252 rmdir .libs 2>/dev/null
11253 fi
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11255 $as_echo "$lt_cv_objdir" >&6; }
11256 objdir=$lt_cv_objdir
11257
11258
11259
11260
11261
11262 cat >>confdefs.h <<_ACEOF
11263 #define LT_OBJDIR "$lt_cv_objdir/"
11264 _ACEOF
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282 case $host_os in
11283 aix3*)
11284   # AIX sometimes has problems with the GCC collect2 program.  For some
11285   # reason, if we set the COLLECT_NAMES environment variable, the problems
11286   # vanish in a puff of smoke.
11287   if test "X${COLLECT_NAMES+set}" != Xset; then
11288     COLLECT_NAMES=
11289     export COLLECT_NAMES
11290   fi
11291   ;;
11292 esac
11293
11294 # Sed substitution that helps us do robust quoting.  It backslashifies
11295 # metacharacters that are still active within double-quoted strings.
11296 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11297
11298 # Same as above, but do not quote variable references.
11299 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11300
11301 # Sed substitution to delay expansion of an escaped shell variable in a
11302 # double_quote_subst'ed string.
11303 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11304
11305 # Sed substitution to delay expansion of an escaped single quote.
11306 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11307
11308 # Sed substitution to avoid accidental globbing in evaled expressions
11309 no_glob_subst='s/\*/\\\*/g'
11310
11311 # Global variables:
11312 ofile=libtool
11313 can_build_shared=yes
11314
11315 # All known linkers require a `.a' archive for static linking (except MSVC,
11316 # which needs '.lib').
11317 libext=a
11318
11319 with_gnu_ld="$lt_cv_prog_gnu_ld"
11320
11321 old_CC="$CC"
11322 old_CFLAGS="$CFLAGS"
11323
11324 # Set sane defaults for various variables
11325 test -z "$CC" && CC=cc
11326 test -z "$LTCC" && LTCC=$CC
11327 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11328 test -z "$LD" && LD=ld
11329 test -z "$ac_objext" && ac_objext=o
11330
11331 for cc_temp in $compiler""; do
11332   case $cc_temp in
11333     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11334     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11335     \-*) ;;
11336     *) break;;
11337   esac
11338 done
11339 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11340
11341
11342 # Only perform the check for file, if the check method requires it
11343 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11344 case $deplibs_check_method in
11345 file_magic*)
11346   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11347     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11348 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11349 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11350   $as_echo_n "(cached) " >&6
11351 else
11352   case $MAGIC_CMD in
11353 [\\/*] |  ?:[\\/]*)
11354   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11355   ;;
11356 *)
11357   lt_save_MAGIC_CMD="$MAGIC_CMD"
11358   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11359   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11360   for ac_dir in $ac_dummy; do
11361     IFS="$lt_save_ifs"
11362     test -z "$ac_dir" && ac_dir=.
11363     if test -f $ac_dir/${ac_tool_prefix}file; then
11364       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11365       if test -n "$file_magic_test_file"; then
11366         case $deplibs_check_method in
11367         "file_magic "*)
11368           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11369           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11370           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11371             $EGREP "$file_magic_regex" > /dev/null; then
11372             :
11373           else
11374             cat <<_LT_EOF 1>&2
11375
11376 *** Warning: the command libtool uses to detect shared libraries,
11377 *** $file_magic_cmd, produces output that libtool cannot recognize.
11378 *** The result is that libtool may fail to recognize shared libraries
11379 *** as such.  This will affect the creation of libtool libraries that
11380 *** depend on shared libraries, but programs linked with such libtool
11381 *** libraries will work regardless of this problem.  Nevertheless, you
11382 *** may want to report the problem to your system manager and/or to
11383 *** bug-libtool@gnu.org
11384
11385 _LT_EOF
11386           fi ;;
11387         esac
11388       fi
11389       break
11390     fi
11391   done
11392   IFS="$lt_save_ifs"
11393   MAGIC_CMD="$lt_save_MAGIC_CMD"
11394   ;;
11395 esac
11396 fi
11397
11398 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11399 if test -n "$MAGIC_CMD"; then
11400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11401 $as_echo "$MAGIC_CMD" >&6; }
11402 else
11403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 $as_echo "no" >&6; }
11405 fi
11406
11407
11408
11409
11410
11411 if test -z "$lt_cv_path_MAGIC_CMD"; then
11412   if test -n "$ac_tool_prefix"; then
11413     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11414 $as_echo_n "checking for file... " >&6; }
11415 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11416   $as_echo_n "(cached) " >&6
11417 else
11418   case $MAGIC_CMD in
11419 [\\/*] |  ?:[\\/]*)
11420   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11421   ;;
11422 *)
11423   lt_save_MAGIC_CMD="$MAGIC_CMD"
11424   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11425   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11426   for ac_dir in $ac_dummy; do
11427     IFS="$lt_save_ifs"
11428     test -z "$ac_dir" && ac_dir=.
11429     if test -f $ac_dir/file; then
11430       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11431       if test -n "$file_magic_test_file"; then
11432         case $deplibs_check_method in
11433         "file_magic "*)
11434           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11435           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11436           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11437             $EGREP "$file_magic_regex" > /dev/null; then
11438             :
11439           else
11440             cat <<_LT_EOF 1>&2
11441
11442 *** Warning: the command libtool uses to detect shared libraries,
11443 *** $file_magic_cmd, produces output that libtool cannot recognize.
11444 *** The result is that libtool may fail to recognize shared libraries
11445 *** as such.  This will affect the creation of libtool libraries that
11446 *** depend on shared libraries, but programs linked with such libtool
11447 *** libraries will work regardless of this problem.  Nevertheless, you
11448 *** may want to report the problem to your system manager and/or to
11449 *** bug-libtool@gnu.org
11450
11451 _LT_EOF
11452           fi ;;
11453         esac
11454       fi
11455       break
11456     fi
11457   done
11458   IFS="$lt_save_ifs"
11459   MAGIC_CMD="$lt_save_MAGIC_CMD"
11460   ;;
11461 esac
11462 fi
11463
11464 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11465 if test -n "$MAGIC_CMD"; then
11466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11467 $as_echo "$MAGIC_CMD" >&6; }
11468 else
11469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11470 $as_echo "no" >&6; }
11471 fi
11472
11473
11474   else
11475     MAGIC_CMD=:
11476   fi
11477 fi
11478
11479   fi
11480   ;;
11481 esac
11482
11483 # Use C for the default configuration in the libtool script
11484
11485 lt_save_CC="$CC"
11486 ac_ext=c
11487 ac_cpp='$CPP $CPPFLAGS'
11488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11491
11492
11493 # Source file extension for C test sources.
11494 ac_ext=c
11495
11496 # Object file extension for compiled C test sources.
11497 objext=o
11498 objext=$objext
11499
11500 # Code to be used in simple compile tests
11501 lt_simple_compile_test_code="int some_variable = 0;"
11502
11503 # Code to be used in simple link tests
11504 lt_simple_link_test_code='int main(){return(0);}'
11505
11506
11507
11508
11509
11510
11511
11512 # If no C compiler was specified, use CC.
11513 LTCC=${LTCC-"$CC"}
11514
11515 # If no C compiler flags were specified, use CFLAGS.
11516 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11517
11518 # Allow CC to be a program name with arguments.
11519 compiler=$CC
11520
11521 # Save the default compiler, since it gets overwritten when the other
11522 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11523 compiler_DEFAULT=$CC
11524
11525 # save warnings/boilerplate of simple test code
11526 ac_outfile=conftest.$ac_objext
11527 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11528 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11529 _lt_compiler_boilerplate=`cat conftest.err`
11530 $RM conftest*
11531
11532 ac_outfile=conftest.$ac_objext
11533 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11534 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11535 _lt_linker_boilerplate=`cat conftest.err`
11536 $RM -r conftest*
11537
11538
11539 ## CAVEAT EMPTOR:
11540 ## There is no encapsulation within the following macros, do not change
11541 ## the running order or otherwise move them around unless you know exactly
11542 ## what you are doing...
11543 if test -n "$compiler"; then
11544
11545 lt_prog_compiler_no_builtin_flag=
11546
11547 if test "$GCC" = yes; then
11548   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11549
11550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11551 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11552 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11553   $as_echo_n "(cached) " >&6
11554 else
11555   lt_cv_prog_compiler_rtti_exceptions=no
11556    ac_outfile=conftest.$ac_objext
11557    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11558    lt_compiler_flag="-fno-rtti -fno-exceptions"
11559    # Insert the option either (1) after the last *FLAGS variable, or
11560    # (2) before a word containing "conftest.", or (3) at the end.
11561    # Note that $ac_compile itself does not contain backslashes and begins
11562    # with a dollar sign (not a hyphen), so the echo should work correctly.
11563    # The option is referenced via a variable to avoid confusing sed.
11564    lt_compile=`echo "$ac_compile" | $SED \
11565    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11566    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11567    -e 's:$: $lt_compiler_flag:'`
11568    (eval echo "\"\$as_me:11568: $lt_compile\"" >&5)
11569    (eval "$lt_compile" 2>conftest.err)
11570    ac_status=$?
11571    cat conftest.err >&5
11572    echo "$as_me:11572: \$? = $ac_status" >&5
11573    if (exit $ac_status) && test -s "$ac_outfile"; then
11574      # The compiler can only warn and ignore the option if not recognized
11575      # So say no if there are warnings other than the usual output.
11576      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11577      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11578      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11579        lt_cv_prog_compiler_rtti_exceptions=yes
11580      fi
11581    fi
11582    $RM conftest*
11583
11584 fi
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11586 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11587
11588 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11589     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11590 else
11591     :
11592 fi
11593
11594 fi
11595
11596
11597
11598
11599
11600
11601   lt_prog_compiler_wl=
11602 lt_prog_compiler_pic=
11603 lt_prog_compiler_static=
11604
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11606 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11607
11608   if test "$GCC" = yes; then
11609     lt_prog_compiler_wl='-Wl,'
11610     lt_prog_compiler_static='-static'
11611
11612     case $host_os in
11613       aix*)
11614       # All AIX code is PIC.
11615       if test "$host_cpu" = ia64; then
11616         # AIX 5 now supports IA64 processor
11617         lt_prog_compiler_static='-Bstatic'
11618       fi
11619       ;;
11620
11621     amigaos*)
11622       case $host_cpu in
11623       powerpc)
11624             # see comment about AmigaOS4 .so support
11625             lt_prog_compiler_pic='-fPIC'
11626         ;;
11627       m68k)
11628             # FIXME: we need at least 68020 code to build shared libraries, but
11629             # adding the `-m68020' flag to GCC prevents building anything better,
11630             # like `-m68040'.
11631             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11632         ;;
11633       esac
11634       ;;
11635
11636     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11637       # PIC is the default for these OSes.
11638       ;;
11639
11640     mingw* | cygwin* | pw32* | os2* | cegcc*)
11641       # This hack is so that the source file can tell whether it is being
11642       # built for inclusion in a dll (and should export symbols for example).
11643       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11644       # (--disable-auto-import) libraries
11645       lt_prog_compiler_pic='-DDLL_EXPORT'
11646       ;;
11647
11648     darwin* | rhapsody*)
11649       # PIC is the default on this platform
11650       # Common symbols not allowed in MH_DYLIB files
11651       lt_prog_compiler_pic='-fno-common'
11652       ;;
11653
11654     hpux*)
11655       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11656       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11657       # sets the default TLS model and affects inlining.
11658       case $host_cpu in
11659       hppa*64*)
11660         # +Z the default
11661         ;;
11662       *)
11663         lt_prog_compiler_pic='-fPIC'
11664         ;;
11665       esac
11666       ;;
11667
11668     interix[3-9]*)
11669       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11670       # Instead, we relocate shared libraries at runtime.
11671       ;;
11672
11673     msdosdjgpp*)
11674       # Just because we use GCC doesn't mean we suddenly get shared libraries
11675       # on systems that don't support them.
11676       lt_prog_compiler_can_build_shared=no
11677       enable_shared=no
11678       ;;
11679
11680     *nto* | *qnx*)
11681       # QNX uses GNU C++, but need to define -shared option too, otherwise
11682       # it will coredump.
11683       lt_prog_compiler_pic='-fPIC -shared'
11684       ;;
11685
11686     sysv4*MP*)
11687       if test -d /usr/nec; then
11688         lt_prog_compiler_pic=-Kconform_pic
11689       fi
11690       ;;
11691
11692     *)
11693       lt_prog_compiler_pic='-fPIC'
11694       ;;
11695     esac
11696   else
11697     # PORTME Check for flag to pass linker flags through the system compiler.
11698     case $host_os in
11699     aix*)
11700       lt_prog_compiler_wl='-Wl,'
11701       if test "$host_cpu" = ia64; then
11702         # AIX 5 now supports IA64 processor
11703         lt_prog_compiler_static='-Bstatic'
11704       else
11705         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11706       fi
11707       ;;
11708
11709     mingw* | cygwin* | pw32* | os2* | cegcc*)
11710       # This hack is so that the source file can tell whether it is being
11711       # built for inclusion in a dll (and should export symbols for example).
11712       lt_prog_compiler_pic='-DDLL_EXPORT'
11713       ;;
11714
11715     hpux9* | hpux10* | hpux11*)
11716       lt_prog_compiler_wl='-Wl,'
11717       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11718       # not for PA HP-UX.
11719       case $host_cpu in
11720       hppa*64*|ia64*)
11721         # +Z the default
11722         ;;
11723       *)
11724         lt_prog_compiler_pic='+Z'
11725         ;;
11726       esac
11727       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11728       lt_prog_compiler_static='${wl}-a ${wl}archive'
11729       ;;
11730
11731     irix5* | irix6* | nonstopux*)
11732       lt_prog_compiler_wl='-Wl,'
11733       # PIC (with -KPIC) is the default.
11734       lt_prog_compiler_static='-non_shared'
11735       ;;
11736
11737     linux* | k*bsd*-gnu)
11738       case $cc_basename in
11739       # old Intel for x86_64 which still supported -KPIC.
11740       ecc*)
11741         lt_prog_compiler_wl='-Wl,'
11742         lt_prog_compiler_pic='-KPIC'
11743         lt_prog_compiler_static='-static'
11744         ;;
11745       # icc used to be incompatible with GCC.
11746       # ICC 10 doesn't accept -KPIC any more.
11747       icc* | ifort*)
11748         lt_prog_compiler_wl='-Wl,'
11749         lt_prog_compiler_pic='-fPIC'
11750         lt_prog_compiler_static='-static'
11751         ;;
11752       # Lahey Fortran 8.1.
11753       lf95*)
11754         lt_prog_compiler_wl='-Wl,'
11755         lt_prog_compiler_pic='--shared'
11756         lt_prog_compiler_static='--static'
11757         ;;
11758       pgcc* | pgf77* | pgf90* | pgf95*)
11759         # Portland Group compilers (*not* the Pentium gcc compiler,
11760         # which looks to be a dead project)
11761         lt_prog_compiler_wl='-Wl,'
11762         lt_prog_compiler_pic='-fpic'
11763         lt_prog_compiler_static='-Bstatic'
11764         ;;
11765       ccc*)
11766         lt_prog_compiler_wl='-Wl,'
11767         # All Alpha code is PIC.
11768         lt_prog_compiler_static='-non_shared'
11769         ;;
11770       xl*)
11771         # IBM XL C 8.0/Fortran 10.1 on PPC
11772         lt_prog_compiler_wl='-Wl,'
11773         lt_prog_compiler_pic='-qpic'
11774         lt_prog_compiler_static='-qstaticlink'
11775         ;;
11776       *)
11777         case `$CC -V 2>&1 | sed 5q` in
11778         *Sun\ C*)
11779           # Sun C 5.9
11780           lt_prog_compiler_pic='-KPIC'
11781           lt_prog_compiler_static='-Bstatic'
11782           lt_prog_compiler_wl='-Wl,'
11783           ;;
11784         *Sun\ F*)
11785           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11786           lt_prog_compiler_pic='-KPIC'
11787           lt_prog_compiler_static='-Bstatic'
11788           lt_prog_compiler_wl=''
11789           ;;
11790         esac
11791         ;;
11792       esac
11793       ;;
11794
11795     newsos6)
11796       lt_prog_compiler_pic='-KPIC'
11797       lt_prog_compiler_static='-Bstatic'
11798       ;;
11799
11800     *nto* | *qnx*)
11801       # QNX uses GNU C++, but need to define -shared option too, otherwise
11802       # it will coredump.
11803       lt_prog_compiler_pic='-fPIC -shared'
11804       ;;
11805
11806     osf3* | osf4* | osf5*)
11807       lt_prog_compiler_wl='-Wl,'
11808       # All OSF/1 code is PIC.
11809       lt_prog_compiler_static='-non_shared'
11810       ;;
11811
11812     rdos*)
11813       lt_prog_compiler_static='-non_shared'
11814       ;;
11815
11816     solaris*)
11817       lt_prog_compiler_pic='-KPIC'
11818       lt_prog_compiler_static='-Bstatic'
11819       case $cc_basename in
11820       f77* | f90* | f95*)
11821         lt_prog_compiler_wl='-Qoption ld ';;
11822       *)
11823         lt_prog_compiler_wl='-Wl,';;
11824       esac
11825       ;;
11826
11827     sunos4*)
11828       lt_prog_compiler_wl='-Qoption ld '
11829       lt_prog_compiler_pic='-PIC'
11830       lt_prog_compiler_static='-Bstatic'
11831       ;;
11832
11833     sysv4 | sysv4.2uw2* | sysv4.3*)
11834       lt_prog_compiler_wl='-Wl,'
11835       lt_prog_compiler_pic='-KPIC'
11836       lt_prog_compiler_static='-Bstatic'
11837       ;;
11838
11839     sysv4*MP*)
11840       if test -d /usr/nec ;then
11841         lt_prog_compiler_pic='-Kconform_pic'
11842         lt_prog_compiler_static='-Bstatic'
11843       fi
11844       ;;
11845
11846     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11847       lt_prog_compiler_wl='-Wl,'
11848       lt_prog_compiler_pic='-KPIC'
11849       lt_prog_compiler_static='-Bstatic'
11850       ;;
11851
11852     unicos*)
11853       lt_prog_compiler_wl='-Wl,'
11854       lt_prog_compiler_can_build_shared=no
11855       ;;
11856
11857     uts4*)
11858       lt_prog_compiler_pic='-pic'
11859       lt_prog_compiler_static='-Bstatic'
11860       ;;
11861
11862     *)
11863       lt_prog_compiler_can_build_shared=no
11864       ;;
11865     esac
11866   fi
11867
11868 case $host_os in
11869   # For platforms which do not support PIC, -DPIC is meaningless:
11870   *djgpp*)
11871     lt_prog_compiler_pic=
11872     ;;
11873   *)
11874     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11875     ;;
11876 esac
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
11878 $as_echo "$lt_prog_compiler_pic" >&6; }
11879
11880
11881
11882
11883
11884
11885 #
11886 # Check to make sure the PIC flag actually works.
11887 #
11888 if test -n "$lt_prog_compiler_pic"; then
11889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11890 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11891 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
11892   $as_echo_n "(cached) " >&6
11893 else
11894   lt_cv_prog_compiler_pic_works=no
11895    ac_outfile=conftest.$ac_objext
11896    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11897    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11898    # Insert the option either (1) after the last *FLAGS variable, or
11899    # (2) before a word containing "conftest.", or (3) at the end.
11900    # Note that $ac_compile itself does not contain backslashes and begins
11901    # with a dollar sign (not a hyphen), so the echo should work correctly.
11902    # The option is referenced via a variable to avoid confusing sed.
11903    lt_compile=`echo "$ac_compile" | $SED \
11904    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11905    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11906    -e 's:$: $lt_compiler_flag:'`
11907    (eval echo "\"\$as_me:11907: $lt_compile\"" >&5)
11908    (eval "$lt_compile" 2>conftest.err)
11909    ac_status=$?
11910    cat conftest.err >&5
11911    echo "$as_me:11911: \$? = $ac_status" >&5
11912    if (exit $ac_status) && test -s "$ac_outfile"; then
11913      # The compiler can only warn and ignore the option if not recognized
11914      # So say no if there are warnings other than the usual output.
11915      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11916      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11917      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11918        lt_cv_prog_compiler_pic_works=yes
11919      fi
11920    fi
11921    $RM conftest*
11922
11923 fi
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11925 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11926
11927 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11928     case $lt_prog_compiler_pic in
11929      "" | " "*) ;;
11930      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11931      esac
11932 else
11933     lt_prog_compiler_pic=
11934      lt_prog_compiler_can_build_shared=no
11935 fi
11936
11937 fi
11938
11939
11940
11941
11942
11943
11944 #
11945 # Check to make sure the static flag actually works.
11946 #
11947 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11949 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11950 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
11951   $as_echo_n "(cached) " >&6
11952 else
11953   lt_cv_prog_compiler_static_works=no
11954    save_LDFLAGS="$LDFLAGS"
11955    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11956    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11957    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11958      # The linker can only warn and ignore the option if not recognized
11959      # So say no if there are warnings
11960      if test -s conftest.err; then
11961        # Append any errors to the config.log.
11962        cat conftest.err 1>&5
11963        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11964        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11965        if diff conftest.exp conftest.er2 >/dev/null; then
11966          lt_cv_prog_compiler_static_works=yes
11967        fi
11968      else
11969        lt_cv_prog_compiler_static_works=yes
11970      fi
11971    fi
11972    $RM -r conftest*
11973    LDFLAGS="$save_LDFLAGS"
11974
11975 fi
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11977 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11978
11979 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11980     :
11981 else
11982     lt_prog_compiler_static=
11983 fi
11984
11985
11986
11987
11988
11989
11990
11991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11992 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11993 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11994   $as_echo_n "(cached) " >&6
11995 else
11996   lt_cv_prog_compiler_c_o=no
11997    $RM -r conftest 2>/dev/null
11998    mkdir conftest
11999    cd conftest
12000    mkdir out
12001    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12002
12003    lt_compiler_flag="-o out/conftest2.$ac_objext"
12004    # Insert the option either (1) after the last *FLAGS variable, or
12005    # (2) before a word containing "conftest.", or (3) at the end.
12006    # Note that $ac_compile itself does not contain backslashes and begins
12007    # with a dollar sign (not a hyphen), so the echo should work correctly.
12008    lt_compile=`echo "$ac_compile" | $SED \
12009    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12010    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12011    -e 's:$: $lt_compiler_flag:'`
12012    (eval echo "\"\$as_me:12012: $lt_compile\"" >&5)
12013    (eval "$lt_compile" 2>out/conftest.err)
12014    ac_status=$?
12015    cat out/conftest.err >&5
12016    echo "$as_me:12016: \$? = $ac_status" >&5
12017    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12018    then
12019      # The compiler can only warn and ignore the option if not recognized
12020      # So say no if there are warnings
12021      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12022      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12023      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12024        lt_cv_prog_compiler_c_o=yes
12025      fi
12026    fi
12027    chmod u+w . 2>&5
12028    $RM conftest*
12029    # SGI C++ compiler will create directory out/ii_files/ for
12030    # template instantiation
12031    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12032    $RM out/* && rmdir out
12033    cd ..
12034    $RM -r conftest
12035    $RM conftest*
12036
12037 fi
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12039 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12040
12041
12042
12043
12044
12045
12046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12047 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12048 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12049   $as_echo_n "(cached) " >&6
12050 else
12051   lt_cv_prog_compiler_c_o=no
12052    $RM -r conftest 2>/dev/null
12053    mkdir conftest
12054    cd conftest
12055    mkdir out
12056    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12057
12058    lt_compiler_flag="-o out/conftest2.$ac_objext"
12059    # Insert the option either (1) after the last *FLAGS variable, or
12060    # (2) before a word containing "conftest.", or (3) at the end.
12061    # Note that $ac_compile itself does not contain backslashes and begins
12062    # with a dollar sign (not a hyphen), so the echo should work correctly.
12063    lt_compile=`echo "$ac_compile" | $SED \
12064    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12065    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12066    -e 's:$: $lt_compiler_flag:'`
12067    (eval echo "\"\$as_me:12067: $lt_compile\"" >&5)
12068    (eval "$lt_compile" 2>out/conftest.err)
12069    ac_status=$?
12070    cat out/conftest.err >&5
12071    echo "$as_me:12071: \$? = $ac_status" >&5
12072    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12073    then
12074      # The compiler can only warn and ignore the option if not recognized
12075      # So say no if there are warnings
12076      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12077      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12078      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12079        lt_cv_prog_compiler_c_o=yes
12080      fi
12081    fi
12082    chmod u+w . 2>&5
12083    $RM conftest*
12084    # SGI C++ compiler will create directory out/ii_files/ for
12085    # template instantiation
12086    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12087    $RM out/* && rmdir out
12088    cd ..
12089    $RM -r conftest
12090    $RM conftest*
12091
12092 fi
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12094 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12095
12096
12097
12098
12099 hard_links="nottested"
12100 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12101   # do not overwrite the value of need_locks provided by the user
12102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12103 $as_echo_n "checking if we can lock with hard links... " >&6; }
12104   hard_links=yes
12105   $RM conftest*
12106   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12107   touch conftest.a
12108   ln conftest.a conftest.b 2>&5 || hard_links=no
12109   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12111 $as_echo "$hard_links" >&6; }
12112   if test "$hard_links" = no; then
12113     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12114 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12115     need_locks=warn
12116   fi
12117 else
12118   need_locks=no
12119 fi
12120
12121
12122
12123
12124
12125
12126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12127 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12128
12129   runpath_var=
12130   allow_undefined_flag=
12131   always_export_symbols=no
12132   archive_cmds=
12133   archive_expsym_cmds=
12134   compiler_needs_object=no
12135   enable_shared_with_static_runtimes=no
12136   export_dynamic_flag_spec=
12137   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12138   hardcode_automatic=no
12139   hardcode_direct=no
12140   hardcode_direct_absolute=no
12141   hardcode_libdir_flag_spec=
12142   hardcode_libdir_flag_spec_ld=
12143   hardcode_libdir_separator=
12144   hardcode_minus_L=no
12145   hardcode_shlibpath_var=unsupported
12146   inherit_rpath=no
12147   link_all_deplibs=unknown
12148   module_cmds=
12149   module_expsym_cmds=
12150   old_archive_from_new_cmds=
12151   old_archive_from_expsyms_cmds=
12152   thread_safe_flag_spec=
12153   whole_archive_flag_spec=
12154   # include_expsyms should be a list of space-separated symbols to be *always*
12155   # included in the symbol list
12156   include_expsyms=
12157   # exclude_expsyms can be an extended regexp of symbols to exclude
12158   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12159   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12160   # as well as any symbol that contains `d'.
12161   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12162   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12163   # platforms (ab)use it in PIC code, but their linkers get confused if
12164   # the symbol is explicitly referenced.  Since portable code cannot
12165   # rely on this symbol name, it's probably fine to never include it in
12166   # preloaded symbol tables.
12167   # Exclude shared library initialization/finalization symbols.
12168   extract_expsyms_cmds=
12169
12170   case $host_os in
12171   cygwin* | mingw* | pw32* | cegcc*)
12172     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12173     # When not using gcc, we currently assume that we are using
12174     # Microsoft Visual C++.
12175     if test "$GCC" != yes; then
12176       with_gnu_ld=no
12177     fi
12178     ;;
12179   interix*)
12180     # we just hope/assume this is gcc and not c89 (= MSVC++)
12181     with_gnu_ld=yes
12182     ;;
12183   openbsd*)
12184     with_gnu_ld=no
12185     ;;
12186   esac
12187
12188   ld_shlibs=yes
12189   if test "$with_gnu_ld" = yes; then
12190     # If archive_cmds runs LD, not CC, wlarc should be empty
12191     wlarc='${wl}'
12192
12193     # Set some defaults for GNU ld with shared library support. These
12194     # are reset later if shared libraries are not supported. Putting them
12195     # here allows them to be overridden if necessary.
12196     runpath_var=LD_RUN_PATH
12197     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12198     export_dynamic_flag_spec='${wl}--export-dynamic'
12199     # ancient GNU ld didn't support --whole-archive et. al.
12200     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12201       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12202     else
12203       whole_archive_flag_spec=
12204     fi
12205     supports_anon_versioning=no
12206     case `$LD -v 2>&1` in
12207       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12208       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12209       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12210       *\ 2.11.*) ;; # other 2.11 versions
12211       *) supports_anon_versioning=yes ;;
12212     esac
12213
12214     # See if GNU ld supports shared libraries.
12215     case $host_os in
12216     aix[3-9]*)
12217       # On AIX/PPC, the GNU linker is very broken
12218       if test "$host_cpu" != ia64; then
12219         ld_shlibs=no
12220         cat <<_LT_EOF 1>&2
12221
12222 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12223 *** to be unable to reliably create shared libraries on AIX.
12224 *** Therefore, libtool is disabling shared libraries support.  If you
12225 *** really care for shared libraries, you may want to modify your PATH
12226 *** so that a non-GNU linker is found, and then restart.
12227
12228 _LT_EOF
12229       fi
12230       ;;
12231
12232     amigaos*)
12233       case $host_cpu in
12234       powerpc)
12235             # see comment about AmigaOS4 .so support
12236             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12237             archive_expsym_cmds=''
12238         ;;
12239       m68k)
12240             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)'
12241             hardcode_libdir_flag_spec='-L$libdir'
12242             hardcode_minus_L=yes
12243         ;;
12244       esac
12245       ;;
12246
12247     beos*)
12248       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12249         allow_undefined_flag=unsupported
12250         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12251         # support --undefined.  This deserves some investigation.  FIXME
12252         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12253       else
12254         ld_shlibs=no
12255       fi
12256       ;;
12257
12258     cygwin* | mingw* | pw32* | cegcc*)
12259       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12260       # as there is no search path for DLLs.
12261       hardcode_libdir_flag_spec='-L$libdir'
12262       allow_undefined_flag=unsupported
12263       always_export_symbols=no
12264       enable_shared_with_static_runtimes=yes
12265       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12266
12267       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12268         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12269         # If the export-symbols file already is a .def file (1st line
12270         # is EXPORTS), use it as is; otherwise, prepend...
12271         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12272           cp $export_symbols $output_objdir/$soname.def;
12273         else
12274           echo EXPORTS > $output_objdir/$soname.def;
12275           cat $export_symbols >> $output_objdir/$soname.def;
12276         fi~
12277         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12278       else
12279         ld_shlibs=no
12280       fi
12281       ;;
12282
12283     interix[3-9]*)
12284       hardcode_direct=no
12285       hardcode_shlibpath_var=no
12286       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12287       export_dynamic_flag_spec='${wl}-E'
12288       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12289       # Instead, shared libraries are loaded at an image base (0x10000000 by
12290       # default) and relocated if they conflict, which is a slow very memory
12291       # consuming and fragmenting process.  To avoid this, we pick a random,
12292       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12293       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12294       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12295       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'
12296       ;;
12297
12298     gnu* | linux* | tpf* | k*bsd*-gnu)
12299       tmp_diet=no
12300       if test "$host_os" = linux-dietlibc; then
12301         case $cc_basename in
12302           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12303         esac
12304       fi
12305       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12306          && test "$tmp_diet" = no
12307       then
12308         tmp_addflag=
12309         tmp_sharedflag='-shared'
12310         case $cc_basename,$host_cpu in
12311         pgcc*)                          # Portland Group C compiler
12312           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'
12313           tmp_addflag=' $pic_flag'
12314           ;;
12315         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
12316           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'
12317           tmp_addflag=' $pic_flag -Mnomain' ;;
12318         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12319           tmp_addflag=' -i_dynamic' ;;
12320         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12321           tmp_addflag=' -i_dynamic -nofor_main' ;;
12322         ifc* | ifort*)                  # Intel Fortran compiler
12323           tmp_addflag=' -nofor_main' ;;
12324         lf95*)                          # Lahey Fortran 8.1
12325           whole_archive_flag_spec=
12326           tmp_sharedflag='--shared' ;;
12327         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
12328           tmp_sharedflag='-qmkshrobj'
12329           tmp_addflag= ;;
12330         esac
12331         case `$CC -V 2>&1 | sed 5q` in
12332         *Sun\ C*)                       # Sun C 5.9
12333           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'
12334           compiler_needs_object=yes
12335           tmp_sharedflag='-G' ;;
12336         *Sun\ F*)                       # Sun Fortran 8.3
12337           tmp_sharedflag='-G' ;;
12338         esac
12339         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12340
12341         if test "x$supports_anon_versioning" = xyes; then
12342           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12343             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12344             echo "local: *; };" >> $output_objdir/$libname.ver~
12345             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12346         fi
12347
12348         case $cc_basename in
12349         xlf*)
12350           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12351           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12352           hardcode_libdir_flag_spec=
12353           hardcode_libdir_flag_spec_ld='-rpath $libdir'
12354           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12355           if test "x$supports_anon_versioning" = xyes; then
12356             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12357               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12358               echo "local: *; };" >> $output_objdir/$libname.ver~
12359               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12360           fi
12361           ;;
12362         esac
12363       else
12364         ld_shlibs=no
12365       fi
12366       ;;
12367
12368     netbsd*)
12369       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12370         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12371         wlarc=
12372       else
12373         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12374         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12375       fi
12376       ;;
12377
12378     solaris*)
12379       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12380         ld_shlibs=no
12381         cat <<_LT_EOF 1>&2
12382
12383 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12384 *** create shared libraries on Solaris systems.  Therefore, libtool
12385 *** is disabling shared libraries support.  We urge you to upgrade GNU
12386 *** binutils to release 2.9.1 or newer.  Another option is to modify
12387 *** your PATH or compiler configuration so that the native linker is
12388 *** used, and then restart.
12389
12390 _LT_EOF
12391       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12392         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12393         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12394       else
12395         ld_shlibs=no
12396       fi
12397       ;;
12398
12399     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12400       case `$LD -v 2>&1` in
12401         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12402         ld_shlibs=no
12403         cat <<_LT_EOF 1>&2
12404
12405 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12406 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12407 *** is disabling shared libraries support.  We urge you to upgrade GNU
12408 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12409 *** your PATH or compiler configuration so that the native linker is
12410 *** used, and then restart.
12411
12412 _LT_EOF
12413         ;;
12414         *)
12415           # For security reasons, it is highly recommended that you always
12416           # use absolute paths for naming shared libraries, and exclude the
12417           # DT_RUNPATH tag from executables and libraries.  But doing so
12418           # requires that you compile everything twice, which is a pain.
12419           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12420             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12421             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12422             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12423           else
12424             ld_shlibs=no
12425           fi
12426         ;;
12427       esac
12428       ;;
12429
12430     sunos4*)
12431       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12432       wlarc=
12433       hardcode_direct=yes
12434       hardcode_shlibpath_var=no
12435       ;;
12436
12437     *)
12438       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12439         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12440         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12441       else
12442         ld_shlibs=no
12443       fi
12444       ;;
12445     esac
12446
12447     if test "$ld_shlibs" = no; then
12448       runpath_var=
12449       hardcode_libdir_flag_spec=
12450       export_dynamic_flag_spec=
12451       whole_archive_flag_spec=
12452     fi
12453   else
12454     # PORTME fill in a description of your system's linker (not GNU ld)
12455     case $host_os in
12456     aix3*)
12457       allow_undefined_flag=unsupported
12458       always_export_symbols=yes
12459       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'
12460       # Note: this linker hardcodes the directories in LIBPATH if there
12461       # are no directories specified by -L.
12462       hardcode_minus_L=yes
12463       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12464         # Neither direct hardcoding nor static linking is supported with a
12465         # broken collect2.
12466         hardcode_direct=unsupported
12467       fi
12468       ;;
12469
12470     aix[4-9]*)
12471       if test "$host_cpu" = ia64; then
12472         # On IA64, the linker does run time linking by default, so we don't
12473         # have to do anything special.
12474         aix_use_runtimelinking=no
12475         exp_sym_flag='-Bexport'
12476         no_entry_flag=""
12477       else
12478         # If we're using GNU nm, then we don't want the "-C" option.
12479         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12480         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12481           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'
12482         else
12483           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'
12484         fi
12485         aix_use_runtimelinking=no
12486
12487         # Test if we are trying to use run time linking or normal
12488         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12489         # need to do runtime linking.
12490         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12491           for ld_flag in $LDFLAGS; do
12492           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12493             aix_use_runtimelinking=yes
12494             break
12495           fi
12496           done
12497           ;;
12498         esac
12499
12500         exp_sym_flag='-bexport'
12501         no_entry_flag='-bnoentry'
12502       fi
12503
12504       # When large executables or shared objects are built, AIX ld can
12505       # have problems creating the table of contents.  If linking a library
12506       # or program results in "error TOC overflow" add -mminimal-toc to
12507       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12508       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12509
12510       archive_cmds=''
12511       hardcode_direct=yes
12512       hardcode_direct_absolute=yes
12513       hardcode_libdir_separator=':'
12514       link_all_deplibs=yes
12515       file_list_spec='${wl}-f,'
12516
12517       if test "$GCC" = yes; then
12518         case $host_os in aix4.[012]|aix4.[012].*)
12519         # We only want to do this on AIX 4.2 and lower, the check
12520         # below for broken collect2 doesn't work under 4.3+
12521           collect2name=`${CC} -print-prog-name=collect2`
12522           if test -f "$collect2name" &&
12523            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12524           then
12525           # We have reworked collect2
12526           :
12527           else
12528           # We have old collect2
12529           hardcode_direct=unsupported
12530           # It fails to find uninstalled libraries when the uninstalled
12531           # path is not listed in the libpath.  Setting hardcode_minus_L
12532           # to unsupported forces relinking
12533           hardcode_minus_L=yes
12534           hardcode_libdir_flag_spec='-L$libdir'
12535           hardcode_libdir_separator=
12536           fi
12537           ;;
12538         esac
12539         shared_flag='-shared'
12540         if test "$aix_use_runtimelinking" = yes; then
12541           shared_flag="$shared_flag "'${wl}-G'
12542         fi
12543       else
12544         # not using gcc
12545         if test "$host_cpu" = ia64; then
12546         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12547         # chokes on -Wl,-G. The following line is correct:
12548           shared_flag='-G'
12549         else
12550           if test "$aix_use_runtimelinking" = yes; then
12551             shared_flag='${wl}-G'
12552           else
12553             shared_flag='${wl}-bM:SRE'
12554           fi
12555         fi
12556       fi
12557
12558       export_dynamic_flag_spec='${wl}-bexpall'
12559       # It seems that -bexpall does not export symbols beginning with
12560       # underscore (_), so it is better to generate a list of symbols to export.
12561       always_export_symbols=yes
12562       if test "$aix_use_runtimelinking" = yes; then
12563         # Warning - without using the other runtime loading flags (-brtl),
12564         # -berok will link without error, but may produce a broken library.
12565         allow_undefined_flag='-berok'
12566         # Determine the default libpath from the value encoded in an
12567         # empty executable.
12568         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h.  */
12570
12571 int
12572 main ()
12573 {
12574
12575   ;
12576   return 0;
12577 }
12578 _ACEOF
12579 if ac_fn_c_try_link "$LINENO"; then :
12580
12581 lt_aix_libpath_sed='
12582     /Import File Strings/,/^$/ {
12583         /^0/ {
12584             s/^0  *\(.*\)$/\1/
12585             p
12586         }
12587     }'
12588 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12589 # Check for a 64-bit object if we didn't find anything.
12590 if test -z "$aix_libpath"; then
12591   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12592 fi
12593 fi
12594 rm -f core conftest.err conftest.$ac_objext \
12595     conftest$ac_exeext conftest.$ac_ext
12596 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12597
12598         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12599         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"
12600       else
12601         if test "$host_cpu" = ia64; then
12602           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12603           allow_undefined_flag="-z nodefs"
12604           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"
12605         else
12606          # Determine the default libpath from the value encoded in an
12607          # empty executable.
12608          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h.  */
12610
12611 int
12612 main ()
12613 {
12614
12615   ;
12616   return 0;
12617 }
12618 _ACEOF
12619 if ac_fn_c_try_link "$LINENO"; then :
12620
12621 lt_aix_libpath_sed='
12622     /Import File Strings/,/^$/ {
12623         /^0/ {
12624             s/^0  *\(.*\)$/\1/
12625             p
12626         }
12627     }'
12628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12629 # Check for a 64-bit object if we didn't find anything.
12630 if test -z "$aix_libpath"; then
12631   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12632 fi
12633 fi
12634 rm -f core conftest.err conftest.$ac_objext \
12635     conftest$ac_exeext conftest.$ac_ext
12636 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12637
12638          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12639           # Warning - without using the other run time loading flags,
12640           # -berok will link without error, but may produce a broken library.
12641           no_undefined_flag=' ${wl}-bernotok'
12642           allow_undefined_flag=' ${wl}-berok'
12643           # Exported symbols can be pulled into shared objects from archives
12644           whole_archive_flag_spec='$convenience'
12645           archive_cmds_need_lc=yes
12646           # This is similar to how AIX traditionally builds its shared libraries.
12647           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'
12648         fi
12649       fi
12650       ;;
12651
12652     amigaos*)
12653       case $host_cpu in
12654       powerpc)
12655             # see comment about AmigaOS4 .so support
12656             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12657             archive_expsym_cmds=''
12658         ;;
12659       m68k)
12660             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)'
12661             hardcode_libdir_flag_spec='-L$libdir'
12662             hardcode_minus_L=yes
12663         ;;
12664       esac
12665       ;;
12666
12667     bsdi[45]*)
12668       export_dynamic_flag_spec=-rdynamic
12669       ;;
12670
12671     cygwin* | mingw* | pw32* | cegcc*)
12672       # When not using gcc, we currently assume that we are using
12673       # Microsoft Visual C++.
12674       # hardcode_libdir_flag_spec is actually meaningless, as there is
12675       # no search path for DLLs.
12676       hardcode_libdir_flag_spec=' '
12677       allow_undefined_flag=unsupported
12678       # Tell ltmain to make .lib files, not .a files.
12679       libext=lib
12680       # Tell ltmain to make .dll files, not .so files.
12681       shrext_cmds=".dll"
12682       # FIXME: Setting linknames here is a bad hack.
12683       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12684       # The linker will automatically build a .lib file if we build a DLL.
12685       old_archive_from_new_cmds='true'
12686       # FIXME: Should let the user specify the lib program.
12687       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12688       fix_srcfile_path='`cygpath -w "$srcfile"`'
12689       enable_shared_with_static_runtimes=yes
12690       ;;
12691
12692     darwin* | rhapsody*)
12693
12694
12695   archive_cmds_need_lc=no
12696   hardcode_direct=no
12697   hardcode_automatic=yes
12698   hardcode_shlibpath_var=unsupported
12699   whole_archive_flag_spec=''
12700   link_all_deplibs=yes
12701   allow_undefined_flag="$_lt_dar_allow_undefined"
12702   case $cc_basename in
12703      ifort*) _lt_dar_can_shared=yes ;;
12704      *) _lt_dar_can_shared=$GCC ;;
12705   esac
12706   if test "$_lt_dar_can_shared" = "yes"; then
12707     output_verbose_link_cmd=echo
12708     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12709     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12710     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}"
12711     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}"
12712
12713   else
12714   ld_shlibs=no
12715   fi
12716
12717       ;;
12718
12719     dgux*)
12720       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12721       hardcode_libdir_flag_spec='-L$libdir'
12722       hardcode_shlibpath_var=no
12723       ;;
12724
12725     freebsd1*)
12726       ld_shlibs=no
12727       ;;
12728
12729     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12730     # support.  Future versions do this automatically, but an explicit c++rt0.o
12731     # does not break anything, and helps significantly (at the cost of a little
12732     # extra space).
12733     freebsd2.2*)
12734       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12735       hardcode_libdir_flag_spec='-R$libdir'
12736       hardcode_direct=yes
12737       hardcode_shlibpath_var=no
12738       ;;
12739
12740     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12741     freebsd2*)
12742       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12743       hardcode_direct=yes
12744       hardcode_minus_L=yes
12745       hardcode_shlibpath_var=no
12746       ;;
12747
12748     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12749     freebsd* | dragonfly*)
12750       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12751       hardcode_libdir_flag_spec='-R$libdir'
12752       hardcode_direct=yes
12753       hardcode_shlibpath_var=no
12754       ;;
12755
12756     hpux9*)
12757       if test "$GCC" = yes; then
12758         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'
12759       else
12760         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'
12761       fi
12762       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12763       hardcode_libdir_separator=:
12764       hardcode_direct=yes
12765
12766       # hardcode_minus_L: Not really in the search PATH,
12767       # but as the default location of the library.
12768       hardcode_minus_L=yes
12769       export_dynamic_flag_spec='${wl}-E'
12770       ;;
12771
12772     hpux10*)
12773       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12774         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12775       else
12776         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12777       fi
12778       if test "$with_gnu_ld" = no; then
12779         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12780         hardcode_libdir_flag_spec_ld='+b $libdir'
12781         hardcode_libdir_separator=:
12782         hardcode_direct=yes
12783         hardcode_direct_absolute=yes
12784         export_dynamic_flag_spec='${wl}-E'
12785         # hardcode_minus_L: Not really in the search PATH,
12786         # but as the default location of the library.
12787         hardcode_minus_L=yes
12788       fi
12789       ;;
12790
12791     hpux11*)
12792       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12793         case $host_cpu in
12794         hppa*64*)
12795           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12796           ;;
12797         ia64*)
12798           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12799           ;;
12800         *)
12801           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12802           ;;
12803         esac
12804       else
12805         case $host_cpu in
12806         hppa*64*)
12807           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12808           ;;
12809         ia64*)
12810           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12811           ;;
12812         *)
12813           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12814           ;;
12815         esac
12816       fi
12817       if test "$with_gnu_ld" = no; then
12818         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12819         hardcode_libdir_separator=:
12820
12821         case $host_cpu in
12822         hppa*64*|ia64*)
12823           hardcode_direct=no
12824           hardcode_shlibpath_var=no
12825           ;;
12826         *)
12827           hardcode_direct=yes
12828           hardcode_direct_absolute=yes
12829           export_dynamic_flag_spec='${wl}-E'
12830
12831           # hardcode_minus_L: Not really in the search PATH,
12832           # but as the default location of the library.
12833           hardcode_minus_L=yes
12834           ;;
12835         esac
12836       fi
12837       ;;
12838
12839     irix5* | irix6* | nonstopux*)
12840       if test "$GCC" = yes; then
12841         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'
12842         # Try to use the -exported_symbol ld option, if it does not
12843         # work, assume that -exports_file does not work either and
12844         # implicitly export all symbols.
12845         save_LDFLAGS="$LDFLAGS"
12846         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12847         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848 /* end confdefs.h.  */
12849 int foo(void) {}
12850 _ACEOF
12851 if ac_fn_c_try_link "$LINENO"; then :
12852   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'
12853
12854 fi
12855 rm -f core conftest.err conftest.$ac_objext \
12856     conftest$ac_exeext conftest.$ac_ext
12857         LDFLAGS="$save_LDFLAGS"
12858       else
12859         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'
12860         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'
12861       fi
12862       archive_cmds_need_lc='no'
12863       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12864       hardcode_libdir_separator=:
12865       inherit_rpath=yes
12866       link_all_deplibs=yes
12867       ;;
12868
12869     netbsd*)
12870       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12871         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12872       else
12873         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12874       fi
12875       hardcode_libdir_flag_spec='-R$libdir'
12876       hardcode_direct=yes
12877       hardcode_shlibpath_var=no
12878       ;;
12879
12880     newsos6)
12881       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12882       hardcode_direct=yes
12883       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12884       hardcode_libdir_separator=:
12885       hardcode_shlibpath_var=no
12886       ;;
12887
12888     *nto* | *qnx*)
12889       ;;
12890
12891     openbsd*)
12892       if test -f /usr/libexec/ld.so; then
12893         hardcode_direct=yes
12894         hardcode_shlibpath_var=no
12895         hardcode_direct_absolute=yes
12896         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12897           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12898           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12899           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12900           export_dynamic_flag_spec='${wl}-E'
12901         else
12902           case $host_os in
12903            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12904              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12905              hardcode_libdir_flag_spec='-R$libdir'
12906              ;;
12907            *)
12908              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12909              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12910              ;;
12911           esac
12912         fi
12913       else
12914         ld_shlibs=no
12915       fi
12916       ;;
12917
12918     os2*)
12919       hardcode_libdir_flag_spec='-L$libdir'
12920       hardcode_minus_L=yes
12921       allow_undefined_flag=unsupported
12922       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'
12923       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12924       ;;
12925
12926     osf3*)
12927       if test "$GCC" = yes; then
12928         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12929         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'
12930       else
12931         allow_undefined_flag=' -expect_unresolved \*'
12932         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'
12933       fi
12934       archive_cmds_need_lc='no'
12935       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12936       hardcode_libdir_separator=:
12937       ;;
12938
12939     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12940       if test "$GCC" = yes; then
12941         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12942         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'
12943         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12944       else
12945         allow_undefined_flag=' -expect_unresolved \*'
12946         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'
12947         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~
12948         $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'
12949
12950         # Both c and cxx compiler support -rpath directly
12951         hardcode_libdir_flag_spec='-rpath $libdir'
12952       fi
12953       archive_cmds_need_lc='no'
12954       hardcode_libdir_separator=:
12955       ;;
12956
12957     solaris*)
12958       no_undefined_flag=' -z defs'
12959       if test "$GCC" = yes; then
12960         wlarc='${wl}'
12961         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12962         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12963           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12964       else
12965         case `$CC -V 2>&1` in
12966         *"Compilers 5.0"*)
12967           wlarc=''
12968           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12969           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12970           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12971           ;;
12972         *)
12973           wlarc='${wl}'
12974           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12975           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12976           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12977           ;;
12978         esac
12979       fi
12980       hardcode_libdir_flag_spec='-R$libdir'
12981       hardcode_shlibpath_var=no
12982       case $host_os in
12983       solaris2.[0-5] | solaris2.[0-5].*) ;;
12984       *)
12985         # The compiler driver will combine and reorder linker options,
12986         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12987         # but is careful enough not to reorder.
12988         # Supported since Solaris 2.6 (maybe 2.5.1?)
12989         if test "$GCC" = yes; then
12990           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12991         else
12992           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12993         fi
12994         ;;
12995       esac
12996       link_all_deplibs=yes
12997       ;;
12998
12999     sunos4*)
13000       if test "x$host_vendor" = xsequent; then
13001         # Use $CC to link under sequent, because it throws in some extra .o
13002         # files that make .init and .fini sections work.
13003         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13004       else
13005         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13006       fi
13007       hardcode_libdir_flag_spec='-L$libdir'
13008       hardcode_direct=yes
13009       hardcode_minus_L=yes
13010       hardcode_shlibpath_var=no
13011       ;;
13012
13013     sysv4)
13014       case $host_vendor in
13015         sni)
13016           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13017           hardcode_direct=yes # is this really true???
13018         ;;
13019         siemens)
13020           ## LD is ld it makes a PLAMLIB
13021           ## CC just makes a GrossModule.
13022           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13023           reload_cmds='$CC -r -o $output$reload_objs'
13024           hardcode_direct=no
13025         ;;
13026         motorola)
13027           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13028           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13029         ;;
13030       esac
13031       runpath_var='LD_RUN_PATH'
13032       hardcode_shlibpath_var=no
13033       ;;
13034
13035     sysv4.3*)
13036       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13037       hardcode_shlibpath_var=no
13038       export_dynamic_flag_spec='-Bexport'
13039       ;;
13040
13041     sysv4*MP*)
13042       if test -d /usr/nec; then
13043         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13044         hardcode_shlibpath_var=no
13045         runpath_var=LD_RUN_PATH
13046         hardcode_runpath_var=yes
13047         ld_shlibs=yes
13048       fi
13049       ;;
13050
13051     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13052       no_undefined_flag='${wl}-z,text'
13053       archive_cmds_need_lc=no
13054       hardcode_shlibpath_var=no
13055       runpath_var='LD_RUN_PATH'
13056
13057       if test "$GCC" = yes; then
13058         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13059         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13060       else
13061         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13062         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13063       fi
13064       ;;
13065
13066     sysv5* | sco3.2v5* | sco5v6*)
13067       # Note: We can NOT use -z defs as we might desire, because we do not
13068       # link with -lc, and that would cause any symbols used from libc to
13069       # always be unresolved, which means just about no library would
13070       # ever link correctly.  If we're not using GNU ld we use -z text
13071       # though, which does catch some bad symbols but isn't as heavy-handed
13072       # as -z defs.
13073       no_undefined_flag='${wl}-z,text'
13074       allow_undefined_flag='${wl}-z,nodefs'
13075       archive_cmds_need_lc=no
13076       hardcode_shlibpath_var=no
13077       hardcode_libdir_flag_spec='${wl}-R,$libdir'
13078       hardcode_libdir_separator=':'
13079       link_all_deplibs=yes
13080       export_dynamic_flag_spec='${wl}-Bexport'
13081       runpath_var='LD_RUN_PATH'
13082
13083       if test "$GCC" = yes; then
13084         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13085         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13086       else
13087         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13088         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13089       fi
13090       ;;
13091
13092     uts4*)
13093       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13094       hardcode_libdir_flag_spec='-L$libdir'
13095       hardcode_shlibpath_var=no
13096       ;;
13097
13098     *)
13099       ld_shlibs=no
13100       ;;
13101     esac
13102
13103     if test x$host_vendor = xsni; then
13104       case $host in
13105       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13106         export_dynamic_flag_spec='${wl}-Blargedynsym'
13107         ;;
13108       esac
13109     fi
13110   fi
13111
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13113 $as_echo "$ld_shlibs" >&6; }
13114 test "$ld_shlibs" = no && can_build_shared=no
13115
13116 with_gnu_ld=$with_gnu_ld
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132 #
13133 # Do we need to explicitly link libc?
13134 #
13135 case "x$archive_cmds_need_lc" in
13136 x|xyes)
13137   # Assume -lc should be added
13138   archive_cmds_need_lc=yes
13139
13140   if test "$enable_shared" = yes && test "$GCC" = yes; then
13141     case $archive_cmds in
13142     *'~'*)
13143       # FIXME: we may have to deal with multi-command sequences.
13144       ;;
13145     '$CC '*)
13146       # Test whether the compiler implicitly links with -lc since on some
13147       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13148       # to ld, don't add -lc before -lgcc.
13149       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13150 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13151       $RM conftest*
13152       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13153
13154       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13155   (eval $ac_compile) 2>&5
13156   ac_status=$?
13157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13158   test $ac_status = 0; } 2>conftest.err; then
13159         soname=conftest
13160         lib=conftest
13161         libobjs=conftest.$ac_objext
13162         deplibs=
13163         wl=$lt_prog_compiler_wl
13164         pic_flag=$lt_prog_compiler_pic
13165         compiler_flags=-v
13166         linker_flags=-v
13167         verstring=
13168         output_objdir=.
13169         libname=conftest
13170         lt_save_allow_undefined_flag=$allow_undefined_flag
13171         allow_undefined_flag=
13172         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13173   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13174   ac_status=$?
13175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13176   test $ac_status = 0; }
13177         then
13178           archive_cmds_need_lc=no
13179         else
13180           archive_cmds_need_lc=yes
13181         fi
13182         allow_undefined_flag=$lt_save_allow_undefined_flag
13183       else
13184         cat conftest.err 1>&5
13185       fi
13186       $RM conftest*
13187       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13188 $as_echo "$archive_cmds_need_lc" >&6; }
13189       ;;
13190     esac
13191   fi
13192   ;;
13193 esac
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
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13352 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13353
13354 if test "$GCC" = yes; then
13355   case $host_os in
13356     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13357     *) lt_awk_arg="/^libraries:/" ;;
13358   esac
13359   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13360   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
13361     # if the path contains ";" then we assume it to be the separator
13362     # otherwise default to the standard path separator (i.e. ":") - it is
13363     # assumed that no part of a normal pathname contains ";" but that should
13364     # okay in the real world where ";" in dirpaths is itself problematic.
13365     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13366   else
13367     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13368   fi
13369   # Ok, now we have the path, separated by spaces, we can step through it
13370   # and add multilib dir if necessary.
13371   lt_tmp_lt_search_path_spec=
13372   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13373   for lt_sys_path in $lt_search_path_spec; do
13374     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13375       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13376     else
13377       test -d "$lt_sys_path" && \
13378         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13379     fi
13380   done
13381   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
13382 BEGIN {RS=" "; FS="/|\n";} {
13383   lt_foo="";
13384   lt_count=0;
13385   for (lt_i = NF; lt_i > 0; lt_i--) {
13386     if ($lt_i != "" && $lt_i != ".") {
13387       if ($lt_i == "..") {
13388         lt_count++;
13389       } else {
13390         if (lt_count == 0) {
13391           lt_foo="/" $lt_i lt_foo;
13392         } else {
13393           lt_count--;
13394         }
13395       }
13396     }
13397   }
13398   if (lt_foo != "") { lt_freq[lt_foo]++; }
13399   if (lt_freq[lt_foo] == 1) { print lt_foo; }
13400 }'`
13401   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
13402 else
13403   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13404 fi
13405 library_names_spec=
13406 libname_spec='lib$name'
13407 soname_spec=
13408 shrext_cmds=".so"
13409 postinstall_cmds=
13410 postuninstall_cmds=
13411 finish_cmds=
13412 finish_eval=
13413 shlibpath_var=
13414 shlibpath_overrides_runpath=unknown
13415 version_type=none
13416 dynamic_linker="$host_os ld.so"
13417 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13418 need_lib_prefix=unknown
13419 hardcode_into_libs=no
13420
13421 # when you set need_version to no, make sure it does not cause -set_version
13422 # flags to be left without arguments
13423 need_version=unknown
13424
13425 case $host_os in
13426 aix3*)
13427   version_type=linux
13428   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13429   shlibpath_var=LIBPATH
13430
13431   # AIX 3 has no versioning support, so we append a major version to the name.
13432   soname_spec='${libname}${release}${shared_ext}$major'
13433   ;;
13434
13435 aix[4-9]*)
13436   version_type=linux
13437   need_lib_prefix=no
13438   need_version=no
13439   hardcode_into_libs=yes
13440   if test "$host_cpu" = ia64; then
13441     # AIX 5 supports IA64
13442     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13443     shlibpath_var=LD_LIBRARY_PATH
13444   else
13445     # With GCC up to 2.95.x, collect2 would create an import file
13446     # for dependence libraries.  The import file would start with
13447     # the line `#! .'.  This would cause the generated library to
13448     # depend on `.', always an invalid library.  This was fixed in
13449     # development snapshots of GCC prior to 3.0.
13450     case $host_os in
13451       aix4 | aix4.[01] | aix4.[01].*)
13452       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13453            echo ' yes '
13454            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13455         :
13456       else
13457         can_build_shared=no
13458       fi
13459       ;;
13460     esac
13461     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13462     # soname into executable. Probably we can add versioning support to
13463     # collect2, so additional links can be useful in future.
13464     if test "$aix_use_runtimelinking" = yes; then
13465       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13466       # instead of lib<name>.a to let people know that these are not
13467       # typical AIX shared libraries.
13468       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13469     else
13470       # We preserve .a as extension for shared libraries through AIX4.2
13471       # and later when we are not doing run time linking.
13472       library_names_spec='${libname}${release}.a $libname.a'
13473       soname_spec='${libname}${release}${shared_ext}$major'
13474     fi
13475     shlibpath_var=LIBPATH
13476   fi
13477   ;;
13478
13479 amigaos*)
13480   case $host_cpu in
13481   powerpc)
13482     # Since July 2007 AmigaOS4 officially supports .so libraries.
13483     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13484     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13485     ;;
13486   m68k)
13487     library_names_spec='$libname.ixlibrary $libname.a'
13488     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13489     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'
13490     ;;
13491   esac
13492   ;;
13493
13494 beos*)
13495   library_names_spec='${libname}${shared_ext}'
13496   dynamic_linker="$host_os ld.so"
13497   shlibpath_var=LIBRARY_PATH
13498   ;;
13499
13500 bsdi[45]*)
13501   version_type=linux
13502   need_version=no
13503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13504   soname_spec='${libname}${release}${shared_ext}$major'
13505   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13506   shlibpath_var=LD_LIBRARY_PATH
13507   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13508   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13509   # the default ld.so.conf also contains /usr/contrib/lib and
13510   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13511   # libtool to hard-code these into programs
13512   ;;
13513
13514 cygwin* | mingw* | pw32* | cegcc*)
13515   version_type=windows
13516   shrext_cmds=".dll"
13517   need_version=no
13518   need_lib_prefix=no
13519
13520   case $GCC,$host_os in
13521   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13522     library_names_spec='$libname.dll.a'
13523     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13524     postinstall_cmds='base_file=`basename \${file}`~
13525       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13526       dldir=$destdir/`dirname \$dlpath`~
13527       test -d \$dldir || mkdir -p \$dldir~
13528       $install_prog $dir/$dlname \$dldir/$dlname~
13529       chmod a+x \$dldir/$dlname~
13530       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13531         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13532       fi'
13533     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13534       dlpath=$dir/\$dldll~
13535        $RM \$dlpath'
13536     shlibpath_overrides_runpath=yes
13537
13538     case $host_os in
13539     cygwin*)
13540       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13541       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13542       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13543       ;;
13544     mingw* | cegcc*)
13545       # MinGW DLLs use traditional 'lib' prefix
13546       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13547       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13548       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13549         # It is most probably a Windows format PATH printed by
13550         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13551         # path with ; separators, and with drive letters. We can handle the
13552         # drive letters (cygwin fileutils understands them), so leave them,
13553         # especially as we might pass files found there to a mingw objdump,
13554         # which wouldn't understand a cygwinified path. Ahh.
13555         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13556       else
13557         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13558       fi
13559       ;;
13560     pw32*)
13561       # pw32 DLLs use 'pw' prefix rather than 'lib'
13562       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13563       ;;
13564     esac
13565     ;;
13566
13567   *)
13568     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13569     ;;
13570   esac
13571   dynamic_linker='Win32 ld.exe'
13572   # FIXME: first we should search . and the directory the executable is in
13573   shlibpath_var=PATH
13574   ;;
13575
13576 darwin* | rhapsody*)
13577   dynamic_linker="$host_os dyld"
13578   version_type=darwin
13579   need_lib_prefix=no
13580   need_version=no
13581   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13582   soname_spec='${libname}${release}${major}$shared_ext'
13583   shlibpath_overrides_runpath=yes
13584   shlibpath_var=DYLD_LIBRARY_PATH
13585   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13586
13587   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13588   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13589   ;;
13590
13591 dgux*)
13592   version_type=linux
13593   need_lib_prefix=no
13594   need_version=no
13595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13596   soname_spec='${libname}${release}${shared_ext}$major'
13597   shlibpath_var=LD_LIBRARY_PATH
13598   ;;
13599
13600 freebsd1*)
13601   dynamic_linker=no
13602   ;;
13603
13604 freebsd* | dragonfly*)
13605   # DragonFly does not have aout.  When/if they implement a new
13606   # versioning mechanism, adjust this.
13607   if test -x /usr/bin/objformat; then
13608     objformat=`/usr/bin/objformat`
13609   else
13610     case $host_os in
13611     freebsd[123]*) objformat=aout ;;
13612     *) objformat=elf ;;
13613     esac
13614   fi
13615   version_type=freebsd-$objformat
13616   case $version_type in
13617     freebsd-elf*)
13618       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13619       need_version=no
13620       need_lib_prefix=no
13621       ;;
13622     freebsd-*)
13623       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13624       need_version=yes
13625       ;;
13626   esac
13627   shlibpath_var=LD_LIBRARY_PATH
13628   case $host_os in
13629   freebsd2*)
13630     shlibpath_overrides_runpath=yes
13631     ;;
13632   freebsd3.[01]* | freebsdelf3.[01]*)
13633     shlibpath_overrides_runpath=yes
13634     hardcode_into_libs=yes
13635     ;;
13636   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13637   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13638     shlibpath_overrides_runpath=no
13639     hardcode_into_libs=yes
13640     ;;
13641   *) # from 4.6 on, and DragonFly
13642     shlibpath_overrides_runpath=yes
13643     hardcode_into_libs=yes
13644     ;;
13645   esac
13646   ;;
13647
13648 gnu*)
13649   version_type=linux
13650   need_lib_prefix=no
13651   need_version=no
13652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13653   soname_spec='${libname}${release}${shared_ext}$major'
13654   shlibpath_var=LD_LIBRARY_PATH
13655   hardcode_into_libs=yes
13656   ;;
13657
13658 hpux9* | hpux10* | hpux11*)
13659   # Give a soname corresponding to the major version so that dld.sl refuses to
13660   # link against other versions.
13661   version_type=sunos
13662   need_lib_prefix=no
13663   need_version=no
13664   case $host_cpu in
13665   ia64*)
13666     shrext_cmds='.so'
13667     hardcode_into_libs=yes
13668     dynamic_linker="$host_os dld.so"
13669     shlibpath_var=LD_LIBRARY_PATH
13670     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13671     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13672     soname_spec='${libname}${release}${shared_ext}$major'
13673     if test "X$HPUX_IA64_MODE" = X32; then
13674       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13675     else
13676       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13677     fi
13678     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13679     ;;
13680   hppa*64*)
13681     shrext_cmds='.sl'
13682     hardcode_into_libs=yes
13683     dynamic_linker="$host_os dld.sl"
13684     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13685     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13689     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13690     ;;
13691   *)
13692     shrext_cmds='.sl'
13693     dynamic_linker="$host_os dld.sl"
13694     shlibpath_var=SHLIB_PATH
13695     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13696     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13697     soname_spec='${libname}${release}${shared_ext}$major'
13698     ;;
13699   esac
13700   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13701   postinstall_cmds='chmod 555 $lib'
13702   ;;
13703
13704 interix[3-9]*)
13705   version_type=linux
13706   need_lib_prefix=no
13707   need_version=no
13708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13709   soname_spec='${libname}${release}${shared_ext}$major'
13710   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13711   shlibpath_var=LD_LIBRARY_PATH
13712   shlibpath_overrides_runpath=no
13713   hardcode_into_libs=yes
13714   ;;
13715
13716 irix5* | irix6* | nonstopux*)
13717   case $host_os in
13718     nonstopux*) version_type=nonstopux ;;
13719     *)
13720         if test "$lt_cv_prog_gnu_ld" = yes; then
13721                 version_type=linux
13722         else
13723                 version_type=irix
13724         fi ;;
13725   esac
13726   need_lib_prefix=no
13727   need_version=no
13728   soname_spec='${libname}${release}${shared_ext}$major'
13729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13730   case $host_os in
13731   irix5* | nonstopux*)
13732     libsuff= shlibsuff=
13733     ;;
13734   *)
13735     case $LD in # libtool.m4 will add one of these switches to LD
13736     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13737       libsuff= shlibsuff= libmagic=32-bit;;
13738     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13739       libsuff=32 shlibsuff=N32 libmagic=N32;;
13740     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13741       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13742     *) libsuff= shlibsuff= libmagic=never-match;;
13743     esac
13744     ;;
13745   esac
13746   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13747   shlibpath_overrides_runpath=no
13748   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13749   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13750   hardcode_into_libs=yes
13751   ;;
13752
13753 # No shared lib support for Linux oldld, aout, or coff.
13754 linux*oldld* | linux*aout* | linux*coff*)
13755   dynamic_linker=no
13756   ;;
13757
13758 # This must be Linux ELF.
13759 linux* | k*bsd*-gnu)
13760   version_type=linux
13761   need_lib_prefix=no
13762   need_version=no
13763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13764   soname_spec='${libname}${release}${shared_ext}$major'
13765   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13766   shlibpath_var=LD_LIBRARY_PATH
13767   shlibpath_overrides_runpath=no
13768   # Some binutils ld are patched to set DT_RUNPATH
13769   save_LDFLAGS=$LDFLAGS
13770   save_libdir=$libdir
13771   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13772        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13774 /* end confdefs.h.  */
13775
13776 int
13777 main ()
13778 {
13779
13780   ;
13781   return 0;
13782 }
13783 _ACEOF
13784 if ac_fn_c_try_link "$LINENO"; then :
13785   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13786   shlibpath_overrides_runpath=yes
13787 fi
13788 fi
13789 rm -f core conftest.err conftest.$ac_objext \
13790     conftest$ac_exeext conftest.$ac_ext
13791   LDFLAGS=$save_LDFLAGS
13792   libdir=$save_libdir
13793
13794   # This implies no fast_install, which is unacceptable.
13795   # Some rework will be needed to allow for fast_install
13796   # before this can be enabled.
13797   hardcode_into_libs=yes
13798
13799   # Add ABI-specific directories to the system library path.
13800   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13801
13802   # Append ld.so.conf contents to the search path
13803   if test -f /etc/ld.so.conf; then
13804     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' ' '`
13805     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13806   fi
13807
13808   # We used to test for /lib/ld.so.1 and disable shared libraries on
13809   # powerpc, because MkLinux only supported shared libraries with the
13810   # GNU dynamic linker.  Since this was broken with cross compilers,
13811   # most powerpc-linux boxes support dynamic linking these days and
13812   # people can always --disable-shared, the test was removed, and we
13813   # assume the GNU/Linux dynamic linker is in use.
13814   dynamic_linker='GNU/Linux ld.so'
13815   ;;
13816
13817 netbsd*)
13818   version_type=sunos
13819   need_lib_prefix=no
13820   need_version=no
13821   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13822     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13823     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13824     dynamic_linker='NetBSD (a.out) ld.so'
13825   else
13826     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13827     soname_spec='${libname}${release}${shared_ext}$major'
13828     dynamic_linker='NetBSD ld.elf_so'
13829   fi
13830   shlibpath_var=LD_LIBRARY_PATH
13831   shlibpath_overrides_runpath=yes
13832   hardcode_into_libs=yes
13833   ;;
13834
13835 newsos6)
13836   version_type=linux
13837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13838   shlibpath_var=LD_LIBRARY_PATH
13839   shlibpath_overrides_runpath=yes
13840   ;;
13841
13842 *nto* | *qnx*)
13843   version_type=qnx
13844   need_lib_prefix=no
13845   need_version=no
13846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13847   soname_spec='${libname}${release}${shared_ext}$major'
13848   shlibpath_var=LD_LIBRARY_PATH
13849   shlibpath_overrides_runpath=no
13850   hardcode_into_libs=yes
13851   dynamic_linker='ldqnx.so'
13852   ;;
13853
13854 openbsd*)
13855   version_type=sunos
13856   sys_lib_dlsearch_path_spec="/usr/lib"
13857   need_lib_prefix=no
13858   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13859   case $host_os in
13860     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
13861     *)                          need_version=no  ;;
13862   esac
13863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13864   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13865   shlibpath_var=LD_LIBRARY_PATH
13866   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13867     case $host_os in
13868       openbsd2.[89] | openbsd2.[89].*)
13869         shlibpath_overrides_runpath=no
13870         ;;
13871       *)
13872         shlibpath_overrides_runpath=yes
13873         ;;
13874       esac
13875   else
13876     shlibpath_overrides_runpath=yes
13877   fi
13878   ;;
13879
13880 os2*)
13881   libname_spec='$name'
13882   shrext_cmds=".dll"
13883   need_lib_prefix=no
13884   library_names_spec='$libname${shared_ext} $libname.a'
13885   dynamic_linker='OS/2 ld.exe'
13886   shlibpath_var=LIBPATH
13887   ;;
13888
13889 osf3* | osf4* | osf5*)
13890   version_type=osf
13891   need_lib_prefix=no
13892   need_version=no
13893   soname_spec='${libname}${release}${shared_ext}$major'
13894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13895   shlibpath_var=LD_LIBRARY_PATH
13896   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13897   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13898   ;;
13899
13900 rdos*)
13901   dynamic_linker=no
13902   ;;
13903
13904 solaris*)
13905   version_type=linux
13906   need_lib_prefix=no
13907   need_version=no
13908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13909   soname_spec='${libname}${release}${shared_ext}$major'
13910   shlibpath_var=LD_LIBRARY_PATH
13911   shlibpath_overrides_runpath=yes
13912   hardcode_into_libs=yes
13913   # ldd complains unless libraries are executable
13914   postinstall_cmds='chmod +x $lib'
13915   ;;
13916
13917 sunos4*)
13918   version_type=sunos
13919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13920   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13921   shlibpath_var=LD_LIBRARY_PATH
13922   shlibpath_overrides_runpath=yes
13923   if test "$with_gnu_ld" = yes; then
13924     need_lib_prefix=no
13925   fi
13926   need_version=yes
13927   ;;
13928
13929 sysv4 | sysv4.3*)
13930   version_type=linux
13931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13932   soname_spec='${libname}${release}${shared_ext}$major'
13933   shlibpath_var=LD_LIBRARY_PATH
13934   case $host_vendor in
13935     sni)
13936       shlibpath_overrides_runpath=no
13937       need_lib_prefix=no
13938       runpath_var=LD_RUN_PATH
13939       ;;
13940     siemens)
13941       need_lib_prefix=no
13942       ;;
13943     motorola)
13944       need_lib_prefix=no
13945       need_version=no
13946       shlibpath_overrides_runpath=no
13947       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13948       ;;
13949   esac
13950   ;;
13951
13952 sysv4*MP*)
13953   if test -d /usr/nec ;then
13954     version_type=linux
13955     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13956     soname_spec='$libname${shared_ext}.$major'
13957     shlibpath_var=LD_LIBRARY_PATH
13958   fi
13959   ;;
13960
13961 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13962   version_type=freebsd-elf
13963   need_lib_prefix=no
13964   need_version=no
13965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13966   soname_spec='${libname}${release}${shared_ext}$major'
13967   shlibpath_var=LD_LIBRARY_PATH
13968   shlibpath_overrides_runpath=yes
13969   hardcode_into_libs=yes
13970   if test "$with_gnu_ld" = yes; then
13971     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13972   else
13973     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13974     case $host_os in
13975       sco3.2v5*)
13976         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13977         ;;
13978     esac
13979   fi
13980   sys_lib_dlsearch_path_spec='/usr/lib'
13981   ;;
13982
13983 tpf*)
13984   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13985   version_type=linux
13986   need_lib_prefix=no
13987   need_version=no
13988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13989   shlibpath_var=LD_LIBRARY_PATH
13990   shlibpath_overrides_runpath=no
13991   hardcode_into_libs=yes
13992   ;;
13993
13994 uts4*)
13995   version_type=linux
13996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13997   soname_spec='${libname}${release}${shared_ext}$major'
13998   shlibpath_var=LD_LIBRARY_PATH
13999   ;;
14000
14001 *)
14002   dynamic_linker=no
14003   ;;
14004 esac
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14006 $as_echo "$dynamic_linker" >&6; }
14007 test "$dynamic_linker" = no && can_build_shared=no
14008
14009 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14010 if test "$GCC" = yes; then
14011   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14012 fi
14013
14014 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14015   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14016 fi
14017 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14018   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14019 fi
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
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14108 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14109 hardcode_action=
14110 if test -n "$hardcode_libdir_flag_spec" ||
14111    test -n "$runpath_var" ||
14112    test "X$hardcode_automatic" = "Xyes" ; then
14113
14114   # We can hardcode non-existent directories.
14115   if test "$hardcode_direct" != no &&
14116      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14117      # have to relink, otherwise we might link with an installed library
14118      # when we should be linking with a yet-to-be-installed one
14119      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14120      test "$hardcode_minus_L" != no; then
14121     # Linking always hardcodes the temporary library directory.
14122     hardcode_action=relink
14123   else
14124     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14125     hardcode_action=immediate
14126   fi
14127 else
14128   # We cannot hardcode anything, or else we can only hardcode existing
14129   # directories.
14130   hardcode_action=unsupported
14131 fi
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14133 $as_echo "$hardcode_action" >&6; }
14134
14135 if test "$hardcode_action" = relink ||
14136    test "$inherit_rpath" = yes; then
14137   # Fast installation is not supported
14138   enable_fast_install=no
14139 elif test "$shlibpath_overrides_runpath" = yes ||
14140      test "$enable_shared" = no; then
14141   # Fast installation is not necessary
14142   enable_fast_install=needless
14143 fi
14144
14145
14146
14147
14148
14149
14150   if test "x$enable_dlopen" != xyes; then
14151   enable_dlopen=unknown
14152   enable_dlopen_self=unknown
14153   enable_dlopen_self_static=unknown
14154 else
14155   lt_cv_dlopen=no
14156   lt_cv_dlopen_libs=
14157
14158   case $host_os in
14159   beos*)
14160     lt_cv_dlopen="load_add_on"
14161     lt_cv_dlopen_libs=
14162     lt_cv_dlopen_self=yes
14163     ;;
14164
14165   mingw* | pw32* | cegcc*)
14166     lt_cv_dlopen="LoadLibrary"
14167     lt_cv_dlopen_libs=
14168     ;;
14169
14170   cygwin*)
14171     lt_cv_dlopen="dlopen"
14172     lt_cv_dlopen_libs=
14173     ;;
14174
14175   darwin*)
14176   # if libdl is installed we need to link against it
14177     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14178 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14179 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14180   $as_echo_n "(cached) " >&6
14181 else
14182   ac_check_lib_save_LIBS=$LIBS
14183 LIBS="-ldl  $LIBS"
14184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14185 /* end confdefs.h.  */
14186
14187 /* Override any GCC internal prototype to avoid an error.
14188    Use char because int might match the return type of a GCC
14189    builtin and then its argument prototype would still apply.  */
14190 #ifdef __cplusplus
14191 extern "C"
14192 #endif
14193 char dlopen ();
14194 int
14195 main ()
14196 {
14197 return dlopen ();
14198   ;
14199   return 0;
14200 }
14201 _ACEOF
14202 if ac_fn_c_try_link "$LINENO"; then :
14203   ac_cv_lib_dl_dlopen=yes
14204 else
14205   ac_cv_lib_dl_dlopen=no
14206 fi
14207 rm -f core conftest.err conftest.$ac_objext \
14208     conftest$ac_exeext conftest.$ac_ext
14209 LIBS=$ac_check_lib_save_LIBS
14210 fi
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14212 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14213 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14214   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14215 else
14216
14217     lt_cv_dlopen="dyld"
14218     lt_cv_dlopen_libs=
14219     lt_cv_dlopen_self=yes
14220
14221 fi
14222
14223     ;;
14224
14225   *)
14226     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14227 if test "x$ac_cv_func_shl_load" = x""yes; then :
14228   lt_cv_dlopen="shl_load"
14229 else
14230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14231 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14232 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
14233   $as_echo_n "(cached) " >&6
14234 else
14235   ac_check_lib_save_LIBS=$LIBS
14236 LIBS="-ldld  $LIBS"
14237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238 /* end confdefs.h.  */
14239
14240 /* Override any GCC internal prototype to avoid an error.
14241    Use char because int might match the return type of a GCC
14242    builtin and then its argument prototype would still apply.  */
14243 #ifdef __cplusplus
14244 extern "C"
14245 #endif
14246 char shl_load ();
14247 int
14248 main ()
14249 {
14250 return shl_load ();
14251   ;
14252   return 0;
14253 }
14254 _ACEOF
14255 if ac_fn_c_try_link "$LINENO"; then :
14256   ac_cv_lib_dld_shl_load=yes
14257 else
14258   ac_cv_lib_dld_shl_load=no
14259 fi
14260 rm -f core conftest.err conftest.$ac_objext \
14261     conftest$ac_exeext conftest.$ac_ext
14262 LIBS=$ac_check_lib_save_LIBS
14263 fi
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14265 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14266 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
14267   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14268 else
14269   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14270 if test "x$ac_cv_func_dlopen" = x""yes; then :
14271   lt_cv_dlopen="dlopen"
14272 else
14273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14274 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14275 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14276   $as_echo_n "(cached) " >&6
14277 else
14278   ac_check_lib_save_LIBS=$LIBS
14279 LIBS="-ldl  $LIBS"
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h.  */
14282
14283 /* Override any GCC internal prototype to avoid an error.
14284    Use char because int might match the return type of a GCC
14285    builtin and then its argument prototype would still apply.  */
14286 #ifdef __cplusplus
14287 extern "C"
14288 #endif
14289 char dlopen ();
14290 int
14291 main ()
14292 {
14293 return dlopen ();
14294   ;
14295   return 0;
14296 }
14297 _ACEOF
14298 if ac_fn_c_try_link "$LINENO"; then :
14299   ac_cv_lib_dl_dlopen=yes
14300 else
14301   ac_cv_lib_dl_dlopen=no
14302 fi
14303 rm -f core conftest.err conftest.$ac_objext \
14304     conftest$ac_exeext conftest.$ac_ext
14305 LIBS=$ac_check_lib_save_LIBS
14306 fi
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14308 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14309 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14310   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14311 else
14312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14313 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14314 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
14315   $as_echo_n "(cached) " >&6
14316 else
14317   ac_check_lib_save_LIBS=$LIBS
14318 LIBS="-lsvld  $LIBS"
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h.  */
14321
14322 /* Override any GCC internal prototype to avoid an error.
14323    Use char because int might match the return type of a GCC
14324    builtin and then its argument prototype would still apply.  */
14325 #ifdef __cplusplus
14326 extern "C"
14327 #endif
14328 char dlopen ();
14329 int
14330 main ()
14331 {
14332 return dlopen ();
14333   ;
14334   return 0;
14335 }
14336 _ACEOF
14337 if ac_fn_c_try_link "$LINENO"; then :
14338   ac_cv_lib_svld_dlopen=yes
14339 else
14340   ac_cv_lib_svld_dlopen=no
14341 fi
14342 rm -f core conftest.err conftest.$ac_objext \
14343     conftest$ac_exeext conftest.$ac_ext
14344 LIBS=$ac_check_lib_save_LIBS
14345 fi
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14347 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14348 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
14349   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14350 else
14351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14352 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14353 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
14354   $as_echo_n "(cached) " >&6
14355 else
14356   ac_check_lib_save_LIBS=$LIBS
14357 LIBS="-ldld  $LIBS"
14358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359 /* end confdefs.h.  */
14360
14361 /* Override any GCC internal prototype to avoid an error.
14362    Use char because int might match the return type of a GCC
14363    builtin and then its argument prototype would still apply.  */
14364 #ifdef __cplusplus
14365 extern "C"
14366 #endif
14367 char dld_link ();
14368 int
14369 main ()
14370 {
14371 return dld_link ();
14372   ;
14373   return 0;
14374 }
14375 _ACEOF
14376 if ac_fn_c_try_link "$LINENO"; then :
14377   ac_cv_lib_dld_dld_link=yes
14378 else
14379   ac_cv_lib_dld_dld_link=no
14380 fi
14381 rm -f core conftest.err conftest.$ac_objext \
14382     conftest$ac_exeext conftest.$ac_ext
14383 LIBS=$ac_check_lib_save_LIBS
14384 fi
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14386 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14387 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
14388   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14389 fi
14390
14391
14392 fi
14393
14394
14395 fi
14396
14397
14398 fi
14399
14400
14401 fi
14402
14403
14404 fi
14405
14406     ;;
14407   esac
14408
14409   if test "x$lt_cv_dlopen" != xno; then
14410     enable_dlopen=yes
14411   else
14412     enable_dlopen=no
14413   fi
14414
14415   case $lt_cv_dlopen in
14416   dlopen)
14417     save_CPPFLAGS="$CPPFLAGS"
14418     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14419
14420     save_LDFLAGS="$LDFLAGS"
14421     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14422
14423     save_LIBS="$LIBS"
14424     LIBS="$lt_cv_dlopen_libs $LIBS"
14425
14426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14427 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14428 if test "${lt_cv_dlopen_self+set}" = set; then :
14429   $as_echo_n "(cached) " >&6
14430 else
14431           if test "$cross_compiling" = yes; then :
14432   lt_cv_dlopen_self=cross
14433 else
14434   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14435   lt_status=$lt_dlunknown
14436   cat > conftest.$ac_ext <<_LT_EOF
14437 #line 14437 "configure"
14438 #include "confdefs.h"
14439
14440 #if HAVE_DLFCN_H
14441 #include <dlfcn.h>
14442 #endif
14443
14444 #include <stdio.h>
14445
14446 #ifdef RTLD_GLOBAL
14447 #  define LT_DLGLOBAL           RTLD_GLOBAL
14448 #else
14449 #  ifdef DL_GLOBAL
14450 #    define LT_DLGLOBAL         DL_GLOBAL
14451 #  else
14452 #    define LT_DLGLOBAL         0
14453 #  endif
14454 #endif
14455
14456 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14457    find out it does not work in some platform. */
14458 #ifndef LT_DLLAZY_OR_NOW
14459 #  ifdef RTLD_LAZY
14460 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14461 #  else
14462 #    ifdef DL_LAZY
14463 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14464 #    else
14465 #      ifdef RTLD_NOW
14466 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14467 #      else
14468 #        ifdef DL_NOW
14469 #          define LT_DLLAZY_OR_NOW      DL_NOW
14470 #        else
14471 #          define LT_DLLAZY_OR_NOW      0
14472 #        endif
14473 #      endif
14474 #    endif
14475 #  endif
14476 #endif
14477
14478 void fnord() { int i=42;}
14479 int main ()
14480 {
14481   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14482   int status = $lt_dlunknown;
14483
14484   if (self)
14485     {
14486       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14487       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14488       /* dlclose (self); */
14489     }
14490   else
14491     puts (dlerror ());
14492
14493   return status;
14494 }
14495 _LT_EOF
14496   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14497   (eval $ac_link) 2>&5
14498   ac_status=$?
14499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14500   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14501     (./conftest; exit; ) >&5 2>/dev/null
14502     lt_status=$?
14503     case x$lt_status in
14504       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14505       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14506       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14507     esac
14508   else :
14509     # compilation failed
14510     lt_cv_dlopen_self=no
14511   fi
14512 fi
14513 rm -fr conftest*
14514
14515
14516 fi
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14518 $as_echo "$lt_cv_dlopen_self" >&6; }
14519
14520     if test "x$lt_cv_dlopen_self" = xyes; then
14521       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14522       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14523 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14524 if test "${lt_cv_dlopen_self_static+set}" = set; then :
14525   $as_echo_n "(cached) " >&6
14526 else
14527           if test "$cross_compiling" = yes; then :
14528   lt_cv_dlopen_self_static=cross
14529 else
14530   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14531   lt_status=$lt_dlunknown
14532   cat > conftest.$ac_ext <<_LT_EOF
14533 #line 14533 "configure"
14534 #include "confdefs.h"
14535
14536 #if HAVE_DLFCN_H
14537 #include <dlfcn.h>
14538 #endif
14539
14540 #include <stdio.h>
14541
14542 #ifdef RTLD_GLOBAL
14543 #  define LT_DLGLOBAL           RTLD_GLOBAL
14544 #else
14545 #  ifdef DL_GLOBAL
14546 #    define LT_DLGLOBAL         DL_GLOBAL
14547 #  else
14548 #    define LT_DLGLOBAL         0
14549 #  endif
14550 #endif
14551
14552 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14553    find out it does not work in some platform. */
14554 #ifndef LT_DLLAZY_OR_NOW
14555 #  ifdef RTLD_LAZY
14556 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14557 #  else
14558 #    ifdef DL_LAZY
14559 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14560 #    else
14561 #      ifdef RTLD_NOW
14562 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14563 #      else
14564 #        ifdef DL_NOW
14565 #          define LT_DLLAZY_OR_NOW      DL_NOW
14566 #        else
14567 #          define LT_DLLAZY_OR_NOW      0
14568 #        endif
14569 #      endif
14570 #    endif
14571 #  endif
14572 #endif
14573
14574 void fnord() { int i=42;}
14575 int main ()
14576 {
14577   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14578   int status = $lt_dlunknown;
14579
14580   if (self)
14581     {
14582       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14583       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14584       /* dlclose (self); */
14585     }
14586   else
14587     puts (dlerror ());
14588
14589   return status;
14590 }
14591 _LT_EOF
14592   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14593   (eval $ac_link) 2>&5
14594   ac_status=$?
14595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14596   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14597     (./conftest; exit; ) >&5 2>/dev/null
14598     lt_status=$?
14599     case x$lt_status in
14600       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14601       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14602       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14603     esac
14604   else :
14605     # compilation failed
14606     lt_cv_dlopen_self_static=no
14607   fi
14608 fi
14609 rm -fr conftest*
14610
14611
14612 fi
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14614 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14615     fi
14616
14617     CPPFLAGS="$save_CPPFLAGS"
14618     LDFLAGS="$save_LDFLAGS"
14619     LIBS="$save_LIBS"
14620     ;;
14621   esac
14622
14623   case $lt_cv_dlopen_self in
14624   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14625   *) enable_dlopen_self=unknown ;;
14626   esac
14627
14628   case $lt_cv_dlopen_self_static in
14629   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14630   *) enable_dlopen_self_static=unknown ;;
14631   esac
14632 fi
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650 striplib=
14651 old_striplib=
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14653 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14654 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14655   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14656   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14658 $as_echo "yes" >&6; }
14659 else
14660 # FIXME - insert some real tests, host_os isn't really good enough
14661   case $host_os in
14662   darwin*)
14663     if test -n "$STRIP" ; then
14664       striplib="$STRIP -x"
14665       old_striplib="$STRIP -S"
14666       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14667 $as_echo "yes" >&6; }
14668     else
14669       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14670 $as_echo "no" >&6; }
14671     fi
14672     ;;
14673   *)
14674     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14675 $as_echo "no" >&6; }
14676     ;;
14677   esac
14678 fi
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691   # Report which library types will actually be built
14692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14693 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14695 $as_echo "$can_build_shared" >&6; }
14696
14697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14698 $as_echo_n "checking whether to build shared libraries... " >&6; }
14699   test "$can_build_shared" = "no" && enable_shared=no
14700
14701   # On AIX, shared libraries and static libraries use the same namespace, and
14702   # are all built from PIC.
14703   case $host_os in
14704   aix3*)
14705     test "$enable_shared" = yes && enable_static=no
14706     if test -n "$RANLIB"; then
14707       archive_cmds="$archive_cmds~\$RANLIB \$lib"
14708       postinstall_cmds='$RANLIB $lib'
14709     fi
14710     ;;
14711
14712   aix[4-9]*)
14713     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14714       test "$enable_shared" = yes && enable_static=no
14715     fi
14716     ;;
14717   esac
14718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14719 $as_echo "$enable_shared" >&6; }
14720
14721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14722 $as_echo_n "checking whether to build static libraries... " >&6; }
14723   # Make sure either enable_shared or enable_static is yes.
14724   test "$enable_shared" = yes || enable_static=yes
14725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14726 $as_echo "$enable_static" >&6; }
14727
14728
14729
14730
14731 fi
14732 ac_ext=c
14733 ac_cpp='$CPP $CPPFLAGS'
14734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14737
14738 CC="$lt_save_CC"
14739
14740
14741 ac_ext=cpp
14742 ac_cpp='$CXXCPP $CPPFLAGS'
14743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14746
14747 archive_cmds_need_lc_CXX=no
14748 allow_undefined_flag_CXX=
14749 always_export_symbols_CXX=no
14750 archive_expsym_cmds_CXX=
14751 compiler_needs_object_CXX=no
14752 export_dynamic_flag_spec_CXX=
14753 hardcode_direct_CXX=no
14754 hardcode_direct_absolute_CXX=no
14755 hardcode_libdir_flag_spec_CXX=
14756 hardcode_libdir_flag_spec_ld_CXX=
14757 hardcode_libdir_separator_CXX=
14758 hardcode_minus_L_CXX=no
14759 hardcode_shlibpath_var_CXX=unsupported
14760 hardcode_automatic_CXX=no
14761 inherit_rpath_CXX=no
14762 module_cmds_CXX=
14763 module_expsym_cmds_CXX=
14764 link_all_deplibs_CXX=unknown
14765 old_archive_cmds_CXX=$old_archive_cmds
14766 no_undefined_flag_CXX=
14767 whole_archive_flag_spec_CXX=
14768 enable_shared_with_static_runtimes_CXX=no
14769
14770 # Source file extension for C++ test sources.
14771 ac_ext=cpp
14772
14773 # Object file extension for compiled C++ test sources.
14774 objext=o
14775 objext_CXX=$objext
14776
14777 # No sense in running all these tests if we already determined that
14778 # the CXX compiler isn't working.  Some variables (like enable_shared)
14779 # are currently assumed to apply to all compilers on this platform,
14780 # and will be corrupted by setting them based on a non-working compiler.
14781 if test "$_lt_caught_CXX_error" != yes; then
14782   # Code to be used in simple compile tests
14783   lt_simple_compile_test_code="int some_variable = 0;"
14784
14785   # Code to be used in simple link tests
14786   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14787
14788   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14789
14790
14791
14792
14793
14794
14795 # If no C compiler was specified, use CC.
14796 LTCC=${LTCC-"$CC"}
14797
14798 # If no C compiler flags were specified, use CFLAGS.
14799 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14800
14801 # Allow CC to be a program name with arguments.
14802 compiler=$CC
14803
14804
14805   # save warnings/boilerplate of simple test code
14806   ac_outfile=conftest.$ac_objext
14807 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14808 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14809 _lt_compiler_boilerplate=`cat conftest.err`
14810 $RM conftest*
14811
14812   ac_outfile=conftest.$ac_objext
14813 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14814 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14815 _lt_linker_boilerplate=`cat conftest.err`
14816 $RM -r conftest*
14817
14818
14819   # Allow CC to be a program name with arguments.
14820   lt_save_CC=$CC
14821   lt_save_LD=$LD
14822   lt_save_GCC=$GCC
14823   GCC=$GXX
14824   lt_save_with_gnu_ld=$with_gnu_ld
14825   lt_save_path_LD=$lt_cv_path_LD
14826   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14827     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14828   else
14829     $as_unset lt_cv_prog_gnu_ld
14830   fi
14831   if test -n "${lt_cv_path_LDCXX+set}"; then
14832     lt_cv_path_LD=$lt_cv_path_LDCXX
14833   else
14834     $as_unset lt_cv_path_LD
14835   fi
14836   test -z "${LDCXX+set}" || LD=$LDCXX
14837   CC=${CXX-"c++"}
14838   compiler=$CC
14839   compiler_CXX=$CC
14840   for cc_temp in $compiler""; do
14841   case $cc_temp in
14842     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14843     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14844     \-*) ;;
14845     *) break;;
14846   esac
14847 done
14848 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14849
14850
14851   if test -n "$compiler"; then
14852     # We don't want -fno-exception when compiling C++ code, so set the
14853     # no_builtin_flag separately
14854     if test "$GXX" = yes; then
14855       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14856     else
14857       lt_prog_compiler_no_builtin_flag_CXX=
14858     fi
14859
14860     if test "$GXX" = yes; then
14861       # Set up default GNU C++ configuration
14862
14863
14864
14865 # Check whether --with-gnu-ld was given.
14866 if test "${with_gnu_ld+set}" = set; then :
14867   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14868 else
14869   with_gnu_ld=no
14870 fi
14871
14872 ac_prog=ld
14873 if test "$GCC" = yes; then
14874   # Check if gcc -print-prog-name=ld gives a path.
14875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14876 $as_echo_n "checking for ld used by $CC... " >&6; }
14877   case $host in
14878   *-*-mingw*)
14879     # gcc leaves a trailing carriage return which upsets mingw
14880     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14881   *)
14882     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14883   esac
14884   case $ac_prog in
14885     # Accept absolute paths.
14886     [\\/]* | ?:[\\/]*)
14887       re_direlt='/[^/][^/]*/\.\./'
14888       # Canonicalize the pathname of ld
14889       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14890       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14891         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14892       done
14893       test -z "$LD" && LD="$ac_prog"
14894       ;;
14895   "")
14896     # If it fails, then pretend we aren't using GCC.
14897     ac_prog=ld
14898     ;;
14899   *)
14900     # If it is relative, then search for the first ld in PATH.
14901     with_gnu_ld=unknown
14902     ;;
14903   esac
14904 elif test "$with_gnu_ld" = yes; then
14905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14906 $as_echo_n "checking for GNU ld... " >&6; }
14907 else
14908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14909 $as_echo_n "checking for non-GNU ld... " >&6; }
14910 fi
14911 if test "${lt_cv_path_LD+set}" = set; then :
14912   $as_echo_n "(cached) " >&6
14913 else
14914   if test -z "$LD"; then
14915   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14916   for ac_dir in $PATH; do
14917     IFS="$lt_save_ifs"
14918     test -z "$ac_dir" && ac_dir=.
14919     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14920       lt_cv_path_LD="$ac_dir/$ac_prog"
14921       # Check to see if the program is GNU ld.  I'd rather use --version,
14922       # but apparently some variants of GNU ld only accept -v.
14923       # Break only if it was the GNU/non-GNU ld that we prefer.
14924       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14925       *GNU* | *'with BFD'*)
14926         test "$with_gnu_ld" != no && break
14927         ;;
14928       *)
14929         test "$with_gnu_ld" != yes && break
14930         ;;
14931       esac
14932     fi
14933   done
14934   IFS="$lt_save_ifs"
14935 else
14936   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14937 fi
14938 fi
14939
14940 LD="$lt_cv_path_LD"
14941 if test -n "$LD"; then
14942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14943 $as_echo "$LD" >&6; }
14944 else
14945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14946 $as_echo "no" >&6; }
14947 fi
14948 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14950 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14951 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14952   $as_echo_n "(cached) " >&6
14953 else
14954   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14955 case `$LD -v 2>&1 </dev/null` in
14956 *GNU* | *'with BFD'*)
14957   lt_cv_prog_gnu_ld=yes
14958   ;;
14959 *)
14960   lt_cv_prog_gnu_ld=no
14961   ;;
14962 esac
14963 fi
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14965 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14966 with_gnu_ld=$lt_cv_prog_gnu_ld
14967
14968
14969
14970
14971
14972
14973
14974       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14975       # archiving commands below assume that GNU ld is being used.
14976       if test "$with_gnu_ld" = yes; then
14977         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14978         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'
14979
14980         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14981         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14982
14983         # If archive_cmds runs LD, not CC, wlarc should be empty
14984         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14985         #     investigate it a little bit more. (MM)
14986         wlarc='${wl}'
14987
14988         # ancient GNU ld didn't support --whole-archive et. al.
14989         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14990           $GREP 'no-whole-archive' > /dev/null; then
14991           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14992         else
14993           whole_archive_flag_spec_CXX=
14994         fi
14995       else
14996         with_gnu_ld=no
14997         wlarc=
14998
14999         # A generic and very simple default shared library creation
15000         # command for GNU C++ for the case where it uses the native
15001         # linker, instead of GNU ld.  If possible, this setting should
15002         # overridden to take advantage of the native linker features on
15003         # the platform it is being used on.
15004         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15005       fi
15006
15007       # Commands to make compiler produce verbose output that lists
15008       # what "hidden" libraries, object files and flags are used when
15009       # linking a shared library.
15010       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15011
15012     else
15013       GXX=no
15014       with_gnu_ld=no
15015       wlarc=
15016     fi
15017
15018     # PORTME: fill in a description of your system's C++ link characteristics
15019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15020 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15021     ld_shlibs_CXX=yes
15022     case $host_os in
15023       aix3*)
15024         # FIXME: insert proper C++ library support
15025         ld_shlibs_CXX=no
15026         ;;
15027       aix[4-9]*)
15028         if test "$host_cpu" = ia64; then
15029           # On IA64, the linker does run time linking by default, so we don't
15030           # have to do anything special.
15031           aix_use_runtimelinking=no
15032           exp_sym_flag='-Bexport'
15033           no_entry_flag=""
15034         else
15035           aix_use_runtimelinking=no
15036
15037           # Test if we are trying to use run time linking or normal
15038           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15039           # need to do runtime linking.
15040           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15041             for ld_flag in $LDFLAGS; do
15042               case $ld_flag in
15043               *-brtl*)
15044                 aix_use_runtimelinking=yes
15045                 break
15046                 ;;
15047               esac
15048             done
15049             ;;
15050           esac
15051
15052           exp_sym_flag='-bexport'
15053           no_entry_flag='-bnoentry'
15054         fi
15055
15056         # When large executables or shared objects are built, AIX ld can
15057         # have problems creating the table of contents.  If linking a library
15058         # or program results in "error TOC overflow" add -mminimal-toc to
15059         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15060         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15061
15062         archive_cmds_CXX=''
15063         hardcode_direct_CXX=yes
15064         hardcode_direct_absolute_CXX=yes
15065         hardcode_libdir_separator_CXX=':'
15066         link_all_deplibs_CXX=yes
15067         file_list_spec_CXX='${wl}-f,'
15068
15069         if test "$GXX" = yes; then
15070           case $host_os in aix4.[012]|aix4.[012].*)
15071           # We only want to do this on AIX 4.2 and lower, the check
15072           # below for broken collect2 doesn't work under 4.3+
15073           collect2name=`${CC} -print-prog-name=collect2`
15074           if test -f "$collect2name" &&
15075              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15076           then
15077             # We have reworked collect2
15078             :
15079           else
15080             # We have old collect2
15081             hardcode_direct_CXX=unsupported
15082             # It fails to find uninstalled libraries when the uninstalled
15083             # path is not listed in the libpath.  Setting hardcode_minus_L
15084             # to unsupported forces relinking
15085             hardcode_minus_L_CXX=yes
15086             hardcode_libdir_flag_spec_CXX='-L$libdir'
15087             hardcode_libdir_separator_CXX=
15088           fi
15089           esac
15090           shared_flag='-shared'
15091           if test "$aix_use_runtimelinking" = yes; then
15092             shared_flag="$shared_flag "'${wl}-G'
15093           fi
15094         else
15095           # not using gcc
15096           if test "$host_cpu" = ia64; then
15097           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15098           # chokes on -Wl,-G. The following line is correct:
15099           shared_flag='-G'
15100           else
15101             if test "$aix_use_runtimelinking" = yes; then
15102               shared_flag='${wl}-G'
15103             else
15104               shared_flag='${wl}-bM:SRE'
15105             fi
15106           fi
15107         fi
15108
15109         export_dynamic_flag_spec_CXX='${wl}-bexpall'
15110         # It seems that -bexpall does not export symbols beginning with
15111         # underscore (_), so it is better to generate a list of symbols to
15112         # export.
15113         always_export_symbols_CXX=yes
15114         if test "$aix_use_runtimelinking" = yes; then
15115           # Warning - without using the other runtime loading flags (-brtl),
15116           # -berok will link without error, but may produce a broken library.
15117           allow_undefined_flag_CXX='-berok'
15118           # Determine the default libpath from the value encoded in an empty
15119           # executable.
15120           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121 /* end confdefs.h.  */
15122
15123 int
15124 main ()
15125 {
15126
15127   ;
15128   return 0;
15129 }
15130 _ACEOF
15131 if ac_fn_cxx_try_link "$LINENO"; then :
15132
15133 lt_aix_libpath_sed='
15134     /Import File Strings/,/^$/ {
15135         /^0/ {
15136             s/^0  *\(.*\)$/\1/
15137             p
15138         }
15139     }'
15140 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15141 # Check for a 64-bit object if we didn't find anything.
15142 if test -z "$aix_libpath"; then
15143   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15144 fi
15145 fi
15146 rm -f core conftest.err conftest.$ac_objext \
15147     conftest$ac_exeext conftest.$ac_ext
15148 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15149
15150           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15151
15152           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"
15153         else
15154           if test "$host_cpu" = ia64; then
15155             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15156             allow_undefined_flag_CXX="-z nodefs"
15157             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"
15158           else
15159             # Determine the default libpath from the value encoded in an
15160             # empty executable.
15161             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15162 /* end confdefs.h.  */
15163
15164 int
15165 main ()
15166 {
15167
15168   ;
15169   return 0;
15170 }
15171 _ACEOF
15172 if ac_fn_cxx_try_link "$LINENO"; then :
15173
15174 lt_aix_libpath_sed='
15175     /Import File Strings/,/^$/ {
15176         /^0/ {
15177             s/^0  *\(.*\)$/\1/
15178             p
15179         }
15180     }'
15181 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15182 # Check for a 64-bit object if we didn't find anything.
15183 if test -z "$aix_libpath"; then
15184   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15185 fi
15186 fi
15187 rm -f core conftest.err conftest.$ac_objext \
15188     conftest$ac_exeext conftest.$ac_ext
15189 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15190
15191             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15192             # Warning - without using the other run time loading flags,
15193             # -berok will link without error, but may produce a broken library.
15194             no_undefined_flag_CXX=' ${wl}-bernotok'
15195             allow_undefined_flag_CXX=' ${wl}-berok'
15196             # Exported symbols can be pulled into shared objects from archives
15197             whole_archive_flag_spec_CXX='$convenience'
15198             archive_cmds_need_lc_CXX=yes
15199             # This is similar to how AIX traditionally builds its shared
15200             # libraries.
15201             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'
15202           fi
15203         fi
15204         ;;
15205
15206       beos*)
15207         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15208           allow_undefined_flag_CXX=unsupported
15209           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15210           # support --undefined.  This deserves some investigation.  FIXME
15211           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15212         else
15213           ld_shlibs_CXX=no
15214         fi
15215         ;;
15216
15217       chorus*)
15218         case $cc_basename in
15219           *)
15220           # FIXME: insert proper C++ library support
15221           ld_shlibs_CXX=no
15222           ;;
15223         esac
15224         ;;
15225
15226       cygwin* | mingw* | pw32* | cegcc*)
15227         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15228         # as there is no search path for DLLs.
15229         hardcode_libdir_flag_spec_CXX='-L$libdir'
15230         allow_undefined_flag_CXX=unsupported
15231         always_export_symbols_CXX=no
15232         enable_shared_with_static_runtimes_CXX=yes
15233
15234         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15235           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'
15236           # If the export-symbols file already is a .def file (1st line
15237           # is EXPORTS), use it as is; otherwise, prepend...
15238           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15239             cp $export_symbols $output_objdir/$soname.def;
15240           else
15241             echo EXPORTS > $output_objdir/$soname.def;
15242             cat $export_symbols >> $output_objdir/$soname.def;
15243           fi~
15244           $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'
15245         else
15246           ld_shlibs_CXX=no
15247         fi
15248         ;;
15249       darwin* | rhapsody*)
15250
15251
15252   archive_cmds_need_lc_CXX=no
15253   hardcode_direct_CXX=no
15254   hardcode_automatic_CXX=yes
15255   hardcode_shlibpath_var_CXX=unsupported
15256   whole_archive_flag_spec_CXX=''
15257   link_all_deplibs_CXX=yes
15258   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15259   case $cc_basename in
15260      ifort*) _lt_dar_can_shared=yes ;;
15261      *) _lt_dar_can_shared=$GCC ;;
15262   esac
15263   if test "$_lt_dar_can_shared" = "yes"; then
15264     output_verbose_link_cmd=echo
15265     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}"
15266     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15267     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}"
15268     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}"
15269        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15270       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}"
15271       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}"
15272     fi
15273
15274   else
15275   ld_shlibs_CXX=no
15276   fi
15277
15278         ;;
15279
15280       dgux*)
15281         case $cc_basename in
15282           ec++*)
15283             # FIXME: insert proper C++ library support
15284             ld_shlibs_CXX=no
15285             ;;
15286           ghcx*)
15287             # Green Hills C++ Compiler
15288             # FIXME: insert proper C++ library support
15289             ld_shlibs_CXX=no
15290             ;;
15291           *)
15292             # FIXME: insert proper C++ library support
15293             ld_shlibs_CXX=no
15294             ;;
15295         esac
15296         ;;
15297
15298       freebsd[12]*)
15299         # C++ shared libraries reported to be fairly broken before
15300         # switch to ELF
15301         ld_shlibs_CXX=no
15302         ;;
15303
15304       freebsd-elf*)
15305         archive_cmds_need_lc_CXX=no
15306         ;;
15307
15308       freebsd* | dragonfly*)
15309         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15310         # conventions
15311         ld_shlibs_CXX=yes
15312         ;;
15313
15314       gnu*)
15315         ;;
15316
15317       hpux9*)
15318         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15319         hardcode_libdir_separator_CXX=:
15320         export_dynamic_flag_spec_CXX='${wl}-E'
15321         hardcode_direct_CXX=yes
15322         hardcode_minus_L_CXX=yes # Not in the search PATH,
15323                                              # but as the default
15324                                              # location of the library.
15325
15326         case $cc_basename in
15327           CC*)
15328             # FIXME: insert proper C++ library support
15329             ld_shlibs_CXX=no
15330             ;;
15331           aCC*)
15332             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'
15333             # Commands to make compiler produce verbose output that lists
15334             # what "hidden" libraries, object files and flags are used when
15335             # linking a shared library.
15336             #
15337             # There doesn't appear to be a way to prevent this compiler from
15338             # explicitly linking system object files so we need to strip them
15339             # from the output so that they don't get included in the library
15340             # dependencies.
15341             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'
15342             ;;
15343           *)
15344             if test "$GXX" = yes; then
15345               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'
15346             else
15347               # FIXME: insert proper C++ library support
15348               ld_shlibs_CXX=no
15349             fi
15350             ;;
15351         esac
15352         ;;
15353
15354       hpux10*|hpux11*)
15355         if test $with_gnu_ld = no; then
15356           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15357           hardcode_libdir_separator_CXX=:
15358
15359           case $host_cpu in
15360             hppa*64*|ia64*)
15361               ;;
15362             *)
15363               export_dynamic_flag_spec_CXX='${wl}-E'
15364               ;;
15365           esac
15366         fi
15367         case $host_cpu in
15368           hppa*64*|ia64*)
15369             hardcode_direct_CXX=no
15370             hardcode_shlibpath_var_CXX=no
15371             ;;
15372           *)
15373             hardcode_direct_CXX=yes
15374             hardcode_direct_absolute_CXX=yes
15375             hardcode_minus_L_CXX=yes # Not in the search PATH,
15376                                                  # but as the default
15377                                                  # location of the library.
15378             ;;
15379         esac
15380
15381         case $cc_basename in
15382           CC*)
15383             # FIXME: insert proper C++ library support
15384             ld_shlibs_CXX=no
15385             ;;
15386           aCC*)
15387             case $host_cpu in
15388               hppa*64*)
15389                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15390                 ;;
15391               ia64*)
15392                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15393                 ;;
15394               *)
15395                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15396                 ;;
15397             esac
15398             # Commands to make compiler produce verbose output that lists
15399             # what "hidden" libraries, object files and flags are used when
15400             # linking a shared library.
15401             #
15402             # There doesn't appear to be a way to prevent this compiler from
15403             # explicitly linking system object files so we need to strip them
15404             # from the output so that they don't get included in the library
15405             # dependencies.
15406             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'
15407             ;;
15408           *)
15409             if test "$GXX" = yes; then
15410               if test $with_gnu_ld = no; then
15411                 case $host_cpu in
15412                   hppa*64*)
15413                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15414                     ;;
15415                   ia64*)
15416                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15417                     ;;
15418                   *)
15419                     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'
15420                     ;;
15421                 esac
15422               fi
15423             else
15424               # FIXME: insert proper C++ library support
15425               ld_shlibs_CXX=no
15426             fi
15427             ;;
15428         esac
15429         ;;
15430
15431       interix[3-9]*)
15432         hardcode_direct_CXX=no
15433         hardcode_shlibpath_var_CXX=no
15434         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15435         export_dynamic_flag_spec_CXX='${wl}-E'
15436         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15437         # Instead, shared libraries are loaded at an image base (0x10000000 by
15438         # default) and relocated if they conflict, which is a slow very memory
15439         # consuming and fragmenting process.  To avoid this, we pick a random,
15440         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15441         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15442         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'
15443         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'
15444         ;;
15445       irix5* | irix6*)
15446         case $cc_basename in
15447           CC*)
15448             # SGI C++
15449             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'
15450
15451             # Archives containing C++ object files must be created using
15452             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15453             # necessary to make sure instantiated templates are included
15454             # in the archive.
15455             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15456             ;;
15457           *)
15458             if test "$GXX" = yes; then
15459               if test "$with_gnu_ld" = no; then
15460                 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'
15461               else
15462                 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'
15463               fi
15464             fi
15465             link_all_deplibs_CXX=yes
15466             ;;
15467         esac
15468         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15469         hardcode_libdir_separator_CXX=:
15470         inherit_rpath_CXX=yes
15471         ;;
15472
15473       linux* | k*bsd*-gnu)
15474         case $cc_basename in
15475           KCC*)
15476             # Kuck and Associates, Inc. (KAI) C++ Compiler
15477
15478             # KCC will only create a shared library if the output file
15479             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15480             # to its proper name (with version) after linking.
15481             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'
15482             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'
15483             # Commands to make compiler produce verbose output that lists
15484             # what "hidden" libraries, object files and flags are used when
15485             # linking a shared library.
15486             #
15487             # There doesn't appear to be a way to prevent this compiler from
15488             # explicitly linking system object files so we need to strip them
15489             # from the output so that they don't get included in the library
15490             # dependencies.
15491             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'
15492
15493             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15494             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15495
15496             # Archives containing C++ object files must be created using
15497             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15498             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15499             ;;
15500           icpc* | ecpc* )
15501             # Intel C++
15502             with_gnu_ld=yes
15503             # version 8.0 and above of icpc choke on multiply defined symbols
15504             # if we add $predep_objects and $postdep_objects, however 7.1 and
15505             # earlier do not add the objects themselves.
15506             case `$CC -V 2>&1` in
15507               *"Version 7."*)
15508                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15509                 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'
15510                 ;;
15511               *)  # Version 8.0 or newer
15512                 tmp_idyn=
15513                 case $host_cpu in
15514                   ia64*) tmp_idyn=' -i_dynamic';;
15515                 esac
15516                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15517                 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'
15518                 ;;
15519             esac
15520             archive_cmds_need_lc_CXX=no
15521             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15522             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15523             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15524             ;;
15525           pgCC* | pgcpp*)
15526             # Portland Group C++ compiler
15527             case `$CC -V` in
15528             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15529               prelink_cmds_CXX='tpldir=Template.dir~
15530                 rm -rf $tpldir~
15531                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15532                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15533               old_archive_cmds_CXX='tpldir=Template.dir~
15534                 rm -rf $tpldir~
15535                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15536                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15537                 $RANLIB $oldlib'
15538               archive_cmds_CXX='tpldir=Template.dir~
15539                 rm -rf $tpldir~
15540                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15541                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15542               archive_expsym_cmds_CXX='tpldir=Template.dir~
15543                 rm -rf $tpldir~
15544                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15545                 $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'
15546               ;;
15547             *) # Version 6 will use weak symbols
15548               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15549               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'
15550               ;;
15551             esac
15552
15553             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15554             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15555             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'
15556             ;;
15557           cxx*)
15558             # Compaq C++
15559             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15560             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'
15561
15562             runpath_var=LD_RUN_PATH
15563             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15564             hardcode_libdir_separator_CXX=:
15565
15566             # Commands to make compiler produce verbose output that lists
15567             # what "hidden" libraries, object files and flags are used when
15568             # linking a shared library.
15569             #
15570             # There doesn't appear to be a way to prevent this compiler from
15571             # explicitly linking system object files so we need to strip them
15572             # from the output so that they don't get included in the library
15573             # dependencies.
15574             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'
15575             ;;
15576           xl*)
15577             # IBM XL 8.0 on PPC, with GNU ld
15578             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15579             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15580             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15581             if test "x$supports_anon_versioning" = xyes; then
15582               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15583                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15584                 echo "local: *; };" >> $output_objdir/$libname.ver~
15585                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15586             fi
15587             ;;
15588           *)
15589             case `$CC -V 2>&1 | sed 5q` in
15590             *Sun\ C*)
15591               # Sun C++ 5.9
15592               no_undefined_flag_CXX=' -zdefs'
15593               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15594               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'
15595               hardcode_libdir_flag_spec_CXX='-R$libdir'
15596               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'
15597               compiler_needs_object_CXX=yes
15598
15599               # Not sure whether something based on
15600               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15601               # would be better.
15602               output_verbose_link_cmd='echo'
15603
15604               # Archives containing C++ object files must be created using
15605               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15606               # necessary to make sure instantiated templates are included
15607               # in the archive.
15608               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15609               ;;
15610             esac
15611             ;;
15612         esac
15613         ;;
15614
15615       lynxos*)
15616         # FIXME: insert proper C++ library support
15617         ld_shlibs_CXX=no
15618         ;;
15619
15620       m88k*)
15621         # FIXME: insert proper C++ library support
15622         ld_shlibs_CXX=no
15623         ;;
15624
15625       mvs*)
15626         case $cc_basename in
15627           cxx*)
15628             # FIXME: insert proper C++ library support
15629             ld_shlibs_CXX=no
15630             ;;
15631           *)
15632             # FIXME: insert proper C++ library support
15633             ld_shlibs_CXX=no
15634             ;;
15635         esac
15636         ;;
15637
15638       netbsd*)
15639         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15640           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15641           wlarc=
15642           hardcode_libdir_flag_spec_CXX='-R$libdir'
15643           hardcode_direct_CXX=yes
15644           hardcode_shlibpath_var_CXX=no
15645         fi
15646         # Workaround some broken pre-1.5 toolchains
15647         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15648         ;;
15649
15650       *nto* | *qnx*)
15651         ld_shlibs_CXX=yes
15652         ;;
15653
15654       openbsd2*)
15655         # C++ shared libraries are fairly broken
15656         ld_shlibs_CXX=no
15657         ;;
15658
15659       openbsd*)
15660         if test -f /usr/libexec/ld.so; then
15661           hardcode_direct_CXX=yes
15662           hardcode_shlibpath_var_CXX=no
15663           hardcode_direct_absolute_CXX=yes
15664           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15665           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15666           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15667             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15668             export_dynamic_flag_spec_CXX='${wl}-E'
15669             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15670           fi
15671           output_verbose_link_cmd=echo
15672         else
15673           ld_shlibs_CXX=no
15674         fi
15675         ;;
15676
15677       osf3* | osf4* | osf5*)
15678         case $cc_basename in
15679           KCC*)
15680             # Kuck and Associates, Inc. (KAI) C++ Compiler
15681
15682             # KCC will only create a shared library if the output file
15683             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15684             # to its proper name (with version) after linking.
15685             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'
15686
15687             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15688             hardcode_libdir_separator_CXX=:
15689
15690             # Archives containing C++ object files must be created using
15691             # the KAI C++ compiler.
15692             case $host in
15693               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15694               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15695             esac
15696             ;;
15697           RCC*)
15698             # Rational C++ 2.4.1
15699             # FIXME: insert proper C++ library support
15700             ld_shlibs_CXX=no
15701             ;;
15702           cxx*)
15703             case $host in
15704               osf3*)
15705                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15706                 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'
15707                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15708                 ;;
15709               *)
15710                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15711                 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'
15712                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15713                   echo "-hidden">> $lib.exp~
15714                   $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~
15715                   $RM $lib.exp'
15716                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15717                 ;;
15718             esac
15719
15720             hardcode_libdir_separator_CXX=:
15721
15722             # Commands to make compiler produce verbose output that lists
15723             # what "hidden" libraries, object files and flags are used when
15724             # linking a shared library.
15725             #
15726             # There doesn't appear to be a way to prevent this compiler from
15727             # explicitly linking system object files so we need to strip them
15728             # from the output so that they don't get included in the library
15729             # dependencies.
15730             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'
15731             ;;
15732           *)
15733             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15734               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15735               case $host in
15736                 osf3*)
15737                   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'
15738                   ;;
15739                 *)
15740                   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'
15741                   ;;
15742               esac
15743
15744               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15745               hardcode_libdir_separator_CXX=:
15746
15747               # Commands to make compiler produce verbose output that lists
15748               # what "hidden" libraries, object files and flags are used when
15749               # linking a shared library.
15750               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15751
15752             else
15753               # FIXME: insert proper C++ library support
15754               ld_shlibs_CXX=no
15755             fi
15756             ;;
15757         esac
15758         ;;
15759
15760       psos*)
15761         # FIXME: insert proper C++ library support
15762         ld_shlibs_CXX=no
15763         ;;
15764
15765       sunos4*)
15766         case $cc_basename in
15767           CC*)
15768             # Sun C++ 4.x
15769             # FIXME: insert proper C++ library support
15770             ld_shlibs_CXX=no
15771             ;;
15772           lcc*)
15773             # Lucid
15774             # FIXME: insert proper C++ library support
15775             ld_shlibs_CXX=no
15776             ;;
15777           *)
15778             # FIXME: insert proper C++ library support
15779             ld_shlibs_CXX=no
15780             ;;
15781         esac
15782         ;;
15783
15784       solaris*)
15785         case $cc_basename in
15786           CC*)
15787             # Sun C++ 4.2, 5.x and Centerline C++
15788             archive_cmds_need_lc_CXX=yes
15789             no_undefined_flag_CXX=' -zdefs'
15790             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15791             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15792               $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'
15793
15794             hardcode_libdir_flag_spec_CXX='-R$libdir'
15795             hardcode_shlibpath_var_CXX=no
15796             case $host_os in
15797               solaris2.[0-5] | solaris2.[0-5].*) ;;
15798               *)
15799                 # The compiler driver will combine and reorder linker options,
15800                 # but understands `-z linker_flag'.
15801                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15802                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15803                 ;;
15804             esac
15805             link_all_deplibs_CXX=yes
15806
15807             output_verbose_link_cmd='echo'
15808
15809             # Archives containing C++ object files must be created using
15810             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15811             # necessary to make sure instantiated templates are included
15812             # in the archive.
15813             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15814             ;;
15815           gcx*)
15816             # Green Hills C++ Compiler
15817             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15818
15819             # The C++ compiler must be used to create the archive.
15820             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15821             ;;
15822           *)
15823             # GNU C++ compiler with Solaris linker
15824             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15825               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15826               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15827                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15828                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15829                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15830
15831                 # Commands to make compiler produce verbose output that lists
15832                 # what "hidden" libraries, object files and flags are used when
15833                 # linking a shared library.
15834                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15835               else
15836                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15837                 # platform.
15838                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15839                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15840                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15841
15842                 # Commands to make compiler produce verbose output that lists
15843                 # what "hidden" libraries, object files and flags are used when
15844                 # linking a shared library.
15845                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15846               fi
15847
15848               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15849               case $host_os in
15850                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15851                 *)
15852                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15853                   ;;
15854               esac
15855             fi
15856             ;;
15857         esac
15858         ;;
15859
15860     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15861       no_undefined_flag_CXX='${wl}-z,text'
15862       archive_cmds_need_lc_CXX=no
15863       hardcode_shlibpath_var_CXX=no
15864       runpath_var='LD_RUN_PATH'
15865
15866       case $cc_basename in
15867         CC*)
15868           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15869           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15870           ;;
15871         *)
15872           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15873           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15874           ;;
15875       esac
15876       ;;
15877
15878       sysv5* | sco3.2v5* | sco5v6*)
15879         # Note: We can NOT use -z defs as we might desire, because we do not
15880         # link with -lc, and that would cause any symbols used from libc to
15881         # always be unresolved, which means just about no library would
15882         # ever link correctly.  If we're not using GNU ld we use -z text
15883         # though, which does catch some bad symbols but isn't as heavy-handed
15884         # as -z defs.
15885         no_undefined_flag_CXX='${wl}-z,text'
15886         allow_undefined_flag_CXX='${wl}-z,nodefs'
15887         archive_cmds_need_lc_CXX=no
15888         hardcode_shlibpath_var_CXX=no
15889         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15890         hardcode_libdir_separator_CXX=':'
15891         link_all_deplibs_CXX=yes
15892         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15893         runpath_var='LD_RUN_PATH'
15894
15895         case $cc_basename in
15896           CC*)
15897             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15898             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15899             ;;
15900           *)
15901             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15902             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15903             ;;
15904         esac
15905       ;;
15906
15907       tandem*)
15908         case $cc_basename in
15909           NCC*)
15910             # NonStop-UX NCC 3.20
15911             # FIXME: insert proper C++ library support
15912             ld_shlibs_CXX=no
15913             ;;
15914           *)
15915             # FIXME: insert proper C++ library support
15916             ld_shlibs_CXX=no
15917             ;;
15918         esac
15919         ;;
15920
15921       vxworks*)
15922         # FIXME: insert proper C++ library support
15923         ld_shlibs_CXX=no
15924         ;;
15925
15926       *)
15927         # FIXME: insert proper C++ library support
15928         ld_shlibs_CXX=no
15929         ;;
15930     esac
15931
15932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15933 $as_echo "$ld_shlibs_CXX" >&6; }
15934     test "$ld_shlibs_CXX" = no && can_build_shared=no
15935
15936     GCC_CXX="$GXX"
15937     LD_CXX="$LD"
15938
15939     ## CAVEAT EMPTOR:
15940     ## There is no encapsulation within the following macros, do not change
15941     ## the running order or otherwise move them around unless you know exactly
15942     ## what you are doing...
15943     # Dependencies to place before and after the object being linked:
15944 predep_objects_CXX=
15945 postdep_objects_CXX=
15946 predeps_CXX=
15947 postdeps_CXX=
15948 compiler_lib_search_path_CXX=
15949
15950 cat > conftest.$ac_ext <<_LT_EOF
15951 class Foo
15952 {
15953 public:
15954   Foo (void) { a = 0; }
15955 private:
15956   int a;
15957 };
15958 _LT_EOF
15959
15960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15961   (eval $ac_compile) 2>&5
15962   ac_status=$?
15963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15964   test $ac_status = 0; }; then
15965   # Parse the compiler output and extract the necessary
15966   # objects, libraries and library flags.
15967
15968   # Sentinel used to keep track of whether or not we are before
15969   # the conftest object file.
15970   pre_test_object_deps_done=no
15971
15972   for p in `eval "$output_verbose_link_cmd"`; do
15973     case $p in
15974
15975     -L* | -R* | -l*)
15976        # Some compilers place space between "-{L,R}" and the path.
15977        # Remove the space.
15978        if test $p = "-L" ||
15979           test $p = "-R"; then
15980          prev=$p
15981          continue
15982        else
15983          prev=
15984        fi
15985
15986        if test "$pre_test_object_deps_done" = no; then
15987          case $p in
15988          -L* | -R*)
15989            # Internal compiler library paths should come after those
15990            # provided the user.  The postdeps already come after the
15991            # user supplied libs so there is no need to process them.
15992            if test -z "$compiler_lib_search_path_CXX"; then
15993              compiler_lib_search_path_CXX="${prev}${p}"
15994            else
15995              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15996            fi
15997            ;;
15998          # The "-l" case would never come before the object being
15999          # linked, so don't bother handling this case.
16000          esac
16001        else
16002          if test -z "$postdeps_CXX"; then
16003            postdeps_CXX="${prev}${p}"
16004          else
16005            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16006          fi
16007        fi
16008        ;;
16009
16010     *.$objext)
16011        # This assumes that the test object file only shows up
16012        # once in the compiler output.
16013        if test "$p" = "conftest.$objext"; then
16014          pre_test_object_deps_done=yes
16015          continue
16016        fi
16017
16018        if test "$pre_test_object_deps_done" = no; then
16019          if test -z "$predep_objects_CXX"; then
16020            predep_objects_CXX="$p"
16021          else
16022            predep_objects_CXX="$predep_objects_CXX $p"
16023          fi
16024        else
16025          if test -z "$postdep_objects_CXX"; then
16026            postdep_objects_CXX="$p"
16027          else
16028            postdep_objects_CXX="$postdep_objects_CXX $p"
16029          fi
16030        fi
16031        ;;
16032
16033     *) ;; # Ignore the rest.
16034
16035     esac
16036   done
16037
16038   # Clean up.
16039   rm -f a.out a.exe
16040 else
16041   echo "libtool.m4: error: problem compiling CXX test program"
16042 fi
16043
16044 $RM -f confest.$objext
16045
16046 # PORTME: override above test on systems where it is broken
16047 case $host_os in
16048 interix[3-9]*)
16049   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16050   # hack all around it, let's just trust "g++" to DTRT.
16051   predep_objects_CXX=
16052   postdep_objects_CXX=
16053   postdeps_CXX=
16054   ;;
16055
16056 linux*)
16057   case `$CC -V 2>&1 | sed 5q` in
16058   *Sun\ C*)
16059     # Sun C++ 5.9
16060
16061     # The more standards-conforming stlport4 library is
16062     # incompatible with the Cstd library. Avoid specifying
16063     # it if it's in CXXFLAGS. Ignore libCrun as
16064     # -library=stlport4 depends on it.
16065     case " $CXX $CXXFLAGS " in
16066     *" -library=stlport4 "*)
16067       solaris_use_stlport4=yes
16068       ;;
16069     esac
16070
16071     if test "$solaris_use_stlport4" != yes; then
16072       postdeps_CXX='-library=Cstd -library=Crun'
16073     fi
16074     ;;
16075   esac
16076   ;;
16077
16078 solaris*)
16079   case $cc_basename in
16080   CC*)
16081     # The more standards-conforming stlport4 library is
16082     # incompatible with the Cstd library. Avoid specifying
16083     # it if it's in CXXFLAGS. Ignore libCrun as
16084     # -library=stlport4 depends on it.
16085     case " $CXX $CXXFLAGS " in
16086     *" -library=stlport4 "*)
16087       solaris_use_stlport4=yes
16088       ;;
16089     esac
16090
16091     # Adding this requires a known-good setup of shared libraries for
16092     # Sun compiler versions before 5.6, else PIC objects from an old
16093     # archive will be linked into the output, leading to subtle bugs.
16094     if test "$solaris_use_stlport4" != yes; then
16095       postdeps_CXX='-library=Cstd -library=Crun'
16096     fi
16097     ;;
16098   esac
16099   ;;
16100 esac
16101
16102
16103 case " $postdeps_CXX " in
16104 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16105 esac
16106  compiler_lib_search_dirs_CXX=
16107 if test -n "${compiler_lib_search_path_CXX}"; then
16108  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16109 fi
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141     lt_prog_compiler_wl_CXX=
16142 lt_prog_compiler_pic_CXX=
16143 lt_prog_compiler_static_CXX=
16144
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16146 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16147
16148   # C++ specific cases for pic, static, wl, etc.
16149   if test "$GXX" = yes; then
16150     lt_prog_compiler_wl_CXX='-Wl,'
16151     lt_prog_compiler_static_CXX='-static'
16152
16153     case $host_os in
16154     aix*)
16155       # All AIX code is PIC.
16156       if test "$host_cpu" = ia64; then
16157         # AIX 5 now supports IA64 processor
16158         lt_prog_compiler_static_CXX='-Bstatic'
16159       fi
16160       ;;
16161
16162     amigaos*)
16163       case $host_cpu in
16164       powerpc)
16165             # see comment about AmigaOS4 .so support
16166             lt_prog_compiler_pic_CXX='-fPIC'
16167         ;;
16168       m68k)
16169             # FIXME: we need at least 68020 code to build shared libraries, but
16170             # adding the `-m68020' flag to GCC prevents building anything better,
16171             # like `-m68040'.
16172             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16173         ;;
16174       esac
16175       ;;
16176
16177     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16178       # PIC is the default for these OSes.
16179       ;;
16180     mingw* | cygwin* | os2* | pw32* | cegcc*)
16181       # This hack is so that the source file can tell whether it is being
16182       # built for inclusion in a dll (and should export symbols for example).
16183       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16184       # (--disable-auto-import) libraries
16185       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16186       ;;
16187     darwin* | rhapsody*)
16188       # PIC is the default on this platform
16189       # Common symbols not allowed in MH_DYLIB files
16190       lt_prog_compiler_pic_CXX='-fno-common'
16191       ;;
16192     *djgpp*)
16193       # DJGPP does not support shared libraries at all
16194       lt_prog_compiler_pic_CXX=
16195       ;;
16196     interix[3-9]*)
16197       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16198       # Instead, we relocate shared libraries at runtime.
16199       ;;
16200     sysv4*MP*)
16201       if test -d /usr/nec; then
16202         lt_prog_compiler_pic_CXX=-Kconform_pic
16203       fi
16204       ;;
16205     hpux*)
16206       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16207       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16208       # sets the default TLS model and affects inlining.
16209       case $host_cpu in
16210       hppa*64*)
16211         ;;
16212       *)
16213         lt_prog_compiler_pic_CXX='-fPIC'
16214         ;;
16215       esac
16216       ;;
16217     *qnx* | *nto*)
16218       # QNX uses GNU C++, but need to define -shared option too, otherwise
16219       # it will coredump.
16220       lt_prog_compiler_pic_CXX='-fPIC -shared'
16221       ;;
16222     *)
16223       lt_prog_compiler_pic_CXX='-fPIC'
16224       ;;
16225     esac
16226   else
16227     case $host_os in
16228       aix[4-9]*)
16229         # All AIX code is PIC.
16230         if test "$host_cpu" = ia64; then
16231           # AIX 5 now supports IA64 processor
16232           lt_prog_compiler_static_CXX='-Bstatic'
16233         else
16234           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16235         fi
16236         ;;
16237       chorus*)
16238         case $cc_basename in
16239         cxch68*)
16240           # Green Hills C++ Compiler
16241           # _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"
16242           ;;
16243         esac
16244         ;;
16245       dgux*)
16246         case $cc_basename in
16247           ec++*)
16248             lt_prog_compiler_pic_CXX='-KPIC'
16249             ;;
16250           ghcx*)
16251             # Green Hills C++ Compiler
16252             lt_prog_compiler_pic_CXX='-pic'
16253             ;;
16254           *)
16255             ;;
16256         esac
16257         ;;
16258       freebsd* | dragonfly*)
16259         # FreeBSD uses GNU C++
16260         ;;
16261       hpux9* | hpux10* | hpux11*)
16262         case $cc_basename in
16263           CC*)
16264             lt_prog_compiler_wl_CXX='-Wl,'
16265             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16266             if test "$host_cpu" != ia64; then
16267               lt_prog_compiler_pic_CXX='+Z'
16268             fi
16269             ;;
16270           aCC*)
16271             lt_prog_compiler_wl_CXX='-Wl,'
16272             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16273             case $host_cpu in
16274             hppa*64*|ia64*)
16275               # +Z the default
16276               ;;
16277             *)
16278               lt_prog_compiler_pic_CXX='+Z'
16279               ;;
16280             esac
16281             ;;
16282           *)
16283             ;;
16284         esac
16285         ;;
16286       interix*)
16287         # This is c89, which is MS Visual C++ (no shared libs)
16288         # Anyone wants to do a port?
16289         ;;
16290       irix5* | irix6* | nonstopux*)
16291         case $cc_basename in
16292           CC*)
16293             lt_prog_compiler_wl_CXX='-Wl,'
16294             lt_prog_compiler_static_CXX='-non_shared'
16295             # CC pic flag -KPIC is the default.
16296             ;;
16297           *)
16298             ;;
16299         esac
16300         ;;
16301       linux* | k*bsd*-gnu)
16302         case $cc_basename in
16303           KCC*)
16304             # KAI C++ Compiler
16305             lt_prog_compiler_wl_CXX='--backend -Wl,'
16306             lt_prog_compiler_pic_CXX='-fPIC'
16307             ;;
16308           ecpc* )
16309             # old Intel C++ for x86_64 which still supported -KPIC.
16310             lt_prog_compiler_wl_CXX='-Wl,'
16311             lt_prog_compiler_pic_CXX='-KPIC'
16312             lt_prog_compiler_static_CXX='-static'
16313             ;;
16314           icpc* )
16315             # Intel C++, used to be incompatible with GCC.
16316             # ICC 10 doesn't accept -KPIC any more.
16317             lt_prog_compiler_wl_CXX='-Wl,'
16318             lt_prog_compiler_pic_CXX='-fPIC'
16319             lt_prog_compiler_static_CXX='-static'
16320             ;;
16321           pgCC* | pgcpp*)
16322             # Portland Group C++ compiler
16323             lt_prog_compiler_wl_CXX='-Wl,'
16324             lt_prog_compiler_pic_CXX='-fpic'
16325             lt_prog_compiler_static_CXX='-Bstatic'
16326             ;;
16327           cxx*)
16328             # Compaq C++
16329             # Make sure the PIC flag is empty.  It appears that all Alpha
16330             # Linux and Compaq Tru64 Unix objects are PIC.
16331             lt_prog_compiler_pic_CXX=
16332             lt_prog_compiler_static_CXX='-non_shared'
16333             ;;
16334           xlc* | xlC*)
16335             # IBM XL 8.0 on PPC
16336             lt_prog_compiler_wl_CXX='-Wl,'
16337             lt_prog_compiler_pic_CXX='-qpic'
16338             lt_prog_compiler_static_CXX='-qstaticlink'
16339             ;;
16340           *)
16341             case `$CC -V 2>&1 | sed 5q` in
16342             *Sun\ C*)
16343               # Sun C++ 5.9
16344               lt_prog_compiler_pic_CXX='-KPIC'
16345               lt_prog_compiler_static_CXX='-Bstatic'
16346               lt_prog_compiler_wl_CXX='-Qoption ld '
16347               ;;
16348             esac
16349             ;;
16350         esac
16351         ;;
16352       lynxos*)
16353         ;;
16354       m88k*)
16355         ;;
16356       mvs*)
16357         case $cc_basename in
16358           cxx*)
16359             lt_prog_compiler_pic_CXX='-W c,exportall'
16360             ;;
16361           *)
16362             ;;
16363         esac
16364         ;;
16365       netbsd*)
16366         ;;
16367       *qnx* | *nto*)
16368         # QNX uses GNU C++, but need to define -shared option too, otherwise
16369         # it will coredump.
16370         lt_prog_compiler_pic_CXX='-fPIC -shared'
16371         ;;
16372       osf3* | osf4* | osf5*)
16373         case $cc_basename in
16374           KCC*)
16375             lt_prog_compiler_wl_CXX='--backend -Wl,'
16376             ;;
16377           RCC*)
16378             # Rational C++ 2.4.1
16379             lt_prog_compiler_pic_CXX='-pic'
16380             ;;
16381           cxx*)
16382             # Digital/Compaq C++
16383             lt_prog_compiler_wl_CXX='-Wl,'
16384             # Make sure the PIC flag is empty.  It appears that all Alpha
16385             # Linux and Compaq Tru64 Unix objects are PIC.
16386             lt_prog_compiler_pic_CXX=
16387             lt_prog_compiler_static_CXX='-non_shared'
16388             ;;
16389           *)
16390             ;;
16391         esac
16392         ;;
16393       psos*)
16394         ;;
16395       solaris*)
16396         case $cc_basename in
16397           CC*)
16398             # Sun C++ 4.2, 5.x and Centerline C++
16399             lt_prog_compiler_pic_CXX='-KPIC'
16400             lt_prog_compiler_static_CXX='-Bstatic'
16401             lt_prog_compiler_wl_CXX='-Qoption ld '
16402             ;;
16403           gcx*)
16404             # Green Hills C++ Compiler
16405             lt_prog_compiler_pic_CXX='-PIC'
16406             ;;
16407           *)
16408             ;;
16409         esac
16410         ;;
16411       sunos4*)
16412         case $cc_basename in
16413           CC*)
16414             # Sun C++ 4.x
16415             lt_prog_compiler_pic_CXX='-pic'
16416             lt_prog_compiler_static_CXX='-Bstatic'
16417             ;;
16418           lcc*)
16419             # Lucid
16420             lt_prog_compiler_pic_CXX='-pic'
16421             ;;
16422           *)
16423             ;;
16424         esac
16425         ;;
16426       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16427         case $cc_basename in
16428           CC*)
16429             lt_prog_compiler_wl_CXX='-Wl,'
16430             lt_prog_compiler_pic_CXX='-KPIC'
16431             lt_prog_compiler_static_CXX='-Bstatic'
16432             ;;
16433         esac
16434         ;;
16435       tandem*)
16436         case $cc_basename in
16437           NCC*)
16438             # NonStop-UX NCC 3.20
16439             lt_prog_compiler_pic_CXX='-KPIC'
16440             ;;
16441           *)
16442             ;;
16443         esac
16444         ;;
16445       vxworks*)
16446         ;;
16447       *)
16448         lt_prog_compiler_can_build_shared_CXX=no
16449         ;;
16450     esac
16451   fi
16452
16453 case $host_os in
16454   # For platforms which do not support PIC, -DPIC is meaningless:
16455   *djgpp*)
16456     lt_prog_compiler_pic_CXX=
16457     ;;
16458   *)
16459     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16460     ;;
16461 esac
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
16463 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16464
16465
16466
16467 #
16468 # Check to make sure the PIC flag actually works.
16469 #
16470 if test -n "$lt_prog_compiler_pic_CXX"; then
16471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16472 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16473 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
16474   $as_echo_n "(cached) " >&6
16475 else
16476   lt_cv_prog_compiler_pic_works_CXX=no
16477    ac_outfile=conftest.$ac_objext
16478    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16479    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16480    # Insert the option either (1) after the last *FLAGS variable, or
16481    # (2) before a word containing "conftest.", or (3) at the end.
16482    # Note that $ac_compile itself does not contain backslashes and begins
16483    # with a dollar sign (not a hyphen), so the echo should work correctly.
16484    # The option is referenced via a variable to avoid confusing sed.
16485    lt_compile=`echo "$ac_compile" | $SED \
16486    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16487    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16488    -e 's:$: $lt_compiler_flag:'`
16489    (eval echo "\"\$as_me:16489: $lt_compile\"" >&5)
16490    (eval "$lt_compile" 2>conftest.err)
16491    ac_status=$?
16492    cat conftest.err >&5
16493    echo "$as_me:16493: \$? = $ac_status" >&5
16494    if (exit $ac_status) && test -s "$ac_outfile"; then
16495      # The compiler can only warn and ignore the option if not recognized
16496      # So say no if there are warnings other than the usual output.
16497      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16498      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16499      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16500        lt_cv_prog_compiler_pic_works_CXX=yes
16501      fi
16502    fi
16503    $RM conftest*
16504
16505 fi
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16507 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16508
16509 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16510     case $lt_prog_compiler_pic_CXX in
16511      "" | " "*) ;;
16512      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16513      esac
16514 else
16515     lt_prog_compiler_pic_CXX=
16516      lt_prog_compiler_can_build_shared_CXX=no
16517 fi
16518
16519 fi
16520
16521
16522
16523 #
16524 # Check to make sure the static flag actually works.
16525 #
16526 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16528 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16529 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
16530   $as_echo_n "(cached) " >&6
16531 else
16532   lt_cv_prog_compiler_static_works_CXX=no
16533    save_LDFLAGS="$LDFLAGS"
16534    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16535    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16536    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16537      # The linker can only warn and ignore the option if not recognized
16538      # So say no if there are warnings
16539      if test -s conftest.err; then
16540        # Append any errors to the config.log.
16541        cat conftest.err 1>&5
16542        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16543        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16544        if diff conftest.exp conftest.er2 >/dev/null; then
16545          lt_cv_prog_compiler_static_works_CXX=yes
16546        fi
16547      else
16548        lt_cv_prog_compiler_static_works_CXX=yes
16549      fi
16550    fi
16551    $RM -r conftest*
16552    LDFLAGS="$save_LDFLAGS"
16553
16554 fi
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16556 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16557
16558 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16559     :
16560 else
16561     lt_prog_compiler_static_CXX=
16562 fi
16563
16564
16565
16566
16567     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16568 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16569 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16570   $as_echo_n "(cached) " >&6
16571 else
16572   lt_cv_prog_compiler_c_o_CXX=no
16573    $RM -r conftest 2>/dev/null
16574    mkdir conftest
16575    cd conftest
16576    mkdir out
16577    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16578
16579    lt_compiler_flag="-o out/conftest2.$ac_objext"
16580    # Insert the option either (1) after the last *FLAGS variable, or
16581    # (2) before a word containing "conftest.", or (3) at the end.
16582    # Note that $ac_compile itself does not contain backslashes and begins
16583    # with a dollar sign (not a hyphen), so the echo should work correctly.
16584    lt_compile=`echo "$ac_compile" | $SED \
16585    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16586    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16587    -e 's:$: $lt_compiler_flag:'`
16588    (eval echo "\"\$as_me:16588: $lt_compile\"" >&5)
16589    (eval "$lt_compile" 2>out/conftest.err)
16590    ac_status=$?
16591    cat out/conftest.err >&5
16592    echo "$as_me:16592: \$? = $ac_status" >&5
16593    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16594    then
16595      # The compiler can only warn and ignore the option if not recognized
16596      # So say no if there are warnings
16597      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16598      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16599      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16600        lt_cv_prog_compiler_c_o_CXX=yes
16601      fi
16602    fi
16603    chmod u+w . 2>&5
16604    $RM conftest*
16605    # SGI C++ compiler will create directory out/ii_files/ for
16606    # template instantiation
16607    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16608    $RM out/* && rmdir out
16609    cd ..
16610    $RM -r conftest
16611    $RM conftest*
16612
16613 fi
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16615 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16616
16617
16618
16619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16620 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16621 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16622   $as_echo_n "(cached) " >&6
16623 else
16624   lt_cv_prog_compiler_c_o_CXX=no
16625    $RM -r conftest 2>/dev/null
16626    mkdir conftest
16627    cd conftest
16628    mkdir out
16629    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16630
16631    lt_compiler_flag="-o out/conftest2.$ac_objext"
16632    # Insert the option either (1) after the last *FLAGS variable, or
16633    # (2) before a word containing "conftest.", or (3) at the end.
16634    # Note that $ac_compile itself does not contain backslashes and begins
16635    # with a dollar sign (not a hyphen), so the echo should work correctly.
16636    lt_compile=`echo "$ac_compile" | $SED \
16637    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16638    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16639    -e 's:$: $lt_compiler_flag:'`
16640    (eval echo "\"\$as_me:16640: $lt_compile\"" >&5)
16641    (eval "$lt_compile" 2>out/conftest.err)
16642    ac_status=$?
16643    cat out/conftest.err >&5
16644    echo "$as_me:16644: \$? = $ac_status" >&5
16645    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16646    then
16647      # The compiler can only warn and ignore the option if not recognized
16648      # So say no if there are warnings
16649      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16650      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16651      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16652        lt_cv_prog_compiler_c_o_CXX=yes
16653      fi
16654    fi
16655    chmod u+w . 2>&5
16656    $RM conftest*
16657    # SGI C++ compiler will create directory out/ii_files/ for
16658    # template instantiation
16659    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16660    $RM out/* && rmdir out
16661    cd ..
16662    $RM -r conftest
16663    $RM conftest*
16664
16665 fi
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16667 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16668
16669
16670
16671
16672 hard_links="nottested"
16673 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16674   # do not overwrite the value of need_locks provided by the user
16675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16676 $as_echo_n "checking if we can lock with hard links... " >&6; }
16677   hard_links=yes
16678   $RM conftest*
16679   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16680   touch conftest.a
16681   ln conftest.a conftest.b 2>&5 || hard_links=no
16682   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16684 $as_echo "$hard_links" >&6; }
16685   if test "$hard_links" = no; then
16686     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16687 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16688     need_locks=warn
16689   fi
16690 else
16691   need_locks=no
16692 fi
16693
16694
16695
16696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16697 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16698
16699   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16700   case $host_os in
16701   aix[4-9]*)
16702     # If we're using GNU nm, then we don't want the "-C" option.
16703     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16704     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16705       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'
16706     else
16707       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'
16708     fi
16709     ;;
16710   pw32*)
16711     export_symbols_cmds_CXX="$ltdll_cmds"
16712   ;;
16713   cygwin* | mingw* | cegcc*)
16714     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'
16715   ;;
16716   *)
16717     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16718   ;;
16719   esac
16720   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16721
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16723 $as_echo "$ld_shlibs_CXX" >&6; }
16724 test "$ld_shlibs_CXX" = no && can_build_shared=no
16725
16726 with_gnu_ld_CXX=$with_gnu_ld
16727
16728
16729
16730
16731
16732
16733 #
16734 # Do we need to explicitly link libc?
16735 #
16736 case "x$archive_cmds_need_lc_CXX" in
16737 x|xyes)
16738   # Assume -lc should be added
16739   archive_cmds_need_lc_CXX=yes
16740
16741   if test "$enable_shared" = yes && test "$GCC" = yes; then
16742     case $archive_cmds_CXX in
16743     *'~'*)
16744       # FIXME: we may have to deal with multi-command sequences.
16745       ;;
16746     '$CC '*)
16747       # Test whether the compiler implicitly links with -lc since on some
16748       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16749       # to ld, don't add -lc before -lgcc.
16750       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16751 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16752       $RM conftest*
16753       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16754
16755       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16756   (eval $ac_compile) 2>&5
16757   ac_status=$?
16758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16759   test $ac_status = 0; } 2>conftest.err; then
16760         soname=conftest
16761         lib=conftest
16762         libobjs=conftest.$ac_objext
16763         deplibs=
16764         wl=$lt_prog_compiler_wl_CXX
16765         pic_flag=$lt_prog_compiler_pic_CXX
16766         compiler_flags=-v
16767         linker_flags=-v
16768         verstring=
16769         output_objdir=.
16770         libname=conftest
16771         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16772         allow_undefined_flag_CXX=
16773         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16774   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16775   ac_status=$?
16776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16777   test $ac_status = 0; }
16778         then
16779           archive_cmds_need_lc_CXX=no
16780         else
16781           archive_cmds_need_lc_CXX=yes
16782         fi
16783         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16784       else
16785         cat conftest.err 1>&5
16786       fi
16787       $RM conftest*
16788       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
16789 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
16790       ;;
16791     esac
16792   fi
16793   ;;
16794 esac
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
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16860 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16861
16862 library_names_spec=
16863 libname_spec='lib$name'
16864 soname_spec=
16865 shrext_cmds=".so"
16866 postinstall_cmds=
16867 postuninstall_cmds=
16868 finish_cmds=
16869 finish_eval=
16870 shlibpath_var=
16871 shlibpath_overrides_runpath=unknown
16872 version_type=none
16873 dynamic_linker="$host_os ld.so"
16874 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16875 need_lib_prefix=unknown
16876 hardcode_into_libs=no
16877
16878 # when you set need_version to no, make sure it does not cause -set_version
16879 # flags to be left without arguments
16880 need_version=unknown
16881
16882 case $host_os in
16883 aix3*)
16884   version_type=linux
16885   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16886   shlibpath_var=LIBPATH
16887
16888   # AIX 3 has no versioning support, so we append a major version to the name.
16889   soname_spec='${libname}${release}${shared_ext}$major'
16890   ;;
16891
16892 aix[4-9]*)
16893   version_type=linux
16894   need_lib_prefix=no
16895   need_version=no
16896   hardcode_into_libs=yes
16897   if test "$host_cpu" = ia64; then
16898     # AIX 5 supports IA64
16899     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16900     shlibpath_var=LD_LIBRARY_PATH
16901   else
16902     # With GCC up to 2.95.x, collect2 would create an import file
16903     # for dependence libraries.  The import file would start with
16904     # the line `#! .'.  This would cause the generated library to
16905     # depend on `.', always an invalid library.  This was fixed in
16906     # development snapshots of GCC prior to 3.0.
16907     case $host_os in
16908       aix4 | aix4.[01] | aix4.[01].*)
16909       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16910            echo ' yes '
16911            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16912         :
16913       else
16914         can_build_shared=no
16915       fi
16916       ;;
16917     esac
16918     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16919     # soname into executable. Probably we can add versioning support to
16920     # collect2, so additional links can be useful in future.
16921     if test "$aix_use_runtimelinking" = yes; then
16922       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16923       # instead of lib<name>.a to let people know that these are not
16924       # typical AIX shared libraries.
16925       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16926     else
16927       # We preserve .a as extension for shared libraries through AIX4.2
16928       # and later when we are not doing run time linking.
16929       library_names_spec='${libname}${release}.a $libname.a'
16930       soname_spec='${libname}${release}${shared_ext}$major'
16931     fi
16932     shlibpath_var=LIBPATH
16933   fi
16934   ;;
16935
16936 amigaos*)
16937   case $host_cpu in
16938   powerpc)
16939     # Since July 2007 AmigaOS4 officially supports .so libraries.
16940     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16942     ;;
16943   m68k)
16944     library_names_spec='$libname.ixlibrary $libname.a'
16945     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16946     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'
16947     ;;
16948   esac
16949   ;;
16950
16951 beos*)
16952   library_names_spec='${libname}${shared_ext}'
16953   dynamic_linker="$host_os ld.so"
16954   shlibpath_var=LIBRARY_PATH
16955   ;;
16956
16957 bsdi[45]*)
16958   version_type=linux
16959   need_version=no
16960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16961   soname_spec='${libname}${release}${shared_ext}$major'
16962   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16963   shlibpath_var=LD_LIBRARY_PATH
16964   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16965   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16966   # the default ld.so.conf also contains /usr/contrib/lib and
16967   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16968   # libtool to hard-code these into programs
16969   ;;
16970
16971 cygwin* | mingw* | pw32* | cegcc*)
16972   version_type=windows
16973   shrext_cmds=".dll"
16974   need_version=no
16975   need_lib_prefix=no
16976
16977   case $GCC,$host_os in
16978   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16979     library_names_spec='$libname.dll.a'
16980     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16981     postinstall_cmds='base_file=`basename \${file}`~
16982       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16983       dldir=$destdir/`dirname \$dlpath`~
16984       test -d \$dldir || mkdir -p \$dldir~
16985       $install_prog $dir/$dlname \$dldir/$dlname~
16986       chmod a+x \$dldir/$dlname~
16987       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16988         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16989       fi'
16990     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16991       dlpath=$dir/\$dldll~
16992        $RM \$dlpath'
16993     shlibpath_overrides_runpath=yes
16994
16995     case $host_os in
16996     cygwin*)
16997       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16998       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16999       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17000       ;;
17001     mingw* | cegcc*)
17002       # MinGW DLLs use traditional 'lib' prefix
17003       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17004       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17005       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17006         # It is most probably a Windows format PATH printed by
17007         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17008         # path with ; separators, and with drive letters. We can handle the
17009         # drive letters (cygwin fileutils understands them), so leave them,
17010         # especially as we might pass files found there to a mingw objdump,
17011         # which wouldn't understand a cygwinified path. Ahh.
17012         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17013       else
17014         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17015       fi
17016       ;;
17017     pw32*)
17018       # pw32 DLLs use 'pw' prefix rather than 'lib'
17019       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17020       ;;
17021     esac
17022     ;;
17023
17024   *)
17025     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17026     ;;
17027   esac
17028   dynamic_linker='Win32 ld.exe'
17029   # FIXME: first we should search . and the directory the executable is in
17030   shlibpath_var=PATH
17031   ;;
17032
17033 darwin* | rhapsody*)
17034   dynamic_linker="$host_os dyld"
17035   version_type=darwin
17036   need_lib_prefix=no
17037   need_version=no
17038   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17039   soname_spec='${libname}${release}${major}$shared_ext'
17040   shlibpath_overrides_runpath=yes
17041   shlibpath_var=DYLD_LIBRARY_PATH
17042   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17043
17044   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17045   ;;
17046
17047 dgux*)
17048   version_type=linux
17049   need_lib_prefix=no
17050   need_version=no
17051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17052   soname_spec='${libname}${release}${shared_ext}$major'
17053   shlibpath_var=LD_LIBRARY_PATH
17054   ;;
17055
17056 freebsd1*)
17057   dynamic_linker=no
17058   ;;
17059
17060 freebsd* | dragonfly*)
17061   # DragonFly does not have aout.  When/if they implement a new
17062   # versioning mechanism, adjust this.
17063   if test -x /usr/bin/objformat; then
17064     objformat=`/usr/bin/objformat`
17065   else
17066     case $host_os in
17067     freebsd[123]*) objformat=aout ;;
17068     *) objformat=elf ;;
17069     esac
17070   fi
17071   version_type=freebsd-$objformat
17072   case $version_type in
17073     freebsd-elf*)
17074       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17075       need_version=no
17076       need_lib_prefix=no
17077       ;;
17078     freebsd-*)
17079       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17080       need_version=yes
17081       ;;
17082   esac
17083   shlibpath_var=LD_LIBRARY_PATH
17084   case $host_os in
17085   freebsd2*)
17086     shlibpath_overrides_runpath=yes
17087     ;;
17088   freebsd3.[01]* | freebsdelf3.[01]*)
17089     shlibpath_overrides_runpath=yes
17090     hardcode_into_libs=yes
17091     ;;
17092   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17093   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17094     shlibpath_overrides_runpath=no
17095     hardcode_into_libs=yes
17096     ;;
17097   *) # from 4.6 on, and DragonFly
17098     shlibpath_overrides_runpath=yes
17099     hardcode_into_libs=yes
17100     ;;
17101   esac
17102   ;;
17103
17104 gnu*)
17105   version_type=linux
17106   need_lib_prefix=no
17107   need_version=no
17108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17109   soname_spec='${libname}${release}${shared_ext}$major'
17110   shlibpath_var=LD_LIBRARY_PATH
17111   hardcode_into_libs=yes
17112   ;;
17113
17114 hpux9* | hpux10* | hpux11*)
17115   # Give a soname corresponding to the major version so that dld.sl refuses to
17116   # link against other versions.
17117   version_type=sunos
17118   need_lib_prefix=no
17119   need_version=no
17120   case $host_cpu in
17121   ia64*)
17122     shrext_cmds='.so'
17123     hardcode_into_libs=yes
17124     dynamic_linker="$host_os dld.so"
17125     shlibpath_var=LD_LIBRARY_PATH
17126     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17127     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128     soname_spec='${libname}${release}${shared_ext}$major'
17129     if test "X$HPUX_IA64_MODE" = X32; then
17130       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17131     else
17132       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17133     fi
17134     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17135     ;;
17136   hppa*64*)
17137     shrext_cmds='.sl'
17138     hardcode_into_libs=yes
17139     dynamic_linker="$host_os dld.sl"
17140     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17141     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17145     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17146     ;;
17147   *)
17148     shrext_cmds='.sl'
17149     dynamic_linker="$host_os dld.sl"
17150     shlibpath_var=SHLIB_PATH
17151     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17152     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153     soname_spec='${libname}${release}${shared_ext}$major'
17154     ;;
17155   esac
17156   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17157   postinstall_cmds='chmod 555 $lib'
17158   ;;
17159
17160 interix[3-9]*)
17161   version_type=linux
17162   need_lib_prefix=no
17163   need_version=no
17164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17165   soname_spec='${libname}${release}${shared_ext}$major'
17166   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17167   shlibpath_var=LD_LIBRARY_PATH
17168   shlibpath_overrides_runpath=no
17169   hardcode_into_libs=yes
17170   ;;
17171
17172 irix5* | irix6* | nonstopux*)
17173   case $host_os in
17174     nonstopux*) version_type=nonstopux ;;
17175     *)
17176         if test "$lt_cv_prog_gnu_ld" = yes; then
17177                 version_type=linux
17178         else
17179                 version_type=irix
17180         fi ;;
17181   esac
17182   need_lib_prefix=no
17183   need_version=no
17184   soname_spec='${libname}${release}${shared_ext}$major'
17185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17186   case $host_os in
17187   irix5* | nonstopux*)
17188     libsuff= shlibsuff=
17189     ;;
17190   *)
17191     case $LD in # libtool.m4 will add one of these switches to LD
17192     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17193       libsuff= shlibsuff= libmagic=32-bit;;
17194     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17195       libsuff=32 shlibsuff=N32 libmagic=N32;;
17196     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17197       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17198     *) libsuff= shlibsuff= libmagic=never-match;;
17199     esac
17200     ;;
17201   esac
17202   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17203   shlibpath_overrides_runpath=no
17204   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17205   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17206   hardcode_into_libs=yes
17207   ;;
17208
17209 # No shared lib support for Linux oldld, aout, or coff.
17210 linux*oldld* | linux*aout* | linux*coff*)
17211   dynamic_linker=no
17212   ;;
17213
17214 # This must be Linux ELF.
17215 linux* | k*bsd*-gnu)
17216   version_type=linux
17217   need_lib_prefix=no
17218   need_version=no
17219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17220   soname_spec='${libname}${release}${shared_ext}$major'
17221   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17222   shlibpath_var=LD_LIBRARY_PATH
17223   shlibpath_overrides_runpath=no
17224   # Some binutils ld are patched to set DT_RUNPATH
17225   save_LDFLAGS=$LDFLAGS
17226   save_libdir=$libdir
17227   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17228        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17230 /* end confdefs.h.  */
17231
17232 int
17233 main ()
17234 {
17235
17236   ;
17237   return 0;
17238 }
17239 _ACEOF
17240 if ac_fn_cxx_try_link "$LINENO"; then :
17241   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17242   shlibpath_overrides_runpath=yes
17243 fi
17244 fi
17245 rm -f core conftest.err conftest.$ac_objext \
17246     conftest$ac_exeext conftest.$ac_ext
17247   LDFLAGS=$save_LDFLAGS
17248   libdir=$save_libdir
17249
17250   # This implies no fast_install, which is unacceptable.
17251   # Some rework will be needed to allow for fast_install
17252   # before this can be enabled.
17253   hardcode_into_libs=yes
17254
17255   # Add ABI-specific directories to the system library path.
17256   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17257
17258   # Append ld.so.conf contents to the search path
17259   if test -f /etc/ld.so.conf; then
17260     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' ' '`
17261     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17262   fi
17263
17264   # We used to test for /lib/ld.so.1 and disable shared libraries on
17265   # powerpc, because MkLinux only supported shared libraries with the
17266   # GNU dynamic linker.  Since this was broken with cross compilers,
17267   # most powerpc-linux boxes support dynamic linking these days and
17268   # people can always --disable-shared, the test was removed, and we
17269   # assume the GNU/Linux dynamic linker is in use.
17270   dynamic_linker='GNU/Linux ld.so'
17271   ;;
17272
17273 netbsd*)
17274   version_type=sunos
17275   need_lib_prefix=no
17276   need_version=no
17277   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17278     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17279     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17280     dynamic_linker='NetBSD (a.out) ld.so'
17281   else
17282     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17283     soname_spec='${libname}${release}${shared_ext}$major'
17284     dynamic_linker='NetBSD ld.elf_so'
17285   fi
17286   shlibpath_var=LD_LIBRARY_PATH
17287   shlibpath_overrides_runpath=yes
17288   hardcode_into_libs=yes
17289   ;;
17290
17291 newsos6)
17292   version_type=linux
17293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17294   shlibpath_var=LD_LIBRARY_PATH
17295   shlibpath_overrides_runpath=yes
17296   ;;
17297
17298 *nto* | *qnx*)
17299   version_type=qnx
17300   need_lib_prefix=no
17301   need_version=no
17302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17303   soname_spec='${libname}${release}${shared_ext}$major'
17304   shlibpath_var=LD_LIBRARY_PATH
17305   shlibpath_overrides_runpath=no
17306   hardcode_into_libs=yes
17307   dynamic_linker='ldqnx.so'
17308   ;;
17309
17310 openbsd*)
17311   version_type=sunos
17312   sys_lib_dlsearch_path_spec="/usr/lib"
17313   need_lib_prefix=no
17314   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17315   case $host_os in
17316     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17317     *)                          need_version=no  ;;
17318   esac
17319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17320   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17321   shlibpath_var=LD_LIBRARY_PATH
17322   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17323     case $host_os in
17324       openbsd2.[89] | openbsd2.[89].*)
17325         shlibpath_overrides_runpath=no
17326         ;;
17327       *)
17328         shlibpath_overrides_runpath=yes
17329         ;;
17330       esac
17331   else
17332     shlibpath_overrides_runpath=yes
17333   fi
17334   ;;
17335
17336 os2*)
17337   libname_spec='$name'
17338   shrext_cmds=".dll"
17339   need_lib_prefix=no
17340   library_names_spec='$libname${shared_ext} $libname.a'
17341   dynamic_linker='OS/2 ld.exe'
17342   shlibpath_var=LIBPATH
17343   ;;
17344
17345 osf3* | osf4* | osf5*)
17346   version_type=osf
17347   need_lib_prefix=no
17348   need_version=no
17349   soname_spec='${libname}${release}${shared_ext}$major'
17350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17351   shlibpath_var=LD_LIBRARY_PATH
17352   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17353   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17354   ;;
17355
17356 rdos*)
17357   dynamic_linker=no
17358   ;;
17359
17360 solaris*)
17361   version_type=linux
17362   need_lib_prefix=no
17363   need_version=no
17364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17365   soname_spec='${libname}${release}${shared_ext}$major'
17366   shlibpath_var=LD_LIBRARY_PATH
17367   shlibpath_overrides_runpath=yes
17368   hardcode_into_libs=yes
17369   # ldd complains unless libraries are executable
17370   postinstall_cmds='chmod +x $lib'
17371   ;;
17372
17373 sunos4*)
17374   version_type=sunos
17375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17376   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17377   shlibpath_var=LD_LIBRARY_PATH
17378   shlibpath_overrides_runpath=yes
17379   if test "$with_gnu_ld" = yes; then
17380     need_lib_prefix=no
17381   fi
17382   need_version=yes
17383   ;;
17384
17385 sysv4 | sysv4.3*)
17386   version_type=linux
17387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17388   soname_spec='${libname}${release}${shared_ext}$major'
17389   shlibpath_var=LD_LIBRARY_PATH
17390   case $host_vendor in
17391     sni)
17392       shlibpath_overrides_runpath=no
17393       need_lib_prefix=no
17394       runpath_var=LD_RUN_PATH
17395       ;;
17396     siemens)
17397       need_lib_prefix=no
17398       ;;
17399     motorola)
17400       need_lib_prefix=no
17401       need_version=no
17402       shlibpath_overrides_runpath=no
17403       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17404       ;;
17405   esac
17406   ;;
17407
17408 sysv4*MP*)
17409   if test -d /usr/nec ;then
17410     version_type=linux
17411     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17412     soname_spec='$libname${shared_ext}.$major'
17413     shlibpath_var=LD_LIBRARY_PATH
17414   fi
17415   ;;
17416
17417 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17418   version_type=freebsd-elf
17419   need_lib_prefix=no
17420   need_version=no
17421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17422   soname_spec='${libname}${release}${shared_ext}$major'
17423   shlibpath_var=LD_LIBRARY_PATH
17424   shlibpath_overrides_runpath=yes
17425   hardcode_into_libs=yes
17426   if test "$with_gnu_ld" = yes; then
17427     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17428   else
17429     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17430     case $host_os in
17431       sco3.2v5*)
17432         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17433         ;;
17434     esac
17435   fi
17436   sys_lib_dlsearch_path_spec='/usr/lib'
17437   ;;
17438
17439 tpf*)
17440   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17441   version_type=linux
17442   need_lib_prefix=no
17443   need_version=no
17444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17445   shlibpath_var=LD_LIBRARY_PATH
17446   shlibpath_overrides_runpath=no
17447   hardcode_into_libs=yes
17448   ;;
17449
17450 uts4*)
17451   version_type=linux
17452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17453   soname_spec='${libname}${release}${shared_ext}$major'
17454   shlibpath_var=LD_LIBRARY_PATH
17455   ;;
17456
17457 *)
17458   dynamic_linker=no
17459   ;;
17460 esac
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17462 $as_echo "$dynamic_linker" >&6; }
17463 test "$dynamic_linker" = no && can_build_shared=no
17464
17465 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17466 if test "$GCC" = yes; then
17467   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17468 fi
17469
17470 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17471   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17472 fi
17473 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17474   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17475 fi
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
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17513 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17514 hardcode_action_CXX=
17515 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17516    test -n "$runpath_var_CXX" ||
17517    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17518
17519   # We can hardcode non-existent directories.
17520   if test "$hardcode_direct_CXX" != no &&
17521      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17522      # have to relink, otherwise we might link with an installed library
17523      # when we should be linking with a yet-to-be-installed one
17524      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17525      test "$hardcode_minus_L_CXX" != no; then
17526     # Linking always hardcodes the temporary library directory.
17527     hardcode_action_CXX=relink
17528   else
17529     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17530     hardcode_action_CXX=immediate
17531   fi
17532 else
17533   # We cannot hardcode anything, or else we can only hardcode existing
17534   # directories.
17535   hardcode_action_CXX=unsupported
17536 fi
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17538 $as_echo "$hardcode_action_CXX" >&6; }
17539
17540 if test "$hardcode_action_CXX" = relink ||
17541    test "$inherit_rpath_CXX" = yes; then
17542   # Fast installation is not supported
17543   enable_fast_install=no
17544 elif test "$shlibpath_overrides_runpath" = yes ||
17545      test "$enable_shared" = no; then
17546   # Fast installation is not necessary
17547   enable_fast_install=needless
17548 fi
17549
17550
17551
17552
17553
17554
17555
17556   fi # test -n "$compiler"
17557
17558   CC=$lt_save_CC
17559   LDCXX=$LD
17560   LD=$lt_save_LD
17561   GCC=$lt_save_GCC
17562   with_gnu_ld=$lt_save_with_gnu_ld
17563   lt_cv_path_LDCXX=$lt_cv_path_LD
17564   lt_cv_path_LD=$lt_save_path_LD
17565   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17566   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17567 fi # test "$_lt_caught_CXX_error" != yes
17568
17569 ac_ext=c
17570 ac_cpp='$CPP $CPPFLAGS'
17571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587         ac_config_commands="$ac_config_commands libtool"
17588
17589
17590
17591
17592 # Only expand once:
17593
17594
17595
17596
17597
17598 # Configure libltdl
17599
17600
17601
17602
17603
17604
17605
17606
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
17608 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
17609 if test "${libltdl_cv_shlibext+set}" = set; then :
17610   $as_echo_n "(cached) " >&6
17611 else
17612
17613 module=yes
17614 eval libltdl_cv_shlibext=$shrext_cmds
17615
17616 fi
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
17618 $as_echo "$libltdl_cv_shlibext" >&6; }
17619 if test -n "$libltdl_cv_shlibext"; then
17620
17621 cat >>confdefs.h <<_ACEOF
17622 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
17623 _ACEOF
17624
17625 fi
17626
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
17628 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
17629 if test "${lt_cv_module_path_var+set}" = set; then :
17630   $as_echo_n "(cached) " >&6
17631 else
17632   lt_cv_module_path_var="$shlibpath_var"
17633 fi
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
17635 $as_echo "$lt_cv_module_path_var" >&6; }
17636 if test -n "$lt_cv_module_path_var"; then
17637
17638 cat >>confdefs.h <<_ACEOF
17639 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
17640 _ACEOF
17641
17642 fi
17643
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
17645 $as_echo_n "checking for the default library search path... " >&6; }
17646 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
17647   $as_echo_n "(cached) " >&6
17648 else
17649   lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
17650 fi
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
17652 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
17653 if test -n "$lt_cv_sys_dlsearch_path"; then
17654   sys_dlsearch_path=
17655   for dir in $lt_cv_sys_dlsearch_path; do
17656     if test -z "$sys_dlsearch_path"; then
17657       sys_dlsearch_path="$dir"
17658     else
17659       sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
17660     fi
17661   done
17662
17663 cat >>confdefs.h <<_ACEOF
17664 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
17665 _ACEOF
17666
17667 fi
17668
17669
17670 LT_DLLOADERS=
17671
17672
17673 ac_ext=c
17674 ac_cpp='$CPP $CPPFLAGS'
17675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17678
17679
17680 LIBADD_DLOPEN=
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17682 $as_echo_n "checking for library containing dlopen... " >&6; }
17683 if test "${ac_cv_search_dlopen+set}" = set; then :
17684   $as_echo_n "(cached) " >&6
17685 else
17686   ac_func_search_save_LIBS=$LIBS
17687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17688 /* end confdefs.h.  */
17689
17690 /* Override any GCC internal prototype to avoid an error.
17691    Use char because int might match the return type of a GCC
17692    builtin and then its argument prototype would still apply.  */
17693 #ifdef __cplusplus
17694 extern "C"
17695 #endif
17696 char dlopen ();
17697 int
17698 main ()
17699 {
17700 return dlopen ();
17701   ;
17702   return 0;
17703 }
17704 _ACEOF
17705 for ac_lib in '' dl; do
17706   if test -z "$ac_lib"; then
17707     ac_res="none required"
17708   else
17709     ac_res=-l$ac_lib
17710     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17711   fi
17712   if ac_fn_c_try_link "$LINENO"; then :
17713   ac_cv_search_dlopen=$ac_res
17714 fi
17715 rm -f core conftest.err conftest.$ac_objext \
17716     conftest$ac_exeext
17717   if test "${ac_cv_search_dlopen+set}" = set; then :
17718   break
17719 fi
17720 done
17721 if test "${ac_cv_search_dlopen+set}" = set; then :
17722
17723 else
17724   ac_cv_search_dlopen=no
17725 fi
17726 rm conftest.$ac_ext
17727 LIBS=$ac_func_search_save_LIBS
17728 fi
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17730 $as_echo "$ac_cv_search_dlopen" >&6; }
17731 ac_res=$ac_cv_search_dlopen
17732 if test "$ac_res" != no; then :
17733   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17734
17735 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
17736
17737         if test "$ac_cv_search_dlopen" != "none required" ; then
17738           LIBADD_DLOPEN="-ldl"
17739         fi
17740         libltdl_cv_lib_dl_dlopen="yes"
17741         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17742 else
17743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17744 /* end confdefs.h.  */
17745 #if HAVE_DLFCN_H
17746 #  include <dlfcn.h>
17747 #endif
17748
17749 int
17750 main ()
17751 {
17752 dlopen(0, 0);
17753   ;
17754   return 0;
17755 }
17756 _ACEOF
17757 if ac_fn_c_try_link "$LINENO"; then :
17758
17759 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
17760
17761             libltdl_cv_func_dlopen="yes"
17762             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17763 else
17764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17765 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17766 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17767   $as_echo_n "(cached) " >&6
17768 else
17769   ac_check_lib_save_LIBS=$LIBS
17770 LIBS="-lsvld  $LIBS"
17771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17772 /* end confdefs.h.  */
17773
17774 /* Override any GCC internal prototype to avoid an error.
17775    Use char because int might match the return type of a GCC
17776    builtin and then its argument prototype would still apply.  */
17777 #ifdef __cplusplus
17778 extern "C"
17779 #endif
17780 char dlopen ();
17781 int
17782 main ()
17783 {
17784 return dlopen ();
17785   ;
17786   return 0;
17787 }
17788 _ACEOF
17789 if ac_fn_c_try_link "$LINENO"; then :
17790   ac_cv_lib_svld_dlopen=yes
17791 else
17792   ac_cv_lib_svld_dlopen=no
17793 fi
17794 rm -f core conftest.err conftest.$ac_objext \
17795     conftest$ac_exeext conftest.$ac_ext
17796 LIBS=$ac_check_lib_save_LIBS
17797 fi
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17799 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17800 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17801
17802 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
17803
17804                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
17805                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17806 fi
17807
17808 fi
17809 rm -f core conftest.err conftest.$ac_objext \
17810     conftest$ac_exeext conftest.$ac_ext
17811 fi
17812
17813 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
17814 then
17815   lt_save_LIBS="$LIBS"
17816   LIBS="$LIBS $LIBADD_DLOPEN"
17817   for ac_func in dlerror
17818 do :
17819   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
17820 if test "x$ac_cv_func_dlerror" = x""yes; then :
17821   cat >>confdefs.h <<_ACEOF
17822 #define HAVE_DLERROR 1
17823 _ACEOF
17824
17825 fi
17826 done
17827
17828   LIBS="$lt_save_LIBS"
17829 fi
17830
17831
17832 LIBADD_SHL_LOAD=
17833 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17834 if test "x$ac_cv_func_shl_load" = x""yes; then :
17835
17836 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
17837
17838         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17839 else
17840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17841 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17842 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17843   $as_echo_n "(cached) " >&6
17844 else
17845   ac_check_lib_save_LIBS=$LIBS
17846 LIBS="-ldld  $LIBS"
17847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17848 /* end confdefs.h.  */
17849
17850 /* Override any GCC internal prototype to avoid an error.
17851    Use char because int might match the return type of a GCC
17852    builtin and then its argument prototype would still apply.  */
17853 #ifdef __cplusplus
17854 extern "C"
17855 #endif
17856 char shl_load ();
17857 int
17858 main ()
17859 {
17860 return shl_load ();
17861   ;
17862   return 0;
17863 }
17864 _ACEOF
17865 if ac_fn_c_try_link "$LINENO"; then :
17866   ac_cv_lib_dld_shl_load=yes
17867 else
17868   ac_cv_lib_dld_shl_load=no
17869 fi
17870 rm -f core conftest.err conftest.$ac_objext \
17871     conftest$ac_exeext conftest.$ac_ext
17872 LIBS=$ac_check_lib_save_LIBS
17873 fi
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17875 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17876 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17877
17878 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
17879
17880             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17881             LIBADD_SHL_LOAD="-ldld"
17882 fi
17883
17884 fi
17885
17886
17887
17888 case $host_os in
17889 darwin[1567].*)
17890 # We only want this for pre-Mac OS X 10.4.
17891   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
17892 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
17893
17894 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
17895
17896         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
17897 fi
17898
17899   ;;
17900 beos*)
17901   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
17902   ;;
17903 cygwin* | mingw* | os2* | pw32*)
17904   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
17905 "
17906 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
17907   ac_have_decl=1
17908 else
17909   ac_have_decl=0
17910 fi
17911
17912 cat >>confdefs.h <<_ACEOF
17913 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
17914 _ACEOF
17915
17916   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
17917   ;;
17918 esac
17919
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17921 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17922 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17923   $as_echo_n "(cached) " >&6
17924 else
17925   ac_check_lib_save_LIBS=$LIBS
17926 LIBS="-ldld  $LIBS"
17927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928 /* end confdefs.h.  */
17929
17930 /* Override any GCC internal prototype to avoid an error.
17931    Use char because int might match the return type of a GCC
17932    builtin and then its argument prototype would still apply.  */
17933 #ifdef __cplusplus
17934 extern "C"
17935 #endif
17936 char dld_link ();
17937 int
17938 main ()
17939 {
17940 return dld_link ();
17941   ;
17942   return 0;
17943 }
17944 _ACEOF
17945 if ac_fn_c_try_link "$LINENO"; then :
17946   ac_cv_lib_dld_dld_link=yes
17947 else
17948   ac_cv_lib_dld_dld_link=no
17949 fi
17950 rm -f core conftest.err conftest.$ac_objext \
17951     conftest$ac_exeext conftest.$ac_ext
17952 LIBS=$ac_check_lib_save_LIBS
17953 fi
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17955 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17956 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17957
17958 $as_echo "#define HAVE_DLD 1" >>confdefs.h
17959
17960                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
17961 fi
17962
17963
17964
17965
17966 LT_DLPREOPEN=
17967 if test -n "$LT_DLLOADERS"
17968 then
17969   for lt_loader in $LT_DLLOADERS; do
17970     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
17971   done
17972
17973 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
17974
17975 fi
17976
17977
17978 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
17979
17980
17981 ac_ext=c
17982 ac_cpp='$CPP $CPPFLAGS'
17983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17986
17987
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
17989 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
17990 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
17991   $as_echo_n "(cached) " >&6
17992 else
17993   lt_cv_sys_symbol_underscore=no
17994   cat > conftest.$ac_ext <<_LT_EOF
17995 void nm_test_func(){}
17996 int main(){nm_test_func;return 0;}
17997 _LT_EOF
17998   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17999   (eval $ac_compile) 2>&5
18000   ac_status=$?
18001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18002   test $ac_status = 0; }; then
18003     # Now try to grab the symbols.
18004     ac_nlist=conftest.nm
18005     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
18006   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
18007   ac_status=$?
18008   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18009   test $ac_status = 0; } && test -s "$ac_nlist"; then
18010       # See whether the symbols have a leading underscore.
18011       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
18012         lt_cv_sys_symbol_underscore=yes
18013       else
18014         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18015           :
18016         else
18017           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18018         fi
18019       fi
18020     else
18021       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18022     fi
18023   else
18024     echo "configure: failed program was:" >&5
18025     cat conftest.c >&5
18026   fi
18027   rm -rf conftest*
18028
18029 fi
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
18031 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
18032   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
18033
18034
18035 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
18036   if test x"$libltdl_cv_func_dlopen" = xyes ||
18037      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
18038         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
18039 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
18040 if test "${libltdl_cv_need_uscore+set}" = set; then :
18041   $as_echo_n "(cached) " >&6
18042 else
18043   libltdl_cv_need_uscore=unknown
18044           save_LIBS="$LIBS"
18045           LIBS="$LIBS $LIBADD_DLOPEN"
18046           if test "$cross_compiling" = yes; then :
18047   libltdl_cv_need_uscore=cross
18048 else
18049   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18050   lt_status=$lt_dlunknown
18051   cat > conftest.$ac_ext <<_LT_EOF
18052 #line 18052 "configure"
18053 #include "confdefs.h"
18054
18055 #if HAVE_DLFCN_H
18056 #include <dlfcn.h>
18057 #endif
18058
18059 #include <stdio.h>
18060
18061 #ifdef RTLD_GLOBAL
18062 #  define LT_DLGLOBAL           RTLD_GLOBAL
18063 #else
18064 #  ifdef DL_GLOBAL
18065 #    define LT_DLGLOBAL         DL_GLOBAL
18066 #  else
18067 #    define LT_DLGLOBAL         0
18068 #  endif
18069 #endif
18070
18071 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18072    find out it does not work in some platform. */
18073 #ifndef LT_DLLAZY_OR_NOW
18074 #  ifdef RTLD_LAZY
18075 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18076 #  else
18077 #    ifdef DL_LAZY
18078 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18079 #    else
18080 #      ifdef RTLD_NOW
18081 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18082 #      else
18083 #        ifdef DL_NOW
18084 #          define LT_DLLAZY_OR_NOW      DL_NOW
18085 #        else
18086 #          define LT_DLLAZY_OR_NOW      0
18087 #        endif
18088 #      endif
18089 #    endif
18090 #  endif
18091 #endif
18092
18093 void fnord() { int i=42;}
18094 int main ()
18095 {
18096   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18097   int status = $lt_dlunknown;
18098
18099   if (self)
18100     {
18101       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18102       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18103       /* dlclose (self); */
18104     }
18105   else
18106     puts (dlerror ());
18107
18108   return status;
18109 }
18110 _LT_EOF
18111   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18112   (eval $ac_link) 2>&5
18113   ac_status=$?
18114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18115   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18116     (./conftest; exit; ) >&5 2>/dev/null
18117     lt_status=$?
18118     case x$lt_status in
18119       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
18120       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
18121       x$lt_dlunknown|x*)  ;;
18122     esac
18123   else :
18124     # compilation failed
18125
18126   fi
18127 fi
18128 rm -fr conftest*
18129
18130           LIBS="$save_LIBS"
18131
18132 fi
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
18134 $as_echo "$libltdl_cv_need_uscore" >&6; }
18135   fi
18136 fi
18137
18138 if test x"$libltdl_cv_need_uscore" = xyes; then
18139
18140 $as_echo "#define NEED_USCORE 1" >>confdefs.h
18141
18142 fi
18143
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
18145 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
18146 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
18147   $as_echo_n "(cached) " >&6
18148 else
18149   # PORTME does your system automatically load deplibs for dlopen?
18150   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
18151   # For now, we just catch OSes we know something about -- in the
18152   # future, we'll try test this programmatically.
18153   lt_cv_sys_dlopen_deplibs=unknown
18154   case $host_os in
18155   aix3*|aix4.1.*|aix4.2.*)
18156     # Unknown whether this is true for these versions of AIX, but
18157     # we want this `case' here to explicitly catch those versions.
18158     lt_cv_sys_dlopen_deplibs=unknown
18159     ;;
18160   aix[4-9]*)
18161     lt_cv_sys_dlopen_deplibs=yes
18162     ;;
18163   amigaos*)
18164     case $host_cpu in
18165     powerpc)
18166       lt_cv_sys_dlopen_deplibs=no
18167       ;;
18168     esac
18169     ;;
18170   darwin*)
18171     # Assuming the user has installed a libdl from somewhere, this is true
18172     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
18173     lt_cv_sys_dlopen_deplibs=yes
18174     ;;
18175   freebsd* | dragonfly*)
18176     lt_cv_sys_dlopen_deplibs=yes
18177     ;;
18178   gnu* | linux* | k*bsd*-gnu)
18179     # GNU and its variants, using gnu ld.so (Glibc)
18180     lt_cv_sys_dlopen_deplibs=yes
18181     ;;
18182   hpux10*|hpux11*)
18183     lt_cv_sys_dlopen_deplibs=yes
18184     ;;
18185   interix*)
18186     lt_cv_sys_dlopen_deplibs=yes
18187     ;;
18188   irix[12345]*|irix6.[01]*)
18189     # Catch all versions of IRIX before 6.2, and indicate that we don't
18190     # know how it worked for any of those versions.
18191     lt_cv_sys_dlopen_deplibs=unknown
18192     ;;
18193   irix*)
18194     # The case above catches anything before 6.2, and it's known that
18195     # at 6.2 and later dlopen does load deplibs.
18196     lt_cv_sys_dlopen_deplibs=yes
18197     ;;
18198   netbsd*)
18199     lt_cv_sys_dlopen_deplibs=yes
18200     ;;
18201   openbsd*)
18202     lt_cv_sys_dlopen_deplibs=yes
18203     ;;
18204   osf[1234]*)
18205     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
18206     # it did *not* use an RPATH in a shared library to find objects the
18207     # library depends on, so we explicitly say `no'.
18208     lt_cv_sys_dlopen_deplibs=no
18209     ;;
18210   osf5.0|osf5.0a|osf5.1)
18211     # dlopen *does* load deplibs and with the right loader patch applied
18212     # it even uses RPATH in a shared library to search for shared objects
18213     # that the library depends on, but there's no easy way to know if that
18214     # patch is installed.  Since this is the case, all we can really
18215     # say is unknown -- it depends on the patch being installed.  If
18216     # it is, this changes to `yes'.  Without it, it would be `no'.
18217     lt_cv_sys_dlopen_deplibs=unknown
18218     ;;
18219   osf*)
18220     # the two cases above should catch all versions of osf <= 5.1.  Read
18221     # the comments above for what we know about them.
18222     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
18223     # is used to find them so we can finally say `yes'.
18224     lt_cv_sys_dlopen_deplibs=yes
18225     ;;
18226   qnx*)
18227     lt_cv_sys_dlopen_deplibs=yes
18228     ;;
18229   solaris*)
18230     lt_cv_sys_dlopen_deplibs=yes
18231     ;;
18232   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18233     libltdl_cv_sys_dlopen_deplibs=yes
18234     ;;
18235   esac
18236
18237 fi
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
18239 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
18240 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
18241
18242 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
18243
18244 fi
18245
18246 :
18247
18248 for ac_header in argz.h
18249 do :
18250   ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
18251 "
18252 if test "x$ac_cv_header_argz_h" = x""yes; then :
18253   cat >>confdefs.h <<_ACEOF
18254 #define HAVE_ARGZ_H 1
18255 _ACEOF
18256
18257 fi
18258
18259 done
18260
18261
18262 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
18263 #  include <argz.h>
18264 #endif
18265 "
18266 if test "x$ac_cv_type_error_t" = x""yes; then :
18267
18268 cat >>confdefs.h <<_ACEOF
18269 #define HAVE_ERROR_T 1
18270 _ACEOF
18271
18272
18273 else
18274
18275 $as_echo "#define error_t int" >>confdefs.h
18276
18277
18278 $as_echo "#define __error_t_defined 1" >>confdefs.h
18279
18280 fi
18281
18282
18283 ARGZ_H=
18284 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
18285         argz_next argz_stringify
18286 do :
18287   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18288 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18289 eval as_val=\$$as_ac_var
18290    if test "x$as_val" = x""yes; then :
18291   cat >>confdefs.h <<_ACEOF
18292 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18293 _ACEOF
18294
18295 else
18296   ARGZ_H=argz.h;
18297
18298   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18299
18300 fi
18301 done
18302
18303
18304 if test -z "$ARGZ_H"; then :
18305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
18306 $as_echo_n "checking if argz actually works... " >&6; }
18307 if test "${lt_cv_sys_argz_works+set}" = set; then :
18308   $as_echo_n "(cached) " >&6
18309 else
18310   case $host_os in #(
18311          *cygwin*)
18312            lt_cv_sys_argz_works=no
18313            if test "$cross_compiling" != no; then
18314              lt_cv_sys_argz_works="guessing no"
18315            else
18316              lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
18317              save_IFS=$IFS
18318              IFS=-.
18319              set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
18320              IFS=$save_IFS
18321              lt_os_major=${2-0}
18322              lt_os_minor=${3-0}
18323              lt_os_micro=${4-0}
18324              if test "$lt_os_major" -gt 1 \
18325                 || { test "$lt_os_major" -eq 1 \
18326                   && { test "$lt_os_minor" -gt 5 \
18327                     || { test "$lt_os_minor" -eq 5 \
18328                       && test "$lt_os_micro" -gt 24; }; }; }; then
18329                lt_cv_sys_argz_works=yes
18330              fi
18331            fi
18332            ;; #(
18333          *) lt_cv_sys_argz_works=yes ;;
18334          esac
18335 fi
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
18337 $as_echo "$lt_cv_sys_argz_works" >&6; }
18338      if test $lt_cv_sys_argz_works = yes; then :
18339
18340 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
18341
18342 else
18343   ARGZ_H=argz.h
18344
18345
18346   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18347
18348 fi
18349 fi
18350
18351
18352
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
18354 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
18355 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
18356   $as_echo_n "(cached) " >&6
18357 else
18358   if test -n "$lt_cv_sys_global_symbol_pipe"; then
18359     libltdl_cv_preloaded_symbols=yes
18360   else
18361     libltdl_cv_preloaded_symbols=no
18362   fi
18363
18364 fi
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
18366 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
18367 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
18368
18369 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
18370
18371 fi
18372
18373 # Set options
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385 # Check whether --with-included_ltdl was given.
18386 if test "${with_included_ltdl+set}" = set; then :
18387   withval=$with_included_ltdl;
18388 fi
18389
18390
18391 if test "x$with_included_ltdl" != xyes; then
18392   # We are not being forced to use the included libltdl sources, so
18393   # decide whether there is a useful installed version we can use.
18394   ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
18395
18396 "
18397 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
18398   ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
18399             #include <ltdl.h>
18400 "
18401 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
18402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
18403 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
18404 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
18405   $as_echo_n "(cached) " >&6
18406 else
18407   ac_check_lib_save_LIBS=$LIBS
18408 LIBS="-lltdl  $LIBS"
18409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18410 /* end confdefs.h.  */
18411
18412 /* Override any GCC internal prototype to avoid an error.
18413    Use char because int might match the return type of a GCC
18414    builtin and then its argument prototype would still apply.  */
18415 #ifdef __cplusplus
18416 extern "C"
18417 #endif
18418 char lt_dladvise_preload ();
18419 int
18420 main ()
18421 {
18422 return lt_dladvise_preload ();
18423   ;
18424   return 0;
18425 }
18426 _ACEOF
18427 if ac_fn_c_try_link "$LINENO"; then :
18428   ac_cv_lib_ltdl_lt_dladvise_preload=yes
18429 else
18430   ac_cv_lib_ltdl_lt_dladvise_preload=no
18431 fi
18432 rm -f core conftest.err conftest.$ac_objext \
18433     conftest$ac_exeext conftest.$ac_ext
18434 LIBS=$ac_check_lib_save_LIBS
18435 fi
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
18437 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
18438 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
18439   with_included_ltdl=no
18440 else
18441   with_included_ltdl=yes
18442 fi
18443
18444 else
18445   with_included_ltdl=yes
18446 fi
18447
18448 else
18449   with_included_ltdl=yes
18450 fi
18451
18452
18453 fi
18454
18455
18456
18457
18458 # Check whether --with-ltdl_include was given.
18459 if test "${with_ltdl_include+set}" = set; then :
18460   withval=$with_ltdl_include;
18461 fi
18462
18463
18464 if test -n "$with_ltdl_include"; then
18465   if test -f "$with_ltdl_include/ltdl.h"; then :
18466   else
18467     as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
18468   fi
18469 else
18470   with_ltdl_include=no
18471 fi
18472
18473
18474 # Check whether --with-ltdl_lib was given.
18475 if test "${with_ltdl_lib+set}" = set; then :
18476   withval=$with_ltdl_lib;
18477 fi
18478
18479
18480 if test -n "$with_ltdl_lib"; then
18481   if test -f "$with_ltdl_lib/libltdl.la"; then :
18482   else
18483     as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
18484   fi
18485 else
18486   with_ltdl_lib=no
18487 fi
18488
18489 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
18490   ,yes,no,no,)
18491         case $enable_ltdl_convenience in
18492   no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
18493   "") enable_ltdl_convenience=yes
18494       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
18495 esac
18496 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
18497 LTDLDEPS=$LIBLTDL
18498 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
18499
18500
18501
18502
18503
18504 # For backwards non-gettext consistent compatibility...
18505 INCLTDL="$LTDLINCL"
18506
18507
18508         ;;
18509   ,no,no,no,)
18510         # If the included ltdl is not to be used, then use the
18511         # preinstalled libltdl we found.
18512
18513 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
18514
18515         LIBLTDL=-lltdl
18516         LTDLDEPS=
18517         LTDLINCL=
18518         ;;
18519   ,no*,no,*)
18520         as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
18521         ;;
18522   *)    with_included_ltdl=no
18523         LIBLTDL="-L$with_ltdl_lib -lltdl"
18524         LTDLDEPS=
18525         LTDLINCL="-I$with_ltdl_include"
18526         ;;
18527 esac
18528 INCLTDL="$LTDLINCL"
18529
18530 # Report our decision...
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
18532 $as_echo_n "checking where to find libltdl headers... " >&6; }
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
18534 $as_echo "$LTDLINCL" >&6; }
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
18536 $as_echo_n "checking where to find libltdl library... " >&6; }
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
18538 $as_echo "$LIBLTDL" >&6; }
18539
18540
18541
18542 # Check whether --enable-ltdl-install was given.
18543 if test "${enable_ltdl_install+set}" = set; then :
18544   enableval=$enable_ltdl_install;
18545 fi
18546
18547
18548 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
18549   *yes*) ;;
18550   *) enable_ltdl_convenience=yes ;;
18551 esac
18552
18553  if test x"${enable_ltdl_install-no}" != xno; then
18554   INSTALL_LTDL_TRUE=
18555   INSTALL_LTDL_FALSE='#'
18556 else
18557   INSTALL_LTDL_TRUE='#'
18558   INSTALL_LTDL_FALSE=
18559 fi
18560
18561   if test x"${enable_ltdl_convenience-no}" != xno; then
18562   CONVENIENCE_LTDL_TRUE=
18563   CONVENIENCE_LTDL_FALSE='#'
18564 else
18565   CONVENIENCE_LTDL_TRUE='#'
18566   CONVENIENCE_LTDL_FALSE=
18567 fi
18568
18569
18570
18571
18572
18573
18574
18575 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
18576 # the user used.  This is so that ltdl.h can pick up the parent projects
18577 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
18578 # definitions required by ltdl.c.
18579 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
18580
18581
18582
18583 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
18584 do :
18585   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18586 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18587 "
18588 eval as_val=\$$as_ac_Header
18589    if test "x$as_val" = x""yes; then :
18590   cat >>confdefs.h <<_ACEOF
18591 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18592 _ACEOF
18593
18594 fi
18595
18596 done
18597
18598
18599 for ac_func in closedir opendir readdir
18600 do :
18601   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18602 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18603 eval as_val=\$$as_ac_var
18604    if test "x$as_val" = x""yes; then :
18605   cat >>confdefs.h <<_ACEOF
18606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18607 _ACEOF
18608
18609 else
18610
18611
18612   _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
18613
18614 fi
18615 done
18616
18617 for ac_func in strlcat strlcpy
18618 do :
18619   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18620 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18621 eval as_val=\$$as_ac_var
18622    if test "x$as_val" = x""yes; then :
18623   cat >>confdefs.h <<_ACEOF
18624 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18625 _ACEOF
18626
18627 else
18628
18629
18630   _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
18631
18632 fi
18633 done
18634
18635
18636
18637 cat >>confdefs.h <<_ACEOF
18638 #define LT_LIBEXT "$libext"
18639 _ACEOF
18640
18641
18642 name=ltdl
18643 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
18644
18645
18646
18647
18648
18649
18650
18651
18652 # Only expand once:
18653
18654
18655
18656 # Check to see if building shared libraries
18657 libtool_build_shared_libs='no'
18658 if test "$enable_shared" = 'yes'; then
18659     libtool_build_shared_libs='yes'
18660 fi
18661
18662 # Check to see if building static libraries
18663 libtool_build_static_libs='no'
18664 if test "$enable_static" = 'yes'; then
18665     libtool_build_static_libs='yes'
18666 fi
18667
18668 # MinGW and Cygwin can't build C++ DLLs which support exceptions.
18669 if test "${StaticCplusPlusLibraries}" = 'yes'; then
18670     LTCXXLIBOPTS='--static'
18671
18672 fi
18673
18674 #
18675 # Enable support for building loadable modules
18676 #
18677
18678 # Check whether --with-modules was given.
18679 if test "${with_modules+set}" = set; then :
18680   withval=$with_modules; with_modules=$withval
18681 else
18682   with_modules=$libtool_build_shared_libs
18683 fi
18684
18685
18686 # Only allow building loadable modules if we are building shared libraries
18687 if test "$with_modules" != 'no' ; then
18688     if test "$libtool_build_shared_libs" = 'no'; then
18689         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
18690 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
18691         with_modules='no'
18692     fi
18693 fi
18694 if test "$with_modules" != 'no'; then
18695
18696 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
18697
18698 fi
18699  if test "$with_modules" != 'no'; then
18700   WITH_MODULES_TRUE=
18701   WITH_MODULES_FALSE='#'
18702 else
18703   WITH_MODULES_TRUE='#'
18704   WITH_MODULES_FALSE=
18705 fi
18706
18707
18708 # Enable building/use of libltdl if we are building shared libraries regardless
18709 # of whether modules are built or not.
18710 with_ltdl='no'
18711 if test "$libtool_build_shared_libs" != 'no'; then
18712     with_ltdl='yes'
18713 fi
18714
18715  if test "$with_ltdl" != 'no'; then
18716   WITH_LTDL_TRUE=
18717   WITH_LTDL_FALSE='#'
18718 else
18719   WITH_LTDL_TRUE='#'
18720   WITH_LTDL_FALSE=
18721 fi
18722
18723 if test "$with_ltdl" != 'no'; then
18724
18725 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
18726
18727
18728     # Set DLLDFLAGS
18729     if test X"$enable_shared" = Xyes; then
18730         DLLDFLAGS=-export-dynamic
18731
18732     fi
18733 fi
18734
18735 # Enable build using delegate libraries built in subdirectories rather than installed
18736 # delegate libraries (bzlib fftw fpx jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
18737 # Check whether --enable-delegate-build was given.
18738 if test "${enable_delegate_build+set}" = set; then :
18739   enableval=$enable_delegate_build; enable_delegate_build=$enableval
18740 else
18741   enable_delegate_build='no'
18742 fi
18743
18744
18745 # Check whether --enable-deprecated was given.
18746 if test "${enable_deprecated+set}" = set; then :
18747   enableval=$enable_deprecated; enable_deprecated=$enableval
18748 else
18749   enable_deprecated='no'
18750 fi
18751
18752
18753 if test "$enable_deprecated" = 'yes'; then
18754
18755 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
18756
18757 else
18758   DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
18759 fi
18760
18761 # Build a version of ImageMagick which operates uninstalled.
18762 # Used to build distributions located via MAGICK_HOME / executable path
18763 # Check whether --enable-installed was given.
18764 if test "${enable_installed+set}" = set; then :
18765   enableval=$enable_installed; enable_installed=$enableval
18766 else
18767   enable_installed='yes'
18768 fi
18769
18770
18771 if test "$enable_installed" = 'yes'; then
18772
18773 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
18774
18775 else
18776     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
18777 fi
18778
18779 # Permit enciphering and deciphering image pixels.
18780 # Check whether --enable-cipher was given.
18781 if test "${enable_cipher+set}" = set; then :
18782   enableval=$enable_cipher; enable_cipher=$enableval
18783 else
18784   enable_cipher='yes'
18785 fi
18786
18787
18788 if test "$enable_cipher" = 'yes'; then
18789
18790 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
18791
18792 fi
18793
18794 # Build an embeddable version of ImageMagick.
18795 # Check whether --enable-embeddable was given.
18796 if test "${enable_embeddable+set}" = set; then :
18797   enableval=$enable_embeddable; enable_embeddable=$enableval
18798 else
18799   enable_embeddable='no'
18800 fi
18801
18802
18803 if test "$enable_embeddable" = 'yes'; then
18804
18805 $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
18806
18807 fi
18808
18809 # Build a high dynamic range version of ImageMagick.
18810 # Check whether --enable-hdri was given.
18811 if test "${enable_hdri+set}" = set; then :
18812   enableval=$enable_hdri; enable_hdri=$enableval
18813 else
18814   enable_hdri='no'
18815 fi
18816
18817
18818 MAGICK_HDRI=""
18819 if test "$enable_hdri" = 'yes'; then
18820     MAGICK_HDRI="HDRI"
18821
18822 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
18823
18824 fi
18825
18826 # Build a version of ImageMagick with assert statements.
18827 # Check whether --enable-assert was given.
18828 if test "${enable_assert+set}" = set; then :
18829   enableval=$enable_assert; enable_assert=$enableval
18830 else
18831   enable_assert='yes'
18832 fi
18833
18834
18835 if test "$enable_assert" = 'no'; then
18836
18837 $as_echo "#define NDEBUG 1" >>confdefs.h
18838
18839 fi
18840
18841 # Add configure option --enable-maintainer-mode which enables dependency
18842 # checking and generation useful to package maintainers.  This is made an
18843 # option to avoid confusing end users.
18844
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18846 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18847     # Check whether --enable-maintainer-mode was given.
18848 if test "${enable_maintainer_mode+set}" = set; then :
18849   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18850 else
18851   USE_MAINTAINER_MODE=no
18852 fi
18853
18854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18855 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18856    if test $USE_MAINTAINER_MODE = yes; then
18857   MAINTAINER_MODE_TRUE=
18858   MAINTAINER_MODE_FALSE='#'
18859 else
18860   MAINTAINER_MODE_TRUE='#'
18861   MAINTAINER_MODE_FALSE=
18862 fi
18863
18864   MAINT=$MAINTAINER_MODE_TRUE
18865
18866
18867
18868
18869 # Enable ccmalloc memory debugging support
18870 # Check whether --enable-ccmalloc was given.
18871 if test "${enable_ccmalloc+set}" = set; then :
18872   enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
18873 else
18874   enable_ccmalloc='no'
18875 fi
18876
18877
18878 # Enable Electric Fence memory debugging support
18879 # Check whether --enable-efence was given.
18880 if test "${enable_efence+set}" = set; then :
18881   enableval=$enable_efence; enable_efence=$enableval
18882 else
18883   enable_efence='no'
18884 fi
18885
18886
18887 # Enable prof-based profiling support
18888 # Check whether --enable-prof was given.
18889 if test "${enable_prof+set}" = set; then :
18890   enableval=$enable_prof; enable_prof=$enableval
18891 else
18892   enable_prof='no'
18893 fi
18894
18895
18896 # Enable gprof-based profiling support
18897 # Check whether --enable-gprof was given.
18898 if test "${enable_gprof+set}" = set; then :
18899   enableval=$enable_gprof; enable_gprof=$enableval
18900 else
18901   enable_gprof='no'
18902 fi
18903
18904
18905 # Enable gcov-based profiling support
18906 # Check whether --enable-gcov was given.
18907 if test "${enable_gcov+set}" = set; then :
18908   enableval=$enable_gcov; enable_gcov=$enableval
18909 else
18910   enable_gcov='no'
18911 fi
18912
18913
18914 enable_profiling='no'
18915 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
18916     enable_profiling='yes'
18917     if test "$libtool_build_shared_libs" = 'yes'; then
18918         echo "Warning: Can not profile code using shared libraries"
18919     fi
18920 fi
18921
18922 # Magick API method prefix
18923
18924 # Check whether --with-method-prefix was given.
18925 if test "${with_method_prefix+set}" = set; then :
18926   withval=$with_method_prefix; with_method_prefix=$enableval
18927 else
18928   with_method_prefix=''
18929 fi
18930
18931
18932 if test "$with_method_prefix" != ''; then
18933
18934 cat >>confdefs.h <<_ACEOF
18935 #define NAMESPACE_PREFIX $with_method_prefix
18936 _ACEOF
18937
18938 fi
18939
18940 # Number of bits in a Quantum
18941
18942 # Check whether --with-quantum-depth was given.
18943 if test "${with_quantum_depth+set}" = set; then :
18944   withval=$with_quantum_depth; with_quantum_depth=$withval
18945 else
18946   with_quantum_depth=16
18947 fi
18948
18949
18950 if test "$with_quantum_depth" != '8'; then
18951     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
18952 fi
18953
18954 case "${with_quantum_depth}" in
18955     8 ) ;;
18956     16 ) ;;
18957     32 ) ;;
18958     64 ) ;;
18959     * ) { as_fn_set_status 16
18960 as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
18961 esac
18962 QUANTUM_DEPTH="$with_quantum_depth"
18963
18964 cat >>confdefs.h <<_ACEOF
18965 #define QUANTUM_DEPTH $QUANTUM_DEPTH
18966 _ACEOF
18967
18968
18969 # Set pixel cache threshold
18970
18971 # Check whether --with-cache was given.
18972 if test "${with_cache+set}" = set; then :
18973   withval=$with_cache; with_cache=$withval
18974 else
18975   with_cache=''
18976 fi
18977
18978
18979 if test "$with_cache" != ''; then
18980
18981 cat >>confdefs.h <<_ACEOF
18982 #define PixelCacheThreshold $with_cache
18983 _ACEOF
18984
18985     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
18986 fi
18987
18988 # Disable/Enable support for full delegate paths
18989
18990 # Check whether --with-frozenpaths was given.
18991 if test "${with_frozenpaths+set}" = set; then :
18992   withval=$with_frozenpaths; with_frozenpaths=$withval
18993 else
18994   with_frozenpaths='no'
18995 fi
18996
18997
18998 # Enable build/install of Magick++
18999
19000 # Check whether --with-magick-plus-plus was given.
19001 if test "${with_magick_plus_plus+set}" = set; then :
19002   withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
19003 else
19004   with_magick_plus_plus='yes'
19005 fi
19006
19007
19008 # Disable build/install of PerlMagick.
19009
19010 # Check whether --with-perl was given.
19011 if test "${with_perl+set}" = set; then :
19012   withval=$with_perl; with_perl=$withval
19013 else
19014   with_perl=$libtool_build_shared_libs
19015 fi
19016
19017
19018 # Options to pass when configuring PerlMagick
19019
19020 # Check whether --with-perl-options was given.
19021 if test "${with_perl_options+set}" = set; then :
19022   withval=$with_perl_options;
19023 fi
19024
19025
19026 PERL_MAKE_OPTIONS=$with_perl_options
19027
19028
19029
19030 # Enable umem, object-caching memory allocation library.
19031
19032 # Check whether --with-umem was given.
19033 if test "${with_umem+set}" = set; then :
19034   withval=$with_umem; with_umem=$withval
19035 else
19036   with_umem='no'
19037 fi
19038
19039 if test "$with_umem" != 'yes' ; then
19040     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
19041 fi
19042
19043 #
19044 # Specify path to shared libstdc++ if not in normal location
19045 #
19046
19047 # Check whether --with-libstdc was given.
19048 if test "${with_libstdc+set}" = set; then :
19049   withval=$with_libstdc; with_libstdc=$withval
19050 else
19051   with_libstdc=''
19052 fi
19053
19054
19055 if test "$with_libstdc" != ''; then
19056     if test -d "$with_libstdc"; then
19057         LIBSTDCLDFLAGS="-L$with_libstdc"
19058     fi
19059 fi
19060
19061
19062 # Does gcc required -traditional?
19063 if test $ac_cv_c_compiler_gnu = yes; then
19064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
19065 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
19066 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
19067   $as_echo_n "(cached) " >&6
19068 else
19069     ac_pattern="Autoconf.*'x'"
19070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19071 /* end confdefs.h.  */
19072 #include <sgtty.h>
19073 Autoconf TIOCGETP
19074 _ACEOF
19075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19076   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
19077   ac_cv_prog_gcc_traditional=yes
19078 else
19079   ac_cv_prog_gcc_traditional=no
19080 fi
19081 rm -f conftest*
19082
19083
19084   if test $ac_cv_prog_gcc_traditional = no; then
19085     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19086 /* end confdefs.h.  */
19087 #include <termio.h>
19088 Autoconf TCGETA
19089 _ACEOF
19090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19091   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
19092   ac_cv_prog_gcc_traditional=yes
19093 fi
19094 rm -f conftest*
19095
19096   fi
19097 fi
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
19099 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
19100   if test $ac_cv_prog_gcc_traditional = yes; then
19101     CC="$CC -traditional"
19102   fi
19103 fi
19104
19105
19106 ########
19107 #
19108 # Set defines required to build DLLs and modules using MinGW
19109 #
19110 ########
19111 # These options are set for multi-thread DLL module build
19112 #  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_
19113 #  module:              _DLL
19114 #  executable/Magick++: _DLL _MAGICKMOD_
19115 MODULE_EXTRA_CPPFLAGS=''
19116 LIBRARY_EXTRA_CPPFLAGS=''
19117 if test "${native_win32_build}" = 'yes'; then
19118     if test "${libtool_build_shared_libs}" = 'yes'; then
19119         CPPFLAGS="$CPPFLAGS -D_DLL"
19120         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
19121         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
19122         LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19123         if test "$with_modules" = 'yes'; then
19124             LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
19125         else
19126             MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19127         fi
19128     else
19129         CPPFLAGS="$CPPFLAGS -D_LIB"
19130         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
19131         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
19132     fi
19133     if test "$with_threads" = 'yes'; then
19134          CPPFLAGS="$CPPFLAGS -D_MT"
19135          MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
19136          MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
19137     fi
19138 fi
19139
19140
19141
19142 # Check standard headers
19143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19144 $as_echo_n "checking for ANSI C header files... " >&6; }
19145 if test "${ac_cv_header_stdc+set}" = set; then :
19146   $as_echo_n "(cached) " >&6
19147 else
19148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19149 /* end confdefs.h.  */
19150 #include <stdlib.h>
19151 #include <stdarg.h>
19152 #include <string.h>
19153 #include <float.h>
19154
19155 int
19156 main ()
19157 {
19158
19159   ;
19160   return 0;
19161 }
19162 _ACEOF
19163 if ac_fn_c_try_compile "$LINENO"; then :
19164   ac_cv_header_stdc=yes
19165 else
19166   ac_cv_header_stdc=no
19167 fi
19168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19169
19170 if test $ac_cv_header_stdc = yes; then
19171   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19173 /* end confdefs.h.  */
19174 #include <string.h>
19175
19176 _ACEOF
19177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19178   $EGREP "memchr" >/dev/null 2>&1; then :
19179
19180 else
19181   ac_cv_header_stdc=no
19182 fi
19183 rm -f conftest*
19184
19185 fi
19186
19187 if test $ac_cv_header_stdc = yes; then
19188   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19190 /* end confdefs.h.  */
19191 #include <stdlib.h>
19192
19193 _ACEOF
19194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19195   $EGREP "free" >/dev/null 2>&1; then :
19196
19197 else
19198   ac_cv_header_stdc=no
19199 fi
19200 rm -f conftest*
19201
19202 fi
19203
19204 if test $ac_cv_header_stdc = yes; then
19205   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19206   if test "$cross_compiling" = yes; then :
19207   :
19208 else
19209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19210 /* end confdefs.h.  */
19211 #include <ctype.h>
19212 #include <stdlib.h>
19213 #if ((' ' & 0x0FF) == 0x020)
19214 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19215 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19216 #else
19217 # define ISLOWER(c) \
19218                    (('a' <= (c) && (c) <= 'i') \
19219                      || ('j' <= (c) && (c) <= 'r') \
19220                      || ('s' <= (c) && (c) <= 'z'))
19221 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19222 #endif
19223
19224 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19225 int
19226 main ()
19227 {
19228   int i;
19229   for (i = 0; i < 256; i++)
19230     if (XOR (islower (i), ISLOWER (i))
19231         || toupper (i) != TOUPPER (i))
19232       return 2;
19233   return 0;
19234 }
19235 _ACEOF
19236 if ac_fn_c_try_run "$LINENO"; then :
19237
19238 else
19239   ac_cv_header_stdc=no
19240 fi
19241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19242   conftest.$ac_objext conftest.beam conftest.$ac_ext
19243 fi
19244
19245 fi
19246 fi
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19248 $as_echo "$ac_cv_header_stdc" >&6; }
19249 if test $ac_cv_header_stdc = yes; then
19250
19251 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19252
19253 fi
19254
19255 if ! test x"$ac_cv_header_stdc" = x"yes"; then
19256     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
19257     header files.  Compilation cannot proceed.  Please install the ANSI C
19258     headers and rerun this script." >&5
19259 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
19260     header files.  Compilation cannot proceed.  Please install the ANSI C
19261     headers and rerun this script." >&2;};
19262 fi
19263 ac_header_dirent=no
19264 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19265   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19267 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
19269   $as_echo_n "(cached) " >&6
19270 else
19271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19272 /* end confdefs.h.  */
19273 #include <sys/types.h>
19274 #include <$ac_hdr>
19275
19276 int
19277 main ()
19278 {
19279 if ((DIR *) 0)
19280 return 0;
19281   ;
19282   return 0;
19283 }
19284 _ACEOF
19285 if ac_fn_c_try_compile "$LINENO"; then :
19286   eval "$as_ac_Header=yes"
19287 else
19288   eval "$as_ac_Header=no"
19289 fi
19290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19291 fi
19292 eval ac_res=\$$as_ac_Header
19293                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19294 $as_echo "$ac_res" >&6; }
19295 eval as_val=\$$as_ac_Header
19296    if test "x$as_val" = x""yes; then :
19297   cat >>confdefs.h <<_ACEOF
19298 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19299 _ACEOF
19300
19301 ac_header_dirent=$ac_hdr; break
19302 fi
19303
19304 done
19305 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19306 if test $ac_header_dirent = dirent.h; then
19307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19308 $as_echo_n "checking for library containing opendir... " >&6; }
19309 if test "${ac_cv_search_opendir+set}" = set; then :
19310   $as_echo_n "(cached) " >&6
19311 else
19312   ac_func_search_save_LIBS=$LIBS
19313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19314 /* end confdefs.h.  */
19315
19316 /* Override any GCC internal prototype to avoid an error.
19317    Use char because int might match the return type of a GCC
19318    builtin and then its argument prototype would still apply.  */
19319 #ifdef __cplusplus
19320 extern "C"
19321 #endif
19322 char opendir ();
19323 int
19324 main ()
19325 {
19326 return opendir ();
19327   ;
19328   return 0;
19329 }
19330 _ACEOF
19331 for ac_lib in '' dir; do
19332   if test -z "$ac_lib"; then
19333     ac_res="none required"
19334   else
19335     ac_res=-l$ac_lib
19336     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19337   fi
19338   if ac_fn_c_try_link "$LINENO"; then :
19339   ac_cv_search_opendir=$ac_res
19340 fi
19341 rm -f core conftest.err conftest.$ac_objext \
19342     conftest$ac_exeext
19343   if test "${ac_cv_search_opendir+set}" = set; then :
19344   break
19345 fi
19346 done
19347 if test "${ac_cv_search_opendir+set}" = set; then :
19348
19349 else
19350   ac_cv_search_opendir=no
19351 fi
19352 rm conftest.$ac_ext
19353 LIBS=$ac_func_search_save_LIBS
19354 fi
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19356 $as_echo "$ac_cv_search_opendir" >&6; }
19357 ac_res=$ac_cv_search_opendir
19358 if test "$ac_res" != no; then :
19359   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19360
19361 fi
19362
19363 else
19364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19365 $as_echo_n "checking for library containing opendir... " >&6; }
19366 if test "${ac_cv_search_opendir+set}" = set; then :
19367   $as_echo_n "(cached) " >&6
19368 else
19369   ac_func_search_save_LIBS=$LIBS
19370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19371 /* end confdefs.h.  */
19372
19373 /* Override any GCC internal prototype to avoid an error.
19374    Use char because int might match the return type of a GCC
19375    builtin and then its argument prototype would still apply.  */
19376 #ifdef __cplusplus
19377 extern "C"
19378 #endif
19379 char opendir ();
19380 int
19381 main ()
19382 {
19383 return opendir ();
19384   ;
19385   return 0;
19386 }
19387 _ACEOF
19388 for ac_lib in '' x; do
19389   if test -z "$ac_lib"; then
19390     ac_res="none required"
19391   else
19392     ac_res=-l$ac_lib
19393     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19394   fi
19395   if ac_fn_c_try_link "$LINENO"; then :
19396   ac_cv_search_opendir=$ac_res
19397 fi
19398 rm -f core conftest.err conftest.$ac_objext \
19399     conftest$ac_exeext
19400   if test "${ac_cv_search_opendir+set}" = set; then :
19401   break
19402 fi
19403 done
19404 if test "${ac_cv_search_opendir+set}" = set; then :
19405
19406 else
19407   ac_cv_search_opendir=no
19408 fi
19409 rm conftest.$ac_ext
19410 LIBS=$ac_func_search_save_LIBS
19411 fi
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19413 $as_echo "$ac_cv_search_opendir" >&6; }
19414 ac_res=$ac_cv_search_opendir
19415 if test "$ac_res" != no; then :
19416   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19417
19418 fi
19419
19420 fi
19421
19422
19423 # Check additional headers
19424 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
19425 do :
19426   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19427 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19428 eval as_val=\$$as_ac_Header
19429    if test "x$as_val" = x""yes; then :
19430   cat >>confdefs.h <<_ACEOF
19431 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19432 _ACEOF
19433
19434 fi
19435
19436 done
19437
19438
19439 ########
19440 #
19441 # Checks for typedefs, structures, and compiler characteristics.
19442 #
19443 ########
19444
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19446 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19447 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19448   $as_echo_n "(cached) " >&6
19449 else
19450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19451 /* end confdefs.h.  */
19452
19453 #include <stdbool.h>
19454 #ifndef bool
19455  "error: bool is not defined"
19456 #endif
19457 #ifndef false
19458  "error: false is not defined"
19459 #endif
19460 #if false
19461  "error: false is not 0"
19462 #endif
19463 #ifndef true
19464  "error: true is not defined"
19465 #endif
19466 #if true != 1
19467  "error: true is not 1"
19468 #endif
19469 #ifndef __bool_true_false_are_defined
19470  "error: __bool_true_false_are_defined is not defined"
19471 #endif
19472
19473         struct s { _Bool s: 1; _Bool t; } s;
19474
19475         char a[true == 1 ? 1 : -1];
19476         char b[false == 0 ? 1 : -1];
19477         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19478         char d[(bool) 0.5 == true ? 1 : -1];
19479         bool e = &s;
19480         char f[(_Bool) 0.0 == false ? 1 : -1];
19481         char g[true];
19482         char h[sizeof (_Bool)];
19483         char i[sizeof s.t];
19484         enum { j = false, k = true, l = false * true, m = true * 256 };
19485         /* The following fails for
19486            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19487         _Bool n[m];
19488         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19489         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19490 #       if defined __xlc__ || defined __GNUC__
19491          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
19492             reported by James Lemley on 2005-10-05; see
19493             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
19494             This test is not quite right, since xlc is allowed to
19495             reject this program, as the initializer for xlcbug is
19496             not one of the forms that C requires support for.
19497             However, doing the test right would require a runtime
19498             test, and that would make cross-compilation harder.
19499             Let us hope that IBM fixes the xlc bug, and also adds
19500             support for this kind of constant expression.  In the
19501             meantime, this test will reject xlc, which is OK, since
19502             our stdbool.h substitute should suffice.  We also test
19503             this with GCC, where it should work, to detect more
19504             quickly whether someone messes up the test in the
19505             future.  */
19506          char digs[] = "0123456789";
19507          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
19508 #       endif
19509         /* Catch a bug in an HP-UX C compiler.  See
19510            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19511            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19512          */
19513         _Bool q = true;
19514         _Bool *pq = &q;
19515
19516 int
19517 main ()
19518 {
19519
19520         *pq |= q;
19521         *pq |= ! q;
19522         /* Refer to every declared value, to avoid compiler optimizations.  */
19523         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19524                 + !m + !n + !o + !p + !q + !pq);
19525
19526   ;
19527   return 0;
19528 }
19529 _ACEOF
19530 if ac_fn_c_try_compile "$LINENO"; then :
19531   ac_cv_header_stdbool_h=yes
19532 else
19533   ac_cv_header_stdbool_h=no
19534 fi
19535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19536 fi
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19538 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19539 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19540 if test "x$ac_cv_type__Bool" = x""yes; then :
19541
19542 cat >>confdefs.h <<_ACEOF
19543 #define HAVE__BOOL 1
19544 _ACEOF
19545
19546
19547 fi
19548
19549 if test $ac_cv_header_stdbool_h = yes; then
19550
19551 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
19552
19553 fi
19554
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
19556 $as_echo_n "checking for working volatile... " >&6; }
19557 if test "${ac_cv_c_volatile+set}" = set; then :
19558   $as_echo_n "(cached) " >&6
19559 else
19560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19561 /* end confdefs.h.  */
19562
19563 int
19564 main ()
19565 {
19566
19567 volatile int x;
19568 int * volatile y = (int *) 0;
19569 return !x && !y;
19570   ;
19571   return 0;
19572 }
19573 _ACEOF
19574 if ac_fn_c_try_compile "$LINENO"; then :
19575   ac_cv_c_volatile=yes
19576 else
19577   ac_cv_c_volatile=no
19578 fi
19579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19580 fi
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
19582 $as_echo "$ac_cv_c_volatile" >&6; }
19583 if test $ac_cv_c_volatile = no; then
19584
19585 $as_echo "#define volatile /**/" >>confdefs.h
19586
19587 fi
19588
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
19590 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
19591 if test "${ac_cv_c_stringize+set}" = set; then :
19592   $as_echo_n "(cached) " >&6
19593 else
19594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19595 /* end confdefs.h.  */
19596 #define x(y) #y
19597
19598 char *s = x(teststring);
19599 _ACEOF
19600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19601   $EGREP "#teststring" >/dev/null 2>&1; then :
19602   ac_cv_c_stringize=no
19603 else
19604   ac_cv_c_stringize=yes
19605 fi
19606 rm -f conftest*
19607
19608 fi
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
19610 $as_echo "$ac_cv_c_stringize" >&6; }
19611 if test $ac_cv_c_stringize = yes; then
19612
19613 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
19614
19615 fi
19616
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19618 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19619 if test "${ac_cv_header_stat_broken+set}" = set; then :
19620   $as_echo_n "(cached) " >&6
19621 else
19622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19623 /* end confdefs.h.  */
19624 #include <sys/types.h>
19625 #include <sys/stat.h>
19626
19627 #if defined S_ISBLK && defined S_IFDIR
19628 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19629 #endif
19630
19631 #if defined S_ISBLK && defined S_IFCHR
19632 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19633 #endif
19634
19635 #if defined S_ISLNK && defined S_IFREG
19636 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19637 #endif
19638
19639 #if defined S_ISSOCK && defined S_IFREG
19640 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19641 #endif
19642
19643 _ACEOF
19644 if ac_fn_c_try_compile "$LINENO"; then :
19645   ac_cv_header_stat_broken=no
19646 else
19647   ac_cv_header_stat_broken=yes
19648 fi
19649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19650 fi
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19652 $as_echo "$ac_cv_header_stat_broken" >&6; }
19653 if test $ac_cv_header_stat_broken = yes; then
19654
19655 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19656
19657 fi
19658
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19660 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19661 if test "${ac_cv_header_time+set}" = set; then :
19662   $as_echo_n "(cached) " >&6
19663 else
19664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19665 /* end confdefs.h.  */
19666 #include <sys/types.h>
19667 #include <sys/time.h>
19668 #include <time.h>
19669
19670 int
19671 main ()
19672 {
19673 if ((struct tm *) 0)
19674 return 0;
19675   ;
19676   return 0;
19677 }
19678 _ACEOF
19679 if ac_fn_c_try_compile "$LINENO"; then :
19680   ac_cv_header_time=yes
19681 else
19682   ac_cv_header_time=no
19683 fi
19684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19685 fi
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19687 $as_echo "$ac_cv_header_time" >&6; }
19688 if test $ac_cv_header_time = yes; then
19689
19690 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19691
19692 fi
19693
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19695 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19696 if test "${ac_cv_struct_tm+set}" = set; then :
19697   $as_echo_n "(cached) " >&6
19698 else
19699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19700 /* end confdefs.h.  */
19701 #include <sys/types.h>
19702 #include <time.h>
19703
19704 int
19705 main ()
19706 {
19707 struct tm tm;
19708                                      int *p = &tm.tm_sec;
19709                                      return !p;
19710   ;
19711   return 0;
19712 }
19713 _ACEOF
19714 if ac_fn_c_try_compile "$LINENO"; then :
19715   ac_cv_struct_tm=time.h
19716 else
19717   ac_cv_struct_tm=sys/time.h
19718 fi
19719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19720 fi
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19722 $as_echo "$ac_cv_struct_tm" >&6; }
19723 if test $ac_cv_struct_tm = sys/time.h; then
19724
19725 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19726
19727 fi
19728
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
19730 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
19731 if test "${ac_cv_sys_interpreter+set}" = set; then :
19732   $as_echo_n "(cached) " >&6
19733 else
19734   echo '#! /bin/cat
19735 exit 69
19736 ' >conftest
19737 chmod u+x conftest
19738 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
19739 if test $? -ne 69; then
19740    ac_cv_sys_interpreter=yes
19741 else
19742    ac_cv_sys_interpreter=no
19743 fi
19744 rm -f conftest
19745 fi
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
19747 $as_echo "$ac_cv_sys_interpreter" >&6; }
19748 interpval=$ac_cv_sys_interpreter
19749
19750
19751 # If the C compiler does not fully support the ANSI C qualifier const,
19752 # define const to be empty.
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19754 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19755 if test "${ac_cv_c_const+set}" = set; then :
19756   $as_echo_n "(cached) " >&6
19757 else
19758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19759 /* end confdefs.h.  */
19760
19761 int
19762 main ()
19763 {
19764 /* FIXME: Include the comments suggested by Paul. */
19765 #ifndef __cplusplus
19766   /* Ultrix mips cc rejects this.  */
19767   typedef int charset[2];
19768   const charset cs;
19769   /* SunOS 4.1.1 cc rejects this.  */
19770   char const *const *pcpcc;
19771   char **ppc;
19772   /* NEC SVR4.0.2 mips cc rejects this.  */
19773   struct point {int x, y;};
19774   static struct point const zero = {0,0};
19775   /* AIX XL C 1.02.0.0 rejects this.
19776      It does not let you subtract one const X* pointer from another in
19777      an arm of an if-expression whose if-part is not a constant
19778      expression */
19779   const char *g = "string";
19780   pcpcc = &g + (g ? g-g : 0);
19781   /* HPUX 7.0 cc rejects these. */
19782   ++pcpcc;
19783   ppc = (char**) pcpcc;
19784   pcpcc = (char const *const *) ppc;
19785   { /* SCO 3.2v4 cc rejects this.  */
19786     char *t;
19787     char const *s = 0 ? (char *) 0 : (char const *) 0;
19788
19789     *t++ = 0;
19790     if (s) return 0;
19791   }
19792   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19793     int x[] = {25, 17};
19794     const int *foo = &x[0];
19795     ++foo;
19796   }
19797   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19798     typedef const int *iptr;
19799     iptr p = 0;
19800     ++p;
19801   }
19802   { /* AIX XL C 1.02.0.0 rejects this saying
19803        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19804     struct s { int j; const int *ap[3]; };
19805     struct s *b; b->j = 5;
19806   }
19807   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19808     const int foo = 10;
19809     if (!foo) return 0;
19810   }
19811   return !cs[0] && !zero.x;
19812 #endif
19813
19814   ;
19815   return 0;
19816 }
19817 _ACEOF
19818 if ac_fn_c_try_compile "$LINENO"; then :
19819   ac_cv_c_const=yes
19820 else
19821   ac_cv_c_const=no
19822 fi
19823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19824 fi
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19826 $as_echo "$ac_cv_c_const" >&6; }
19827 if test $ac_cv_c_const = no; then
19828
19829 $as_echo "#define const /**/" >>confdefs.h
19830
19831 fi
19832
19833
19834 # If the C compiler supports the keyword inline, do nothing. Otherwise
19835 # define inline to __inline__ or __inline if it accepts one of those,
19836 # otherwise define inline to be empty.
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19838 $as_echo_n "checking for inline... " >&6; }
19839 if test "${ac_cv_c_inline+set}" = set; then :
19840   $as_echo_n "(cached) " >&6
19841 else
19842   ac_cv_c_inline=no
19843 for ac_kw in inline __inline__ __inline; do
19844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19845 /* end confdefs.h.  */
19846 #ifndef __cplusplus
19847 typedef int foo_t;
19848 static $ac_kw foo_t static_foo () {return 0; }
19849 $ac_kw foo_t foo () {return 0; }
19850 #endif
19851
19852 _ACEOF
19853 if ac_fn_c_try_compile "$LINENO"; then :
19854   ac_cv_c_inline=$ac_kw
19855 fi
19856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19857   test "$ac_cv_c_inline" != no && break
19858 done
19859
19860 fi
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19862 $as_echo "$ac_cv_c_inline" >&6; }
19863
19864 case $ac_cv_c_inline in
19865   inline | yes) ;;
19866   *)
19867     case $ac_cv_c_inline in
19868       no) ac_val=;;
19869       *) ac_val=$ac_cv_c_inline;;
19870     esac
19871     cat >>confdefs.h <<_ACEOF
19872 #ifndef __cplusplus
19873 #define inline $ac_val
19874 #endif
19875 _ACEOF
19876     ;;
19877 esac
19878
19879
19880 # If the C compiler supports the keyword restrict, do nothing. Otherwise
19881 # define restrict to __restrict__ or __restrict if it accepts one of those,
19882 # otherwise define restrict to be empty.
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19884 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19885 if test "${ac_cv_c_restrict+set}" = set; then :
19886   $as_echo_n "(cached) " >&6
19887 else
19888   ac_cv_c_restrict=no
19889    # The order here caters to the fact that C++ does not require restrict.
19890    for ac_kw in __restrict __restrict__ _Restrict restrict; do
19891      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h.  */
19893 typedef int * int_ptr;
19894         int foo (int_ptr $ac_kw ip) {
19895         return ip[0];
19896        }
19897 int
19898 main ()
19899 {
19900 int s[1];
19901         int * $ac_kw t = s;
19902         t[0] = 0;
19903         return foo(t)
19904   ;
19905   return 0;
19906 }
19907 _ACEOF
19908 if ac_fn_c_try_compile "$LINENO"; then :
19909   ac_cv_c_restrict=$ac_kw
19910 fi
19911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19912      test "$ac_cv_c_restrict" != no && break
19913    done
19914
19915 fi
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19917 $as_echo "$ac_cv_c_restrict" >&6; }
19918
19919  case $ac_cv_c_restrict in
19920    restrict) ;;
19921    no) $as_echo "#define restrict /**/" >>confdefs.h
19922  ;;
19923    *)  cat >>confdefs.h <<_ACEOF
19924 #define restrict $ac_cv_c_restrict
19925 _ACEOF
19926  ;;
19927  esac
19928
19929
19930 # If words are stored with the most significant byte first (like
19931 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
19932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
19933 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
19934 if test "${ac_cv_c_bigendian+set}" = set; then :
19935   $as_echo_n "(cached) " >&6
19936 else
19937   ac_cv_c_bigendian=unknown
19938     # See if we're dealing with a universal compiler.
19939     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19940 /* end confdefs.h.  */
19941 #ifndef __APPLE_CC__
19942                not a universal capable compiler
19943              #endif
19944              typedef int dummy;
19945
19946 _ACEOF
19947 if ac_fn_c_try_compile "$LINENO"; then :
19948
19949         # Check for potential -arch flags.  It is not universal unless
19950         # there are at least two -arch flags with different values.
19951         ac_arch=
19952         ac_prev=
19953         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
19954          if test -n "$ac_prev"; then
19955            case $ac_word in
19956              i?86 | x86_64 | ppc | ppc64)
19957                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
19958                  ac_arch=$ac_word
19959                else
19960                  ac_cv_c_bigendian=universal
19961                  break
19962                fi
19963                ;;
19964            esac
19965            ac_prev=
19966          elif test "x$ac_word" = "x-arch"; then
19967            ac_prev=arch
19968          fi
19969        done
19970 fi
19971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19972     if test $ac_cv_c_bigendian = unknown; then
19973       # See if sys/param.h defines the BYTE_ORDER macro.
19974       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19975 /* end confdefs.h.  */
19976 #include <sys/types.h>
19977              #include <sys/param.h>
19978
19979 int
19980 main ()
19981 {
19982 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
19983                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
19984                      && LITTLE_ENDIAN)
19985               bogus endian macros
19986              #endif
19987
19988   ;
19989   return 0;
19990 }
19991 _ACEOF
19992 if ac_fn_c_try_compile "$LINENO"; then :
19993   # It does; now see whether it defined to BIG_ENDIAN or not.
19994          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19995 /* end confdefs.h.  */
19996 #include <sys/types.h>
19997                 #include <sys/param.h>
19998
19999 int
20000 main ()
20001 {
20002 #if BYTE_ORDER != BIG_ENDIAN
20003                  not big endian
20004                 #endif
20005
20006   ;
20007   return 0;
20008 }
20009 _ACEOF
20010 if ac_fn_c_try_compile "$LINENO"; then :
20011   ac_cv_c_bigendian=yes
20012 else
20013   ac_cv_c_bigendian=no
20014 fi
20015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20016 fi
20017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20018     fi
20019     if test $ac_cv_c_bigendian = unknown; then
20020       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20021       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20022 /* end confdefs.h.  */
20023 #include <limits.h>
20024
20025 int
20026 main ()
20027 {
20028 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20029               bogus endian macros
20030              #endif
20031
20032   ;
20033   return 0;
20034 }
20035 _ACEOF
20036 if ac_fn_c_try_compile "$LINENO"; then :
20037   # It does; now see whether it defined to _BIG_ENDIAN or not.
20038          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20039 /* end confdefs.h.  */
20040 #include <limits.h>
20041
20042 int
20043 main ()
20044 {
20045 #ifndef _BIG_ENDIAN
20046                  not big endian
20047                 #endif
20048
20049   ;
20050   return 0;
20051 }
20052 _ACEOF
20053 if ac_fn_c_try_compile "$LINENO"; then :
20054   ac_cv_c_bigendian=yes
20055 else
20056   ac_cv_c_bigendian=no
20057 fi
20058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20059 fi
20060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20061     fi
20062     if test $ac_cv_c_bigendian = unknown; then
20063       # Compile a test program.
20064       if test "$cross_compiling" = yes; then :
20065   # Try to guess by grepping values from an object file.
20066          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20067 /* end confdefs.h.  */
20068 short int ascii_mm[] =
20069                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20070                 short int ascii_ii[] =
20071                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20072                 int use_ascii (int i) {
20073                   return ascii_mm[i] + ascii_ii[i];
20074                 }
20075                 short int ebcdic_ii[] =
20076                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20077                 short int ebcdic_mm[] =
20078                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20079                 int use_ebcdic (int i) {
20080                   return ebcdic_mm[i] + ebcdic_ii[i];
20081                 }
20082                 extern int foo;
20083
20084 int
20085 main ()
20086 {
20087 return use_ascii (foo) == use_ebcdic (foo);
20088   ;
20089   return 0;
20090 }
20091 _ACEOF
20092 if ac_fn_c_try_compile "$LINENO"; then :
20093   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20094               ac_cv_c_bigendian=yes
20095             fi
20096             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20097               if test "$ac_cv_c_bigendian" = unknown; then
20098                 ac_cv_c_bigendian=no
20099               else
20100                 # finding both strings is unlikely to happen, but who knows?
20101                 ac_cv_c_bigendian=unknown
20102               fi
20103             fi
20104 fi
20105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20106 else
20107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20108 /* end confdefs.h.  */
20109 $ac_includes_default
20110 int
20111 main ()
20112 {
20113
20114              /* Are we little or big endian?  From Harbison&Steele.  */
20115              union
20116              {
20117                long int l;
20118                char c[sizeof (long int)];
20119              } u;
20120              u.l = 1;
20121              return u.c[sizeof (long int) - 1] == 1;
20122
20123   ;
20124   return 0;
20125 }
20126 _ACEOF
20127 if ac_fn_c_try_run "$LINENO"; then :
20128   ac_cv_c_bigendian=no
20129 else
20130   ac_cv_c_bigendian=yes
20131 fi
20132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20133   conftest.$ac_objext conftest.beam conftest.$ac_ext
20134 fi
20135
20136     fi
20137 fi
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20139 $as_echo "$ac_cv_c_bigendian" >&6; }
20140  case $ac_cv_c_bigendian in #(
20141    yes)
20142      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
20143 ;; #(
20144    no)
20145       ;; #(
20146    universal)
20147
20148 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20149
20150      ;; #(
20151    *)
20152      as_fn_error "unknown endianness
20153  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
20154  esac
20155
20156
20157 # Define mode_t to a suitable type, if standard headers do not define it.
20158 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20159 if test "x$ac_cv_type_mode_t" = x""yes; then :
20160
20161 else
20162
20163 cat >>confdefs.h <<_ACEOF
20164 #define mode_t int
20165 _ACEOF
20166
20167 fi
20168
20169
20170 # Define off_t to a suitable type, if standard headers do not define it.
20171 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20172 if test "x$ac_cv_type_off_t" = x""yes; then :
20173
20174 else
20175
20176 cat >>confdefs.h <<_ACEOF
20177 #define off_t long int
20178 _ACEOF
20179
20180 fi
20181
20182
20183 # Define pid_t to a suitable type, if standard headers do not define it.
20184 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20185 if test "x$ac_cv_type_pid_t" = x""yes; then :
20186
20187 else
20188
20189 cat >>confdefs.h <<_ACEOF
20190 #define pid_t int
20191 _ACEOF
20192
20193 fi
20194
20195
20196 # Define size_t to a suitable type, if standard headers do not define it.
20197 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20198 if test "x$ac_cv_type_size_t" = x""yes; then :
20199
20200 else
20201
20202 cat >>confdefs.h <<_ACEOF
20203 #define size_t unsigned int
20204 _ACEOF
20205
20206 fi
20207
20208
20209 # Define ssize_t to a suitable type, if standard headers do not define it.
20210 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20211 if test "x$ac_cv_type_ssize_t" = x""yes; then :
20212
20213 else
20214
20215 cat >>confdefs.h <<_ACEOF
20216 #define ssize_t int
20217 _ACEOF
20218
20219 fi
20220
20221
20222 # If the C compiler supports a working long double type with more range
20223 # or precision than the double type, define HAVE_LONG_DOUBLE.
20224
20225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
20226 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
20227 if test "${ac_cv_type_long_double_wider+set}" = set; then :
20228   $as_echo_n "(cached) " >&6
20229 else
20230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20231 /* end confdefs.h.  */
20232 #include <float.h>
20233             long double const a[] =
20234               {
20235                  0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
20236                  LDBL_MIN, LDBL_MAX, LDBL_EPSILON
20237               };
20238             long double
20239             f (long double x)
20240             {
20241                return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
20242                         + (x ? f (x) : 'c'));
20243             }
20244
20245 int
20246 main ()
20247 {
20248 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
20249                    + (DBL_MANT_DIG < LDBL_MANT_DIG)
20250                    - (LDBL_MAX_EXP < DBL_MAX_EXP)
20251                    - (LDBL_MANT_DIG < DBL_MANT_DIG)))
20252             && (int) LDBL_EPSILON == 0
20253           )];
20254 test_array [0] = 0
20255
20256   ;
20257   return 0;
20258 }
20259 _ACEOF
20260 if ac_fn_c_try_compile "$LINENO"; then :
20261   ac_cv_type_long_double_wider=yes
20262 else
20263   ac_cv_type_long_double_wider=no
20264 fi
20265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20266 fi
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
20268 $as_echo "$ac_cv_type_long_double_wider" >&6; }
20269   if test $ac_cv_type_long_double_wider = yes; then
20270
20271 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
20272
20273   fi
20274
20275
20276 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
20277 # C compiler predefines it.
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
20279 $as_echo_n "checking whether char is unsigned... " >&6; }
20280 if test "${ac_cv_c_char_unsigned+set}" = set; then :
20281   $as_echo_n "(cached) " >&6
20282 else
20283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20284 /* end confdefs.h.  */
20285 $ac_includes_default
20286 int
20287 main ()
20288 {
20289 static int test_array [1 - 2 * !(((char) -1) < 0)];
20290 test_array [0] = 0
20291
20292   ;
20293   return 0;
20294 }
20295 _ACEOF
20296 if ac_fn_c_try_compile "$LINENO"; then :
20297   ac_cv_c_char_unsigned=no
20298 else
20299   ac_cv_c_char_unsigned=yes
20300 fi
20301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20302 fi
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
20304 $as_echo "$ac_cv_c_char_unsigned" >&6; }
20305 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20306   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
20307
20308 fi
20309
20310
20311 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
20312 # The cast to long int works around a bug in the HP C Compiler
20313 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20314 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20315 # This bug is HP SR number 8606223364.
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
20317 $as_echo_n "checking size of signed short... " >&6; }
20318 if test "${ac_cv_sizeof_signed_short+set}" = set; then :
20319   $as_echo_n "(cached) " >&6
20320 else
20321   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
20322
20323 else
20324   if test "$ac_cv_type_signed_short" = yes; then
20325      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20327 { as_fn_set_status 77
20328 as_fn_error "cannot compute sizeof (signed short)
20329 See \`config.log' for more details." "$LINENO" 5; }; }
20330    else
20331      ac_cv_sizeof_signed_short=0
20332    fi
20333 fi
20334
20335 fi
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
20337 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
20338
20339
20340
20341 cat >>confdefs.h <<_ACEOF
20342 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
20343 _ACEOF
20344
20345
20346
20347 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
20348 # The cast to long int works around a bug in the HP C Compiler
20349 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20350 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20351 # This bug is HP SR number 8606223364.
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
20353 $as_echo_n "checking size of unsigned short... " >&6; }
20354 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
20355   $as_echo_n "(cached) " >&6
20356 else
20357   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
20358
20359 else
20360   if test "$ac_cv_type_unsigned_short" = yes; then
20361      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20363 { as_fn_set_status 77
20364 as_fn_error "cannot compute sizeof (unsigned short)
20365 See \`config.log' for more details." "$LINENO" 5; }; }
20366    else
20367      ac_cv_sizeof_unsigned_short=0
20368    fi
20369 fi
20370
20371 fi
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
20373 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20374
20375
20376
20377 cat >>confdefs.h <<_ACEOF
20378 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20379 _ACEOF
20380
20381
20382
20383 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
20384 # The cast to long int works around a bug in the HP C Compiler
20385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20387 # This bug is HP SR number 8606223364.
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
20389 $as_echo_n "checking size of signed int... " >&6; }
20390 if test "${ac_cv_sizeof_signed_int+set}" = set; then :
20391   $as_echo_n "(cached) " >&6
20392 else
20393   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
20394
20395 else
20396   if test "$ac_cv_type_signed_int" = yes; then
20397      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20399 { as_fn_set_status 77
20400 as_fn_error "cannot compute sizeof (signed int)
20401 See \`config.log' for more details." "$LINENO" 5; }; }
20402    else
20403      ac_cv_sizeof_signed_int=0
20404    fi
20405 fi
20406
20407 fi
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
20409 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
20410
20411
20412
20413 cat >>confdefs.h <<_ACEOF
20414 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
20415 _ACEOF
20416
20417
20418
20419 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
20420 # The cast to long int works around a bug in the HP C Compiler
20421 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20422 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20423 # This bug is HP SR number 8606223364.
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20425 $as_echo_n "checking size of unsigned int... " >&6; }
20426 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
20427   $as_echo_n "(cached) " >&6
20428 else
20429   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
20430
20431 else
20432   if test "$ac_cv_type_unsigned_int" = yes; then
20433      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20435 { as_fn_set_status 77
20436 as_fn_error "cannot compute sizeof (unsigned int)
20437 See \`config.log' for more details." "$LINENO" 5; }; }
20438    else
20439      ac_cv_sizeof_unsigned_int=0
20440    fi
20441 fi
20442
20443 fi
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20445 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20446
20447
20448
20449 cat >>confdefs.h <<_ACEOF
20450 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20451 _ACEOF
20452
20453
20454
20455 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
20456 # The cast to long int works around a bug in the HP C Compiler
20457 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20458 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20459 # This bug is HP SR number 8606223364.
20460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
20461 $as_echo_n "checking size of signed long... " >&6; }
20462 if test "${ac_cv_sizeof_signed_long+set}" = set; then :
20463   $as_echo_n "(cached) " >&6
20464 else
20465   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
20466
20467 else
20468   if test "$ac_cv_type_signed_long" = yes; then
20469      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20471 { as_fn_set_status 77
20472 as_fn_error "cannot compute sizeof (signed long)
20473 See \`config.log' for more details." "$LINENO" 5; }; }
20474    else
20475      ac_cv_sizeof_signed_long=0
20476    fi
20477 fi
20478
20479 fi
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
20481 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
20482
20483
20484
20485 cat >>confdefs.h <<_ACEOF
20486 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
20487 _ACEOF
20488
20489
20490
20491 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
20492 # The cast to long int works around a bug in the HP C Compiler
20493 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20494 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20495 # This bug is HP SR number 8606223364.
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
20497 $as_echo_n "checking size of unsigned long... " >&6; }
20498 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
20499   $as_echo_n "(cached) " >&6
20500 else
20501   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
20502
20503 else
20504   if test "$ac_cv_type_unsigned_long" = yes; then
20505      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20507 { as_fn_set_status 77
20508 as_fn_error "cannot compute sizeof (unsigned long)
20509 See \`config.log' for more details." "$LINENO" 5; }; }
20510    else
20511      ac_cv_sizeof_unsigned_long=0
20512    fi
20513 fi
20514
20515 fi
20516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
20517 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20518
20519
20520
20521 cat >>confdefs.h <<_ACEOF
20522 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20523 _ACEOF
20524
20525
20526
20527 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.  If
20528 # 'signed long long' is not supported then the value defined is zero.
20529 # The cast to long int works around a bug in the HP C Compiler
20530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20531 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20532 # This bug is HP SR number 8606223364.
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
20534 $as_echo_n "checking size of signed long long... " >&6; }
20535 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
20536   $as_echo_n "(cached) " >&6
20537 else
20538   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
20539
20540 else
20541   if test "$ac_cv_type_signed_long_long" = yes; then
20542      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20544 { as_fn_set_status 77
20545 as_fn_error "cannot compute sizeof (signed long long)
20546 See \`config.log' for more details." "$LINENO" 5; }; }
20547    else
20548      ac_cv_sizeof_signed_long_long=0
20549    fi
20550 fi
20551
20552 fi
20553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
20554 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
20555
20556
20557
20558 cat >>confdefs.h <<_ACEOF
20559 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
20560 _ACEOF
20561
20562
20563
20564 # Obtain size of a 'unsigned long long' and define as
20565 # SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
20566 # supported then the value defined is zero.
20567 # The cast to long int works around a bug in the HP C Compiler
20568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20570 # This bug is HP SR number 8606223364.
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
20572 $as_echo_n "checking size of unsigned long long... " >&6; }
20573 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
20574   $as_echo_n "(cached) " >&6
20575 else
20576   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
20577
20578 else
20579   if test "$ac_cv_type_unsigned_long_long" = yes; then
20580      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20582 { as_fn_set_status 77
20583 as_fn_error "cannot compute sizeof (unsigned long long)
20584 See \`config.log' for more details." "$LINENO" 5; }; }
20585    else
20586      ac_cv_sizeof_unsigned_long_long=0
20587    fi
20588 fi
20589
20590 fi
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
20592 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
20593
20594
20595
20596 cat >>confdefs.h <<_ACEOF
20597 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
20598 _ACEOF
20599
20600
20601
20602 # Obtain size of off_t and define as SIZEOF_OFF_T
20603 # The cast to long int works around a bug in the HP C Compiler
20604 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20605 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20606 # This bug is HP SR number 8606223364.
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
20608 $as_echo_n "checking size of off_t... " >&6; }
20609 if test "${ac_cv_sizeof_off_t+set}" = set; then :
20610   $as_echo_n "(cached) " >&6
20611 else
20612   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
20613
20614 else
20615   if test "$ac_cv_type_off_t" = yes; then
20616      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20618 { as_fn_set_status 77
20619 as_fn_error "cannot compute sizeof (off_t)
20620 See \`config.log' for more details." "$LINENO" 5; }; }
20621    else
20622      ac_cv_sizeof_off_t=0
20623    fi
20624 fi
20625
20626 fi
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
20628 $as_echo "$ac_cv_sizeof_off_t" >&6; }
20629
20630
20631
20632 cat >>confdefs.h <<_ACEOF
20633 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
20634 _ACEOF
20635
20636
20637
20638 # Obtain size of size_t and define as SIZEOF_SIZE_T
20639 # The cast to long int works around a bug in the HP C Compiler
20640 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20641 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20642 # This bug is HP SR number 8606223364.
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
20644 $as_echo_n "checking size of size_t... " >&6; }
20645 if test "${ac_cv_sizeof_size_t+set}" = set; then :
20646   $as_echo_n "(cached) " >&6
20647 else
20648   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
20649
20650 else
20651   if test "$ac_cv_type_size_t" = yes; then
20652      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20654 { as_fn_set_status 77
20655 as_fn_error "cannot compute sizeof (size_t)
20656 See \`config.log' for more details." "$LINENO" 5; }; }
20657    else
20658      ac_cv_sizeof_size_t=0
20659    fi
20660 fi
20661
20662 fi
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
20664 $as_echo "$ac_cv_sizeof_size_t" >&6; }
20665
20666
20667
20668 cat >>confdefs.h <<_ACEOF
20669 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20670 _ACEOF
20671
20672
20673
20674 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
20675 # The cast to long int works around a bug in the HP C Compiler
20676 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20677 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20678 # This bug is HP SR number 8606223364.
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
20680 $as_echo_n "checking size of unsigned int*... " >&6; }
20681 if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
20682   $as_echo_n "(cached) " >&6
20683 else
20684   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp"        "$ac_includes_default"; then :
20685
20686 else
20687   if test "$ac_cv_type_unsigned_intp" = yes; then
20688      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20690 { as_fn_set_status 77
20691 as_fn_error "cannot compute sizeof (unsigned int*)
20692 See \`config.log' for more details." "$LINENO" 5; }; }
20693    else
20694      ac_cv_sizeof_unsigned_intp=0
20695    fi
20696 fi
20697
20698 fi
20699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
20700 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
20701
20702
20703
20704 cat >>confdefs.h <<_ACEOF
20705 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
20706 _ACEOF
20707
20708
20709
20710 #
20711 # Compute sized types for current CPU and compiler options.
20712 #
20713
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
20715 $as_echo_n "checking for signed 8-bit type... " >&6; }
20716 INT8_T='signed char'
20717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
20718 $as_echo "$INT8_T" >&6; }
20719
20720
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
20722 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
20723 UINT8_T='unsigned char'
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
20725 $as_echo "$UINT8_T" >&6; }
20726
20727
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
20729 $as_echo_n "checking for signed 16-bit type... " >&6; }
20730 INT16_T='signed short'
20731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
20732 $as_echo "$INT16_T" >&6; }
20733
20734
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
20736 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
20737 UINT16_T='unsigned short'
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
20739 $as_echo "$UINT16_T" >&6; }
20740
20741
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
20743 $as_echo_n "checking for signed 32-bit type... " >&6; }
20744 INT32_T='none'
20745 if test $ac_cv_sizeof_signed_int -eq 4; then
20746   INT32_T='signed int'
20747 elif test $ac_cv_sizeof_signed_long -eq 4; then
20748   INT32_T='signed long'
20749 fi
20750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
20751 $as_echo "$INT32_T" >&6; }
20752
20753
20754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
20755 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
20756 UINT32_T='none'
20757 if test $ac_cv_sizeof_unsigned_int -eq 4; then
20758   UINT32_T='unsigned int'
20759 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
20760   UINT32_T='unsigned long'
20761 fi
20762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
20763 $as_echo "$UINT32_T" >&6; }
20764
20765
20766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
20767 $as_echo_n "checking for signed 64-bit type... " >&6; }
20768 INT64_T='none'
20769 if test $ac_cv_sizeof_signed_long -eq 8; then
20770   INT64_T='signed long'
20771 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
20772   INT64_T='signed long long'
20773 fi
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
20775 $as_echo "$INT64_T" >&6; }
20776
20777
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
20779 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
20780 UINT64_T='none'
20781 if test $ac_cv_sizeof_unsigned_long -eq 8; then
20782   UINT64_T='unsigned long'
20783 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
20784   UINT64_T='unsigned long long'
20785 fi
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
20787 $as_echo "$UINT64_T" >&6; }
20788
20789
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
20791 $as_echo_n "checking for unsigned maximum type... " >&6; }
20792 UINTMAX_T='none'
20793 if test "$UINT64_T" != 'none'; then
20794   UINTMAX_T=$UINT64_T
20795 elif test "$UINT32_T" != 'none'; then
20796   UINTMAX_T=$UINT32_T
20797 fi
20798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
20799 $as_echo "$UINTMAX_T" >&6; }
20800
20801
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
20803 $as_echo_n "checking for pointer difference type... " >&6; }
20804 UINTPTR_T='none'
20805 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
20806   UINTPTR_T='unsigned long'
20807 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
20808   UINTPTR_T='unsigned long long'
20809 fi
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
20811 $as_echo "$UINTPTR_T" >&6; }
20812
20813
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
20815 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
20816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20817 /* end confdefs.h.  */
20818
20819 int
20820 main ()
20821 {
20822 { const char *func = __func__; return(func != 0 ? 0 : 1); }
20823   ;
20824   return 0;
20825 }
20826 _ACEOF
20827 if ac_fn_c_try_compile "$LINENO"; then :
20828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20829 $as_echo "yes" >&6; }
20830 else
20831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20832 $as_echo "no" >&6; }
20833  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
20834 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
20835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20836 /* end confdefs.h.  */
20837
20838 int
20839 main ()
20840 {
20841 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
20842   ;
20843   return 0;
20844 }
20845 _ACEOF
20846 if ac_fn_c_try_compile "$LINENO"; then :
20847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20848 $as_echo "yes" >&6; }
20849
20850 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
20851
20852 else
20853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20854 $as_echo "no" >&6; }
20855
20856 $as_echo "#define __func__ __FILE__" >>confdefs.h
20857
20858 fi
20859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20860 fi
20861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20862
20863 ########
20864 #
20865 # Check for functions
20866 #
20867 ########
20868 for ac_header in stdlib.h unistd.h
20869 do :
20870   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20871 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20872 eval as_val=\$$as_ac_Header
20873    if test "x$as_val" = x""yes; then :
20874   cat >>confdefs.h <<_ACEOF
20875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20876 _ACEOF
20877
20878 fi
20879
20880 done
20881
20882 for ac_func in getpagesize
20883 do :
20884   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20885 if test "x$ac_cv_func_getpagesize" = x""yes; then :
20886   cat >>confdefs.h <<_ACEOF
20887 #define HAVE_GETPAGESIZE 1
20888 _ACEOF
20889
20890 fi
20891 done
20892
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
20894 $as_echo_n "checking for working mmap file i/o... " >&6; }
20895 if test "${magick_cv_func_mmap_fileio+set}" = set; then :
20896   $as_echo_n "(cached) " >&6
20897 else
20898   if test "$cross_compiling" = yes; then :
20899   magick_cv_func_mmap_fileio=no
20900 else
20901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20902 /* end confdefs.h.  */
20903 $ac_includes_default
20904 /* malloc might have been renamed as rpl_malloc. */
20905 #undef malloc
20906
20907 /*
20908    This test is derived from GNU Autoconf's similar macro.
20909    The purpose of this test is to verify that files may be memory
20910    mapped, and that memory mapping and file I/O are coherent.
20911
20912    The test creates a test file, memory maps the file, updates
20913    the file using the memory map, and then reads the file using
20914    file I/O to verify that the file contains the updates.
20915 */
20916
20917 #include <fcntl.h>
20918 #include <sys/mman.h>
20919
20920 #if !STDC_HEADERS && !HAVE_STDLIB_H
20921 char *malloc ();
20922 #endif
20923
20924 /* This mess was copied from the GNU getpagesize.h.  */
20925 #if !HAVE_GETPAGESIZE
20926 /* Assume that all systems that can run configure have sys/param.h.  */
20927 # if !HAVE_SYS_PARAM_H
20928 #  define HAVE_SYS_PARAM_H 1
20929 # endif
20930
20931 # ifdef _SC_PAGESIZE
20932 #  define getpagesize() sysconf(_SC_PAGESIZE)
20933 # else /* no _SC_PAGESIZE */
20934 #  if HAVE_SYS_PARAM_H
20935 #   include <sys/param.h>
20936 #   ifdef EXEC_PAGESIZE
20937 #    define getpagesize() EXEC_PAGESIZE
20938 #   else /* no EXEC_PAGESIZE */
20939 #    ifdef NBPG
20940 #     define getpagesize() NBPG * CLSIZE
20941 #     ifndef CLSIZE
20942 #      define CLSIZE 1
20943 #     endif /* no CLSIZE */
20944 #    else /* no NBPG */
20945 #     ifdef NBPC
20946 #      define getpagesize() NBPC
20947 #     else /* no NBPC */
20948 #      ifdef PAGESIZE
20949 #       define getpagesize() PAGESIZE
20950 #      endif /* PAGESIZE */
20951 #     endif /* no NBPC */
20952 #    endif /* no NBPG */
20953 #   endif /* no EXEC_PAGESIZE */
20954 #  else /* no HAVE_SYS_PARAM_H */
20955 #   define getpagesize() 8192   /* punt totally */
20956 #  endif /* no HAVE_SYS_PARAM_H */
20957 # endif /* no _SC_PAGESIZE */
20958
20959 #endif /* no HAVE_GETPAGESIZE */
20960
20961 int
20962 main ()
20963 {
20964   char *data, *data2, *data3;
20965   int i, pagesize;
20966   int fd;
20967
20968   pagesize = getpagesize ();
20969
20970   /* First, make a file with some known garbage in it. */
20971   data = (char *) malloc (pagesize);
20972   if (!data)
20973     exit (1);
20974   for (i = 0; i < pagesize; ++i)
20975     *(data + i) = rand ();
20976   umask (0);
20977   fd = creat ("conftest.mmap", 0600);
20978   if (fd < 0)
20979     exit (1);
20980   if (write (fd, data, pagesize) != pagesize)
20981     exit (1);
20982   close (fd);
20983
20984   /* Mmap the file as read/write/shared and verify that we see the
20985   same garbage. */
20986   fd = open ("conftest.mmap", O_RDWR);
20987   if (fd < 0)
20988     exit (1);
20989   data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
20990   if (data2 == 0)
20991     exit (1);
20992   for (i = 0; i < pagesize; ++i)
20993     if (*(data + i) != *(data2 + i))
20994       exit (1);
20995
20996   /* Finally, make sure that changes to the mapped area
20997      percolate back to the file as seen by read().  */
20998   for (i = 0; i < pagesize; ++i)
20999     *(data2 + i) = *(data2 + i) + 1;
21000   data3 = (char *) malloc (pagesize);
21001   if (!data3)
21002     exit (1);
21003   if (read (fd, data3, pagesize) != pagesize)
21004     exit (1);
21005   for (i = 0; i < pagesize; ++i)
21006     if (*(data2 + i) != *(data3 + i))
21007       exit (1);
21008   close (fd);
21009   exit (0);
21010 }
21011 _ACEOF
21012 if ac_fn_c_try_run "$LINENO"; then :
21013   magick_cv_func_mmap_fileio=yes
21014 else
21015   magick_cv_func_mmap_fileio=no
21016 fi
21017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21018   conftest.$ac_objext conftest.beam conftest.$ac_ext
21019 fi
21020
21021 fi
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
21023 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
21024 if test $magick_cv_func_mmap_fileio = yes; then
21025
21026 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
21027
21028 fi
21029 rm -f conftest.mmap
21030
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
21032 $as_echo_n "checking whether closedir returns void... " >&6; }
21033 if test "${ac_cv_func_closedir_void+set}" = set; then :
21034   $as_echo_n "(cached) " >&6
21035 else
21036   if test "$cross_compiling" = yes; then :
21037   ac_cv_func_closedir_void=yes
21038 else
21039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21040 /* end confdefs.h.  */
21041 $ac_includes_default
21042 #include <$ac_header_dirent>
21043 #ifndef __cplusplus
21044 int closedir ();
21045 #endif
21046
21047 int
21048 main ()
21049 {
21050 return closedir (opendir (".")) != 0;
21051   ;
21052   return 0;
21053 }
21054 _ACEOF
21055 if ac_fn_c_try_run "$LINENO"; then :
21056   ac_cv_func_closedir_void=no
21057 else
21058   ac_cv_func_closedir_void=yes
21059 fi
21060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21061   conftest.$ac_objext conftest.beam conftest.$ac_ext
21062 fi
21063
21064 fi
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
21066 $as_echo "$ac_cv_func_closedir_void" >&6; }
21067 if test $ac_cv_func_closedir_void = yes; then
21068
21069 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
21070
21071 fi
21072
21073
21074
21075
21076   for ac_header in $ac_header_list
21077 do :
21078   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21079 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21080 "
21081 eval as_val=\$$as_ac_Header
21082    if test "x$as_val" = x""yes; then :
21083   cat >>confdefs.h <<_ACEOF
21084 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21085 _ACEOF
21086
21087 fi
21088
21089 done
21090
21091
21092
21093
21094
21095
21096
21097
21098 for ac_func in getpagesize
21099 do :
21100   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21101 if test "x$ac_cv_func_getpagesize" = x""yes; then :
21102   cat >>confdefs.h <<_ACEOF
21103 #define HAVE_GETPAGESIZE 1
21104 _ACEOF
21105
21106 fi
21107 done
21108
21109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
21110 $as_echo_n "checking for working mmap... " >&6; }
21111 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
21112   $as_echo_n "(cached) " >&6
21113 else
21114   if test "$cross_compiling" = yes; then :
21115   ac_cv_func_mmap_fixed_mapped=no
21116 else
21117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21118 /* end confdefs.h.  */
21119 $ac_includes_default
21120 /* malloc might have been renamed as rpl_malloc. */
21121 #undef malloc
21122
21123 /* Thanks to Mike Haertel and Jim Avera for this test.
21124    Here is a matrix of mmap possibilities:
21125         mmap private not fixed
21126         mmap private fixed at somewhere currently unmapped
21127         mmap private fixed at somewhere already mapped
21128         mmap shared not fixed
21129         mmap shared fixed at somewhere currently unmapped
21130         mmap shared fixed at somewhere already mapped
21131    For private mappings, we should verify that changes cannot be read()
21132    back from the file, nor mmap's back from the file at a different
21133    address.  (There have been systems where private was not correctly
21134    implemented like the infamous i386 svr4.0, and systems where the
21135    VM page cache was not coherent with the file system buffer cache
21136    like early versions of FreeBSD and possibly contemporary NetBSD.)
21137    For shared mappings, we should conversely verify that changes get
21138    propagated back to all the places they're supposed to be.
21139
21140    Grep wants private fixed already mapped.
21141    The main things grep needs to know about mmap are:
21142    * does it exist and is it safe to write into the mmap'd area
21143    * how to use it (BSD variants)  */
21144
21145 #include <fcntl.h>
21146 #include <sys/mman.h>
21147
21148 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21149 char *malloc ();
21150 #endif
21151
21152 /* This mess was copied from the GNU getpagesize.h.  */
21153 #ifndef HAVE_GETPAGESIZE
21154 # ifdef _SC_PAGESIZE
21155 #  define getpagesize() sysconf(_SC_PAGESIZE)
21156 # else /* no _SC_PAGESIZE */
21157 #  ifdef HAVE_SYS_PARAM_H
21158 #   include <sys/param.h>
21159 #   ifdef EXEC_PAGESIZE
21160 #    define getpagesize() EXEC_PAGESIZE
21161 #   else /* no EXEC_PAGESIZE */
21162 #    ifdef NBPG
21163 #     define getpagesize() NBPG * CLSIZE
21164 #     ifndef CLSIZE
21165 #      define CLSIZE 1
21166 #     endif /* no CLSIZE */
21167 #    else /* no NBPG */
21168 #     ifdef NBPC
21169 #      define getpagesize() NBPC
21170 #     else /* no NBPC */
21171 #      ifdef PAGESIZE
21172 #       define getpagesize() PAGESIZE
21173 #      endif /* PAGESIZE */
21174 #     endif /* no NBPC */
21175 #    endif /* no NBPG */
21176 #   endif /* no EXEC_PAGESIZE */
21177 #  else /* no HAVE_SYS_PARAM_H */
21178 #   define getpagesize() 8192   /* punt totally */
21179 #  endif /* no HAVE_SYS_PARAM_H */
21180 # endif /* no _SC_PAGESIZE */
21181
21182 #endif /* no HAVE_GETPAGESIZE */
21183
21184 int
21185 main ()
21186 {
21187   char *data, *data2, *data3;
21188   const char *cdata2;
21189   int i, pagesize;
21190   int fd, fd2;
21191
21192   pagesize = getpagesize ();
21193
21194   /* First, make a file with some known garbage in it. */
21195   data = (char *) malloc (pagesize);
21196   if (!data)
21197     return 1;
21198   for (i = 0; i < pagesize; ++i)
21199     *(data + i) = rand ();
21200   umask (0);
21201   fd = creat ("conftest.mmap", 0600);
21202   if (fd < 0)
21203     return 2;
21204   if (write (fd, data, pagesize) != pagesize)
21205     return 3;
21206   close (fd);
21207
21208   /* Next, check that the tail of a page is zero-filled.  File must have
21209      non-zero length, otherwise we risk SIGBUS for entire page.  */
21210   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
21211   if (fd2 < 0)
21212     return 4;
21213   cdata2 = "";
21214   if (write (fd2, cdata2, 1) != 1)
21215     return 5;
21216   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
21217   if (data2 == MAP_FAILED)
21218     return 6;
21219   for (i = 0; i < pagesize; ++i)
21220     if (*(data2 + i))
21221       return 7;
21222   close (fd2);
21223   if (munmap (data2, pagesize))
21224     return 8;
21225
21226   /* Next, try to mmap the file at a fixed address which already has
21227      something else allocated at it.  If we can, also make sure that
21228      we see the same garbage.  */
21229   fd = open ("conftest.mmap", O_RDWR);
21230   if (fd < 0)
21231     return 9;
21232   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21233                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21234     return 10;
21235   for (i = 0; i < pagesize; ++i)
21236     if (*(data + i) != *(data2 + i))
21237       return 11;
21238
21239   /* Finally, make sure that changes to the mapped area do not
21240      percolate back to the file as seen by read().  (This is a bug on
21241      some variants of i386 svr4.0.)  */
21242   for (i = 0; i < pagesize; ++i)
21243     *(data2 + i) = *(data2 + i) + 1;
21244   data3 = (char *) malloc (pagesize);
21245   if (!data3)
21246     return 12;
21247   if (read (fd, data3, pagesize) != pagesize)
21248     return 13;
21249   for (i = 0; i < pagesize; ++i)
21250     if (*(data + i) != *(data3 + i))
21251       return 14;
21252   close (fd);
21253   return 0;
21254 }
21255 _ACEOF
21256 if ac_fn_c_try_run "$LINENO"; then :
21257   ac_cv_func_mmap_fixed_mapped=yes
21258 else
21259   ac_cv_func_mmap_fixed_mapped=no
21260 fi
21261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21262   conftest.$ac_objext conftest.beam conftest.$ac_ext
21263 fi
21264
21265 fi
21266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
21267 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21268 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21269
21270 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
21271
21272 fi
21273 rm -f conftest.mmap conftest.txt
21274
21275 for ac_header in vfork.h
21276 do :
21277   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21278 if test "x$ac_cv_header_vfork_h" = x""yes; then :
21279   cat >>confdefs.h <<_ACEOF
21280 #define HAVE_VFORK_H 1
21281 _ACEOF
21282
21283 fi
21284
21285 done
21286
21287 for ac_func in fork vfork
21288 do :
21289   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21290 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21291 eval as_val=\$$as_ac_var
21292    if test "x$as_val" = x""yes; then :
21293   cat >>confdefs.h <<_ACEOF
21294 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21295 _ACEOF
21296
21297 fi
21298 done
21299
21300 if test "x$ac_cv_func_fork" = xyes; then
21301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21302 $as_echo_n "checking for working fork... " >&6; }
21303 if test "${ac_cv_func_fork_works+set}" = set; then :
21304   $as_echo_n "(cached) " >&6
21305 else
21306   if test "$cross_compiling" = yes; then :
21307   ac_cv_func_fork_works=cross
21308 else
21309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21310 /* end confdefs.h.  */
21311 $ac_includes_default
21312 int
21313 main ()
21314 {
21315
21316           /* By Ruediger Kuhlmann. */
21317           return fork () < 0;
21318
21319   ;
21320   return 0;
21321 }
21322 _ACEOF
21323 if ac_fn_c_try_run "$LINENO"; then :
21324   ac_cv_func_fork_works=yes
21325 else
21326   ac_cv_func_fork_works=no
21327 fi
21328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21329   conftest.$ac_objext conftest.beam conftest.$ac_ext
21330 fi
21331
21332 fi
21333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21334 $as_echo "$ac_cv_func_fork_works" >&6; }
21335
21336 else
21337   ac_cv_func_fork_works=$ac_cv_func_fork
21338 fi
21339 if test "x$ac_cv_func_fork_works" = xcross; then
21340   case $host in
21341     *-*-amigaos* | *-*-msdosdjgpp*)
21342       # Override, as these systems have only a dummy fork() stub
21343       ac_cv_func_fork_works=no
21344       ;;
21345     *)
21346       ac_cv_func_fork_works=yes
21347       ;;
21348   esac
21349   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21350 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21351 fi
21352 ac_cv_func_vfork_works=$ac_cv_func_vfork
21353 if test "x$ac_cv_func_vfork" = xyes; then
21354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21355 $as_echo_n "checking for working vfork... " >&6; }
21356 if test "${ac_cv_func_vfork_works+set}" = set; then :
21357   $as_echo_n "(cached) " >&6
21358 else
21359   if test "$cross_compiling" = yes; then :
21360   ac_cv_func_vfork_works=cross
21361 else
21362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21363 /* end confdefs.h.  */
21364 /* Thanks to Paul Eggert for this test.  */
21365 $ac_includes_default
21366 #include <sys/wait.h>
21367 #ifdef HAVE_VFORK_H
21368 # include <vfork.h>
21369 #endif
21370 /* On some sparc systems, changes by the child to local and incoming
21371    argument registers are propagated back to the parent.  The compiler
21372    is told about this with #include <vfork.h>, but some compilers
21373    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
21374    static variable whose address is put into a register that is
21375    clobbered by the vfork.  */
21376 static void
21377 #ifdef __cplusplus
21378 sparc_address_test (int arg)
21379 # else
21380 sparc_address_test (arg) int arg;
21381 #endif
21382 {
21383   static pid_t child;
21384   if (!child) {
21385     child = vfork ();
21386     if (child < 0) {
21387       perror ("vfork");
21388       _exit(2);
21389     }
21390     if (!child) {
21391       arg = getpid();
21392       write(-1, "", 0);
21393       _exit (arg);
21394     }
21395   }
21396 }
21397
21398 int
21399 main ()
21400 {
21401   pid_t parent = getpid ();
21402   pid_t child;
21403
21404   sparc_address_test (0);
21405
21406   child = vfork ();
21407
21408   if (child == 0) {
21409     /* Here is another test for sparc vfork register problems.  This
21410        test uses lots of local variables, at least as many local
21411        variables as main has allocated so far including compiler
21412        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
21413        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
21414        reuse the register of parent for one of the local variables,
21415        since it will think that parent can't possibly be used any more
21416        in this routine.  Assigning to the local variable will thus
21417        munge parent in the parent process.  */
21418     pid_t
21419       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21420       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21421     /* Convince the compiler that p..p7 are live; otherwise, it might
21422        use the same hardware register for all 8 local variables.  */
21423     if (p != p1 || p != p2 || p != p3 || p != p4
21424         || p != p5 || p != p6 || p != p7)
21425       _exit(1);
21426
21427     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21428        from child file descriptors.  If the child closes a descriptor
21429        before it execs or exits, this munges the parent's descriptor
21430        as well.  Test for this by closing stdout in the child.  */
21431     _exit(close(fileno(stdout)) != 0);
21432   } else {
21433     int status;
21434     struct stat st;
21435
21436     while (wait(&status) != child)
21437       ;
21438     return (
21439          /* Was there some problem with vforking?  */
21440          child < 0
21441
21442          /* Did the child fail?  (This shouldn't happen.)  */
21443          || status
21444
21445          /* Did the vfork/compiler bug occur?  */
21446          || parent != getpid()
21447
21448          /* Did the file descriptor bug occur?  */
21449          || fstat(fileno(stdout), &st) != 0
21450          );
21451   }
21452 }
21453 _ACEOF
21454 if ac_fn_c_try_run "$LINENO"; then :
21455   ac_cv_func_vfork_works=yes
21456 else
21457   ac_cv_func_vfork_works=no
21458 fi
21459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21460   conftest.$ac_objext conftest.beam conftest.$ac_ext
21461 fi
21462
21463 fi
21464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21465 $as_echo "$ac_cv_func_vfork_works" >&6; }
21466
21467 fi;
21468 if test "x$ac_cv_func_fork_works" = xcross; then
21469   ac_cv_func_vfork_works=$ac_cv_func_vfork
21470   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21471 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21472 fi
21473
21474 if test "x$ac_cv_func_vfork_works" = xyes; then
21475
21476 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21477
21478 else
21479
21480 $as_echo "#define vfork fork" >>confdefs.h
21481
21482 fi
21483 if test "x$ac_cv_func_fork_works" = xyes; then
21484
21485 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21486
21487 fi
21488
21489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
21490 $as_echo_n "checking for working memcmp... " >&6; }
21491 if test "${ac_cv_func_memcmp_working+set}" = set; then :
21492   $as_echo_n "(cached) " >&6
21493 else
21494   if test "$cross_compiling" = yes; then :
21495   ac_cv_func_memcmp_working=no
21496 else
21497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21498 /* end confdefs.h.  */
21499 $ac_includes_default
21500 int
21501 main ()
21502 {
21503
21504   /* Some versions of memcmp are not 8-bit clean.  */
21505   char c0 = '\100', c1 = '\200', c2 = '\201';
21506   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21507     return 1;
21508
21509   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21510      or more and with at least one buffer not starting on a 4-byte boundary.
21511      William Lewis provided this test program.   */
21512   {
21513     char foo[21];
21514     char bar[21];
21515     int i;
21516     for (i = 0; i < 4; i++)
21517       {
21518         char *a = foo + i;
21519         char *b = bar + i;
21520         strcpy (a, "--------01111111");
21521         strcpy (b, "--------10000000");
21522         if (memcmp (a, b, 16) >= 0)
21523           return 1;
21524       }
21525     return 0;
21526   }
21527
21528   ;
21529   return 0;
21530 }
21531 _ACEOF
21532 if ac_fn_c_try_run "$LINENO"; then :
21533   ac_cv_func_memcmp_working=yes
21534 else
21535   ac_cv_func_memcmp_working=no
21536 fi
21537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21538   conftest.$ac_objext conftest.beam conftest.$ac_ext
21539 fi
21540
21541 fi
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
21543 $as_echo "$ac_cv_func_memcmp_working" >&6; }
21544 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21545   *" memcmp.$ac_objext "* ) ;;
21546   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21547  ;;
21548 esac
21549
21550
21551 for ac_header in sys/select.h sys/socket.h
21552 do :
21553   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21554 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21555 eval as_val=\$$as_ac_Header
21556    if test "x$as_val" = x""yes; then :
21557   cat >>confdefs.h <<_ACEOF
21558 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21559 _ACEOF
21560
21561 fi
21562
21563 done
21564
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
21566 $as_echo_n "checking types of arguments for select... " >&6; }
21567 if test "${ac_cv_func_select_args+set}" = set; then :
21568   $as_echo_n "(cached) " >&6
21569 else
21570   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21571  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21572   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
21573    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21574 /* end confdefs.h.  */
21575 $ac_includes_default
21576 #ifdef HAVE_SYS_SELECT_H
21577 # include <sys/select.h>
21578 #endif
21579 #ifdef HAVE_SYS_SOCKET_H
21580 # include <sys/socket.h>
21581 #endif
21582
21583 int
21584 main ()
21585 {
21586 extern int select ($ac_arg1,
21587                                             $ac_arg234, $ac_arg234, $ac_arg234,
21588                                             $ac_arg5);
21589   ;
21590   return 0;
21591 }
21592 _ACEOF
21593 if ac_fn_c_try_compile "$LINENO"; then :
21594   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21595 fi
21596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21597   done
21598  done
21599 done
21600 # Provide a safe default value.
21601 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
21602
21603 fi
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
21605 $as_echo "$ac_cv_func_select_args" >&6; }
21606 ac_save_IFS=$IFS; IFS=','
21607 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21608 IFS=$ac_save_IFS
21609 shift
21610
21611 cat >>confdefs.h <<_ACEOF
21612 #define SELECT_TYPE_ARG1 $1
21613 _ACEOF
21614
21615
21616 cat >>confdefs.h <<_ACEOF
21617 #define SELECT_TYPE_ARG234 ($2)
21618 _ACEOF
21619
21620
21621 cat >>confdefs.h <<_ACEOF
21622 #define SELECT_TYPE_ARG5 ($3)
21623 _ACEOF
21624
21625 rm -f conftest*
21626
21627 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
21628   $as_echo_n "(cached) " >&6
21629 else
21630   ac_cv_func_setvbuf_reversed=no
21631 fi
21632
21633
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
21635 $as_echo_n "checking return type of signal handlers... " >&6; }
21636 if test "${ac_cv_type_signal+set}" = set; then :
21637   $as_echo_n "(cached) " >&6
21638 else
21639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21640 /* end confdefs.h.  */
21641 #include <sys/types.h>
21642 #include <signal.h>
21643
21644 int
21645 main ()
21646 {
21647 return *(signal (0, 0)) (0) == 1;
21648   ;
21649   return 0;
21650 }
21651 _ACEOF
21652 if ac_fn_c_try_compile "$LINENO"; then :
21653   ac_cv_type_signal=int
21654 else
21655   ac_cv_type_signal=void
21656 fi
21657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21658 fi
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
21660 $as_echo "$ac_cv_type_signal" >&6; }
21661
21662 cat >>confdefs.h <<_ACEOF
21663 #define RETSIGTYPE $ac_cv_type_signal
21664 _ACEOF
21665
21666
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
21668 $as_echo_n "checking for working strtod... " >&6; }
21669 if test "${ac_cv_func_strtod+set}" = set; then :
21670   $as_echo_n "(cached) " >&6
21671 else
21672   if test "$cross_compiling" = yes; then :
21673   ac_cv_func_strtod=no
21674 else
21675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21676 /* end confdefs.h.  */
21677
21678 $ac_includes_default
21679 #ifndef strtod
21680 double strtod ();
21681 #endif
21682 int
21683 main()
21684 {
21685   {
21686     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
21687     char *string = " +69";
21688     char *term;
21689     double value;
21690     value = strtod (string, &term);
21691     if (value != 69 || term != (string + 4))
21692       return 1;
21693   }
21694
21695   {
21696     /* Under Solaris 2.4, strtod returns the wrong value for the
21697        terminating character under some conditions.  */
21698     char *string = "NaN";
21699     char *term;
21700     strtod (string, &term);
21701     if (term != string && *(term - 1) == 0)
21702       return 1;
21703   }
21704   return 0;
21705 }
21706
21707 _ACEOF
21708 if ac_fn_c_try_run "$LINENO"; then :
21709   ac_cv_func_strtod=yes
21710 else
21711   ac_cv_func_strtod=no
21712 fi
21713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21714   conftest.$ac_objext conftest.beam conftest.$ac_ext
21715 fi
21716
21717 fi
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
21719 $as_echo "$ac_cv_func_strtod" >&6; }
21720 if test $ac_cv_func_strtod = no; then
21721   case " $LIBOBJS " in
21722   *" strtod.$ac_objext "* ) ;;
21723   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
21724  ;;
21725 esac
21726
21727 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
21728 if test "x$ac_cv_func_pow" = x""yes; then :
21729
21730 fi
21731
21732 if test $ac_cv_func_pow = no; then
21733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
21734 $as_echo_n "checking for pow in -lm... " >&6; }
21735 if test "${ac_cv_lib_m_pow+set}" = set; then :
21736   $as_echo_n "(cached) " >&6
21737 else
21738   ac_check_lib_save_LIBS=$LIBS
21739 LIBS="-lm  $LIBS"
21740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21741 /* end confdefs.h.  */
21742
21743 /* Override any GCC internal prototype to avoid an error.
21744    Use char because int might match the return type of a GCC
21745    builtin and then its argument prototype would still apply.  */
21746 #ifdef __cplusplus
21747 extern "C"
21748 #endif
21749 char pow ();
21750 int
21751 main ()
21752 {
21753 return pow ();
21754   ;
21755   return 0;
21756 }
21757 _ACEOF
21758 if ac_fn_c_try_link "$LINENO"; then :
21759   ac_cv_lib_m_pow=yes
21760 else
21761   ac_cv_lib_m_pow=no
21762 fi
21763 rm -f core conftest.err conftest.$ac_objext \
21764     conftest$ac_exeext conftest.$ac_ext
21765 LIBS=$ac_check_lib_save_LIBS
21766 fi
21767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
21768 $as_echo "$ac_cv_lib_m_pow" >&6; }
21769 if test "x$ac_cv_lib_m_pow" = x""yes; then :
21770   POW_LIB=-lm
21771 else
21772   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
21773 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
21774 fi
21775
21776 fi
21777
21778 fi
21779
21780 for ac_func in vprintf
21781 do :
21782   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21783 if test "x$ac_cv_func_vprintf" = x""yes; then :
21784   cat >>confdefs.h <<_ACEOF
21785 #define HAVE_VPRINTF 1
21786 _ACEOF
21787
21788 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21789 if test "x$ac_cv_func__doprnt" = x""yes; then :
21790
21791 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
21792
21793 fi
21794
21795 fi
21796 done
21797
21798
21799
21800 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
21801 do :
21802   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21803 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21804 eval as_val=\$$as_ac_var
21805    if test "x$as_val" = x""yes; then :
21806   cat >>confdefs.h <<_ACEOF
21807 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21808 _ACEOF
21809
21810 fi
21811 done
21812
21813
21814 #
21815 # Check for clock_gettime().
21816 #
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21818 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21819 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21820   $as_echo_n "(cached) " >&6
21821 else
21822   ac_func_search_save_LIBS=$LIBS
21823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21824 /* end confdefs.h.  */
21825
21826 /* Override any GCC internal prototype to avoid an error.
21827    Use char because int might match the return type of a GCC
21828    builtin and then its argument prototype would still apply.  */
21829 #ifdef __cplusplus
21830 extern "C"
21831 #endif
21832 char clock_gettime ();
21833 int
21834 main ()
21835 {
21836 return clock_gettime ();
21837   ;
21838   return 0;
21839 }
21840 _ACEOF
21841 for ac_lib in '' rt; do
21842   if test -z "$ac_lib"; then
21843     ac_res="none required"
21844   else
21845     ac_res=-l$ac_lib
21846     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21847   fi
21848   if ac_fn_c_try_link "$LINENO"; then :
21849   ac_cv_search_clock_gettime=$ac_res
21850 fi
21851 rm -f core conftest.err conftest.$ac_objext \
21852     conftest$ac_exeext
21853   if test "${ac_cv_search_clock_gettime+set}" = set; then :
21854   break
21855 fi
21856 done
21857 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21858
21859 else
21860   ac_cv_search_clock_gettime=no
21861 fi
21862 rm conftest.$ac_ext
21863 LIBS=$ac_func_search_save_LIBS
21864 fi
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21866 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21867 ac_res=$ac_cv_search_clock_gettime
21868 if test "$ac_res" != no; then :
21869   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21870
21871
21872 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
21873
21874   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
21875 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
21876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21877 /* end confdefs.h.  */
21878 #include <time.h>
21879 int
21880 main ()
21881 {
21882 clockid_t clockType = CLOCK_REALTIME;
21883   ;
21884   return 0;
21885 }
21886 _ACEOF
21887 if ac_fn_c_try_compile "$LINENO"; then :
21888
21889         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21890 $as_echo "yes" >&6; }
21891
21892 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
21893
21894
21895 else
21896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21897 $as_echo "no" >&6; }
21898
21899 fi
21900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21901
21902 else
21903
21904     for ac_func in gettimeofday ftime
21905 do :
21906   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21907 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21908 eval as_val=\$$as_ac_var
21909    if test "x$as_val" = x""yes; then :
21910   cat >>confdefs.h <<_ACEOF
21911 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21912 _ACEOF
21913  break
21914 fi
21915 done
21916
21917
21918
21919 fi
21920
21921
21922 ########
21923 #
21924 # Check for function prototypes
21925 #
21926 ########
21927
21928 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
21929 #include <unistd.h>
21930 "
21931 if test "x$ac_cv_have_decl_pread" = x""yes; then :
21932   ac_have_decl=1
21933 else
21934   ac_have_decl=0
21935 fi
21936
21937 cat >>confdefs.h <<_ACEOF
21938 #define HAVE_DECL_PREAD $ac_have_decl
21939 _ACEOF
21940 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
21941 #include <unistd.h>
21942 "
21943 if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
21944   ac_have_decl=1
21945 else
21946   ac_have_decl=0
21947 fi
21948
21949 cat >>confdefs.h <<_ACEOF
21950 #define HAVE_DECL_PWRITE $ac_have_decl
21951 _ACEOF
21952
21953
21954 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
21955 #include <strings.h>
21956 "
21957 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
21958   ac_have_decl=1
21959 else
21960   ac_have_decl=0
21961 fi
21962
21963 cat >>confdefs.h <<_ACEOF
21964 #define HAVE_DECL_STRLCPY $ac_have_decl
21965 _ACEOF
21966
21967
21968 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
21969 #include <stdio.h>
21970 #include <stdarg.h>
21971 "
21972 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
21973   ac_have_decl=1
21974 else
21975   ac_have_decl=0
21976 fi
21977
21978 cat >>confdefs.h <<_ACEOF
21979 #define HAVE_DECL_VSNPRINTF $ac_have_decl
21980 _ACEOF
21981
21982
21983 ########
21984 #
21985 # C++ Support Tests (For Magick++)
21986 #
21987 ########
21988 have_magick_plus_plus='no'
21989 if test "$with_magick_plus_plus" = 'yes'; then
21990     OLIBS="$LIBS"
21991     LIBS=''
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
21999     # Full set of headers used...
22000     # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
22001     # functional iomanip iosfwd iostream iterator list string strstream utility
22002     ac_ext=cpp
22003 ac_cpp='$CXXCPP $CPPFLAGS'
22004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22007
22008     ac_ext=cpp
22009 ac_cpp='$CXXCPP $CPPFLAGS'
22010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22013 if test -z "$CXX"; then
22014   if test -n "$CCC"; then
22015     CXX=$CCC
22016   else
22017     if test -n "$ac_tool_prefix"; then
22018   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22019   do
22020     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22023 $as_echo_n "checking for $ac_word... " >&6; }
22024 if test "${ac_cv_prog_CXX+set}" = set; then :
22025   $as_echo_n "(cached) " >&6
22026 else
22027   if test -n "$CXX"; then
22028   ac_cv_prog_CXX="$CXX" # Let the user override the test.
22029 else
22030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22031 for as_dir in $PATH
22032 do
22033   IFS=$as_save_IFS
22034   test -z "$as_dir" && as_dir=.
22035     for ac_exec_ext in '' $ac_executable_extensions; do
22036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22037     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
22038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22039     break 2
22040   fi
22041 done
22042   done
22043 IFS=$as_save_IFS
22044
22045 fi
22046 fi
22047 CXX=$ac_cv_prog_CXX
22048 if test -n "$CXX"; then
22049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
22050 $as_echo "$CXX" >&6; }
22051 else
22052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22053 $as_echo "no" >&6; }
22054 fi
22055
22056
22057     test -n "$CXX" && break
22058   done
22059 fi
22060 if test -z "$CXX"; then
22061   ac_ct_CXX=$CXX
22062   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22063 do
22064   # Extract the first word of "$ac_prog", so it can be a program name with args.
22065 set dummy $ac_prog; ac_word=$2
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22067 $as_echo_n "checking for $ac_word... " >&6; }
22068 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
22069   $as_echo_n "(cached) " >&6
22070 else
22071   if test -n "$ac_ct_CXX"; then
22072   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
22073 else
22074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22075 for as_dir in $PATH
22076 do
22077   IFS=$as_save_IFS
22078   test -z "$as_dir" && as_dir=.
22079     for ac_exec_ext in '' $ac_executable_extensions; do
22080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22081     ac_cv_prog_ac_ct_CXX="$ac_prog"
22082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22083     break 2
22084   fi
22085 done
22086   done
22087 IFS=$as_save_IFS
22088
22089 fi
22090 fi
22091 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
22092 if test -n "$ac_ct_CXX"; then
22093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
22094 $as_echo "$ac_ct_CXX" >&6; }
22095 else
22096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22097 $as_echo "no" >&6; }
22098 fi
22099
22100
22101   test -n "$ac_ct_CXX" && break
22102 done
22103
22104   if test "x$ac_ct_CXX" = x; then
22105     CXX="g++"
22106   else
22107     case $cross_compiling:$ac_tool_warned in
22108 yes:)
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22111 ac_tool_warned=yes ;;
22112 esac
22113     CXX=$ac_ct_CXX
22114   fi
22115 fi
22116
22117   fi
22118 fi
22119 # Provide some information about the compiler.
22120 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
22121 set X $ac_compile
22122 ac_compiler=$2
22123 for ac_option in --version -v -V -qversion; do
22124   { { ac_try="$ac_compiler $ac_option >&5"
22125 case "(($ac_try" in
22126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22127   *) ac_try_echo=$ac_try;;
22128 esac
22129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22130 $as_echo "$ac_try_echo"; } >&5
22131   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
22132   ac_status=$?
22133   if test -s conftest.err; then
22134     sed '10a\
22135 ... rest of stderr output deleted ...
22136          10q' conftest.err >conftest.er1
22137     cat conftest.er1 >&5
22138   fi
22139   rm -f conftest.er1 conftest.err
22140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22141   test $ac_status = 0; }
22142 done
22143
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
22145 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22146 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
22147   $as_echo_n "(cached) " >&6
22148 else
22149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22150 /* end confdefs.h.  */
22151
22152 int
22153 main ()
22154 {
22155 #ifndef __GNUC__
22156        choke me
22157 #endif
22158
22159   ;
22160   return 0;
22161 }
22162 _ACEOF
22163 if ac_fn_cxx_try_compile "$LINENO"; then :
22164   ac_compiler_gnu=yes
22165 else
22166   ac_compiler_gnu=no
22167 fi
22168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22169 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
22170
22171 fi
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
22173 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
22174 if test $ac_compiler_gnu = yes; then
22175   GXX=yes
22176 else
22177   GXX=
22178 fi
22179 ac_test_CXXFLAGS=${CXXFLAGS+set}
22180 ac_save_CXXFLAGS=$CXXFLAGS
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
22182 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
22183 if test "${ac_cv_prog_cxx_g+set}" = set; then :
22184   $as_echo_n "(cached) " >&6
22185 else
22186   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
22187    ac_cxx_werror_flag=yes
22188    ac_cv_prog_cxx_g=no
22189    CXXFLAGS="-g"
22190    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22191 /* end confdefs.h.  */
22192
22193 int
22194 main ()
22195 {
22196
22197   ;
22198   return 0;
22199 }
22200 _ACEOF
22201 if ac_fn_cxx_try_compile "$LINENO"; then :
22202   ac_cv_prog_cxx_g=yes
22203 else
22204   CXXFLAGS=""
22205       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22206 /* end confdefs.h.  */
22207
22208 int
22209 main ()
22210 {
22211
22212   ;
22213   return 0;
22214 }
22215 _ACEOF
22216 if ac_fn_cxx_try_compile "$LINENO"; then :
22217
22218 else
22219   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22220          CXXFLAGS="-g"
22221          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22222 /* end confdefs.h.  */
22223
22224 int
22225 main ()
22226 {
22227
22228   ;
22229   return 0;
22230 }
22231 _ACEOF
22232 if ac_fn_cxx_try_compile "$LINENO"; then :
22233   ac_cv_prog_cxx_g=yes
22234 fi
22235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22236 fi
22237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22238 fi
22239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22240    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22241 fi
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
22243 $as_echo "$ac_cv_prog_cxx_g" >&6; }
22244 if test "$ac_test_CXXFLAGS" = set; then
22245   CXXFLAGS=$ac_save_CXXFLAGS
22246 elif test $ac_cv_prog_cxx_g = yes; then
22247   if test "$GXX" = yes; then
22248     CXXFLAGS="-g -O2"
22249   else
22250     CXXFLAGS="-g"
22251   fi
22252 else
22253   if test "$GXX" = yes; then
22254     CXXFLAGS="-O2"
22255   else
22256     CXXFLAGS=
22257   fi
22258 fi
22259 ac_ext=cpp
22260 ac_cpp='$CXXCPP $CPPFLAGS'
22261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22264
22265 depcc="$CXX"  am_compiler_list=
22266
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
22268 $as_echo_n "checking dependency style of $depcc... " >&6; }
22269 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
22270   $as_echo_n "(cached) " >&6
22271 else
22272   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22273   # We make a subdir and do the tests there.  Otherwise we can end up
22274   # making bogus files that we don't know about and never remove.  For
22275   # instance it was reported that on HP-UX the gcc test will end up
22276   # making a dummy file named `D' -- because `-MD' means `put the output
22277   # in D'.
22278   mkdir conftest.dir
22279   # Copy depcomp to subdir because otherwise we won't find it if we're
22280   # using a relative directory.
22281   cp "$am_depcomp" conftest.dir
22282   cd conftest.dir
22283   # We will build objects and dependencies in a subdirectory because
22284   # it helps to detect inapplicable dependency modes.  For instance
22285   # both Tru64's cc and ICC support -MD to output dependencies as a
22286   # side effect of compilation, but ICC will put the dependencies in
22287   # the current directory while Tru64 will put them in the object
22288   # directory.
22289   mkdir sub
22290
22291   am_cv_CXX_dependencies_compiler_type=none
22292   if test "$am_compiler_list" = ""; then
22293      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22294   fi
22295   am__universal=false
22296   case " $depcc " in #(
22297      *\ -arch\ *\ -arch\ *) am__universal=true ;;
22298      esac
22299
22300   for depmode in $am_compiler_list; do
22301     # Setup a source with many dependencies, because some compilers
22302     # like to wrap large dependency lists on column 80 (with \), and
22303     # we should not choose a depcomp mode which is confused by this.
22304     #
22305     # We need to recreate these files for each test, as the compiler may
22306     # overwrite some of them when testing with obscure command lines.
22307     # This happens at least with the AIX C compiler.
22308     : > sub/conftest.c
22309     for i in 1 2 3 4 5 6; do
22310       echo '#include "conftst'$i'.h"' >> sub/conftest.c
22311       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22312       # Solaris 8's {/usr,}/bin/sh.
22313       touch sub/conftst$i.h
22314     done
22315     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22316
22317     # We check with `-c' and `-o' for the sake of the "dashmstdout"
22318     # mode.  It turns out that the SunPro C++ compiler does not properly
22319     # handle `-M -o', and we need to detect this.  Also, some Intel
22320     # versions had trouble with output in subdirs
22321     am__obj=sub/conftest.${OBJEXT-o}
22322     am__minus_obj="-o $am__obj"
22323     case $depmode in
22324     gcc)
22325       # This depmode causes a compiler race in universal mode.
22326       test "$am__universal" = false || continue
22327       ;;
22328     nosideeffect)
22329       # after this tag, mechanisms are not by side-effect, so they'll
22330       # only be used when explicitly requested
22331       if test "x$enable_dependency_tracking" = xyes; then
22332         continue
22333       else
22334         break
22335       fi
22336       ;;
22337     msvisualcpp | msvcmsys)
22338       # This compiler won't grok `-c -o', but also, the minuso test has
22339       # not run yet.  These depmodes are late enough in the game, and
22340       # so weak that their functioning should not be impacted.
22341       am__obj=conftest.${OBJEXT-o}
22342       am__minus_obj=
22343       ;;
22344     none) break ;;
22345     esac
22346     if depmode=$depmode \
22347        source=sub/conftest.c object=$am__obj \
22348        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22349        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
22350          >/dev/null 2>conftest.err &&
22351        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
22352        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22353        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
22354        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22355       # icc doesn't choke on unknown options, it will just issue warnings
22356       # or remarks (even with -Werror).  So we grep stderr for any message
22357       # that says an option was ignored or not supported.
22358       # When given -MP, icc 7.0 and 7.1 complain thusly:
22359       #   icc: Command line warning: ignoring option '-M'; no argument required
22360       # The diagnosis changed in icc 8.0:
22361       #   icc: Command line remark: option '-MP' not supported
22362       if (grep 'ignoring option' conftest.err ||
22363           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22364         am_cv_CXX_dependencies_compiler_type=$depmode
22365         break
22366       fi
22367     fi
22368   done
22369
22370   cd ..
22371   rm -rf conftest.dir
22372 else
22373   am_cv_CXX_dependencies_compiler_type=none
22374 fi
22375
22376 fi
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
22378 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
22379 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
22380
22381  if
22382   test "x$enable_dependency_tracking" != xno \
22383   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
22384   am__fastdepCXX_TRUE=
22385   am__fastdepCXX_FALSE='#'
22386 else
22387   am__fastdepCXX_TRUE='#'
22388   am__fastdepCXX_FALSE=
22389 fi
22390
22391
22392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
22393 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
22394 if test "${ac_cv_cxx_have_bool+set}" = set; then :
22395   $as_echo_n "(cached) " >&6
22396 else
22397
22398  ac_ext=cpp
22399 ac_cpp='$CXXCPP $CPPFLAGS'
22400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22403
22404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22405 /* end confdefs.h.  */
22406
22407 int f(int  x){return 1;}
22408 int f(char x){return 1;}
22409 int f(bool x){return 1;}
22410
22411 int
22412 main ()
22413 {
22414 bool b = true; return f(b);
22415   ;
22416   return 0;
22417 }
22418 _ACEOF
22419 if ac_fn_cxx_try_compile "$LINENO"; then :
22420   ac_cv_cxx_have_bool=yes
22421 else
22422   ac_cv_cxx_have_bool=no
22423 fi
22424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22425  ac_ext=cpp
22426 ac_cpp='$CXXCPP $CPPFLAGS'
22427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22430
22431
22432 fi
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
22434 $as_echo "$ac_cv_cxx_have_bool" >&6; }
22435 if test "$ac_cv_cxx_have_bool" = yes; then
22436
22437 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
22438
22439 fi
22440
22441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
22442 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
22443 if test "${ac_cv_cxx_have_namespaces+set}" = set; then :
22444   $as_echo_n "(cached) " >&6
22445 else
22446
22447  ac_ext=cpp
22448 ac_cpp='$CXXCPP $CPPFLAGS'
22449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22452
22453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22454 /* end confdefs.h.  */
22455 namespace Outer { namespace Inner { int i = 0; }}
22456 int
22457 main ()
22458 {
22459 using namespace Outer::Inner; return i;
22460   ;
22461   return 0;
22462 }
22463 _ACEOF
22464 if ac_fn_cxx_try_compile "$LINENO"; then :
22465   ac_cv_cxx_have_namespaces=yes
22466 else
22467   ac_cv_cxx_have_namespaces=no
22468 fi
22469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22470  ac_ext=cpp
22471 ac_cpp='$CXXCPP $CPPFLAGS'
22472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22475
22476
22477 fi
22478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
22479 $as_echo "$ac_cv_cxx_have_namespaces" >&6; }
22480 if test "$ac_cv_cxx_have_namespaces" = yes; then
22481
22482 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
22483
22484 fi
22485
22486     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
22487 $as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
22488 if test "${ac_cv_cxx_have_std_namespace+set}" = set; then :
22489   $as_echo_n "(cached) " >&6
22490 else
22491
22492  ac_ext=cpp
22493 ac_cpp='$CXXCPP $CPPFLAGS'
22494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22497
22498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22499 /* end confdefs.h.  */
22500 #include <iostream>
22501         std::istream& is = std::cin;
22502
22503 int
22504 main ()
22505 {
22506 return 0;
22507   ;
22508   return 0;
22509 }
22510 _ACEOF
22511 if ac_fn_cxx_try_compile "$LINENO"; then :
22512   ac_cv_cxx_have_std_namespace=yes
22513 else
22514   ac_cv_cxx_have_std_namespace=no
22515 fi
22516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22517  ac_ext=cpp
22518 ac_cpp='$CXXCPP $CPPFLAGS'
22519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22522
22523
22524 fi
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
22526 $as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
22527 if test "$ac_cv_cxx_have_std_namespace" = yes; then
22528
22529 $as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
22530
22531 fi
22532
22533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
22534 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
22535 if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
22536   $as_echo_n "(cached) " >&6
22537 else
22538
22539
22540  ac_ext=cpp
22541 ac_cpp='$CXXCPP $CPPFLAGS'
22542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22545
22546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22547 /* end confdefs.h.  */
22548 #include <iostream>
22549 #include <map>
22550 #include <iomanip>
22551 #include <cmath>
22552 #ifdef HAVE_NAMESPACES
22553 using namespace std;
22554 #endif
22555 int
22556 main ()
22557 {
22558 return 0;
22559   ;
22560   return 0;
22561 }
22562 _ACEOF
22563 if ac_fn_cxx_try_compile "$LINENO"; then :
22564   ac_cv_cxx_have_std_libs=yes
22565 else
22566   ac_cv_cxx_have_std_libs=no
22567 fi
22568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22569  ac_ext=cpp
22570 ac_cpp='$CXXCPP $CPPFLAGS'
22571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22574
22575
22576 fi
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
22578 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
22579 if test "$ac_cv_cxx_have_std_libs" = yes; then
22580
22581 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
22582
22583 fi
22584
22585     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
22586 $as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
22587 if test "${ac_cv_cxx_have_lstring+set}" = set; then :
22588   $as_echo_n "(cached) " >&6
22589 else
22590
22591  ac_ext=cpp
22592 ac_cpp='$CXXCPP $CPPFLAGS'
22593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22596
22597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22598 /* end confdefs.h.  */
22599 const wchar_t* s=L"wide string";
22600 _ACEOF
22601 if ac_fn_cxx_try_compile "$LINENO"; then :
22602   ac_cv_cxx_have_lstring=yes
22603 else
22604   ac_cv_cxx_have_lstring=no
22605 fi
22606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22607  ac_ext=cpp
22608 ac_cpp='$CXXCPP $CPPFLAGS'
22609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22612
22613
22614 fi
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
22616 $as_echo "$ac_cv_cxx_have_lstring" >&6; }
22617 if test "$ac_cv_cxx_have_lstring" = yes; then
22618
22619 $as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
22620
22621 fi
22622
22623
22624   OPENMP_CXXFLAGS=
22625   # Check whether --enable-openmp was given.
22626 if test "${enable_openmp+set}" = set; then :
22627   enableval=$enable_openmp;
22628 fi
22629
22630   if test "$enable_openmp" != no; then
22631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
22632 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
22633 if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
22634   $as_echo_n "(cached) " >&6
22635 else
22636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22637 /* end confdefs.h.  */
22638
22639 #ifndef _OPENMP
22640  choke me
22641 #endif
22642 #include <omp.h>
22643 int main () { return omp_get_num_threads (); }
22644
22645 _ACEOF
22646 if ac_fn_cxx_try_link "$LINENO"; then :
22647   ac_cv_prog_cxx_openmp='none needed'
22648 else
22649   ac_cv_prog_cxx_openmp='unsupported'
22650                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
22651             ac_save_CXXFLAGS=$CXXFLAGS
22652             CXXFLAGS="$CXXFLAGS $ac_option"
22653             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22654 /* end confdefs.h.  */
22655
22656 #ifndef _OPENMP
22657  choke me
22658 #endif
22659 #include <omp.h>
22660 int main () { return omp_get_num_threads (); }
22661
22662 _ACEOF
22663 if ac_fn_cxx_try_link "$LINENO"; then :
22664   ac_cv_prog_cxx_openmp=$ac_option
22665 fi
22666 rm -f core conftest.err conftest.$ac_objext \
22667     conftest$ac_exeext conftest.$ac_ext
22668             CXXFLAGS=$ac_save_CXXFLAGS
22669             if test "$ac_cv_prog_cxx_openmp" != unsupported; then
22670               break
22671             fi
22672           done
22673 fi
22674 rm -f core conftest.err conftest.$ac_objext \
22675     conftest$ac_exeext conftest.$ac_ext
22676 fi
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
22678 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
22679     case $ac_cv_prog_cxx_openmp in #(
22680       "none needed" | unsupported)
22681         ;; #(
22682       *)
22683         OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
22684     esac
22685   fi
22686
22687
22688     ac_ext=c
22689 ac_cpp='$CPP $CPPFLAGS'
22690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22693
22694
22695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
22696 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
22697     if \
22698         test $ac_cv_cxx_have_bool = 'yes' && \
22699         test $ac_cv_cxx_have_lstring = 'yes' && \
22700         test $ac_cv_cxx_have_namespaces = 'yes' && \
22701         test $ac_cv_cxx_have_std_libs = 'yes' && \
22702         test $ac_cv_cxx_have_std_namespace = 'yes'; then
22703         have_magick_plus_plus='yes'
22704     else
22705         have_magick_plus_plus='no (failed tests)'
22706     fi
22707     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
22708 $as_echo "$have_magick_plus_plus" >&6; }
22709     LIBS="$OLIBS"
22710 fi
22711  if test "$have_magick_plus_plus" = 'yes'; then
22712   WITH_MAGICK_PLUS_PLUS_TRUE=
22713   WITH_MAGICK_PLUS_PLUS_FALSE='#'
22714 else
22715   WITH_MAGICK_PLUS_PLUS_TRUE='#'
22716   WITH_MAGICK_PLUS_PLUS_FALSE=
22717 fi
22718
22719
22720 # Only check for delegate libraries in subdirectories if requested.
22721 if test "$enable_delegate_build" != 'no'; then
22722     # Check for delegate sub-directories and add -I & -L options as required.
22723     # This presumes that delegates are installed as detailed in the ImageMagick
22724     # README. If delegates are installed in a standard location where the
22725     # compiler will automatically find them then these options should not be
22726     # required.
22727
22728     #
22729     # Most delegates have includes in the same directory as the library, but not all...
22730     #
22731     # Includes
22732     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
22733         if test -d "$builddir/$dir"; then
22734             CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
22735         else
22736             if test -d "$srcdirfull/$dir"; then
22737                 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
22738             fi
22739         fi
22740     done
22741
22742     # Libraries
22743     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
22744     if test -d "$builddir/$dir/.libs"; then
22745         LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
22746     else
22747         if test -d "$srcdirfull/$dir/.libs"; then
22748             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
22749         fi
22750     fi
22751     if test -d "$builddir/$dir"; then
22752         LDFLAGS="$LDFLAGS -L$builddir/$dir"
22753     else
22754         if test -d "$srcdirfull/$dir"; then
22755             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
22756         fi
22757     fi
22758   done
22759 fi
22760
22761 # Assume that delegate headers reside under same directory as ImageMagick
22762 # installation prefix.
22763 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
22764
22765 #
22766 # Find the X11 RGB database
22767 #
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
22769 $as_echo_n "checking for X11 configure files... " >&6; }
22770 if test "${im_cv_x_configure+set}" = set; then :
22771   $as_echo_n "(cached) " >&6
22772 else
22773   # Look for the header file in a standard set of common directories.
22774 # Check X11 before X11Rn because it is often a symlink to the current release.
22775     for ac_dir in          \
22776     /lib/usr/lib/X11       \
22777     /usr/X11/lib           \
22778     /usr/X11R4/lib         \
22779     /usr/X11R5/lib         \
22780     /usr/X11R6/lib         \
22781     /usr/X11R7/lib         \
22782     /usr/X386/lib          \
22783     /usr/XFree86/lib/X11   \
22784     /usr/athena/lib        \
22785     /usr/lib               \
22786     /usr/lib/X11           \
22787     /usr/lib/X11R4         \
22788     /usr/lib/X11R5         \
22789     /usr/lib/X11R6         \
22790     /usr/lib/X11R7         \
22791     /usr/local/X11/lib     \
22792     /usr/local/X11R4/lib   \
22793     /usr/local/X11R5/lib   \
22794     /usr/local/X11R6/lib   \
22795     /usr/local/lib         \
22796     /usr/local/lib/X11     \
22797     /usr/local/lib/X11R4   \
22798     /usr/local/lib/X11R5   \
22799     /usr/local/lib/X11R6   \
22800     /usr/local/lib/X11R7   \
22801     /usr/local/x11r5/lib   \
22802     /usr/lpp/Xamples/lib   \
22803     /usr/openwin/lib       \
22804     /usr/openwin/share/lib \
22805     /usr/unsupported/lib   \
22806     /usr/x386/lib          \
22807     ; do
22808     if test -f "$ac_dir/X11/rgb.txt"; then
22809       im_cv_x_configure="$ac_dir/X11/"
22810       break
22811     elif test -f "$ac_dir/rgb.txt"; then
22812       im_cv_x_configure="$ac_dir/"
22813       break
22814     fi
22815
22816   done
22817 fi
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
22819 $as_echo "$im_cv_x_configure" >&6; }
22820 X11_CONFIGURE_PATH="$im_cv_x_configure"
22821 case "${build_os}" in
22822   mingw* )
22823     X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
22824   ;;
22825 esac
22826
22827 cat >>confdefs.h <<_ACEOF
22828 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
22829 _ACEOF
22830
22831
22832 #
22833 # Find OpenMP library
22834 #
22835 GOMP_LIBS=''
22836 if test "$enable_openmp" != 'no'; then
22837   if test "${GCC}" = "yes"; then
22838     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
22839 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
22840 if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
22841   $as_echo_n "(cached) " >&6
22842 else
22843   ac_check_lib_save_LIBS=$LIBS
22844 LIBS="-lgomp  $LIBS"
22845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22846 /* end confdefs.h.  */
22847
22848 /* Override any GCC internal prototype to avoid an error.
22849    Use char because int might match the return type of a GCC
22850    builtin and then its argument prototype would still apply.  */
22851 #ifdef __cplusplus
22852 extern "C"
22853 #endif
22854 char GOMP_parallel_start ();
22855 int
22856 main ()
22857 {
22858 return GOMP_parallel_start ();
22859   ;
22860   return 0;
22861 }
22862 _ACEOF
22863 if ac_fn_c_try_link "$LINENO"; then :
22864   ac_cv_lib_gomp_GOMP_parallel_start=yes
22865 else
22866   ac_cv_lib_gomp_GOMP_parallel_start=no
22867 fi
22868 rm -f core conftest.err conftest.$ac_objext \
22869     conftest$ac_exeext conftest.$ac_ext
22870 LIBS=$ac_check_lib_save_LIBS
22871 fi
22872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
22873 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
22874 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
22875   GOMP_LIBS="-lgomp"
22876 fi
22877   # gcc
22878   else
22879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
22880 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
22881 if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
22882   $as_echo_n "(cached) " >&6
22883 else
22884   ac_check_lib_save_LIBS=$LIBS
22885 LIBS="-lmtsk  $LIBS"
22886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22887 /* end confdefs.h.  */
22888
22889 /* Override any GCC internal prototype to avoid an error.
22890    Use char because int might match the return type of a GCC
22891    builtin and then its argument prototype would still apply.  */
22892 #ifdef __cplusplus
22893 extern "C"
22894 #endif
22895 char sunw_mp_register_warn ();
22896 int
22897 main ()
22898 {
22899 return sunw_mp_register_warn ();
22900   ;
22901   return 0;
22902 }
22903 _ACEOF
22904 if ac_fn_c_try_link "$LINENO"; then :
22905   ac_cv_lib_mtsk_sunw_mp_register_warn=yes
22906 else
22907   ac_cv_lib_mtsk_sunw_mp_register_warn=no
22908 fi
22909 rm -f core conftest.err conftest.$ac_objext \
22910     conftest$ac_exeext conftest.$ac_ext
22911 LIBS=$ac_check_lib_save_LIBS
22912 fi
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
22914 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
22915 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
22916   GOMP_LIBS="-lmtsk"
22917 fi
22918   # solaris cc
22919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
22920 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
22921 if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
22922   $as_echo_n "(cached) " >&6
22923 else
22924   ac_check_lib_save_LIBS=$LIBS
22925 LIBS="-lxlsmp  $LIBS"
22926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22927 /* end confdefs.h.  */
22928
22929 /* Override any GCC internal prototype to avoid an error.
22930    Use char because int might match the return type of a GCC
22931    builtin and then its argument prototype would still apply.  */
22932 #ifdef __cplusplus
22933 extern "C"
22934 #endif
22935 char _xlsmpFlush ();
22936 int
22937 main ()
22938 {
22939 return _xlsmpFlush ();
22940   ;
22941   return 0;
22942 }
22943 _ACEOF
22944 if ac_fn_c_try_link "$LINENO"; then :
22945   ac_cv_lib_xlsmp__xlsmpFlush=yes
22946 else
22947   ac_cv_lib_xlsmp__xlsmpFlush=no
22948 fi
22949 rm -f core conftest.err conftest.$ac_objext \
22950     conftest$ac_exeext conftest.$ac_ext
22951 LIBS=$ac_check_lib_save_LIBS
22952 fi
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
22954 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
22955 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
22956   GOMP_LIBS="-lxlsmp"
22957 fi
22958   # AIX xlc
22959     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
22960 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
22961 if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
22962   $as_echo_n "(cached) " >&6
22963 else
22964   ac_check_lib_save_LIBS=$LIBS
22965 LIBS="-lmp  $LIBS"
22966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22967 /* end confdefs.h.  */
22968
22969 /* Override any GCC internal prototype to avoid an error.
22970    Use char because int might match the return type of a GCC
22971    builtin and then its argument prototype would still apply.  */
22972 #ifdef __cplusplus
22973 extern "C"
22974 #endif
22975 char mp_destroy ();
22976 int
22977 main ()
22978 {
22979 return mp_destroy ();
22980   ;
22981   return 0;
22982 }
22983 _ACEOF
22984 if ac_fn_c_try_link "$LINENO"; then :
22985   ac_cv_lib_mp_mp_destroy=yes
22986 else
22987   ac_cv_lib_mp_mp_destroy=no
22988 fi
22989 rm -f core conftest.err conftest.$ac_objext \
22990     conftest$ac_exeext conftest.$ac_ext
22991 LIBS=$ac_check_lib_save_LIBS
22992 fi
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
22994 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
22995 if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
22996   GOMP_LIBS="-lmp"
22997 fi
22998   # SGI IRIX 6.5 MIPSpro C/C++
22999   fi
23000   LIBS="$GOMP_LIBS $LIBS"
23001 fi
23002
23003
23004 #
23005 # Find Posix threads library
23006 #
23007 THREAD_LIBS=''
23008 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
23009
23010     if test "x$PTHREAD_LIBS" = "x"; then
23011     case "${host_cpu}-${host_os}" in
23012       *-freebsd*)
23013
23014
23015
23016 ac_ext=c
23017 ac_cpp='$CPP $CPPFLAGS'
23018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23021
23022 magick_pthread_lib_ok=no
23023
23024 LIB=-lc_r
23025 save_LIBS="$LIBS"
23026 LIBS="$LIBS $LIB"
23027
23028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
23029 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
23030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23031 /* end confdefs.h.  */
23032 #include <pthread.h>
23033 int
23034 main ()
23035 {
23036   pthread_t th;
23037   pthread_join(th, 0);
23038   pthread_attr_init(0);
23039   pthread_cleanup_push(0, 0);
23040   pthread_create(0,0,0,0);
23041   pthread_cleanup_pop(0);
23042   ;
23043   return 0;
23044 }
23045 _ACEOF
23046 if ac_fn_c_try_link "$LINENO"; then :
23047   magick_pthread_lib_ok=yes
23048 fi
23049 rm -f core conftest.err conftest.$ac_objext \
23050     conftest$ac_exeext conftest.$ac_ext
23051
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
23053 $as_echo "${magick_pthread_lib_ok}" >&6; }
23054 if test "$magick_pthread_lib_ok" = yes
23055 then
23056   PTHREAD_LIBS=-lc_r
23057   :
23058 else
23059
23060   :
23061 fi
23062
23063 LIBS="$save_LIBS"
23064
23065 ac_ext=c
23066 ac_cpp='$CPP $CPPFLAGS'
23067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23070
23071  ;;
23072     esac
23073     fi
23074
23075     for lib in pthread pthreads; do
23076         if test "x$PTHREAD_LIBS" = "x"; then
23077
23078
23079
23080 ac_ext=c
23081 ac_cpp='$CPP $CPPFLAGS'
23082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23085
23086 magick_pthread_lib_ok=no
23087
23088 LIB=-l$lib
23089 save_LIBS="$LIBS"
23090 LIBS="$LIBS $LIB"
23091
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
23093 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
23094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23095 /* end confdefs.h.  */
23096 #include <pthread.h>
23097 int
23098 main ()
23099 {
23100   pthread_t th;
23101   pthread_join(th, 0);
23102   pthread_attr_init(0);
23103   pthread_cleanup_push(0, 0);
23104   pthread_create(0,0,0,0);
23105   pthread_cleanup_pop(0);
23106   ;
23107   return 0;
23108 }
23109 _ACEOF
23110 if ac_fn_c_try_link "$LINENO"; then :
23111   magick_pthread_lib_ok=yes
23112 fi
23113 rm -f core conftest.err conftest.$ac_objext \
23114     conftest$ac_exeext conftest.$ac_ext
23115
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
23117 $as_echo "${magick_pthread_lib_ok}" >&6; }
23118 if test "$magick_pthread_lib_ok" = yes
23119 then
23120   PTHREAD_LIBS=-l$lib
23121   :
23122 else
23123
23124   :
23125 fi
23126
23127 LIBS="$save_LIBS"
23128
23129 ac_ext=c
23130 ac_cpp='$CPP $CPPFLAGS'
23131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23134
23135
23136         fi
23137     done
23138
23139     THREAD_LIBS="$PTHREAD_LIBS"
23140     LIBS="$LIBS $THREAD_LIBS"
23141 fi
23142
23143
23144 #
23145 # Check for umem.
23146 #
23147 have_umem='no'
23148 UMEM_LIBS=''
23149 if test "$with_umem" != 'no'; then
23150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
23151 $as_echo_n "checking for UMEM support ... " >&6; }
23152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
23153 $as_echo "" >&6; }
23154   failed=0
23155   passed=0
23156   ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
23157 if test "x$ac_cv_header_umem_h" = x""yes; then :
23158   passed=`expr $passed + 1`
23159 else
23160   failed=`expr $failed + 1`
23161 fi
23162
23163
23164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
23165 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
23166 if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
23167   $as_echo_n "(cached) " >&6
23168 else
23169   ac_check_lib_save_LIBS=$LIBS
23170 LIBS="-lumem  $LIBS"
23171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23172 /* end confdefs.h.  */
23173
23174 /* Override any GCC internal prototype to avoid an error.
23175    Use char because int might match the return type of a GCC
23176    builtin and then its argument prototype would still apply.  */
23177 #ifdef __cplusplus
23178 extern "C"
23179 #endif
23180 char umem_alloc ();
23181 int
23182 main ()
23183 {
23184 return umem_alloc ();
23185   ;
23186   return 0;
23187 }
23188 _ACEOF
23189 if ac_fn_c_try_link "$LINENO"; then :
23190   ac_cv_lib_umem_umem_alloc=yes
23191 else
23192   ac_cv_lib_umem_umem_alloc=no
23193 fi
23194 rm -f core conftest.err conftest.$ac_objext \
23195     conftest$ac_exeext conftest.$ac_ext
23196 LIBS=$ac_check_lib_save_LIBS
23197 fi
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
23199 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
23200 if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
23201   passed=`expr $passed + 1`
23202 else
23203   failed=`expr $failed + 1`
23204 fi
23205
23206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
23207 $as_echo_n "checking for umem_free in -lumem... " >&6; }
23208 if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
23209   $as_echo_n "(cached) " >&6
23210 else
23211   ac_check_lib_save_LIBS=$LIBS
23212 LIBS="-lumem  $LIBS"
23213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23214 /* end confdefs.h.  */
23215
23216 /* Override any GCC internal prototype to avoid an error.
23217    Use char because int might match the return type of a GCC
23218    builtin and then its argument prototype would still apply.  */
23219 #ifdef __cplusplus
23220 extern "C"
23221 #endif
23222 char umem_free ();
23223 int
23224 main ()
23225 {
23226 return umem_free ();
23227   ;
23228   return 0;
23229 }
23230 _ACEOF
23231 if ac_fn_c_try_link "$LINENO"; then :
23232   ac_cv_lib_umem_umem_free=yes
23233 else
23234   ac_cv_lib_umem_umem_free=no
23235 fi
23236 rm -f core conftest.err conftest.$ac_objext \
23237     conftest$ac_exeext conftest.$ac_ext
23238 LIBS=$ac_check_lib_save_LIBS
23239 fi
23240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
23241 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
23242 if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
23243   passed=`expr $passed + 1`
23244 else
23245   failed=`expr $failed + 1`
23246 fi
23247
23248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
23249 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
23250   if test $passed -gt 0; then
23251     if test $failed -gt 0; then
23252       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
23253 $as_echo "no -- some components failed test" >&6; }
23254       have_umem='no (failed tests)'
23255     else
23256       UMEM_LIBS='-lumem'
23257       LIBS="$UMEM_LIBS $LIBS"
23258
23259 $as_echo "#define HasUMEM 1" >>confdefs.h
23260
23261       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23262 $as_echo "yes" >&6; }
23263       have_umem='yes'
23264     fi
23265   else
23266     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23267 $as_echo "no" >&6; }
23268   fi
23269 fi
23270  if test "$have_umem" = 'yes'; then
23271   HasUMEM_TRUE=
23272   HasUMEM_FALSE='#'
23273 else
23274   HasUMEM_TRUE='#'
23275   HasUMEM_FALSE=
23276 fi
23277
23278
23279
23280 #
23281 # Add support for ccmalloc memory debugging library if requested
23282 #
23283 have_ccmalloc='no'
23284 CCMALLOC_LIBS=''
23285 if test "$enable_ccmalloc" = 'yes'; then
23286     # Extract the first word of "ccmalloc", so it can be a program name with args.
23287 set dummy ccmalloc; ac_word=$2
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23289 $as_echo_n "checking for $ac_word... " >&6; }
23290 if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
23291   $as_echo_n "(cached) " >&6
23292 else
23293   case $CCMALLOCDelegate in
23294   [\\/]* | ?:[\\/]*)
23295   ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
23296   ;;
23297   *)
23298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23299 for as_dir in $PATH
23300 do
23301   IFS=$as_save_IFS
23302   test -z "$as_dir" && as_dir=.
23303     for ac_exec_ext in '' $ac_executable_extensions; do
23304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23305     ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
23306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23307     break 2
23308   fi
23309 done
23310   done
23311 IFS=$as_save_IFS
23312
23313   ;;
23314 esac
23315 fi
23316 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
23317 if test -n "$CCMALLOCDelegate"; then
23318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
23319 $as_echo "$CCMALLOCDelegate" >&6; }
23320 else
23321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23322 $as_echo "no" >&6; }
23323 fi
23324
23325
23326     if test -n "$CCMALLOCDelegate"; then
23327         eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
23328         OLIBS="$LIBS"
23329         # Assume that gcc is used with ccmalloc.
23330         LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
23331        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
23332 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
23333 if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
23334   $as_echo_n "(cached) " >&6
23335 else
23336   ac_check_lib_save_LIBS=$LIBS
23337 LIBS="-lccmalloc -ldl $LIBS"
23338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23339 /* end confdefs.h.  */
23340
23341 /* Override any GCC internal prototype to avoid an error.
23342    Use char because int might match the return type of a GCC
23343    builtin and then its argument prototype would still apply.  */
23344 #ifdef __cplusplus
23345 extern "C"
23346 #endif
23347 char ccmalloc_malloc ();
23348 int
23349 main ()
23350 {
23351 return ccmalloc_malloc ();
23352   ;
23353   return 0;
23354 }
23355 _ACEOF
23356 if ac_fn_c_try_link "$LINENO"; then :
23357   ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
23358 else
23359   ac_cv_lib_ccmalloc_ccmalloc_malloc=no
23360 fi
23361 rm -f core conftest.err conftest.$ac_objext \
23362     conftest$ac_exeext conftest.$ac_ext
23363 LIBS=$ac_check_lib_save_LIBS
23364 fi
23365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
23366 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
23367 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
23368   CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
23369 fi
23370
23371         if test -n "$CCMALLOC_LIBS"; then
23372             LIBS="$OLIBS"
23373             LIBS="$LIBS $CCMALLOC_LIBS"
23374             have_ccmalloc='yes'
23375         else
23376             LIBS="$OLIBS"
23377         fi
23378     fi
23379 fi
23380
23381 #
23382 # Add support for efence memory debugging library if requested
23383 #
23384 if test "$enable_efence" = 'yes'; then
23385     EFENCE_LIBS='-lefence'
23386     LIBS="$EFENCE_LIBS $LIBS"
23387 fi
23388
23389 #
23390 # Find math library
23391 #
23392 MATH_LIBS=''
23393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23394 $as_echo_n "checking for sqrt in -lm... " >&6; }
23395 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23396   $as_echo_n "(cached) " >&6
23397 else
23398   ac_check_lib_save_LIBS=$LIBS
23399 LIBS="-lm  $LIBS"
23400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23401 /* end confdefs.h.  */
23402
23403 /* Override any GCC internal prototype to avoid an error.
23404    Use char because int might match the return type of a GCC
23405    builtin and then its argument prototype would still apply.  */
23406 #ifdef __cplusplus
23407 extern "C"
23408 #endif
23409 char sqrt ();
23410 int
23411 main ()
23412 {
23413 return sqrt ();
23414   ;
23415   return 0;
23416 }
23417 _ACEOF
23418 if ac_fn_c_try_link "$LINENO"; then :
23419   ac_cv_lib_m_sqrt=yes
23420 else
23421   ac_cv_lib_m_sqrt=no
23422 fi
23423 rm -f core conftest.err conftest.$ac_objext \
23424     conftest$ac_exeext conftest.$ac_ext
23425 LIBS=$ac_check_lib_save_LIBS
23426 fi
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23428 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
23429 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23430   MATH_LIBS="-lm"
23431 fi
23432
23433 LIBS="$MATH_LIBS $LIBS"
23434
23435
23436
23437 #
23438 # Check for BZLIB
23439 #
23440
23441
23442 # Check whether --with-bzlib was given.
23443 if test "${with_bzlib+set}" = set; then :
23444   withval=$with_bzlib; with_bzlib=$withval
23445 else
23446   with_bzlib='yes'
23447 fi
23448
23449
23450 if test "$with_bzlib" != 'yes'; then
23451     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
23452 fi
23453
23454 have_bzlib='no'
23455 if test "$with_bzlib" != 'no'; then
23456     BZLIB_LIBS=''
23457     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
23458 $as_echo "-------------------------------------------------------------" >&6; }
23459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
23460 $as_echo_n "checking for BZLIB... " >&6; }
23461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
23462 $as_echo "" >&6; }
23463     failed=0
23464     passed=0
23465     found_libbz=0
23466     ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
23467 if test "x$ac_cv_header_bzlib_h" = x""yes; then :
23468   passed=`expr $passed + 1`
23469 else
23470   failed=`expr $failed + 1`
23471 fi
23472
23473
23474     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
23475 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
23476 if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
23477   $as_echo_n "(cached) " >&6
23478 else
23479   ac_check_lib_save_LIBS=$LIBS
23480 LIBS="-lbz2  $LIBS"
23481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23482 /* end confdefs.h.  */
23483
23484 /* Override any GCC internal prototype to avoid an error.
23485    Use char because int might match the return type of a GCC
23486    builtin and then its argument prototype would still apply.  */
23487 #ifdef __cplusplus
23488 extern "C"
23489 #endif
23490 char BZ2_bzDecompress ();
23491 int
23492 main ()
23493 {
23494 return BZ2_bzDecompress ();
23495   ;
23496   return 0;
23497 }
23498 _ACEOF
23499 if ac_fn_c_try_link "$LINENO"; then :
23500   ac_cv_lib_bz2_BZ2_bzDecompress=yes
23501 else
23502   ac_cv_lib_bz2_BZ2_bzDecompress=no
23503 fi
23504 rm -f core conftest.err conftest.$ac_objext \
23505     conftest$ac_exeext conftest.$ac_ext
23506 LIBS=$ac_check_lib_save_LIBS
23507 fi
23508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
23509 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
23510 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
23511   found_libbz=`expr $found_libbz + 1`
23512 fi
23513
23514     if test "$native_win32_build" = 'yes'; then
23515       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
23516 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
23517 if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
23518   $as_echo_n "(cached) " >&6
23519 else
23520   ac_check_lib_save_LIBS=$LIBS
23521 LIBS="-lbz2  $LIBS"
23522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23523 /* end confdefs.h.  */
23524
23525 /* Override any GCC internal prototype to avoid an error.
23526    Use char because int might match the return type of a GCC
23527    builtin and then its argument prototype would still apply.  */
23528 #ifdef __cplusplus
23529 extern "C"
23530 #endif
23531 char _imp__BZ2_decompress ();
23532 int
23533 main ()
23534 {
23535 return _imp__BZ2_decompress ();
23536   ;
23537   return 0;
23538 }
23539 _ACEOF
23540 if ac_fn_c_try_link "$LINENO"; then :
23541   ac_cv_lib_bz2__imp__BZ2_decompress=yes
23542 else
23543   ac_cv_lib_bz2__imp__BZ2_decompress=no
23544 fi
23545 rm -f core conftest.err conftest.$ac_objext \
23546     conftest$ac_exeext conftest.$ac_ext
23547 LIBS=$ac_check_lib_save_LIBS
23548 fi
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
23550 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
23551 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
23552   found_libbz=`expr $found_libbz + 1`
23553 fi
23554
23555     fi
23556     if test $found_libbz -gt 0; then
23557       passed=`expr $passed + 1`
23558     else
23559       failed=`expr $failed + 1`
23560     fi
23561     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
23562 $as_echo_n "checking if BZLIB package is complete... " >&6; }
23563     if test $passed -gt 0; then
23564       if test $failed -gt 0; then
23565         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
23566 $as_echo "no -- some components failed test" >&6; }
23567         have_bzlib='no (failed tests)'
23568       else
23569         BZLIB_LIBS='-lbz2'
23570         LIBS="$BZLIB_LIBS $LIBS"
23571
23572 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
23573
23574         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23575 $as_echo "yes" >&6; }
23576         have_bzlib='yes'
23577       fi
23578     else
23579       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23580 $as_echo "no" >&6; }
23581     fi
23582 fi
23583  if test "$have_bzlib" = 'yes'; then
23584   BZLIB_DELEGATE_TRUE=
23585   BZLIB_DELEGATE_FALSE='#'
23586 else
23587   BZLIB_DELEGATE_TRUE='#'
23588   BZLIB_DELEGATE_FALSE=
23589 fi
23590
23591
23592
23593 #
23594 # Find the X11 include and library directories.
23595 #
23596 IPC_LIBS=''
23597 X11_LIBS=''
23598 XEXT_LIBS=''
23599 XT_LIBS=''
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
23601 $as_echo_n "checking for X... " >&6; }
23602
23603
23604 # Check whether --with-x was given.
23605 if test "${with_x+set}" = set; then :
23606   withval=$with_x;
23607 fi
23608
23609 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23610 if test "x$with_x" = xno; then
23611   # The user explicitly disabled X.
23612   have_x=disabled
23613 else
23614   case $x_includes,$x_libraries in #(
23615     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
23616     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
23617   $as_echo_n "(cached) " >&6
23618 else
23619   # One or both of the vars are not set, and there is no cached value.
23620 ac_x_includes=no ac_x_libraries=no
23621 rm -f -r conftest.dir
23622 if mkdir conftest.dir; then
23623   cd conftest.dir
23624   cat >Imakefile <<'_ACEOF'
23625 incroot:
23626         @echo incroot='${INCROOT}'
23627 usrlibdir:
23628         @echo usrlibdir='${USRLIBDIR}'
23629 libdir:
23630         @echo libdir='${LIBDIR}'
23631 _ACEOF
23632   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
23633     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23634     for ac_var in incroot usrlibdir libdir; do
23635       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
23636     done
23637     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23638     for ac_extension in a so sl dylib la dll; do
23639       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
23640          test -f "$ac_im_libdir/libX11.$ac_extension"; then
23641         ac_im_usrlibdir=$ac_im_libdir; break
23642       fi
23643     done
23644     # Screen out bogus values from the imake configuration.  They are
23645     # bogus both because they are the default anyway, and because
23646     # using them would break gcc on systems where it needs fixed includes.
23647     case $ac_im_incroot in
23648         /usr/include) ac_x_includes= ;;
23649         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23650     esac
23651     case $ac_im_usrlibdir in
23652         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
23653         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23654     esac
23655   fi
23656   cd ..
23657   rm -f -r conftest.dir
23658 fi
23659
23660 # Standard set of common directories for X headers.
23661 # Check X11 before X11Rn because it is often a symlink to the current release.
23662 ac_x_header_dirs='
23663 /usr/X11/include
23664 /usr/X11R7/include
23665 /usr/X11R6/include
23666 /usr/X11R5/include
23667 /usr/X11R4/include
23668
23669 /usr/include/X11
23670 /usr/include/X11R7
23671 /usr/include/X11R6
23672 /usr/include/X11R5
23673 /usr/include/X11R4
23674
23675 /usr/local/X11/include
23676 /usr/local/X11R7/include
23677 /usr/local/X11R6/include
23678 /usr/local/X11R5/include
23679 /usr/local/X11R4/include
23680
23681 /usr/local/include/X11
23682 /usr/local/include/X11R7
23683 /usr/local/include/X11R6
23684 /usr/local/include/X11R5
23685 /usr/local/include/X11R4
23686
23687 /usr/X386/include
23688 /usr/x386/include
23689 /usr/XFree86/include/X11
23690
23691 /usr/include
23692 /usr/local/include
23693 /usr/unsupported/include
23694 /usr/athena/include
23695 /usr/local/x11r5/include
23696 /usr/lpp/Xamples/include
23697
23698 /usr/openwin/include
23699 /usr/openwin/share/include'
23700
23701 if test "$ac_x_includes" = no; then
23702   # Guess where to find include files, by looking for Xlib.h.
23703   # First, try using that file with no special directory specified.
23704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23705 /* end confdefs.h.  */
23706 #include <X11/Xlib.h>
23707 _ACEOF
23708 if ac_fn_c_try_cpp "$LINENO"; then :
23709   # We can compile using X headers with no special include directory.
23710 ac_x_includes=
23711 else
23712   for ac_dir in $ac_x_header_dirs; do
23713   if test -r "$ac_dir/X11/Xlib.h"; then
23714     ac_x_includes=$ac_dir
23715     break
23716   fi
23717 done
23718 fi
23719 rm -f conftest.err conftest.$ac_ext
23720 fi # $ac_x_includes = no
23721
23722 if test "$ac_x_libraries" = no; then
23723   # Check for the libraries.
23724   # See if we find them without any special options.
23725   # Don't add to $LIBS permanently.
23726   ac_save_LIBS=$LIBS
23727   LIBS="-lX11 $LIBS"
23728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23729 /* end confdefs.h.  */
23730 #include <X11/Xlib.h>
23731 int
23732 main ()
23733 {
23734 XrmInitialize ()
23735   ;
23736   return 0;
23737 }
23738 _ACEOF
23739 if ac_fn_c_try_link "$LINENO"; then :
23740   LIBS=$ac_save_LIBS
23741 # We can link X programs with no special library path.
23742 ac_x_libraries=
23743 else
23744   LIBS=$ac_save_LIBS
23745 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23746 do
23747   # Don't even attempt the hair of trying to link an X program!
23748   for ac_extension in a so sl dylib la dll; do
23749     if test -r "$ac_dir/libX11.$ac_extension"; then
23750       ac_x_libraries=$ac_dir
23751       break 2
23752     fi
23753   done
23754 done
23755 fi
23756 rm -f core conftest.err conftest.$ac_objext \
23757     conftest$ac_exeext conftest.$ac_ext
23758 fi # $ac_x_libraries = no
23759
23760 case $ac_x_includes,$ac_x_libraries in #(
23761   no,* | *,no | *\'*)
23762     # Didn't find X, or a directory has "'" in its name.
23763     ac_cv_have_x="have_x=no";; #(
23764   *)
23765     # Record where we found X for the cache.
23766     ac_cv_have_x="have_x=yes\
23767         ac_x_includes='$ac_x_includes'\
23768         ac_x_libraries='$ac_x_libraries'"
23769 esac
23770 fi
23771 ;; #(
23772     *) have_x=yes;;
23773   esac
23774   eval "$ac_cv_have_x"
23775 fi # $with_x != no
23776
23777 if test "$have_x" != yes; then
23778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
23779 $as_echo "$have_x" >&6; }
23780   no_x=yes
23781 else
23782   # If each of the values was on the command line, it overrides each guess.
23783   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23784   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23785   # Update the cache value to reflect the command line values.
23786   ac_cv_have_x="have_x=yes\
23787         ac_x_includes='$x_includes'\
23788         ac_x_libraries='$x_libraries'"
23789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
23790 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
23791 fi
23792
23793 if test "$no_x" = yes; then
23794   # Not all programs may use this symbol, but it does not hurt to define it.
23795
23796 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
23797
23798   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23799 else
23800   if test -n "$x_includes"; then
23801     X_CFLAGS="$X_CFLAGS -I$x_includes"
23802   fi
23803
23804   # It would also be nice to do this for all -L options, not just this one.
23805   if test -n "$x_libraries"; then
23806     X_LIBS="$X_LIBS -L$x_libraries"
23807     # For Solaris; some versions of Sun CC require a space after -R and
23808     # others require no space.  Words are not sufficient . . . .
23809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
23810 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
23811     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23812     ac_xsave_c_werror_flag=$ac_c_werror_flag
23813     ac_c_werror_flag=yes
23814     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23815 /* end confdefs.h.  */
23816
23817 int
23818 main ()
23819 {
23820
23821   ;
23822   return 0;
23823 }
23824 _ACEOF
23825 if ac_fn_c_try_link "$LINENO"; then :
23826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23827 $as_echo "no" >&6; }
23828        X_LIBS="$X_LIBS -R$x_libraries"
23829 else
23830   LIBS="$ac_xsave_LIBS -R $x_libraries"
23831        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23832 /* end confdefs.h.  */
23833
23834 int
23835 main ()
23836 {
23837
23838   ;
23839   return 0;
23840 }
23841 _ACEOF
23842 if ac_fn_c_try_link "$LINENO"; then :
23843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23844 $as_echo "yes" >&6; }
23845           X_LIBS="$X_LIBS -R $x_libraries"
23846 else
23847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
23848 $as_echo "neither works" >&6; }
23849 fi
23850 rm -f core conftest.err conftest.$ac_objext \
23851     conftest$ac_exeext conftest.$ac_ext
23852 fi
23853 rm -f core conftest.err conftest.$ac_objext \
23854     conftest$ac_exeext conftest.$ac_ext
23855     ac_c_werror_flag=$ac_xsave_c_werror_flag
23856     LIBS=$ac_xsave_LIBS
23857   fi
23858
23859   # Check for system-dependent libraries X programs must link with.
23860   # Do this before checking for the system-independent R6 libraries
23861   # (-lICE), since we may need -lsocket or whatever for X linking.
23862
23863   if test "$ISC" = yes; then
23864     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23865   else
23866     # Martyn Johnson says this is needed for Ultrix, if the X
23867     # libraries were built with DECnet support.  And Karl Berry says
23868     # the Alpha needs dnet_stub (dnet does not exist).
23869     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23870     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23871 /* end confdefs.h.  */
23872
23873 /* Override any GCC internal prototype to avoid an error.
23874    Use char because int might match the return type of a GCC
23875    builtin and then its argument prototype would still apply.  */
23876 #ifdef __cplusplus
23877 extern "C"
23878 #endif
23879 char XOpenDisplay ();
23880 int
23881 main ()
23882 {
23883 return XOpenDisplay ();
23884   ;
23885   return 0;
23886 }
23887 _ACEOF
23888 if ac_fn_c_try_link "$LINENO"; then :
23889
23890 else
23891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
23892 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
23893 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
23894   $as_echo_n "(cached) " >&6
23895 else
23896   ac_check_lib_save_LIBS=$LIBS
23897 LIBS="-ldnet  $LIBS"
23898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23899 /* end confdefs.h.  */
23900
23901 /* Override any GCC internal prototype to avoid an error.
23902    Use char because int might match the return type of a GCC
23903    builtin and then its argument prototype would still apply.  */
23904 #ifdef __cplusplus
23905 extern "C"
23906 #endif
23907 char dnet_ntoa ();
23908 int
23909 main ()
23910 {
23911 return dnet_ntoa ();
23912   ;
23913   return 0;
23914 }
23915 _ACEOF
23916 if ac_fn_c_try_link "$LINENO"; then :
23917   ac_cv_lib_dnet_dnet_ntoa=yes
23918 else
23919   ac_cv_lib_dnet_dnet_ntoa=no
23920 fi
23921 rm -f core conftest.err conftest.$ac_objext \
23922     conftest$ac_exeext conftest.$ac_ext
23923 LIBS=$ac_check_lib_save_LIBS
23924 fi
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23926 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23927 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
23928   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23929 fi
23930
23931     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23932       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
23933 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
23934 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
23935   $as_echo_n "(cached) " >&6
23936 else
23937   ac_check_lib_save_LIBS=$LIBS
23938 LIBS="-ldnet_stub  $LIBS"
23939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23940 /* end confdefs.h.  */
23941
23942 /* Override any GCC internal prototype to avoid an error.
23943    Use char because int might match the return type of a GCC
23944    builtin and then its argument prototype would still apply.  */
23945 #ifdef __cplusplus
23946 extern "C"
23947 #endif
23948 char dnet_ntoa ();
23949 int
23950 main ()
23951 {
23952 return dnet_ntoa ();
23953   ;
23954   return 0;
23955 }
23956 _ACEOF
23957 if ac_fn_c_try_link "$LINENO"; then :
23958   ac_cv_lib_dnet_stub_dnet_ntoa=yes
23959 else
23960   ac_cv_lib_dnet_stub_dnet_ntoa=no
23961 fi
23962 rm -f core conftest.err conftest.$ac_objext \
23963     conftest$ac_exeext conftest.$ac_ext
23964 LIBS=$ac_check_lib_save_LIBS
23965 fi
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23967 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23968 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
23969   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23970 fi
23971
23972     fi
23973 fi
23974 rm -f core conftest.err conftest.$ac_objext \
23975     conftest$ac_exeext conftest.$ac_ext
23976     LIBS="$ac_xsave_LIBS"
23977
23978     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23979     # to get the SysV transport functions.
23980     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23981     # needs -lnsl.
23982     # The nsl library prevents programs from opening the X display
23983     # on Irix 5.2, according to T.E. Dickey.
23984     # The functions gethostbyname, getservbyname, and inet_addr are
23985     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23986     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23987 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
23988
23989 fi
23990
23991     if test $ac_cv_func_gethostbyname = no; then
23992       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
23993 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
23994 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
23995   $as_echo_n "(cached) " >&6
23996 else
23997   ac_check_lib_save_LIBS=$LIBS
23998 LIBS="-lnsl  $LIBS"
23999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24000 /* end confdefs.h.  */
24001
24002 /* Override any GCC internal prototype to avoid an error.
24003    Use char because int might match the return type of a GCC
24004    builtin and then its argument prototype would still apply.  */
24005 #ifdef __cplusplus
24006 extern "C"
24007 #endif
24008 char gethostbyname ();
24009 int
24010 main ()
24011 {
24012 return gethostbyname ();
24013   ;
24014   return 0;
24015 }
24016 _ACEOF
24017 if ac_fn_c_try_link "$LINENO"; then :
24018   ac_cv_lib_nsl_gethostbyname=yes
24019 else
24020   ac_cv_lib_nsl_gethostbyname=no
24021 fi
24022 rm -f core conftest.err conftest.$ac_objext \
24023     conftest$ac_exeext conftest.$ac_ext
24024 LIBS=$ac_check_lib_save_LIBS
24025 fi
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24027 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24028 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24029   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24030 fi
24031
24032       if test $ac_cv_lib_nsl_gethostbyname = no; then
24033         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24034 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24035 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24036   $as_echo_n "(cached) " >&6
24037 else
24038   ac_check_lib_save_LIBS=$LIBS
24039 LIBS="-lbsd  $LIBS"
24040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24041 /* end confdefs.h.  */
24042
24043 /* Override any GCC internal prototype to avoid an error.
24044    Use char because int might match the return type of a GCC
24045    builtin and then its argument prototype would still apply.  */
24046 #ifdef __cplusplus
24047 extern "C"
24048 #endif
24049 char gethostbyname ();
24050 int
24051 main ()
24052 {
24053 return gethostbyname ();
24054   ;
24055   return 0;
24056 }
24057 _ACEOF
24058 if ac_fn_c_try_link "$LINENO"; then :
24059   ac_cv_lib_bsd_gethostbyname=yes
24060 else
24061   ac_cv_lib_bsd_gethostbyname=no
24062 fi
24063 rm -f core conftest.err conftest.$ac_objext \
24064     conftest$ac_exeext conftest.$ac_ext
24065 LIBS=$ac_check_lib_save_LIBS
24066 fi
24067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24068 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24069 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24070   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24071 fi
24072
24073       fi
24074     fi
24075
24076     # lieder@skyler.mavd.honeywell.com says without -lsocket,
24077     # socket/setsockopt and other routines are undefined under SCO ODT
24078     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24079     # on later versions), says Simon Leinen: it contains gethostby*
24080     # variants that don't use the name server (or something).  -lsocket
24081     # must be given before -lnsl if both are needed.  We assume that
24082     # if connect needs -lnsl, so does gethostbyname.
24083     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24084 if test "x$ac_cv_func_connect" = x""yes; then :
24085
24086 fi
24087
24088     if test $ac_cv_func_connect = no; then
24089       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24090 $as_echo_n "checking for connect in -lsocket... " >&6; }
24091 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24092   $as_echo_n "(cached) " >&6
24093 else
24094   ac_check_lib_save_LIBS=$LIBS
24095 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24097 /* end confdefs.h.  */
24098
24099 /* Override any GCC internal prototype to avoid an error.
24100    Use char because int might match the return type of a GCC
24101    builtin and then its argument prototype would still apply.  */
24102 #ifdef __cplusplus
24103 extern "C"
24104 #endif
24105 char connect ();
24106 int
24107 main ()
24108 {
24109 return connect ();
24110   ;
24111   return 0;
24112 }
24113 _ACEOF
24114 if ac_fn_c_try_link "$LINENO"; then :
24115   ac_cv_lib_socket_connect=yes
24116 else
24117   ac_cv_lib_socket_connect=no
24118 fi
24119 rm -f core conftest.err conftest.$ac_objext \
24120     conftest$ac_exeext conftest.$ac_ext
24121 LIBS=$ac_check_lib_save_LIBS
24122 fi
24123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24124 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24125 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24126   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24127 fi
24128
24129     fi
24130
24131     # Guillermo Gomez says -lposix is necessary on A/UX.
24132     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24133 if test "x$ac_cv_func_remove" = x""yes; then :
24134
24135 fi
24136
24137     if test $ac_cv_func_remove = no; then
24138       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24139 $as_echo_n "checking for remove in -lposix... " >&6; }
24140 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24141   $as_echo_n "(cached) " >&6
24142 else
24143   ac_check_lib_save_LIBS=$LIBS
24144 LIBS="-lposix  $LIBS"
24145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24146 /* end confdefs.h.  */
24147
24148 /* Override any GCC internal prototype to avoid an error.
24149    Use char because int might match the return type of a GCC
24150    builtin and then its argument prototype would still apply.  */
24151 #ifdef __cplusplus
24152 extern "C"
24153 #endif
24154 char remove ();
24155 int
24156 main ()
24157 {
24158 return remove ();
24159   ;
24160   return 0;
24161 }
24162 _ACEOF
24163 if ac_fn_c_try_link "$LINENO"; then :
24164   ac_cv_lib_posix_remove=yes
24165 else
24166   ac_cv_lib_posix_remove=no
24167 fi
24168 rm -f core conftest.err conftest.$ac_objext \
24169     conftest$ac_exeext conftest.$ac_ext
24170 LIBS=$ac_check_lib_save_LIBS
24171 fi
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24173 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24174 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24175   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24176 fi
24177
24178     fi
24179
24180     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24181     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24182 if test "x$ac_cv_func_shmat" = x""yes; then :
24183
24184 fi
24185
24186     if test $ac_cv_func_shmat = no; then
24187       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24188 $as_echo_n "checking for shmat in -lipc... " >&6; }
24189 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24190   $as_echo_n "(cached) " >&6
24191 else
24192   ac_check_lib_save_LIBS=$LIBS
24193 LIBS="-lipc  $LIBS"
24194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24195 /* end confdefs.h.  */
24196
24197 /* Override any GCC internal prototype to avoid an error.
24198    Use char because int might match the return type of a GCC
24199    builtin and then its argument prototype would still apply.  */
24200 #ifdef __cplusplus
24201 extern "C"
24202 #endif
24203 char shmat ();
24204 int
24205 main ()
24206 {
24207 return shmat ();
24208   ;
24209   return 0;
24210 }
24211 _ACEOF
24212 if ac_fn_c_try_link "$LINENO"; then :
24213   ac_cv_lib_ipc_shmat=yes
24214 else
24215   ac_cv_lib_ipc_shmat=no
24216 fi
24217 rm -f core conftest.err conftest.$ac_objext \
24218     conftest$ac_exeext conftest.$ac_ext
24219 LIBS=$ac_check_lib_save_LIBS
24220 fi
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24222 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24223 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24224   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24225 fi
24226
24227     fi
24228   fi
24229
24230   # Check for libraries that X11R6 Xt/Xaw programs need.
24231   ac_save_LDFLAGS=$LDFLAGS
24232   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24233   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24234   # check for ICE first), but we must link in the order -lSM -lICE or
24235   # we get undefined symbols.  So assume we have SM if we have ICE.
24236   # These have to be linked with before -lX11, unlike the other
24237   # libraries we check for below, so use a different variable.
24238   # John Interrante, Karl Berry
24239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24240 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24241 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
24242   $as_echo_n "(cached) " >&6
24243 else
24244   ac_check_lib_save_LIBS=$LIBS
24245 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24247 /* end confdefs.h.  */
24248
24249 /* Override any GCC internal prototype to avoid an error.
24250    Use char because int might match the return type of a GCC
24251    builtin and then its argument prototype would still apply.  */
24252 #ifdef __cplusplus
24253 extern "C"
24254 #endif
24255 char IceConnectionNumber ();
24256 int
24257 main ()
24258 {
24259 return IceConnectionNumber ();
24260   ;
24261   return 0;
24262 }
24263 _ACEOF
24264 if ac_fn_c_try_link "$LINENO"; then :
24265   ac_cv_lib_ICE_IceConnectionNumber=yes
24266 else
24267   ac_cv_lib_ICE_IceConnectionNumber=no
24268 fi
24269 rm -f core conftest.err conftest.$ac_objext \
24270     conftest$ac_exeext conftest.$ac_ext
24271 LIBS=$ac_check_lib_save_LIBS
24272 fi
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24274 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24275 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
24276   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24277 fi
24278
24279   LDFLAGS=$ac_save_LDFLAGS
24280
24281 fi
24282
24283 if test "$no_x" != 'yes'; then
24284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24285 $as_echo "-------------------------------------------------------------" >&6; }
24286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
24287 $as_echo_n "checking for X11... " >&6; }
24288     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24289 $as_echo "" >&6; }
24290     LDFLAGS="$LDFLAGS $X_LIBS"
24291     X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
24292     LIBS="$X11_LIBS $LIBS"
24293     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
24294
24295
24296 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
24297
24298     #
24299     # Check for X11 shared memory extension
24300     #
24301     # shmctl is required to support the shared memory extension
24302     ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
24303 if test "x$ac_cv_func_shmctl" = x""yes; then :
24304   have_shmctl='yes'
24305 fi
24306
24307     if test "$have_shmctl" != 'yes'; then
24308         PERSIST_LIBS=$LIBS
24309         LIBS="$LIBS -lcygipc"
24310         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24311 /* end confdefs.h.  */
24312
24313 /* Override any GCC internal prototype to avoid an error.
24314    Use char because int might match the return type of a GCC
24315    builtin and then its argument prototype would still apply.  */
24316 #ifdef __cplusplus
24317 extern "C"
24318 #endif
24319 char shmctl ();
24320 int
24321 main ()
24322 {
24323 return shmctl ();
24324   ;
24325   return 0;
24326 }
24327 _ACEOF
24328 if ac_fn_c_try_link "$LINENO"; then :
24329   have_shmctl='yes'; IPC_LIBS='-lcygipc'
24330 fi
24331 rm -f core conftest.err conftest.$ac_objext \
24332     conftest$ac_exeext conftest.$ac_ext
24333         LIBS=$PERSIST_LIBS
24334     fi
24335
24336     if test "$have_shmctl" = 'yes'; then
24337         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
24338 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
24339 if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
24340   $as_echo_n "(cached) " >&6
24341 else
24342   ac_check_lib_save_LIBS=$LIBS
24343 LIBS="-lXext  $LIBS"
24344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24345 /* end confdefs.h.  */
24346
24347 /* Override any GCC internal prototype to avoid an error.
24348    Use char because int might match the return type of a GCC
24349    builtin and then its argument prototype would still apply.  */
24350 #ifdef __cplusplus
24351 extern "C"
24352 #endif
24353 char XShmAttach ();
24354 int
24355 main ()
24356 {
24357 return XShmAttach ();
24358   ;
24359   return 0;
24360 }
24361 _ACEOF
24362 if ac_fn_c_try_link "$LINENO"; then :
24363   ac_cv_lib_Xext_XShmAttach=yes
24364 else
24365   ac_cv_lib_Xext_XShmAttach=no
24366 fi
24367 rm -f core conftest.err conftest.$ac_objext \
24368     conftest$ac_exeext conftest.$ac_ext
24369 LIBS=$ac_check_lib_save_LIBS
24370 fi
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
24372 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
24373 if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
24374   XEXT_LIBS='-lXext' ;
24375 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
24376
24377 fi
24378
24379     fi
24380
24381     #
24382     # Check for X11 shape extension
24383     #
24384     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
24385 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
24386 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
24387   $as_echo_n "(cached) " >&6
24388 else
24389   ac_check_lib_save_LIBS=$LIBS
24390 LIBS="-lXext  $LIBS"
24391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24392 /* end confdefs.h.  */
24393
24394 /* Override any GCC internal prototype to avoid an error.
24395    Use char because int might match the return type of a GCC
24396    builtin and then its argument prototype would still apply.  */
24397 #ifdef __cplusplus
24398 extern "C"
24399 #endif
24400 char XShapeCombineMask ();
24401 int
24402 main ()
24403 {
24404 return XShapeCombineMask ();
24405   ;
24406   return 0;
24407 }
24408 _ACEOF
24409 if ac_fn_c_try_link "$LINENO"; then :
24410   ac_cv_lib_Xext_XShapeCombineMask=yes
24411 else
24412   ac_cv_lib_Xext_XShapeCombineMask=no
24413 fi
24414 rm -f core conftest.err conftest.$ac_objext \
24415     conftest$ac_exeext conftest.$ac_ext
24416 LIBS=$ac_check_lib_save_LIBS
24417 fi
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
24419 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
24420 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
24421   XEXT_LIBS='-lXext' ;
24422 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
24423
24424 fi
24425
24426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
24427 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
24428 if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
24429   $as_echo_n "(cached) " >&6
24430 else
24431   ac_check_lib_save_LIBS=$LIBS
24432 LIBS="-lXt  $LIBS"
24433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24434 /* end confdefs.h.  */
24435
24436 /* Override any GCC internal prototype to avoid an error.
24437    Use char because int might match the return type of a GCC
24438    builtin and then its argument prototype would still apply.  */
24439 #ifdef __cplusplus
24440 extern "C"
24441 #endif
24442 char XtSetEventDispatcher ();
24443 int
24444 main ()
24445 {
24446 return XtSetEventDispatcher ();
24447   ;
24448   return 0;
24449 }
24450 _ACEOF
24451 if ac_fn_c_try_link "$LINENO"; then :
24452   ac_cv_lib_Xt_XtSetEventDispatcher=yes
24453 else
24454   ac_cv_lib_Xt_XtSetEventDispatcher=no
24455 fi
24456 rm -f core conftest.err conftest.$ac_objext \
24457     conftest$ac_exeext conftest.$ac_ext
24458 LIBS=$ac_check_lib_save_LIBS
24459 fi
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
24461 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
24462 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
24463   XT_LIBS='-lXt'
24464 fi
24465
24466     LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
24467 fi
24468 if test "$no_x" != 'yes'; then
24469   have_x='yes'
24470 else
24471   have_x='no'
24472 fi
24473  if test "$have_x" = 'yes'; then
24474   X11_DELEGATE_TRUE=
24475   X11_DELEGATE_FALSE='#'
24476 else
24477   X11_DELEGATE_TRUE='#'
24478   X11_DELEGATE_FALSE=
24479 fi
24480
24481
24482
24483
24484
24485 #
24486 # Check for ZLIB
24487 #
24488
24489 # Check whether --with-zlib was given.
24490 if test "${with_zlib+set}" = set; then :
24491   withval=$with_zlib; with_zlib=$withval
24492 else
24493   with_zlib='yes'
24494 fi
24495
24496
24497 if test "$with_zlib" != 'yes'; then
24498     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
24499 fi
24500
24501 have_zlib='no'
24502 ZLIB_LIBS=''
24503 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
24504     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24505 $as_echo "-------------------------------------------------------------" >&6; }
24506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
24507 $as_echo_n "checking for ZLIB... " >&6; }
24508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24509 $as_echo "" >&6; }
24510     ZLIB_LIBS=''
24511     failed=0
24512     passed=0
24513     ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
24514 if test "x$ac_cv_header_zconf_h" = x""yes; then :
24515   passed=`expr $passed + 1`
24516 else
24517   failed=`expr $failed + 1`
24518 fi
24519
24520
24521     ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
24522 if test "x$ac_cv_header_zlib_h" = x""yes; then :
24523   passed=`expr $passed + 1`
24524 else
24525   failed=`expr $failed + 1`
24526 fi
24527
24528
24529     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
24530 $as_echo_n "checking for compress in -lz... " >&6; }
24531 if test "${ac_cv_lib_z_compress+set}" = set; then :
24532   $as_echo_n "(cached) " >&6
24533 else
24534   ac_check_lib_save_LIBS=$LIBS
24535 LIBS="-lz  $LIBS"
24536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24537 /* end confdefs.h.  */
24538
24539 /* Override any GCC internal prototype to avoid an error.
24540    Use char because int might match the return type of a GCC
24541    builtin and then its argument prototype would still apply.  */
24542 #ifdef __cplusplus
24543 extern "C"
24544 #endif
24545 char compress ();
24546 int
24547 main ()
24548 {
24549 return compress ();
24550   ;
24551   return 0;
24552 }
24553 _ACEOF
24554 if ac_fn_c_try_link "$LINENO"; then :
24555   ac_cv_lib_z_compress=yes
24556 else
24557   ac_cv_lib_z_compress=no
24558 fi
24559 rm -f core conftest.err conftest.$ac_objext \
24560     conftest$ac_exeext conftest.$ac_ext
24561 LIBS=$ac_check_lib_save_LIBS
24562 fi
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
24564 $as_echo "$ac_cv_lib_z_compress" >&6; }
24565 if test "x$ac_cv_lib_z_compress" = x""yes; then :
24566   passed=`expr $passed + 1`
24567 else
24568   failed=`expr $failed + 1`
24569 fi
24570
24571     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
24572 $as_echo_n "checking for uncompress in -lz... " >&6; }
24573 if test "${ac_cv_lib_z_uncompress+set}" = set; then :
24574   $as_echo_n "(cached) " >&6
24575 else
24576   ac_check_lib_save_LIBS=$LIBS
24577 LIBS="-lz  $LIBS"
24578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24579 /* end confdefs.h.  */
24580
24581 /* Override any GCC internal prototype to avoid an error.
24582    Use char because int might match the return type of a GCC
24583    builtin and then its argument prototype would still apply.  */
24584 #ifdef __cplusplus
24585 extern "C"
24586 #endif
24587 char uncompress ();
24588 int
24589 main ()
24590 {
24591 return uncompress ();
24592   ;
24593   return 0;
24594 }
24595 _ACEOF
24596 if ac_fn_c_try_link "$LINENO"; then :
24597   ac_cv_lib_z_uncompress=yes
24598 else
24599   ac_cv_lib_z_uncompress=no
24600 fi
24601 rm -f core conftest.err conftest.$ac_objext \
24602     conftest$ac_exeext conftest.$ac_ext
24603 LIBS=$ac_check_lib_save_LIBS
24604 fi
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
24606 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
24607 if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
24608   passed=`expr $passed + 1`
24609 else
24610   failed=`expr $failed + 1`
24611 fi
24612
24613     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
24614 $as_echo_n "checking for deflate in -lz... " >&6; }
24615 if test "${ac_cv_lib_z_deflate+set}" = set; then :
24616   $as_echo_n "(cached) " >&6
24617 else
24618   ac_check_lib_save_LIBS=$LIBS
24619 LIBS="-lz  $LIBS"
24620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24621 /* end confdefs.h.  */
24622
24623 /* Override any GCC internal prototype to avoid an error.
24624    Use char because int might match the return type of a GCC
24625    builtin and then its argument prototype would still apply.  */
24626 #ifdef __cplusplus
24627 extern "C"
24628 #endif
24629 char deflate ();
24630 int
24631 main ()
24632 {
24633 return deflate ();
24634   ;
24635   return 0;
24636 }
24637 _ACEOF
24638 if ac_fn_c_try_link "$LINENO"; then :
24639   ac_cv_lib_z_deflate=yes
24640 else
24641   ac_cv_lib_z_deflate=no
24642 fi
24643 rm -f core conftest.err conftest.$ac_objext \
24644     conftest$ac_exeext conftest.$ac_ext
24645 LIBS=$ac_check_lib_save_LIBS
24646 fi
24647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
24648 $as_echo "$ac_cv_lib_z_deflate" >&6; }
24649 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
24650   passed=`expr $passed + 1`
24651 else
24652   failed=`expr $failed + 1`
24653 fi
24654
24655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
24656 $as_echo_n "checking for inflate in -lz... " >&6; }
24657 if test "${ac_cv_lib_z_inflate+set}" = set; then :
24658   $as_echo_n "(cached) " >&6
24659 else
24660   ac_check_lib_save_LIBS=$LIBS
24661 LIBS="-lz  $LIBS"
24662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24663 /* end confdefs.h.  */
24664
24665 /* Override any GCC internal prototype to avoid an error.
24666    Use char because int might match the return type of a GCC
24667    builtin and then its argument prototype would still apply.  */
24668 #ifdef __cplusplus
24669 extern "C"
24670 #endif
24671 char inflate ();
24672 int
24673 main ()
24674 {
24675 return inflate ();
24676   ;
24677   return 0;
24678 }
24679 _ACEOF
24680 if ac_fn_c_try_link "$LINENO"; then :
24681   ac_cv_lib_z_inflate=yes
24682 else
24683   ac_cv_lib_z_inflate=no
24684 fi
24685 rm -f core conftest.err conftest.$ac_objext \
24686     conftest$ac_exeext conftest.$ac_ext
24687 LIBS=$ac_check_lib_save_LIBS
24688 fi
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
24690 $as_echo "$ac_cv_lib_z_inflate" >&6; }
24691 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
24692   passed=`expr $passed + 1`
24693 else
24694   failed=`expr $failed + 1`
24695 fi
24696
24697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
24698 $as_echo_n "checking for gzseek in -lz... " >&6; }
24699 if test "${ac_cv_lib_z_gzseek+set}" = set; then :
24700   $as_echo_n "(cached) " >&6
24701 else
24702   ac_check_lib_save_LIBS=$LIBS
24703 LIBS="-lz  $LIBS"
24704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24705 /* end confdefs.h.  */
24706
24707 /* Override any GCC internal prototype to avoid an error.
24708    Use char because int might match the return type of a GCC
24709    builtin and then its argument prototype would still apply.  */
24710 #ifdef __cplusplus
24711 extern "C"
24712 #endif
24713 char gzseek ();
24714 int
24715 main ()
24716 {
24717 return gzseek ();
24718   ;
24719   return 0;
24720 }
24721 _ACEOF
24722 if ac_fn_c_try_link "$LINENO"; then :
24723   ac_cv_lib_z_gzseek=yes
24724 else
24725   ac_cv_lib_z_gzseek=no
24726 fi
24727 rm -f core conftest.err conftest.$ac_objext \
24728     conftest$ac_exeext conftest.$ac_ext
24729 LIBS=$ac_check_lib_save_LIBS
24730 fi
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
24732 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
24733 if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
24734   passed=`expr $passed + 1`
24735 else
24736   failed=`expr $failed + 1`
24737 fi
24738
24739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
24740 $as_echo_n "checking for gztell in -lz... " >&6; }
24741 if test "${ac_cv_lib_z_gztell+set}" = set; then :
24742   $as_echo_n "(cached) " >&6
24743 else
24744   ac_check_lib_save_LIBS=$LIBS
24745 LIBS="-lz  $LIBS"
24746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24747 /* end confdefs.h.  */
24748
24749 /* Override any GCC internal prototype to avoid an error.
24750    Use char because int might match the return type of a GCC
24751    builtin and then its argument prototype would still apply.  */
24752 #ifdef __cplusplus
24753 extern "C"
24754 #endif
24755 char gztell ();
24756 int
24757 main ()
24758 {
24759 return gztell ();
24760   ;
24761   return 0;
24762 }
24763 _ACEOF
24764 if ac_fn_c_try_link "$LINENO"; then :
24765   ac_cv_lib_z_gztell=yes
24766 else
24767   ac_cv_lib_z_gztell=no
24768 fi
24769 rm -f core conftest.err conftest.$ac_objext \
24770     conftest$ac_exeext conftest.$ac_ext
24771 LIBS=$ac_check_lib_save_LIBS
24772 fi
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
24774 $as_echo "$ac_cv_lib_z_gztell" >&6; }
24775 if test "x$ac_cv_lib_z_gztell" = x""yes; then :
24776   passed=`expr $passed + 1`
24777 else
24778   failed=`expr $failed + 1`
24779 fi
24780
24781     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
24782 $as_echo_n "checking if ZLIB package is complete... " >&6; }
24783     if test $passed -gt 0; then
24784         if test $failed -gt 0; then
24785             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24786 $as_echo "no -- some components failed test" >&6; }
24787             have_zlib='no (failed tests)'
24788         else
24789             ZLIB_LIBS='-lz'
24790             LIBS="$ZLIB_LIBS $LIBS"
24791
24792 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
24793
24794             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24795 $as_echo "yes" >&6; }
24796             have_zlib='yes'
24797         fi
24798     else
24799         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24800 $as_echo "no" >&6; }
24801     fi
24802 fi
24803  if test "$have_zlib" = 'yes'; then
24804   ZLIB_DELEGATE_TRUE=
24805   ZLIB_DELEGATE_FALSE='#'
24806 else
24807   ZLIB_DELEGATE_TRUE='#'
24808   ZLIB_DELEGATE_FALSE=
24809 fi
24810
24811
24812
24813 #
24814 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
24815 #
24816 LIB_DL=''
24817 if test "$enable_profiling" = 'yes'; then
24818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
24819 $as_echo_n "checking for dlopen in -ldl... " >&6; }
24820 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
24821   $as_echo_n "(cached) " >&6
24822 else
24823   ac_check_lib_save_LIBS=$LIBS
24824 LIBS="-ldl  $LIBS"
24825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24826 /* end confdefs.h.  */
24827
24828 /* Override any GCC internal prototype to avoid an error.
24829    Use char because int might match the return type of a GCC
24830    builtin and then its argument prototype would still apply.  */
24831 #ifdef __cplusplus
24832 extern "C"
24833 #endif
24834 char dlopen ();
24835 int
24836 main ()
24837 {
24838 return dlopen ();
24839   ;
24840   return 0;
24841 }
24842 _ACEOF
24843 if ac_fn_c_try_link "$LINENO"; then :
24844   ac_cv_lib_dl_dlopen=yes
24845 else
24846   ac_cv_lib_dl_dlopen=no
24847 fi
24848 rm -f core conftest.err conftest.$ac_objext \
24849     conftest$ac_exeext conftest.$ac_ext
24850 LIBS=$ac_check_lib_save_LIBS
24851 fi
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
24853 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
24854 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
24855   LIB_DL='-ldl'
24856 fi
24857
24858     LIBS="$LIB_DL $LIBS"
24859 fi
24860
24861
24862
24863 #
24864 # Check for Autotrace delegate library.
24865 #
24866
24867 # Check whether --with-autotrace was given.
24868 if test "${with_autotrace+set}" = set; then :
24869   withval=$with_autotrace; with_autotrace=$withval
24870 else
24871   with_autotrace='no'
24872 fi
24873
24874
24875 if test "$with_autotrace" != 'yes'; then
24876     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
24877 fi
24878
24879 have_autotrace='no'
24880 AUTOTRACE_CFLAGS=""
24881 AUTOTRACE_LIBS=""
24882 AUTOTRACE_PKG=""
24883 if test "x$with_autotrace" = "xyes"; then
24884     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24885 $as_echo "-------------------------------------------------------------" >&6; }
24886
24887 pkg_failed=no
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
24889 $as_echo_n "checking for AUTOTRACE... " >&6; }
24890
24891 if test -n "$AUTOTRACE_CFLAGS"; then
24892     pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
24893  elif test -n "$PKG_CONFIG"; then
24894     if test -n "$PKG_CONFIG" && \
24895     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
24896   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24897   ac_status=$?
24898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24899   test $ac_status = 0; }; then
24900   pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
24901 else
24902   pkg_failed=yes
24903 fi
24904  else
24905     pkg_failed=untried
24906 fi
24907 if test -n "$AUTOTRACE_LIBS"; then
24908     pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
24909  elif test -n "$PKG_CONFIG"; then
24910     if test -n "$PKG_CONFIG" && \
24911     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
24912   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24913   ac_status=$?
24914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24915   test $ac_status = 0; }; then
24916   pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
24917 else
24918   pkg_failed=yes
24919 fi
24920  else
24921     pkg_failed=untried
24922 fi
24923
24924
24925
24926 if test $pkg_failed = yes; then
24927
24928 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24929         _pkg_short_errors_supported=yes
24930 else
24931         _pkg_short_errors_supported=no
24932 fi
24933         if test $_pkg_short_errors_supported = yes; then
24934                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
24935         else
24936                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
24937         fi
24938         # Put the nasty error message in config.log where it belongs
24939         echo "$AUTOTRACE_PKG_ERRORS" >&5
24940
24941         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24942 $as_echo "no" >&6; }
24943                 have_autotrace=no
24944 elif test $pkg_failed = untried; then
24945         have_autotrace=no
24946 else
24947         AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
24948         AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
24949         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24950 $as_echo "yes" >&6; }
24951         have_autotrace=yes
24952 fi
24953     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24954 $as_echo "" >&6; }
24955 fi
24956
24957 if test "$have_autotrace" = 'yes'; then
24958     failed=0
24959
24960 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
24961
24962     if test "$with_modules" = 'no'; then
24963     CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
24964     fi
24965 fi
24966
24967  if test "$have_autotrace" = 'yes'; then
24968   AUTOTRACE_DELEGATE_TRUE=
24969   AUTOTRACE_DELEGATE_FALSE='#'
24970 else
24971   AUTOTRACE_DELEGATE_TRUE='#'
24972   AUTOTRACE_DELEGATE_FALSE=
24973 fi
24974
24975
24976
24977
24978
24979 #
24980 # Check for Display Postscript delegate library.
24981 #
24982
24983 # Check whether --with-dps was given.
24984 if test "${with_dps+set}" = set; then :
24985   withval=$with_dps; with_dps=$withval
24986 else
24987   with_dps='yes'
24988 fi
24989
24990
24991 if test "$with_dps" != 'yes'; then
24992     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
24993 fi
24994
24995 have_dps='no'
24996 DPS_LIBS=''
24997 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
24998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24999 $as_echo "-------------------------------------------------------------" >&6; }
25000     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
25001 $as_echo_n "checking for DPS... " >&6; }
25002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25003 $as_echo "" >&6; }
25004     failed=0
25005     passed=0
25006     PERSIST_CPPFLAGS="$CPPFLAGS"
25007     CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
25008     ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
25009 if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
25010   passed=`expr $passed + 1`
25011 else
25012   failed=`expr $failed + 1`
25013 fi
25014
25015
25016     # DPS issues:
25017     # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
25018     # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
25019     # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
25020     # ImageMagick itself doesn't use -lXt.
25021     have_libdps='no'
25022     LIBDPS_XT=''
25023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
25024 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
25025 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
25026   $as_echo_n "(cached) " >&6
25027 else
25028   ac_check_lib_save_LIBS=$LIBS
25029 LIBS="-ldps  $LIBS"
25030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25031 /* end confdefs.h.  */
25032
25033 /* Override any GCC internal prototype to avoid an error.
25034    Use char because int might match the return type of a GCC
25035    builtin and then its argument prototype would still apply.  */
25036 #ifdef __cplusplus
25037 extern "C"
25038 #endif
25039 char DPSInitialize ();
25040 int
25041 main ()
25042 {
25043 return DPSInitialize ();
25044   ;
25045   return 0;
25046 }
25047 _ACEOF
25048 if ac_fn_c_try_link "$LINENO"; then :
25049   ac_cv_lib_dps_DPSInitialize=yes
25050 else
25051   ac_cv_lib_dps_DPSInitialize=no
25052 fi
25053 rm -f core conftest.err conftest.$ac_objext \
25054     conftest$ac_exeext conftest.$ac_ext
25055 LIBS=$ac_check_lib_save_LIBS
25056 fi
25057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
25058 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
25059 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
25060   have_libdps='yes'
25061 else
25062   have_libdps='no'
25063 fi
25064
25065     if test "$have_libdps" != 'yes'; then
25066         # Unset cache variable so we can try again.
25067         unset ac_cv_lib_dps_DPSInitialize
25068         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
25069 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
25070 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
25071   $as_echo_n "(cached) " >&6
25072 else
25073   ac_check_lib_save_LIBS=$LIBS
25074 LIBS="-ldps -lXt $LIBS"
25075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25076 /* end confdefs.h.  */
25077
25078 /* Override any GCC internal prototype to avoid an error.
25079    Use char because int might match the return type of a GCC
25080    builtin and then its argument prototype would still apply.  */
25081 #ifdef __cplusplus
25082 extern "C"
25083 #endif
25084 char DPSInitialize ();
25085 int
25086 main ()
25087 {
25088 return DPSInitialize ();
25089   ;
25090   return 0;
25091 }
25092 _ACEOF
25093 if ac_fn_c_try_link "$LINENO"; then :
25094   ac_cv_lib_dps_DPSInitialize=yes
25095 else
25096   ac_cv_lib_dps_DPSInitialize=no
25097 fi
25098 rm -f core conftest.err conftest.$ac_objext \
25099     conftest$ac_exeext conftest.$ac_ext
25100 LIBS=$ac_check_lib_save_LIBS
25101 fi
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
25103 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
25104 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
25105   have_libdps='yes'
25106 else
25107   have_libdps='no'
25108 fi
25109
25110         if test "$have_libdps" = 'yes'; then
25111             LIBDPS_XT='-lXt'
25112         fi
25113     fi
25114     if test "$have_libdps" = 'yes'; then
25115         passed=`expr $passed + 1`
25116     else
25117         failed=`expr $failed + 1`
25118     fi
25119     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
25120 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
25121 if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
25122   $as_echo_n "(cached) " >&6
25123 else
25124   ac_check_lib_save_LIBS=$LIBS
25125 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
25126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25127 /* end confdefs.h.  */
25128
25129 /* Override any GCC internal prototype to avoid an error.
25130    Use char because int might match the return type of a GCC
25131    builtin and then its argument prototype would still apply.  */
25132 #ifdef __cplusplus
25133 extern "C"
25134 #endif
25135 char XDPSPixelsPerPoint ();
25136 int
25137 main ()
25138 {
25139 return XDPSPixelsPerPoint ();
25140   ;
25141   return 0;
25142 }
25143 _ACEOF
25144 if ac_fn_c_try_link "$LINENO"; then :
25145   ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
25146 else
25147   ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
25148 fi
25149 rm -f core conftest.err conftest.$ac_objext \
25150     conftest$ac_exeext conftest.$ac_ext
25151 LIBS=$ac_check_lib_save_LIBS
25152 fi
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
25154 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
25155 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
25156   passed=`expr $passed + 1`
25157 else
25158   failed=`expr $failed + 1`
25159 fi
25160
25161     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
25162 $as_echo_n "checking if DPS package is complete... " >&6; }
25163     if test $passed -gt 0; then
25164         if test $failed -gt 0; then
25165             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25166 $as_echo "no -- some components failed test" >&6; }
25167             have_dps='no (failed tests)'
25168             CPPFLAGS="$PERSIST_CPPFLAGS"
25169         else
25170             DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
25171             LIBS="$DPS_LIBS $LIBS"
25172
25173 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
25174
25175             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25176 $as_echo "yes" >&6; }
25177             have_dps='yes'
25178         fi
25179     else
25180         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25181 $as_echo "no" >&6; }
25182         CPPFLAGS=$PERSIST_CPPFLAGS
25183     fi
25184 fi
25185  if test "$have_dps" = 'yes'; then
25186   DPS_DELEGATE_TRUE=
25187   DPS_DELEGATE_FALSE='#'
25188 else
25189   DPS_DELEGATE_TRUE='#'
25190   DPS_DELEGATE_FALSE=
25191 fi
25192
25193
25194
25195
25196 #
25197 # Check for DJVU delegate library.
25198 #
25199
25200 # Check whether --with-djvu was given.
25201 if test "${with_djvu+set}" = set; then :
25202   withval=$with_djvu; with_djvu=$withval
25203 else
25204   with_djvu='yes'
25205 fi
25206
25207
25208 if test "$with_djvu" != 'yes'; then
25209     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
25210 fi
25211
25212 have_djvu='no'
25213 DJVU_LIBS=''
25214 if test "$with_djvu" != 'no'; then
25215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25216 $as_echo "-------------------------------------------------------------" >&6; }
25217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
25218 $as_echo_n "checking for DJVU... " >&6; }
25219     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25220 $as_echo "" >&6; }
25221     failed=0
25222     passed=0
25223     ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
25224 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
25225   passed=`expr $passed + 1`
25226 else
25227   failed=`expr $failed + 1`
25228 fi
25229
25230
25231     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
25232 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
25233 if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
25234   $as_echo_n "(cached) " >&6
25235 else
25236   ac_check_lib_save_LIBS=$LIBS
25237 LIBS="-ldjvulibre  $LIBS"
25238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25239 /* end confdefs.h.  */
25240
25241 /* Override any GCC internal prototype to avoid an error.
25242    Use char because int might match the return type of a GCC
25243    builtin and then its argument prototype would still apply.  */
25244 #ifdef __cplusplus
25245 extern "C"
25246 #endif
25247 char ddjvu_context_create ();
25248 int
25249 main ()
25250 {
25251 return ddjvu_context_create ();
25252   ;
25253   return 0;
25254 }
25255 _ACEOF
25256 if ac_fn_c_try_link "$LINENO"; then :
25257   ac_cv_lib_djvulibre_ddjvu_context_create=yes
25258 else
25259   ac_cv_lib_djvulibre_ddjvu_context_create=no
25260 fi
25261 rm -f core conftest.err conftest.$ac_objext \
25262     conftest$ac_exeext conftest.$ac_ext
25263 LIBS=$ac_check_lib_save_LIBS
25264 fi
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
25266 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
25267 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
25268   passed=`expr $passed + 1`
25269 else
25270   failed=`expr $failed + 1`
25271 fi
25272
25273     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
25274 $as_echo_n "checking if DJVU package is complete... " >&6; }
25275     if test $passed -gt 0; then
25276         if test $failed -gt 0; then
25277             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25278 $as_echo "no -- some components failed test" >&6; }
25279             have_djvu='no (failed tests)'
25280         else
25281             DJVU_LIBS='-ldjvulibre'
25282             LIBS="$DJVU_LIBS $LIBS"
25283
25284 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
25285
25286             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25287 $as_echo "yes" >&6; }
25288             have_djvu='yes'
25289         fi
25290     else
25291         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25292 $as_echo "no" >&6; }
25293     fi
25294 fi
25295  if test "$have_djvu" = 'yes'; then
25296   DJVU_DELEGATE_TRUE=
25297   DJVU_DELEGATE_FALSE='#'
25298 else
25299   DJVU_DELEGATE_TRUE='#'
25300   DJVU_DELEGATE_FALSE=
25301 fi
25302
25303
25304
25305
25306 #
25307 # Check for FFTW delegate library.
25308 #
25309
25310 # Check whether --with-fftw was given.
25311 if test "${with_fftw+set}" = set; then :
25312   withval=$with_fftw; with_fftw=$withval
25313 else
25314   with_fftw='yes'
25315 fi
25316
25317
25318 if test "$with_fftw" != 'yes'; then
25319     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
25320 fi
25321
25322 have_fftw='no'
25323 FFTW_LIBS=''
25324 if test "$with_fftw" != 'no'; then
25325     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25326 $as_echo "-------------------------------------------------------------" >&6; }
25327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
25328 $as_echo_n "checking for FFTW... " >&6; }
25329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25330 $as_echo "" >&6; }
25331     failed=0
25332     passed=0
25333     ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
25334 if test "x$ac_cv_header_fftw3_h" = x""yes; then :
25335   passed=`expr $passed + 1`
25336 else
25337   failed=`expr $failed + 1`
25338 fi
25339
25340
25341     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
25342 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
25343 if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
25344   $as_echo_n "(cached) " >&6
25345 else
25346   ac_check_lib_save_LIBS=$LIBS
25347 LIBS="-lfftw3  $LIBS"
25348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25349 /* end confdefs.h.  */
25350
25351 /* Override any GCC internal prototype to avoid an error.
25352    Use char because int might match the return type of a GCC
25353    builtin and then its argument prototype would still apply.  */
25354 #ifdef __cplusplus
25355 extern "C"
25356 #endif
25357 char fftw_execute ();
25358 int
25359 main ()
25360 {
25361 return fftw_execute ();
25362   ;
25363   return 0;
25364 }
25365 _ACEOF
25366 if ac_fn_c_try_link "$LINENO"; then :
25367   ac_cv_lib_fftw3_fftw_execute=yes
25368 else
25369   ac_cv_lib_fftw3_fftw_execute=no
25370 fi
25371 rm -f core conftest.err conftest.$ac_objext \
25372     conftest$ac_exeext conftest.$ac_ext
25373 LIBS=$ac_check_lib_save_LIBS
25374 fi
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
25376 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
25377 if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
25378   passed=`expr $passed + 1`
25379 else
25380   failed=`expr $failed + 1`
25381 fi
25382
25383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
25384 $as_echo_n "checking if FFTW package is complete... " >&6; }
25385     if test $passed -gt 0; then
25386         if test $failed -gt 0; then
25387             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25388 $as_echo "no -- some components failed test" >&6; }
25389             have_fftw='no (failed tests)'
25390         else
25391             FFTW_LIBS='-lfftw3'
25392             LIBS="$FFTW_LIBS $LIBS"
25393
25394 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
25395
25396             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25397 $as_echo "yes" >&6; }
25398             have_fftw='yes'
25399         fi
25400     else
25401         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25402 $as_echo "no" >&6; }
25403     fi
25404 fi
25405  if test "$have_fftw" = 'yes'; then
25406   FFTW_DELEGATE_TRUE=
25407   FFTW_DELEGATE_FALSE='#'
25408 else
25409   FFTW_DELEGATE_TRUE='#'
25410   FFTW_DELEGATE_FALSE=
25411 fi
25412
25413
25414
25415
25416 #
25417 # Check for FlashPIX delegate library.
25418 #
25419
25420 # Check whether --with-fpx was given.
25421 if test "${with_fpx+set}" = set; then :
25422   withval=$with_fpx; with_fpx=$withval
25423 else
25424   with_fpx='yes'
25425 fi
25426
25427
25428 if test "$with_fpx" != 'yes'; then
25429     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
25430 fi
25431
25432 have_fpx='no'
25433 FPX_LIBS=''
25434 if test "$with_fpx" != 'no'; then
25435     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25436 $as_echo "-------------------------------------------------------------" >&6; }
25437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
25438 $as_echo_n "checking for FlashPIX... " >&6; }
25439     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25440 $as_echo "" >&6; }
25441     failed=0
25442     passed=0
25443     ac_ext=cpp
25444 ac_cpp='$CXXCPP $CPPFLAGS'
25445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25448
25449
25450 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
25451 if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
25452   passed=`expr $passed + 1`
25453 else
25454   failed=`expr $failed + 1`
25455 fi
25456
25457
25458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
25459 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
25460 if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
25461   $as_echo_n "(cached) " >&6
25462 else
25463   ac_check_lib_save_LIBS=$LIBS
25464 LIBS="-lfpx  $LIBS"
25465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25466 /* end confdefs.h.  */
25467
25468 /* Override any GCC internal prototype to avoid an error.
25469    Use char because int might match the return type of a GCC
25470    builtin and then its argument prototype would still apply.  */
25471 #ifdef __cplusplus
25472 extern "C"
25473 #endif
25474 char FPX_OpenImageByFilename ();
25475 int
25476 main ()
25477 {
25478 return FPX_OpenImageByFilename ();
25479   ;
25480   return 0;
25481 }
25482 _ACEOF
25483 if ac_fn_cxx_try_link "$LINENO"; then :
25484   ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
25485 else
25486   ac_cv_lib_fpx_FPX_OpenImageByFilename=no
25487 fi
25488 rm -f core conftest.err conftest.$ac_objext \
25489     conftest$ac_exeext conftest.$ac_ext
25490 LIBS=$ac_check_lib_save_LIBS
25491 fi
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
25493 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
25494 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
25495   passed=`expr $passed + 1`
25496 else
25497   failed=`expr $failed + 1`
25498 fi
25499
25500     ac_ext=c
25501 ac_cpp='$CPP $CPPFLAGS'
25502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25505
25506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
25507 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
25508     if test $passed -gt 0; then
25509         if test $failed -gt 0; then
25510             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25511 $as_echo "no -- some components failed test" >&6; }
25512             have_fpx='no (failed tests)'
25513         else
25514             FPX_LIBS='-lfpx'
25515
25516 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
25517
25518             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25519 $as_echo "yes" >&6; }
25520             have_fpx='yes'
25521             PERLMAINCC="$CXX"
25522         fi
25523     else
25524         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25525 $as_echo "no" >&6; }
25526     fi
25527 fi
25528  if test "$have_fpx" = 'yes'; then
25529   FPX_DELEGATE_TRUE=
25530   FPX_DELEGATE_FALSE='#'
25531 else
25532   FPX_DELEGATE_TRUE='#'
25533   FPX_DELEGATE_FALSE=
25534 fi
25535
25536
25537
25538
25539 #
25540 # Check for fontconfig delegate library.
25541 #
25542
25543 # Check whether --with-fontconfig was given.
25544 if test "${with_fontconfig+set}" = set; then :
25545   withval=$with_fontconfig; with_fontconfig=$withval
25546 else
25547   with_fontconfig=$have_x
25548 fi
25549
25550
25551 if test "$with_fontconfig" != 'yes'; then
25552     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
25553 fi
25554
25555 have_fontconfig='no'
25556 FONTCONFIG_CFLAGS=""
25557 FONTCONFIG_LIBS=""
25558 FONTCONFIG_PKG=""
25559 if test "x$with_fontconfig" = "xyes"; then
25560     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25561 $as_echo "-------------------------------------------------------------" >&6; }
25562
25563 pkg_failed=no
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
25565 $as_echo_n "checking for FONTCONFIG... " >&6; }
25566
25567 if test -n "$FONTCONFIG_CFLAGS"; then
25568     pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
25569  elif test -n "$PKG_CONFIG"; then
25570     if test -n "$PKG_CONFIG" && \
25571     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
25572   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25573   ac_status=$?
25574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25575   test $ac_status = 0; }; then
25576   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
25577 else
25578   pkg_failed=yes
25579 fi
25580  else
25581     pkg_failed=untried
25582 fi
25583 if test -n "$FONTCONFIG_LIBS"; then
25584     pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
25585  elif test -n "$PKG_CONFIG"; then
25586     if test -n "$PKG_CONFIG" && \
25587     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
25588   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25589   ac_status=$?
25590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25591   test $ac_status = 0; }; then
25592   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
25593 else
25594   pkg_failed=yes
25595 fi
25596  else
25597     pkg_failed=untried
25598 fi
25599
25600
25601
25602 if test $pkg_failed = yes; then
25603
25604 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25605         _pkg_short_errors_supported=yes
25606 else
25607         _pkg_short_errors_supported=no
25608 fi
25609         if test $_pkg_short_errors_supported = yes; then
25610                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
25611         else
25612                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
25613         fi
25614         # Put the nasty error message in config.log where it belongs
25615         echo "$FONTCONFIG_PKG_ERRORS" >&5
25616
25617         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25618 $as_echo "no" >&6; }
25619                 have_fontconfig=no
25620 elif test $pkg_failed = untried; then
25621         have_fontconfig=no
25622 else
25623         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
25624         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
25625         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25626 $as_echo "yes" >&6; }
25627         have_fontconfig=yes
25628 fi
25629     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25630 $as_echo "" >&6; }
25631 fi
25632
25633 if test "$have_fontconfig" = 'yes'; then
25634
25635 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
25636
25637     if test "$with_modules" = 'no'; then
25638     CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
25639     fi
25640 fi
25641
25642  if test "$have_fontconfig" = 'yes'; then
25643   FONTCONFIG_DELEGATE_TRUE=
25644   FONTCONFIG_DELEGATE_FALSE='#'
25645 else
25646   FONTCONFIG_DELEGATE_TRUE='#'
25647   FONTCONFIG_DELEGATE_FALSE=
25648 fi
25649
25650
25651
25652
25653
25654 #
25655 # Check for freetype delegate library.
25656 #
25657
25658 # Check whether --with-freetype was given.
25659 if test "${with_freetype+set}" = set; then :
25660   withval=$with_freetype; with_freetype=$withval
25661 else
25662   with_freetype='yes'
25663 fi
25664
25665
25666
25667 if test "$with_freetype" != 'yes'; then
25668     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
25669 fi
25670
25671 have_freetype='no'
25672 FREETYPE_LIBS=''
25673 if test "$with_freetype" != 'no'; then
25674     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25675 $as_echo "-------------------------------------------------------------" >&6; }
25676     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
25677 $as_echo_n "checking for FreeType 2.0... " >&6; }
25678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25679 $as_echo "" >&6; }
25680     failed=0
25681     passed=0
25682     PERSIST_LIBS="$LIBS"
25683     PERSIST_CPPFLAGS="$CPPFLAGS"
25684     if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
25685         :
25686     else
25687         freetype_config=''
25688         for ac_prog in freetype-config
25689 do
25690   # Extract the first word of "$ac_prog", so it can be a program name with args.
25691 set dummy $ac_prog; ac_word=$2
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25693 $as_echo_n "checking for $ac_word... " >&6; }
25694 if test "${ac_cv_prog_freetype_config+set}" = set; then :
25695   $as_echo_n "(cached) " >&6
25696 else
25697   if test -n "$freetype_config"; then
25698   ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
25699 else
25700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25701 for as_dir in $PATH
25702 do
25703   IFS=$as_save_IFS
25704   test -z "$as_dir" && as_dir=.
25705     for ac_exec_ext in '' $ac_executable_extensions; do
25706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25707     ac_cv_prog_freetype_config="$ac_prog"
25708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25709     break 2
25710   fi
25711 done
25712   done
25713 IFS=$as_save_IFS
25714
25715 fi
25716 fi
25717 freetype_config=$ac_cv_prog_freetype_config
25718 if test -n "$freetype_config"; then
25719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
25720 $as_echo "$freetype_config" >&6; }
25721 else
25722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25723 $as_echo "no" >&6; }
25724 fi
25725
25726
25727   test -n "$freetype_config" && break
25728 done
25729         if test -n "$freetype_config"; then
25730             freetype_cflags=`$freetype_config --cflags`
25731             freetype_libs=`$freetype_config --libs`
25732             LIBS="$LIBS $freetype_libs"
25733             CPPFLAGS="$freetype_cflags $CPPFLAGS"
25734         fi
25735     fi
25736
25737     if test "$FREETYPE_LIBS" = ''; then
25738         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
25739 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
25740 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
25741   $as_echo_n "(cached) " >&6
25742 else
25743   ac_check_lib_save_LIBS=$LIBS
25744 LIBS="-lfreetype  $LIBS"
25745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25746 /* end confdefs.h.  */
25747
25748 /* Override any GCC internal prototype to avoid an error.
25749    Use char because int might match the return type of a GCC
25750    builtin and then its argument prototype would still apply.  */
25751 #ifdef __cplusplus
25752 extern "C"
25753 #endif
25754 char FT_Init_FreeType ();
25755 int
25756 main ()
25757 {
25758 return FT_Init_FreeType ();
25759   ;
25760   return 0;
25761 }
25762 _ACEOF
25763 if ac_fn_c_try_link "$LINENO"; then :
25764   ac_cv_lib_freetype_FT_Init_FreeType=yes
25765 else
25766   ac_cv_lib_freetype_FT_Init_FreeType=no
25767 fi
25768 rm -f core conftest.err conftest.$ac_objext \
25769     conftest$ac_exeext conftest.$ac_ext
25770 LIBS=$ac_check_lib_save_LIBS
25771 fi
25772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
25773 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
25774 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
25775   FREETYPE_LIBS='-lfreetype'
25776 fi
25777
25778         if test "$FREETYPE_LIBS" != ''; then
25779             passed=`expr $passed + 1`
25780         else
25781             failed=`expr $failed + 1`
25782             LIBS="$PERSIST_LIBS"
25783         fi
25784     fi
25785
25786     ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
25787 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
25788   FT2BUILD_H='#include <ft2build.h>'
25789 else
25790   ft2build=''
25791 fi
25792
25793
25794     ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
25795 "
25796 if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
25797   have_freetype_h='yes'
25798 else
25799   have_freetype_h='no'
25800 fi
25801
25802
25803     if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
25804         passed=`expr $passed + 1`
25805     else
25806         failed=`expr $failed + 1`
25807         CPPFLAGS="$PERSIST_CPPFLAGS"
25808     fi
25809
25810     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
25811 $as_echo_n "checking if FreeType package is complete... " >&6; }
25812     if test $passed -gt 0; then
25813         if test $failed -gt 0; then
25814             FREETYPE_LIBS=''
25815             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25816 $as_echo "no -- some components failed test" >&6; }
25817             have_freetype='no (failed tests)'
25818         else
25819             LIBS="$FREETYPE_LIBS $LIBS"
25820
25821 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
25822
25823             if test "$ac_cv_header_ft2build_h" = 'yes'; then
25824
25825 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
25826
25827             fi
25828             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25829 $as_echo "yes" >&6; }
25830             have_freetype='yes'
25831         fi
25832     else
25833         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25834 $as_echo "no" >&6; }
25835     fi
25836 fi
25837  if test "$have_freetype" = 'yes'; then
25838   FREETYPE_DELEGATE_TRUE=
25839   FREETYPE_DELEGATE_FALSE='#'
25840 else
25841   FREETYPE_DELEGATE_TRUE='#'
25842   FREETYPE_DELEGATE_FALSE=
25843 fi
25844
25845
25846
25847
25848
25849 #
25850 # Check for Ghostscript library or framework.
25851 #
25852 # Test for iapi.h & test for gsapi_new_instance in -lgs
25853 # or -framework Ghostscript
25854
25855
25856 # Check whether --with-gslib was given.
25857 if test "${with_gslib+set}" = set; then :
25858   withval=$with_gslib; with_gslib=$withval
25859 else
25860   with_gslib='no'
25861 fi
25862
25863
25864 gslib_framework='no'
25865 if test "$with_gslib" != 'yes'; then
25866     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
25867 fi
25868
25869 have_gslib='no'
25870 GS_LIBS=''
25871 if test "$with_gslib" != 'no'; then
25872     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25873 $as_echo "-------------------------------------------------------------" >&6; }
25874     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
25875 $as_echo_n "checking for Ghostscript... " >&6; }
25876     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25877 $as_echo "" >&6; }
25878     framework=0
25879     failed=0
25880     passed=0
25881     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
25882 if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
25883   passed=`expr $passed + 1`
25884 else
25885   failed=`expr $failed + 1`
25886 fi
25887
25888
25889     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
25890 if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
25891   passed=`expr $passed + 1`
25892 else
25893   failed=`expr $failed + 1`
25894 fi
25895
25896
25897     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
25898 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
25899 if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
25900   $as_echo_n "(cached) " >&6
25901 else
25902   ac_check_framework_save_LIBS=$LIBS
25903 LIBS="-framework Ghostscript  $LIBS"
25904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25905 /* end confdefs.h.  */
25906
25907 /* Override any GCC internal prototype to avoid an error.
25908    Use char because int might match the return type of a GCC
25909    builtin and then its argument prototype would still apply.  */
25910 #ifdef __cplusplus
25911 extern "C"
25912 #endif
25913 char gsapi_new_instance ();
25914 int
25915 main ()
25916 {
25917 return gsapi_new_instance ();
25918   ;
25919   return 0;
25920 }
25921 _ACEOF
25922 if ac_fn_c_try_link "$LINENO"; then :
25923   ac_cv_framework_Ghostscript_gsapi_new_instance=yes
25924 else
25925   ac_cv_framework_Ghostscript_gsapi_new_instance=no
25926 fi
25927 rm -f core conftest.err conftest.$ac_objext \
25928     conftest$ac_exeext conftest.$ac_ext
25929 LIBS=$ac_check_framework_save_LIBS
25930 fi
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
25932 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
25933 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
25934   framework=`expr $framework + 1`
25935 else
25936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
25937 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
25938 if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
25939   $as_echo_n "(cached) " >&6
25940 else
25941   ac_check_lib_save_LIBS=$LIBS
25942 LIBS="-lgs  $LIBS"
25943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25944 /* end confdefs.h.  */
25945
25946 /* Override any GCC internal prototype to avoid an error.
25947    Use char because int might match the return type of a GCC
25948    builtin and then its argument prototype would still apply.  */
25949 #ifdef __cplusplus
25950 extern "C"
25951 #endif
25952 char gsapi_new_instance ();
25953 int
25954 main ()
25955 {
25956 return gsapi_new_instance ();
25957   ;
25958   return 0;
25959 }
25960 _ACEOF
25961 if ac_fn_c_try_link "$LINENO"; then :
25962   ac_cv_lib_gs_gsapi_new_instance=yes
25963 else
25964   ac_cv_lib_gs_gsapi_new_instance=no
25965 fi
25966 rm -f core conftest.err conftest.$ac_objext \
25967     conftest$ac_exeext conftest.$ac_ext
25968 LIBS=$ac_check_lib_save_LIBS
25969 fi
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
25971 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
25972 if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
25973   passed=`expr $passed + 1`
25974 else
25975   failed=`expr $failed + 1`
25976 fi
25977
25978 fi
25979     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
25980 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
25981     if test $passed -gt 0; then
25982         if test $failed -gt 0; then
25983             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25984 $as_echo "no -- some components failed test" >&6; }
25985             have_gslib='no (failed tests)'
25986         else
25987             if test $framework -gt 0; then
25988                 GS_LIBS='-framework Ghostscript'
25989                 gslib_framework='yes'
25990                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
25991 $as_echo "yes, using framework." >&6; }
25992             else
25993                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
25994 $as_echo "yes, using library." >&6; }
25995                 GS_LIBS='-lgs'
25996             fi
25997             LIBS="$GS_LIBS $LIBS"
25998
25999 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
26000
26001             have_gslib='yes'
26002         fi
26003     else
26004         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26005 $as_echo "no" >&6; }
26006     fi
26007 fi
26008  if test "$have_gslib" = 'yes'; then
26009   GS_DELEGATE_TRUE=
26010   GS_DELEGATE_FALSE='#'
26011 else
26012   GS_DELEGATE_TRUE='#'
26013   GS_DELEGATE_FALSE=
26014 fi
26015
26016
26017
26018 # Set default font search path
26019
26020 # Check whether --with-fontpath was given.
26021 if test "${with_fontpath+set}" = set; then :
26022   withval=$with_fontpath; with_fontpath=$withval
26023 else
26024   with_fontpath=''
26025 fi
26026
26027
26028 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
26029     with_fontpath=''
26030 else
26031
26032 cat >>confdefs.h <<_ACEOF
26033 #define MAGICK_FONT_PATH "$with_fontpath"
26034 _ACEOF
26035
26036 fi
26037 if test "$with_fontpath=" != ''; then
26038     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
26039 fi
26040
26041 # Set Ghostscript font directory
26042
26043 # Check whether --with-gs-font-dir was given.
26044 if test "${with_gs_font_dir+set}" = set; then :
26045   withval=$with_gs_font_dir; with_gs_font_dir=$withval
26046 else
26047   with_gs_font_dir='default'
26048 fi
26049
26050
26051 if test "$with_gs_font_dir" != 'default'; then
26052     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
26053 fi
26054
26055
26056 #
26057 # Check for GVC delegate library.
26058 #
26059
26060 # Check whether --with-gvc was given.
26061 if test "${with_gvc+set}" = set; then :
26062   withval=$with_gvc; with_gvc=$withval
26063 else
26064   with_gvc='yes'
26065 fi
26066
26067
26068 if test "$with_gvc" != 'yes'; then
26069     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
26070 fi
26071
26072 GVC_PKG=""
26073 if test "x$with_gvc" = "xyes"; then
26074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26075 $as_echo "-------------------------------------------------------------" >&6; }
26076
26077 pkg_failed=no
26078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
26079 $as_echo_n "checking for GVC... " >&6; }
26080
26081 if test -n "$GVC_CFLAGS"; then
26082     pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
26083  elif test -n "$PKG_CONFIG"; then
26084     if test -n "$PKG_CONFIG" && \
26085     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
26086   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26087   ac_status=$?
26088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26089   test $ac_status = 0; }; then
26090   pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
26091 else
26092   pkg_failed=yes
26093 fi
26094  else
26095     pkg_failed=untried
26096 fi
26097 if test -n "$GVC_LIBS"; then
26098     pkg_cv_GVC_LIBS="$GVC_LIBS"
26099  elif test -n "$PKG_CONFIG"; then
26100     if test -n "$PKG_CONFIG" && \
26101     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
26102   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26103   ac_status=$?
26104   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26105   test $ac_status = 0; }; then
26106   pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
26107 else
26108   pkg_failed=yes
26109 fi
26110  else
26111     pkg_failed=untried
26112 fi
26113
26114
26115
26116 if test $pkg_failed = yes; then
26117
26118 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26119         _pkg_short_errors_supported=yes
26120 else
26121         _pkg_short_errors_supported=no
26122 fi
26123         if test $_pkg_short_errors_supported = yes; then
26124                 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
26125         else
26126                 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
26127         fi
26128         # Put the nasty error message in config.log where it belongs
26129         echo "$GVC_PKG_ERRORS" >&5
26130
26131         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26132 $as_echo "no" >&6; }
26133                 have_gvc=no
26134 elif test $pkg_failed = untried; then
26135         have_gvc=no
26136 else
26137         GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
26138         GVC_LIBS=$pkg_cv_GVC_LIBS
26139         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26140 $as_echo "yes" >&6; }
26141         have_gvc=yes
26142 fi
26143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26144 $as_echo "" >&6; }
26145 fi
26146
26147 if test "$have_gvc" = 'yes'; then
26148
26149 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
26150
26151     if test "$with_modules" = 'no'; then
26152         CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
26153     fi
26154 fi
26155
26156  if test "$have_gvc" = 'yes'; then
26157   GVC_DELEGATE_TRUE=
26158   GVC_DELEGATE_FALSE='#'
26159 else
26160   GVC_DELEGATE_TRUE='#'
26161   GVC_DELEGATE_FALSE=
26162 fi
26163
26164
26165
26166
26167
26168 #
26169 # Check for JBIG delegate library.
26170 #
26171
26172
26173 # Check whether --with-jbig was given.
26174 if test "${with_jbig+set}" = set; then :
26175   withval=$with_jbig; with_jbig=$withval
26176 else
26177   with_jbig='yes'
26178 fi
26179
26180
26181 have_jbig='no'
26182 JBIG_LIBS=''
26183 if test "$with_jbig" != 'no'; then
26184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26185 $as_echo "-------------------------------------------------------------" >&6; }
26186     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
26187 $as_echo_n "checking for JBIG... " >&6; }
26188     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26189 $as_echo "" >&6; }
26190     failed=0
26191     passed=0
26192     ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
26193 if test "x$ac_cv_header_jbig_h" = x""yes; then :
26194   passed=`expr $passed + 1`
26195 else
26196   failed=`expr $failed + 1`
26197 fi
26198
26199
26200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
26201 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
26202 if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
26203   $as_echo_n "(cached) " >&6
26204 else
26205   ac_check_lib_save_LIBS=$LIBS
26206 LIBS="-ljbig  $LIBS"
26207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26208 /* end confdefs.h.  */
26209
26210 /* Override any GCC internal prototype to avoid an error.
26211    Use char because int might match the return type of a GCC
26212    builtin and then its argument prototype would still apply.  */
26213 #ifdef __cplusplus
26214 extern "C"
26215 #endif
26216 char jbg_dec_init ();
26217 int
26218 main ()
26219 {
26220 return jbg_dec_init ();
26221   ;
26222   return 0;
26223 }
26224 _ACEOF
26225 if ac_fn_c_try_link "$LINENO"; then :
26226   ac_cv_lib_jbig_jbg_dec_init=yes
26227 else
26228   ac_cv_lib_jbig_jbg_dec_init=no
26229 fi
26230 rm -f core conftest.err conftest.$ac_objext \
26231     conftest$ac_exeext conftest.$ac_ext
26232 LIBS=$ac_check_lib_save_LIBS
26233 fi
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
26235 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
26236 if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
26237   passed=`expr $passed + 1`
26238 else
26239   failed=`expr $failed + 1`
26240 fi
26241
26242     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
26243 $as_echo_n "checking if JBIG package is complete... " >&6; }
26244     if test $passed -gt 0; then
26245         if test $failed -gt 0; then
26246             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26247 $as_echo "no -- some components failed test" >&6; }
26248             have_jbig='no (failed tests)'
26249         else
26250             JBIG_LIBS='-ljbig'
26251             LIBS="$JBIG_LIBS $LIBS"
26252
26253 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
26254
26255             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26256 $as_echo "yes" >&6; }
26257             have_jbig='yes'
26258         fi
26259     else
26260         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26261 $as_echo "no" >&6; }
26262     fi
26263 fi
26264  if test "$have_jbig" = 'yes'; then
26265   JBIG_DELEGATE_TRUE=
26266   JBIG_DELEGATE_FALSE='#'
26267 else
26268   JBIG_DELEGATE_TRUE='#'
26269   JBIG_DELEGATE_FALSE=
26270 fi
26271
26272
26273
26274
26275 #
26276 # Check for JPEG delegate library.
26277 #
26278
26279 # Check whether --with-jpeg was given.
26280 if test "${with_jpeg+set}" = set; then :
26281   withval=$with_jpeg; with_jpeg=$withval
26282 else
26283   with_jpeg='yes'
26284 fi
26285
26286
26287 if test "$with_jpeg" != 'yes'; then
26288     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
26289 fi
26290
26291 have_jpeg='no'
26292 JPEG_LIBS=''
26293 if test "$with_jpeg" != 'no'; then
26294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26295 $as_echo "-------------------------------------------------------------" >&6; }
26296     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
26297 $as_echo_n "checking for JPEG... " >&6; }
26298     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26299 $as_echo "" >&6; }
26300     failed=0
26301     passed=0
26302     ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
26303 if test "x$ac_cv_header_jconfig_h" = x""yes; then :
26304   passed=`expr $passed + 1`
26305 else
26306   failed=`expr $failed + 1`
26307 fi
26308
26309
26310     ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
26311 if test "x$ac_cv_header_jerror_h" = x""yes; then :
26312   passed=`expr $passed + 1`
26313 else
26314   failed=`expr $failed + 1`
26315 fi
26316
26317
26318     ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
26319 if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
26320   passed=`expr $passed + 1`
26321 else
26322   failed=`expr $failed + 1`
26323 fi
26324
26325
26326     ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
26327 if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
26328   passed=`expr $passed + 1`
26329 else
26330   failed=`expr $failed + 1`
26331 fi
26332
26333
26334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
26335 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
26336 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
26337   $as_echo_n "(cached) " >&6
26338 else
26339   ac_check_lib_save_LIBS=$LIBS
26340 LIBS="-ljpeg  $LIBS"
26341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26342 /* end confdefs.h.  */
26343
26344 /* Override any GCC internal prototype to avoid an error.
26345    Use char because int might match the return type of a GCC
26346    builtin and then its argument prototype would still apply.  */
26347 #ifdef __cplusplus
26348 extern "C"
26349 #endif
26350 char jpeg_read_header ();
26351 int
26352 main ()
26353 {
26354 return jpeg_read_header ();
26355   ;
26356   return 0;
26357 }
26358 _ACEOF
26359 if ac_fn_c_try_link "$LINENO"; then :
26360   ac_cv_lib_jpeg_jpeg_read_header=yes
26361 else
26362   ac_cv_lib_jpeg_jpeg_read_header=no
26363 fi
26364 rm -f core conftest.err conftest.$ac_objext \
26365     conftest$ac_exeext conftest.$ac_ext
26366 LIBS=$ac_check_lib_save_LIBS
26367 fi
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26369 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
26370 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
26371   passed=`expr $passed + 1`
26372 else
26373   failed=`expr $failed + 1`
26374 fi
26375
26376
26377 # Test for compatible JPEG library
26378 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
26380 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
26381 if test "${ac_cv_jpeg_version_ok+set}" = set; then :
26382   $as_echo_n "(cached) " >&6
26383 else
26384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26385 /* end confdefs.h.  */
26386 #include <stdio.h>
26387 #include <stdlib.h>
26388 #include <jpeglib.h>
26389
26390 int
26391 main ()
26392 {
26393
26394 #if JPEG_LIB_VERSION < 62
26395 #error IJG JPEG library must be version 6b or newer!
26396 #endif
26397 return 0;
26398
26399   ;
26400   return 0;
26401 }
26402 _ACEOF
26403 if ac_fn_c_try_compile "$LINENO"; then :
26404   ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
26405 else
26406   ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
26407 fi
26408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26409 fi
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
26411 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
26412 fi
26413     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
26414 $as_echo_n "checking if JPEG package is complete... " >&6; }
26415     if test $passed -gt 0; then
26416         if test $failed -gt 0; then
26417             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26418 $as_echo "no -- some components failed test" >&6; }
26419             have_jpeg='no (failed tests)'
26420         else
26421             JPEG_LIBS='-ljpeg'
26422             LIBS="$JPEG_LIBS $LIBS"
26423
26424 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
26425
26426             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26427 $as_echo "yes" >&6; }
26428             have_jpeg='yes'
26429         fi
26430     else
26431         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26432 $as_echo "no" >&6; }
26433     fi
26434 fi
26435  if test "$have_jpeg" = 'yes'; then
26436   JPEG_DELEGATE_TRUE=
26437   JPEG_DELEGATE_FALSE='#'
26438 else
26439   JPEG_DELEGATE_TRUE='#'
26440   JPEG_DELEGATE_FALSE=
26441 fi
26442
26443
26444
26445
26446 #
26447 # Check for JPEG Version 2 delegate library.
26448 #
26449
26450 # Check whether --with-jp2 was given.
26451 if test "${with_jp2+set}" = set; then :
26452   withval=$with_jp2; with_jp2=$withval
26453 else
26454   with_jp2='yes'
26455 fi
26456
26457
26458 if test "$with_jp2" != 'yes'; then
26459     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
26460 fi
26461
26462 have_jp2='no'
26463 JP2_LIBS=''
26464 if test "$with_jp2" != 'no'; then
26465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26466 $as_echo "-------------------------------------------------------------" >&6; }
26467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
26468 $as_echo_n "checking for JPEG Version 2... " >&6; }
26469     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26470 $as_echo "" >&6; }
26471     failed=0
26472     passed=0
26473     ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
26474 if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
26475   passed=`expr $passed + 1`
26476 else
26477   failed=`expr $failed + 1`
26478 fi
26479
26480
26481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
26482 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
26483 if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
26484   $as_echo_n "(cached) " >&6
26485 else
26486   ac_check_lib_save_LIBS=$LIBS
26487 LIBS="-ljasper  $LIBS"
26488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26489 /* end confdefs.h.  */
26490
26491 /* Override any GCC internal prototype to avoid an error.
26492    Use char because int might match the return type of a GCC
26493    builtin and then its argument prototype would still apply.  */
26494 #ifdef __cplusplus
26495 extern "C"
26496 #endif
26497 char jas_stream_fopen ();
26498 int
26499 main ()
26500 {
26501 return jas_stream_fopen ();
26502   ;
26503   return 0;
26504 }
26505 _ACEOF
26506 if ac_fn_c_try_link "$LINENO"; then :
26507   ac_cv_lib_jasper_jas_stream_fopen=yes
26508 else
26509   ac_cv_lib_jasper_jas_stream_fopen=no
26510 fi
26511 rm -f core conftest.err conftest.$ac_objext \
26512     conftest$ac_exeext conftest.$ac_ext
26513 LIBS=$ac_check_lib_save_LIBS
26514 fi
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
26516 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
26517 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
26518   passed=`expr $passed + 1`
26519 else
26520   failed=`expr $failed + 1`
26521 fi
26522
26523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
26524 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
26525     if test $passed -gt 0; then
26526         if test $failed -gt 0; then
26527             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26528 $as_echo "no -- some components failed test" >&6; }
26529             have_jp2='no (failed tests)'
26530         else
26531             JP2_LIBS='-ljasper'
26532             LIBS="$JP2_LIBS $LIBS"
26533
26534 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
26535
26536             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26537 $as_echo "yes" >&6; }
26538             have_jp2='yes'
26539         fi
26540     else
26541         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26542 $as_echo "no" >&6; }
26543     fi
26544 fi
26545  if test "$have_jp2" = 'yes'; then
26546   JP2_DELEGATE_TRUE=
26547   JP2_DELEGATE_FALSE='#'
26548 else
26549   JP2_DELEGATE_TRUE='#'
26550   JP2_DELEGATE_FALSE=
26551 fi
26552
26553
26554
26555
26556 #
26557 # Check for LCMS delegate library.
26558 #
26559
26560 # Check whether --with-lcms was given.
26561 if test "${with_lcms+set}" = set; then :
26562   withval=$with_lcms; with_lcms=$withval
26563 else
26564   with_lcms='yes'
26565 fi
26566
26567
26568 if test "$with_lcms" != 'yes'; then
26569     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
26570 fi
26571
26572 have_lcms='no'
26573 LCMS_LIBS=''
26574 if test "$with_lcms" != 'no'; then
26575     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26576 $as_echo "-------------------------------------------------------------" >&6; }
26577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
26578 $as_echo_n "checking for LCMS... " >&6; }
26579     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26580 $as_echo "" >&6; }
26581     failed=0
26582     passed=0
26583     have_lcms_header='no'
26584     ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
26585 if test "x$ac_cv_header_lcms_h" = x""yes; then :
26586   have_lcms_header='yes'
26587 fi
26588
26589
26590     if test "$have_lcms_header" = 'yes'; then
26591         passed=`expr $passed + 1`
26592
26593 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
26594
26595     else
26596         ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
26597 if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
26598   have_lcms_header='yes'
26599 fi
26600
26601
26602         if test "$have_lcms_header" = 'yes'; then
26603             passed=`expr $passed + 1`
26604
26605 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
26606
26607         else
26608             failed=`expr $failed + 1`
26609         fi
26610     fi
26611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
26612 $as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
26613 if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
26614   $as_echo_n "(cached) " >&6
26615 else
26616   ac_check_lib_save_LIBS=$LIBS
26617 LIBS="-llcms  $LIBS"
26618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26619 /* end confdefs.h.  */
26620
26621 /* Override any GCC internal prototype to avoid an error.
26622    Use char because int might match the return type of a GCC
26623    builtin and then its argument prototype would still apply.  */
26624 #ifdef __cplusplus
26625 extern "C"
26626 #endif
26627 char cmsOpenProfileFromMem ();
26628 int
26629 main ()
26630 {
26631 return cmsOpenProfileFromMem ();
26632   ;
26633   return 0;
26634 }
26635 _ACEOF
26636 if ac_fn_c_try_link "$LINENO"; then :
26637   ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
26638 else
26639   ac_cv_lib_lcms_cmsOpenProfileFromMem=no
26640 fi
26641 rm -f core conftest.err conftest.$ac_objext \
26642     conftest$ac_exeext conftest.$ac_ext
26643 LIBS=$ac_check_lib_save_LIBS
26644 fi
26645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
26646 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
26647 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
26648   passed=`expr $passed + 1`
26649 else
26650   failed=`expr $failed + 1`
26651 fi
26652
26653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
26654 $as_echo_n "checking if LCMS package is complete... " >&6; }
26655     if test $passed -gt 0; then
26656         if test $failed -gt 0; then
26657             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26658 $as_echo "no -- some components failed test" >&6; }
26659             have_lcms='no (failed tests)'
26660         else
26661             LCMS_LIBS='-llcms'
26662             LIBS="$LCMS_LIBS $LIBS"
26663
26664 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
26665
26666             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26667 $as_echo "yes" >&6; }
26668             have_lcms='yes'
26669         fi
26670     else
26671         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26672 $as_echo "no" >&6; }
26673     fi
26674 fi
26675  if test "$have_lcms" = 'yes'; then
26676   LCMS_DELEGATE_TRUE=
26677   LCMS_DELEGATE_FALSE='#'
26678 else
26679   LCMS_DELEGATE_TRUE='#'
26680   LCMS_DELEGATE_FALSE=
26681 fi
26682
26683
26684
26685
26686 #
26687 # Check for the LQR (Liquid Rescale) delegate library.
26688 #
26689
26690 # Check whether --with-lqr was given.
26691 if test "${with_lqr+set}" = set; then :
26692   withval=$with_lqr; with_lqr=$withval
26693 else
26694   with_lqr='yes'
26695 fi
26696
26697
26698 if test "$with_lqr" != 'yes'; then
26699     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
26700 fi
26701
26702 have_lqr='no'
26703 LQR_CFLAGS=""
26704 LQR_LIBS=""
26705 LQR_PKG=""
26706 if test "x$with_lqr" = "xyes"; then
26707     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26708 $as_echo "-------------------------------------------------------------" >&6; }
26709
26710 pkg_failed=no
26711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
26712 $as_echo_n "checking for LQR... " >&6; }
26713
26714 if test -n "$LQR_CFLAGS"; then
26715     pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
26716  elif test -n "$PKG_CONFIG"; then
26717     if test -n "$PKG_CONFIG" && \
26718     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
26719   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26720   ac_status=$?
26721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26722   test $ac_status = 0; }; then
26723   pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
26724 else
26725   pkg_failed=yes
26726 fi
26727  else
26728     pkg_failed=untried
26729 fi
26730 if test -n "$LQR_LIBS"; then
26731     pkg_cv_LQR_LIBS="$LQR_LIBS"
26732  elif test -n "$PKG_CONFIG"; then
26733     if test -n "$PKG_CONFIG" && \
26734     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
26735   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26736   ac_status=$?
26737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26738   test $ac_status = 0; }; then
26739   pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
26740 else
26741   pkg_failed=yes
26742 fi
26743  else
26744     pkg_failed=untried
26745 fi
26746
26747
26748
26749 if test $pkg_failed = yes; then
26750
26751 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26752         _pkg_short_errors_supported=yes
26753 else
26754         _pkg_short_errors_supported=no
26755 fi
26756         if test $_pkg_short_errors_supported = yes; then
26757                 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
26758         else
26759                 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
26760         fi
26761         # Put the nasty error message in config.log where it belongs
26762         echo "$LQR_PKG_ERRORS" >&5
26763
26764         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26765 $as_echo "no" >&6; }
26766                 have_lqr=no
26767 elif test $pkg_failed = untried; then
26768         have_lqr=no
26769 else
26770         LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
26771         LQR_LIBS=$pkg_cv_LQR_LIBS
26772         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26773 $as_echo "yes" >&6; }
26774         have_lqr=yes
26775 fi
26776     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26777 $as_echo "" >&6; }
26778 fi
26779
26780 if test "$have_lqr" = 'yes'; then
26781
26782 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
26783
26784     CFLAGS="$LQR_CFLAGS $CFLAGS"
26785 fi
26786
26787  if test "$have_lqr" = 'yes'; then
26788   LQR_DELEGATE_TRUE=
26789   LQR_DELEGATE_FALSE='#'
26790 else
26791   LQR_DELEGATE_TRUE='#'
26792   LQR_DELEGATE_FALSE=
26793 fi
26794
26795
26796
26797
26798
26799 #
26800 # Check for the OpenEXR delegate library.
26801 #
26802
26803 # Check whether --with-openexr was given.
26804 if test "${with_openexr+set}" = set; then :
26805   withval=$with_openexr; with_openexr=$withval
26806 else
26807   with_openexr='yes'
26808 fi
26809
26810
26811 if test "$with_openexr" != 'yes'; then
26812     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
26813 fi
26814
26815 have_openexr='no'
26816 OPENEXR_CFLAGS=""
26817 OPENEXR_LIBS=""
26818 OPENEXR_PKG=""
26819 if test "x$with_openexr" = "xyes"; then
26820     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26821 $as_echo "-------------------------------------------------------------" >&6; }
26822
26823 pkg_failed=no
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
26825 $as_echo_n "checking for OPENEXR... " >&6; }
26826
26827 if test -n "$OPENEXR_CFLAGS"; then
26828     pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
26829  elif test -n "$PKG_CONFIG"; then
26830     if test -n "$PKG_CONFIG" && \
26831     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
26832   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26833   ac_status=$?
26834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26835   test $ac_status = 0; }; then
26836   pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
26837 else
26838   pkg_failed=yes
26839 fi
26840  else
26841     pkg_failed=untried
26842 fi
26843 if test -n "$OPENEXR_LIBS"; then
26844     pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
26845  elif test -n "$PKG_CONFIG"; then
26846     if test -n "$PKG_CONFIG" && \
26847     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
26848   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26849   ac_status=$?
26850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26851   test $ac_status = 0; }; then
26852   pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
26853 else
26854   pkg_failed=yes
26855 fi
26856  else
26857     pkg_failed=untried
26858 fi
26859
26860
26861
26862 if test $pkg_failed = yes; then
26863
26864 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26865         _pkg_short_errors_supported=yes
26866 else
26867         _pkg_short_errors_supported=no
26868 fi
26869         if test $_pkg_short_errors_supported = yes; then
26870                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
26871         else
26872                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
26873         fi
26874         # Put the nasty error message in config.log where it belongs
26875         echo "$OPENEXR_PKG_ERRORS" >&5
26876
26877         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26878 $as_echo "no" >&6; }
26879                 have_openexr=no
26880 elif test $pkg_failed = untried; then
26881         have_openexr=no
26882 else
26883         OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
26884         OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
26885         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26886 $as_echo "yes" >&6; }
26887         have_openexr=yes
26888 fi
26889     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26890 $as_echo "" >&6; }
26891 fi
26892
26893 if test "$have_openexr" = 'yes'; then
26894
26895 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
26896
26897     if test "$with_modules" = 'no'; then
26898         CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
26899     fi
26900 fi
26901
26902  if test "$have_openexr" = 'yes'; then
26903   OPENEXR_DELEGATE_TRUE=
26904   OPENEXR_DELEGATE_FALSE='#'
26905 else
26906   OPENEXR_DELEGATE_TRUE='#'
26907   OPENEXR_DELEGATE_FALSE=
26908 fi
26909
26910
26911
26912
26913
26914 #
26915 # Check for PNG delegate library.
26916 #
26917
26918 # Check whether --with-png was given.
26919 if test "${with_png+set}" = set; then :
26920   withval=$with_png; with_png=$withval
26921 else
26922   with_png='yes'
26923 fi
26924
26925
26926 if test "$with_png" != 'yes'; then
26927     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
26928 fi
26929
26930 have_png='no'
26931 PNG_LIBS=''
26932 if test "$with_png" != 'no'; then
26933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26934 $as_echo "-------------------------------------------------------------" >&6; }
26935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
26936 $as_echo_n "checking for PNG... " >&6; }
26937     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26938 $as_echo "" >&6; }
26939     failed=0
26940     passed=0
26941     ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
26942 if test "x$ac_cv_header_png_h" = x""yes; then :
26943   passed=`expr $passed + 1`
26944 else
26945   failed=`expr $failed + 1`
26946 fi
26947
26948
26949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
26950 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
26951 if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
26952   $as_echo_n "(cached) " >&6
26953 else
26954   ac_check_lib_save_LIBS=$LIBS
26955 LIBS="-lpng  $LIBS"
26956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26957 /* end confdefs.h.  */
26958
26959 /* Override any GCC internal prototype to avoid an error.
26960    Use char because int might match the return type of a GCC
26961    builtin and then its argument prototype would still apply.  */
26962 #ifdef __cplusplus
26963 extern "C"
26964 #endif
26965 char png_get_io_ptr ();
26966 int
26967 main ()
26968 {
26969 return png_get_io_ptr ();
26970   ;
26971   return 0;
26972 }
26973 _ACEOF
26974 if ac_fn_c_try_link "$LINENO"; then :
26975   ac_cv_lib_png_png_get_io_ptr=yes
26976 else
26977   ac_cv_lib_png_png_get_io_ptr=no
26978 fi
26979 rm -f core conftest.err conftest.$ac_objext \
26980     conftest$ac_exeext conftest.$ac_ext
26981 LIBS=$ac_check_lib_save_LIBS
26982 fi
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
26984 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
26985 if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
26986   passed=`expr $passed + 1`
26987 else
26988   failed=`expr $failed + 1`
26989 fi
26990
26991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
26992 $as_echo_n "checking if PNG package is complete... " >&6; }
26993     if test $passed -gt 0; then
26994         if test $failed -gt 0; then
26995             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26996 $as_echo "no -- some components failed test" >&6; }
26997             have_png='no (failed tests)'
26998         else
26999             PNG_LIBS='-lpng'
27000             LIBS="$PNG_LIBS $LIBS"
27001
27002 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
27003
27004             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27005 $as_echo "yes" >&6; }
27006             have_png='yes'
27007         fi
27008     else
27009         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27010 $as_echo "no" >&6; }
27011     fi
27012 fi
27013  if test "$have_png" = 'yes'; then
27014   PNG_DELEGATE_TRUE=
27015   PNG_DELEGATE_FALSE='#'
27016 else
27017   PNG_DELEGATE_TRUE='#'
27018   PNG_DELEGATE_FALSE=
27019 fi
27020
27021
27022
27023
27024 #
27025 # Check for RSVG delegate library.
27026 #
27027
27028 # Check whether --with-rsvg was given.
27029 if test "${with_rsvg+set}" = set; then :
27030   withval=$with_rsvg; with_rsvg=$withval
27031 else
27032   with_rsvg=$have_x
27033 fi
27034
27035
27036 if test "$with_rsvg" != 'yes'; then
27037     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
27038 fi
27039
27040 have_rsvg='no'
27041 have_cairo='no'
27042 RSVG_CFLAGS=""
27043 RSVG_LIBS=""
27044 RSVG_PKG=""
27045 if test "x$with_rsvg" = "xyes"; then
27046     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27047 $as_echo "-------------------------------------------------------------" >&6; }
27048
27049 pkg_failed=no
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
27051 $as_echo_n "checking for RSVG... " >&6; }
27052
27053 if test -n "$RSVG_CFLAGS"; then
27054     pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
27055  elif test -n "$PKG_CONFIG"; then
27056     if test -n "$PKG_CONFIG" && \
27057     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
27058   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27059   ac_status=$?
27060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27061   test $ac_status = 0; }; then
27062   pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27063 else
27064   pkg_failed=yes
27065 fi
27066  else
27067     pkg_failed=untried
27068 fi
27069 if test -n "$RSVG_LIBS"; then
27070     pkg_cv_RSVG_LIBS="$RSVG_LIBS"
27071  elif test -n "$PKG_CONFIG"; then
27072     if test -n "$PKG_CONFIG" && \
27073     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
27074   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27075   ac_status=$?
27076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27077   test $ac_status = 0; }; then
27078   pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27079 else
27080   pkg_failed=yes
27081 fi
27082  else
27083     pkg_failed=untried
27084 fi
27085
27086
27087
27088 if test $pkg_failed = yes; then
27089
27090 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27091         _pkg_short_errors_supported=yes
27092 else
27093         _pkg_short_errors_supported=no
27094 fi
27095         if test $_pkg_short_errors_supported = yes; then
27096                 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27097         else
27098                 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27099         fi
27100         # Put the nasty error message in config.log where it belongs
27101         echo "$RSVG_PKG_ERRORS" >&5
27102
27103         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27104 $as_echo "no" >&6; }
27105                 have_rsvg=no
27106 elif test $pkg_failed = untried; then
27107         have_rsvg=no
27108 else
27109         RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
27110         RSVG_LIBS=$pkg_cv_RSVG_LIBS
27111         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27112 $as_echo "yes" >&6; }
27113         have_rsvg=yes
27114 fi
27115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27116 $as_echo "" >&6; }
27117
27118 pkg_failed=no
27119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
27120 $as_echo_n "checking for CAIRO_SVG... " >&6; }
27121
27122 if test -n "$CAIRO_SVG_CFLAGS"; then
27123     pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
27124  elif test -n "$PKG_CONFIG"; then
27125     if test -n "$PKG_CONFIG" && \
27126     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
27127   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27128   ac_status=$?
27129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27130   test $ac_status = 0; }; then
27131   pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
27132 else
27133   pkg_failed=yes
27134 fi
27135  else
27136     pkg_failed=untried
27137 fi
27138 if test -n "$CAIRO_SVG_LIBS"; then
27139     pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
27140  elif test -n "$PKG_CONFIG"; then
27141     if test -n "$PKG_CONFIG" && \
27142     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
27143   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27144   ac_status=$?
27145   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27146   test $ac_status = 0; }; then
27147   pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
27148 else
27149   pkg_failed=yes
27150 fi
27151  else
27152     pkg_failed=untried
27153 fi
27154
27155
27156
27157 if test $pkg_failed = yes; then
27158
27159 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27160         _pkg_short_errors_supported=yes
27161 else
27162         _pkg_short_errors_supported=no
27163 fi
27164         if test $_pkg_short_errors_supported = yes; then
27165                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
27166         else
27167                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
27168         fi
27169         # Put the nasty error message in config.log where it belongs
27170         echo "$CAIRO_SVG_PKG_ERRORS" >&5
27171
27172         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27173 $as_echo "no" >&6; }
27174                 have_cairo=no
27175 elif test $pkg_failed = untried; then
27176         have_cairo=no
27177 else
27178         CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
27179         CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
27180         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27181 $as_echo "yes" >&6; }
27182         have_cairo=yes
27183 fi
27184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27185 $as_echo "" >&6; }
27186 fi
27187
27188 if test "$have_rsvg" = 'yes'; then
27189
27190 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
27191
27192     if test "$with_modules" = 'no'; then
27193         CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
27194     fi
27195 fi
27196
27197 if test "$have_cairo" = 'yes'; then
27198
27199 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
27200
27201     if test "$with_modules" = 'no'; then
27202         CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
27203     fi
27204 fi
27205
27206  if test "$have_rsvg" = 'yes'; then
27207   RSVG_DELEGATE_TRUE=
27208   RSVG_DELEGATE_FALSE='#'
27209 else
27210   RSVG_DELEGATE_TRUE='#'
27211   RSVG_DELEGATE_FALSE=
27212 fi
27213
27214  if test "$have_cairo" = 'yes'; then
27215   CAIRO_DELEGATE_TRUE=
27216   CAIRO_DELEGATE_FALSE='#'
27217 else
27218   CAIRO_DELEGATE_TRUE='#'
27219   CAIRO_DELEGATE_FALSE=
27220 fi
27221
27222
27223
27224
27225
27226 #
27227 # Check for TIFF delegate library.
27228 #
27229
27230 # Check whether --with-tiff was given.
27231 if test "${with_tiff+set}" = set; then :
27232   withval=$with_tiff; with_tiff=$withval
27233 else
27234   with_tiff='yes'
27235 fi
27236
27237
27238 if test "$with_tiff" != 'yes'; then
27239     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
27240 fi
27241
27242 have_tiff='no'
27243 TIFF_LIBS=''
27244 if test "$with_tiff" != 'no'; then
27245     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27246 $as_echo "-------------------------------------------------------------" >&6; }
27247     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
27248 $as_echo_n "checking for TIFF... " >&6; }
27249     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27250 $as_echo "" >&6; }
27251     failed=0
27252     passed=0
27253     ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
27254 if test "x$ac_cv_header_tiff_h" = x""yes; then :
27255   passed=`expr $passed + 1`
27256 else
27257   failed=`expr $failed + 1`
27258 fi
27259
27260
27261     ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
27262 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
27263   passed=`expr $passed + 1`
27264 else
27265   failed=`expr $failed + 1`
27266 fi
27267
27268
27269     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
27270 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
27271 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
27272   $as_echo_n "(cached) " >&6
27273 else
27274   ac_check_lib_save_LIBS=$LIBS
27275 LIBS="-ltiff  $LIBS"
27276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27277 /* end confdefs.h.  */
27278
27279 /* Override any GCC internal prototype to avoid an error.
27280    Use char because int might match the return type of a GCC
27281    builtin and then its argument prototype would still apply.  */
27282 #ifdef __cplusplus
27283 extern "C"
27284 #endif
27285 char TIFFOpen ();
27286 int
27287 main ()
27288 {
27289 return TIFFOpen ();
27290   ;
27291   return 0;
27292 }
27293 _ACEOF
27294 if ac_fn_c_try_link "$LINENO"; then :
27295   ac_cv_lib_tiff_TIFFOpen=yes
27296 else
27297   ac_cv_lib_tiff_TIFFOpen=no
27298 fi
27299 rm -f core conftest.err conftest.$ac_objext \
27300     conftest$ac_exeext conftest.$ac_ext
27301 LIBS=$ac_check_lib_save_LIBS
27302 fi
27303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
27304 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
27305 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
27306   passed=`expr $passed + 1`
27307 else
27308   failed=`expr $failed + 1`
27309 fi
27310
27311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
27312 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
27313 if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
27314   $as_echo_n "(cached) " >&6
27315 else
27316   ac_check_lib_save_LIBS=$LIBS
27317 LIBS="-ltiff  $LIBS"
27318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27319 /* end confdefs.h.  */
27320
27321 /* Override any GCC internal prototype to avoid an error.
27322    Use char because int might match the return type of a GCC
27323    builtin and then its argument prototype would still apply.  */
27324 #ifdef __cplusplus
27325 extern "C"
27326 #endif
27327 char TIFFClientOpen ();
27328 int
27329 main ()
27330 {
27331 return TIFFClientOpen ();
27332   ;
27333   return 0;
27334 }
27335 _ACEOF
27336 if ac_fn_c_try_link "$LINENO"; then :
27337   ac_cv_lib_tiff_TIFFClientOpen=yes
27338 else
27339   ac_cv_lib_tiff_TIFFClientOpen=no
27340 fi
27341 rm -f core conftest.err conftest.$ac_objext \
27342     conftest$ac_exeext conftest.$ac_ext
27343 LIBS=$ac_check_lib_save_LIBS
27344 fi
27345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
27346 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
27347 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
27348   passed=`expr $passed + 1`
27349 else
27350   failed=`expr $failed + 1`
27351 fi
27352
27353     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
27354 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
27355 if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
27356   $as_echo_n "(cached) " >&6
27357 else
27358   ac_check_lib_save_LIBS=$LIBS
27359 LIBS="-ltiff  $LIBS"
27360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27361 /* end confdefs.h.  */
27362
27363 /* Override any GCC internal prototype to avoid an error.
27364    Use char because int might match the return type of a GCC
27365    builtin and then its argument prototype would still apply.  */
27366 #ifdef __cplusplus
27367 extern "C"
27368 #endif
27369 char TIFFIsByteSwapped ();
27370 int
27371 main ()
27372 {
27373 return TIFFIsByteSwapped ();
27374   ;
27375   return 0;
27376 }
27377 _ACEOF
27378 if ac_fn_c_try_link "$LINENO"; then :
27379   ac_cv_lib_tiff_TIFFIsByteSwapped=yes
27380 else
27381   ac_cv_lib_tiff_TIFFIsByteSwapped=no
27382 fi
27383 rm -f core conftest.err conftest.$ac_objext \
27384     conftest$ac_exeext conftest.$ac_ext
27385 LIBS=$ac_check_lib_save_LIBS
27386 fi
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
27388 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
27389 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
27390   passed=`expr $passed + 1`
27391 else
27392   failed=`expr $failed + 1`
27393 fi
27394
27395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
27396 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
27397 if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
27398   $as_echo_n "(cached) " >&6
27399 else
27400   ac_check_lib_save_LIBS=$LIBS
27401 LIBS="-ltiff  $LIBS"
27402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27403 /* end confdefs.h.  */
27404
27405 /* Override any GCC internal prototype to avoid an error.
27406    Use char because int might match the return type of a GCC
27407    builtin and then its argument prototype would still apply.  */
27408 #ifdef __cplusplus
27409 extern "C"
27410 #endif
27411 char TIFFReadRGBATile ();
27412 int
27413 main ()
27414 {
27415 return TIFFReadRGBATile ();
27416   ;
27417   return 0;
27418 }
27419 _ACEOF
27420 if ac_fn_c_try_link "$LINENO"; then :
27421   ac_cv_lib_tiff_TIFFReadRGBATile=yes
27422 else
27423   ac_cv_lib_tiff_TIFFReadRGBATile=no
27424 fi
27425 rm -f core conftest.err conftest.$ac_objext \
27426     conftest$ac_exeext conftest.$ac_ext
27427 LIBS=$ac_check_lib_save_LIBS
27428 fi
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
27430 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
27431 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
27432   passed=`expr $passed + 1`
27433 else
27434   failed=`expr $failed + 1`
27435 fi
27436
27437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
27438 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
27439 if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
27440   $as_echo_n "(cached) " >&6
27441 else
27442   ac_check_lib_save_LIBS=$LIBS
27443 LIBS="-ltiff  $LIBS"
27444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27445 /* end confdefs.h.  */
27446
27447 /* Override any GCC internal prototype to avoid an error.
27448    Use char because int might match the return type of a GCC
27449    builtin and then its argument prototype would still apply.  */
27450 #ifdef __cplusplus
27451 extern "C"
27452 #endif
27453 char TIFFReadRGBAStrip ();
27454 int
27455 main ()
27456 {
27457 return TIFFReadRGBAStrip ();
27458   ;
27459   return 0;
27460 }
27461 _ACEOF
27462 if ac_fn_c_try_link "$LINENO"; then :
27463   ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
27464 else
27465   ac_cv_lib_tiff_TIFFReadRGBAStrip=no
27466 fi
27467 rm -f core conftest.err conftest.$ac_objext \
27468     conftest$ac_exeext conftest.$ac_ext
27469 LIBS=$ac_check_lib_save_LIBS
27470 fi
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
27472 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
27473 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
27474   passed=`expr $passed + 1`
27475 else
27476   failed=`expr $failed + 1`
27477 fi
27478
27479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
27480 $as_echo_n "checking if TIFF package is complete... " >&6; }
27481     if test $passed -gt 0; then
27482         if test $failed -gt 0; then
27483             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27484 $as_echo "no -- some components failed test" >&6; }
27485             have_tiff='no (failed tests)'
27486         else
27487             TIFF_LIBS='-ltiff'
27488             LIBS="$TIFF_LIBS $LIBS"
27489
27490 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
27491
27492             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27493 $as_echo "yes" >&6; }
27494             have_tiff='yes'
27495             for ac_header in tiffconf.h
27496 do :
27497   ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
27498 if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
27499   cat >>confdefs.h <<_ACEOF
27500 #define HAVE_TIFFCONF_H 1
27501 _ACEOF
27502
27503 fi
27504
27505 done
27506
27507             for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
27508               TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
27509               TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
27510 do :
27511   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27512 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27513 eval as_val=\$$as_ac_var
27514    if test "x$as_val" = x""yes; then :
27515   cat >>confdefs.h <<_ACEOF
27516 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27517 _ACEOF
27518
27519 fi
27520 done
27521
27522         fi
27523     else
27524         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27525 $as_echo "no" >&6; }
27526     fi
27527 fi
27528  if test "$have_tiff" = 'yes'; then
27529   TIFF_DELEGATE_TRUE=
27530   TIFF_DELEGATE_FALSE='#'
27531 else
27532   TIFF_DELEGATE_TRUE='#'
27533   TIFF_DELEGATE_FALSE=
27534 fi
27535
27536
27537
27538
27539 #
27540 # Set Windows font directory.
27541 #
27542
27543 # Check whether --with-windows-font-dir was given.
27544 if test "${with_windows_font_dir+set}" = set; then :
27545   withval=$with_windows_font_dir; with_windows_font_dir=$withval
27546 else
27547   with_windows_font_dir=''
27548 fi
27549
27550 if test "$with_windows_font_dir" != '' ; then
27551     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
27552 fi
27553
27554
27555 #
27556 # Check for WMF delegate library.
27557 #
27558
27559 # Check whether --with-wmf was given.
27560 if test "${with_wmf+set}" = set; then :
27561   withval=$with_wmf; with_wmf=$withval
27562 else
27563   with_wmf=$with_modules
27564 fi
27565
27566
27567 if test "$with_wmf" != 'yes'; then
27568     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
27569 fi
27570
27571 have_wmf='no'
27572 WMF_LIBS=''
27573 WMF_LIBS_DEPS=''
27574 OLIBS="$LIBS"
27575 if test "$with_wmf" != 'no'; then
27576     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27577 $as_echo "-------------------------------------------------------------" >&6; }
27578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
27579 $as_echo_n "checking for WMF... " >&6; }
27580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27581 $as_echo "" >&6; }
27582     have_libwmf='no'
27583     have_libwmflite='no'
27584     have_libwmf_ipa_h='no'
27585
27586     ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
27587 "
27588 if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then :
27589   have_libwmf_ipa_h='yes'
27590 fi
27591
27592
27593     if test "$have_libwmf_ipa_h" = 'yes'; then
27594         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
27595 $as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
27596 if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then :
27597   $as_echo_n "(cached) " >&6
27598 else
27599   ac_check_lib_save_LIBS=$LIBS
27600 LIBS="-lwmflite  $LIBS"
27601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27602 /* end confdefs.h.  */
27603
27604 /* Override any GCC internal prototype to avoid an error.
27605    Use char because int might match the return type of a GCC
27606    builtin and then its argument prototype would still apply.  */
27607 #ifdef __cplusplus
27608 extern "C"
27609 #endif
27610 char wmf_lite_create ();
27611 int
27612 main ()
27613 {
27614 return wmf_lite_create ();
27615   ;
27616   return 0;
27617 }
27618 _ACEOF
27619 if ac_fn_c_try_link "$LINENO"; then :
27620   ac_cv_lib_wmflite_wmf_lite_create=yes
27621 else
27622   ac_cv_lib_wmflite_wmf_lite_create=no
27623 fi
27624 rm -f core conftest.err conftest.$ac_objext \
27625     conftest$ac_exeext conftest.$ac_ext
27626 LIBS=$ac_check_lib_save_LIBS
27627 fi
27628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
27629 $as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
27630 if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then :
27631   have_libwmflite='yes'
27632 fi
27633
27634         if test "$have_libwmflite" = 'yes'; then
27635
27636 $as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
27637
27638             WMF_LIBS='-lwmflite'
27639             LIBS="$WMF_LIBS $LIBS"
27640             have_wmf='yes'
27641         else
27642             WMF_LIBS_DEPS=''
27643             WMF_CONFIG_LIBS=`libwmf-config --libs`
27644             for lib in xml2 expat freetype jpeg png z; do
27645                 testlib="-l${lib}"
27646                 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
27647             done
27648             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
27649 $as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
27650 if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then :
27651   $as_echo_n "(cached) " >&6
27652 else
27653   ac_check_lib_save_LIBS=$LIBS
27654 LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
27655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27656 /* end confdefs.h.  */
27657
27658 /* Override any GCC internal prototype to avoid an error.
27659    Use char because int might match the return type of a GCC
27660    builtin and then its argument prototype would still apply.  */
27661 #ifdef __cplusplus
27662 extern "C"
27663 #endif
27664 char wmf_api_create ();
27665 int
27666 main ()
27667 {
27668 return wmf_api_create ();
27669   ;
27670   return 0;
27671 }
27672 _ACEOF
27673 if ac_fn_c_try_link "$LINENO"; then :
27674   ac_cv_lib_wmf_wmf_api_create=yes
27675 else
27676   ac_cv_lib_wmf_wmf_api_create=no
27677 fi
27678 rm -f core conftest.err conftest.$ac_objext \
27679     conftest$ac_exeext conftest.$ac_ext
27680 LIBS=$ac_check_lib_save_LIBS
27681 fi
27682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
27683 $as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
27684 if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then :
27685   have_libwmf='yes'
27686 fi
27687
27688             if test "$have_libwmf" = 'yes'; then
27689
27690 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
27691
27692                 WMF_LIBS='-lwmf'
27693                 LIBS="$WMF_LIBS $LIBS"
27694                 have_wmf='yes'
27695             else
27696                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27697 $as_echo "no -- some components failed test" >&6; }
27698                 have_wmf='no (failed tests)'
27699                 have_wmflite='no (failed tests)'
27700                 LIBS="$OLIBS"
27701                 WMF_LIBS=''
27702             fi
27703         fi
27704     fi
27705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
27706 $as_echo_n "checking if WMF package is complete... " >&6; }
27707     if test "$have_wmf" = 'yes'; then
27708         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27709 $as_echo "yes" >&6; }
27710     else
27711         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27712 $as_echo "no" >&6; }
27713     fi
27714 fi
27715  if test "$have_wmf" = 'yes'; then
27716   WMF_DELEGATE_TRUE=
27717   WMF_DELEGATE_FALSE='#'
27718 else
27719   WMF_DELEGATE_TRUE='#'
27720   WMF_DELEGATE_FALSE=
27721 fi
27722
27723
27724
27725
27726
27727 #
27728 # Check for XML delegate library.
27729 #
27730
27731 # Check whether --with-xml was given.
27732 if test "${with_xml+set}" = set; then :
27733   withval=$with_xml; with_xml=$withval
27734 else
27735   with_xml=$have_x
27736 fi
27737
27738
27739 if test "$with_xml" != 'yes' ; then
27740     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
27741 fi
27742
27743 have_xml='no'
27744 XML_LIBS=''
27745 if test "$with_xml" != 'no'; then
27746     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27747 $as_echo "-------------------------------------------------------------" >&6; }
27748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
27749 $as_echo_n "checking for XML... " >&6; }
27750     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27751 $as_echo "" >&6; }
27752     PERSIST_LDFLAGS=$LDFLAGS
27753     PERSIST_CPPFLAGS=$CPPFLAGS
27754     xml2_config=''
27755     for ac_prog in xml2-config
27756 do
27757   # Extract the first word of "$ac_prog", so it can be a program name with args.
27758 set dummy $ac_prog; ac_word=$2
27759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27760 $as_echo_n "checking for $ac_word... " >&6; }
27761 if test "${ac_cv_prog_xml2_config+set}" = set; then :
27762   $as_echo_n "(cached) " >&6
27763 else
27764   if test -n "$xml2_config"; then
27765   ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
27766 else
27767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27768 for as_dir in $PATH
27769 do
27770   IFS=$as_save_IFS
27771   test -z "$as_dir" && as_dir=.
27772     for ac_exec_ext in '' $ac_executable_extensions; do
27773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27774     ac_cv_prog_xml2_config="$ac_prog"
27775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27776     break 2
27777   fi
27778 done
27779   done
27780 IFS=$as_save_IFS
27781
27782 fi
27783 fi
27784 xml2_config=$ac_cv_prog_xml2_config
27785 if test -n "$xml2_config"; then
27786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
27787 $as_echo "$xml2_config" >&6; }
27788 else
27789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27790 $as_echo "no" >&6; }
27791 fi
27792
27793
27794   test -n "$xml2_config" && break
27795 done
27796     if test -n "$xml2_config"; then
27797         # Debian installs libxml headers under /usr/include/libxml2/libxml with
27798         # the shared library installed under /usr/lib, whereas the package
27799         # installs itself under $prefix/libxml and $prefix/lib.
27800         xml2_prefix=`xml2-config --prefix`
27801         if test -d "${xml2_prefix}/include/libxml2"; then
27802             CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
27803         fi
27804         if test "${xml2_prefix}" != '/usr'; then
27805             LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
27806         fi
27807     fi
27808     failed=0
27809     passed=0
27810     ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
27811 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
27812   passed=`expr $passed + 1`
27813 else
27814   failed=`expr $failed + 1`
27815 fi
27816
27817
27818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
27819 $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
27820 if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
27821   $as_echo_n "(cached) " >&6
27822 else
27823   ac_check_lib_save_LIBS=$LIBS
27824 LIBS="-lxml2  $LIBS"
27825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27826 /* end confdefs.h.  */
27827
27828 /* Override any GCC internal prototype to avoid an error.
27829    Use char because int might match the return type of a GCC
27830    builtin and then its argument prototype would still apply.  */
27831 #ifdef __cplusplus
27832 extern "C"
27833 #endif
27834 char xmlParseExternalEntity ();
27835 int
27836 main ()
27837 {
27838 return xmlParseExternalEntity ();
27839   ;
27840   return 0;
27841 }
27842 _ACEOF
27843 if ac_fn_c_try_link "$LINENO"; then :
27844   ac_cv_lib_xml2_xmlParseExternalEntity=yes
27845 else
27846   ac_cv_lib_xml2_xmlParseExternalEntity=no
27847 fi
27848 rm -f core conftest.err conftest.$ac_objext \
27849     conftest$ac_exeext conftest.$ac_ext
27850 LIBS=$ac_check_lib_save_LIBS
27851 fi
27852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
27853 $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
27854 if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
27855   passed=`expr $passed + 1`
27856 else
27857   failed=`expr $failed + 1`
27858 fi
27859
27860     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
27861 $as_echo_n "checking if XML package is complete... " >&6; }
27862     if test $passed -gt 0; then
27863         if test $failed -gt 0; then
27864             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27865 $as_echo "no -- some components failed test" >&6; }
27866             have_xml='no (failed tests)'
27867             LDFLAGS="$PERSIST_LDFLAGS"
27868             CPPFLAGS="$PERSIST_CPPFLAGS"
27869         else
27870             XML_LIBS='-lxml2'
27871             LIBS="$XML_LIBS $LIBS"
27872
27873 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
27874
27875             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27876 $as_echo "yes" >&6; }
27877             have_xml='yes'
27878         fi
27879     else
27880         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27881 $as_echo "no" >&6; }
27882     fi
27883 fi
27884  if test "$have_xml" = 'yes'; then
27885   XML_DELEGATE_TRUE=
27886   XML_DELEGATE_FALSE='#'
27887 else
27888   XML_DELEGATE_TRUE='#'
27889   XML_DELEGATE_FALSE=
27890 fi
27891
27892
27893
27894
27895 # Substitute compiler name to build/link PerlMagick
27896 #
27897
27898
27899 #
27900 # Configure install Paths
27901 #
27902
27903 # Subdirectory under lib to place ImageMagick lib files
27904 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27905
27906 cat >>confdefs.h <<_ACEOF
27907 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
27908 _ACEOF
27909
27910
27911 # Path to ImageMagick bin directory
27912 EXECUTABLE_PATH="${BIN_DIR}"
27913 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
27914 case "${build_os}" in
27915   mingw* )
27916     DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
27917     ;;
27918 esac
27919
27920 cat >>confdefs.h <<_ACEOF
27921 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
27922 _ACEOF
27923
27924
27925
27926 # Path to ImageMagick lib
27927 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
27928 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
27929 case "${build_os}" in
27930   mingw* )
27931     DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
27932     ;;
27933 esac
27934
27935 cat >>confdefs.h <<_ACEOF
27936 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
27937 _ACEOF
27938
27939
27940
27941 # Subdirectory under lib to place ImageMagick configuration files
27942 CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
27943
27944 cat >>confdefs.h <<_ACEOF
27945 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
27946 _ACEOF
27947
27948 CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27949 DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27950 case "${build_os}" in
27951   mingw* )
27952     DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
27953     ;;
27954 esac
27955
27956 cat >>confdefs.h <<_ACEOF
27957 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
27958 _ACEOF
27959
27960
27961
27962 #
27963 # Subdirectory under lib to place ImageMagick coder module files
27964 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
27965
27966 cat >>confdefs.h <<_ACEOF
27967 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
27968 _ACEOF
27969
27970 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
27971 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
27972 case "${build_os}" in
27973   mingw* )
27974     DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
27975     ;;
27976 esac
27977
27978 cat >>confdefs.h <<_ACEOF
27979 #define CODER_PATH "$DEFINE_CODER_PATH"
27980 _ACEOF
27981
27982
27983
27984 #
27985 # Subdirectory under lib to place ImageMagick filter module files
27986 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
27987
27988 cat >>confdefs.h <<_ACEOF
27989 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
27990 _ACEOF
27991
27992 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
27993 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
27994 case "${build_os}" in
27995   mingw* )
27996     DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
27997     ;;
27998 esac
27999
28000 cat >>confdefs.h <<_ACEOF
28001 #define FILTER_PATH "$DEFINE_FILTER_PATH"
28002 _ACEOF
28003
28004
28005
28006 #
28007 # Path to ImageMagick documentation files
28008 DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28009 DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
28010 DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
28011 case "${build_os}" in
28012   mingw* )
28013     DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
28014     ;;
28015 esac
28016
28017 cat >>confdefs.h <<_ACEOF
28018 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
28019 _ACEOF
28020
28021
28022
28023 #
28024 # Path to ImageMagick share files
28025 SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28026 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
28027 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
28028 case "${build_os}" in
28029   mingw* )
28030     DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
28031     ;;
28032 esac
28033
28034 cat >>confdefs.h <<_ACEOF
28035 #define SHARE_PATH "$DEFINE_SHARE_PATH"
28036 _ACEOF
28037
28038
28039
28040 # Subdirectory under share to place ImageMagick configuration files
28041 SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28042
28043 cat >>confdefs.h <<_ACEOF
28044 #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
28045 _ACEOF
28046
28047 SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
28048 DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
28049 case "${build_os}" in
28050   mingw* )
28051     DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
28052     ;;
28053 esac
28054
28055 cat >>confdefs.h <<_ACEOF
28056 #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
28057 _ACEOF
28058
28059
28060
28061 #
28062 # program_transform_name is formed for use in a Makefile, so create a
28063 # modified version for use in a shell script.
28064 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
28065
28066 # Default delegate definitions
28067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28068 $as_echo "-------------------------------------------------------------" >&6; }
28069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
28070 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
28071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28072 $as_echo "" >&6; }
28073 AutotraceDecodeDelegateDefault='autotrace'
28074 AVIDecodeDelegateDefault='mplayer'
28075 BlenderDecodeDelegateDefault='blender'
28076 BZIPDelegateDefault='bzip2'
28077 BrowseDelegateDefault='xdg-open'
28078 CGMDecodeDelegateDefault='ralcgm'
28079 CatDelegateDefault='cat'
28080 DNGDecodeDelegateDefault='ufraw-batch'
28081 GVCDecodeDelegateDefault='dot'
28082 DVIDecodeDelegateDefault='dvips'
28083 EchoDelegateDefault='echo'
28084 EditorDelegateDefault='xterm'
28085 FIGDecodeDelegateDefault='fig2dev'
28086 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
28087 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
28088 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
28089 GnuplotDecodeDelegateDefault='gnuplot'
28090 HDRDecodeDelegateDefault='ra_pfm'
28091 HPGLDecodeDelegateDefault='hp2xx'
28092 HTMLDecodeDelegateDefault='html2ps'
28093 ILBMDecodeDelegateDefault='ilbmtoppm'
28094 ILBMEncodeDelegateDefault='ppmtoilbm'
28095 LPDelegateDefault='lp'
28096 LPRDelegateDefault='lpr'
28097 LZWDecodeDelegateDefault='uncompress'
28098 LZWEncodeDelegateDefault='compress'
28099 LaunchDelegateDefault='gimp'
28100 MANDelegateDefault='groff'
28101 MPEGDecodeDelegateDefault='ffmpeg'
28102 MPEGEncodeDelegateDefault='ffmpeg'
28103 MVDelegateDefault='mv'
28104 PCLDelegateDefault='pcl6'
28105 PGPDecodeDelegateDefault='pgpv'
28106 POVDelegateDefault='povray'
28107 if test "$native_win32_build" = 'yes'; then
28108     PSDelegateDefault='gswin32c'
28109 elif test "$gslib_framework" = 'yes'; then
28110     PSDelegateDefault='gsc'
28111 else
28112     PSDelegateDefault='gs'
28113 fi
28114 RLEEncodeDelegateDefault='rawtorle'
28115 RMDelegateDefault='rm'
28116 SCANDecodeDelegateDefault='scanimage'
28117 TXTDelegateDefault='enscript'
28118 WMFDecodeDelegateDefault='wmf2eps'
28119 WWWDecodeDelegateDefault='curl'
28120 XPSDelegateDefault='gxps'
28121 ZipDelegateDefault='gzip'
28122
28123 # Search for delegates
28124 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
28125 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28127 $as_echo_n "checking for $ac_word... " >&6; }
28128 if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
28129   $as_echo_n "(cached) " >&6
28130 else
28131   case $AutotraceDecodeDelegate in
28132   [\\/]* | ?:[\\/]*)
28133   ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
28134   ;;
28135   *)
28136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28137 for as_dir in $PATH
28138 do
28139   IFS=$as_save_IFS
28140   test -z "$as_dir" && as_dir=.
28141     for ac_exec_ext in '' $ac_executable_extensions; do
28142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28143     ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28145     break 2
28146   fi
28147 done
28148   done
28149 IFS=$as_save_IFS
28150
28151   test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
28152   ;;
28153 esac
28154 fi
28155 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
28156 if test -n "$AutotraceDecodeDelegate"; then
28157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
28158 $as_echo "$AutotraceDecodeDelegate" >&6; }
28159 else
28160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28161 $as_echo "no" >&6; }
28162 fi
28163
28164
28165 # Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
28166 set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
28167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28168 $as_echo_n "checking for $ac_word... " >&6; }
28169 if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
28170   $as_echo_n "(cached) " >&6
28171 else
28172   case $AVIDecodeDelegate in
28173   [\\/]* | ?:[\\/]*)
28174   ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
28175   ;;
28176   *)
28177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28178 for as_dir in $PATH
28179 do
28180   IFS=$as_save_IFS
28181   test -z "$as_dir" && as_dir=.
28182     for ac_exec_ext in '' $ac_executable_extensions; do
28183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28184     ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28186     break 2
28187   fi
28188 done
28189   done
28190 IFS=$as_save_IFS
28191
28192   test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
28193   ;;
28194 esac
28195 fi
28196 AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
28197 if test -n "$AVIDecodeDelegate"; then
28198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
28199 $as_echo "$AVIDecodeDelegate" >&6; }
28200 else
28201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28202 $as_echo "no" >&6; }
28203 fi
28204
28205
28206 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
28207 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
28208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28209 $as_echo_n "checking for $ac_word... " >&6; }
28210 if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
28211   $as_echo_n "(cached) " >&6
28212 else
28213   case $BlenderDecodeDelegate in
28214   [\\/]* | ?:[\\/]*)
28215   ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
28216   ;;
28217   *)
28218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28219 for as_dir in $PATH
28220 do
28221   IFS=$as_save_IFS
28222   test -z "$as_dir" && as_dir=.
28223     for ac_exec_ext in '' $ac_executable_extensions; do
28224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28225     ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28227     break 2
28228   fi
28229 done
28230   done
28231 IFS=$as_save_IFS
28232
28233   test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
28234   ;;
28235 esac
28236 fi
28237 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
28238 if test -n "$BlenderDecodeDelegate"; then
28239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
28240 $as_echo "$BlenderDecodeDelegate" >&6; }
28241 else
28242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28243 $as_echo "no" >&6; }
28244 fi
28245
28246
28247 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
28248 set dummy "$BZIPDelegateDefault"; ac_word=$2
28249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28250 $as_echo_n "checking for $ac_word... " >&6; }
28251 if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
28252   $as_echo_n "(cached) " >&6
28253 else
28254   case $BZIPDelegate in
28255   [\\/]* | ?:[\\/]*)
28256   ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
28257   ;;
28258   *)
28259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28260 for as_dir in $PATH
28261 do
28262   IFS=$as_save_IFS
28263   test -z "$as_dir" && as_dir=.
28264     for ac_exec_ext in '' $ac_executable_extensions; do
28265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28266     ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
28267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28268     break 2
28269   fi
28270 done
28271   done
28272 IFS=$as_save_IFS
28273
28274   test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
28275   ;;
28276 esac
28277 fi
28278 BZIPDelegate=$ac_cv_path_BZIPDelegate
28279 if test -n "$BZIPDelegate"; then
28280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
28281 $as_echo "$BZIPDelegate" >&6; }
28282 else
28283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28284 $as_echo "no" >&6; }
28285 fi
28286
28287
28288 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
28289 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
28290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28291 $as_echo_n "checking for $ac_word... " >&6; }
28292 if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
28293   $as_echo_n "(cached) " >&6
28294 else
28295   case $BrowseDelegate in
28296   [\\/]* | ?:[\\/]*)
28297   ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
28298   ;;
28299   *)
28300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28301 for as_dir in $PATH
28302 do
28303   IFS=$as_save_IFS
28304   test -z "$as_dir" && as_dir=.
28305     for ac_exec_ext in '' $ac_executable_extensions; do
28306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28307     ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
28308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28309     break 2
28310   fi
28311 done
28312   done
28313 IFS=$as_save_IFS
28314
28315   test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
28316   ;;
28317 esac
28318 fi
28319 BrowseDelegate=$ac_cv_path_BrowseDelegate
28320 if test -n "$BrowseDelegate"; then
28321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
28322 $as_echo "$BrowseDelegate" >&6; }
28323 else
28324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28325 $as_echo "no" >&6; }
28326 fi
28327
28328
28329 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
28330 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
28331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28332 $as_echo_n "checking for $ac_word... " >&6; }
28333 if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
28334   $as_echo_n "(cached) " >&6
28335 else
28336   case $CGMDecodeDelegate in
28337   [\\/]* | ?:[\\/]*)
28338   ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
28339   ;;
28340   *)
28341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28342 for as_dir in $PATH
28343 do
28344   IFS=$as_save_IFS
28345   test -z "$as_dir" && as_dir=.
28346     for ac_exec_ext in '' $ac_executable_extensions; do
28347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28348     ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28350     break 2
28351   fi
28352 done
28353   done
28354 IFS=$as_save_IFS
28355
28356   test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
28357   ;;
28358 esac
28359 fi
28360 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
28361 if test -n "$CGMDecodeDelegate"; then
28362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
28363 $as_echo "$CGMDecodeDelegate" >&6; }
28364 else
28365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28366 $as_echo "no" >&6; }
28367 fi
28368
28369
28370 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
28371 set dummy "$CatDelegateDefault"; ac_word=$2
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28373 $as_echo_n "checking for $ac_word... " >&6; }
28374 if test "${ac_cv_path_CatDelegate+set}" = set; then :
28375   $as_echo_n "(cached) " >&6
28376 else
28377   case $CatDelegate in
28378   [\\/]* | ?:[\\/]*)
28379   ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
28380   ;;
28381   *)
28382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28383 for as_dir in $PATH
28384 do
28385   IFS=$as_save_IFS
28386   test -z "$as_dir" && as_dir=.
28387     for ac_exec_ext in '' $ac_executable_extensions; do
28388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28389     ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
28390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28391     break 2
28392   fi
28393 done
28394   done
28395 IFS=$as_save_IFS
28396
28397   test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
28398   ;;
28399 esac
28400 fi
28401 CatDelegate=$ac_cv_path_CatDelegate
28402 if test -n "$CatDelegate"; then
28403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
28404 $as_echo "$CatDelegate" >&6; }
28405 else
28406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28407 $as_echo "no" >&6; }
28408 fi
28409
28410
28411 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
28412 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
28413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28414 $as_echo_n "checking for $ac_word... " >&6; }
28415 if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
28416   $as_echo_n "(cached) " >&6
28417 else
28418   case $DNGDecodeDelegate in
28419   [\\/]* | ?:[\\/]*)
28420   ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
28421   ;;
28422   *)
28423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28424 for as_dir in $PATH
28425 do
28426   IFS=$as_save_IFS
28427   test -z "$as_dir" && as_dir=.
28428     for ac_exec_ext in '' $ac_executable_extensions; do
28429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28430     ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28432     break 2
28433   fi
28434 done
28435   done
28436 IFS=$as_save_IFS
28437
28438   test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
28439   ;;
28440 esac
28441 fi
28442 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
28443 if test -n "$DNGDecodeDelegate"; then
28444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
28445 $as_echo "$DNGDecodeDelegate" >&6; }
28446 else
28447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28448 $as_echo "no" >&6; }
28449 fi
28450
28451
28452 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
28453 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
28454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28455 $as_echo_n "checking for $ac_word... " >&6; }
28456 if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
28457   $as_echo_n "(cached) " >&6
28458 else
28459   case $GVCDecodeDelegate in
28460   [\\/]* | ?:[\\/]*)
28461   ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
28462   ;;
28463   *)
28464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28465 for as_dir in $PATH
28466 do
28467   IFS=$as_save_IFS
28468   test -z "$as_dir" && as_dir=.
28469     for ac_exec_ext in '' $ac_executable_extensions; do
28470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28471     ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28473     break 2
28474   fi
28475 done
28476   done
28477 IFS=$as_save_IFS
28478
28479   test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
28480   ;;
28481 esac
28482 fi
28483 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
28484 if test -n "$GVCDecodeDelegate"; then
28485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
28486 $as_echo "$GVCDecodeDelegate" >&6; }
28487 else
28488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28489 $as_echo "no" >&6; }
28490 fi
28491
28492
28493 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
28494 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
28495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28496 $as_echo_n "checking for $ac_word... " >&6; }
28497 if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
28498   $as_echo_n "(cached) " >&6
28499 else
28500   case $DVIDecodeDelegate in
28501   [\\/]* | ?:[\\/]*)
28502   ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
28503   ;;
28504   *)
28505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28506 for as_dir in $PATH
28507 do
28508   IFS=$as_save_IFS
28509   test -z "$as_dir" && as_dir=.
28510     for ac_exec_ext in '' $ac_executable_extensions; do
28511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28512     ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28514     break 2
28515   fi
28516 done
28517   done
28518 IFS=$as_save_IFS
28519
28520   test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
28521   ;;
28522 esac
28523 fi
28524 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
28525 if test -n "$DVIDecodeDelegate"; then
28526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
28527 $as_echo "$DVIDecodeDelegate" >&6; }
28528 else
28529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28530 $as_echo "no" >&6; }
28531 fi
28532
28533
28534 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
28535 set dummy "$EchoDelegateDefault"; ac_word=$2
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28537 $as_echo_n "checking for $ac_word... " >&6; }
28538 if test "${ac_cv_path_EchoDelegate+set}" = set; then :
28539   $as_echo_n "(cached) " >&6
28540 else
28541   case $EchoDelegate in
28542   [\\/]* | ?:[\\/]*)
28543   ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
28544   ;;
28545   *)
28546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28547 for as_dir in $PATH
28548 do
28549   IFS=$as_save_IFS
28550   test -z "$as_dir" && as_dir=.
28551     for ac_exec_ext in '' $ac_executable_extensions; do
28552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28553     ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
28554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28555     break 2
28556   fi
28557 done
28558   done
28559 IFS=$as_save_IFS
28560
28561   test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
28562   ;;
28563 esac
28564 fi
28565 EchoDelegate=$ac_cv_path_EchoDelegate
28566 if test -n "$EchoDelegate"; then
28567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
28568 $as_echo "$EchoDelegate" >&6; }
28569 else
28570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28571 $as_echo "no" >&6; }
28572 fi
28573
28574
28575 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
28576 set dummy "$EditorDelegateDefault"; ac_word=$2
28577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28578 $as_echo_n "checking for $ac_word... " >&6; }
28579 if test "${ac_cv_path_EditorDelegate+set}" = set; then :
28580   $as_echo_n "(cached) " >&6
28581 else
28582   case $EditorDelegate in
28583   [\\/]* | ?:[\\/]*)
28584   ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
28585   ;;
28586   *)
28587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28588 for as_dir in $PATH
28589 do
28590   IFS=$as_save_IFS
28591   test -z "$as_dir" && as_dir=.
28592     for ac_exec_ext in '' $ac_executable_extensions; do
28593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28594     ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
28595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28596     break 2
28597   fi
28598 done
28599   done
28600 IFS=$as_save_IFS
28601
28602   test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
28603   ;;
28604 esac
28605 fi
28606 EditorDelegate=$ac_cv_path_EditorDelegate
28607 if test -n "$EditorDelegate"; then
28608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
28609 $as_echo "$EditorDelegate" >&6; }
28610 else
28611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28612 $as_echo "no" >&6; }
28613 fi
28614
28615
28616 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
28617 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28619 $as_echo_n "checking for $ac_word... " >&6; }
28620 if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
28621   $as_echo_n "(cached) " >&6
28622 else
28623   case $FIGDecodeDelegate in
28624   [\\/]* | ?:[\\/]*)
28625   ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
28626   ;;
28627   *)
28628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28629 for as_dir in $PATH
28630 do
28631   IFS=$as_save_IFS
28632   test -z "$as_dir" && as_dir=.
28633     for ac_exec_ext in '' $ac_executable_extensions; do
28634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28635     ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28637     break 2
28638   fi
28639 done
28640   done
28641 IFS=$as_save_IFS
28642
28643   test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
28644   ;;
28645 esac
28646 fi
28647 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
28648 if test -n "$FIGDecodeDelegate"; then
28649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
28650 $as_echo "$FIGDecodeDelegate" >&6; }
28651 else
28652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28653 $as_echo "no" >&6; }
28654 fi
28655
28656
28657 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
28658 set dummy "$ConvertDelegateDefault"; ac_word=$2
28659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28660 $as_echo_n "checking for $ac_word... " >&6; }
28661 if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
28662   $as_echo_n "(cached) " >&6
28663 else
28664   case $ConvertDelegate in
28665   [\\/]* | ?:[\\/]*)
28666   ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
28667   ;;
28668   *)
28669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28670 for as_dir in $PATH
28671 do
28672   IFS=$as_save_IFS
28673   test -z "$as_dir" && as_dir=.
28674     for ac_exec_ext in '' $ac_executable_extensions; do
28675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28676     ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
28677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28678     break 2
28679   fi
28680 done
28681   done
28682 IFS=$as_save_IFS
28683
28684   test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
28685   ;;
28686 esac
28687 fi
28688 ConvertDelegate=$ac_cv_path_ConvertDelegate
28689 if test -n "$ConvertDelegate"; then
28690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
28691 $as_echo "$ConvertDelegate" >&6; }
28692 else
28693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28694 $as_echo "no" >&6; }
28695 fi
28696
28697
28698 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
28699 set dummy "$DisplayDelegateDefault"; ac_word=$2
28700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28701 $as_echo_n "checking for $ac_word... " >&6; }
28702 if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
28703   $as_echo_n "(cached) " >&6
28704 else
28705   case $DisplayDelegate in
28706   [\\/]* | ?:[\\/]*)
28707   ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
28708   ;;
28709   *)
28710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28711 for as_dir in $PATH
28712 do
28713   IFS=$as_save_IFS
28714   test -z "$as_dir" && as_dir=.
28715     for ac_exec_ext in '' $ac_executable_extensions; do
28716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28717     ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
28718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28719     break 2
28720   fi
28721 done
28722   done
28723 IFS=$as_save_IFS
28724
28725   test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
28726   ;;
28727 esac
28728 fi
28729 DisplayDelegate=$ac_cv_path_DisplayDelegate
28730 if test -n "$DisplayDelegate"; then
28731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
28732 $as_echo "$DisplayDelegate" >&6; }
28733 else
28734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28735 $as_echo "no" >&6; }
28736 fi
28737
28738
28739 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
28740 set dummy "$MogrifyDelegateDefault"; ac_word=$2
28741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28742 $as_echo_n "checking for $ac_word... " >&6; }
28743 if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
28744   $as_echo_n "(cached) " >&6
28745 else
28746   case $MogrifyDelegate in
28747   [\\/]* | ?:[\\/]*)
28748   ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
28749   ;;
28750   *)
28751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28752 for as_dir in $PATH
28753 do
28754   IFS=$as_save_IFS
28755   test -z "$as_dir" && as_dir=.
28756     for ac_exec_ext in '' $ac_executable_extensions; do
28757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28758     ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
28759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28760     break 2
28761   fi
28762 done
28763   done
28764 IFS=$as_save_IFS
28765
28766   test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
28767   ;;
28768 esac
28769 fi
28770 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
28771 if test -n "$MogrifyDelegate"; then
28772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
28773 $as_echo "$MogrifyDelegate" >&6; }
28774 else
28775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28776 $as_echo "no" >&6; }
28777 fi
28778
28779
28780 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
28781 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
28782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28783 $as_echo_n "checking for $ac_word... " >&6; }
28784 if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
28785   $as_echo_n "(cached) " >&6
28786 else
28787   case $GnuplotDecodeDelegate in
28788   [\\/]* | ?:[\\/]*)
28789   ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
28790   ;;
28791   *)
28792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28793 for as_dir in $PATH
28794 do
28795   IFS=$as_save_IFS
28796   test -z "$as_dir" && as_dir=.
28797     for ac_exec_ext in '' $ac_executable_extensions; do
28798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28799     ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28801     break 2
28802   fi
28803 done
28804   done
28805 IFS=$as_save_IFS
28806
28807   test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
28808   ;;
28809 esac
28810 fi
28811 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
28812 if test -n "$GnuplotDecodeDelegate"; then
28813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
28814 $as_echo "$GnuplotDecodeDelegate" >&6; }
28815 else
28816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28817 $as_echo "no" >&6; }
28818 fi
28819
28820
28821 # Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
28822 set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
28823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28824 $as_echo_n "checking for $ac_word... " >&6; }
28825 if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
28826   $as_echo_n "(cached) " >&6
28827 else
28828   case $HDRDecodeDelegate in
28829   [\\/]* | ?:[\\/]*)
28830   ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
28831   ;;
28832   *)
28833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28834 for as_dir in $PATH
28835 do
28836   IFS=$as_save_IFS
28837   test -z "$as_dir" && as_dir=.
28838     for ac_exec_ext in '' $ac_executable_extensions; do
28839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28840     ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28842     break 2
28843   fi
28844 done
28845   done
28846 IFS=$as_save_IFS
28847
28848   test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
28849   ;;
28850 esac
28851 fi
28852 HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
28853 if test -n "$HDRDecodeDelegate"; then
28854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
28855 $as_echo "$HDRDecodeDelegate" >&6; }
28856 else
28857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28858 $as_echo "no" >&6; }
28859 fi
28860
28861
28862 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
28863 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
28864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28865 $as_echo_n "checking for $ac_word... " >&6; }
28866 if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
28867   $as_echo_n "(cached) " >&6
28868 else
28869   case $HPGLDecodeDelegate in
28870   [\\/]* | ?:[\\/]*)
28871   ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
28872   ;;
28873   *)
28874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28875 for as_dir in $PATH
28876 do
28877   IFS=$as_save_IFS
28878   test -z "$as_dir" && as_dir=.
28879     for ac_exec_ext in '' $ac_executable_extensions; do
28880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28881     ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28883     break 2
28884   fi
28885 done
28886   done
28887 IFS=$as_save_IFS
28888
28889   test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
28890   ;;
28891 esac
28892 fi
28893 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
28894 if test -n "$HPGLDecodeDelegate"; then
28895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
28896 $as_echo "$HPGLDecodeDelegate" >&6; }
28897 else
28898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28899 $as_echo "no" >&6; }
28900 fi
28901
28902
28903 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
28904 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
28905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28906 $as_echo_n "checking for $ac_word... " >&6; }
28907 if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
28908   $as_echo_n "(cached) " >&6
28909 else
28910   case $HTMLDecodeDelegate in
28911   [\\/]* | ?:[\\/]*)
28912   ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
28913   ;;
28914   *)
28915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28916 for as_dir in $PATH
28917 do
28918   IFS=$as_save_IFS
28919   test -z "$as_dir" && as_dir=.
28920     for ac_exec_ext in '' $ac_executable_extensions; do
28921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28922     ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28924     break 2
28925   fi
28926 done
28927   done
28928 IFS=$as_save_IFS
28929
28930   test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
28931   ;;
28932 esac
28933 fi
28934 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
28935 if test -n "$HTMLDecodeDelegate"; then
28936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
28937 $as_echo "$HTMLDecodeDelegate" >&6; }
28938 else
28939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28940 $as_echo "no" >&6; }
28941 fi
28942
28943
28944 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
28945 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
28946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28947 $as_echo_n "checking for $ac_word... " >&6; }
28948 if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
28949   $as_echo_n "(cached) " >&6
28950 else
28951   case $ILBMDecodeDelegate in
28952   [\\/]* | ?:[\\/]*)
28953   ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
28954   ;;
28955   *)
28956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28957 for as_dir in $PATH
28958 do
28959   IFS=$as_save_IFS
28960   test -z "$as_dir" && as_dir=.
28961     for ac_exec_ext in '' $ac_executable_extensions; do
28962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28963     ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28965     break 2
28966   fi
28967 done
28968   done
28969 IFS=$as_save_IFS
28970
28971   test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
28972   ;;
28973 esac
28974 fi
28975 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
28976 if test -n "$ILBMDecodeDelegate"; then
28977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
28978 $as_echo "$ILBMDecodeDelegate" >&6; }
28979 else
28980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28981 $as_echo "no" >&6; }
28982 fi
28983
28984
28985 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
28986 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
28987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28988 $as_echo_n "checking for $ac_word... " >&6; }
28989 if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
28990   $as_echo_n "(cached) " >&6
28991 else
28992   case $ILBMEncodeDelegate in
28993   [\\/]* | ?:[\\/]*)
28994   ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
28995   ;;
28996   *)
28997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28998 for as_dir in $PATH
28999 do
29000   IFS=$as_save_IFS
29001   test -z "$as_dir" && as_dir=.
29002     for ac_exec_ext in '' $ac_executable_extensions; do
29003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29004     ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29006     break 2
29007   fi
29008 done
29009   done
29010 IFS=$as_save_IFS
29011
29012   test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
29013   ;;
29014 esac
29015 fi
29016 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
29017 if test -n "$ILBMEncodeDelegate"; then
29018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
29019 $as_echo "$ILBMEncodeDelegate" >&6; }
29020 else
29021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29022 $as_echo "no" >&6; }
29023 fi
29024
29025
29026 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
29027 set dummy "$LPDelegateDefault"; ac_word=$2
29028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29029 $as_echo_n "checking for $ac_word... " >&6; }
29030 if test "${ac_cv_path_LPDelegate+set}" = set; then :
29031   $as_echo_n "(cached) " >&6
29032 else
29033   case $LPDelegate in
29034   [\\/]* | ?:[\\/]*)
29035   ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
29036   ;;
29037   *)
29038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29039 for as_dir in $PATH
29040 do
29041   IFS=$as_save_IFS
29042   test -z "$as_dir" && as_dir=.
29043     for ac_exec_ext in '' $ac_executable_extensions; do
29044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29045     ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
29046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29047     break 2
29048   fi
29049 done
29050   done
29051 IFS=$as_save_IFS
29052
29053   test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
29054   ;;
29055 esac
29056 fi
29057 LPDelegate=$ac_cv_path_LPDelegate
29058 if test -n "$LPDelegate"; then
29059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
29060 $as_echo "$LPDelegate" >&6; }
29061 else
29062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29063 $as_echo "no" >&6; }
29064 fi
29065
29066
29067 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
29068 set dummy "$LPRDelegateDefault"; ac_word=$2
29069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29070 $as_echo_n "checking for $ac_word... " >&6; }
29071 if test "${ac_cv_path_LPRDelegate+set}" = set; then :
29072   $as_echo_n "(cached) " >&6
29073 else
29074   case $LPRDelegate in
29075   [\\/]* | ?:[\\/]*)
29076   ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
29077   ;;
29078   *)
29079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29080 for as_dir in $PATH
29081 do
29082   IFS=$as_save_IFS
29083   test -z "$as_dir" && as_dir=.
29084     for ac_exec_ext in '' $ac_executable_extensions; do
29085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29086     ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
29087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29088     break 2
29089   fi
29090 done
29091   done
29092 IFS=$as_save_IFS
29093
29094   test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
29095   ;;
29096 esac
29097 fi
29098 LPRDelegate=$ac_cv_path_LPRDelegate
29099 if test -n "$LPRDelegate"; then
29100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
29101 $as_echo "$LPRDelegate" >&6; }
29102 else
29103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29104 $as_echo "no" >&6; }
29105 fi
29106
29107
29108 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
29109 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29111 $as_echo_n "checking for $ac_word... " >&6; }
29112 if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
29113   $as_echo_n "(cached) " >&6
29114 else
29115   case $LZWDecodeDelegate in
29116   [\\/]* | ?:[\\/]*)
29117   ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
29118   ;;
29119   *)
29120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29121 for as_dir in $PATH
29122 do
29123   IFS=$as_save_IFS
29124   test -z "$as_dir" && as_dir=.
29125     for ac_exec_ext in '' $ac_executable_extensions; do
29126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29127     ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29129     break 2
29130   fi
29131 done
29132   done
29133 IFS=$as_save_IFS
29134
29135   test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
29136   ;;
29137 esac
29138 fi
29139 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
29140 if test -n "$LZWDecodeDelegate"; then
29141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
29142 $as_echo "$LZWDecodeDelegate" >&6; }
29143 else
29144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29145 $as_echo "no" >&6; }
29146 fi
29147
29148
29149 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
29150 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
29151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29152 $as_echo_n "checking for $ac_word... " >&6; }
29153 if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
29154   $as_echo_n "(cached) " >&6
29155 else
29156   case $LZWEncodeDelegate in
29157   [\\/]* | ?:[\\/]*)
29158   ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
29159   ;;
29160   *)
29161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29162 for as_dir in $PATH
29163 do
29164   IFS=$as_save_IFS
29165   test -z "$as_dir" && as_dir=.
29166     for ac_exec_ext in '' $ac_executable_extensions; do
29167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29168     ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29170     break 2
29171   fi
29172 done
29173   done
29174 IFS=$as_save_IFS
29175
29176   test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
29177   ;;
29178 esac
29179 fi
29180 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
29181 if test -n "$LZWEncodeDelegate"; then
29182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
29183 $as_echo "$LZWEncodeDelegate" >&6; }
29184 else
29185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29186 $as_echo "no" >&6; }
29187 fi
29188
29189
29190 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
29191 set dummy "$LaunchDelegateDefault"; ac_word=$2
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29193 $as_echo_n "checking for $ac_word... " >&6; }
29194 if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
29195   $as_echo_n "(cached) " >&6
29196 else
29197   case $LaunchDelegate in
29198   [\\/]* | ?:[\\/]*)
29199   ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
29200   ;;
29201   *)
29202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29203 for as_dir in $PATH
29204 do
29205   IFS=$as_save_IFS
29206   test -z "$as_dir" && as_dir=.
29207     for ac_exec_ext in '' $ac_executable_extensions; do
29208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29209     ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
29210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29211     break 2
29212   fi
29213 done
29214   done
29215 IFS=$as_save_IFS
29216
29217   test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
29218   ;;
29219 esac
29220 fi
29221 LaunchDelegate=$ac_cv_path_LaunchDelegate
29222 if test -n "$LaunchDelegate"; then
29223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
29224 $as_echo "$LaunchDelegate" >&6; }
29225 else
29226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29227 $as_echo "no" >&6; }
29228 fi
29229
29230
29231 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
29232 set dummy "$MANDelegateDefault"; ac_word=$2
29233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29234 $as_echo_n "checking for $ac_word... " >&6; }
29235 if test "${ac_cv_path_MANDelegate+set}" = set; then :
29236   $as_echo_n "(cached) " >&6
29237 else
29238   case $MANDelegate in
29239   [\\/]* | ?:[\\/]*)
29240   ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
29241   ;;
29242   *)
29243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29244 for as_dir in $PATH
29245 do
29246   IFS=$as_save_IFS
29247   test -z "$as_dir" && as_dir=.
29248     for ac_exec_ext in '' $ac_executable_extensions; do
29249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29250     ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
29251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29252     break 2
29253   fi
29254 done
29255   done
29256 IFS=$as_save_IFS
29257
29258   test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
29259   ;;
29260 esac
29261 fi
29262 MANDelegate=$ac_cv_path_MANDelegate
29263 if test -n "$MANDelegate"; then
29264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
29265 $as_echo "$MANDelegate" >&6; }
29266 else
29267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29268 $as_echo "no" >&6; }
29269 fi
29270
29271
29272 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
29273 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
29274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29275 $as_echo_n "checking for $ac_word... " >&6; }
29276 if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
29277   $as_echo_n "(cached) " >&6
29278 else
29279   case $MPEGDecodeDelegate in
29280   [\\/]* | ?:[\\/]*)
29281   ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
29282   ;;
29283   *)
29284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29285 for as_dir in $PATH
29286 do
29287   IFS=$as_save_IFS
29288   test -z "$as_dir" && as_dir=.
29289     for ac_exec_ext in '' $ac_executable_extensions; do
29290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29291     ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29293     break 2
29294   fi
29295 done
29296   done
29297 IFS=$as_save_IFS
29298
29299   test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
29300   ;;
29301 esac
29302 fi
29303 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
29304 if test -n "$MPEGDecodeDelegate"; then
29305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
29306 $as_echo "$MPEGDecodeDelegate" >&6; }
29307 else
29308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29309 $as_echo "no" >&6; }
29310 fi
29311
29312
29313 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
29314 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
29315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29316 $as_echo_n "checking for $ac_word... " >&6; }
29317 if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
29318   $as_echo_n "(cached) " >&6
29319 else
29320   case $MPEGEncodeDelegate in
29321   [\\/]* | ?:[\\/]*)
29322   ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
29323   ;;
29324   *)
29325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29326 for as_dir in $PATH
29327 do
29328   IFS=$as_save_IFS
29329   test -z "$as_dir" && as_dir=.
29330     for ac_exec_ext in '' $ac_executable_extensions; do
29331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29332     ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29334     break 2
29335   fi
29336 done
29337   done
29338 IFS=$as_save_IFS
29339
29340   test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
29341   ;;
29342 esac
29343 fi
29344 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
29345 if test -n "$MPEGEncodeDelegate"; then
29346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
29347 $as_echo "$MPEGEncodeDelegate" >&6; }
29348 else
29349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29350 $as_echo "no" >&6; }
29351 fi
29352
29353
29354 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
29355 set dummy "$MVDelegateDefault"; ac_word=$2
29356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29357 $as_echo_n "checking for $ac_word... " >&6; }
29358 if test "${ac_cv_path_MVDelegate+set}" = set; then :
29359   $as_echo_n "(cached) " >&6
29360 else
29361   case $MVDelegate in
29362   [\\/]* | ?:[\\/]*)
29363   ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
29364   ;;
29365   *)
29366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29367 for as_dir in $PATH
29368 do
29369   IFS=$as_save_IFS
29370   test -z "$as_dir" && as_dir=.
29371     for ac_exec_ext in '' $ac_executable_extensions; do
29372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29373     ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
29374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29375     break 2
29376   fi
29377 done
29378   done
29379 IFS=$as_save_IFS
29380
29381   test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
29382   ;;
29383 esac
29384 fi
29385 MVDelegate=$ac_cv_path_MVDelegate
29386 if test -n "$MVDelegate"; then
29387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
29388 $as_echo "$MVDelegate" >&6; }
29389 else
29390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29391 $as_echo "no" >&6; }
29392 fi
29393
29394
29395 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
29396 set dummy "$PCLDelegateDefault"; ac_word=$2
29397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29398 $as_echo_n "checking for $ac_word... " >&6; }
29399 if test "${ac_cv_path_PCLDelegate+set}" = set; then :
29400   $as_echo_n "(cached) " >&6
29401 else
29402   case $PCLDelegate in
29403   [\\/]* | ?:[\\/]*)
29404   ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
29405   ;;
29406   *)
29407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29408 for as_dir in $PATH
29409 do
29410   IFS=$as_save_IFS
29411   test -z "$as_dir" && as_dir=.
29412     for ac_exec_ext in '' $ac_executable_extensions; do
29413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29414     ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
29415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29416     break 2
29417   fi
29418 done
29419   done
29420 IFS=$as_save_IFS
29421
29422   test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
29423   ;;
29424 esac
29425 fi
29426 PCLDelegate=$ac_cv_path_PCLDelegate
29427 if test -n "$PCLDelegate"; then
29428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
29429 $as_echo "$PCLDelegate" >&6; }
29430 else
29431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29432 $as_echo "no" >&6; }
29433 fi
29434
29435
29436 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
29437 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
29438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29439 $as_echo_n "checking for $ac_word... " >&6; }
29440 if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
29441   $as_echo_n "(cached) " >&6
29442 else
29443   case $PGPDecodeDelegate in
29444   [\\/]* | ?:[\\/]*)
29445   ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
29446   ;;
29447   *)
29448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29449 for as_dir in $PATH
29450 do
29451   IFS=$as_save_IFS
29452   test -z "$as_dir" && as_dir=.
29453     for ac_exec_ext in '' $ac_executable_extensions; do
29454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29455     ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29457     break 2
29458   fi
29459 done
29460   done
29461 IFS=$as_save_IFS
29462
29463   test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
29464   ;;
29465 esac
29466 fi
29467 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
29468 if test -n "$PGPDecodeDelegate"; then
29469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
29470 $as_echo "$PGPDecodeDelegate" >&6; }
29471 else
29472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29473 $as_echo "no" >&6; }
29474 fi
29475
29476
29477 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
29478 set dummy "$POVDelegateDefault"; ac_word=$2
29479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29480 $as_echo_n "checking for $ac_word... " >&6; }
29481 if test "${ac_cv_path_POVDelegate+set}" = set; then :
29482   $as_echo_n "(cached) " >&6
29483 else
29484   case $POVDelegate in
29485   [\\/]* | ?:[\\/]*)
29486   ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
29487   ;;
29488   *)
29489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29490 for as_dir in $PATH
29491 do
29492   IFS=$as_save_IFS
29493   test -z "$as_dir" && as_dir=.
29494     for ac_exec_ext in '' $ac_executable_extensions; do
29495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29496     ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
29497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29498     break 2
29499   fi
29500 done
29501   done
29502 IFS=$as_save_IFS
29503
29504   test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
29505   ;;
29506 esac
29507 fi
29508 POVDelegate=$ac_cv_path_POVDelegate
29509 if test -n "$POVDelegate"; then
29510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
29511 $as_echo "$POVDelegate" >&6; }
29512 else
29513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29514 $as_echo "no" >&6; }
29515 fi
29516
29517
29518 for ac_prog in gsx gsc "$PSDelegateDefault"
29519 do
29520   # Extract the first word of "$ac_prog", so it can be a program name with args.
29521 set dummy $ac_prog; ac_word=$2
29522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29523 $as_echo_n "checking for $ac_word... " >&6; }
29524 if test "${ac_cv_path_PSDelegate+set}" = set; then :
29525   $as_echo_n "(cached) " >&6
29526 else
29527   case $PSDelegate in
29528   [\\/]* | ?:[\\/]*)
29529   ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
29530   ;;
29531   *)
29532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29533 for as_dir in $PATH
29534 do
29535   IFS=$as_save_IFS
29536   test -z "$as_dir" && as_dir=.
29537     for ac_exec_ext in '' $ac_executable_extensions; do
29538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29539     ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
29540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29541     break 2
29542   fi
29543 done
29544   done
29545 IFS=$as_save_IFS
29546
29547   ;;
29548 esac
29549 fi
29550 PSDelegate=$ac_cv_path_PSDelegate
29551 if test -n "$PSDelegate"; then
29552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
29553 $as_echo "$PSDelegate" >&6; }
29554 else
29555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29556 $as_echo "no" >&6; }
29557 fi
29558
29559
29560   test -n "$PSDelegate" && break
29561 done
29562 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
29563
29564 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
29565 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
29566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29567 $as_echo_n "checking for $ac_word... " >&6; }
29568 if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
29569   $as_echo_n "(cached) " >&6
29570 else
29571   case $RLEEncodeDelegate in
29572   [\\/]* | ?:[\\/]*)
29573   ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
29574   ;;
29575   *)
29576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29577 for as_dir in $PATH
29578 do
29579   IFS=$as_save_IFS
29580   test -z "$as_dir" && as_dir=.
29581     for ac_exec_ext in '' $ac_executable_extensions; do
29582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29583     ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29585     break 2
29586   fi
29587 done
29588   done
29589 IFS=$as_save_IFS
29590
29591   test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
29592   ;;
29593 esac
29594 fi
29595 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
29596 if test -n "$RLEEncodeDelegate"; then
29597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
29598 $as_echo "$RLEEncodeDelegate" >&6; }
29599 else
29600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29601 $as_echo "no" >&6; }
29602 fi
29603
29604
29605 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
29606 set dummy "$RMDelegateDefault"; ac_word=$2
29607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29608 $as_echo_n "checking for $ac_word... " >&6; }
29609 if test "${ac_cv_path_RMDelegate+set}" = set; then :
29610   $as_echo_n "(cached) " >&6
29611 else
29612   case $RMDelegate in
29613   [\\/]* | ?:[\\/]*)
29614   ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
29615   ;;
29616   *)
29617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29618 for as_dir in $PATH
29619 do
29620   IFS=$as_save_IFS
29621   test -z "$as_dir" && as_dir=.
29622     for ac_exec_ext in '' $ac_executable_extensions; do
29623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29624     ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
29625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29626     break 2
29627   fi
29628 done
29629   done
29630 IFS=$as_save_IFS
29631
29632   test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
29633   ;;
29634 esac
29635 fi
29636 RMDelegate=$ac_cv_path_RMDelegate
29637 if test -n "$RMDelegate"; then
29638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
29639 $as_echo "$RMDelegate" >&6; }
29640 else
29641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29642 $as_echo "no" >&6; }
29643 fi
29644
29645
29646 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
29647 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
29648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29649 $as_echo_n "checking for $ac_word... " >&6; }
29650 if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
29651   $as_echo_n "(cached) " >&6
29652 else
29653   case $SCANDecodeDelegate in
29654   [\\/]* | ?:[\\/]*)
29655   ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
29656   ;;
29657   *)
29658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29659 for as_dir in $PATH
29660 do
29661   IFS=$as_save_IFS
29662   test -z "$as_dir" && as_dir=.
29663     for ac_exec_ext in '' $ac_executable_extensions; do
29664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29665     ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29667     break 2
29668   fi
29669 done
29670   done
29671 IFS=$as_save_IFS
29672
29673   test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
29674   ;;
29675 esac
29676 fi
29677 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
29678 if test -n "$SCANDecodeDelegate"; then
29679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
29680 $as_echo "$SCANDecodeDelegate" >&6; }
29681 else
29682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29683 $as_echo "no" >&6; }
29684 fi
29685
29686
29687 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
29688 set dummy "$TXTDelegateDefault"; ac_word=$2
29689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29690 $as_echo_n "checking for $ac_word... " >&6; }
29691 if test "${ac_cv_path_TXTDelegate+set}" = set; then :
29692   $as_echo_n "(cached) " >&6
29693 else
29694   case $TXTDelegate in
29695   [\\/]* | ?:[\\/]*)
29696   ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
29697   ;;
29698   *)
29699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29700 for as_dir in $PATH
29701 do
29702   IFS=$as_save_IFS
29703   test -z "$as_dir" && as_dir=.
29704     for ac_exec_ext in '' $ac_executable_extensions; do
29705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29706     ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
29707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29708     break 2
29709   fi
29710 done
29711   done
29712 IFS=$as_save_IFS
29713
29714   test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
29715   ;;
29716 esac
29717 fi
29718 TXTDelegate=$ac_cv_path_TXTDelegate
29719 if test -n "$TXTDelegate"; then
29720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
29721 $as_echo "$TXTDelegate" >&6; }
29722 else
29723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29724 $as_echo "no" >&6; }
29725 fi
29726
29727
29728 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
29729 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
29730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29731 $as_echo_n "checking for $ac_word... " >&6; }
29732 if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
29733   $as_echo_n "(cached) " >&6
29734 else
29735   case $WMFDecodeDelegate in
29736   [\\/]* | ?:[\\/]*)
29737   ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
29738   ;;
29739   *)
29740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29741 for as_dir in $PATH
29742 do
29743   IFS=$as_save_IFS
29744   test -z "$as_dir" && as_dir=.
29745     for ac_exec_ext in '' $ac_executable_extensions; do
29746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29747     ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29749     break 2
29750   fi
29751 done
29752   done
29753 IFS=$as_save_IFS
29754
29755   test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
29756   ;;
29757 esac
29758 fi
29759 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
29760 if test -n "$WMFDecodeDelegate"; then
29761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
29762 $as_echo "$WMFDecodeDelegate" >&6; }
29763 else
29764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29765 $as_echo "no" >&6; }
29766 fi
29767
29768
29769 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
29770 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
29771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29772 $as_echo_n "checking for $ac_word... " >&6; }
29773 if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
29774   $as_echo_n "(cached) " >&6
29775 else
29776   case $WWWDecodeDelegate in
29777   [\\/]* | ?:[\\/]*)
29778   ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
29779   ;;
29780   *)
29781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29782 for as_dir in $PATH
29783 do
29784   IFS=$as_save_IFS
29785   test -z "$as_dir" && as_dir=.
29786     for ac_exec_ext in '' $ac_executable_extensions; do
29787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29788     ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29790     break 2
29791   fi
29792 done
29793   done
29794 IFS=$as_save_IFS
29795
29796   test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
29797   ;;
29798 esac
29799 fi
29800 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
29801 if test -n "$WWWDecodeDelegate"; then
29802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
29803 $as_echo "$WWWDecodeDelegate" >&6; }
29804 else
29805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29806 $as_echo "no" >&6; }
29807 fi
29808
29809
29810 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
29811 set dummy "$XPSDelegateDefault"; ac_word=$2
29812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29813 $as_echo_n "checking for $ac_word... " >&6; }
29814 if test "${ac_cv_path_XPSDelegate+set}" = set; then :
29815   $as_echo_n "(cached) " >&6
29816 else
29817   case $XPSDelegate in
29818   [\\/]* | ?:[\\/]*)
29819   ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
29820   ;;
29821   *)
29822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29823 for as_dir in $PATH
29824 do
29825   IFS=$as_save_IFS
29826   test -z "$as_dir" && as_dir=.
29827     for ac_exec_ext in '' $ac_executable_extensions; do
29828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29829     ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
29830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29831     break 2
29832   fi
29833 done
29834   done
29835 IFS=$as_save_IFS
29836
29837   test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
29838   ;;
29839 esac
29840 fi
29841 XPSDelegate=$ac_cv_path_XPSDelegate
29842 if test -n "$XPSDelegate"; then
29843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
29844 $as_echo "$XPSDelegate" >&6; }
29845 else
29846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29847 $as_echo "no" >&6; }
29848 fi
29849
29850
29851 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
29852 set dummy "$ZipDelegateDefault"; ac_word=$2
29853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29854 $as_echo_n "checking for $ac_word... " >&6; }
29855 if test "${ac_cv_path_ZipDelegate+set}" = set; then :
29856   $as_echo_n "(cached) " >&6
29857 else
29858   case $ZipDelegate in
29859   [\\/]* | ?:[\\/]*)
29860   ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
29861   ;;
29862   *)
29863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29864 for as_dir in $PATH
29865 do
29866   IFS=$as_save_IFS
29867   test -z "$as_dir" && as_dir=.
29868     for ac_exec_ext in '' $ac_executable_extensions; do
29869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29870     ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
29871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29872     break 2
29873   fi
29874 done
29875   done
29876 IFS=$as_save_IFS
29877
29878   test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
29879   ;;
29880 esac
29881 fi
29882 ZipDelegate=$ac_cv_path_ZipDelegate
29883 if test -n "$ZipDelegate"; then
29884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
29885 $as_echo "$ZipDelegate" >&6; }
29886 else
29887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29888 $as_echo "no" >&6; }
29889 fi
29890
29891
29892
29893 # Prefer lpr to lp; lp needs options tacked on.
29894 if test "$LPRDelegate" != no; then
29895     PrintDelegate="$LPRDelegate"
29896 else
29897     PrintDelegate="$LPDelegate -c -s"
29898 fi
29899
29900
29901 # Installed ImageMagick utiltity paths
29902 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
29903 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
29904 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
29905
29906 # Set delegate booleans
29907 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
29908 have_fig2dev='no'    ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
29909 have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
29910 have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
29911 have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
29912 have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
29913 have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
29914 have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
29915 have_ra_pfm='no'     ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
29916 have_ralcgm='no'     ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
29917 have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
29918
29919 #
29920 # Test for font directories
29921 #
29922 type_include_files=''
29923
29924 # Windows
29925 windows_font_dir=''
29926 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
29927    windows_font_dir="${with_windows_font_dir}/"
29928 fi
29929 if test -n "$windows_font_dir"; then
29930     if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
29931       windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
29932     fi
29933     if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
29934       windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
29935     fi
29936     if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
29937       windows_font_dir='/usr/share/fonts/msttcore/truetype/'
29938     fi
29939 fi
29940 if test -n "$windows_font_dir"; then
29941   type_include_files="$type_include_files "'<include file="type-windows.xml" />'
29942 fi
29943
29944
29945 # Ghostscript
29946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
29947 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
29948 ghostscript_font_dir=''
29949 if test "${with_gs_font_dir}" != 'default'; then
29950   ghostscript_font_dir="${with_gs_font_dir}/"
29951 else
29952   if test "${native_win32_build}" = 'yes'; then
29953     # Native Windows Build
29954     for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
29955       if test -f "${font_dir}a010013l.pfb"; then
29956         ghostscript_font_dir="$font_dir"
29957         break 1
29958       fi
29959     done
29960     if test "${PSDelegate}" != 'gswin32c'; then
29961       ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
29962     fi
29963   else
29964     # Linux / Mac OS X / Unix Build
29965     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
29966       if test -f "${font_dir}a010013l.pfb"; then
29967         ghostscript_font_dir="${font_dir}"
29968         break 1
29969       fi
29970     done
29971     if test "${ghostscript_font_dir}x" = 'x'; then
29972       if test "$PSDelegate" != 'gs'; then
29973         ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
29974       fi
29975     fi
29976   fi
29977 fi
29978 if test "${ghostscript_font_dir}x" != 'x'; then
29979   type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
29980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
29981 $as_echo "$ghostscript_font_dir" >&6; }
29982 else
29983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
29984 $as_echo "not found!" >&6; };
29985 fi
29986
29987 case "${build_os}" in
29988   mingw* )
29989     PSDelegate=`$WinPathScript "$PSDelegate" 1`
29990     ;;
29991 esac
29992
29993
29994
29995 #
29996 # Handle case where user doesn't want frozen paths
29997 #
29998 if test "$with_frozenpaths" != 'yes'; then
29999   # Re-set delegate definitions to default (no paths)
30000   AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
30001   AVIDecodeDelegate="$AVIDecodeDelegateDefault"
30002   BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
30003   BZIPDelegate="$BZIPDelegateDefault"
30004   BrowseDelegate="$BrowseDelegateDefault"
30005   CGMDecodeDelegate="$CGMDecodeDelegateDefault"
30006   CatDelegate="$CatDelegateDefault"
30007   ConvertDelegate="$ConvertDelegateDefault"
30008   GVCDecodeDelegate="$GVCDecodeDelegateDefault"
30009   DVIDecodeDelegate="$DVIDecodeDelegateDefault"
30010   EchoDelegate="$EchoDelegateDefault"
30011   EditorDelegate="$EditorDelegateDefault"
30012   FIGDecodeDelegate="$FIGDecodeDelegateDefault"
30013   GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
30014   HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
30015   HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
30016   ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
30017   ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
30018   LPDelegate="$LPDelegateDefault"
30019   LZWDecodeDelegate="$LZWDecodeDelegateDefault"
30020   LZWEncodeDelegate="$LZWEncodeDelegateDefault"
30021   LaunchDelegate="$LaunchDelegateDefault"
30022   MANDelegate="$MANDelegateDefault"
30023   MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
30024   MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
30025   MVDelegate="$MVDelegateDefault"
30026   MogrifyDelegate="$MogrifyDelegateDefault"
30027   PCLDelegate="$PCLDelegateDefault"
30028   PGPDecodeDelegate="$PGPDecodeDelegateDefault"
30029   POVDelegate="$POVDelegateDefault"
30030   PSDelegate="$PSDelegateDefault"
30031   HDRDecodeDelegate="$HDRDecodeDelegateDefault"
30032   RLEEncodeDelegate="$RLEEncodeDelegateDefault"
30033   RMDelegate="$RMDelegateDefault"
30034   SCANDecodeDelegate="$SCANDecodeDelegateDefault"
30035   ShowImageDelegate="$ShowImageDelegateDefault"
30036   TXTDelegate="$TXTDelegateDefault"
30037   WMFDecodeDelegate="$WMFDecodeDelegateDefault"
30038   WWWDecodeDelegate="$WWWDecodeDelegateDefault"
30039   XPSDelegate="$XPSDelegateDefault"
30040   ZipDelegate="$ZipDelegateDefault"
30041 fi
30042
30043 # Delegate substitutions
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
30078
30079
30080
30081
30082
30083
30084
30085
30086 #
30087 # RPM support.
30088 #
30089 RPM=''
30090 for ac_prog in gnutar gtar tar
30091 do
30092   # Extract the first word of "$ac_prog", so it can be a program name with args.
30093 set dummy $ac_prog; ac_word=$2
30094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30095 $as_echo_n "checking for $ac_word... " >&6; }
30096 if test "${ac_cv_prog_TAR+set}" = set; then :
30097   $as_echo_n "(cached) " >&6
30098 else
30099   if test -n "$TAR"; then
30100   ac_cv_prog_TAR="$TAR" # Let the user override the test.
30101 else
30102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30103 for as_dir in $PATH
30104 do
30105   IFS=$as_save_IFS
30106   test -z "$as_dir" && as_dir=.
30107     for ac_exec_ext in '' $ac_executable_extensions; do
30108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30109     ac_cv_prog_TAR="$ac_prog"
30110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30111     break 2
30112   fi
30113 done
30114   done
30115 IFS=$as_save_IFS
30116
30117 fi
30118 fi
30119 TAR=$ac_cv_prog_TAR
30120 if test -n "$TAR"; then
30121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
30122 $as_echo "$TAR" >&6; }
30123 else
30124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30125 $as_echo "no" >&6; }
30126 fi
30127
30128
30129   test -n "$TAR" && break
30130 done
30131
30132 for ac_prog in perl
30133 do
30134   # Extract the first word of "$ac_prog", so it can be a program name with args.
30135 set dummy $ac_prog; ac_word=$2
30136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30137 $as_echo_n "checking for $ac_word... " >&6; }
30138 if test "${ac_cv_prog_PERL+set}" = set; then :
30139   $as_echo_n "(cached) " >&6
30140 else
30141   if test -n "$PERL"; then
30142   ac_cv_prog_PERL="$PERL" # Let the user override the test.
30143 else
30144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30145 for as_dir in $PATH
30146 do
30147   IFS=$as_save_IFS
30148   test -z "$as_dir" && as_dir=.
30149     for ac_exec_ext in '' $ac_executable_extensions; do
30150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30151     ac_cv_prog_PERL="$ac_prog"
30152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30153     break 2
30154   fi
30155 done
30156   done
30157 IFS=$as_save_IFS
30158
30159 fi
30160 fi
30161 PERL=$ac_cv_prog_PERL
30162 if test -n "$PERL"; then
30163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
30164 $as_echo "$PERL" >&6; }
30165 else
30166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30167 $as_echo "no" >&6; }
30168 fi
30169
30170
30171   test -n "$PERL" && break
30172 done
30173
30174 for ac_prog in rpmbuild rpm
30175 do
30176   # Extract the first word of "$ac_prog", so it can be a program name with args.
30177 set dummy $ac_prog; ac_word=$2
30178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30179 $as_echo_n "checking for $ac_word... " >&6; }
30180 if test "${ac_cv_prog_RPM+set}" = set; then :
30181   $as_echo_n "(cached) " >&6
30182 else
30183   if test -n "$RPM"; then
30184   ac_cv_prog_RPM="$RPM" # Let the user override the test.
30185 else
30186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30187 for as_dir in $PATH
30188 do
30189   IFS=$as_save_IFS
30190   test -z "$as_dir" && as_dir=.
30191     for ac_exec_ext in '' $ac_executable_extensions; do
30192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30193     ac_cv_prog_RPM="$ac_prog"
30194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30195     break 2
30196   fi
30197 done
30198   done
30199 IFS=$as_save_IFS
30200
30201 fi
30202 fi
30203 RPM=$ac_cv_prog_RPM
30204 if test -n "$RPM"; then
30205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
30206 $as_echo "$RPM" >&6; }
30207 else
30208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30209 $as_echo "no" >&6; }
30210 fi
30211
30212
30213   test -n "$RPM" && break
30214 done
30215
30216
30217 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
30218
30219
30220 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
30221
30222
30223 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
30224
30225
30226 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
30227
30228
30229  if test "x$RPM" != "x" ; then
30230   RPM_DELEGATE_TRUE=
30231   RPM_DELEGATE_FALSE='#'
30232 else
30233   RPM_DELEGATE_TRUE='#'
30234   RPM_DELEGATE_FALSE=
30235 fi
30236
30237
30238 #
30239 # 7ZIP support (http://p7zip.sourceforge.net/)
30240 #
30241 P7ZIP=''
30242 for ac_prog in 7za
30243 do
30244   # Extract the first word of "$ac_prog", so it can be a program name with args.
30245 set dummy $ac_prog; ac_word=$2
30246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30247 $as_echo_n "checking for $ac_word... " >&6; }
30248 if test "${ac_cv_prog_P7ZIP+set}" = set; then :
30249   $as_echo_n "(cached) " >&6
30250 else
30251   if test -n "$P7ZIP"; then
30252   ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
30253 else
30254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30255 for as_dir in $PATH
30256 do
30257   IFS=$as_save_IFS
30258   test -z "$as_dir" && as_dir=.
30259     for ac_exec_ext in '' $ac_executable_extensions; do
30260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30261     ac_cv_prog_P7ZIP="$ac_prog"
30262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30263     break 2
30264   fi
30265 done
30266   done
30267 IFS=$as_save_IFS
30268
30269 fi
30270 fi
30271 P7ZIP=$ac_cv_prog_P7ZIP
30272 if test -n "$P7ZIP"; then
30273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
30274 $as_echo "$P7ZIP" >&6; }
30275 else
30276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30277 $as_echo "no" >&6; }
30278 fi
30279
30280
30281   test -n "$P7ZIP" && break
30282 done
30283
30284
30285  if test "x$P7ZIP" != "x" ; then
30286   P7ZIP_DELEGATE_TRUE=
30287   P7ZIP_DELEGATE_FALSE='#'
30288 else
30289   P7ZIP_DELEGATE_TRUE='#'
30290   P7ZIP_DELEGATE_FALSE=
30291 fi
30292
30293
30294 #
30295 # ZIP support (http://www.info-zip.org/Zip.html)
30296 #
30297 ZIP=''
30298 for ac_prog in zip
30299 do
30300   # Extract the first word of "$ac_prog", so it can be a program name with args.
30301 set dummy $ac_prog; ac_word=$2
30302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30303 $as_echo_n "checking for $ac_word... " >&6; }
30304 if test "${ac_cv_prog_ZIP+set}" = set; then :
30305   $as_echo_n "(cached) " >&6
30306 else
30307   if test -n "$ZIP"; then
30308   ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
30309 else
30310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30311 for as_dir in $PATH
30312 do
30313   IFS=$as_save_IFS
30314   test -z "$as_dir" && as_dir=.
30315     for ac_exec_ext in '' $ac_executable_extensions; do
30316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30317     ac_cv_prog_ZIP="$ac_prog"
30318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30319     break 2
30320   fi
30321 done
30322   done
30323 IFS=$as_save_IFS
30324
30325 fi
30326 fi
30327 ZIP=$ac_cv_prog_ZIP
30328 if test -n "$ZIP"; then
30329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
30330 $as_echo "$ZIP" >&6; }
30331 else
30332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30333 $as_echo "no" >&6; }
30334 fi
30335
30336
30337   test -n "$ZIP" && break
30338 done
30339
30340
30341  if test "x$ZIP" != "x" ; then
30342   ZIP_DELEGATE_TRUE=
30343   ZIP_DELEGATE_FALSE='#'
30344 else
30345   ZIP_DELEGATE_TRUE='#'
30346   ZIP_DELEGATE_FALSE=
30347 fi
30348
30349
30350 #
30351 # GhostPCL related configuration.
30352 #
30353 PCLColorDevice=ppmraw
30354 PCLCMYKDevice=bmpsep8
30355 PCLMonoDevice=pbmraw
30356 if test -z "$PCLVersion"; then
30357     PCLVersion='unknown'
30358 fi
30359 if test $have_pcl = 'yes'; then
30360     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30361 $as_echo "-------------------------------------------------------------" >&6; }
30362     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
30363 $as_echo_n "checking for PCL... " >&6; }
30364     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30365 $as_echo "" >&6; }
30366     # PCLColorDevice
30367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
30368 $as_echo_n "checking for pcl color device... " >&6; }
30369     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30370         :
30371     else
30372         PCLColorDevice=ppmraw
30373     fi
30374     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
30375 $as_echo "$PCLColorDevice" >&6; }
30376
30377     # PCLCMYKDevice
30378     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
30379 $as_echo_n "checking for pcl CMYK device... " >&6; }
30380     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30381         :
30382     else
30383         PCLCMYKDevice=$PCLColorDevice
30384     fi
30385     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
30386 $as_echo "$PCLCMYKDevice" >&6; }
30387
30388     # PCLMonoDevice
30389     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
30390 $as_echo_n "checking for pcl mono device... " >&6; }
30391     if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30392         :
30393     else
30394         PCLMonoDevice=$PCLColorDevice
30395     fi
30396     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
30397 $as_echo "$PCLMonoDevice" >&6; }
30398 fi
30399
30400
30401
30402
30403
30404
30405 #
30406 # GhostXPS related configuration.
30407 #
30408 XPSColorDevice=ppmraw
30409 XPSCMYKDevice=bmpsep8
30410 XPSMonoDevice=pbmraw
30411 if test -z "$XPSVersion"; then
30412     XPSVersion='unknown'
30413 fi
30414 if test $have_xps = 'yes'; then
30415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30416 $as_echo "-------------------------------------------------------------" >&6; }
30417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
30418 $as_echo_n "checking for XPS... " >&6; }
30419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30420 $as_echo "" >&6; }
30421     # XPSColorDevice
30422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
30423 $as_echo_n "checking for xps color device... " >&6; }
30424     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30425         :
30426     else
30427         XPSColorDevice=ppmraw
30428     fi
30429     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
30430 $as_echo "$XPSColorDevice" >&6; }
30431
30432     # XPSCMYKDevice
30433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
30434 $as_echo_n "checking for xps CMYK device... " >&6; }
30435     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30436         :
30437     else
30438         XPSCMYKDevice=$XPSColorDevice
30439     fi
30440     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
30441 $as_echo "$XPSCMYKDevice" >&6; }
30442
30443     # XPSMonoDevice
30444     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
30445 $as_echo_n "checking for xps mono device... " >&6; }
30446     if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30447         :
30448     else
30449         XPSMonoDevice=$XPSColorDevice
30450     fi
30451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
30452 $as_echo "$XPSMonoDevice" >&6; }
30453 fi
30454
30455
30456
30457
30458
30459
30460 #
30461 # Ghostscript related configuration.
30462 #
30463 if test "$have_png" = 'yes'; then
30464     GSAlphaDevice=pngalpha
30465 else
30466     GSAlphaDevice=pnmraw
30467 fi
30468 GSColorDevice=pnmraw
30469 GSCMYKDevice=pam
30470 GSMonoDevice=pbmraw
30471 GSPDFDevice=pdfwrite
30472 GSPSDevice=pswrite
30473 GSEPSDevice=epswrite
30474 GSVersion='unknown'
30475 if test $have_gs = 'yes'; then
30476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30477 $as_echo "-------------------------------------------------------------" >&6; }
30478     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
30479 $as_echo_n "checking for Ghostscript... " >&6; }
30480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30481 $as_echo "" >&6; }
30482     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
30483 $as_echo_n "checking for Ghostscript version... " >&6; }
30484     if GSVersion=`$PSDelegate --version`; then
30485         :
30486     else
30487         GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
30488     fi
30489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
30490 $as_echo "$GSVersion" >&6; }
30491
30492     # GSAlphaDevice
30493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
30494 $as_echo_n "checking for gs alpha device... " >&6; }
30495     if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30496         :
30497     else
30498         GSAlphaDevice=pnmraw
30499     fi
30500     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
30501 $as_echo "$GSAlphaDevice" >&6; }
30502
30503     # GSColorDevice
30504     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
30505 $as_echo_n "checking for gs color device... " >&6; }
30506     if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30507         :
30508     else
30509         GSColorDevice=pnmraw
30510     fi
30511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
30512 $as_echo "$GSColorDevice" >&6; }
30513
30514     # GSCMYKDevice
30515     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
30516 $as_echo_n "checking for gs CMYK device... " >&6; }
30517     if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30518         :
30519     else
30520         GSCMYKDevice=bmpsep8
30521     fi
30522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
30523 $as_echo "$GSCMYKDevice" >&6; }
30524
30525     # GSMonoDevice
30526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
30527 $as_echo_n "checking for gs mono device... " >&6; }
30528     if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30529         :
30530     else
30531         GSMonoDevice=$GSColorDevice
30532     fi
30533     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
30534 $as_echo "$GSMonoDevice" >&6; }
30535
30536     # GSPDFDevice
30537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
30538 $as_echo_n "checking for gs PDF writing device... " >&6; }
30539     if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30540         :
30541     else
30542         GSPDFDevice=nodevice
30543     fi
30544         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
30545 $as_echo "$GSPDFDevice" >&6; }
30546
30547     # GSPSDevice
30548     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
30549 $as_echo_n "checking for gs PS writing device... " >&6; }
30550     if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30551         :
30552     else
30553         GSPSDevice=nodevice
30554     fi
30555     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
30556 $as_echo "$GSPSDevice" >&6; }
30557
30558     # GSEPSDevice
30559     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
30560 $as_echo_n "checking for gs EPS writing device... " >&6; }
30561     if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30562         :
30563     else
30564         GSEPSDevice=nodevice
30565     fi
30566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
30567 $as_echo "$GSEPSDevice" >&6; }
30568 fi
30569
30570
30571
30572
30573
30574
30575
30576
30577
30578
30579 #
30580 # PerlMagick-related configuration
30581 #
30582
30583 # Look for PERL if PerlMagick requested
30584 # If name/path of desired PERL interpreter is specified, look for that one first
30585 have_perl='no'
30586 if test "$with_perl" != 'no'; then
30587     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30588 $as_echo "-------------------------------------------------------------" >&6; }
30589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
30590 $as_echo_n "checking for Perl... " >&6; }
30591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30592 $as_echo "" >&6; }
30593     if test "$with_perl" != 'yes'; then
30594         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
30595 $as_echo_n "checking for perl... " >&6; }
30596 if test "${ac_cv_path_PERL+set}" = set; then :
30597   $as_echo_n "(cached) " >&6
30598 else
30599   ac_cv_path_PERL="$with_perl"
30600 fi
30601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
30602 $as_echo "$ac_cv_path_PERL" >&6; };
30603         PERL=$ac_cv_path_PERL
30604                 have_perl="$ac_cv_path_PERL"
30605     else
30606         for ac_prog in perl perl5
30607 do
30608   # Extract the first word of "$ac_prog", so it can be a program name with args.
30609 set dummy $ac_prog; ac_word=$2
30610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30611 $as_echo_n "checking for $ac_word... " >&6; }
30612 if test "${ac_cv_path_PERL+set}" = set; then :
30613   $as_echo_n "(cached) " >&6
30614 else
30615   case $PERL in
30616   [\\/]* | ?:[\\/]*)
30617   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
30618   ;;
30619   *)
30620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30621 for as_dir in $PATH
30622 do
30623   IFS=$as_save_IFS
30624   test -z "$as_dir" && as_dir=.
30625     for ac_exec_ext in '' $ac_executable_extensions; do
30626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30627     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
30628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30629     break 2
30630   fi
30631 done
30632   done
30633 IFS=$as_save_IFS
30634
30635   ;;
30636 esac
30637 fi
30638 PERL=$ac_cv_path_PERL
30639 if test -n "$PERL"; then
30640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
30641 $as_echo "$PERL" >&6; }
30642 else
30643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30644 $as_echo "no" >&6; }
30645 fi
30646
30647
30648   test -n "$PERL" && break
30649 done
30650         if test "$ac_cv_path_PERL"; then
30651             have_perl="$ac_cv_path_PERL"
30652         fi
30653     fi
30654 fi
30655
30656 with_perl_static='no'
30657 with_perl_dynamic='no'
30658 if test "$have_perl" != 'no'; then
30659     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
30660         with_perl_static='yes'
30661     fi
30662     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
30663         with_perl_dynamic='yes'
30664     fi
30665     # Is PERL's MakeMaker new enough to support DESTDIR?
30666     # Make sure we have perl
30667 if test -z "$PERL"; then
30668 # Extract the first word of "perl", so it can be a program name with args.
30669 set dummy perl; ac_word=$2
30670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30671 $as_echo_n "checking for $ac_word... " >&6; }
30672 if test "${ac_cv_prog_PERL+set}" = set; then :
30673   $as_echo_n "(cached) " >&6
30674 else
30675   if test -n "$PERL"; then
30676   ac_cv_prog_PERL="$PERL" # Let the user override the test.
30677 else
30678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30679 for as_dir in $PATH
30680 do
30681   IFS=$as_save_IFS
30682   test -z "$as_dir" && as_dir=.
30683     for ac_exec_ext in '' $ac_executable_extensions; do
30684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30685     ac_cv_prog_PERL="perl"
30686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30687     break 2
30688   fi
30689 done
30690   done
30691 IFS=$as_save_IFS
30692
30693 fi
30694 fi
30695 PERL=$ac_cv_prog_PERL
30696 if test -n "$PERL"; then
30697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
30698 $as_echo "$PERL" >&6; }
30699 else
30700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30701 $as_echo "no" >&6; }
30702 fi
30703
30704
30705 fi
30706
30707 # Check if version of Perl is sufficient
30708 ac_perl_version="5.8.1"
30709
30710 if test "x$PERL" != "x"; then
30711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
30712 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
30713   # NB: It would be nice to log the error if there is one, but we cannot rely
30714   # on autoconf internals
30715   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
30716   if test $? -ne 0; then
30717     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30718 $as_echo "no" >&6; };
30719     PERL_SUPPORTS_DESTDIR='no'
30720   else
30721     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
30722 $as_echo "ok" >&6; };
30723     PERL_SUPPORTS_DESTDIR='yes'
30724   fi
30725 else
30726   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
30727 $as_echo "$as_me: WARNING: could not find perl" >&2;}
30728 fi
30729
30730 fi
30731  if test "$have_perl" != 'no'; then
30732   WITH_PERL_TRUE=
30733   WITH_PERL_FALSE='#'
30734 else
30735   WITH_PERL_TRUE='#'
30736   WITH_PERL_FALSE=
30737 fi
30738
30739  if test $with_perl_static = 'yes'; then
30740   WITH_PERL_STATIC_TRUE=
30741   WITH_PERL_STATIC_FALSE='#'
30742 else
30743   WITH_PERL_STATIC_TRUE='#'
30744   WITH_PERL_STATIC_FALSE=
30745 fi
30746
30747  if test $with_perl_dynamic = 'yes'; then
30748   WITH_PERL_DYNAMIC_TRUE=
30749   WITH_PERL_DYNAMIC_FALSE='#'
30750 else
30751   WITH_PERL_DYNAMIC_TRUE='#'
30752   WITH_PERL_DYNAMIC_FALSE=
30753 fi
30754
30755
30756
30757 # Determine path to pick up MagickCore library from for use with building PerlMagick
30758 MAGICKCORE_PATH="${LIB_DIR}"
30759 if test $with_perl_static = 'yes'; then
30760     # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
30761     libtool_objdir=$objdir
30762
30763     # Linker search path to library, followed by -lMagickCore
30764     MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
30765 fi
30766
30767
30768 # Create a simple string containing format names for all delegate libraries
30769 DELEGATES=''
30770 if test "$have_autotrace"  = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
30771 if test "$have_bzlib"      = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
30772 if test "$have_djvu"       = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
30773 if test "$have_dps"        = 'yes'; then DELEGATES="$DELEGATES dps"; fi
30774 if test "$have_fftw"       = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
30775 if test "$have_fpx"        = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
30776 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
30777 if test "$have_freetype"   = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
30778 if test "$have_gslib"      = 'yes'; then DELEGATES="$DELEGATES gs"; fi
30779 if test "$have_gvc"        = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
30780 if test "$have_jbig"       = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
30781 if test "$have_jpeg"       = 'yes'; then
30782   DELEGATES="$DELEGATES jpeg";
30783   if test "$have_png"      = 'yes'; then DELEGATES="$DELEGATES jng"; fi
30784 fi
30785 if test "$have_jp2"        = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
30786 if test "$have_lcms"       = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
30787 if test "$have_lqr"        = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
30788 if test "$have_ffmpeg"     = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
30789 if test "$have_openexr"    = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
30790 if test "$have_png"        = 'yes'; then DELEGATES="$DELEGATES png"; fi
30791 if test "$have_rsvg"       = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
30792 if test "$have_tiff"       = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
30793 if test "$have_x"          = 'yes'; then DELEGATES="$DELEGATES x11"; fi
30794 if test "$have_xml"        = 'yes'; then DELEGATES="$DELEGATES xml"; fi
30795 if test "$have_wmf"        = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
30796 if test "$have_zlib"       = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
30797
30798
30799
30800 #
30801 # Handle special compiler flags
30802 #
30803
30804 # Add '-p' if prof source profiling support enabled
30805 if test "$enable_prof" = 'yes'; then
30806     CFLAGS="-p $CFLAGS"
30807     CXXFLAGS="-p $CXXFLAGS"
30808     LDFLAGS="-p $LDFLAGS"
30809 fi
30810
30811 # Add '-pg' if gprof source profiling support enabled
30812 if test "$enable_gprof" = 'yes'; then
30813     CFLAGS="-pg $CFLAGS"
30814     CXXFLAGS="-pg $CXXFLAGS"
30815     LDFLAGS="-pg $LDFLAGS"
30816 fi
30817
30818 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
30819 # This is a gcc-specific feature
30820 if test "$enable_gcov" = 'yes'; then
30821     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
30822 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
30823 if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
30824   $as_echo_n "(cached) " >&6
30825 else
30826   ac_check_lib_save_LIBS=$LIBS
30827 LIBS="-lgcov  $LIBS"
30828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30829 /* end confdefs.h.  */
30830
30831 /* Override any GCC internal prototype to avoid an error.
30832    Use char because int might match the return type of a GCC
30833    builtin and then its argument prototype would still apply.  */
30834 #ifdef __cplusplus
30835 extern "C"
30836 #endif
30837 char _gcov_init ();
30838 int
30839 main ()
30840 {
30841 return _gcov_init ();
30842   ;
30843   return 0;
30844 }
30845 _ACEOF
30846 if ac_fn_c_try_link "$LINENO"; then :
30847   ac_cv_lib_gcov__gcov_init=yes
30848 else
30849   ac_cv_lib_gcov__gcov_init=no
30850 fi
30851 rm -f core conftest.err conftest.$ac_objext \
30852     conftest$ac_exeext conftest.$ac_ext
30853 LIBS=$ac_check_lib_save_LIBS
30854 fi
30855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
30856 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
30857 if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
30858   cat >>confdefs.h <<_ACEOF
30859 #define HAVE_LIBGCOV 1
30860 _ACEOF
30861
30862   LIBS="-lgcov $LIBS"
30863
30864 fi
30865
30866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
30867 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
30868 if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
30869   $as_echo_n "(cached) " >&6
30870 else
30871   ac_check_lib_save_LIBS=$LIBS
30872 LIBS="-lgcov  $LIBS"
30873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30874 /* end confdefs.h.  */
30875
30876 /* Override any GCC internal prototype to avoid an error.
30877    Use char because int might match the return type of a GCC
30878    builtin and then its argument prototype would still apply.  */
30879 #ifdef __cplusplus
30880 extern "C"
30881 #endif
30882 char __gcov_init ();
30883 int
30884 main ()
30885 {
30886 return __gcov_init ();
30887   ;
30888   return 0;
30889 }
30890 _ACEOF
30891 if ac_fn_c_try_link "$LINENO"; then :
30892   ac_cv_lib_gcov___gcov_init=yes
30893 else
30894   ac_cv_lib_gcov___gcov_init=no
30895 fi
30896 rm -f core conftest.err conftest.$ac_objext \
30897     conftest$ac_exeext conftest.$ac_ext
30898 LIBS=$ac_check_lib_save_LIBS
30899 fi
30900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
30901 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
30902 if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
30903   cat >>confdefs.h <<_ACEOF
30904 #define HAVE_LIBGCOV 1
30905 _ACEOF
30906
30907   LIBS="-lgcov $LIBS"
30908
30909 fi
30910
30911     case "$target_os" in
30912         darwin*)
30913             OSX_GCOV_LDFLAG="-Wl,-single_module"
30914         ;;
30915         *)
30916             OSX_GCOV_LDFLAG=""
30917         ;;
30918     esac
30919
30920     CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS"
30921     CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS"
30922     LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
30923 fi
30924
30925 #
30926 # Build library dependency list for libMagickCore
30927 #
30928
30929 MAGICK_LIBLTDL='' # Libltdl for build
30930 MAGICK_API_LIBLTDL=''   # libltdl for dependent application (API) build
30931 MAGICK_LTDLDEPS=''      # extra libltdl dependencies
30932 if test "$with_ltdl" != 'no'
30933 then
30934   if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
30935     MAGICK_API_LIBLTDL='-lltdl'
30936   fi
30937   MAGICK_LIBLTDL=${LIBLTDL}
30938   MAGICK_LTDLDEPS=${LTDLDEPS}
30939 fi
30940
30941
30942
30943 if test "$with_modules" != 'no'; then
30944     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"
30945 else
30946     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"
30947 fi
30948
30949
30950 #
30951 # Remove extraneous spaces from output variables (asthetic)
30952 #
30953 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/  */ /g'`
30954 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/  */ /g'`
30955 X_LIBS=`echo $X_LIBS | sed -e 's/  */ /g'`
30956 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/  */ /g'`
30957
30958 CC=`echo $CC | sed -e 's/  */ /g'`
30959 CFLAGS=`echo $CFLAGS | sed -e 's/  */ /g'`
30960 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/  */ /g'`
30961 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/  */ /g'`
30962 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
30963 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/  */ /g'`
30964 LDFLAGS=`echo $LDFLAGS | sed -e 's/  */ /g'`
30965 TESTED_LIBS=`echo $LIBS | sed -e 's/  */ /g'`
30966 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/  */ /g'`
30967 #LIBS=`echo $LIBS | sed -e 's/  */ /g'`
30968
30969 # Pass only user-provided LIBS as "global" libraries
30970 LIBS=$USER_LIBS
30971
30972 #AC_SUBST(CPPFLAGS)
30973
30974 #AC_SUBST(LDFLAGS)
30975 #AC_SUBST(X_PRE_LIBS)
30976 #AC_SUBST(X_LIBS)
30977 #AC_SUBST(X_EXTRA_LIBS)
30978
30979 MAGICK_CFLAGS=$CFLAGS
30980 MAGICK_CXXFLAGS="$CXXFLAGS"
30981 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'`
30982 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'`
30983 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
30984 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
30985
30986
30987
30988
30989
30990
30991
30992
30993 # Set configured scripts to executable.
30994 ac_config_commands="$ac_config_commands default"
30995
30996 ac_config_commands="$ac_config_commands MagickCore-config.in"
30997
30998 ac_config_commands="$ac_config_commands Magick-config.in"
30999
31000 ac_config_commands="$ac_config_commands MagickWand-config.in"
31001
31002 ac_config_commands="$ac_config_commands Wand-config.in"
31003
31004 ac_config_commands="$ac_config_commands Magick++-config.in"
31005
31006 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
31007
31008
31009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31010 $as_echo "-------------------------------------------------------------" >&6; }
31011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
31012 $as_echo "Update ImageMagick configuration" >&6; }
31013 cat >confcache <<\_ACEOF
31014 # This file is a shell script that caches the results of configure
31015 # tests run on this system so they can be shared between configure
31016 # scripts and configure runs, see configure's option --config-cache.
31017 # It is not useful on other systems.  If it contains results you don't
31018 # want to keep, you may remove or edit it.
31019 #
31020 # config.status only pays attention to the cache file if you give it
31021 # the --recheck option to rerun configure.
31022 #
31023 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31024 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31025 # following values.
31026
31027 _ACEOF
31028
31029 # The following way of writing the cache mishandles newlines in values,
31030 # but we know of no workaround that is simple, portable, and efficient.
31031 # So, we kill variables containing newlines.
31032 # Ultrix sh set writes to stderr and can't be redirected directly,
31033 # and sets the high bit in the cache file unless we assign to the vars.
31034 (
31035   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31036     eval ac_val=\$$ac_var
31037     case $ac_val in #(
31038     *${as_nl}*)
31039       case $ac_var in #(
31040       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31041 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31042       esac
31043       case $ac_var in #(
31044       _ | IFS | as_nl) ;; #(
31045       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31046       *) { eval $ac_var=; unset $ac_var;} ;;
31047       esac ;;
31048     esac
31049   done
31050
31051   (set) 2>&1 |
31052     case $as_nl`(ac_space=' '; set) 2>&1` in #(
31053     *${as_nl}ac_space=\ *)
31054       # `set' does not quote correctly, so add quotes: double-quote
31055       # substitution turns \\\\ into \\, and sed turns \\ into \.
31056       sed -n \
31057         "s/'/'\\\\''/g;
31058           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31059       ;; #(
31060     *)
31061       # `set' quotes correctly as required by POSIX, so do not add quotes.
31062       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31063       ;;
31064     esac |
31065     sort
31066 ) |
31067   sed '
31068      /^ac_cv_env_/b end
31069      t clear
31070      :clear
31071      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31072      t end
31073      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31074      :end' >>confcache
31075 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31076   if test -w "$cache_file"; then
31077     test "x$cache_file" != "x/dev/null" &&
31078       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31079 $as_echo "$as_me: updating cache $cache_file" >&6;}
31080     cat confcache >$cache_file
31081   else
31082     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31083 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31084   fi
31085 fi
31086 rm -f confcache
31087
31088 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31089 # Let make expand exec_prefix.
31090 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31091
31092 DEFS=-DHAVE_CONFIG_H
31093
31094 ac_libobjs=
31095 ac_ltlibobjs=
31096 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31097   # 1. Remove the extension, and $U if already installed.
31098   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31099   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31100   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31101   #    will be set to the directory where LIBOBJS objects are built.
31102   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31103   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31104 done
31105 LIBOBJS=$ac_libobjs
31106
31107 LTLIBOBJS=$ac_ltlibobjs
31108
31109
31110  if test -n "$EXEEXT"; then
31111   am__EXEEXT_TRUE=
31112   am__EXEEXT_FALSE='#'
31113 else
31114   am__EXEEXT_TRUE='#'
31115   am__EXEEXT_FALSE=
31116 fi
31117
31118 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31119   as_fn_error "conditional \"AMDEP\" was never defined.
31120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31121 fi
31122 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31123   as_fn_error "conditional \"am__fastdepCC\" was never defined.
31124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31125 fi
31126 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31127   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31129 fi
31130 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
31131   as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
31132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31133 fi
31134 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
31135   as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
31136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31137 fi
31138 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
31139   as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
31140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31141 fi
31142 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
31143   as_fn_error "conditional \"USING_CL\" was never defined.
31144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31145 fi
31146 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31147   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31149 fi
31150 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31151   as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
31152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31153 fi
31154 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31155   as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
31156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31157 fi
31158 LT_CONFIG_H=config/config.h
31159
31160     _ltdl_libobjs=
31161     _ltdl_ltlibobjs=
31162     if test -n "$_LT_LIBOBJS"; then
31163       # Remove the extension.
31164       _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
31165       for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
31166         _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
31167         _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
31168       done
31169     fi
31170     ltdl_LIBOBJS=$_ltdl_libobjs
31171
31172     ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
31173
31174
31175 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
31176   as_fn_error "conditional \"WITH_MODULES\" was never defined.
31177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31178 fi
31179 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
31180   as_fn_error "conditional \"WITH_LTDL\" was never defined.
31181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31182 fi
31183 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31184   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
31185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31186 fi
31187
31188 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31189   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31191 fi
31192 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
31193   as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
31194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31195 fi
31196 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
31197   as_fn_error "conditional \"HasUMEM\" was never defined.
31198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31199 fi
31200 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
31201   as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
31202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31203 fi
31204 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
31205   as_fn_error "conditional \"X11_DELEGATE\" was never defined.
31206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31207 fi
31208 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
31209   as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
31210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31211 fi
31212 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
31213   as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
31214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31215 fi
31216 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
31217   as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
31218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31219 fi
31220 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
31221   as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
31222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31223 fi
31224 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
31225   as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
31226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31227 fi
31228 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
31229   as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
31230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31231 fi
31232 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
31233   as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
31234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31235 fi
31236 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
31237   as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
31238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31239 fi
31240 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
31241   as_fn_error "conditional \"GS_DELEGATE\" was never defined.
31242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31243 fi
31244 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
31245   as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
31246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31247 fi
31248 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
31249   as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
31250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31251 fi
31252 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
31253   as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
31254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31255 fi
31256 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
31257   as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
31258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31259 fi
31260 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
31261   as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
31262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31263 fi
31264 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
31265   as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
31266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31267 fi
31268 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
31269   as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
31270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31271 fi
31272 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
31273   as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
31274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31275 fi
31276 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
31277   as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
31278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31279 fi
31280 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
31281   as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
31282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31283 fi
31284 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
31285   as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
31286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31287 fi
31288 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
31289   as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
31290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31291 fi
31292 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
31293   as_fn_error "conditional \"XML_DELEGATE\" was never defined.
31294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31295 fi
31296 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
31297   as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
31298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31299 fi
31300 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
31301   as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
31302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31303 fi
31304 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
31305   as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
31306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31307 fi
31308 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
31309   as_fn_error "conditional \"WITH_PERL\" was never defined.
31310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31311 fi
31312 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
31313   as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
31314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31315 fi
31316 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
31317   as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
31318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31319 fi
31320
31321 : ${CONFIG_STATUS=./config.status}
31322 ac_write_fail=0
31323 ac_clean_files_save=$ac_clean_files
31324 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31325 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31326 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31327 as_write_fail=0
31328 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31329 #! $SHELL
31330 # Generated by $as_me.
31331 # Run this file to recreate the current configuration.
31332 # Compiler output produced by configure, useful for debugging
31333 # configure, is in config.log if it exists.
31334
31335 debug=false
31336 ac_cs_recheck=false
31337 ac_cs_silent=false
31338
31339 SHELL=\${CONFIG_SHELL-$SHELL}
31340 export SHELL
31341 _ASEOF
31342 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31343 ## -------------------- ##
31344 ## M4sh Initialization. ##
31345 ## -------------------- ##
31346
31347 # Be more Bourne compatible
31348 DUALCASE=1; export DUALCASE # for MKS sh
31349 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31350   emulate sh
31351   NULLCMD=:
31352   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31353   # is contrary to our usage.  Disable this feature.
31354   alias -g '${1+"$@"}'='"$@"'
31355   setopt NO_GLOB_SUBST
31356 else
31357   case `(set -o) 2>/dev/null` in #(
31358   *posix*) :
31359     set -o posix ;; #(
31360   *) :
31361      ;;
31362 esac
31363 fi
31364
31365
31366 as_nl='
31367 '
31368 export as_nl
31369 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31370 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31371 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31372 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31373 # Prefer a ksh shell builtin over an external printf program on Solaris,
31374 # but without wasting forks for bash or zsh.
31375 if test -z "$BASH_VERSION$ZSH_VERSION" \
31376     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31377   as_echo='print -r --'
31378   as_echo_n='print -rn --'
31379 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31380   as_echo='printf %s\n'
31381   as_echo_n='printf %s'
31382 else
31383   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31384     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31385     as_echo_n='/usr/ucb/echo -n'
31386   else
31387     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31388     as_echo_n_body='eval
31389       arg=$1;
31390       case $arg in #(
31391       *"$as_nl"*)
31392         expr "X$arg" : "X\\(.*\\)$as_nl";
31393         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31394       esac;
31395       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31396     '
31397     export as_echo_n_body
31398     as_echo_n='sh -c $as_echo_n_body as_echo'
31399   fi
31400   export as_echo_body
31401   as_echo='sh -c $as_echo_body as_echo'
31402 fi
31403
31404 # The user is always right.
31405 if test "${PATH_SEPARATOR+set}" != set; then
31406   PATH_SEPARATOR=:
31407   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31408     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31409       PATH_SEPARATOR=';'
31410   }
31411 fi
31412
31413
31414 # IFS
31415 # We need space, tab and new line, in precisely that order.  Quoting is
31416 # there to prevent editors from complaining about space-tab.
31417 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31418 # splitting by setting IFS to empty value.)
31419 IFS=" ""        $as_nl"
31420
31421 # Find who we are.  Look in the path if we contain no directory separator.
31422 case $0 in #((
31423   *[\\/]* ) as_myself=$0 ;;
31424   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31425 for as_dir in $PATH
31426 do
31427   IFS=$as_save_IFS
31428   test -z "$as_dir" && as_dir=.
31429     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31430   done
31431 IFS=$as_save_IFS
31432
31433      ;;
31434 esac
31435 # We did not find ourselves, most probably we were run as `sh COMMAND'
31436 # in which case we are not to be found in the path.
31437 if test "x$as_myself" = x; then
31438   as_myself=$0
31439 fi
31440 if test ! -f "$as_myself"; then
31441   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31442   exit 1
31443 fi
31444
31445 # Unset variables that we do not need and which cause bugs (e.g. in
31446 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31447 # suppresses any "Segmentation fault" message there.  '((' could
31448 # trigger a bug in pdksh 5.2.14.
31449 for as_var in BASH_ENV ENV MAIL MAILPATH
31450 do eval test x\${$as_var+set} = xset \
31451   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31452 done
31453 PS1='$ '
31454 PS2='> '
31455 PS4='+ '
31456
31457 # NLS nuisances.
31458 LC_ALL=C
31459 export LC_ALL
31460 LANGUAGE=C
31461 export LANGUAGE
31462
31463 # CDPATH.
31464 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31465
31466
31467 # as_fn_error ERROR [LINENO LOG_FD]
31468 # ---------------------------------
31469 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31470 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31471 # script with status $?, using 1 if that was 0.
31472 as_fn_error ()
31473 {
31474   as_status=$?; test $as_status -eq 0 && as_status=1
31475   if test "$3"; then
31476     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31477     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
31478   fi
31479   $as_echo "$as_me: error: $1" >&2
31480   as_fn_exit $as_status
31481 } # as_fn_error
31482
31483
31484 # as_fn_set_status STATUS
31485 # -----------------------
31486 # Set $? to STATUS, without forking.
31487 as_fn_set_status ()
31488 {
31489   return $1
31490 } # as_fn_set_status
31491
31492 # as_fn_exit STATUS
31493 # -----------------
31494 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31495 as_fn_exit ()
31496 {
31497   set +e
31498   as_fn_set_status $1
31499   exit $1
31500 } # as_fn_exit
31501
31502 # as_fn_unset VAR
31503 # ---------------
31504 # Portably unset VAR.
31505 as_fn_unset ()
31506 {
31507   { eval $1=; unset $1;}
31508 }
31509 as_unset=as_fn_unset
31510 # as_fn_append VAR VALUE
31511 # ----------------------
31512 # Append the text in VALUE to the end of the definition contained in VAR. Take
31513 # advantage of any shell optimizations that allow amortized linear growth over
31514 # repeated appends, instead of the typical quadratic growth present in naive
31515 # implementations.
31516 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31517   eval 'as_fn_append ()
31518   {
31519     eval $1+=\$2
31520   }'
31521 else
31522   as_fn_append ()
31523   {
31524     eval $1=\$$1\$2
31525   }
31526 fi # as_fn_append
31527
31528 # as_fn_arith ARG...
31529 # ------------------
31530 # Perform arithmetic evaluation on the ARGs, and store the result in the
31531 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31532 # must be portable across $(()) and expr.
31533 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31534   eval 'as_fn_arith ()
31535   {
31536     as_val=$(( $* ))
31537   }'
31538 else
31539   as_fn_arith ()
31540   {
31541     as_val=`expr "$@" || test $? -eq 1`
31542   }
31543 fi # as_fn_arith
31544
31545
31546 if expr a : '\(a\)' >/dev/null 2>&1 &&
31547    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31548   as_expr=expr
31549 else
31550   as_expr=false
31551 fi
31552
31553 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31554   as_basename=basename
31555 else
31556   as_basename=false
31557 fi
31558
31559 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31560   as_dirname=dirname
31561 else
31562   as_dirname=false
31563 fi
31564
31565 as_me=`$as_basename -- "$0" ||
31566 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31567          X"$0" : 'X\(//\)$' \| \
31568          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31569 $as_echo X/"$0" |
31570     sed '/^.*\/\([^/][^/]*\)\/*$/{
31571             s//\1/
31572             q
31573           }
31574           /^X\/\(\/\/\)$/{
31575             s//\1/
31576             q
31577           }
31578           /^X\/\(\/\).*/{
31579             s//\1/
31580             q
31581           }
31582           s/.*/./; q'`
31583
31584 # Avoid depending upon Character Ranges.
31585 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31586 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31587 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31588 as_cr_digits='0123456789'
31589 as_cr_alnum=$as_cr_Letters$as_cr_digits
31590
31591 ECHO_C= ECHO_N= ECHO_T=
31592 case `echo -n x` in #(((((
31593 -n*)
31594   case `echo 'xy\c'` in
31595   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31596   xy)  ECHO_C='\c';;
31597   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31598        ECHO_T=' ';;
31599   esac;;
31600 *)
31601   ECHO_N='-n';;
31602 esac
31603
31604 rm -f conf$$ conf$$.exe conf$$.file
31605 if test -d conf$$.dir; then
31606   rm -f conf$$.dir/conf$$.file
31607 else
31608   rm -f conf$$.dir
31609   mkdir conf$$.dir 2>/dev/null
31610 fi
31611 if (echo >conf$$.file) 2>/dev/null; then
31612   if ln -s conf$$.file conf$$ 2>/dev/null; then
31613     as_ln_s='ln -s'
31614     # ... but there are two gotchas:
31615     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31616     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31617     # In both cases, we have to default to `cp -p'.
31618     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31619       as_ln_s='cp -p'
31620   elif ln conf$$.file conf$$ 2>/dev/null; then
31621     as_ln_s=ln
31622   else
31623     as_ln_s='cp -p'
31624   fi
31625 else
31626   as_ln_s='cp -p'
31627 fi
31628 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31629 rmdir conf$$.dir 2>/dev/null
31630
31631
31632 # as_fn_mkdir_p
31633 # -------------
31634 # Create "$as_dir" as a directory, including parents if necessary.
31635 as_fn_mkdir_p ()
31636 {
31637
31638   case $as_dir in #(
31639   -*) as_dir=./$as_dir;;
31640   esac
31641   test -d "$as_dir" || eval $as_mkdir_p || {
31642     as_dirs=
31643     while :; do
31644       case $as_dir in #(
31645       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31646       *) as_qdir=$as_dir;;
31647       esac
31648       as_dirs="'$as_qdir' $as_dirs"
31649       as_dir=`$as_dirname -- "$as_dir" ||
31650 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31651          X"$as_dir" : 'X\(//\)[^/]' \| \
31652          X"$as_dir" : 'X\(//\)$' \| \
31653          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31654 $as_echo X"$as_dir" |
31655     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31656             s//\1/
31657             q
31658           }
31659           /^X\(\/\/\)[^/].*/{
31660             s//\1/
31661             q
31662           }
31663           /^X\(\/\/\)$/{
31664             s//\1/
31665             q
31666           }
31667           /^X\(\/\).*/{
31668             s//\1/
31669             q
31670           }
31671           s/.*/./; q'`
31672       test -d "$as_dir" && break
31673     done
31674     test -z "$as_dirs" || eval "mkdir $as_dirs"
31675   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
31676
31677
31678 } # as_fn_mkdir_p
31679 if mkdir -p . 2>/dev/null; then
31680   as_mkdir_p='mkdir -p "$as_dir"'
31681 else
31682   test -d ./-p && rmdir ./-p
31683   as_mkdir_p=false
31684 fi
31685
31686 if test -x / >/dev/null 2>&1; then
31687   as_test_x='test -x'
31688 else
31689   if ls -dL / >/dev/null 2>&1; then
31690     as_ls_L_option=L
31691   else
31692     as_ls_L_option=
31693   fi
31694   as_test_x='
31695     eval sh -c '\''
31696       if test -d "$1"; then
31697         test -d "$1/.";
31698       else
31699         case $1 in #(
31700         -*)set "./$1";;
31701         esac;
31702         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
31703         ???[sx]*):;;*)false;;esac;fi
31704     '\'' sh
31705   '
31706 fi
31707 as_executable_p=$as_test_x
31708
31709 # Sed expression to map a string onto a valid CPP name.
31710 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31711
31712 # Sed expression to map a string onto a valid variable name.
31713 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31714
31715
31716 exec 6>&1
31717 ## ----------------------------------- ##
31718 ## Main body of $CONFIG_STATUS script. ##
31719 ## ----------------------------------- ##
31720 _ASEOF
31721 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31722
31723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31724 # Save the log message, to keep $0 and so on meaningful, and to
31725 # report actual input values of CONFIG_FILES etc. instead of their
31726 # values after options handling.
31727 ac_log="
31728 This file was extended by ImageMagick $as_me 6.5.8, which was
31729 generated by GNU Autoconf 2.65.  Invocation command line was
31730
31731   CONFIG_FILES    = $CONFIG_FILES
31732   CONFIG_HEADERS  = $CONFIG_HEADERS
31733   CONFIG_LINKS    = $CONFIG_LINKS
31734   CONFIG_COMMANDS = $CONFIG_COMMANDS
31735   $ $0 $@
31736
31737 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31738 "
31739
31740 _ACEOF
31741
31742 case $ac_config_files in *"
31743 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31744 esac
31745
31746 case $ac_config_headers in *"
31747 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31748 esac
31749
31750
31751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31752 # Files that config.status was made for.
31753 config_files="$ac_config_files"
31754 config_headers="$ac_config_headers"
31755 config_commands="$ac_config_commands"
31756
31757 _ACEOF
31758
31759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31760 ac_cs_usage="\
31761 \`$as_me' instantiates files and other configuration actions
31762 from templates according to the current configuration.  Unless the files
31763 and actions are specified as TAGs, all are instantiated by default.
31764
31765 Usage: $0 [OPTION]... [TAG]...
31766
31767   -h, --help       print this help, then exit
31768   -V, --version    print version number and configuration settings, then exit
31769       --config     print configuration, then exit
31770   -q, --quiet, --silent
31771                    do not print progress messages
31772   -d, --debug      don't remove temporary files
31773       --recheck    update $as_me by reconfiguring in the same conditions
31774       --file=FILE[:TEMPLATE]
31775                    instantiate the configuration file FILE
31776       --header=FILE[:TEMPLATE]
31777                    instantiate the configuration header FILE
31778
31779 Configuration files:
31780 $config_files
31781
31782 Configuration headers:
31783 $config_headers
31784
31785 Configuration commands:
31786 $config_commands
31787
31788 Report bugs to <http://www.imagemagick.org>."
31789
31790 _ACEOF
31791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31792 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31793 ac_cs_version="\\
31794 ImageMagick config.status 6.5.8
31795 configured by $0, generated by GNU Autoconf 2.65,
31796   with options \\"\$ac_cs_config\\"
31797
31798 Copyright (C) 2009 Free Software Foundation, Inc.
31799 This config.status script is free software; the Free Software Foundation
31800 gives unlimited permission to copy, distribute and modify it."
31801
31802 ac_pwd='$ac_pwd'
31803 srcdir='$srcdir'
31804 INSTALL='$INSTALL'
31805 MKDIR_P='$MKDIR_P'
31806 AWK='$AWK'
31807 test -n "\$AWK" || AWK=awk
31808 _ACEOF
31809
31810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31811 # The default lists apply if the user does not specify any file.
31812 ac_need_defaults=:
31813 while test $# != 0
31814 do
31815   case $1 in
31816   --*=*)
31817     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31818     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31819     ac_shift=:
31820     ;;
31821   *)
31822     ac_option=$1
31823     ac_optarg=$2
31824     ac_shift=shift
31825     ;;
31826   esac
31827
31828   case $ac_option in
31829   # Handling of the options.
31830   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31831     ac_cs_recheck=: ;;
31832   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31833     $as_echo "$ac_cs_version"; exit ;;
31834   --config | --confi | --conf | --con | --co | --c )
31835     $as_echo "$ac_cs_config"; exit ;;
31836   --debug | --debu | --deb | --de | --d | -d )
31837     debug=: ;;
31838   --file | --fil | --fi | --f )
31839     $ac_shift
31840     case $ac_optarg in
31841     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31842     esac
31843     as_fn_append CONFIG_FILES " '$ac_optarg'"
31844     ac_need_defaults=false;;
31845   --header | --heade | --head | --hea )
31846     $ac_shift
31847     case $ac_optarg in
31848     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31849     esac
31850     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31851     ac_need_defaults=false;;
31852   --he | --h)
31853     # Conflict between --help and --header
31854     as_fn_error "ambiguous option: \`$1'
31855 Try \`$0 --help' for more information.";;
31856   --help | --hel | -h )
31857     $as_echo "$ac_cs_usage"; exit ;;
31858   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31859   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31860     ac_cs_silent=: ;;
31861
31862   # This is an error.
31863   -*) as_fn_error "unrecognized option: \`$1'
31864 Try \`$0 --help' for more information." ;;
31865
31866   *) as_fn_append ac_config_targets " $1"
31867      ac_need_defaults=false ;;
31868
31869   esac
31870   shift
31871 done
31872
31873 ac_configure_extra_args=
31874
31875 if $ac_cs_silent; then
31876   exec 6>/dev/null
31877   ac_configure_extra_args="$ac_configure_extra_args --silent"
31878 fi
31879
31880 _ACEOF
31881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31882 if \$ac_cs_recheck; then
31883   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31884   shift
31885   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31886   CONFIG_SHELL='$SHELL'
31887   export CONFIG_SHELL
31888   exec "\$@"
31889 fi
31890
31891 _ACEOF
31892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31893 exec 5>>config.log
31894 {
31895   echo
31896   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31897 ## Running $as_me. ##
31898 _ASBOX
31899   $as_echo "$ac_log"
31900 } >&5
31901
31902 _ACEOF
31903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31904 #
31905 # INIT-COMMANDS
31906 #
31907 PACKAGE="$PACKAGE"
31908 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31909
31910
31911 # The HP-UX ksh and POSIX shell print the target directory to stdout
31912 # if CDPATH is set.
31913 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31914
31915 sed_quote_subst='$sed_quote_subst'
31916 double_quote_subst='$double_quote_subst'
31917 delay_variable_subst='$delay_variable_subst'
31918 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
31919 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
31920 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
31921 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
31922 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
31923 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
31924 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
31925 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
31926 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
31927 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31928 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
31929 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
31930 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
31931 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
31932 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
31933 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
31934 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
31935 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
31936 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
31937 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
31938 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
31939 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
31940 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
31941 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
31942 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
31943 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
31944 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
31945 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
31946 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
31947 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
31948 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31949 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
31950 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
31951 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
31952 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31953 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
31954 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
31955 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31956 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31957 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31958 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
31959 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31960 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
31961 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
31962 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
31963 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
31964 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"`'
31965 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"`'
31966 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
31967 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
31968 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
31969 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
31970 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
31971 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
31972 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
31973 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
31974 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
31975 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
31976 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
31977 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
31978 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
31979 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31980 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
31981 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
31982 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31983 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31984 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
31985 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
31986 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31987 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31988 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
31989 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31990 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31991 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31992 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31993 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31994 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31995 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
31996 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31997 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31998 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31999 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
32000 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
32001 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
32002 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
32003 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
32004 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32005 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
32006 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
32007 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
32008 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
32009 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
32010 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32011 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
32012 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
32013 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32014 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
32015 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
32016 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
32017 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
32018 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
32019 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32020 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32021 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
32022 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32023 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
32024 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32025 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32026 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32027 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32028 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
32029 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
32030 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32031 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32032 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
32033 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
32034 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
32035 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
32036 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
32037 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
32038 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
32039 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32040 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32041 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
32042 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
32043 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
32044 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32045 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32046 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32047 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32048 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32049 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32050 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32051 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32052 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32053 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32054 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32055 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32056 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32057 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32058 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32059 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32060 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32061 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32062 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32063 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32064 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32065 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32066 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32067 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32068 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32069 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32070 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32071 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32072 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32073 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32074 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32075 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32076 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32077 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32078 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32079 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32080 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32081 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32082 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32083 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32084 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32085 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32086 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32087 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32088 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32089 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32090 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32091
32092 LTCC='$LTCC'
32093 LTCFLAGS='$LTCFLAGS'
32094 compiler='$compiler_DEFAULT'
32095
32096 # Quote evaled strings.
32097 for var in SED \
32098 GREP \
32099 EGREP \
32100 FGREP \
32101 LD \
32102 NM \
32103 LN_S \
32104 lt_SP2NL \
32105 lt_NL2SP \
32106 reload_flag \
32107 deplibs_check_method \
32108 file_magic_cmd \
32109 AR \
32110 AR_FLAGS \
32111 STRIP \
32112 RANLIB \
32113 CC \
32114 CFLAGS \
32115 compiler \
32116 lt_cv_sys_global_symbol_pipe \
32117 lt_cv_sys_global_symbol_to_cdecl \
32118 lt_cv_sys_global_symbol_to_c_name_address \
32119 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32120 SHELL \
32121 ECHO \
32122 lt_prog_compiler_no_builtin_flag \
32123 lt_prog_compiler_wl \
32124 lt_prog_compiler_pic \
32125 lt_prog_compiler_static \
32126 lt_cv_prog_compiler_c_o \
32127 need_locks \
32128 DSYMUTIL \
32129 NMEDIT \
32130 LIPO \
32131 OTOOL \
32132 OTOOL64 \
32133 shrext_cmds \
32134 export_dynamic_flag_spec \
32135 whole_archive_flag_spec \
32136 compiler_needs_object \
32137 with_gnu_ld \
32138 allow_undefined_flag \
32139 no_undefined_flag \
32140 hardcode_libdir_flag_spec \
32141 hardcode_libdir_flag_spec_ld \
32142 hardcode_libdir_separator \
32143 fix_srcfile_path \
32144 exclude_expsyms \
32145 include_expsyms \
32146 file_list_spec \
32147 variables_saved_for_relink \
32148 libname_spec \
32149 library_names_spec \
32150 soname_spec \
32151 finish_eval \
32152 old_striplib \
32153 striplib \
32154 compiler_lib_search_dirs \
32155 predep_objects \
32156 postdep_objects \
32157 predeps \
32158 postdeps \
32159 compiler_lib_search_path \
32160 LD_CXX \
32161 compiler_CXX \
32162 lt_prog_compiler_no_builtin_flag_CXX \
32163 lt_prog_compiler_wl_CXX \
32164 lt_prog_compiler_pic_CXX \
32165 lt_prog_compiler_static_CXX \
32166 lt_cv_prog_compiler_c_o_CXX \
32167 export_dynamic_flag_spec_CXX \
32168 whole_archive_flag_spec_CXX \
32169 compiler_needs_object_CXX \
32170 with_gnu_ld_CXX \
32171 allow_undefined_flag_CXX \
32172 no_undefined_flag_CXX \
32173 hardcode_libdir_flag_spec_CXX \
32174 hardcode_libdir_flag_spec_ld_CXX \
32175 hardcode_libdir_separator_CXX \
32176 fix_srcfile_path_CXX \
32177 exclude_expsyms_CXX \
32178 include_expsyms_CXX \
32179 file_list_spec_CXX \
32180 compiler_lib_search_dirs_CXX \
32181 predep_objects_CXX \
32182 postdep_objects_CXX \
32183 predeps_CXX \
32184 postdeps_CXX \
32185 compiler_lib_search_path_CXX; do
32186     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
32187     *[\\\\\\\`\\"\\\$]*)
32188       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
32189       ;;
32190     *)
32191       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32192       ;;
32193     esac
32194 done
32195
32196 # Double-quote double-evaled strings.
32197 for var in reload_cmds \
32198 old_postinstall_cmds \
32199 old_postuninstall_cmds \
32200 old_archive_cmds \
32201 extract_expsyms_cmds \
32202 old_archive_from_new_cmds \
32203 old_archive_from_expsyms_cmds \
32204 archive_cmds \
32205 archive_expsym_cmds \
32206 module_cmds \
32207 module_expsym_cmds \
32208 export_symbols_cmds \
32209 prelink_cmds \
32210 postinstall_cmds \
32211 postuninstall_cmds \
32212 finish_cmds \
32213 sys_lib_search_path_spec \
32214 sys_lib_dlsearch_path_spec \
32215 old_archive_cmds_CXX \
32216 old_archive_from_new_cmds_CXX \
32217 old_archive_from_expsyms_cmds_CXX \
32218 archive_cmds_CXX \
32219 archive_expsym_cmds_CXX \
32220 module_cmds_CXX \
32221 module_expsym_cmds_CXX \
32222 export_symbols_cmds_CXX \
32223 prelink_cmds_CXX; do
32224     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
32225     *[\\\\\\\`\\"\\\$]*)
32226       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32227       ;;
32228     *)
32229       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32230       ;;
32231     esac
32232 done
32233
32234 # Fix-up fallback echo if it was mangled by the above quoting rules.
32235 case \$lt_ECHO in
32236 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
32237   ;;
32238 esac
32239
32240 ac_aux_dir='$ac_aux_dir'
32241 xsi_shell='$xsi_shell'
32242 lt_shell_append='$lt_shell_append'
32243
32244 # See if we are running on zsh, and set the options which allow our
32245 # commands through without removal of \ escapes INIT.
32246 if test -n "\${ZSH_VERSION+set}" ; then
32247    setopt NO_GLOB_SUBST
32248 fi
32249
32250
32251     PACKAGE='$PACKAGE'
32252     VERSION='$VERSION'
32253     TIMESTAMP='$TIMESTAMP'
32254     RM='$RM'
32255     ofile='$ofile'
32256
32257
32258
32259
32260
32261
32262 _ACEOF
32263
32264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32265
32266 # Handling of arguments.
32267 for ac_config_target in $ac_config_targets
32268 do
32269   case $ac_config_target in
32270     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
32271     "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
32272     "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
32273     "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
32274     "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
32275     "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
32276     "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
32277     "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
32278     "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
32279     "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
32280     "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
32281     "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
32282     "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
32283     "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
32284     "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
32285     "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
32286     "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
32287     "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
32288     "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
32289     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32290     "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
32291     "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
32292     "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
32293     "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
32294     "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
32295     "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
32296     "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
32297     "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
32298     "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
32299     "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
32300     "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
32301     "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
32302     "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
32303     "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
32304     "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
32305     "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
32306     "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
32307     "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
32308     "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
32309     "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
32310     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32311     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32312     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32313     "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
32314     "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
32315     "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
32316     "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
32317     "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
32318     "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
32319
32320   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32321   esac
32322 done
32323
32324
32325 # If the user did not use the arguments to specify the items to instantiate,
32326 # then the envvar interface is used.  Set only those that are not.
32327 # We use the long form for the default assignment because of an extremely
32328 # bizarre bug on SunOS 4.1.3.
32329 if $ac_need_defaults; then
32330   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32331   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32332   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32333 fi
32334
32335 # Have a temporary directory for convenience.  Make it in the build tree
32336 # simply because there is no reason against having it here, and in addition,
32337 # creating and moving files from /tmp can sometimes cause problems.
32338 # Hook for its removal unless debugging.
32339 # Note that there is a small window in which the directory will not be cleaned:
32340 # after its creation but before its name has been assigned to `$tmp'.
32341 $debug ||
32342 {
32343   tmp=
32344   trap 'exit_status=$?
32345   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32346 ' 0
32347   trap 'as_fn_exit 1' 1 2 13 15
32348 }
32349 # Create a (secure) tmp directory for tmp files.
32350
32351 {
32352   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32353   test -n "$tmp" && test -d "$tmp"
32354 }  ||
32355 {
32356   tmp=./conf$$-$RANDOM
32357   (umask 077 && mkdir "$tmp")
32358 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
32359
32360 # Set up the scripts for CONFIG_FILES section.
32361 # No need to generate them if there are no CONFIG_FILES.
32362 # This happens for instance with `./config.status config.h'.
32363 if test -n "$CONFIG_FILES"; then
32364
32365
32366 ac_cr=`echo X | tr X '\015'`
32367 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32368 # But we know of no other shell where ac_cr would be empty at this
32369 # point, so we can use a bashism as a fallback.
32370 if test "x$ac_cr" = x; then
32371   eval ac_cr=\$\'\\r\'
32372 fi
32373 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32374 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32375   ac_cs_awk_cr='\r'
32376 else
32377   ac_cs_awk_cr=$ac_cr
32378 fi
32379
32380 echo 'BEGIN {' >"$tmp/subs1.awk" &&
32381 _ACEOF
32382
32383
32384 {
32385   echo "cat >conf$$subs.awk <<_ACEOF" &&
32386   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32387   echo "_ACEOF"
32388 } >conf$$subs.sh ||
32389   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
32390 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32391 ac_delim='%!_!# '
32392 for ac_last_try in false false false false false :; do
32393   . ./conf$$subs.sh ||
32394     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
32395
32396   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32397   if test $ac_delim_n = $ac_delim_num; then
32398     break
32399   elif $ac_last_try; then
32400     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
32401   else
32402     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32403   fi
32404 done
32405 rm -f conf$$subs.sh
32406
32407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32408 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32409 _ACEOF
32410 sed -n '
32411 h
32412 s/^/S["/; s/!.*/"]=/
32413 p
32414 g
32415 s/^[^!]*!//
32416 :repl
32417 t repl
32418 s/'"$ac_delim"'$//
32419 t delim
32420 :nl
32421 h
32422 s/\(.\{148\}\)..*/\1/
32423 t more1
32424 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32425 p
32426 n
32427 b repl
32428 :more1
32429 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32430 p
32431 g
32432 s/.\{148\}//
32433 t nl
32434 :delim
32435 h
32436 s/\(.\{148\}\)..*/\1/
32437 t more2
32438 s/["\\]/\\&/g; s/^/"/; s/$/"/
32439 p
32440 b
32441 :more2
32442 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32443 p
32444 g
32445 s/.\{148\}//
32446 t delim
32447 ' <conf$$subs.awk | sed '
32448 /^[^""]/{
32449   N
32450   s/\n//
32451 }
32452 ' >>$CONFIG_STATUS || ac_write_fail=1
32453 rm -f conf$$subs.awk
32454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32455 _ACAWK
32456 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32457   for (key in S) S_is_set[key] = 1
32458   FS = "\a"
32459
32460 }
32461 {
32462   line = $ 0
32463   nfields = split(line, field, "@")
32464   substed = 0
32465   len = length(field[1])
32466   for (i = 2; i < nfields; i++) {
32467     key = field[i]
32468     keylen = length(key)
32469     if (S_is_set[key]) {
32470       value = S[key]
32471       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32472       len += length(value) + length(field[++i])
32473       substed = 1
32474     } else
32475       len += 1 + keylen
32476   }
32477
32478   print line
32479 }
32480
32481 _ACAWK
32482 _ACEOF
32483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32484 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32485   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32486 else
32487   cat
32488 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
32489   || as_fn_error "could not setup config files machinery" "$LINENO" 5
32490 _ACEOF
32491
32492 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32493 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32494 # trailing colons and then remove the whole line if VPATH becomes empty
32495 # (actually we leave an empty line to preserve line numbers).
32496 if test "x$srcdir" = x.; then
32497   ac_vpsub='/^[  ]*VPATH[        ]*=/{
32498 s/:*\$(srcdir):*/:/
32499 s/:*\${srcdir}:*/:/
32500 s/:*@srcdir@:*/:/
32501 s/^\([^=]*=[     ]*\):*/\1/
32502 s/:*$//
32503 s/^[^=]*=[       ]*$//
32504 }'
32505 fi
32506
32507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32508 fi # test -n "$CONFIG_FILES"
32509
32510 # Set up the scripts for CONFIG_HEADERS section.
32511 # No need to generate them if there are no CONFIG_HEADERS.
32512 # This happens for instance with `./config.status Makefile'.
32513 if test -n "$CONFIG_HEADERS"; then
32514 cat >"$tmp/defines.awk" <<\_ACAWK ||
32515 BEGIN {
32516 _ACEOF
32517
32518 # Transform confdefs.h into an awk script `defines.awk', embedded as
32519 # here-document in config.status, that substitutes the proper values into
32520 # config.h.in to produce config.h.
32521
32522 # Create a delimiter string that does not exist in confdefs.h, to ease
32523 # handling of long lines.
32524 ac_delim='%!_!# '
32525 for ac_last_try in false false :; do
32526   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32527   if test -z "$ac_t"; then
32528     break
32529   elif $ac_last_try; then
32530     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
32531   else
32532     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32533   fi
32534 done
32535
32536 # For the awk script, D is an array of macro values keyed by name,
32537 # likewise P contains macro parameters if any.  Preserve backslash
32538 # newline sequences.
32539
32540 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32541 sed -n '
32542 s/.\{148\}/&'"$ac_delim"'/g
32543 t rset
32544 :rset
32545 s/^[     ]*#[    ]*define[       ][      ]*/ /
32546 t def
32547 d
32548 :def
32549 s/\\$//
32550 t bsnl
32551 s/["\\]/\\&/g
32552 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32553 D["\1"]=" \3"/p
32554 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32555 d
32556 :bsnl
32557 s/["\\]/\\&/g
32558 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32559 D["\1"]=" \3\\\\\\n"\\/p
32560 t cont
32561 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32562 t cont
32563 d
32564 :cont
32565 n
32566 s/.\{148\}/&'"$ac_delim"'/g
32567 t clear
32568 :clear
32569 s/\\$//
32570 t bsnlc
32571 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32572 d
32573 :bsnlc
32574 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32575 b cont
32576 ' <confdefs.h | sed '
32577 s/'"$ac_delim"'/"\\\
32578 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32579
32580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32581   for (key in D) D_is_set[key] = 1
32582   FS = "\a"
32583 }
32584 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32585   line = \$ 0
32586   split(line, arg, " ")
32587   if (arg[1] == "#") {
32588     defundef = arg[2]
32589     mac1 = arg[3]
32590   } else {
32591     defundef = substr(arg[1], 2)
32592     mac1 = arg[2]
32593   }
32594   split(mac1, mac2, "(") #)
32595   macro = mac2[1]
32596   prefix = substr(line, 1, index(line, defundef) - 1)
32597   if (D_is_set[macro]) {
32598     # Preserve the white space surrounding the "#".
32599     print prefix "define", macro P[macro] D[macro]
32600     next
32601   } else {
32602     # Replace #undef with comments.  This is necessary, for example,
32603     # in the case of _POSIX_SOURCE, which is predefined and required
32604     # on some systems where configure will not decide to define it.
32605     if (defundef == "undef") {
32606       print "/*", prefix defundef, macro, "*/"
32607       next
32608     }
32609   }
32610 }
32611 { print }
32612 _ACAWK
32613 _ACEOF
32614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32615   as_fn_error "could not setup config headers machinery" "$LINENO" 5
32616 fi # test -n "$CONFIG_HEADERS"
32617
32618
32619 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32620 shift
32621 for ac_tag
32622 do
32623   case $ac_tag in
32624   :[FHLC]) ac_mode=$ac_tag; continue;;
32625   esac
32626   case $ac_mode$ac_tag in
32627   :[FHL]*:*);;
32628   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
32629   :[FH]-) ac_tag=-:-;;
32630   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32631   esac
32632   ac_save_IFS=$IFS
32633   IFS=:
32634   set x $ac_tag
32635   IFS=$ac_save_IFS
32636   shift
32637   ac_file=$1
32638   shift
32639
32640   case $ac_mode in
32641   :L) ac_source=$1;;
32642   :[FH])
32643     ac_file_inputs=
32644     for ac_f
32645     do
32646       case $ac_f in
32647       -) ac_f="$tmp/stdin";;
32648       *) # Look for the file first in the build tree, then in the source tree
32649          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32650          # because $ac_f cannot contain `:'.
32651          test -f "$ac_f" ||
32652            case $ac_f in
32653            [\\/$]*) false;;
32654            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32655            esac ||
32656            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32657       esac
32658       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32659       as_fn_append ac_file_inputs " '$ac_f'"
32660     done
32661
32662     # Let's still pretend it is `configure' which instantiates (i.e., don't
32663     # use $as_me), people would be surprised to read:
32664     #    /* config.h.  Generated by config.status.  */
32665     configure_input='Generated from '`
32666           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32667         `' by configure.'
32668     if test x"$ac_file" != x-; then
32669       configure_input="$ac_file.  $configure_input"
32670       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32671 $as_echo "$as_me: creating $ac_file" >&6;}
32672     fi
32673     # Neutralize special characters interpreted by sed in replacement strings.
32674     case $configure_input in #(
32675     *\&* | *\|* | *\\* )
32676        ac_sed_conf_input=`$as_echo "$configure_input" |
32677        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32678     *) ac_sed_conf_input=$configure_input;;
32679     esac
32680
32681     case $ac_tag in
32682     *:-:* | *:-) cat >"$tmp/stdin" \
32683       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
32684     esac
32685     ;;
32686   esac
32687
32688   ac_dir=`$as_dirname -- "$ac_file" ||
32689 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32690          X"$ac_file" : 'X\(//\)[^/]' \| \
32691          X"$ac_file" : 'X\(//\)$' \| \
32692          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32693 $as_echo X"$ac_file" |
32694     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32695             s//\1/
32696             q
32697           }
32698           /^X\(\/\/\)[^/].*/{
32699             s//\1/
32700             q
32701           }
32702           /^X\(\/\/\)$/{
32703             s//\1/
32704             q
32705           }
32706           /^X\(\/\).*/{
32707             s//\1/
32708             q
32709           }
32710           s/.*/./; q'`
32711   as_dir="$ac_dir"; as_fn_mkdir_p
32712   ac_builddir=.
32713
32714 case "$ac_dir" in
32715 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32716 *)
32717   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32718   # A ".." for each directory in $ac_dir_suffix.
32719   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32720   case $ac_top_builddir_sub in
32721   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32722   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32723   esac ;;
32724 esac
32725 ac_abs_top_builddir=$ac_pwd
32726 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32727 # for backward compatibility:
32728 ac_top_builddir=$ac_top_build_prefix
32729
32730 case $srcdir in
32731   .)  # We are building in place.
32732     ac_srcdir=.
32733     ac_top_srcdir=$ac_top_builddir_sub
32734     ac_abs_top_srcdir=$ac_pwd ;;
32735   [\\/]* | ?:[\\/]* )  # Absolute name.
32736     ac_srcdir=$srcdir$ac_dir_suffix;
32737     ac_top_srcdir=$srcdir
32738     ac_abs_top_srcdir=$srcdir ;;
32739   *) # Relative name.
32740     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32741     ac_top_srcdir=$ac_top_build_prefix$srcdir
32742     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32743 esac
32744 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32745
32746
32747   case $ac_mode in
32748   :F)
32749   #
32750   # CONFIG_FILE
32751   #
32752
32753   case $INSTALL in
32754   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32755   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32756   esac
32757   ac_MKDIR_P=$MKDIR_P
32758   case $MKDIR_P in
32759   [\\/$]* | ?:[\\/]* ) ;;
32760   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32761   esac
32762 _ACEOF
32763
32764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32765 # If the template does not know about datarootdir, expand it.
32766 # FIXME: This hack should be removed a few years after 2.60.
32767 ac_datarootdir_hack=; ac_datarootdir_seen=
32768 ac_sed_dataroot='
32769 /datarootdir/ {
32770   p
32771   q
32772 }
32773 /@datadir@/p
32774 /@docdir@/p
32775 /@infodir@/p
32776 /@localedir@/p
32777 /@mandir@/p'
32778 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32779 *datarootdir*) ac_datarootdir_seen=yes;;
32780 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32781   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32782 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32783 _ACEOF
32784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32785   ac_datarootdir_hack='
32786   s&@datadir@&$datadir&g
32787   s&@docdir@&$docdir&g
32788   s&@infodir@&$infodir&g
32789   s&@localedir@&$localedir&g
32790   s&@mandir@&$mandir&g
32791   s&\\\${datarootdir}&$datarootdir&g' ;;
32792 esac
32793 _ACEOF
32794
32795 # Neutralize VPATH when `$srcdir' = `.'.
32796 # Shell code in configure.ac might set extrasub.
32797 # FIXME: do we really want to maintain this feature?
32798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32799 ac_sed_extra="$ac_vpsub
32800 $extrasub
32801 _ACEOF
32802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32803 :t
32804 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32805 s|@configure_input@|$ac_sed_conf_input|;t t
32806 s&@top_builddir@&$ac_top_builddir_sub&;t t
32807 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32808 s&@srcdir@&$ac_srcdir&;t t
32809 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32810 s&@top_srcdir@&$ac_top_srcdir&;t t
32811 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32812 s&@builddir@&$ac_builddir&;t t
32813 s&@abs_builddir@&$ac_abs_builddir&;t t
32814 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32815 s&@INSTALL@&$ac_INSTALL&;t t
32816 s&@MKDIR_P@&$ac_MKDIR_P&;t t
32817 $ac_datarootdir_hack
32818 "
32819 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
32820   || as_fn_error "could not create $ac_file" "$LINENO" 5
32821
32822 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32823   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32824   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32825   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32826 which seems to be undefined.  Please make sure it is defined." >&5
32827 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32828 which seems to be undefined.  Please make sure it is defined." >&2;}
32829
32830   rm -f "$tmp/stdin"
32831   case $ac_file in
32832   -) cat "$tmp/out" && rm -f "$tmp/out";;
32833   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32834   esac \
32835   || as_fn_error "could not create $ac_file" "$LINENO" 5
32836  ;;
32837   :H)
32838   #
32839   # CONFIG_HEADER
32840   #
32841   if test x"$ac_file" != x-; then
32842     {
32843       $as_echo "/* $configure_input  */" \
32844       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32845     } >"$tmp/config.h" \
32846       || as_fn_error "could not create $ac_file" "$LINENO" 5
32847     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
32848       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32849 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32850     else
32851       rm -f "$ac_file"
32852       mv "$tmp/config.h" "$ac_file" \
32853         || as_fn_error "could not create $ac_file" "$LINENO" 5
32854     fi
32855   else
32856     $as_echo "/* $configure_input  */" \
32857       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
32858       || as_fn_error "could not create -" "$LINENO" 5
32859   fi
32860 # Compute "$ac_file"'s index in $config_headers.
32861 _am_arg="$ac_file"
32862 _am_stamp_count=1
32863 for _am_header in $config_headers :; do
32864   case $_am_header in
32865     $_am_arg | $_am_arg:* )
32866       break ;;
32867     * )
32868       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32869   esac
32870 done
32871 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32872 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32873          X"$_am_arg" : 'X\(//\)[^/]' \| \
32874          X"$_am_arg" : 'X\(//\)$' \| \
32875          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32876 $as_echo X"$_am_arg" |
32877     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32878             s//\1/
32879             q
32880           }
32881           /^X\(\/\/\)[^/].*/{
32882             s//\1/
32883             q
32884           }
32885           /^X\(\/\/\)$/{
32886             s//\1/
32887             q
32888           }
32889           /^X\(\/\).*/{
32890             s//\1/
32891             q
32892           }
32893           s/.*/./; q'`/stamp-h$_am_stamp_count
32894  ;;
32895
32896   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32897 $as_echo "$as_me: executing $ac_file commands" >&6;}
32898  ;;
32899   esac
32900
32901
32902   case $ac_file$ac_mode in
32903     "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
32904 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
32905 ac_prefix_conf_PKG=`echo MagickCore`
32906 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
32907 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
32908 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
32909 if test ".$ac_prefix_conf_INP" = "."; then
32910    for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
32911      case "$ac_file" in
32912         *.h) ac_prefix_conf_INP=$ac_file ;;
32913         *)
32914      esac
32915      test ".$ac_prefix_conf_INP" != "." && break
32916    done
32917 fi
32918 if test ".$ac_prefix_conf_INP" = "."; then
32919    case "$ac_prefix_conf_OUT" in
32920       */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
32921       ;;
32922       *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
32923       ;;
32924       *) ac_prefix_conf_INP=config.h
32925       ;;
32926    esac
32927 fi
32928 if test -z "$ac_prefix_conf_PKG" ; then
32929    as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
32930 else
32931   if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
32932      ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
32933   fi fi
32934   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
32935 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
32936   if test -f $ac_prefix_conf_INP ; then
32937     echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
32938     echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
32939     echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
32940     echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
32941     echo "#endif/" >>conftest.prefix
32942     echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
32943     echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
32944     echo "#endif/" >> conftest.prefix
32945     # now executing _script on _DEF input to create _OUT output file
32946     echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
32947     echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
32948     echo ' ' >>$tmp/pconfig.h
32949     echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
32950
32951     sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
32952     echo ' ' >>$tmp/pconfig.h
32953     echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
32954     echo "#endif" >>$tmp/pconfig.h
32955     if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
32956       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
32957 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
32958     else
32959       ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
32960 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32961          X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
32962          X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
32963          X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
32964 $as_echo X"$ac_prefix_conf_OUT" |
32965     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32966             s//\1/
32967             q
32968           }
32969           /^X\(\/\/\)[^/].*/{
32970             s//\1/
32971             q
32972           }
32973           /^X\(\/\/\)$/{
32974             s//\1/
32975             q
32976           }
32977           /^X\(\/\).*/{
32978             s//\1/
32979             q
32980           }
32981           s/.*/./; q'`
32982       as_dir="$ac_dir"; as_fn_mkdir_p
32983       rm -f "$ac_prefix_conf_OUT"
32984       mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
32985     fi
32986     cp conftest.prefix _configs.sed
32987   else
32988     as_fn_error "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
32989   fi
32990   rm -f conftest.*
32991 fi
32992  ;;
32993     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32994   # Autoconf 2.62 quotes --file arguments for eval, but not when files
32995   # are listed without --file.  Let's play safe and only enable the eval
32996   # if we detect the quoting.
32997   case $CONFIG_FILES in
32998   *\'*) eval set x "$CONFIG_FILES" ;;
32999   *)   set x $CONFIG_FILES ;;
33000   esac
33001   shift
33002   for mf
33003   do
33004     # Strip MF so we end up with the name of the file.
33005     mf=`echo "$mf" | sed -e 's/:.*$//'`
33006     # Check whether this is an Automake generated Makefile or not.
33007     # We used to match only the files named `Makefile.in', but
33008     # some people rename them; so instead we look at the file content.
33009     # Grep'ing the first line is not enough: some people post-process
33010     # each Makefile.in and add a new line on top of each file to say so.
33011     # Grep'ing the whole file is not good either: AIX grep has a line
33012     # limit of 2048, but all sed's we know have understand at least 4000.
33013     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
33014       dirpart=`$as_dirname -- "$mf" ||
33015 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33016          X"$mf" : 'X\(//\)[^/]' \| \
33017          X"$mf" : 'X\(//\)$' \| \
33018          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33019 $as_echo X"$mf" |
33020     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33021             s//\1/
33022             q
33023           }
33024           /^X\(\/\/\)[^/].*/{
33025             s//\1/
33026             q
33027           }
33028           /^X\(\/\/\)$/{
33029             s//\1/
33030             q
33031           }
33032           /^X\(\/\).*/{
33033             s//\1/
33034             q
33035           }
33036           s/.*/./; q'`
33037     else
33038       continue
33039     fi
33040     # Extract the definition of DEPDIR, am__include, and am__quote
33041     # from the Makefile without running `make'.
33042     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33043     test -z "$DEPDIR" && continue
33044     am__include=`sed -n 's/^am__include = //p' < "$mf"`
33045     test -z "am__include" && continue
33046     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33047     # When using ansi2knr, U may be empty or an underscore; expand it
33048     U=`sed -n 's/^U = //p' < "$mf"`
33049     # Find all dependency output files, they are included files with
33050     # $(DEPDIR) in their names.  We invoke sed twice because it is the
33051     # simplest approach to changing $(DEPDIR) to its actual value in the
33052     # expansion.
33053     for file in `sed -n "
33054       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33055          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33056       # Make sure the directory exists.
33057       test -f "$dirpart/$file" && continue
33058       fdir=`$as_dirname -- "$file" ||
33059 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33060          X"$file" : 'X\(//\)[^/]' \| \
33061          X"$file" : 'X\(//\)$' \| \
33062          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33063 $as_echo X"$file" |
33064     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33065             s//\1/
33066             q
33067           }
33068           /^X\(\/\/\)[^/].*/{
33069             s//\1/
33070             q
33071           }
33072           /^X\(\/\/\)$/{
33073             s//\1/
33074             q
33075           }
33076           /^X\(\/\).*/{
33077             s//\1/
33078             q
33079           }
33080           s/.*/./; q'`
33081       as_dir=$dirpart/$fdir; as_fn_mkdir_p
33082       # echo "creating $dirpart/$file"
33083       echo '# dummy' > "$dirpart/$file"
33084     done
33085   done
33086 }
33087  ;;
33088     "libtool":C)
33089
33090     # See if we are running on zsh, and set the options which allow our
33091     # commands through without removal of \ escapes.
33092     if test -n "${ZSH_VERSION+set}" ; then
33093       setopt NO_GLOB_SUBST
33094     fi
33095
33096     cfgfile="${ofile}T"
33097     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33098     $RM "$cfgfile"
33099
33100     cat <<_LT_EOF >> "$cfgfile"
33101 #! $SHELL
33102
33103 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33104 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33105 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33106 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
33107 #
33108 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33109 #                 2006, 2007, 2008 Free Software Foundation, Inc.
33110 #   Written by Gordon Matzigkeit, 1996
33111 #
33112 #   This file is part of GNU Libtool.
33113 #
33114 # GNU Libtool is free software; you can redistribute it and/or
33115 # modify it under the terms of the GNU General Public License as
33116 # published by the Free Software Foundation; either version 2 of
33117 # the License, or (at your option) any later version.
33118 #
33119 # As a special exception to the GNU General Public License,
33120 # if you distribute this file as part of a program or library that
33121 # is built using GNU Libtool, you may include this file under the
33122 # same distribution terms that you use for the rest of that program.
33123 #
33124 # GNU Libtool is distributed in the hope that it will be useful,
33125 # but WITHOUT ANY WARRANTY; without even the implied warranty of
33126 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
33127 # GNU General Public License for more details.
33128 #
33129 # You should have received a copy of the GNU General Public License
33130 # along with GNU Libtool; see the file COPYING.  If not, a copy
33131 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33132 # obtained by writing to the Free Software Foundation, Inc.,
33133 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33134
33135
33136 # The names of the tagged configurations supported by this script.
33137 available_tags="CXX "
33138
33139 # ### BEGIN LIBTOOL CONFIG
33140
33141 # A sed program that does not truncate output.
33142 SED=$lt_SED
33143
33144 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33145 Xsed="\$SED -e 1s/^X//"
33146
33147 # A grep program that handles long lines.
33148 GREP=$lt_GREP
33149
33150 # An ERE matcher.
33151 EGREP=$lt_EGREP
33152
33153 # A literal string matcher.
33154 FGREP=$lt_FGREP
33155
33156 # Which release of libtool.m4 was used?
33157 macro_version=$macro_version
33158 macro_revision=$macro_revision
33159
33160 # Assembler program.
33161 AS=$AS
33162
33163 # DLL creation program.
33164 DLLTOOL=$DLLTOOL
33165
33166 # Object dumper program.
33167 OBJDUMP=$OBJDUMP
33168
33169 # Whether or not to build shared libraries.
33170 build_libtool_libs=$enable_shared
33171
33172 # Whether or not to build static libraries.
33173 build_old_libs=$enable_static
33174
33175 # What type of objects to build.
33176 pic_mode=$pic_mode
33177
33178 # Whether or not to optimize for fast installation.
33179 fast_install=$enable_fast_install
33180
33181 # The host system.
33182 host_alias=$host_alias
33183 host=$host
33184 host_os=$host_os
33185
33186 # The build system.
33187 build_alias=$build_alias
33188 build=$build
33189 build_os=$build_os
33190
33191 # A BSD- or MS-compatible name lister.
33192 NM=$lt_NM
33193
33194 # Whether we need soft or hard links.
33195 LN_S=$lt_LN_S
33196
33197 # What is the maximum length of a command?
33198 max_cmd_len=$max_cmd_len
33199
33200 # Object file suffix (normally "o").
33201 objext=$ac_objext
33202
33203 # Executable file suffix (normally "").
33204 exeext=$exeext
33205
33206 # whether the shell understands "unset".
33207 lt_unset=$lt_unset
33208
33209 # turn spaces into newlines.
33210 SP2NL=$lt_lt_SP2NL
33211
33212 # turn newlines into spaces.
33213 NL2SP=$lt_lt_NL2SP
33214
33215 # How to create reloadable object files.
33216 reload_flag=$lt_reload_flag
33217 reload_cmds=$lt_reload_cmds
33218
33219 # Method to check whether dependent libraries are shared objects.
33220 deplibs_check_method=$lt_deplibs_check_method
33221
33222 # Command to use when deplibs_check_method == "file_magic".
33223 file_magic_cmd=$lt_file_magic_cmd
33224
33225 # The archiver.
33226 AR=$lt_AR
33227 AR_FLAGS=$lt_AR_FLAGS
33228
33229 # A symbol stripping program.
33230 STRIP=$lt_STRIP
33231
33232 # Commands used to install an old-style archive.
33233 RANLIB=$lt_RANLIB
33234 old_postinstall_cmds=$lt_old_postinstall_cmds
33235 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33236
33237 # A C compiler.
33238 LTCC=$lt_CC
33239
33240 # LTCC compiler flags.
33241 LTCFLAGS=$lt_CFLAGS
33242
33243 # Take the output of nm and produce a listing of raw symbols and C names.
33244 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33245
33246 # Transform the output of nm in a proper C declaration.
33247 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33248
33249 # Transform the output of nm in a C name address pair.
33250 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33251
33252 # Transform the output of nm in a C name address pair when lib prefix is needed.
33253 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33254
33255 # The name of the directory that contains temporary libtool files.
33256 objdir=$objdir
33257
33258 # Shell to use when invoking shell scripts.
33259 SHELL=$lt_SHELL
33260
33261 # An echo program that does not interpret backslashes.
33262 ECHO=$lt_ECHO
33263
33264 # Used to examine libraries when file_magic_cmd begins with "file".
33265 MAGIC_CMD=$MAGIC_CMD
33266
33267 # Must we lock files when doing compilation?
33268 need_locks=$lt_need_locks
33269
33270 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33271 DSYMUTIL=$lt_DSYMUTIL
33272
33273 # Tool to change global to local symbols on Mac OS X.
33274 NMEDIT=$lt_NMEDIT
33275
33276 # Tool to manipulate fat objects and archives on Mac OS X.
33277 LIPO=$lt_LIPO
33278
33279 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33280 OTOOL=$lt_OTOOL
33281
33282 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33283 OTOOL64=$lt_OTOOL64
33284
33285 # Old archive suffix (normally "a").
33286 libext=$libext
33287
33288 # Shared library suffix (normally ".so").
33289 shrext_cmds=$lt_shrext_cmds
33290
33291 # The commands to extract the exported symbol list from a shared archive.
33292 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33293
33294 # Variables whose values should be saved in libtool wrapper scripts and
33295 # restored at link time.
33296 variables_saved_for_relink=$lt_variables_saved_for_relink
33297
33298 # Do we need the "lib" prefix for modules?
33299 need_lib_prefix=$need_lib_prefix
33300
33301 # Do we need a version for libraries?
33302 need_version=$need_version
33303
33304 # Library versioning type.
33305 version_type=$version_type
33306
33307 # Shared library runtime path variable.
33308 runpath_var=$runpath_var
33309
33310 # Shared library path variable.
33311 shlibpath_var=$shlibpath_var
33312
33313 # Is shlibpath searched before the hard-coded library search path?
33314 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33315
33316 # Format of library name prefix.
33317 libname_spec=$lt_libname_spec
33318
33319 # List of archive names.  First name is the real one, the rest are links.
33320 # The last name is the one that the linker finds with -lNAME
33321 library_names_spec=$lt_library_names_spec
33322
33323 # The coded name of the library, if different from the real name.
33324 soname_spec=$lt_soname_spec
33325
33326 # Command to use after installation of a shared archive.
33327 postinstall_cmds=$lt_postinstall_cmds
33328
33329 # Command to use after uninstallation of a shared archive.
33330 postuninstall_cmds=$lt_postuninstall_cmds
33331
33332 # Commands used to finish a libtool library installation in a directory.
33333 finish_cmds=$lt_finish_cmds
33334
33335 # As "finish_cmds", except a single script fragment to be evaled but
33336 # not shown.
33337 finish_eval=$lt_finish_eval
33338
33339 # Whether we should hardcode library paths into libraries.
33340 hardcode_into_libs=$hardcode_into_libs
33341
33342 # Compile-time system search path for libraries.
33343 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33344
33345 # Run-time system search path for libraries.
33346 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33347
33348 # Whether dlopen is supported.
33349 dlopen_support=$enable_dlopen
33350
33351 # Whether dlopen of programs is supported.
33352 dlopen_self=$enable_dlopen_self
33353
33354 # Whether dlopen of statically linked programs is supported.
33355 dlopen_self_static=$enable_dlopen_self_static
33356
33357 # Commands to strip libraries.
33358 old_striplib=$lt_old_striplib
33359 striplib=$lt_striplib
33360
33361
33362 # The linker used to build libraries.
33363 LD=$lt_LD
33364
33365 # Commands used to build an old-style archive.
33366 old_archive_cmds=$lt_old_archive_cmds
33367
33368 # A language specific compiler.
33369 CC=$lt_compiler
33370
33371 # Is the compiler the GNU compiler?
33372 with_gcc=$GCC
33373
33374 # Compiler flag to turn off builtin functions.
33375 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33376
33377 # How to pass a linker flag through the compiler.
33378 wl=$lt_lt_prog_compiler_wl
33379
33380 # Additional compiler flags for building library objects.
33381 pic_flag=$lt_lt_prog_compiler_pic
33382
33383 # Compiler flag to prevent dynamic linking.
33384 link_static_flag=$lt_lt_prog_compiler_static
33385
33386 # Does compiler simultaneously support -c and -o options?
33387 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33388
33389 # Whether or not to add -lc for building shared libraries.
33390 build_libtool_need_lc=$archive_cmds_need_lc
33391
33392 # Whether or not to disallow shared libs when runtime libs are static.
33393 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33394
33395 # Compiler flag to allow reflexive dlopens.
33396 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33397
33398 # Compiler flag to generate shared objects directly from archives.
33399 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33400
33401 # Whether the compiler copes with passing no objects directly.
33402 compiler_needs_object=$lt_compiler_needs_object
33403
33404 # Create an old-style archive from a shared archive.
33405 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33406
33407 # Create a temporary old-style archive to link instead of a shared archive.
33408 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33409
33410 # Commands used to build a shared archive.
33411 archive_cmds=$lt_archive_cmds
33412 archive_expsym_cmds=$lt_archive_expsym_cmds
33413
33414 # Commands used to build a loadable module if different from building
33415 # a shared archive.
33416 module_cmds=$lt_module_cmds
33417 module_expsym_cmds=$lt_module_expsym_cmds
33418
33419 # Whether we are building with GNU ld or not.
33420 with_gnu_ld=$lt_with_gnu_ld
33421
33422 # Flag that allows shared libraries with undefined symbols to be built.
33423 allow_undefined_flag=$lt_allow_undefined_flag
33424
33425 # Flag that enforces no undefined symbols.
33426 no_undefined_flag=$lt_no_undefined_flag
33427
33428 # Flag to hardcode \$libdir into a binary during linking.
33429 # This must work even if \$libdir does not exist
33430 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33431
33432 # If ld is used when linking, flag to hardcode \$libdir into a binary
33433 # during linking.  This must work even if \$libdir does not exist.
33434 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33435
33436 # Whether we need a single "-rpath" flag with a separated argument.
33437 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33438
33439 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33440 # DIR into the resulting binary.
33441 hardcode_direct=$hardcode_direct
33442
33443 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33444 # DIR into the resulting binary and the resulting library dependency is
33445 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33446 # library is relocated.
33447 hardcode_direct_absolute=$hardcode_direct_absolute
33448
33449 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33450 # into the resulting binary.
33451 hardcode_minus_L=$hardcode_minus_L
33452
33453 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33454 # into the resulting binary.
33455 hardcode_shlibpath_var=$hardcode_shlibpath_var
33456
33457 # Set to "yes" if building a shared library automatically hardcodes DIR
33458 # into the library and all subsequent libraries and executables linked
33459 # against it.
33460 hardcode_automatic=$hardcode_automatic
33461
33462 # Set to yes if linker adds runtime paths of dependent libraries
33463 # to runtime path list.
33464 inherit_rpath=$inherit_rpath
33465
33466 # Whether libtool must link a program against all its dependency libraries.
33467 link_all_deplibs=$link_all_deplibs
33468
33469 # Fix the shell variable \$srcfile for the compiler.
33470 fix_srcfile_path=$lt_fix_srcfile_path
33471
33472 # Set to "yes" if exported symbols are required.
33473 always_export_symbols=$always_export_symbols
33474
33475 # The commands to list exported symbols.
33476 export_symbols_cmds=$lt_export_symbols_cmds
33477
33478 # Symbols that should not be listed in the preloaded symbols.
33479 exclude_expsyms=$lt_exclude_expsyms
33480
33481 # Symbols that must always be exported.
33482 include_expsyms=$lt_include_expsyms
33483
33484 # Commands necessary for linking programs (against libraries) with templates.
33485 prelink_cmds=$lt_prelink_cmds
33486
33487 # Specify filename containing input files.
33488 file_list_spec=$lt_file_list_spec
33489
33490 # How to hardcode a shared library path into an executable.
33491 hardcode_action=$hardcode_action
33492
33493 # The directories searched by this compiler when creating a shared library.
33494 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33495
33496 # Dependencies to place before and after the objects being linked to
33497 # create a shared library.
33498 predep_objects=$lt_predep_objects
33499 postdep_objects=$lt_postdep_objects
33500 predeps=$lt_predeps
33501 postdeps=$lt_postdeps
33502
33503 # The library search path used internally by the compiler when linking
33504 # a shared library.
33505 compiler_lib_search_path=$lt_compiler_lib_search_path
33506
33507 # ### END LIBTOOL CONFIG
33508
33509 _LT_EOF
33510
33511   case $host_os in
33512   aix3*)
33513     cat <<\_LT_EOF >> "$cfgfile"
33514 # AIX sometimes has problems with the GCC collect2 program.  For some
33515 # reason, if we set the COLLECT_NAMES environment variable, the problems
33516 # vanish in a puff of smoke.
33517 if test "X${COLLECT_NAMES+set}" != Xset; then
33518   COLLECT_NAMES=
33519   export COLLECT_NAMES
33520 fi
33521 _LT_EOF
33522     ;;
33523   esac
33524
33525
33526 ltmain="$ac_aux_dir/ltmain.sh"
33527
33528
33529   # We use sed instead of cat because bash on DJGPP gets confused if
33530   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33531   # text mode, it properly converts lines to CR/LF.  This bash problem
33532   # is reportedly fixed, but why not run on old versions too?
33533   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
33534     || (rm -f "$cfgfile"; exit 1)
33535
33536   case $xsi_shell in
33537   yes)
33538     cat << \_LT_EOF >> "$cfgfile"
33539
33540 # func_dirname file append nondir_replacement
33541 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
33542 # otherwise set result to NONDIR_REPLACEMENT.
33543 func_dirname ()
33544 {
33545   case ${1} in
33546     */*) func_dirname_result="${1%/*}${2}" ;;
33547     *  ) func_dirname_result="${3}" ;;
33548   esac
33549 }
33550
33551 # func_basename file
33552 func_basename ()
33553 {
33554   func_basename_result="${1##*/}"
33555 }
33556
33557 # func_dirname_and_basename file append nondir_replacement
33558 # perform func_basename and func_dirname in a single function
33559 # call:
33560 #   dirname:  Compute the dirname of FILE.  If nonempty,
33561 #             add APPEND to the result, otherwise set result
33562 #             to NONDIR_REPLACEMENT.
33563 #             value returned in "$func_dirname_result"
33564 #   basename: Compute filename of FILE.
33565 #             value retuned in "$func_basename_result"
33566 # Implementation must be kept synchronized with func_dirname
33567 # and func_basename. For efficiency, we do not delegate to
33568 # those functions but instead duplicate the functionality here.
33569 func_dirname_and_basename ()
33570 {
33571   case ${1} in
33572     */*) func_dirname_result="${1%/*}${2}" ;;
33573     *  ) func_dirname_result="${3}" ;;
33574   esac
33575   func_basename_result="${1##*/}"
33576 }
33577
33578 # func_stripname prefix suffix name
33579 # strip PREFIX and SUFFIX off of NAME.
33580 # PREFIX and SUFFIX must not contain globbing or regex special
33581 # characters, hashes, percent signs, but SUFFIX may contain a leading
33582 # dot (in which case that matches only a dot).
33583 func_stripname ()
33584 {
33585   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
33586   # positional parameters, so assign one to ordinary parameter first.
33587   func_stripname_result=${3}
33588   func_stripname_result=${func_stripname_result#"${1}"}
33589   func_stripname_result=${func_stripname_result%"${2}"}
33590 }
33591
33592 # func_opt_split
33593 func_opt_split ()
33594 {
33595   func_opt_split_opt=${1%%=*}
33596   func_opt_split_arg=${1#*=}
33597 }
33598
33599 # func_lo2o object
33600 func_lo2o ()
33601 {
33602   case ${1} in
33603     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
33604     *)    func_lo2o_result=${1} ;;
33605   esac
33606 }
33607
33608 # func_xform libobj-or-source
33609 func_xform ()
33610 {
33611   func_xform_result=${1%.*}.lo
33612 }
33613
33614 # func_arith arithmetic-term...
33615 func_arith ()
33616 {
33617   func_arith_result=$(( $* ))
33618 }
33619
33620 # func_len string
33621 # STRING may not start with a hyphen.
33622 func_len ()
33623 {
33624   func_len_result=${#1}
33625 }
33626
33627 _LT_EOF
33628     ;;
33629   *) # Bourne compatible functions.
33630     cat << \_LT_EOF >> "$cfgfile"
33631
33632 # func_dirname file append nondir_replacement
33633 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
33634 # otherwise set result to NONDIR_REPLACEMENT.
33635 func_dirname ()
33636 {
33637   # Extract subdirectory from the argument.
33638   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
33639   if test "X$func_dirname_result" = "X${1}"; then
33640     func_dirname_result="${3}"
33641   else
33642     func_dirname_result="$func_dirname_result${2}"
33643   fi
33644 }
33645
33646 # func_basename file
33647 func_basename ()
33648 {
33649   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
33650 }
33651
33652
33653 # func_stripname prefix suffix name
33654 # strip PREFIX and SUFFIX off of NAME.
33655 # PREFIX and SUFFIX must not contain globbing or regex special
33656 # characters, hashes, percent signs, but SUFFIX may contain a leading
33657 # dot (in which case that matches only a dot).
33658 # func_strip_suffix prefix name
33659 func_stripname ()
33660 {
33661   case ${2} in
33662     .*) func_stripname_result=`$ECHO "X${3}" \
33663            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
33664     *)  func_stripname_result=`$ECHO "X${3}" \
33665            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
33666   esac
33667 }
33668
33669 # sed scripts:
33670 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
33671 my_sed_long_arg='1s/^-[^=]*=//'
33672
33673 # func_opt_split
33674 func_opt_split ()
33675 {
33676   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
33677   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
33678 }
33679
33680 # func_lo2o object
33681 func_lo2o ()
33682 {
33683   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
33684 }
33685
33686 # func_xform libobj-or-source
33687 func_xform ()
33688 {
33689   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
33690 }
33691
33692 # func_arith arithmetic-term...
33693 func_arith ()
33694 {
33695   func_arith_result=`expr "$@"`
33696 }
33697
33698 # func_len string
33699 # STRING may not start with a hyphen.
33700 func_len ()
33701 {
33702   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
33703 }
33704
33705 _LT_EOF
33706 esac
33707
33708 case $lt_shell_append in
33709   yes)
33710     cat << \_LT_EOF >> "$cfgfile"
33711
33712 # func_append var value
33713 # Append VALUE to the end of shell variable VAR.
33714 func_append ()
33715 {
33716   eval "$1+=\$2"
33717 }
33718 _LT_EOF
33719     ;;
33720   *)
33721     cat << \_LT_EOF >> "$cfgfile"
33722
33723 # func_append var value
33724 # Append VALUE to the end of shell variable VAR.
33725 func_append ()
33726 {
33727   eval "$1=\$$1\$2"
33728 }
33729
33730 _LT_EOF
33731     ;;
33732   esac
33733
33734
33735   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
33736     || (rm -f "$cfgfile"; exit 1)
33737
33738   mv -f "$cfgfile" "$ofile" ||
33739     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33740   chmod +x "$ofile"
33741
33742
33743     cat <<_LT_EOF >> "$ofile"
33744
33745 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33746
33747 # The linker used to build libraries.
33748 LD=$lt_LD_CXX
33749
33750 # Commands used to build an old-style archive.
33751 old_archive_cmds=$lt_old_archive_cmds_CXX
33752
33753 # A language specific compiler.
33754 CC=$lt_compiler_CXX
33755
33756 # Is the compiler the GNU compiler?
33757 with_gcc=$GCC_CXX
33758
33759 # Compiler flag to turn off builtin functions.
33760 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33761
33762 # How to pass a linker flag through the compiler.
33763 wl=$lt_lt_prog_compiler_wl_CXX
33764
33765 # Additional compiler flags for building library objects.
33766 pic_flag=$lt_lt_prog_compiler_pic_CXX
33767
33768 # Compiler flag to prevent dynamic linking.
33769 link_static_flag=$lt_lt_prog_compiler_static_CXX
33770
33771 # Does compiler simultaneously support -c and -o options?
33772 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33773
33774 # Whether or not to add -lc for building shared libraries.
33775 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33776
33777 # Whether or not to disallow shared libs when runtime libs are static.
33778 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33779
33780 # Compiler flag to allow reflexive dlopens.
33781 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33782
33783 # Compiler flag to generate shared objects directly from archives.
33784 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33785
33786 # Whether the compiler copes with passing no objects directly.
33787 compiler_needs_object=$lt_compiler_needs_object_CXX
33788
33789 # Create an old-style archive from a shared archive.
33790 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33791
33792 # Create a temporary old-style archive to link instead of a shared archive.
33793 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33794
33795 # Commands used to build a shared archive.
33796 archive_cmds=$lt_archive_cmds_CXX
33797 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33798
33799 # Commands used to build a loadable module if different from building
33800 # a shared archive.
33801 module_cmds=$lt_module_cmds_CXX
33802 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33803
33804 # Whether we are building with GNU ld or not.
33805 with_gnu_ld=$lt_with_gnu_ld_CXX
33806
33807 # Flag that allows shared libraries with undefined symbols to be built.
33808 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33809
33810 # Flag that enforces no undefined symbols.
33811 no_undefined_flag=$lt_no_undefined_flag_CXX
33812
33813 # Flag to hardcode \$libdir into a binary during linking.
33814 # This must work even if \$libdir does not exist
33815 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33816
33817 # If ld is used when linking, flag to hardcode \$libdir into a binary
33818 # during linking.  This must work even if \$libdir does not exist.
33819 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33820
33821 # Whether we need a single "-rpath" flag with a separated argument.
33822 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33823
33824 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33825 # DIR into the resulting binary.
33826 hardcode_direct=$hardcode_direct_CXX
33827
33828 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33829 # DIR into the resulting binary and the resulting library dependency is
33830 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33831 # library is relocated.
33832 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33833
33834 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33835 # into the resulting binary.
33836 hardcode_minus_L=$hardcode_minus_L_CXX
33837
33838 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33839 # into the resulting binary.
33840 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33841
33842 # Set to "yes" if building a shared library automatically hardcodes DIR
33843 # into the library and all subsequent libraries and executables linked
33844 # against it.
33845 hardcode_automatic=$hardcode_automatic_CXX
33846
33847 # Set to yes if linker adds runtime paths of dependent libraries
33848 # to runtime path list.
33849 inherit_rpath=$inherit_rpath_CXX
33850
33851 # Whether libtool must link a program against all its dependency libraries.
33852 link_all_deplibs=$link_all_deplibs_CXX
33853
33854 # Fix the shell variable \$srcfile for the compiler.
33855 fix_srcfile_path=$lt_fix_srcfile_path_CXX
33856
33857 # Set to "yes" if exported symbols are required.
33858 always_export_symbols=$always_export_symbols_CXX
33859
33860 # The commands to list exported symbols.
33861 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33862
33863 # Symbols that should not be listed in the preloaded symbols.
33864 exclude_expsyms=$lt_exclude_expsyms_CXX
33865
33866 # Symbols that must always be exported.
33867 include_expsyms=$lt_include_expsyms_CXX
33868
33869 # Commands necessary for linking programs (against libraries) with templates.
33870 prelink_cmds=$lt_prelink_cmds_CXX
33871
33872 # Specify filename containing input files.
33873 file_list_spec=$lt_file_list_spec_CXX
33874
33875 # How to hardcode a shared library path into an executable.
33876 hardcode_action=$hardcode_action_CXX
33877
33878 # The directories searched by this compiler when creating a shared library.
33879 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33880
33881 # Dependencies to place before and after the objects being linked to
33882 # create a shared library.
33883 predep_objects=$lt_predep_objects_CXX
33884 postdep_objects=$lt_postdep_objects_CXX
33885 predeps=$lt_predeps_CXX
33886 postdeps=$lt_postdeps_CXX
33887
33888 # The library search path used internally by the compiler when linking
33889 # a shared library.
33890 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33891
33892 # ### END LIBTOOL TAG CONFIG: CXX
33893 _LT_EOF
33894
33895  ;;
33896     "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
33897     "Magick-config.in":C) chmod +x magick/Magick-config ;;
33898     "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
33899     "Wand-config.in":C) chmod +x wand/Wand-config ;;
33900     "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
33901     "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
33902
33903   esac
33904 done # for ac_tag
33905
33906
33907 as_fn_exit 0
33908 _ACEOF
33909 ac_clean_files=$ac_clean_files_save
33910
33911 test $ac_write_fail = 0 ||
33912   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
33913
33914
33915 # configure is writing to config.log, and then calls config.status.
33916 # config.status does its own redirection, appending to config.log.
33917 # Unfortunately, on DOS this fails, as config.log is still kept open
33918 # by configure, so config.status won't be able to write to it; its
33919 # output is simply discarded.  So we exec the FD to /dev/null,
33920 # effectively closing config.log, so it can be properly (re)opened and
33921 # appended to by config.status.  When coming back to configure, we
33922 # need to make the FD available again.
33923 if test "$no_create" != yes; then
33924   ac_cs_success=:
33925   ac_config_status_args=
33926   test "$silent" = yes &&
33927     ac_config_status_args="$ac_config_status_args --quiet"
33928   exec 5>/dev/null
33929   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33930   exec 5>>config.log
33931   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33932   # would make configure fail if this is the last instruction.
33933   $ac_cs_success || as_fn_exit $?
33934 fi
33935 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33936   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33937 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33938 fi
33939
33940
33941 rm -f magick-version
33942
33943 result_ghostscript_font_dir='none'
33944 if test "${ghostscript_font_dir}x" != 'x'; then
33945     result_ghostscript_font_dir=$ghostscript_font_dir
33946 fi
33947
33948 result_windows_font_dir='none'
33949 if test "${windows_font_dir}x" != 'x'; then
33950     result_windows_font_dir=${windows_font_dir}
33951 fi
33952
33953 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
33954 ImageMagick is configured as follows. Please verify that this configuration
33955 matches your expectations.
33956
33957 Host system type: $host
33958 Build system type: $build
33959
33960                   Option                        Value
33961 -------------------------------------------------------------------------------
33962 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
33963 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
33964 Module support    --with-modules=$with_modules          $with_modules
33965 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
33966 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
33967 High Dynamic Range Imagery
33968                   --enable-hdri=$enable_hdri            $enable_hdri
33969
33970 Delegate Configuration:
33971 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
33972 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
33973 DJVU              --with-djvu=$with_djvu                $have_djvu
33974 DPS               --with-dps=$with_dps          $have_dps
33975 FFTW              --with-fftw=$with_fftw                $have_fftw
33976 FlashPIX          --with-fpx=$with_fpx          $have_fpx
33977 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
33978 FreeType          --with-freetype=$with_freetype                $have_freetype
33979 GhostPCL          None                          $PCLDelegate ($PCLVersion)
33980 GhostXPS          None                          $XPSDelegate ($XPSVersion)
33981 Ghostscript       None                          $PSDelegate ($GSVersion)
33982 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
33983 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
33984 Graphviz          --with-gvc=$with_gvc          $have_gvc
33985 JBIG              --with-jbig=$with_jbig                $have_jbig
33986 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
33987 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
33988 LCMS              --with-lcms=$with_lcms                $have_lcms
33989 LQR               --with-lqr=$with_lqr          $have_lqr
33990 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
33991 OpenEXR           --with-openexr=$with_openexr          $have_openexr
33992 PERL              --with-perl=$with_perl                $have_perl
33993 PNG               --with-png=$with_png          $have_png
33994 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
33995 TIFF              --with-tiff=$with_tiff                $have_tiff
33996 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
33997 WMF               --with-wmf=$with_wmf          $have_wmf
33998 X11               --with-x=$with_x                      $have_x
33999 XML               --with-xml=$with_xml          $have_xml
34000 ZLIB              --with-zlib=$with_zlib                $have_zlib
34001
34002 X11 Configuration:
34003       X_CFLAGS        = $X_CFLAGS
34004       X_PRE_LIBS      = $X_PRE_LIBS
34005       X_LIBS          = $X_LIBS
34006       X_EXTRA_LIBS    = $X_EXTRA_LIBS
34007
34008 Options used to compile and link:
34009   PREFIX          = $PREFIX_DIR
34010   EXEC-PREFIX     = $EXEC_PREFIX_DIR
34011   VERSION         = $PACKAGE_VERSION
34012   CC              = $CC
34013   CFLAGS          = $CFLAGS
34014   CPPFLAGS        = $MAGICK_CPPFLAGS
34015   PCFLAGS         = $MAGICK_PCFLAGS
34016   DEFS            = $DEFS
34017   LDFLAGS         = $LDFLAGS
34018   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
34019   LIBS            = $MAGICK_LIBS
34020   CXX             = $CXX
34021   CXXFLAGS        = $CXXFLAGS
34022 " >&5
34023 $as_echo "
34024 ImageMagick is configured as follows. Please verify that this configuration
34025 matches your expectations.
34026
34027 Host system type: $host
34028 Build system type: $build
34029
34030                   Option                        Value
34031 -------------------------------------------------------------------------------
34032 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
34033 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
34034 Module support    --with-modules=$with_modules          $with_modules
34035 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
34036 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
34037 High Dynamic Range Imagery
34038                   --enable-hdri=$enable_hdri            $enable_hdri
34039
34040 Delegate Configuration:
34041 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
34042 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
34043 DJVU              --with-djvu=$with_djvu                $have_djvu
34044 DPS               --with-dps=$with_dps          $have_dps
34045 FFTW              --with-fftw=$with_fftw                $have_fftw
34046 FlashPIX          --with-fpx=$with_fpx          $have_fpx
34047 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
34048 FreeType          --with-freetype=$with_freetype                $have_freetype
34049 GhostPCL          None                          $PCLDelegate ($PCLVersion)
34050 GhostXPS          None                          $XPSDelegate ($XPSVersion)
34051 Ghostscript       None                          $PSDelegate ($GSVersion)
34052 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
34053 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
34054 Graphviz          --with-gvc=$with_gvc          $have_gvc
34055 JBIG              --with-jbig=$with_jbig                $have_jbig
34056 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
34057 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
34058 LCMS              --with-lcms=$with_lcms                $have_lcms
34059 LQR               --with-lqr=$with_lqr          $have_lqr
34060 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
34061 OpenEXR           --with-openexr=$with_openexr          $have_openexr
34062 PERL              --with-perl=$with_perl                $have_perl
34063 PNG               --with-png=$with_png          $have_png
34064 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
34065 TIFF              --with-tiff=$with_tiff                $have_tiff
34066 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
34067 WMF               --with-wmf=$with_wmf          $have_wmf
34068 X11               --with-x=$with_x                      $have_x
34069 XML               --with-xml=$with_xml          $have_xml
34070 ZLIB              --with-zlib=$with_zlib                $have_zlib
34071
34072 X11 Configuration:
34073       X_CFLAGS        = $X_CFLAGS
34074       X_PRE_LIBS      = $X_PRE_LIBS
34075       X_LIBS          = $X_LIBS
34076       X_EXTRA_LIBS    = $X_EXTRA_LIBS
34077
34078 Options used to compile and link:
34079   PREFIX          = $PREFIX_DIR
34080   EXEC-PREFIX     = $EXEC_PREFIX_DIR
34081   VERSION         = $PACKAGE_VERSION
34082   CC              = $CC
34083   CFLAGS          = $CFLAGS
34084   CPPFLAGS        = $MAGICK_CPPFLAGS
34085   PCFLAGS         = $MAGICK_PCFLAGS
34086   DEFS            = $DEFS
34087   LDFLAGS         = $LDFLAGS
34088   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
34089   LIBS            = $MAGICK_LIBS
34090   CXX             = $CXX
34091   CXXFLAGS        = $CXXFLAGS
34092 " >&6; }