Imported Upstream version 2.4
[platform/upstream/lcms2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for lcms2 2.4.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     PATH=/empty FPATH=/empty; export PATH FPATH
181     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184   if (eval "$as_required") 2>/dev/null; then :
185   as_have_required=yes
186 else
187   as_have_required=no
188 fi
189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   as_found=:
199   case $as_dir in #(
200          /*)
201            for as_base in sh bash ksh sh5; do
202              # Try only shells that exist, to save several forks.
203              as_shell=$as_dir/$as_base
204              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206   CONFIG_SHELL=$as_shell as_have_required=yes
207                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   break 2
209 fi
210 fi
211            done;;
212        esac
213   as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222       if test "x$CONFIG_SHELL" != x; then :
223   # We cannot yet assume a decent shell, so we have to provide a
224         # neutralization value for shells without unset; and this also
225         # works around shells that cannot unset nonexistent variables.
226         # Preserve -v and -x to the replacement shell.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         case $- in # ((((
232           *v*x* | *x*v* ) as_opts=-vx ;;
233           *v* ) as_opts=-v ;;
234           *x* ) as_opts=-x ;;
235           * ) as_opts= ;;
236         esac
237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240     if test x$as_have_required = xno; then :
241   $as_echo "$0: This script requires a shell more modern than all"
242   $as_echo "$0: the shells that I found on your system."
243   if test x${ZSH_VERSION+set} = xset ; then
244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246   else
247     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251   fi
252   exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270   { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279   return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298   case $as_dir in #(
299   -*) as_dir=./$as_dir;;
300   esac
301   test -d "$as_dir" || eval $as_mkdir_p || {
302     as_dirs=
303     while :; do
304       case $as_dir in #(
305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306       *) as_qdir=$as_dir;;
307       esac
308       as_dirs="'$as_qdir' $as_dirs"
309       as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311          X"$as_dir" : 'X\(//\)[^/]' \| \
312          X"$as_dir" : 'X\(//\)$' \| \
313          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)[^/].*/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)$/{
324             s//\1/
325             q
326           }
327           /^X\(\/\).*/{
328             s//\1/
329             q
330           }
331           s/.*/./; q'`
332       test -d "$as_dir" && break
333     done
334     test -z "$as_dirs" || eval "mkdir $as_dirs"
335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405   as_dirname=dirname
406 else
407   as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412          X"$0" : 'X\(//\)$' \| \
413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415     sed '/^.*\/\([^/][^/]*\)\/*$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\/\)$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\).*/{
424             s//\1/
425             q
426           }
427           s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471   case `echo 'xy\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   xy)  ECHO_C='\c';;
474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475        ECHO_T=' ';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483   rm -f conf$$.dir/conf$$.file
484 else
485   rm -f conf$$.dir
486   mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489   if ln -s conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s='ln -s'
491     # ... but there are two gotchas:
492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494     # In both cases, we have to default to `cp -p'.
495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496       as_ln_s='cp -p'
497   elif ln conf$$.file conf$$ 2>/dev/null; then
498     as_ln_s=ln
499   else
500     as_ln_s='cp -p'
501   fi
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p='mkdir -p "$as_dir"'
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516   as_test_x='test -x'
517 else
518   if ls -dL / >/dev/null 2>&1; then
519     as_ls_L_option=L
520   else
521     as_ls_L_option=
522   fi
523   as_test_x='
524     eval sh -c '\''
525       if test -d "$1"; then
526         test -d "$1/.";
527       else
528         case $1 in #(
529         -*)set "./$1";;
530         esac;
531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532         ???[sx]*):;;*)false;;esac;fi
533     '\'' sh
534   '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME='lcms2'
569 PACKAGE_TARNAME='lcms2'
570 PACKAGE_VERSION='2.4'
571 PACKAGE_STRING='lcms2 2.4'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL=''
574
575 # Factoring default headers for most tests.
576 ac_includes_default="\
577 #include <stdio.h>
578 #ifdef HAVE_SYS_TYPES_H
579 # include <sys/types.h>
580 #endif
581 #ifdef HAVE_SYS_STAT_H
582 # include <sys/stat.h>
583 #endif
584 #ifdef STDC_HEADERS
585 # include <stdlib.h>
586 # include <stddef.h>
587 #else
588 # ifdef HAVE_STDLIB_H
589 #  include <stdlib.h>
590 # endif
591 #endif
592 #ifdef HAVE_STRING_H
593 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594 #  include <memory.h>
595 # endif
596 # include <string.h>
597 #endif
598 #ifdef HAVE_STRINGS_H
599 # include <strings.h>
600 #endif
601 #ifdef HAVE_INTTYPES_H
602 # include <inttypes.h>
603 #endif
604 #ifdef HAVE_STDINT_H
605 # include <stdint.h>
606 #endif
607 #ifdef HAVE_UNISTD_H
608 # include <unistd.h>
609 #endif"
610
611 ac_subst_vars='am__EXEEXT_FALSE
612 am__EXEEXT_TRUE
613 LTLIBOBJS
614 LIBOBJS
615 TIFFICC_DEPLIBS
616 JPEGICC_DEPLIBS
617 LCMS_LIB_DEPLIBS
618 LIB_TIFF
619 HasTIFF_FALSE
620 HasTIFF_TRUE
621 LIB_ZLIB
622 HasZLIB_FALSE
623 HasZLIB_TRUE
624 LIB_JPEG
625 HasJPEG_FALSE
626 HasJPEG_TRUE
627 LIB_MATH
628 inline
629 MAINT
630 MAINTAINER_MODE_FALSE
631 MAINTAINER_MODE_TRUE
632 LIBTOOL_DEPS
633 CXXCPP
634 OTOOL64
635 OTOOL
636 LIPO
637 NMEDIT
638 DSYMUTIL
639 MANIFEST_TOOL
640 RANLIB
641 ac_ct_AR
642 AR
643 LN_S
644 NM
645 ac_ct_DUMPBIN
646 DUMPBIN
647 LD
648 FGREP
649 EGREP
650 GREP
651 SED
652 LIBTOOL
653 OBJDUMP
654 DLLTOOL
655 AS
656 am__fastdepCXX_FALSE
657 am__fastdepCXX_TRUE
658 CXXDEPMODE
659 ac_ct_CXX
660 CXXFLAGS
661 CXX
662 CPP
663 am__fastdepCC_FALSE
664 am__fastdepCC_TRUE
665 CCDEPMODE
666 am__nodep
667 AMDEPBACKSLASH
668 AMDEP_FALSE
669 AMDEP_TRUE
670 am__quote
671 am__include
672 DEPDIR
673 OBJEXT
674 EXEEXT
675 ac_ct_CC
676 CPPFLAGS
677 LDFLAGS
678 CFLAGS
679 CC
680 am__untar
681 am__tar
682 AMTAR
683 am__leading_dot
684 SET_MAKE
685 AWK
686 mkdir_p
687 MKDIR_P
688 INSTALL_STRIP_PROGRAM
689 STRIP
690 install_sh
691 MAKEINFO
692 AUTOHEADER
693 AUTOMAKE
694 AUTOCONF
695 ACLOCAL
696 VERSION
697 PACKAGE
698 CYGPATH_W
699 am__isrc
700 INSTALL_DATA
701 INSTALL_SCRIPT
702 INSTALL_PROGRAM
703 host_os
704 host_vendor
705 host_cpu
706 host
707 build_os
708 build_vendor
709 build_cpu
710 build
711 LIBRARY_AGE
712 LIBRARY_REVISION
713 LIBRARY_CURRENT
714 target_alias
715 host_alias
716 build_alias
717 LIBS
718 ECHO_T
719 ECHO_N
720 ECHO_C
721 DEFS
722 mandir
723 localedir
724 libdir
725 psdir
726 pdfdir
727 dvidir
728 htmldir
729 infodir
730 docdir
731 oldincludedir
732 includedir
733 localstatedir
734 sharedstatedir
735 sysconfdir
736 datadir
737 datarootdir
738 libexecdir
739 sbindir
740 bindir
741 program_transform_name
742 prefix
743 exec_prefix
744 PACKAGE_URL
745 PACKAGE_BUGREPORT
746 PACKAGE_STRING
747 PACKAGE_VERSION
748 PACKAGE_TARNAME
749 PACKAGE_NAME
750 PATH_SEPARATOR
751 SHELL'
752 ac_subst_files=''
753 ac_user_opts='
754 enable_option_checking
755 with_jpeg
756 with_tiff
757 with_zlib
758 enable_dependency_tracking
759 enable_shared
760 enable_static
761 with_pic
762 enable_fast_install
763 with_gnu_ld
764 with_sysroot
765 enable_libtool_lock
766 enable_maintainer_mode
767 '
768       ac_precious_vars='build_alias
769 host_alias
770 target_alias
771 CC
772 CFLAGS
773 LDFLAGS
774 LIBS
775 CPPFLAGS
776 CPP
777 CXX
778 CXXFLAGS
779 CCC
780 CXXCPP'
781
782
783 # Initialize some variables set by options.
784 ac_init_help=
785 ac_init_version=false
786 ac_unrecognized_opts=
787 ac_unrecognized_sep=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
804
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
830
831 ac_prev=
832 ac_dashdash=
833 for ac_option
834 do
835   # If the previous option needs an argument, assign it.
836   if test -n "$ac_prev"; then
837     eval $ac_prev=\$ac_option
838     ac_prev=
839     continue
840   fi
841
842   case $ac_option in
843   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844   *=)   ac_optarg= ;;
845   *)    ac_optarg=yes ;;
846   esac
847
848   # Accept the important Cygnus configure options, so we can diagnose typos.
849
850   case $ac_dashdash$ac_option in
851   --)
852     ac_dashdash=yes ;;
853
854   -bindir | --bindir | --bindi | --bind | --bin | --bi)
855     ac_prev=bindir ;;
856   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857     bindir=$ac_optarg ;;
858
859   -build | --build | --buil | --bui | --bu)
860     ac_prev=build_alias ;;
861   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862     build_alias=$ac_optarg ;;
863
864   -cache-file | --cache-file | --cache-fil | --cache-fi \
865   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866     ac_prev=cache_file ;;
867   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869     cache_file=$ac_optarg ;;
870
871   --config-cache | -C)
872     cache_file=config.cache ;;
873
874   -datadir | --datadir | --datadi | --datad)
875     ac_prev=datadir ;;
876   -datadir=* | --datadir=* | --datadi=* | --datad=*)
877     datadir=$ac_optarg ;;
878
879   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880   | --dataroo | --dataro | --datar)
881     ac_prev=datarootdir ;;
882   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884     datarootdir=$ac_optarg ;;
885
886   -disable-* | --disable-*)
887     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888     # Reject names that are not valid shell variable names.
889     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890       as_fn_error $? "invalid feature name: $ac_useropt"
891     ac_useropt_orig=$ac_useropt
892     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893     case $ac_user_opts in
894       *"
895 "enable_$ac_useropt"
896 "*) ;;
897       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898          ac_unrecognized_sep=', ';;
899     esac
900     eval enable_$ac_useropt=no ;;
901
902   -docdir | --docdir | --docdi | --doc | --do)
903     ac_prev=docdir ;;
904   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905     docdir=$ac_optarg ;;
906
907   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908     ac_prev=dvidir ;;
909   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910     dvidir=$ac_optarg ;;
911
912   -enable-* | --enable-*)
913     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914     # Reject names that are not valid shell variable names.
915     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916       as_fn_error $? "invalid feature name: $ac_useropt"
917     ac_useropt_orig=$ac_useropt
918     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919     case $ac_user_opts in
920       *"
921 "enable_$ac_useropt"
922 "*) ;;
923       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924          ac_unrecognized_sep=', ';;
925     esac
926     eval enable_$ac_useropt=\$ac_optarg ;;
927
928   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930   | --exec | --exe | --ex)
931     ac_prev=exec_prefix ;;
932   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934   | --exec=* | --exe=* | --ex=*)
935     exec_prefix=$ac_optarg ;;
936
937   -gas | --gas | --ga | --g)
938     # Obsolete; use --with-gas.
939     with_gas=yes ;;
940
941   -help | --help | --hel | --he | -h)
942     ac_init_help=long ;;
943   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944     ac_init_help=recursive ;;
945   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946     ac_init_help=short ;;
947
948   -host | --host | --hos | --ho)
949     ac_prev=host_alias ;;
950   -host=* | --host=* | --hos=* | --ho=*)
951     host_alias=$ac_optarg ;;
952
953   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954     ac_prev=htmldir ;;
955   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956   | --ht=*)
957     htmldir=$ac_optarg ;;
958
959   -includedir | --includedir | --includedi | --included | --include \
960   | --includ | --inclu | --incl | --inc)
961     ac_prev=includedir ;;
962   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963   | --includ=* | --inclu=* | --incl=* | --inc=*)
964     includedir=$ac_optarg ;;
965
966   -infodir | --infodir | --infodi | --infod | --info | --inf)
967     ac_prev=infodir ;;
968   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969     infodir=$ac_optarg ;;
970
971   -libdir | --libdir | --libdi | --libd)
972     ac_prev=libdir ;;
973   -libdir=* | --libdir=* | --libdi=* | --libd=*)
974     libdir=$ac_optarg ;;
975
976   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977   | --libexe | --libex | --libe)
978     ac_prev=libexecdir ;;
979   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980   | --libexe=* | --libex=* | --libe=*)
981     libexecdir=$ac_optarg ;;
982
983   -localedir | --localedir | --localedi | --localed | --locale)
984     ac_prev=localedir ;;
985   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986     localedir=$ac_optarg ;;
987
988   -localstatedir | --localstatedir | --localstatedi | --localstated \
989   | --localstate | --localstat | --localsta | --localst | --locals)
990     ac_prev=localstatedir ;;
991   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993     localstatedir=$ac_optarg ;;
994
995   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996     ac_prev=mandir ;;
997   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998     mandir=$ac_optarg ;;
999
1000   -nfp | --nfp | --nf)
1001     # Obsolete; use --without-fp.
1002     with_fp=no ;;
1003
1004   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005   | --no-cr | --no-c | -n)
1006     no_create=yes ;;
1007
1008   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010     no_recursion=yes ;;
1011
1012   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014   | --oldin | --oldi | --old | --ol | --o)
1015     ac_prev=oldincludedir ;;
1016   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019     oldincludedir=$ac_optarg ;;
1020
1021   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022     ac_prev=prefix ;;
1023   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024     prefix=$ac_optarg ;;
1025
1026   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027   | --program-pre | --program-pr | --program-p)
1028     ac_prev=program_prefix ;;
1029   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031     program_prefix=$ac_optarg ;;
1032
1033   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034   | --program-suf | --program-su | --program-s)
1035     ac_prev=program_suffix ;;
1036   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038     program_suffix=$ac_optarg ;;
1039
1040   -program-transform-name | --program-transform-name \
1041   | --program-transform-nam | --program-transform-na \
1042   | --program-transform-n | --program-transform- \
1043   | --program-transform | --program-transfor \
1044   | --program-transfo | --program-transf \
1045   | --program-trans | --program-tran \
1046   | --progr-tra | --program-tr | --program-t)
1047     ac_prev=program_transform_name ;;
1048   -program-transform-name=* | --program-transform-name=* \
1049   | --program-transform-nam=* | --program-transform-na=* \
1050   | --program-transform-n=* | --program-transform-=* \
1051   | --program-transform=* | --program-transfor=* \
1052   | --program-transfo=* | --program-transf=* \
1053   | --program-trans=* | --program-tran=* \
1054   | --progr-tra=* | --program-tr=* | --program-t=*)
1055     program_transform_name=$ac_optarg ;;
1056
1057   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058     ac_prev=pdfdir ;;
1059   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060     pdfdir=$ac_optarg ;;
1061
1062   -psdir | --psdir | --psdi | --psd | --ps)
1063     ac_prev=psdir ;;
1064   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065     psdir=$ac_optarg ;;
1066
1067   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068   | -silent | --silent | --silen | --sile | --sil)
1069     silent=yes ;;
1070
1071   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072     ac_prev=sbindir ;;
1073   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074   | --sbi=* | --sb=*)
1075     sbindir=$ac_optarg ;;
1076
1077   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079   | --sharedst | --shareds | --shared | --share | --shar \
1080   | --sha | --sh)
1081     ac_prev=sharedstatedir ;;
1082   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085   | --sha=* | --sh=*)
1086     sharedstatedir=$ac_optarg ;;
1087
1088   -site | --site | --sit)
1089     ac_prev=site ;;
1090   -site=* | --site=* | --sit=*)
1091     site=$ac_optarg ;;
1092
1093   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094     ac_prev=srcdir ;;
1095   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096     srcdir=$ac_optarg ;;
1097
1098   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099   | --syscon | --sysco | --sysc | --sys | --sy)
1100     ac_prev=sysconfdir ;;
1101   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103     sysconfdir=$ac_optarg ;;
1104
1105   -target | --target | --targe | --targ | --tar | --ta | --t)
1106     ac_prev=target_alias ;;
1107   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108     target_alias=$ac_optarg ;;
1109
1110   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111     verbose=yes ;;
1112
1113   -version | --version | --versio | --versi | --vers | -V)
1114     ac_init_version=: ;;
1115
1116   -with-* | --with-*)
1117     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118     # Reject names that are not valid shell variable names.
1119     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120       as_fn_error $? "invalid package name: $ac_useropt"
1121     ac_useropt_orig=$ac_useropt
1122     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123     case $ac_user_opts in
1124       *"
1125 "with_$ac_useropt"
1126 "*) ;;
1127       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128          ac_unrecognized_sep=', ';;
1129     esac
1130     eval with_$ac_useropt=\$ac_optarg ;;
1131
1132   -without-* | --without-*)
1133     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134     # Reject names that are not valid shell variable names.
1135     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136       as_fn_error $? "invalid package name: $ac_useropt"
1137     ac_useropt_orig=$ac_useropt
1138     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139     case $ac_user_opts in
1140       *"
1141 "with_$ac_useropt"
1142 "*) ;;
1143       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144          ac_unrecognized_sep=', ';;
1145     esac
1146     eval with_$ac_useropt=no ;;
1147
1148   --x)
1149     # Obsolete; use --with-x.
1150     with_x=yes ;;
1151
1152   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153   | --x-incl | --x-inc | --x-in | --x-i)
1154     ac_prev=x_includes ;;
1155   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157     x_includes=$ac_optarg ;;
1158
1159   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161     ac_prev=x_libraries ;;
1162   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164     x_libraries=$ac_optarg ;;
1165
1166   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167 Try \`$0 --help' for more information"
1168     ;;
1169
1170   *=*)
1171     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172     # Reject names that are not valid shell variable names.
1173     case $ac_envvar in #(
1174       '' | [0-9]* | *[!_$as_cr_alnum]* )
1175       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176     esac
1177     eval $ac_envvar=\$ac_optarg
1178     export $ac_envvar ;;
1179
1180   *)
1181     # FIXME: should be removed in autoconf 3.0.
1182     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186     ;;
1187
1188   esac
1189 done
1190
1191 if test -n "$ac_prev"; then
1192   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193   as_fn_error $? "missing argument to $ac_option"
1194 fi
1195
1196 if test -n "$ac_unrecognized_opts"; then
1197   case $enable_option_checking in
1198     no) ;;
1199     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201   esac
1202 fi
1203
1204 # Check all directory arguments for consistency.
1205 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206                 datadir sysconfdir sharedstatedir localstatedir includedir \
1207                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208                 libdir localedir mandir
1209 do
1210   eval ac_val=\$$ac_var
1211   # Remove trailing slashes.
1212   case $ac_val in
1213     */ )
1214       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215       eval $ac_var=\$ac_val;;
1216   esac
1217   # Be sure to have absolute directory names.
1218   case $ac_val in
1219     [\\/$]* | ?:[\\/]* )  continue;;
1220     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221   esac
1222   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223 done
1224
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1228 build=$build_alias
1229 host=$host_alias
1230 target=$target_alias
1231
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234   if test "x$build_alias" = x; then
1235     cross_compiling=maybe
1236     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1237     If a cross compiler is detected then cross compile mode will be used" >&2
1238   elif test "x$build_alias" != "x$host_alias"; then
1239     cross_compiling=yes
1240   fi
1241 fi
1242
1243 ac_tool_prefix=
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246 test "$silent" = yes && exec 6>/dev/null
1247
1248
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252   as_fn_error $? "working directory cannot be determined"
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254   as_fn_error $? "pwd does not report name of working directory"
1255
1256
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259   ac_srcdir_defaulted=yes
1260   # Try the directory containing this script, then the parent directory.
1261   ac_confdir=`$as_dirname -- "$as_myself" ||
1262 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263          X"$as_myself" : 'X\(//\)[^/]' \| \
1264          X"$as_myself" : 'X\(//\)$' \| \
1265          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266 $as_echo X"$as_myself" |
1267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\/\)[^/].*/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\/\)$/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\).*/{
1280             s//\1/
1281             q
1282           }
1283           s/.*/./; q'`
1284   srcdir=$ac_confdir
1285   if test ! -r "$srcdir/$ac_unique_file"; then
1286     srcdir=..
1287   fi
1288 else
1289   ac_srcdir_defaulted=no
1290 fi
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1294 fi
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 ac_abs_confdir=`(
1297         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1298         pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301   srcdir=.
1302 fi
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311   eval ac_env_${ac_var}_value=\$${ac_var}
1312   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1315
1316 #
1317 # Report the --help message.
1318 #
1319 if test "$ac_init_help" = "long"; then
1320   # Omit some internal or obsolete options to make the list less imposing.
1321   # This message is too long to be a string in the A/UX 3.1 sh.
1322   cat <<_ACEOF
1323 \`configure' configures lcms2 2.4 to adapt to many kinds of systems.
1324
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE.  See below for descriptions of some of the useful variables.
1329
1330 Defaults for the options are specified in brackets.
1331
1332 Configuration:
1333   -h, --help              display this help and exit
1334       --help=short        display options specific to this package
1335       --help=recursive    display the short help of all the included packages
1336   -V, --version           display version information and exit
1337   -q, --quiet, --silent   do not print \`checking ...' messages
1338       --cache-file=FILE   cache test results in FILE [disabled]
1339   -C, --config-cache      alias for \`--cache-file=config.cache'
1340   -n, --no-create         do not create output files
1341       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1342
1343 Installation directories:
1344   --prefix=PREFIX         install architecture-independent files in PREFIX
1345                           [$ac_default_prefix]
1346   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1347                           [PREFIX]
1348
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1353
1354 For better control, use the options below.
1355
1356 Fine tuning of the installation directories:
1357   --bindir=DIR            user executables [EPREFIX/bin]
1358   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1359   --libexecdir=DIR        program executables [EPREFIX/libexec]
1360   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1361   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1362   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1363   --libdir=DIR            object code libraries [EPREFIX/lib]
1364   --includedir=DIR        C header files [PREFIX/include]
1365   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1366   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1367   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1368   --infodir=DIR           info documentation [DATAROOTDIR/info]
1369   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1370   --mandir=DIR            man documentation [DATAROOTDIR/man]
1371   --docdir=DIR            documentation root [DATAROOTDIR/doc/lcms2]
1372   --htmldir=DIR           html documentation [DOCDIR]
1373   --dvidir=DIR            dvi documentation [DOCDIR]
1374   --pdfdir=DIR            pdf documentation [DOCDIR]
1375   --psdir=DIR             ps documentation [DOCDIR]
1376 _ACEOF
1377
1378   cat <<\_ACEOF
1379
1380 Program names:
1381   --program-prefix=PREFIX            prepend PREFIX to installed program names
1382   --program-suffix=SUFFIX            append SUFFIX to installed program names
1383   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1384
1385 System types:
1386   --build=BUILD     configure for building on BUILD [guessed]
1387   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1388 _ACEOF
1389 fi
1390
1391 if test -n "$ac_init_help"; then
1392   case $ac_init_help in
1393      short | recursive ) echo "Configuration of lcms2 2.4:";;
1394    esac
1395   cat <<\_ACEOF
1396
1397 Optional Features:
1398   --disable-option-checking  ignore unrecognized --enable/--with options
1399   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1400   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1401   --disable-dependency-tracking  speeds up one-time build
1402   --enable-dependency-tracking   do not reject slow dependency extractors
1403   --enable-shared[=PKGS]  build shared libraries [default=yes]
1404   --enable-static[=PKGS]  build static libraries [default=yes]
1405   --enable-fast-install[=PKGS]
1406                           optimize for fast installation [default=yes]
1407   --disable-libtool-lock  avoid locking (might break parallel builds)
1408   --enable-maintainer-mode  enable make rules and dependencies not useful
1409                           (and sometimes confusing) to the casual installer
1410
1411 Optional Packages:
1412   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1413   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1414   --without-jpeg          disable JPEG support
1415   --without-tiff          disable TIFF support
1416   --without-zlib          disable ZLIB support
1417   --with-pic              try to use only PIC/non-PIC objects [default=use
1418                           both]
1419   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1420   --with-sysroot=DIR Search for dependent libraries within DIR
1421                         (or the compiler's sysroot if not specified).
1422
1423 Some influential environment variables:
1424   CC          C compiler command
1425   CFLAGS      C compiler flags
1426   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1427               nonstandard directory <lib dir>
1428   LIBS        libraries to pass to the linker, e.g. -l<library>
1429   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1430               you have headers in a nonstandard directory <include dir>
1431   CPP         C preprocessor
1432   CXX         C++ compiler command
1433   CXXFLAGS    C++ compiler flags
1434   CXXCPP      C++ preprocessor
1435
1436 Use these variables to override the choices made by `configure' or to help
1437 it to find libraries and programs with nonstandard names/locations.
1438
1439 Report bugs to the package provider.
1440 _ACEOF
1441 ac_status=$?
1442 fi
1443
1444 if test "$ac_init_help" = "recursive"; then
1445   # If there are subdirs, report their specific --help.
1446   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1447     test -d "$ac_dir" ||
1448       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1449       continue
1450     ac_builddir=.
1451
1452 case "$ac_dir" in
1453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 *)
1455   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1456   # A ".." for each directory in $ac_dir_suffix.
1457   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1458   case $ac_top_builddir_sub in
1459   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1461   esac ;;
1462 esac
1463 ac_abs_top_builddir=$ac_pwd
1464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465 # for backward compatibility:
1466 ac_top_builddir=$ac_top_build_prefix
1467
1468 case $srcdir in
1469   .)  # We are building in place.
1470     ac_srcdir=.
1471     ac_top_srcdir=$ac_top_builddir_sub
1472     ac_abs_top_srcdir=$ac_pwd ;;
1473   [\\/]* | ?:[\\/]* )  # Absolute name.
1474     ac_srcdir=$srcdir$ac_dir_suffix;
1475     ac_top_srcdir=$srcdir
1476     ac_abs_top_srcdir=$srcdir ;;
1477   *) # Relative name.
1478     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479     ac_top_srcdir=$ac_top_build_prefix$srcdir
1480     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1481 esac
1482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1483
1484     cd "$ac_dir" || { ac_status=$?; continue; }
1485     # Check for guested configure.
1486     if test -f "$ac_srcdir/configure.gnu"; then
1487       echo &&
1488       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489     elif test -f "$ac_srcdir/configure"; then
1490       echo &&
1491       $SHELL "$ac_srcdir/configure" --help=recursive
1492     else
1493       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1494     fi || ac_status=$?
1495     cd "$ac_pwd" || { ac_status=$?; break; }
1496   done
1497 fi
1498
1499 test -n "$ac_init_help" && exit $ac_status
1500 if $ac_init_version; then
1501   cat <<\_ACEOF
1502 lcms2 configure 2.4
1503 generated by GNU Autoconf 2.68
1504
1505 Copyright (C) 2010 Free Software Foundation, Inc.
1506 This configure script is free software; the Free Software Foundation
1507 gives unlimited permission to copy, distribute and modify it.
1508 _ACEOF
1509   exit
1510 fi
1511
1512 ## ------------------------ ##
1513 ## Autoconf initialization. ##
1514 ## ------------------------ ##
1515
1516 # ac_fn_c_try_compile LINENO
1517 # --------------------------
1518 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1519 ac_fn_c_try_compile ()
1520 {
1521   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522   rm -f conftest.$ac_objext
1523   if { { ac_try="$ac_compile"
1524 case "(($ac_try" in
1525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526   *) ac_try_echo=$ac_try;;
1527 esac
1528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529 $as_echo "$ac_try_echo"; } >&5
1530   (eval "$ac_compile") 2>conftest.err
1531   ac_status=$?
1532   if test -s conftest.err; then
1533     grep -v '^ *+' conftest.err >conftest.er1
1534     cat conftest.er1 >&5
1535     mv -f conftest.er1 conftest.err
1536   fi
1537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538   test $ac_status = 0; } && {
1539          test -z "$ac_c_werror_flag" ||
1540          test ! -s conftest.err
1541        } && test -s conftest.$ac_objext; then :
1542   ac_retval=0
1543 else
1544   $as_echo "$as_me: failed program was:" >&5
1545 sed 's/^/| /' conftest.$ac_ext >&5
1546
1547         ac_retval=1
1548 fi
1549   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1550   as_fn_set_status $ac_retval
1551
1552 } # ac_fn_c_try_compile
1553
1554 # ac_fn_c_try_cpp LINENO
1555 # ----------------------
1556 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_c_try_cpp ()
1558 {
1559   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560   if { { ac_try="$ac_cpp conftest.$ac_ext"
1561 case "(($ac_try" in
1562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563   *) ac_try_echo=$ac_try;;
1564 esac
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1568   ac_status=$?
1569   if test -s conftest.err; then
1570     grep -v '^ *+' conftest.err >conftest.er1
1571     cat conftest.er1 >&5
1572     mv -f conftest.er1 conftest.err
1573   fi
1574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575   test $ac_status = 0; } > conftest.i && {
1576          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1577          test ! -s conftest.err
1578        }; then :
1579   ac_retval=0
1580 else
1581   $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1583
1584     ac_retval=1
1585 fi
1586   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587   as_fn_set_status $ac_retval
1588
1589 } # ac_fn_c_try_cpp
1590
1591 # ac_fn_cxx_try_compile LINENO
1592 # ----------------------------
1593 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1594 ac_fn_cxx_try_compile ()
1595 {
1596   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597   rm -f conftest.$ac_objext
1598   if { { ac_try="$ac_compile"
1599 case "(($ac_try" in
1600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601   *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605   (eval "$ac_compile") 2>conftest.err
1606   ac_status=$?
1607   if test -s conftest.err; then
1608     grep -v '^ *+' conftest.err >conftest.er1
1609     cat conftest.er1 >&5
1610     mv -f conftest.er1 conftest.err
1611   fi
1612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613   test $ac_status = 0; } && {
1614          test -z "$ac_cxx_werror_flag" ||
1615          test ! -s conftest.err
1616        } && test -s conftest.$ac_objext; then :
1617   ac_retval=0
1618 else
1619   $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621
1622         ac_retval=1
1623 fi
1624   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625   as_fn_set_status $ac_retval
1626
1627 } # ac_fn_cxx_try_compile
1628
1629 # ac_fn_c_try_link LINENO
1630 # -----------------------
1631 # Try to link conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_link ()
1633 {
1634   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635   rm -f conftest.$ac_objext conftest$ac_exeext
1636   if { { ac_try="$ac_link"
1637 case "(($ac_try" in
1638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639   *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643   (eval "$ac_link") 2>conftest.err
1644   ac_status=$?
1645   if test -s conftest.err; then
1646     grep -v '^ *+' conftest.err >conftest.er1
1647     cat conftest.er1 >&5
1648     mv -f conftest.er1 conftest.err
1649   fi
1650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651   test $ac_status = 0; } && {
1652          test -z "$ac_c_werror_flag" ||
1653          test ! -s conftest.err
1654        } && test -s conftest$ac_exeext && {
1655          test "$cross_compiling" = yes ||
1656          $as_test_x conftest$ac_exeext
1657        }; then :
1658   ac_retval=0
1659 else
1660   $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663         ac_retval=1
1664 fi
1665   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1666   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1667   # interfere with the next link command; also delete a directory that is
1668   # left behind by Apple's compiler.  We do this before executing the actions.
1669   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671   as_fn_set_status $ac_retval
1672
1673 } # ac_fn_c_try_link
1674
1675 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1676 # -------------------------------------------------------
1677 # Tests whether HEADER exists and can be compiled using the include files in
1678 # INCLUDES, setting the cache variable VAR accordingly.
1679 ac_fn_c_check_header_compile ()
1680 {
1681   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683 $as_echo_n "checking for $2... " >&6; }
1684 if eval \${$3+:} false; then :
1685   $as_echo_n "(cached) " >&6
1686 else
1687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688 /* end confdefs.h.  */
1689 $4
1690 #include <$2>
1691 _ACEOF
1692 if ac_fn_c_try_compile "$LINENO"; then :
1693   eval "$3=yes"
1694 else
1695   eval "$3=no"
1696 fi
1697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1698 fi
1699 eval ac_res=\$$3
1700                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 $as_echo "$ac_res" >&6; }
1702   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703
1704 } # ac_fn_c_check_header_compile
1705
1706 # ac_fn_c_try_run LINENO
1707 # ----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1709 # that executables *can* be run.
1710 ac_fn_c_try_run ()
1711 {
1712   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713   if { { ac_try="$ac_link"
1714 case "(($ac_try" in
1715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716   *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720   (eval "$ac_link") 2>&5
1721   ac_status=$?
1722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1724   { { case "(($ac_try" in
1725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726   *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730   (eval "$ac_try") 2>&5
1731   ac_status=$?
1732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733   test $ac_status = 0; }; }; then :
1734   ac_retval=0
1735 else
1736   $as_echo "$as_me: program exited with status $ac_status" >&5
1737        $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740        ac_retval=$ac_status
1741 fi
1742   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744   as_fn_set_status $ac_retval
1745
1746 } # ac_fn_c_try_run
1747
1748 # ac_fn_c_check_func LINENO FUNC VAR
1749 # ----------------------------------
1750 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1751 ac_fn_c_check_func ()
1752 {
1753   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if eval \${$3+:} false; then :
1757   $as_echo_n "(cached) " >&6
1758 else
1759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h.  */
1761 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1763 #define $2 innocuous_$2
1764
1765 /* System header to define __stub macros and hopefully few prototypes,
1766     which can conflict with char $2 (); below.
1767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1768     <limits.h> exists even on freestanding compilers.  */
1769
1770 #ifdef __STDC__
1771 # include <limits.h>
1772 #else
1773 # include <assert.h>
1774 #endif
1775
1776 #undef $2
1777
1778 /* Override any GCC internal prototype to avoid an error.
1779    Use char because int might match the return type of a GCC
1780    builtin and then its argument prototype would still apply.  */
1781 #ifdef __cplusplus
1782 extern "C"
1783 #endif
1784 char $2 ();
1785 /* The GNU C library defines this for functions which it implements
1786     to always fail with ENOSYS.  Some functions are actually named
1787     something starting with __ and the normal name is an alias.  */
1788 #if defined __stub_$2 || defined __stub___$2
1789 choke me
1790 #endif
1791
1792 int
1793 main ()
1794 {
1795 return $2 ();
1796   ;
1797   return 0;
1798 }
1799 _ACEOF
1800 if ac_fn_c_try_link "$LINENO"; then :
1801   eval "$3=yes"
1802 else
1803   eval "$3=no"
1804 fi
1805 rm -f core conftest.err conftest.$ac_objext \
1806     conftest$ac_exeext conftest.$ac_ext
1807 fi
1808 eval ac_res=\$$3
1809                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
1813 } # ac_fn_c_check_func
1814
1815 # ac_fn_cxx_try_cpp LINENO
1816 # ------------------------
1817 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_cxx_try_cpp ()
1819 {
1820   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821   if { { ac_try="$ac_cpp conftest.$ac_ext"
1822 case "(($ac_try" in
1823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824   *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1829   ac_status=$?
1830   if test -s conftest.err; then
1831     grep -v '^ *+' conftest.err >conftest.er1
1832     cat conftest.er1 >&5
1833     mv -f conftest.er1 conftest.err
1834   fi
1835   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836   test $ac_status = 0; } > conftest.i && {
1837          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1838          test ! -s conftest.err
1839        }; then :
1840   ac_retval=0
1841 else
1842   $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1844
1845     ac_retval=1
1846 fi
1847   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848   as_fn_set_status $ac_retval
1849
1850 } # ac_fn_cxx_try_cpp
1851
1852 # ac_fn_cxx_try_link LINENO
1853 # -------------------------
1854 # Try to link conftest.$ac_ext, and return whether this succeeded.
1855 ac_fn_cxx_try_link ()
1856 {
1857   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858   rm -f conftest.$ac_objext conftest$ac_exeext
1859   if { { ac_try="$ac_link"
1860 case "(($ac_try" in
1861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862   *) ac_try_echo=$ac_try;;
1863 esac
1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 $as_echo "$ac_try_echo"; } >&5
1866   (eval "$ac_link") 2>conftest.err
1867   ac_status=$?
1868   if test -s conftest.err; then
1869     grep -v '^ *+' conftest.err >conftest.er1
1870     cat conftest.er1 >&5
1871     mv -f conftest.er1 conftest.err
1872   fi
1873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874   test $ac_status = 0; } && {
1875          test -z "$ac_cxx_werror_flag" ||
1876          test ! -s conftest.err
1877        } && test -s conftest$ac_exeext && {
1878          test "$cross_compiling" = yes ||
1879          $as_test_x conftest$ac_exeext
1880        }; then :
1881   ac_retval=0
1882 else
1883   $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1885
1886         ac_retval=1
1887 fi
1888   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1889   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1890   # interfere with the next link command; also delete a directory that is
1891   # left behind by Apple's compiler.  We do this before executing the actions.
1892   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1893   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894   as_fn_set_status $ac_retval
1895
1896 } # ac_fn_cxx_try_link
1897
1898 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1899 # -------------------------------------------------------
1900 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1901 # the include files in INCLUDES and setting the cache variable VAR
1902 # accordingly.
1903 ac_fn_c_check_header_mongrel ()
1904 {
1905   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906   if eval \${$3+:} false; then :
1907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if eval \${$3+:} false; then :
1910   $as_echo_n "(cached) " >&6
1911 fi
1912 eval ac_res=\$$3
1913                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915 else
1916   # Is the header compilable?
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1918 $as_echo_n "checking $2 usability... " >&6; }
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h.  */
1921 $4
1922 #include <$2>
1923 _ACEOF
1924 if ac_fn_c_try_compile "$LINENO"; then :
1925   ac_header_compiler=yes
1926 else
1927   ac_header_compiler=no
1928 fi
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1931 $as_echo "$ac_header_compiler" >&6; }
1932
1933 # Is the header present?
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1935 $as_echo_n "checking $2 presence... " >&6; }
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h.  */
1938 #include <$2>
1939 _ACEOF
1940 if ac_fn_c_try_cpp "$LINENO"; then :
1941   ac_header_preproc=yes
1942 else
1943   ac_header_preproc=no
1944 fi
1945 rm -f conftest.err conftest.i conftest.$ac_ext
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1947 $as_echo "$ac_header_preproc" >&6; }
1948
1949 # So?  What about this header?
1950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1951   yes:no: )
1952     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1953 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1954     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1956     ;;
1957   no:yes:* )
1958     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1959 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1960     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1961 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1962     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1963 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1964     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1965 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1966     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1967 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1968     ;;
1969 esac
1970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971 $as_echo_n "checking for $2... " >&6; }
1972 if eval \${$3+:} false; then :
1973   $as_echo_n "(cached) " >&6
1974 else
1975   eval "$3=\$ac_header_compiler"
1976 fi
1977 eval ac_res=\$$3
1978                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980 fi
1981   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982
1983 } # ac_fn_c_check_header_mongrel
1984 cat >config.log <<_ACEOF
1985 This file contains any messages produced by compilers while
1986 running configure, to aid debugging if configure makes a mistake.
1987
1988 It was created by lcms2 $as_me 2.4, which was
1989 generated by GNU Autoconf 2.68.  Invocation command line was
1990
1991   $ $0 $@
1992
1993 _ACEOF
1994 exec 5>>config.log
1995 {
1996 cat <<_ASUNAME
1997 ## --------- ##
1998 ## Platform. ##
1999 ## --------- ##
2000
2001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2006
2007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2008 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2009
2010 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2011 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2013 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2014 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2015 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2016 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2017
2018 _ASUNAME
2019
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2022 do
2023   IFS=$as_save_IFS
2024   test -z "$as_dir" && as_dir=.
2025     $as_echo "PATH: $as_dir"
2026   done
2027 IFS=$as_save_IFS
2028
2029 } >&5
2030
2031 cat >&5 <<_ACEOF
2032
2033
2034 ## ----------- ##
2035 ## Core tests. ##
2036 ## ----------- ##
2037
2038 _ACEOF
2039
2040
2041 # Keep a trace of the command line.
2042 # Strip out --no-create and --no-recursion so they do not pile up.
2043 # Strip out --silent because we don't want to record it for future runs.
2044 # Also quote any args containing shell meta-characters.
2045 # Make two passes to allow for proper duplicate-argument suppression.
2046 ac_configure_args=
2047 ac_configure_args0=
2048 ac_configure_args1=
2049 ac_must_keep_next=false
2050 for ac_pass in 1 2
2051 do
2052   for ac_arg
2053   do
2054     case $ac_arg in
2055     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2056     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2057     | -silent | --silent | --silen | --sile | --sil)
2058       continue ;;
2059     *\'*)
2060       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2061     esac
2062     case $ac_pass in
2063     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2064     2)
2065       as_fn_append ac_configure_args1 " '$ac_arg'"
2066       if test $ac_must_keep_next = true; then
2067         ac_must_keep_next=false # Got value, back to normal.
2068       else
2069         case $ac_arg in
2070           *=* | --config-cache | -C | -disable-* | --disable-* \
2071           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2072           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2073           | -with-* | --with-* | -without-* | --without-* | --x)
2074             case "$ac_configure_args0 " in
2075               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2076             esac
2077             ;;
2078           -* ) ac_must_keep_next=true ;;
2079         esac
2080       fi
2081       as_fn_append ac_configure_args " '$ac_arg'"
2082       ;;
2083     esac
2084   done
2085 done
2086 { ac_configure_args0=; unset ac_configure_args0;}
2087 { ac_configure_args1=; unset ac_configure_args1;}
2088
2089 # When interrupted or exit'd, cleanup temporary files, and complete
2090 # config.log.  We remove comments because anyway the quotes in there
2091 # would cause problems or look ugly.
2092 # WARNING: Use '\'' to represent an apostrophe within the trap.
2093 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2094 trap 'exit_status=$?
2095   # Save into config.log some information that might help in debugging.
2096   {
2097     echo
2098
2099     $as_echo "## ---------------- ##
2100 ## Cache variables. ##
2101 ## ---------------- ##"
2102     echo
2103     # The following way of writing the cache mishandles newlines in values,
2104 (
2105   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2106     eval ac_val=\$$ac_var
2107     case $ac_val in #(
2108     *${as_nl}*)
2109       case $ac_var in #(
2110       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2111 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2112       esac
2113       case $ac_var in #(
2114       _ | IFS | as_nl) ;; #(
2115       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2116       *) { eval $ac_var=; unset $ac_var;} ;;
2117       esac ;;
2118     esac
2119   done
2120   (set) 2>&1 |
2121     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2122     *${as_nl}ac_space=\ *)
2123       sed -n \
2124         "s/'\''/'\''\\\\'\'''\''/g;
2125           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2126       ;; #(
2127     *)
2128       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2129       ;;
2130     esac |
2131     sort
2132 )
2133     echo
2134
2135     $as_echo "## ----------------- ##
2136 ## Output variables. ##
2137 ## ----------------- ##"
2138     echo
2139     for ac_var in $ac_subst_vars
2140     do
2141       eval ac_val=\$$ac_var
2142       case $ac_val in
2143       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2144       esac
2145       $as_echo "$ac_var='\''$ac_val'\''"
2146     done | sort
2147     echo
2148
2149     if test -n "$ac_subst_files"; then
2150       $as_echo "## ------------------- ##
2151 ## File substitutions. ##
2152 ## ------------------- ##"
2153       echo
2154       for ac_var in $ac_subst_files
2155       do
2156         eval ac_val=\$$ac_var
2157         case $ac_val in
2158         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2159         esac
2160         $as_echo "$ac_var='\''$ac_val'\''"
2161       done | sort
2162       echo
2163     fi
2164
2165     if test -s confdefs.h; then
2166       $as_echo "## ----------- ##
2167 ## confdefs.h. ##
2168 ## ----------- ##"
2169       echo
2170       cat confdefs.h
2171       echo
2172     fi
2173     test "$ac_signal" != 0 &&
2174       $as_echo "$as_me: caught signal $ac_signal"
2175     $as_echo "$as_me: exit $exit_status"
2176   } >&5
2177   rm -f core *.core core.conftest.* &&
2178     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2179     exit $exit_status
2180 ' 0
2181 for ac_signal in 1 2 13 15; do
2182   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2183 done
2184 ac_signal=0
2185
2186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2187 rm -f -r conftest* confdefs.h
2188
2189 $as_echo "/* confdefs.h */" > confdefs.h
2190
2191 # Predefined preprocessor variables.
2192
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_NAME "$PACKAGE_NAME"
2195 _ACEOF
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2199 _ACEOF
2200
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2203 _ACEOF
2204
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_STRING "$PACKAGE_STRING"
2207 _ACEOF
2208
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2211 _ACEOF
2212
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE_URL "$PACKAGE_URL"
2215 _ACEOF
2216
2217
2218 # Let the site file select an alternate cache file if it wants to.
2219 # Prefer an explicitly selected file to automatically selected ones.
2220 ac_site_file1=NONE
2221 ac_site_file2=NONE
2222 if test -n "$CONFIG_SITE"; then
2223   # We do not want a PATH search for config.site.
2224   case $CONFIG_SITE in #((
2225     -*)  ac_site_file1=./$CONFIG_SITE;;
2226     */*) ac_site_file1=$CONFIG_SITE;;
2227     *)   ac_site_file1=./$CONFIG_SITE;;
2228   esac
2229 elif test "x$prefix" != xNONE; then
2230   ac_site_file1=$prefix/share/config.site
2231   ac_site_file2=$prefix/etc/config.site
2232 else
2233   ac_site_file1=$ac_default_prefix/share/config.site
2234   ac_site_file2=$ac_default_prefix/etc/config.site
2235 fi
2236 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2237 do
2238   test "x$ac_site_file" = xNONE && continue
2239   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2240     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2241 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2242     sed 's/^/| /' "$ac_site_file" >&5
2243     . "$ac_site_file" \
2244       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2246 as_fn_error $? "failed to load site script $ac_site_file
2247 See \`config.log' for more details" "$LINENO" 5 ; }
2248   fi
2249 done
2250
2251 if test -r "$cache_file"; then
2252   # Some versions of bash will fail to source /dev/null (special files
2253   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2254   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2255     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2256 $as_echo "$as_me: loading cache $cache_file" >&6;}
2257     case $cache_file in
2258       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2259       *)                      . "./$cache_file";;
2260     esac
2261   fi
2262 else
2263   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2264 $as_echo "$as_me: creating cache $cache_file" >&6;}
2265   >$cache_file
2266 fi
2267
2268 # Check that the precious variables saved in the cache have kept the same
2269 # value.
2270 ac_cache_corrupted=false
2271 for ac_var in $ac_precious_vars; do
2272   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2273   eval ac_new_set=\$ac_env_${ac_var}_set
2274   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2275   eval ac_new_val=\$ac_env_${ac_var}_value
2276   case $ac_old_set,$ac_new_set in
2277     set,)
2278       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2279 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2280       ac_cache_corrupted=: ;;
2281     ,set)
2282       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2283 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2284       ac_cache_corrupted=: ;;
2285     ,);;
2286     *)
2287       if test "x$ac_old_val" != "x$ac_new_val"; then
2288         # differences in whitespace do not lead to failure.
2289         ac_old_val_w=`echo x $ac_old_val`
2290         ac_new_val_w=`echo x $ac_new_val`
2291         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2292           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2293 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2294           ac_cache_corrupted=:
2295         else
2296           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2297 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2298           eval $ac_var=\$ac_old_val
2299         fi
2300         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2301 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2302         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2303 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2304       fi;;
2305   esac
2306   # Pass precious variables to config.status.
2307   if test "$ac_new_set" = set; then
2308     case $ac_new_val in
2309     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2310     *) ac_arg=$ac_var=$ac_new_val ;;
2311     esac
2312     case " $ac_configure_args " in
2313       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2314       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2315     esac
2316   fi
2317 done
2318 if $ac_cache_corrupted; then
2319   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2322 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2323   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2324 fi
2325 ## -------------------- ##
2326 ## Main body of script. ##
2327 ## -------------------- ##
2328
2329 ac_ext=c
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334
2335
2336
2337 #
2338 # Libtool library revision control info
2339 # See the libtool documentation under the heading "Libtool's versioning
2340 # system" in order to understand the meaning of these fields
2341 #
2342 # Here are a set of rules to help you update your library version
2343 # information:
2344 #
2345 #  1. Start with version information of `0:0:0' for each libtool library.
2346 #  2. Update the version information only immediately before a public
2347 #     release of your software. More frequent updates are unnecessary, and
2348 #     only guarantee that the current interface number gets larger faster.
2349 #  3. If the library source code has changed at all since the last update,
2350 #     then increment revision (`c:r:a' becomes `c:r+1:a').
2351 #  4. If any interfaces have been added, removed, or changed since the last
2352 #     update, increment current, and set revision to 0.
2353 #  5. If any interfaces have been added since the last public release, then
2354 #     increment age.
2355 #  6. If any interfaces have been removed since the last public release,
2356 #     then set age to 0.
2357 #
2358 LIBRARY_CURRENT=2
2359 LIBRARY_REVISION=4
2360 LIBRARY_AGE=0
2361
2362
2363 # Obtain system type by running config.guess
2364 ac_aux_dir=
2365 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2366   if test -f "$ac_dir/install-sh"; then
2367     ac_aux_dir=$ac_dir
2368     ac_install_sh="$ac_aux_dir/install-sh -c"
2369     break
2370   elif test -f "$ac_dir/install.sh"; then
2371     ac_aux_dir=$ac_dir
2372     ac_install_sh="$ac_aux_dir/install.sh -c"
2373     break
2374   elif test -f "$ac_dir/shtool"; then
2375     ac_aux_dir=$ac_dir
2376     ac_install_sh="$ac_aux_dir/shtool install -c"
2377     break
2378   fi
2379 done
2380 if test -z "$ac_aux_dir"; then
2381   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2382 fi
2383
2384 # These three variables are undocumented and unsupported,
2385 # and are intended to be withdrawn in a future Autoconf release.
2386 # They can cause serious problems if a builder's source tree is in a directory
2387 # whose full name contains unusual characters.
2388 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2389 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2390 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2391
2392
2393 # Make sure we can run config.sub.
2394 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2395   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2396
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2398 $as_echo_n "checking build system type... " >&6; }
2399 if ${ac_cv_build+:} false; then :
2400   $as_echo_n "(cached) " >&6
2401 else
2402   ac_build_alias=$build_alias
2403 test "x$ac_build_alias" = x &&
2404   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2405 test "x$ac_build_alias" = x &&
2406   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2407 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2408   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2409
2410 fi
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2412 $as_echo "$ac_cv_build" >&6; }
2413 case $ac_cv_build in
2414 *-*-*) ;;
2415 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2416 esac
2417 build=$ac_cv_build
2418 ac_save_IFS=$IFS; IFS='-'
2419 set x $ac_cv_build
2420 shift
2421 build_cpu=$1
2422 build_vendor=$2
2423 shift; shift
2424 # Remember, the first character of IFS is used to create $*,
2425 # except with old shells:
2426 build_os=$*
2427 IFS=$ac_save_IFS
2428 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2429
2430
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2432 $as_echo_n "checking host system type... " >&6; }
2433 if ${ac_cv_host+:} false; then :
2434   $as_echo_n "(cached) " >&6
2435 else
2436   if test "x$host_alias" = x; then
2437   ac_cv_host=$ac_cv_build
2438 else
2439   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2440     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2441 fi
2442
2443 fi
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2445 $as_echo "$ac_cv_host" >&6; }
2446 case $ac_cv_host in
2447 *-*-*) ;;
2448 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2449 esac
2450 host=$ac_cv_host
2451 ac_save_IFS=$IFS; IFS='-'
2452 set x $ac_cv_host
2453 shift
2454 host_cpu=$1
2455 host_vendor=$2
2456 shift; shift
2457 # Remember, the first character of IFS is used to create $*,
2458 # except with old shells:
2459 host_os=$*
2460 IFS=$ac_save_IFS
2461 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2462
2463
2464
2465 am__api_version='1.11'
2466
2467 # Find a good install program.  We prefer a C program (faster),
2468 # so one script is as good as another.  But avoid the broken or
2469 # incompatible versions:
2470 # SysV /etc/install, /usr/sbin/install
2471 # SunOS /usr/etc/install
2472 # IRIX /sbin/install
2473 # AIX /bin/install
2474 # AmigaOS /C/install, which installs bootblocks on floppy discs
2475 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2476 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2477 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2478 # OS/2's system install, which has a completely different semantic
2479 # ./install, which can be erroneously created by make from ./install.sh.
2480 # Reject install programs that cannot install multiple files.
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2482 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2483 if test -z "$INSTALL"; then
2484 if ${ac_cv_path_install+:} false; then :
2485   $as_echo_n "(cached) " >&6
2486 else
2487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2489 do
2490   IFS=$as_save_IFS
2491   test -z "$as_dir" && as_dir=.
2492     # Account for people who put trailing slashes in PATH elements.
2493 case $as_dir/ in #((
2494   ./ | .// | /[cC]/* | \
2495   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2496   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2497   /usr/ucb/* ) ;;
2498   *)
2499     # OSF1 and SCO ODT 3.0 have their own names for install.
2500     # Don't use installbsd from OSF since it installs stuff as root
2501     # by default.
2502     for ac_prog in ginstall scoinst install; do
2503       for ac_exec_ext in '' $ac_executable_extensions; do
2504         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2505           if test $ac_prog = install &&
2506             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2507             # AIX install.  It has an incompatible calling convention.
2508             :
2509           elif test $ac_prog = install &&
2510             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2511             # program-specific install script used by HP pwplus--don't use.
2512             :
2513           else
2514             rm -rf conftest.one conftest.two conftest.dir
2515             echo one > conftest.one
2516             echo two > conftest.two
2517             mkdir conftest.dir
2518             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2519               test -s conftest.one && test -s conftest.two &&
2520               test -s conftest.dir/conftest.one &&
2521               test -s conftest.dir/conftest.two
2522             then
2523               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2524               break 3
2525             fi
2526           fi
2527         fi
2528       done
2529     done
2530     ;;
2531 esac
2532
2533   done
2534 IFS=$as_save_IFS
2535
2536 rm -rf conftest.one conftest.two conftest.dir
2537
2538 fi
2539   if test "${ac_cv_path_install+set}" = set; then
2540     INSTALL=$ac_cv_path_install
2541   else
2542     # As a last resort, use the slow shell script.  Don't cache a
2543     # value for INSTALL within a source directory, because that will
2544     # break other packages using the cache if that directory is
2545     # removed, or if the value is a relative name.
2546     INSTALL=$ac_install_sh
2547   fi
2548 fi
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2550 $as_echo "$INSTALL" >&6; }
2551
2552 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2553 # It thinks the first close brace ends the variable substitution.
2554 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2555
2556 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2557
2558 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2559
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2561 $as_echo_n "checking whether build environment is sane... " >&6; }
2562 # Just in case
2563 sleep 1
2564 echo timestamp > conftest.file
2565 # Reject unsafe characters in $srcdir or the absolute working directory
2566 # name.  Accept space and tab only in the latter.
2567 am_lf='
2568 '
2569 case `pwd` in
2570   *[\\\"\#\$\&\'\`$am_lf]*)
2571     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2572 esac
2573 case $srcdir in
2574   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2575     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2576 esac
2577
2578 # Do `set' in a subshell so we don't clobber the current shell's
2579 # arguments.  Must try -L first in case configure is actually a
2580 # symlink; some systems play weird games with the mod time of symlinks
2581 # (eg FreeBSD returns the mod time of the symlink's containing
2582 # directory).
2583 if (
2584    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2585    if test "$*" = "X"; then
2586       # -L didn't work.
2587       set X `ls -t "$srcdir/configure" conftest.file`
2588    fi
2589    rm -f conftest.file
2590    if test "$*" != "X $srcdir/configure conftest.file" \
2591       && test "$*" != "X conftest.file $srcdir/configure"; then
2592
2593       # If neither matched, then we have a broken ls.  This can happen
2594       # if, for instance, CONFIG_SHELL is bash and it inherits a
2595       # broken ls alias from the environment.  This has actually
2596       # happened.  Such a system could not be considered "sane".
2597       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2598 alias in your environment" "$LINENO" 5
2599    fi
2600
2601    test "$2" = conftest.file
2602    )
2603 then
2604    # Ok.
2605    :
2606 else
2607    as_fn_error $? "newly created file is older than distributed files!
2608 Check your system clock" "$LINENO" 5
2609 fi
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2611 $as_echo "yes" >&6; }
2612 test "$program_prefix" != NONE &&
2613   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2614 # Use a double $ so make ignores it.
2615 test "$program_suffix" != NONE &&
2616   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2617 # Double any \ or $.
2618 # By default was `s,x,x', remove it if useless.
2619 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2620 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2621
2622 # expand $ac_aux_dir to an absolute path
2623 am_aux_dir=`cd $ac_aux_dir && pwd`
2624
2625 if test x"${MISSING+set}" != xset; then
2626   case $am_aux_dir in
2627   *\ * | *\     *)
2628     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2629   *)
2630     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2631   esac
2632 fi
2633 # Use eval to expand $SHELL
2634 if eval "$MISSING --run true"; then
2635   am_missing_run="$MISSING --run "
2636 else
2637   am_missing_run=
2638   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2639 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2640 fi
2641
2642 if test x"${install_sh}" != xset; then
2643   case $am_aux_dir in
2644   *\ * | *\     *)
2645     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2646   *)
2647     install_sh="\${SHELL} $am_aux_dir/install-sh"
2648   esac
2649 fi
2650
2651 # Installed binaries are usually stripped using `strip' when the user
2652 # run `make install-strip'.  However `strip' might not be the right
2653 # tool to use in cross-compilation environments, therefore Automake
2654 # will honor the `STRIP' environment variable to overrule this program.
2655 if test "$cross_compiling" != no; then
2656   if test -n "$ac_tool_prefix"; then
2657   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2658 set dummy ${ac_tool_prefix}strip; ac_word=$2
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if ${ac_cv_prog_STRIP+:} false; then :
2662   $as_echo_n "(cached) " >&6
2663 else
2664   if test -n "$STRIP"; then
2665   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2669 do
2670   IFS=$as_save_IFS
2671   test -z "$as_dir" && as_dir=.
2672     for ac_exec_ext in '' $ac_executable_extensions; do
2673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2674     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676     break 2
2677   fi
2678 done
2679   done
2680 IFS=$as_save_IFS
2681
2682 fi
2683 fi
2684 STRIP=$ac_cv_prog_STRIP
2685 if test -n "$STRIP"; then
2686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2687 $as_echo "$STRIP" >&6; }
2688 else
2689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690 $as_echo "no" >&6; }
2691 fi
2692
2693
2694 fi
2695 if test -z "$ac_cv_prog_STRIP"; then
2696   ac_ct_STRIP=$STRIP
2697   # Extract the first word of "strip", so it can be a program name with args.
2698 set dummy strip; ac_word=$2
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700 $as_echo_n "checking for $ac_word... " >&6; }
2701 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2702   $as_echo_n "(cached) " >&6
2703 else
2704   if test -n "$ac_ct_STRIP"; then
2705   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2709 do
2710   IFS=$as_save_IFS
2711   test -z "$as_dir" && as_dir=.
2712     for ac_exec_ext in '' $ac_executable_extensions; do
2713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714     ac_cv_prog_ac_ct_STRIP="strip"
2715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716     break 2
2717   fi
2718 done
2719   done
2720 IFS=$as_save_IFS
2721
2722 fi
2723 fi
2724 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2725 if test -n "$ac_ct_STRIP"; then
2726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2727 $as_echo "$ac_ct_STRIP" >&6; }
2728 else
2729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730 $as_echo "no" >&6; }
2731 fi
2732
2733   if test "x$ac_ct_STRIP" = x; then
2734     STRIP=":"
2735   else
2736     case $cross_compiling:$ac_tool_warned in
2737 yes:)
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2740 ac_tool_warned=yes ;;
2741 esac
2742     STRIP=$ac_ct_STRIP
2743   fi
2744 else
2745   STRIP="$ac_cv_prog_STRIP"
2746 fi
2747
2748 fi
2749 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2750
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2752 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2753 if test -z "$MKDIR_P"; then
2754   if ${ac_cv_path_mkdir+:} false; then :
2755   $as_echo_n "(cached) " >&6
2756 else
2757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2759 do
2760   IFS=$as_save_IFS
2761   test -z "$as_dir" && as_dir=.
2762     for ac_prog in mkdir gmkdir; do
2763          for ac_exec_ext in '' $ac_executable_extensions; do
2764            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2765            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2766              'mkdir (GNU coreutils) '* | \
2767              'mkdir (coreutils) '* | \
2768              'mkdir (fileutils) '4.1*)
2769                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2770                break 3;;
2771            esac
2772          done
2773        done
2774   done
2775 IFS=$as_save_IFS
2776
2777 fi
2778
2779   test -d ./--version && rmdir ./--version
2780   if test "${ac_cv_path_mkdir+set}" = set; then
2781     MKDIR_P="$ac_cv_path_mkdir -p"
2782   else
2783     # As a last resort, use the slow shell script.  Don't cache a
2784     # value for MKDIR_P within a source directory, because that will
2785     # break other packages using the cache if that directory is
2786     # removed, or if the value is a relative name.
2787     MKDIR_P="$ac_install_sh -d"
2788   fi
2789 fi
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2791 $as_echo "$MKDIR_P" >&6; }
2792
2793 mkdir_p="$MKDIR_P"
2794 case $mkdir_p in
2795   [\\/$]* | ?:[\\/]*) ;;
2796   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2797 esac
2798
2799 for ac_prog in gawk mawk nawk awk
2800 do
2801   # Extract the first word of "$ac_prog", so it can be a program name with args.
2802 set dummy $ac_prog; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if ${ac_cv_prog_AWK+:} false; then :
2806   $as_echo_n "(cached) " >&6
2807 else
2808   if test -n "$AWK"; then
2809   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814   IFS=$as_save_IFS
2815   test -z "$as_dir" && as_dir=.
2816     for ac_exec_ext in '' $ac_executable_extensions; do
2817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818     ac_cv_prog_AWK="$ac_prog"
2819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820     break 2
2821   fi
2822 done
2823   done
2824 IFS=$as_save_IFS
2825
2826 fi
2827 fi
2828 AWK=$ac_cv_prog_AWK
2829 if test -n "$AWK"; then
2830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2831 $as_echo "$AWK" >&6; }
2832 else
2833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2835 fi
2836
2837
2838   test -n "$AWK" && break
2839 done
2840
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2842 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2843 set x ${MAKE-make}
2844 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2845 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2846   $as_echo_n "(cached) " >&6
2847 else
2848   cat >conftest.make <<\_ACEOF
2849 SHELL = /bin/sh
2850 all:
2851         @echo '@@@%%%=$(MAKE)=@@@%%%'
2852 _ACEOF
2853 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2854 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2855   *@@@%%%=?*=@@@%%%*)
2856     eval ac_cv_prog_make_${ac_make}_set=yes;;
2857   *)
2858     eval ac_cv_prog_make_${ac_make}_set=no;;
2859 esac
2860 rm -f conftest.make
2861 fi
2862 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2864 $as_echo "yes" >&6; }
2865   SET_MAKE=
2866 else
2867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869   SET_MAKE="MAKE=${MAKE-make}"
2870 fi
2871
2872 rm -rf .tst 2>/dev/null
2873 mkdir .tst 2>/dev/null
2874 if test -d .tst; then
2875   am__leading_dot=.
2876 else
2877   am__leading_dot=_
2878 fi
2879 rmdir .tst 2>/dev/null
2880
2881 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2882   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2883   # is not polluted with repeated "-I."
2884   am__isrc=' -I$(srcdir)'
2885   # test to see if srcdir already configured
2886   if test -f $srcdir/config.status; then
2887     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2888   fi
2889 fi
2890
2891 # test whether we have cygpath
2892 if test -z "$CYGPATH_W"; then
2893   if (cygpath --version) >/dev/null 2>/dev/null; then
2894     CYGPATH_W='cygpath -w'
2895   else
2896     CYGPATH_W=echo
2897   fi
2898 fi
2899
2900
2901 # Define the identity of the package.
2902  PACKAGE='lcms2'
2903  VERSION='2.4'
2904
2905
2906 # Some tools Automake needs.
2907
2908 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2909
2910
2911 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2912
2913
2914 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2915
2916
2917 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2918
2919
2920 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2921
2922 # We need awk for the "check" target.  The system "awk" is bad on
2923 # some platforms.
2924 # Always define AMTAR for backward compatibility.  Yes, it's still used
2925 # in the wild :-(  We should find a proper way to deprecate it ...
2926 AMTAR='$${TAR-tar}'
2927
2928 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2929
2930
2931
2932
2933
2934
2935 # Disable JPEG.
2936
2937 # Check whether --with-jpeg was given.
2938 if test "${with_jpeg+set}" = set; then :
2939   withval=$with_jpeg; with_jpeg=$withval
2940 else
2941   with_jpeg='yes'
2942 fi
2943
2944
2945 # Disable TIFF.
2946
2947 # Check whether --with-tiff was given.
2948 if test "${with_tiff+set}" = set; then :
2949   withval=$with_tiff; with_tiff=$withval
2950 else
2951   with_tiff='yes'
2952 fi
2953
2954
2955 # Disable ZLIB
2956
2957 # Check whether --with-zlib was given.
2958 if test "${with_zlib+set}" = set; then :
2959   withval=$with_zlib; with_zlib=$withval
2960 else
2961   with_zlib='yes'
2962 fi
2963
2964
2965 # Check for programs
2966 DEPDIR="${am__leading_dot}deps"
2967
2968 ac_config_commands="$ac_config_commands depfiles"
2969
2970
2971 am_make=${MAKE-make}
2972 cat > confinc << 'END'
2973 am__doit:
2974         @echo this is the am__doit target
2975 .PHONY: am__doit
2976 END
2977 # If we don't find an include directive, just comment out the code.
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2979 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2980 am__include="#"
2981 am__quote=
2982 _am_result=none
2983 # First try GNU make style include.
2984 echo "include confinc" > confmf
2985 # Ignore all kinds of additional output from `make'.
2986 case `$am_make -s -f confmf 2> /dev/null` in #(
2987 *the\ am__doit\ target*)
2988   am__include=include
2989   am__quote=
2990   _am_result=GNU
2991   ;;
2992 esac
2993 # Now try BSD make style include.
2994 if test "$am__include" = "#"; then
2995    echo '.include "confinc"' > confmf
2996    case `$am_make -s -f confmf 2> /dev/null` in #(
2997    *the\ am__doit\ target*)
2998      am__include=.include
2999      am__quote="\""
3000      _am_result=BSD
3001      ;;
3002    esac
3003 fi
3004
3005
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3007 $as_echo "$_am_result" >&6; }
3008 rm -f confinc confmf
3009
3010 # Check whether --enable-dependency-tracking was given.
3011 if test "${enable_dependency_tracking+set}" = set; then :
3012   enableval=$enable_dependency_tracking;
3013 fi
3014
3015 if test "x$enable_dependency_tracking" != xno; then
3016   am_depcomp="$ac_aux_dir/depcomp"
3017   AMDEPBACKSLASH='\'
3018   am__nodep='_no'
3019 fi
3020  if test "x$enable_dependency_tracking" != xno; then
3021   AMDEP_TRUE=
3022   AMDEP_FALSE='#'
3023 else
3024   AMDEP_TRUE='#'
3025   AMDEP_FALSE=
3026 fi
3027
3028
3029 ac_ext=c
3030 ac_cpp='$CPP $CPPFLAGS'
3031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3034 if test -n "$ac_tool_prefix"; then
3035   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3036 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if ${ac_cv_prog_CC+:} false; then :
3040   $as_echo_n "(cached) " >&6
3041 else
3042   if test -n "$CC"; then
3043   ac_cv_prog_CC="$CC" # Let the user override the test.
3044 else
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3047 do
3048   IFS=$as_save_IFS
3049   test -z "$as_dir" && as_dir=.
3050     for ac_exec_ext in '' $ac_executable_extensions; do
3051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3052     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054     break 2
3055   fi
3056 done
3057   done
3058 IFS=$as_save_IFS
3059
3060 fi
3061 fi
3062 CC=$ac_cv_prog_CC
3063 if test -n "$CC"; then
3064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3065 $as_echo "$CC" >&6; }
3066 else
3067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3069 fi
3070
3071
3072 fi
3073 if test -z "$ac_cv_prog_CC"; then
3074   ac_ct_CC=$CC
3075   # Extract the first word of "gcc", so it can be a program name with args.
3076 set dummy gcc; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3080   $as_echo_n "(cached) " >&6
3081 else
3082   if test -n "$ac_ct_CC"; then
3083   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088   IFS=$as_save_IFS
3089   test -z "$as_dir" && as_dir=.
3090     for ac_exec_ext in '' $ac_executable_extensions; do
3091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092     ac_cv_prog_ac_ct_CC="gcc"
3093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094     break 2
3095   fi
3096 done
3097   done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3103 if test -n "$ac_ct_CC"; then
3104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3105 $as_echo "$ac_ct_CC" >&6; }
3106 else
3107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111   if test "x$ac_ct_CC" = x; then
3112     CC=""
3113   else
3114     case $cross_compiling:$ac_tool_warned in
3115 yes:)
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3118 ac_tool_warned=yes ;;
3119 esac
3120     CC=$ac_ct_CC
3121   fi
3122 else
3123   CC="$ac_cv_prog_CC"
3124 fi
3125
3126 if test -z "$CC"; then
3127           if test -n "$ac_tool_prefix"; then
3128     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3129 set dummy ${ac_tool_prefix}cc; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_CC+:} false; then :
3133   $as_echo_n "(cached) " >&6
3134 else
3135   if test -n "$CC"; then
3136   ac_cv_prog_CC="$CC" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3140 do
3141   IFS=$as_save_IFS
3142   test -z "$as_dir" && as_dir=.
3143     for ac_exec_ext in '' $ac_executable_extensions; do
3144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3145     ac_cv_prog_CC="${ac_tool_prefix}cc"
3146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147     break 2
3148   fi
3149 done
3150   done
3151 IFS=$as_save_IFS
3152
3153 fi
3154 fi
3155 CC=$ac_cv_prog_CC
3156 if test -n "$CC"; then
3157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3158 $as_echo "$CC" >&6; }
3159 else
3160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3162 fi
3163
3164
3165   fi
3166 fi
3167 if test -z "$CC"; then
3168   # Extract the first word of "cc", so it can be a program name with args.
3169 set dummy cc; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if ${ac_cv_prog_CC+:} false; then :
3173   $as_echo_n "(cached) " >&6
3174 else
3175   if test -n "$CC"; then
3176   ac_cv_prog_CC="$CC" # Let the user override the test.
3177 else
3178   ac_prog_rejected=no
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH
3181 do
3182   IFS=$as_save_IFS
3183   test -z "$as_dir" && as_dir=.
3184     for ac_exec_ext in '' $ac_executable_extensions; do
3185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3186     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3187        ac_prog_rejected=yes
3188        continue
3189      fi
3190     ac_cv_prog_CC="cc"
3191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192     break 2
3193   fi
3194 done
3195   done
3196 IFS=$as_save_IFS
3197
3198 if test $ac_prog_rejected = yes; then
3199   # We found a bogon in the path, so make sure we never use it.
3200   set dummy $ac_cv_prog_CC
3201   shift
3202   if test $# != 0; then
3203     # We chose a different compiler from the bogus one.
3204     # However, it has the same basename, so the bogon will be chosen
3205     # first if we set CC to just the basename; use the full file name.
3206     shift
3207     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3208   fi
3209 fi
3210 fi
3211 fi
3212 CC=$ac_cv_prog_CC
3213 if test -n "$CC"; then
3214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3215 $as_echo "$CC" >&6; }
3216 else
3217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219 fi
3220
3221
3222 fi
3223 if test -z "$CC"; then
3224   if test -n "$ac_tool_prefix"; then
3225   for ac_prog in cl.exe
3226   do
3227     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3228 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3230 $as_echo_n "checking for $ac_word... " >&6; }
3231 if ${ac_cv_prog_CC+:} false; then :
3232   $as_echo_n "(cached) " >&6
3233 else
3234   if test -n "$CC"; then
3235   ac_cv_prog_CC="$CC" # Let the user override the test.
3236 else
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3239 do
3240   IFS=$as_save_IFS
3241   test -z "$as_dir" && as_dir=.
3242     for ac_exec_ext in '' $ac_executable_extensions; do
3243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3244     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246     break 2
3247   fi
3248 done
3249   done
3250 IFS=$as_save_IFS
3251
3252 fi
3253 fi
3254 CC=$ac_cv_prog_CC
3255 if test -n "$CC"; then
3256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257 $as_echo "$CC" >&6; }
3258 else
3259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3261 fi
3262
3263
3264     test -n "$CC" && break
3265   done
3266 fi
3267 if test -z "$CC"; then
3268   ac_ct_CC=$CC
3269   for ac_prog in cl.exe
3270 do
3271   # Extract the first word of "$ac_prog", so it can be a program name with args.
3272 set dummy $ac_prog; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3276   $as_echo_n "(cached) " >&6
3277 else
3278   if test -n "$ac_ct_CC"; then
3279   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284   IFS=$as_save_IFS
3285   test -z "$as_dir" && as_dir=.
3286     for ac_exec_ext in '' $ac_executable_extensions; do
3287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288     ac_cv_prog_ac_ct_CC="$ac_prog"
3289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290     break 2
3291   fi
3292 done
3293   done
3294 IFS=$as_save_IFS
3295
3296 fi
3297 fi
3298 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3299 if test -n "$ac_ct_CC"; then
3300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3301 $as_echo "$ac_ct_CC" >&6; }
3302 else
3303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3305 fi
3306
3307
3308   test -n "$ac_ct_CC" && break
3309 done
3310
3311   if test "x$ac_ct_CC" = x; then
3312     CC=""
3313   else
3314     case $cross_compiling:$ac_tool_warned in
3315 yes:)
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3318 ac_tool_warned=yes ;;
3319 esac
3320     CC=$ac_ct_CC
3321   fi
3322 fi
3323
3324 fi
3325
3326
3327 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329 as_fn_error $? "no acceptable C compiler found in \$PATH
3330 See \`config.log' for more details" "$LINENO" 5 ; }
3331
3332 # Provide some information about the compiler.
3333 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3334 set X $ac_compile
3335 ac_compiler=$2
3336 for ac_option in --version -v -V -qversion; do
3337   { { ac_try="$ac_compiler $ac_option >&5"
3338 case "(($ac_try" in
3339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340   *) ac_try_echo=$ac_try;;
3341 esac
3342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343 $as_echo "$ac_try_echo"; } >&5
3344   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3345   ac_status=$?
3346   if test -s conftest.err; then
3347     sed '10a\
3348 ... rest of stderr output deleted ...
3349          10q' conftest.err >conftest.er1
3350     cat conftest.er1 >&5
3351   fi
3352   rm -f conftest.er1 conftest.err
3353   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354   test $ac_status = 0; }
3355 done
3356
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h.  */
3359
3360 int
3361 main ()
3362 {
3363
3364   ;
3365   return 0;
3366 }
3367 _ACEOF
3368 ac_clean_files_save=$ac_clean_files
3369 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3370 # Try to create an executable without -o first, disregard a.out.
3371 # It will help us diagnose broken compilers, and finding out an intuition
3372 # of exeext.
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3374 $as_echo_n "checking whether the C compiler works... " >&6; }
3375 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3376
3377 # The possible output files:
3378 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3379
3380 ac_rmfiles=
3381 for ac_file in $ac_files
3382 do
3383   case $ac_file in
3384     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3385     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3386   esac
3387 done
3388 rm -f $ac_rmfiles
3389
3390 if { { ac_try="$ac_link_default"
3391 case "(($ac_try" in
3392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393   *) ac_try_echo=$ac_try;;
3394 esac
3395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396 $as_echo "$ac_try_echo"; } >&5
3397   (eval "$ac_link_default") 2>&5
3398   ac_status=$?
3399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400   test $ac_status = 0; }; then :
3401   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3402 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3403 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3404 # so that the user can short-circuit this test for compilers unknown to
3405 # Autoconf.
3406 for ac_file in $ac_files ''
3407 do
3408   test -f "$ac_file" || continue
3409   case $ac_file in
3410     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3411         ;;
3412     [ab].out )
3413         # We found the default executable, but exeext='' is most
3414         # certainly right.
3415         break;;
3416     *.* )
3417         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3418         then :; else
3419            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3420         fi
3421         # We set ac_cv_exeext here because the later test for it is not
3422         # safe: cross compilers may not add the suffix if given an `-o'
3423         # argument, so we may need to know it at that point already.
3424         # Even if this section looks crufty: it has the advantage of
3425         # actually working.
3426         break;;
3427     * )
3428         break;;
3429   esac
3430 done
3431 test "$ac_cv_exeext" = no && ac_cv_exeext=
3432
3433 else
3434   ac_file=''
3435 fi
3436 if test -z "$ac_file"; then :
3437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438 $as_echo "no" >&6; }
3439 $as_echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3441
3442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error 77 "C compiler cannot create executables
3445 See \`config.log' for more details" "$LINENO" 5 ; }
3446 else
3447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3448 $as_echo "yes" >&6; }
3449 fi
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3451 $as_echo_n "checking for C compiler default output file name... " >&6; }
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3453 $as_echo "$ac_file" >&6; }
3454 ac_exeext=$ac_cv_exeext
3455
3456 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3457 ac_clean_files=$ac_clean_files_save
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3459 $as_echo_n "checking for suffix of executables... " >&6; }
3460 if { { ac_try="$ac_link"
3461 case "(($ac_try" in
3462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463   *) ac_try_echo=$ac_try;;
3464 esac
3465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466 $as_echo "$ac_try_echo"; } >&5
3467   (eval "$ac_link") 2>&5
3468   ac_status=$?
3469   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470   test $ac_status = 0; }; then :
3471   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3472 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3473 # work properly (i.e., refer to `conftest.exe'), while it won't with
3474 # `rm'.
3475 for ac_file in conftest.exe conftest conftest.*; do
3476   test -f "$ac_file" || continue
3477   case $ac_file in
3478     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3479     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3480           break;;
3481     * ) break;;
3482   esac
3483 done
3484 else
3485   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3488 See \`config.log' for more details" "$LINENO" 5 ; }
3489 fi
3490 rm -f conftest conftest$ac_cv_exeext
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3492 $as_echo "$ac_cv_exeext" >&6; }
3493
3494 rm -f conftest.$ac_ext
3495 EXEEXT=$ac_cv_exeext
3496 ac_exeext=$EXEEXT
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h.  */
3499 #include <stdio.h>
3500 int
3501 main ()
3502 {
3503 FILE *f = fopen ("conftest.out", "w");
3504  return ferror (f) || fclose (f) != 0;
3505
3506   ;
3507   return 0;
3508 }
3509 _ACEOF
3510 ac_clean_files="$ac_clean_files conftest.out"
3511 # Check that the compiler produces executables we can run.  If not, either
3512 # the compiler is broken, or we cross compile.
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3514 $as_echo_n "checking whether we are cross compiling... " >&6; }
3515 if test "$cross_compiling" != yes; then
3516   { { ac_try="$ac_link"
3517 case "(($ac_try" in
3518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519   *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522 $as_echo "$ac_try_echo"; } >&5
3523   (eval "$ac_link") 2>&5
3524   ac_status=$?
3525   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526   test $ac_status = 0; }
3527   if { ac_try='./conftest$ac_cv_exeext'
3528   { { case "(($ac_try" in
3529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530   *) ac_try_echo=$ac_try;;
3531 esac
3532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533 $as_echo "$ac_try_echo"; } >&5
3534   (eval "$ac_try") 2>&5
3535   ac_status=$?
3536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537   test $ac_status = 0; }; }; then
3538     cross_compiling=no
3539   else
3540     if test "$cross_compiling" = maybe; then
3541         cross_compiling=yes
3542     else
3543         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545 as_fn_error $? "cannot run C compiled programs.
3546 If you meant to cross compile, use \`--host'.
3547 See \`config.log' for more details" "$LINENO" 5 ; }
3548     fi
3549   fi
3550 fi
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3552 $as_echo "$cross_compiling" >&6; }
3553
3554 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3555 ac_clean_files=$ac_clean_files_save
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3557 $as_echo_n "checking for suffix of object files... " >&6; }
3558 if ${ac_cv_objext+:} false; then :
3559   $as_echo_n "(cached) " >&6
3560 else
3561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h.  */
3563
3564 int
3565 main ()
3566 {
3567
3568   ;
3569   return 0;
3570 }
3571 _ACEOF
3572 rm -f conftest.o conftest.obj
3573 if { { ac_try="$ac_compile"
3574 case "(($ac_try" in
3575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576   *) ac_try_echo=$ac_try;;
3577 esac
3578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579 $as_echo "$ac_try_echo"; } >&5
3580   (eval "$ac_compile") 2>&5
3581   ac_status=$?
3582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583   test $ac_status = 0; }; then :
3584   for ac_file in conftest.o conftest.obj conftest.*; do
3585   test -f "$ac_file" || continue;
3586   case $ac_file in
3587     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3588     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3589        break;;
3590   esac
3591 done
3592 else
3593   $as_echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3595
3596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598 as_fn_error $? "cannot compute suffix of object files: cannot compile
3599 See \`config.log' for more details" "$LINENO" 5 ; }
3600 fi
3601 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3602 fi
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3604 $as_echo "$ac_cv_objext" >&6; }
3605 OBJEXT=$ac_cv_objext
3606 ac_objext=$OBJEXT
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3608 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3609 if ${ac_cv_c_compiler_gnu+:} false; then :
3610   $as_echo_n "(cached) " >&6
3611 else
3612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h.  */
3614
3615 int
3616 main ()
3617 {
3618 #ifndef __GNUC__
3619        choke me
3620 #endif
3621
3622   ;
3623   return 0;
3624 }
3625 _ACEOF
3626 if ac_fn_c_try_compile "$LINENO"; then :
3627   ac_compiler_gnu=yes
3628 else
3629   ac_compiler_gnu=no
3630 fi
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3633
3634 fi
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3636 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3637 if test $ac_compiler_gnu = yes; then
3638   GCC=yes
3639 else
3640   GCC=
3641 fi
3642 ac_test_CFLAGS=${CFLAGS+set}
3643 ac_save_CFLAGS=$CFLAGS
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3645 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3646 if ${ac_cv_prog_cc_g+:} false; then :
3647   $as_echo_n "(cached) " >&6
3648 else
3649   ac_save_c_werror_flag=$ac_c_werror_flag
3650    ac_c_werror_flag=yes
3651    ac_cv_prog_cc_g=no
3652    CFLAGS="-g"
3653    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h.  */
3655
3656 int
3657 main ()
3658 {
3659
3660   ;
3661   return 0;
3662 }
3663 _ACEOF
3664 if ac_fn_c_try_compile "$LINENO"; then :
3665   ac_cv_prog_cc_g=yes
3666 else
3667   CFLAGS=""
3668       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h.  */
3670
3671 int
3672 main ()
3673 {
3674
3675   ;
3676   return 0;
3677 }
3678 _ACEOF
3679 if ac_fn_c_try_compile "$LINENO"; then :
3680
3681 else
3682   ac_c_werror_flag=$ac_save_c_werror_flag
3683          CFLAGS="-g"
3684          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h.  */
3686
3687 int
3688 main ()
3689 {
3690
3691   ;
3692   return 0;
3693 }
3694 _ACEOF
3695 if ac_fn_c_try_compile "$LINENO"; then :
3696   ac_cv_prog_cc_g=yes
3697 fi
3698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 fi
3700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701 fi
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703    ac_c_werror_flag=$ac_save_c_werror_flag
3704 fi
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3706 $as_echo "$ac_cv_prog_cc_g" >&6; }
3707 if test "$ac_test_CFLAGS" = set; then
3708   CFLAGS=$ac_save_CFLAGS
3709 elif test $ac_cv_prog_cc_g = yes; then
3710   if test "$GCC" = yes; then
3711     CFLAGS="-g -O2"
3712   else
3713     CFLAGS="-g"
3714   fi
3715 else
3716   if test "$GCC" = yes; then
3717     CFLAGS="-O2"
3718   else
3719     CFLAGS=
3720   fi
3721 fi
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3723 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3724 if ${ac_cv_prog_cc_c89+:} false; then :
3725   $as_echo_n "(cached) " >&6
3726 else
3727   ac_cv_prog_cc_c89=no
3728 ac_save_CC=$CC
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h.  */
3731 #include <stdarg.h>
3732 #include <stdio.h>
3733 #include <sys/types.h>
3734 #include <sys/stat.h>
3735 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3736 struct buf { int x; };
3737 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3738 static char *e (p, i)
3739      char **p;
3740      int i;
3741 {
3742   return p[i];
3743 }
3744 static char *f (char * (*g) (char **, int), char **p, ...)
3745 {
3746   char *s;
3747   va_list v;
3748   va_start (v,p);
3749   s = g (p, va_arg (v,int));
3750   va_end (v);
3751   return s;
3752 }
3753
3754 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3755    function prototypes and stuff, but not '\xHH' hex character constants.
3756    These don't provoke an error unfortunately, instead are silently treated
3757    as 'x'.  The following induces an error, until -std is added to get
3758    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3759    array size at least.  It's necessary to write '\x00'==0 to get something
3760    that's true only with -std.  */
3761 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3762
3763 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3764    inside strings and character constants.  */
3765 #define FOO(x) 'x'
3766 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3767
3768 int test (int i, double x);
3769 struct s1 {int (*f) (int a);};
3770 struct s2 {int (*f) (double a);};
3771 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3772 int argc;
3773 char **argv;
3774 int
3775 main ()
3776 {
3777 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3778   ;
3779   return 0;
3780 }
3781 _ACEOF
3782 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3783         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3784 do
3785   CC="$ac_save_CC $ac_arg"
3786   if ac_fn_c_try_compile "$LINENO"; then :
3787   ac_cv_prog_cc_c89=$ac_arg
3788 fi
3789 rm -f core conftest.err conftest.$ac_objext
3790   test "x$ac_cv_prog_cc_c89" != "xno" && break
3791 done
3792 rm -f conftest.$ac_ext
3793 CC=$ac_save_CC
3794
3795 fi
3796 # AC_CACHE_VAL
3797 case "x$ac_cv_prog_cc_c89" in
3798   x)
3799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3800 $as_echo "none needed" >&6; } ;;
3801   xno)
3802     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3803 $as_echo "unsupported" >&6; } ;;
3804   *)
3805     CC="$CC $ac_cv_prog_cc_c89"
3806     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3807 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3808 esac
3809 if test "x$ac_cv_prog_cc_c89" != xno; then :
3810
3811 fi
3812
3813 ac_ext=c
3814 ac_cpp='$CPP $CPPFLAGS'
3815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818
3819 depcc="$CC"   am_compiler_list=
3820
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3822 $as_echo_n "checking dependency style of $depcc... " >&6; }
3823 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3824   $as_echo_n "(cached) " >&6
3825 else
3826   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3827   # We make a subdir and do the tests there.  Otherwise we can end up
3828   # making bogus files that we don't know about and never remove.  For
3829   # instance it was reported that on HP-UX the gcc test will end up
3830   # making a dummy file named `D' -- because `-MD' means `put the output
3831   # in D'.
3832   rm -rf conftest.dir
3833   mkdir conftest.dir
3834   # Copy depcomp to subdir because otherwise we won't find it if we're
3835   # using a relative directory.
3836   cp "$am_depcomp" conftest.dir
3837   cd conftest.dir
3838   # We will build objects and dependencies in a subdirectory because
3839   # it helps to detect inapplicable dependency modes.  For instance
3840   # both Tru64's cc and ICC support -MD to output dependencies as a
3841   # side effect of compilation, but ICC will put the dependencies in
3842   # the current directory while Tru64 will put them in the object
3843   # directory.
3844   mkdir sub
3845
3846   am_cv_CC_dependencies_compiler_type=none
3847   if test "$am_compiler_list" = ""; then
3848      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3849   fi
3850   am__universal=false
3851   case " $depcc " in #(
3852      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3853      esac
3854
3855   for depmode in $am_compiler_list; do
3856     # Setup a source with many dependencies, because some compilers
3857     # like to wrap large dependency lists on column 80 (with \), and
3858     # we should not choose a depcomp mode which is confused by this.
3859     #
3860     # We need to recreate these files for each test, as the compiler may
3861     # overwrite some of them when testing with obscure command lines.
3862     # This happens at least with the AIX C compiler.
3863     : > sub/conftest.c
3864     for i in 1 2 3 4 5 6; do
3865       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3866       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3867       # Solaris 8's {/usr,}/bin/sh.
3868       touch sub/conftst$i.h
3869     done
3870     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3871
3872     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3873     # mode.  It turns out that the SunPro C++ compiler does not properly
3874     # handle `-M -o', and we need to detect this.  Also, some Intel
3875     # versions had trouble with output in subdirs
3876     am__obj=sub/conftest.${OBJEXT-o}
3877     am__minus_obj="-o $am__obj"
3878     case $depmode in
3879     gcc)
3880       # This depmode causes a compiler race in universal mode.
3881       test "$am__universal" = false || continue
3882       ;;
3883     nosideeffect)
3884       # after this tag, mechanisms are not by side-effect, so they'll
3885       # only be used when explicitly requested
3886       if test "x$enable_dependency_tracking" = xyes; then
3887         continue
3888       else
3889         break
3890       fi
3891       ;;
3892     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3893       # This compiler won't grok `-c -o', but also, the minuso test has
3894       # not run yet.  These depmodes are late enough in the game, and
3895       # so weak that their functioning should not be impacted.
3896       am__obj=conftest.${OBJEXT-o}
3897       am__minus_obj=
3898       ;;
3899     none) break ;;
3900     esac
3901     if depmode=$depmode \
3902        source=sub/conftest.c object=$am__obj \
3903        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3904        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3905          >/dev/null 2>conftest.err &&
3906        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3907        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3908        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3909        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3910       # icc doesn't choke on unknown options, it will just issue warnings
3911       # or remarks (even with -Werror).  So we grep stderr for any message
3912       # that says an option was ignored or not supported.
3913       # When given -MP, icc 7.0 and 7.1 complain thusly:
3914       #   icc: Command line warning: ignoring option '-M'; no argument required
3915       # The diagnosis changed in icc 8.0:
3916       #   icc: Command line remark: option '-MP' not supported
3917       if (grep 'ignoring option' conftest.err ||
3918           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3919         am_cv_CC_dependencies_compiler_type=$depmode
3920         break
3921       fi
3922     fi
3923   done
3924
3925   cd ..
3926   rm -rf conftest.dir
3927 else
3928   am_cv_CC_dependencies_compiler_type=none
3929 fi
3930
3931 fi
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3933 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3934 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3935
3936  if
3937   test "x$enable_dependency_tracking" != xno \
3938   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3939   am__fastdepCC_TRUE=
3940   am__fastdepCC_FALSE='#'
3941 else
3942   am__fastdepCC_TRUE='#'
3943   am__fastdepCC_FALSE=
3944 fi
3945
3946
3947    case $ac_cv_prog_cc_stdc in #(
3948   no) :
3949     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3950   *) :
3951     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3952 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3953 if ${ac_cv_prog_cc_c99+:} false; then :
3954   $as_echo_n "(cached) " >&6
3955 else
3956   ac_cv_prog_cc_c99=no
3957 ac_save_CC=$CC
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h.  */
3960 #include <stdarg.h>
3961 #include <stdbool.h>
3962 #include <stdlib.h>
3963 #include <wchar.h>
3964 #include <stdio.h>
3965
3966 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3967 #define debug(...) fprintf (stderr, __VA_ARGS__)
3968 #define showlist(...) puts (#__VA_ARGS__)
3969 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3970 static void
3971 test_varargs_macros (void)
3972 {
3973   int x = 1234;
3974   int y = 5678;
3975   debug ("Flag");
3976   debug ("X = %d\n", x);
3977   showlist (The first, second, and third items.);
3978   report (x>y, "x is %d but y is %d", x, y);
3979 }
3980
3981 // Check long long types.
3982 #define BIG64 18446744073709551615ull
3983 #define BIG32 4294967295ul
3984 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3985 #if !BIG_OK
3986   your preprocessor is broken;
3987 #endif
3988 #if BIG_OK
3989 #else
3990   your preprocessor is broken;
3991 #endif
3992 static long long int bignum = -9223372036854775807LL;
3993 static unsigned long long int ubignum = BIG64;
3994
3995 struct incomplete_array
3996 {
3997   int datasize;
3998   double data[];
3999 };
4000
4001 struct named_init {
4002   int number;
4003   const wchar_t *name;
4004   double average;
4005 };
4006
4007 typedef const char *ccp;
4008
4009 static inline int
4010 test_restrict (ccp restrict text)
4011 {
4012   // See if C++-style comments work.
4013   // Iterate through items via the restricted pointer.
4014   // Also check for declarations in for loops.
4015   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4016     continue;
4017   return 0;
4018 }
4019
4020 // Check varargs and va_copy.
4021 static void
4022 test_varargs (const char *format, ...)
4023 {
4024   va_list args;
4025   va_start (args, format);
4026   va_list args_copy;
4027   va_copy (args_copy, args);
4028
4029   const char *str;
4030   int number;
4031   float fnumber;
4032
4033   while (*format)
4034     {
4035       switch (*format++)
4036         {
4037         case 's': // string
4038           str = va_arg (args_copy, const char *);
4039           break;
4040         case 'd': // int
4041           number = va_arg (args_copy, int);
4042           break;
4043         case 'f': // float
4044           fnumber = va_arg (args_copy, double);
4045           break;
4046         default:
4047           break;
4048         }
4049     }
4050   va_end (args_copy);
4051   va_end (args);
4052 }
4053
4054 int
4055 main ()
4056 {
4057
4058   // Check bool.
4059   _Bool success = false;
4060
4061   // Check restrict.
4062   if (test_restrict ("String literal") == 0)
4063     success = true;
4064   char *restrict newvar = "Another string";
4065
4066   // Check varargs.
4067   test_varargs ("s, d' f .", "string", 65, 34.234);
4068   test_varargs_macros ();
4069
4070   // Check flexible array members.
4071   struct incomplete_array *ia =
4072     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4073   ia->datasize = 10;
4074   for (int i = 0; i < ia->datasize; ++i)
4075     ia->data[i] = i * 1.234;
4076
4077   // Check named initializers.
4078   struct named_init ni = {
4079     .number = 34,
4080     .name = L"Test wide string",
4081     .average = 543.34343,
4082   };
4083
4084   ni.number = 58;
4085
4086   int dynamic_array[ni.number];
4087   dynamic_array[ni.number - 1] = 543;
4088
4089   // work around unused variable warnings
4090   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4091           || dynamic_array[ni.number - 1] != 543);
4092
4093   ;
4094   return 0;
4095 }
4096 _ACEOF
4097 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4098 do
4099   CC="$ac_save_CC $ac_arg"
4100   if ac_fn_c_try_compile "$LINENO"; then :
4101   ac_cv_prog_cc_c99=$ac_arg
4102 fi
4103 rm -f core conftest.err conftest.$ac_objext
4104   test "x$ac_cv_prog_cc_c99" != "xno" && break
4105 done
4106 rm -f conftest.$ac_ext
4107 CC=$ac_save_CC
4108
4109 fi
4110 # AC_CACHE_VAL
4111 case "x$ac_cv_prog_cc_c99" in
4112   x)
4113     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4114 $as_echo "none needed" >&6; } ;;
4115   xno)
4116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4117 $as_echo "unsupported" >&6; } ;;
4118   *)
4119     CC="$CC $ac_cv_prog_cc_c99"
4120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4121 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4122 esac
4123 if test "x$ac_cv_prog_cc_c99" != xno; then :
4124   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4125 else
4126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4127 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4128 if ${ac_cv_prog_cc_c89+:} false; then :
4129   $as_echo_n "(cached) " >&6
4130 else
4131   ac_cv_prog_cc_c89=no
4132 ac_save_CC=$CC
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h.  */
4135 #include <stdarg.h>
4136 #include <stdio.h>
4137 #include <sys/types.h>
4138 #include <sys/stat.h>
4139 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4140 struct buf { int x; };
4141 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4142 static char *e (p, i)
4143      char **p;
4144      int i;
4145 {
4146   return p[i];
4147 }
4148 static char *f (char * (*g) (char **, int), char **p, ...)
4149 {
4150   char *s;
4151   va_list v;
4152   va_start (v,p);
4153   s = g (p, va_arg (v,int));
4154   va_end (v);
4155   return s;
4156 }
4157
4158 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4159    function prototypes and stuff, but not '\xHH' hex character constants.
4160    These don't provoke an error unfortunately, instead are silently treated
4161    as 'x'.  The following induces an error, until -std is added to get
4162    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4163    array size at least.  It's necessary to write '\x00'==0 to get something
4164    that's true only with -std.  */
4165 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4166
4167 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4168    inside strings and character constants.  */
4169 #define FOO(x) 'x'
4170 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4171
4172 int test (int i, double x);
4173 struct s1 {int (*f) (int a);};
4174 struct s2 {int (*f) (double a);};
4175 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4176 int argc;
4177 char **argv;
4178 int
4179 main ()
4180 {
4181 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4182   ;
4183   return 0;
4184 }
4185 _ACEOF
4186 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4187         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4188 do
4189   CC="$ac_save_CC $ac_arg"
4190   if ac_fn_c_try_compile "$LINENO"; then :
4191   ac_cv_prog_cc_c89=$ac_arg
4192 fi
4193 rm -f core conftest.err conftest.$ac_objext
4194   test "x$ac_cv_prog_cc_c89" != "xno" && break
4195 done
4196 rm -f conftest.$ac_ext
4197 CC=$ac_save_CC
4198
4199 fi
4200 # AC_CACHE_VAL
4201 case "x$ac_cv_prog_cc_c89" in
4202   x)
4203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4204 $as_echo "none needed" >&6; } ;;
4205   xno)
4206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4207 $as_echo "unsupported" >&6; } ;;
4208   *)
4209     CC="$CC $ac_cv_prog_cc_c89"
4210     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4211 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4212 esac
4213 if test "x$ac_cv_prog_cc_c89" != xno; then :
4214   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4215 else
4216   ac_cv_prog_cc_stdc=no
4217 fi
4218
4219 fi
4220  ;;
4221 esac
4222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4223 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4224   if ${ac_cv_prog_cc_stdc+:} false; then :
4225   $as_echo_n "(cached) " >&6
4226 fi
4227
4228   case $ac_cv_prog_cc_stdc in #(
4229   no) :
4230     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4231 $as_echo "unsupported" >&6; } ;; #(
4232   '') :
4233     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4234 $as_echo "none needed" >&6; } ;; #(
4235   *) :
4236     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4237 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4238 esac
4239
4240 ac_ext=c
4241 ac_cpp='$CPP $CPPFLAGS'
4242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4246 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4247 # On Suns, sometimes $CPP names a directory.
4248 if test -n "$CPP" && test -d "$CPP"; then
4249   CPP=
4250 fi
4251 if test -z "$CPP"; then
4252   if ${ac_cv_prog_CPP+:} false; then :
4253   $as_echo_n "(cached) " >&6
4254 else
4255       # Double quotes because CPP needs to be expanded
4256     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4257     do
4258       ac_preproc_ok=false
4259 for ac_c_preproc_warn_flag in '' yes
4260 do
4261   # Use a header file that comes with gcc, so configuring glibc
4262   # with a fresh cross-compiler works.
4263   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4264   # <limits.h> exists even on freestanding compilers.
4265   # On the NeXT, cc -E runs the code through the compiler's parser,
4266   # not just through cpp. "Syntax error" is here to catch this case.
4267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h.  */
4269 #ifdef __STDC__
4270 # include <limits.h>
4271 #else
4272 # include <assert.h>
4273 #endif
4274                      Syntax error
4275 _ACEOF
4276 if ac_fn_c_try_cpp "$LINENO"; then :
4277
4278 else
4279   # Broken: fails on valid input.
4280 continue
4281 fi
4282 rm -f conftest.err conftest.i conftest.$ac_ext
4283
4284   # OK, works on sane cases.  Now check whether nonexistent headers
4285   # can be detected and how.
4286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h.  */
4288 #include <ac_nonexistent.h>
4289 _ACEOF
4290 if ac_fn_c_try_cpp "$LINENO"; then :
4291   # Broken: success on invalid input.
4292 continue
4293 else
4294   # Passes both tests.
4295 ac_preproc_ok=:
4296 break
4297 fi
4298 rm -f conftest.err conftest.i conftest.$ac_ext
4299
4300 done
4301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4302 rm -f conftest.i conftest.err conftest.$ac_ext
4303 if $ac_preproc_ok; then :
4304   break
4305 fi
4306
4307     done
4308     ac_cv_prog_CPP=$CPP
4309
4310 fi
4311   CPP=$ac_cv_prog_CPP
4312 else
4313   ac_cv_prog_CPP=$CPP
4314 fi
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4316 $as_echo "$CPP" >&6; }
4317 ac_preproc_ok=false
4318 for ac_c_preproc_warn_flag in '' yes
4319 do
4320   # Use a header file that comes with gcc, so configuring glibc
4321   # with a fresh cross-compiler works.
4322   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4323   # <limits.h> exists even on freestanding compilers.
4324   # On the NeXT, cc -E runs the code through the compiler's parser,
4325   # not just through cpp. "Syntax error" is here to catch this case.
4326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h.  */
4328 #ifdef __STDC__
4329 # include <limits.h>
4330 #else
4331 # include <assert.h>
4332 #endif
4333                      Syntax error
4334 _ACEOF
4335 if ac_fn_c_try_cpp "$LINENO"; then :
4336
4337 else
4338   # Broken: fails on valid input.
4339 continue
4340 fi
4341 rm -f conftest.err conftest.i conftest.$ac_ext
4342
4343   # OK, works on sane cases.  Now check whether nonexistent headers
4344   # can be detected and how.
4345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h.  */
4347 #include <ac_nonexistent.h>
4348 _ACEOF
4349 if ac_fn_c_try_cpp "$LINENO"; then :
4350   # Broken: success on invalid input.
4351 continue
4352 else
4353   # Passes both tests.
4354 ac_preproc_ok=:
4355 break
4356 fi
4357 rm -f conftest.err conftest.i conftest.$ac_ext
4358
4359 done
4360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4361 rm -f conftest.i conftest.err conftest.$ac_ext
4362 if $ac_preproc_ok; then :
4363
4364 else
4365   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4367 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4368 See \`config.log' for more details" "$LINENO" 5 ; }
4369 fi
4370
4371 ac_ext=c
4372 ac_cpp='$CPP $CPPFLAGS'
4373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4376
4377 ac_ext=cpp
4378 ac_cpp='$CXXCPP $CPPFLAGS'
4379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4382 if test -z "$CXX"; then
4383   if test -n "$CCC"; then
4384     CXX=$CCC
4385   else
4386     if test -n "$ac_tool_prefix"; then
4387   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4388   do
4389     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if ${ac_cv_prog_CXX+:} false; then :
4394   $as_echo_n "(cached) " >&6
4395 else
4396   if test -n "$CXX"; then
4397   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4398 else
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4401 do
4402   IFS=$as_save_IFS
4403   test -z "$as_dir" && as_dir=.
4404     for ac_exec_ext in '' $ac_executable_extensions; do
4405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4406     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4408     break 2
4409   fi
4410 done
4411   done
4412 IFS=$as_save_IFS
4413
4414 fi
4415 fi
4416 CXX=$ac_cv_prog_CXX
4417 if test -n "$CXX"; then
4418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4419 $as_echo "$CXX" >&6; }
4420 else
4421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 $as_echo "no" >&6; }
4423 fi
4424
4425
4426     test -n "$CXX" && break
4427   done
4428 fi
4429 if test -z "$CXX"; then
4430   ac_ct_CXX=$CXX
4431   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4432 do
4433   # Extract the first word of "$ac_prog", so it can be a program name with args.
4434 set dummy $ac_prog; ac_word=$2
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436 $as_echo_n "checking for $ac_word... " >&6; }
4437 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4438   $as_echo_n "(cached) " >&6
4439 else
4440   if test -n "$ac_ct_CXX"; then
4441   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4442 else
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4445 do
4446   IFS=$as_save_IFS
4447   test -z "$as_dir" && as_dir=.
4448     for ac_exec_ext in '' $ac_executable_extensions; do
4449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4450     ac_cv_prog_ac_ct_CXX="$ac_prog"
4451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452     break 2
4453   fi
4454 done
4455   done
4456 IFS=$as_save_IFS
4457
4458 fi
4459 fi
4460 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4461 if test -n "$ac_ct_CXX"; then
4462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4463 $as_echo "$ac_ct_CXX" >&6; }
4464 else
4465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4466 $as_echo "no" >&6; }
4467 fi
4468
4469
4470   test -n "$ac_ct_CXX" && break
4471 done
4472
4473   if test "x$ac_ct_CXX" = x; then
4474     CXX="g++"
4475   else
4476     case $cross_compiling:$ac_tool_warned in
4477 yes:)
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4480 ac_tool_warned=yes ;;
4481 esac
4482     CXX=$ac_ct_CXX
4483   fi
4484 fi
4485
4486   fi
4487 fi
4488 # Provide some information about the compiler.
4489 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4490 set X $ac_compile
4491 ac_compiler=$2
4492 for ac_option in --version -v -V -qversion; do
4493   { { ac_try="$ac_compiler $ac_option >&5"
4494 case "(($ac_try" in
4495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496   *) ac_try_echo=$ac_try;;
4497 esac
4498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499 $as_echo "$ac_try_echo"; } >&5
4500   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4501   ac_status=$?
4502   if test -s conftest.err; then
4503     sed '10a\
4504 ... rest of stderr output deleted ...
4505          10q' conftest.err >conftest.er1
4506     cat conftest.er1 >&5
4507   fi
4508   rm -f conftest.er1 conftest.err
4509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4510   test $ac_status = 0; }
4511 done
4512
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4514 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4515 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4516   $as_echo_n "(cached) " >&6
4517 else
4518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h.  */
4520
4521 int
4522 main ()
4523 {
4524 #ifndef __GNUC__
4525        choke me
4526 #endif
4527
4528   ;
4529   return 0;
4530 }
4531 _ACEOF
4532 if ac_fn_cxx_try_compile "$LINENO"; then :
4533   ac_compiler_gnu=yes
4534 else
4535   ac_compiler_gnu=no
4536 fi
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4539
4540 fi
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4542 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4543 if test $ac_compiler_gnu = yes; then
4544   GXX=yes
4545 else
4546   GXX=
4547 fi
4548 ac_test_CXXFLAGS=${CXXFLAGS+set}
4549 ac_save_CXXFLAGS=$CXXFLAGS
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4551 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4552 if ${ac_cv_prog_cxx_g+:} false; then :
4553   $as_echo_n "(cached) " >&6
4554 else
4555   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4556    ac_cxx_werror_flag=yes
4557    ac_cv_prog_cxx_g=no
4558    CXXFLAGS="-g"
4559    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h.  */
4561
4562 int
4563 main ()
4564 {
4565
4566   ;
4567   return 0;
4568 }
4569 _ACEOF
4570 if ac_fn_cxx_try_compile "$LINENO"; then :
4571   ac_cv_prog_cxx_g=yes
4572 else
4573   CXXFLAGS=""
4574       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h.  */
4576
4577 int
4578 main ()
4579 {
4580
4581   ;
4582   return 0;
4583 }
4584 _ACEOF
4585 if ac_fn_cxx_try_compile "$LINENO"; then :
4586
4587 else
4588   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4589          CXXFLAGS="-g"
4590          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h.  */
4592
4593 int
4594 main ()
4595 {
4596
4597   ;
4598   return 0;
4599 }
4600 _ACEOF
4601 if ac_fn_cxx_try_compile "$LINENO"; then :
4602   ac_cv_prog_cxx_g=yes
4603 fi
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 fi
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 fi
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4610 fi
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4612 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4613 if test "$ac_test_CXXFLAGS" = set; then
4614   CXXFLAGS=$ac_save_CXXFLAGS
4615 elif test $ac_cv_prog_cxx_g = yes; then
4616   if test "$GXX" = yes; then
4617     CXXFLAGS="-g -O2"
4618   else
4619     CXXFLAGS="-g"
4620   fi
4621 else
4622   if test "$GXX" = yes; then
4623     CXXFLAGS="-O2"
4624   else
4625     CXXFLAGS=
4626   fi
4627 fi
4628 ac_ext=c
4629 ac_cpp='$CPP $CPPFLAGS'
4630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4633
4634 depcc="$CXX"  am_compiler_list=
4635
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4637 $as_echo_n "checking dependency style of $depcc... " >&6; }
4638 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4639   $as_echo_n "(cached) " >&6
4640 else
4641   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4642   # We make a subdir and do the tests there.  Otherwise we can end up
4643   # making bogus files that we don't know about and never remove.  For
4644   # instance it was reported that on HP-UX the gcc test will end up
4645   # making a dummy file named `D' -- because `-MD' means `put the output
4646   # in D'.
4647   rm -rf conftest.dir
4648   mkdir conftest.dir
4649   # Copy depcomp to subdir because otherwise we won't find it if we're
4650   # using a relative directory.
4651   cp "$am_depcomp" conftest.dir
4652   cd conftest.dir
4653   # We will build objects and dependencies in a subdirectory because
4654   # it helps to detect inapplicable dependency modes.  For instance
4655   # both Tru64's cc and ICC support -MD to output dependencies as a
4656   # side effect of compilation, but ICC will put the dependencies in
4657   # the current directory while Tru64 will put them in the object
4658   # directory.
4659   mkdir sub
4660
4661   am_cv_CXX_dependencies_compiler_type=none
4662   if test "$am_compiler_list" = ""; then
4663      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4664   fi
4665   am__universal=false
4666   case " $depcc " in #(
4667      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4668      esac
4669
4670   for depmode in $am_compiler_list; do
4671     # Setup a source with many dependencies, because some compilers
4672     # like to wrap large dependency lists on column 80 (with \), and
4673     # we should not choose a depcomp mode which is confused by this.
4674     #
4675     # We need to recreate these files for each test, as the compiler may
4676     # overwrite some of them when testing with obscure command lines.
4677     # This happens at least with the AIX C compiler.
4678     : > sub/conftest.c
4679     for i in 1 2 3 4 5 6; do
4680       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4681       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4682       # Solaris 8's {/usr,}/bin/sh.
4683       touch sub/conftst$i.h
4684     done
4685     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4686
4687     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4688     # mode.  It turns out that the SunPro C++ compiler does not properly
4689     # handle `-M -o', and we need to detect this.  Also, some Intel
4690     # versions had trouble with output in subdirs
4691     am__obj=sub/conftest.${OBJEXT-o}
4692     am__minus_obj="-o $am__obj"
4693     case $depmode in
4694     gcc)
4695       # This depmode causes a compiler race in universal mode.
4696       test "$am__universal" = false || continue
4697       ;;
4698     nosideeffect)
4699       # after this tag, mechanisms are not by side-effect, so they'll
4700       # only be used when explicitly requested
4701       if test "x$enable_dependency_tracking" = xyes; then
4702         continue
4703       else
4704         break
4705       fi
4706       ;;
4707     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4708       # This compiler won't grok `-c -o', but also, the minuso test has
4709       # not run yet.  These depmodes are late enough in the game, and
4710       # so weak that their functioning should not be impacted.
4711       am__obj=conftest.${OBJEXT-o}
4712       am__minus_obj=
4713       ;;
4714     none) break ;;
4715     esac
4716     if depmode=$depmode \
4717        source=sub/conftest.c object=$am__obj \
4718        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4719        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4720          >/dev/null 2>conftest.err &&
4721        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4722        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4723        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4724        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4725       # icc doesn't choke on unknown options, it will just issue warnings
4726       # or remarks (even with -Werror).  So we grep stderr for any message
4727       # that says an option was ignored or not supported.
4728       # When given -MP, icc 7.0 and 7.1 complain thusly:
4729       #   icc: Command line warning: ignoring option '-M'; no argument required
4730       # The diagnosis changed in icc 8.0:
4731       #   icc: Command line remark: option '-MP' not supported
4732       if (grep 'ignoring option' conftest.err ||
4733           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4734         am_cv_CXX_dependencies_compiler_type=$depmode
4735         break
4736       fi
4737     fi
4738   done
4739
4740   cd ..
4741   rm -rf conftest.dir
4742 else
4743   am_cv_CXX_dependencies_compiler_type=none
4744 fi
4745
4746 fi
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4748 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4749 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4750
4751  if
4752   test "x$enable_dependency_tracking" != xno \
4753   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4754   am__fastdepCXX_TRUE=
4755   am__fastdepCXX_FALSE='#'
4756 else
4757   am__fastdepCXX_TRUE='#'
4758   am__fastdepCXX_FALSE=
4759 fi
4760
4761
4762
4763 #AM_PROG_LD
4764 #AC_SUBST(LD)
4765 #AC_PROG_INSTALL
4766 #AC_PROG_MAKE_SET
4767 #AC_PROG_LN_S
4768
4769 #
4770 # Tests for Windows
4771 #
4772
4773
4774
4775 # Configure libtool
4776 # Check whether --enable-shared was given.
4777 if test "${enable_shared+set}" = set; then :
4778   enableval=$enable_shared; p=${PACKAGE-default}
4779     case $enableval in
4780     yes) enable_shared=yes ;;
4781     no) enable_shared=no ;;
4782     *)
4783       enable_shared=no
4784       # Look at the argument we got.  We use all the common list separators.
4785       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4786       for pkg in $enableval; do
4787         IFS="$lt_save_ifs"
4788         if test "X$pkg" = "X$p"; then
4789           enable_shared=yes
4790         fi
4791       done
4792       IFS="$lt_save_ifs"
4793       ;;
4794     esac
4795 else
4796   enable_shared=yes
4797 fi
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807 # Check whether --enable-static was given.
4808 if test "${enable_static+set}" = set; then :
4809   enableval=$enable_static; p=${PACKAGE-default}
4810     case $enableval in
4811     yes) enable_static=yes ;;
4812     no) enable_static=no ;;
4813     *)
4814      enable_static=no
4815       # Look at the argument we got.  We use all the common list separators.
4816       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4817       for pkg in $enableval; do
4818         IFS="$lt_save_ifs"
4819         if test "X$pkg" = "X$p"; then
4820           enable_static=yes
4821         fi
4822       done
4823       IFS="$lt_save_ifs"
4824       ;;
4825     esac
4826 else
4827   enable_static=yes
4828 fi
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838 enable_win32_dll=yes
4839
4840 case $host in
4841 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4842   if test -n "$ac_tool_prefix"; then
4843   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4844 set dummy ${ac_tool_prefix}as; ac_word=$2
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846 $as_echo_n "checking for $ac_word... " >&6; }
4847 if ${ac_cv_prog_AS+:} false; then :
4848   $as_echo_n "(cached) " >&6
4849 else
4850   if test -n "$AS"; then
4851   ac_cv_prog_AS="$AS" # Let the user override the test.
4852 else
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4855 do
4856   IFS=$as_save_IFS
4857   test -z "$as_dir" && as_dir=.
4858     for ac_exec_ext in '' $ac_executable_extensions; do
4859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4860     ac_cv_prog_AS="${ac_tool_prefix}as"
4861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4862     break 2
4863   fi
4864 done
4865   done
4866 IFS=$as_save_IFS
4867
4868 fi
4869 fi
4870 AS=$ac_cv_prog_AS
4871 if test -n "$AS"; then
4872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4873 $as_echo "$AS" >&6; }
4874 else
4875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 $as_echo "no" >&6; }
4877 fi
4878
4879
4880 fi
4881 if test -z "$ac_cv_prog_AS"; then
4882   ac_ct_AS=$AS
4883   # Extract the first word of "as", so it can be a program name with args.
4884 set dummy as; ac_word=$2
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886 $as_echo_n "checking for $ac_word... " >&6; }
4887 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4888   $as_echo_n "(cached) " >&6
4889 else
4890   if test -n "$ac_ct_AS"; then
4891   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4892 else
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH
4895 do
4896   IFS=$as_save_IFS
4897   test -z "$as_dir" && as_dir=.
4898     for ac_exec_ext in '' $ac_executable_extensions; do
4899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4900     ac_cv_prog_ac_ct_AS="as"
4901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4902     break 2
4903   fi
4904 done
4905   done
4906 IFS=$as_save_IFS
4907
4908 fi
4909 fi
4910 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4911 if test -n "$ac_ct_AS"; then
4912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4913 $as_echo "$ac_ct_AS" >&6; }
4914 else
4915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916 $as_echo "no" >&6; }
4917 fi
4918
4919   if test "x$ac_ct_AS" = x; then
4920     AS="false"
4921   else
4922     case $cross_compiling:$ac_tool_warned in
4923 yes:)
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4926 ac_tool_warned=yes ;;
4927 esac
4928     AS=$ac_ct_AS
4929   fi
4930 else
4931   AS="$ac_cv_prog_AS"
4932 fi
4933
4934   if test -n "$ac_tool_prefix"; then
4935   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4936 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938 $as_echo_n "checking for $ac_word... " >&6; }
4939 if ${ac_cv_prog_DLLTOOL+:} false; then :
4940   $as_echo_n "(cached) " >&6
4941 else
4942   if test -n "$DLLTOOL"; then
4943   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4944 else
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4947 do
4948   IFS=$as_save_IFS
4949   test -z "$as_dir" && as_dir=.
4950     for ac_exec_ext in '' $ac_executable_extensions; do
4951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4954     break 2
4955   fi
4956 done
4957   done
4958 IFS=$as_save_IFS
4959
4960 fi
4961 fi
4962 DLLTOOL=$ac_cv_prog_DLLTOOL
4963 if test -n "$DLLTOOL"; then
4964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4965 $as_echo "$DLLTOOL" >&6; }
4966 else
4967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968 $as_echo "no" >&6; }
4969 fi
4970
4971
4972 fi
4973 if test -z "$ac_cv_prog_DLLTOOL"; then
4974   ac_ct_DLLTOOL=$DLLTOOL
4975   # Extract the first word of "dlltool", so it can be a program name with args.
4976 set dummy dlltool; ac_word=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4980   $as_echo_n "(cached) " >&6
4981 else
4982   if test -n "$ac_ct_DLLTOOL"; then
4983   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4987 do
4988   IFS=$as_save_IFS
4989   test -z "$as_dir" && as_dir=.
4990     for ac_exec_ext in '' $ac_executable_extensions; do
4991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4992     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994     break 2
4995   fi
4996 done
4997   done
4998 IFS=$as_save_IFS
4999
5000 fi
5001 fi
5002 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5003 if test -n "$ac_ct_DLLTOOL"; then
5004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5005 $as_echo "$ac_ct_DLLTOOL" >&6; }
5006 else
5007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008 $as_echo "no" >&6; }
5009 fi
5010
5011   if test "x$ac_ct_DLLTOOL" = x; then
5012     DLLTOOL="false"
5013   else
5014     case $cross_compiling:$ac_tool_warned in
5015 yes:)
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5018 ac_tool_warned=yes ;;
5019 esac
5020     DLLTOOL=$ac_ct_DLLTOOL
5021   fi
5022 else
5023   DLLTOOL="$ac_cv_prog_DLLTOOL"
5024 fi
5025
5026   if test -n "$ac_tool_prefix"; then
5027   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5028 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if ${ac_cv_prog_OBJDUMP+:} false; then :
5032   $as_echo_n "(cached) " >&6
5033 else
5034   if test -n "$OBJDUMP"; then
5035   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5036 else
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5039 do
5040   IFS=$as_save_IFS
5041   test -z "$as_dir" && as_dir=.
5042     for ac_exec_ext in '' $ac_executable_extensions; do
5043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5044     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046     break 2
5047   fi
5048 done
5049   done
5050 IFS=$as_save_IFS
5051
5052 fi
5053 fi
5054 OBJDUMP=$ac_cv_prog_OBJDUMP
5055 if test -n "$OBJDUMP"; then
5056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5057 $as_echo "$OBJDUMP" >&6; }
5058 else
5059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5061 fi
5062
5063
5064 fi
5065 if test -z "$ac_cv_prog_OBJDUMP"; then
5066   ac_ct_OBJDUMP=$OBJDUMP
5067   # Extract the first word of "objdump", so it can be a program name with args.
5068 set dummy objdump; 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 ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5072   $as_echo_n "(cached) " >&6
5073 else
5074   if test -n "$ac_ct_OBJDUMP"; then
5075   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # 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_ac_ct_OBJDUMP="objdump"
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 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5095 if test -n "$ac_ct_OBJDUMP"; then
5096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5097 $as_echo "$ac_ct_OBJDUMP" >&6; }
5098 else
5099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5101 fi
5102
5103   if test "x$ac_ct_OBJDUMP" = x; then
5104     OBJDUMP="false"
5105   else
5106     case $cross_compiling:$ac_tool_warned in
5107 yes:)
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5110 ac_tool_warned=yes ;;
5111 esac
5112     OBJDUMP=$ac_ct_OBJDUMP
5113   fi
5114 else
5115   OBJDUMP="$ac_cv_prog_OBJDUMP"
5116 fi
5117
5118   ;;
5119 esac
5120
5121 test -z "$AS" && AS=as
5122
5123
5124
5125
5126
5127 test -z "$DLLTOOL" && DLLTOOL=dlltool
5128
5129
5130
5131
5132
5133 test -z "$OBJDUMP" && OBJDUMP=objdump
5134
5135
5136
5137
5138
5139
5140
5141
5142 case `pwd` in
5143   *\ * | *\     *)
5144     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5145 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5146 esac
5147
5148
5149
5150 macro_version='2.4'
5151 macro_revision='1.3294'
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165 ltmain="$ac_aux_dir/ltmain.sh"
5166
5167 # Backslashify metacharacters that are still active within
5168 # double-quoted strings.
5169 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5170
5171 # Same as above, but do not quote variable references.
5172 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5173
5174 # Sed substitution to delay expansion of an escaped shell variable in a
5175 # double_quote_subst'ed string.
5176 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5177
5178 # Sed substitution to delay expansion of an escaped single quote.
5179 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5180
5181 # Sed substitution to avoid accidental globbing in evaled expressions
5182 no_glob_subst='s/\*/\\\*/g'
5183
5184 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5185 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5186 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5187
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5189 $as_echo_n "checking how to print strings... " >&6; }
5190 # Test print first, because it will be a builtin if present.
5191 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5192    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5193   ECHO='print -r --'
5194 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5195   ECHO='printf %s\n'
5196 else
5197   # Use this function as a fallback that always works.
5198   func_fallback_echo ()
5199   {
5200     eval 'cat <<_LTECHO_EOF
5201 $1
5202 _LTECHO_EOF'
5203   }
5204   ECHO='func_fallback_echo'
5205 fi
5206
5207 # func_echo_all arg...
5208 # Invoke $ECHO with all args, space-separated.
5209 func_echo_all ()
5210 {
5211     $ECHO ""
5212 }
5213
5214 case "$ECHO" in
5215   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5216 $as_echo "printf" >&6; } ;;
5217   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5218 $as_echo "print -r" >&6; } ;;
5219   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5220 $as_echo "cat" >&6; } ;;
5221 esac
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5237 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5238 if ${ac_cv_path_SED+:} false; then :
5239   $as_echo_n "(cached) " >&6
5240 else
5241             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5242      for ac_i in 1 2 3 4 5 6 7; do
5243        ac_script="$ac_script$as_nl$ac_script"
5244      done
5245      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5246      { ac_script=; unset ac_script;}
5247      if test -z "$SED"; then
5248   ac_path_SED_found=false
5249   # Loop through the user's path and test for each of PROGNAME-LIST
5250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5252 do
5253   IFS=$as_save_IFS
5254   test -z "$as_dir" && as_dir=.
5255     for ac_prog in sed gsed; do
5256     for ac_exec_ext in '' $ac_executable_extensions; do
5257       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5258       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5259 # Check for GNU ac_path_SED and select it if it is found.
5260   # Check for GNU $ac_path_SED
5261 case `"$ac_path_SED" --version 2>&1` in
5262 *GNU*)
5263   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5264 *)
5265   ac_count=0
5266   $as_echo_n 0123456789 >"conftest.in"
5267   while :
5268   do
5269     cat "conftest.in" "conftest.in" >"conftest.tmp"
5270     mv "conftest.tmp" "conftest.in"
5271     cp "conftest.in" "conftest.nl"
5272     $as_echo '' >> "conftest.nl"
5273     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5274     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5275     as_fn_arith $ac_count + 1 && ac_count=$as_val
5276     if test $ac_count -gt ${ac_path_SED_max-0}; then
5277       # Best one so far, save it but keep looking for a better one
5278       ac_cv_path_SED="$ac_path_SED"
5279       ac_path_SED_max=$ac_count
5280     fi
5281     # 10*(2^10) chars as input seems more than enough
5282     test $ac_count -gt 10 && break
5283   done
5284   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5285 esac
5286
5287       $ac_path_SED_found && break 3
5288     done
5289   done
5290   done
5291 IFS=$as_save_IFS
5292   if test -z "$ac_cv_path_SED"; then
5293     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5294   fi
5295 else
5296   ac_cv_path_SED=$SED
5297 fi
5298
5299 fi
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5301 $as_echo "$ac_cv_path_SED" >&6; }
5302  SED="$ac_cv_path_SED"
5303   rm -f conftest.sed
5304
5305 test -z "$SED" && SED=sed
5306 Xsed="$SED -e 1s/^X//"
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5319 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5320 if ${ac_cv_path_GREP+:} false; then :
5321   $as_echo_n "(cached) " >&6
5322 else
5323   if test -z "$GREP"; then
5324   ac_path_GREP_found=false
5325   # Loop through the user's path and test for each of PROGNAME-LIST
5326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5328 do
5329   IFS=$as_save_IFS
5330   test -z "$as_dir" && as_dir=.
5331     for ac_prog in grep ggrep; do
5332     for ac_exec_ext in '' $ac_executable_extensions; do
5333       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5334       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5335 # Check for GNU ac_path_GREP and select it if it is found.
5336   # Check for GNU $ac_path_GREP
5337 case `"$ac_path_GREP" --version 2>&1` in
5338 *GNU*)
5339   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5340 *)
5341   ac_count=0
5342   $as_echo_n 0123456789 >"conftest.in"
5343   while :
5344   do
5345     cat "conftest.in" "conftest.in" >"conftest.tmp"
5346     mv "conftest.tmp" "conftest.in"
5347     cp "conftest.in" "conftest.nl"
5348     $as_echo 'GREP' >> "conftest.nl"
5349     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5350     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5351     as_fn_arith $ac_count + 1 && ac_count=$as_val
5352     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5353       # Best one so far, save it but keep looking for a better one
5354       ac_cv_path_GREP="$ac_path_GREP"
5355       ac_path_GREP_max=$ac_count
5356     fi
5357     # 10*(2^10) chars as input seems more than enough
5358     test $ac_count -gt 10 && break
5359   done
5360   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5361 esac
5362
5363       $ac_path_GREP_found && break 3
5364     done
5365   done
5366   done
5367 IFS=$as_save_IFS
5368   if test -z "$ac_cv_path_GREP"; then
5369     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5370   fi
5371 else
5372   ac_cv_path_GREP=$GREP
5373 fi
5374
5375 fi
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5377 $as_echo "$ac_cv_path_GREP" >&6; }
5378  GREP="$ac_cv_path_GREP"
5379
5380
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5382 $as_echo_n "checking for egrep... " >&6; }
5383 if ${ac_cv_path_EGREP+:} false; then :
5384   $as_echo_n "(cached) " >&6
5385 else
5386   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5387    then ac_cv_path_EGREP="$GREP -E"
5388    else
5389      if test -z "$EGREP"; then
5390   ac_path_EGREP_found=false
5391   # Loop through the user's path and test for each of PROGNAME-LIST
5392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5394 do
5395   IFS=$as_save_IFS
5396   test -z "$as_dir" && as_dir=.
5397     for ac_prog in egrep; do
5398     for ac_exec_ext in '' $ac_executable_extensions; do
5399       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5400       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5401 # Check for GNU ac_path_EGREP and select it if it is found.
5402   # Check for GNU $ac_path_EGREP
5403 case `"$ac_path_EGREP" --version 2>&1` in
5404 *GNU*)
5405   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5406 *)
5407   ac_count=0
5408   $as_echo_n 0123456789 >"conftest.in"
5409   while :
5410   do
5411     cat "conftest.in" "conftest.in" >"conftest.tmp"
5412     mv "conftest.tmp" "conftest.in"
5413     cp "conftest.in" "conftest.nl"
5414     $as_echo 'EGREP' >> "conftest.nl"
5415     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5416     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5417     as_fn_arith $ac_count + 1 && ac_count=$as_val
5418     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5419       # Best one so far, save it but keep looking for a better one
5420       ac_cv_path_EGREP="$ac_path_EGREP"
5421       ac_path_EGREP_max=$ac_count
5422     fi
5423     # 10*(2^10) chars as input seems more than enough
5424     test $ac_count -gt 10 && break
5425   done
5426   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5427 esac
5428
5429       $ac_path_EGREP_found && break 3
5430     done
5431   done
5432   done
5433 IFS=$as_save_IFS
5434   if test -z "$ac_cv_path_EGREP"; then
5435     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5436   fi
5437 else
5438   ac_cv_path_EGREP=$EGREP
5439 fi
5440
5441    fi
5442 fi
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5444 $as_echo "$ac_cv_path_EGREP" >&6; }
5445  EGREP="$ac_cv_path_EGREP"
5446
5447
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5449 $as_echo_n "checking for fgrep... " >&6; }
5450 if ${ac_cv_path_FGREP+:} false; then :
5451   $as_echo_n "(cached) " >&6
5452 else
5453   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5454    then ac_cv_path_FGREP="$GREP -F"
5455    else
5456      if test -z "$FGREP"; then
5457   ac_path_FGREP_found=false
5458   # Loop through the user's path and test for each of PROGNAME-LIST
5459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5461 do
5462   IFS=$as_save_IFS
5463   test -z "$as_dir" && as_dir=.
5464     for ac_prog in fgrep; do
5465     for ac_exec_ext in '' $ac_executable_extensions; do
5466       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5467       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5468 # Check for GNU ac_path_FGREP and select it if it is found.
5469   # Check for GNU $ac_path_FGREP
5470 case `"$ac_path_FGREP" --version 2>&1` in
5471 *GNU*)
5472   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5473 *)
5474   ac_count=0
5475   $as_echo_n 0123456789 >"conftest.in"
5476   while :
5477   do
5478     cat "conftest.in" "conftest.in" >"conftest.tmp"
5479     mv "conftest.tmp" "conftest.in"
5480     cp "conftest.in" "conftest.nl"
5481     $as_echo 'FGREP' >> "conftest.nl"
5482     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5483     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5484     as_fn_arith $ac_count + 1 && ac_count=$as_val
5485     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5486       # Best one so far, save it but keep looking for a better one
5487       ac_cv_path_FGREP="$ac_path_FGREP"
5488       ac_path_FGREP_max=$ac_count
5489     fi
5490     # 10*(2^10) chars as input seems more than enough
5491     test $ac_count -gt 10 && break
5492   done
5493   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5494 esac
5495
5496       $ac_path_FGREP_found && break 3
5497     done
5498   done
5499   done
5500 IFS=$as_save_IFS
5501   if test -z "$ac_cv_path_FGREP"; then
5502     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5503   fi
5504 else
5505   ac_cv_path_FGREP=$FGREP
5506 fi
5507
5508    fi
5509 fi
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5511 $as_echo "$ac_cv_path_FGREP" >&6; }
5512  FGREP="$ac_cv_path_FGREP"
5513
5514
5515 test -z "$GREP" && GREP=grep
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535 # Check whether --with-gnu-ld was given.
5536 if test "${with_gnu_ld+set}" = set; then :
5537   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5538 else
5539   with_gnu_ld=no
5540 fi
5541
5542 ac_prog=ld
5543 if test "$GCC" = yes; then
5544   # Check if gcc -print-prog-name=ld gives a path.
5545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5546 $as_echo_n "checking for ld used by $CC... " >&6; }
5547   case $host in
5548   *-*-mingw*)
5549     # gcc leaves a trailing carriage return which upsets mingw
5550     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5551   *)
5552     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5553   esac
5554   case $ac_prog in
5555     # Accept absolute paths.
5556     [\\/]* | ?:[\\/]*)
5557       re_direlt='/[^/][^/]*/\.\./'
5558       # Canonicalize the pathname of ld
5559       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5560       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5561         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5562       done
5563       test -z "$LD" && LD="$ac_prog"
5564       ;;
5565   "")
5566     # If it fails, then pretend we aren't using GCC.
5567     ac_prog=ld
5568     ;;
5569   *)
5570     # If it is relative, then search for the first ld in PATH.
5571     with_gnu_ld=unknown
5572     ;;
5573   esac
5574 elif test "$with_gnu_ld" = yes; then
5575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5576 $as_echo_n "checking for GNU ld... " >&6; }
5577 else
5578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5579 $as_echo_n "checking for non-GNU ld... " >&6; }
5580 fi
5581 if ${lt_cv_path_LD+:} false; then :
5582   $as_echo_n "(cached) " >&6
5583 else
5584   if test -z "$LD"; then
5585   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5586   for ac_dir in $PATH; do
5587     IFS="$lt_save_ifs"
5588     test -z "$ac_dir" && ac_dir=.
5589     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5590       lt_cv_path_LD="$ac_dir/$ac_prog"
5591       # Check to see if the program is GNU ld.  I'd rather use --version,
5592       # but apparently some variants of GNU ld only accept -v.
5593       # Break only if it was the GNU/non-GNU ld that we prefer.
5594       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5595       *GNU* | *'with BFD'*)
5596         test "$with_gnu_ld" != no && break
5597         ;;
5598       *)
5599         test "$with_gnu_ld" != yes && break
5600         ;;
5601       esac
5602     fi
5603   done
5604   IFS="$lt_save_ifs"
5605 else
5606   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5607 fi
5608 fi
5609
5610 LD="$lt_cv_path_LD"
5611 if test -n "$LD"; then
5612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5613 $as_echo "$LD" >&6; }
5614 else
5615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5617 fi
5618 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5620 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5621 if ${lt_cv_prog_gnu_ld+:} false; then :
5622   $as_echo_n "(cached) " >&6
5623 else
5624   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5625 case `$LD -v 2>&1 </dev/null` in
5626 *GNU* | *'with BFD'*)
5627   lt_cv_prog_gnu_ld=yes
5628   ;;
5629 *)
5630   lt_cv_prog_gnu_ld=no
5631   ;;
5632 esac
5633 fi
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5635 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5636 with_gnu_ld=$lt_cv_prog_gnu_ld
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5647 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5648 if ${lt_cv_path_NM+:} false; then :
5649   $as_echo_n "(cached) " >&6
5650 else
5651   if test -n "$NM"; then
5652   # Let the user override the test.
5653   lt_cv_path_NM="$NM"
5654 else
5655   lt_nm_to_check="${ac_tool_prefix}nm"
5656   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5657     lt_nm_to_check="$lt_nm_to_check nm"
5658   fi
5659   for lt_tmp_nm in $lt_nm_to_check; do
5660     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5661     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5662       IFS="$lt_save_ifs"
5663       test -z "$ac_dir" && ac_dir=.
5664       tmp_nm="$ac_dir/$lt_tmp_nm"
5665       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5666         # Check to see if the nm accepts a BSD-compat flag.
5667         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5668         #   nm: unknown option "B" ignored
5669         # Tru64's nm complains that /dev/null is an invalid object file
5670         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5671         */dev/null* | *'Invalid file or object type'*)
5672           lt_cv_path_NM="$tmp_nm -B"
5673           break
5674           ;;
5675         *)
5676           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5677           */dev/null*)
5678             lt_cv_path_NM="$tmp_nm -p"
5679             break
5680             ;;
5681           *)
5682             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5683             continue # so that we can try to find one that supports BSD flags
5684             ;;
5685           esac
5686           ;;
5687         esac
5688       fi
5689     done
5690     IFS="$lt_save_ifs"
5691   done
5692   : ${lt_cv_path_NM=no}
5693 fi
5694 fi
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5696 $as_echo "$lt_cv_path_NM" >&6; }
5697 if test "$lt_cv_path_NM" != "no"; then
5698   NM="$lt_cv_path_NM"
5699 else
5700   # Didn't find any BSD compatible name lister, look for dumpbin.
5701   if test -n "$DUMPBIN"; then :
5702     # Let the user override the test.
5703   else
5704     if test -n "$ac_tool_prefix"; then
5705   for ac_prog in dumpbin "link -dump"
5706   do
5707     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710 $as_echo_n "checking for $ac_word... " >&6; }
5711 if ${ac_cv_prog_DUMPBIN+:} false; then :
5712   $as_echo_n "(cached) " >&6
5713 else
5714   if test -n "$DUMPBIN"; then
5715   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5716 else
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH
5719 do
5720   IFS=$as_save_IFS
5721   test -z "$as_dir" && as_dir=.
5722     for ac_exec_ext in '' $ac_executable_extensions; do
5723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5724     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5726     break 2
5727   fi
5728 done
5729   done
5730 IFS=$as_save_IFS
5731
5732 fi
5733 fi
5734 DUMPBIN=$ac_cv_prog_DUMPBIN
5735 if test -n "$DUMPBIN"; then
5736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5737 $as_echo "$DUMPBIN" >&6; }
5738 else
5739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 $as_echo "no" >&6; }
5741 fi
5742
5743
5744     test -n "$DUMPBIN" && break
5745   done
5746 fi
5747 if test -z "$DUMPBIN"; then
5748   ac_ct_DUMPBIN=$DUMPBIN
5749   for ac_prog in dumpbin "link -dump"
5750 do
5751   # Extract the first word of "$ac_prog", so it can be a program name with args.
5752 set dummy $ac_prog; ac_word=$2
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754 $as_echo_n "checking for $ac_word... " >&6; }
5755 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5756   $as_echo_n "(cached) " >&6
5757 else
5758   if test -n "$ac_ct_DUMPBIN"; then
5759   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5760 else
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH
5763 do
5764   IFS=$as_save_IFS
5765   test -z "$as_dir" && as_dir=.
5766     for ac_exec_ext in '' $ac_executable_extensions; do
5767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5768     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770     break 2
5771   fi
5772 done
5773   done
5774 IFS=$as_save_IFS
5775
5776 fi
5777 fi
5778 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5779 if test -n "$ac_ct_DUMPBIN"; then
5780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5781 $as_echo "$ac_ct_DUMPBIN" >&6; }
5782 else
5783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784 $as_echo "no" >&6; }
5785 fi
5786
5787
5788   test -n "$ac_ct_DUMPBIN" && break
5789 done
5790
5791   if test "x$ac_ct_DUMPBIN" = x; then
5792     DUMPBIN=":"
5793   else
5794     case $cross_compiling:$ac_tool_warned in
5795 yes:)
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5798 ac_tool_warned=yes ;;
5799 esac
5800     DUMPBIN=$ac_ct_DUMPBIN
5801   fi
5802 fi
5803
5804     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5805     *COFF*)
5806       DUMPBIN="$DUMPBIN -symbols"
5807       ;;
5808     *)
5809       DUMPBIN=:
5810       ;;
5811     esac
5812   fi
5813
5814   if test "$DUMPBIN" != ":"; then
5815     NM="$DUMPBIN"
5816   fi
5817 fi
5818 test -z "$NM" && NM=nm
5819
5820
5821
5822
5823
5824
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5826 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5827 if ${lt_cv_nm_interface+:} false; then :
5828   $as_echo_n "(cached) " >&6
5829 else
5830   lt_cv_nm_interface="BSD nm"
5831   echo "int some_variable = 0;" > conftest.$ac_ext
5832   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5833   (eval "$ac_compile" 2>conftest.err)
5834   cat conftest.err >&5
5835   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5836   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5837   cat conftest.err >&5
5838   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5839   cat conftest.out >&5
5840   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5841     lt_cv_nm_interface="MS dumpbin"
5842   fi
5843   rm -f conftest*
5844 fi
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5846 $as_echo "$lt_cv_nm_interface" >&6; }
5847
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5849 $as_echo_n "checking whether ln -s works... " >&6; }
5850 LN_S=$as_ln_s
5851 if test "$LN_S" = "ln -s"; then
5852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5853 $as_echo "yes" >&6; }
5854 else
5855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5856 $as_echo "no, using $LN_S" >&6; }
5857 fi
5858
5859 # find the maximum length of command line arguments
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5861 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5862 if ${lt_cv_sys_max_cmd_len+:} false; then :
5863   $as_echo_n "(cached) " >&6
5864 else
5865     i=0
5866   teststring="ABCD"
5867
5868   case $build_os in
5869   msdosdjgpp*)
5870     # On DJGPP, this test can blow up pretty badly due to problems in libc
5871     # (any single argument exceeding 2000 bytes causes a buffer overrun
5872     # during glob expansion).  Even if it were fixed, the result of this
5873     # check would be larger than it should be.
5874     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5875     ;;
5876
5877   gnu*)
5878     # Under GNU Hurd, this test is not required because there is
5879     # no limit to the length of command line arguments.
5880     # Libtool will interpret -1 as no limit whatsoever
5881     lt_cv_sys_max_cmd_len=-1;
5882     ;;
5883
5884   cygwin* | mingw* | cegcc*)
5885     # On Win9x/ME, this test blows up -- it succeeds, but takes
5886     # about 5 minutes as the teststring grows exponentially.
5887     # Worse, since 9x/ME are not pre-emptively multitasking,
5888     # you end up with a "frozen" computer, even though with patience
5889     # the test eventually succeeds (with a max line length of 256k).
5890     # Instead, let's just punt: use the minimum linelength reported by
5891     # all of the supported platforms: 8192 (on NT/2K/XP).
5892     lt_cv_sys_max_cmd_len=8192;
5893     ;;
5894
5895   mint*)
5896     # On MiNT this can take a long time and run out of memory.
5897     lt_cv_sys_max_cmd_len=8192;
5898     ;;
5899
5900   amigaos*)
5901     # On AmigaOS with pdksh, this test takes hours, literally.
5902     # So we just punt and use a minimum line length of 8192.
5903     lt_cv_sys_max_cmd_len=8192;
5904     ;;
5905
5906   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5907     # This has been around since 386BSD, at least.  Likely further.
5908     if test -x /sbin/sysctl; then
5909       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5910     elif test -x /usr/sbin/sysctl; then
5911       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5912     else
5913       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5914     fi
5915     # And add a safety zone
5916     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5917     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5918     ;;
5919
5920   interix*)
5921     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5922     lt_cv_sys_max_cmd_len=196608
5923     ;;
5924
5925   osf*)
5926     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5927     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5928     # nice to cause kernel panics so lets avoid the loop below.
5929     # First set a reasonable default.
5930     lt_cv_sys_max_cmd_len=16384
5931     #
5932     if test -x /sbin/sysconfig; then
5933       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5934         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5935       esac
5936     fi
5937     ;;
5938   sco3.2v5*)
5939     lt_cv_sys_max_cmd_len=102400
5940     ;;
5941   sysv5* | sco5v6* | sysv4.2uw2*)
5942     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5943     if test -n "$kargmax"; then
5944       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5945     else
5946       lt_cv_sys_max_cmd_len=32768
5947     fi
5948     ;;
5949   *)
5950     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5951     if test -n "$lt_cv_sys_max_cmd_len"; then
5952       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5953       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5954     else
5955       # Make teststring a little bigger before we do anything with it.
5956       # a 1K string should be a reasonable start.
5957       for i in 1 2 3 4 5 6 7 8 ; do
5958         teststring=$teststring$teststring
5959       done
5960       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5961       # If test is not a shell built-in, we'll probably end up computing a
5962       # maximum length that is only half of the actual maximum length, but
5963       # we can't tell.
5964       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5965                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5966               test $i != 17 # 1/2 MB should be enough
5967       do
5968         i=`expr $i + 1`
5969         teststring=$teststring$teststring
5970       done
5971       # Only check the string length outside the loop.
5972       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5973       teststring=
5974       # Add a significant safety factor because C++ compilers can tack on
5975       # massive amounts of additional arguments before passing them to the
5976       # linker.  It appears as though 1/2 is a usable value.
5977       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5978     fi
5979     ;;
5980   esac
5981
5982 fi
5983
5984 if test -n $lt_cv_sys_max_cmd_len ; then
5985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5986 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5987 else
5988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5989 $as_echo "none" >&6; }
5990 fi
5991 max_cmd_len=$lt_cv_sys_max_cmd_len
5992
5993
5994
5995
5996
5997
5998 : ${CP="cp -f"}
5999 : ${MV="mv -f"}
6000 : ${RM="rm -f"}
6001
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6003 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6004 # Try some XSI features
6005 xsi_shell=no
6006 ( _lt_dummy="a/b/c"
6007   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6008       = c,a/b,b/c, \
6009     && eval 'test $(( 1 + 1 )) -eq 2 \
6010     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6011   && xsi_shell=yes
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6013 $as_echo "$xsi_shell" >&6; }
6014
6015
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6017 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6018 lt_shell_append=no
6019 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6020     >/dev/null 2>&1 \
6021   && lt_shell_append=yes
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6023 $as_echo "$lt_shell_append" >&6; }
6024
6025
6026 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6027   lt_unset=unset
6028 else
6029   lt_unset=false
6030 fi
6031
6032
6033
6034
6035
6036 # test EBCDIC or ASCII
6037 case `echo X|tr X '\101'` in
6038  A) # ASCII based system
6039     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6040   lt_SP2NL='tr \040 \012'
6041   lt_NL2SP='tr \015\012 \040\040'
6042   ;;
6043  *) # EBCDIC based system
6044   lt_SP2NL='tr \100 \n'
6045   lt_NL2SP='tr \r\n \100\100'
6046   ;;
6047 esac
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6058 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6059 if ${lt_cv_to_host_file_cmd+:} false; then :
6060   $as_echo_n "(cached) " >&6
6061 else
6062   case $host in
6063   *-*-mingw* )
6064     case $build in
6065       *-*-mingw* ) # actually msys
6066         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6067         ;;
6068       *-*-cygwin* )
6069         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6070         ;;
6071       * ) # otherwise, assume *nix
6072         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6073         ;;
6074     esac
6075     ;;
6076   *-*-cygwin* )
6077     case $build in
6078       *-*-mingw* ) # actually msys
6079         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6080         ;;
6081       *-*-cygwin* )
6082         lt_cv_to_host_file_cmd=func_convert_file_noop
6083         ;;
6084       * ) # otherwise, assume *nix
6085         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6086         ;;
6087     esac
6088     ;;
6089   * ) # unhandled hosts (and "normal" native builds)
6090     lt_cv_to_host_file_cmd=func_convert_file_noop
6091     ;;
6092 esac
6093
6094 fi
6095
6096 to_host_file_cmd=$lt_cv_to_host_file_cmd
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6098 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6099
6100
6101
6102
6103
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6105 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6106 if ${lt_cv_to_tool_file_cmd+:} false; then :
6107   $as_echo_n "(cached) " >&6
6108 else
6109   #assume ordinary cross tools, or native build.
6110 lt_cv_to_tool_file_cmd=func_convert_file_noop
6111 case $host in
6112   *-*-mingw* )
6113     case $build in
6114       *-*-mingw* ) # actually msys
6115         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6116         ;;
6117     esac
6118     ;;
6119 esac
6120
6121 fi
6122
6123 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6125 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6126
6127
6128
6129
6130
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6132 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6133 if ${lt_cv_ld_reload_flag+:} false; then :
6134   $as_echo_n "(cached) " >&6
6135 else
6136   lt_cv_ld_reload_flag='-r'
6137 fi
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6139 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6140 reload_flag=$lt_cv_ld_reload_flag
6141 case $reload_flag in
6142 "" | " "*) ;;
6143 *) reload_flag=" $reload_flag" ;;
6144 esac
6145 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6146 case $host_os in
6147   cygwin* | mingw* | pw32* | cegcc*)
6148     if test "$GCC" != yes; then
6149       reload_cmds=false
6150     fi
6151     ;;
6152   darwin*)
6153     if test "$GCC" = yes; then
6154       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6155     else
6156       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6157     fi
6158     ;;
6159 esac
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169 if test -n "$ac_tool_prefix"; then
6170   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6171 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173 $as_echo_n "checking for $ac_word... " >&6; }
6174 if ${ac_cv_prog_OBJDUMP+:} false; then :
6175   $as_echo_n "(cached) " >&6
6176 else
6177   if test -n "$OBJDUMP"; then
6178   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6179 else
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6182 do
6183   IFS=$as_save_IFS
6184   test -z "$as_dir" && as_dir=.
6185     for ac_exec_ext in '' $ac_executable_extensions; do
6186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6187     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6189     break 2
6190   fi
6191 done
6192   done
6193 IFS=$as_save_IFS
6194
6195 fi
6196 fi
6197 OBJDUMP=$ac_cv_prog_OBJDUMP
6198 if test -n "$OBJDUMP"; then
6199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6200 $as_echo "$OBJDUMP" >&6; }
6201 else
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203 $as_echo "no" >&6; }
6204 fi
6205
6206
6207 fi
6208 if test -z "$ac_cv_prog_OBJDUMP"; then
6209   ac_ct_OBJDUMP=$OBJDUMP
6210   # Extract the first word of "objdump", so it can be a program name with args.
6211 set dummy objdump; ac_word=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6215   $as_echo_n "(cached) " >&6
6216 else
6217   if test -n "$ac_ct_OBJDUMP"; then
6218   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6222 do
6223   IFS=$as_save_IFS
6224   test -z "$as_dir" && as_dir=.
6225     for ac_exec_ext in '' $ac_executable_extensions; do
6226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229     break 2
6230   fi
6231 done
6232   done
6233 IFS=$as_save_IFS
6234
6235 fi
6236 fi
6237 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6238 if test -n "$ac_ct_OBJDUMP"; then
6239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6240 $as_echo "$ac_ct_OBJDUMP" >&6; }
6241 else
6242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6244 fi
6245
6246   if test "x$ac_ct_OBJDUMP" = x; then
6247     OBJDUMP="false"
6248   else
6249     case $cross_compiling:$ac_tool_warned in
6250 yes:)
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6253 ac_tool_warned=yes ;;
6254 esac
6255     OBJDUMP=$ac_ct_OBJDUMP
6256   fi
6257 else
6258   OBJDUMP="$ac_cv_prog_OBJDUMP"
6259 fi
6260
6261 test -z "$OBJDUMP" && OBJDUMP=objdump
6262
6263
6264
6265
6266
6267
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6269 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6270 if ${lt_cv_deplibs_check_method+:} false; then :
6271   $as_echo_n "(cached) " >&6
6272 else
6273   lt_cv_file_magic_cmd='$MAGIC_CMD'
6274 lt_cv_file_magic_test_file=
6275 lt_cv_deplibs_check_method='unknown'
6276 # Need to set the preceding variable on all platforms that support
6277 # interlibrary dependencies.
6278 # 'none' -- dependencies not supported.
6279 # `unknown' -- same as none, but documents that we really don't know.
6280 # 'pass_all' -- all dependencies passed with no checks.
6281 # 'test_compile' -- check by making test program.
6282 # 'file_magic [[regex]]' -- check by looking for files in library path
6283 # which responds to the $file_magic_cmd with a given extended regex.
6284 # If you have `file' or equivalent on your system and you're not sure
6285 # whether `pass_all' will *always* work, you probably want this one.
6286
6287 case $host_os in
6288 aix[4-9]*)
6289   lt_cv_deplibs_check_method=pass_all
6290   ;;
6291
6292 beos*)
6293   lt_cv_deplibs_check_method=pass_all
6294   ;;
6295
6296 bsdi[45]*)
6297   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6298   lt_cv_file_magic_cmd='/usr/bin/file -L'
6299   lt_cv_file_magic_test_file=/shlib/libc.so
6300   ;;
6301
6302 cygwin*)
6303   # func_win32_libid is a shell function defined in ltmain.sh
6304   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6305   lt_cv_file_magic_cmd='func_win32_libid'
6306   ;;
6307
6308 mingw* | pw32*)
6309   # Base MSYS/MinGW do not provide the 'file' command needed by
6310   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6311   # unless we find 'file', for example because we are cross-compiling.
6312   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6313   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6314     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6315     lt_cv_file_magic_cmd='func_win32_libid'
6316   else
6317     # Keep this pattern in sync with the one in func_win32_libid.
6318     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6319     lt_cv_file_magic_cmd='$OBJDUMP -f'
6320   fi
6321   ;;
6322
6323 cegcc*)
6324   # use the weaker test based on 'objdump'. See mingw*.
6325   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6326   lt_cv_file_magic_cmd='$OBJDUMP -f'
6327   ;;
6328
6329 darwin* | rhapsody*)
6330   lt_cv_deplibs_check_method=pass_all
6331   ;;
6332
6333 freebsd* | dragonfly*)
6334   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6335     case $host_cpu in
6336     i*86 )
6337       # Not sure whether the presence of OpenBSD here was a mistake.
6338       # Let's accept both of them until this is cleared up.
6339       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6340       lt_cv_file_magic_cmd=/usr/bin/file
6341       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6342       ;;
6343     esac
6344   else
6345     lt_cv_deplibs_check_method=pass_all
6346   fi
6347   ;;
6348
6349 gnu*)
6350   lt_cv_deplibs_check_method=pass_all
6351   ;;
6352
6353 haiku*)
6354   lt_cv_deplibs_check_method=pass_all
6355   ;;
6356
6357 hpux10.20* | hpux11*)
6358   lt_cv_file_magic_cmd=/usr/bin/file
6359   case $host_cpu in
6360   ia64*)
6361     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6362     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6363     ;;
6364   hppa*64*)
6365     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6366     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6367     ;;
6368   *)
6369     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6370     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6371     ;;
6372   esac
6373   ;;
6374
6375 interix[3-9]*)
6376   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6377   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6378   ;;
6379
6380 irix5* | irix6* | nonstopux*)
6381   case $LD in
6382   *-32|*"-32 ") libmagic=32-bit;;
6383   *-n32|*"-n32 ") libmagic=N32;;
6384   *-64|*"-64 ") libmagic=64-bit;;
6385   *) libmagic=never-match;;
6386   esac
6387   lt_cv_deplibs_check_method=pass_all
6388   ;;
6389
6390 # This must be Linux ELF.
6391 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6392   lt_cv_deplibs_check_method=pass_all
6393   ;;
6394
6395 netbsd*)
6396   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6397     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6398   else
6399     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6400   fi
6401   ;;
6402
6403 newos6*)
6404   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6405   lt_cv_file_magic_cmd=/usr/bin/file
6406   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6407   ;;
6408
6409 *nto* | *qnx*)
6410   lt_cv_deplibs_check_method=pass_all
6411   ;;
6412
6413 openbsd*)
6414   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6415     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6416   else
6417     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6418   fi
6419   ;;
6420
6421 osf3* | osf4* | osf5*)
6422   lt_cv_deplibs_check_method=pass_all
6423   ;;
6424
6425 rdos*)
6426   lt_cv_deplibs_check_method=pass_all
6427   ;;
6428
6429 solaris*)
6430   lt_cv_deplibs_check_method=pass_all
6431   ;;
6432
6433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6434   lt_cv_deplibs_check_method=pass_all
6435   ;;
6436
6437 sysv4 | sysv4.3*)
6438   case $host_vendor in
6439   motorola)
6440     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]'
6441     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6442     ;;
6443   ncr)
6444     lt_cv_deplibs_check_method=pass_all
6445     ;;
6446   sequent)
6447     lt_cv_file_magic_cmd='/bin/file'
6448     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6449     ;;
6450   sni)
6451     lt_cv_file_magic_cmd='/bin/file'
6452     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6453     lt_cv_file_magic_test_file=/lib/libc.so
6454     ;;
6455   siemens)
6456     lt_cv_deplibs_check_method=pass_all
6457     ;;
6458   pc)
6459     lt_cv_deplibs_check_method=pass_all
6460     ;;
6461   esac
6462   ;;
6463
6464 tpf*)
6465   lt_cv_deplibs_check_method=pass_all
6466   ;;
6467 esac
6468
6469 fi
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6471 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6472
6473 file_magic_glob=
6474 want_nocaseglob=no
6475 if test "$build" = "$host"; then
6476   case $host_os in
6477   mingw* | pw32*)
6478     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6479       want_nocaseglob=yes
6480     else
6481       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6482     fi
6483     ;;
6484   esac
6485 fi
6486
6487 file_magic_cmd=$lt_cv_file_magic_cmd
6488 deplibs_check_method=$lt_cv_deplibs_check_method
6489 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512 if test -n "$ac_tool_prefix"; then
6513   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6514 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516 $as_echo_n "checking for $ac_word... " >&6; }
6517 if ${ac_cv_prog_DLLTOOL+:} false; then :
6518   $as_echo_n "(cached) " >&6
6519 else
6520   if test -n "$DLLTOOL"; then
6521   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6522 else
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 for as_dir in $PATH
6525 do
6526   IFS=$as_save_IFS
6527   test -z "$as_dir" && as_dir=.
6528     for ac_exec_ext in '' $ac_executable_extensions; do
6529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6530     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6532     break 2
6533   fi
6534 done
6535   done
6536 IFS=$as_save_IFS
6537
6538 fi
6539 fi
6540 DLLTOOL=$ac_cv_prog_DLLTOOL
6541 if test -n "$DLLTOOL"; then
6542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6543 $as_echo "$DLLTOOL" >&6; }
6544 else
6545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546 $as_echo "no" >&6; }
6547 fi
6548
6549
6550 fi
6551 if test -z "$ac_cv_prog_DLLTOOL"; then
6552   ac_ct_DLLTOOL=$DLLTOOL
6553   # Extract the first word of "dlltool", so it can be a program name with args.
6554 set dummy dlltool; ac_word=$2
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6558   $as_echo_n "(cached) " >&6
6559 else
6560   if test -n "$ac_ct_DLLTOOL"; then
6561   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6562 else
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH
6565 do
6566   IFS=$as_save_IFS
6567   test -z "$as_dir" && as_dir=.
6568     for ac_exec_ext in '' $ac_executable_extensions; do
6569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6570     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572     break 2
6573   fi
6574 done
6575   done
6576 IFS=$as_save_IFS
6577
6578 fi
6579 fi
6580 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6581 if test -n "$ac_ct_DLLTOOL"; then
6582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6583 $as_echo "$ac_ct_DLLTOOL" >&6; }
6584 else
6585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586 $as_echo "no" >&6; }
6587 fi
6588
6589   if test "x$ac_ct_DLLTOOL" = x; then
6590     DLLTOOL="false"
6591   else
6592     case $cross_compiling:$ac_tool_warned in
6593 yes:)
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6596 ac_tool_warned=yes ;;
6597 esac
6598     DLLTOOL=$ac_ct_DLLTOOL
6599   fi
6600 else
6601   DLLTOOL="$ac_cv_prog_DLLTOOL"
6602 fi
6603
6604 test -z "$DLLTOOL" && DLLTOOL=dlltool
6605
6606
6607
6608
6609
6610
6611
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6613 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6614 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6615   $as_echo_n "(cached) " >&6
6616 else
6617   lt_cv_sharedlib_from_linklib_cmd='unknown'
6618
6619 case $host_os in
6620 cygwin* | mingw* | pw32* | cegcc*)
6621   # two different shell functions defined in ltmain.sh
6622   # decide which to use based on capabilities of $DLLTOOL
6623   case `$DLLTOOL --help 2>&1` in
6624   *--identify-strict*)
6625     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6626     ;;
6627   *)
6628     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6629     ;;
6630   esac
6631   ;;
6632 *)
6633   # fallback: assume linklib IS sharedlib
6634   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6635   ;;
6636 esac
6637
6638 fi
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6640 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6641 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6642 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6643
6644
6645
6646
6647
6648
6649
6650
6651 if test -n "$ac_tool_prefix"; then
6652   for ac_prog in ar
6653   do
6654     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if ${ac_cv_prog_AR+:} false; then :
6659   $as_echo_n "(cached) " >&6
6660 else
6661   if test -n "$AR"; then
6662   ac_cv_prog_AR="$AR" # Let the user override the test.
6663 else
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 for as_dir in $PATH
6666 do
6667   IFS=$as_save_IFS
6668   test -z "$as_dir" && as_dir=.
6669     for ac_exec_ext in '' $ac_executable_extensions; do
6670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6671     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673     break 2
6674   fi
6675 done
6676   done
6677 IFS=$as_save_IFS
6678
6679 fi
6680 fi
6681 AR=$ac_cv_prog_AR
6682 if test -n "$AR"; then
6683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6684 $as_echo "$AR" >&6; }
6685 else
6686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687 $as_echo "no" >&6; }
6688 fi
6689
6690
6691     test -n "$AR" && break
6692   done
6693 fi
6694 if test -z "$AR"; then
6695   ac_ct_AR=$AR
6696   for ac_prog in ar
6697 do
6698   # Extract the first word of "$ac_prog", so it can be a program name with args.
6699 set dummy $ac_prog; ac_word=$2
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6701 $as_echo_n "checking for $ac_word... " >&6; }
6702 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6703   $as_echo_n "(cached) " >&6
6704 else
6705   if test -n "$ac_ct_AR"; then
6706   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6707 else
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6710 do
6711   IFS=$as_save_IFS
6712   test -z "$as_dir" && as_dir=.
6713     for ac_exec_ext in '' $ac_executable_extensions; do
6714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6715     ac_cv_prog_ac_ct_AR="$ac_prog"
6716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6717     break 2
6718   fi
6719 done
6720   done
6721 IFS=$as_save_IFS
6722
6723 fi
6724 fi
6725 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6726 if test -n "$ac_ct_AR"; then
6727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6728 $as_echo "$ac_ct_AR" >&6; }
6729 else
6730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731 $as_echo "no" >&6; }
6732 fi
6733
6734
6735   test -n "$ac_ct_AR" && break
6736 done
6737
6738   if test "x$ac_ct_AR" = x; then
6739     AR="false"
6740   else
6741     case $cross_compiling:$ac_tool_warned in
6742 yes:)
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6745 ac_tool_warned=yes ;;
6746 esac
6747     AR=$ac_ct_AR
6748   fi
6749 fi
6750
6751 : ${AR=ar}
6752 : ${AR_FLAGS=cru}
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6765 $as_echo_n "checking for archiver @FILE support... " >&6; }
6766 if ${lt_cv_ar_at_file+:} false; then :
6767   $as_echo_n "(cached) " >&6
6768 else
6769   lt_cv_ar_at_file=no
6770    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6771 /* end confdefs.h.  */
6772
6773 int
6774 main ()
6775 {
6776
6777   ;
6778   return 0;
6779 }
6780 _ACEOF
6781 if ac_fn_c_try_compile "$LINENO"; then :
6782   echo conftest.$ac_objext > conftest.lst
6783       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6784       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6785   (eval $lt_ar_try) 2>&5
6786   ac_status=$?
6787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6788   test $ac_status = 0; }
6789       if test "$ac_status" -eq 0; then
6790         # Ensure the archiver fails upon bogus file names.
6791         rm -f conftest.$ac_objext libconftest.a
6792         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6793   (eval $lt_ar_try) 2>&5
6794   ac_status=$?
6795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6796   test $ac_status = 0; }
6797         if test "$ac_status" -ne 0; then
6798           lt_cv_ar_at_file=@
6799         fi
6800       fi
6801       rm -f conftest.* libconftest.a
6802
6803 fi
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805
6806 fi
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6808 $as_echo "$lt_cv_ar_at_file" >&6; }
6809
6810 if test "x$lt_cv_ar_at_file" = xno; then
6811   archiver_list_spec=
6812 else
6813   archiver_list_spec=$lt_cv_ar_at_file
6814 fi
6815
6816
6817
6818
6819
6820
6821
6822 if test -n "$ac_tool_prefix"; then
6823   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6824 set dummy ${ac_tool_prefix}strip; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if ${ac_cv_prog_STRIP+:} false; then :
6828   $as_echo_n "(cached) " >&6
6829 else
6830   if test -n "$STRIP"; then
6831   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836   IFS=$as_save_IFS
6837   test -z "$as_dir" && as_dir=.
6838     for ac_exec_ext in '' $ac_executable_extensions; do
6839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842     break 2
6843   fi
6844 done
6845   done
6846 IFS=$as_save_IFS
6847
6848 fi
6849 fi
6850 STRIP=$ac_cv_prog_STRIP
6851 if test -n "$STRIP"; then
6852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6853 $as_echo "$STRIP" >&6; }
6854 else
6855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6857 fi
6858
6859
6860 fi
6861 if test -z "$ac_cv_prog_STRIP"; then
6862   ac_ct_STRIP=$STRIP
6863   # Extract the first word of "strip", so it can be a program name with args.
6864 set dummy strip; ac_word=$2
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866 $as_echo_n "checking for $ac_word... " >&6; }
6867 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6868   $as_echo_n "(cached) " >&6
6869 else
6870   if test -n "$ac_ct_STRIP"; then
6871   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6872 else
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6875 do
6876   IFS=$as_save_IFS
6877   test -z "$as_dir" && as_dir=.
6878     for ac_exec_ext in '' $ac_executable_extensions; do
6879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880     ac_cv_prog_ac_ct_STRIP="strip"
6881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882     break 2
6883   fi
6884 done
6885   done
6886 IFS=$as_save_IFS
6887
6888 fi
6889 fi
6890 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6891 if test -n "$ac_ct_STRIP"; then
6892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6893 $as_echo "$ac_ct_STRIP" >&6; }
6894 else
6895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6897 fi
6898
6899   if test "x$ac_ct_STRIP" = x; then
6900     STRIP=":"
6901   else
6902     case $cross_compiling:$ac_tool_warned in
6903 yes:)
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6906 ac_tool_warned=yes ;;
6907 esac
6908     STRIP=$ac_ct_STRIP
6909   fi
6910 else
6911   STRIP="$ac_cv_prog_STRIP"
6912 fi
6913
6914 test -z "$STRIP" && STRIP=:
6915
6916
6917
6918
6919
6920
6921 if test -n "$ac_tool_prefix"; then
6922   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6923 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6925 $as_echo_n "checking for $ac_word... " >&6; }
6926 if ${ac_cv_prog_RANLIB+:} false; then :
6927   $as_echo_n "(cached) " >&6
6928 else
6929   if test -n "$RANLIB"; then
6930   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6931 else
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 for as_dir in $PATH
6934 do
6935   IFS=$as_save_IFS
6936   test -z "$as_dir" && as_dir=.
6937     for ac_exec_ext in '' $ac_executable_extensions; do
6938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6939     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6941     break 2
6942   fi
6943 done
6944   done
6945 IFS=$as_save_IFS
6946
6947 fi
6948 fi
6949 RANLIB=$ac_cv_prog_RANLIB
6950 if test -n "$RANLIB"; then
6951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6952 $as_echo "$RANLIB" >&6; }
6953 else
6954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6955 $as_echo "no" >&6; }
6956 fi
6957
6958
6959 fi
6960 if test -z "$ac_cv_prog_RANLIB"; then
6961   ac_ct_RANLIB=$RANLIB
6962   # Extract the first word of "ranlib", so it can be a program name with args.
6963 set dummy ranlib; ac_word=$2
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6965 $as_echo_n "checking for $ac_word... " >&6; }
6966 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6967   $as_echo_n "(cached) " >&6
6968 else
6969   if test -n "$ac_ct_RANLIB"; then
6970   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6971 else
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6974 do
6975   IFS=$as_save_IFS
6976   test -z "$as_dir" && as_dir=.
6977     for ac_exec_ext in '' $ac_executable_extensions; do
6978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6979     ac_cv_prog_ac_ct_RANLIB="ranlib"
6980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6981     break 2
6982   fi
6983 done
6984   done
6985 IFS=$as_save_IFS
6986
6987 fi
6988 fi
6989 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6990 if test -n "$ac_ct_RANLIB"; then
6991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6992 $as_echo "$ac_ct_RANLIB" >&6; }
6993 else
6994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
6996 fi
6997
6998   if test "x$ac_ct_RANLIB" = x; then
6999     RANLIB=":"
7000   else
7001     case $cross_compiling:$ac_tool_warned in
7002 yes:)
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7005 ac_tool_warned=yes ;;
7006 esac
7007     RANLIB=$ac_ct_RANLIB
7008   fi
7009 else
7010   RANLIB="$ac_cv_prog_RANLIB"
7011 fi
7012
7013 test -z "$RANLIB" && RANLIB=:
7014
7015
7016
7017
7018
7019
7020 # Determine commands to create old-style static archives.
7021 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7022 old_postinstall_cmds='chmod 644 $oldlib'
7023 old_postuninstall_cmds=
7024
7025 if test -n "$RANLIB"; then
7026   case $host_os in
7027   openbsd*)
7028     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7029     ;;
7030   *)
7031     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7032     ;;
7033   esac
7034   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7035 fi
7036
7037 case $host_os in
7038   darwin*)
7039     lock_old_archive_extraction=yes ;;
7040   *)
7041     lock_old_archive_extraction=no ;;
7042 esac
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082 # If no C compiler was specified, use CC.
7083 LTCC=${LTCC-"$CC"}
7084
7085 # If no C compiler flags were specified, use CFLAGS.
7086 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7087
7088 # Allow CC to be a program name with arguments.
7089 compiler=$CC
7090
7091
7092 # Check for command to grab the raw symbol name followed by C symbol from nm.
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7094 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7095 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7096   $as_echo_n "(cached) " >&6
7097 else
7098
7099 # These are sane defaults that work on at least a few old systems.
7100 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7101
7102 # Character class describing NM global symbol codes.
7103 symcode='[BCDEGRST]'
7104
7105 # Regexp to match symbols that can be accessed directly from C.
7106 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7107
7108 # Define system-specific variables.
7109 case $host_os in
7110 aix*)
7111   symcode='[BCDT]'
7112   ;;
7113 cygwin* | mingw* | pw32* | cegcc*)
7114   symcode='[ABCDGISTW]'
7115   ;;
7116 hpux*)
7117   if test "$host_cpu" = ia64; then
7118     symcode='[ABCDEGRST]'
7119   fi
7120   ;;
7121 irix* | nonstopux*)
7122   symcode='[BCDEGRST]'
7123   ;;
7124 osf*)
7125   symcode='[BCDEGQRST]'
7126   ;;
7127 solaris*)
7128   symcode='[BDRT]'
7129   ;;
7130 sco3.2v5*)
7131   symcode='[DT]'
7132   ;;
7133 sysv4.2uw2*)
7134   symcode='[DT]'
7135   ;;
7136 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7137   symcode='[ABDT]'
7138   ;;
7139 sysv4)
7140   symcode='[DFNSTU]'
7141   ;;
7142 esac
7143
7144 # If we're using GNU nm, then use its standard symbol codes.
7145 case `$NM -V 2>&1` in
7146 *GNU* | *'with BFD'*)
7147   symcode='[ABCDGIRSTW]' ;;
7148 esac
7149
7150 # Transform an extracted symbol line into a proper C declaration.
7151 # Some systems (esp. on ia64) link data and code symbols differently,
7152 # so use this general approach.
7153 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7154
7155 # Transform an extracted symbol line into symbol name and symbol address
7156 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7157 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'"
7158
7159 # Handle CRLF in mingw tool chain
7160 opt_cr=
7161 case $build_os in
7162 mingw*)
7163   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7164   ;;
7165 esac
7166
7167 # Try without a prefix underscore, then with it.
7168 for ac_symprfx in "" "_"; do
7169
7170   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7171   symxfrm="\\1 $ac_symprfx\\2 \\2"
7172
7173   # Write the raw and C identifiers.
7174   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7175     # Fake it for dumpbin and say T for any non-static function
7176     # and D for any global variable.
7177     # Also find C++ and __fastcall symbols from MSVC++,
7178     # which start with @ or ?.
7179     lt_cv_sys_global_symbol_pipe="$AWK '"\
7180 "     {last_section=section; section=\$ 3};"\
7181 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7182 "     \$ 0!~/External *\|/{next};"\
7183 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7184 "     {if(hide[section]) next};"\
7185 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7186 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7187 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7188 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7189 "     ' prfx=^$ac_symprfx"
7190   else
7191     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7192   fi
7193   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7194
7195   # Check to see that the pipe works correctly.
7196   pipe_works=no
7197
7198   rm -f conftest*
7199   cat > conftest.$ac_ext <<_LT_EOF
7200 #ifdef __cplusplus
7201 extern "C" {
7202 #endif
7203 char nm_test_var;
7204 void nm_test_func(void);
7205 void nm_test_func(void){}
7206 #ifdef __cplusplus
7207 }
7208 #endif
7209 int main(){nm_test_var='a';nm_test_func();return(0);}
7210 _LT_EOF
7211
7212   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7213   (eval $ac_compile) 2>&5
7214   ac_status=$?
7215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7216   test $ac_status = 0; }; then
7217     # Now try to grab the symbols.
7218     nlist=conftest.nm
7219     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7220   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7221   ac_status=$?
7222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7223   test $ac_status = 0; } && test -s "$nlist"; then
7224       # Try sorting and uniquifying the output.
7225       if sort "$nlist" | uniq > "$nlist"T; then
7226         mv -f "$nlist"T "$nlist"
7227       else
7228         rm -f "$nlist"T
7229       fi
7230
7231       # Make sure that we snagged all the symbols we need.
7232       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7233         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7234           cat <<_LT_EOF > conftest.$ac_ext
7235 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7236 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7237 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7238    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7239 # define LT_DLSYM_CONST
7240 #elif defined(__osf__)
7241 /* This system does not cope well with relocations in const data.  */
7242 # define LT_DLSYM_CONST
7243 #else
7244 # define LT_DLSYM_CONST const
7245 #endif
7246
7247 #ifdef __cplusplus
7248 extern "C" {
7249 #endif
7250
7251 _LT_EOF
7252           # Now generate the symbol file.
7253           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7254
7255           cat <<_LT_EOF >> conftest.$ac_ext
7256
7257 /* The mapping between symbol names and symbols.  */
7258 LT_DLSYM_CONST struct {
7259   const char *name;
7260   void       *address;
7261 }
7262 lt__PROGRAM__LTX_preloaded_symbols[] =
7263 {
7264   { "@PROGRAM@", (void *) 0 },
7265 _LT_EOF
7266           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7267           cat <<\_LT_EOF >> conftest.$ac_ext
7268   {0, (void *) 0}
7269 };
7270
7271 /* This works around a problem in FreeBSD linker */
7272 #ifdef FREEBSD_WORKAROUND
7273 static const void *lt_preloaded_setup() {
7274   return lt__PROGRAM__LTX_preloaded_symbols;
7275 }
7276 #endif
7277
7278 #ifdef __cplusplus
7279 }
7280 #endif
7281 _LT_EOF
7282           # Now try linking the two files.
7283           mv conftest.$ac_objext conftstm.$ac_objext
7284           lt_globsym_save_LIBS=$LIBS
7285           lt_globsym_save_CFLAGS=$CFLAGS
7286           LIBS="conftstm.$ac_objext"
7287           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7288           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7289   (eval $ac_link) 2>&5
7290   ac_status=$?
7291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7292   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7293             pipe_works=yes
7294           fi
7295           LIBS=$lt_globsym_save_LIBS
7296           CFLAGS=$lt_globsym_save_CFLAGS
7297         else
7298           echo "cannot find nm_test_func in $nlist" >&5
7299         fi
7300       else
7301         echo "cannot find nm_test_var in $nlist" >&5
7302       fi
7303     else
7304       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7305     fi
7306   else
7307     echo "$progname: failed program was:" >&5
7308     cat conftest.$ac_ext >&5
7309   fi
7310   rm -rf conftest* conftst*
7311
7312   # Do not use the global_symbol_pipe unless it works.
7313   if test "$pipe_works" = yes; then
7314     break
7315   else
7316     lt_cv_sys_global_symbol_pipe=
7317   fi
7318 done
7319
7320 fi
7321
7322 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7323   lt_cv_sys_global_symbol_to_cdecl=
7324 fi
7325 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7327 $as_echo "failed" >&6; }
7328 else
7329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7330 $as_echo "ok" >&6; }
7331 fi
7332
7333 # Response file support.
7334 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7335   nm_file_list_spec='@'
7336 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7337   nm_file_list_spec='@'
7338 fi
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7367 $as_echo_n "checking for sysroot... " >&6; }
7368
7369 # Check whether --with-sysroot was given.
7370 if test "${with_sysroot+set}" = set; then :
7371   withval=$with_sysroot;
7372 else
7373   with_sysroot=no
7374 fi
7375
7376
7377 lt_sysroot=
7378 case ${with_sysroot} in #(
7379  yes)
7380    if test "$GCC" = yes; then
7381      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7382    fi
7383    ;; #(
7384  /*)
7385    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7386    ;; #(
7387  no|'')
7388    ;; #(
7389  *)
7390    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7391 $as_echo "${with_sysroot}" >&6; }
7392    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7393    ;;
7394 esac
7395
7396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7397 $as_echo "${lt_sysroot:-no}" >&6; }
7398
7399
7400
7401
7402
7403 # Check whether --enable-libtool-lock was given.
7404 if test "${enable_libtool_lock+set}" = set; then :
7405   enableval=$enable_libtool_lock;
7406 fi
7407
7408 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7409
7410 # Some flags need to be propagated to the compiler or linker for good
7411 # libtool support.
7412 case $host in
7413 ia64-*-hpux*)
7414   # Find out which ABI we are using.
7415   echo 'int i;' > conftest.$ac_ext
7416   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7417   (eval $ac_compile) 2>&5
7418   ac_status=$?
7419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7420   test $ac_status = 0; }; then
7421     case `/usr/bin/file conftest.$ac_objext` in
7422       *ELF-32*)
7423         HPUX_IA64_MODE="32"
7424         ;;
7425       *ELF-64*)
7426         HPUX_IA64_MODE="64"
7427         ;;
7428     esac
7429   fi
7430   rm -rf conftest*
7431   ;;
7432 *-*-irix6*)
7433   # Find out which ABI we are using.
7434   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7435   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7436   (eval $ac_compile) 2>&5
7437   ac_status=$?
7438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7439   test $ac_status = 0; }; then
7440     if test "$lt_cv_prog_gnu_ld" = yes; then
7441       case `/usr/bin/file conftest.$ac_objext` in
7442         *32-bit*)
7443           LD="${LD-ld} -melf32bsmip"
7444           ;;
7445         *N32*)
7446           LD="${LD-ld} -melf32bmipn32"
7447           ;;
7448         *64-bit*)
7449           LD="${LD-ld} -melf64bmip"
7450         ;;
7451       esac
7452     else
7453       case `/usr/bin/file conftest.$ac_objext` in
7454         *32-bit*)
7455           LD="${LD-ld} -32"
7456           ;;
7457         *N32*)
7458           LD="${LD-ld} -n32"
7459           ;;
7460         *64-bit*)
7461           LD="${LD-ld} -64"
7462           ;;
7463       esac
7464     fi
7465   fi
7466   rm -rf conftest*
7467   ;;
7468
7469 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7470 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7471   # Find out which ABI we are using.
7472   echo 'int i;' > conftest.$ac_ext
7473   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7474   (eval $ac_compile) 2>&5
7475   ac_status=$?
7476   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7477   test $ac_status = 0; }; then
7478     case `/usr/bin/file conftest.o` in
7479       *32-bit*)
7480         case $host in
7481           x86_64-*kfreebsd*-gnu)
7482             LD="${LD-ld} -m elf_i386_fbsd"
7483             ;;
7484           x86_64-*linux*)
7485             LD="${LD-ld} -m elf_i386"
7486             ;;
7487           ppc64-*linux*|powerpc64-*linux*)
7488             LD="${LD-ld} -m elf32ppclinux"
7489             ;;
7490           s390x-*linux*)
7491             LD="${LD-ld} -m elf_s390"
7492             ;;
7493           sparc64-*linux*)
7494             LD="${LD-ld} -m elf32_sparc"
7495             ;;
7496         esac
7497         ;;
7498       *64-bit*)
7499         case $host in
7500           x86_64-*kfreebsd*-gnu)
7501             LD="${LD-ld} -m elf_x86_64_fbsd"
7502             ;;
7503           x86_64-*linux*)
7504             LD="${LD-ld} -m elf_x86_64"
7505             ;;
7506           ppc*-*linux*|powerpc*-*linux*)
7507             LD="${LD-ld} -m elf64ppc"
7508             ;;
7509           s390*-*linux*|s390*-*tpf*)
7510             LD="${LD-ld} -m elf64_s390"
7511             ;;
7512           sparc*-*linux*)
7513             LD="${LD-ld} -m elf64_sparc"
7514             ;;
7515         esac
7516         ;;
7517     esac
7518   fi
7519   rm -rf conftest*
7520   ;;
7521
7522 *-*-sco3.2v5*)
7523   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7524   SAVE_CFLAGS="$CFLAGS"
7525   CFLAGS="$CFLAGS -belf"
7526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7527 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7528 if ${lt_cv_cc_needs_belf+:} false; then :
7529   $as_echo_n "(cached) " >&6
7530 else
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      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h.  */
7539
7540 int
7541 main ()
7542 {
7543
7544   ;
7545   return 0;
7546 }
7547 _ACEOF
7548 if ac_fn_c_try_link "$LINENO"; then :
7549   lt_cv_cc_needs_belf=yes
7550 else
7551   lt_cv_cc_needs_belf=no
7552 fi
7553 rm -f core conftest.err conftest.$ac_objext \
7554     conftest$ac_exeext conftest.$ac_ext
7555      ac_ext=c
7556 ac_cpp='$CPP $CPPFLAGS'
7557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7560
7561 fi
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7563 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7564   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7565     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7566     CFLAGS="$SAVE_CFLAGS"
7567   fi
7568   ;;
7569 sparc*-*solaris*)
7570   # Find out which ABI we are using.
7571   echo 'int i;' > conftest.$ac_ext
7572   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7573   (eval $ac_compile) 2>&5
7574   ac_status=$?
7575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7576   test $ac_status = 0; }; then
7577     case `/usr/bin/file conftest.o` in
7578     *64-bit*)
7579       case $lt_cv_prog_gnu_ld in
7580       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7581       *)
7582         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7583           LD="${LD-ld} -64"
7584         fi
7585         ;;
7586       esac
7587       ;;
7588     esac
7589   fi
7590   rm -rf conftest*
7591   ;;
7592 esac
7593
7594 need_locks="$enable_libtool_lock"
7595
7596 if test -n "$ac_tool_prefix"; then
7597   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7598 set dummy ${ac_tool_prefix}mt; ac_word=$2
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600 $as_echo_n "checking for $ac_word... " >&6; }
7601 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7602   $as_echo_n "(cached) " >&6
7603 else
7604   if test -n "$MANIFEST_TOOL"; then
7605   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7606 else
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH
7609 do
7610   IFS=$as_save_IFS
7611   test -z "$as_dir" && as_dir=.
7612     for ac_exec_ext in '' $ac_executable_extensions; do
7613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7614     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616     break 2
7617   fi
7618 done
7619   done
7620 IFS=$as_save_IFS
7621
7622 fi
7623 fi
7624 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7625 if test -n "$MANIFEST_TOOL"; then
7626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7627 $as_echo "$MANIFEST_TOOL" >&6; }
7628 else
7629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7631 fi
7632
7633
7634 fi
7635 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7636   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7637   # Extract the first word of "mt", so it can be a program name with args.
7638 set dummy mt; ac_word=$2
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640 $as_echo_n "checking for $ac_word... " >&6; }
7641 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7642   $as_echo_n "(cached) " >&6
7643 else
7644   if test -n "$ac_ct_MANIFEST_TOOL"; then
7645   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7646 else
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 for as_dir in $PATH
7649 do
7650   IFS=$as_save_IFS
7651   test -z "$as_dir" && as_dir=.
7652     for ac_exec_ext in '' $ac_executable_extensions; do
7653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7654     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656     break 2
7657   fi
7658 done
7659   done
7660 IFS=$as_save_IFS
7661
7662 fi
7663 fi
7664 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7665 if test -n "$ac_ct_MANIFEST_TOOL"; then
7666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7667 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7668 else
7669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7671 fi
7672
7673   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7674     MANIFEST_TOOL=":"
7675   else
7676     case $cross_compiling:$ac_tool_warned in
7677 yes:)
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7680 ac_tool_warned=yes ;;
7681 esac
7682     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7683   fi
7684 else
7685   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7686 fi
7687
7688 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7690 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7691 if ${lt_cv_path_mainfest_tool+:} false; then :
7692   $as_echo_n "(cached) " >&6
7693 else
7694   lt_cv_path_mainfest_tool=no
7695   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7696   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7697   cat conftest.err >&5
7698   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7699     lt_cv_path_mainfest_tool=yes
7700   fi
7701   rm -f conftest*
7702 fi
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7704 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7705 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7706   MANIFEST_TOOL=:
7707 fi
7708
7709
7710
7711
7712
7713
7714   case $host_os in
7715     rhapsody* | darwin*)
7716     if test -n "$ac_tool_prefix"; then
7717   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7718 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7722   $as_echo_n "(cached) " >&6
7723 else
7724   if test -n "$DSYMUTIL"; then
7725   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730   IFS=$as_save_IFS
7731   test -z "$as_dir" && as_dir=.
7732     for ac_exec_ext in '' $ac_executable_extensions; do
7733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7734     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736     break 2
7737   fi
7738 done
7739   done
7740 IFS=$as_save_IFS
7741
7742 fi
7743 fi
7744 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7745 if test -n "$DSYMUTIL"; then
7746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7747 $as_echo "$DSYMUTIL" >&6; }
7748 else
7749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753
7754 fi
7755 if test -z "$ac_cv_prog_DSYMUTIL"; then
7756   ac_ct_DSYMUTIL=$DSYMUTIL
7757   # Extract the first word of "dsymutil", so it can be a program name with args.
7758 set dummy dsymutil; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7762   $as_echo_n "(cached) " >&6
7763 else
7764   if test -n "$ac_ct_DSYMUTIL"; then
7765   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7766 else
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7769 do
7770   IFS=$as_save_IFS
7771   test -z "$as_dir" && as_dir=.
7772     for ac_exec_ext in '' $ac_executable_extensions; do
7773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7774     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776     break 2
7777   fi
7778 done
7779   done
7780 IFS=$as_save_IFS
7781
7782 fi
7783 fi
7784 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7785 if test -n "$ac_ct_DSYMUTIL"; then
7786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7787 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7788 else
7789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7791 fi
7792
7793   if test "x$ac_ct_DSYMUTIL" = x; then
7794     DSYMUTIL=":"
7795   else
7796     case $cross_compiling:$ac_tool_warned in
7797 yes:)
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7800 ac_tool_warned=yes ;;
7801 esac
7802     DSYMUTIL=$ac_ct_DSYMUTIL
7803   fi
7804 else
7805   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7806 fi
7807
7808     if test -n "$ac_tool_prefix"; then
7809   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7810 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if ${ac_cv_prog_NMEDIT+:} false; then :
7814   $as_echo_n "(cached) " >&6
7815 else
7816   if test -n "$NMEDIT"; then
7817   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7818 else
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7821 do
7822   IFS=$as_save_IFS
7823   test -z "$as_dir" && as_dir=.
7824     for ac_exec_ext in '' $ac_executable_extensions; do
7825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828     break 2
7829   fi
7830 done
7831   done
7832 IFS=$as_save_IFS
7833
7834 fi
7835 fi
7836 NMEDIT=$ac_cv_prog_NMEDIT
7837 if test -n "$NMEDIT"; then
7838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7839 $as_echo "$NMEDIT" >&6; }
7840 else
7841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7843 fi
7844
7845
7846 fi
7847 if test -z "$ac_cv_prog_NMEDIT"; then
7848   ac_ct_NMEDIT=$NMEDIT
7849   # Extract the first word of "nmedit", so it can be a program name with args.
7850 set dummy nmedit; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7854   $as_echo_n "(cached) " >&6
7855 else
7856   if test -n "$ac_ct_NMEDIT"; then
7857   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7858 else
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862   IFS=$as_save_IFS
7863   test -z "$as_dir" && as_dir=.
7864     for ac_exec_ext in '' $ac_executable_extensions; do
7865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7866     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868     break 2
7869   fi
7870 done
7871   done
7872 IFS=$as_save_IFS
7873
7874 fi
7875 fi
7876 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7877 if test -n "$ac_ct_NMEDIT"; then
7878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7879 $as_echo "$ac_ct_NMEDIT" >&6; }
7880 else
7881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7883 fi
7884
7885   if test "x$ac_ct_NMEDIT" = x; then
7886     NMEDIT=":"
7887   else
7888     case $cross_compiling:$ac_tool_warned in
7889 yes:)
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7892 ac_tool_warned=yes ;;
7893 esac
7894     NMEDIT=$ac_ct_NMEDIT
7895   fi
7896 else
7897   NMEDIT="$ac_cv_prog_NMEDIT"
7898 fi
7899
7900     if test -n "$ac_tool_prefix"; then
7901   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7902 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7904 $as_echo_n "checking for $ac_word... " >&6; }
7905 if ${ac_cv_prog_LIPO+:} false; then :
7906   $as_echo_n "(cached) " >&6
7907 else
7908   if test -n "$LIPO"; then
7909   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7910 else
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7913 do
7914   IFS=$as_save_IFS
7915   test -z "$as_dir" && as_dir=.
7916     for ac_exec_ext in '' $ac_executable_extensions; do
7917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7918     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7920     break 2
7921   fi
7922 done
7923   done
7924 IFS=$as_save_IFS
7925
7926 fi
7927 fi
7928 LIPO=$ac_cv_prog_LIPO
7929 if test -n "$LIPO"; then
7930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7931 $as_echo "$LIPO" >&6; }
7932 else
7933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 $as_echo "no" >&6; }
7935 fi
7936
7937
7938 fi
7939 if test -z "$ac_cv_prog_LIPO"; then
7940   ac_ct_LIPO=$LIPO
7941   # Extract the first word of "lipo", so it can be a program name with args.
7942 set dummy lipo; ac_word=$2
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944 $as_echo_n "checking for $ac_word... " >&6; }
7945 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7946   $as_echo_n "(cached) " >&6
7947 else
7948   if test -n "$ac_ct_LIPO"; then
7949   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7950 else
7951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952 for as_dir in $PATH
7953 do
7954   IFS=$as_save_IFS
7955   test -z "$as_dir" && as_dir=.
7956     for ac_exec_ext in '' $ac_executable_extensions; do
7957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7958     ac_cv_prog_ac_ct_LIPO="lipo"
7959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960     break 2
7961   fi
7962 done
7963   done
7964 IFS=$as_save_IFS
7965
7966 fi
7967 fi
7968 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7969 if test -n "$ac_ct_LIPO"; then
7970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7971 $as_echo "$ac_ct_LIPO" >&6; }
7972 else
7973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974 $as_echo "no" >&6; }
7975 fi
7976
7977   if test "x$ac_ct_LIPO" = x; then
7978     LIPO=":"
7979   else
7980     case $cross_compiling:$ac_tool_warned in
7981 yes:)
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7984 ac_tool_warned=yes ;;
7985 esac
7986     LIPO=$ac_ct_LIPO
7987   fi
7988 else
7989   LIPO="$ac_cv_prog_LIPO"
7990 fi
7991
7992     if test -n "$ac_tool_prefix"; then
7993   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7994 set dummy ${ac_tool_prefix}otool; ac_word=$2
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996 $as_echo_n "checking for $ac_word... " >&6; }
7997 if ${ac_cv_prog_OTOOL+:} false; then :
7998   $as_echo_n "(cached) " >&6
7999 else
8000   if test -n "$OTOOL"; then
8001   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8002 else
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004 for as_dir in $PATH
8005 do
8006   IFS=$as_save_IFS
8007   test -z "$as_dir" && as_dir=.
8008     for ac_exec_ext in '' $ac_executable_extensions; do
8009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8010     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8012     break 2
8013   fi
8014 done
8015   done
8016 IFS=$as_save_IFS
8017
8018 fi
8019 fi
8020 OTOOL=$ac_cv_prog_OTOOL
8021 if test -n "$OTOOL"; then
8022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8023 $as_echo "$OTOOL" >&6; }
8024 else
8025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8027 fi
8028
8029
8030 fi
8031 if test -z "$ac_cv_prog_OTOOL"; then
8032   ac_ct_OTOOL=$OTOOL
8033   # Extract the first word of "otool", so it can be a program name with args.
8034 set dummy otool; ac_word=$2
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036 $as_echo_n "checking for $ac_word... " >&6; }
8037 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8038   $as_echo_n "(cached) " >&6
8039 else
8040   if test -n "$ac_ct_OTOOL"; then
8041   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8042 else
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044 for as_dir in $PATH
8045 do
8046   IFS=$as_save_IFS
8047   test -z "$as_dir" && as_dir=.
8048     for ac_exec_ext in '' $ac_executable_extensions; do
8049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8050     ac_cv_prog_ac_ct_OTOOL="otool"
8051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8052     break 2
8053   fi
8054 done
8055   done
8056 IFS=$as_save_IFS
8057
8058 fi
8059 fi
8060 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8061 if test -n "$ac_ct_OTOOL"; then
8062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8063 $as_echo "$ac_ct_OTOOL" >&6; }
8064 else
8065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 $as_echo "no" >&6; }
8067 fi
8068
8069   if test "x$ac_ct_OTOOL" = x; then
8070     OTOOL=":"
8071   else
8072     case $cross_compiling:$ac_tool_warned in
8073 yes:)
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8076 ac_tool_warned=yes ;;
8077 esac
8078     OTOOL=$ac_ct_OTOOL
8079   fi
8080 else
8081   OTOOL="$ac_cv_prog_OTOOL"
8082 fi
8083
8084     if test -n "$ac_tool_prefix"; then
8085   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8086 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if ${ac_cv_prog_OTOOL64+:} false; then :
8090   $as_echo_n "(cached) " >&6
8091 else
8092   if test -n "$OTOOL64"; then
8093   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8094 else
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 for as_dir in $PATH
8097 do
8098   IFS=$as_save_IFS
8099   test -z "$as_dir" && as_dir=.
8100     for ac_exec_ext in '' $ac_executable_extensions; do
8101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8102     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8104     break 2
8105   fi
8106 done
8107   done
8108 IFS=$as_save_IFS
8109
8110 fi
8111 fi
8112 OTOOL64=$ac_cv_prog_OTOOL64
8113 if test -n "$OTOOL64"; then
8114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8115 $as_echo "$OTOOL64" >&6; }
8116 else
8117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8119 fi
8120
8121
8122 fi
8123 if test -z "$ac_cv_prog_OTOOL64"; then
8124   ac_ct_OTOOL64=$OTOOL64
8125   # Extract the first word of "otool64", so it can be a program name with args.
8126 set dummy otool64; ac_word=$2
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128 $as_echo_n "checking for $ac_word... " >&6; }
8129 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8130   $as_echo_n "(cached) " >&6
8131 else
8132   if test -n "$ac_ct_OTOOL64"; then
8133   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8134 else
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8137 do
8138   IFS=$as_save_IFS
8139   test -z "$as_dir" && as_dir=.
8140     for ac_exec_ext in '' $ac_executable_extensions; do
8141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8142     ac_cv_prog_ac_ct_OTOOL64="otool64"
8143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8144     break 2
8145   fi
8146 done
8147   done
8148 IFS=$as_save_IFS
8149
8150 fi
8151 fi
8152 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8153 if test -n "$ac_ct_OTOOL64"; then
8154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8155 $as_echo "$ac_ct_OTOOL64" >&6; }
8156 else
8157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8159 fi
8160
8161   if test "x$ac_ct_OTOOL64" = x; then
8162     OTOOL64=":"
8163   else
8164     case $cross_compiling:$ac_tool_warned in
8165 yes:)
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8168 ac_tool_warned=yes ;;
8169 esac
8170     OTOOL64=$ac_ct_OTOOL64
8171   fi
8172 else
8173   OTOOL64="$ac_cv_prog_OTOOL64"
8174 fi
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8203 $as_echo_n "checking for -single_module linker flag... " >&6; }
8204 if ${lt_cv_apple_cc_single_mod+:} false; then :
8205   $as_echo_n "(cached) " >&6
8206 else
8207   lt_cv_apple_cc_single_mod=no
8208       if test -z "${LT_MULTI_MODULE}"; then
8209         # By default we will add the -single_module flag. You can override
8210         # by either setting the environment variable LT_MULTI_MODULE
8211         # non-empty at configure time, or by adding -multi_module to the
8212         # link flags.
8213         rm -rf libconftest.dylib*
8214         echo "int foo(void){return 1;}" > conftest.c
8215         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8216 -dynamiclib -Wl,-single_module conftest.c" >&5
8217         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8218           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8219         _lt_result=$?
8220         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8221           lt_cv_apple_cc_single_mod=yes
8222         else
8223           cat conftest.err >&5
8224         fi
8225         rm -rf libconftest.dylib*
8226         rm -f conftest.*
8227       fi
8228 fi
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8230 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8231     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8232 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8233 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8234   $as_echo_n "(cached) " >&6
8235 else
8236   lt_cv_ld_exported_symbols_list=no
8237       save_LDFLAGS=$LDFLAGS
8238       echo "_main" > conftest.sym
8239       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8240       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h.  */
8242
8243 int
8244 main ()
8245 {
8246
8247   ;
8248   return 0;
8249 }
8250 _ACEOF
8251 if ac_fn_c_try_link "$LINENO"; then :
8252   lt_cv_ld_exported_symbols_list=yes
8253 else
8254   lt_cv_ld_exported_symbols_list=no
8255 fi
8256 rm -f core conftest.err conftest.$ac_objext \
8257     conftest$ac_exeext conftest.$ac_ext
8258         LDFLAGS="$save_LDFLAGS"
8259
8260 fi
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8262 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8264 $as_echo_n "checking for -force_load linker flag... " >&6; }
8265 if ${lt_cv_ld_force_load+:} false; then :
8266   $as_echo_n "(cached) " >&6
8267 else
8268   lt_cv_ld_force_load=no
8269       cat > conftest.c << _LT_EOF
8270 int forced_loaded() { return 2;}
8271 _LT_EOF
8272       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8273       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8274       echo "$AR cru libconftest.a conftest.o" >&5
8275       $AR cru libconftest.a conftest.o 2>&5
8276       echo "$RANLIB libconftest.a" >&5
8277       $RANLIB libconftest.a 2>&5
8278       cat > conftest.c << _LT_EOF
8279 int main() { return 0;}
8280 _LT_EOF
8281       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8282       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8283       _lt_result=$?
8284       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8285         lt_cv_ld_force_load=yes
8286       else
8287         cat conftest.err >&5
8288       fi
8289         rm -f conftest.err libconftest.a conftest conftest.c
8290         rm -rf conftest.dSYM
8291
8292 fi
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8294 $as_echo "$lt_cv_ld_force_load" >&6; }
8295     case $host_os in
8296     rhapsody* | darwin1.[012])
8297       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8298     darwin1.*)
8299       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8300     darwin*) # darwin 5.x on
8301       # if running on 10.5 or later, the deployment target defaults
8302       # to the OS version, if on x86, and 10.4, the deployment
8303       # target defaults to 10.4. Don't you love it?
8304       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8305         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8306           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8307         10.[012]*)
8308           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8309         10.*)
8310           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8311       esac
8312     ;;
8313   esac
8314     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8315       _lt_dar_single_mod='$single_module'
8316     fi
8317     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8318       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8319     else
8320       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8321     fi
8322     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8323       _lt_dsymutil='~$DSYMUTIL $lib || :'
8324     else
8325       _lt_dsymutil=
8326     fi
8327     ;;
8328   esac
8329
8330
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8332 $as_echo_n "checking for ANSI C header files... " >&6; }
8333 if ${ac_cv_header_stdc+:} false; then :
8334   $as_echo_n "(cached) " >&6
8335 else
8336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h.  */
8338 #include <stdlib.h>
8339 #include <stdarg.h>
8340 #include <string.h>
8341 #include <float.h>
8342
8343 int
8344 main ()
8345 {
8346
8347   ;
8348   return 0;
8349 }
8350 _ACEOF
8351 if ac_fn_c_try_compile "$LINENO"; then :
8352   ac_cv_header_stdc=yes
8353 else
8354   ac_cv_header_stdc=no
8355 fi
8356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357
8358 if test $ac_cv_header_stdc = yes; then
8359   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h.  */
8362 #include <string.h>
8363
8364 _ACEOF
8365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8366   $EGREP "memchr" >/dev/null 2>&1; then :
8367
8368 else
8369   ac_cv_header_stdc=no
8370 fi
8371 rm -f conftest*
8372
8373 fi
8374
8375 if test $ac_cv_header_stdc = yes; then
8376   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h.  */
8379 #include <stdlib.h>
8380
8381 _ACEOF
8382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8383   $EGREP "free" >/dev/null 2>&1; then :
8384
8385 else
8386   ac_cv_header_stdc=no
8387 fi
8388 rm -f conftest*
8389
8390 fi
8391
8392 if test $ac_cv_header_stdc = yes; then
8393   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8394   if test "$cross_compiling" = yes; then :
8395   :
8396 else
8397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h.  */
8399 #include <ctype.h>
8400 #include <stdlib.h>
8401 #if ((' ' & 0x0FF) == 0x020)
8402 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8403 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8404 #else
8405 # define ISLOWER(c) \
8406                    (('a' <= (c) && (c) <= 'i') \
8407                      || ('j' <= (c) && (c) <= 'r') \
8408                      || ('s' <= (c) && (c) <= 'z'))
8409 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8410 #endif
8411
8412 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8413 int
8414 main ()
8415 {
8416   int i;
8417   for (i = 0; i < 256; i++)
8418     if (XOR (islower (i), ISLOWER (i))
8419         || toupper (i) != TOUPPER (i))
8420       return 2;
8421   return 0;
8422 }
8423 _ACEOF
8424 if ac_fn_c_try_run "$LINENO"; then :
8425
8426 else
8427   ac_cv_header_stdc=no
8428 fi
8429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8430   conftest.$ac_objext conftest.beam conftest.$ac_ext
8431 fi
8432
8433 fi
8434 fi
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8436 $as_echo "$ac_cv_header_stdc" >&6; }
8437 if test $ac_cv_header_stdc = yes; then
8438
8439 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8440
8441 fi
8442
8443 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8444 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8445                   inttypes.h stdint.h unistd.h
8446 do :
8447   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8448 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8449 "
8450 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8451   cat >>confdefs.h <<_ACEOF
8452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8453 _ACEOF
8454
8455 fi
8456
8457 done
8458
8459
8460 for ac_header in dlfcn.h
8461 do :
8462   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8463 "
8464 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8465   cat >>confdefs.h <<_ACEOF
8466 #define HAVE_DLFCN_H 1
8467 _ACEOF
8468
8469 fi
8470
8471 done
8472
8473
8474
8475
8476 func_stripname_cnf ()
8477 {
8478   case ${2} in
8479   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8480   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8481   esac
8482 } # func_stripname_cnf
8483
8484
8485
8486
8487
8488 # Set options
8489
8490
8491
8492         enable_dlopen=no
8493
8494
8495
8496
8497
8498
8499 # Check whether --with-pic was given.
8500 if test "${with_pic+set}" = set; then :
8501   withval=$with_pic; pic_mode="$withval"
8502 else
8503   pic_mode=default
8504 fi
8505
8506
8507 test -z "$pic_mode" && pic_mode=default
8508
8509
8510
8511
8512
8513
8514
8515   # Check whether --enable-fast-install was given.
8516 if test "${enable_fast_install+set}" = set; then :
8517   enableval=$enable_fast_install; p=${PACKAGE-default}
8518     case $enableval in
8519     yes) enable_fast_install=yes ;;
8520     no) enable_fast_install=no ;;
8521     *)
8522       enable_fast_install=no
8523       # Look at the argument we got.  We use all the common list separators.
8524       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8525       for pkg in $enableval; do
8526         IFS="$lt_save_ifs"
8527         if test "X$pkg" = "X$p"; then
8528           enable_fast_install=yes
8529         fi
8530       done
8531       IFS="$lt_save_ifs"
8532       ;;
8533     esac
8534 else
8535   enable_fast_install=yes
8536 fi
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548 # This can be used to rebuild libtool when needed
8549 LIBTOOL_DEPS="$ltmain"
8550
8551 # Always use our own libtool.
8552 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579 test -z "$LN_S" && LN_S="ln -s"
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594 if test -n "${ZSH_VERSION+set}" ; then
8595    setopt NO_GLOB_SUBST
8596 fi
8597
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8599 $as_echo_n "checking for objdir... " >&6; }
8600 if ${lt_cv_objdir+:} false; then :
8601   $as_echo_n "(cached) " >&6
8602 else
8603   rm -f .libs 2>/dev/null
8604 mkdir .libs 2>/dev/null
8605 if test -d .libs; then
8606   lt_cv_objdir=.libs
8607 else
8608   # MS-DOS does not allow filenames that begin with a dot.
8609   lt_cv_objdir=_libs
8610 fi
8611 rmdir .libs 2>/dev/null
8612 fi
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8614 $as_echo "$lt_cv_objdir" >&6; }
8615 objdir=$lt_cv_objdir
8616
8617
8618
8619
8620
8621 cat >>confdefs.h <<_ACEOF
8622 #define LT_OBJDIR "$lt_cv_objdir/"
8623 _ACEOF
8624
8625
8626
8627
8628 case $host_os in
8629 aix3*)
8630   # AIX sometimes has problems with the GCC collect2 program.  For some
8631   # reason, if we set the COLLECT_NAMES environment variable, the problems
8632   # vanish in a puff of smoke.
8633   if test "X${COLLECT_NAMES+set}" != Xset; then
8634     COLLECT_NAMES=
8635     export COLLECT_NAMES
8636   fi
8637   ;;
8638 esac
8639
8640 # Global variables:
8641 ofile=libtool
8642 can_build_shared=yes
8643
8644 # All known linkers require a `.a' archive for static linking (except MSVC,
8645 # which needs '.lib').
8646 libext=a
8647
8648 with_gnu_ld="$lt_cv_prog_gnu_ld"
8649
8650 old_CC="$CC"
8651 old_CFLAGS="$CFLAGS"
8652
8653 # Set sane defaults for various variables
8654 test -z "$CC" && CC=cc
8655 test -z "$LTCC" && LTCC=$CC
8656 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8657 test -z "$LD" && LD=ld
8658 test -z "$ac_objext" && ac_objext=o
8659
8660 for cc_temp in $compiler""; do
8661   case $cc_temp in
8662     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8663     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8664     \-*) ;;
8665     *) break;;
8666   esac
8667 done
8668 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8669
8670
8671 # Only perform the check for file, if the check method requires it
8672 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8673 case $deplibs_check_method in
8674 file_magic*)
8675   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8676     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8677 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8678 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8679   $as_echo_n "(cached) " >&6
8680 else
8681   case $MAGIC_CMD in
8682 [\\/*] |  ?:[\\/]*)
8683   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8684   ;;
8685 *)
8686   lt_save_MAGIC_CMD="$MAGIC_CMD"
8687   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8688   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8689   for ac_dir in $ac_dummy; do
8690     IFS="$lt_save_ifs"
8691     test -z "$ac_dir" && ac_dir=.
8692     if test -f $ac_dir/${ac_tool_prefix}file; then
8693       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8694       if test -n "$file_magic_test_file"; then
8695         case $deplibs_check_method in
8696         "file_magic "*)
8697           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8698           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8699           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8700             $EGREP "$file_magic_regex" > /dev/null; then
8701             :
8702           else
8703             cat <<_LT_EOF 1>&2
8704
8705 *** Warning: the command libtool uses to detect shared libraries,
8706 *** $file_magic_cmd, produces output that libtool cannot recognize.
8707 *** The result is that libtool may fail to recognize shared libraries
8708 *** as such.  This will affect the creation of libtool libraries that
8709 *** depend on shared libraries, but programs linked with such libtool
8710 *** libraries will work regardless of this problem.  Nevertheless, you
8711 *** may want to report the problem to your system manager and/or to
8712 *** bug-libtool@gnu.org
8713
8714 _LT_EOF
8715           fi ;;
8716         esac
8717       fi
8718       break
8719     fi
8720   done
8721   IFS="$lt_save_ifs"
8722   MAGIC_CMD="$lt_save_MAGIC_CMD"
8723   ;;
8724 esac
8725 fi
8726
8727 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8728 if test -n "$MAGIC_CMD"; then
8729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8730 $as_echo "$MAGIC_CMD" >&6; }
8731 else
8732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8733 $as_echo "no" >&6; }
8734 fi
8735
8736
8737
8738
8739
8740 if test -z "$lt_cv_path_MAGIC_CMD"; then
8741   if test -n "$ac_tool_prefix"; then
8742     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8743 $as_echo_n "checking for file... " >&6; }
8744 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8745   $as_echo_n "(cached) " >&6
8746 else
8747   case $MAGIC_CMD in
8748 [\\/*] |  ?:[\\/]*)
8749   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8750   ;;
8751 *)
8752   lt_save_MAGIC_CMD="$MAGIC_CMD"
8753   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8754   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8755   for ac_dir in $ac_dummy; do
8756     IFS="$lt_save_ifs"
8757     test -z "$ac_dir" && ac_dir=.
8758     if test -f $ac_dir/file; then
8759       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8760       if test -n "$file_magic_test_file"; then
8761         case $deplibs_check_method in
8762         "file_magic "*)
8763           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8764           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8765           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8766             $EGREP "$file_magic_regex" > /dev/null; then
8767             :
8768           else
8769             cat <<_LT_EOF 1>&2
8770
8771 *** Warning: the command libtool uses to detect shared libraries,
8772 *** $file_magic_cmd, produces output that libtool cannot recognize.
8773 *** The result is that libtool may fail to recognize shared libraries
8774 *** as such.  This will affect the creation of libtool libraries that
8775 *** depend on shared libraries, but programs linked with such libtool
8776 *** libraries will work regardless of this problem.  Nevertheless, you
8777 *** may want to report the problem to your system manager and/or to
8778 *** bug-libtool@gnu.org
8779
8780 _LT_EOF
8781           fi ;;
8782         esac
8783       fi
8784       break
8785     fi
8786   done
8787   IFS="$lt_save_ifs"
8788   MAGIC_CMD="$lt_save_MAGIC_CMD"
8789   ;;
8790 esac
8791 fi
8792
8793 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8794 if test -n "$MAGIC_CMD"; then
8795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8796 $as_echo "$MAGIC_CMD" >&6; }
8797 else
8798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799 $as_echo "no" >&6; }
8800 fi
8801
8802
8803   else
8804     MAGIC_CMD=:
8805   fi
8806 fi
8807
8808   fi
8809   ;;
8810 esac
8811
8812 # Use C for the default configuration in the libtool script
8813
8814 lt_save_CC="$CC"
8815 ac_ext=c
8816 ac_cpp='$CPP $CPPFLAGS'
8817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8820
8821
8822 # Source file extension for C test sources.
8823 ac_ext=c
8824
8825 # Object file extension for compiled C test sources.
8826 objext=o
8827 objext=$objext
8828
8829 # Code to be used in simple compile tests
8830 lt_simple_compile_test_code="int some_variable = 0;"
8831
8832 # Code to be used in simple link tests
8833 lt_simple_link_test_code='int main(){return(0);}'
8834
8835
8836
8837
8838
8839
8840
8841 # If no C compiler was specified, use CC.
8842 LTCC=${LTCC-"$CC"}
8843
8844 # If no C compiler flags were specified, use CFLAGS.
8845 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8846
8847 # Allow CC to be a program name with arguments.
8848 compiler=$CC
8849
8850 # Save the default compiler, since it gets overwritten when the other
8851 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8852 compiler_DEFAULT=$CC
8853
8854 # save warnings/boilerplate of simple test code
8855 ac_outfile=conftest.$ac_objext
8856 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8857 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8858 _lt_compiler_boilerplate=`cat conftest.err`
8859 $RM conftest*
8860
8861 ac_outfile=conftest.$ac_objext
8862 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8863 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8864 _lt_linker_boilerplate=`cat conftest.err`
8865 $RM -r conftest*
8866
8867
8868 if test -n "$compiler"; then
8869
8870 lt_prog_compiler_no_builtin_flag=
8871
8872 if test "$GCC" = yes; then
8873   case $cc_basename in
8874   nvcc*)
8875     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8876   *)
8877     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8878   esac
8879
8880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8881 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8882 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8883   $as_echo_n "(cached) " >&6
8884 else
8885   lt_cv_prog_compiler_rtti_exceptions=no
8886    ac_outfile=conftest.$ac_objext
8887    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8888    lt_compiler_flag="-fno-rtti -fno-exceptions"
8889    # Insert the option either (1) after the last *FLAGS variable, or
8890    # (2) before a word containing "conftest.", or (3) at the end.
8891    # Note that $ac_compile itself does not contain backslashes and begins
8892    # with a dollar sign (not a hyphen), so the echo should work correctly.
8893    # The option is referenced via a variable to avoid confusing sed.
8894    lt_compile=`echo "$ac_compile" | $SED \
8895    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8896    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8897    -e 's:$: $lt_compiler_flag:'`
8898    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8899    (eval "$lt_compile" 2>conftest.err)
8900    ac_status=$?
8901    cat conftest.err >&5
8902    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903    if (exit $ac_status) && test -s "$ac_outfile"; then
8904      # The compiler can only warn and ignore the option if not recognized
8905      # So say no if there are warnings other than the usual output.
8906      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8907      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8908      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8909        lt_cv_prog_compiler_rtti_exceptions=yes
8910      fi
8911    fi
8912    $RM conftest*
8913
8914 fi
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8916 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8917
8918 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8919     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8920 else
8921     :
8922 fi
8923
8924 fi
8925
8926
8927
8928
8929
8930
8931   lt_prog_compiler_wl=
8932 lt_prog_compiler_pic=
8933 lt_prog_compiler_static=
8934
8935
8936   if test "$GCC" = yes; then
8937     lt_prog_compiler_wl='-Wl,'
8938     lt_prog_compiler_static='-static'
8939
8940     case $host_os in
8941       aix*)
8942       # All AIX code is PIC.
8943       if test "$host_cpu" = ia64; then
8944         # AIX 5 now supports IA64 processor
8945         lt_prog_compiler_static='-Bstatic'
8946       fi
8947       ;;
8948
8949     amigaos*)
8950       case $host_cpu in
8951       powerpc)
8952             # see comment about AmigaOS4 .so support
8953             lt_prog_compiler_pic='-fPIC'
8954         ;;
8955       m68k)
8956             # FIXME: we need at least 68020 code to build shared libraries, but
8957             # adding the `-m68020' flag to GCC prevents building anything better,
8958             # like `-m68040'.
8959             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8960         ;;
8961       esac
8962       ;;
8963
8964     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8965       # PIC is the default for these OSes.
8966       ;;
8967
8968     mingw* | cygwin* | pw32* | os2* | cegcc*)
8969       # This hack is so that the source file can tell whether it is being
8970       # built for inclusion in a dll (and should export symbols for example).
8971       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8972       # (--disable-auto-import) libraries
8973       lt_prog_compiler_pic='-DDLL_EXPORT'
8974       ;;
8975
8976     darwin* | rhapsody*)
8977       # PIC is the default on this platform
8978       # Common symbols not allowed in MH_DYLIB files
8979       lt_prog_compiler_pic='-fno-common'
8980       ;;
8981
8982     haiku*)
8983       # PIC is the default for Haiku.
8984       # The "-static" flag exists, but is broken.
8985       lt_prog_compiler_static=
8986       ;;
8987
8988     hpux*)
8989       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8990       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8991       # sets the default TLS model and affects inlining.
8992       case $host_cpu in
8993       hppa*64*)
8994         # +Z the default
8995         ;;
8996       *)
8997         lt_prog_compiler_pic='-fPIC'
8998         ;;
8999       esac
9000       ;;
9001
9002     interix[3-9]*)
9003       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9004       # Instead, we relocate shared libraries at runtime.
9005       ;;
9006
9007     msdosdjgpp*)
9008       # Just because we use GCC doesn't mean we suddenly get shared libraries
9009       # on systems that don't support them.
9010       lt_prog_compiler_can_build_shared=no
9011       enable_shared=no
9012       ;;
9013
9014     *nto* | *qnx*)
9015       # QNX uses GNU C++, but need to define -shared option too, otherwise
9016       # it will coredump.
9017       lt_prog_compiler_pic='-fPIC -shared'
9018       ;;
9019
9020     sysv4*MP*)
9021       if test -d /usr/nec; then
9022         lt_prog_compiler_pic=-Kconform_pic
9023       fi
9024       ;;
9025
9026     *)
9027       lt_prog_compiler_pic='-fPIC'
9028       ;;
9029     esac
9030
9031     case $cc_basename in
9032     nvcc*) # Cuda Compiler Driver 2.2
9033       lt_prog_compiler_wl='-Xlinker '
9034       lt_prog_compiler_pic='-Xcompiler -fPIC'
9035       ;;
9036     esac
9037   else
9038     # PORTME Check for flag to pass linker flags through the system compiler.
9039     case $host_os in
9040     aix*)
9041       lt_prog_compiler_wl='-Wl,'
9042       if test "$host_cpu" = ia64; then
9043         # AIX 5 now supports IA64 processor
9044         lt_prog_compiler_static='-Bstatic'
9045       else
9046         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9047       fi
9048       ;;
9049
9050     mingw* | cygwin* | pw32* | os2* | cegcc*)
9051       # This hack is so that the source file can tell whether it is being
9052       # built for inclusion in a dll (and should export symbols for example).
9053       lt_prog_compiler_pic='-DDLL_EXPORT'
9054       ;;
9055
9056     hpux9* | hpux10* | hpux11*)
9057       lt_prog_compiler_wl='-Wl,'
9058       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9059       # not for PA HP-UX.
9060       case $host_cpu in
9061       hppa*64*|ia64*)
9062         # +Z the default
9063         ;;
9064       *)
9065         lt_prog_compiler_pic='+Z'
9066         ;;
9067       esac
9068       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9069       lt_prog_compiler_static='${wl}-a ${wl}archive'
9070       ;;
9071
9072     irix5* | irix6* | nonstopux*)
9073       lt_prog_compiler_wl='-Wl,'
9074       # PIC (with -KPIC) is the default.
9075       lt_prog_compiler_static='-non_shared'
9076       ;;
9077
9078     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9079       case $cc_basename in
9080       # old Intel for x86_64 which still supported -KPIC.
9081       ecc*)
9082         lt_prog_compiler_wl='-Wl,'
9083         lt_prog_compiler_pic='-KPIC'
9084         lt_prog_compiler_static='-static'
9085         ;;
9086       # icc used to be incompatible with GCC.
9087       # ICC 10 doesn't accept -KPIC any more.
9088       icc* | ifort*)
9089         lt_prog_compiler_wl='-Wl,'
9090         lt_prog_compiler_pic='-fPIC'
9091         lt_prog_compiler_static='-static'
9092         ;;
9093       # Lahey Fortran 8.1.
9094       lf95*)
9095         lt_prog_compiler_wl='-Wl,'
9096         lt_prog_compiler_pic='--shared'
9097         lt_prog_compiler_static='--static'
9098         ;;
9099       nagfor*)
9100         # NAG Fortran compiler
9101         lt_prog_compiler_wl='-Wl,-Wl,,'
9102         lt_prog_compiler_pic='-PIC'
9103         lt_prog_compiler_static='-Bstatic'
9104         ;;
9105       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9106         # Portland Group compilers (*not* the Pentium gcc compiler,
9107         # which looks to be a dead project)
9108         lt_prog_compiler_wl='-Wl,'
9109         lt_prog_compiler_pic='-fpic'
9110         lt_prog_compiler_static='-Bstatic'
9111         ;;
9112       ccc*)
9113         lt_prog_compiler_wl='-Wl,'
9114         # All Alpha code is PIC.
9115         lt_prog_compiler_static='-non_shared'
9116         ;;
9117       xl* | bgxl* | bgf* | mpixl*)
9118         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9119         lt_prog_compiler_wl='-Wl,'
9120         lt_prog_compiler_pic='-qpic'
9121         lt_prog_compiler_static='-qstaticlink'
9122         ;;
9123       *)
9124         case `$CC -V 2>&1 | sed 5q` in
9125         *Sun\ F* | *Sun*Fortran*)
9126           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9127           lt_prog_compiler_pic='-KPIC'
9128           lt_prog_compiler_static='-Bstatic'
9129           lt_prog_compiler_wl=''
9130           ;;
9131         *Sun\ C*)
9132           # Sun C 5.9
9133           lt_prog_compiler_pic='-KPIC'
9134           lt_prog_compiler_static='-Bstatic'
9135           lt_prog_compiler_wl='-Wl,'
9136           ;;
9137         esac
9138         ;;
9139       esac
9140       ;;
9141
9142     newsos6)
9143       lt_prog_compiler_pic='-KPIC'
9144       lt_prog_compiler_static='-Bstatic'
9145       ;;
9146
9147     *nto* | *qnx*)
9148       # QNX uses GNU C++, but need to define -shared option too, otherwise
9149       # it will coredump.
9150       lt_prog_compiler_pic='-fPIC -shared'
9151       ;;
9152
9153     osf3* | osf4* | osf5*)
9154       lt_prog_compiler_wl='-Wl,'
9155       # All OSF/1 code is PIC.
9156       lt_prog_compiler_static='-non_shared'
9157       ;;
9158
9159     rdos*)
9160       lt_prog_compiler_static='-non_shared'
9161       ;;
9162
9163     solaris*)
9164       lt_prog_compiler_pic='-KPIC'
9165       lt_prog_compiler_static='-Bstatic'
9166       case $cc_basename in
9167       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9168         lt_prog_compiler_wl='-Qoption ld ';;
9169       *)
9170         lt_prog_compiler_wl='-Wl,';;
9171       esac
9172       ;;
9173
9174     sunos4*)
9175       lt_prog_compiler_wl='-Qoption ld '
9176       lt_prog_compiler_pic='-PIC'
9177       lt_prog_compiler_static='-Bstatic'
9178       ;;
9179
9180     sysv4 | sysv4.2uw2* | sysv4.3*)
9181       lt_prog_compiler_wl='-Wl,'
9182       lt_prog_compiler_pic='-KPIC'
9183       lt_prog_compiler_static='-Bstatic'
9184       ;;
9185
9186     sysv4*MP*)
9187       if test -d /usr/nec ;then
9188         lt_prog_compiler_pic='-Kconform_pic'
9189         lt_prog_compiler_static='-Bstatic'
9190       fi
9191       ;;
9192
9193     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9194       lt_prog_compiler_wl='-Wl,'
9195       lt_prog_compiler_pic='-KPIC'
9196       lt_prog_compiler_static='-Bstatic'
9197       ;;
9198
9199     unicos*)
9200       lt_prog_compiler_wl='-Wl,'
9201       lt_prog_compiler_can_build_shared=no
9202       ;;
9203
9204     uts4*)
9205       lt_prog_compiler_pic='-pic'
9206       lt_prog_compiler_static='-Bstatic'
9207       ;;
9208
9209     *)
9210       lt_prog_compiler_can_build_shared=no
9211       ;;
9212     esac
9213   fi
9214
9215 case $host_os in
9216   # For platforms which do not support PIC, -DPIC is meaningless:
9217   *djgpp*)
9218     lt_prog_compiler_pic=
9219     ;;
9220   *)
9221     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9222     ;;
9223 esac
9224
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9226 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9227 if ${lt_cv_prog_compiler_pic+:} false; then :
9228   $as_echo_n "(cached) " >&6
9229 else
9230   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9231 fi
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9233 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9234 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9235
9236 #
9237 # Check to make sure the PIC flag actually works.
9238 #
9239 if test -n "$lt_prog_compiler_pic"; then
9240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9241 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9242 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9243   $as_echo_n "(cached) " >&6
9244 else
9245   lt_cv_prog_compiler_pic_works=no
9246    ac_outfile=conftest.$ac_objext
9247    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9248    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9249    # Insert the option either (1) after the last *FLAGS variable, or
9250    # (2) before a word containing "conftest.", or (3) at the end.
9251    # Note that $ac_compile itself does not contain backslashes and begins
9252    # with a dollar sign (not a hyphen), so the echo should work correctly.
9253    # The option is referenced via a variable to avoid confusing sed.
9254    lt_compile=`echo "$ac_compile" | $SED \
9255    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9256    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9257    -e 's:$: $lt_compiler_flag:'`
9258    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9259    (eval "$lt_compile" 2>conftest.err)
9260    ac_status=$?
9261    cat conftest.err >&5
9262    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263    if (exit $ac_status) && test -s "$ac_outfile"; then
9264      # The compiler can only warn and ignore the option if not recognized
9265      # So say no if there are warnings other than the usual output.
9266      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9267      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9268      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9269        lt_cv_prog_compiler_pic_works=yes
9270      fi
9271    fi
9272    $RM conftest*
9273
9274 fi
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9276 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9277
9278 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9279     case $lt_prog_compiler_pic in
9280      "" | " "*) ;;
9281      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9282      esac
9283 else
9284     lt_prog_compiler_pic=
9285      lt_prog_compiler_can_build_shared=no
9286 fi
9287
9288 fi
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300 #
9301 # Check to make sure the static flag actually works.
9302 #
9303 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9305 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9306 if ${lt_cv_prog_compiler_static_works+:} false; then :
9307   $as_echo_n "(cached) " >&6
9308 else
9309   lt_cv_prog_compiler_static_works=no
9310    save_LDFLAGS="$LDFLAGS"
9311    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9312    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9313    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9314      # The linker can only warn and ignore the option if not recognized
9315      # So say no if there are warnings
9316      if test -s conftest.err; then
9317        # Append any errors to the config.log.
9318        cat conftest.err 1>&5
9319        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9320        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9321        if diff conftest.exp conftest.er2 >/dev/null; then
9322          lt_cv_prog_compiler_static_works=yes
9323        fi
9324      else
9325        lt_cv_prog_compiler_static_works=yes
9326      fi
9327    fi
9328    $RM -r conftest*
9329    LDFLAGS="$save_LDFLAGS"
9330
9331 fi
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9333 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9334
9335 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9336     :
9337 else
9338     lt_prog_compiler_static=
9339 fi
9340
9341
9342
9343
9344
9345
9346
9347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9348 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9349 if ${lt_cv_prog_compiler_c_o+:} false; then :
9350   $as_echo_n "(cached) " >&6
9351 else
9352   lt_cv_prog_compiler_c_o=no
9353    $RM -r conftest 2>/dev/null
9354    mkdir conftest
9355    cd conftest
9356    mkdir out
9357    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9358
9359    lt_compiler_flag="-o out/conftest2.$ac_objext"
9360    # Insert the option either (1) after the last *FLAGS variable, or
9361    # (2) before a word containing "conftest.", or (3) at the end.
9362    # Note that $ac_compile itself does not contain backslashes and begins
9363    # with a dollar sign (not a hyphen), so the echo should work correctly.
9364    lt_compile=`echo "$ac_compile" | $SED \
9365    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9366    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9367    -e 's:$: $lt_compiler_flag:'`
9368    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9369    (eval "$lt_compile" 2>out/conftest.err)
9370    ac_status=$?
9371    cat out/conftest.err >&5
9372    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9374    then
9375      # The compiler can only warn and ignore the option if not recognized
9376      # So say no if there are warnings
9377      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9378      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9379      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9380        lt_cv_prog_compiler_c_o=yes
9381      fi
9382    fi
9383    chmod u+w . 2>&5
9384    $RM conftest*
9385    # SGI C++ compiler will create directory out/ii_files/ for
9386    # template instantiation
9387    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9388    $RM out/* && rmdir out
9389    cd ..
9390    $RM -r conftest
9391    $RM conftest*
9392
9393 fi
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9395 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9396
9397
9398
9399
9400
9401
9402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9403 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9404 if ${lt_cv_prog_compiler_c_o+:} false; then :
9405   $as_echo_n "(cached) " >&6
9406 else
9407   lt_cv_prog_compiler_c_o=no
9408    $RM -r conftest 2>/dev/null
9409    mkdir conftest
9410    cd conftest
9411    mkdir out
9412    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9413
9414    lt_compiler_flag="-o out/conftest2.$ac_objext"
9415    # Insert the option either (1) after the last *FLAGS variable, or
9416    # (2) before a word containing "conftest.", or (3) at the end.
9417    # Note that $ac_compile itself does not contain backslashes and begins
9418    # with a dollar sign (not a hyphen), so the echo should work correctly.
9419    lt_compile=`echo "$ac_compile" | $SED \
9420    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9421    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9422    -e 's:$: $lt_compiler_flag:'`
9423    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9424    (eval "$lt_compile" 2>out/conftest.err)
9425    ac_status=$?
9426    cat out/conftest.err >&5
9427    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9429    then
9430      # The compiler can only warn and ignore the option if not recognized
9431      # So say no if there are warnings
9432      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9433      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9434      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9435        lt_cv_prog_compiler_c_o=yes
9436      fi
9437    fi
9438    chmod u+w . 2>&5
9439    $RM conftest*
9440    # SGI C++ compiler will create directory out/ii_files/ for
9441    # template instantiation
9442    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9443    $RM out/* && rmdir out
9444    cd ..
9445    $RM -r conftest
9446    $RM conftest*
9447
9448 fi
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9450 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9451
9452
9453
9454
9455 hard_links="nottested"
9456 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9457   # do not overwrite the value of need_locks provided by the user
9458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9459 $as_echo_n "checking if we can lock with hard links... " >&6; }
9460   hard_links=yes
9461   $RM conftest*
9462   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9463   touch conftest.a
9464   ln conftest.a conftest.b 2>&5 || hard_links=no
9465   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9467 $as_echo "$hard_links" >&6; }
9468   if test "$hard_links" = no; then
9469     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9470 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9471     need_locks=warn
9472   fi
9473 else
9474   need_locks=no
9475 fi
9476
9477
9478
9479
9480
9481
9482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9483 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9484
9485   runpath_var=
9486   allow_undefined_flag=
9487   always_export_symbols=no
9488   archive_cmds=
9489   archive_expsym_cmds=
9490   compiler_needs_object=no
9491   enable_shared_with_static_runtimes=no
9492   export_dynamic_flag_spec=
9493   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9494   hardcode_automatic=no
9495   hardcode_direct=no
9496   hardcode_direct_absolute=no
9497   hardcode_libdir_flag_spec=
9498   hardcode_libdir_flag_spec_ld=
9499   hardcode_libdir_separator=
9500   hardcode_minus_L=no
9501   hardcode_shlibpath_var=unsupported
9502   inherit_rpath=no
9503   link_all_deplibs=unknown
9504   module_cmds=
9505   module_expsym_cmds=
9506   old_archive_from_new_cmds=
9507   old_archive_from_expsyms_cmds=
9508   thread_safe_flag_spec=
9509   whole_archive_flag_spec=
9510   # include_expsyms should be a list of space-separated symbols to be *always*
9511   # included in the symbol list
9512   include_expsyms=
9513   # exclude_expsyms can be an extended regexp of symbols to exclude
9514   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9515   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9516   # as well as any symbol that contains `d'.
9517   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9518   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9519   # platforms (ab)use it in PIC code, but their linkers get confused if
9520   # the symbol is explicitly referenced.  Since portable code cannot
9521   # rely on this symbol name, it's probably fine to never include it in
9522   # preloaded symbol tables.
9523   # Exclude shared library initialization/finalization symbols.
9524   extract_expsyms_cmds=
9525
9526   case $host_os in
9527   cygwin* | mingw* | pw32* | cegcc*)
9528     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9529     # When not using gcc, we currently assume that we are using
9530     # Microsoft Visual C++.
9531     if test "$GCC" != yes; then
9532       with_gnu_ld=no
9533     fi
9534     ;;
9535   interix*)
9536     # we just hope/assume this is gcc and not c89 (= MSVC++)
9537     with_gnu_ld=yes
9538     ;;
9539   openbsd*)
9540     with_gnu_ld=no
9541     ;;
9542   esac
9543
9544   ld_shlibs=yes
9545
9546   # On some targets, GNU ld is compatible enough with the native linker
9547   # that we're better off using the native interface for both.
9548   lt_use_gnu_ld_interface=no
9549   if test "$with_gnu_ld" = yes; then
9550     case $host_os in
9551       aix*)
9552         # The AIX port of GNU ld has always aspired to compatibility
9553         # with the native linker.  However, as the warning in the GNU ld
9554         # block says, versions before 2.19.5* couldn't really create working
9555         # shared libraries, regardless of the interface used.
9556         case `$LD -v 2>&1` in
9557           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9558           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9559           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9560           *)
9561             lt_use_gnu_ld_interface=yes
9562             ;;
9563         esac
9564         ;;
9565       *)
9566         lt_use_gnu_ld_interface=yes
9567         ;;
9568     esac
9569   fi
9570
9571   if test "$lt_use_gnu_ld_interface" = yes; then
9572     # If archive_cmds runs LD, not CC, wlarc should be empty
9573     wlarc='${wl}'
9574
9575     # Set some defaults for GNU ld with shared library support. These
9576     # are reset later if shared libraries are not supported. Putting them
9577     # here allows them to be overridden if necessary.
9578     runpath_var=LD_RUN_PATH
9579     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9580     export_dynamic_flag_spec='${wl}--export-dynamic'
9581     # ancient GNU ld didn't support --whole-archive et. al.
9582     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9583       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9584     else
9585       whole_archive_flag_spec=
9586     fi
9587     supports_anon_versioning=no
9588     case `$LD -v 2>&1` in
9589       *GNU\ gold*) supports_anon_versioning=yes ;;
9590       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9591       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9592       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9593       *\ 2.11.*) ;; # other 2.11 versions
9594       *) supports_anon_versioning=yes ;;
9595     esac
9596
9597     # See if GNU ld supports shared libraries.
9598     case $host_os in
9599     aix[3-9]*)
9600       # On AIX/PPC, the GNU linker is very broken
9601       if test "$host_cpu" != ia64; then
9602         ld_shlibs=no
9603         cat <<_LT_EOF 1>&2
9604
9605 *** Warning: the GNU linker, at least up to release 2.19, is reported
9606 *** to be unable to reliably create shared libraries on AIX.
9607 *** Therefore, libtool is disabling shared libraries support.  If you
9608 *** really care for shared libraries, you may want to install binutils
9609 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9610 *** You will then need to restart the configuration process.
9611
9612 _LT_EOF
9613       fi
9614       ;;
9615
9616     amigaos*)
9617       case $host_cpu in
9618       powerpc)
9619             # see comment about AmigaOS4 .so support
9620             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9621             archive_expsym_cmds=''
9622         ;;
9623       m68k)
9624             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)'
9625             hardcode_libdir_flag_spec='-L$libdir'
9626             hardcode_minus_L=yes
9627         ;;
9628       esac
9629       ;;
9630
9631     beos*)
9632       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9633         allow_undefined_flag=unsupported
9634         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9635         # support --undefined.  This deserves some investigation.  FIXME
9636         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9637       else
9638         ld_shlibs=no
9639       fi
9640       ;;
9641
9642     cygwin* | mingw* | pw32* | cegcc*)
9643       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9644       # as there is no search path for DLLs.
9645       hardcode_libdir_flag_spec='-L$libdir'
9646       export_dynamic_flag_spec='${wl}--export-all-symbols'
9647       allow_undefined_flag=unsupported
9648       always_export_symbols=no
9649       enable_shared_with_static_runtimes=yes
9650       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9651       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9652
9653       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9654         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9655         # If the export-symbols file already is a .def file (1st line
9656         # is EXPORTS), use it as is; otherwise, prepend...
9657         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9658           cp $export_symbols $output_objdir/$soname.def;
9659         else
9660           echo EXPORTS > $output_objdir/$soname.def;
9661           cat $export_symbols >> $output_objdir/$soname.def;
9662         fi~
9663         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9664       else
9665         ld_shlibs=no
9666       fi
9667       ;;
9668
9669     haiku*)
9670       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9671       link_all_deplibs=yes
9672       ;;
9673
9674     interix[3-9]*)
9675       hardcode_direct=no
9676       hardcode_shlibpath_var=no
9677       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9678       export_dynamic_flag_spec='${wl}-E'
9679       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9680       # Instead, shared libraries are loaded at an image base (0x10000000 by
9681       # default) and relocated if they conflict, which is a slow very memory
9682       # consuming and fragmenting process.  To avoid this, we pick a random,
9683       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9684       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9685       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9686       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'
9687       ;;
9688
9689     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9690       tmp_diet=no
9691       if test "$host_os" = linux-dietlibc; then
9692         case $cc_basename in
9693           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9694         esac
9695       fi
9696       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9697          && test "$tmp_diet" = no
9698       then
9699         tmp_addflag=' $pic_flag'
9700         tmp_sharedflag='-shared'
9701         case $cc_basename,$host_cpu in
9702         pgcc*)                          # Portland Group C compiler
9703           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9704           tmp_addflag=' $pic_flag'
9705           ;;
9706         pgf77* | pgf90* | pgf95* | pgfortran*)
9707                                         # Portland Group f77 and f90 compilers
9708           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9709           tmp_addflag=' $pic_flag -Mnomain' ;;
9710         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9711           tmp_addflag=' -i_dynamic' ;;
9712         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9713           tmp_addflag=' -i_dynamic -nofor_main' ;;
9714         ifc* | ifort*)                  # Intel Fortran compiler
9715           tmp_addflag=' -nofor_main' ;;
9716         lf95*)                          # Lahey Fortran 8.1
9717           whole_archive_flag_spec=
9718           tmp_sharedflag='--shared' ;;
9719         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9720           tmp_sharedflag='-qmkshrobj'
9721           tmp_addflag= ;;
9722         nvcc*)  # Cuda Compiler Driver 2.2
9723           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9724           compiler_needs_object=yes
9725           ;;
9726         esac
9727         case `$CC -V 2>&1 | sed 5q` in
9728         *Sun\ C*)                       # Sun C 5.9
9729           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9730           compiler_needs_object=yes
9731           tmp_sharedflag='-G' ;;
9732         *Sun\ F*)                       # Sun Fortran 8.3
9733           tmp_sharedflag='-G' ;;
9734         esac
9735         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9736
9737         if test "x$supports_anon_versioning" = xyes; then
9738           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9739             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9740             echo "local: *; };" >> $output_objdir/$libname.ver~
9741             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9742         fi
9743
9744         case $cc_basename in
9745         xlf* | bgf* | bgxlf* | mpixlf*)
9746           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9747           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9748           hardcode_libdir_flag_spec=
9749           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9750           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9751           if test "x$supports_anon_versioning" = xyes; then
9752             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9753               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9754               echo "local: *; };" >> $output_objdir/$libname.ver~
9755               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9756           fi
9757           ;;
9758         esac
9759       else
9760         ld_shlibs=no
9761       fi
9762       ;;
9763
9764     netbsd*)
9765       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9766         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9767         wlarc=
9768       else
9769         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9770         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9771       fi
9772       ;;
9773
9774     solaris*)
9775       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9776         ld_shlibs=no
9777         cat <<_LT_EOF 1>&2
9778
9779 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9780 *** create shared libraries on Solaris systems.  Therefore, libtool
9781 *** is disabling shared libraries support.  We urge you to upgrade GNU
9782 *** binutils to release 2.9.1 or newer.  Another option is to modify
9783 *** your PATH or compiler configuration so that the native linker is
9784 *** used, and then restart.
9785
9786 _LT_EOF
9787       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9788         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9789         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9790       else
9791         ld_shlibs=no
9792       fi
9793       ;;
9794
9795     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9796       case `$LD -v 2>&1` in
9797         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9798         ld_shlibs=no
9799         cat <<_LT_EOF 1>&2
9800
9801 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9802 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9803 *** is disabling shared libraries support.  We urge you to upgrade GNU
9804 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9805 *** your PATH or compiler configuration so that the native linker is
9806 *** used, and then restart.
9807
9808 _LT_EOF
9809         ;;
9810         *)
9811           # For security reasons, it is highly recommended that you always
9812           # use absolute paths for naming shared libraries, and exclude the
9813           # DT_RUNPATH tag from executables and libraries.  But doing so
9814           # requires that you compile everything twice, which is a pain.
9815           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9816             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9817             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9818             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9819           else
9820             ld_shlibs=no
9821           fi
9822         ;;
9823       esac
9824       ;;
9825
9826     sunos4*)
9827       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9828       wlarc=
9829       hardcode_direct=yes
9830       hardcode_shlibpath_var=no
9831       ;;
9832
9833     *)
9834       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9835         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9836         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9837       else
9838         ld_shlibs=no
9839       fi
9840       ;;
9841     esac
9842
9843     if test "$ld_shlibs" = no; then
9844       runpath_var=
9845       hardcode_libdir_flag_spec=
9846       export_dynamic_flag_spec=
9847       whole_archive_flag_spec=
9848     fi
9849   else
9850     # PORTME fill in a description of your system's linker (not GNU ld)
9851     case $host_os in
9852     aix3*)
9853       allow_undefined_flag=unsupported
9854       always_export_symbols=yes
9855       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'
9856       # Note: this linker hardcodes the directories in LIBPATH if there
9857       # are no directories specified by -L.
9858       hardcode_minus_L=yes
9859       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9860         # Neither direct hardcoding nor static linking is supported with a
9861         # broken collect2.
9862         hardcode_direct=unsupported
9863       fi
9864       ;;
9865
9866     aix[4-9]*)
9867       if test "$host_cpu" = ia64; then
9868         # On IA64, the linker does run time linking by default, so we don't
9869         # have to do anything special.
9870         aix_use_runtimelinking=no
9871         exp_sym_flag='-Bexport'
9872         no_entry_flag=""
9873       else
9874         # If we're using GNU nm, then we don't want the "-C" option.
9875         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9876         # Also, AIX nm treats weak defined symbols like other global
9877         # defined symbols, whereas GNU nm marks them as "W".
9878         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9879           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9880         else
9881           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'
9882         fi
9883         aix_use_runtimelinking=no
9884
9885         # Test if we are trying to use run time linking or normal
9886         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9887         # need to do runtime linking.
9888         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9889           for ld_flag in $LDFLAGS; do
9890           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9891             aix_use_runtimelinking=yes
9892             break
9893           fi
9894           done
9895           ;;
9896         esac
9897
9898         exp_sym_flag='-bexport'
9899         no_entry_flag='-bnoentry'
9900       fi
9901
9902       # When large executables or shared objects are built, AIX ld can
9903       # have problems creating the table of contents.  If linking a library
9904       # or program results in "error TOC overflow" add -mminimal-toc to
9905       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9906       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9907
9908       archive_cmds=''
9909       hardcode_direct=yes
9910       hardcode_direct_absolute=yes
9911       hardcode_libdir_separator=':'
9912       link_all_deplibs=yes
9913       file_list_spec='${wl}-f,'
9914
9915       if test "$GCC" = yes; then
9916         case $host_os in aix4.[012]|aix4.[012].*)
9917         # We only want to do this on AIX 4.2 and lower, the check
9918         # below for broken collect2 doesn't work under 4.3+
9919           collect2name=`${CC} -print-prog-name=collect2`
9920           if test -f "$collect2name" &&
9921            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9922           then
9923           # We have reworked collect2
9924           :
9925           else
9926           # We have old collect2
9927           hardcode_direct=unsupported
9928           # It fails to find uninstalled libraries when the uninstalled
9929           # path is not listed in the libpath.  Setting hardcode_minus_L
9930           # to unsupported forces relinking
9931           hardcode_minus_L=yes
9932           hardcode_libdir_flag_spec='-L$libdir'
9933           hardcode_libdir_separator=
9934           fi
9935           ;;
9936         esac
9937         shared_flag='-shared'
9938         if test "$aix_use_runtimelinking" = yes; then
9939           shared_flag="$shared_flag "'${wl}-G'
9940         fi
9941       else
9942         # not using gcc
9943         if test "$host_cpu" = ia64; then
9944         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9945         # chokes on -Wl,-G. The following line is correct:
9946           shared_flag='-G'
9947         else
9948           if test "$aix_use_runtimelinking" = yes; then
9949             shared_flag='${wl}-G'
9950           else
9951             shared_flag='${wl}-bM:SRE'
9952           fi
9953         fi
9954       fi
9955
9956       export_dynamic_flag_spec='${wl}-bexpall'
9957       # It seems that -bexpall does not export symbols beginning with
9958       # underscore (_), so it is better to generate a list of symbols to export.
9959       always_export_symbols=yes
9960       if test "$aix_use_runtimelinking" = yes; then
9961         # Warning - without using the other runtime loading flags (-brtl),
9962         # -berok will link without error, but may produce a broken library.
9963         allow_undefined_flag='-berok'
9964         # Determine the default libpath from the value encoded in an
9965         # empty executable.
9966         if test "${lt_cv_aix_libpath+set}" = set; then
9967   aix_libpath=$lt_cv_aix_libpath
9968 else
9969   if ${lt_cv_aix_libpath_+:} false; then :
9970   $as_echo_n "(cached) " >&6
9971 else
9972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973 /* end confdefs.h.  */
9974
9975 int
9976 main ()
9977 {
9978
9979   ;
9980   return 0;
9981 }
9982 _ACEOF
9983 if ac_fn_c_try_link "$LINENO"; then :
9984
9985   lt_aix_libpath_sed='
9986       /Import File Strings/,/^$/ {
9987           /^0/ {
9988               s/^0  *\([^ ]*\) *$/\1/
9989               p
9990           }
9991       }'
9992   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9993   # Check for a 64-bit object if we didn't find anything.
9994   if test -z "$lt_cv_aix_libpath_"; then
9995     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9996   fi
9997 fi
9998 rm -f core conftest.err conftest.$ac_objext \
9999     conftest$ac_exeext conftest.$ac_ext
10000   if test -z "$lt_cv_aix_libpath_"; then
10001     lt_cv_aix_libpath_="/usr/lib:/lib"
10002   fi
10003
10004 fi
10005
10006   aix_libpath=$lt_cv_aix_libpath_
10007 fi
10008
10009         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10010         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10011       else
10012         if test "$host_cpu" = ia64; then
10013           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10014           allow_undefined_flag="-z nodefs"
10015           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"
10016         else
10017          # Determine the default libpath from the value encoded in an
10018          # empty executable.
10019          if test "${lt_cv_aix_libpath+set}" = set; then
10020   aix_libpath=$lt_cv_aix_libpath
10021 else
10022   if ${lt_cv_aix_libpath_+:} false; then :
10023   $as_echo_n "(cached) " >&6
10024 else
10025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026 /* end confdefs.h.  */
10027
10028 int
10029 main ()
10030 {
10031
10032   ;
10033   return 0;
10034 }
10035 _ACEOF
10036 if ac_fn_c_try_link "$LINENO"; then :
10037
10038   lt_aix_libpath_sed='
10039       /Import File Strings/,/^$/ {
10040           /^0/ {
10041               s/^0  *\([^ ]*\) *$/\1/
10042               p
10043           }
10044       }'
10045   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10046   # Check for a 64-bit object if we didn't find anything.
10047   if test -z "$lt_cv_aix_libpath_"; then
10048     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10049   fi
10050 fi
10051 rm -f core conftest.err conftest.$ac_objext \
10052     conftest$ac_exeext conftest.$ac_ext
10053   if test -z "$lt_cv_aix_libpath_"; then
10054     lt_cv_aix_libpath_="/usr/lib:/lib"
10055   fi
10056
10057 fi
10058
10059   aix_libpath=$lt_cv_aix_libpath_
10060 fi
10061
10062          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10063           # Warning - without using the other run time loading flags,
10064           # -berok will link without error, but may produce a broken library.
10065           no_undefined_flag=' ${wl}-bernotok'
10066           allow_undefined_flag=' ${wl}-berok'
10067           if test "$with_gnu_ld" = yes; then
10068             # We only use this code for GNU lds that support --whole-archive.
10069             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10070           else
10071             # Exported symbols can be pulled into shared objects from archives
10072             whole_archive_flag_spec='$convenience'
10073           fi
10074           archive_cmds_need_lc=yes
10075           # This is similar to how AIX traditionally builds its shared libraries.
10076           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'
10077         fi
10078       fi
10079       ;;
10080
10081     amigaos*)
10082       case $host_cpu in
10083       powerpc)
10084             # see comment about AmigaOS4 .so support
10085             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10086             archive_expsym_cmds=''
10087         ;;
10088       m68k)
10089             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)'
10090             hardcode_libdir_flag_spec='-L$libdir'
10091             hardcode_minus_L=yes
10092         ;;
10093       esac
10094       ;;
10095
10096     bsdi[45]*)
10097       export_dynamic_flag_spec=-rdynamic
10098       ;;
10099
10100     cygwin* | mingw* | pw32* | cegcc*)
10101       # When not using gcc, we currently assume that we are using
10102       # Microsoft Visual C++.
10103       # hardcode_libdir_flag_spec is actually meaningless, as there is
10104       # no search path for DLLs.
10105       case $cc_basename in
10106       cl*)
10107         # Native MSVC
10108         hardcode_libdir_flag_spec=' '
10109         allow_undefined_flag=unsupported
10110         always_export_symbols=yes
10111         file_list_spec='@'
10112         # Tell ltmain to make .lib files, not .a files.
10113         libext=lib
10114         # Tell ltmain to make .dll files, not .so files.
10115         shrext_cmds=".dll"
10116         # FIXME: Setting linknames here is a bad hack.
10117         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10118         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10119             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10120           else
10121             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10122           fi~
10123           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10124           linknames='
10125         # The linker will not automatically build a static lib if we build a DLL.
10126         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10127         enable_shared_with_static_runtimes=yes
10128         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10129         # Don't use ranlib
10130         old_postinstall_cmds='chmod 644 $oldlib'
10131         postlink_cmds='lt_outputfile="@OUTPUT@"~
10132           lt_tool_outputfile="@TOOL_OUTPUT@"~
10133           case $lt_outputfile in
10134             *.exe|*.EXE) ;;
10135             *)
10136               lt_outputfile="$lt_outputfile.exe"
10137               lt_tool_outputfile="$lt_tool_outputfile.exe"
10138               ;;
10139           esac~
10140           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10141             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10142             $RM "$lt_outputfile.manifest";
10143           fi'
10144         ;;
10145       *)
10146         # Assume MSVC wrapper
10147         hardcode_libdir_flag_spec=' '
10148         allow_undefined_flag=unsupported
10149         # Tell ltmain to make .lib files, not .a files.
10150         libext=lib
10151         # Tell ltmain to make .dll files, not .so files.
10152         shrext_cmds=".dll"
10153         # FIXME: Setting linknames here is a bad hack.
10154         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10155         # The linker will automatically build a .lib file if we build a DLL.
10156         old_archive_from_new_cmds='true'
10157         # FIXME: Should let the user specify the lib program.
10158         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10159         enable_shared_with_static_runtimes=yes
10160         ;;
10161       esac
10162       ;;
10163
10164     darwin* | rhapsody*)
10165
10166
10167   archive_cmds_need_lc=no
10168   hardcode_direct=no
10169   hardcode_automatic=yes
10170   hardcode_shlibpath_var=unsupported
10171   if test "$lt_cv_ld_force_load" = "yes"; then
10172     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10173   else
10174     whole_archive_flag_spec=''
10175   fi
10176   link_all_deplibs=yes
10177   allow_undefined_flag="$_lt_dar_allow_undefined"
10178   case $cc_basename in
10179      ifort*) _lt_dar_can_shared=yes ;;
10180      *) _lt_dar_can_shared=$GCC ;;
10181   esac
10182   if test "$_lt_dar_can_shared" = "yes"; then
10183     output_verbose_link_cmd=func_echo_all
10184     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10185     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10186     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}"
10187     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}"
10188
10189   else
10190   ld_shlibs=no
10191   fi
10192
10193       ;;
10194
10195     dgux*)
10196       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10197       hardcode_libdir_flag_spec='-L$libdir'
10198       hardcode_shlibpath_var=no
10199       ;;
10200
10201     freebsd1*)
10202       ld_shlibs=no
10203       ;;
10204
10205     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10206     # support.  Future versions do this automatically, but an explicit c++rt0.o
10207     # does not break anything, and helps significantly (at the cost of a little
10208     # extra space).
10209     freebsd2.2*)
10210       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10211       hardcode_libdir_flag_spec='-R$libdir'
10212       hardcode_direct=yes
10213       hardcode_shlibpath_var=no
10214       ;;
10215
10216     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10217     freebsd2*)
10218       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10219       hardcode_direct=yes
10220       hardcode_minus_L=yes
10221       hardcode_shlibpath_var=no
10222       ;;
10223
10224     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10225     freebsd* | dragonfly*)
10226       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10227       hardcode_libdir_flag_spec='-R$libdir'
10228       hardcode_direct=yes
10229       hardcode_shlibpath_var=no
10230       ;;
10231
10232     hpux9*)
10233       if test "$GCC" = yes; then
10234         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10235       else
10236         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'
10237       fi
10238       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10239       hardcode_libdir_separator=:
10240       hardcode_direct=yes
10241
10242       # hardcode_minus_L: Not really in the search PATH,
10243       # but as the default location of the library.
10244       hardcode_minus_L=yes
10245       export_dynamic_flag_spec='${wl}-E'
10246       ;;
10247
10248     hpux10*)
10249       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10250         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10251       else
10252         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10253       fi
10254       if test "$with_gnu_ld" = no; then
10255         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10256         hardcode_libdir_flag_spec_ld='+b $libdir'
10257         hardcode_libdir_separator=:
10258         hardcode_direct=yes
10259         hardcode_direct_absolute=yes
10260         export_dynamic_flag_spec='${wl}-E'
10261         # hardcode_minus_L: Not really in the search PATH,
10262         # but as the default location of the library.
10263         hardcode_minus_L=yes
10264       fi
10265       ;;
10266
10267     hpux11*)
10268       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10269         case $host_cpu in
10270         hppa*64*)
10271           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10272           ;;
10273         ia64*)
10274           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10275           ;;
10276         *)
10277           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10278           ;;
10279         esac
10280       else
10281         case $host_cpu in
10282         hppa*64*)
10283           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10284           ;;
10285         ia64*)
10286           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10287           ;;
10288         *)
10289
10290           # Older versions of the 11.00 compiler do not understand -b yet
10291           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10292           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10293 $as_echo_n "checking if $CC understands -b... " >&6; }
10294 if ${lt_cv_prog_compiler__b+:} false; then :
10295   $as_echo_n "(cached) " >&6
10296 else
10297   lt_cv_prog_compiler__b=no
10298    save_LDFLAGS="$LDFLAGS"
10299    LDFLAGS="$LDFLAGS -b"
10300    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10301    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10302      # The linker can only warn and ignore the option if not recognized
10303      # So say no if there are warnings
10304      if test -s conftest.err; then
10305        # Append any errors to the config.log.
10306        cat conftest.err 1>&5
10307        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10308        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10309        if diff conftest.exp conftest.er2 >/dev/null; then
10310          lt_cv_prog_compiler__b=yes
10311        fi
10312      else
10313        lt_cv_prog_compiler__b=yes
10314      fi
10315    fi
10316    $RM -r conftest*
10317    LDFLAGS="$save_LDFLAGS"
10318
10319 fi
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10321 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10322
10323 if test x"$lt_cv_prog_compiler__b" = xyes; then
10324     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10325 else
10326     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10327 fi
10328
10329           ;;
10330         esac
10331       fi
10332       if test "$with_gnu_ld" = no; then
10333         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10334         hardcode_libdir_separator=:
10335
10336         case $host_cpu in
10337         hppa*64*|ia64*)
10338           hardcode_direct=no
10339           hardcode_shlibpath_var=no
10340           ;;
10341         *)
10342           hardcode_direct=yes
10343           hardcode_direct_absolute=yes
10344           export_dynamic_flag_spec='${wl}-E'
10345
10346           # hardcode_minus_L: Not really in the search PATH,
10347           # but as the default location of the library.
10348           hardcode_minus_L=yes
10349           ;;
10350         esac
10351       fi
10352       ;;
10353
10354     irix5* | irix6* | nonstopux*)
10355       if test "$GCC" = yes; then
10356         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10357         # Try to use the -exported_symbol ld option, if it does not
10358         # work, assume that -exports_file does not work either and
10359         # implicitly export all symbols.
10360         # This should be the same for all languages, so no per-tag cache variable.
10361         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10362 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10363 if ${lt_cv_irix_exported_symbol+:} false; then :
10364   $as_echo_n "(cached) " >&6
10365 else
10366   save_LDFLAGS="$LDFLAGS"
10367            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10368            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10369 /* end confdefs.h.  */
10370 int foo (void) { return 0; }
10371 _ACEOF
10372 if ac_fn_c_try_link "$LINENO"; then :
10373   lt_cv_irix_exported_symbol=yes
10374 else
10375   lt_cv_irix_exported_symbol=no
10376 fi
10377 rm -f core conftest.err conftest.$ac_objext \
10378     conftest$ac_exeext conftest.$ac_ext
10379            LDFLAGS="$save_LDFLAGS"
10380 fi
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10382 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10383         if test "$lt_cv_irix_exported_symbol" = yes; then
10384           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10385         fi
10386       else
10387         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10388         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10389       fi
10390       archive_cmds_need_lc='no'
10391       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10392       hardcode_libdir_separator=:
10393       inherit_rpath=yes
10394       link_all_deplibs=yes
10395       ;;
10396
10397     netbsd*)
10398       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10399         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10400       else
10401         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10402       fi
10403       hardcode_libdir_flag_spec='-R$libdir'
10404       hardcode_direct=yes
10405       hardcode_shlibpath_var=no
10406       ;;
10407
10408     newsos6)
10409       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10410       hardcode_direct=yes
10411       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10412       hardcode_libdir_separator=:
10413       hardcode_shlibpath_var=no
10414       ;;
10415
10416     *nto* | *qnx*)
10417       ;;
10418
10419     openbsd*)
10420       if test -f /usr/libexec/ld.so; then
10421         hardcode_direct=yes
10422         hardcode_shlibpath_var=no
10423         hardcode_direct_absolute=yes
10424         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10425           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10426           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10427           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10428           export_dynamic_flag_spec='${wl}-E'
10429         else
10430           case $host_os in
10431            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10432              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10433              hardcode_libdir_flag_spec='-R$libdir'
10434              ;;
10435            *)
10436              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10437              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10438              ;;
10439           esac
10440         fi
10441       else
10442         ld_shlibs=no
10443       fi
10444       ;;
10445
10446     os2*)
10447       hardcode_libdir_flag_spec='-L$libdir'
10448       hardcode_minus_L=yes
10449       allow_undefined_flag=unsupported
10450       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'
10451       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10452       ;;
10453
10454     osf3*)
10455       if test "$GCC" = yes; then
10456         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10457         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10458       else
10459         allow_undefined_flag=' -expect_unresolved \*'
10460         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10461       fi
10462       archive_cmds_need_lc='no'
10463       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10464       hardcode_libdir_separator=:
10465       ;;
10466
10467     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10468       if test "$GCC" = yes; then
10469         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10470         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10471         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10472       else
10473         allow_undefined_flag=' -expect_unresolved \*'
10474         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10475         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~
10476         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10477
10478         # Both c and cxx compiler support -rpath directly
10479         hardcode_libdir_flag_spec='-rpath $libdir'
10480       fi
10481       archive_cmds_need_lc='no'
10482       hardcode_libdir_separator=:
10483       ;;
10484
10485     solaris*)
10486       no_undefined_flag=' -z defs'
10487       if test "$GCC" = yes; then
10488         wlarc='${wl}'
10489         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10490         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10491           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10492       else
10493         case `$CC -V 2>&1` in
10494         *"Compilers 5.0"*)
10495           wlarc=''
10496           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10497           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10498           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10499           ;;
10500         *)
10501           wlarc='${wl}'
10502           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10503           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10504           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10505           ;;
10506         esac
10507       fi
10508       hardcode_libdir_flag_spec='-R$libdir'
10509       hardcode_shlibpath_var=no
10510       case $host_os in
10511       solaris2.[0-5] | solaris2.[0-5].*) ;;
10512       *)
10513         # The compiler driver will combine and reorder linker options,
10514         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10515         # but is careful enough not to reorder.
10516         # Supported since Solaris 2.6 (maybe 2.5.1?)
10517         if test "$GCC" = yes; then
10518           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10519         else
10520           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10521         fi
10522         ;;
10523       esac
10524       link_all_deplibs=yes
10525       ;;
10526
10527     sunos4*)
10528       if test "x$host_vendor" = xsequent; then
10529         # Use $CC to link under sequent, because it throws in some extra .o
10530         # files that make .init and .fini sections work.
10531         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10532       else
10533         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10534       fi
10535       hardcode_libdir_flag_spec='-L$libdir'
10536       hardcode_direct=yes
10537       hardcode_minus_L=yes
10538       hardcode_shlibpath_var=no
10539       ;;
10540
10541     sysv4)
10542       case $host_vendor in
10543         sni)
10544           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10545           hardcode_direct=yes # is this really true???
10546         ;;
10547         siemens)
10548           ## LD is ld it makes a PLAMLIB
10549           ## CC just makes a GrossModule.
10550           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10551           reload_cmds='$CC -r -o $output$reload_objs'
10552           hardcode_direct=no
10553         ;;
10554         motorola)
10555           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10556           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10557         ;;
10558       esac
10559       runpath_var='LD_RUN_PATH'
10560       hardcode_shlibpath_var=no
10561       ;;
10562
10563     sysv4.3*)
10564       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10565       hardcode_shlibpath_var=no
10566       export_dynamic_flag_spec='-Bexport'
10567       ;;
10568
10569     sysv4*MP*)
10570       if test -d /usr/nec; then
10571         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10572         hardcode_shlibpath_var=no
10573         runpath_var=LD_RUN_PATH
10574         hardcode_runpath_var=yes
10575         ld_shlibs=yes
10576       fi
10577       ;;
10578
10579     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10580       no_undefined_flag='${wl}-z,text'
10581       archive_cmds_need_lc=no
10582       hardcode_shlibpath_var=no
10583       runpath_var='LD_RUN_PATH'
10584
10585       if test "$GCC" = yes; then
10586         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10587         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10588       else
10589         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10590         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10591       fi
10592       ;;
10593
10594     sysv5* | sco3.2v5* | sco5v6*)
10595       # Note: We can NOT use -z defs as we might desire, because we do not
10596       # link with -lc, and that would cause any symbols used from libc to
10597       # always be unresolved, which means just about no library would
10598       # ever link correctly.  If we're not using GNU ld we use -z text
10599       # though, which does catch some bad symbols but isn't as heavy-handed
10600       # as -z defs.
10601       no_undefined_flag='${wl}-z,text'
10602       allow_undefined_flag='${wl}-z,nodefs'
10603       archive_cmds_need_lc=no
10604       hardcode_shlibpath_var=no
10605       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10606       hardcode_libdir_separator=':'
10607       link_all_deplibs=yes
10608       export_dynamic_flag_spec='${wl}-Bexport'
10609       runpath_var='LD_RUN_PATH'
10610
10611       if test "$GCC" = yes; then
10612         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10613         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10614       else
10615         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10616         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10617       fi
10618       ;;
10619
10620     uts4*)
10621       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10622       hardcode_libdir_flag_spec='-L$libdir'
10623       hardcode_shlibpath_var=no
10624       ;;
10625
10626     *)
10627       ld_shlibs=no
10628       ;;
10629     esac
10630
10631     if test x$host_vendor = xsni; then
10632       case $host in
10633       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10634         export_dynamic_flag_spec='${wl}-Blargedynsym'
10635         ;;
10636       esac
10637     fi
10638   fi
10639
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10641 $as_echo "$ld_shlibs" >&6; }
10642 test "$ld_shlibs" = no && can_build_shared=no
10643
10644 with_gnu_ld=$with_gnu_ld
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660 #
10661 # Do we need to explicitly link libc?
10662 #
10663 case "x$archive_cmds_need_lc" in
10664 x|xyes)
10665   # Assume -lc should be added
10666   archive_cmds_need_lc=yes
10667
10668   if test "$enable_shared" = yes && test "$GCC" = yes; then
10669     case $archive_cmds in
10670     *'~'*)
10671       # FIXME: we may have to deal with multi-command sequences.
10672       ;;
10673     '$CC '*)
10674       # Test whether the compiler implicitly links with -lc since on some
10675       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10676       # to ld, don't add -lc before -lgcc.
10677       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10678 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10679 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10680   $as_echo_n "(cached) " >&6
10681 else
10682   $RM conftest*
10683         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10684
10685         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10686   (eval $ac_compile) 2>&5
10687   ac_status=$?
10688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10689   test $ac_status = 0; } 2>conftest.err; then
10690           soname=conftest
10691           lib=conftest
10692           libobjs=conftest.$ac_objext
10693           deplibs=
10694           wl=$lt_prog_compiler_wl
10695           pic_flag=$lt_prog_compiler_pic
10696           compiler_flags=-v
10697           linker_flags=-v
10698           verstring=
10699           output_objdir=.
10700           libname=conftest
10701           lt_save_allow_undefined_flag=$allow_undefined_flag
10702           allow_undefined_flag=
10703           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10704   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10705   ac_status=$?
10706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10707   test $ac_status = 0; }
10708           then
10709             lt_cv_archive_cmds_need_lc=no
10710           else
10711             lt_cv_archive_cmds_need_lc=yes
10712           fi
10713           allow_undefined_flag=$lt_save_allow_undefined_flag
10714         else
10715           cat conftest.err 1>&5
10716         fi
10717         $RM conftest*
10718
10719 fi
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10721 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10722       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10723       ;;
10724     esac
10725   fi
10726   ;;
10727 esac
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10886 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10887
10888 if test "$GCC" = yes; then
10889   case $host_os in
10890     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10891     *) lt_awk_arg="/^libraries:/" ;;
10892   esac
10893   case $host_os in
10894     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10895     *) lt_sed_strip_eq="s,=/,/,g" ;;
10896   esac
10897   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10898   case $lt_search_path_spec in
10899   *\;*)
10900     # if the path contains ";" then we assume it to be the separator
10901     # otherwise default to the standard path separator (i.e. ":") - it is
10902     # assumed that no part of a normal pathname contains ";" but that should
10903     # okay in the real world where ";" in dirpaths is itself problematic.
10904     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10905     ;;
10906   *)
10907     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10908     ;;
10909   esac
10910   # Ok, now we have the path, separated by spaces, we can step through it
10911   # and add multilib dir if necessary.
10912   lt_tmp_lt_search_path_spec=
10913   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10914   for lt_sys_path in $lt_search_path_spec; do
10915     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10916       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10917     else
10918       test -d "$lt_sys_path" && \
10919         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10920     fi
10921   done
10922   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10923 BEGIN {RS=" "; FS="/|\n";} {
10924   lt_foo="";
10925   lt_count=0;
10926   for (lt_i = NF; lt_i > 0; lt_i--) {
10927     if ($lt_i != "" && $lt_i != ".") {
10928       if ($lt_i == "..") {
10929         lt_count++;
10930       } else {
10931         if (lt_count == 0) {
10932           lt_foo="/" $lt_i lt_foo;
10933         } else {
10934           lt_count--;
10935         }
10936       }
10937     }
10938   }
10939   if (lt_foo != "") { lt_freq[lt_foo]++; }
10940   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10941 }'`
10942   # AWK program above erroneously prepends '/' to C:/dos/paths
10943   # for these hosts.
10944   case $host_os in
10945     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10946       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10947   esac
10948   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10949 else
10950   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10951 fi
10952 library_names_spec=
10953 libname_spec='lib$name'
10954 soname_spec=
10955 shrext_cmds=".so"
10956 postinstall_cmds=
10957 postuninstall_cmds=
10958 finish_cmds=
10959 finish_eval=
10960 shlibpath_var=
10961 shlibpath_overrides_runpath=unknown
10962 version_type=none
10963 dynamic_linker="$host_os ld.so"
10964 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10965 need_lib_prefix=unknown
10966 hardcode_into_libs=no
10967
10968 # when you set need_version to no, make sure it does not cause -set_version
10969 # flags to be left without arguments
10970 need_version=unknown
10971
10972 case $host_os in
10973 aix3*)
10974   version_type=linux
10975   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10976   shlibpath_var=LIBPATH
10977
10978   # AIX 3 has no versioning support, so we append a major version to the name.
10979   soname_spec='${libname}${release}${shared_ext}$major'
10980   ;;
10981
10982 aix[4-9]*)
10983   version_type=linux
10984   need_lib_prefix=no
10985   need_version=no
10986   hardcode_into_libs=yes
10987   if test "$host_cpu" = ia64; then
10988     # AIX 5 supports IA64
10989     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10990     shlibpath_var=LD_LIBRARY_PATH
10991   else
10992     # With GCC up to 2.95.x, collect2 would create an import file
10993     # for dependence libraries.  The import file would start with
10994     # the line `#! .'.  This would cause the generated library to
10995     # depend on `.', always an invalid library.  This was fixed in
10996     # development snapshots of GCC prior to 3.0.
10997     case $host_os in
10998       aix4 | aix4.[01] | aix4.[01].*)
10999       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11000            echo ' yes '
11001            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11002         :
11003       else
11004         can_build_shared=no
11005       fi
11006       ;;
11007     esac
11008     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11009     # soname into executable. Probably we can add versioning support to
11010     # collect2, so additional links can be useful in future.
11011     if test "$aix_use_runtimelinking" = yes; then
11012       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11013       # instead of lib<name>.a to let people know that these are not
11014       # typical AIX shared libraries.
11015       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11016     else
11017       # We preserve .a as extension for shared libraries through AIX4.2
11018       # and later when we are not doing run time linking.
11019       library_names_spec='${libname}${release}.a $libname.a'
11020       soname_spec='${libname}${release}${shared_ext}$major'
11021     fi
11022     shlibpath_var=LIBPATH
11023   fi
11024   ;;
11025
11026 amigaos*)
11027   case $host_cpu in
11028   powerpc)
11029     # Since July 2007 AmigaOS4 officially supports .so libraries.
11030     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11031     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11032     ;;
11033   m68k)
11034     library_names_spec='$libname.ixlibrary $libname.a'
11035     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11036     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11037     ;;
11038   esac
11039   ;;
11040
11041 beos*)
11042   library_names_spec='${libname}${shared_ext}'
11043   dynamic_linker="$host_os ld.so"
11044   shlibpath_var=LIBRARY_PATH
11045   ;;
11046
11047 bsdi[45]*)
11048   version_type=linux
11049   need_version=no
11050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11051   soname_spec='${libname}${release}${shared_ext}$major'
11052   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11053   shlibpath_var=LD_LIBRARY_PATH
11054   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11055   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11056   # the default ld.so.conf also contains /usr/contrib/lib and
11057   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11058   # libtool to hard-code these into programs
11059   ;;
11060
11061 cygwin* | mingw* | pw32* | cegcc*)
11062   version_type=windows
11063   shrext_cmds=".dll"
11064   need_version=no
11065   need_lib_prefix=no
11066
11067   case $GCC,$cc_basename in
11068   yes,*)
11069     # gcc
11070     library_names_spec='$libname.dll.a'
11071     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11072     postinstall_cmds='base_file=`basename \${file}`~
11073       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11074       dldir=$destdir/`dirname \$dlpath`~
11075       test -d \$dldir || mkdir -p \$dldir~
11076       $install_prog $dir/$dlname \$dldir/$dlname~
11077       chmod a+x \$dldir/$dlname~
11078       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11079         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11080       fi'
11081     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11082       dlpath=$dir/\$dldll~
11083        $RM \$dlpath'
11084     shlibpath_overrides_runpath=yes
11085
11086     case $host_os in
11087     cygwin*)
11088       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11089       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11090
11091       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11092       ;;
11093     mingw* | cegcc*)
11094       # MinGW DLLs use traditional 'lib' prefix
11095       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11096       ;;
11097     pw32*)
11098       # pw32 DLLs use 'pw' prefix rather than 'lib'
11099       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11100       ;;
11101     esac
11102     dynamic_linker='Win32 ld.exe'
11103     ;;
11104
11105   *,cl*)
11106     # Native MSVC
11107     libname_spec='$name'
11108     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11109     library_names_spec='${libname}.dll.lib'
11110
11111     case $build_os in
11112     mingw*)
11113       sys_lib_search_path_spec=
11114       lt_save_ifs=$IFS
11115       IFS=';'
11116       for lt_path in $LIB
11117       do
11118         IFS=$lt_save_ifs
11119         # Let DOS variable expansion print the short 8.3 style file name.
11120         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11121         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11122       done
11123       IFS=$lt_save_ifs
11124       # Convert to MSYS style.
11125       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11126       ;;
11127     cygwin*)
11128       # Convert to unix form, then to dos form, then back to unix form
11129       # but this time dos style (no spaces!) so that the unix form looks
11130       # like /cygdrive/c/PROGRA~1:/cygdr...
11131       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11132       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11133       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11134       ;;
11135     *)
11136       sys_lib_search_path_spec="$LIB"
11137       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11138         # It is most probably a Windows format PATH.
11139         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11140       else
11141         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11142       fi
11143       # FIXME: find the short name or the path components, as spaces are
11144       # common. (e.g. "Program Files" -> "PROGRA~1")
11145       ;;
11146     esac
11147
11148     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11149     postinstall_cmds='base_file=`basename \${file}`~
11150       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11151       dldir=$destdir/`dirname \$dlpath`~
11152       test -d \$dldir || mkdir -p \$dldir~
11153       $install_prog $dir/$dlname \$dldir/$dlname'
11154     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11155       dlpath=$dir/\$dldll~
11156        $RM \$dlpath'
11157     shlibpath_overrides_runpath=yes
11158     dynamic_linker='Win32 link.exe'
11159     ;;
11160
11161   *)
11162     # Assume MSVC wrapper
11163     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11164     dynamic_linker='Win32 ld.exe'
11165     ;;
11166   esac
11167   # FIXME: first we should search . and the directory the executable is in
11168   shlibpath_var=PATH
11169   ;;
11170
11171 darwin* | rhapsody*)
11172   dynamic_linker="$host_os dyld"
11173   version_type=darwin
11174   need_lib_prefix=no
11175   need_version=no
11176   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11177   soname_spec='${libname}${release}${major}$shared_ext'
11178   shlibpath_overrides_runpath=yes
11179   shlibpath_var=DYLD_LIBRARY_PATH
11180   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11181
11182   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11183   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11184   ;;
11185
11186 dgux*)
11187   version_type=linux
11188   need_lib_prefix=no
11189   need_version=no
11190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11191   soname_spec='${libname}${release}${shared_ext}$major'
11192   shlibpath_var=LD_LIBRARY_PATH
11193   ;;
11194
11195 freebsd1*)
11196   dynamic_linker=no
11197   ;;
11198
11199 freebsd* | dragonfly*)
11200   # DragonFly does not have aout.  When/if they implement a new
11201   # versioning mechanism, adjust this.
11202   if test -x /usr/bin/objformat; then
11203     objformat=`/usr/bin/objformat`
11204   else
11205     case $host_os in
11206     freebsd[123]*) objformat=aout ;;
11207     *) objformat=elf ;;
11208     esac
11209   fi
11210   version_type=freebsd-$objformat
11211   case $version_type in
11212     freebsd-elf*)
11213       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11214       need_version=no
11215       need_lib_prefix=no
11216       ;;
11217     freebsd-*)
11218       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11219       need_version=yes
11220       ;;
11221   esac
11222   shlibpath_var=LD_LIBRARY_PATH
11223   case $host_os in
11224   freebsd2*)
11225     shlibpath_overrides_runpath=yes
11226     ;;
11227   freebsd3.[01]* | freebsdelf3.[01]*)
11228     shlibpath_overrides_runpath=yes
11229     hardcode_into_libs=yes
11230     ;;
11231   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11232   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11233     shlibpath_overrides_runpath=no
11234     hardcode_into_libs=yes
11235     ;;
11236   *) # from 4.6 on, and DragonFly
11237     shlibpath_overrides_runpath=yes
11238     hardcode_into_libs=yes
11239     ;;
11240   esac
11241   ;;
11242
11243 gnu*)
11244   version_type=linux
11245   need_lib_prefix=no
11246   need_version=no
11247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11248   soname_spec='${libname}${release}${shared_ext}$major'
11249   shlibpath_var=LD_LIBRARY_PATH
11250   hardcode_into_libs=yes
11251   ;;
11252
11253 haiku*)
11254   version_type=linux
11255   need_lib_prefix=no
11256   need_version=no
11257   dynamic_linker="$host_os runtime_loader"
11258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11259   soname_spec='${libname}${release}${shared_ext}$major'
11260   shlibpath_var=LIBRARY_PATH
11261   shlibpath_overrides_runpath=yes
11262   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11263   hardcode_into_libs=yes
11264   ;;
11265
11266 hpux9* | hpux10* | hpux11*)
11267   # Give a soname corresponding to the major version so that dld.sl refuses to
11268   # link against other versions.
11269   version_type=sunos
11270   need_lib_prefix=no
11271   need_version=no
11272   case $host_cpu in
11273   ia64*)
11274     shrext_cmds='.so'
11275     hardcode_into_libs=yes
11276     dynamic_linker="$host_os dld.so"
11277     shlibpath_var=LD_LIBRARY_PATH
11278     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11279     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11280     soname_spec='${libname}${release}${shared_ext}$major'
11281     if test "X$HPUX_IA64_MODE" = X32; then
11282       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11283     else
11284       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11285     fi
11286     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11287     ;;
11288   hppa*64*)
11289     shrext_cmds='.sl'
11290     hardcode_into_libs=yes
11291     dynamic_linker="$host_os dld.sl"
11292     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11293     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11295     soname_spec='${libname}${release}${shared_ext}$major'
11296     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11297     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11298     ;;
11299   *)
11300     shrext_cmds='.sl'
11301     dynamic_linker="$host_os dld.sl"
11302     shlibpath_var=SHLIB_PATH
11303     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11304     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11305     soname_spec='${libname}${release}${shared_ext}$major'
11306     ;;
11307   esac
11308   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11309   postinstall_cmds='chmod 555 $lib'
11310   # or fails outright, so override atomically:
11311   install_override_mode=555
11312   ;;
11313
11314 interix[3-9]*)
11315   version_type=linux
11316   need_lib_prefix=no
11317   need_version=no
11318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11319   soname_spec='${libname}${release}${shared_ext}$major'
11320   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11321   shlibpath_var=LD_LIBRARY_PATH
11322   shlibpath_overrides_runpath=no
11323   hardcode_into_libs=yes
11324   ;;
11325
11326 irix5* | irix6* | nonstopux*)
11327   case $host_os in
11328     nonstopux*) version_type=nonstopux ;;
11329     *)
11330         if test "$lt_cv_prog_gnu_ld" = yes; then
11331                 version_type=linux
11332         else
11333                 version_type=irix
11334         fi ;;
11335   esac
11336   need_lib_prefix=no
11337   need_version=no
11338   soname_spec='${libname}${release}${shared_ext}$major'
11339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11340   case $host_os in
11341   irix5* | nonstopux*)
11342     libsuff= shlibsuff=
11343     ;;
11344   *)
11345     case $LD in # libtool.m4 will add one of these switches to LD
11346     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11347       libsuff= shlibsuff= libmagic=32-bit;;
11348     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11349       libsuff=32 shlibsuff=N32 libmagic=N32;;
11350     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11351       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11352     *) libsuff= shlibsuff= libmagic=never-match;;
11353     esac
11354     ;;
11355   esac
11356   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11357   shlibpath_overrides_runpath=no
11358   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11359   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11360   hardcode_into_libs=yes
11361   ;;
11362
11363 # No shared lib support for Linux oldld, aout, or coff.
11364 linux*oldld* | linux*aout* | linux*coff*)
11365   dynamic_linker=no
11366   ;;
11367
11368 # This must be Linux ELF.
11369 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11370   version_type=linux
11371   need_lib_prefix=no
11372   need_version=no
11373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374   soname_spec='${libname}${release}${shared_ext}$major'
11375   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11376   shlibpath_var=LD_LIBRARY_PATH
11377   shlibpath_overrides_runpath=no
11378
11379   # Some binutils ld are patched to set DT_RUNPATH
11380   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11381   $as_echo_n "(cached) " >&6
11382 else
11383   lt_cv_shlibpath_overrides_runpath=no
11384     save_LDFLAGS=$LDFLAGS
11385     save_libdir=$libdir
11386     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11387          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11388     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h.  */
11390
11391 int
11392 main ()
11393 {
11394
11395   ;
11396   return 0;
11397 }
11398 _ACEOF
11399 if ac_fn_c_try_link "$LINENO"; then :
11400   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11401   lt_cv_shlibpath_overrides_runpath=yes
11402 fi
11403 fi
11404 rm -f core conftest.err conftest.$ac_objext \
11405     conftest$ac_exeext conftest.$ac_ext
11406     LDFLAGS=$save_LDFLAGS
11407     libdir=$save_libdir
11408
11409 fi
11410
11411   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11412
11413   # This implies no fast_install, which is unacceptable.
11414   # Some rework will be needed to allow for fast_install
11415   # before this can be enabled.
11416   hardcode_into_libs=yes
11417
11418   # Append ld.so.conf contents to the search path
11419   if test -f /etc/ld.so.conf; then
11420     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11421     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11422   fi
11423
11424   # We used to test for /lib/ld.so.1 and disable shared libraries on
11425   # powerpc, because MkLinux only supported shared libraries with the
11426   # GNU dynamic linker.  Since this was broken with cross compilers,
11427   # most powerpc-linux boxes support dynamic linking these days and
11428   # people can always --disable-shared, the test was removed, and we
11429   # assume the GNU/Linux dynamic linker is in use.
11430   dynamic_linker='GNU/Linux ld.so'
11431   ;;
11432
11433 netbsd*)
11434   version_type=sunos
11435   need_lib_prefix=no
11436   need_version=no
11437   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11438     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11439     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11440     dynamic_linker='NetBSD (a.out) ld.so'
11441   else
11442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11443     soname_spec='${libname}${release}${shared_ext}$major'
11444     dynamic_linker='NetBSD ld.elf_so'
11445   fi
11446   shlibpath_var=LD_LIBRARY_PATH
11447   shlibpath_overrides_runpath=yes
11448   hardcode_into_libs=yes
11449   ;;
11450
11451 newsos6)
11452   version_type=linux
11453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11454   shlibpath_var=LD_LIBRARY_PATH
11455   shlibpath_overrides_runpath=yes
11456   ;;
11457
11458 *nto* | *qnx*)
11459   version_type=qnx
11460   need_lib_prefix=no
11461   need_version=no
11462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11463   soname_spec='${libname}${release}${shared_ext}$major'
11464   shlibpath_var=LD_LIBRARY_PATH
11465   shlibpath_overrides_runpath=no
11466   hardcode_into_libs=yes
11467   dynamic_linker='ldqnx.so'
11468   ;;
11469
11470 openbsd*)
11471   version_type=sunos
11472   sys_lib_dlsearch_path_spec="/usr/lib"
11473   need_lib_prefix=no
11474   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11475   case $host_os in
11476     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11477     *)                          need_version=no  ;;
11478   esac
11479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11480   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11481   shlibpath_var=LD_LIBRARY_PATH
11482   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11483     case $host_os in
11484       openbsd2.[89] | openbsd2.[89].*)
11485         shlibpath_overrides_runpath=no
11486         ;;
11487       *)
11488         shlibpath_overrides_runpath=yes
11489         ;;
11490       esac
11491   else
11492     shlibpath_overrides_runpath=yes
11493   fi
11494   ;;
11495
11496 os2*)
11497   libname_spec='$name'
11498   shrext_cmds=".dll"
11499   need_lib_prefix=no
11500   library_names_spec='$libname${shared_ext} $libname.a'
11501   dynamic_linker='OS/2 ld.exe'
11502   shlibpath_var=LIBPATH
11503   ;;
11504
11505 osf3* | osf4* | osf5*)
11506   version_type=osf
11507   need_lib_prefix=no
11508   need_version=no
11509   soname_spec='${libname}${release}${shared_ext}$major'
11510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511   shlibpath_var=LD_LIBRARY_PATH
11512   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11513   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11514   ;;
11515
11516 rdos*)
11517   dynamic_linker=no
11518   ;;
11519
11520 solaris*)
11521   version_type=linux
11522   need_lib_prefix=no
11523   need_version=no
11524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525   soname_spec='${libname}${release}${shared_ext}$major'
11526   shlibpath_var=LD_LIBRARY_PATH
11527   shlibpath_overrides_runpath=yes
11528   hardcode_into_libs=yes
11529   # ldd complains unless libraries are executable
11530   postinstall_cmds='chmod +x $lib'
11531   ;;
11532
11533 sunos4*)
11534   version_type=sunos
11535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11536   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11537   shlibpath_var=LD_LIBRARY_PATH
11538   shlibpath_overrides_runpath=yes
11539   if test "$with_gnu_ld" = yes; then
11540     need_lib_prefix=no
11541   fi
11542   need_version=yes
11543   ;;
11544
11545 sysv4 | sysv4.3*)
11546   version_type=linux
11547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11548   soname_spec='${libname}${release}${shared_ext}$major'
11549   shlibpath_var=LD_LIBRARY_PATH
11550   case $host_vendor in
11551     sni)
11552       shlibpath_overrides_runpath=no
11553       need_lib_prefix=no
11554       runpath_var=LD_RUN_PATH
11555       ;;
11556     siemens)
11557       need_lib_prefix=no
11558       ;;
11559     motorola)
11560       need_lib_prefix=no
11561       need_version=no
11562       shlibpath_overrides_runpath=no
11563       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11564       ;;
11565   esac
11566   ;;
11567
11568 sysv4*MP*)
11569   if test -d /usr/nec ;then
11570     version_type=linux
11571     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11572     soname_spec='$libname${shared_ext}.$major'
11573     shlibpath_var=LD_LIBRARY_PATH
11574   fi
11575   ;;
11576
11577 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11578   version_type=freebsd-elf
11579   need_lib_prefix=no
11580   need_version=no
11581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11582   soname_spec='${libname}${release}${shared_ext}$major'
11583   shlibpath_var=LD_LIBRARY_PATH
11584   shlibpath_overrides_runpath=yes
11585   hardcode_into_libs=yes
11586   if test "$with_gnu_ld" = yes; then
11587     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11588   else
11589     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11590     case $host_os in
11591       sco3.2v5*)
11592         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11593         ;;
11594     esac
11595   fi
11596   sys_lib_dlsearch_path_spec='/usr/lib'
11597   ;;
11598
11599 tpf*)
11600   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11601   version_type=linux
11602   need_lib_prefix=no
11603   need_version=no
11604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11605   shlibpath_var=LD_LIBRARY_PATH
11606   shlibpath_overrides_runpath=no
11607   hardcode_into_libs=yes
11608   ;;
11609
11610 uts4*)
11611   version_type=linux
11612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613   soname_spec='${libname}${release}${shared_ext}$major'
11614   shlibpath_var=LD_LIBRARY_PATH
11615   ;;
11616
11617 *)
11618   dynamic_linker=no
11619   ;;
11620 esac
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11622 $as_echo "$dynamic_linker" >&6; }
11623 test "$dynamic_linker" = no && can_build_shared=no
11624
11625 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11626 if test "$GCC" = yes; then
11627   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11628 fi
11629
11630 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11631   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11632 fi
11633 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11634   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11635 fi
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11729 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11730 hardcode_action=
11731 if test -n "$hardcode_libdir_flag_spec" ||
11732    test -n "$runpath_var" ||
11733    test "X$hardcode_automatic" = "Xyes" ; then
11734
11735   # We can hardcode non-existent directories.
11736   if test "$hardcode_direct" != no &&
11737      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11738      # have to relink, otherwise we might link with an installed library
11739      # when we should be linking with a yet-to-be-installed one
11740      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11741      test "$hardcode_minus_L" != no; then
11742     # Linking always hardcodes the temporary library directory.
11743     hardcode_action=relink
11744   else
11745     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11746     hardcode_action=immediate
11747   fi
11748 else
11749   # We cannot hardcode anything, or else we can only hardcode existing
11750   # directories.
11751   hardcode_action=unsupported
11752 fi
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11754 $as_echo "$hardcode_action" >&6; }
11755
11756 if test "$hardcode_action" = relink ||
11757    test "$inherit_rpath" = yes; then
11758   # Fast installation is not supported
11759   enable_fast_install=no
11760 elif test "$shlibpath_overrides_runpath" = yes ||
11761      test "$enable_shared" = no; then
11762   # Fast installation is not necessary
11763   enable_fast_install=needless
11764 fi
11765
11766
11767
11768
11769
11770
11771   if test "x$enable_dlopen" != xyes; then
11772   enable_dlopen=unknown
11773   enable_dlopen_self=unknown
11774   enable_dlopen_self_static=unknown
11775 else
11776   lt_cv_dlopen=no
11777   lt_cv_dlopen_libs=
11778
11779   case $host_os in
11780   beos*)
11781     lt_cv_dlopen="load_add_on"
11782     lt_cv_dlopen_libs=
11783     lt_cv_dlopen_self=yes
11784     ;;
11785
11786   mingw* | pw32* | cegcc*)
11787     lt_cv_dlopen="LoadLibrary"
11788     lt_cv_dlopen_libs=
11789     ;;
11790
11791   cygwin*)
11792     lt_cv_dlopen="dlopen"
11793     lt_cv_dlopen_libs=
11794     ;;
11795
11796   darwin*)
11797   # if libdl is installed we need to link against it
11798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11799 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11800 if ${ac_cv_lib_dl_dlopen+:} false; then :
11801   $as_echo_n "(cached) " >&6
11802 else
11803   ac_check_lib_save_LIBS=$LIBS
11804 LIBS="-ldl  $LIBS"
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h.  */
11807
11808 /* Override any GCC internal prototype to avoid an error.
11809    Use char because int might match the return type of a GCC
11810    builtin and then its argument prototype would still apply.  */
11811 #ifdef __cplusplus
11812 extern "C"
11813 #endif
11814 char dlopen ();
11815 int
11816 main ()
11817 {
11818 return dlopen ();
11819   ;
11820   return 0;
11821 }
11822 _ACEOF
11823 if ac_fn_c_try_link "$LINENO"; then :
11824   ac_cv_lib_dl_dlopen=yes
11825 else
11826   ac_cv_lib_dl_dlopen=no
11827 fi
11828 rm -f core conftest.err conftest.$ac_objext \
11829     conftest$ac_exeext conftest.$ac_ext
11830 LIBS=$ac_check_lib_save_LIBS
11831 fi
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11833 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11834 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11835   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11836 else
11837
11838     lt_cv_dlopen="dyld"
11839     lt_cv_dlopen_libs=
11840     lt_cv_dlopen_self=yes
11841
11842 fi
11843
11844     ;;
11845
11846   *)
11847     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11848 if test "x$ac_cv_func_shl_load" = xyes; then :
11849   lt_cv_dlopen="shl_load"
11850 else
11851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11852 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11853 if ${ac_cv_lib_dld_shl_load+:} false; then :
11854   $as_echo_n "(cached) " >&6
11855 else
11856   ac_check_lib_save_LIBS=$LIBS
11857 LIBS="-ldld  $LIBS"
11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h.  */
11860
11861 /* Override any GCC internal prototype to avoid an error.
11862    Use char because int might match the return type of a GCC
11863    builtin and then its argument prototype would still apply.  */
11864 #ifdef __cplusplus
11865 extern "C"
11866 #endif
11867 char shl_load ();
11868 int
11869 main ()
11870 {
11871 return shl_load ();
11872   ;
11873   return 0;
11874 }
11875 _ACEOF
11876 if ac_fn_c_try_link "$LINENO"; then :
11877   ac_cv_lib_dld_shl_load=yes
11878 else
11879   ac_cv_lib_dld_shl_load=no
11880 fi
11881 rm -f core conftest.err conftest.$ac_objext \
11882     conftest$ac_exeext conftest.$ac_ext
11883 LIBS=$ac_check_lib_save_LIBS
11884 fi
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11886 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11887 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11888   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11889 else
11890   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11891 if test "x$ac_cv_func_dlopen" = xyes; then :
11892   lt_cv_dlopen="dlopen"
11893 else
11894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11895 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11896 if ${ac_cv_lib_dl_dlopen+:} false; then :
11897   $as_echo_n "(cached) " >&6
11898 else
11899   ac_check_lib_save_LIBS=$LIBS
11900 LIBS="-ldl  $LIBS"
11901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h.  */
11903
11904 /* Override any GCC internal prototype to avoid an error.
11905    Use char because int might match the return type of a GCC
11906    builtin and then its argument prototype would still apply.  */
11907 #ifdef __cplusplus
11908 extern "C"
11909 #endif
11910 char dlopen ();
11911 int
11912 main ()
11913 {
11914 return dlopen ();
11915   ;
11916   return 0;
11917 }
11918 _ACEOF
11919 if ac_fn_c_try_link "$LINENO"; then :
11920   ac_cv_lib_dl_dlopen=yes
11921 else
11922   ac_cv_lib_dl_dlopen=no
11923 fi
11924 rm -f core conftest.err conftest.$ac_objext \
11925     conftest$ac_exeext conftest.$ac_ext
11926 LIBS=$ac_check_lib_save_LIBS
11927 fi
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11929 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11930 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11931   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11932 else
11933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11934 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11935 if ${ac_cv_lib_svld_dlopen+:} false; then :
11936   $as_echo_n "(cached) " >&6
11937 else
11938   ac_check_lib_save_LIBS=$LIBS
11939 LIBS="-lsvld  $LIBS"
11940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941 /* end confdefs.h.  */
11942
11943 /* Override any GCC internal prototype to avoid an error.
11944    Use char because int might match the return type of a GCC
11945    builtin and then its argument prototype would still apply.  */
11946 #ifdef __cplusplus
11947 extern "C"
11948 #endif
11949 char dlopen ();
11950 int
11951 main ()
11952 {
11953 return dlopen ();
11954   ;
11955   return 0;
11956 }
11957 _ACEOF
11958 if ac_fn_c_try_link "$LINENO"; then :
11959   ac_cv_lib_svld_dlopen=yes
11960 else
11961   ac_cv_lib_svld_dlopen=no
11962 fi
11963 rm -f core conftest.err conftest.$ac_objext \
11964     conftest$ac_exeext conftest.$ac_ext
11965 LIBS=$ac_check_lib_save_LIBS
11966 fi
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11968 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11969 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11970   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11971 else
11972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11973 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11974 if ${ac_cv_lib_dld_dld_link+:} false; then :
11975   $as_echo_n "(cached) " >&6
11976 else
11977   ac_check_lib_save_LIBS=$LIBS
11978 LIBS="-ldld  $LIBS"
11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h.  */
11981
11982 /* Override any GCC internal prototype to avoid an error.
11983    Use char because int might match the return type of a GCC
11984    builtin and then its argument prototype would still apply.  */
11985 #ifdef __cplusplus
11986 extern "C"
11987 #endif
11988 char dld_link ();
11989 int
11990 main ()
11991 {
11992 return dld_link ();
11993   ;
11994   return 0;
11995 }
11996 _ACEOF
11997 if ac_fn_c_try_link "$LINENO"; then :
11998   ac_cv_lib_dld_dld_link=yes
11999 else
12000   ac_cv_lib_dld_dld_link=no
12001 fi
12002 rm -f core conftest.err conftest.$ac_objext \
12003     conftest$ac_exeext conftest.$ac_ext
12004 LIBS=$ac_check_lib_save_LIBS
12005 fi
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12007 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12008 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12009   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12010 fi
12011
12012
12013 fi
12014
12015
12016 fi
12017
12018
12019 fi
12020
12021
12022 fi
12023
12024
12025 fi
12026
12027     ;;
12028   esac
12029
12030   if test "x$lt_cv_dlopen" != xno; then
12031     enable_dlopen=yes
12032   else
12033     enable_dlopen=no
12034   fi
12035
12036   case $lt_cv_dlopen in
12037   dlopen)
12038     save_CPPFLAGS="$CPPFLAGS"
12039     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12040
12041     save_LDFLAGS="$LDFLAGS"
12042     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12043
12044     save_LIBS="$LIBS"
12045     LIBS="$lt_cv_dlopen_libs $LIBS"
12046
12047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12048 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12049 if ${lt_cv_dlopen_self+:} false; then :
12050   $as_echo_n "(cached) " >&6
12051 else
12052           if test "$cross_compiling" = yes; then :
12053   lt_cv_dlopen_self=cross
12054 else
12055   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12056   lt_status=$lt_dlunknown
12057   cat > conftest.$ac_ext <<_LT_EOF
12058 #line $LINENO "configure"
12059 #include "confdefs.h"
12060
12061 #if HAVE_DLFCN_H
12062 #include <dlfcn.h>
12063 #endif
12064
12065 #include <stdio.h>
12066
12067 #ifdef RTLD_GLOBAL
12068 #  define LT_DLGLOBAL           RTLD_GLOBAL
12069 #else
12070 #  ifdef DL_GLOBAL
12071 #    define LT_DLGLOBAL         DL_GLOBAL
12072 #  else
12073 #    define LT_DLGLOBAL         0
12074 #  endif
12075 #endif
12076
12077 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12078    find out it does not work in some platform. */
12079 #ifndef LT_DLLAZY_OR_NOW
12080 #  ifdef RTLD_LAZY
12081 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12082 #  else
12083 #    ifdef DL_LAZY
12084 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12085 #    else
12086 #      ifdef RTLD_NOW
12087 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12088 #      else
12089 #        ifdef DL_NOW
12090 #          define LT_DLLAZY_OR_NOW      DL_NOW
12091 #        else
12092 #          define LT_DLLAZY_OR_NOW      0
12093 #        endif
12094 #      endif
12095 #    endif
12096 #  endif
12097 #endif
12098
12099 /* When -fvisbility=hidden is used, assume the code has been annotated
12100    correspondingly for the symbols needed.  */
12101 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12102 int fnord () __attribute__((visibility("default")));
12103 #endif
12104
12105 int fnord () { return 42; }
12106 int main ()
12107 {
12108   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12109   int status = $lt_dlunknown;
12110
12111   if (self)
12112     {
12113       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12114       else
12115         {
12116           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12117           else puts (dlerror ());
12118         }
12119       /* dlclose (self); */
12120     }
12121   else
12122     puts (dlerror ());
12123
12124   return status;
12125 }
12126 _LT_EOF
12127   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12128   (eval $ac_link) 2>&5
12129   ac_status=$?
12130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12131   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12132     (./conftest; exit; ) >&5 2>/dev/null
12133     lt_status=$?
12134     case x$lt_status in
12135       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12136       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12137       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12138     esac
12139   else :
12140     # compilation failed
12141     lt_cv_dlopen_self=no
12142   fi
12143 fi
12144 rm -fr conftest*
12145
12146
12147 fi
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12149 $as_echo "$lt_cv_dlopen_self" >&6; }
12150
12151     if test "x$lt_cv_dlopen_self" = xyes; then
12152       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12153       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12154 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12155 if ${lt_cv_dlopen_self_static+:} false; then :
12156   $as_echo_n "(cached) " >&6
12157 else
12158           if test "$cross_compiling" = yes; then :
12159   lt_cv_dlopen_self_static=cross
12160 else
12161   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12162   lt_status=$lt_dlunknown
12163   cat > conftest.$ac_ext <<_LT_EOF
12164 #line $LINENO "configure"
12165 #include "confdefs.h"
12166
12167 #if HAVE_DLFCN_H
12168 #include <dlfcn.h>
12169 #endif
12170
12171 #include <stdio.h>
12172
12173 #ifdef RTLD_GLOBAL
12174 #  define LT_DLGLOBAL           RTLD_GLOBAL
12175 #else
12176 #  ifdef DL_GLOBAL
12177 #    define LT_DLGLOBAL         DL_GLOBAL
12178 #  else
12179 #    define LT_DLGLOBAL         0
12180 #  endif
12181 #endif
12182
12183 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12184    find out it does not work in some platform. */
12185 #ifndef LT_DLLAZY_OR_NOW
12186 #  ifdef RTLD_LAZY
12187 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12188 #  else
12189 #    ifdef DL_LAZY
12190 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12191 #    else
12192 #      ifdef RTLD_NOW
12193 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12194 #      else
12195 #        ifdef DL_NOW
12196 #          define LT_DLLAZY_OR_NOW      DL_NOW
12197 #        else
12198 #          define LT_DLLAZY_OR_NOW      0
12199 #        endif
12200 #      endif
12201 #    endif
12202 #  endif
12203 #endif
12204
12205 /* When -fvisbility=hidden is used, assume the code has been annotated
12206    correspondingly for the symbols needed.  */
12207 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12208 int fnord () __attribute__((visibility("default")));
12209 #endif
12210
12211 int fnord () { return 42; }
12212 int main ()
12213 {
12214   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12215   int status = $lt_dlunknown;
12216
12217   if (self)
12218     {
12219       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12220       else
12221         {
12222           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12223           else puts (dlerror ());
12224         }
12225       /* dlclose (self); */
12226     }
12227   else
12228     puts (dlerror ());
12229
12230   return status;
12231 }
12232 _LT_EOF
12233   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12234   (eval $ac_link) 2>&5
12235   ac_status=$?
12236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12237   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12238     (./conftest; exit; ) >&5 2>/dev/null
12239     lt_status=$?
12240     case x$lt_status in
12241       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12242       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12243       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12244     esac
12245   else :
12246     # compilation failed
12247     lt_cv_dlopen_self_static=no
12248   fi
12249 fi
12250 rm -fr conftest*
12251
12252
12253 fi
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12255 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12256     fi
12257
12258     CPPFLAGS="$save_CPPFLAGS"
12259     LDFLAGS="$save_LDFLAGS"
12260     LIBS="$save_LIBS"
12261     ;;
12262   esac
12263
12264   case $lt_cv_dlopen_self in
12265   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12266   *) enable_dlopen_self=unknown ;;
12267   esac
12268
12269   case $lt_cv_dlopen_self_static in
12270   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12271   *) enable_dlopen_self_static=unknown ;;
12272   esac
12273 fi
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291 striplib=
12292 old_striplib=
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12294 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12295 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12296   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12297   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12299 $as_echo "yes" >&6; }
12300 else
12301 # FIXME - insert some real tests, host_os isn't really good enough
12302   case $host_os in
12303   darwin*)
12304     if test -n "$STRIP" ; then
12305       striplib="$STRIP -x"
12306       old_striplib="$STRIP -S"
12307       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12308 $as_echo "yes" >&6; }
12309     else
12310       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; }
12312     fi
12313     ;;
12314   *)
12315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12316 $as_echo "no" >&6; }
12317     ;;
12318   esac
12319 fi
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332   # Report which library types will actually be built
12333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12334 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12336 $as_echo "$can_build_shared" >&6; }
12337
12338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12339 $as_echo_n "checking whether to build shared libraries... " >&6; }
12340   test "$can_build_shared" = "no" && enable_shared=no
12341
12342   # On AIX, shared libraries and static libraries use the same namespace, and
12343   # are all built from PIC.
12344   case $host_os in
12345   aix3*)
12346     test "$enable_shared" = yes && enable_static=no
12347     if test -n "$RANLIB"; then
12348       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12349       postinstall_cmds='$RANLIB $lib'
12350     fi
12351     ;;
12352
12353   aix[4-9]*)
12354     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12355       test "$enable_shared" = yes && enable_static=no
12356     fi
12357     ;;
12358   esac
12359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12360 $as_echo "$enable_shared" >&6; }
12361
12362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12363 $as_echo_n "checking whether to build static libraries... " >&6; }
12364   # Make sure either enable_shared or enable_static is yes.
12365   test "$enable_shared" = yes || enable_static=yes
12366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12367 $as_echo "$enable_static" >&6; }
12368
12369
12370
12371
12372 fi
12373 ac_ext=c
12374 ac_cpp='$CPP $CPPFLAGS'
12375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12378
12379 CC="$lt_save_CC"
12380
12381       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12382     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12383     (test "X$CXX" != "Xg++"))) ; then
12384   ac_ext=cpp
12385 ac_cpp='$CXXCPP $CPPFLAGS'
12386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12390 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12391 if test -z "$CXXCPP"; then
12392   if ${ac_cv_prog_CXXCPP+:} false; then :
12393   $as_echo_n "(cached) " >&6
12394 else
12395       # Double quotes because CXXCPP needs to be expanded
12396     for CXXCPP in "$CXX -E" "/lib/cpp"
12397     do
12398       ac_preproc_ok=false
12399 for ac_cxx_preproc_warn_flag in '' yes
12400 do
12401   # Use a header file that comes with gcc, so configuring glibc
12402   # with a fresh cross-compiler works.
12403   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12404   # <limits.h> exists even on freestanding compilers.
12405   # On the NeXT, cc -E runs the code through the compiler's parser,
12406   # not just through cpp. "Syntax error" is here to catch this case.
12407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h.  */
12409 #ifdef __STDC__
12410 # include <limits.h>
12411 #else
12412 # include <assert.h>
12413 #endif
12414                      Syntax error
12415 _ACEOF
12416 if ac_fn_cxx_try_cpp "$LINENO"; then :
12417
12418 else
12419   # Broken: fails on valid input.
12420 continue
12421 fi
12422 rm -f conftest.err conftest.i conftest.$ac_ext
12423
12424   # OK, works on sane cases.  Now check whether nonexistent headers
12425   # can be detected and how.
12426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12427 /* end confdefs.h.  */
12428 #include <ac_nonexistent.h>
12429 _ACEOF
12430 if ac_fn_cxx_try_cpp "$LINENO"; then :
12431   # Broken: success on invalid input.
12432 continue
12433 else
12434   # Passes both tests.
12435 ac_preproc_ok=:
12436 break
12437 fi
12438 rm -f conftest.err conftest.i conftest.$ac_ext
12439
12440 done
12441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12442 rm -f conftest.i conftest.err conftest.$ac_ext
12443 if $ac_preproc_ok; then :
12444   break
12445 fi
12446
12447     done
12448     ac_cv_prog_CXXCPP=$CXXCPP
12449
12450 fi
12451   CXXCPP=$ac_cv_prog_CXXCPP
12452 else
12453   ac_cv_prog_CXXCPP=$CXXCPP
12454 fi
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12456 $as_echo "$CXXCPP" >&6; }
12457 ac_preproc_ok=false
12458 for ac_cxx_preproc_warn_flag in '' yes
12459 do
12460   # Use a header file that comes with gcc, so configuring glibc
12461   # with a fresh cross-compiler works.
12462   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12463   # <limits.h> exists even on freestanding compilers.
12464   # On the NeXT, cc -E runs the code through the compiler's parser,
12465   # not just through cpp. "Syntax error" is here to catch this case.
12466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h.  */
12468 #ifdef __STDC__
12469 # include <limits.h>
12470 #else
12471 # include <assert.h>
12472 #endif
12473                      Syntax error
12474 _ACEOF
12475 if ac_fn_cxx_try_cpp "$LINENO"; then :
12476
12477 else
12478   # Broken: fails on valid input.
12479 continue
12480 fi
12481 rm -f conftest.err conftest.i conftest.$ac_ext
12482
12483   # OK, works on sane cases.  Now check whether nonexistent headers
12484   # can be detected and how.
12485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h.  */
12487 #include <ac_nonexistent.h>
12488 _ACEOF
12489 if ac_fn_cxx_try_cpp "$LINENO"; then :
12490   # Broken: success on invalid input.
12491 continue
12492 else
12493   # Passes both tests.
12494 ac_preproc_ok=:
12495 break
12496 fi
12497 rm -f conftest.err conftest.i conftest.$ac_ext
12498
12499 done
12500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12501 rm -f conftest.i conftest.err conftest.$ac_ext
12502 if $ac_preproc_ok; then :
12503
12504 else
12505   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12507 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12508 See \`config.log' for more details" "$LINENO" 5 ; }
12509 fi
12510
12511 ac_ext=c
12512 ac_cpp='$CPP $CPPFLAGS'
12513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12516
12517 else
12518   _lt_caught_CXX_error=yes
12519 fi
12520
12521 ac_ext=cpp
12522 ac_cpp='$CXXCPP $CPPFLAGS'
12523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12526
12527 archive_cmds_need_lc_CXX=no
12528 allow_undefined_flag_CXX=
12529 always_export_symbols_CXX=no
12530 archive_expsym_cmds_CXX=
12531 compiler_needs_object_CXX=no
12532 export_dynamic_flag_spec_CXX=
12533 hardcode_direct_CXX=no
12534 hardcode_direct_absolute_CXX=no
12535 hardcode_libdir_flag_spec_CXX=
12536 hardcode_libdir_flag_spec_ld_CXX=
12537 hardcode_libdir_separator_CXX=
12538 hardcode_minus_L_CXX=no
12539 hardcode_shlibpath_var_CXX=unsupported
12540 hardcode_automatic_CXX=no
12541 inherit_rpath_CXX=no
12542 module_cmds_CXX=
12543 module_expsym_cmds_CXX=
12544 link_all_deplibs_CXX=unknown
12545 old_archive_cmds_CXX=$old_archive_cmds
12546 reload_flag_CXX=$reload_flag
12547 reload_cmds_CXX=$reload_cmds
12548 no_undefined_flag_CXX=
12549 whole_archive_flag_spec_CXX=
12550 enable_shared_with_static_runtimes_CXX=no
12551
12552 # Source file extension for C++ test sources.
12553 ac_ext=cpp
12554
12555 # Object file extension for compiled C++ test sources.
12556 objext=o
12557 objext_CXX=$objext
12558
12559 # No sense in running all these tests if we already determined that
12560 # the CXX compiler isn't working.  Some variables (like enable_shared)
12561 # are currently assumed to apply to all compilers on this platform,
12562 # and will be corrupted by setting them based on a non-working compiler.
12563 if test "$_lt_caught_CXX_error" != yes; then
12564   # Code to be used in simple compile tests
12565   lt_simple_compile_test_code="int some_variable = 0;"
12566
12567   # Code to be used in simple link tests
12568   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12569
12570   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12571
12572
12573
12574
12575
12576
12577 # If no C compiler was specified, use CC.
12578 LTCC=${LTCC-"$CC"}
12579
12580 # If no C compiler flags were specified, use CFLAGS.
12581 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12582
12583 # Allow CC to be a program name with arguments.
12584 compiler=$CC
12585
12586
12587   # save warnings/boilerplate of simple test code
12588   ac_outfile=conftest.$ac_objext
12589 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12590 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12591 _lt_compiler_boilerplate=`cat conftest.err`
12592 $RM conftest*
12593
12594   ac_outfile=conftest.$ac_objext
12595 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12596 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12597 _lt_linker_boilerplate=`cat conftest.err`
12598 $RM -r conftest*
12599
12600
12601   # Allow CC to be a program name with arguments.
12602   lt_save_CC=$CC
12603   lt_save_CFLAGS=$CFLAGS
12604   lt_save_LD=$LD
12605   lt_save_GCC=$GCC
12606   GCC=$GXX
12607   lt_save_with_gnu_ld=$with_gnu_ld
12608   lt_save_path_LD=$lt_cv_path_LD
12609   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12610     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12611   else
12612     $as_unset lt_cv_prog_gnu_ld
12613   fi
12614   if test -n "${lt_cv_path_LDCXX+set}"; then
12615     lt_cv_path_LD=$lt_cv_path_LDCXX
12616   else
12617     $as_unset lt_cv_path_LD
12618   fi
12619   test -z "${LDCXX+set}" || LD=$LDCXX
12620   CC=${CXX-"c++"}
12621   CFLAGS=$CXXFLAGS
12622   compiler=$CC
12623   compiler_CXX=$CC
12624   for cc_temp in $compiler""; do
12625   case $cc_temp in
12626     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12627     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12628     \-*) ;;
12629     *) break;;
12630   esac
12631 done
12632 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12633
12634
12635   if test -n "$compiler"; then
12636     # We don't want -fno-exception when compiling C++ code, so set the
12637     # no_builtin_flag separately
12638     if test "$GXX" = yes; then
12639       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12640     else
12641       lt_prog_compiler_no_builtin_flag_CXX=
12642     fi
12643
12644     if test "$GXX" = yes; then
12645       # Set up default GNU C++ configuration
12646
12647
12648
12649 # Check whether --with-gnu-ld was given.
12650 if test "${with_gnu_ld+set}" = set; then :
12651   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12652 else
12653   with_gnu_ld=no
12654 fi
12655
12656 ac_prog=ld
12657 if test "$GCC" = yes; then
12658   # Check if gcc -print-prog-name=ld gives a path.
12659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12660 $as_echo_n "checking for ld used by $CC... " >&6; }
12661   case $host in
12662   *-*-mingw*)
12663     # gcc leaves a trailing carriage return which upsets mingw
12664     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12665   *)
12666     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12667   esac
12668   case $ac_prog in
12669     # Accept absolute paths.
12670     [\\/]* | ?:[\\/]*)
12671       re_direlt='/[^/][^/]*/\.\./'
12672       # Canonicalize the pathname of ld
12673       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12674       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12675         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12676       done
12677       test -z "$LD" && LD="$ac_prog"
12678       ;;
12679   "")
12680     # If it fails, then pretend we aren't using GCC.
12681     ac_prog=ld
12682     ;;
12683   *)
12684     # If it is relative, then search for the first ld in PATH.
12685     with_gnu_ld=unknown
12686     ;;
12687   esac
12688 elif test "$with_gnu_ld" = yes; then
12689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12690 $as_echo_n "checking for GNU ld... " >&6; }
12691 else
12692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12693 $as_echo_n "checking for non-GNU ld... " >&6; }
12694 fi
12695 if ${lt_cv_path_LD+:} false; then :
12696   $as_echo_n "(cached) " >&6
12697 else
12698   if test -z "$LD"; then
12699   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12700   for ac_dir in $PATH; do
12701     IFS="$lt_save_ifs"
12702     test -z "$ac_dir" && ac_dir=.
12703     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12704       lt_cv_path_LD="$ac_dir/$ac_prog"
12705       # Check to see if the program is GNU ld.  I'd rather use --version,
12706       # but apparently some variants of GNU ld only accept -v.
12707       # Break only if it was the GNU/non-GNU ld that we prefer.
12708       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12709       *GNU* | *'with BFD'*)
12710         test "$with_gnu_ld" != no && break
12711         ;;
12712       *)
12713         test "$with_gnu_ld" != yes && break
12714         ;;
12715       esac
12716     fi
12717   done
12718   IFS="$lt_save_ifs"
12719 else
12720   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12721 fi
12722 fi
12723
12724 LD="$lt_cv_path_LD"
12725 if test -n "$LD"; then
12726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12727 $as_echo "$LD" >&6; }
12728 else
12729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730 $as_echo "no" >&6; }
12731 fi
12732 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12734 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12735 if ${lt_cv_prog_gnu_ld+:} false; then :
12736   $as_echo_n "(cached) " >&6
12737 else
12738   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12739 case `$LD -v 2>&1 </dev/null` in
12740 *GNU* | *'with BFD'*)
12741   lt_cv_prog_gnu_ld=yes
12742   ;;
12743 *)
12744   lt_cv_prog_gnu_ld=no
12745   ;;
12746 esac
12747 fi
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12749 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12750 with_gnu_ld=$lt_cv_prog_gnu_ld
12751
12752
12753
12754
12755
12756
12757
12758       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12759       # archiving commands below assume that GNU ld is being used.
12760       if test "$with_gnu_ld" = yes; then
12761         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12762         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12763
12764         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12765         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12766
12767         # If archive_cmds runs LD, not CC, wlarc should be empty
12768         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12769         #     investigate it a little bit more. (MM)
12770         wlarc='${wl}'
12771
12772         # ancient GNU ld didn't support --whole-archive et. al.
12773         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12774           $GREP 'no-whole-archive' > /dev/null; then
12775           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12776         else
12777           whole_archive_flag_spec_CXX=
12778         fi
12779       else
12780         with_gnu_ld=no
12781         wlarc=
12782
12783         # A generic and very simple default shared library creation
12784         # command for GNU C++ for the case where it uses the native
12785         # linker, instead of GNU ld.  If possible, this setting should
12786         # overridden to take advantage of the native linker features on
12787         # the platform it is being used on.
12788         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12789       fi
12790
12791       # Commands to make compiler produce verbose output that lists
12792       # what "hidden" libraries, object files and flags are used when
12793       # linking a shared library.
12794       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12795
12796     else
12797       GXX=no
12798       with_gnu_ld=no
12799       wlarc=
12800     fi
12801
12802     # PORTME: fill in a description of your system's C++ link characteristics
12803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12804 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12805     ld_shlibs_CXX=yes
12806     case $host_os in
12807       aix3*)
12808         # FIXME: insert proper C++ library support
12809         ld_shlibs_CXX=no
12810         ;;
12811       aix[4-9]*)
12812         if test "$host_cpu" = ia64; then
12813           # On IA64, the linker does run time linking by default, so we don't
12814           # have to do anything special.
12815           aix_use_runtimelinking=no
12816           exp_sym_flag='-Bexport'
12817           no_entry_flag=""
12818         else
12819           aix_use_runtimelinking=no
12820
12821           # Test if we are trying to use run time linking or normal
12822           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12823           # need to do runtime linking.
12824           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12825             for ld_flag in $LDFLAGS; do
12826               case $ld_flag in
12827               *-brtl*)
12828                 aix_use_runtimelinking=yes
12829                 break
12830                 ;;
12831               esac
12832             done
12833             ;;
12834           esac
12835
12836           exp_sym_flag='-bexport'
12837           no_entry_flag='-bnoentry'
12838         fi
12839
12840         # When large executables or shared objects are built, AIX ld can
12841         # have problems creating the table of contents.  If linking a library
12842         # or program results in "error TOC overflow" add -mminimal-toc to
12843         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12844         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12845
12846         archive_cmds_CXX=''
12847         hardcode_direct_CXX=yes
12848         hardcode_direct_absolute_CXX=yes
12849         hardcode_libdir_separator_CXX=':'
12850         link_all_deplibs_CXX=yes
12851         file_list_spec_CXX='${wl}-f,'
12852
12853         if test "$GXX" = yes; then
12854           case $host_os in aix4.[012]|aix4.[012].*)
12855           # We only want to do this on AIX 4.2 and lower, the check
12856           # below for broken collect2 doesn't work under 4.3+
12857           collect2name=`${CC} -print-prog-name=collect2`
12858           if test -f "$collect2name" &&
12859              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12860           then
12861             # We have reworked collect2
12862             :
12863           else
12864             # We have old collect2
12865             hardcode_direct_CXX=unsupported
12866             # It fails to find uninstalled libraries when the uninstalled
12867             # path is not listed in the libpath.  Setting hardcode_minus_L
12868             # to unsupported forces relinking
12869             hardcode_minus_L_CXX=yes
12870             hardcode_libdir_flag_spec_CXX='-L$libdir'
12871             hardcode_libdir_separator_CXX=
12872           fi
12873           esac
12874           shared_flag='-shared'
12875           if test "$aix_use_runtimelinking" = yes; then
12876             shared_flag="$shared_flag "'${wl}-G'
12877           fi
12878         else
12879           # not using gcc
12880           if test "$host_cpu" = ia64; then
12881           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12882           # chokes on -Wl,-G. The following line is correct:
12883           shared_flag='-G'
12884           else
12885             if test "$aix_use_runtimelinking" = yes; then
12886               shared_flag='${wl}-G'
12887             else
12888               shared_flag='${wl}-bM:SRE'
12889             fi
12890           fi
12891         fi
12892
12893         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12894         # It seems that -bexpall does not export symbols beginning with
12895         # underscore (_), so it is better to generate a list of symbols to
12896         # export.
12897         always_export_symbols_CXX=yes
12898         if test "$aix_use_runtimelinking" = yes; then
12899           # Warning - without using the other runtime loading flags (-brtl),
12900           # -berok will link without error, but may produce a broken library.
12901           allow_undefined_flag_CXX='-berok'
12902           # Determine the default libpath from the value encoded in an empty
12903           # executable.
12904           if test "${lt_cv_aix_libpath+set}" = set; then
12905   aix_libpath=$lt_cv_aix_libpath
12906 else
12907   if ${lt_cv_aix_libpath__CXX+:} false; then :
12908   $as_echo_n "(cached) " >&6
12909 else
12910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911 /* end confdefs.h.  */
12912
12913 int
12914 main ()
12915 {
12916
12917   ;
12918   return 0;
12919 }
12920 _ACEOF
12921 if ac_fn_cxx_try_link "$LINENO"; then :
12922
12923   lt_aix_libpath_sed='
12924       /Import File Strings/,/^$/ {
12925           /^0/ {
12926               s/^0  *\([^ ]*\) *$/\1/
12927               p
12928           }
12929       }'
12930   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12931   # Check for a 64-bit object if we didn't find anything.
12932   if test -z "$lt_cv_aix_libpath__CXX"; then
12933     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12934   fi
12935 fi
12936 rm -f core conftest.err conftest.$ac_objext \
12937     conftest$ac_exeext conftest.$ac_ext
12938   if test -z "$lt_cv_aix_libpath__CXX"; then
12939     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12940   fi
12941
12942 fi
12943
12944   aix_libpath=$lt_cv_aix_libpath__CXX
12945 fi
12946
12947           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12948
12949           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12950         else
12951           if test "$host_cpu" = ia64; then
12952             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12953             allow_undefined_flag_CXX="-z nodefs"
12954             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"
12955           else
12956             # Determine the default libpath from the value encoded in an
12957             # empty executable.
12958             if test "${lt_cv_aix_libpath+set}" = set; then
12959   aix_libpath=$lt_cv_aix_libpath
12960 else
12961   if ${lt_cv_aix_libpath__CXX+:} false; then :
12962   $as_echo_n "(cached) " >&6
12963 else
12964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h.  */
12966
12967 int
12968 main ()
12969 {
12970
12971   ;
12972   return 0;
12973 }
12974 _ACEOF
12975 if ac_fn_cxx_try_link "$LINENO"; then :
12976
12977   lt_aix_libpath_sed='
12978       /Import File Strings/,/^$/ {
12979           /^0/ {
12980               s/^0  *\([^ ]*\) *$/\1/
12981               p
12982           }
12983       }'
12984   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12985   # Check for a 64-bit object if we didn't find anything.
12986   if test -z "$lt_cv_aix_libpath__CXX"; then
12987     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12988   fi
12989 fi
12990 rm -f core conftest.err conftest.$ac_objext \
12991     conftest$ac_exeext conftest.$ac_ext
12992   if test -z "$lt_cv_aix_libpath__CXX"; then
12993     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12994   fi
12995
12996 fi
12997
12998   aix_libpath=$lt_cv_aix_libpath__CXX
12999 fi
13000
13001             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13002             # Warning - without using the other run time loading flags,
13003             # -berok will link without error, but may produce a broken library.
13004             no_undefined_flag_CXX=' ${wl}-bernotok'
13005             allow_undefined_flag_CXX=' ${wl}-berok'
13006             if test "$with_gnu_ld" = yes; then
13007               # We only use this code for GNU lds that support --whole-archive.
13008               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13009             else
13010               # Exported symbols can be pulled into shared objects from archives
13011               whole_archive_flag_spec_CXX='$convenience'
13012             fi
13013             archive_cmds_need_lc_CXX=yes
13014             # This is similar to how AIX traditionally builds its shared
13015             # libraries.
13016             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'
13017           fi
13018         fi
13019         ;;
13020
13021       beos*)
13022         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13023           allow_undefined_flag_CXX=unsupported
13024           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13025           # support --undefined.  This deserves some investigation.  FIXME
13026           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13027         else
13028           ld_shlibs_CXX=no
13029         fi
13030         ;;
13031
13032       chorus*)
13033         case $cc_basename in
13034           *)
13035           # FIXME: insert proper C++ library support
13036           ld_shlibs_CXX=no
13037           ;;
13038         esac
13039         ;;
13040
13041       cygwin* | mingw* | pw32* | cegcc*)
13042         case $GXX,$cc_basename in
13043         ,cl* | no,cl*)
13044           # Native MSVC
13045           # hardcode_libdir_flag_spec is actually meaningless, as there is
13046           # no search path for DLLs.
13047           hardcode_libdir_flag_spec_CXX=' '
13048           allow_undefined_flag_CXX=unsupported
13049           always_export_symbols_CXX=yes
13050           file_list_spec_CXX='@'
13051           # Tell ltmain to make .lib files, not .a files.
13052           libext=lib
13053           # Tell ltmain to make .dll files, not .so files.
13054           shrext_cmds=".dll"
13055           # FIXME: Setting linknames here is a bad hack.
13056           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13057           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13058               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13059             else
13060               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13061             fi~
13062             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13063             linknames='
13064           # The linker will not automatically build a static lib if we build a DLL.
13065           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13066           enable_shared_with_static_runtimes_CXX=yes
13067           # Don't use ranlib
13068           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13069           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13070             lt_tool_outputfile="@TOOL_OUTPUT@"~
13071             case $lt_outputfile in
13072               *.exe|*.EXE) ;;
13073               *)
13074                 lt_outputfile="$lt_outputfile.exe"
13075                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13076                 ;;
13077             esac~
13078             func_to_tool_file "$lt_outputfile"~
13079             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13080               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13081               $RM "$lt_outputfile.manifest";
13082             fi'
13083           ;;
13084         *)
13085           # g++
13086           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13087           # as there is no search path for DLLs.
13088           hardcode_libdir_flag_spec_CXX='-L$libdir'
13089           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13090           allow_undefined_flag_CXX=unsupported
13091           always_export_symbols_CXX=no
13092           enable_shared_with_static_runtimes_CXX=yes
13093
13094           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13095             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'
13096             # If the export-symbols file already is a .def file (1st line
13097             # is EXPORTS), use it as is; otherwise, prepend...
13098             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13099               cp $export_symbols $output_objdir/$soname.def;
13100             else
13101               echo EXPORTS > $output_objdir/$soname.def;
13102               cat $export_symbols >> $output_objdir/$soname.def;
13103             fi~
13104             $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'
13105           else
13106             ld_shlibs_CXX=no
13107           fi
13108           ;;
13109         esac
13110         ;;
13111       darwin* | rhapsody*)
13112
13113
13114   archive_cmds_need_lc_CXX=no
13115   hardcode_direct_CXX=no
13116   hardcode_automatic_CXX=yes
13117   hardcode_shlibpath_var_CXX=unsupported
13118   if test "$lt_cv_ld_force_load" = "yes"; then
13119     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13120   else
13121     whole_archive_flag_spec_CXX=''
13122   fi
13123   link_all_deplibs_CXX=yes
13124   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13125   case $cc_basename in
13126      ifort*) _lt_dar_can_shared=yes ;;
13127      *) _lt_dar_can_shared=$GCC ;;
13128   esac
13129   if test "$_lt_dar_can_shared" = "yes"; then
13130     output_verbose_link_cmd=func_echo_all
13131     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}"
13132     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13133     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}"
13134     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}"
13135        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13136       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}"
13137       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}"
13138     fi
13139
13140   else
13141   ld_shlibs_CXX=no
13142   fi
13143
13144         ;;
13145
13146       dgux*)
13147         case $cc_basename in
13148           ec++*)
13149             # FIXME: insert proper C++ library support
13150             ld_shlibs_CXX=no
13151             ;;
13152           ghcx*)
13153             # Green Hills C++ Compiler
13154             # FIXME: insert proper C++ library support
13155             ld_shlibs_CXX=no
13156             ;;
13157           *)
13158             # FIXME: insert proper C++ library support
13159             ld_shlibs_CXX=no
13160             ;;
13161         esac
13162         ;;
13163
13164       freebsd[12]*)
13165         # C++ shared libraries reported to be fairly broken before
13166         # switch to ELF
13167         ld_shlibs_CXX=no
13168         ;;
13169
13170       freebsd-elf*)
13171         archive_cmds_need_lc_CXX=no
13172         ;;
13173
13174       freebsd* | dragonfly*)
13175         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13176         # conventions
13177         ld_shlibs_CXX=yes
13178         ;;
13179
13180       gnu*)
13181         ;;
13182
13183       haiku*)
13184         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13185         link_all_deplibs_CXX=yes
13186         ;;
13187
13188       hpux9*)
13189         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13190         hardcode_libdir_separator_CXX=:
13191         export_dynamic_flag_spec_CXX='${wl}-E'
13192         hardcode_direct_CXX=yes
13193         hardcode_minus_L_CXX=yes # Not in the search PATH,
13194                                              # but as the default
13195                                              # location of the library.
13196
13197         case $cc_basename in
13198           CC*)
13199             # FIXME: insert proper C++ library support
13200             ld_shlibs_CXX=no
13201             ;;
13202           aCC*)
13203             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'
13204             # Commands to make compiler produce verbose output that lists
13205             # what "hidden" libraries, object files and flags are used when
13206             # linking a shared library.
13207             #
13208             # There doesn't appear to be a way to prevent this compiler from
13209             # explicitly linking system object files so we need to strip them
13210             # from the output so that they don't get included in the library
13211             # dependencies.
13212             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13213             ;;
13214           *)
13215             if test "$GXX" = yes; then
13216               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13217             else
13218               # FIXME: insert proper C++ library support
13219               ld_shlibs_CXX=no
13220             fi
13221             ;;
13222         esac
13223         ;;
13224
13225       hpux10*|hpux11*)
13226         if test $with_gnu_ld = no; then
13227           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13228           hardcode_libdir_separator_CXX=:
13229
13230           case $host_cpu in
13231             hppa*64*|ia64*)
13232               ;;
13233             *)
13234               export_dynamic_flag_spec_CXX='${wl}-E'
13235               ;;
13236           esac
13237         fi
13238         case $host_cpu in
13239           hppa*64*|ia64*)
13240             hardcode_direct_CXX=no
13241             hardcode_shlibpath_var_CXX=no
13242             ;;
13243           *)
13244             hardcode_direct_CXX=yes
13245             hardcode_direct_absolute_CXX=yes
13246             hardcode_minus_L_CXX=yes # Not in the search PATH,
13247                                                  # but as the default
13248                                                  # location of the library.
13249             ;;
13250         esac
13251
13252         case $cc_basename in
13253           CC*)
13254             # FIXME: insert proper C++ library support
13255             ld_shlibs_CXX=no
13256             ;;
13257           aCC*)
13258             case $host_cpu in
13259               hppa*64*)
13260                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13261                 ;;
13262               ia64*)
13263                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13264                 ;;
13265               *)
13266                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13267                 ;;
13268             esac
13269             # Commands to make compiler produce verbose output that lists
13270             # what "hidden" libraries, object files and flags are used when
13271             # linking a shared library.
13272             #
13273             # There doesn't appear to be a way to prevent this compiler from
13274             # explicitly linking system object files so we need to strip them
13275             # from the output so that they don't get included in the library
13276             # dependencies.
13277             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13278             ;;
13279           *)
13280             if test "$GXX" = yes; then
13281               if test $with_gnu_ld = no; then
13282                 case $host_cpu in
13283                   hppa*64*)
13284                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13285                     ;;
13286                   ia64*)
13287                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13288                     ;;
13289                   *)
13290                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13291                     ;;
13292                 esac
13293               fi
13294             else
13295               # FIXME: insert proper C++ library support
13296               ld_shlibs_CXX=no
13297             fi
13298             ;;
13299         esac
13300         ;;
13301
13302       interix[3-9]*)
13303         hardcode_direct_CXX=no
13304         hardcode_shlibpath_var_CXX=no
13305         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13306         export_dynamic_flag_spec_CXX='${wl}-E'
13307         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13308         # Instead, shared libraries are loaded at an image base (0x10000000 by
13309         # default) and relocated if they conflict, which is a slow very memory
13310         # consuming and fragmenting process.  To avoid this, we pick a random,
13311         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13312         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13313         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'
13314         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'
13315         ;;
13316       irix5* | irix6*)
13317         case $cc_basename in
13318           CC*)
13319             # SGI C++
13320             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13321
13322             # Archives containing C++ object files must be created using
13323             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13324             # necessary to make sure instantiated templates are included
13325             # in the archive.
13326             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13327             ;;
13328           *)
13329             if test "$GXX" = yes; then
13330               if test "$with_gnu_ld" = no; then
13331                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13332               else
13333                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13334               fi
13335             fi
13336             link_all_deplibs_CXX=yes
13337             ;;
13338         esac
13339         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13340         hardcode_libdir_separator_CXX=:
13341         inherit_rpath_CXX=yes
13342         ;;
13343
13344       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13345         case $cc_basename in
13346           KCC*)
13347             # Kuck and Associates, Inc. (KAI) C++ Compiler
13348
13349             # KCC will only create a shared library if the output file
13350             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13351             # to its proper name (with version) after linking.
13352             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'
13353             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'
13354             # Commands to make compiler produce verbose output that lists
13355             # what "hidden" libraries, object files and flags are used when
13356             # linking a shared library.
13357             #
13358             # There doesn't appear to be a way to prevent this compiler from
13359             # explicitly linking system object files so we need to strip them
13360             # from the output so that they don't get included in the library
13361             # dependencies.
13362             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13363
13364             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13365             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13366
13367             # Archives containing C++ object files must be created using
13368             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13369             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13370             ;;
13371           icpc* | ecpc* )
13372             # Intel C++
13373             with_gnu_ld=yes
13374             # version 8.0 and above of icpc choke on multiply defined symbols
13375             # if we add $predep_objects and $postdep_objects, however 7.1 and
13376             # earlier do not add the objects themselves.
13377             case `$CC -V 2>&1` in
13378               *"Version 7."*)
13379                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13380                 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'
13381                 ;;
13382               *)  # Version 8.0 or newer
13383                 tmp_idyn=
13384                 case $host_cpu in
13385                   ia64*) tmp_idyn=' -i_dynamic';;
13386                 esac
13387                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13388                 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'
13389                 ;;
13390             esac
13391             archive_cmds_need_lc_CXX=no
13392             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13393             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13394             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13395             ;;
13396           pgCC* | pgcpp*)
13397             # Portland Group C++ compiler
13398             case `$CC -V` in
13399             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13400               prelink_cmds_CXX='tpldir=Template.dir~
13401                 rm -rf $tpldir~
13402                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13403                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13404               old_archive_cmds_CXX='tpldir=Template.dir~
13405                 rm -rf $tpldir~
13406                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13407                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13408                 $RANLIB $oldlib'
13409               archive_cmds_CXX='tpldir=Template.dir~
13410                 rm -rf $tpldir~
13411                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13412                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13413               archive_expsym_cmds_CXX='tpldir=Template.dir~
13414                 rm -rf $tpldir~
13415                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13416                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13417               ;;
13418             *) # Version 6 and above use weak symbols
13419               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13420               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'
13421               ;;
13422             esac
13423
13424             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13425             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13426             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13427             ;;
13428           cxx*)
13429             # Compaq C++
13430             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13431             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'
13432
13433             runpath_var=LD_RUN_PATH
13434             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13435             hardcode_libdir_separator_CXX=:
13436
13437             # Commands to make compiler produce verbose output that lists
13438             # what "hidden" libraries, object files and flags are used when
13439             # linking a shared library.
13440             #
13441             # There doesn't appear to be a way to prevent this compiler from
13442             # explicitly linking system object files so we need to strip them
13443             # from the output so that they don't get included in the library
13444             # dependencies.
13445             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13446             ;;
13447           xl* | mpixl* | bgxl*)
13448             # IBM XL 8.0 on PPC, with GNU ld
13449             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13450             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13451             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13452             if test "x$supports_anon_versioning" = xyes; then
13453               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13454                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13455                 echo "local: *; };" >> $output_objdir/$libname.ver~
13456                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13457             fi
13458             ;;
13459           *)
13460             case `$CC -V 2>&1 | sed 5q` in
13461             *Sun\ C*)
13462               # Sun C++ 5.9
13463               no_undefined_flag_CXX=' -zdefs'
13464               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13465               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'
13466               hardcode_libdir_flag_spec_CXX='-R$libdir'
13467               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13468               compiler_needs_object_CXX=yes
13469
13470               # Not sure whether something based on
13471               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13472               # would be better.
13473               output_verbose_link_cmd='func_echo_all'
13474
13475               # Archives containing C++ object files must be created using
13476               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13477               # necessary to make sure instantiated templates are included
13478               # in the archive.
13479               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13480               ;;
13481             esac
13482             ;;
13483         esac
13484         ;;
13485
13486       lynxos*)
13487         # FIXME: insert proper C++ library support
13488         ld_shlibs_CXX=no
13489         ;;
13490
13491       m88k*)
13492         # FIXME: insert proper C++ library support
13493         ld_shlibs_CXX=no
13494         ;;
13495
13496       mvs*)
13497         case $cc_basename in
13498           cxx*)
13499             # FIXME: insert proper C++ library support
13500             ld_shlibs_CXX=no
13501             ;;
13502           *)
13503             # FIXME: insert proper C++ library support
13504             ld_shlibs_CXX=no
13505             ;;
13506         esac
13507         ;;
13508
13509       netbsd*)
13510         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13511           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13512           wlarc=
13513           hardcode_libdir_flag_spec_CXX='-R$libdir'
13514           hardcode_direct_CXX=yes
13515           hardcode_shlibpath_var_CXX=no
13516         fi
13517         # Workaround some broken pre-1.5 toolchains
13518         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13519         ;;
13520
13521       *nto* | *qnx*)
13522         ld_shlibs_CXX=yes
13523         ;;
13524
13525       openbsd2*)
13526         # C++ shared libraries are fairly broken
13527         ld_shlibs_CXX=no
13528         ;;
13529
13530       openbsd*)
13531         if test -f /usr/libexec/ld.so; then
13532           hardcode_direct_CXX=yes
13533           hardcode_shlibpath_var_CXX=no
13534           hardcode_direct_absolute_CXX=yes
13535           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13536           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13537           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13538             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13539             export_dynamic_flag_spec_CXX='${wl}-E'
13540             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13541           fi
13542           output_verbose_link_cmd=func_echo_all
13543         else
13544           ld_shlibs_CXX=no
13545         fi
13546         ;;
13547
13548       osf3* | osf4* | osf5*)
13549         case $cc_basename in
13550           KCC*)
13551             # Kuck and Associates, Inc. (KAI) C++ Compiler
13552
13553             # KCC will only create a shared library if the output file
13554             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13555             # to its proper name (with version) after linking.
13556             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'
13557
13558             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13559             hardcode_libdir_separator_CXX=:
13560
13561             # Archives containing C++ object files must be created using
13562             # the KAI C++ compiler.
13563             case $host in
13564               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13565               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13566             esac
13567             ;;
13568           RCC*)
13569             # Rational C++ 2.4.1
13570             # FIXME: insert proper C++ library support
13571             ld_shlibs_CXX=no
13572             ;;
13573           cxx*)
13574             case $host in
13575               osf3*)
13576                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13577                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13578                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13579                 ;;
13580               *)
13581                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13582                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13583                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13584                   echo "-hidden">> $lib.exp~
13585                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13586                   $RM $lib.exp'
13587                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13588                 ;;
13589             esac
13590
13591             hardcode_libdir_separator_CXX=:
13592
13593             # Commands to make compiler produce verbose output that lists
13594             # what "hidden" libraries, object files and flags are used when
13595             # linking a shared library.
13596             #
13597             # There doesn't appear to be a way to prevent this compiler from
13598             # explicitly linking system object files so we need to strip them
13599             # from the output so that they don't get included in the library
13600             # dependencies.
13601             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13602             ;;
13603           *)
13604             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13605               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13606               case $host in
13607                 osf3*)
13608                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13609                   ;;
13610                 *)
13611                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13612                   ;;
13613               esac
13614
13615               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13616               hardcode_libdir_separator_CXX=:
13617
13618               # Commands to make compiler produce verbose output that lists
13619               # what "hidden" libraries, object files and flags are used when
13620               # linking a shared library.
13621               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13622
13623             else
13624               # FIXME: insert proper C++ library support
13625               ld_shlibs_CXX=no
13626             fi
13627             ;;
13628         esac
13629         ;;
13630
13631       psos*)
13632         # FIXME: insert proper C++ library support
13633         ld_shlibs_CXX=no
13634         ;;
13635
13636       sunos4*)
13637         case $cc_basename in
13638           CC*)
13639             # Sun C++ 4.x
13640             # FIXME: insert proper C++ library support
13641             ld_shlibs_CXX=no
13642             ;;
13643           lcc*)
13644             # Lucid
13645             # FIXME: insert proper C++ library support
13646             ld_shlibs_CXX=no
13647             ;;
13648           *)
13649             # FIXME: insert proper C++ library support
13650             ld_shlibs_CXX=no
13651             ;;
13652         esac
13653         ;;
13654
13655       solaris*)
13656         case $cc_basename in
13657           CC* | sunCC*)
13658             # Sun C++ 4.2, 5.x and Centerline C++
13659             archive_cmds_need_lc_CXX=yes
13660             no_undefined_flag_CXX=' -zdefs'
13661             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13662             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13663               $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'
13664
13665             hardcode_libdir_flag_spec_CXX='-R$libdir'
13666             hardcode_shlibpath_var_CXX=no
13667             case $host_os in
13668               solaris2.[0-5] | solaris2.[0-5].*) ;;
13669               *)
13670                 # The compiler driver will combine and reorder linker options,
13671                 # but understands `-z linker_flag'.
13672                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13673                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13674                 ;;
13675             esac
13676             link_all_deplibs_CXX=yes
13677
13678             output_verbose_link_cmd='func_echo_all'
13679
13680             # Archives containing C++ object files must be created using
13681             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13682             # necessary to make sure instantiated templates are included
13683             # in the archive.
13684             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13685             ;;
13686           gcx*)
13687             # Green Hills C++ Compiler
13688             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13689
13690             # The C++ compiler must be used to create the archive.
13691             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13692             ;;
13693           *)
13694             # GNU C++ compiler with Solaris linker
13695             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13696               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13697               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13698                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13699                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13700                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13701
13702                 # Commands to make compiler produce verbose output that lists
13703                 # what "hidden" libraries, object files and flags are used when
13704                 # linking a shared library.
13705                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13706               else
13707                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13708                 # platform.
13709                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13710                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13711                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13712
13713                 # Commands to make compiler produce verbose output that lists
13714                 # what "hidden" libraries, object files and flags are used when
13715                 # linking a shared library.
13716                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13717               fi
13718
13719               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13720               case $host_os in
13721                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13722                 *)
13723                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13724                   ;;
13725               esac
13726             fi
13727             ;;
13728         esac
13729         ;;
13730
13731     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13732       no_undefined_flag_CXX='${wl}-z,text'
13733       archive_cmds_need_lc_CXX=no
13734       hardcode_shlibpath_var_CXX=no
13735       runpath_var='LD_RUN_PATH'
13736
13737       case $cc_basename in
13738         CC*)
13739           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13740           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13741           ;;
13742         *)
13743           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13744           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13745           ;;
13746       esac
13747       ;;
13748
13749       sysv5* | sco3.2v5* | sco5v6*)
13750         # Note: We can NOT use -z defs as we might desire, because we do not
13751         # link with -lc, and that would cause any symbols used from libc to
13752         # always be unresolved, which means just about no library would
13753         # ever link correctly.  If we're not using GNU ld we use -z text
13754         # though, which does catch some bad symbols but isn't as heavy-handed
13755         # as -z defs.
13756         no_undefined_flag_CXX='${wl}-z,text'
13757         allow_undefined_flag_CXX='${wl}-z,nodefs'
13758         archive_cmds_need_lc_CXX=no
13759         hardcode_shlibpath_var_CXX=no
13760         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13761         hardcode_libdir_separator_CXX=':'
13762         link_all_deplibs_CXX=yes
13763         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13764         runpath_var='LD_RUN_PATH'
13765
13766         case $cc_basename in
13767           CC*)
13768             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13769             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13770             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13771               '"$old_archive_cmds_CXX"
13772             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13773               '"$reload_cmds_CXX"
13774             ;;
13775           *)
13776             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13777             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13778             ;;
13779         esac
13780       ;;
13781
13782       tandem*)
13783         case $cc_basename in
13784           NCC*)
13785             # NonStop-UX NCC 3.20
13786             # FIXME: insert proper C++ library support
13787             ld_shlibs_CXX=no
13788             ;;
13789           *)
13790             # FIXME: insert proper C++ library support
13791             ld_shlibs_CXX=no
13792             ;;
13793         esac
13794         ;;
13795
13796       vxworks*)
13797         # FIXME: insert proper C++ library support
13798         ld_shlibs_CXX=no
13799         ;;
13800
13801       *)
13802         # FIXME: insert proper C++ library support
13803         ld_shlibs_CXX=no
13804         ;;
13805     esac
13806
13807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13808 $as_echo "$ld_shlibs_CXX" >&6; }
13809     test "$ld_shlibs_CXX" = no && can_build_shared=no
13810
13811     GCC_CXX="$GXX"
13812     LD_CXX="$LD"
13813
13814     ## CAVEAT EMPTOR:
13815     ## There is no encapsulation within the following macros, do not change
13816     ## the running order or otherwise move them around unless you know exactly
13817     ## what you are doing...
13818     # Dependencies to place before and after the object being linked:
13819 predep_objects_CXX=
13820 postdep_objects_CXX=
13821 predeps_CXX=
13822 postdeps_CXX=
13823 compiler_lib_search_path_CXX=
13824
13825 cat > conftest.$ac_ext <<_LT_EOF
13826 class Foo
13827 {
13828 public:
13829   Foo (void) { a = 0; }
13830 private:
13831   int a;
13832 };
13833 _LT_EOF
13834
13835
13836 _lt_libdeps_save_CFLAGS=$CFLAGS
13837 case "$CC $CFLAGS " in #(
13838 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13839 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13840 esac
13841
13842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13843   (eval $ac_compile) 2>&5
13844   ac_status=$?
13845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13846   test $ac_status = 0; }; then
13847   # Parse the compiler output and extract the necessary
13848   # objects, libraries and library flags.
13849
13850   # Sentinel used to keep track of whether or not we are before
13851   # the conftest object file.
13852   pre_test_object_deps_done=no
13853
13854   for p in `eval "$output_verbose_link_cmd"`; do
13855     case ${prev}${p} in
13856
13857     -L* | -R* | -l*)
13858        # Some compilers place space between "-{L,R}" and the path.
13859        # Remove the space.
13860        if test $p = "-L" ||
13861           test $p = "-R"; then
13862          prev=$p
13863          continue
13864        fi
13865
13866        # Expand the sysroot to ease extracting the directories later.
13867        if test -z "$prev"; then
13868          case $p in
13869          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13870          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13871          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13872          esac
13873        fi
13874        case $p in
13875        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13876        esac
13877        if test "$pre_test_object_deps_done" = no; then
13878          case ${prev} in
13879          -L | -R)
13880            # Internal compiler library paths should come after those
13881            # provided the user.  The postdeps already come after the
13882            # user supplied libs so there is no need to process them.
13883            if test -z "$compiler_lib_search_path_CXX"; then
13884              compiler_lib_search_path_CXX="${prev}${p}"
13885            else
13886              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13887            fi
13888            ;;
13889          # The "-l" case would never come before the object being
13890          # linked, so don't bother handling this case.
13891          esac
13892        else
13893          if test -z "$postdeps_CXX"; then
13894            postdeps_CXX="${prev}${p}"
13895          else
13896            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13897          fi
13898        fi
13899        prev=
13900        ;;
13901
13902     *.lto.$objext) ;; # Ignore GCC LTO objects
13903     *.$objext)
13904        # This assumes that the test object file only shows up
13905        # once in the compiler output.
13906        if test "$p" = "conftest.$objext"; then
13907          pre_test_object_deps_done=yes
13908          continue
13909        fi
13910
13911        if test "$pre_test_object_deps_done" = no; then
13912          if test -z "$predep_objects_CXX"; then
13913            predep_objects_CXX="$p"
13914          else
13915            predep_objects_CXX="$predep_objects_CXX $p"
13916          fi
13917        else
13918          if test -z "$postdep_objects_CXX"; then
13919            postdep_objects_CXX="$p"
13920          else
13921            postdep_objects_CXX="$postdep_objects_CXX $p"
13922          fi
13923        fi
13924        ;;
13925
13926     *) ;; # Ignore the rest.
13927
13928     esac
13929   done
13930
13931   # Clean up.
13932   rm -f a.out a.exe
13933 else
13934   echo "libtool.m4: error: problem compiling CXX test program"
13935 fi
13936
13937 $RM -f confest.$objext
13938 CFLAGS=$_lt_libdeps_save_CFLAGS
13939
13940 # PORTME: override above test on systems where it is broken
13941 case $host_os in
13942 interix[3-9]*)
13943   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13944   # hack all around it, let's just trust "g++" to DTRT.
13945   predep_objects_CXX=
13946   postdep_objects_CXX=
13947   postdeps_CXX=
13948   ;;
13949
13950 linux*)
13951   case `$CC -V 2>&1 | sed 5q` in
13952   *Sun\ C*)
13953     # Sun C++ 5.9
13954
13955     # The more standards-conforming stlport4 library is
13956     # incompatible with the Cstd library. Avoid specifying
13957     # it if it's in CXXFLAGS. Ignore libCrun as
13958     # -library=stlport4 depends on it.
13959     case " $CXX $CXXFLAGS " in
13960     *" -library=stlport4 "*)
13961       solaris_use_stlport4=yes
13962       ;;
13963     esac
13964
13965     if test "$solaris_use_stlport4" != yes; then
13966       postdeps_CXX='-library=Cstd -library=Crun'
13967     fi
13968     ;;
13969   esac
13970   ;;
13971
13972 solaris*)
13973   case $cc_basename in
13974   CC* | sunCC*)
13975     # The more standards-conforming stlport4 library is
13976     # incompatible with the Cstd library. Avoid specifying
13977     # it if it's in CXXFLAGS. Ignore libCrun as
13978     # -library=stlport4 depends on it.
13979     case " $CXX $CXXFLAGS " in
13980     *" -library=stlport4 "*)
13981       solaris_use_stlport4=yes
13982       ;;
13983     esac
13984
13985     # Adding this requires a known-good setup of shared libraries for
13986     # Sun compiler versions before 5.6, else PIC objects from an old
13987     # archive will be linked into the output, leading to subtle bugs.
13988     if test "$solaris_use_stlport4" != yes; then
13989       postdeps_CXX='-library=Cstd -library=Crun'
13990     fi
13991     ;;
13992   esac
13993   ;;
13994 esac
13995
13996
13997 case " $postdeps_CXX " in
13998 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13999 esac
14000  compiler_lib_search_dirs_CXX=
14001 if test -n "${compiler_lib_search_path_CXX}"; then
14002  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14003 fi
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035     lt_prog_compiler_wl_CXX=
14036 lt_prog_compiler_pic_CXX=
14037 lt_prog_compiler_static_CXX=
14038
14039
14040   # C++ specific cases for pic, static, wl, etc.
14041   if test "$GXX" = yes; then
14042     lt_prog_compiler_wl_CXX='-Wl,'
14043     lt_prog_compiler_static_CXX='-static'
14044
14045     case $host_os in
14046     aix*)
14047       # All AIX code is PIC.
14048       if test "$host_cpu" = ia64; then
14049         # AIX 5 now supports IA64 processor
14050         lt_prog_compiler_static_CXX='-Bstatic'
14051       fi
14052       ;;
14053
14054     amigaos*)
14055       case $host_cpu in
14056       powerpc)
14057             # see comment about AmigaOS4 .so support
14058             lt_prog_compiler_pic_CXX='-fPIC'
14059         ;;
14060       m68k)
14061             # FIXME: we need at least 68020 code to build shared libraries, but
14062             # adding the `-m68020' flag to GCC prevents building anything better,
14063             # like `-m68040'.
14064             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14065         ;;
14066       esac
14067       ;;
14068
14069     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14070       # PIC is the default for these OSes.
14071       ;;
14072     mingw* | cygwin* | os2* | pw32* | cegcc*)
14073       # This hack is so that the source file can tell whether it is being
14074       # built for inclusion in a dll (and should export symbols for example).
14075       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14076       # (--disable-auto-import) libraries
14077       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14078       ;;
14079     darwin* | rhapsody*)
14080       # PIC is the default on this platform
14081       # Common symbols not allowed in MH_DYLIB files
14082       lt_prog_compiler_pic_CXX='-fno-common'
14083       ;;
14084     *djgpp*)
14085       # DJGPP does not support shared libraries at all
14086       lt_prog_compiler_pic_CXX=
14087       ;;
14088     haiku*)
14089       # PIC is the default for Haiku.
14090       # The "-static" flag exists, but is broken.
14091       lt_prog_compiler_static_CXX=
14092       ;;
14093     interix[3-9]*)
14094       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14095       # Instead, we relocate shared libraries at runtime.
14096       ;;
14097     sysv4*MP*)
14098       if test -d /usr/nec; then
14099         lt_prog_compiler_pic_CXX=-Kconform_pic
14100       fi
14101       ;;
14102     hpux*)
14103       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14104       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14105       # sets the default TLS model and affects inlining.
14106       case $host_cpu in
14107       hppa*64*)
14108         ;;
14109       *)
14110         lt_prog_compiler_pic_CXX='-fPIC'
14111         ;;
14112       esac
14113       ;;
14114     *qnx* | *nto*)
14115       # QNX uses GNU C++, but need to define -shared option too, otherwise
14116       # it will coredump.
14117       lt_prog_compiler_pic_CXX='-fPIC -shared'
14118       ;;
14119     *)
14120       lt_prog_compiler_pic_CXX='-fPIC'
14121       ;;
14122     esac
14123   else
14124     case $host_os in
14125       aix[4-9]*)
14126         # All AIX code is PIC.
14127         if test "$host_cpu" = ia64; then
14128           # AIX 5 now supports IA64 processor
14129           lt_prog_compiler_static_CXX='-Bstatic'
14130         else
14131           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14132         fi
14133         ;;
14134       chorus*)
14135         case $cc_basename in
14136         cxch68*)
14137           # Green Hills C++ Compiler
14138           # _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"
14139           ;;
14140         esac
14141         ;;
14142       mingw* | cygwin* | os2* | pw32* | cegcc*)
14143         # This hack is so that the source file can tell whether it is being
14144         # built for inclusion in a dll (and should export symbols for example).
14145         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14146         ;;
14147       dgux*)
14148         case $cc_basename in
14149           ec++*)
14150             lt_prog_compiler_pic_CXX='-KPIC'
14151             ;;
14152           ghcx*)
14153             # Green Hills C++ Compiler
14154             lt_prog_compiler_pic_CXX='-pic'
14155             ;;
14156           *)
14157             ;;
14158         esac
14159         ;;
14160       freebsd* | dragonfly*)
14161         # FreeBSD uses GNU C++
14162         ;;
14163       hpux9* | hpux10* | hpux11*)
14164         case $cc_basename in
14165           CC*)
14166             lt_prog_compiler_wl_CXX='-Wl,'
14167             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14168             if test "$host_cpu" != ia64; then
14169               lt_prog_compiler_pic_CXX='+Z'
14170             fi
14171             ;;
14172           aCC*)
14173             lt_prog_compiler_wl_CXX='-Wl,'
14174             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14175             case $host_cpu in
14176             hppa*64*|ia64*)
14177               # +Z the default
14178               ;;
14179             *)
14180               lt_prog_compiler_pic_CXX='+Z'
14181               ;;
14182             esac
14183             ;;
14184           *)
14185             ;;
14186         esac
14187         ;;
14188       interix*)
14189         # This is c89, which is MS Visual C++ (no shared libs)
14190         # Anyone wants to do a port?
14191         ;;
14192       irix5* | irix6* | nonstopux*)
14193         case $cc_basename in
14194           CC*)
14195             lt_prog_compiler_wl_CXX='-Wl,'
14196             lt_prog_compiler_static_CXX='-non_shared'
14197             # CC pic flag -KPIC is the default.
14198             ;;
14199           *)
14200             ;;
14201         esac
14202         ;;
14203       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14204         case $cc_basename in
14205           KCC*)
14206             # KAI C++ Compiler
14207             lt_prog_compiler_wl_CXX='--backend -Wl,'
14208             lt_prog_compiler_pic_CXX='-fPIC'
14209             ;;
14210           ecpc* )
14211             # old Intel C++ for x86_64 which still supported -KPIC.
14212             lt_prog_compiler_wl_CXX='-Wl,'
14213             lt_prog_compiler_pic_CXX='-KPIC'
14214             lt_prog_compiler_static_CXX='-static'
14215             ;;
14216           icpc* )
14217             # Intel C++, used to be incompatible with GCC.
14218             # ICC 10 doesn't accept -KPIC any more.
14219             lt_prog_compiler_wl_CXX='-Wl,'
14220             lt_prog_compiler_pic_CXX='-fPIC'
14221             lt_prog_compiler_static_CXX='-static'
14222             ;;
14223           pgCC* | pgcpp*)
14224             # Portland Group C++ compiler
14225             lt_prog_compiler_wl_CXX='-Wl,'
14226             lt_prog_compiler_pic_CXX='-fpic'
14227             lt_prog_compiler_static_CXX='-Bstatic'
14228             ;;
14229           cxx*)
14230             # Compaq C++
14231             # Make sure the PIC flag is empty.  It appears that all Alpha
14232             # Linux and Compaq Tru64 Unix objects are PIC.
14233             lt_prog_compiler_pic_CXX=
14234             lt_prog_compiler_static_CXX='-non_shared'
14235             ;;
14236           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14237             # IBM XL 8.0, 9.0 on PPC and BlueGene
14238             lt_prog_compiler_wl_CXX='-Wl,'
14239             lt_prog_compiler_pic_CXX='-qpic'
14240             lt_prog_compiler_static_CXX='-qstaticlink'
14241             ;;
14242           *)
14243             case `$CC -V 2>&1 | sed 5q` in
14244             *Sun\ C*)
14245               # Sun C++ 5.9
14246               lt_prog_compiler_pic_CXX='-KPIC'
14247               lt_prog_compiler_static_CXX='-Bstatic'
14248               lt_prog_compiler_wl_CXX='-Qoption ld '
14249               ;;
14250             esac
14251             ;;
14252         esac
14253         ;;
14254       lynxos*)
14255         ;;
14256       m88k*)
14257         ;;
14258       mvs*)
14259         case $cc_basename in
14260           cxx*)
14261             lt_prog_compiler_pic_CXX='-W c,exportall'
14262             ;;
14263           *)
14264             ;;
14265         esac
14266         ;;
14267       netbsd*)
14268         ;;
14269       *qnx* | *nto*)
14270         # QNX uses GNU C++, but need to define -shared option too, otherwise
14271         # it will coredump.
14272         lt_prog_compiler_pic_CXX='-fPIC -shared'
14273         ;;
14274       osf3* | osf4* | osf5*)
14275         case $cc_basename in
14276           KCC*)
14277             lt_prog_compiler_wl_CXX='--backend -Wl,'
14278             ;;
14279           RCC*)
14280             # Rational C++ 2.4.1
14281             lt_prog_compiler_pic_CXX='-pic'
14282             ;;
14283           cxx*)
14284             # Digital/Compaq C++
14285             lt_prog_compiler_wl_CXX='-Wl,'
14286             # Make sure the PIC flag is empty.  It appears that all Alpha
14287             # Linux and Compaq Tru64 Unix objects are PIC.
14288             lt_prog_compiler_pic_CXX=
14289             lt_prog_compiler_static_CXX='-non_shared'
14290             ;;
14291           *)
14292             ;;
14293         esac
14294         ;;
14295       psos*)
14296         ;;
14297       solaris*)
14298         case $cc_basename in
14299           CC* | sunCC*)
14300             # Sun C++ 4.2, 5.x and Centerline C++
14301             lt_prog_compiler_pic_CXX='-KPIC'
14302             lt_prog_compiler_static_CXX='-Bstatic'
14303             lt_prog_compiler_wl_CXX='-Qoption ld '
14304             ;;
14305           gcx*)
14306             # Green Hills C++ Compiler
14307             lt_prog_compiler_pic_CXX='-PIC'
14308             ;;
14309           *)
14310             ;;
14311         esac
14312         ;;
14313       sunos4*)
14314         case $cc_basename in
14315           CC*)
14316             # Sun C++ 4.x
14317             lt_prog_compiler_pic_CXX='-pic'
14318             lt_prog_compiler_static_CXX='-Bstatic'
14319             ;;
14320           lcc*)
14321             # Lucid
14322             lt_prog_compiler_pic_CXX='-pic'
14323             ;;
14324           *)
14325             ;;
14326         esac
14327         ;;
14328       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14329         case $cc_basename in
14330           CC*)
14331             lt_prog_compiler_wl_CXX='-Wl,'
14332             lt_prog_compiler_pic_CXX='-KPIC'
14333             lt_prog_compiler_static_CXX='-Bstatic'
14334             ;;
14335         esac
14336         ;;
14337       tandem*)
14338         case $cc_basename in
14339           NCC*)
14340             # NonStop-UX NCC 3.20
14341             lt_prog_compiler_pic_CXX='-KPIC'
14342             ;;
14343           *)
14344             ;;
14345         esac
14346         ;;
14347       vxworks*)
14348         ;;
14349       *)
14350         lt_prog_compiler_can_build_shared_CXX=no
14351         ;;
14352     esac
14353   fi
14354
14355 case $host_os in
14356   # For platforms which do not support PIC, -DPIC is meaningless:
14357   *djgpp*)
14358     lt_prog_compiler_pic_CXX=
14359     ;;
14360   *)
14361     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14362     ;;
14363 esac
14364
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14366 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14367 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14368   $as_echo_n "(cached) " >&6
14369 else
14370   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14371 fi
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14373 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14374 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14375
14376 #
14377 # Check to make sure the PIC flag actually works.
14378 #
14379 if test -n "$lt_prog_compiler_pic_CXX"; then
14380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14381 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14382 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14383   $as_echo_n "(cached) " >&6
14384 else
14385   lt_cv_prog_compiler_pic_works_CXX=no
14386    ac_outfile=conftest.$ac_objext
14387    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14388    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14389    # Insert the option either (1) after the last *FLAGS variable, or
14390    # (2) before a word containing "conftest.", or (3) at the end.
14391    # Note that $ac_compile itself does not contain backslashes and begins
14392    # with a dollar sign (not a hyphen), so the echo should work correctly.
14393    # The option is referenced via a variable to avoid confusing sed.
14394    lt_compile=`echo "$ac_compile" | $SED \
14395    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14396    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14397    -e 's:$: $lt_compiler_flag:'`
14398    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14399    (eval "$lt_compile" 2>conftest.err)
14400    ac_status=$?
14401    cat conftest.err >&5
14402    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403    if (exit $ac_status) && test -s "$ac_outfile"; then
14404      # The compiler can only warn and ignore the option if not recognized
14405      # So say no if there are warnings other than the usual output.
14406      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14407      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14408      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14409        lt_cv_prog_compiler_pic_works_CXX=yes
14410      fi
14411    fi
14412    $RM conftest*
14413
14414 fi
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14416 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14417
14418 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14419     case $lt_prog_compiler_pic_CXX in
14420      "" | " "*) ;;
14421      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14422      esac
14423 else
14424     lt_prog_compiler_pic_CXX=
14425      lt_prog_compiler_can_build_shared_CXX=no
14426 fi
14427
14428 fi
14429
14430
14431
14432
14433
14434 #
14435 # Check to make sure the static flag actually works.
14436 #
14437 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14439 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14440 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14441   $as_echo_n "(cached) " >&6
14442 else
14443   lt_cv_prog_compiler_static_works_CXX=no
14444    save_LDFLAGS="$LDFLAGS"
14445    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14446    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14447    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14448      # The linker can only warn and ignore the option if not recognized
14449      # So say no if there are warnings
14450      if test -s conftest.err; then
14451        # Append any errors to the config.log.
14452        cat conftest.err 1>&5
14453        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14454        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14455        if diff conftest.exp conftest.er2 >/dev/null; then
14456          lt_cv_prog_compiler_static_works_CXX=yes
14457        fi
14458      else
14459        lt_cv_prog_compiler_static_works_CXX=yes
14460      fi
14461    fi
14462    $RM -r conftest*
14463    LDFLAGS="$save_LDFLAGS"
14464
14465 fi
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14467 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14468
14469 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14470     :
14471 else
14472     lt_prog_compiler_static_CXX=
14473 fi
14474
14475
14476
14477
14478     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14479 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14480 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14481   $as_echo_n "(cached) " >&6
14482 else
14483   lt_cv_prog_compiler_c_o_CXX=no
14484    $RM -r conftest 2>/dev/null
14485    mkdir conftest
14486    cd conftest
14487    mkdir out
14488    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14489
14490    lt_compiler_flag="-o out/conftest2.$ac_objext"
14491    # Insert the option either (1) after the last *FLAGS variable, or
14492    # (2) before a word containing "conftest.", or (3) at the end.
14493    # Note that $ac_compile itself does not contain backslashes and begins
14494    # with a dollar sign (not a hyphen), so the echo should work correctly.
14495    lt_compile=`echo "$ac_compile" | $SED \
14496    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14497    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14498    -e 's:$: $lt_compiler_flag:'`
14499    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14500    (eval "$lt_compile" 2>out/conftest.err)
14501    ac_status=$?
14502    cat out/conftest.err >&5
14503    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14505    then
14506      # The compiler can only warn and ignore the option if not recognized
14507      # So say no if there are warnings
14508      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14509      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14510      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14511        lt_cv_prog_compiler_c_o_CXX=yes
14512      fi
14513    fi
14514    chmod u+w . 2>&5
14515    $RM conftest*
14516    # SGI C++ compiler will create directory out/ii_files/ for
14517    # template instantiation
14518    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14519    $RM out/* && rmdir out
14520    cd ..
14521    $RM -r conftest
14522    $RM conftest*
14523
14524 fi
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14526 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14527
14528
14529
14530     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14531 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14532 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14533   $as_echo_n "(cached) " >&6
14534 else
14535   lt_cv_prog_compiler_c_o_CXX=no
14536    $RM -r conftest 2>/dev/null
14537    mkdir conftest
14538    cd conftest
14539    mkdir out
14540    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14541
14542    lt_compiler_flag="-o out/conftest2.$ac_objext"
14543    # Insert the option either (1) after the last *FLAGS variable, or
14544    # (2) before a word containing "conftest.", or (3) at the end.
14545    # Note that $ac_compile itself does not contain backslashes and begins
14546    # with a dollar sign (not a hyphen), so the echo should work correctly.
14547    lt_compile=`echo "$ac_compile" | $SED \
14548    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14549    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14550    -e 's:$: $lt_compiler_flag:'`
14551    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14552    (eval "$lt_compile" 2>out/conftest.err)
14553    ac_status=$?
14554    cat out/conftest.err >&5
14555    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14557    then
14558      # The compiler can only warn and ignore the option if not recognized
14559      # So say no if there are warnings
14560      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14561      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14562      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14563        lt_cv_prog_compiler_c_o_CXX=yes
14564      fi
14565    fi
14566    chmod u+w . 2>&5
14567    $RM conftest*
14568    # SGI C++ compiler will create directory out/ii_files/ for
14569    # template instantiation
14570    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14571    $RM out/* && rmdir out
14572    cd ..
14573    $RM -r conftest
14574    $RM conftest*
14575
14576 fi
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14578 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14579
14580
14581
14582
14583 hard_links="nottested"
14584 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14585   # do not overwrite the value of need_locks provided by the user
14586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14587 $as_echo_n "checking if we can lock with hard links... " >&6; }
14588   hard_links=yes
14589   $RM conftest*
14590   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14591   touch conftest.a
14592   ln conftest.a conftest.b 2>&5 || hard_links=no
14593   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14595 $as_echo "$hard_links" >&6; }
14596   if test "$hard_links" = no; then
14597     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14598 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14599     need_locks=warn
14600   fi
14601 else
14602   need_locks=no
14603 fi
14604
14605
14606
14607     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14608 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14609
14610   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14611   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14612   case $host_os in
14613   aix[4-9]*)
14614     # If we're using GNU nm, then we don't want the "-C" option.
14615     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14616     # Also, AIX nm treats weak defined symbols like other global defined
14617     # symbols, whereas GNU nm marks them as "W".
14618     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14619       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14620     else
14621       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'
14622     fi
14623     ;;
14624   pw32*)
14625     export_symbols_cmds_CXX="$ltdll_cmds"
14626     ;;
14627   cygwin* | mingw* | cegcc*)
14628     case $cc_basename in
14629     cl*) ;;
14630     *)
14631       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14632       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14633       ;;
14634     esac
14635     ;;
14636   *)
14637     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14638     ;;
14639   esac
14640
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14642 $as_echo "$ld_shlibs_CXX" >&6; }
14643 test "$ld_shlibs_CXX" = no && can_build_shared=no
14644
14645 with_gnu_ld_CXX=$with_gnu_ld
14646
14647
14648
14649
14650
14651
14652 #
14653 # Do we need to explicitly link libc?
14654 #
14655 case "x$archive_cmds_need_lc_CXX" in
14656 x|xyes)
14657   # Assume -lc should be added
14658   archive_cmds_need_lc_CXX=yes
14659
14660   if test "$enable_shared" = yes && test "$GCC" = yes; then
14661     case $archive_cmds_CXX in
14662     *'~'*)
14663       # FIXME: we may have to deal with multi-command sequences.
14664       ;;
14665     '$CC '*)
14666       # Test whether the compiler implicitly links with -lc since on some
14667       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14668       # to ld, don't add -lc before -lgcc.
14669       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14670 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14671 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14672   $as_echo_n "(cached) " >&6
14673 else
14674   $RM conftest*
14675         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14676
14677         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14678   (eval $ac_compile) 2>&5
14679   ac_status=$?
14680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14681   test $ac_status = 0; } 2>conftest.err; then
14682           soname=conftest
14683           lib=conftest
14684           libobjs=conftest.$ac_objext
14685           deplibs=
14686           wl=$lt_prog_compiler_wl_CXX
14687           pic_flag=$lt_prog_compiler_pic_CXX
14688           compiler_flags=-v
14689           linker_flags=-v
14690           verstring=
14691           output_objdir=.
14692           libname=conftest
14693           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14694           allow_undefined_flag_CXX=
14695           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14696   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14697   ac_status=$?
14698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14699   test $ac_status = 0; }
14700           then
14701             lt_cv_archive_cmds_need_lc_CXX=no
14702           else
14703             lt_cv_archive_cmds_need_lc_CXX=yes
14704           fi
14705           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14706         else
14707           cat conftest.err 1>&5
14708         fi
14709         $RM conftest*
14710
14711 fi
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14713 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14714       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14715       ;;
14716     esac
14717   fi
14718   ;;
14719 esac
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14785 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14786
14787 library_names_spec=
14788 libname_spec='lib$name'
14789 soname_spec=
14790 shrext_cmds=".so"
14791 postinstall_cmds=
14792 postuninstall_cmds=
14793 finish_cmds=
14794 finish_eval=
14795 shlibpath_var=
14796 shlibpath_overrides_runpath=unknown
14797 version_type=none
14798 dynamic_linker="$host_os ld.so"
14799 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14800 need_lib_prefix=unknown
14801 hardcode_into_libs=no
14802
14803 # when you set need_version to no, make sure it does not cause -set_version
14804 # flags to be left without arguments
14805 need_version=unknown
14806
14807 case $host_os in
14808 aix3*)
14809   version_type=linux
14810   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14811   shlibpath_var=LIBPATH
14812
14813   # AIX 3 has no versioning support, so we append a major version to the name.
14814   soname_spec='${libname}${release}${shared_ext}$major'
14815   ;;
14816
14817 aix[4-9]*)
14818   version_type=linux
14819   need_lib_prefix=no
14820   need_version=no
14821   hardcode_into_libs=yes
14822   if test "$host_cpu" = ia64; then
14823     # AIX 5 supports IA64
14824     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14825     shlibpath_var=LD_LIBRARY_PATH
14826   else
14827     # With GCC up to 2.95.x, collect2 would create an import file
14828     # for dependence libraries.  The import file would start with
14829     # the line `#! .'.  This would cause the generated library to
14830     # depend on `.', always an invalid library.  This was fixed in
14831     # development snapshots of GCC prior to 3.0.
14832     case $host_os in
14833       aix4 | aix4.[01] | aix4.[01].*)
14834       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14835            echo ' yes '
14836            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14837         :
14838       else
14839         can_build_shared=no
14840       fi
14841       ;;
14842     esac
14843     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14844     # soname into executable. Probably we can add versioning support to
14845     # collect2, so additional links can be useful in future.
14846     if test "$aix_use_runtimelinking" = yes; then
14847       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14848       # instead of lib<name>.a to let people know that these are not
14849       # typical AIX shared libraries.
14850       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14851     else
14852       # We preserve .a as extension for shared libraries through AIX4.2
14853       # and later when we are not doing run time linking.
14854       library_names_spec='${libname}${release}.a $libname.a'
14855       soname_spec='${libname}${release}${shared_ext}$major'
14856     fi
14857     shlibpath_var=LIBPATH
14858   fi
14859   ;;
14860
14861 amigaos*)
14862   case $host_cpu in
14863   powerpc)
14864     # Since July 2007 AmigaOS4 officially supports .so libraries.
14865     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14866     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14867     ;;
14868   m68k)
14869     library_names_spec='$libname.ixlibrary $libname.a'
14870     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14871     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14872     ;;
14873   esac
14874   ;;
14875
14876 beos*)
14877   library_names_spec='${libname}${shared_ext}'
14878   dynamic_linker="$host_os ld.so"
14879   shlibpath_var=LIBRARY_PATH
14880   ;;
14881
14882 bsdi[45]*)
14883   version_type=linux
14884   need_version=no
14885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14886   soname_spec='${libname}${release}${shared_ext}$major'
14887   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14888   shlibpath_var=LD_LIBRARY_PATH
14889   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14890   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14891   # the default ld.so.conf also contains /usr/contrib/lib and
14892   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14893   # libtool to hard-code these into programs
14894   ;;
14895
14896 cygwin* | mingw* | pw32* | cegcc*)
14897   version_type=windows
14898   shrext_cmds=".dll"
14899   need_version=no
14900   need_lib_prefix=no
14901
14902   case $GCC,$cc_basename in
14903   yes,*)
14904     # gcc
14905     library_names_spec='$libname.dll.a'
14906     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14907     postinstall_cmds='base_file=`basename \${file}`~
14908       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14909       dldir=$destdir/`dirname \$dlpath`~
14910       test -d \$dldir || mkdir -p \$dldir~
14911       $install_prog $dir/$dlname \$dldir/$dlname~
14912       chmod a+x \$dldir/$dlname~
14913       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14914         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14915       fi'
14916     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14917       dlpath=$dir/\$dldll~
14918        $RM \$dlpath'
14919     shlibpath_overrides_runpath=yes
14920
14921     case $host_os in
14922     cygwin*)
14923       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14924       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14925
14926       ;;
14927     mingw* | cegcc*)
14928       # MinGW DLLs use traditional 'lib' prefix
14929       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14930       ;;
14931     pw32*)
14932       # pw32 DLLs use 'pw' prefix rather than 'lib'
14933       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14934       ;;
14935     esac
14936     dynamic_linker='Win32 ld.exe'
14937     ;;
14938
14939   *,cl*)
14940     # Native MSVC
14941     libname_spec='$name'
14942     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14943     library_names_spec='${libname}.dll.lib'
14944
14945     case $build_os in
14946     mingw*)
14947       sys_lib_search_path_spec=
14948       lt_save_ifs=$IFS
14949       IFS=';'
14950       for lt_path in $LIB
14951       do
14952         IFS=$lt_save_ifs
14953         # Let DOS variable expansion print the short 8.3 style file name.
14954         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14955         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14956       done
14957       IFS=$lt_save_ifs
14958       # Convert to MSYS style.
14959       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14960       ;;
14961     cygwin*)
14962       # Convert to unix form, then to dos form, then back to unix form
14963       # but this time dos style (no spaces!) so that the unix form looks
14964       # like /cygdrive/c/PROGRA~1:/cygdr...
14965       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14966       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14967       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14968       ;;
14969     *)
14970       sys_lib_search_path_spec="$LIB"
14971       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14972         # It is most probably a Windows format PATH.
14973         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14974       else
14975         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14976       fi
14977       # FIXME: find the short name or the path components, as spaces are
14978       # common. (e.g. "Program Files" -> "PROGRA~1")
14979       ;;
14980     esac
14981
14982     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14983     postinstall_cmds='base_file=`basename \${file}`~
14984       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14985       dldir=$destdir/`dirname \$dlpath`~
14986       test -d \$dldir || mkdir -p \$dldir~
14987       $install_prog $dir/$dlname \$dldir/$dlname'
14988     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14989       dlpath=$dir/\$dldll~
14990        $RM \$dlpath'
14991     shlibpath_overrides_runpath=yes
14992     dynamic_linker='Win32 link.exe'
14993     ;;
14994
14995   *)
14996     # Assume MSVC wrapper
14997     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14998     dynamic_linker='Win32 ld.exe'
14999     ;;
15000   esac
15001   # FIXME: first we should search . and the directory the executable is in
15002   shlibpath_var=PATH
15003   ;;
15004
15005 darwin* | rhapsody*)
15006   dynamic_linker="$host_os dyld"
15007   version_type=darwin
15008   need_lib_prefix=no
15009   need_version=no
15010   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15011   soname_spec='${libname}${release}${major}$shared_ext'
15012   shlibpath_overrides_runpath=yes
15013   shlibpath_var=DYLD_LIBRARY_PATH
15014   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15015
15016   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15017   ;;
15018
15019 dgux*)
15020   version_type=linux
15021   need_lib_prefix=no
15022   need_version=no
15023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15024   soname_spec='${libname}${release}${shared_ext}$major'
15025   shlibpath_var=LD_LIBRARY_PATH
15026   ;;
15027
15028 freebsd1*)
15029   dynamic_linker=no
15030   ;;
15031
15032 freebsd* | dragonfly*)
15033   # DragonFly does not have aout.  When/if they implement a new
15034   # versioning mechanism, adjust this.
15035   if test -x /usr/bin/objformat; then
15036     objformat=`/usr/bin/objformat`
15037   else
15038     case $host_os in
15039     freebsd[123]*) objformat=aout ;;
15040     *) objformat=elf ;;
15041     esac
15042   fi
15043   version_type=freebsd-$objformat
15044   case $version_type in
15045     freebsd-elf*)
15046       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15047       need_version=no
15048       need_lib_prefix=no
15049       ;;
15050     freebsd-*)
15051       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15052       need_version=yes
15053       ;;
15054   esac
15055   shlibpath_var=LD_LIBRARY_PATH
15056   case $host_os in
15057   freebsd2*)
15058     shlibpath_overrides_runpath=yes
15059     ;;
15060   freebsd3.[01]* | freebsdelf3.[01]*)
15061     shlibpath_overrides_runpath=yes
15062     hardcode_into_libs=yes
15063     ;;
15064   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15065   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15066     shlibpath_overrides_runpath=no
15067     hardcode_into_libs=yes
15068     ;;
15069   *) # from 4.6 on, and DragonFly
15070     shlibpath_overrides_runpath=yes
15071     hardcode_into_libs=yes
15072     ;;
15073   esac
15074   ;;
15075
15076 gnu*)
15077   version_type=linux
15078   need_lib_prefix=no
15079   need_version=no
15080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15081   soname_spec='${libname}${release}${shared_ext}$major'
15082   shlibpath_var=LD_LIBRARY_PATH
15083   hardcode_into_libs=yes
15084   ;;
15085
15086 haiku*)
15087   version_type=linux
15088   need_lib_prefix=no
15089   need_version=no
15090   dynamic_linker="$host_os runtime_loader"
15091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15092   soname_spec='${libname}${release}${shared_ext}$major'
15093   shlibpath_var=LIBRARY_PATH
15094   shlibpath_overrides_runpath=yes
15095   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15096   hardcode_into_libs=yes
15097   ;;
15098
15099 hpux9* | hpux10* | hpux11*)
15100   # Give a soname corresponding to the major version so that dld.sl refuses to
15101   # link against other versions.
15102   version_type=sunos
15103   need_lib_prefix=no
15104   need_version=no
15105   case $host_cpu in
15106   ia64*)
15107     shrext_cmds='.so'
15108     hardcode_into_libs=yes
15109     dynamic_linker="$host_os dld.so"
15110     shlibpath_var=LD_LIBRARY_PATH
15111     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15112     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15113     soname_spec='${libname}${release}${shared_ext}$major'
15114     if test "X$HPUX_IA64_MODE" = X32; then
15115       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15116     else
15117       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15118     fi
15119     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15120     ;;
15121   hppa*64*)
15122     shrext_cmds='.sl'
15123     hardcode_into_libs=yes
15124     dynamic_linker="$host_os dld.sl"
15125     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15126     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15127     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15128     soname_spec='${libname}${release}${shared_ext}$major'
15129     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15130     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15131     ;;
15132   *)
15133     shrext_cmds='.sl'
15134     dynamic_linker="$host_os dld.sl"
15135     shlibpath_var=SHLIB_PATH
15136     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15137     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15138     soname_spec='${libname}${release}${shared_ext}$major'
15139     ;;
15140   esac
15141   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15142   postinstall_cmds='chmod 555 $lib'
15143   # or fails outright, so override atomically:
15144   install_override_mode=555
15145   ;;
15146
15147 interix[3-9]*)
15148   version_type=linux
15149   need_lib_prefix=no
15150   need_version=no
15151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15152   soname_spec='${libname}${release}${shared_ext}$major'
15153   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15154   shlibpath_var=LD_LIBRARY_PATH
15155   shlibpath_overrides_runpath=no
15156   hardcode_into_libs=yes
15157   ;;
15158
15159 irix5* | irix6* | nonstopux*)
15160   case $host_os in
15161     nonstopux*) version_type=nonstopux ;;
15162     *)
15163         if test "$lt_cv_prog_gnu_ld" = yes; then
15164                 version_type=linux
15165         else
15166                 version_type=irix
15167         fi ;;
15168   esac
15169   need_lib_prefix=no
15170   need_version=no
15171   soname_spec='${libname}${release}${shared_ext}$major'
15172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15173   case $host_os in
15174   irix5* | nonstopux*)
15175     libsuff= shlibsuff=
15176     ;;
15177   *)
15178     case $LD in # libtool.m4 will add one of these switches to LD
15179     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15180       libsuff= shlibsuff= libmagic=32-bit;;
15181     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15182       libsuff=32 shlibsuff=N32 libmagic=N32;;
15183     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15184       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15185     *) libsuff= shlibsuff= libmagic=never-match;;
15186     esac
15187     ;;
15188   esac
15189   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15190   shlibpath_overrides_runpath=no
15191   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15192   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15193   hardcode_into_libs=yes
15194   ;;
15195
15196 # No shared lib support for Linux oldld, aout, or coff.
15197 linux*oldld* | linux*aout* | linux*coff*)
15198   dynamic_linker=no
15199   ;;
15200
15201 # This must be Linux ELF.
15202 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15203   version_type=linux
15204   need_lib_prefix=no
15205   need_version=no
15206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15207   soname_spec='${libname}${release}${shared_ext}$major'
15208   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15209   shlibpath_var=LD_LIBRARY_PATH
15210   shlibpath_overrides_runpath=no
15211
15212   # Some binutils ld are patched to set DT_RUNPATH
15213   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15214   $as_echo_n "(cached) " >&6
15215 else
15216   lt_cv_shlibpath_overrides_runpath=no
15217     save_LDFLAGS=$LDFLAGS
15218     save_libdir=$libdir
15219     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15220          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15221     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222 /* end confdefs.h.  */
15223
15224 int
15225 main ()
15226 {
15227
15228   ;
15229   return 0;
15230 }
15231 _ACEOF
15232 if ac_fn_cxx_try_link "$LINENO"; then :
15233   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15234   lt_cv_shlibpath_overrides_runpath=yes
15235 fi
15236 fi
15237 rm -f core conftest.err conftest.$ac_objext \
15238     conftest$ac_exeext conftest.$ac_ext
15239     LDFLAGS=$save_LDFLAGS
15240     libdir=$save_libdir
15241
15242 fi
15243
15244   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15245
15246   # This implies no fast_install, which is unacceptable.
15247   # Some rework will be needed to allow for fast_install
15248   # before this can be enabled.
15249   hardcode_into_libs=yes
15250
15251   # Append ld.so.conf contents to the search path
15252   if test -f /etc/ld.so.conf; then
15253     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15254     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15255   fi
15256
15257   # We used to test for /lib/ld.so.1 and disable shared libraries on
15258   # powerpc, because MkLinux only supported shared libraries with the
15259   # GNU dynamic linker.  Since this was broken with cross compilers,
15260   # most powerpc-linux boxes support dynamic linking these days and
15261   # people can always --disable-shared, the test was removed, and we
15262   # assume the GNU/Linux dynamic linker is in use.
15263   dynamic_linker='GNU/Linux ld.so'
15264   ;;
15265
15266 netbsd*)
15267   version_type=sunos
15268   need_lib_prefix=no
15269   need_version=no
15270   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15271     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15272     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15273     dynamic_linker='NetBSD (a.out) ld.so'
15274   else
15275     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15276     soname_spec='${libname}${release}${shared_ext}$major'
15277     dynamic_linker='NetBSD ld.elf_so'
15278   fi
15279   shlibpath_var=LD_LIBRARY_PATH
15280   shlibpath_overrides_runpath=yes
15281   hardcode_into_libs=yes
15282   ;;
15283
15284 newsos6)
15285   version_type=linux
15286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15287   shlibpath_var=LD_LIBRARY_PATH
15288   shlibpath_overrides_runpath=yes
15289   ;;
15290
15291 *nto* | *qnx*)
15292   version_type=qnx
15293   need_lib_prefix=no
15294   need_version=no
15295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15296   soname_spec='${libname}${release}${shared_ext}$major'
15297   shlibpath_var=LD_LIBRARY_PATH
15298   shlibpath_overrides_runpath=no
15299   hardcode_into_libs=yes
15300   dynamic_linker='ldqnx.so'
15301   ;;
15302
15303 openbsd*)
15304   version_type=sunos
15305   sys_lib_dlsearch_path_spec="/usr/lib"
15306   need_lib_prefix=no
15307   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15308   case $host_os in
15309     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15310     *)                          need_version=no  ;;
15311   esac
15312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15313   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15314   shlibpath_var=LD_LIBRARY_PATH
15315   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15316     case $host_os in
15317       openbsd2.[89] | openbsd2.[89].*)
15318         shlibpath_overrides_runpath=no
15319         ;;
15320       *)
15321         shlibpath_overrides_runpath=yes
15322         ;;
15323       esac
15324   else
15325     shlibpath_overrides_runpath=yes
15326   fi
15327   ;;
15328
15329 os2*)
15330   libname_spec='$name'
15331   shrext_cmds=".dll"
15332   need_lib_prefix=no
15333   library_names_spec='$libname${shared_ext} $libname.a'
15334   dynamic_linker='OS/2 ld.exe'
15335   shlibpath_var=LIBPATH
15336   ;;
15337
15338 osf3* | osf4* | osf5*)
15339   version_type=osf
15340   need_lib_prefix=no
15341   need_version=no
15342   soname_spec='${libname}${release}${shared_ext}$major'
15343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15344   shlibpath_var=LD_LIBRARY_PATH
15345   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15346   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15347   ;;
15348
15349 rdos*)
15350   dynamic_linker=no
15351   ;;
15352
15353 solaris*)
15354   version_type=linux
15355   need_lib_prefix=no
15356   need_version=no
15357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15358   soname_spec='${libname}${release}${shared_ext}$major'
15359   shlibpath_var=LD_LIBRARY_PATH
15360   shlibpath_overrides_runpath=yes
15361   hardcode_into_libs=yes
15362   # ldd complains unless libraries are executable
15363   postinstall_cmds='chmod +x $lib'
15364   ;;
15365
15366 sunos4*)
15367   version_type=sunos
15368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15369   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15370   shlibpath_var=LD_LIBRARY_PATH
15371   shlibpath_overrides_runpath=yes
15372   if test "$with_gnu_ld" = yes; then
15373     need_lib_prefix=no
15374   fi
15375   need_version=yes
15376   ;;
15377
15378 sysv4 | sysv4.3*)
15379   version_type=linux
15380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15381   soname_spec='${libname}${release}${shared_ext}$major'
15382   shlibpath_var=LD_LIBRARY_PATH
15383   case $host_vendor in
15384     sni)
15385       shlibpath_overrides_runpath=no
15386       need_lib_prefix=no
15387       runpath_var=LD_RUN_PATH
15388       ;;
15389     siemens)
15390       need_lib_prefix=no
15391       ;;
15392     motorola)
15393       need_lib_prefix=no
15394       need_version=no
15395       shlibpath_overrides_runpath=no
15396       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15397       ;;
15398   esac
15399   ;;
15400
15401 sysv4*MP*)
15402   if test -d /usr/nec ;then
15403     version_type=linux
15404     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15405     soname_spec='$libname${shared_ext}.$major'
15406     shlibpath_var=LD_LIBRARY_PATH
15407   fi
15408   ;;
15409
15410 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15411   version_type=freebsd-elf
15412   need_lib_prefix=no
15413   need_version=no
15414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15415   soname_spec='${libname}${release}${shared_ext}$major'
15416   shlibpath_var=LD_LIBRARY_PATH
15417   shlibpath_overrides_runpath=yes
15418   hardcode_into_libs=yes
15419   if test "$with_gnu_ld" = yes; then
15420     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15421   else
15422     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15423     case $host_os in
15424       sco3.2v5*)
15425         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15426         ;;
15427     esac
15428   fi
15429   sys_lib_dlsearch_path_spec='/usr/lib'
15430   ;;
15431
15432 tpf*)
15433   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15434   version_type=linux
15435   need_lib_prefix=no
15436   need_version=no
15437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438   shlibpath_var=LD_LIBRARY_PATH
15439   shlibpath_overrides_runpath=no
15440   hardcode_into_libs=yes
15441   ;;
15442
15443 uts4*)
15444   version_type=linux
15445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15446   soname_spec='${libname}${release}${shared_ext}$major'
15447   shlibpath_var=LD_LIBRARY_PATH
15448   ;;
15449
15450 *)
15451   dynamic_linker=no
15452   ;;
15453 esac
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15455 $as_echo "$dynamic_linker" >&6; }
15456 test "$dynamic_linker" = no && can_build_shared=no
15457
15458 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15459 if test "$GCC" = yes; then
15460   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15461 fi
15462
15463 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15464   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15465 fi
15466 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15467   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15468 fi
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15508 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15509 hardcode_action_CXX=
15510 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15511    test -n "$runpath_var_CXX" ||
15512    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15513
15514   # We can hardcode non-existent directories.
15515   if test "$hardcode_direct_CXX" != no &&
15516      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15517      # have to relink, otherwise we might link with an installed library
15518      # when we should be linking with a yet-to-be-installed one
15519      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15520      test "$hardcode_minus_L_CXX" != no; then
15521     # Linking always hardcodes the temporary library directory.
15522     hardcode_action_CXX=relink
15523   else
15524     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15525     hardcode_action_CXX=immediate
15526   fi
15527 else
15528   # We cannot hardcode anything, or else we can only hardcode existing
15529   # directories.
15530   hardcode_action_CXX=unsupported
15531 fi
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15533 $as_echo "$hardcode_action_CXX" >&6; }
15534
15535 if test "$hardcode_action_CXX" = relink ||
15536    test "$inherit_rpath_CXX" = yes; then
15537   # Fast installation is not supported
15538   enable_fast_install=no
15539 elif test "$shlibpath_overrides_runpath" = yes ||
15540      test "$enable_shared" = no; then
15541   # Fast installation is not necessary
15542   enable_fast_install=needless
15543 fi
15544
15545
15546
15547
15548
15549
15550
15551   fi # test -n "$compiler"
15552
15553   CC=$lt_save_CC
15554   CFLAGS=$lt_save_CFLAGS
15555   LDCXX=$LD
15556   LD=$lt_save_LD
15557   GCC=$lt_save_GCC
15558   with_gnu_ld=$lt_save_with_gnu_ld
15559   lt_cv_path_LDCXX=$lt_cv_path_LD
15560   lt_cv_path_LD=$lt_save_path_LD
15561   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15562   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15563 fi # test "$_lt_caught_CXX_error" != yes
15564
15565 ac_ext=c
15566 ac_cpp='$CPP $CPPFLAGS'
15567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583         ac_config_commands="$ac_config_commands libtool"
15584
15585
15586
15587
15588 # Only expand once:
15589
15590
15591
15592
15593 # Add configure option --enable-maintainer-mode which enables dependency
15594 # checking and generation useful to package maintainers.  This is made an
15595 # option to avoid confusing end users.
15596
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15598 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15599     # Check whether --enable-maintainer-mode was given.
15600 if test "${enable_maintainer_mode+set}" = set; then :
15601   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15602 else
15603   USE_MAINTAINER_MODE=no
15604 fi
15605
15606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15607 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15608    if test $USE_MAINTAINER_MODE = yes; then
15609   MAINTAINER_MODE_TRUE=
15610   MAINTAINER_MODE_FALSE='#'
15611 else
15612   MAINTAINER_MODE_TRUE='#'
15613   MAINTAINER_MODE_FALSE=
15614 fi
15615
15616   MAINT=$MAINTAINER_MODE_TRUE
15617
15618
15619
15620 # If the C compiler supports the keyword inline, do nothing. Otherwise
15621 # define inline to __inline__ or __inline if it accepts one of those,
15622 # otherwise define inline to be empty.
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15624 $as_echo_n "checking for inline... " >&6; }
15625 if ${ac_cv_c_inline+:} false; then :
15626   $as_echo_n "(cached) " >&6
15627 else
15628   ac_cv_c_inline=no
15629 for ac_kw in inline __inline__ __inline; do
15630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15631 /* end confdefs.h.  */
15632 #ifndef __cplusplus
15633 typedef int foo_t;
15634 static $ac_kw foo_t static_foo () {return 0; }
15635 $ac_kw foo_t foo () {return 0; }
15636 #endif
15637
15638 _ACEOF
15639 if ac_fn_c_try_compile "$LINENO"; then :
15640   ac_cv_c_inline=$ac_kw
15641 fi
15642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15643   test "$ac_cv_c_inline" != no && break
15644 done
15645
15646 fi
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15648 $as_echo "$ac_cv_c_inline" >&6; }
15649
15650 case $ac_cv_c_inline in
15651   inline | yes) ;;
15652   *)
15653     case $ac_cv_c_inline in
15654       no) ac_val=;;
15655       *) ac_val=$ac_cv_c_inline;;
15656     esac
15657     cat >>confdefs.h <<_ACEOF
15658 #ifndef __cplusplus
15659 #define inline $ac_val
15660 #endif
15661 _ACEOF
15662     ;;
15663 esac
15664
15665
15666
15667 # If words are stored with the most significant byte first (like
15668 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
15669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15670 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15671 if ${ac_cv_c_bigendian+:} false; then :
15672   $as_echo_n "(cached) " >&6
15673 else
15674   ac_cv_c_bigendian=unknown
15675     # See if we're dealing with a universal compiler.
15676     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15677 /* end confdefs.h.  */
15678 #ifndef __APPLE_CC__
15679                not a universal capable compiler
15680              #endif
15681              typedef int dummy;
15682
15683 _ACEOF
15684 if ac_fn_c_try_compile "$LINENO"; then :
15685
15686         # Check for potential -arch flags.  It is not universal unless
15687         # there are at least two -arch flags with different values.
15688         ac_arch=
15689         ac_prev=
15690         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15691          if test -n "$ac_prev"; then
15692            case $ac_word in
15693              i?86 | x86_64 | ppc | ppc64)
15694                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15695                  ac_arch=$ac_word
15696                else
15697                  ac_cv_c_bigendian=universal
15698                  break
15699                fi
15700                ;;
15701            esac
15702            ac_prev=
15703          elif test "x$ac_word" = "x-arch"; then
15704            ac_prev=arch
15705          fi
15706        done
15707 fi
15708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15709     if test $ac_cv_c_bigendian = unknown; then
15710       # See if sys/param.h defines the BYTE_ORDER macro.
15711       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15712 /* end confdefs.h.  */
15713 #include <sys/types.h>
15714              #include <sys/param.h>
15715
15716 int
15717 main ()
15718 {
15719 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15720                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15721                      && LITTLE_ENDIAN)
15722               bogus endian macros
15723              #endif
15724
15725   ;
15726   return 0;
15727 }
15728 _ACEOF
15729 if ac_fn_c_try_compile "$LINENO"; then :
15730   # It does; now see whether it defined to BIG_ENDIAN or not.
15731          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15732 /* end confdefs.h.  */
15733 #include <sys/types.h>
15734                 #include <sys/param.h>
15735
15736 int
15737 main ()
15738 {
15739 #if BYTE_ORDER != BIG_ENDIAN
15740                  not big endian
15741                 #endif
15742
15743   ;
15744   return 0;
15745 }
15746 _ACEOF
15747 if ac_fn_c_try_compile "$LINENO"; then :
15748   ac_cv_c_bigendian=yes
15749 else
15750   ac_cv_c_bigendian=no
15751 fi
15752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15753 fi
15754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15755     fi
15756     if test $ac_cv_c_bigendian = unknown; then
15757       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15758       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15759 /* end confdefs.h.  */
15760 #include <limits.h>
15761
15762 int
15763 main ()
15764 {
15765 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15766               bogus endian macros
15767              #endif
15768
15769   ;
15770   return 0;
15771 }
15772 _ACEOF
15773 if ac_fn_c_try_compile "$LINENO"; then :
15774   # It does; now see whether it defined to _BIG_ENDIAN or not.
15775          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15776 /* end confdefs.h.  */
15777 #include <limits.h>
15778
15779 int
15780 main ()
15781 {
15782 #ifndef _BIG_ENDIAN
15783                  not big endian
15784                 #endif
15785
15786   ;
15787   return 0;
15788 }
15789 _ACEOF
15790 if ac_fn_c_try_compile "$LINENO"; then :
15791   ac_cv_c_bigendian=yes
15792 else
15793   ac_cv_c_bigendian=no
15794 fi
15795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15796 fi
15797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15798     fi
15799     if test $ac_cv_c_bigendian = unknown; then
15800       # Compile a test program.
15801       if test "$cross_compiling" = yes; then :
15802   # Try to guess by grepping values from an object file.
15803          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15804 /* end confdefs.h.  */
15805 short int ascii_mm[] =
15806                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15807                 short int ascii_ii[] =
15808                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15809                 int use_ascii (int i) {
15810                   return ascii_mm[i] + ascii_ii[i];
15811                 }
15812                 short int ebcdic_ii[] =
15813                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15814                 short int ebcdic_mm[] =
15815                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15816                 int use_ebcdic (int i) {
15817                   return ebcdic_mm[i] + ebcdic_ii[i];
15818                 }
15819                 extern int foo;
15820
15821 int
15822 main ()
15823 {
15824 return use_ascii (foo) == use_ebcdic (foo);
15825   ;
15826   return 0;
15827 }
15828 _ACEOF
15829 if ac_fn_c_try_compile "$LINENO"; then :
15830   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15831               ac_cv_c_bigendian=yes
15832             fi
15833             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15834               if test "$ac_cv_c_bigendian" = unknown; then
15835                 ac_cv_c_bigendian=no
15836               else
15837                 # finding both strings is unlikely to happen, but who knows?
15838                 ac_cv_c_bigendian=unknown
15839               fi
15840             fi
15841 fi
15842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15843 else
15844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h.  */
15846 $ac_includes_default
15847 int
15848 main ()
15849 {
15850
15851              /* Are we little or big endian?  From Harbison&Steele.  */
15852              union
15853              {
15854                long int l;
15855                char c[sizeof (long int)];
15856              } u;
15857              u.l = 1;
15858              return u.c[sizeof (long int) - 1] == 1;
15859
15860   ;
15861   return 0;
15862 }
15863 _ACEOF
15864 if ac_fn_c_try_run "$LINENO"; then :
15865   ac_cv_c_bigendian=no
15866 else
15867   ac_cv_c_bigendian=yes
15868 fi
15869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15870   conftest.$ac_objext conftest.beam conftest.$ac_ext
15871 fi
15872
15873     fi
15874 fi
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15876 $as_echo "$ac_cv_c_bigendian" >&6; }
15877  case $ac_cv_c_bigendian in #(
15878    yes)
15879      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15880 ;; #(
15881    no)
15882       ;; #(
15883    universal)
15884
15885 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15886
15887      ;; #(
15888    *)
15889      as_fn_error $? "unknown endianness
15890  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
15891  esac
15892
15893
15894 #
15895 # Find math library
15896 #
15897 LIB_MATH=''
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
15899 $as_echo_n "checking for sqrt in -lm... " >&6; }
15900 if ${ac_cv_lib_m_sqrt+:} false; then :
15901   $as_echo_n "(cached) " >&6
15902 else
15903   ac_check_lib_save_LIBS=$LIBS
15904 LIBS="-lm  $LIBS"
15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906 /* end confdefs.h.  */
15907
15908 /* Override any GCC internal prototype to avoid an error.
15909    Use char because int might match the return type of a GCC
15910    builtin and then its argument prototype would still apply.  */
15911 #ifdef __cplusplus
15912 extern "C"
15913 #endif
15914 char sqrt ();
15915 int
15916 main ()
15917 {
15918 return sqrt ();
15919   ;
15920   return 0;
15921 }
15922 _ACEOF
15923 if ac_fn_c_try_link "$LINENO"; then :
15924   ac_cv_lib_m_sqrt=yes
15925 else
15926   ac_cv_lib_m_sqrt=no
15927 fi
15928 rm -f core conftest.err conftest.$ac_objext \
15929     conftest$ac_exeext conftest.$ac_ext
15930 LIBS=$ac_check_lib_save_LIBS
15931 fi
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
15933 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
15934 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
15935   LIB_MATH="-lm"
15936 fi
15937
15938 LIBS="$LIB_MATH $LIBS"
15939
15940
15941 #
15942 # Check for JPEG
15943 #
15944 have_jpeg='no'
15945 LIB_JPEG=''
15946 if test ! "$with_jpeg" = 'no'
15947 then
15948     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG support " >&5
15949 $as_echo_n "checking for JPEG support ... " >&6; }
15950     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
15951 $as_echo "" >&6; }
15952     failed=0;
15953     passed=0;
15954     ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
15955 if test "x$ac_cv_header_jconfig_h" = xyes; then :
15956   passed=`expr $passed + 1`
15957 else
15958   failed=`expr $failed + 1`
15959 fi
15960
15961
15962     ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
15963 if test "x$ac_cv_header_jerror_h" = xyes; then :
15964   passed=`expr $passed + 1`
15965 else
15966   failed=`expr $failed + 1`
15967 fi
15968
15969
15970     ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
15971 if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
15972   passed=`expr $passed + 1`
15973 else
15974   failed=`expr $failed + 1`
15975 fi
15976
15977
15978     ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
15979 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
15980   passed=`expr $passed + 1`
15981 else
15982   failed=`expr $failed + 1`
15983 fi
15984
15985
15986     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
15987 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
15988 if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
15989   $as_echo_n "(cached) " >&6
15990 else
15991   ac_check_lib_save_LIBS=$LIBS
15992 LIBS="-ljpeg  $LIBS"
15993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15994 /* end confdefs.h.  */
15995
15996 /* Override any GCC internal prototype to avoid an error.
15997    Use char because int might match the return type of a GCC
15998    builtin and then its argument prototype would still apply.  */
15999 #ifdef __cplusplus
16000 extern "C"
16001 #endif
16002 char jpeg_read_header ();
16003 int
16004 main ()
16005 {
16006 return jpeg_read_header ();
16007   ;
16008   return 0;
16009 }
16010 _ACEOF
16011 if ac_fn_c_try_link "$LINENO"; then :
16012   ac_cv_lib_jpeg_jpeg_read_header=yes
16013 else
16014   ac_cv_lib_jpeg_jpeg_read_header=no
16015 fi
16016 rm -f core conftest.err conftest.$ac_objext \
16017     conftest$ac_exeext conftest.$ac_ext
16018 LIBS=$ac_check_lib_save_LIBS
16019 fi
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
16021 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
16022 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
16023   passed=`expr $passed + 1`
16024 else
16025   failed=`expr $failed + 1`
16026 fi
16027
16028
16029 # Test for compatible JPEG library
16030 if test ! "$ac_cv_jpeg_version_ok" = 'yes' ; then
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
16032 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
16033 if ${ac_cv_jpeg_version_ok+:} false; then :
16034   $as_echo_n "(cached) " >&6
16035 else
16036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16037 /* end confdefs.h.  */
16038 #include <stdio.h>
16039 #include <stdlib.h>
16040 #include <jpeglib.h>
16041
16042 int
16043 main ()
16044 {
16045
16046 #if JPEG_LIB_VERSION < 62
16047 #error IJG JPEG library must be version 6b or newer!
16048 #endif
16049 return 0;
16050
16051   ;
16052   return 0;
16053 }
16054 _ACEOF
16055 if ac_fn_c_try_compile "$LINENO"; then :
16056   ac_cv_jpeg_version_ok='yes'
16057 else
16058   ac_cv_jpeg_version_ok='no'
16059 fi
16060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16061 fi
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
16063 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
16064 if test "$ac_cv_jpeg_version_ok" = 'yes' ; then
16065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16066 $as_echo "yes" >&6; }
16067  passed=`expr $passed + 1`
16068 else
16069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16070 $as_echo "no" >&6; }
16071  failed=`expr $failed + 1`
16072 fi
16073 fi
16074     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
16075 $as_echo_n "checking if JPEG package is complete... " >&6; }
16076     if test $passed -gt 0
16077     then
16078     if test $failed -gt 0
16079     then
16080         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
16081 $as_echo "no -- some components failed test" >&6; }
16082         have_jpeg='no (failed tests)'
16083     else
16084         LIB_JPEG='-ljpeg'
16085         LIBS="$LIB_JPEG $LIBS"
16086
16087 $as_echo "#define HasJPEG 1" >>confdefs.h
16088
16089         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16090 $as_echo "yes" >&6; }
16091         have_jpeg='yes'
16092     fi
16093     else
16094         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16095 $as_echo "no" >&6; }
16096     fi
16097 fi
16098  if test "$have_jpeg" = 'yes'; then
16099   HasJPEG_TRUE=
16100   HasJPEG_FALSE='#'
16101 else
16102   HasJPEG_TRUE='#'
16103   HasJPEG_FALSE=
16104 fi
16105
16106
16107
16108 #
16109 # Check for ZLIB
16110 #
16111 have_zlib='no'
16112 if test ! "$with_zlib" = 'no' || test ! "$with_png" = 'no'
16113 then
16114   LIB_ZLIB=''
16115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB support " >&5
16116 $as_echo_n "checking for ZLIB support ... " >&6; }
16117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16118 $as_echo "" >&6; }
16119   failed=0;
16120   passed=0;
16121   ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
16122 if test "x$ac_cv_header_zconf_h" = xyes; then :
16123   passed=`expr $passed + 1`
16124 else
16125   failed=`expr $failed + 1`
16126 fi
16127
16128
16129   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16130 if test "x$ac_cv_header_zlib_h" = xyes; then :
16131   passed=`expr $passed + 1`
16132 else
16133   failed=`expr $failed + 1`
16134 fi
16135
16136
16137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
16138 $as_echo_n "checking for compress in -lz... " >&6; }
16139 if ${ac_cv_lib_z_compress+:} false; then :
16140   $as_echo_n "(cached) " >&6
16141 else
16142   ac_check_lib_save_LIBS=$LIBS
16143 LIBS="-lz  $LIBS"
16144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16145 /* end confdefs.h.  */
16146
16147 /* Override any GCC internal prototype to avoid an error.
16148    Use char because int might match the return type of a GCC
16149    builtin and then its argument prototype would still apply.  */
16150 #ifdef __cplusplus
16151 extern "C"
16152 #endif
16153 char compress ();
16154 int
16155 main ()
16156 {
16157 return compress ();
16158   ;
16159   return 0;
16160 }
16161 _ACEOF
16162 if ac_fn_c_try_link "$LINENO"; then :
16163   ac_cv_lib_z_compress=yes
16164 else
16165   ac_cv_lib_z_compress=no
16166 fi
16167 rm -f core conftest.err conftest.$ac_objext \
16168     conftest$ac_exeext conftest.$ac_ext
16169 LIBS=$ac_check_lib_save_LIBS
16170 fi
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
16172 $as_echo "$ac_cv_lib_z_compress" >&6; }
16173 if test "x$ac_cv_lib_z_compress" = xyes; then :
16174   passed=`expr $passed + 1`
16175 else
16176   failed=`expr $failed + 1`
16177 fi
16178
16179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
16180 $as_echo_n "checking for uncompress in -lz... " >&6; }
16181 if ${ac_cv_lib_z_uncompress+:} false; then :
16182   $as_echo_n "(cached) " >&6
16183 else
16184   ac_check_lib_save_LIBS=$LIBS
16185 LIBS="-lz  $LIBS"
16186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187 /* end confdefs.h.  */
16188
16189 /* Override any GCC internal prototype to avoid an error.
16190    Use char because int might match the return type of a GCC
16191    builtin and then its argument prototype would still apply.  */
16192 #ifdef __cplusplus
16193 extern "C"
16194 #endif
16195 char uncompress ();
16196 int
16197 main ()
16198 {
16199 return uncompress ();
16200   ;
16201   return 0;
16202 }
16203 _ACEOF
16204 if ac_fn_c_try_link "$LINENO"; then :
16205   ac_cv_lib_z_uncompress=yes
16206 else
16207   ac_cv_lib_z_uncompress=no
16208 fi
16209 rm -f core conftest.err conftest.$ac_objext \
16210     conftest$ac_exeext conftest.$ac_ext
16211 LIBS=$ac_check_lib_save_LIBS
16212 fi
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
16214 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
16215 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
16216   passed=`expr $passed + 1`
16217 else
16218   failed=`expr $failed + 1`
16219 fi
16220
16221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
16222 $as_echo_n "checking for deflate in -lz... " >&6; }
16223 if ${ac_cv_lib_z_deflate+:} false; then :
16224   $as_echo_n "(cached) " >&6
16225 else
16226   ac_check_lib_save_LIBS=$LIBS
16227 LIBS="-lz  $LIBS"
16228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229 /* end confdefs.h.  */
16230
16231 /* Override any GCC internal prototype to avoid an error.
16232    Use char because int might match the return type of a GCC
16233    builtin and then its argument prototype would still apply.  */
16234 #ifdef __cplusplus
16235 extern "C"
16236 #endif
16237 char deflate ();
16238 int
16239 main ()
16240 {
16241 return deflate ();
16242   ;
16243   return 0;
16244 }
16245 _ACEOF
16246 if ac_fn_c_try_link "$LINENO"; then :
16247   ac_cv_lib_z_deflate=yes
16248 else
16249   ac_cv_lib_z_deflate=no
16250 fi
16251 rm -f core conftest.err conftest.$ac_objext \
16252     conftest$ac_exeext conftest.$ac_ext
16253 LIBS=$ac_check_lib_save_LIBS
16254 fi
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
16256 $as_echo "$ac_cv_lib_z_deflate" >&6; }
16257 if test "x$ac_cv_lib_z_deflate" = xyes; then :
16258   passed=`expr $passed + 1`
16259 else
16260   failed=`expr $failed + 1`
16261 fi
16262
16263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
16264 $as_echo_n "checking for inflate in -lz... " >&6; }
16265 if ${ac_cv_lib_z_inflate+:} false; then :
16266   $as_echo_n "(cached) " >&6
16267 else
16268   ac_check_lib_save_LIBS=$LIBS
16269 LIBS="-lz  $LIBS"
16270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16271 /* end confdefs.h.  */
16272
16273 /* Override any GCC internal prototype to avoid an error.
16274    Use char because int might match the return type of a GCC
16275    builtin and then its argument prototype would still apply.  */
16276 #ifdef __cplusplus
16277 extern "C"
16278 #endif
16279 char inflate ();
16280 int
16281 main ()
16282 {
16283 return inflate ();
16284   ;
16285   return 0;
16286 }
16287 _ACEOF
16288 if ac_fn_c_try_link "$LINENO"; then :
16289   ac_cv_lib_z_inflate=yes
16290 else
16291   ac_cv_lib_z_inflate=no
16292 fi
16293 rm -f core conftest.err conftest.$ac_objext \
16294     conftest$ac_exeext conftest.$ac_ext
16295 LIBS=$ac_check_lib_save_LIBS
16296 fi
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
16298 $as_echo "$ac_cv_lib_z_inflate" >&6; }
16299 if test "x$ac_cv_lib_z_inflate" = xyes; then :
16300   passed=`expr $passed + 1`
16301 else
16302   failed=`expr $failed + 1`
16303 fi
16304
16305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
16306 $as_echo_n "checking for gzseek in -lz... " >&6; }
16307 if ${ac_cv_lib_z_gzseek+:} false; then :
16308   $as_echo_n "(cached) " >&6
16309 else
16310   ac_check_lib_save_LIBS=$LIBS
16311 LIBS="-lz  $LIBS"
16312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16313 /* end confdefs.h.  */
16314
16315 /* Override any GCC internal prototype to avoid an error.
16316    Use char because int might match the return type of a GCC
16317    builtin and then its argument prototype would still apply.  */
16318 #ifdef __cplusplus
16319 extern "C"
16320 #endif
16321 char gzseek ();
16322 int
16323 main ()
16324 {
16325 return gzseek ();
16326   ;
16327   return 0;
16328 }
16329 _ACEOF
16330 if ac_fn_c_try_link "$LINENO"; then :
16331   ac_cv_lib_z_gzseek=yes
16332 else
16333   ac_cv_lib_z_gzseek=no
16334 fi
16335 rm -f core conftest.err conftest.$ac_objext \
16336     conftest$ac_exeext conftest.$ac_ext
16337 LIBS=$ac_check_lib_save_LIBS
16338 fi
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
16340 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
16341 if test "x$ac_cv_lib_z_gzseek" = xyes; then :
16342   passed=`expr $passed + 1`
16343 else
16344   failed=`expr $failed + 1`
16345 fi
16346
16347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
16348 $as_echo_n "checking for gztell in -lz... " >&6; }
16349 if ${ac_cv_lib_z_gztell+:} false; then :
16350   $as_echo_n "(cached) " >&6
16351 else
16352   ac_check_lib_save_LIBS=$LIBS
16353 LIBS="-lz  $LIBS"
16354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h.  */
16356
16357 /* Override any GCC internal prototype to avoid an error.
16358    Use char because int might match the return type of a GCC
16359    builtin and then its argument prototype would still apply.  */
16360 #ifdef __cplusplus
16361 extern "C"
16362 #endif
16363 char gztell ();
16364 int
16365 main ()
16366 {
16367 return gztell ();
16368   ;
16369   return 0;
16370 }
16371 _ACEOF
16372 if ac_fn_c_try_link "$LINENO"; then :
16373   ac_cv_lib_z_gztell=yes
16374 else
16375   ac_cv_lib_z_gztell=no
16376 fi
16377 rm -f core conftest.err conftest.$ac_objext \
16378     conftest$ac_exeext conftest.$ac_ext
16379 LIBS=$ac_check_lib_save_LIBS
16380 fi
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
16382 $as_echo "$ac_cv_lib_z_gztell" >&6; }
16383 if test "x$ac_cv_lib_z_gztell" = xyes; then :
16384   passed=`expr $passed + 1`
16385 else
16386   failed=`expr $failed + 1`
16387 fi
16388
16389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
16390 $as_echo_n "checking if ZLIB package is complete... " >&6; }
16391   if test $passed -gt 0
16392   then
16393     if test $failed -gt 0
16394     then
16395       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
16396 $as_echo "no -- some components failed test" >&6; }
16397       have_zlib='no (failed tests)'
16398     else
16399       LIB_ZLIB='-lz'
16400       LIBS="$LIB_ZLIB $LIBS"
16401
16402 $as_echo "#define HasZLIB 1" >>confdefs.h
16403
16404       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16405 $as_echo "yes" >&6; }
16406       have_zlib='yes'
16407     fi
16408   else
16409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16410 $as_echo "no" >&6; }
16411   fi
16412 fi
16413  if test "$have_zlib" = 'yes'; then
16414   HasZLIB_TRUE=
16415   HasZLIB_FALSE='#'
16416 else
16417   HasZLIB_TRUE='#'
16418   HasZLIB_FALSE=
16419 fi
16420
16421
16422
16423 #
16424 # Check for TIFF
16425 #
16426 have_tiff='no'
16427 LIB_TIFF=''
16428 if test ! "$with_tiff" = 'no'
16429 then
16430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF support " >&5
16431 $as_echo_n "checking for TIFF support ... " >&6; }
16432     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16433 $as_echo "" >&6; }
16434     failed=0;
16435     passed=0;
16436     ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
16437 if test "x$ac_cv_header_tiff_h" = xyes; then :
16438   passed=`expr $passed + 1`
16439 else
16440   failed=`expr $failed + 1`
16441 fi
16442
16443
16444     ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
16445 if test "x$ac_cv_header_tiffio_h" = xyes; then :
16446   passed=`expr $passed + 1`
16447 else
16448   failed=`expr $failed + 1`
16449 fi
16450
16451
16452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
16453 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
16454 if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
16455   $as_echo_n "(cached) " >&6
16456 else
16457   ac_check_lib_save_LIBS=$LIBS
16458 LIBS="-ltiff  $LIBS"
16459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460 /* end confdefs.h.  */
16461
16462 /* Override any GCC internal prototype to avoid an error.
16463    Use char because int might match the return type of a GCC
16464    builtin and then its argument prototype would still apply.  */
16465 #ifdef __cplusplus
16466 extern "C"
16467 #endif
16468 char TIFFOpen ();
16469 int
16470 main ()
16471 {
16472 return TIFFOpen ();
16473   ;
16474   return 0;
16475 }
16476 _ACEOF
16477 if ac_fn_c_try_link "$LINENO"; then :
16478   ac_cv_lib_tiff_TIFFOpen=yes
16479 else
16480   ac_cv_lib_tiff_TIFFOpen=no
16481 fi
16482 rm -f core conftest.err conftest.$ac_objext \
16483     conftest$ac_exeext conftest.$ac_ext
16484 LIBS=$ac_check_lib_save_LIBS
16485 fi
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
16487 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
16488 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
16489   passed=`expr $passed + 1`
16490 else
16491   failed=`expr $failed + 1`
16492 fi
16493
16494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
16495 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
16496 if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
16497   $as_echo_n "(cached) " >&6
16498 else
16499   ac_check_lib_save_LIBS=$LIBS
16500 LIBS="-ltiff  $LIBS"
16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502 /* end confdefs.h.  */
16503
16504 /* Override any GCC internal prototype to avoid an error.
16505    Use char because int might match the return type of a GCC
16506    builtin and then its argument prototype would still apply.  */
16507 #ifdef __cplusplus
16508 extern "C"
16509 #endif
16510 char TIFFClientOpen ();
16511 int
16512 main ()
16513 {
16514 return TIFFClientOpen ();
16515   ;
16516   return 0;
16517 }
16518 _ACEOF
16519 if ac_fn_c_try_link "$LINENO"; then :
16520   ac_cv_lib_tiff_TIFFClientOpen=yes
16521 else
16522   ac_cv_lib_tiff_TIFFClientOpen=no
16523 fi
16524 rm -f core conftest.err conftest.$ac_objext \
16525     conftest$ac_exeext conftest.$ac_ext
16526 LIBS=$ac_check_lib_save_LIBS
16527 fi
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
16529 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
16530 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
16531   passed=`expr $passed + 1`
16532 else
16533   failed=`expr $failed + 1`
16534 fi
16535
16536     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
16537 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
16538 if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
16539   $as_echo_n "(cached) " >&6
16540 else
16541   ac_check_lib_save_LIBS=$LIBS
16542 LIBS="-ltiff  $LIBS"
16543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16544 /* end confdefs.h.  */
16545
16546 /* Override any GCC internal prototype to avoid an error.
16547    Use char because int might match the return type of a GCC
16548    builtin and then its argument prototype would still apply.  */
16549 #ifdef __cplusplus
16550 extern "C"
16551 #endif
16552 char TIFFIsByteSwapped ();
16553 int
16554 main ()
16555 {
16556 return TIFFIsByteSwapped ();
16557   ;
16558   return 0;
16559 }
16560 _ACEOF
16561 if ac_fn_c_try_link "$LINENO"; then :
16562   ac_cv_lib_tiff_TIFFIsByteSwapped=yes
16563 else
16564   ac_cv_lib_tiff_TIFFIsByteSwapped=no
16565 fi
16566 rm -f core conftest.err conftest.$ac_objext \
16567     conftest$ac_exeext conftest.$ac_ext
16568 LIBS=$ac_check_lib_save_LIBS
16569 fi
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
16571 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
16572 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
16573   passed=`expr $passed + 1`
16574 else
16575   failed=`expr $failed + 1`
16576 fi
16577
16578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
16579 $as_echo_n "checking if TIFF package is complete... " >&6; }
16580     if test $passed -gt 0
16581     then
16582     if test $failed -gt 0
16583     then
16584         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
16585 $as_echo "no -- some components failed test" >&6; }
16586         have_tiff='no (failed tests)'
16587     else
16588         LIB_TIFF='-ltiff'
16589         LIBS="$LIB_TIFF $LIBS"
16590
16591 $as_echo "#define HasTIFF 1" >>confdefs.h
16592
16593         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16594 $as_echo "yes" >&6; }
16595         have_tiff='yes'
16596         for ac_header in tiffconf.h
16597 do :
16598   ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
16599 if test "x$ac_cv_header_tiffconf_h" = xyes; then :
16600   cat >>confdefs.h <<_ACEOF
16601 #define HAVE_TIFFCONF_H 1
16602 _ACEOF
16603
16604 fi
16605
16606 done
16607
16608     fi
16609     else
16610     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16611 $as_echo "no" >&6; }
16612     fi
16613 fi
16614  if test "$have_tiff" = 'yes'; then
16615   HasTIFF_TRUE=
16616   HasTIFF_FALSE='#'
16617 else
16618   HasTIFF_TRUE='#'
16619   HasTIFF_FALSE=
16620 fi
16621
16622
16623
16624 # Libraries that the LCMS library depends on
16625 LCMS_LIB_DEPLIBS="$LIB_MATH"
16626 LCMS_LIB_DEPLIBS=`echo $LCMS_LIB_DEPLIBS | sed -e 's/  */ /g'`
16627
16628
16629 # Libraries that the jpegicc program depends on
16630 JPEGICC_DEPLIBS="$LIB_JPEG $LIB_MATH"
16631 JPEGICC_DEPLIBS=`echo $JPEGICC_DEPLIBS | sed -e 's/  */ /g'`
16632
16633
16634 # Libraries that the tifficc program depends on
16635 TIFFICC_DEPLIBS="$LIB_TIFF $LIB_JPEG $LIB_ZLIB $LIB_MATH"
16636 TIFFICC_DEPLIBS=`echo $TIFFICC_DEPLIBS | sed -e 's/  */ /g'`
16637
16638
16639 LIBS=''
16640
16641 #
16642 # Perform substitutions
16643 #
16644 ac_config_files="$ac_config_files Makefile"
16645
16646 ac_config_files="$ac_config_files lcms2.pc"
16647
16648 ac_config_files="$ac_config_files include/Makefile"
16649
16650 ac_config_files="$ac_config_files src/Makefile"
16651
16652 ac_config_files="$ac_config_files utils/tificc/Makefile"
16653
16654 ac_config_files="$ac_config_files utils/transicc/Makefile"
16655
16656 ac_config_files="$ac_config_files utils/linkicc/Makefile"
16657
16658 ac_config_files="$ac_config_files utils/jpgicc/Makefile"
16659
16660 ac_config_files="$ac_config_files utils/psicc/Makefile"
16661
16662 ac_config_files="$ac_config_files testbed/Makefile"
16663
16664 cat >confcache <<\_ACEOF
16665 # This file is a shell script that caches the results of configure
16666 # tests run on this system so they can be shared between configure
16667 # scripts and configure runs, see configure's option --config-cache.
16668 # It is not useful on other systems.  If it contains results you don't
16669 # want to keep, you may remove or edit it.
16670 #
16671 # config.status only pays attention to the cache file if you give it
16672 # the --recheck option to rerun configure.
16673 #
16674 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16675 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16676 # following values.
16677
16678 _ACEOF
16679
16680 # The following way of writing the cache mishandles newlines in values,
16681 # but we know of no workaround that is simple, portable, and efficient.
16682 # So, we kill variables containing newlines.
16683 # Ultrix sh set writes to stderr and can't be redirected directly,
16684 # and sets the high bit in the cache file unless we assign to the vars.
16685 (
16686   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16687     eval ac_val=\$$ac_var
16688     case $ac_val in #(
16689     *${as_nl}*)
16690       case $ac_var in #(
16691       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16692 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16693       esac
16694       case $ac_var in #(
16695       _ | IFS | as_nl) ;; #(
16696       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16697       *) { eval $ac_var=; unset $ac_var;} ;;
16698       esac ;;
16699     esac
16700   done
16701
16702   (set) 2>&1 |
16703     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16704     *${as_nl}ac_space=\ *)
16705       # `set' does not quote correctly, so add quotes: double-quote
16706       # substitution turns \\\\ into \\, and sed turns \\ into \.
16707       sed -n \
16708         "s/'/'\\\\''/g;
16709           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16710       ;; #(
16711     *)
16712       # `set' quotes correctly as required by POSIX, so do not add quotes.
16713       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16714       ;;
16715     esac |
16716     sort
16717 ) |
16718   sed '
16719      /^ac_cv_env_/b end
16720      t clear
16721      :clear
16722      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16723      t end
16724      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16725      :end' >>confcache
16726 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16727   if test -w "$cache_file"; then
16728     if test "x$cache_file" != "x/dev/null"; then
16729       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16730 $as_echo "$as_me: updating cache $cache_file" >&6;}
16731       if test ! -f "$cache_file" || test -h "$cache_file"; then
16732         cat confcache >"$cache_file"
16733       else
16734         case $cache_file in #(
16735         */* | ?:*)
16736           mv -f confcache "$cache_file"$$ &&
16737           mv -f "$cache_file"$$ "$cache_file" ;; #(
16738         *)
16739           mv -f confcache "$cache_file" ;;
16740         esac
16741       fi
16742     fi
16743   else
16744     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16745 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16746   fi
16747 fi
16748 rm -f confcache
16749
16750 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16751 # Let make expand exec_prefix.
16752 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16753
16754 # Transform confdefs.h into DEFS.
16755 # Protect against shell expansion while executing Makefile rules.
16756 # Protect against Makefile macro expansion.
16757 #
16758 # If the first sed substitution is executed (which looks for macros that
16759 # take arguments), then branch to the quote section.  Otherwise,
16760 # look for a macro that doesn't take arguments.
16761 ac_script='
16762 :mline
16763 /\\$/{
16764  N
16765  s,\\\n,,
16766  b mline
16767 }
16768 t clear
16769 :clear
16770 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
16771 t quote
16772 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
16773 t quote
16774 b any
16775 :quote
16776 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16777 s/\[/\\&/g
16778 s/\]/\\&/g
16779 s/\$/$$/g
16780 H
16781 :any
16782 ${
16783         g
16784         s/^\n//
16785         s/\n/ /g
16786         p
16787 }
16788 '
16789 DEFS=`sed -n "$ac_script" confdefs.h`
16790
16791
16792 ac_libobjs=
16793 ac_ltlibobjs=
16794 U=
16795 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16796   # 1. Remove the extension, and $U if already installed.
16797   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16798   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16799   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16800   #    will be set to the directory where LIBOBJS objects are built.
16801   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16802   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16803 done
16804 LIBOBJS=$ac_libobjs
16805
16806 LTLIBOBJS=$ac_ltlibobjs
16807
16808
16809  if test -n "$EXEEXT"; then
16810   am__EXEEXT_TRUE=
16811   am__EXEEXT_FALSE='#'
16812 else
16813   am__EXEEXT_TRUE='#'
16814   am__EXEEXT_FALSE=
16815 fi
16816
16817 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16818   as_fn_error $? "conditional \"AMDEP\" was never defined.
16819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16820 fi
16821 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16822   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16824 fi
16825 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16826   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16828 fi
16829 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16830   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16832 fi
16833
16834 if test -z "${HasJPEG_TRUE}" && test -z "${HasJPEG_FALSE}"; then
16835   as_fn_error $? "conditional \"HasJPEG\" was never defined.
16836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16837 fi
16838 if test -z "${HasZLIB_TRUE}" && test -z "${HasZLIB_FALSE}"; then
16839   as_fn_error $? "conditional \"HasZLIB\" was never defined.
16840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16841 fi
16842 if test -z "${HasTIFF_TRUE}" && test -z "${HasTIFF_FALSE}"; then
16843   as_fn_error $? "conditional \"HasTIFF\" was never defined.
16844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16845 fi
16846
16847 : "${CONFIG_STATUS=./config.status}"
16848 ac_write_fail=0
16849 ac_clean_files_save=$ac_clean_files
16850 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16852 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16853 as_write_fail=0
16854 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16855 #! $SHELL
16856 # Generated by $as_me.
16857 # Run this file to recreate the current configuration.
16858 # Compiler output produced by configure, useful for debugging
16859 # configure, is in config.log if it exists.
16860
16861 debug=false
16862 ac_cs_recheck=false
16863 ac_cs_silent=false
16864
16865 SHELL=\${CONFIG_SHELL-$SHELL}
16866 export SHELL
16867 _ASEOF
16868 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16869 ## -------------------- ##
16870 ## M4sh Initialization. ##
16871 ## -------------------- ##
16872
16873 # Be more Bourne compatible
16874 DUALCASE=1; export DUALCASE # for MKS sh
16875 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16876   emulate sh
16877   NULLCMD=:
16878   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16879   # is contrary to our usage.  Disable this feature.
16880   alias -g '${1+"$@"}'='"$@"'
16881   setopt NO_GLOB_SUBST
16882 else
16883   case `(set -o) 2>/dev/null` in #(
16884   *posix*) :
16885     set -o posix ;; #(
16886   *) :
16887      ;;
16888 esac
16889 fi
16890
16891
16892 as_nl='
16893 '
16894 export as_nl
16895 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16896 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16897 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16898 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16899 # Prefer a ksh shell builtin over an external printf program on Solaris,
16900 # but without wasting forks for bash or zsh.
16901 if test -z "$BASH_VERSION$ZSH_VERSION" \
16902     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16903   as_echo='print -r --'
16904   as_echo_n='print -rn --'
16905 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16906   as_echo='printf %s\n'
16907   as_echo_n='printf %s'
16908 else
16909   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16910     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16911     as_echo_n='/usr/ucb/echo -n'
16912   else
16913     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16914     as_echo_n_body='eval
16915       arg=$1;
16916       case $arg in #(
16917       *"$as_nl"*)
16918         expr "X$arg" : "X\\(.*\\)$as_nl";
16919         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16920       esac;
16921       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16922     '
16923     export as_echo_n_body
16924     as_echo_n='sh -c $as_echo_n_body as_echo'
16925   fi
16926   export as_echo_body
16927   as_echo='sh -c $as_echo_body as_echo'
16928 fi
16929
16930 # The user is always right.
16931 if test "${PATH_SEPARATOR+set}" != set; then
16932   PATH_SEPARATOR=:
16933   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16934     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16935       PATH_SEPARATOR=';'
16936   }
16937 fi
16938
16939
16940 # IFS
16941 # We need space, tab and new line, in precisely that order.  Quoting is
16942 # there to prevent editors from complaining about space-tab.
16943 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16944 # splitting by setting IFS to empty value.)
16945 IFS=" ""        $as_nl"
16946
16947 # Find who we are.  Look in the path if we contain no directory separator.
16948 as_myself=
16949 case $0 in #((
16950   *[\\/]* ) as_myself=$0 ;;
16951   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16952 for as_dir in $PATH
16953 do
16954   IFS=$as_save_IFS
16955   test -z "$as_dir" && as_dir=.
16956     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16957   done
16958 IFS=$as_save_IFS
16959
16960      ;;
16961 esac
16962 # We did not find ourselves, most probably we were run as `sh COMMAND'
16963 # in which case we are not to be found in the path.
16964 if test "x$as_myself" = x; then
16965   as_myself=$0
16966 fi
16967 if test ! -f "$as_myself"; then
16968   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16969   exit 1
16970 fi
16971
16972 # Unset variables that we do not need and which cause bugs (e.g. in
16973 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16974 # suppresses any "Segmentation fault" message there.  '((' could
16975 # trigger a bug in pdksh 5.2.14.
16976 for as_var in BASH_ENV ENV MAIL MAILPATH
16977 do eval test x\${$as_var+set} = xset \
16978   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16979 done
16980 PS1='$ '
16981 PS2='> '
16982 PS4='+ '
16983
16984 # NLS nuisances.
16985 LC_ALL=C
16986 export LC_ALL
16987 LANGUAGE=C
16988 export LANGUAGE
16989
16990 # CDPATH.
16991 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16992
16993
16994 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16995 # ----------------------------------------
16996 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16997 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16998 # script with STATUS, using 1 if that was 0.
16999 as_fn_error ()
17000 {
17001   as_status=$1; test $as_status -eq 0 && as_status=1
17002   if test "$4"; then
17003     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17004     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17005   fi
17006   $as_echo "$as_me: error: $2" >&2
17007   as_fn_exit $as_status
17008 } # as_fn_error
17009
17010
17011 # as_fn_set_status STATUS
17012 # -----------------------
17013 # Set $? to STATUS, without forking.
17014 as_fn_set_status ()
17015 {
17016   return $1
17017 } # as_fn_set_status
17018
17019 # as_fn_exit STATUS
17020 # -----------------
17021 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17022 as_fn_exit ()
17023 {
17024   set +e
17025   as_fn_set_status $1
17026   exit $1
17027 } # as_fn_exit
17028
17029 # as_fn_unset VAR
17030 # ---------------
17031 # Portably unset VAR.
17032 as_fn_unset ()
17033 {
17034   { eval $1=; unset $1;}
17035 }
17036 as_unset=as_fn_unset
17037 # as_fn_append VAR VALUE
17038 # ----------------------
17039 # Append the text in VALUE to the end of the definition contained in VAR. Take
17040 # advantage of any shell optimizations that allow amortized linear growth over
17041 # repeated appends, instead of the typical quadratic growth present in naive
17042 # implementations.
17043 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17044   eval 'as_fn_append ()
17045   {
17046     eval $1+=\$2
17047   }'
17048 else
17049   as_fn_append ()
17050   {
17051     eval $1=\$$1\$2
17052   }
17053 fi # as_fn_append
17054
17055 # as_fn_arith ARG...
17056 # ------------------
17057 # Perform arithmetic evaluation on the ARGs, and store the result in the
17058 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17059 # must be portable across $(()) and expr.
17060 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17061   eval 'as_fn_arith ()
17062   {
17063     as_val=$(( $* ))
17064   }'
17065 else
17066   as_fn_arith ()
17067   {
17068     as_val=`expr "$@" || test $? -eq 1`
17069   }
17070 fi # as_fn_arith
17071
17072
17073 if expr a : '\(a\)' >/dev/null 2>&1 &&
17074    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17075   as_expr=expr
17076 else
17077   as_expr=false
17078 fi
17079
17080 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17081   as_basename=basename
17082 else
17083   as_basename=false
17084 fi
17085
17086 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17087   as_dirname=dirname
17088 else
17089   as_dirname=false
17090 fi
17091
17092 as_me=`$as_basename -- "$0" ||
17093 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17094          X"$0" : 'X\(//\)$' \| \
17095          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17096 $as_echo X/"$0" |
17097     sed '/^.*\/\([^/][^/]*\)\/*$/{
17098             s//\1/
17099             q
17100           }
17101           /^X\/\(\/\/\)$/{
17102             s//\1/
17103             q
17104           }
17105           /^X\/\(\/\).*/{
17106             s//\1/
17107             q
17108           }
17109           s/.*/./; q'`
17110
17111 # Avoid depending upon Character Ranges.
17112 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17113 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17114 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17115 as_cr_digits='0123456789'
17116 as_cr_alnum=$as_cr_Letters$as_cr_digits
17117
17118 ECHO_C= ECHO_N= ECHO_T=
17119 case `echo -n x` in #(((((
17120 -n*)
17121   case `echo 'xy\c'` in
17122   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17123   xy)  ECHO_C='\c';;
17124   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17125        ECHO_T=' ';;
17126   esac;;
17127 *)
17128   ECHO_N='-n';;
17129 esac
17130
17131 rm -f conf$$ conf$$.exe conf$$.file
17132 if test -d conf$$.dir; then
17133   rm -f conf$$.dir/conf$$.file
17134 else
17135   rm -f conf$$.dir
17136   mkdir conf$$.dir 2>/dev/null
17137 fi
17138 if (echo >conf$$.file) 2>/dev/null; then
17139   if ln -s conf$$.file conf$$ 2>/dev/null; then
17140     as_ln_s='ln -s'
17141     # ... but there are two gotchas:
17142     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17143     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17144     # In both cases, we have to default to `cp -p'.
17145     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17146       as_ln_s='cp -p'
17147   elif ln conf$$.file conf$$ 2>/dev/null; then
17148     as_ln_s=ln
17149   else
17150     as_ln_s='cp -p'
17151   fi
17152 else
17153   as_ln_s='cp -p'
17154 fi
17155 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17156 rmdir conf$$.dir 2>/dev/null
17157
17158
17159 # as_fn_mkdir_p
17160 # -------------
17161 # Create "$as_dir" as a directory, including parents if necessary.
17162 as_fn_mkdir_p ()
17163 {
17164
17165   case $as_dir in #(
17166   -*) as_dir=./$as_dir;;
17167   esac
17168   test -d "$as_dir" || eval $as_mkdir_p || {
17169     as_dirs=
17170     while :; do
17171       case $as_dir in #(
17172       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17173       *) as_qdir=$as_dir;;
17174       esac
17175       as_dirs="'$as_qdir' $as_dirs"
17176       as_dir=`$as_dirname -- "$as_dir" ||
17177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17178          X"$as_dir" : 'X\(//\)[^/]' \| \
17179          X"$as_dir" : 'X\(//\)$' \| \
17180          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17181 $as_echo X"$as_dir" |
17182     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17183             s//\1/
17184             q
17185           }
17186           /^X\(\/\/\)[^/].*/{
17187             s//\1/
17188             q
17189           }
17190           /^X\(\/\/\)$/{
17191             s//\1/
17192             q
17193           }
17194           /^X\(\/\).*/{
17195             s//\1/
17196             q
17197           }
17198           s/.*/./; q'`
17199       test -d "$as_dir" && break
17200     done
17201     test -z "$as_dirs" || eval "mkdir $as_dirs"
17202   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17203
17204
17205 } # as_fn_mkdir_p
17206 if mkdir -p . 2>/dev/null; then
17207   as_mkdir_p='mkdir -p "$as_dir"'
17208 else
17209   test -d ./-p && rmdir ./-p
17210   as_mkdir_p=false
17211 fi
17212
17213 if test -x / >/dev/null 2>&1; then
17214   as_test_x='test -x'
17215 else
17216   if ls -dL / >/dev/null 2>&1; then
17217     as_ls_L_option=L
17218   else
17219     as_ls_L_option=
17220   fi
17221   as_test_x='
17222     eval sh -c '\''
17223       if test -d "$1"; then
17224         test -d "$1/.";
17225       else
17226         case $1 in #(
17227         -*)set "./$1";;
17228         esac;
17229         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17230         ???[sx]*):;;*)false;;esac;fi
17231     '\'' sh
17232   '
17233 fi
17234 as_executable_p=$as_test_x
17235
17236 # Sed expression to map a string onto a valid CPP name.
17237 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17238
17239 # Sed expression to map a string onto a valid variable name.
17240 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17241
17242
17243 exec 6>&1
17244 ## ----------------------------------- ##
17245 ## Main body of $CONFIG_STATUS script. ##
17246 ## ----------------------------------- ##
17247 _ASEOF
17248 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17249
17250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17251 # Save the log message, to keep $0 and so on meaningful, and to
17252 # report actual input values of CONFIG_FILES etc. instead of their
17253 # values after options handling.
17254 ac_log="
17255 This file was extended by lcms2 $as_me 2.4, which was
17256 generated by GNU Autoconf 2.68.  Invocation command line was
17257
17258   CONFIG_FILES    = $CONFIG_FILES
17259   CONFIG_HEADERS  = $CONFIG_HEADERS
17260   CONFIG_LINKS    = $CONFIG_LINKS
17261   CONFIG_COMMANDS = $CONFIG_COMMANDS
17262   $ $0 $@
17263
17264 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17265 "
17266
17267 _ACEOF
17268
17269 case $ac_config_files in *"
17270 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17271 esac
17272
17273
17274
17275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17276 # Files that config.status was made for.
17277 config_files="$ac_config_files"
17278 config_commands="$ac_config_commands"
17279
17280 _ACEOF
17281
17282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17283 ac_cs_usage="\
17284 \`$as_me' instantiates files and other configuration actions
17285 from templates according to the current configuration.  Unless the files
17286 and actions are specified as TAGs, all are instantiated by default.
17287
17288 Usage: $0 [OPTION]... [TAG]...
17289
17290   -h, --help       print this help, then exit
17291   -V, --version    print version number and configuration settings, then exit
17292       --config     print configuration, then exit
17293   -q, --quiet, --silent
17294                    do not print progress messages
17295   -d, --debug      don't remove temporary files
17296       --recheck    update $as_me by reconfiguring in the same conditions
17297       --file=FILE[:TEMPLATE]
17298                    instantiate the configuration file FILE
17299
17300 Configuration files:
17301 $config_files
17302
17303 Configuration commands:
17304 $config_commands
17305
17306 Report bugs to the package provider."
17307
17308 _ACEOF
17309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17310 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17311 ac_cs_version="\\
17312 lcms2 config.status 2.4
17313 configured by $0, generated by GNU Autoconf 2.68,
17314   with options \\"\$ac_cs_config\\"
17315
17316 Copyright (C) 2010 Free Software Foundation, Inc.
17317 This config.status script is free software; the Free Software Foundation
17318 gives unlimited permission to copy, distribute and modify it."
17319
17320 ac_pwd='$ac_pwd'
17321 srcdir='$srcdir'
17322 INSTALL='$INSTALL'
17323 MKDIR_P='$MKDIR_P'
17324 AWK='$AWK'
17325 test -n "\$AWK" || AWK=awk
17326 _ACEOF
17327
17328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17329 # The default lists apply if the user does not specify any file.
17330 ac_need_defaults=:
17331 while test $# != 0
17332 do
17333   case $1 in
17334   --*=?*)
17335     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17336     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17337     ac_shift=:
17338     ;;
17339   --*=)
17340     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17341     ac_optarg=
17342     ac_shift=:
17343     ;;
17344   *)
17345     ac_option=$1
17346     ac_optarg=$2
17347     ac_shift=shift
17348     ;;
17349   esac
17350
17351   case $ac_option in
17352   # Handling of the options.
17353   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17354     ac_cs_recheck=: ;;
17355   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17356     $as_echo "$ac_cs_version"; exit ;;
17357   --config | --confi | --conf | --con | --co | --c )
17358     $as_echo "$ac_cs_config"; exit ;;
17359   --debug | --debu | --deb | --de | --d | -d )
17360     debug=: ;;
17361   --file | --fil | --fi | --f )
17362     $ac_shift
17363     case $ac_optarg in
17364     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17365     '') as_fn_error $? "missing file argument" ;;
17366     esac
17367     as_fn_append CONFIG_FILES " '$ac_optarg'"
17368     ac_need_defaults=false;;
17369   --he | --h |  --help | --hel | -h )
17370     $as_echo "$ac_cs_usage"; exit ;;
17371   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17372   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17373     ac_cs_silent=: ;;
17374
17375   # This is an error.
17376   -*) as_fn_error $? "unrecognized option: \`$1'
17377 Try \`$0 --help' for more information." ;;
17378
17379   *) as_fn_append ac_config_targets " $1"
17380      ac_need_defaults=false ;;
17381
17382   esac
17383   shift
17384 done
17385
17386 ac_configure_extra_args=
17387
17388 if $ac_cs_silent; then
17389   exec 6>/dev/null
17390   ac_configure_extra_args="$ac_configure_extra_args --silent"
17391 fi
17392
17393 _ACEOF
17394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17395 if \$ac_cs_recheck; then
17396   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17397   shift
17398   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17399   CONFIG_SHELL='$SHELL'
17400   export CONFIG_SHELL
17401   exec "\$@"
17402 fi
17403
17404 _ACEOF
17405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17406 exec 5>>config.log
17407 {
17408   echo
17409   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17410 ## Running $as_me. ##
17411 _ASBOX
17412   $as_echo "$ac_log"
17413 } >&5
17414
17415 _ACEOF
17416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17417 #
17418 # INIT-COMMANDS
17419 #
17420 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17421
17422
17423 # The HP-UX ksh and POSIX shell print the target directory to stdout
17424 # if CDPATH is set.
17425 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17426
17427 sed_quote_subst='$sed_quote_subst'
17428 double_quote_subst='$double_quote_subst'
17429 delay_variable_subst='$delay_variable_subst'
17430 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17431 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17432 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17433 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17434 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17435 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17436 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17437 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17438 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17439 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17440 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17441 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17442 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17443 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17444 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17445 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17446 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17447 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17448 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17449 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17450 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17451 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17452 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17453 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17454 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17455 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17456 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17457 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17458 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17459 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17460 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17461 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17462 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17463 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17464 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17465 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17466 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17467 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17468 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17469 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17470 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17471 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17472 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17473 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17474 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17475 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17476 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17477 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17478 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17479 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17480 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17481 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17482 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17483 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17484 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17485 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17486 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17487 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17488 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17489 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17490 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17491 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17492 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17493 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17494 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17495 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17496 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17497 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17498 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17499 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17500 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17501 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17502 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17503 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17504 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17505 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17506 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17507 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17508 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17509 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17510 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17511 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17512 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17513 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17514 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17515 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17516 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17517 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17518 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17519 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17520 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17521 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17522 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17523 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17524 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17525 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17526 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17527 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17528 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17529 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17530 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17531 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17532 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17533 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17534 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17535 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17536 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17537 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17538 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17539 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17540 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17541 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17542 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17543 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17544 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17545 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17546 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17547 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17548 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17549 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17550 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17551 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17552 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17553 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17554 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17555 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17556 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17557 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17558 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17559 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17560 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17561 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17562 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17563 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17564 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17565 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17566 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17567 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17568 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17569 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17570 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17571 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17572 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17573 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17574 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17575 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17576 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17577 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17578 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17579 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17580 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17581 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17582 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17583 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17584 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17585 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17586 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17587 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17588 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17589 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17590 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17591 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17592 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17593 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17594 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17595 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17596 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17597 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17598 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17599 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17600 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17601 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17602 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17603 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17604 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17605 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17606 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17607 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17608 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17609 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17610 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17611 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17612 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17613 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17614 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17615 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17616
17617 LTCC='$LTCC'
17618 LTCFLAGS='$LTCFLAGS'
17619 compiler='$compiler_DEFAULT'
17620
17621 # A function that is used when there is no print builtin or printf.
17622 func_fallback_echo ()
17623 {
17624   eval 'cat <<_LTECHO_EOF
17625 \$1
17626 _LTECHO_EOF'
17627 }
17628
17629 # Quote evaled strings.
17630 for var in AS \
17631 DLLTOOL \
17632 OBJDUMP \
17633 SHELL \
17634 ECHO \
17635 SED \
17636 GREP \
17637 EGREP \
17638 FGREP \
17639 LD \
17640 NM \
17641 LN_S \
17642 lt_SP2NL \
17643 lt_NL2SP \
17644 reload_flag \
17645 deplibs_check_method \
17646 file_magic_cmd \
17647 file_magic_glob \
17648 want_nocaseglob \
17649 sharedlib_from_linklib_cmd \
17650 AR \
17651 AR_FLAGS \
17652 archiver_list_spec \
17653 STRIP \
17654 RANLIB \
17655 CC \
17656 CFLAGS \
17657 compiler \
17658 lt_cv_sys_global_symbol_pipe \
17659 lt_cv_sys_global_symbol_to_cdecl \
17660 lt_cv_sys_global_symbol_to_c_name_address \
17661 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17662 nm_file_list_spec \
17663 lt_prog_compiler_no_builtin_flag \
17664 lt_prog_compiler_pic \
17665 lt_prog_compiler_wl \
17666 lt_prog_compiler_static \
17667 lt_cv_prog_compiler_c_o \
17668 need_locks \
17669 MANIFEST_TOOL \
17670 DSYMUTIL \
17671 NMEDIT \
17672 LIPO \
17673 OTOOL \
17674 OTOOL64 \
17675 shrext_cmds \
17676 export_dynamic_flag_spec \
17677 whole_archive_flag_spec \
17678 compiler_needs_object \
17679 with_gnu_ld \
17680 allow_undefined_flag \
17681 no_undefined_flag \
17682 hardcode_libdir_flag_spec \
17683 hardcode_libdir_flag_spec_ld \
17684 hardcode_libdir_separator \
17685 exclude_expsyms \
17686 include_expsyms \
17687 file_list_spec \
17688 variables_saved_for_relink \
17689 libname_spec \
17690 library_names_spec \
17691 soname_spec \
17692 install_override_mode \
17693 finish_eval \
17694 old_striplib \
17695 striplib \
17696 compiler_lib_search_dirs \
17697 predep_objects \
17698 postdep_objects \
17699 predeps \
17700 postdeps \
17701 compiler_lib_search_path \
17702 LD_CXX \
17703 reload_flag_CXX \
17704 compiler_CXX \
17705 lt_prog_compiler_no_builtin_flag_CXX \
17706 lt_prog_compiler_pic_CXX \
17707 lt_prog_compiler_wl_CXX \
17708 lt_prog_compiler_static_CXX \
17709 lt_cv_prog_compiler_c_o_CXX \
17710 export_dynamic_flag_spec_CXX \
17711 whole_archive_flag_spec_CXX \
17712 compiler_needs_object_CXX \
17713 with_gnu_ld_CXX \
17714 allow_undefined_flag_CXX \
17715 no_undefined_flag_CXX \
17716 hardcode_libdir_flag_spec_CXX \
17717 hardcode_libdir_flag_spec_ld_CXX \
17718 hardcode_libdir_separator_CXX \
17719 exclude_expsyms_CXX \
17720 include_expsyms_CXX \
17721 file_list_spec_CXX \
17722 compiler_lib_search_dirs_CXX \
17723 predep_objects_CXX \
17724 postdep_objects_CXX \
17725 predeps_CXX \
17726 postdeps_CXX \
17727 compiler_lib_search_path_CXX; do
17728     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17729     *[\\\\\\\`\\"\\\$]*)
17730       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17731       ;;
17732     *)
17733       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17734       ;;
17735     esac
17736 done
17737
17738 # Double-quote double-evaled strings.
17739 for var in reload_cmds \
17740 old_postinstall_cmds \
17741 old_postuninstall_cmds \
17742 old_archive_cmds \
17743 extract_expsyms_cmds \
17744 old_archive_from_new_cmds \
17745 old_archive_from_expsyms_cmds \
17746 archive_cmds \
17747 archive_expsym_cmds \
17748 module_cmds \
17749 module_expsym_cmds \
17750 export_symbols_cmds \
17751 prelink_cmds \
17752 postlink_cmds \
17753 postinstall_cmds \
17754 postuninstall_cmds \
17755 finish_cmds \
17756 sys_lib_search_path_spec \
17757 sys_lib_dlsearch_path_spec \
17758 reload_cmds_CXX \
17759 old_archive_cmds_CXX \
17760 old_archive_from_new_cmds_CXX \
17761 old_archive_from_expsyms_cmds_CXX \
17762 archive_cmds_CXX \
17763 archive_expsym_cmds_CXX \
17764 module_cmds_CXX \
17765 module_expsym_cmds_CXX \
17766 export_symbols_cmds_CXX \
17767 prelink_cmds_CXX \
17768 postlink_cmds_CXX; do
17769     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17770     *[\\\\\\\`\\"\\\$]*)
17771       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17772       ;;
17773     *)
17774       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17775       ;;
17776     esac
17777 done
17778
17779 ac_aux_dir='$ac_aux_dir'
17780 xsi_shell='$xsi_shell'
17781 lt_shell_append='$lt_shell_append'
17782
17783 # See if we are running on zsh, and set the options which allow our
17784 # commands through without removal of \ escapes INIT.
17785 if test -n "\${ZSH_VERSION+set}" ; then
17786    setopt NO_GLOB_SUBST
17787 fi
17788
17789
17790     PACKAGE='$PACKAGE'
17791     VERSION='$VERSION'
17792     TIMESTAMP='$TIMESTAMP'
17793     RM='$RM'
17794     ofile='$ofile'
17795
17796
17797
17798
17799
17800
17801 _ACEOF
17802
17803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17804
17805 # Handling of arguments.
17806 for ac_config_target in $ac_config_targets
17807 do
17808   case $ac_config_target in
17809     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17810     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17811     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17812     "lcms2.pc") CONFIG_FILES="$CONFIG_FILES lcms2.pc" ;;
17813     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17814     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17815     "utils/tificc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/tificc/Makefile" ;;
17816     "utils/transicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/transicc/Makefile" ;;
17817     "utils/linkicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/linkicc/Makefile" ;;
17818     "utils/jpgicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/jpgicc/Makefile" ;;
17819     "utils/psicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/psicc/Makefile" ;;
17820     "testbed/Makefile") CONFIG_FILES="$CONFIG_FILES testbed/Makefile" ;;
17821
17822   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
17823   esac
17824 done
17825
17826
17827 # If the user did not use the arguments to specify the items to instantiate,
17828 # then the envvar interface is used.  Set only those that are not.
17829 # We use the long form for the default assignment because of an extremely
17830 # bizarre bug on SunOS 4.1.3.
17831 if $ac_need_defaults; then
17832   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17833   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17834 fi
17835
17836 # Have a temporary directory for convenience.  Make it in the build tree
17837 # simply because there is no reason against having it here, and in addition,
17838 # creating and moving files from /tmp can sometimes cause problems.
17839 # Hook for its removal unless debugging.
17840 # Note that there is a small window in which the directory will not be cleaned:
17841 # after its creation but before its name has been assigned to `$tmp'.
17842 $debug ||
17843 {
17844   tmp= ac_tmp=
17845   trap 'exit_status=$?
17846   : "${ac_tmp:=$tmp}"
17847   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17848 ' 0
17849   trap 'as_fn_exit 1' 1 2 13 15
17850 }
17851 # Create a (secure) tmp directory for tmp files.
17852
17853 {
17854   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17855   test -d "$tmp"
17856 }  ||
17857 {
17858   tmp=./conf$$-$RANDOM
17859   (umask 077 && mkdir "$tmp")
17860 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17861 ac_tmp=$tmp
17862
17863 # Set up the scripts for CONFIG_FILES section.
17864 # No need to generate them if there are no CONFIG_FILES.
17865 # This happens for instance with `./config.status config.h'.
17866 if test -n "$CONFIG_FILES"; then
17867
17868
17869 ac_cr=`echo X | tr X '\015'`
17870 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17871 # But we know of no other shell where ac_cr would be empty at this
17872 # point, so we can use a bashism as a fallback.
17873 if test "x$ac_cr" = x; then
17874   eval ac_cr=\$\'\\r\'
17875 fi
17876 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17877 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17878   ac_cs_awk_cr='\\r'
17879 else
17880   ac_cs_awk_cr=$ac_cr
17881 fi
17882
17883 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17884 _ACEOF
17885
17886
17887 {
17888   echo "cat >conf$$subs.awk <<_ACEOF" &&
17889   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17890   echo "_ACEOF"
17891 } >conf$$subs.sh ||
17892   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17893 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17894 ac_delim='%!_!# '
17895 for ac_last_try in false false false false false :; do
17896   . ./conf$$subs.sh ||
17897     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17898
17899   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17900   if test $ac_delim_n = $ac_delim_num; then
17901     break
17902   elif $ac_last_try; then
17903     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17904   else
17905     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17906   fi
17907 done
17908 rm -f conf$$subs.sh
17909
17910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17911 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17912 _ACEOF
17913 sed -n '
17914 h
17915 s/^/S["/; s/!.*/"]=/
17916 p
17917 g
17918 s/^[^!]*!//
17919 :repl
17920 t repl
17921 s/'"$ac_delim"'$//
17922 t delim
17923 :nl
17924 h
17925 s/\(.\{148\}\)..*/\1/
17926 t more1
17927 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17928 p
17929 n
17930 b repl
17931 :more1
17932 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17933 p
17934 g
17935 s/.\{148\}//
17936 t nl
17937 :delim
17938 h
17939 s/\(.\{148\}\)..*/\1/
17940 t more2
17941 s/["\\]/\\&/g; s/^/"/; s/$/"/
17942 p
17943 b
17944 :more2
17945 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17946 p
17947 g
17948 s/.\{148\}//
17949 t delim
17950 ' <conf$$subs.awk | sed '
17951 /^[^""]/{
17952   N
17953   s/\n//
17954 }
17955 ' >>$CONFIG_STATUS || ac_write_fail=1
17956 rm -f conf$$subs.awk
17957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17958 _ACAWK
17959 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17960   for (key in S) S_is_set[key] = 1
17961   FS = "\a"
17962
17963 }
17964 {
17965   line = $ 0
17966   nfields = split(line, field, "@")
17967   substed = 0
17968   len = length(field[1])
17969   for (i = 2; i < nfields; i++) {
17970     key = field[i]
17971     keylen = length(key)
17972     if (S_is_set[key]) {
17973       value = S[key]
17974       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17975       len += length(value) + length(field[++i])
17976       substed = 1
17977     } else
17978       len += 1 + keylen
17979   }
17980
17981   print line
17982 }
17983
17984 _ACAWK
17985 _ACEOF
17986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17987 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17988   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17989 else
17990   cat
17991 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17992   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17993 _ACEOF
17994
17995 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17996 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17997 # trailing colons and then remove the whole line if VPATH becomes empty
17998 # (actually we leave an empty line to preserve line numbers).
17999 if test "x$srcdir" = x.; then
18000   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18001 h
18002 s///
18003 s/^/:/
18004 s/[      ]*$/:/
18005 s/:\$(srcdir):/:/g
18006 s/:\${srcdir}:/:/g
18007 s/:@srcdir@:/:/g
18008 s/^:*//
18009 s/:*$//
18010 x
18011 s/\(=[   ]*\).*/\1/
18012 G
18013 s/\n//
18014 s/^[^=]*=[       ]*$//
18015 }'
18016 fi
18017
18018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18019 fi # test -n "$CONFIG_FILES"
18020
18021
18022 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
18023 shift
18024 for ac_tag
18025 do
18026   case $ac_tag in
18027   :[FHLC]) ac_mode=$ac_tag; continue;;
18028   esac
18029   case $ac_mode$ac_tag in
18030   :[FHL]*:*);;
18031   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
18032   :[FH]-) ac_tag=-:-;;
18033   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18034   esac
18035   ac_save_IFS=$IFS
18036   IFS=:
18037   set x $ac_tag
18038   IFS=$ac_save_IFS
18039   shift
18040   ac_file=$1
18041   shift
18042
18043   case $ac_mode in
18044   :L) ac_source=$1;;
18045   :[FH])
18046     ac_file_inputs=
18047     for ac_f
18048     do
18049       case $ac_f in
18050       -) ac_f="$ac_tmp/stdin";;
18051       *) # Look for the file first in the build tree, then in the source tree
18052          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18053          # because $ac_f cannot contain `:'.
18054          test -f "$ac_f" ||
18055            case $ac_f in
18056            [\\/$]*) false;;
18057            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18058            esac ||
18059            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
18060       esac
18061       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18062       as_fn_append ac_file_inputs " '$ac_f'"
18063     done
18064
18065     # Let's still pretend it is `configure' which instantiates (i.e., don't
18066     # use $as_me), people would be surprised to read:
18067     #    /* config.h.  Generated by config.status.  */
18068     configure_input='Generated from '`
18069           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18070         `' by configure.'
18071     if test x"$ac_file" != x-; then
18072       configure_input="$ac_file.  $configure_input"
18073       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18074 $as_echo "$as_me: creating $ac_file" >&6;}
18075     fi
18076     # Neutralize special characters interpreted by sed in replacement strings.
18077     case $configure_input in #(
18078     *\&* | *\|* | *\\* )
18079        ac_sed_conf_input=`$as_echo "$configure_input" |
18080        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18081     *) ac_sed_conf_input=$configure_input;;
18082     esac
18083
18084     case $ac_tag in
18085     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18086       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
18087     esac
18088     ;;
18089   esac
18090
18091   ac_dir=`$as_dirname -- "$ac_file" ||
18092 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18093          X"$ac_file" : 'X\(//\)[^/]' \| \
18094          X"$ac_file" : 'X\(//\)$' \| \
18095          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18096 $as_echo X"$ac_file" |
18097     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18098             s//\1/
18099             q
18100           }
18101           /^X\(\/\/\)[^/].*/{
18102             s//\1/
18103             q
18104           }
18105           /^X\(\/\/\)$/{
18106             s//\1/
18107             q
18108           }
18109           /^X\(\/\).*/{
18110             s//\1/
18111             q
18112           }
18113           s/.*/./; q'`
18114   as_dir="$ac_dir"; as_fn_mkdir_p
18115   ac_builddir=.
18116
18117 case "$ac_dir" in
18118 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18119 *)
18120   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18121   # A ".." for each directory in $ac_dir_suffix.
18122   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18123   case $ac_top_builddir_sub in
18124   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18125   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18126   esac ;;
18127 esac
18128 ac_abs_top_builddir=$ac_pwd
18129 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18130 # for backward compatibility:
18131 ac_top_builddir=$ac_top_build_prefix
18132
18133 case $srcdir in
18134   .)  # We are building in place.
18135     ac_srcdir=.
18136     ac_top_srcdir=$ac_top_builddir_sub
18137     ac_abs_top_srcdir=$ac_pwd ;;
18138   [\\/]* | ?:[\\/]* )  # Absolute name.
18139     ac_srcdir=$srcdir$ac_dir_suffix;
18140     ac_top_srcdir=$srcdir
18141     ac_abs_top_srcdir=$srcdir ;;
18142   *) # Relative name.
18143     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18144     ac_top_srcdir=$ac_top_build_prefix$srcdir
18145     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18146 esac
18147 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18148
18149
18150   case $ac_mode in
18151   :F)
18152   #
18153   # CONFIG_FILE
18154   #
18155
18156   case $INSTALL in
18157   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18158   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18159   esac
18160   ac_MKDIR_P=$MKDIR_P
18161   case $MKDIR_P in
18162   [\\/$]* | ?:[\\/]* ) ;;
18163   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18164   esac
18165 _ACEOF
18166
18167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18168 # If the template does not know about datarootdir, expand it.
18169 # FIXME: This hack should be removed a few years after 2.60.
18170 ac_datarootdir_hack=; ac_datarootdir_seen=
18171 ac_sed_dataroot='
18172 /datarootdir/ {
18173   p
18174   q
18175 }
18176 /@datadir@/p
18177 /@docdir@/p
18178 /@infodir@/p
18179 /@localedir@/p
18180 /@mandir@/p'
18181 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18182 *datarootdir*) ac_datarootdir_seen=yes;;
18183 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18184   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18185 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18186 _ACEOF
18187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18188   ac_datarootdir_hack='
18189   s&@datadir@&$datadir&g
18190   s&@docdir@&$docdir&g
18191   s&@infodir@&$infodir&g
18192   s&@localedir@&$localedir&g
18193   s&@mandir@&$mandir&g
18194   s&\\\${datarootdir}&$datarootdir&g' ;;
18195 esac
18196 _ACEOF
18197
18198 # Neutralize VPATH when `$srcdir' = `.'.
18199 # Shell code in configure.ac might set extrasub.
18200 # FIXME: do we really want to maintain this feature?
18201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18202 ac_sed_extra="$ac_vpsub
18203 $extrasub
18204 _ACEOF
18205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18206 :t
18207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18208 s|@configure_input@|$ac_sed_conf_input|;t t
18209 s&@top_builddir@&$ac_top_builddir_sub&;t t
18210 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18211 s&@srcdir@&$ac_srcdir&;t t
18212 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18213 s&@top_srcdir@&$ac_top_srcdir&;t t
18214 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18215 s&@builddir@&$ac_builddir&;t t
18216 s&@abs_builddir@&$ac_abs_builddir&;t t
18217 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18218 s&@INSTALL@&$ac_INSTALL&;t t
18219 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18220 $ac_datarootdir_hack
18221 "
18222 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18223   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18224
18225 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18226   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18227   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18228       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18229   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18230 which seems to be undefined.  Please make sure it is defined" >&5
18231 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18232 which seems to be undefined.  Please make sure it is defined" >&2;}
18233
18234   rm -f "$ac_tmp/stdin"
18235   case $ac_file in
18236   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18237   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18238   esac \
18239   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18240  ;;
18241
18242
18243   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18244 $as_echo "$as_me: executing $ac_file commands" >&6;}
18245  ;;
18246   esac
18247
18248
18249   case $ac_file$ac_mode in
18250     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18251   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18252   # are listed without --file.  Let's play safe and only enable the eval
18253   # if we detect the quoting.
18254   case $CONFIG_FILES in
18255   *\'*) eval set x "$CONFIG_FILES" ;;
18256   *)   set x $CONFIG_FILES ;;
18257   esac
18258   shift
18259   for mf
18260   do
18261     # Strip MF so we end up with the name of the file.
18262     mf=`echo "$mf" | sed -e 's/:.*$//'`
18263     # Check whether this is an Automake generated Makefile or not.
18264     # We used to match only the files named `Makefile.in', but
18265     # some people rename them; so instead we look at the file content.
18266     # Grep'ing the first line is not enough: some people post-process
18267     # each Makefile.in and add a new line on top of each file to say so.
18268     # Grep'ing the whole file is not good either: AIX grep has a line
18269     # limit of 2048, but all sed's we know have understand at least 4000.
18270     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18271       dirpart=`$as_dirname -- "$mf" ||
18272 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18273          X"$mf" : 'X\(//\)[^/]' \| \
18274          X"$mf" : 'X\(//\)$' \| \
18275          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18276 $as_echo X"$mf" |
18277     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18278             s//\1/
18279             q
18280           }
18281           /^X\(\/\/\)[^/].*/{
18282             s//\1/
18283             q
18284           }
18285           /^X\(\/\/\)$/{
18286             s//\1/
18287             q
18288           }
18289           /^X\(\/\).*/{
18290             s//\1/
18291             q
18292           }
18293           s/.*/./; q'`
18294     else
18295       continue
18296     fi
18297     # Extract the definition of DEPDIR, am__include, and am__quote
18298     # from the Makefile without running `make'.
18299     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18300     test -z "$DEPDIR" && continue
18301     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18302     test -z "am__include" && continue
18303     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18304     # When using ansi2knr, U may be empty or an underscore; expand it
18305     U=`sed -n 's/^U = //p' < "$mf"`
18306     # Find all dependency output files, they are included files with
18307     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18308     # simplest approach to changing $(DEPDIR) to its actual value in the
18309     # expansion.
18310     for file in `sed -n "
18311       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18312          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18313       # Make sure the directory exists.
18314       test -f "$dirpart/$file" && continue
18315       fdir=`$as_dirname -- "$file" ||
18316 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18317          X"$file" : 'X\(//\)[^/]' \| \
18318          X"$file" : 'X\(//\)$' \| \
18319          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18320 $as_echo X"$file" |
18321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18322             s//\1/
18323             q
18324           }
18325           /^X\(\/\/\)[^/].*/{
18326             s//\1/
18327             q
18328           }
18329           /^X\(\/\/\)$/{
18330             s//\1/
18331             q
18332           }
18333           /^X\(\/\).*/{
18334             s//\1/
18335             q
18336           }
18337           s/.*/./; q'`
18338       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18339       # echo "creating $dirpart/$file"
18340       echo '# dummy' > "$dirpart/$file"
18341     done
18342   done
18343 }
18344  ;;
18345     "libtool":C)
18346
18347     # See if we are running on zsh, and set the options which allow our
18348     # commands through without removal of \ escapes.
18349     if test -n "${ZSH_VERSION+set}" ; then
18350       setopt NO_GLOB_SUBST
18351     fi
18352
18353     cfgfile="${ofile}T"
18354     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18355     $RM "$cfgfile"
18356
18357     cat <<_LT_EOF >> "$cfgfile"
18358 #! $SHELL
18359
18360 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18361 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18362 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18363 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18364 #
18365 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18366 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
18367 #                 Inc.
18368 #   Written by Gordon Matzigkeit, 1996
18369 #
18370 #   This file is part of GNU Libtool.
18371 #
18372 # GNU Libtool is free software; you can redistribute it and/or
18373 # modify it under the terms of the GNU General Public License as
18374 # published by the Free Software Foundation; either version 2 of
18375 # the License, or (at your option) any later version.
18376 #
18377 # As a special exception to the GNU General Public License,
18378 # if you distribute this file as part of a program or library that
18379 # is built using GNU Libtool, you may include this file under the
18380 # same distribution terms that you use for the rest of that program.
18381 #
18382 # GNU Libtool is distributed in the hope that it will be useful,
18383 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18384 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18385 # GNU General Public License for more details.
18386 #
18387 # You should have received a copy of the GNU General Public License
18388 # along with GNU Libtool; see the file COPYING.  If not, a copy
18389 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18390 # obtained by writing to the Free Software Foundation, Inc.,
18391 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18392
18393
18394 # The names of the tagged configurations supported by this script.
18395 available_tags="CXX "
18396
18397 # ### BEGIN LIBTOOL CONFIG
18398
18399 # Whether or not to build shared libraries.
18400 build_libtool_libs=$enable_shared
18401
18402 # Whether or not to build static libraries.
18403 build_old_libs=$enable_static
18404
18405 # Assembler program.
18406 AS=$lt_AS
18407
18408 # DLL creation program.
18409 DLLTOOL=$lt_DLLTOOL
18410
18411 # Object dumper program.
18412 OBJDUMP=$lt_OBJDUMP
18413
18414 # Which release of libtool.m4 was used?
18415 macro_version=$macro_version
18416 macro_revision=$macro_revision
18417
18418 # What type of objects to build.
18419 pic_mode=$pic_mode
18420
18421 # Whether or not to optimize for fast installation.
18422 fast_install=$enable_fast_install
18423
18424 # Shell to use when invoking shell scripts.
18425 SHELL=$lt_SHELL
18426
18427 # An echo program that protects backslashes.
18428 ECHO=$lt_ECHO
18429
18430 # The host system.
18431 host_alias=$host_alias
18432 host=$host
18433 host_os=$host_os
18434
18435 # The build system.
18436 build_alias=$build_alias
18437 build=$build
18438 build_os=$build_os
18439
18440 # A sed program that does not truncate output.
18441 SED=$lt_SED
18442
18443 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18444 Xsed="\$SED -e 1s/^X//"
18445
18446 # A grep program that handles long lines.
18447 GREP=$lt_GREP
18448
18449 # An ERE matcher.
18450 EGREP=$lt_EGREP
18451
18452 # A literal string matcher.
18453 FGREP=$lt_FGREP
18454
18455 # A BSD- or MS-compatible name lister.
18456 NM=$lt_NM
18457
18458 # Whether we need soft or hard links.
18459 LN_S=$lt_LN_S
18460
18461 # What is the maximum length of a command?
18462 max_cmd_len=$max_cmd_len
18463
18464 # Object file suffix (normally "o").
18465 objext=$ac_objext
18466
18467 # Executable file suffix (normally "").
18468 exeext=$exeext
18469
18470 # whether the shell understands "unset".
18471 lt_unset=$lt_unset
18472
18473 # turn spaces into newlines.
18474 SP2NL=$lt_lt_SP2NL
18475
18476 # turn newlines into spaces.
18477 NL2SP=$lt_lt_NL2SP
18478
18479 # convert \$build file names to \$host format.
18480 to_host_file_cmd=$lt_cv_to_host_file_cmd
18481
18482 # convert \$build files to toolchain format.
18483 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18484
18485 # Method to check whether dependent libraries are shared objects.
18486 deplibs_check_method=$lt_deplibs_check_method
18487
18488 # Command to use when deplibs_check_method = "file_magic".
18489 file_magic_cmd=$lt_file_magic_cmd
18490
18491 # How to find potential files when deplibs_check_method = "file_magic".
18492 file_magic_glob=$lt_file_magic_glob
18493
18494 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18495 want_nocaseglob=$lt_want_nocaseglob
18496
18497 # Command to associate shared and link libraries.
18498 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18499
18500 # The archiver.
18501 AR=$lt_AR
18502
18503 # Flags to create an archive.
18504 AR_FLAGS=$lt_AR_FLAGS
18505
18506 # How to feed a file listing to the archiver.
18507 archiver_list_spec=$lt_archiver_list_spec
18508
18509 # A symbol stripping program.
18510 STRIP=$lt_STRIP
18511
18512 # Commands used to install an old-style archive.
18513 RANLIB=$lt_RANLIB
18514 old_postinstall_cmds=$lt_old_postinstall_cmds
18515 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18516
18517 # Whether to use a lock for old archive extraction.
18518 lock_old_archive_extraction=$lock_old_archive_extraction
18519
18520 # A C compiler.
18521 LTCC=$lt_CC
18522
18523 # LTCC compiler flags.
18524 LTCFLAGS=$lt_CFLAGS
18525
18526 # Take the output of nm and produce a listing of raw symbols and C names.
18527 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18528
18529 # Transform the output of nm in a proper C declaration.
18530 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18531
18532 # Transform the output of nm in a C name address pair.
18533 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18534
18535 # Transform the output of nm in a C name address pair when lib prefix is needed.
18536 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18537
18538 # Specify filename containing input files for \$NM.
18539 nm_file_list_spec=$lt_nm_file_list_spec
18540
18541 # The root where to search for dependent libraries,and in which our libraries should be installed.
18542 lt_sysroot=$lt_sysroot
18543
18544 # The name of the directory that contains temporary libtool files.
18545 objdir=$objdir
18546
18547 # Used to examine libraries when file_magic_cmd begins with "file".
18548 MAGIC_CMD=$MAGIC_CMD
18549
18550 # Must we lock files when doing compilation?
18551 need_locks=$lt_need_locks
18552
18553 # Manifest tool.
18554 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18555
18556 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18557 DSYMUTIL=$lt_DSYMUTIL
18558
18559 # Tool to change global to local symbols on Mac OS X.
18560 NMEDIT=$lt_NMEDIT
18561
18562 # Tool to manipulate fat objects and archives on Mac OS X.
18563 LIPO=$lt_LIPO
18564
18565 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18566 OTOOL=$lt_OTOOL
18567
18568 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18569 OTOOL64=$lt_OTOOL64
18570
18571 # Old archive suffix (normally "a").
18572 libext=$libext
18573
18574 # Shared library suffix (normally ".so").
18575 shrext_cmds=$lt_shrext_cmds
18576
18577 # The commands to extract the exported symbol list from a shared archive.
18578 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18579
18580 # Variables whose values should be saved in libtool wrapper scripts and
18581 # restored at link time.
18582 variables_saved_for_relink=$lt_variables_saved_for_relink
18583
18584 # Do we need the "lib" prefix for modules?
18585 need_lib_prefix=$need_lib_prefix
18586
18587 # Do we need a version for libraries?
18588 need_version=$need_version
18589
18590 # Library versioning type.
18591 version_type=$version_type
18592
18593 # Shared library runtime path variable.
18594 runpath_var=$runpath_var
18595
18596 # Shared library path variable.
18597 shlibpath_var=$shlibpath_var
18598
18599 # Is shlibpath searched before the hard-coded library search path?
18600 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18601
18602 # Format of library name prefix.
18603 libname_spec=$lt_libname_spec
18604
18605 # List of archive names.  First name is the real one, the rest are links.
18606 # The last name is the one that the linker finds with -lNAME
18607 library_names_spec=$lt_library_names_spec
18608
18609 # The coded name of the library, if different from the real name.
18610 soname_spec=$lt_soname_spec
18611
18612 # Permission mode override for installation of shared libraries.
18613 install_override_mode=$lt_install_override_mode
18614
18615 # Command to use after installation of a shared archive.
18616 postinstall_cmds=$lt_postinstall_cmds
18617
18618 # Command to use after uninstallation of a shared archive.
18619 postuninstall_cmds=$lt_postuninstall_cmds
18620
18621 # Commands used to finish a libtool library installation in a directory.
18622 finish_cmds=$lt_finish_cmds
18623
18624 # As "finish_cmds", except a single script fragment to be evaled but
18625 # not shown.
18626 finish_eval=$lt_finish_eval
18627
18628 # Whether we should hardcode library paths into libraries.
18629 hardcode_into_libs=$hardcode_into_libs
18630
18631 # Compile-time system search path for libraries.
18632 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18633
18634 # Run-time system search path for libraries.
18635 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18636
18637 # Whether dlopen is supported.
18638 dlopen_support=$enable_dlopen
18639
18640 # Whether dlopen of programs is supported.
18641 dlopen_self=$enable_dlopen_self
18642
18643 # Whether dlopen of statically linked programs is supported.
18644 dlopen_self_static=$enable_dlopen_self_static
18645
18646 # Commands to strip libraries.
18647 old_striplib=$lt_old_striplib
18648 striplib=$lt_striplib
18649
18650
18651 # The linker used to build libraries.
18652 LD=$lt_LD
18653
18654 # How to create reloadable object files.
18655 reload_flag=$lt_reload_flag
18656 reload_cmds=$lt_reload_cmds
18657
18658 # Commands used to build an old-style archive.
18659 old_archive_cmds=$lt_old_archive_cmds
18660
18661 # A language specific compiler.
18662 CC=$lt_compiler
18663
18664 # Is the compiler the GNU compiler?
18665 with_gcc=$GCC
18666
18667 # Compiler flag to turn off builtin functions.
18668 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18669
18670 # Additional compiler flags for building library objects.
18671 pic_flag=$lt_lt_prog_compiler_pic
18672
18673 # How to pass a linker flag through the compiler.
18674 wl=$lt_lt_prog_compiler_wl
18675
18676 # Compiler flag to prevent dynamic linking.
18677 link_static_flag=$lt_lt_prog_compiler_static
18678
18679 # Does compiler simultaneously support -c and -o options?
18680 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18681
18682 # Whether or not to add -lc for building shared libraries.
18683 build_libtool_need_lc=$archive_cmds_need_lc
18684
18685 # Whether or not to disallow shared libs when runtime libs are static.
18686 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18687
18688 # Compiler flag to allow reflexive dlopens.
18689 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18690
18691 # Compiler flag to generate shared objects directly from archives.
18692 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18693
18694 # Whether the compiler copes with passing no objects directly.
18695 compiler_needs_object=$lt_compiler_needs_object
18696
18697 # Create an old-style archive from a shared archive.
18698 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18699
18700 # Create a temporary old-style archive to link instead of a shared archive.
18701 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18702
18703 # Commands used to build a shared archive.
18704 archive_cmds=$lt_archive_cmds
18705 archive_expsym_cmds=$lt_archive_expsym_cmds
18706
18707 # Commands used to build a loadable module if different from building
18708 # a shared archive.
18709 module_cmds=$lt_module_cmds
18710 module_expsym_cmds=$lt_module_expsym_cmds
18711
18712 # Whether we are building with GNU ld or not.
18713 with_gnu_ld=$lt_with_gnu_ld
18714
18715 # Flag that allows shared libraries with undefined symbols to be built.
18716 allow_undefined_flag=$lt_allow_undefined_flag
18717
18718 # Flag that enforces no undefined symbols.
18719 no_undefined_flag=$lt_no_undefined_flag
18720
18721 # Flag to hardcode \$libdir into a binary during linking.
18722 # This must work even if \$libdir does not exist
18723 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18724
18725 # If ld is used when linking, flag to hardcode \$libdir into a binary
18726 # during linking.  This must work even if \$libdir does not exist.
18727 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18728
18729 # Whether we need a single "-rpath" flag with a separated argument.
18730 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18731
18732 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18733 # DIR into the resulting binary.
18734 hardcode_direct=$hardcode_direct
18735
18736 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18737 # DIR into the resulting binary and the resulting library dependency is
18738 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18739 # library is relocated.
18740 hardcode_direct_absolute=$hardcode_direct_absolute
18741
18742 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18743 # into the resulting binary.
18744 hardcode_minus_L=$hardcode_minus_L
18745
18746 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18747 # into the resulting binary.
18748 hardcode_shlibpath_var=$hardcode_shlibpath_var
18749
18750 # Set to "yes" if building a shared library automatically hardcodes DIR
18751 # into the library and all subsequent libraries and executables linked
18752 # against it.
18753 hardcode_automatic=$hardcode_automatic
18754
18755 # Set to yes if linker adds runtime paths of dependent libraries
18756 # to runtime path list.
18757 inherit_rpath=$inherit_rpath
18758
18759 # Whether libtool must link a program against all its dependency libraries.
18760 link_all_deplibs=$link_all_deplibs
18761
18762 # Set to "yes" if exported symbols are required.
18763 always_export_symbols=$always_export_symbols
18764
18765 # The commands to list exported symbols.
18766 export_symbols_cmds=$lt_export_symbols_cmds
18767
18768 # Symbols that should not be listed in the preloaded symbols.
18769 exclude_expsyms=$lt_exclude_expsyms
18770
18771 # Symbols that must always be exported.
18772 include_expsyms=$lt_include_expsyms
18773
18774 # Commands necessary for linking programs (against libraries) with templates.
18775 prelink_cmds=$lt_prelink_cmds
18776
18777 # Commands necessary for finishing linking programs.
18778 postlink_cmds=$lt_postlink_cmds
18779
18780 # Specify filename containing input files.
18781 file_list_spec=$lt_file_list_spec
18782
18783 # How to hardcode a shared library path into an executable.
18784 hardcode_action=$hardcode_action
18785
18786 # The directories searched by this compiler when creating a shared library.
18787 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18788
18789 # Dependencies to place before and after the objects being linked to
18790 # create a shared library.
18791 predep_objects=$lt_predep_objects
18792 postdep_objects=$lt_postdep_objects
18793 predeps=$lt_predeps
18794 postdeps=$lt_postdeps
18795
18796 # The library search path used internally by the compiler when linking
18797 # a shared library.
18798 compiler_lib_search_path=$lt_compiler_lib_search_path
18799
18800 # ### END LIBTOOL CONFIG
18801
18802 _LT_EOF
18803
18804   case $host_os in
18805   aix3*)
18806     cat <<\_LT_EOF >> "$cfgfile"
18807 # AIX sometimes has problems with the GCC collect2 program.  For some
18808 # reason, if we set the COLLECT_NAMES environment variable, the problems
18809 # vanish in a puff of smoke.
18810 if test "X${COLLECT_NAMES+set}" != Xset; then
18811   COLLECT_NAMES=
18812   export COLLECT_NAMES
18813 fi
18814 _LT_EOF
18815     ;;
18816   esac
18817
18818
18819 ltmain="$ac_aux_dir/ltmain.sh"
18820
18821
18822   # We use sed instead of cat because bash on DJGPP gets confused if
18823   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18824   # text mode, it properly converts lines to CR/LF.  This bash problem
18825   # is reportedly fixed, but why not run on old versions too?
18826   sed '$q' "$ltmain" >> "$cfgfile" \
18827      || (rm -f "$cfgfile"; exit 1)
18828
18829   if test x"$xsi_shell" = xyes; then
18830   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18831 func_dirname ()\
18832 {\
18833 \    case ${1} in\
18834 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18835 \      *  ) func_dirname_result="${3}" ;;\
18836 \    esac\
18837 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18838   && mv -f "$cfgfile.tmp" "$cfgfile" \
18839     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18840 test 0 -eq $? || _lt_function_replace_fail=:
18841
18842
18843   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18844 func_basename ()\
18845 {\
18846 \    func_basename_result="${1##*/}"\
18847 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18848   && mv -f "$cfgfile.tmp" "$cfgfile" \
18849     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18850 test 0 -eq $? || _lt_function_replace_fail=:
18851
18852
18853   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18854 func_dirname_and_basename ()\
18855 {\
18856 \    case ${1} in\
18857 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18858 \      *  ) func_dirname_result="${3}" ;;\
18859 \    esac\
18860 \    func_basename_result="${1##*/}"\
18861 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18862   && mv -f "$cfgfile.tmp" "$cfgfile" \
18863     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18864 test 0 -eq $? || _lt_function_replace_fail=:
18865
18866
18867   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18868 func_stripname ()\
18869 {\
18870 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18871 \    # positional parameters, so assign one to ordinary parameter first.\
18872 \    func_stripname_result=${3}\
18873 \    func_stripname_result=${func_stripname_result#"${1}"}\
18874 \    func_stripname_result=${func_stripname_result%"${2}"}\
18875 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18876   && mv -f "$cfgfile.tmp" "$cfgfile" \
18877     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18878 test 0 -eq $? || _lt_function_replace_fail=:
18879
18880
18881   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18882 func_split_long_opt ()\
18883 {\
18884 \    func_split_long_opt_name=${1%%=*}\
18885 \    func_split_long_opt_arg=${1#*=}\
18886 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18887   && mv -f "$cfgfile.tmp" "$cfgfile" \
18888     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18889 test 0 -eq $? || _lt_function_replace_fail=:
18890
18891
18892   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18893 func_split_short_opt ()\
18894 {\
18895 \    func_split_short_opt_arg=${1#??}\
18896 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18897 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18898   && mv -f "$cfgfile.tmp" "$cfgfile" \
18899     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18900 test 0 -eq $? || _lt_function_replace_fail=:
18901
18902
18903   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18904 func_lo2o ()\
18905 {\
18906 \    case ${1} in\
18907 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18908 \      *)    func_lo2o_result=${1} ;;\
18909 \    esac\
18910 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18911   && mv -f "$cfgfile.tmp" "$cfgfile" \
18912     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18913 test 0 -eq $? || _lt_function_replace_fail=:
18914
18915
18916   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18917 func_xform ()\
18918 {\
18919     func_xform_result=${1%.*}.lo\
18920 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18921   && mv -f "$cfgfile.tmp" "$cfgfile" \
18922     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18923 test 0 -eq $? || _lt_function_replace_fail=:
18924
18925
18926   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18927 func_arith ()\
18928 {\
18929     func_arith_result=$(( $* ))\
18930 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18931   && mv -f "$cfgfile.tmp" "$cfgfile" \
18932     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18933 test 0 -eq $? || _lt_function_replace_fail=:
18934
18935
18936   sed -e '/^func_len ()$/,/^} # func_len /c\
18937 func_len ()\
18938 {\
18939     func_len_result=${#1}\
18940 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18941   && mv -f "$cfgfile.tmp" "$cfgfile" \
18942     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18943 test 0 -eq $? || _lt_function_replace_fail=:
18944
18945 fi
18946
18947 if test x"$lt_shell_append" = xyes; then
18948   sed -e '/^func_append ()$/,/^} # func_append /c\
18949 func_append ()\
18950 {\
18951     eval "${1}+=\\${2}"\
18952 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18953   && mv -f "$cfgfile.tmp" "$cfgfile" \
18954     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18955 test 0 -eq $? || _lt_function_replace_fail=:
18956
18957
18958   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18959 func_append_quoted ()\
18960 {\
18961 \    func_quote_for_eval "${2}"\
18962 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18963 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18964   && mv -f "$cfgfile.tmp" "$cfgfile" \
18965     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18966 test 0 -eq $? || _lt_function_replace_fail=:
18967
18968
18969   # Save a `func_append' function call where possible by direct use of '+='
18970   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18971     && mv -f "$cfgfile.tmp" "$cfgfile" \
18972       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18973   test 0 -eq $? || _lt_function_replace_fail=:
18974 else
18975   # Save a `func_append' function call even when '+=' is not available
18976   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18977     && mv -f "$cfgfile.tmp" "$cfgfile" \
18978       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18979   test 0 -eq $? || _lt_function_replace_fail=:
18980 fi
18981
18982 if test x"$_lt_function_replace_fail" = x":"; then
18983   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18984 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18985 fi
18986
18987
18988    mv -f "$cfgfile" "$ofile" ||
18989     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18990   chmod +x "$ofile"
18991
18992
18993     cat <<_LT_EOF >> "$ofile"
18994
18995 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18996
18997 # The linker used to build libraries.
18998 LD=$lt_LD_CXX
18999
19000 # How to create reloadable object files.
19001 reload_flag=$lt_reload_flag_CXX
19002 reload_cmds=$lt_reload_cmds_CXX
19003
19004 # Commands used to build an old-style archive.
19005 old_archive_cmds=$lt_old_archive_cmds_CXX
19006
19007 # A language specific compiler.
19008 CC=$lt_compiler_CXX
19009
19010 # Is the compiler the GNU compiler?
19011 with_gcc=$GCC_CXX
19012
19013 # Compiler flag to turn off builtin functions.
19014 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19015
19016 # Additional compiler flags for building library objects.
19017 pic_flag=$lt_lt_prog_compiler_pic_CXX
19018
19019 # How to pass a linker flag through the compiler.
19020 wl=$lt_lt_prog_compiler_wl_CXX
19021
19022 # Compiler flag to prevent dynamic linking.
19023 link_static_flag=$lt_lt_prog_compiler_static_CXX
19024
19025 # Does compiler simultaneously support -c and -o options?
19026 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19027
19028 # Whether or not to add -lc for building shared libraries.
19029 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19030
19031 # Whether or not to disallow shared libs when runtime libs are static.
19032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19033
19034 # Compiler flag to allow reflexive dlopens.
19035 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19036
19037 # Compiler flag to generate shared objects directly from archives.
19038 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19039
19040 # Whether the compiler copes with passing no objects directly.
19041 compiler_needs_object=$lt_compiler_needs_object_CXX
19042
19043 # Create an old-style archive from a shared archive.
19044 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19045
19046 # Create a temporary old-style archive to link instead of a shared archive.
19047 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19048
19049 # Commands used to build a shared archive.
19050 archive_cmds=$lt_archive_cmds_CXX
19051 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19052
19053 # Commands used to build a loadable module if different from building
19054 # a shared archive.
19055 module_cmds=$lt_module_cmds_CXX
19056 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19057
19058 # Whether we are building with GNU ld or not.
19059 with_gnu_ld=$lt_with_gnu_ld_CXX
19060
19061 # Flag that allows shared libraries with undefined symbols to be built.
19062 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19063
19064 # Flag that enforces no undefined symbols.
19065 no_undefined_flag=$lt_no_undefined_flag_CXX
19066
19067 # Flag to hardcode \$libdir into a binary during linking.
19068 # This must work even if \$libdir does not exist
19069 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19070
19071 # If ld is used when linking, flag to hardcode \$libdir into a binary
19072 # during linking.  This must work even if \$libdir does not exist.
19073 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19074
19075 # Whether we need a single "-rpath" flag with a separated argument.
19076 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19077
19078 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19079 # DIR into the resulting binary.
19080 hardcode_direct=$hardcode_direct_CXX
19081
19082 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19083 # DIR into the resulting binary and the resulting library dependency is
19084 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19085 # library is relocated.
19086 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19087
19088 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19089 # into the resulting binary.
19090 hardcode_minus_L=$hardcode_minus_L_CXX
19091
19092 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19093 # into the resulting binary.
19094 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19095
19096 # Set to "yes" if building a shared library automatically hardcodes DIR
19097 # into the library and all subsequent libraries and executables linked
19098 # against it.
19099 hardcode_automatic=$hardcode_automatic_CXX
19100
19101 # Set to yes if linker adds runtime paths of dependent libraries
19102 # to runtime path list.
19103 inherit_rpath=$inherit_rpath_CXX
19104
19105 # Whether libtool must link a program against all its dependency libraries.
19106 link_all_deplibs=$link_all_deplibs_CXX
19107
19108 # Set to "yes" if exported symbols are required.
19109 always_export_symbols=$always_export_symbols_CXX
19110
19111 # The commands to list exported symbols.
19112 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19113
19114 # Symbols that should not be listed in the preloaded symbols.
19115 exclude_expsyms=$lt_exclude_expsyms_CXX
19116
19117 # Symbols that must always be exported.
19118 include_expsyms=$lt_include_expsyms_CXX
19119
19120 # Commands necessary for linking programs (against libraries) with templates.
19121 prelink_cmds=$lt_prelink_cmds_CXX
19122
19123 # Commands necessary for finishing linking programs.
19124 postlink_cmds=$lt_postlink_cmds_CXX
19125
19126 # Specify filename containing input files.
19127 file_list_spec=$lt_file_list_spec_CXX
19128
19129 # How to hardcode a shared library path into an executable.
19130 hardcode_action=$hardcode_action_CXX
19131
19132 # The directories searched by this compiler when creating a shared library.
19133 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19134
19135 # Dependencies to place before and after the objects being linked to
19136 # create a shared library.
19137 predep_objects=$lt_predep_objects_CXX
19138 postdep_objects=$lt_postdep_objects_CXX
19139 predeps=$lt_predeps_CXX
19140 postdeps=$lt_postdeps_CXX
19141
19142 # The library search path used internally by the compiler when linking
19143 # a shared library.
19144 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19145
19146 # ### END LIBTOOL TAG CONFIG: CXX
19147 _LT_EOF
19148
19149  ;;
19150
19151   esac
19152 done # for ac_tag
19153
19154
19155 as_fn_exit 0
19156 _ACEOF
19157 ac_clean_files=$ac_clean_files_save
19158
19159 test $ac_write_fail = 0 ||
19160   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19161
19162
19163 # configure is writing to config.log, and then calls config.status.
19164 # config.status does its own redirection, appending to config.log.
19165 # Unfortunately, on DOS this fails, as config.log is still kept open
19166 # by configure, so config.status won't be able to write to it; its
19167 # output is simply discarded.  So we exec the FD to /dev/null,
19168 # effectively closing config.log, so it can be properly (re)opened and
19169 # appended to by config.status.  When coming back to configure, we
19170 # need to make the FD available again.
19171 if test "$no_create" != yes; then
19172   ac_cs_success=:
19173   ac_config_status_args=
19174   test "$silent" = yes &&
19175     ac_config_status_args="$ac_config_status_args --quiet"
19176   exec 5>/dev/null
19177   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19178   exec 5>>config.log
19179   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19180   # would make configure fail if this is the last instruction.
19181   $ac_cs_success || as_fn_exit 1
19182 fi
19183 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19184   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19185 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19186 fi
19187