clean up spec file for packaging
[profile/ivi/libedit.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libedit 3.0.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
530
531 case X$lt_ECHO in
532 X*--fallback-echo)
533   # Remove one level of quotation (which was required for Make).
534   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535   ;;
536 esac
537
538 ECHO=${lt_ECHO-echo}
539 if test "X$1" = X--no-reexec; then
540   # Discard the --no-reexec flag, and continue.
541   shift
542 elif test "X$1" = X--fallback-echo; then
543   # Avoid inline document here, it may be left over
544   :
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546   # Yippee, $ECHO works!
547   :
548 else
549   # Restart under the correct shell.
550   exec $SHELL "$0" --no-reexec ${1+"$@"}
551 fi
552
553 if test "X$1" = X--fallback-echo; then
554   # used as fallback echo
555   shift
556   cat <<_LT_EOF
557 $*
558 _LT_EOF
559   exit 0
560 fi
561
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
563 # if CDPATH is set.
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566 if test -z "$lt_ECHO"; then
567   if test "X${echo_test_string+set}" != Xset; then
568     # find a string as large as possible, as long as the shell can cope with it
569     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573       then
574         break
575       fi
576     done
577   fi
578
579   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581      test "X$echo_testing_string" = "X$echo_test_string"; then
582     :
583   else
584     # The Solaris, AIX, and Digital Unix default echo programs unquote
585     # backslashes.  This makes it impossible to quote backslashes using
586     #   echo "$something" | sed 's/\\/\\\\/g'
587     #
588     # So, first we look for a working echo in the user's PATH.
589
590     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591     for dir in $PATH /usr/ucb; do
592       IFS="$lt_save_ifs"
593       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596          test "X$echo_testing_string" = "X$echo_test_string"; then
597         ECHO="$dir/echo"
598         break
599       fi
600     done
601     IFS="$lt_save_ifs"
602
603     if test "X$ECHO" = Xecho; then
604       # We didn't find a better echo, so look for alternatives.
605       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607          test "X$echo_testing_string" = "X$echo_test_string"; then
608         # This shell has a builtin print -r that does the trick.
609         ECHO='print -r'
610       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611            test "X$CONFIG_SHELL" != X/bin/ksh; then
612         # If we have ksh, try running configure again with it.
613         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614         export ORIGINAL_CONFIG_SHELL
615         CONFIG_SHELL=/bin/ksh
616         export CONFIG_SHELL
617         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618       else
619         # Try using printf.
620         ECHO='printf %s\n'
621         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623            test "X$echo_testing_string" = "X$echo_test_string"; then
624           # Cool, printf works
625           :
626         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627              test "X$echo_testing_string" = 'X\t' &&
628              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629              test "X$echo_testing_string" = "X$echo_test_string"; then
630           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631           export CONFIG_SHELL
632           SHELL="$CONFIG_SHELL"
633           export SHELL
634           ECHO="$CONFIG_SHELL $0 --fallback-echo"
635         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636              test "X$echo_testing_string" = 'X\t' &&
637              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638              test "X$echo_testing_string" = "X$echo_test_string"; then
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         else
641           # maybe with a smaller string...
642           prev=:
643
644           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646             then
647               break
648             fi
649             prev="$cmd"
650           done
651
652           if test "$prev" != 'sed 50q "$0"'; then
653             echo_test_string=`eval $prev`
654             export echo_test_string
655             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656           else
657             # Oops.  We lost completely, so just stick with echo.
658             ECHO=echo
659           fi
660         fi
661       fi
662     fi
663   fi
664 fi
665
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
668 lt_ECHO=$ECHO
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671 fi
672
673
674
675
676 exec 7<&0 </dev/null 6>&1
677
678 # Name of the host.
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
683 #
684 # Initializations.
685 #
686 ac_default_prefix=/usr/local
687 ac_clean_files=
688 ac_config_libobj_dir=.
689 LIBOBJS=
690 cross_compiling=no
691 subdirs=
692 MFLAGS=
693 MAKEFLAGS=
694
695 # Identity of this package.
696 PACKAGE_NAME='libedit'
697 PACKAGE_TARNAME='libedit-20090923'
698 PACKAGE_VERSION='3.0'
699 PACKAGE_STRING='libedit 3.0'
700 PACKAGE_BUGREPORT=''
701 PACKAGE_URL=''
702
703 ac_unique_file="src/strlcat.c"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
706 #include <stdio.h>
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
709 #endif
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
712 #endif
713 #ifdef STDC_HEADERS
714 # include <stdlib.h>
715 # include <stddef.h>
716 #else
717 # ifdef HAVE_STDLIB_H
718 #  include <stdlib.h>
719 # endif
720 #endif
721 #ifdef HAVE_STRING_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
723 #  include <memory.h>
724 # endif
725 # include <string.h>
726 #endif
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
729 #endif
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
732 #endif
733 #ifdef HAVE_STDINT_H
734 # include <stdint.h>
735 #endif
736 #ifdef HAVE_UNISTD_H
737 # include <unistd.h>
738 #endif"
739
740 ac_subst_vars='am__EXEEXT_FALSE
741 am__EXEEXT_TRUE
742 LTLIBOBJS
743 LIBOBJS
744 ALLOCA
745 MANTYPE
746 NROFF
747 CXXCPP
748 am__fastdepCXX_FALSE
749 am__fastdepCXX_TRUE
750 CXXDEPMODE
751 ac_ct_CXX
752 CXXFLAGS
753 CXX
754 LT_VERSION
755 AM_BACKSLASH
756 AM_DEFAULT_VERBOSITY
757 CPP
758 OTOOL64
759 OTOOL
760 LIPO
761 NMEDIT
762 DSYMUTIL
763 lt_ECHO
764 RANLIB
765 AR
766 OBJDUMP
767 LN_S
768 NM
769 ac_ct_DUMPBIN
770 DUMPBIN
771 LD
772 FGREP
773 EGREP
774 GREP
775 SED
776 am__fastdepCC_FALSE
777 am__fastdepCC_TRUE
778 CCDEPMODE
779 AMDEPBACKSLASH
780 AMDEP_FALSE
781 AMDEP_TRUE
782 am__quote
783 am__include
784 DEPDIR
785 OBJEXT
786 EXEEXT
787 ac_ct_CC
788 CPPFLAGS
789 LDFLAGS
790 CFLAGS
791 CC
792 host_os
793 host_vendor
794 host_cpu
795 host
796 build_os
797 build_vendor
798 build_cpu
799 build
800 LIBTOOL
801 am__untar
802 am__tar
803 AMTAR
804 am__leading_dot
805 SET_MAKE
806 AWK
807 mkdir_p
808 MKDIR_P
809 INSTALL_STRIP_PROGRAM
810 STRIP
811 install_sh
812 MAKEINFO
813 AUTOHEADER
814 AUTOMAKE
815 AUTOCONF
816 ACLOCAL
817 VERSION
818 PACKAGE
819 CYGPATH_W
820 am__isrc
821 INSTALL_DATA
822 INSTALL_SCRIPT
823 INSTALL_PROGRAM
824 target_alias
825 host_alias
826 build_alias
827 LIBS
828 ECHO_T
829 ECHO_N
830 ECHO_C
831 DEFS
832 mandir
833 localedir
834 libdir
835 psdir
836 pdfdir
837 dvidir
838 htmldir
839 infodir
840 docdir
841 oldincludedir
842 includedir
843 localstatedir
844 sharedstatedir
845 sysconfdir
846 datadir
847 datarootdir
848 libexecdir
849 sbindir
850 bindir
851 program_transform_name
852 prefix
853 exec_prefix
854 PACKAGE_URL
855 PACKAGE_BUGREPORT
856 PACKAGE_STRING
857 PACKAGE_VERSION
858 PACKAGE_TARNAME
859 PACKAGE_NAME
860 PATH_SEPARATOR
861 SHELL'
862 ac_subst_files=''
863 ac_user_opts='
864 enable_option_checking
865 enable_shared
866 enable_static
867 with_pic
868 enable_fast_install
869 enable_dependency_tracking
870 with_gnu_ld
871 enable_libtool_lock
872 enable_silent_rules
873 '
874       ac_precious_vars='build_alias
875 host_alias
876 target_alias
877 CC
878 CFLAGS
879 LDFLAGS
880 LIBS
881 CPPFLAGS
882 CPP
883 CXX
884 CXXFLAGS
885 CCC
886 CXXCPP'
887
888
889 # Initialize some variables set by options.
890 ac_init_help=
891 ac_init_version=false
892 ac_unrecognized_opts=
893 ac_unrecognized_sep=
894 # The variables have the same names as the options, with
895 # dashes changed to underlines.
896 cache_file=/dev/null
897 exec_prefix=NONE
898 no_create=
899 no_recursion=
900 prefix=NONE
901 program_prefix=NONE
902 program_suffix=NONE
903 program_transform_name=s,x,x,
904 silent=
905 site=
906 srcdir=
907 verbose=
908 x_includes=NONE
909 x_libraries=NONE
910
911 # Installation directory options.
912 # These are left unexpanded so users can "make install exec_prefix=/foo"
913 # and all the variables that are supposed to be based on exec_prefix
914 # by default will actually change.
915 # Use braces instead of parens because sh, perl, etc. also accept them.
916 # (The list follows the same order as the GNU Coding Standards.)
917 bindir='${exec_prefix}/bin'
918 sbindir='${exec_prefix}/sbin'
919 libexecdir='${exec_prefix}/libexec'
920 datarootdir='${prefix}/share'
921 datadir='${datarootdir}'
922 sysconfdir='${prefix}/etc'
923 sharedstatedir='${prefix}/com'
924 localstatedir='${prefix}/var'
925 includedir='${prefix}/include'
926 oldincludedir='/usr/include'
927 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
928 infodir='${datarootdir}/info'
929 htmldir='${docdir}'
930 dvidir='${docdir}'
931 pdfdir='${docdir}'
932 psdir='${docdir}'
933 libdir='${exec_prefix}/lib'
934 localedir='${datarootdir}/locale'
935 mandir='${datarootdir}/man'
936
937 ac_prev=
938 ac_dashdash=
939 for ac_option
940 do
941   # If the previous option needs an argument, assign it.
942   if test -n "$ac_prev"; then
943     eval $ac_prev=\$ac_option
944     ac_prev=
945     continue
946   fi
947
948   case $ac_option in
949   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950   *)    ac_optarg=yes ;;
951   esac
952
953   # Accept the important Cygnus configure options, so we can diagnose typos.
954
955   case $ac_dashdash$ac_option in
956   --)
957     ac_dashdash=yes ;;
958
959   -bindir | --bindir | --bindi | --bind | --bin | --bi)
960     ac_prev=bindir ;;
961   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
962     bindir=$ac_optarg ;;
963
964   -build | --build | --buil | --bui | --bu)
965     ac_prev=build_alias ;;
966   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
967     build_alias=$ac_optarg ;;
968
969   -cache-file | --cache-file | --cache-fil | --cache-fi \
970   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971     ac_prev=cache_file ;;
972   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
974     cache_file=$ac_optarg ;;
975
976   --config-cache | -C)
977     cache_file=config.cache ;;
978
979   -datadir | --datadir | --datadi | --datad)
980     ac_prev=datadir ;;
981   -datadir=* | --datadir=* | --datadi=* | --datad=*)
982     datadir=$ac_optarg ;;
983
984   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985   | --dataroo | --dataro | --datar)
986     ac_prev=datarootdir ;;
987   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989     datarootdir=$ac_optarg ;;
990
991   -disable-* | --disable-*)
992     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993     # Reject names that are not valid shell variable names.
994     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995       as_fn_error "invalid feature name: $ac_useropt"
996     ac_useropt_orig=$ac_useropt
997     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998     case $ac_user_opts in
999       *"
1000 "enable_$ac_useropt"
1001 "*) ;;
1002       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003          ac_unrecognized_sep=', ';;
1004     esac
1005     eval enable_$ac_useropt=no ;;
1006
1007   -docdir | --docdir | --docdi | --doc | --do)
1008     ac_prev=docdir ;;
1009   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010     docdir=$ac_optarg ;;
1011
1012   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013     ac_prev=dvidir ;;
1014   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015     dvidir=$ac_optarg ;;
1016
1017   -enable-* | --enable-*)
1018     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019     # Reject names that are not valid shell variable names.
1020     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021       as_fn_error "invalid feature name: $ac_useropt"
1022     ac_useropt_orig=$ac_useropt
1023     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024     case $ac_user_opts in
1025       *"
1026 "enable_$ac_useropt"
1027 "*) ;;
1028       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029          ac_unrecognized_sep=', ';;
1030     esac
1031     eval enable_$ac_useropt=\$ac_optarg ;;
1032
1033   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035   | --exec | --exe | --ex)
1036     ac_prev=exec_prefix ;;
1037   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039   | --exec=* | --exe=* | --ex=*)
1040     exec_prefix=$ac_optarg ;;
1041
1042   -gas | --gas | --ga | --g)
1043     # Obsolete; use --with-gas.
1044     with_gas=yes ;;
1045
1046   -help | --help | --hel | --he | -h)
1047     ac_init_help=long ;;
1048   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049     ac_init_help=recursive ;;
1050   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051     ac_init_help=short ;;
1052
1053   -host | --host | --hos | --ho)
1054     ac_prev=host_alias ;;
1055   -host=* | --host=* | --hos=* | --ho=*)
1056     host_alias=$ac_optarg ;;
1057
1058   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059     ac_prev=htmldir ;;
1060   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061   | --ht=*)
1062     htmldir=$ac_optarg ;;
1063
1064   -includedir | --includedir | --includedi | --included | --include \
1065   | --includ | --inclu | --incl | --inc)
1066     ac_prev=includedir ;;
1067   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068   | --includ=* | --inclu=* | --incl=* | --inc=*)
1069     includedir=$ac_optarg ;;
1070
1071   -infodir | --infodir | --infodi | --infod | --info | --inf)
1072     ac_prev=infodir ;;
1073   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074     infodir=$ac_optarg ;;
1075
1076   -libdir | --libdir | --libdi | --libd)
1077     ac_prev=libdir ;;
1078   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1079     libdir=$ac_optarg ;;
1080
1081   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082   | --libexe | --libex | --libe)
1083     ac_prev=libexecdir ;;
1084   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085   | --libexe=* | --libex=* | --libe=*)
1086     libexecdir=$ac_optarg ;;
1087
1088   -localedir | --localedir | --localedi | --localed | --locale)
1089     ac_prev=localedir ;;
1090   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091     localedir=$ac_optarg ;;
1092
1093   -localstatedir | --localstatedir | --localstatedi | --localstated \
1094   | --localstate | --localstat | --localsta | --localst | --locals)
1095     ac_prev=localstatedir ;;
1096   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098     localstatedir=$ac_optarg ;;
1099
1100   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101     ac_prev=mandir ;;
1102   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103     mandir=$ac_optarg ;;
1104
1105   -nfp | --nfp | --nf)
1106     # Obsolete; use --without-fp.
1107     with_fp=no ;;
1108
1109   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110   | --no-cr | --no-c | -n)
1111     no_create=yes ;;
1112
1113   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115     no_recursion=yes ;;
1116
1117   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119   | --oldin | --oldi | --old | --ol | --o)
1120     ac_prev=oldincludedir ;;
1121   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124     oldincludedir=$ac_optarg ;;
1125
1126   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127     ac_prev=prefix ;;
1128   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129     prefix=$ac_optarg ;;
1130
1131   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132   | --program-pre | --program-pr | --program-p)
1133     ac_prev=program_prefix ;;
1134   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136     program_prefix=$ac_optarg ;;
1137
1138   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139   | --program-suf | --program-su | --program-s)
1140     ac_prev=program_suffix ;;
1141   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143     program_suffix=$ac_optarg ;;
1144
1145   -program-transform-name | --program-transform-name \
1146   | --program-transform-nam | --program-transform-na \
1147   | --program-transform-n | --program-transform- \
1148   | --program-transform | --program-transfor \
1149   | --program-transfo | --program-transf \
1150   | --program-trans | --program-tran \
1151   | --progr-tra | --program-tr | --program-t)
1152     ac_prev=program_transform_name ;;
1153   -program-transform-name=* | --program-transform-name=* \
1154   | --program-transform-nam=* | --program-transform-na=* \
1155   | --program-transform-n=* | --program-transform-=* \
1156   | --program-transform=* | --program-transfor=* \
1157   | --program-transfo=* | --program-transf=* \
1158   | --program-trans=* | --program-tran=* \
1159   | --progr-tra=* | --program-tr=* | --program-t=*)
1160     program_transform_name=$ac_optarg ;;
1161
1162   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163     ac_prev=pdfdir ;;
1164   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165     pdfdir=$ac_optarg ;;
1166
1167   -psdir | --psdir | --psdi | --psd | --ps)
1168     ac_prev=psdir ;;
1169   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170     psdir=$ac_optarg ;;
1171
1172   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173   | -silent | --silent | --silen | --sile | --sil)
1174     silent=yes ;;
1175
1176   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177     ac_prev=sbindir ;;
1178   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179   | --sbi=* | --sb=*)
1180     sbindir=$ac_optarg ;;
1181
1182   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184   | --sharedst | --shareds | --shared | --share | --shar \
1185   | --sha | --sh)
1186     ac_prev=sharedstatedir ;;
1187   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190   | --sha=* | --sh=*)
1191     sharedstatedir=$ac_optarg ;;
1192
1193   -site | --site | --sit)
1194     ac_prev=site ;;
1195   -site=* | --site=* | --sit=*)
1196     site=$ac_optarg ;;
1197
1198   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199     ac_prev=srcdir ;;
1200   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201     srcdir=$ac_optarg ;;
1202
1203   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204   | --syscon | --sysco | --sysc | --sys | --sy)
1205     ac_prev=sysconfdir ;;
1206   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208     sysconfdir=$ac_optarg ;;
1209
1210   -target | --target | --targe | --targ | --tar | --ta | --t)
1211     ac_prev=target_alias ;;
1212   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213     target_alias=$ac_optarg ;;
1214
1215   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216     verbose=yes ;;
1217
1218   -version | --version | --versio | --versi | --vers | -V)
1219     ac_init_version=: ;;
1220
1221   -with-* | --with-*)
1222     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223     # Reject names that are not valid shell variable names.
1224     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225       as_fn_error "invalid package name: $ac_useropt"
1226     ac_useropt_orig=$ac_useropt
1227     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228     case $ac_user_opts in
1229       *"
1230 "with_$ac_useropt"
1231 "*) ;;
1232       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233          ac_unrecognized_sep=', ';;
1234     esac
1235     eval with_$ac_useropt=\$ac_optarg ;;
1236
1237   -without-* | --without-*)
1238     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239     # Reject names that are not valid shell variable names.
1240     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241       as_fn_error "invalid package name: $ac_useropt"
1242     ac_useropt_orig=$ac_useropt
1243     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244     case $ac_user_opts in
1245       *"
1246 "with_$ac_useropt"
1247 "*) ;;
1248       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1249          ac_unrecognized_sep=', ';;
1250     esac
1251     eval with_$ac_useropt=no ;;
1252
1253   --x)
1254     # Obsolete; use --with-x.
1255     with_x=yes ;;
1256
1257   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1258   | --x-incl | --x-inc | --x-in | --x-i)
1259     ac_prev=x_includes ;;
1260   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1261   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1262     x_includes=$ac_optarg ;;
1263
1264   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1265   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1266     ac_prev=x_libraries ;;
1267   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1268   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1269     x_libraries=$ac_optarg ;;
1270
1271   -*) as_fn_error "unrecognized option: \`$ac_option'
1272 Try \`$0 --help' for more information."
1273     ;;
1274
1275   *=*)
1276     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277     # Reject names that are not valid shell variable names.
1278     case $ac_envvar in #(
1279       '' | [0-9]* | *[!_$as_cr_alnum]* )
1280       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1281     esac
1282     eval $ac_envvar=\$ac_optarg
1283     export $ac_envvar ;;
1284
1285   *)
1286     # FIXME: should be removed in autoconf 3.0.
1287     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1288     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1290     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1291     ;;
1292
1293   esac
1294 done
1295
1296 if test -n "$ac_prev"; then
1297   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1298   as_fn_error "missing argument to $ac_option"
1299 fi
1300
1301 if test -n "$ac_unrecognized_opts"; then
1302   case $enable_option_checking in
1303     no) ;;
1304     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1305     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1306   esac
1307 fi
1308
1309 # Check all directory arguments for consistency.
1310 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311                 datadir sysconfdir sharedstatedir localstatedir includedir \
1312                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313                 libdir localedir mandir
1314 do
1315   eval ac_val=\$$ac_var
1316   # Remove trailing slashes.
1317   case $ac_val in
1318     */ )
1319       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1320       eval $ac_var=\$ac_val;;
1321   esac
1322   # Be sure to have absolute directory names.
1323   case $ac_val in
1324     [\\/$]* | ?:[\\/]* )  continue;;
1325     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1326   esac
1327   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1328 done
1329
1330 # There might be people who depend on the old broken behavior: `$host'
1331 # used to hold the argument of --host etc.
1332 # FIXME: To remove some day.
1333 build=$build_alias
1334 host=$host_alias
1335 target=$target_alias
1336
1337 # FIXME: To remove some day.
1338 if test "x$host_alias" != x; then
1339   if test "x$build_alias" = x; then
1340     cross_compiling=maybe
1341     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1342     If a cross compiler is detected then cross compile mode will be used." >&2
1343   elif test "x$build_alias" != "x$host_alias"; then
1344     cross_compiling=yes
1345   fi
1346 fi
1347
1348 ac_tool_prefix=
1349 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350
1351 test "$silent" = yes && exec 6>/dev/null
1352
1353
1354 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355 ac_ls_di=`ls -di .` &&
1356 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357   as_fn_error "working directory cannot be determined"
1358 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1359   as_fn_error "pwd does not report name of working directory"
1360
1361
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364   ac_srcdir_defaulted=yes
1365   # Try the directory containing this script, then the parent directory.
1366   ac_confdir=`$as_dirname -- "$as_myself" ||
1367 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368          X"$as_myself" : 'X\(//\)[^/]' \| \
1369          X"$as_myself" : 'X\(//\)$' \| \
1370          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371 $as_echo X"$as_myself" |
1372     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373             s//\1/
1374             q
1375           }
1376           /^X\(\/\/\)[^/].*/{
1377             s//\1/
1378             q
1379           }
1380           /^X\(\/\/\)$/{
1381             s//\1/
1382             q
1383           }
1384           /^X\(\/\).*/{
1385             s//\1/
1386             q
1387           }
1388           s/.*/./; q'`
1389   srcdir=$ac_confdir
1390   if test ! -r "$srcdir/$ac_unique_file"; then
1391     srcdir=..
1392   fi
1393 else
1394   ac_srcdir_defaulted=no
1395 fi
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1399 fi
1400 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401 ac_abs_confdir=`(
1402         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1403         pwd)`
1404 # When building in place, set srcdir=.
1405 if test "$ac_abs_confdir" = "$ac_pwd"; then
1406   srcdir=.
1407 fi
1408 # Remove unnecessary trailing slashes from srcdir.
1409 # Double slashes in file names in object file debugging info
1410 # mess up M-x gdb in Emacs.
1411 case $srcdir in
1412 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413 esac
1414 for ac_var in $ac_precious_vars; do
1415   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416   eval ac_env_${ac_var}_value=\$${ac_var}
1417   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1419 done
1420
1421 #
1422 # Report the --help message.
1423 #
1424 if test "$ac_init_help" = "long"; then
1425   # Omit some internal or obsolete options to make the list less imposing.
1426   # This message is too long to be a string in the A/UX 3.1 sh.
1427   cat <<_ACEOF
1428 \`configure' configures libedit 3.0 to adapt to many kinds of systems.
1429
1430 Usage: $0 [OPTION]... [VAR=VALUE]...
1431
1432 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433 VAR=VALUE.  See below for descriptions of some of the useful variables.
1434
1435 Defaults for the options are specified in brackets.
1436
1437 Configuration:
1438   -h, --help              display this help and exit
1439       --help=short        display options specific to this package
1440       --help=recursive    display the short help of all the included packages
1441   -V, --version           display version information and exit
1442   -q, --quiet, --silent   do not print \`checking...' messages
1443       --cache-file=FILE   cache test results in FILE [disabled]
1444   -C, --config-cache      alias for \`--cache-file=config.cache'
1445   -n, --no-create         do not create output files
1446       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1447
1448 Installation directories:
1449   --prefix=PREFIX         install architecture-independent files in PREFIX
1450                           [$ac_default_prefix]
1451   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1452                           [PREFIX]
1453
1454 By default, \`make install' will install all the files in
1455 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1456 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457 for instance \`--prefix=\$HOME'.
1458
1459 For better control, use the options below.
1460
1461 Fine tuning of the installation directories:
1462   --bindir=DIR            user executables [EPREFIX/bin]
1463   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1464   --libexecdir=DIR        program executables [EPREFIX/libexec]
1465   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1466   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1467   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1468   --libdir=DIR            object code libraries [EPREFIX/lib]
1469   --includedir=DIR        C header files [PREFIX/include]
1470   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1471   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1472   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1473   --infodir=DIR           info documentation [DATAROOTDIR/info]
1474   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1475   --mandir=DIR            man documentation [DATAROOTDIR/man]
1476   --docdir=DIR            documentation root
1477                           [DATAROOTDIR/doc/libedit-20090923]
1478   --htmldir=DIR           html documentation [DOCDIR]
1479   --dvidir=DIR            dvi documentation [DOCDIR]
1480   --pdfdir=DIR            pdf documentation [DOCDIR]
1481   --psdir=DIR             ps documentation [DOCDIR]
1482 _ACEOF
1483
1484   cat <<\_ACEOF
1485
1486 Program names:
1487   --program-prefix=PREFIX            prepend PREFIX to installed program names
1488   --program-suffix=SUFFIX            append SUFFIX to installed program names
1489   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1490
1491 System types:
1492   --build=BUILD     configure for building on BUILD [guessed]
1493   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1494 _ACEOF
1495 fi
1496
1497 if test -n "$ac_init_help"; then
1498   case $ac_init_help in
1499      short | recursive ) echo "Configuration of libedit 3.0:";;
1500    esac
1501   cat <<\_ACEOF
1502
1503 Optional Features:
1504   --disable-option-checking  ignore unrecognized --enable/--with options
1505   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1506   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1507   --enable-shared[=PKGS]  build shared libraries [default=yes]
1508   --enable-static[=PKGS]  build static libraries [default=yes]
1509   --enable-fast-install[=PKGS]
1510                           optimize for fast installation [default=yes]
1511   --disable-dependency-tracking  speeds up one-time build
1512   --enable-dependency-tracking   do not reject slow dependency extractors
1513   --disable-libtool-lock  avoid locking (might break parallel builds)
1514   --enable-silent-rules          less verbose build output (undo: `make V=1')
1515   --disable-silent-rules         verbose build output (undo: `make V=0')
1516
1517 Optional Packages:
1518   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1519   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1520   --with-pic              try to use only PIC/non-PIC objects [default=use
1521                           both]
1522   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1523
1524 Some influential environment variables:
1525   CC          C compiler command
1526   CFLAGS      C compiler flags
1527   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1528               nonstandard directory <lib dir>
1529   LIBS        libraries to pass to the linker, e.g. -l<library>
1530   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1531               you have headers in a nonstandard directory <include dir>
1532   CPP         C preprocessor
1533   CXX         C++ compiler command
1534   CXXFLAGS    C++ compiler flags
1535   CXXCPP      C++ preprocessor
1536
1537 Use these variables to override the choices made by `configure' or to help
1538 it to find libraries and programs with nonstandard names/locations.
1539
1540 Report bugs to the package provider.
1541 _ACEOF
1542 ac_status=$?
1543 fi
1544
1545 if test "$ac_init_help" = "recursive"; then
1546   # If there are subdirs, report their specific --help.
1547   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1548     test -d "$ac_dir" ||
1549       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1550       continue
1551     ac_builddir=.
1552
1553 case "$ac_dir" in
1554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *)
1556   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1557   # A ".." for each directory in $ac_dir_suffix.
1558   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1559   case $ac_top_builddir_sub in
1560   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1562   esac ;;
1563 esac
1564 ac_abs_top_builddir=$ac_pwd
1565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566 # for backward compatibility:
1567 ac_top_builddir=$ac_top_build_prefix
1568
1569 case $srcdir in
1570   .)  # We are building in place.
1571     ac_srcdir=.
1572     ac_top_srcdir=$ac_top_builddir_sub
1573     ac_abs_top_srcdir=$ac_pwd ;;
1574   [\\/]* | ?:[\\/]* )  # Absolute name.
1575     ac_srcdir=$srcdir$ac_dir_suffix;
1576     ac_top_srcdir=$srcdir
1577     ac_abs_top_srcdir=$srcdir ;;
1578   *) # Relative name.
1579     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580     ac_top_srcdir=$ac_top_build_prefix$srcdir
1581     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582 esac
1583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1584
1585     cd "$ac_dir" || { ac_status=$?; continue; }
1586     # Check for guested configure.
1587     if test -f "$ac_srcdir/configure.gnu"; then
1588       echo &&
1589       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590     elif test -f "$ac_srcdir/configure"; then
1591       echo &&
1592       $SHELL "$ac_srcdir/configure" --help=recursive
1593     else
1594       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595     fi || ac_status=$?
1596     cd "$ac_pwd" || { ac_status=$?; break; }
1597   done
1598 fi
1599
1600 test -n "$ac_init_help" && exit $ac_status
1601 if $ac_init_version; then
1602   cat <<\_ACEOF
1603 libedit configure 3.0
1604 generated by GNU Autoconf 2.64
1605
1606 Copyright (C) 2009 Free Software Foundation, Inc.
1607 This configure script is free software; the Free Software Foundation
1608 gives unlimited permission to copy, distribute and modify it.
1609 _ACEOF
1610   exit
1611 fi
1612
1613 ## ------------------------ ##
1614 ## Autoconf initialization. ##
1615 ## ------------------------ ##
1616
1617 # ac_fn_c_try_compile LINENO
1618 # --------------------------
1619 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_c_try_compile ()
1621 {
1622   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623   rm -f conftest.$ac_objext
1624   if { { ac_try="$ac_compile"
1625 case "(($ac_try" in
1626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627   *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631   (eval "$ac_compile") 2>conftest.err
1632   ac_status=$?
1633   if test -s conftest.err; then
1634     grep -v '^ *+' conftest.err >conftest.er1
1635     cat conftest.er1 >&5
1636     mv -f conftest.er1 conftest.err
1637   fi
1638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639   test $ac_status = 0; } && {
1640          test -z "$ac_c_werror_flag" ||
1641          test ! -s conftest.err
1642        } && test -s conftest.$ac_objext; then :
1643   ac_retval=0
1644 else
1645   $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1647
1648         ac_retval=1
1649 fi
1650   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1651   return $ac_retval
1652
1653 } # ac_fn_c_try_compile
1654
1655 # ac_fn_c_try_link LINENO
1656 # -----------------------
1657 # Try to link conftest.$ac_ext, and return whether this succeeded.
1658 ac_fn_c_try_link ()
1659 {
1660   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661   rm -f conftest.$ac_objext conftest$ac_exeext
1662   if { { ac_try="$ac_link"
1663 case "(($ac_try" in
1664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665   *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669   (eval "$ac_link") 2>conftest.err
1670   ac_status=$?
1671   if test -s conftest.err; then
1672     grep -v '^ *+' conftest.err >conftest.er1
1673     cat conftest.er1 >&5
1674     mv -f conftest.er1 conftest.err
1675   fi
1676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677   test $ac_status = 0; } && {
1678          test -z "$ac_c_werror_flag" ||
1679          test ! -s conftest.err
1680        } && test -s conftest$ac_exeext && {
1681          test "$cross_compiling" = yes ||
1682          $as_test_x conftest$ac_exeext
1683        }; then :
1684   ac_retval=0
1685 else
1686   $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689         ac_retval=1
1690 fi
1691   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1692   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1693   # interfere with the next link command; also delete a directory that is
1694   # left behind by Apple's compiler.  We do this before executing the actions.
1695   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1697   return $ac_retval
1698
1699 } # ac_fn_c_try_link
1700
1701 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1702 # -------------------------------------------------------
1703 # Tests whether HEADER exists and can be compiled using the include files in
1704 # INCLUDES, setting the cache variable VAR accordingly.
1705 ac_fn_c_check_header_compile ()
1706 {
1707   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1711   $as_echo_n "(cached) " >&6
1712 else
1713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h.  */
1715 $4
1716 #include <$2>
1717 _ACEOF
1718 if ac_fn_c_try_compile "$LINENO"; then :
1719   eval "$3=yes"
1720 else
1721   eval "$3=no"
1722 fi
1723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1724 fi
1725 eval ac_res=\$$3
1726                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729
1730 } # ac_fn_c_check_header_compile
1731
1732 # ac_fn_c_try_cpp LINENO
1733 # ----------------------
1734 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1735 ac_fn_c_try_cpp ()
1736 {
1737   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738   if { { ac_try="$ac_cpp conftest.$ac_ext"
1739 case "(($ac_try" in
1740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741   *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1746   ac_status=$?
1747   if test -s conftest.err; then
1748     grep -v '^ *+' conftest.err >conftest.er1
1749     cat conftest.er1 >&5
1750     mv -f conftest.er1 conftest.err
1751   fi
1752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753   test $ac_status = 0; } >/dev/null && {
1754          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1755          test ! -s conftest.err
1756        }; then :
1757   ac_retval=0
1758 else
1759   $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1761
1762     ac_retval=1
1763 fi
1764   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765   return $ac_retval
1766
1767 } # ac_fn_c_try_cpp
1768
1769 # ac_fn_c_try_run LINENO
1770 # ----------------------
1771 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1772 # that executables *can* be run.
1773 ac_fn_c_try_run ()
1774 {
1775   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776   if { { ac_try="$ac_link"
1777 case "(($ac_try" in
1778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779   *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783   (eval "$ac_link") 2>&5
1784   ac_status=$?
1785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1787   { { case "(($ac_try" in
1788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789   *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793   (eval "$ac_try") 2>&5
1794   ac_status=$?
1795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796   test $ac_status = 0; }; }; then :
1797   ac_retval=0
1798 else
1799   $as_echo "$as_me: program exited with status $ac_status" >&5
1800        $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1802
1803        ac_retval=$ac_status
1804 fi
1805   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1806   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807   return $ac_retval
1808
1809 } # ac_fn_c_try_run
1810
1811 # ac_fn_c_check_func LINENO FUNC VAR
1812 # ----------------------------------
1813 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1814 ac_fn_c_check_func ()
1815 {
1816   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818 $as_echo_n "checking for $2... " >&6; }
1819 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1820   $as_echo_n "(cached) " >&6
1821 else
1822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h.  */
1824 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1825    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1826 #define $2 innocuous_$2
1827
1828 /* System header to define __stub macros and hopefully few prototypes,
1829     which can conflict with char $2 (); below.
1830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1831     <limits.h> exists even on freestanding compilers.  */
1832
1833 #ifdef __STDC__
1834 # include <limits.h>
1835 #else
1836 # include <assert.h>
1837 #endif
1838
1839 #undef $2
1840
1841 /* Override any GCC internal prototype to avoid an error.
1842    Use char because int might match the return type of a GCC
1843    builtin and then its argument prototype would still apply.  */
1844 #ifdef __cplusplus
1845 extern "C"
1846 #endif
1847 char $2 ();
1848 /* The GNU C library defines this for functions which it implements
1849     to always fail with ENOSYS.  Some functions are actually named
1850     something starting with __ and the normal name is an alias.  */
1851 #if defined __stub_$2 || defined __stub___$2
1852 choke me
1853 #endif
1854
1855 int
1856 main ()
1857 {
1858 return $2 ();
1859   ;
1860   return 0;
1861 }
1862 _ACEOF
1863 if ac_fn_c_try_link "$LINENO"; then :
1864   eval "$3=yes"
1865 else
1866   eval "$3=no"
1867 fi
1868 rm -f core conftest.err conftest.$ac_objext \
1869     conftest$ac_exeext conftest.$ac_ext
1870 fi
1871 eval ac_res=\$$3
1872                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875
1876 } # ac_fn_c_check_func
1877
1878 # ac_fn_cxx_try_compile LINENO
1879 # ----------------------------
1880 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_cxx_try_compile ()
1882 {
1883   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884   rm -f conftest.$ac_objext
1885   if { { ac_try="$ac_compile"
1886 case "(($ac_try" in
1887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888   *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892   (eval "$ac_compile") 2>conftest.err
1893   ac_status=$?
1894   if test -s conftest.err; then
1895     grep -v '^ *+' conftest.err >conftest.er1
1896     cat conftest.er1 >&5
1897     mv -f conftest.er1 conftest.err
1898   fi
1899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900   test $ac_status = 0; } && {
1901          test -z "$ac_cxx_werror_flag" ||
1902          test ! -s conftest.err
1903        } && test -s conftest.$ac_objext; then :
1904   ac_retval=0
1905 else
1906   $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909         ac_retval=1
1910 fi
1911   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1912   return $ac_retval
1913
1914 } # ac_fn_cxx_try_compile
1915
1916 # ac_fn_cxx_try_cpp LINENO
1917 # ------------------------
1918 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1919 ac_fn_cxx_try_cpp ()
1920 {
1921   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922   if { { ac_try="$ac_cpp conftest.$ac_ext"
1923 case "(($ac_try" in
1924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925   *) ac_try_echo=$ac_try;;
1926 esac
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 $as_echo "$ac_try_echo"; } >&5
1929   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1930   ac_status=$?
1931   if test -s conftest.err; then
1932     grep -v '^ *+' conftest.err >conftest.er1
1933     cat conftest.er1 >&5
1934     mv -f conftest.er1 conftest.err
1935   fi
1936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937   test $ac_status = 0; } >/dev/null && {
1938          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1939          test ! -s conftest.err
1940        }; then :
1941   ac_retval=0
1942 else
1943   $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1945
1946     ac_retval=1
1947 fi
1948   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949   return $ac_retval
1950
1951 } # ac_fn_cxx_try_cpp
1952
1953 # ac_fn_cxx_try_link LINENO
1954 # -------------------------
1955 # Try to link conftest.$ac_ext, and return whether this succeeded.
1956 ac_fn_cxx_try_link ()
1957 {
1958   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959   rm -f conftest.$ac_objext conftest$ac_exeext
1960   if { { ac_try="$ac_link"
1961 case "(($ac_try" in
1962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963   *) ac_try_echo=$ac_try;;
1964 esac
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967   (eval "$ac_link") 2>conftest.err
1968   ac_status=$?
1969   if test -s conftest.err; then
1970     grep -v '^ *+' conftest.err >conftest.er1
1971     cat conftest.er1 >&5
1972     mv -f conftest.er1 conftest.err
1973   fi
1974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975   test $ac_status = 0; } && {
1976          test -z "$ac_cxx_werror_flag" ||
1977          test ! -s conftest.err
1978        } && test -s conftest$ac_exeext && {
1979          test "$cross_compiling" = yes ||
1980          $as_test_x conftest$ac_exeext
1981        }; then :
1982   ac_retval=0
1983 else
1984   $as_echo "$as_me: failed program was:" >&5
1985 sed 's/^/| /' conftest.$ac_ext >&5
1986
1987         ac_retval=1
1988 fi
1989   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1990   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1991   # interfere with the next link command; also delete a directory that is
1992   # left behind by Apple's compiler.  We do this before executing the actions.
1993   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1994   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1995   return $ac_retval
1996
1997 } # ac_fn_cxx_try_link
1998
1999 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2000 # -------------------------------------------------------
2001 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2002 # the include files in INCLUDES and setting the cache variable VAR
2003 # accordingly.
2004 ac_fn_c_check_header_mongrel ()
2005 {
2006   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2009 $as_echo_n "checking for $2... " >&6; }
2010 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2011   $as_echo_n "(cached) " >&6
2012 fi
2013 eval ac_res=\$$3
2014                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015 $as_echo "$ac_res" >&6; }
2016 else
2017   # Is the header compilable?
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2019 $as_echo_n "checking $2 usability... " >&6; }
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h.  */
2022 $4
2023 #include <$2>
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026   ac_header_compiler=yes
2027 else
2028   ac_header_compiler=no
2029 fi
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2032 $as_echo "$ac_header_compiler" >&6; }
2033
2034 # Is the header present?
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2036 $as_echo_n "checking $2 presence... " >&6; }
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h.  */
2039 #include <$2>
2040 _ACEOF
2041 if ac_fn_c_try_cpp "$LINENO"; then :
2042   ac_header_preproc=yes
2043 else
2044   ac_header_preproc=no
2045 fi
2046 rm -f conftest.err conftest.$ac_ext
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2048 $as_echo "$ac_header_preproc" >&6; }
2049
2050 # So?  What about this header?
2051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2052   yes:no: )
2053     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2054 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2055     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2056 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2057     ;;
2058   no:yes:* )
2059     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2060 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2061     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2062 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2063     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2064 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2065     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2066 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2067     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2068 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2069     ;;
2070 esac
2071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2074   $as_echo_n "(cached) " >&6
2075 else
2076   eval "$3=\$ac_header_compiler"
2077 fi
2078 eval ac_res=\$$3
2079                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080 $as_echo "$ac_res" >&6; }
2081 fi
2082   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2083
2084 } # ac_fn_c_check_header_mongrel
2085
2086 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2087 # -------------------------------------------
2088 # Tests whether TYPE exists after having included INCLUDES, setting cache
2089 # variable VAR accordingly.
2090 ac_fn_c_check_type ()
2091 {
2092   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094 $as_echo_n "checking for $2... " >&6; }
2095 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2096   $as_echo_n "(cached) " >&6
2097 else
2098   eval "$3=no"
2099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h.  */
2101 $4
2102 int
2103 main ()
2104 {
2105 if (sizeof ($2))
2106          return 0;
2107   ;
2108   return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h.  */
2114 $4
2115 int
2116 main ()
2117 {
2118 if (sizeof (($2)))
2119             return 0;
2120   ;
2121   return 0;
2122 }
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125
2126 else
2127   eval "$3=yes"
2128 fi
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 fi
2133 eval ac_res=\$$3
2134                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2137
2138 } # ac_fn_c_check_type
2139 cat >config.log <<_ACEOF
2140 This file contains any messages produced by compilers while
2141 running configure, to aid debugging if configure makes a mistake.
2142
2143 It was created by libedit $as_me 3.0, which was
2144 generated by GNU Autoconf 2.64.  Invocation command line was
2145
2146   $ $0 $@
2147
2148 _ACEOF
2149 exec 5>>config.log
2150 {
2151 cat <<_ASUNAME
2152 ## --------- ##
2153 ## Platform. ##
2154 ## --------- ##
2155
2156 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2157 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2158 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2159 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2160 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2161
2162 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2163 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2164
2165 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2166 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2167 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2168 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2169 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2170 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2171 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2172
2173 _ASUNAME
2174
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2177 do
2178   IFS=$as_save_IFS
2179   test -z "$as_dir" && as_dir=.
2180     $as_echo "PATH: $as_dir"
2181   done
2182 IFS=$as_save_IFS
2183
2184 } >&5
2185
2186 cat >&5 <<_ACEOF
2187
2188
2189 ## ----------- ##
2190 ## Core tests. ##
2191 ## ----------- ##
2192
2193 _ACEOF
2194
2195
2196 # Keep a trace of the command line.
2197 # Strip out --no-create and --no-recursion so they do not pile up.
2198 # Strip out --silent because we don't want to record it for future runs.
2199 # Also quote any args containing shell meta-characters.
2200 # Make two passes to allow for proper duplicate-argument suppression.
2201 ac_configure_args=
2202 ac_configure_args0=
2203 ac_configure_args1=
2204 ac_must_keep_next=false
2205 for ac_pass in 1 2
2206 do
2207   for ac_arg
2208   do
2209     case $ac_arg in
2210     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2211     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2212     | -silent | --silent | --silen | --sile | --sil)
2213       continue ;;
2214     *\'*)
2215       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2216     esac
2217     case $ac_pass in
2218     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2219     2)
2220       as_fn_append ac_configure_args1 " '$ac_arg'"
2221       if test $ac_must_keep_next = true; then
2222         ac_must_keep_next=false # Got value, back to normal.
2223       else
2224         case $ac_arg in
2225           *=* | --config-cache | -C | -disable-* | --disable-* \
2226           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2227           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2228           | -with-* | --with-* | -without-* | --without-* | --x)
2229             case "$ac_configure_args0 " in
2230               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2231             esac
2232             ;;
2233           -* ) ac_must_keep_next=true ;;
2234         esac
2235       fi
2236       as_fn_append ac_configure_args " '$ac_arg'"
2237       ;;
2238     esac
2239   done
2240 done
2241 { ac_configure_args0=; unset ac_configure_args0;}
2242 { ac_configure_args1=; unset ac_configure_args1;}
2243
2244 # When interrupted or exit'd, cleanup temporary files, and complete
2245 # config.log.  We remove comments because anyway the quotes in there
2246 # would cause problems or look ugly.
2247 # WARNING: Use '\'' to represent an apostrophe within the trap.
2248 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2249 trap 'exit_status=$?
2250   # Save into config.log some information that might help in debugging.
2251   {
2252     echo
2253
2254     cat <<\_ASBOX
2255 ## ---------------- ##
2256 ## Cache variables. ##
2257 ## ---------------- ##
2258 _ASBOX
2259     echo
2260     # The following way of writing the cache mishandles newlines in values,
2261 (
2262   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2263     eval ac_val=\$$ac_var
2264     case $ac_val in #(
2265     *${as_nl}*)
2266       case $ac_var in #(
2267       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2268 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2269       esac
2270       case $ac_var in #(
2271       _ | IFS | as_nl) ;; #(
2272       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2273       *) { eval $ac_var=; unset $ac_var;} ;;
2274       esac ;;
2275     esac
2276   done
2277   (set) 2>&1 |
2278     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2279     *${as_nl}ac_space=\ *)
2280       sed -n \
2281         "s/'\''/'\''\\\\'\'''\''/g;
2282           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2283       ;; #(
2284     *)
2285       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2286       ;;
2287     esac |
2288     sort
2289 )
2290     echo
2291
2292     cat <<\_ASBOX
2293 ## ----------------- ##
2294 ## Output variables. ##
2295 ## ----------------- ##
2296 _ASBOX
2297     echo
2298     for ac_var in $ac_subst_vars
2299     do
2300       eval ac_val=\$$ac_var
2301       case $ac_val in
2302       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2303       esac
2304       $as_echo "$ac_var='\''$ac_val'\''"
2305     done | sort
2306     echo
2307
2308     if test -n "$ac_subst_files"; then
2309       cat <<\_ASBOX
2310 ## ------------------- ##
2311 ## File substitutions. ##
2312 ## ------------------- ##
2313 _ASBOX
2314       echo
2315       for ac_var in $ac_subst_files
2316       do
2317         eval ac_val=\$$ac_var
2318         case $ac_val in
2319         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2320         esac
2321         $as_echo "$ac_var='\''$ac_val'\''"
2322       done | sort
2323       echo
2324     fi
2325
2326     if test -s confdefs.h; then
2327       cat <<\_ASBOX
2328 ## ----------- ##
2329 ## confdefs.h. ##
2330 ## ----------- ##
2331 _ASBOX
2332       echo
2333       cat confdefs.h
2334       echo
2335     fi
2336     test "$ac_signal" != 0 &&
2337       $as_echo "$as_me: caught signal $ac_signal"
2338     $as_echo "$as_me: exit $exit_status"
2339   } >&5
2340   rm -f core *.core core.conftest.* &&
2341     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2342     exit $exit_status
2343 ' 0
2344 for ac_signal in 1 2 13 15; do
2345   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2346 done
2347 ac_signal=0
2348
2349 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2350 rm -f -r conftest* confdefs.h
2351
2352 $as_echo "/* confdefs.h */" > confdefs.h
2353
2354 # Predefined preprocessor variables.
2355
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_NAME "$PACKAGE_NAME"
2358 _ACEOF
2359
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2362 _ACEOF
2363
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2366 _ACEOF
2367
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_STRING "$PACKAGE_STRING"
2370 _ACEOF
2371
2372 cat >>confdefs.h <<_ACEOF
2373 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2374 _ACEOF
2375
2376 cat >>confdefs.h <<_ACEOF
2377 #define PACKAGE_URL "$PACKAGE_URL"
2378 _ACEOF
2379
2380
2381 # Let the site file select an alternate cache file if it wants to.
2382 # Prefer an explicitly selected file to automatically selected ones.
2383 ac_site_file1=NONE
2384 ac_site_file2=NONE
2385 if test -n "$CONFIG_SITE"; then
2386   ac_site_file1=$CONFIG_SITE
2387 elif test "x$prefix" != xNONE; then
2388   ac_site_file1=$prefix/share/config.site
2389   ac_site_file2=$prefix/etc/config.site
2390 else
2391   ac_site_file1=$ac_default_prefix/share/config.site
2392   ac_site_file2=$ac_default_prefix/etc/config.site
2393 fi
2394 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2395 do
2396   test "x$ac_site_file" = xNONE && continue
2397   if test -r "$ac_site_file"; then
2398     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2399 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2400     sed 's/^/| /' "$ac_site_file" >&5
2401     . "$ac_site_file"
2402   fi
2403 done
2404
2405 if test -r "$cache_file"; then
2406   # Some versions of bash will fail to source /dev/null (special
2407   # files actually), so we avoid doing that.
2408   if test -f "$cache_file"; then
2409     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2410 $as_echo "$as_me: loading cache $cache_file" >&6;}
2411     case $cache_file in
2412       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2413       *)                      . "./$cache_file";;
2414     esac
2415   fi
2416 else
2417   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2418 $as_echo "$as_me: creating cache $cache_file" >&6;}
2419   >$cache_file
2420 fi
2421
2422 # Check that the precious variables saved in the cache have kept the same
2423 # value.
2424 ac_cache_corrupted=false
2425 for ac_var in $ac_precious_vars; do
2426   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2427   eval ac_new_set=\$ac_env_${ac_var}_set
2428   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2429   eval ac_new_val=\$ac_env_${ac_var}_value
2430   case $ac_old_set,$ac_new_set in
2431     set,)
2432       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2433 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2434       ac_cache_corrupted=: ;;
2435     ,set)
2436       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2437 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2438       ac_cache_corrupted=: ;;
2439     ,);;
2440     *)
2441       if test "x$ac_old_val" != "x$ac_new_val"; then
2442         # differences in whitespace do not lead to failure.
2443         ac_old_val_w=`echo x $ac_old_val`
2444         ac_new_val_w=`echo x $ac_new_val`
2445         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2446           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2447 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2448           ac_cache_corrupted=:
2449         else
2450           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2451 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2452           eval $ac_var=\$ac_old_val
2453         fi
2454         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2455 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2456         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2457 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2458       fi;;
2459   esac
2460   # Pass precious variables to config.status.
2461   if test "$ac_new_set" = set; then
2462     case $ac_new_val in
2463     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2464     *) ac_arg=$ac_var=$ac_new_val ;;
2465     esac
2466     case " $ac_configure_args " in
2467       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2468       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2469     esac
2470   fi
2471 done
2472 if $ac_cache_corrupted; then
2473   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2475   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2476 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2477   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2478 fi
2479 ## -------------------- ##
2480 ## Main body of script. ##
2481 ## -------------------- ##
2482
2483 ac_ext=c
2484 ac_cpp='$CPP $CPPFLAGS'
2485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2488
2489
2490
2491 ac_config_headers="$ac_config_headers config.h"
2492
2493
2494 am__api_version='1.11'
2495
2496 ac_aux_dir=
2497 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2498   for ac_t in install-sh install.sh shtool; do
2499     if test -f "$ac_dir/$ac_t"; then
2500       ac_aux_dir=$ac_dir
2501       ac_install_sh="$ac_aux_dir/$ac_t -c"
2502       break 2
2503     fi
2504   done
2505 done
2506 if test -z "$ac_aux_dir"; then
2507   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2508 fi
2509
2510 # These three variables are undocumented and unsupported,
2511 # and are intended to be withdrawn in a future Autoconf release.
2512 # They can cause serious problems if a builder's source tree is in a directory
2513 # whose full name contains unusual characters.
2514 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2515 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2516 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2517
2518
2519 # Find a good install program.  We prefer a C program (faster),
2520 # so one script is as good as another.  But avoid the broken or
2521 # incompatible versions:
2522 # SysV /etc/install, /usr/sbin/install
2523 # SunOS /usr/etc/install
2524 # IRIX /sbin/install
2525 # AIX /bin/install
2526 # AmigaOS /C/install, which installs bootblocks on floppy discs
2527 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2528 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2529 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2530 # OS/2's system install, which has a completely different semantic
2531 # ./install, which can be erroneously created by make from ./install.sh.
2532 # Reject install programs that cannot install multiple files.
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2534 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2535 if test -z "$INSTALL"; then
2536 if test "${ac_cv_path_install+set}" = set; then :
2537   $as_echo_n "(cached) " >&6
2538 else
2539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2541 do
2542   IFS=$as_save_IFS
2543   test -z "$as_dir" && as_dir=.
2544     # Account for people who put trailing slashes in PATH elements.
2545 case $as_dir/ in #((
2546   ./ | .// | /[cC]/* | \
2547   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2548   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2549   /usr/ucb/* ) ;;
2550   *)
2551     # OSF1 and SCO ODT 3.0 have their own names for install.
2552     # Don't use installbsd from OSF since it installs stuff as root
2553     # by default.
2554     for ac_prog in ginstall scoinst install; do
2555       for ac_exec_ext in '' $ac_executable_extensions; do
2556         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2557           if test $ac_prog = install &&
2558             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2559             # AIX install.  It has an incompatible calling convention.
2560             :
2561           elif test $ac_prog = install &&
2562             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2563             # program-specific install script used by HP pwplus--don't use.
2564             :
2565           else
2566             rm -rf conftest.one conftest.two conftest.dir
2567             echo one > conftest.one
2568             echo two > conftest.two
2569             mkdir conftest.dir
2570             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2571               test -s conftest.one && test -s conftest.two &&
2572               test -s conftest.dir/conftest.one &&
2573               test -s conftest.dir/conftest.two
2574             then
2575               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2576               break 3
2577             fi
2578           fi
2579         fi
2580       done
2581     done
2582     ;;
2583 esac
2584
2585   done
2586 IFS=$as_save_IFS
2587
2588 rm -rf conftest.one conftest.two conftest.dir
2589
2590 fi
2591   if test "${ac_cv_path_install+set}" = set; then
2592     INSTALL=$ac_cv_path_install
2593   else
2594     # As a last resort, use the slow shell script.  Don't cache a
2595     # value for INSTALL within a source directory, because that will
2596     # break other packages using the cache if that directory is
2597     # removed, or if the value is a relative name.
2598     INSTALL=$ac_install_sh
2599   fi
2600 fi
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2602 $as_echo "$INSTALL" >&6; }
2603
2604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2605 # It thinks the first close brace ends the variable substitution.
2606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2607
2608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2609
2610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2611
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2613 $as_echo_n "checking whether build environment is sane... " >&6; }
2614 # Just in case
2615 sleep 1
2616 echo timestamp > conftest.file
2617 # Reject unsafe characters in $srcdir or the absolute working directory
2618 # name.  Accept space and tab only in the latter.
2619 am_lf='
2620 '
2621 case `pwd` in
2622   *[\\\"\#\$\&\'\`$am_lf]*)
2623     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2624 esac
2625 case $srcdir in
2626   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2627     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2628 esac
2629
2630 # Do `set' in a subshell so we don't clobber the current shell's
2631 # arguments.  Must try -L first in case configure is actually a
2632 # symlink; some systems play weird games with the mod time of symlinks
2633 # (eg FreeBSD returns the mod time of the symlink's containing
2634 # directory).
2635 if (
2636    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2637    if test "$*" = "X"; then
2638       # -L didn't work.
2639       set X `ls -t "$srcdir/configure" conftest.file`
2640    fi
2641    rm -f conftest.file
2642    if test "$*" != "X $srcdir/configure conftest.file" \
2643       && test "$*" != "X conftest.file $srcdir/configure"; then
2644
2645       # If neither matched, then we have a broken ls.  This can happen
2646       # if, for instance, CONFIG_SHELL is bash and it inherits a
2647       # broken ls alias from the environment.  This has actually
2648       # happened.  Such a system could not be considered "sane".
2649       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2650 alias in your environment" "$LINENO" 5
2651    fi
2652
2653    test "$2" = conftest.file
2654    )
2655 then
2656    # Ok.
2657    :
2658 else
2659    as_fn_error "newly created file is older than distributed files!
2660 Check your system clock" "$LINENO" 5
2661 fi
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663 $as_echo "yes" >&6; }
2664 test "$program_prefix" != NONE &&
2665   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2666 # Use a double $ so make ignores it.
2667 test "$program_suffix" != NONE &&
2668   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2669 # Double any \ or $.
2670 # By default was `s,x,x', remove it if useless.
2671 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2672 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2673
2674 # expand $ac_aux_dir to an absolute path
2675 am_aux_dir=`cd $ac_aux_dir && pwd`
2676
2677 if test x"${MISSING+set}" != xset; then
2678   case $am_aux_dir in
2679   *\ * | *\     *)
2680     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2681   *)
2682     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2683   esac
2684 fi
2685 # Use eval to expand $SHELL
2686 if eval "$MISSING --run true"; then
2687   am_missing_run="$MISSING --run "
2688 else
2689   am_missing_run=
2690   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2691 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2692 fi
2693
2694 if test x"${install_sh}" != xset; then
2695   case $am_aux_dir in
2696   *\ * | *\     *)
2697     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2698   *)
2699     install_sh="\${SHELL} $am_aux_dir/install-sh"
2700   esac
2701 fi
2702
2703 # Installed binaries are usually stripped using `strip' when the user
2704 # run `make install-strip'.  However `strip' might not be the right
2705 # tool to use in cross-compilation environments, therefore Automake
2706 # will honor the `STRIP' environment variable to overrule this program.
2707 if test "$cross_compiling" != no; then
2708   if test -n "$ac_tool_prefix"; then
2709   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2710 set dummy ${ac_tool_prefix}strip; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if test "${ac_cv_prog_STRIP+set}" = set; then :
2714   $as_echo_n "(cached) " >&6
2715 else
2716   if test -n "$STRIP"; then
2717   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2721 do
2722   IFS=$as_save_IFS
2723   test -z "$as_dir" && as_dir=.
2724     for ac_exec_ext in '' $ac_executable_extensions; do
2725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728     break 2
2729   fi
2730 done
2731   done
2732 IFS=$as_save_IFS
2733
2734 fi
2735 fi
2736 STRIP=$ac_cv_prog_STRIP
2737 if test -n "$STRIP"; then
2738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2739 $as_echo "$STRIP" >&6; }
2740 else
2741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2743 fi
2744
2745
2746 fi
2747 if test -z "$ac_cv_prog_STRIP"; then
2748   ac_ct_STRIP=$STRIP
2749   # Extract the first word of "strip", so it can be a program name with args.
2750 set dummy strip; ac_word=$2
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2754   $as_echo_n "(cached) " >&6
2755 else
2756   if test -n "$ac_ct_STRIP"; then
2757   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2761 do
2762   IFS=$as_save_IFS
2763   test -z "$as_dir" && as_dir=.
2764     for ac_exec_ext in '' $ac_executable_extensions; do
2765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766     ac_cv_prog_ac_ct_STRIP="strip"
2767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2768     break 2
2769   fi
2770 done
2771   done
2772 IFS=$as_save_IFS
2773
2774 fi
2775 fi
2776 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2777 if test -n "$ac_ct_STRIP"; then
2778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2779 $as_echo "$ac_ct_STRIP" >&6; }
2780 else
2781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782 $as_echo "no" >&6; }
2783 fi
2784
2785   if test "x$ac_ct_STRIP" = x; then
2786     STRIP=":"
2787   else
2788     case $cross_compiling:$ac_tool_warned in
2789 yes:)
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2792 ac_tool_warned=yes ;;
2793 esac
2794     STRIP=$ac_ct_STRIP
2795   fi
2796 else
2797   STRIP="$ac_cv_prog_STRIP"
2798 fi
2799
2800 fi
2801 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2802
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2804 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2805 if test -z "$MKDIR_P"; then
2806   if test "${ac_cv_path_mkdir+set}" = set; then :
2807   $as_echo_n "(cached) " >&6
2808 else
2809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2811 do
2812   IFS=$as_save_IFS
2813   test -z "$as_dir" && as_dir=.
2814     for ac_prog in mkdir gmkdir; do
2815          for ac_exec_ext in '' $ac_executable_extensions; do
2816            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2817            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2818              'mkdir (GNU coreutils) '* | \
2819              'mkdir (coreutils) '* | \
2820              'mkdir (fileutils) '4.1*)
2821                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2822                break 3;;
2823            esac
2824          done
2825        done
2826   done
2827 IFS=$as_save_IFS
2828
2829 fi
2830
2831   if test "${ac_cv_path_mkdir+set}" = set; then
2832     MKDIR_P="$ac_cv_path_mkdir -p"
2833   else
2834     # As a last resort, use the slow shell script.  Don't cache a
2835     # value for MKDIR_P within a source directory, because that will
2836     # break other packages using the cache if that directory is
2837     # removed, or if the value is a relative name.
2838     test -d ./--version && rmdir ./--version
2839     MKDIR_P="$ac_install_sh -d"
2840   fi
2841 fi
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2843 $as_echo "$MKDIR_P" >&6; }
2844
2845 mkdir_p="$MKDIR_P"
2846 case $mkdir_p in
2847   [\\/$]* | ?:[\\/]*) ;;
2848   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2849 esac
2850
2851 for ac_prog in gawk mawk nawk awk
2852 do
2853   # Extract the first word of "$ac_prog", so it can be a program name with args.
2854 set dummy $ac_prog; ac_word=$2
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2856 $as_echo_n "checking for $ac_word... " >&6; }
2857 if test "${ac_cv_prog_AWK+set}" = set; then :
2858   $as_echo_n "(cached) " >&6
2859 else
2860   if test -n "$AWK"; then
2861   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866   IFS=$as_save_IFS
2867   test -z "$as_dir" && as_dir=.
2868     for ac_exec_ext in '' $ac_executable_extensions; do
2869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870     ac_cv_prog_AWK="$ac_prog"
2871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2872     break 2
2873   fi
2874 done
2875   done
2876 IFS=$as_save_IFS
2877
2878 fi
2879 fi
2880 AWK=$ac_cv_prog_AWK
2881 if test -n "$AWK"; then
2882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2883 $as_echo "$AWK" >&6; }
2884 else
2885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886 $as_echo "no" >&6; }
2887 fi
2888
2889
2890   test -n "$AWK" && break
2891 done
2892
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2894 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2895 set x ${MAKE-make}
2896 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2897 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2898   $as_echo_n "(cached) " >&6
2899 else
2900   cat >conftest.make <<\_ACEOF
2901 SHELL = /bin/sh
2902 all:
2903         @echo '@@@%%%=$(MAKE)=@@@%%%'
2904 _ACEOF
2905 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2906 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2907   *@@@%%%=?*=@@@%%%*)
2908     eval ac_cv_prog_make_${ac_make}_set=yes;;
2909   *)
2910     eval ac_cv_prog_make_${ac_make}_set=no;;
2911 esac
2912 rm -f conftest.make
2913 fi
2914 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2916 $as_echo "yes" >&6; }
2917   SET_MAKE=
2918 else
2919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2921   SET_MAKE="MAKE=${MAKE-make}"
2922 fi
2923
2924 rm -rf .tst 2>/dev/null
2925 mkdir .tst 2>/dev/null
2926 if test -d .tst; then
2927   am__leading_dot=.
2928 else
2929   am__leading_dot=_
2930 fi
2931 rmdir .tst 2>/dev/null
2932
2933 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2934   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2935   # is not polluted with repeated "-I."
2936   am__isrc=' -I$(srcdir)'
2937   # test to see if srcdir already configured
2938   if test -f $srcdir/config.status; then
2939     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2940   fi
2941 fi
2942
2943 # test whether we have cygpath
2944 if test -z "$CYGPATH_W"; then
2945   if (cygpath --version) >/dev/null 2>/dev/null; then
2946     CYGPATH_W='cygpath -w'
2947   else
2948     CYGPATH_W=echo
2949   fi
2950 fi
2951
2952
2953 # Define the identity of the package.
2954  PACKAGE='libedit-20090923'
2955  VERSION='3.0'
2956
2957
2958 cat >>confdefs.h <<_ACEOF
2959 #define PACKAGE "$PACKAGE"
2960 _ACEOF
2961
2962
2963 cat >>confdefs.h <<_ACEOF
2964 #define VERSION "$VERSION"
2965 _ACEOF
2966
2967 # Some tools Automake needs.
2968
2969 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2970
2971
2972 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2973
2974
2975 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2976
2977
2978 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2979
2980
2981 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2982
2983 # We need awk for the "check" target.  The system "awk" is bad on
2984 # some platforms.
2985 # Always define AMTAR for backward compatibility.
2986
2987 AMTAR=${AMTAR-"${am_missing_run}tar"}
2988
2989 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2990
2991
2992
2993
2994
2995 case `pwd` in
2996   *\ * | *\     *)
2997     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2998 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2999 esac
3000
3001
3002
3003 macro_version='2.2.6'
3004 macro_revision='1.3012'
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018 ltmain="$ac_aux_dir/ltmain.sh"
3019
3020 # Make sure we can run config.sub.
3021 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3022   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3023
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3025 $as_echo_n "checking build system type... " >&6; }
3026 if test "${ac_cv_build+set}" = set; then :
3027   $as_echo_n "(cached) " >&6
3028 else
3029   ac_build_alias=$build_alias
3030 test "x$ac_build_alias" = x &&
3031   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3032 test "x$ac_build_alias" = x &&
3033   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3034 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3035   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3036
3037 fi
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3039 $as_echo "$ac_cv_build" >&6; }
3040 case $ac_cv_build in
3041 *-*-*) ;;
3042 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3043 esac
3044 build=$ac_cv_build
3045 ac_save_IFS=$IFS; IFS='-'
3046 set x $ac_cv_build
3047 shift
3048 build_cpu=$1
3049 build_vendor=$2
3050 shift; shift
3051 # Remember, the first character of IFS is used to create $*,
3052 # except with old shells:
3053 build_os=$*
3054 IFS=$ac_save_IFS
3055 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3056
3057
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3059 $as_echo_n "checking host system type... " >&6; }
3060 if test "${ac_cv_host+set}" = set; then :
3061   $as_echo_n "(cached) " >&6
3062 else
3063   if test "x$host_alias" = x; then
3064   ac_cv_host=$ac_cv_build
3065 else
3066   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3067     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3068 fi
3069
3070 fi
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3072 $as_echo "$ac_cv_host" >&6; }
3073 case $ac_cv_host in
3074 *-*-*) ;;
3075 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3076 esac
3077 host=$ac_cv_host
3078 ac_save_IFS=$IFS; IFS='-'
3079 set x $ac_cv_host
3080 shift
3081 host_cpu=$1
3082 host_vendor=$2
3083 shift; shift
3084 # Remember, the first character of IFS is used to create $*,
3085 # except with old shells:
3086 host_os=$*
3087 IFS=$ac_save_IFS
3088 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3089
3090
3091 DEPDIR="${am__leading_dot}deps"
3092
3093 ac_config_commands="$ac_config_commands depfiles"
3094
3095
3096 am_make=${MAKE-make}
3097 cat > confinc << 'END'
3098 am__doit:
3099         @echo this is the am__doit target
3100 .PHONY: am__doit
3101 END
3102 # If we don't find an include directive, just comment out the code.
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3104 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3105 am__include="#"
3106 am__quote=
3107 _am_result=none
3108 # First try GNU make style include.
3109 echo "include confinc" > confmf
3110 # Ignore all kinds of additional output from `make'.
3111 case `$am_make -s -f confmf 2> /dev/null` in #(
3112 *the\ am__doit\ target*)
3113   am__include=include
3114   am__quote=
3115   _am_result=GNU
3116   ;;
3117 esac
3118 # Now try BSD make style include.
3119 if test "$am__include" = "#"; then
3120    echo '.include "confinc"' > confmf
3121    case `$am_make -s -f confmf 2> /dev/null` in #(
3122    *the\ am__doit\ target*)
3123      am__include=.include
3124      am__quote="\""
3125      _am_result=BSD
3126      ;;
3127    esac
3128 fi
3129
3130
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3132 $as_echo "$_am_result" >&6; }
3133 rm -f confinc confmf
3134
3135 # Check whether --enable-dependency-tracking was given.
3136 if test "${enable_dependency_tracking+set}" = set; then :
3137   enableval=$enable_dependency_tracking;
3138 fi
3139
3140 if test "x$enable_dependency_tracking" != xno; then
3141   am_depcomp="$ac_aux_dir/depcomp"
3142   AMDEPBACKSLASH='\'
3143 fi
3144  if test "x$enable_dependency_tracking" != xno; then
3145   AMDEP_TRUE=
3146   AMDEP_FALSE='#'
3147 else
3148   AMDEP_TRUE='#'
3149   AMDEP_FALSE=
3150 fi
3151
3152
3153 ac_ext=c
3154 ac_cpp='$CPP $CPPFLAGS'
3155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158 if test -n "$ac_tool_prefix"; then
3159   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3160 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if test "${ac_cv_prog_CC+set}" = set; then :
3164   $as_echo_n "(cached) " >&6
3165 else
3166   if test -n "$CC"; then
3167   ac_cv_prog_CC="$CC" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172   IFS=$as_save_IFS
3173   test -z "$as_dir" && as_dir=.
3174     for ac_exec_ext in '' $ac_executable_extensions; do
3175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3176     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178     break 2
3179   fi
3180 done
3181   done
3182 IFS=$as_save_IFS
3183
3184 fi
3185 fi
3186 CC=$ac_cv_prog_CC
3187 if test -n "$CC"; then
3188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189 $as_echo "$CC" >&6; }
3190 else
3191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3193 fi
3194
3195
3196 fi
3197 if test -z "$ac_cv_prog_CC"; then
3198   ac_ct_CC=$CC
3199   # Extract the first word of "gcc", so it can be a program name with args.
3200 set dummy gcc; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3204   $as_echo_n "(cached) " >&6
3205 else
3206   if test -n "$ac_ct_CC"; then
3207   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212   IFS=$as_save_IFS
3213   test -z "$as_dir" && as_dir=.
3214     for ac_exec_ext in '' $ac_executable_extensions; do
3215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216     ac_cv_prog_ac_ct_CC="gcc"
3217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218     break 2
3219   fi
3220 done
3221   done
3222 IFS=$as_save_IFS
3223
3224 fi
3225 fi
3226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3227 if test -n "$ac_ct_CC"; then
3228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3229 $as_echo "$ac_ct_CC" >&6; }
3230 else
3231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3233 fi
3234
3235   if test "x$ac_ct_CC" = x; then
3236     CC=""
3237   else
3238     case $cross_compiling:$ac_tool_warned in
3239 yes:)
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3242 ac_tool_warned=yes ;;
3243 esac
3244     CC=$ac_ct_CC
3245   fi
3246 else
3247   CC="$ac_cv_prog_CC"
3248 fi
3249
3250 if test -z "$CC"; then
3251           if test -n "$ac_tool_prefix"; then
3252     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3253 set dummy ${ac_tool_prefix}cc; ac_word=$2
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255 $as_echo_n "checking for $ac_word... " >&6; }
3256 if test "${ac_cv_prog_CC+set}" = set; then :
3257   $as_echo_n "(cached) " >&6
3258 else
3259   if test -n "$CC"; then
3260   ac_cv_prog_CC="$CC" # Let the user override the test.
3261 else
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH
3264 do
3265   IFS=$as_save_IFS
3266   test -z "$as_dir" && as_dir=.
3267     for ac_exec_ext in '' $ac_executable_extensions; do
3268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3269     ac_cv_prog_CC="${ac_tool_prefix}cc"
3270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271     break 2
3272   fi
3273 done
3274   done
3275 IFS=$as_save_IFS
3276
3277 fi
3278 fi
3279 CC=$ac_cv_prog_CC
3280 if test -n "$CC"; then
3281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3282 $as_echo "$CC" >&6; }
3283 else
3284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3286 fi
3287
3288
3289   fi
3290 fi
3291 if test -z "$CC"; then
3292   # Extract the first word of "cc", so it can be a program name with args.
3293 set dummy cc; ac_word=$2
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295 $as_echo_n "checking for $ac_word... " >&6; }
3296 if test "${ac_cv_prog_CC+set}" = set; then :
3297   $as_echo_n "(cached) " >&6
3298 else
3299   if test -n "$CC"; then
3300   ac_cv_prog_CC="$CC" # Let the user override the test.
3301 else
3302   ac_prog_rejected=no
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3305 do
3306   IFS=$as_save_IFS
3307   test -z "$as_dir" && as_dir=.
3308     for ac_exec_ext in '' $ac_executable_extensions; do
3309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3310     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3311        ac_prog_rejected=yes
3312        continue
3313      fi
3314     ac_cv_prog_CC="cc"
3315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316     break 2
3317   fi
3318 done
3319   done
3320 IFS=$as_save_IFS
3321
3322 if test $ac_prog_rejected = yes; then
3323   # We found a bogon in the path, so make sure we never use it.
3324   set dummy $ac_cv_prog_CC
3325   shift
3326   if test $# != 0; then
3327     # We chose a different compiler from the bogus one.
3328     # However, it has the same basename, so the bogon will be chosen
3329     # first if we set CC to just the basename; use the full file name.
3330     shift
3331     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3332   fi
3333 fi
3334 fi
3335 fi
3336 CC=$ac_cv_prog_CC
3337 if test -n "$CC"; then
3338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3339 $as_echo "$CC" >&6; }
3340 else
3341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 fi
3344
3345
3346 fi
3347 if test -z "$CC"; then
3348   if test -n "$ac_tool_prefix"; then
3349   for ac_prog in cl.exe
3350   do
3351     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if test "${ac_cv_prog_CC+set}" = set; then :
3356   $as_echo_n "(cached) " >&6
3357 else
3358   if test -n "$CC"; then
3359   ac_cv_prog_CC="$CC" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364   IFS=$as_save_IFS
3365   test -z "$as_dir" && as_dir=.
3366     for ac_exec_ext in '' $ac_executable_extensions; do
3367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3368     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370     break 2
3371   fi
3372 done
3373   done
3374 IFS=$as_save_IFS
3375
3376 fi
3377 fi
3378 CC=$ac_cv_prog_CC
3379 if test -n "$CC"; then
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3381 $as_echo "$CC" >&6; }
3382 else
3383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3385 fi
3386
3387
3388     test -n "$CC" && break
3389   done
3390 fi
3391 if test -z "$CC"; then
3392   ac_ct_CC=$CC
3393   for ac_prog in cl.exe
3394 do
3395   # Extract the first word of "$ac_prog", so it can be a program name with args.
3396 set dummy $ac_prog; ac_word=$2
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398 $as_echo_n "checking for $ac_word... " >&6; }
3399 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3400   $as_echo_n "(cached) " >&6
3401 else
3402   if test -n "$ac_ct_CC"; then
3403   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3404 else
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3407 do
3408   IFS=$as_save_IFS
3409   test -z "$as_dir" && as_dir=.
3410     for ac_exec_ext in '' $ac_executable_extensions; do
3411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3412     ac_cv_prog_ac_ct_CC="$ac_prog"
3413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414     break 2
3415   fi
3416 done
3417   done
3418 IFS=$as_save_IFS
3419
3420 fi
3421 fi
3422 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3423 if test -n "$ac_ct_CC"; then
3424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3425 $as_echo "$ac_ct_CC" >&6; }
3426 else
3427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3429 fi
3430
3431
3432   test -n "$ac_ct_CC" && break
3433 done
3434
3435   if test "x$ac_ct_CC" = x; then
3436     CC=""
3437   else
3438     case $cross_compiling:$ac_tool_warned in
3439 yes:)
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3442 ac_tool_warned=yes ;;
3443 esac
3444     CC=$ac_ct_CC
3445   fi
3446 fi
3447
3448 fi
3449
3450
3451 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error "no acceptable C compiler found in \$PATH
3454 See \`config.log' for more details." "$LINENO" 5; }
3455
3456 # Provide some information about the compiler.
3457 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3458 set X $ac_compile
3459 ac_compiler=$2
3460 for ac_option in --version -v -V -qversion; do
3461   { { ac_try="$ac_compiler $ac_option >&5"
3462 case "(($ac_try" in
3463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464   *) ac_try_echo=$ac_try;;
3465 esac
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3469   ac_status=$?
3470   if test -s conftest.err; then
3471     sed '10a\
3472 ... rest of stderr output deleted ...
3473          10q' conftest.err >conftest.er1
3474     cat conftest.er1 >&5
3475     rm -f conftest.er1 conftest.err
3476   fi
3477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478   test $ac_status = 0; }
3479 done
3480
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h.  */
3483 #include <stdio.h>
3484 int
3485 main ()
3486 {
3487 FILE *f = fopen ("conftest.out", "w");
3488  return ferror (f) || fclose (f) != 0;
3489
3490   ;
3491   return 0;
3492 }
3493 _ACEOF
3494 ac_clean_files_save=$ac_clean_files
3495 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3496 # Try to create an executable without -o first, disregard a.out.
3497 # It will help us diagnose broken compilers, and finding out an intuition
3498 # of exeext.
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3500 $as_echo_n "checking for C compiler default output file name... " >&6; }
3501 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3502
3503 # The possible output files:
3504 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3505
3506 ac_rmfiles=
3507 for ac_file in $ac_files
3508 do
3509   case $ac_file in
3510     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3511     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3512   esac
3513 done
3514 rm -f $ac_rmfiles
3515
3516 if { { ac_try="$ac_link_default"
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_default") 2>&5
3524   ac_status=$?
3525   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526   test $ac_status = 0; }; then :
3527   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3528 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3529 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3530 # so that the user can short-circuit this test for compilers unknown to
3531 # Autoconf.
3532 for ac_file in $ac_files ''
3533 do
3534   test -f "$ac_file" || continue
3535   case $ac_file in
3536     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3537         ;;
3538     [ab].out )
3539         # We found the default executable, but exeext='' is most
3540         # certainly right.
3541         break;;
3542     *.* )
3543         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3544         then :; else
3545            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3546         fi
3547         # We set ac_cv_exeext here because the later test for it is not
3548         # safe: cross compilers may not add the suffix if given an `-o'
3549         # argument, so we may need to know it at that point already.
3550         # Even if this section looks crufty: it has the advantage of
3551         # actually working.
3552         break;;
3553     * )
3554         break;;
3555   esac
3556 done
3557 test "$ac_cv_exeext" = no && ac_cv_exeext=
3558
3559 else
3560   ac_file=''
3561 fi
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3563 $as_echo "$ac_file" >&6; }
3564 if test -z "$ac_file"; then :
3565   $as_echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3570 { as_fn_set_status 77
3571 as_fn_error "C compiler cannot create executables
3572 See \`config.log' for more details." "$LINENO" 5; }; }
3573 fi
3574 ac_exeext=$ac_cv_exeext
3575
3576 # Check that the compiler produces executables we can run.  If not, either
3577 # the compiler is broken, or we cross compile.
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3579 $as_echo_n "checking whether the C compiler works... " >&6; }
3580 # If not cross compiling, check that we can run a simple program.
3581 if test "$cross_compiling" != yes; then
3582   if { ac_try='./$ac_file'
3583   { { case "(($ac_try" in
3584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585   *) ac_try_echo=$ac_try;;
3586 esac
3587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588 $as_echo "$ac_try_echo"; } >&5
3589   (eval "$ac_try") 2>&5
3590   ac_status=$?
3591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592   test $ac_status = 0; }; }; then
3593     cross_compiling=no
3594   else
3595     if test "$cross_compiling" = maybe; then
3596         cross_compiling=yes
3597     else
3598         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3600 as_fn_error "cannot run C compiled programs.
3601 If you meant to cross compile, use \`--host'.
3602 See \`config.log' for more details." "$LINENO" 5; }
3603     fi
3604   fi
3605 fi
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3607 $as_echo "yes" >&6; }
3608
3609 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3610 ac_clean_files=$ac_clean_files_save
3611 # Check that the compiler produces executables we can run.  If not, either
3612 # the compiler is broken, or we cross compile.
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3614 $as_echo_n "checking whether we are cross compiling... " >&6; }
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3616 $as_echo "$cross_compiling" >&6; }
3617
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3619 $as_echo_n "checking for suffix of executables... " >&6; }
3620 if { { ac_try="$ac_link"
3621 case "(($ac_try" in
3622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623   *) ac_try_echo=$ac_try;;
3624 esac
3625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626 $as_echo "$ac_try_echo"; } >&5
3627   (eval "$ac_link") 2>&5
3628   ac_status=$?
3629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630   test $ac_status = 0; }; then :
3631   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3632 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3633 # work properly (i.e., refer to `conftest.exe'), while it won't with
3634 # `rm'.
3635 for ac_file in conftest.exe conftest conftest.*; do
3636   test -f "$ac_file" || continue
3637   case $ac_file in
3638     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3639     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3640           break;;
3641     * ) break;;
3642   esac
3643 done
3644 else
3645   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3647 as_fn_error "cannot compute suffix of executables: cannot compile and link
3648 See \`config.log' for more details." "$LINENO" 5; }
3649 fi
3650 rm -f conftest$ac_cv_exeext
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3652 $as_echo "$ac_cv_exeext" >&6; }
3653
3654 rm -f conftest.$ac_ext
3655 EXEEXT=$ac_cv_exeext
3656 ac_exeext=$EXEEXT
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3658 $as_echo_n "checking for suffix of object files... " >&6; }
3659 if test "${ac_cv_objext+set}" = set; then :
3660   $as_echo_n "(cached) " >&6
3661 else
3662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h.  */
3664
3665 int
3666 main ()
3667 {
3668
3669   ;
3670   return 0;
3671 }
3672 _ACEOF
3673 rm -f conftest.o conftest.obj
3674 if { { ac_try="$ac_compile"
3675 case "(($ac_try" in
3676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677   *) ac_try_echo=$ac_try;;
3678 esac
3679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3680 $as_echo "$ac_try_echo"; } >&5
3681   (eval "$ac_compile") 2>&5
3682   ac_status=$?
3683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3684   test $ac_status = 0; }; then :
3685   for ac_file in conftest.o conftest.obj conftest.*; do
3686   test -f "$ac_file" || continue;
3687   case $ac_file in
3688     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3689     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3690        break;;
3691   esac
3692 done
3693 else
3694   $as_echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3696
3697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3699 as_fn_error "cannot compute suffix of object files: cannot compile
3700 See \`config.log' for more details." "$LINENO" 5; }
3701 fi
3702 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3703 fi
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3705 $as_echo "$ac_cv_objext" >&6; }
3706 OBJEXT=$ac_cv_objext
3707 ac_objext=$OBJEXT
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3709 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3710 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3711   $as_echo_n "(cached) " >&6
3712 else
3713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h.  */
3715
3716 int
3717 main ()
3718 {
3719 #ifndef __GNUC__
3720        choke me
3721 #endif
3722
3723   ;
3724   return 0;
3725 }
3726 _ACEOF
3727 if ac_fn_c_try_compile "$LINENO"; then :
3728   ac_compiler_gnu=yes
3729 else
3730   ac_compiler_gnu=no
3731 fi
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3734
3735 fi
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3737 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3738 if test $ac_compiler_gnu = yes; then
3739   GCC=yes
3740 else
3741   GCC=
3742 fi
3743 ac_test_CFLAGS=${CFLAGS+set}
3744 ac_save_CFLAGS=$CFLAGS
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3746 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3747 if test "${ac_cv_prog_cc_g+set}" = set; then :
3748   $as_echo_n "(cached) " >&6
3749 else
3750   ac_save_c_werror_flag=$ac_c_werror_flag
3751    ac_c_werror_flag=yes
3752    ac_cv_prog_cc_g=no
3753    CFLAGS="-g"
3754    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h.  */
3756
3757 int
3758 main ()
3759 {
3760
3761   ;
3762   return 0;
3763 }
3764 _ACEOF
3765 if ac_fn_c_try_compile "$LINENO"; then :
3766   ac_cv_prog_cc_g=yes
3767 else
3768   CFLAGS=""
3769       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h.  */
3771
3772 int
3773 main ()
3774 {
3775
3776   ;
3777   return 0;
3778 }
3779 _ACEOF
3780 if ac_fn_c_try_compile "$LINENO"; then :
3781
3782 else
3783   ac_c_werror_flag=$ac_save_c_werror_flag
3784          CFLAGS="-g"
3785          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h.  */
3787
3788 int
3789 main ()
3790 {
3791
3792   ;
3793   return 0;
3794 }
3795 _ACEOF
3796 if ac_fn_c_try_compile "$LINENO"; then :
3797   ac_cv_prog_cc_g=yes
3798 fi
3799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3800 fi
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802 fi
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804    ac_c_werror_flag=$ac_save_c_werror_flag
3805 fi
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3807 $as_echo "$ac_cv_prog_cc_g" >&6; }
3808 if test "$ac_test_CFLAGS" = set; then
3809   CFLAGS=$ac_save_CFLAGS
3810 elif test $ac_cv_prog_cc_g = yes; then
3811   if test "$GCC" = yes; then
3812     CFLAGS="-g -O2"
3813   else
3814     CFLAGS="-g"
3815   fi
3816 else
3817   if test "$GCC" = yes; then
3818     CFLAGS="-O2"
3819   else
3820     CFLAGS=
3821   fi
3822 fi
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3824 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3825 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3826   $as_echo_n "(cached) " >&6
3827 else
3828   ac_cv_prog_cc_c89=no
3829 ac_save_CC=$CC
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h.  */
3832 #include <stdarg.h>
3833 #include <stdio.h>
3834 #include <sys/types.h>
3835 #include <sys/stat.h>
3836 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3837 struct buf { int x; };
3838 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3839 static char *e (p, i)
3840      char **p;
3841      int i;
3842 {
3843   return p[i];
3844 }
3845 static char *f (char * (*g) (char **, int), char **p, ...)
3846 {
3847   char *s;
3848   va_list v;
3849   va_start (v,p);
3850   s = g (p, va_arg (v,int));
3851   va_end (v);
3852   return s;
3853 }
3854
3855 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3856    function prototypes and stuff, but not '\xHH' hex character constants.
3857    These don't provoke an error unfortunately, instead are silently treated
3858    as 'x'.  The following induces an error, until -std is added to get
3859    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3860    array size at least.  It's necessary to write '\x00'==0 to get something
3861    that's true only with -std.  */
3862 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3863
3864 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3865    inside strings and character constants.  */
3866 #define FOO(x) 'x'
3867 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3868
3869 int test (int i, double x);
3870 struct s1 {int (*f) (int a);};
3871 struct s2 {int (*f) (double a);};
3872 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3873 int argc;
3874 char **argv;
3875 int
3876 main ()
3877 {
3878 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3879   ;
3880   return 0;
3881 }
3882 _ACEOF
3883 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3884         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3885 do
3886   CC="$ac_save_CC $ac_arg"
3887   if ac_fn_c_try_compile "$LINENO"; then :
3888   ac_cv_prog_cc_c89=$ac_arg
3889 fi
3890 rm -f core conftest.err conftest.$ac_objext
3891   test "x$ac_cv_prog_cc_c89" != "xno" && break
3892 done
3893 rm -f conftest.$ac_ext
3894 CC=$ac_save_CC
3895
3896 fi
3897 # AC_CACHE_VAL
3898 case "x$ac_cv_prog_cc_c89" in
3899   x)
3900     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3901 $as_echo "none needed" >&6; } ;;
3902   xno)
3903     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3904 $as_echo "unsupported" >&6; } ;;
3905   *)
3906     CC="$CC $ac_cv_prog_cc_c89"
3907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3908 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3909 esac
3910 if test "x$ac_cv_prog_cc_c89" != xno; then :
3911
3912 fi
3913
3914 ac_ext=c
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919
3920 depcc="$CC"   am_compiler_list=
3921
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3923 $as_echo_n "checking dependency style of $depcc... " >&6; }
3924 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3925   $as_echo_n "(cached) " >&6
3926 else
3927   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3928   # We make a subdir and do the tests there.  Otherwise we can end up
3929   # making bogus files that we don't know about and never remove.  For
3930   # instance it was reported that on HP-UX the gcc test will end up
3931   # making a dummy file named `D' -- because `-MD' means `put the output
3932   # in D'.
3933   mkdir conftest.dir
3934   # Copy depcomp to subdir because otherwise we won't find it if we're
3935   # using a relative directory.
3936   cp "$am_depcomp" conftest.dir
3937   cd conftest.dir
3938   # We will build objects and dependencies in a subdirectory because
3939   # it helps to detect inapplicable dependency modes.  For instance
3940   # both Tru64's cc and ICC support -MD to output dependencies as a
3941   # side effect of compilation, but ICC will put the dependencies in
3942   # the current directory while Tru64 will put them in the object
3943   # directory.
3944   mkdir sub
3945
3946   am_cv_CC_dependencies_compiler_type=none
3947   if test "$am_compiler_list" = ""; then
3948      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3949   fi
3950   am__universal=false
3951   case " $depcc " in #(
3952      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3953      esac
3954
3955   for depmode in $am_compiler_list; do
3956     # Setup a source with many dependencies, because some compilers
3957     # like to wrap large dependency lists on column 80 (with \), and
3958     # we should not choose a depcomp mode which is confused by this.
3959     #
3960     # We need to recreate these files for each test, as the compiler may
3961     # overwrite some of them when testing with obscure command lines.
3962     # This happens at least with the AIX C compiler.
3963     : > sub/conftest.c
3964     for i in 1 2 3 4 5 6; do
3965       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3966       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3967       # Solaris 8's {/usr,}/bin/sh.
3968       touch sub/conftst$i.h
3969     done
3970     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3971
3972     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3973     # mode.  It turns out that the SunPro C++ compiler does not properly
3974     # handle `-M -o', and we need to detect this.  Also, some Intel
3975     # versions had trouble with output in subdirs
3976     am__obj=sub/conftest.${OBJEXT-o}
3977     am__minus_obj="-o $am__obj"
3978     case $depmode in
3979     gcc)
3980       # This depmode causes a compiler race in universal mode.
3981       test "$am__universal" = false || continue
3982       ;;
3983     nosideeffect)
3984       # after this tag, mechanisms are not by side-effect, so they'll
3985       # only be used when explicitly requested
3986       if test "x$enable_dependency_tracking" = xyes; then
3987         continue
3988       else
3989         break
3990       fi
3991       ;;
3992     msvisualcpp | msvcmsys)
3993       # This compiler won't grok `-c -o', but also, the minuso test has
3994       # not run yet.  These depmodes are late enough in the game, and
3995       # so weak that their functioning should not be impacted.
3996       am__obj=conftest.${OBJEXT-o}
3997       am__minus_obj=
3998       ;;
3999     none) break ;;
4000     esac
4001     if depmode=$depmode \
4002        source=sub/conftest.c object=$am__obj \
4003        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4004        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4005          >/dev/null 2>conftest.err &&
4006        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4007        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4008        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4009        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4010       # icc doesn't choke on unknown options, it will just issue warnings
4011       # or remarks (even with -Werror).  So we grep stderr for any message
4012       # that says an option was ignored or not supported.
4013       # When given -MP, icc 7.0 and 7.1 complain thusly:
4014       #   icc: Command line warning: ignoring option '-M'; no argument required
4015       # The diagnosis changed in icc 8.0:
4016       #   icc: Command line remark: option '-MP' not supported
4017       if (grep 'ignoring option' conftest.err ||
4018           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4019         am_cv_CC_dependencies_compiler_type=$depmode
4020         break
4021       fi
4022     fi
4023   done
4024
4025   cd ..
4026   rm -rf conftest.dir
4027 else
4028   am_cv_CC_dependencies_compiler_type=none
4029 fi
4030
4031 fi
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4033 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4034 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4035
4036  if
4037   test "x$enable_dependency_tracking" != xno \
4038   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4039   am__fastdepCC_TRUE=
4040   am__fastdepCC_FALSE='#'
4041 else
4042   am__fastdepCC_TRUE='#'
4043   am__fastdepCC_FALSE=
4044 fi
4045
4046
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4048 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4049 if test "${ac_cv_path_SED+set}" = set; then :
4050   $as_echo_n "(cached) " >&6
4051 else
4052             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4053      for ac_i in 1 2 3 4 5 6 7; do
4054        ac_script="$ac_script$as_nl$ac_script"
4055      done
4056      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4057      { ac_script=; unset ac_script;}
4058      if test -z "$SED"; then
4059   ac_path_SED_found=false
4060   # Loop through the user's path and test for each of PROGNAME-LIST
4061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 for as_dir in $PATH
4063 do
4064   IFS=$as_save_IFS
4065   test -z "$as_dir" && as_dir=.
4066     for ac_prog in sed gsed; do
4067     for ac_exec_ext in '' $ac_executable_extensions; do
4068       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4069       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4070 # Check for GNU ac_path_SED and select it if it is found.
4071   # Check for GNU $ac_path_SED
4072 case `"$ac_path_SED" --version 2>&1` in
4073 *GNU*)
4074   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4075 *)
4076   ac_count=0
4077   $as_echo_n 0123456789 >"conftest.in"
4078   while :
4079   do
4080     cat "conftest.in" "conftest.in" >"conftest.tmp"
4081     mv "conftest.tmp" "conftest.in"
4082     cp "conftest.in" "conftest.nl"
4083     $as_echo '' >> "conftest.nl"
4084     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4085     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4086     as_fn_arith $ac_count + 1 && ac_count=$as_val
4087     if test $ac_count -gt ${ac_path_SED_max-0}; then
4088       # Best one so far, save it but keep looking for a better one
4089       ac_cv_path_SED="$ac_path_SED"
4090       ac_path_SED_max=$ac_count
4091     fi
4092     # 10*(2^10) chars as input seems more than enough
4093     test $ac_count -gt 10 && break
4094   done
4095   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4096 esac
4097
4098       $ac_path_SED_found && break 3
4099     done
4100   done
4101   done
4102 IFS=$as_save_IFS
4103   if test -z "$ac_cv_path_SED"; then
4104     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4105   fi
4106 else
4107   ac_cv_path_SED=$SED
4108 fi
4109
4110 fi
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4112 $as_echo "$ac_cv_path_SED" >&6; }
4113  SED="$ac_cv_path_SED"
4114   rm -f conftest.sed
4115
4116 test -z "$SED" && SED=sed
4117 Xsed="$SED -e 1s/^X//"
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4130 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4131 if test "${ac_cv_path_GREP+set}" = set; then :
4132   $as_echo_n "(cached) " >&6
4133 else
4134   if test -z "$GREP"; then
4135   ac_path_GREP_found=false
4136   # Loop through the user's path and test for each of PROGNAME-LIST
4137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4139 do
4140   IFS=$as_save_IFS
4141   test -z "$as_dir" && as_dir=.
4142     for ac_prog in grep ggrep; do
4143     for ac_exec_ext in '' $ac_executable_extensions; do
4144       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4145       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4146 # Check for GNU ac_path_GREP and select it if it is found.
4147   # Check for GNU $ac_path_GREP
4148 case `"$ac_path_GREP" --version 2>&1` in
4149 *GNU*)
4150   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4151 *)
4152   ac_count=0
4153   $as_echo_n 0123456789 >"conftest.in"
4154   while :
4155   do
4156     cat "conftest.in" "conftest.in" >"conftest.tmp"
4157     mv "conftest.tmp" "conftest.in"
4158     cp "conftest.in" "conftest.nl"
4159     $as_echo 'GREP' >> "conftest.nl"
4160     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4161     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4162     as_fn_arith $ac_count + 1 && ac_count=$as_val
4163     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4164       # Best one so far, save it but keep looking for a better one
4165       ac_cv_path_GREP="$ac_path_GREP"
4166       ac_path_GREP_max=$ac_count
4167     fi
4168     # 10*(2^10) chars as input seems more than enough
4169     test $ac_count -gt 10 && break
4170   done
4171   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4172 esac
4173
4174       $ac_path_GREP_found && break 3
4175     done
4176   done
4177   done
4178 IFS=$as_save_IFS
4179   if test -z "$ac_cv_path_GREP"; then
4180     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4181   fi
4182 else
4183   ac_cv_path_GREP=$GREP
4184 fi
4185
4186 fi
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4188 $as_echo "$ac_cv_path_GREP" >&6; }
4189  GREP="$ac_cv_path_GREP"
4190
4191
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4193 $as_echo_n "checking for egrep... " >&6; }
4194 if test "${ac_cv_path_EGREP+set}" = set; then :
4195   $as_echo_n "(cached) " >&6
4196 else
4197   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4198    then ac_cv_path_EGREP="$GREP -E"
4199    else
4200      if test -z "$EGREP"; then
4201   ac_path_EGREP_found=false
4202   # Loop through the user's path and test for each of PROGNAME-LIST
4203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4205 do
4206   IFS=$as_save_IFS
4207   test -z "$as_dir" && as_dir=.
4208     for ac_prog in egrep; do
4209     for ac_exec_ext in '' $ac_executable_extensions; do
4210       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4211       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4212 # Check for GNU ac_path_EGREP and select it if it is found.
4213   # Check for GNU $ac_path_EGREP
4214 case `"$ac_path_EGREP" --version 2>&1` in
4215 *GNU*)
4216   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4217 *)
4218   ac_count=0
4219   $as_echo_n 0123456789 >"conftest.in"
4220   while :
4221   do
4222     cat "conftest.in" "conftest.in" >"conftest.tmp"
4223     mv "conftest.tmp" "conftest.in"
4224     cp "conftest.in" "conftest.nl"
4225     $as_echo 'EGREP' >> "conftest.nl"
4226     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4227     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4228     as_fn_arith $ac_count + 1 && ac_count=$as_val
4229     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4230       # Best one so far, save it but keep looking for a better one
4231       ac_cv_path_EGREP="$ac_path_EGREP"
4232       ac_path_EGREP_max=$ac_count
4233     fi
4234     # 10*(2^10) chars as input seems more than enough
4235     test $ac_count -gt 10 && break
4236   done
4237   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4238 esac
4239
4240       $ac_path_EGREP_found && break 3
4241     done
4242   done
4243   done
4244 IFS=$as_save_IFS
4245   if test -z "$ac_cv_path_EGREP"; then
4246     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4247   fi
4248 else
4249   ac_cv_path_EGREP=$EGREP
4250 fi
4251
4252    fi
4253 fi
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4255 $as_echo "$ac_cv_path_EGREP" >&6; }
4256  EGREP="$ac_cv_path_EGREP"
4257
4258
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4260 $as_echo_n "checking for fgrep... " >&6; }
4261 if test "${ac_cv_path_FGREP+set}" = set; then :
4262   $as_echo_n "(cached) " >&6
4263 else
4264   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4265    then ac_cv_path_FGREP="$GREP -F"
4266    else
4267      if test -z "$FGREP"; then
4268   ac_path_FGREP_found=false
4269   # Loop through the user's path and test for each of PROGNAME-LIST
4270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4272 do
4273   IFS=$as_save_IFS
4274   test -z "$as_dir" && as_dir=.
4275     for ac_prog in fgrep; do
4276     for ac_exec_ext in '' $ac_executable_extensions; do
4277       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4278       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4279 # Check for GNU ac_path_FGREP and select it if it is found.
4280   # Check for GNU $ac_path_FGREP
4281 case `"$ac_path_FGREP" --version 2>&1` in
4282 *GNU*)
4283   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4284 *)
4285   ac_count=0
4286   $as_echo_n 0123456789 >"conftest.in"
4287   while :
4288   do
4289     cat "conftest.in" "conftest.in" >"conftest.tmp"
4290     mv "conftest.tmp" "conftest.in"
4291     cp "conftest.in" "conftest.nl"
4292     $as_echo 'FGREP' >> "conftest.nl"
4293     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4294     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4295     as_fn_arith $ac_count + 1 && ac_count=$as_val
4296     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4297       # Best one so far, save it but keep looking for a better one
4298       ac_cv_path_FGREP="$ac_path_FGREP"
4299       ac_path_FGREP_max=$ac_count
4300     fi
4301     # 10*(2^10) chars as input seems more than enough
4302     test $ac_count -gt 10 && break
4303   done
4304   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4305 esac
4306
4307       $ac_path_FGREP_found && break 3
4308     done
4309   done
4310   done
4311 IFS=$as_save_IFS
4312   if test -z "$ac_cv_path_FGREP"; then
4313     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4314   fi
4315 else
4316   ac_cv_path_FGREP=$FGREP
4317 fi
4318
4319    fi
4320 fi
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4322 $as_echo "$ac_cv_path_FGREP" >&6; }
4323  FGREP="$ac_cv_path_FGREP"
4324
4325
4326 test -z "$GREP" && GREP=grep
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346 # Check whether --with-gnu-ld was given.
4347 if test "${with_gnu_ld+set}" = set; then :
4348   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4349 else
4350   with_gnu_ld=no
4351 fi
4352
4353 ac_prog=ld
4354 if test "$GCC" = yes; then
4355   # Check if gcc -print-prog-name=ld gives a path.
4356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4357 $as_echo_n "checking for ld used by $CC... " >&6; }
4358   case $host in
4359   *-*-mingw*)
4360     # gcc leaves a trailing carriage return which upsets mingw
4361     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4362   *)
4363     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4364   esac
4365   case $ac_prog in
4366     # Accept absolute paths.
4367     [\\/]* | ?:[\\/]*)
4368       re_direlt='/[^/][^/]*/\.\./'
4369       # Canonicalize the pathname of ld
4370       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4371       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4372         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4373       done
4374       test -z "$LD" && LD="$ac_prog"
4375       ;;
4376   "")
4377     # If it fails, then pretend we aren't using GCC.
4378     ac_prog=ld
4379     ;;
4380   *)
4381     # If it is relative, then search for the first ld in PATH.
4382     with_gnu_ld=unknown
4383     ;;
4384   esac
4385 elif test "$with_gnu_ld" = yes; then
4386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4387 $as_echo_n "checking for GNU ld... " >&6; }
4388 else
4389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4390 $as_echo_n "checking for non-GNU ld... " >&6; }
4391 fi
4392 if test "${lt_cv_path_LD+set}" = set; then :
4393   $as_echo_n "(cached) " >&6
4394 else
4395   if test -z "$LD"; then
4396   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4397   for ac_dir in $PATH; do
4398     IFS="$lt_save_ifs"
4399     test -z "$ac_dir" && ac_dir=.
4400     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4401       lt_cv_path_LD="$ac_dir/$ac_prog"
4402       # Check to see if the program is GNU ld.  I'd rather use --version,
4403       # but apparently some variants of GNU ld only accept -v.
4404       # Break only if it was the GNU/non-GNU ld that we prefer.
4405       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4406       *GNU* | *'with BFD'*)
4407         test "$with_gnu_ld" != no && break
4408         ;;
4409       *)
4410         test "$with_gnu_ld" != yes && break
4411         ;;
4412       esac
4413     fi
4414   done
4415   IFS="$lt_save_ifs"
4416 else
4417   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4418 fi
4419 fi
4420
4421 LD="$lt_cv_path_LD"
4422 if test -n "$LD"; then
4423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4424 $as_echo "$LD" >&6; }
4425 else
4426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4428 fi
4429 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4431 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4432 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4433   $as_echo_n "(cached) " >&6
4434 else
4435   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4436 case `$LD -v 2>&1 </dev/null` in
4437 *GNU* | *'with BFD'*)
4438   lt_cv_prog_gnu_ld=yes
4439   ;;
4440 *)
4441   lt_cv_prog_gnu_ld=no
4442   ;;
4443 esac
4444 fi
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4446 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4447 with_gnu_ld=$lt_cv_prog_gnu_ld
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4458 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4459 if test "${lt_cv_path_NM+set}" = set; then :
4460   $as_echo_n "(cached) " >&6
4461 else
4462   if test -n "$NM"; then
4463   # Let the user override the test.
4464   lt_cv_path_NM="$NM"
4465 else
4466   lt_nm_to_check="${ac_tool_prefix}nm"
4467   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4468     lt_nm_to_check="$lt_nm_to_check nm"
4469   fi
4470   for lt_tmp_nm in $lt_nm_to_check; do
4471     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4472     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4473       IFS="$lt_save_ifs"
4474       test -z "$ac_dir" && ac_dir=.
4475       tmp_nm="$ac_dir/$lt_tmp_nm"
4476       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4477         # Check to see if the nm accepts a BSD-compat flag.
4478         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4479         #   nm: unknown option "B" ignored
4480         # Tru64's nm complains that /dev/null is an invalid object file
4481         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4482         */dev/null* | *'Invalid file or object type'*)
4483           lt_cv_path_NM="$tmp_nm -B"
4484           break
4485           ;;
4486         *)
4487           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4488           */dev/null*)
4489             lt_cv_path_NM="$tmp_nm -p"
4490             break
4491             ;;
4492           *)
4493             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4494             continue # so that we can try to find one that supports BSD flags
4495             ;;
4496           esac
4497           ;;
4498         esac
4499       fi
4500     done
4501     IFS="$lt_save_ifs"
4502   done
4503   : ${lt_cv_path_NM=no}
4504 fi
4505 fi
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4507 $as_echo "$lt_cv_path_NM" >&6; }
4508 if test "$lt_cv_path_NM" != "no"; then
4509   NM="$lt_cv_path_NM"
4510 else
4511   # Didn't find any BSD compatible name lister, look for dumpbin.
4512   if test -n "$ac_tool_prefix"; then
4513   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4514   do
4515     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4518 $as_echo_n "checking for $ac_word... " >&6; }
4519 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4520   $as_echo_n "(cached) " >&6
4521 else
4522   if test -n "$DUMPBIN"; then
4523   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4524 else
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4527 do
4528   IFS=$as_save_IFS
4529   test -z "$as_dir" && as_dir=.
4530     for ac_exec_ext in '' $ac_executable_extensions; do
4531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4532     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4534     break 2
4535   fi
4536 done
4537   done
4538 IFS=$as_save_IFS
4539
4540 fi
4541 fi
4542 DUMPBIN=$ac_cv_prog_DUMPBIN
4543 if test -n "$DUMPBIN"; then
4544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4545 $as_echo "$DUMPBIN" >&6; }
4546 else
4547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 $as_echo "no" >&6; }
4549 fi
4550
4551
4552     test -n "$DUMPBIN" && break
4553   done
4554 fi
4555 if test -z "$DUMPBIN"; then
4556   ac_ct_DUMPBIN=$DUMPBIN
4557   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4558 do
4559   # Extract the first word of "$ac_prog", so it can be a program name with args.
4560 set dummy $ac_prog; ac_word=$2
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4562 $as_echo_n "checking for $ac_word... " >&6; }
4563 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4564   $as_echo_n "(cached) " >&6
4565 else
4566   if test -n "$ac_ct_DUMPBIN"; then
4567   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4568 else
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH
4571 do
4572   IFS=$as_save_IFS
4573   test -z "$as_dir" && as_dir=.
4574     for ac_exec_ext in '' $ac_executable_extensions; do
4575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4576     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4578     break 2
4579   fi
4580 done
4581   done
4582 IFS=$as_save_IFS
4583
4584 fi
4585 fi
4586 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4587 if test -n "$ac_ct_DUMPBIN"; then
4588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4589 $as_echo "$ac_ct_DUMPBIN" >&6; }
4590 else
4591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592 $as_echo "no" >&6; }
4593 fi
4594
4595
4596   test -n "$ac_ct_DUMPBIN" && break
4597 done
4598
4599   if test "x$ac_ct_DUMPBIN" = x; then
4600     DUMPBIN=":"
4601   else
4602     case $cross_compiling:$ac_tool_warned in
4603 yes:)
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4606 ac_tool_warned=yes ;;
4607 esac
4608     DUMPBIN=$ac_ct_DUMPBIN
4609   fi
4610 fi
4611
4612
4613   if test "$DUMPBIN" != ":"; then
4614     NM="$DUMPBIN"
4615   fi
4616 fi
4617 test -z "$NM" && NM=nm
4618
4619
4620
4621
4622
4623
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4625 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4626 if test "${lt_cv_nm_interface+set}" = set; then :
4627   $as_echo_n "(cached) " >&6
4628 else
4629   lt_cv_nm_interface="BSD nm"
4630   echo "int some_variable = 0;" > conftest.$ac_ext
4631   (eval echo "\"\$as_me:4631: $ac_compile\"" >&5)
4632   (eval "$ac_compile" 2>conftest.err)
4633   cat conftest.err >&5
4634   (eval echo "\"\$as_me:4634: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4635   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4636   cat conftest.err >&5
4637   (eval echo "\"\$as_me:4637: output\"" >&5)
4638   cat conftest.out >&5
4639   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4640     lt_cv_nm_interface="MS dumpbin"
4641   fi
4642   rm -f conftest*
4643 fi
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4645 $as_echo "$lt_cv_nm_interface" >&6; }
4646
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4648 $as_echo_n "checking whether ln -s works... " >&6; }
4649 LN_S=$as_ln_s
4650 if test "$LN_S" = "ln -s"; then
4651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4652 $as_echo "yes" >&6; }
4653 else
4654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4655 $as_echo "no, using $LN_S" >&6; }
4656 fi
4657
4658 # find the maximum length of command line arguments
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4660 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4661 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4662   $as_echo_n "(cached) " >&6
4663 else
4664     i=0
4665   teststring="ABCD"
4666
4667   case $build_os in
4668   msdosdjgpp*)
4669     # On DJGPP, this test can blow up pretty badly due to problems in libc
4670     # (any single argument exceeding 2000 bytes causes a buffer overrun
4671     # during glob expansion).  Even if it were fixed, the result of this
4672     # check would be larger than it should be.
4673     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4674     ;;
4675
4676   gnu*)
4677     # Under GNU Hurd, this test is not required because there is
4678     # no limit to the length of command line arguments.
4679     # Libtool will interpret -1 as no limit whatsoever
4680     lt_cv_sys_max_cmd_len=-1;
4681     ;;
4682
4683   cygwin* | mingw* | cegcc*)
4684     # On Win9x/ME, this test blows up -- it succeeds, but takes
4685     # about 5 minutes as the teststring grows exponentially.
4686     # Worse, since 9x/ME are not pre-emptively multitasking,
4687     # you end up with a "frozen" computer, even though with patience
4688     # the test eventually succeeds (with a max line length of 256k).
4689     # Instead, let's just punt: use the minimum linelength reported by
4690     # all of the supported platforms: 8192 (on NT/2K/XP).
4691     lt_cv_sys_max_cmd_len=8192;
4692     ;;
4693
4694   amigaos*)
4695     # On AmigaOS with pdksh, this test takes hours, literally.
4696     # So we just punt and use a minimum line length of 8192.
4697     lt_cv_sys_max_cmd_len=8192;
4698     ;;
4699
4700   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4701     # This has been around since 386BSD, at least.  Likely further.
4702     if test -x /sbin/sysctl; then
4703       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4704     elif test -x /usr/sbin/sysctl; then
4705       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4706     else
4707       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4708     fi
4709     # And add a safety zone
4710     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4711     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4712     ;;
4713
4714   interix*)
4715     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4716     lt_cv_sys_max_cmd_len=196608
4717     ;;
4718
4719   osf*)
4720     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4721     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4722     # nice to cause kernel panics so lets avoid the loop below.
4723     # First set a reasonable default.
4724     lt_cv_sys_max_cmd_len=16384
4725     #
4726     if test -x /sbin/sysconfig; then
4727       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4728         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4729       esac
4730     fi
4731     ;;
4732   sco3.2v5*)
4733     lt_cv_sys_max_cmd_len=102400
4734     ;;
4735   sysv5* | sco5v6* | sysv4.2uw2*)
4736     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4737     if test -n "$kargmax"; then
4738       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4739     else
4740       lt_cv_sys_max_cmd_len=32768
4741     fi
4742     ;;
4743   *)
4744     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4745     if test -n "$lt_cv_sys_max_cmd_len"; then
4746       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4747       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4748     else
4749       # Make teststring a little bigger before we do anything with it.
4750       # a 1K string should be a reasonable start.
4751       for i in 1 2 3 4 5 6 7 8 ; do
4752         teststring=$teststring$teststring
4753       done
4754       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4755       # If test is not a shell built-in, we'll probably end up computing a
4756       # maximum length that is only half of the actual maximum length, but
4757       # we can't tell.
4758       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4759                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4760               test $i != 17 # 1/2 MB should be enough
4761       do
4762         i=`expr $i + 1`
4763         teststring=$teststring$teststring
4764       done
4765       # Only check the string length outside the loop.
4766       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4767       teststring=
4768       # Add a significant safety factor because C++ compilers can tack on
4769       # massive amounts of additional arguments before passing them to the
4770       # linker.  It appears as though 1/2 is a usable value.
4771       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4772     fi
4773     ;;
4774   esac
4775
4776 fi
4777
4778 if test -n $lt_cv_sys_max_cmd_len ; then
4779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4780 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4781 else
4782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4783 $as_echo "none" >&6; }
4784 fi
4785 max_cmd_len=$lt_cv_sys_max_cmd_len
4786
4787
4788
4789
4790
4791
4792 : ${CP="cp -f"}
4793 : ${MV="mv -f"}
4794 : ${RM="rm -f"}
4795
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4797 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4798 # Try some XSI features
4799 xsi_shell=no
4800 ( _lt_dummy="a/b/c"
4801   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4802       = c,a/b,, \
4803     && eval 'test $(( 1 + 1 )) -eq 2 \
4804     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4805   && xsi_shell=yes
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4807 $as_echo "$xsi_shell" >&6; }
4808
4809
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4811 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4812 lt_shell_append=no
4813 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4814     >/dev/null 2>&1 \
4815   && lt_shell_append=yes
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4817 $as_echo "$lt_shell_append" >&6; }
4818
4819
4820 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4821   lt_unset=unset
4822 else
4823   lt_unset=false
4824 fi
4825
4826
4827
4828
4829
4830 # test EBCDIC or ASCII
4831 case `echo X|tr X '\101'` in
4832  A) # ASCII based system
4833     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4834   lt_SP2NL='tr \040 \012'
4835   lt_NL2SP='tr \015\012 \040\040'
4836   ;;
4837  *) # EBCDIC based system
4838   lt_SP2NL='tr \100 \n'
4839   lt_NL2SP='tr \r\n \100\100'
4840   ;;
4841 esac
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4852 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4853 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4854   $as_echo_n "(cached) " >&6
4855 else
4856   lt_cv_ld_reload_flag='-r'
4857 fi
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4859 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4860 reload_flag=$lt_cv_ld_reload_flag
4861 case $reload_flag in
4862 "" | " "*) ;;
4863 *) reload_flag=" $reload_flag" ;;
4864 esac
4865 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4866 case $host_os in
4867   darwin*)
4868     if test "$GCC" = yes; then
4869       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4870     else
4871       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4872     fi
4873     ;;
4874 esac
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884 if test -n "$ac_tool_prefix"; then
4885   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4886 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888 $as_echo_n "checking for $ac_word... " >&6; }
4889 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4890   $as_echo_n "(cached) " >&6
4891 else
4892   if test -n "$OBJDUMP"; then
4893   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4894 else
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH
4897 do
4898   IFS=$as_save_IFS
4899   test -z "$as_dir" && as_dir=.
4900     for ac_exec_ext in '' $ac_executable_extensions; do
4901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904     break 2
4905   fi
4906 done
4907   done
4908 IFS=$as_save_IFS
4909
4910 fi
4911 fi
4912 OBJDUMP=$ac_cv_prog_OBJDUMP
4913 if test -n "$OBJDUMP"; then
4914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4915 $as_echo "$OBJDUMP" >&6; }
4916 else
4917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4919 fi
4920
4921
4922 fi
4923 if test -z "$ac_cv_prog_OBJDUMP"; then
4924   ac_ct_OBJDUMP=$OBJDUMP
4925   # Extract the first word of "objdump", so it can be a program name with args.
4926 set dummy objdump; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4930   $as_echo_n "(cached) " >&6
4931 else
4932   if test -n "$ac_ct_OBJDUMP"; then
4933   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4934 else
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4937 do
4938   IFS=$as_save_IFS
4939   test -z "$as_dir" && as_dir=.
4940     for ac_exec_ext in '' $ac_executable_extensions; do
4941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944     break 2
4945   fi
4946 done
4947   done
4948 IFS=$as_save_IFS
4949
4950 fi
4951 fi
4952 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4953 if test -n "$ac_ct_OBJDUMP"; then
4954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4955 $as_echo "$ac_ct_OBJDUMP" >&6; }
4956 else
4957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4959 fi
4960
4961   if test "x$ac_ct_OBJDUMP" = x; then
4962     OBJDUMP="false"
4963   else
4964     case $cross_compiling:$ac_tool_warned in
4965 yes:)
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4968 ac_tool_warned=yes ;;
4969 esac
4970     OBJDUMP=$ac_ct_OBJDUMP
4971   fi
4972 else
4973   OBJDUMP="$ac_cv_prog_OBJDUMP"
4974 fi
4975
4976 test -z "$OBJDUMP" && OBJDUMP=objdump
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4987 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4988 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4989   $as_echo_n "(cached) " >&6
4990 else
4991   lt_cv_file_magic_cmd='$MAGIC_CMD'
4992 lt_cv_file_magic_test_file=
4993 lt_cv_deplibs_check_method='unknown'
4994 # Need to set the preceding variable on all platforms that support
4995 # interlibrary dependencies.
4996 # 'none' -- dependencies not supported.
4997 # `unknown' -- same as none, but documents that we really don't know.
4998 # 'pass_all' -- all dependencies passed with no checks.
4999 # 'test_compile' -- check by making test program.
5000 # 'file_magic [[regex]]' -- check by looking for files in library path
5001 # which responds to the $file_magic_cmd with a given extended regex.
5002 # If you have `file' or equivalent on your system and you're not sure
5003 # whether `pass_all' will *always* work, you probably want this one.
5004
5005 case $host_os in
5006 aix[4-9]*)
5007   lt_cv_deplibs_check_method=pass_all
5008   ;;
5009
5010 beos*)
5011   lt_cv_deplibs_check_method=pass_all
5012   ;;
5013
5014 bsdi[45]*)
5015   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5016   lt_cv_file_magic_cmd='/usr/bin/file -L'
5017   lt_cv_file_magic_test_file=/shlib/libc.so
5018   ;;
5019
5020 cygwin*)
5021   # func_win32_libid is a shell function defined in ltmain.sh
5022   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5023   lt_cv_file_magic_cmd='func_win32_libid'
5024   ;;
5025
5026 mingw* | pw32*)
5027   # Base MSYS/MinGW do not provide the 'file' command needed by
5028   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5029   # unless we find 'file', for example because we are cross-compiling.
5030   if ( file / ) >/dev/null 2>&1; then
5031     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5032     lt_cv_file_magic_cmd='func_win32_libid'
5033   else
5034     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5035     lt_cv_file_magic_cmd='$OBJDUMP -f'
5036   fi
5037   ;;
5038
5039 cegcc)
5040   # use the weaker test based on 'objdump'. See mingw*.
5041   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5042   lt_cv_file_magic_cmd='$OBJDUMP -f'
5043   ;;
5044
5045 darwin* | rhapsody*)
5046   lt_cv_deplibs_check_method=pass_all
5047   ;;
5048
5049 freebsd* | dragonfly*)
5050   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5051     case $host_cpu in
5052     i*86 )
5053       # Not sure whether the presence of OpenBSD here was a mistake.
5054       # Let's accept both of them until this is cleared up.
5055       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5056       lt_cv_file_magic_cmd=/usr/bin/file
5057       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5058       ;;
5059     esac
5060   else
5061     lt_cv_deplibs_check_method=pass_all
5062   fi
5063   ;;
5064
5065 gnu*)
5066   lt_cv_deplibs_check_method=pass_all
5067   ;;
5068
5069 hpux10.20* | hpux11*)
5070   lt_cv_file_magic_cmd=/usr/bin/file
5071   case $host_cpu in
5072   ia64*)
5073     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5074     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5075     ;;
5076   hppa*64*)
5077     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5078     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5079     ;;
5080   *)
5081     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5082     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5083     ;;
5084   esac
5085   ;;
5086
5087 interix[3-9]*)
5088   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5089   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5090   ;;
5091
5092 irix5* | irix6* | nonstopux*)
5093   case $LD in
5094   *-32|*"-32 ") libmagic=32-bit;;
5095   *-n32|*"-n32 ") libmagic=N32;;
5096   *-64|*"-64 ") libmagic=64-bit;;
5097   *) libmagic=never-match;;
5098   esac
5099   lt_cv_deplibs_check_method=pass_all
5100   ;;
5101
5102 # This must be Linux ELF.
5103 linux* | k*bsd*-gnu)
5104   lt_cv_deplibs_check_method=pass_all
5105   ;;
5106
5107 netbsd* | netbsdelf*-gnu)
5108   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5109     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5110   else
5111     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5112   fi
5113   ;;
5114
5115 newos6*)
5116   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5117   lt_cv_file_magic_cmd=/usr/bin/file
5118   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5119   ;;
5120
5121 *nto* | *qnx*)
5122   lt_cv_deplibs_check_method=pass_all
5123   ;;
5124
5125 openbsd*)
5126   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5127     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5128   else
5129     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5130   fi
5131   ;;
5132
5133 osf3* | osf4* | osf5*)
5134   lt_cv_deplibs_check_method=pass_all
5135   ;;
5136
5137 rdos*)
5138   lt_cv_deplibs_check_method=pass_all
5139   ;;
5140
5141 solaris*)
5142   lt_cv_deplibs_check_method=pass_all
5143   ;;
5144
5145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5146   lt_cv_deplibs_check_method=pass_all
5147   ;;
5148
5149 sysv4 | sysv4.3*)
5150   case $host_vendor in
5151   motorola)
5152     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]'
5153     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5154     ;;
5155   ncr)
5156     lt_cv_deplibs_check_method=pass_all
5157     ;;
5158   sequent)
5159     lt_cv_file_magic_cmd='/bin/file'
5160     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5161     ;;
5162   sni)
5163     lt_cv_file_magic_cmd='/bin/file'
5164     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5165     lt_cv_file_magic_test_file=/lib/libc.so
5166     ;;
5167   siemens)
5168     lt_cv_deplibs_check_method=pass_all
5169     ;;
5170   pc)
5171     lt_cv_deplibs_check_method=pass_all
5172     ;;
5173   esac
5174   ;;
5175
5176 tpf*)
5177   lt_cv_deplibs_check_method=pass_all
5178   ;;
5179 esac
5180
5181 fi
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5183 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5184 file_magic_cmd=$lt_cv_file_magic_cmd
5185 deplibs_check_method=$lt_cv_deplibs_check_method
5186 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199 if test -n "$ac_tool_prefix"; then
5200   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5201 set dummy ${ac_tool_prefix}ar; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if test "${ac_cv_prog_AR+set}" = set; then :
5205   $as_echo_n "(cached) " >&6
5206 else
5207   if test -n "$AR"; then
5208   ac_cv_prog_AR="$AR" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213   IFS=$as_save_IFS
5214   test -z "$as_dir" && as_dir=.
5215     for ac_exec_ext in '' $ac_executable_extensions; do
5216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5217     ac_cv_prog_AR="${ac_tool_prefix}ar"
5218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219     break 2
5220   fi
5221 done
5222   done
5223 IFS=$as_save_IFS
5224
5225 fi
5226 fi
5227 AR=$ac_cv_prog_AR
5228 if test -n "$AR"; then
5229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5230 $as_echo "$AR" >&6; }
5231 else
5232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5234 fi
5235
5236
5237 fi
5238 if test -z "$ac_cv_prog_AR"; then
5239   ac_ct_AR=$AR
5240   # Extract the first word of "ar", so it can be a program name with args.
5241 set dummy ar; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5245   $as_echo_n "(cached) " >&6
5246 else
5247   if test -n "$ac_ct_AR"; then
5248   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5249 else
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_exec_ext in '' $ac_executable_extensions; do
5256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5257     ac_cv_prog_ac_ct_AR="ar"
5258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259     break 2
5260   fi
5261 done
5262   done
5263 IFS=$as_save_IFS
5264
5265 fi
5266 fi
5267 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5268 if test -n "$ac_ct_AR"; then
5269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5270 $as_echo "$ac_ct_AR" >&6; }
5271 else
5272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5274 fi
5275
5276   if test "x$ac_ct_AR" = x; then
5277     AR="false"
5278   else
5279     case $cross_compiling:$ac_tool_warned in
5280 yes:)
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5283 ac_tool_warned=yes ;;
5284 esac
5285     AR=$ac_ct_AR
5286   fi
5287 else
5288   AR="$ac_cv_prog_AR"
5289 fi
5290
5291 test -z "$AR" && AR=ar
5292 test -z "$AR_FLAGS" && AR_FLAGS=cru
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304 if test -n "$ac_tool_prefix"; then
5305   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5306 set dummy ${ac_tool_prefix}strip; ac_word=$2
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308 $as_echo_n "checking for $ac_word... " >&6; }
5309 if test "${ac_cv_prog_STRIP+set}" = set; then :
5310   $as_echo_n "(cached) " >&6
5311 else
5312   if test -n "$STRIP"; then
5313   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5314 else
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5317 do
5318   IFS=$as_save_IFS
5319   test -z "$as_dir" && as_dir=.
5320     for ac_exec_ext in '' $ac_executable_extensions; do
5321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324     break 2
5325   fi
5326 done
5327   done
5328 IFS=$as_save_IFS
5329
5330 fi
5331 fi
5332 STRIP=$ac_cv_prog_STRIP
5333 if test -n "$STRIP"; then
5334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5335 $as_echo "$STRIP" >&6; }
5336 else
5337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339 fi
5340
5341
5342 fi
5343 if test -z "$ac_cv_prog_STRIP"; then
5344   ac_ct_STRIP=$STRIP
5345   # Extract the first word of "strip", so it can be a program name with args.
5346 set dummy strip; ac_word=$2
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5350   $as_echo_n "(cached) " >&6
5351 else
5352   if test -n "$ac_ct_STRIP"; then
5353   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5354 else
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358   IFS=$as_save_IFS
5359   test -z "$as_dir" && as_dir=.
5360     for ac_exec_ext in '' $ac_executable_extensions; do
5361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362     ac_cv_prog_ac_ct_STRIP="strip"
5363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364     break 2
5365   fi
5366 done
5367   done
5368 IFS=$as_save_IFS
5369
5370 fi
5371 fi
5372 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5373 if test -n "$ac_ct_STRIP"; then
5374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5375 $as_echo "$ac_ct_STRIP" >&6; }
5376 else
5377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5379 fi
5380
5381   if test "x$ac_ct_STRIP" = x; then
5382     STRIP=":"
5383   else
5384     case $cross_compiling:$ac_tool_warned in
5385 yes:)
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5388 ac_tool_warned=yes ;;
5389 esac
5390     STRIP=$ac_ct_STRIP
5391   fi
5392 else
5393   STRIP="$ac_cv_prog_STRIP"
5394 fi
5395
5396 test -z "$STRIP" && STRIP=:
5397
5398
5399
5400
5401
5402
5403 if test -n "$ac_tool_prefix"; then
5404   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5405 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5407 $as_echo_n "checking for $ac_word... " >&6; }
5408 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5409   $as_echo_n "(cached) " >&6
5410 else
5411   if test -n "$RANLIB"; then
5412   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5413 else
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH
5416 do
5417   IFS=$as_save_IFS
5418   test -z "$as_dir" && as_dir=.
5419     for ac_exec_ext in '' $ac_executable_extensions; do
5420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5421     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423     break 2
5424   fi
5425 done
5426   done
5427 IFS=$as_save_IFS
5428
5429 fi
5430 fi
5431 RANLIB=$ac_cv_prog_RANLIB
5432 if test -n "$RANLIB"; then
5433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5434 $as_echo "$RANLIB" >&6; }
5435 else
5436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 $as_echo "no" >&6; }
5438 fi
5439
5440
5441 fi
5442 if test -z "$ac_cv_prog_RANLIB"; then
5443   ac_ct_RANLIB=$RANLIB
5444   # Extract the first word of "ranlib", so it can be a program name with args.
5445 set dummy ranlib; ac_word=$2
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447 $as_echo_n "checking for $ac_word... " >&6; }
5448 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5449   $as_echo_n "(cached) " >&6
5450 else
5451   if test -n "$ac_ct_RANLIB"; then
5452   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5453 else
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH
5456 do
5457   IFS=$as_save_IFS
5458   test -z "$as_dir" && as_dir=.
5459     for ac_exec_ext in '' $ac_executable_extensions; do
5460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5461     ac_cv_prog_ac_ct_RANLIB="ranlib"
5462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463     break 2
5464   fi
5465 done
5466   done
5467 IFS=$as_save_IFS
5468
5469 fi
5470 fi
5471 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5472 if test -n "$ac_ct_RANLIB"; then
5473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5474 $as_echo "$ac_ct_RANLIB" >&6; }
5475 else
5476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5478 fi
5479
5480   if test "x$ac_ct_RANLIB" = x; then
5481     RANLIB=":"
5482   else
5483     case $cross_compiling:$ac_tool_warned in
5484 yes:)
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5487 ac_tool_warned=yes ;;
5488 esac
5489     RANLIB=$ac_ct_RANLIB
5490   fi
5491 else
5492   RANLIB="$ac_cv_prog_RANLIB"
5493 fi
5494
5495 test -z "$RANLIB" && RANLIB=:
5496
5497
5498
5499
5500
5501
5502 # Determine commands to create old-style static archives.
5503 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5504 old_postinstall_cmds='chmod 644 $oldlib'
5505 old_postuninstall_cmds=
5506
5507 if test -n "$RANLIB"; then
5508   case $host_os in
5509   openbsd*)
5510     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5511     ;;
5512   *)
5513     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5514     ;;
5515   esac
5516   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5517 fi
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552 # If no C compiler was specified, use CC.
5553 LTCC=${LTCC-"$CC"}
5554
5555 # If no C compiler flags were specified, use CFLAGS.
5556 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5557
5558 # Allow CC to be a program name with arguments.
5559 compiler=$CC
5560
5561
5562 # Check for command to grab the raw symbol name followed by C symbol from nm.
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5564 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5565 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5566   $as_echo_n "(cached) " >&6
5567 else
5568
5569 # These are sane defaults that work on at least a few old systems.
5570 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5571
5572 # Character class describing NM global symbol codes.
5573 symcode='[BCDEGRST]'
5574
5575 # Regexp to match symbols that can be accessed directly from C.
5576 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5577
5578 # Define system-specific variables.
5579 case $host_os in
5580 aix*)
5581   symcode='[BCDT]'
5582   ;;
5583 cygwin* | mingw* | pw32* | cegcc*)
5584   symcode='[ABCDGISTW]'
5585   ;;
5586 hpux*)
5587   if test "$host_cpu" = ia64; then
5588     symcode='[ABCDEGRST]'
5589   fi
5590   ;;
5591 irix* | nonstopux*)
5592   symcode='[BCDEGRST]'
5593   ;;
5594 osf*)
5595   symcode='[BCDEGQRST]'
5596   ;;
5597 solaris*)
5598   symcode='[BDRT]'
5599   ;;
5600 sco3.2v5*)
5601   symcode='[DT]'
5602   ;;
5603 sysv4.2uw2*)
5604   symcode='[DT]'
5605   ;;
5606 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5607   symcode='[ABDT]'
5608   ;;
5609 sysv4)
5610   symcode='[DFNSTU]'
5611   ;;
5612 esac
5613
5614 # If we're using GNU nm, then use its standard symbol codes.
5615 case `$NM -V 2>&1` in
5616 *GNU* | *'with BFD'*)
5617   symcode='[ABCDGIRSTW]' ;;
5618 esac
5619
5620 # Transform an extracted symbol line into a proper C declaration.
5621 # Some systems (esp. on ia64) link data and code symbols differently,
5622 # so use this general approach.
5623 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5624
5625 # Transform an extracted symbol line into symbol name and symbol address
5626 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5627 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'"
5628
5629 # Handle CRLF in mingw tool chain
5630 opt_cr=
5631 case $build_os in
5632 mingw*)
5633   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5634   ;;
5635 esac
5636
5637 # Try without a prefix underscore, then with it.
5638 for ac_symprfx in "" "_"; do
5639
5640   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5641   symxfrm="\\1 $ac_symprfx\\2 \\2"
5642
5643   # Write the raw and C identifiers.
5644   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5645     # Fake it for dumpbin and say T for any non-static function
5646     # and D for any global variable.
5647     # Also find C++ and __fastcall symbols from MSVC++,
5648     # which start with @ or ?.
5649     lt_cv_sys_global_symbol_pipe="$AWK '"\
5650 "     {last_section=section; section=\$ 3};"\
5651 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5652 "     \$ 0!~/External *\|/{next};"\
5653 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5654 "     {if(hide[section]) next};"\
5655 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5656 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5657 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5658 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5659 "     ' prfx=^$ac_symprfx"
5660   else
5661     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5662   fi
5663
5664   # Check to see that the pipe works correctly.
5665   pipe_works=no
5666
5667   rm -f conftest*
5668   cat > conftest.$ac_ext <<_LT_EOF
5669 #ifdef __cplusplus
5670 extern "C" {
5671 #endif
5672 char nm_test_var;
5673 void nm_test_func(void);
5674 void nm_test_func(void){}
5675 #ifdef __cplusplus
5676 }
5677 #endif
5678 int main(){nm_test_var='a';nm_test_func();return(0);}
5679 _LT_EOF
5680
5681   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5682   (eval $ac_compile) 2>&5
5683   ac_status=$?
5684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5685   test $ac_status = 0; }; then
5686     # Now try to grab the symbols.
5687     nlist=conftest.nm
5688     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5689   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5690   ac_status=$?
5691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5692   test $ac_status = 0; } && test -s "$nlist"; then
5693       # Try sorting and uniquifying the output.
5694       if sort "$nlist" | uniq > "$nlist"T; then
5695         mv -f "$nlist"T "$nlist"
5696       else
5697         rm -f "$nlist"T
5698       fi
5699
5700       # Make sure that we snagged all the symbols we need.
5701       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5702         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5703           cat <<_LT_EOF > conftest.$ac_ext
5704 #ifdef __cplusplus
5705 extern "C" {
5706 #endif
5707
5708 _LT_EOF
5709           # Now generate the symbol file.
5710           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5711
5712           cat <<_LT_EOF >> conftest.$ac_ext
5713
5714 /* The mapping between symbol names and symbols.  */
5715 const struct {
5716   const char *name;
5717   void       *address;
5718 }
5719 lt__PROGRAM__LTX_preloaded_symbols[] =
5720 {
5721   { "@PROGRAM@", (void *) 0 },
5722 _LT_EOF
5723           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5724           cat <<\_LT_EOF >> conftest.$ac_ext
5725   {0, (void *) 0}
5726 };
5727
5728 /* This works around a problem in FreeBSD linker */
5729 #ifdef FREEBSD_WORKAROUND
5730 static const void *lt_preloaded_setup() {
5731   return lt__PROGRAM__LTX_preloaded_symbols;
5732 }
5733 #endif
5734
5735 #ifdef __cplusplus
5736 }
5737 #endif
5738 _LT_EOF
5739           # Now try linking the two files.
5740           mv conftest.$ac_objext conftstm.$ac_objext
5741           lt_save_LIBS="$LIBS"
5742           lt_save_CFLAGS="$CFLAGS"
5743           LIBS="conftstm.$ac_objext"
5744           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5745           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5746   (eval $ac_link) 2>&5
5747   ac_status=$?
5748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5749   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5750             pipe_works=yes
5751           fi
5752           LIBS="$lt_save_LIBS"
5753           CFLAGS="$lt_save_CFLAGS"
5754         else
5755           echo "cannot find nm_test_func in $nlist" >&5
5756         fi
5757       else
5758         echo "cannot find nm_test_var in $nlist" >&5
5759       fi
5760     else
5761       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5762     fi
5763   else
5764     echo "$progname: failed program was:" >&5
5765     cat conftest.$ac_ext >&5
5766   fi
5767   rm -rf conftest* conftst*
5768
5769   # Do not use the global_symbol_pipe unless it works.
5770   if test "$pipe_works" = yes; then
5771     break
5772   else
5773     lt_cv_sys_global_symbol_pipe=
5774   fi
5775 done
5776
5777 fi
5778
5779 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5780   lt_cv_sys_global_symbol_to_cdecl=
5781 fi
5782 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5784 $as_echo "failed" >&6; }
5785 else
5786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5787 $as_echo "ok" >&6; }
5788 fi
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812 # Check whether --enable-libtool-lock was given.
5813 if test "${enable_libtool_lock+set}" = set; then :
5814   enableval=$enable_libtool_lock;
5815 fi
5816
5817 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5818
5819 # Some flags need to be propagated to the compiler or linker for good
5820 # libtool support.
5821 case $host in
5822 ia64-*-hpux*)
5823   # Find out which ABI we are using.
5824   echo 'int i;' > conftest.$ac_ext
5825   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5826   (eval $ac_compile) 2>&5
5827   ac_status=$?
5828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5829   test $ac_status = 0; }; then
5830     case `/usr/bin/file conftest.$ac_objext` in
5831       *ELF-32*)
5832         HPUX_IA64_MODE="32"
5833         ;;
5834       *ELF-64*)
5835         HPUX_IA64_MODE="64"
5836         ;;
5837     esac
5838   fi
5839   rm -rf conftest*
5840   ;;
5841 *-*-irix6*)
5842   # Find out which ABI we are using.
5843   echo '#line 5843 "configure"' > conftest.$ac_ext
5844   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5845   (eval $ac_compile) 2>&5
5846   ac_status=$?
5847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5848   test $ac_status = 0; }; then
5849     if test "$lt_cv_prog_gnu_ld" = yes; then
5850       case `/usr/bin/file conftest.$ac_objext` in
5851         *32-bit*)
5852           LD="${LD-ld} -melf32bsmip"
5853           ;;
5854         *N32*)
5855           LD="${LD-ld} -melf32bmipn32"
5856           ;;
5857         *64-bit*)
5858           LD="${LD-ld} -melf64bmip"
5859         ;;
5860       esac
5861     else
5862       case `/usr/bin/file conftest.$ac_objext` in
5863         *32-bit*)
5864           LD="${LD-ld} -32"
5865           ;;
5866         *N32*)
5867           LD="${LD-ld} -n32"
5868           ;;
5869         *64-bit*)
5870           LD="${LD-ld} -64"
5871           ;;
5872       esac
5873     fi
5874   fi
5875   rm -rf conftest*
5876   ;;
5877
5878 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5879 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5880   # Find out which ABI we are using.
5881   echo 'int i;' > conftest.$ac_ext
5882   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5883   (eval $ac_compile) 2>&5
5884   ac_status=$?
5885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5886   test $ac_status = 0; }; then
5887     case `/usr/bin/file conftest.o` in
5888       *32-bit*)
5889         case $host in
5890           x86_64-*kfreebsd*-gnu)
5891             LD="${LD-ld} -m elf_i386_fbsd"
5892             ;;
5893           x86_64-*linux*)
5894             LD="${LD-ld} -m elf_i386"
5895             ;;
5896           ppc64-*linux*|powerpc64-*linux*)
5897             LD="${LD-ld} -m elf32ppclinux"
5898             ;;
5899           s390x-*linux*)
5900             LD="${LD-ld} -m elf_s390"
5901             ;;
5902           sparc64-*linux*)
5903             LD="${LD-ld} -m elf32_sparc"
5904             ;;
5905         esac
5906         ;;
5907       *64-bit*)
5908         case $host in
5909           x86_64-*kfreebsd*-gnu)
5910             LD="${LD-ld} -m elf_x86_64_fbsd"
5911             ;;
5912           x86_64-*linux*)
5913             LD="${LD-ld} -m elf_x86_64"
5914             ;;
5915           ppc*-*linux*|powerpc*-*linux*)
5916             LD="${LD-ld} -m elf64ppc"
5917             ;;
5918           s390*-*linux*|s390*-*tpf*)
5919             LD="${LD-ld} -m elf64_s390"
5920             ;;
5921           sparc*-*linux*)
5922             LD="${LD-ld} -m elf64_sparc"
5923             ;;
5924         esac
5925         ;;
5926     esac
5927   fi
5928   rm -rf conftest*
5929   ;;
5930
5931 *-*-sco3.2v5*)
5932   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5933   SAVE_CFLAGS="$CFLAGS"
5934   CFLAGS="$CFLAGS -belf"
5935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5936 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5937 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5938   $as_echo_n "(cached) " >&6
5939 else
5940   ac_ext=c
5941 ac_cpp='$CPP $CPPFLAGS'
5942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5945
5946      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h.  */
5948
5949 int
5950 main ()
5951 {
5952
5953   ;
5954   return 0;
5955 }
5956 _ACEOF
5957 if ac_fn_c_try_link "$LINENO"; then :
5958   lt_cv_cc_needs_belf=yes
5959 else
5960   lt_cv_cc_needs_belf=no
5961 fi
5962 rm -f core conftest.err conftest.$ac_objext \
5963     conftest$ac_exeext conftest.$ac_ext
5964      ac_ext=c
5965 ac_cpp='$CPP $CPPFLAGS'
5966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5969
5970 fi
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5972 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5973   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5974     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5975     CFLAGS="$SAVE_CFLAGS"
5976   fi
5977   ;;
5978 sparc*-*solaris*)
5979   # Find out which ABI we are using.
5980   echo 'int i;' > conftest.$ac_ext
5981   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5982   (eval $ac_compile) 2>&5
5983   ac_status=$?
5984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5985   test $ac_status = 0; }; then
5986     case `/usr/bin/file conftest.o` in
5987     *64-bit*)
5988       case $lt_cv_prog_gnu_ld in
5989       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5990       *)
5991         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5992           LD="${LD-ld} -64"
5993         fi
5994         ;;
5995       esac
5996       ;;
5997     esac
5998   fi
5999   rm -rf conftest*
6000   ;;
6001 esac
6002
6003 need_locks="$enable_libtool_lock"
6004
6005
6006   case $host_os in
6007     rhapsody* | darwin*)
6008     if test -n "$ac_tool_prefix"; then
6009   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6010 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012 $as_echo_n "checking for $ac_word... " >&6; }
6013 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6014   $as_echo_n "(cached) " >&6
6015 else
6016   if test -n "$DSYMUTIL"; then
6017   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6018 else
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 for as_dir in $PATH
6021 do
6022   IFS=$as_save_IFS
6023   test -z "$as_dir" && as_dir=.
6024     for ac_exec_ext in '' $ac_executable_extensions; do
6025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6026     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6028     break 2
6029   fi
6030 done
6031   done
6032 IFS=$as_save_IFS
6033
6034 fi
6035 fi
6036 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6037 if test -n "$DSYMUTIL"; then
6038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6039 $as_echo "$DSYMUTIL" >&6; }
6040 else
6041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042 $as_echo "no" >&6; }
6043 fi
6044
6045
6046 fi
6047 if test -z "$ac_cv_prog_DSYMUTIL"; then
6048   ac_ct_DSYMUTIL=$DSYMUTIL
6049   # Extract the first word of "dsymutil", so it can be a program name with args.
6050 set dummy dsymutil; ac_word=$2
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6054   $as_echo_n "(cached) " >&6
6055 else
6056   if test -n "$ac_ct_DSYMUTIL"; then
6057   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062   IFS=$as_save_IFS
6063   test -z "$as_dir" && as_dir=.
6064     for ac_exec_ext in '' $ac_executable_extensions; do
6065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068     break 2
6069   fi
6070 done
6071   done
6072 IFS=$as_save_IFS
6073
6074 fi
6075 fi
6076 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6077 if test -n "$ac_ct_DSYMUTIL"; then
6078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6079 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6080 else
6081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6083 fi
6084
6085   if test "x$ac_ct_DSYMUTIL" = x; then
6086     DSYMUTIL=":"
6087   else
6088     case $cross_compiling:$ac_tool_warned in
6089 yes:)
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6092 ac_tool_warned=yes ;;
6093 esac
6094     DSYMUTIL=$ac_ct_DSYMUTIL
6095   fi
6096 else
6097   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6098 fi
6099
6100     if test -n "$ac_tool_prefix"; then
6101   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6102 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6104 $as_echo_n "checking for $ac_word... " >&6; }
6105 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6106   $as_echo_n "(cached) " >&6
6107 else
6108   if test -n "$NMEDIT"; then
6109   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6110 else
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6113 do
6114   IFS=$as_save_IFS
6115   test -z "$as_dir" && as_dir=.
6116     for ac_exec_ext in '' $ac_executable_extensions; do
6117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6118     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6120     break 2
6121   fi
6122 done
6123   done
6124 IFS=$as_save_IFS
6125
6126 fi
6127 fi
6128 NMEDIT=$ac_cv_prog_NMEDIT
6129 if test -n "$NMEDIT"; then
6130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6131 $as_echo "$NMEDIT" >&6; }
6132 else
6133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134 $as_echo "no" >&6; }
6135 fi
6136
6137
6138 fi
6139 if test -z "$ac_cv_prog_NMEDIT"; then
6140   ac_ct_NMEDIT=$NMEDIT
6141   # Extract the first word of "nmedit", so it can be a program name with args.
6142 set dummy nmedit; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6146   $as_echo_n "(cached) " >&6
6147 else
6148   if test -n "$ac_ct_NMEDIT"; then
6149   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6153 do
6154   IFS=$as_save_IFS
6155   test -z "$as_dir" && as_dir=.
6156     for ac_exec_ext in '' $ac_executable_extensions; do
6157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160     break 2
6161   fi
6162 done
6163   done
6164 IFS=$as_save_IFS
6165
6166 fi
6167 fi
6168 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6169 if test -n "$ac_ct_NMEDIT"; then
6170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6171 $as_echo "$ac_ct_NMEDIT" >&6; }
6172 else
6173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6175 fi
6176
6177   if test "x$ac_ct_NMEDIT" = x; then
6178     NMEDIT=":"
6179   else
6180     case $cross_compiling:$ac_tool_warned in
6181 yes:)
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6184 ac_tool_warned=yes ;;
6185 esac
6186     NMEDIT=$ac_ct_NMEDIT
6187   fi
6188 else
6189   NMEDIT="$ac_cv_prog_NMEDIT"
6190 fi
6191
6192     if test -n "$ac_tool_prefix"; then
6193   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6194 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196 $as_echo_n "checking for $ac_word... " >&6; }
6197 if test "${ac_cv_prog_LIPO+set}" = set; then :
6198   $as_echo_n "(cached) " >&6
6199 else
6200   if test -n "$LIPO"; then
6201   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6202 else
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH
6205 do
6206   IFS=$as_save_IFS
6207   test -z "$as_dir" && as_dir=.
6208     for ac_exec_ext in '' $ac_executable_extensions; do
6209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6210     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212     break 2
6213   fi
6214 done
6215   done
6216 IFS=$as_save_IFS
6217
6218 fi
6219 fi
6220 LIPO=$ac_cv_prog_LIPO
6221 if test -n "$LIPO"; then
6222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6223 $as_echo "$LIPO" >&6; }
6224 else
6225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 $as_echo "no" >&6; }
6227 fi
6228
6229
6230 fi
6231 if test -z "$ac_cv_prog_LIPO"; then
6232   ac_ct_LIPO=$LIPO
6233   # Extract the first word of "lipo", so it can be a program name with args.
6234 set dummy lipo; ac_word=$2
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6236 $as_echo_n "checking for $ac_word... " >&6; }
6237 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6238   $as_echo_n "(cached) " >&6
6239 else
6240   if test -n "$ac_ct_LIPO"; then
6241   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6242 else
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6245 do
6246   IFS=$as_save_IFS
6247   test -z "$as_dir" && as_dir=.
6248     for ac_exec_ext in '' $ac_executable_extensions; do
6249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6250     ac_cv_prog_ac_ct_LIPO="lipo"
6251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6252     break 2
6253   fi
6254 done
6255   done
6256 IFS=$as_save_IFS
6257
6258 fi
6259 fi
6260 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6261 if test -n "$ac_ct_LIPO"; then
6262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6263 $as_echo "$ac_ct_LIPO" >&6; }
6264 else
6265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266 $as_echo "no" >&6; }
6267 fi
6268
6269   if test "x$ac_ct_LIPO" = x; then
6270     LIPO=":"
6271   else
6272     case $cross_compiling:$ac_tool_warned in
6273 yes:)
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6276 ac_tool_warned=yes ;;
6277 esac
6278     LIPO=$ac_ct_LIPO
6279   fi
6280 else
6281   LIPO="$ac_cv_prog_LIPO"
6282 fi
6283
6284     if test -n "$ac_tool_prefix"; then
6285   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6286 set dummy ${ac_tool_prefix}otool; ac_word=$2
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6290   $as_echo_n "(cached) " >&6
6291 else
6292   if test -n "$OTOOL"; then
6293   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298   IFS=$as_save_IFS
6299   test -z "$as_dir" && as_dir=.
6300     for ac_exec_ext in '' $ac_executable_extensions; do
6301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304     break 2
6305   fi
6306 done
6307   done
6308 IFS=$as_save_IFS
6309
6310 fi
6311 fi
6312 OTOOL=$ac_cv_prog_OTOOL
6313 if test -n "$OTOOL"; then
6314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6315 $as_echo "$OTOOL" >&6; }
6316 else
6317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6319 fi
6320
6321
6322 fi
6323 if test -z "$ac_cv_prog_OTOOL"; then
6324   ac_ct_OTOOL=$OTOOL
6325   # Extract the first word of "otool", so it can be a program name with args.
6326 set dummy otool; ac_word=$2
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6330   $as_echo_n "(cached) " >&6
6331 else
6332   if test -n "$ac_ct_OTOOL"; then
6333   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6334 else
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH
6337 do
6338   IFS=$as_save_IFS
6339   test -z "$as_dir" && as_dir=.
6340     for ac_exec_ext in '' $ac_executable_extensions; do
6341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6342     ac_cv_prog_ac_ct_OTOOL="otool"
6343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344     break 2
6345   fi
6346 done
6347   done
6348 IFS=$as_save_IFS
6349
6350 fi
6351 fi
6352 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6353 if test -n "$ac_ct_OTOOL"; then
6354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6355 $as_echo "$ac_ct_OTOOL" >&6; }
6356 else
6357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358 $as_echo "no" >&6; }
6359 fi
6360
6361   if test "x$ac_ct_OTOOL" = x; then
6362     OTOOL=":"
6363   else
6364     case $cross_compiling:$ac_tool_warned in
6365 yes:)
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368 ac_tool_warned=yes ;;
6369 esac
6370     OTOOL=$ac_ct_OTOOL
6371   fi
6372 else
6373   OTOOL="$ac_cv_prog_OTOOL"
6374 fi
6375
6376     if test -n "$ac_tool_prefix"; then
6377   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6378 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6382   $as_echo_n "(cached) " >&6
6383 else
6384   if test -n "$OTOOL64"; then
6385   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
6390   IFS=$as_save_IFS
6391   test -z "$as_dir" && as_dir=.
6392     for ac_exec_ext in '' $ac_executable_extensions; do
6393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396     break 2
6397   fi
6398 done
6399   done
6400 IFS=$as_save_IFS
6401
6402 fi
6403 fi
6404 OTOOL64=$ac_cv_prog_OTOOL64
6405 if test -n "$OTOOL64"; then
6406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6407 $as_echo "$OTOOL64" >&6; }
6408 else
6409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6411 fi
6412
6413
6414 fi
6415 if test -z "$ac_cv_prog_OTOOL64"; then
6416   ac_ct_OTOOL64=$OTOOL64
6417   # Extract the first word of "otool64", so it can be a program name with args.
6418 set dummy otool64; ac_word=$2
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6422   $as_echo_n "(cached) " >&6
6423 else
6424   if test -n "$ac_ct_OTOOL64"; then
6425   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6426 else
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6429 do
6430   IFS=$as_save_IFS
6431   test -z "$as_dir" && as_dir=.
6432     for ac_exec_ext in '' $ac_executable_extensions; do
6433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434     ac_cv_prog_ac_ct_OTOOL64="otool64"
6435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436     break 2
6437   fi
6438 done
6439   done
6440 IFS=$as_save_IFS
6441
6442 fi
6443 fi
6444 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6445 if test -n "$ac_ct_OTOOL64"; then
6446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6447 $as_echo "$ac_ct_OTOOL64" >&6; }
6448 else
6449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 $as_echo "no" >&6; }
6451 fi
6452
6453   if test "x$ac_ct_OTOOL64" = x; then
6454     OTOOL64=":"
6455   else
6456     case $cross_compiling:$ac_tool_warned in
6457 yes:)
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460 ac_tool_warned=yes ;;
6461 esac
6462     OTOOL64=$ac_ct_OTOOL64
6463   fi
6464 else
6465   OTOOL64="$ac_cv_prog_OTOOL64"
6466 fi
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6495 $as_echo_n "checking for -single_module linker flag... " >&6; }
6496 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6497   $as_echo_n "(cached) " >&6
6498 else
6499   lt_cv_apple_cc_single_mod=no
6500       if test -z "${LT_MULTI_MODULE}"; then
6501         # By default we will add the -single_module flag. You can override
6502         # by either setting the environment variable LT_MULTI_MODULE
6503         # non-empty at configure time, or by adding -multi_module to the
6504         # link flags.
6505         rm -rf libconftest.dylib*
6506         echo "int foo(void){return 1;}" > conftest.c
6507         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6508 -dynamiclib -Wl,-single_module conftest.c" >&5
6509         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6510           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6511         _lt_result=$?
6512         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6513           lt_cv_apple_cc_single_mod=yes
6514         else
6515           cat conftest.err >&5
6516         fi
6517         rm -rf libconftest.dylib*
6518         rm -f conftest.*
6519       fi
6520 fi
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6522 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6524 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6525 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6526   $as_echo_n "(cached) " >&6
6527 else
6528   lt_cv_ld_exported_symbols_list=no
6529       save_LDFLAGS=$LDFLAGS
6530       echo "_main" > conftest.sym
6531       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6532       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533 /* end confdefs.h.  */
6534
6535 int
6536 main ()
6537 {
6538
6539   ;
6540   return 0;
6541 }
6542 _ACEOF
6543 if ac_fn_c_try_link "$LINENO"; then :
6544   lt_cv_ld_exported_symbols_list=yes
6545 else
6546   lt_cv_ld_exported_symbols_list=no
6547 fi
6548 rm -f core conftest.err conftest.$ac_objext \
6549     conftest$ac_exeext conftest.$ac_ext
6550         LDFLAGS="$save_LDFLAGS"
6551
6552 fi
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6554 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6555     case $host_os in
6556     rhapsody* | darwin1.[012])
6557       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6558     darwin1.*)
6559       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6560     darwin*) # darwin 5.x on
6561       # if running on 10.5 or later, the deployment target defaults
6562       # to the OS version, if on x86, and 10.4, the deployment
6563       # target defaults to 10.4. Don't you love it?
6564       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6565         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6566           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6567         10.[012]*)
6568           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6569         10.*)
6570           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6571       esac
6572     ;;
6573   esac
6574     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6575       _lt_dar_single_mod='$single_module'
6576     fi
6577     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6578       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6579     else
6580       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6581     fi
6582     if test "$DSYMUTIL" != ":"; then
6583       _lt_dsymutil='~$DSYMUTIL $lib || :'
6584     else
6585       _lt_dsymutil=
6586     fi
6587     ;;
6588   esac
6589
6590 ac_ext=c
6591 ac_cpp='$CPP $CPPFLAGS'
6592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6596 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6597 # On Suns, sometimes $CPP names a directory.
6598 if test -n "$CPP" && test -d "$CPP"; then
6599   CPP=
6600 fi
6601 if test -z "$CPP"; then
6602   if test "${ac_cv_prog_CPP+set}" = set; then :
6603   $as_echo_n "(cached) " >&6
6604 else
6605       # Double quotes because CPP needs to be expanded
6606     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6607     do
6608       ac_preproc_ok=false
6609 for ac_c_preproc_warn_flag in '' yes
6610 do
6611   # Use a header file that comes with gcc, so configuring glibc
6612   # with a fresh cross-compiler works.
6613   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6614   # <limits.h> exists even on freestanding compilers.
6615   # On the NeXT, cc -E runs the code through the compiler's parser,
6616   # not just through cpp. "Syntax error" is here to catch this case.
6617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h.  */
6619 #ifdef __STDC__
6620 # include <limits.h>
6621 #else
6622 # include <assert.h>
6623 #endif
6624                      Syntax error
6625 _ACEOF
6626 if ac_fn_c_try_cpp "$LINENO"; then :
6627
6628 else
6629   # Broken: fails on valid input.
6630 continue
6631 fi
6632 rm -f conftest.err conftest.$ac_ext
6633
6634   # OK, works on sane cases.  Now check whether nonexistent headers
6635   # can be detected and how.
6636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h.  */
6638 #include <ac_nonexistent.h>
6639 _ACEOF
6640 if ac_fn_c_try_cpp "$LINENO"; then :
6641   # Broken: success on invalid input.
6642 continue
6643 else
6644   # Passes both tests.
6645 ac_preproc_ok=:
6646 break
6647 fi
6648 rm -f conftest.err conftest.$ac_ext
6649
6650 done
6651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6652 rm -f conftest.err conftest.$ac_ext
6653 if $ac_preproc_ok; then :
6654   break
6655 fi
6656
6657     done
6658     ac_cv_prog_CPP=$CPP
6659
6660 fi
6661   CPP=$ac_cv_prog_CPP
6662 else
6663   ac_cv_prog_CPP=$CPP
6664 fi
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6666 $as_echo "$CPP" >&6; }
6667 ac_preproc_ok=false
6668 for ac_c_preproc_warn_flag in '' yes
6669 do
6670   # Use a header file that comes with gcc, so configuring glibc
6671   # with a fresh cross-compiler works.
6672   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6673   # <limits.h> exists even on freestanding compilers.
6674   # On the NeXT, cc -E runs the code through the compiler's parser,
6675   # not just through cpp. "Syntax error" is here to catch this case.
6676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677 /* end confdefs.h.  */
6678 #ifdef __STDC__
6679 # include <limits.h>
6680 #else
6681 # include <assert.h>
6682 #endif
6683                      Syntax error
6684 _ACEOF
6685 if ac_fn_c_try_cpp "$LINENO"; then :
6686
6687 else
6688   # Broken: fails on valid input.
6689 continue
6690 fi
6691 rm -f conftest.err conftest.$ac_ext
6692
6693   # OK, works on sane cases.  Now check whether nonexistent headers
6694   # can be detected and how.
6695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h.  */
6697 #include <ac_nonexistent.h>
6698 _ACEOF
6699 if ac_fn_c_try_cpp "$LINENO"; then :
6700   # Broken: success on invalid input.
6701 continue
6702 else
6703   # Passes both tests.
6704 ac_preproc_ok=:
6705 break
6706 fi
6707 rm -f conftest.err conftest.$ac_ext
6708
6709 done
6710 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6711 rm -f conftest.err conftest.$ac_ext
6712 if $ac_preproc_ok; then :
6713
6714 else
6715   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6717 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6718 See \`config.log' for more details." "$LINENO" 5; }
6719 fi
6720
6721 ac_ext=c
6722 ac_cpp='$CPP $CPPFLAGS'
6723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6726
6727
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6729 $as_echo_n "checking for ANSI C header files... " >&6; }
6730 if test "${ac_cv_header_stdc+set}" = set; then :
6731   $as_echo_n "(cached) " >&6
6732 else
6733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h.  */
6735 #include <stdlib.h>
6736 #include <stdarg.h>
6737 #include <string.h>
6738 #include <float.h>
6739
6740 int
6741 main ()
6742 {
6743
6744   ;
6745   return 0;
6746 }
6747 _ACEOF
6748 if ac_fn_c_try_compile "$LINENO"; then :
6749   ac_cv_header_stdc=yes
6750 else
6751   ac_cv_header_stdc=no
6752 fi
6753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6754
6755 if test $ac_cv_header_stdc = yes; then
6756   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h.  */
6759 #include <string.h>
6760
6761 _ACEOF
6762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6763   $EGREP "memchr" >/dev/null 2>&1; then :
6764
6765 else
6766   ac_cv_header_stdc=no
6767 fi
6768 rm -f conftest*
6769
6770 fi
6771
6772 if test $ac_cv_header_stdc = yes; then
6773   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775 /* end confdefs.h.  */
6776 #include <stdlib.h>
6777
6778 _ACEOF
6779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6780   $EGREP "free" >/dev/null 2>&1; then :
6781
6782 else
6783   ac_cv_header_stdc=no
6784 fi
6785 rm -f conftest*
6786
6787 fi
6788
6789 if test $ac_cv_header_stdc = yes; then
6790   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6791   if test "$cross_compiling" = yes; then :
6792   :
6793 else
6794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h.  */
6796 #include <ctype.h>
6797 #include <stdlib.h>
6798 #if ((' ' & 0x0FF) == 0x020)
6799 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6800 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6801 #else
6802 # define ISLOWER(c) \
6803                    (('a' <= (c) && (c) <= 'i') \
6804                      || ('j' <= (c) && (c) <= 'r') \
6805                      || ('s' <= (c) && (c) <= 'z'))
6806 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6807 #endif
6808
6809 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6810 int
6811 main ()
6812 {
6813   int i;
6814   for (i = 0; i < 256; i++)
6815     if (XOR (islower (i), ISLOWER (i))
6816         || toupper (i) != TOUPPER (i))
6817       return 2;
6818   return 0;
6819 }
6820 _ACEOF
6821 if ac_fn_c_try_run "$LINENO"; then :
6822
6823 else
6824   ac_cv_header_stdc=no
6825 fi
6826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6827   conftest.$ac_objext conftest.beam conftest.$ac_ext
6828 fi
6829
6830 fi
6831 fi
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6833 $as_echo "$ac_cv_header_stdc" >&6; }
6834 if test $ac_cv_header_stdc = yes; then
6835
6836 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6837
6838 fi
6839
6840 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6841 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6842                   inttypes.h stdint.h unistd.h
6843 do :
6844   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6845 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6846 "
6847 eval as_val=\$$as_ac_Header
6848    if test "x$as_val" = x""yes; then :
6849   cat >>confdefs.h <<_ACEOF
6850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6851 _ACEOF
6852
6853 fi
6854
6855 done
6856
6857
6858 for ac_header in dlfcn.h
6859 do :
6860   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6861 "
6862 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6863   cat >>confdefs.h <<_ACEOF
6864 #define HAVE_DLFCN_H 1
6865 _ACEOF
6866
6867 fi
6868
6869 done
6870
6871
6872
6873 # Set options
6874
6875
6876
6877         enable_dlopen=no
6878
6879
6880   enable_win32_dll=no
6881
6882
6883             # Check whether --enable-shared was given.
6884 if test "${enable_shared+set}" = set; then :
6885   enableval=$enable_shared; p=${PACKAGE-default}
6886     case $enableval in
6887     yes) enable_shared=yes ;;
6888     no) enable_shared=no ;;
6889     *)
6890       enable_shared=no
6891       # Look at the argument we got.  We use all the common list separators.
6892       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6893       for pkg in $enableval; do
6894         IFS="$lt_save_ifs"
6895         if test "X$pkg" = "X$p"; then
6896           enable_shared=yes
6897         fi
6898       done
6899       IFS="$lt_save_ifs"
6900       ;;
6901     esac
6902 else
6903   enable_shared=yes
6904 fi
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914   # Check whether --enable-static was given.
6915 if test "${enable_static+set}" = set; then :
6916   enableval=$enable_static; p=${PACKAGE-default}
6917     case $enableval in
6918     yes) enable_static=yes ;;
6919     no) enable_static=no ;;
6920     *)
6921      enable_static=no
6922       # Look at the argument we got.  We use all the common list separators.
6923       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6924       for pkg in $enableval; do
6925         IFS="$lt_save_ifs"
6926         if test "X$pkg" = "X$p"; then
6927           enable_static=yes
6928         fi
6929       done
6930       IFS="$lt_save_ifs"
6931       ;;
6932     esac
6933 else
6934   enable_static=yes
6935 fi
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946 # Check whether --with-pic was given.
6947 if test "${with_pic+set}" = set; then :
6948   withval=$with_pic; pic_mode="$withval"
6949 else
6950   pic_mode=default
6951 fi
6952
6953
6954 test -z "$pic_mode" && pic_mode=default
6955
6956
6957
6958
6959
6960
6961
6962   # Check whether --enable-fast-install was given.
6963 if test "${enable_fast_install+set}" = set; then :
6964   enableval=$enable_fast_install; p=${PACKAGE-default}
6965     case $enableval in
6966     yes) enable_fast_install=yes ;;
6967     no) enable_fast_install=no ;;
6968     *)
6969       enable_fast_install=no
6970       # Look at the argument we got.  We use all the common list separators.
6971       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6972       for pkg in $enableval; do
6973         IFS="$lt_save_ifs"
6974         if test "X$pkg" = "X$p"; then
6975           enable_fast_install=yes
6976         fi
6977       done
6978       IFS="$lt_save_ifs"
6979       ;;
6980     esac
6981 else
6982   enable_fast_install=yes
6983 fi
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995 # This can be used to rebuild libtool when needed
6996 LIBTOOL_DEPS="$ltmain"
6997
6998 # Always use our own libtool.
6999 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025 test -z "$LN_S" && LN_S="ln -s"
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040 if test -n "${ZSH_VERSION+set}" ; then
7041    setopt NO_GLOB_SUBST
7042 fi
7043
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7045 $as_echo_n "checking for objdir... " >&6; }
7046 if test "${lt_cv_objdir+set}" = set; then :
7047   $as_echo_n "(cached) " >&6
7048 else
7049   rm -f .libs 2>/dev/null
7050 mkdir .libs 2>/dev/null
7051 if test -d .libs; then
7052   lt_cv_objdir=.libs
7053 else
7054   # MS-DOS does not allow filenames that begin with a dot.
7055   lt_cv_objdir=_libs
7056 fi
7057 rmdir .libs 2>/dev/null
7058 fi
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7060 $as_echo "$lt_cv_objdir" >&6; }
7061 objdir=$lt_cv_objdir
7062
7063
7064
7065
7066
7067 cat >>confdefs.h <<_ACEOF
7068 #define LT_OBJDIR "$lt_cv_objdir/"
7069 _ACEOF
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087 case $host_os in
7088 aix3*)
7089   # AIX sometimes has problems with the GCC collect2 program.  For some
7090   # reason, if we set the COLLECT_NAMES environment variable, the problems
7091   # vanish in a puff of smoke.
7092   if test "X${COLLECT_NAMES+set}" != Xset; then
7093     COLLECT_NAMES=
7094     export COLLECT_NAMES
7095   fi
7096   ;;
7097 esac
7098
7099 # Sed substitution that helps us do robust quoting.  It backslashifies
7100 # metacharacters that are still active within double-quoted strings.
7101 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7102
7103 # Same as above, but do not quote variable references.
7104 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7105
7106 # Sed substitution to delay expansion of an escaped shell variable in a
7107 # double_quote_subst'ed string.
7108 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7109
7110 # Sed substitution to delay expansion of an escaped single quote.
7111 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7112
7113 # Sed substitution to avoid accidental globbing in evaled expressions
7114 no_glob_subst='s/\*/\\\*/g'
7115
7116 # Global variables:
7117 ofile=libtool
7118 can_build_shared=yes
7119
7120 # All known linkers require a `.a' archive for static linking (except MSVC,
7121 # which needs '.lib').
7122 libext=a
7123
7124 with_gnu_ld="$lt_cv_prog_gnu_ld"
7125
7126 old_CC="$CC"
7127 old_CFLAGS="$CFLAGS"
7128
7129 # Set sane defaults for various variables
7130 test -z "$CC" && CC=cc
7131 test -z "$LTCC" && LTCC=$CC
7132 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7133 test -z "$LD" && LD=ld
7134 test -z "$ac_objext" && ac_objext=o
7135
7136 for cc_temp in $compiler""; do
7137   case $cc_temp in
7138     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7139     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7140     \-*) ;;
7141     *) break;;
7142   esac
7143 done
7144 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7145
7146
7147 # Only perform the check for file, if the check method requires it
7148 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7149 case $deplibs_check_method in
7150 file_magic*)
7151   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7152     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7153 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7154 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7155   $as_echo_n "(cached) " >&6
7156 else
7157   case $MAGIC_CMD in
7158 [\\/*] |  ?:[\\/]*)
7159   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7160   ;;
7161 *)
7162   lt_save_MAGIC_CMD="$MAGIC_CMD"
7163   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7164   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7165   for ac_dir in $ac_dummy; do
7166     IFS="$lt_save_ifs"
7167     test -z "$ac_dir" && ac_dir=.
7168     if test -f $ac_dir/${ac_tool_prefix}file; then
7169       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7170       if test -n "$file_magic_test_file"; then
7171         case $deplibs_check_method in
7172         "file_magic "*)
7173           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7174           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7175           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7176             $EGREP "$file_magic_regex" > /dev/null; then
7177             :
7178           else
7179             cat <<_LT_EOF 1>&2
7180
7181 *** Warning: the command libtool uses to detect shared libraries,
7182 *** $file_magic_cmd, produces output that libtool cannot recognize.
7183 *** The result is that libtool may fail to recognize shared libraries
7184 *** as such.  This will affect the creation of libtool libraries that
7185 *** depend on shared libraries, but programs linked with such libtool
7186 *** libraries will work regardless of this problem.  Nevertheless, you
7187 *** may want to report the problem to your system manager and/or to
7188 *** bug-libtool@gnu.org
7189
7190 _LT_EOF
7191           fi ;;
7192         esac
7193       fi
7194       break
7195     fi
7196   done
7197   IFS="$lt_save_ifs"
7198   MAGIC_CMD="$lt_save_MAGIC_CMD"
7199   ;;
7200 esac
7201 fi
7202
7203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7204 if test -n "$MAGIC_CMD"; then
7205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7206 $as_echo "$MAGIC_CMD" >&6; }
7207 else
7208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209 $as_echo "no" >&6; }
7210 fi
7211
7212
7213
7214
7215
7216 if test -z "$lt_cv_path_MAGIC_CMD"; then
7217   if test -n "$ac_tool_prefix"; then
7218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7219 $as_echo_n "checking for file... " >&6; }
7220 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7221   $as_echo_n "(cached) " >&6
7222 else
7223   case $MAGIC_CMD in
7224 [\\/*] |  ?:[\\/]*)
7225   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7226   ;;
7227 *)
7228   lt_save_MAGIC_CMD="$MAGIC_CMD"
7229   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7230   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7231   for ac_dir in $ac_dummy; do
7232     IFS="$lt_save_ifs"
7233     test -z "$ac_dir" && ac_dir=.
7234     if test -f $ac_dir/file; then
7235       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7236       if test -n "$file_magic_test_file"; then
7237         case $deplibs_check_method in
7238         "file_magic "*)
7239           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7240           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7241           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7242             $EGREP "$file_magic_regex" > /dev/null; then
7243             :
7244           else
7245             cat <<_LT_EOF 1>&2
7246
7247 *** Warning: the command libtool uses to detect shared libraries,
7248 *** $file_magic_cmd, produces output that libtool cannot recognize.
7249 *** The result is that libtool may fail to recognize shared libraries
7250 *** as such.  This will affect the creation of libtool libraries that
7251 *** depend on shared libraries, but programs linked with such libtool
7252 *** libraries will work regardless of this problem.  Nevertheless, you
7253 *** may want to report the problem to your system manager and/or to
7254 *** bug-libtool@gnu.org
7255
7256 _LT_EOF
7257           fi ;;
7258         esac
7259       fi
7260       break
7261     fi
7262   done
7263   IFS="$lt_save_ifs"
7264   MAGIC_CMD="$lt_save_MAGIC_CMD"
7265   ;;
7266 esac
7267 fi
7268
7269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7270 if test -n "$MAGIC_CMD"; then
7271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7272 $as_echo "$MAGIC_CMD" >&6; }
7273 else
7274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7276 fi
7277
7278
7279   else
7280     MAGIC_CMD=:
7281   fi
7282 fi
7283
7284   fi
7285   ;;
7286 esac
7287
7288 # Use C for the default configuration in the libtool script
7289
7290 lt_save_CC="$CC"
7291 ac_ext=c
7292 ac_cpp='$CPP $CPPFLAGS'
7293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7296
7297
7298 # Source file extension for C test sources.
7299 ac_ext=c
7300
7301 # Object file extension for compiled C test sources.
7302 objext=o
7303 objext=$objext
7304
7305 # Code to be used in simple compile tests
7306 lt_simple_compile_test_code="int some_variable = 0;"
7307
7308 # Code to be used in simple link tests
7309 lt_simple_link_test_code='int main(){return(0);}'
7310
7311
7312
7313
7314
7315
7316
7317 # If no C compiler was specified, use CC.
7318 LTCC=${LTCC-"$CC"}
7319
7320 # If no C compiler flags were specified, use CFLAGS.
7321 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7322
7323 # Allow CC to be a program name with arguments.
7324 compiler=$CC
7325
7326 # Save the default compiler, since it gets overwritten when the other
7327 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7328 compiler_DEFAULT=$CC
7329
7330 # save warnings/boilerplate of simple test code
7331 ac_outfile=conftest.$ac_objext
7332 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7333 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7334 _lt_compiler_boilerplate=`cat conftest.err`
7335 $RM conftest*
7336
7337 ac_outfile=conftest.$ac_objext
7338 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7339 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7340 _lt_linker_boilerplate=`cat conftest.err`
7341 $RM -r conftest*
7342
7343
7344 if test -n "$compiler"; then
7345
7346 lt_prog_compiler_no_builtin_flag=
7347
7348 if test "$GCC" = yes; then
7349   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7350
7351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7352 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7353 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7354   $as_echo_n "(cached) " >&6
7355 else
7356   lt_cv_prog_compiler_rtti_exceptions=no
7357    ac_outfile=conftest.$ac_objext
7358    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7359    lt_compiler_flag="-fno-rtti -fno-exceptions"
7360    # Insert the option either (1) after the last *FLAGS variable, or
7361    # (2) before a word containing "conftest.", or (3) at the end.
7362    # Note that $ac_compile itself does not contain backslashes and begins
7363    # with a dollar sign (not a hyphen), so the echo should work correctly.
7364    # The option is referenced via a variable to avoid confusing sed.
7365    lt_compile=`echo "$ac_compile" | $SED \
7366    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7367    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7368    -e 's:$: $lt_compiler_flag:'`
7369    (eval echo "\"\$as_me:7369: $lt_compile\"" >&5)
7370    (eval "$lt_compile" 2>conftest.err)
7371    ac_status=$?
7372    cat conftest.err >&5
7373    echo "$as_me:7373: \$? = $ac_status" >&5
7374    if (exit $ac_status) && test -s "$ac_outfile"; then
7375      # The compiler can only warn and ignore the option if not recognized
7376      # So say no if there are warnings other than the usual output.
7377      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7378      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7379      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7380        lt_cv_prog_compiler_rtti_exceptions=yes
7381      fi
7382    fi
7383    $RM conftest*
7384
7385 fi
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7387 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7388
7389 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7390     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7391 else
7392     :
7393 fi
7394
7395 fi
7396
7397
7398
7399
7400
7401
7402   lt_prog_compiler_wl=
7403 lt_prog_compiler_pic=
7404 lt_prog_compiler_static=
7405
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7407 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7408
7409   if test "$GCC" = yes; then
7410     lt_prog_compiler_wl='-Wl,'
7411     lt_prog_compiler_static='-static'
7412
7413     case $host_os in
7414       aix*)
7415       # All AIX code is PIC.
7416       if test "$host_cpu" = ia64; then
7417         # AIX 5 now supports IA64 processor
7418         lt_prog_compiler_static='-Bstatic'
7419       fi
7420       ;;
7421
7422     amigaos*)
7423       case $host_cpu in
7424       powerpc)
7425             # see comment about AmigaOS4 .so support
7426             lt_prog_compiler_pic='-fPIC'
7427         ;;
7428       m68k)
7429             # FIXME: we need at least 68020 code to build shared libraries, but
7430             # adding the `-m68020' flag to GCC prevents building anything better,
7431             # like `-m68040'.
7432             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7433         ;;
7434       esac
7435       ;;
7436
7437     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7438       # PIC is the default for these OSes.
7439       ;;
7440
7441     mingw* | cygwin* | pw32* | os2* | cegcc*)
7442       # This hack is so that the source file can tell whether it is being
7443       # built for inclusion in a dll (and should export symbols for example).
7444       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7445       # (--disable-auto-import) libraries
7446       lt_prog_compiler_pic='-DDLL_EXPORT'
7447       ;;
7448
7449     darwin* | rhapsody*)
7450       # PIC is the default on this platform
7451       # Common symbols not allowed in MH_DYLIB files
7452       lt_prog_compiler_pic='-fno-common'
7453       ;;
7454
7455     hpux*)
7456       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7457       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7458       # sets the default TLS model and affects inlining.
7459       case $host_cpu in
7460       hppa*64*)
7461         # +Z the default
7462         ;;
7463       *)
7464         lt_prog_compiler_pic='-fPIC'
7465         ;;
7466       esac
7467       ;;
7468
7469     interix[3-9]*)
7470       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7471       # Instead, we relocate shared libraries at runtime.
7472       ;;
7473
7474     msdosdjgpp*)
7475       # Just because we use GCC doesn't mean we suddenly get shared libraries
7476       # on systems that don't support them.
7477       lt_prog_compiler_can_build_shared=no
7478       enable_shared=no
7479       ;;
7480
7481     *nto* | *qnx*)
7482       # QNX uses GNU C++, but need to define -shared option too, otherwise
7483       # it will coredump.
7484       lt_prog_compiler_pic='-fPIC -shared'
7485       ;;
7486
7487     sysv4*MP*)
7488       if test -d /usr/nec; then
7489         lt_prog_compiler_pic=-Kconform_pic
7490       fi
7491       ;;
7492
7493     *)
7494       lt_prog_compiler_pic='-fPIC'
7495       ;;
7496     esac
7497   else
7498     # PORTME Check for flag to pass linker flags through the system compiler.
7499     case $host_os in
7500     aix*)
7501       lt_prog_compiler_wl='-Wl,'
7502       if test "$host_cpu" = ia64; then
7503         # AIX 5 now supports IA64 processor
7504         lt_prog_compiler_static='-Bstatic'
7505       else
7506         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7507       fi
7508       ;;
7509
7510     mingw* | cygwin* | pw32* | os2* | cegcc*)
7511       # This hack is so that the source file can tell whether it is being
7512       # built for inclusion in a dll (and should export symbols for example).
7513       lt_prog_compiler_pic='-DDLL_EXPORT'
7514       ;;
7515
7516     hpux9* | hpux10* | hpux11*)
7517       lt_prog_compiler_wl='-Wl,'
7518       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7519       # not for PA HP-UX.
7520       case $host_cpu in
7521       hppa*64*|ia64*)
7522         # +Z the default
7523         ;;
7524       *)
7525         lt_prog_compiler_pic='+Z'
7526         ;;
7527       esac
7528       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7529       lt_prog_compiler_static='${wl}-a ${wl}archive'
7530       ;;
7531
7532     irix5* | irix6* | nonstopux*)
7533       lt_prog_compiler_wl='-Wl,'
7534       # PIC (with -KPIC) is the default.
7535       lt_prog_compiler_static='-non_shared'
7536       ;;
7537
7538     linux* | k*bsd*-gnu)
7539       case $cc_basename in
7540       # old Intel for x86_64 which still supported -KPIC.
7541       ecc*)
7542         lt_prog_compiler_wl='-Wl,'
7543         lt_prog_compiler_pic='-KPIC'
7544         lt_prog_compiler_static='-static'
7545         ;;
7546       # icc used to be incompatible with GCC.
7547       # ICC 10 doesn't accept -KPIC any more.
7548       icc* | ifort*)
7549         lt_prog_compiler_wl='-Wl,'
7550         lt_prog_compiler_pic='-fPIC'
7551         lt_prog_compiler_static='-static'
7552         ;;
7553       # Lahey Fortran 8.1.
7554       lf95*)
7555         lt_prog_compiler_wl='-Wl,'
7556         lt_prog_compiler_pic='--shared'
7557         lt_prog_compiler_static='--static'
7558         ;;
7559       pgcc* | pgf77* | pgf90* | pgf95*)
7560         # Portland Group compilers (*not* the Pentium gcc compiler,
7561         # which looks to be a dead project)
7562         lt_prog_compiler_wl='-Wl,'
7563         lt_prog_compiler_pic='-fpic'
7564         lt_prog_compiler_static='-Bstatic'
7565         ;;
7566       ccc*)
7567         lt_prog_compiler_wl='-Wl,'
7568         # All Alpha code is PIC.
7569         lt_prog_compiler_static='-non_shared'
7570         ;;
7571       xl*)
7572         # IBM XL C 8.0/Fortran 10.1 on PPC
7573         lt_prog_compiler_wl='-Wl,'
7574         lt_prog_compiler_pic='-qpic'
7575         lt_prog_compiler_static='-qstaticlink'
7576         ;;
7577       *)
7578         case `$CC -V 2>&1 | sed 5q` in
7579         *Sun\ C*)
7580           # Sun C 5.9
7581           lt_prog_compiler_pic='-KPIC'
7582           lt_prog_compiler_static='-Bstatic'
7583           lt_prog_compiler_wl='-Wl,'
7584           ;;
7585         *Sun\ F*)
7586           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7587           lt_prog_compiler_pic='-KPIC'
7588           lt_prog_compiler_static='-Bstatic'
7589           lt_prog_compiler_wl=''
7590           ;;
7591         esac
7592         ;;
7593       esac
7594       ;;
7595
7596     newsos6)
7597       lt_prog_compiler_pic='-KPIC'
7598       lt_prog_compiler_static='-Bstatic'
7599       ;;
7600
7601     *nto* | *qnx*)
7602       # QNX uses GNU C++, but need to define -shared option too, otherwise
7603       # it will coredump.
7604       lt_prog_compiler_pic='-fPIC -shared'
7605       ;;
7606
7607     osf3* | osf4* | osf5*)
7608       lt_prog_compiler_wl='-Wl,'
7609       # All OSF/1 code is PIC.
7610       lt_prog_compiler_static='-non_shared'
7611       ;;
7612
7613     rdos*)
7614       lt_prog_compiler_static='-non_shared'
7615       ;;
7616
7617     solaris*)
7618       lt_prog_compiler_pic='-KPIC'
7619       lt_prog_compiler_static='-Bstatic'
7620       case $cc_basename in
7621       f77* | f90* | f95*)
7622         lt_prog_compiler_wl='-Qoption ld ';;
7623       *)
7624         lt_prog_compiler_wl='-Wl,';;
7625       esac
7626       ;;
7627
7628     sunos4*)
7629       lt_prog_compiler_wl='-Qoption ld '
7630       lt_prog_compiler_pic='-PIC'
7631       lt_prog_compiler_static='-Bstatic'
7632       ;;
7633
7634     sysv4 | sysv4.2uw2* | sysv4.3*)
7635       lt_prog_compiler_wl='-Wl,'
7636       lt_prog_compiler_pic='-KPIC'
7637       lt_prog_compiler_static='-Bstatic'
7638       ;;
7639
7640     sysv4*MP*)
7641       if test -d /usr/nec ;then
7642         lt_prog_compiler_pic='-Kconform_pic'
7643         lt_prog_compiler_static='-Bstatic'
7644       fi
7645       ;;
7646
7647     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7648       lt_prog_compiler_wl='-Wl,'
7649       lt_prog_compiler_pic='-KPIC'
7650       lt_prog_compiler_static='-Bstatic'
7651       ;;
7652
7653     unicos*)
7654       lt_prog_compiler_wl='-Wl,'
7655       lt_prog_compiler_can_build_shared=no
7656       ;;
7657
7658     uts4*)
7659       lt_prog_compiler_pic='-pic'
7660       lt_prog_compiler_static='-Bstatic'
7661       ;;
7662
7663     *)
7664       lt_prog_compiler_can_build_shared=no
7665       ;;
7666     esac
7667   fi
7668
7669 case $host_os in
7670   # For platforms which do not support PIC, -DPIC is meaningless:
7671   *djgpp*)
7672     lt_prog_compiler_pic=
7673     ;;
7674   *)
7675     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7676     ;;
7677 esac
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7679 $as_echo "$lt_prog_compiler_pic" >&6; }
7680
7681
7682
7683
7684
7685
7686 #
7687 # Check to make sure the PIC flag actually works.
7688 #
7689 if test -n "$lt_prog_compiler_pic"; then
7690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7691 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7692 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7693   $as_echo_n "(cached) " >&6
7694 else
7695   lt_cv_prog_compiler_pic_works=no
7696    ac_outfile=conftest.$ac_objext
7697    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7698    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7699    # Insert the option either (1) after the last *FLAGS variable, or
7700    # (2) before a word containing "conftest.", or (3) at the end.
7701    # Note that $ac_compile itself does not contain backslashes and begins
7702    # with a dollar sign (not a hyphen), so the echo should work correctly.
7703    # The option is referenced via a variable to avoid confusing sed.
7704    lt_compile=`echo "$ac_compile" | $SED \
7705    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7706    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7707    -e 's:$: $lt_compiler_flag:'`
7708    (eval echo "\"\$as_me:7708: $lt_compile\"" >&5)
7709    (eval "$lt_compile" 2>conftest.err)
7710    ac_status=$?
7711    cat conftest.err >&5
7712    echo "$as_me:7712: \$? = $ac_status" >&5
7713    if (exit $ac_status) && test -s "$ac_outfile"; then
7714      # The compiler can only warn and ignore the option if not recognized
7715      # So say no if there are warnings other than the usual output.
7716      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7717      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7718      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7719        lt_cv_prog_compiler_pic_works=yes
7720      fi
7721    fi
7722    $RM conftest*
7723
7724 fi
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7726 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7727
7728 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7729     case $lt_prog_compiler_pic in
7730      "" | " "*) ;;
7731      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7732      esac
7733 else
7734     lt_prog_compiler_pic=
7735      lt_prog_compiler_can_build_shared=no
7736 fi
7737
7738 fi
7739
7740
7741
7742
7743
7744
7745 #
7746 # Check to make sure the static flag actually works.
7747 #
7748 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7750 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7751 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7752   $as_echo_n "(cached) " >&6
7753 else
7754   lt_cv_prog_compiler_static_works=no
7755    save_LDFLAGS="$LDFLAGS"
7756    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7757    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7758    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7759      # The linker can only warn and ignore the option if not recognized
7760      # So say no if there are warnings
7761      if test -s conftest.err; then
7762        # Append any errors to the config.log.
7763        cat conftest.err 1>&5
7764        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7765        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7766        if diff conftest.exp conftest.er2 >/dev/null; then
7767          lt_cv_prog_compiler_static_works=yes
7768        fi
7769      else
7770        lt_cv_prog_compiler_static_works=yes
7771      fi
7772    fi
7773    $RM -r conftest*
7774    LDFLAGS="$save_LDFLAGS"
7775
7776 fi
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7778 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7779
7780 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7781     :
7782 else
7783     lt_prog_compiler_static=
7784 fi
7785
7786
7787
7788
7789
7790
7791
7792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7793 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7794 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7795   $as_echo_n "(cached) " >&6
7796 else
7797   lt_cv_prog_compiler_c_o=no
7798    $RM -r conftest 2>/dev/null
7799    mkdir conftest
7800    cd conftest
7801    mkdir out
7802    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7803
7804    lt_compiler_flag="-o out/conftest2.$ac_objext"
7805    # Insert the option either (1) after the last *FLAGS variable, or
7806    # (2) before a word containing "conftest.", or (3) at the end.
7807    # Note that $ac_compile itself does not contain backslashes and begins
7808    # with a dollar sign (not a hyphen), so the echo should work correctly.
7809    lt_compile=`echo "$ac_compile" | $SED \
7810    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7811    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7812    -e 's:$: $lt_compiler_flag:'`
7813    (eval echo "\"\$as_me:7813: $lt_compile\"" >&5)
7814    (eval "$lt_compile" 2>out/conftest.err)
7815    ac_status=$?
7816    cat out/conftest.err >&5
7817    echo "$as_me:7817: \$? = $ac_status" >&5
7818    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7819    then
7820      # The compiler can only warn and ignore the option if not recognized
7821      # So say no if there are warnings
7822      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7823      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7824      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7825        lt_cv_prog_compiler_c_o=yes
7826      fi
7827    fi
7828    chmod u+w . 2>&5
7829    $RM conftest*
7830    # SGI C++ compiler will create directory out/ii_files/ for
7831    # template instantiation
7832    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7833    $RM out/* && rmdir out
7834    cd ..
7835    $RM -r conftest
7836    $RM conftest*
7837
7838 fi
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7840 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7841
7842
7843
7844
7845
7846
7847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7848 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7849 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7850   $as_echo_n "(cached) " >&6
7851 else
7852   lt_cv_prog_compiler_c_o=no
7853    $RM -r conftest 2>/dev/null
7854    mkdir conftest
7855    cd conftest
7856    mkdir out
7857    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7858
7859    lt_compiler_flag="-o out/conftest2.$ac_objext"
7860    # Insert the option either (1) after the last *FLAGS variable, or
7861    # (2) before a word containing "conftest.", or (3) at the end.
7862    # Note that $ac_compile itself does not contain backslashes and begins
7863    # with a dollar sign (not a hyphen), so the echo should work correctly.
7864    lt_compile=`echo "$ac_compile" | $SED \
7865    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7866    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7867    -e 's:$: $lt_compiler_flag:'`
7868    (eval echo "\"\$as_me:7868: $lt_compile\"" >&5)
7869    (eval "$lt_compile" 2>out/conftest.err)
7870    ac_status=$?
7871    cat out/conftest.err >&5
7872    echo "$as_me:7872: \$? = $ac_status" >&5
7873    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7874    then
7875      # The compiler can only warn and ignore the option if not recognized
7876      # So say no if there are warnings
7877      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7878      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7879      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7880        lt_cv_prog_compiler_c_o=yes
7881      fi
7882    fi
7883    chmod u+w . 2>&5
7884    $RM conftest*
7885    # SGI C++ compiler will create directory out/ii_files/ for
7886    # template instantiation
7887    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7888    $RM out/* && rmdir out
7889    cd ..
7890    $RM -r conftest
7891    $RM conftest*
7892
7893 fi
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7895 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7896
7897
7898
7899
7900 hard_links="nottested"
7901 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7902   # do not overwrite the value of need_locks provided by the user
7903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7904 $as_echo_n "checking if we can lock with hard links... " >&6; }
7905   hard_links=yes
7906   $RM conftest*
7907   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7908   touch conftest.a
7909   ln conftest.a conftest.b 2>&5 || hard_links=no
7910   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7912 $as_echo "$hard_links" >&6; }
7913   if test "$hard_links" = no; then
7914     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7915 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7916     need_locks=warn
7917   fi
7918 else
7919   need_locks=no
7920 fi
7921
7922
7923
7924
7925
7926
7927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7928 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7929
7930   runpath_var=
7931   allow_undefined_flag=
7932   always_export_symbols=no
7933   archive_cmds=
7934   archive_expsym_cmds=
7935   compiler_needs_object=no
7936   enable_shared_with_static_runtimes=no
7937   export_dynamic_flag_spec=
7938   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7939   hardcode_automatic=no
7940   hardcode_direct=no
7941   hardcode_direct_absolute=no
7942   hardcode_libdir_flag_spec=
7943   hardcode_libdir_flag_spec_ld=
7944   hardcode_libdir_separator=
7945   hardcode_minus_L=no
7946   hardcode_shlibpath_var=unsupported
7947   inherit_rpath=no
7948   link_all_deplibs=unknown
7949   module_cmds=
7950   module_expsym_cmds=
7951   old_archive_from_new_cmds=
7952   old_archive_from_expsyms_cmds=
7953   thread_safe_flag_spec=
7954   whole_archive_flag_spec=
7955   # include_expsyms should be a list of space-separated symbols to be *always*
7956   # included in the symbol list
7957   include_expsyms=
7958   # exclude_expsyms can be an extended regexp of symbols to exclude
7959   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7960   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7961   # as well as any symbol that contains `d'.
7962   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7963   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7964   # platforms (ab)use it in PIC code, but their linkers get confused if
7965   # the symbol is explicitly referenced.  Since portable code cannot
7966   # rely on this symbol name, it's probably fine to never include it in
7967   # preloaded symbol tables.
7968   # Exclude shared library initialization/finalization symbols.
7969   extract_expsyms_cmds=
7970
7971   case $host_os in
7972   cygwin* | mingw* | pw32* | cegcc*)
7973     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7974     # When not using gcc, we currently assume that we are using
7975     # Microsoft Visual C++.
7976     if test "$GCC" != yes; then
7977       with_gnu_ld=no
7978     fi
7979     ;;
7980   interix*)
7981     # we just hope/assume this is gcc and not c89 (= MSVC++)
7982     with_gnu_ld=yes
7983     ;;
7984   openbsd*)
7985     with_gnu_ld=no
7986     ;;
7987   linux* | k*bsd*-gnu)
7988     link_all_deplibs=no
7989     ;;
7990   esac
7991
7992   ld_shlibs=yes
7993   if test "$with_gnu_ld" = yes; then
7994     # If archive_cmds runs LD, not CC, wlarc should be empty
7995     wlarc='${wl}'
7996
7997     # Set some defaults for GNU ld with shared library support. These
7998     # are reset later if shared libraries are not supported. Putting them
7999     # here allows them to be overridden if necessary.
8000     runpath_var=LD_RUN_PATH
8001     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8002     export_dynamic_flag_spec='${wl}--export-dynamic'
8003     # ancient GNU ld didn't support --whole-archive et. al.
8004     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8005       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8006     else
8007       whole_archive_flag_spec=
8008     fi
8009     supports_anon_versioning=no
8010     case `$LD -v 2>&1` in
8011       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8012       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8013       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8014       *\ 2.11.*) ;; # other 2.11 versions
8015       *) supports_anon_versioning=yes ;;
8016     esac
8017
8018     # See if GNU ld supports shared libraries.
8019     case $host_os in
8020     aix[3-9]*)
8021       # On AIX/PPC, the GNU linker is very broken
8022       if test "$host_cpu" != ia64; then
8023         ld_shlibs=no
8024         cat <<_LT_EOF 1>&2
8025
8026 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8027 *** to be unable to reliably create shared libraries on AIX.
8028 *** Therefore, libtool is disabling shared libraries support.  If you
8029 *** really care for shared libraries, you may want to modify your PATH
8030 *** so that a non-GNU linker is found, and then restart.
8031
8032 _LT_EOF
8033       fi
8034       ;;
8035
8036     amigaos*)
8037       case $host_cpu in
8038       powerpc)
8039             # see comment about AmigaOS4 .so support
8040             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8041             archive_expsym_cmds=''
8042         ;;
8043       m68k)
8044             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)'
8045             hardcode_libdir_flag_spec='-L$libdir'
8046             hardcode_minus_L=yes
8047         ;;
8048       esac
8049       ;;
8050
8051     beos*)
8052       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8053         allow_undefined_flag=unsupported
8054         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8055         # support --undefined.  This deserves some investigation.  FIXME
8056         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8057       else
8058         ld_shlibs=no
8059       fi
8060       ;;
8061
8062     cygwin* | mingw* | pw32* | cegcc*)
8063       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8064       # as there is no search path for DLLs.
8065       hardcode_libdir_flag_spec='-L$libdir'
8066       allow_undefined_flag=unsupported
8067       always_export_symbols=no
8068       enable_shared_with_static_runtimes=yes
8069       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8070
8071       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8072         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8073         # If the export-symbols file already is a .def file (1st line
8074         # is EXPORTS), use it as is; otherwise, prepend...
8075         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8076           cp $export_symbols $output_objdir/$soname.def;
8077         else
8078           echo EXPORTS > $output_objdir/$soname.def;
8079           cat $export_symbols >> $output_objdir/$soname.def;
8080         fi~
8081         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8082       else
8083         ld_shlibs=no
8084       fi
8085       ;;
8086
8087     interix[3-9]*)
8088       hardcode_direct=no
8089       hardcode_shlibpath_var=no
8090       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8091       export_dynamic_flag_spec='${wl}-E'
8092       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8093       # Instead, shared libraries are loaded at an image base (0x10000000 by
8094       # default) and relocated if they conflict, which is a slow very memory
8095       # consuming and fragmenting process.  To avoid this, we pick a random,
8096       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8097       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8098       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8099       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'
8100       ;;
8101
8102     gnu* | linux* | tpf* | k*bsd*-gnu)
8103       tmp_diet=no
8104       if test "$host_os" = linux-dietlibc; then
8105         case $cc_basename in
8106           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8107         esac
8108       fi
8109       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8110          && test "$tmp_diet" = no
8111       then
8112         tmp_addflag=
8113         tmp_sharedflag='-shared'
8114         case $cc_basename,$host_cpu in
8115         pgcc*)                          # Portland Group C compiler
8116           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8117           tmp_addflag=' $pic_flag'
8118           ;;
8119         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8120           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8121           tmp_addflag=' $pic_flag -Mnomain' ;;
8122         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8123           tmp_addflag=' -i_dynamic' ;;
8124         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8125           tmp_addflag=' -i_dynamic -nofor_main' ;;
8126         ifc* | ifort*)                  # Intel Fortran compiler
8127           tmp_addflag=' -nofor_main' ;;
8128         lf95*)                          # Lahey Fortran 8.1
8129           whole_archive_flag_spec=
8130           tmp_sharedflag='--shared' ;;
8131         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8132           tmp_sharedflag='-qmkshrobj'
8133           tmp_addflag= ;;
8134         esac
8135         case `$CC -V 2>&1 | sed 5q` in
8136         *Sun\ C*)                       # Sun C 5.9
8137           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8138           compiler_needs_object=yes
8139           tmp_sharedflag='-G' ;;
8140         *Sun\ F*)                       # Sun Fortran 8.3
8141           tmp_sharedflag='-G' ;;
8142         esac
8143         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8144
8145         if test "x$supports_anon_versioning" = xyes; then
8146           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8147             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8148             echo "local: *; };" >> $output_objdir/$libname.ver~
8149             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8150         fi
8151
8152         case $cc_basename in
8153         xlf*)
8154           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8155           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8156           hardcode_libdir_flag_spec=
8157           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8158           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8159           if test "x$supports_anon_versioning" = xyes; then
8160             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8161               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8162               echo "local: *; };" >> $output_objdir/$libname.ver~
8163               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8164           fi
8165           ;;
8166         esac
8167       else
8168         ld_shlibs=no
8169       fi
8170       ;;
8171
8172     netbsd* | netbsdelf*-gnu)
8173       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8174         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8175         wlarc=
8176       else
8177         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8178         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8179       fi
8180       ;;
8181
8182     solaris*)
8183       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8184         ld_shlibs=no
8185         cat <<_LT_EOF 1>&2
8186
8187 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8188 *** create shared libraries on Solaris systems.  Therefore, libtool
8189 *** is disabling shared libraries support.  We urge you to upgrade GNU
8190 *** binutils to release 2.9.1 or newer.  Another option is to modify
8191 *** your PATH or compiler configuration so that the native linker is
8192 *** used, and then restart.
8193
8194 _LT_EOF
8195       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8196         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8197         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8198       else
8199         ld_shlibs=no
8200       fi
8201       ;;
8202
8203     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8204       case `$LD -v 2>&1` in
8205         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8206         ld_shlibs=no
8207         cat <<_LT_EOF 1>&2
8208
8209 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8210 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8211 *** is disabling shared libraries support.  We urge you to upgrade GNU
8212 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8213 *** your PATH or compiler configuration so that the native linker is
8214 *** used, and then restart.
8215
8216 _LT_EOF
8217         ;;
8218         *)
8219           # For security reasons, it is highly recommended that you always
8220           # use absolute paths for naming shared libraries, and exclude the
8221           # DT_RUNPATH tag from executables and libraries.  But doing so
8222           # requires that you compile everything twice, which is a pain.
8223           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8224             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8225             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8226             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8227           else
8228             ld_shlibs=no
8229           fi
8230         ;;
8231       esac
8232       ;;
8233
8234     sunos4*)
8235       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8236       wlarc=
8237       hardcode_direct=yes
8238       hardcode_shlibpath_var=no
8239       ;;
8240
8241     *)
8242       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8243         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8244         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8245       else
8246         ld_shlibs=no
8247       fi
8248       ;;
8249     esac
8250
8251     if test "$ld_shlibs" = no; then
8252       runpath_var=
8253       hardcode_libdir_flag_spec=
8254       export_dynamic_flag_spec=
8255       whole_archive_flag_spec=
8256     fi
8257   else
8258     # PORTME fill in a description of your system's linker (not GNU ld)
8259     case $host_os in
8260     aix3*)
8261       allow_undefined_flag=unsupported
8262       always_export_symbols=yes
8263       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'
8264       # Note: this linker hardcodes the directories in LIBPATH if there
8265       # are no directories specified by -L.
8266       hardcode_minus_L=yes
8267       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8268         # Neither direct hardcoding nor static linking is supported with a
8269         # broken collect2.
8270         hardcode_direct=unsupported
8271       fi
8272       ;;
8273
8274     aix[4-9]*)
8275       if test "$host_cpu" = ia64; then
8276         # On IA64, the linker does run time linking by default, so we don't
8277         # have to do anything special.
8278         aix_use_runtimelinking=no
8279         exp_sym_flag='-Bexport'
8280         no_entry_flag=""
8281       else
8282         # If we're using GNU nm, then we don't want the "-C" option.
8283         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8284         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8285           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8286         else
8287           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'
8288         fi
8289         aix_use_runtimelinking=no
8290
8291         # Test if we are trying to use run time linking or normal
8292         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8293         # need to do runtime linking.
8294         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8295           for ld_flag in $LDFLAGS; do
8296           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8297             aix_use_runtimelinking=yes
8298             break
8299           fi
8300           done
8301           ;;
8302         esac
8303
8304         exp_sym_flag='-bexport'
8305         no_entry_flag='-bnoentry'
8306       fi
8307
8308       # When large executables or shared objects are built, AIX ld can
8309       # have problems creating the table of contents.  If linking a library
8310       # or program results in "error TOC overflow" add -mminimal-toc to
8311       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8312       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8313
8314       archive_cmds=''
8315       hardcode_direct=yes
8316       hardcode_direct_absolute=yes
8317       hardcode_libdir_separator=':'
8318       link_all_deplibs=yes
8319       file_list_spec='${wl}-f,'
8320
8321       if test "$GCC" = yes; then
8322         case $host_os in aix4.[012]|aix4.[012].*)
8323         # We only want to do this on AIX 4.2 and lower, the check
8324         # below for broken collect2 doesn't work under 4.3+
8325           collect2name=`${CC} -print-prog-name=collect2`
8326           if test -f "$collect2name" &&
8327            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8328           then
8329           # We have reworked collect2
8330           :
8331           else
8332           # We have old collect2
8333           hardcode_direct=unsupported
8334           # It fails to find uninstalled libraries when the uninstalled
8335           # path is not listed in the libpath.  Setting hardcode_minus_L
8336           # to unsupported forces relinking
8337           hardcode_minus_L=yes
8338           hardcode_libdir_flag_spec='-L$libdir'
8339           hardcode_libdir_separator=
8340           fi
8341           ;;
8342         esac
8343         shared_flag='-shared'
8344         if test "$aix_use_runtimelinking" = yes; then
8345           shared_flag="$shared_flag "'${wl}-G'
8346         fi
8347         link_all_deplibs=no
8348       else
8349         # not using gcc
8350         if test "$host_cpu" = ia64; then
8351         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8352         # chokes on -Wl,-G. The following line is correct:
8353           shared_flag='-G'
8354         else
8355           if test "$aix_use_runtimelinking" = yes; then
8356             shared_flag='${wl}-G'
8357           else
8358             shared_flag='${wl}-bM:SRE'
8359           fi
8360         fi
8361       fi
8362
8363       export_dynamic_flag_spec='${wl}-bexpall'
8364       # It seems that -bexpall does not export symbols beginning with
8365       # underscore (_), so it is better to generate a list of symbols to export.
8366       always_export_symbols=yes
8367       if test "$aix_use_runtimelinking" = yes; then
8368         # Warning - without using the other runtime loading flags (-brtl),
8369         # -berok will link without error, but may produce a broken library.
8370         allow_undefined_flag='-berok'
8371         # Determine the default libpath from the value encoded in an
8372         # empty executable.
8373         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h.  */
8375
8376 int
8377 main ()
8378 {
8379
8380   ;
8381   return 0;
8382 }
8383 _ACEOF
8384 if ac_fn_c_try_link "$LINENO"; then :
8385
8386 lt_aix_libpath_sed='
8387     /Import File Strings/,/^$/ {
8388         /^0/ {
8389             s/^0  *\(.*\)$/\1/
8390             p
8391         }
8392     }'
8393 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8394 # Check for a 64-bit object if we didn't find anything.
8395 if test -z "$aix_libpath"; then
8396   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8397 fi
8398 fi
8399 rm -f core conftest.err conftest.$ac_objext \
8400     conftest$ac_exeext conftest.$ac_ext
8401 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8402
8403         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8404         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8405       else
8406         if test "$host_cpu" = ia64; then
8407           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8408           allow_undefined_flag="-z nodefs"
8409           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"
8410         else
8411          # Determine the default libpath from the value encoded in an
8412          # empty executable.
8413          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414 /* end confdefs.h.  */
8415
8416 int
8417 main ()
8418 {
8419
8420   ;
8421   return 0;
8422 }
8423 _ACEOF
8424 if ac_fn_c_try_link "$LINENO"; then :
8425
8426 lt_aix_libpath_sed='
8427     /Import File Strings/,/^$/ {
8428         /^0/ {
8429             s/^0  *\(.*\)$/\1/
8430             p
8431         }
8432     }'
8433 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8434 # Check for a 64-bit object if we didn't find anything.
8435 if test -z "$aix_libpath"; then
8436   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8437 fi
8438 fi
8439 rm -f core conftest.err conftest.$ac_objext \
8440     conftest$ac_exeext conftest.$ac_ext
8441 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8442
8443          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8444           # Warning - without using the other run time loading flags,
8445           # -berok will link without error, but may produce a broken library.
8446           no_undefined_flag=' ${wl}-bernotok'
8447           allow_undefined_flag=' ${wl}-berok'
8448           # Exported symbols can be pulled into shared objects from archives
8449           whole_archive_flag_spec='$convenience'
8450           archive_cmds_need_lc=yes
8451           # This is similar to how AIX traditionally builds its shared libraries.
8452           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'
8453         fi
8454       fi
8455       ;;
8456
8457     amigaos*)
8458       case $host_cpu in
8459       powerpc)
8460             # see comment about AmigaOS4 .so support
8461             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8462             archive_expsym_cmds=''
8463         ;;
8464       m68k)
8465             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)'
8466             hardcode_libdir_flag_spec='-L$libdir'
8467             hardcode_minus_L=yes
8468         ;;
8469       esac
8470       ;;
8471
8472     bsdi[45]*)
8473       export_dynamic_flag_spec=-rdynamic
8474       ;;
8475
8476     cygwin* | mingw* | pw32* | cegcc*)
8477       # When not using gcc, we currently assume that we are using
8478       # Microsoft Visual C++.
8479       # hardcode_libdir_flag_spec is actually meaningless, as there is
8480       # no search path for DLLs.
8481       hardcode_libdir_flag_spec=' '
8482       allow_undefined_flag=unsupported
8483       # Tell ltmain to make .lib files, not .a files.
8484       libext=lib
8485       # Tell ltmain to make .dll files, not .so files.
8486       shrext_cmds=".dll"
8487       # FIXME: Setting linknames here is a bad hack.
8488       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8489       # The linker will automatically build a .lib file if we build a DLL.
8490       old_archive_from_new_cmds='true'
8491       # FIXME: Should let the user specify the lib program.
8492       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8493       fix_srcfile_path='`cygpath -w "$srcfile"`'
8494       enable_shared_with_static_runtimes=yes
8495       ;;
8496
8497     darwin* | rhapsody*)
8498
8499
8500   archive_cmds_need_lc=no
8501   hardcode_direct=no
8502   hardcode_automatic=yes
8503   hardcode_shlibpath_var=unsupported
8504   whole_archive_flag_spec=''
8505   link_all_deplibs=yes
8506   allow_undefined_flag="$_lt_dar_allow_undefined"
8507   case $cc_basename in
8508      ifort*) _lt_dar_can_shared=yes ;;
8509      *) _lt_dar_can_shared=$GCC ;;
8510   esac
8511   if test "$_lt_dar_can_shared" = "yes"; then
8512     output_verbose_link_cmd=echo
8513     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8514     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8515     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}"
8516     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}"
8517
8518   else
8519   ld_shlibs=no
8520   fi
8521
8522       ;;
8523
8524     dgux*)
8525       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8526       hardcode_libdir_flag_spec='-L$libdir'
8527       hardcode_shlibpath_var=no
8528       ;;
8529
8530     freebsd1*)
8531       ld_shlibs=no
8532       ;;
8533
8534     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8535     # support.  Future versions do this automatically, but an explicit c++rt0.o
8536     # does not break anything, and helps significantly (at the cost of a little
8537     # extra space).
8538     freebsd2.2*)
8539       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8540       hardcode_libdir_flag_spec='-R$libdir'
8541       hardcode_direct=yes
8542       hardcode_shlibpath_var=no
8543       ;;
8544
8545     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8546     freebsd2*)
8547       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8548       hardcode_direct=yes
8549       hardcode_minus_L=yes
8550       hardcode_shlibpath_var=no
8551       ;;
8552
8553     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8554     freebsd* | dragonfly*)
8555       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8556       hardcode_libdir_flag_spec='-R$libdir'
8557       hardcode_direct=yes
8558       hardcode_shlibpath_var=no
8559       ;;
8560
8561     hpux9*)
8562       if test "$GCC" = yes; then
8563         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8564       else
8565         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'
8566       fi
8567       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8568       hardcode_libdir_separator=:
8569       hardcode_direct=yes
8570
8571       # hardcode_minus_L: Not really in the search PATH,
8572       # but as the default location of the library.
8573       hardcode_minus_L=yes
8574       export_dynamic_flag_spec='${wl}-E'
8575       ;;
8576
8577     hpux10*)
8578       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8579         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8580       else
8581         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8582       fi
8583       if test "$with_gnu_ld" = no; then
8584         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8585         hardcode_libdir_flag_spec_ld='+b $libdir'
8586         hardcode_libdir_separator=:
8587         hardcode_direct=yes
8588         hardcode_direct_absolute=yes
8589         export_dynamic_flag_spec='${wl}-E'
8590         # hardcode_minus_L: Not really in the search PATH,
8591         # but as the default location of the library.
8592         hardcode_minus_L=yes
8593       fi
8594       ;;
8595
8596     hpux11*)
8597       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8598         case $host_cpu in
8599         hppa*64*)
8600           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8601           ;;
8602         ia64*)
8603           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8604           ;;
8605         *)
8606           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8607           ;;
8608         esac
8609       else
8610         case $host_cpu in
8611         hppa*64*)
8612           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8613           ;;
8614         ia64*)
8615           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8616           ;;
8617         *)
8618           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8619           ;;
8620         esac
8621       fi
8622       if test "$with_gnu_ld" = no; then
8623         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8624         hardcode_libdir_separator=:
8625
8626         case $host_cpu in
8627         hppa*64*|ia64*)
8628           hardcode_direct=no
8629           hardcode_shlibpath_var=no
8630           ;;
8631         *)
8632           hardcode_direct=yes
8633           hardcode_direct_absolute=yes
8634           export_dynamic_flag_spec='${wl}-E'
8635
8636           # hardcode_minus_L: Not really in the search PATH,
8637           # but as the default location of the library.
8638           hardcode_minus_L=yes
8639           ;;
8640         esac
8641       fi
8642       ;;
8643
8644     irix5* | irix6* | nonstopux*)
8645       if test "$GCC" = yes; then
8646         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8647         # Try to use the -exported_symbol ld option, if it does not
8648         # work, assume that -exports_file does not work either and
8649         # implicitly export all symbols.
8650         save_LDFLAGS="$LDFLAGS"
8651         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8652         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h.  */
8654 int foo(void) {}
8655 _ACEOF
8656 if ac_fn_c_try_link "$LINENO"; then :
8657   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8658
8659 fi
8660 rm -f core conftest.err conftest.$ac_objext \
8661     conftest$ac_exeext conftest.$ac_ext
8662         LDFLAGS="$save_LDFLAGS"
8663       else
8664         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8665         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8666       fi
8667       archive_cmds_need_lc='no'
8668       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8669       hardcode_libdir_separator=:
8670       inherit_rpath=yes
8671       link_all_deplibs=yes
8672       ;;
8673
8674     netbsd* | netbsdelf*-gnu)
8675       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8676         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8677       else
8678         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8679       fi
8680       hardcode_libdir_flag_spec='-R$libdir'
8681       hardcode_direct=yes
8682       hardcode_shlibpath_var=no
8683       ;;
8684
8685     newsos6)
8686       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8687       hardcode_direct=yes
8688       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8689       hardcode_libdir_separator=:
8690       hardcode_shlibpath_var=no
8691       ;;
8692
8693     *nto* | *qnx*)
8694       ;;
8695
8696     openbsd*)
8697       if test -f /usr/libexec/ld.so; then
8698         hardcode_direct=yes
8699         hardcode_shlibpath_var=no
8700         hardcode_direct_absolute=yes
8701         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8702           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8703           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8704           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8705           export_dynamic_flag_spec='${wl}-E'
8706         else
8707           case $host_os in
8708            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8709              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8710              hardcode_libdir_flag_spec='-R$libdir'
8711              ;;
8712            *)
8713              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8714              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8715              ;;
8716           esac
8717         fi
8718       else
8719         ld_shlibs=no
8720       fi
8721       ;;
8722
8723     os2*)
8724       hardcode_libdir_flag_spec='-L$libdir'
8725       hardcode_minus_L=yes
8726       allow_undefined_flag=unsupported
8727       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'
8728       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8729       ;;
8730
8731     osf3*)
8732       if test "$GCC" = yes; then
8733         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8734         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8735       else
8736         allow_undefined_flag=' -expect_unresolved \*'
8737         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8738       fi
8739       archive_cmds_need_lc='no'
8740       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8741       hardcode_libdir_separator=:
8742       ;;
8743
8744     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8745       if test "$GCC" = yes; then
8746         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8747         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8748         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8749       else
8750         allow_undefined_flag=' -expect_unresolved \*'
8751         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8752         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~
8753         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8754
8755         # Both c and cxx compiler support -rpath directly
8756         hardcode_libdir_flag_spec='-rpath $libdir'
8757       fi
8758       archive_cmds_need_lc='no'
8759       hardcode_libdir_separator=:
8760       ;;
8761
8762     solaris*)
8763       no_undefined_flag=' -z defs'
8764       if test "$GCC" = yes; then
8765         wlarc='${wl}'
8766         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8767         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8768           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8769       else
8770         case `$CC -V 2>&1` in
8771         *"Compilers 5.0"*)
8772           wlarc=''
8773           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8774           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8775           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8776           ;;
8777         *)
8778           wlarc='${wl}'
8779           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8780           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8781           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8782           ;;
8783         esac
8784       fi
8785       hardcode_libdir_flag_spec='-R$libdir'
8786       hardcode_shlibpath_var=no
8787       case $host_os in
8788       solaris2.[0-5] | solaris2.[0-5].*) ;;
8789       *)
8790         # The compiler driver will combine and reorder linker options,
8791         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8792         # but is careful enough not to reorder.
8793         # Supported since Solaris 2.6 (maybe 2.5.1?)
8794         if test "$GCC" = yes; then
8795           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8796         else
8797           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8798         fi
8799         ;;
8800       esac
8801       link_all_deplibs=yes
8802       ;;
8803
8804     sunos4*)
8805       if test "x$host_vendor" = xsequent; then
8806         # Use $CC to link under sequent, because it throws in some extra .o
8807         # files that make .init and .fini sections work.
8808         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8809       else
8810         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8811       fi
8812       hardcode_libdir_flag_spec='-L$libdir'
8813       hardcode_direct=yes
8814       hardcode_minus_L=yes
8815       hardcode_shlibpath_var=no
8816       ;;
8817
8818     sysv4)
8819       case $host_vendor in
8820         sni)
8821           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822           hardcode_direct=yes # is this really true???
8823         ;;
8824         siemens)
8825           ## LD is ld it makes a PLAMLIB
8826           ## CC just makes a GrossModule.
8827           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8828           reload_cmds='$CC -r -o $output$reload_objs'
8829           hardcode_direct=no
8830         ;;
8831         motorola)
8832           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8833           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8834         ;;
8835       esac
8836       runpath_var='LD_RUN_PATH'
8837       hardcode_shlibpath_var=no
8838       ;;
8839
8840     sysv4.3*)
8841       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8842       hardcode_shlibpath_var=no
8843       export_dynamic_flag_spec='-Bexport'
8844       ;;
8845
8846     sysv4*MP*)
8847       if test -d /usr/nec; then
8848         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849         hardcode_shlibpath_var=no
8850         runpath_var=LD_RUN_PATH
8851         hardcode_runpath_var=yes
8852         ld_shlibs=yes
8853       fi
8854       ;;
8855
8856     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8857       no_undefined_flag='${wl}-z,text'
8858       archive_cmds_need_lc=no
8859       hardcode_shlibpath_var=no
8860       runpath_var='LD_RUN_PATH'
8861
8862       if test "$GCC" = yes; then
8863         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8864         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8865       else
8866         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8867         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8868       fi
8869       ;;
8870
8871     sysv5* | sco3.2v5* | sco5v6*)
8872       # Note: We can NOT use -z defs as we might desire, because we do not
8873       # link with -lc, and that would cause any symbols used from libc to
8874       # always be unresolved, which means just about no library would
8875       # ever link correctly.  If we're not using GNU ld we use -z text
8876       # though, which does catch some bad symbols but isn't as heavy-handed
8877       # as -z defs.
8878       no_undefined_flag='${wl}-z,text'
8879       allow_undefined_flag='${wl}-z,nodefs'
8880       archive_cmds_need_lc=no
8881       hardcode_shlibpath_var=no
8882       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8883       hardcode_libdir_separator=':'
8884       link_all_deplibs=yes
8885       export_dynamic_flag_spec='${wl}-Bexport'
8886       runpath_var='LD_RUN_PATH'
8887
8888       if test "$GCC" = yes; then
8889         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8890         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8891       else
8892         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8893         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8894       fi
8895       ;;
8896
8897     uts4*)
8898       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8899       hardcode_libdir_flag_spec='-L$libdir'
8900       hardcode_shlibpath_var=no
8901       ;;
8902
8903     *)
8904       ld_shlibs=no
8905       ;;
8906     esac
8907
8908     if test x$host_vendor = xsni; then
8909       case $host in
8910       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8911         export_dynamic_flag_spec='${wl}-Blargedynsym'
8912         ;;
8913       esac
8914     fi
8915   fi
8916
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8918 $as_echo "$ld_shlibs" >&6; }
8919 test "$ld_shlibs" = no && can_build_shared=no
8920
8921 with_gnu_ld=$with_gnu_ld
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937 #
8938 # Do we need to explicitly link libc?
8939 #
8940 case "x$archive_cmds_need_lc" in
8941 x|xyes)
8942   # Assume -lc should be added
8943   archive_cmds_need_lc=yes
8944
8945   if test "$enable_shared" = yes && test "$GCC" = yes; then
8946     case $archive_cmds in
8947     *'~'*)
8948       # FIXME: we may have to deal with multi-command sequences.
8949       ;;
8950     '$CC '*)
8951       # Test whether the compiler implicitly links with -lc since on some
8952       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8953       # to ld, don't add -lc before -lgcc.
8954       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8955 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8956       $RM conftest*
8957       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8958
8959       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8960   (eval $ac_compile) 2>&5
8961   ac_status=$?
8962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8963   test $ac_status = 0; } 2>conftest.err; then
8964         soname=conftest
8965         lib=conftest
8966         libobjs=conftest.$ac_objext
8967         deplibs=
8968         wl=$lt_prog_compiler_wl
8969         pic_flag=$lt_prog_compiler_pic
8970         compiler_flags=-v
8971         linker_flags=-v
8972         verstring=
8973         output_objdir=.
8974         libname=conftest
8975         lt_save_allow_undefined_flag=$allow_undefined_flag
8976         allow_undefined_flag=
8977         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8978   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8979   ac_status=$?
8980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8981   test $ac_status = 0; }
8982         then
8983           archive_cmds_need_lc=no
8984         else
8985           archive_cmds_need_lc=yes
8986         fi
8987         allow_undefined_flag=$lt_save_allow_undefined_flag
8988       else
8989         cat conftest.err 1>&5
8990       fi
8991       $RM conftest*
8992       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8993 $as_echo "$archive_cmds_need_lc" >&6; }
8994       ;;
8995     esac
8996   fi
8997   ;;
8998 esac
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9157 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9158
9159 if test "$GCC" = yes; then
9160   case $host_os in
9161     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9162     *) lt_awk_arg="/^libraries:/" ;;
9163   esac
9164   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9165   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9166     # if the path contains ";" then we assume it to be the separator
9167     # otherwise default to the standard path separator (i.e. ":") - it is
9168     # assumed that no part of a normal pathname contains ";" but that should
9169     # okay in the real world where ";" in dirpaths is itself problematic.
9170     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9171   else
9172     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9173   fi
9174   # Ok, now we have the path, separated by spaces, we can step through it
9175   # and add multilib dir if necessary.
9176   lt_tmp_lt_search_path_spec=
9177   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9178   for lt_sys_path in $lt_search_path_spec; do
9179     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9180       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9181     else
9182       test -d "$lt_sys_path" && \
9183         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9184     fi
9185   done
9186   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9187 BEGIN {RS=" "; FS="/|\n";} {
9188   lt_foo="";
9189   lt_count=0;
9190   for (lt_i = NF; lt_i > 0; lt_i--) {
9191     if ($lt_i != "" && $lt_i != ".") {
9192       if ($lt_i == "..") {
9193         lt_count++;
9194       } else {
9195         if (lt_count == 0) {
9196           lt_foo="/" $lt_i lt_foo;
9197         } else {
9198           lt_count--;
9199         }
9200       }
9201     }
9202   }
9203   if (lt_foo != "") { lt_freq[lt_foo]++; }
9204   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9205 }'`
9206   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9207 else
9208   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9209 fi
9210 library_names_spec=
9211 libname_spec='lib$name'
9212 soname_spec=
9213 shrext_cmds=".so"
9214 postinstall_cmds=
9215 postuninstall_cmds=
9216 finish_cmds=
9217 finish_eval=
9218 shlibpath_var=
9219 shlibpath_overrides_runpath=unknown
9220 version_type=none
9221 dynamic_linker="$host_os ld.so"
9222 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9223 need_lib_prefix=unknown
9224 hardcode_into_libs=no
9225
9226 # when you set need_version to no, make sure it does not cause -set_version
9227 # flags to be left without arguments
9228 need_version=unknown
9229
9230 case $host_os in
9231 aix3*)
9232   version_type=linux
9233   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9234   shlibpath_var=LIBPATH
9235
9236   # AIX 3 has no versioning support, so we append a major version to the name.
9237   soname_spec='${libname}${release}${shared_ext}$major'
9238   ;;
9239
9240 aix[4-9]*)
9241   version_type=linux
9242   need_lib_prefix=no
9243   need_version=no
9244   hardcode_into_libs=yes
9245   if test "$host_cpu" = ia64; then
9246     # AIX 5 supports IA64
9247     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9248     shlibpath_var=LD_LIBRARY_PATH
9249   else
9250     # With GCC up to 2.95.x, collect2 would create an import file
9251     # for dependence libraries.  The import file would start with
9252     # the line `#! .'.  This would cause the generated library to
9253     # depend on `.', always an invalid library.  This was fixed in
9254     # development snapshots of GCC prior to 3.0.
9255     case $host_os in
9256       aix4 | aix4.[01] | aix4.[01].*)
9257       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9258            echo ' yes '
9259            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9260         :
9261       else
9262         can_build_shared=no
9263       fi
9264       ;;
9265     esac
9266     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9267     # soname into executable. Probably we can add versioning support to
9268     # collect2, so additional links can be useful in future.
9269     if test "$aix_use_runtimelinking" = yes; then
9270       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9271       # instead of lib<name>.a to let people know that these are not
9272       # typical AIX shared libraries.
9273       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9274     else
9275       # We preserve .a as extension for shared libraries through AIX4.2
9276       # and later when we are not doing run time linking.
9277       library_names_spec='${libname}${release}.a $libname.a'
9278       soname_spec='${libname}${release}${shared_ext}$major'
9279     fi
9280     shlibpath_var=LIBPATH
9281   fi
9282   ;;
9283
9284 amigaos*)
9285   case $host_cpu in
9286   powerpc)
9287     # Since July 2007 AmigaOS4 officially supports .so libraries.
9288     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9289     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290     ;;
9291   m68k)
9292     library_names_spec='$libname.ixlibrary $libname.a'
9293     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9294     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9295     ;;
9296   esac
9297   ;;
9298
9299 beos*)
9300   library_names_spec='${libname}${shared_ext}'
9301   dynamic_linker="$host_os ld.so"
9302   shlibpath_var=LIBRARY_PATH
9303   ;;
9304
9305 bsdi[45]*)
9306   version_type=linux
9307   need_version=no
9308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309   soname_spec='${libname}${release}${shared_ext}$major'
9310   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9311   shlibpath_var=LD_LIBRARY_PATH
9312   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9313   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9314   # the default ld.so.conf also contains /usr/contrib/lib and
9315   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9316   # libtool to hard-code these into programs
9317   ;;
9318
9319 cygwin* | mingw* | pw32* | cegcc*)
9320   version_type=windows
9321   shrext_cmds=".dll"
9322   need_version=no
9323   need_lib_prefix=no
9324
9325   case $GCC,$host_os in
9326   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9327     library_names_spec='$libname.dll.a'
9328     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9329     postinstall_cmds='base_file=`basename \${file}`~
9330       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9331       dldir=$destdir/`dirname \$dlpath`~
9332       test -d \$dldir || mkdir -p \$dldir~
9333       $install_prog $dir/$dlname \$dldir/$dlname~
9334       chmod a+x \$dldir/$dlname~
9335       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9336         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9337       fi'
9338     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9339       dlpath=$dir/\$dldll~
9340        $RM \$dlpath'
9341     shlibpath_overrides_runpath=yes
9342
9343     case $host_os in
9344     cygwin*)
9345       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9346       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9347       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9348       ;;
9349     mingw* | cegcc*)
9350       # MinGW DLLs use traditional 'lib' prefix
9351       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9352       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9353       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9354         # It is most probably a Windows format PATH printed by
9355         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9356         # path with ; separators, and with drive letters. We can handle the
9357         # drive letters (cygwin fileutils understands them), so leave them,
9358         # especially as we might pass files found there to a mingw objdump,
9359         # which wouldn't understand a cygwinified path. Ahh.
9360         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9361       else
9362         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9363       fi
9364       ;;
9365     pw32*)
9366       # pw32 DLLs use 'pw' prefix rather than 'lib'
9367       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9368       ;;
9369     esac
9370     ;;
9371
9372   *)
9373     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9374     ;;
9375   esac
9376   dynamic_linker='Win32 ld.exe'
9377   # FIXME: first we should search . and the directory the executable is in
9378   shlibpath_var=PATH
9379   ;;
9380
9381 darwin* | rhapsody*)
9382   dynamic_linker="$host_os dyld"
9383   version_type=darwin
9384   need_lib_prefix=no
9385   need_version=no
9386   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9387   soname_spec='${libname}${release}${major}$shared_ext'
9388   shlibpath_overrides_runpath=yes
9389   shlibpath_var=DYLD_LIBRARY_PATH
9390   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9391
9392   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9393   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9394   ;;
9395
9396 dgux*)
9397   version_type=linux
9398   need_lib_prefix=no
9399   need_version=no
9400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9401   soname_spec='${libname}${release}${shared_ext}$major'
9402   shlibpath_var=LD_LIBRARY_PATH
9403   ;;
9404
9405 freebsd1*)
9406   dynamic_linker=no
9407   ;;
9408
9409 freebsd* | dragonfly*)
9410   # DragonFly does not have aout.  When/if they implement a new
9411   # versioning mechanism, adjust this.
9412   if test -x /usr/bin/objformat; then
9413     objformat=`/usr/bin/objformat`
9414   else
9415     case $host_os in
9416     freebsd[123]*) objformat=aout ;;
9417     *) objformat=elf ;;
9418     esac
9419   fi
9420   version_type=freebsd-$objformat
9421   case $version_type in
9422     freebsd-elf*)
9423       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9424       need_version=no
9425       need_lib_prefix=no
9426       ;;
9427     freebsd-*)
9428       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9429       need_version=yes
9430       ;;
9431   esac
9432   shlibpath_var=LD_LIBRARY_PATH
9433   case $host_os in
9434   freebsd2*)
9435     shlibpath_overrides_runpath=yes
9436     ;;
9437   freebsd3.[01]* | freebsdelf3.[01]*)
9438     shlibpath_overrides_runpath=yes
9439     hardcode_into_libs=yes
9440     ;;
9441   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9442   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9443     shlibpath_overrides_runpath=no
9444     hardcode_into_libs=yes
9445     ;;
9446   *) # from 4.6 on, and DragonFly
9447     shlibpath_overrides_runpath=yes
9448     hardcode_into_libs=yes
9449     ;;
9450   esac
9451   ;;
9452
9453 gnu*)
9454   version_type=linux
9455   need_lib_prefix=no
9456   need_version=no
9457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9458   soname_spec='${libname}${release}${shared_ext}$major'
9459   shlibpath_var=LD_LIBRARY_PATH
9460   hardcode_into_libs=yes
9461   ;;
9462
9463 hpux9* | hpux10* | hpux11*)
9464   # Give a soname corresponding to the major version so that dld.sl refuses to
9465   # link against other versions.
9466   version_type=sunos
9467   need_lib_prefix=no
9468   need_version=no
9469   case $host_cpu in
9470   ia64*)
9471     shrext_cmds='.so'
9472     hardcode_into_libs=yes
9473     dynamic_linker="$host_os dld.so"
9474     shlibpath_var=LD_LIBRARY_PATH
9475     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9476     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9477     soname_spec='${libname}${release}${shared_ext}$major'
9478     if test "X$HPUX_IA64_MODE" = X32; then
9479       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9480     else
9481       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9482     fi
9483     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9484     ;;
9485   hppa*64*)
9486     shrext_cmds='.sl'
9487     hardcode_into_libs=yes
9488     dynamic_linker="$host_os dld.sl"
9489     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9490     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9491     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9492     soname_spec='${libname}${release}${shared_ext}$major'
9493     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9494     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9495     ;;
9496   *)
9497     shrext_cmds='.sl'
9498     dynamic_linker="$host_os dld.sl"
9499     shlibpath_var=SHLIB_PATH
9500     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9501     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9502     soname_spec='${libname}${release}${shared_ext}$major'
9503     ;;
9504   esac
9505   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9506   postinstall_cmds='chmod 555 $lib'
9507   ;;
9508
9509 interix[3-9]*)
9510   version_type=linux
9511   need_lib_prefix=no
9512   need_version=no
9513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9514   soname_spec='${libname}${release}${shared_ext}$major'
9515   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9516   shlibpath_var=LD_LIBRARY_PATH
9517   shlibpath_overrides_runpath=no
9518   hardcode_into_libs=yes
9519   ;;
9520
9521 irix5* | irix6* | nonstopux*)
9522   case $host_os in
9523     nonstopux*) version_type=nonstopux ;;
9524     *)
9525         if test "$lt_cv_prog_gnu_ld" = yes; then
9526                 version_type=linux
9527         else
9528                 version_type=irix
9529         fi ;;
9530   esac
9531   need_lib_prefix=no
9532   need_version=no
9533   soname_spec='${libname}${release}${shared_ext}$major'
9534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9535   case $host_os in
9536   irix5* | nonstopux*)
9537     libsuff= shlibsuff=
9538     ;;
9539   *)
9540     case $LD in # libtool.m4 will add one of these switches to LD
9541     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9542       libsuff= shlibsuff= libmagic=32-bit;;
9543     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9544       libsuff=32 shlibsuff=N32 libmagic=N32;;
9545     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9546       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9547     *) libsuff= shlibsuff= libmagic=never-match;;
9548     esac
9549     ;;
9550   esac
9551   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9552   shlibpath_overrides_runpath=no
9553   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9554   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9555   hardcode_into_libs=yes
9556   ;;
9557
9558 # No shared lib support for Linux oldld, aout, or coff.
9559 linux*oldld* | linux*aout* | linux*coff*)
9560   dynamic_linker=no
9561   ;;
9562
9563 # This must be Linux ELF.
9564 linux* | k*bsd*-gnu)
9565   version_type=linux
9566   need_lib_prefix=no
9567   need_version=no
9568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9569   soname_spec='${libname}${release}${shared_ext}$major'
9570   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9571   shlibpath_var=LD_LIBRARY_PATH
9572   shlibpath_overrides_runpath=no
9573   # Some binutils ld are patched to set DT_RUNPATH
9574   save_LDFLAGS=$LDFLAGS
9575   save_libdir=$libdir
9576   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9577        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h.  */
9580
9581 int
9582 main ()
9583 {
9584
9585   ;
9586   return 0;
9587 }
9588 _ACEOF
9589 if ac_fn_c_try_link "$LINENO"; then :
9590   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9591   shlibpath_overrides_runpath=yes
9592 fi
9593 fi
9594 rm -f core conftest.err conftest.$ac_objext \
9595     conftest$ac_exeext conftest.$ac_ext
9596   LDFLAGS=$save_LDFLAGS
9597   libdir=$save_libdir
9598
9599   # This implies no fast_install, which is unacceptable.
9600   # Some rework will be needed to allow for fast_install
9601   # before this can be enabled.
9602   hardcode_into_libs=yes
9603
9604   # Append ld.so.conf contents to the search path
9605   if test -f /etc/ld.so.conf; then
9606     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9607     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9608   fi
9609
9610   # We used to test for /lib/ld.so.1 and disable shared libraries on
9611   # powerpc, because MkLinux only supported shared libraries with the
9612   # GNU dynamic linker.  Since this was broken with cross compilers,
9613   # most powerpc-linux boxes support dynamic linking these days and
9614   # people can always --disable-shared, the test was removed, and we
9615   # assume the GNU/Linux dynamic linker is in use.
9616   dynamic_linker='GNU/Linux ld.so'
9617   ;;
9618
9619 netbsdelf*-gnu)
9620   version_type=linux
9621   need_lib_prefix=no
9622   need_version=no
9623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9624   soname_spec='${libname}${release}${shared_ext}$major'
9625   shlibpath_var=LD_LIBRARY_PATH
9626   shlibpath_overrides_runpath=no
9627   hardcode_into_libs=yes
9628   dynamic_linker='NetBSD ld.elf_so'
9629   ;;
9630
9631 netbsd*)
9632   version_type=sunos
9633   need_lib_prefix=no
9634   need_version=no
9635   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9636     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9637     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9638     dynamic_linker='NetBSD (a.out) ld.so'
9639   else
9640     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9641     soname_spec='${libname}${release}${shared_ext}$major'
9642     dynamic_linker='NetBSD ld.elf_so'
9643   fi
9644   shlibpath_var=LD_LIBRARY_PATH
9645   shlibpath_overrides_runpath=yes
9646   hardcode_into_libs=yes
9647   ;;
9648
9649 newsos6)
9650   version_type=linux
9651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9652   shlibpath_var=LD_LIBRARY_PATH
9653   shlibpath_overrides_runpath=yes
9654   ;;
9655
9656 *nto* | *qnx*)
9657   version_type=qnx
9658   need_lib_prefix=no
9659   need_version=no
9660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9661   soname_spec='${libname}${release}${shared_ext}$major'
9662   shlibpath_var=LD_LIBRARY_PATH
9663   shlibpath_overrides_runpath=no
9664   hardcode_into_libs=yes
9665   dynamic_linker='ldqnx.so'
9666   ;;
9667
9668 openbsd*)
9669   version_type=sunos
9670   sys_lib_dlsearch_path_spec="/usr/lib"
9671   need_lib_prefix=no
9672   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9673   case $host_os in
9674     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9675     *)                          need_version=no  ;;
9676   esac
9677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9678   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9679   shlibpath_var=LD_LIBRARY_PATH
9680   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9681     case $host_os in
9682       openbsd2.[89] | openbsd2.[89].*)
9683         shlibpath_overrides_runpath=no
9684         ;;
9685       *)
9686         shlibpath_overrides_runpath=yes
9687         ;;
9688       esac
9689   else
9690     shlibpath_overrides_runpath=yes
9691   fi
9692   ;;
9693
9694 os2*)
9695   libname_spec='$name'
9696   shrext_cmds=".dll"
9697   need_lib_prefix=no
9698   library_names_spec='$libname${shared_ext} $libname.a'
9699   dynamic_linker='OS/2 ld.exe'
9700   shlibpath_var=LIBPATH
9701   ;;
9702
9703 osf3* | osf4* | osf5*)
9704   version_type=osf
9705   need_lib_prefix=no
9706   need_version=no
9707   soname_spec='${libname}${release}${shared_ext}$major'
9708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9709   shlibpath_var=LD_LIBRARY_PATH
9710   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9711   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9712   ;;
9713
9714 rdos*)
9715   dynamic_linker=no
9716   ;;
9717
9718 solaris*)
9719   version_type=linux
9720   need_lib_prefix=no
9721   need_version=no
9722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723   soname_spec='${libname}${release}${shared_ext}$major'
9724   shlibpath_var=LD_LIBRARY_PATH
9725   shlibpath_overrides_runpath=yes
9726   hardcode_into_libs=yes
9727   # ldd complains unless libraries are executable
9728   postinstall_cmds='chmod +x $lib'
9729   ;;
9730
9731 sunos4*)
9732   version_type=sunos
9733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9734   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9735   shlibpath_var=LD_LIBRARY_PATH
9736   shlibpath_overrides_runpath=yes
9737   if test "$with_gnu_ld" = yes; then
9738     need_lib_prefix=no
9739   fi
9740   need_version=yes
9741   ;;
9742
9743 sysv4 | sysv4.3*)
9744   version_type=linux
9745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746   soname_spec='${libname}${release}${shared_ext}$major'
9747   shlibpath_var=LD_LIBRARY_PATH
9748   case $host_vendor in
9749     sni)
9750       shlibpath_overrides_runpath=no
9751       need_lib_prefix=no
9752       runpath_var=LD_RUN_PATH
9753       ;;
9754     siemens)
9755       need_lib_prefix=no
9756       ;;
9757     motorola)
9758       need_lib_prefix=no
9759       need_version=no
9760       shlibpath_overrides_runpath=no
9761       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9762       ;;
9763   esac
9764   ;;
9765
9766 sysv4*MP*)
9767   if test -d /usr/nec ;then
9768     version_type=linux
9769     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9770     soname_spec='$libname${shared_ext}.$major'
9771     shlibpath_var=LD_LIBRARY_PATH
9772   fi
9773   ;;
9774
9775 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9776   version_type=freebsd-elf
9777   need_lib_prefix=no
9778   need_version=no
9779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9780   soname_spec='${libname}${release}${shared_ext}$major'
9781   shlibpath_var=LD_LIBRARY_PATH
9782   shlibpath_overrides_runpath=yes
9783   hardcode_into_libs=yes
9784   if test "$with_gnu_ld" = yes; then
9785     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9786   else
9787     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9788     case $host_os in
9789       sco3.2v5*)
9790         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9791         ;;
9792     esac
9793   fi
9794   sys_lib_dlsearch_path_spec='/usr/lib'
9795   ;;
9796
9797 tpf*)
9798   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9799   version_type=linux
9800   need_lib_prefix=no
9801   need_version=no
9802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9803   shlibpath_var=LD_LIBRARY_PATH
9804   shlibpath_overrides_runpath=no
9805   hardcode_into_libs=yes
9806   ;;
9807
9808 uts4*)
9809   version_type=linux
9810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9811   soname_spec='${libname}${release}${shared_ext}$major'
9812   shlibpath_var=LD_LIBRARY_PATH
9813   ;;
9814
9815 *)
9816   dynamic_linker=no
9817   ;;
9818 esac
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9820 $as_echo "$dynamic_linker" >&6; }
9821 test "$dynamic_linker" = no && can_build_shared=no
9822
9823 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9824 if test "$GCC" = yes; then
9825   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9826 fi
9827
9828 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9829   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9830 fi
9831 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9832   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9833 fi
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9922 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9923 hardcode_action=
9924 if test -n "$hardcode_libdir_flag_spec" ||
9925    test -n "$runpath_var" ||
9926    test "X$hardcode_automatic" = "Xyes" ; then
9927
9928   # We can hardcode non-existent directories.
9929   if test "$hardcode_direct" != no &&
9930      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9931      # have to relink, otherwise we might link with an installed library
9932      # when we should be linking with a yet-to-be-installed one
9933      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9934      test "$hardcode_minus_L" != no; then
9935     # Linking always hardcodes the temporary library directory.
9936     hardcode_action=relink
9937   else
9938     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9939     hardcode_action=immediate
9940   fi
9941 else
9942   # We cannot hardcode anything, or else we can only hardcode existing
9943   # directories.
9944   hardcode_action=unsupported
9945 fi
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9947 $as_echo "$hardcode_action" >&6; }
9948
9949 if test "$hardcode_action" = relink ||
9950    test "$inherit_rpath" = yes; then
9951   # Fast installation is not supported
9952   enable_fast_install=no
9953 elif test "$shlibpath_overrides_runpath" = yes ||
9954      test "$enable_shared" = no; then
9955   # Fast installation is not necessary
9956   enable_fast_install=needless
9957 fi
9958
9959
9960
9961
9962
9963
9964   if test "x$enable_dlopen" != xyes; then
9965   enable_dlopen=unknown
9966   enable_dlopen_self=unknown
9967   enable_dlopen_self_static=unknown
9968 else
9969   lt_cv_dlopen=no
9970   lt_cv_dlopen_libs=
9971
9972   case $host_os in
9973   beos*)
9974     lt_cv_dlopen="load_add_on"
9975     lt_cv_dlopen_libs=
9976     lt_cv_dlopen_self=yes
9977     ;;
9978
9979   mingw* | pw32* | cegcc*)
9980     lt_cv_dlopen="LoadLibrary"
9981     lt_cv_dlopen_libs=
9982     ;;
9983
9984   cygwin*)
9985     lt_cv_dlopen="dlopen"
9986     lt_cv_dlopen_libs=
9987     ;;
9988
9989   darwin*)
9990   # if libdl is installed we need to link against it
9991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9992 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9993 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9994   $as_echo_n "(cached) " >&6
9995 else
9996   ac_check_lib_save_LIBS=$LIBS
9997 LIBS="-ldl  $LIBS"
9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999 /* end confdefs.h.  */
10000
10001 /* Override any GCC internal prototype to avoid an error.
10002    Use char because int might match the return type of a GCC
10003    builtin and then its argument prototype would still apply.  */
10004 #ifdef __cplusplus
10005 extern "C"
10006 #endif
10007 char dlopen ();
10008 int
10009 main ()
10010 {
10011 return dlopen ();
10012   ;
10013   return 0;
10014 }
10015 _ACEOF
10016 if ac_fn_c_try_link "$LINENO"; then :
10017   ac_cv_lib_dl_dlopen=yes
10018 else
10019   ac_cv_lib_dl_dlopen=no
10020 fi
10021 rm -f core conftest.err conftest.$ac_objext \
10022     conftest$ac_exeext conftest.$ac_ext
10023 LIBS=$ac_check_lib_save_LIBS
10024 fi
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10026 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10027 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10028   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10029 else
10030
10031     lt_cv_dlopen="dyld"
10032     lt_cv_dlopen_libs=
10033     lt_cv_dlopen_self=yes
10034
10035 fi
10036
10037     ;;
10038
10039   *)
10040     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10041 if test "x$ac_cv_func_shl_load" = x""yes; then :
10042   lt_cv_dlopen="shl_load"
10043 else
10044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10045 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10046 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10047   $as_echo_n "(cached) " >&6
10048 else
10049   ac_check_lib_save_LIBS=$LIBS
10050 LIBS="-ldld  $LIBS"
10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h.  */
10053
10054 /* Override any GCC internal prototype to avoid an error.
10055    Use char because int might match the return type of a GCC
10056    builtin and then its argument prototype would still apply.  */
10057 #ifdef __cplusplus
10058 extern "C"
10059 #endif
10060 char shl_load ();
10061 int
10062 main ()
10063 {
10064 return shl_load ();
10065   ;
10066   return 0;
10067 }
10068 _ACEOF
10069 if ac_fn_c_try_link "$LINENO"; then :
10070   ac_cv_lib_dld_shl_load=yes
10071 else
10072   ac_cv_lib_dld_shl_load=no
10073 fi
10074 rm -f core conftest.err conftest.$ac_objext \
10075     conftest$ac_exeext conftest.$ac_ext
10076 LIBS=$ac_check_lib_save_LIBS
10077 fi
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10079 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10080 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10081   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10082 else
10083   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10084 if test "x$ac_cv_func_dlopen" = x""yes; then :
10085   lt_cv_dlopen="dlopen"
10086 else
10087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10088 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10089 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10090   $as_echo_n "(cached) " >&6
10091 else
10092   ac_check_lib_save_LIBS=$LIBS
10093 LIBS="-ldl  $LIBS"
10094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095 /* end confdefs.h.  */
10096
10097 /* Override any GCC internal prototype to avoid an error.
10098    Use char because int might match the return type of a GCC
10099    builtin and then its argument prototype would still apply.  */
10100 #ifdef __cplusplus
10101 extern "C"
10102 #endif
10103 char dlopen ();
10104 int
10105 main ()
10106 {
10107 return dlopen ();
10108   ;
10109   return 0;
10110 }
10111 _ACEOF
10112 if ac_fn_c_try_link "$LINENO"; then :
10113   ac_cv_lib_dl_dlopen=yes
10114 else
10115   ac_cv_lib_dl_dlopen=no
10116 fi
10117 rm -f core conftest.err conftest.$ac_objext \
10118     conftest$ac_exeext conftest.$ac_ext
10119 LIBS=$ac_check_lib_save_LIBS
10120 fi
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10122 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10123 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10124   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10125 else
10126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10127 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10128 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10129   $as_echo_n "(cached) " >&6
10130 else
10131   ac_check_lib_save_LIBS=$LIBS
10132 LIBS="-lsvld  $LIBS"
10133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134 /* end confdefs.h.  */
10135
10136 /* Override any GCC internal prototype to avoid an error.
10137    Use char because int might match the return type of a GCC
10138    builtin and then its argument prototype would still apply.  */
10139 #ifdef __cplusplus
10140 extern "C"
10141 #endif
10142 char dlopen ();
10143 int
10144 main ()
10145 {
10146 return dlopen ();
10147   ;
10148   return 0;
10149 }
10150 _ACEOF
10151 if ac_fn_c_try_link "$LINENO"; then :
10152   ac_cv_lib_svld_dlopen=yes
10153 else
10154   ac_cv_lib_svld_dlopen=no
10155 fi
10156 rm -f core conftest.err conftest.$ac_objext \
10157     conftest$ac_exeext conftest.$ac_ext
10158 LIBS=$ac_check_lib_save_LIBS
10159 fi
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10161 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10162 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10163   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10164 else
10165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10166 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10167 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10168   $as_echo_n "(cached) " >&6
10169 else
10170   ac_check_lib_save_LIBS=$LIBS
10171 LIBS="-ldld  $LIBS"
10172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10173 /* end confdefs.h.  */
10174
10175 /* Override any GCC internal prototype to avoid an error.
10176    Use char because int might match the return type of a GCC
10177    builtin and then its argument prototype would still apply.  */
10178 #ifdef __cplusplus
10179 extern "C"
10180 #endif
10181 char dld_link ();
10182 int
10183 main ()
10184 {
10185 return dld_link ();
10186   ;
10187   return 0;
10188 }
10189 _ACEOF
10190 if ac_fn_c_try_link "$LINENO"; then :
10191   ac_cv_lib_dld_dld_link=yes
10192 else
10193   ac_cv_lib_dld_dld_link=no
10194 fi
10195 rm -f core conftest.err conftest.$ac_objext \
10196     conftest$ac_exeext conftest.$ac_ext
10197 LIBS=$ac_check_lib_save_LIBS
10198 fi
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10200 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10201 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10202   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10203 fi
10204
10205
10206 fi
10207
10208
10209 fi
10210
10211
10212 fi
10213
10214
10215 fi
10216
10217
10218 fi
10219
10220     ;;
10221   esac
10222
10223   if test "x$lt_cv_dlopen" != xno; then
10224     enable_dlopen=yes
10225   else
10226     enable_dlopen=no
10227   fi
10228
10229   case $lt_cv_dlopen in
10230   dlopen)
10231     save_CPPFLAGS="$CPPFLAGS"
10232     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10233
10234     save_LDFLAGS="$LDFLAGS"
10235     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10236
10237     save_LIBS="$LIBS"
10238     LIBS="$lt_cv_dlopen_libs $LIBS"
10239
10240     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10241 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10242 if test "${lt_cv_dlopen_self+set}" = set; then :
10243   $as_echo_n "(cached) " >&6
10244 else
10245           if test "$cross_compiling" = yes; then :
10246   lt_cv_dlopen_self=cross
10247 else
10248   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10249   lt_status=$lt_dlunknown
10250   cat > conftest.$ac_ext <<_LT_EOF
10251 #line 10251 "configure"
10252 #include "confdefs.h"
10253
10254 #if HAVE_DLFCN_H
10255 #include <dlfcn.h>
10256 #endif
10257
10258 #include <stdio.h>
10259
10260 #ifdef RTLD_GLOBAL
10261 #  define LT_DLGLOBAL           RTLD_GLOBAL
10262 #else
10263 #  ifdef DL_GLOBAL
10264 #    define LT_DLGLOBAL         DL_GLOBAL
10265 #  else
10266 #    define LT_DLGLOBAL         0
10267 #  endif
10268 #endif
10269
10270 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10271    find out it does not work in some platform. */
10272 #ifndef LT_DLLAZY_OR_NOW
10273 #  ifdef RTLD_LAZY
10274 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10275 #  else
10276 #    ifdef DL_LAZY
10277 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10278 #    else
10279 #      ifdef RTLD_NOW
10280 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10281 #      else
10282 #        ifdef DL_NOW
10283 #          define LT_DLLAZY_OR_NOW      DL_NOW
10284 #        else
10285 #          define LT_DLLAZY_OR_NOW      0
10286 #        endif
10287 #      endif
10288 #    endif
10289 #  endif
10290 #endif
10291
10292 void fnord() { int i=42;}
10293 int main ()
10294 {
10295   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10296   int status = $lt_dlunknown;
10297
10298   if (self)
10299     {
10300       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10301       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10302       /* dlclose (self); */
10303     }
10304   else
10305     puts (dlerror ());
10306
10307   return status;
10308 }
10309 _LT_EOF
10310   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10311   (eval $ac_link) 2>&5
10312   ac_status=$?
10313   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10314   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10315     (./conftest; exit; ) >&5 2>/dev/null
10316     lt_status=$?
10317     case x$lt_status in
10318       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10319       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10320       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10321     esac
10322   else :
10323     # compilation failed
10324     lt_cv_dlopen_self=no
10325   fi
10326 fi
10327 rm -fr conftest*
10328
10329
10330 fi
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10332 $as_echo "$lt_cv_dlopen_self" >&6; }
10333
10334     if test "x$lt_cv_dlopen_self" = xyes; then
10335       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10336       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10337 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10338 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10339   $as_echo_n "(cached) " >&6
10340 else
10341           if test "$cross_compiling" = yes; then :
10342   lt_cv_dlopen_self_static=cross
10343 else
10344   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10345   lt_status=$lt_dlunknown
10346   cat > conftest.$ac_ext <<_LT_EOF
10347 #line 10347 "configure"
10348 #include "confdefs.h"
10349
10350 #if HAVE_DLFCN_H
10351 #include <dlfcn.h>
10352 #endif
10353
10354 #include <stdio.h>
10355
10356 #ifdef RTLD_GLOBAL
10357 #  define LT_DLGLOBAL           RTLD_GLOBAL
10358 #else
10359 #  ifdef DL_GLOBAL
10360 #    define LT_DLGLOBAL         DL_GLOBAL
10361 #  else
10362 #    define LT_DLGLOBAL         0
10363 #  endif
10364 #endif
10365
10366 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10367    find out it does not work in some platform. */
10368 #ifndef LT_DLLAZY_OR_NOW
10369 #  ifdef RTLD_LAZY
10370 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10371 #  else
10372 #    ifdef DL_LAZY
10373 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10374 #    else
10375 #      ifdef RTLD_NOW
10376 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10377 #      else
10378 #        ifdef DL_NOW
10379 #          define LT_DLLAZY_OR_NOW      DL_NOW
10380 #        else
10381 #          define LT_DLLAZY_OR_NOW      0
10382 #        endif
10383 #      endif
10384 #    endif
10385 #  endif
10386 #endif
10387
10388 void fnord() { int i=42;}
10389 int main ()
10390 {
10391   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10392   int status = $lt_dlunknown;
10393
10394   if (self)
10395     {
10396       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10397       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10398       /* dlclose (self); */
10399     }
10400   else
10401     puts (dlerror ());
10402
10403   return status;
10404 }
10405 _LT_EOF
10406   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10407   (eval $ac_link) 2>&5
10408   ac_status=$?
10409   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10410   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10411     (./conftest; exit; ) >&5 2>/dev/null
10412     lt_status=$?
10413     case x$lt_status in
10414       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10415       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10416       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10417     esac
10418   else :
10419     # compilation failed
10420     lt_cv_dlopen_self_static=no
10421   fi
10422 fi
10423 rm -fr conftest*
10424
10425
10426 fi
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10428 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10429     fi
10430
10431     CPPFLAGS="$save_CPPFLAGS"
10432     LDFLAGS="$save_LDFLAGS"
10433     LIBS="$save_LIBS"
10434     ;;
10435   esac
10436
10437   case $lt_cv_dlopen_self in
10438   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10439   *) enable_dlopen_self=unknown ;;
10440   esac
10441
10442   case $lt_cv_dlopen_self_static in
10443   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10444   *) enable_dlopen_self_static=unknown ;;
10445   esac
10446 fi
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464 striplib=
10465 old_striplib=
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10467 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10468 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10469   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10470   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10472 $as_echo "yes" >&6; }
10473 else
10474 # FIXME - insert some real tests, host_os isn't really good enough
10475   case $host_os in
10476   darwin*)
10477     if test -n "$STRIP" ; then
10478       striplib="$STRIP -x"
10479       old_striplib="$STRIP -S"
10480       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10481 $as_echo "yes" >&6; }
10482     else
10483       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10484 $as_echo "no" >&6; }
10485     fi
10486     ;;
10487   *)
10488     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10489 $as_echo "no" >&6; }
10490     ;;
10491   esac
10492 fi
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505   # Report which library types will actually be built
10506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10507 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10509 $as_echo "$can_build_shared" >&6; }
10510
10511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10512 $as_echo_n "checking whether to build shared libraries... " >&6; }
10513   test "$can_build_shared" = "no" && enable_shared=no
10514
10515   # On AIX, shared libraries and static libraries use the same namespace, and
10516   # are all built from PIC.
10517   case $host_os in
10518   aix3*)
10519     test "$enable_shared" = yes && enable_static=no
10520     if test -n "$RANLIB"; then
10521       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10522       postinstall_cmds='$RANLIB $lib'
10523     fi
10524     ;;
10525
10526   aix[4-9]*)
10527     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10528       test "$enable_shared" = yes && enable_static=no
10529     fi
10530     ;;
10531   esac
10532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10533 $as_echo "$enable_shared" >&6; }
10534
10535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10536 $as_echo_n "checking whether to build static libraries... " >&6; }
10537   # Make sure either enable_shared or enable_static is yes.
10538   test "$enable_shared" = yes || enable_static=yes
10539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10540 $as_echo "$enable_static" >&6; }
10541
10542
10543
10544
10545 fi
10546 ac_ext=c
10547 ac_cpp='$CPP $CPPFLAGS'
10548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10551
10552 CC="$lt_save_CC"
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566         ac_config_commands="$ac_config_commands libtool"
10567
10568
10569
10570
10571 # Only expand once:
10572
10573
10574
10575 # Check whether --enable-silent-rules was given.
10576 if test "${enable_silent_rules+set}" = set; then :
10577   enableval=$enable_silent_rules;
10578 fi
10579
10580 case $enable_silent_rules in
10581 yes) AM_DEFAULT_VERBOSITY=0;;
10582 no)  AM_DEFAULT_VERBOSITY=1;;
10583 *)   AM_DEFAULT_VERBOSITY=0;;
10584 esac
10585 AM_BACKSLASH='\'
10586
10587
10588 # libtool -version-info
10589 LT_VERSION=0:34:0
10590
10591
10592 # Checks for programs.
10593 ac_ext=cpp
10594 ac_cpp='$CXXCPP $CPPFLAGS'
10595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10598 if test -z "$CXX"; then
10599   if test -n "$CCC"; then
10600     CXX=$CCC
10601   else
10602     if test -n "$ac_tool_prefix"; then
10603   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10604   do
10605     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10608 $as_echo_n "checking for $ac_word... " >&6; }
10609 if test "${ac_cv_prog_CXX+set}" = set; then :
10610   $as_echo_n "(cached) " >&6
10611 else
10612   if test -n "$CXX"; then
10613   ac_cv_prog_CXX="$CXX" # Let the user override the test.
10614 else
10615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10616 for as_dir in $PATH
10617 do
10618   IFS=$as_save_IFS
10619   test -z "$as_dir" && as_dir=.
10620     for ac_exec_ext in '' $ac_executable_extensions; do
10621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10622     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10624     break 2
10625   fi
10626 done
10627   done
10628 IFS=$as_save_IFS
10629
10630 fi
10631 fi
10632 CXX=$ac_cv_prog_CXX
10633 if test -n "$CXX"; then
10634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10635 $as_echo "$CXX" >&6; }
10636 else
10637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10638 $as_echo "no" >&6; }
10639 fi
10640
10641
10642     test -n "$CXX" && break
10643   done
10644 fi
10645 if test -z "$CXX"; then
10646   ac_ct_CXX=$CXX
10647   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10648 do
10649   # Extract the first word of "$ac_prog", so it can be a program name with args.
10650 set dummy $ac_prog; ac_word=$2
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10652 $as_echo_n "checking for $ac_word... " >&6; }
10653 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10654   $as_echo_n "(cached) " >&6
10655 else
10656   if test -n "$ac_ct_CXX"; then
10657   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10658 else
10659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10660 for as_dir in $PATH
10661 do
10662   IFS=$as_save_IFS
10663   test -z "$as_dir" && as_dir=.
10664     for ac_exec_ext in '' $ac_executable_extensions; do
10665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10666     ac_cv_prog_ac_ct_CXX="$ac_prog"
10667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10668     break 2
10669   fi
10670 done
10671   done
10672 IFS=$as_save_IFS
10673
10674 fi
10675 fi
10676 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10677 if test -n "$ac_ct_CXX"; then
10678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10679 $as_echo "$ac_ct_CXX" >&6; }
10680 else
10681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682 $as_echo "no" >&6; }
10683 fi
10684
10685
10686   test -n "$ac_ct_CXX" && break
10687 done
10688
10689   if test "x$ac_ct_CXX" = x; then
10690     CXX="g++"
10691   else
10692     case $cross_compiling:$ac_tool_warned in
10693 yes:)
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10696 ac_tool_warned=yes ;;
10697 esac
10698     CXX=$ac_ct_CXX
10699   fi
10700 fi
10701
10702   fi
10703 fi
10704 # Provide some information about the compiler.
10705 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10706 set X $ac_compile
10707 ac_compiler=$2
10708 for ac_option in --version -v -V -qversion; do
10709   { { ac_try="$ac_compiler $ac_option >&5"
10710 case "(($ac_try" in
10711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712   *) ac_try_echo=$ac_try;;
10713 esac
10714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10715 $as_echo "$ac_try_echo"; } >&5
10716   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10717   ac_status=$?
10718   if test -s conftest.err; then
10719     sed '10a\
10720 ... rest of stderr output deleted ...
10721          10q' conftest.err >conftest.er1
10722     cat conftest.er1 >&5
10723     rm -f conftest.er1 conftest.err
10724   fi
10725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10726   test $ac_status = 0; }
10727 done
10728
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10730 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10731 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10732   $as_echo_n "(cached) " >&6
10733 else
10734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h.  */
10736
10737 int
10738 main ()
10739 {
10740 #ifndef __GNUC__
10741        choke me
10742 #endif
10743
10744   ;
10745   return 0;
10746 }
10747 _ACEOF
10748 if ac_fn_cxx_try_compile "$LINENO"; then :
10749   ac_compiler_gnu=yes
10750 else
10751   ac_compiler_gnu=no
10752 fi
10753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10754 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10755
10756 fi
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10758 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10759 if test $ac_compiler_gnu = yes; then
10760   GXX=yes
10761 else
10762   GXX=
10763 fi
10764 ac_test_CXXFLAGS=${CXXFLAGS+set}
10765 ac_save_CXXFLAGS=$CXXFLAGS
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10767 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10768 if test "${ac_cv_prog_cxx_g+set}" = set; then :
10769   $as_echo_n "(cached) " >&6
10770 else
10771   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10772    ac_cxx_werror_flag=yes
10773    ac_cv_prog_cxx_g=no
10774    CXXFLAGS="-g"
10775    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h.  */
10777
10778 int
10779 main ()
10780 {
10781
10782   ;
10783   return 0;
10784 }
10785 _ACEOF
10786 if ac_fn_cxx_try_compile "$LINENO"; then :
10787   ac_cv_prog_cxx_g=yes
10788 else
10789   CXXFLAGS=""
10790       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h.  */
10792
10793 int
10794 main ()
10795 {
10796
10797   ;
10798   return 0;
10799 }
10800 _ACEOF
10801 if ac_fn_cxx_try_compile "$LINENO"; then :
10802
10803 else
10804   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10805          CXXFLAGS="-g"
10806          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10807 /* end confdefs.h.  */
10808
10809 int
10810 main ()
10811 {
10812
10813   ;
10814   return 0;
10815 }
10816 _ACEOF
10817 if ac_fn_cxx_try_compile "$LINENO"; then :
10818   ac_cv_prog_cxx_g=yes
10819 fi
10820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10821 fi
10822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10823 fi
10824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10825    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10826 fi
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10828 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10829 if test "$ac_test_CXXFLAGS" = set; then
10830   CXXFLAGS=$ac_save_CXXFLAGS
10831 elif test $ac_cv_prog_cxx_g = yes; then
10832   if test "$GXX" = yes; then
10833     CXXFLAGS="-g -O2"
10834   else
10835     CXXFLAGS="-g"
10836   fi
10837 else
10838   if test "$GXX" = yes; then
10839     CXXFLAGS="-O2"
10840   else
10841     CXXFLAGS=
10842   fi
10843 fi
10844 ac_ext=c
10845 ac_cpp='$CPP $CPPFLAGS'
10846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10849
10850 depcc="$CXX"  am_compiler_list=
10851
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10853 $as_echo_n "checking dependency style of $depcc... " >&6; }
10854 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10855   $as_echo_n "(cached) " >&6
10856 else
10857   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10858   # We make a subdir and do the tests there.  Otherwise we can end up
10859   # making bogus files that we don't know about and never remove.  For
10860   # instance it was reported that on HP-UX the gcc test will end up
10861   # making a dummy file named `D' -- because `-MD' means `put the output
10862   # in D'.
10863   mkdir conftest.dir
10864   # Copy depcomp to subdir because otherwise we won't find it if we're
10865   # using a relative directory.
10866   cp "$am_depcomp" conftest.dir
10867   cd conftest.dir
10868   # We will build objects and dependencies in a subdirectory because
10869   # it helps to detect inapplicable dependency modes.  For instance
10870   # both Tru64's cc and ICC support -MD to output dependencies as a
10871   # side effect of compilation, but ICC will put the dependencies in
10872   # the current directory while Tru64 will put them in the object
10873   # directory.
10874   mkdir sub
10875
10876   am_cv_CXX_dependencies_compiler_type=none
10877   if test "$am_compiler_list" = ""; then
10878      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10879   fi
10880   am__universal=false
10881   case " $depcc " in #(
10882      *\ -arch\ *\ -arch\ *) am__universal=true ;;
10883      esac
10884
10885   for depmode in $am_compiler_list; do
10886     # Setup a source with many dependencies, because some compilers
10887     # like to wrap large dependency lists on column 80 (with \), and
10888     # we should not choose a depcomp mode which is confused by this.
10889     #
10890     # We need to recreate these files for each test, as the compiler may
10891     # overwrite some of them when testing with obscure command lines.
10892     # This happens at least with the AIX C compiler.
10893     : > sub/conftest.c
10894     for i in 1 2 3 4 5 6; do
10895       echo '#include "conftst'$i'.h"' >> sub/conftest.c
10896       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10897       # Solaris 8's {/usr,}/bin/sh.
10898       touch sub/conftst$i.h
10899     done
10900     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10901
10902     # We check with `-c' and `-o' for the sake of the "dashmstdout"
10903     # mode.  It turns out that the SunPro C++ compiler does not properly
10904     # handle `-M -o', and we need to detect this.  Also, some Intel
10905     # versions had trouble with output in subdirs
10906     am__obj=sub/conftest.${OBJEXT-o}
10907     am__minus_obj="-o $am__obj"
10908     case $depmode in
10909     gcc)
10910       # This depmode causes a compiler race in universal mode.
10911       test "$am__universal" = false || continue
10912       ;;
10913     nosideeffect)
10914       # after this tag, mechanisms are not by side-effect, so they'll
10915       # only be used when explicitly requested
10916       if test "x$enable_dependency_tracking" = xyes; then
10917         continue
10918       else
10919         break
10920       fi
10921       ;;
10922     msvisualcpp | msvcmsys)
10923       # This compiler won't grok `-c -o', but also, the minuso test has
10924       # not run yet.  These depmodes are late enough in the game, and
10925       # so weak that their functioning should not be impacted.
10926       am__obj=conftest.${OBJEXT-o}
10927       am__minus_obj=
10928       ;;
10929     none) break ;;
10930     esac
10931     if depmode=$depmode \
10932        source=sub/conftest.c object=$am__obj \
10933        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10934        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10935          >/dev/null 2>conftest.err &&
10936        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10937        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10938        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10939        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10940       # icc doesn't choke on unknown options, it will just issue warnings
10941       # or remarks (even with -Werror).  So we grep stderr for any message
10942       # that says an option was ignored or not supported.
10943       # When given -MP, icc 7.0 and 7.1 complain thusly:
10944       #   icc: Command line warning: ignoring option '-M'; no argument required
10945       # The diagnosis changed in icc 8.0:
10946       #   icc: Command line remark: option '-MP' not supported
10947       if (grep 'ignoring option' conftest.err ||
10948           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10949         am_cv_CXX_dependencies_compiler_type=$depmode
10950         break
10951       fi
10952     fi
10953   done
10954
10955   cd ..
10956   rm -rf conftest.dir
10957 else
10958   am_cv_CXX_dependencies_compiler_type=none
10959 fi
10960
10961 fi
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10963 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10964 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10965
10966  if
10967   test "x$enable_dependency_tracking" != xno \
10968   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10969   am__fastdepCXX_TRUE=
10970   am__fastdepCXX_FALSE='#'
10971 else
10972   am__fastdepCXX_TRUE='#'
10973   am__fastdepCXX_FALSE=
10974 fi
10975
10976
10977
10978 ac_ext=cpp
10979 ac_cpp='$CXXCPP $CPPFLAGS'
10980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10983 if test -z "$CXX"; then
10984   if test -n "$CCC"; then
10985     CXX=$CCC
10986   else
10987     if test -n "$ac_tool_prefix"; then
10988   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10989   do
10990     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10991 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10993 $as_echo_n "checking for $ac_word... " >&6; }
10994 if test "${ac_cv_prog_CXX+set}" = set; then :
10995   $as_echo_n "(cached) " >&6
10996 else
10997   if test -n "$CXX"; then
10998   ac_cv_prog_CXX="$CXX" # Let the user override the test.
10999 else
11000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001 for as_dir in $PATH
11002 do
11003   IFS=$as_save_IFS
11004   test -z "$as_dir" && as_dir=.
11005     for ac_exec_ext in '' $ac_executable_extensions; do
11006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11007     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11009     break 2
11010   fi
11011 done
11012   done
11013 IFS=$as_save_IFS
11014
11015 fi
11016 fi
11017 CXX=$ac_cv_prog_CXX
11018 if test -n "$CXX"; then
11019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11020 $as_echo "$CXX" >&6; }
11021 else
11022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023 $as_echo "no" >&6; }
11024 fi
11025
11026
11027     test -n "$CXX" && break
11028   done
11029 fi
11030 if test -z "$CXX"; then
11031   ac_ct_CXX=$CXX
11032   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11033 do
11034   # Extract the first word of "$ac_prog", so it can be a program name with args.
11035 set dummy $ac_prog; ac_word=$2
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11037 $as_echo_n "checking for $ac_word... " >&6; }
11038 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11039   $as_echo_n "(cached) " >&6
11040 else
11041   if test -n "$ac_ct_CXX"; then
11042   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11043 else
11044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11045 for as_dir in $PATH
11046 do
11047   IFS=$as_save_IFS
11048   test -z "$as_dir" && as_dir=.
11049     for ac_exec_ext in '' $ac_executable_extensions; do
11050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11051     ac_cv_prog_ac_ct_CXX="$ac_prog"
11052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11053     break 2
11054   fi
11055 done
11056   done
11057 IFS=$as_save_IFS
11058
11059 fi
11060 fi
11061 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11062 if test -n "$ac_ct_CXX"; then
11063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11064 $as_echo "$ac_ct_CXX" >&6; }
11065 else
11066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067 $as_echo "no" >&6; }
11068 fi
11069
11070
11071   test -n "$ac_ct_CXX" && break
11072 done
11073
11074   if test "x$ac_ct_CXX" = x; then
11075     CXX="g++"
11076   else
11077     case $cross_compiling:$ac_tool_warned in
11078 yes:)
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11081 ac_tool_warned=yes ;;
11082 esac
11083     CXX=$ac_ct_CXX
11084   fi
11085 fi
11086
11087   fi
11088 fi
11089 # Provide some information about the compiler.
11090 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11091 set X $ac_compile
11092 ac_compiler=$2
11093 for ac_option in --version -v -V -qversion; do
11094   { { ac_try="$ac_compiler $ac_option >&5"
11095 case "(($ac_try" in
11096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097   *) ac_try_echo=$ac_try;;
11098 esac
11099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11100 $as_echo "$ac_try_echo"; } >&5
11101   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11102   ac_status=$?
11103   if test -s conftest.err; then
11104     sed '10a\
11105 ... rest of stderr output deleted ...
11106          10q' conftest.err >conftest.er1
11107     cat conftest.er1 >&5
11108     rm -f conftest.er1 conftest.err
11109   fi
11110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11111   test $ac_status = 0; }
11112 done
11113
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11115 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11116 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11117   $as_echo_n "(cached) " >&6
11118 else
11119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11120 /* end confdefs.h.  */
11121
11122 int
11123 main ()
11124 {
11125 #ifndef __GNUC__
11126        choke me
11127 #endif
11128
11129   ;
11130   return 0;
11131 }
11132 _ACEOF
11133 if ac_fn_cxx_try_compile "$LINENO"; then :
11134   ac_compiler_gnu=yes
11135 else
11136   ac_compiler_gnu=no
11137 fi
11138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11139 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11140
11141 fi
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11143 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11144 if test $ac_compiler_gnu = yes; then
11145   GXX=yes
11146 else
11147   GXX=
11148 fi
11149 ac_test_CXXFLAGS=${CXXFLAGS+set}
11150 ac_save_CXXFLAGS=$CXXFLAGS
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11152 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11153 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11154   $as_echo_n "(cached) " >&6
11155 else
11156   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11157    ac_cxx_werror_flag=yes
11158    ac_cv_prog_cxx_g=no
11159    CXXFLAGS="-g"
11160    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11161 /* end confdefs.h.  */
11162
11163 int
11164 main ()
11165 {
11166
11167   ;
11168   return 0;
11169 }
11170 _ACEOF
11171 if ac_fn_cxx_try_compile "$LINENO"; then :
11172   ac_cv_prog_cxx_g=yes
11173 else
11174   CXXFLAGS=""
11175       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11176 /* end confdefs.h.  */
11177
11178 int
11179 main ()
11180 {
11181
11182   ;
11183   return 0;
11184 }
11185 _ACEOF
11186 if ac_fn_cxx_try_compile "$LINENO"; then :
11187
11188 else
11189   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11190          CXXFLAGS="-g"
11191          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h.  */
11193
11194 int
11195 main ()
11196 {
11197
11198   ;
11199   return 0;
11200 }
11201 _ACEOF
11202 if ac_fn_cxx_try_compile "$LINENO"; then :
11203   ac_cv_prog_cxx_g=yes
11204 fi
11205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11206 fi
11207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11208 fi
11209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11210    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11211 fi
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11213 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11214 if test "$ac_test_CXXFLAGS" = set; then
11215   CXXFLAGS=$ac_save_CXXFLAGS
11216 elif test $ac_cv_prog_cxx_g = yes; then
11217   if test "$GXX" = yes; then
11218     CXXFLAGS="-g -O2"
11219   else
11220     CXXFLAGS="-g"
11221   fi
11222 else
11223   if test "$GXX" = yes; then
11224     CXXFLAGS="-O2"
11225   else
11226     CXXFLAGS=
11227   fi
11228 fi
11229 ac_ext=c
11230 ac_cpp='$CPP $CPPFLAGS'
11231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11234
11235 depcc="$CXX"  am_compiler_list=
11236
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11238 $as_echo_n "checking dependency style of $depcc... " >&6; }
11239 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11240   $as_echo_n "(cached) " >&6
11241 else
11242   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11243   # We make a subdir and do the tests there.  Otherwise we can end up
11244   # making bogus files that we don't know about and never remove.  For
11245   # instance it was reported that on HP-UX the gcc test will end up
11246   # making a dummy file named `D' -- because `-MD' means `put the output
11247   # in D'.
11248   mkdir conftest.dir
11249   # Copy depcomp to subdir because otherwise we won't find it if we're
11250   # using a relative directory.
11251   cp "$am_depcomp" conftest.dir
11252   cd conftest.dir
11253   # We will build objects and dependencies in a subdirectory because
11254   # it helps to detect inapplicable dependency modes.  For instance
11255   # both Tru64's cc and ICC support -MD to output dependencies as a
11256   # side effect of compilation, but ICC will put the dependencies in
11257   # the current directory while Tru64 will put them in the object
11258   # directory.
11259   mkdir sub
11260
11261   am_cv_CXX_dependencies_compiler_type=none
11262   if test "$am_compiler_list" = ""; then
11263      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11264   fi
11265   am__universal=false
11266   case " $depcc " in #(
11267      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11268      esac
11269
11270   for depmode in $am_compiler_list; do
11271     # Setup a source with many dependencies, because some compilers
11272     # like to wrap large dependency lists on column 80 (with \), and
11273     # we should not choose a depcomp mode which is confused by this.
11274     #
11275     # We need to recreate these files for each test, as the compiler may
11276     # overwrite some of them when testing with obscure command lines.
11277     # This happens at least with the AIX C compiler.
11278     : > sub/conftest.c
11279     for i in 1 2 3 4 5 6; do
11280       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11281       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11282       # Solaris 8's {/usr,}/bin/sh.
11283       touch sub/conftst$i.h
11284     done
11285     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11286
11287     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11288     # mode.  It turns out that the SunPro C++ compiler does not properly
11289     # handle `-M -o', and we need to detect this.  Also, some Intel
11290     # versions had trouble with output in subdirs
11291     am__obj=sub/conftest.${OBJEXT-o}
11292     am__minus_obj="-o $am__obj"
11293     case $depmode in
11294     gcc)
11295       # This depmode causes a compiler race in universal mode.
11296       test "$am__universal" = false || continue
11297       ;;
11298     nosideeffect)
11299       # after this tag, mechanisms are not by side-effect, so they'll
11300       # only be used when explicitly requested
11301       if test "x$enable_dependency_tracking" = xyes; then
11302         continue
11303       else
11304         break
11305       fi
11306       ;;
11307     msvisualcpp | msvcmsys)
11308       # This compiler won't grok `-c -o', but also, the minuso test has
11309       # not run yet.  These depmodes are late enough in the game, and
11310       # so weak that their functioning should not be impacted.
11311       am__obj=conftest.${OBJEXT-o}
11312       am__minus_obj=
11313       ;;
11314     none) break ;;
11315     esac
11316     if depmode=$depmode \
11317        source=sub/conftest.c object=$am__obj \
11318        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11319        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11320          >/dev/null 2>conftest.err &&
11321        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11322        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11323        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11324        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11325       # icc doesn't choke on unknown options, it will just issue warnings
11326       # or remarks (even with -Werror).  So we grep stderr for any message
11327       # that says an option was ignored or not supported.
11328       # When given -MP, icc 7.0 and 7.1 complain thusly:
11329       #   icc: Command line warning: ignoring option '-M'; no argument required
11330       # The diagnosis changed in icc 8.0:
11331       #   icc: Command line remark: option '-MP' not supported
11332       if (grep 'ignoring option' conftest.err ||
11333           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11334         am_cv_CXX_dependencies_compiler_type=$depmode
11335         break
11336       fi
11337     fi
11338   done
11339
11340   cd ..
11341   rm -rf conftest.dir
11342 else
11343   am_cv_CXX_dependencies_compiler_type=none
11344 fi
11345
11346 fi
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11348 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11349 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11350
11351  if
11352   test "x$enable_dependency_tracking" != xno \
11353   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11354   am__fastdepCXX_TRUE=
11355   am__fastdepCXX_FALSE='#'
11356 else
11357   am__fastdepCXX_TRUE='#'
11358   am__fastdepCXX_FALSE=
11359 fi
11360
11361
11362 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11363     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11364     (test "X$CXX" != "Xg++"))) ; then
11365   ac_ext=cpp
11366 ac_cpp='$CXXCPP $CPPFLAGS'
11367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11371 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11372 if test -z "$CXXCPP"; then
11373   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11374   $as_echo_n "(cached) " >&6
11375 else
11376       # Double quotes because CXXCPP needs to be expanded
11377     for CXXCPP in "$CXX -E" "/lib/cpp"
11378     do
11379       ac_preproc_ok=false
11380 for ac_cxx_preproc_warn_flag in '' yes
11381 do
11382   # Use a header file that comes with gcc, so configuring glibc
11383   # with a fresh cross-compiler works.
11384   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11385   # <limits.h> exists even on freestanding compilers.
11386   # On the NeXT, cc -E runs the code through the compiler's parser,
11387   # not just through cpp. "Syntax error" is here to catch this case.
11388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h.  */
11390 #ifdef __STDC__
11391 # include <limits.h>
11392 #else
11393 # include <assert.h>
11394 #endif
11395                      Syntax error
11396 _ACEOF
11397 if ac_fn_cxx_try_cpp "$LINENO"; then :
11398
11399 else
11400   # Broken: fails on valid input.
11401 continue
11402 fi
11403 rm -f conftest.err conftest.$ac_ext
11404
11405   # OK, works on sane cases.  Now check whether nonexistent headers
11406   # can be detected and how.
11407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h.  */
11409 #include <ac_nonexistent.h>
11410 _ACEOF
11411 if ac_fn_cxx_try_cpp "$LINENO"; then :
11412   # Broken: success on invalid input.
11413 continue
11414 else
11415   # Passes both tests.
11416 ac_preproc_ok=:
11417 break
11418 fi
11419 rm -f conftest.err conftest.$ac_ext
11420
11421 done
11422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11423 rm -f conftest.err conftest.$ac_ext
11424 if $ac_preproc_ok; then :
11425   break
11426 fi
11427
11428     done
11429     ac_cv_prog_CXXCPP=$CXXCPP
11430
11431 fi
11432   CXXCPP=$ac_cv_prog_CXXCPP
11433 else
11434   ac_cv_prog_CXXCPP=$CXXCPP
11435 fi
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11437 $as_echo "$CXXCPP" >&6; }
11438 ac_preproc_ok=false
11439 for ac_cxx_preproc_warn_flag in '' yes
11440 do
11441   # Use a header file that comes with gcc, so configuring glibc
11442   # with a fresh cross-compiler works.
11443   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11444   # <limits.h> exists even on freestanding compilers.
11445   # On the NeXT, cc -E runs the code through the compiler's parser,
11446   # not just through cpp. "Syntax error" is here to catch this case.
11447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h.  */
11449 #ifdef __STDC__
11450 # include <limits.h>
11451 #else
11452 # include <assert.h>
11453 #endif
11454                      Syntax error
11455 _ACEOF
11456 if ac_fn_cxx_try_cpp "$LINENO"; then :
11457
11458 else
11459   # Broken: fails on valid input.
11460 continue
11461 fi
11462 rm -f conftest.err conftest.$ac_ext
11463
11464   # OK, works on sane cases.  Now check whether nonexistent headers
11465   # can be detected and how.
11466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h.  */
11468 #include <ac_nonexistent.h>
11469 _ACEOF
11470 if ac_fn_cxx_try_cpp "$LINENO"; then :
11471   # Broken: success on invalid input.
11472 continue
11473 else
11474   # Passes both tests.
11475 ac_preproc_ok=:
11476 break
11477 fi
11478 rm -f conftest.err conftest.$ac_ext
11479
11480 done
11481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11482 rm -f conftest.err conftest.$ac_ext
11483 if $ac_preproc_ok; then :
11484
11485 else
11486   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11488 _lt_caught_CXX_error=yes; }
11489 fi
11490
11491 ac_ext=c
11492 ac_cpp='$CPP $CPPFLAGS'
11493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11496
11497 else
11498   _lt_caught_CXX_error=yes
11499 fi
11500
11501
11502
11503
11504 ac_ext=cpp
11505 ac_cpp='$CXXCPP $CPPFLAGS'
11506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11509
11510 archive_cmds_need_lc_CXX=no
11511 allow_undefined_flag_CXX=
11512 always_export_symbols_CXX=no
11513 archive_expsym_cmds_CXX=
11514 compiler_needs_object_CXX=no
11515 export_dynamic_flag_spec_CXX=
11516 hardcode_direct_CXX=no
11517 hardcode_direct_absolute_CXX=no
11518 hardcode_libdir_flag_spec_CXX=
11519 hardcode_libdir_flag_spec_ld_CXX=
11520 hardcode_libdir_separator_CXX=
11521 hardcode_minus_L_CXX=no
11522 hardcode_shlibpath_var_CXX=unsupported
11523 hardcode_automatic_CXX=no
11524 inherit_rpath_CXX=no
11525 module_cmds_CXX=
11526 module_expsym_cmds_CXX=
11527 link_all_deplibs_CXX=unknown
11528 old_archive_cmds_CXX=$old_archive_cmds
11529 no_undefined_flag_CXX=
11530 whole_archive_flag_spec_CXX=
11531 enable_shared_with_static_runtimes_CXX=no
11532
11533 # Source file extension for C++ test sources.
11534 ac_ext=cpp
11535
11536 # Object file extension for compiled C++ test sources.
11537 objext=o
11538 objext_CXX=$objext
11539
11540 # No sense in running all these tests if we already determined that
11541 # the CXX compiler isn't working.  Some variables (like enable_shared)
11542 # are currently assumed to apply to all compilers on this platform,
11543 # and will be corrupted by setting them based on a non-working compiler.
11544 if test "$_lt_caught_CXX_error" != yes; then
11545   # Code to be used in simple compile tests
11546   lt_simple_compile_test_code="int some_variable = 0;"
11547
11548   # Code to be used in simple link tests
11549   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11550
11551   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11552
11553
11554
11555
11556
11557
11558 # If no C compiler was specified, use CC.
11559 LTCC=${LTCC-"$CC"}
11560
11561 # If no C compiler flags were specified, use CFLAGS.
11562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11563
11564 # Allow CC to be a program name with arguments.
11565 compiler=$CC
11566
11567
11568   # save warnings/boilerplate of simple test code
11569   ac_outfile=conftest.$ac_objext
11570 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11571 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11572 _lt_compiler_boilerplate=`cat conftest.err`
11573 $RM conftest*
11574
11575   ac_outfile=conftest.$ac_objext
11576 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11577 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11578 _lt_linker_boilerplate=`cat conftest.err`
11579 $RM -r conftest*
11580
11581
11582   # Allow CC to be a program name with arguments.
11583   lt_save_CC=$CC
11584   lt_save_LD=$LD
11585   lt_save_GCC=$GCC
11586   GCC=$GXX
11587   lt_save_with_gnu_ld=$with_gnu_ld
11588   lt_save_path_LD=$lt_cv_path_LD
11589   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11590     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11591   else
11592     $as_unset lt_cv_prog_gnu_ld
11593   fi
11594   if test -n "${lt_cv_path_LDCXX+set}"; then
11595     lt_cv_path_LD=$lt_cv_path_LDCXX
11596   else
11597     $as_unset lt_cv_path_LD
11598   fi
11599   test -z "${LDCXX+set}" || LD=$LDCXX
11600   CC=${CXX-"c++"}
11601   compiler=$CC
11602   compiler_CXX=$CC
11603   for cc_temp in $compiler""; do
11604   case $cc_temp in
11605     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11606     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11607     \-*) ;;
11608     *) break;;
11609   esac
11610 done
11611 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11612
11613
11614   if test -n "$compiler"; then
11615     # We don't want -fno-exception when compiling C++ code, so set the
11616     # no_builtin_flag separately
11617     if test "$GXX" = yes; then
11618       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11619     else
11620       lt_prog_compiler_no_builtin_flag_CXX=
11621     fi
11622
11623     if test "$GXX" = yes; then
11624       # Set up default GNU C++ configuration
11625
11626
11627
11628 # Check whether --with-gnu-ld was given.
11629 if test "${with_gnu_ld+set}" = set; then :
11630   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11631 else
11632   with_gnu_ld=no
11633 fi
11634
11635 ac_prog=ld
11636 if test "$GCC" = yes; then
11637   # Check if gcc -print-prog-name=ld gives a path.
11638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11639 $as_echo_n "checking for ld used by $CC... " >&6; }
11640   case $host in
11641   *-*-mingw*)
11642     # gcc leaves a trailing carriage return which upsets mingw
11643     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11644   *)
11645     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11646   esac
11647   case $ac_prog in
11648     # Accept absolute paths.
11649     [\\/]* | ?:[\\/]*)
11650       re_direlt='/[^/][^/]*/\.\./'
11651       # Canonicalize the pathname of ld
11652       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11653       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11654         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11655       done
11656       test -z "$LD" && LD="$ac_prog"
11657       ;;
11658   "")
11659     # If it fails, then pretend we aren't using GCC.
11660     ac_prog=ld
11661     ;;
11662   *)
11663     # If it is relative, then search for the first ld in PATH.
11664     with_gnu_ld=unknown
11665     ;;
11666   esac
11667 elif test "$with_gnu_ld" = yes; then
11668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11669 $as_echo_n "checking for GNU ld... " >&6; }
11670 else
11671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11672 $as_echo_n "checking for non-GNU ld... " >&6; }
11673 fi
11674 if test "${lt_cv_path_LD+set}" = set; then :
11675   $as_echo_n "(cached) " >&6
11676 else
11677   if test -z "$LD"; then
11678   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11679   for ac_dir in $PATH; do
11680     IFS="$lt_save_ifs"
11681     test -z "$ac_dir" && ac_dir=.
11682     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11683       lt_cv_path_LD="$ac_dir/$ac_prog"
11684       # Check to see if the program is GNU ld.  I'd rather use --version,
11685       # but apparently some variants of GNU ld only accept -v.
11686       # Break only if it was the GNU/non-GNU ld that we prefer.
11687       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11688       *GNU* | *'with BFD'*)
11689         test "$with_gnu_ld" != no && break
11690         ;;
11691       *)
11692         test "$with_gnu_ld" != yes && break
11693         ;;
11694       esac
11695     fi
11696   done
11697   IFS="$lt_save_ifs"
11698 else
11699   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11700 fi
11701 fi
11702
11703 LD="$lt_cv_path_LD"
11704 if test -n "$LD"; then
11705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11706 $as_echo "$LD" >&6; }
11707 else
11708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709 $as_echo "no" >&6; }
11710 fi
11711 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11713 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11714 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11715   $as_echo_n "(cached) " >&6
11716 else
11717   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11718 case `$LD -v 2>&1 </dev/null` in
11719 *GNU* | *'with BFD'*)
11720   lt_cv_prog_gnu_ld=yes
11721   ;;
11722 *)
11723   lt_cv_prog_gnu_ld=no
11724   ;;
11725 esac
11726 fi
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11728 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11729 with_gnu_ld=$lt_cv_prog_gnu_ld
11730
11731
11732
11733
11734
11735
11736
11737       # Check if GNU C++ uses GNU ld as the underlying linker, since the
11738       # archiving commands below assume that GNU ld is being used.
11739       if test "$with_gnu_ld" = yes; then
11740         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11741         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11742
11743         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11744         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11745
11746         # If archive_cmds runs LD, not CC, wlarc should be empty
11747         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11748         #     investigate it a little bit more. (MM)
11749         wlarc='${wl}'
11750
11751         # ancient GNU ld didn't support --whole-archive et. al.
11752         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11753           $GREP 'no-whole-archive' > /dev/null; then
11754           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11755         else
11756           whole_archive_flag_spec_CXX=
11757         fi
11758       else
11759         with_gnu_ld=no
11760         wlarc=
11761
11762         # A generic and very simple default shared library creation
11763         # command for GNU C++ for the case where it uses the native
11764         # linker, instead of GNU ld.  If possible, this setting should
11765         # overridden to take advantage of the native linker features on
11766         # the platform it is being used on.
11767         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11768       fi
11769
11770       # Commands to make compiler produce verbose output that lists
11771       # what "hidden" libraries, object files and flags are used when
11772       # linking a shared library.
11773       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11774
11775     else
11776       GXX=no
11777       with_gnu_ld=no
11778       wlarc=
11779     fi
11780
11781     # PORTME: fill in a description of your system's C++ link characteristics
11782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11783 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11784     ld_shlibs_CXX=yes
11785     case $host_os in
11786       aix3*)
11787         # FIXME: insert proper C++ library support
11788         ld_shlibs_CXX=no
11789         ;;
11790       aix[4-9]*)
11791         if test "$host_cpu" = ia64; then
11792           # On IA64, the linker does run time linking by default, so we don't
11793           # have to do anything special.
11794           aix_use_runtimelinking=no
11795           exp_sym_flag='-Bexport'
11796           no_entry_flag=""
11797         else
11798           aix_use_runtimelinking=no
11799
11800           # Test if we are trying to use run time linking or normal
11801           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11802           # need to do runtime linking.
11803           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11804             for ld_flag in $LDFLAGS; do
11805               case $ld_flag in
11806               *-brtl*)
11807                 aix_use_runtimelinking=yes
11808                 break
11809                 ;;
11810               esac
11811             done
11812             ;;
11813           esac
11814
11815           exp_sym_flag='-bexport'
11816           no_entry_flag='-bnoentry'
11817         fi
11818
11819         # When large executables or shared objects are built, AIX ld can
11820         # have problems creating the table of contents.  If linking a library
11821         # or program results in "error TOC overflow" add -mminimal-toc to
11822         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11823         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11824
11825         archive_cmds_CXX=''
11826         hardcode_direct_CXX=yes
11827         hardcode_direct_absolute_CXX=yes
11828         hardcode_libdir_separator_CXX=':'
11829         link_all_deplibs_CXX=yes
11830         file_list_spec_CXX='${wl}-f,'
11831
11832         if test "$GXX" = yes; then
11833           case $host_os in aix4.[012]|aix4.[012].*)
11834           # We only want to do this on AIX 4.2 and lower, the check
11835           # below for broken collect2 doesn't work under 4.3+
11836           collect2name=`${CC} -print-prog-name=collect2`
11837           if test -f "$collect2name" &&
11838              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11839           then
11840             # We have reworked collect2
11841             :
11842           else
11843             # We have old collect2
11844             hardcode_direct_CXX=unsupported
11845             # It fails to find uninstalled libraries when the uninstalled
11846             # path is not listed in the libpath.  Setting hardcode_minus_L
11847             # to unsupported forces relinking
11848             hardcode_minus_L_CXX=yes
11849             hardcode_libdir_flag_spec_CXX='-L$libdir'
11850             hardcode_libdir_separator_CXX=
11851           fi
11852           esac
11853           shared_flag='-shared'
11854           if test "$aix_use_runtimelinking" = yes; then
11855             shared_flag="$shared_flag "'${wl}-G'
11856           fi
11857         else
11858           # not using gcc
11859           if test "$host_cpu" = ia64; then
11860           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11861           # chokes on -Wl,-G. The following line is correct:
11862           shared_flag='-G'
11863           else
11864             if test "$aix_use_runtimelinking" = yes; then
11865               shared_flag='${wl}-G'
11866             else
11867               shared_flag='${wl}-bM:SRE'
11868             fi
11869           fi
11870         fi
11871
11872         export_dynamic_flag_spec_CXX='${wl}-bexpall'
11873         # It seems that -bexpall does not export symbols beginning with
11874         # underscore (_), so it is better to generate a list of symbols to
11875         # export.
11876         always_export_symbols_CXX=yes
11877         if test "$aix_use_runtimelinking" = yes; then
11878           # Warning - without using the other runtime loading flags (-brtl),
11879           # -berok will link without error, but may produce a broken library.
11880           allow_undefined_flag_CXX='-berok'
11881           # Determine the default libpath from the value encoded in an empty
11882           # executable.
11883           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h.  */
11885
11886 int
11887 main ()
11888 {
11889
11890   ;
11891   return 0;
11892 }
11893 _ACEOF
11894 if ac_fn_cxx_try_link "$LINENO"; then :
11895
11896 lt_aix_libpath_sed='
11897     /Import File Strings/,/^$/ {
11898         /^0/ {
11899             s/^0  *\(.*\)$/\1/
11900             p
11901         }
11902     }'
11903 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11904 # Check for a 64-bit object if we didn't find anything.
11905 if test -z "$aix_libpath"; then
11906   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11907 fi
11908 fi
11909 rm -f core conftest.err conftest.$ac_objext \
11910     conftest$ac_exeext conftest.$ac_ext
11911 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11912
11913           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11914
11915           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11916         else
11917           if test "$host_cpu" = ia64; then
11918             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11919             allow_undefined_flag_CXX="-z nodefs"
11920             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"
11921           else
11922             # Determine the default libpath from the value encoded in an
11923             # empty executable.
11924             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h.  */
11926
11927 int
11928 main ()
11929 {
11930
11931   ;
11932   return 0;
11933 }
11934 _ACEOF
11935 if ac_fn_cxx_try_link "$LINENO"; then :
11936
11937 lt_aix_libpath_sed='
11938     /Import File Strings/,/^$/ {
11939         /^0/ {
11940             s/^0  *\(.*\)$/\1/
11941             p
11942         }
11943     }'
11944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11945 # Check for a 64-bit object if we didn't find anything.
11946 if test -z "$aix_libpath"; then
11947   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11948 fi
11949 fi
11950 rm -f core conftest.err conftest.$ac_objext \
11951     conftest$ac_exeext conftest.$ac_ext
11952 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11953
11954             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11955             # Warning - without using the other run time loading flags,
11956             # -berok will link without error, but may produce a broken library.
11957             no_undefined_flag_CXX=' ${wl}-bernotok'
11958             allow_undefined_flag_CXX=' ${wl}-berok'
11959             # Exported symbols can be pulled into shared objects from archives
11960             whole_archive_flag_spec_CXX='$convenience'
11961             archive_cmds_need_lc_CXX=yes
11962             # This is similar to how AIX traditionally builds its shared
11963             # libraries.
11964             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'
11965           fi
11966         fi
11967         ;;
11968
11969       beos*)
11970         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11971           allow_undefined_flag_CXX=unsupported
11972           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11973           # support --undefined.  This deserves some investigation.  FIXME
11974           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11975         else
11976           ld_shlibs_CXX=no
11977         fi
11978         ;;
11979
11980       chorus*)
11981         case $cc_basename in
11982           *)
11983           # FIXME: insert proper C++ library support
11984           ld_shlibs_CXX=no
11985           ;;
11986         esac
11987         ;;
11988
11989       cygwin* | mingw* | pw32* | cegcc*)
11990         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11991         # as there is no search path for DLLs.
11992         hardcode_libdir_flag_spec_CXX='-L$libdir'
11993         allow_undefined_flag_CXX=unsupported
11994         always_export_symbols_CXX=no
11995         enable_shared_with_static_runtimes_CXX=yes
11996
11997         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11998           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'
11999           # If the export-symbols file already is a .def file (1st line
12000           # is EXPORTS), use it as is; otherwise, prepend...
12001           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12002             cp $export_symbols $output_objdir/$soname.def;
12003           else
12004             echo EXPORTS > $output_objdir/$soname.def;
12005             cat $export_symbols >> $output_objdir/$soname.def;
12006           fi~
12007           $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'
12008         else
12009           ld_shlibs_CXX=no
12010         fi
12011         ;;
12012       darwin* | rhapsody*)
12013
12014
12015   archive_cmds_need_lc_CXX=no
12016   hardcode_direct_CXX=no
12017   hardcode_automatic_CXX=yes
12018   hardcode_shlibpath_var_CXX=unsupported
12019   whole_archive_flag_spec_CXX=''
12020   link_all_deplibs_CXX=yes
12021   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12022   case $cc_basename in
12023      ifort*) _lt_dar_can_shared=yes ;;
12024      *) _lt_dar_can_shared=$GCC ;;
12025   esac
12026   if test "$_lt_dar_can_shared" = "yes"; then
12027     output_verbose_link_cmd=echo
12028     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}"
12029     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12030     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}"
12031     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}"
12032        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12033       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}"
12034       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}"
12035     fi
12036
12037   else
12038   ld_shlibs_CXX=no
12039   fi
12040
12041         ;;
12042
12043       dgux*)
12044         case $cc_basename in
12045           ec++*)
12046             # FIXME: insert proper C++ library support
12047             ld_shlibs_CXX=no
12048             ;;
12049           ghcx*)
12050             # Green Hills C++ Compiler
12051             # FIXME: insert proper C++ library support
12052             ld_shlibs_CXX=no
12053             ;;
12054           *)
12055             # FIXME: insert proper C++ library support
12056             ld_shlibs_CXX=no
12057             ;;
12058         esac
12059         ;;
12060
12061       freebsd[12]*)
12062         # C++ shared libraries reported to be fairly broken before
12063         # switch to ELF
12064         ld_shlibs_CXX=no
12065         ;;
12066
12067       freebsd-elf*)
12068         archive_cmds_need_lc_CXX=no
12069         ;;
12070
12071       freebsd* | dragonfly*)
12072         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12073         # conventions
12074         ld_shlibs_CXX=yes
12075         ;;
12076
12077       gnu*)
12078         ;;
12079
12080       hpux9*)
12081         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12082         hardcode_libdir_separator_CXX=:
12083         export_dynamic_flag_spec_CXX='${wl}-E'
12084         hardcode_direct_CXX=yes
12085         hardcode_minus_L_CXX=yes # Not in the search PATH,
12086                                              # but as the default
12087                                              # location of the library.
12088
12089         case $cc_basename in
12090           CC*)
12091             # FIXME: insert proper C++ library support
12092             ld_shlibs_CXX=no
12093             ;;
12094           aCC*)
12095             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'
12096             # Commands to make compiler produce verbose output that lists
12097             # what "hidden" libraries, object files and flags are used when
12098             # linking a shared library.
12099             #
12100             # There doesn't appear to be a way to prevent this compiler from
12101             # explicitly linking system object files so we need to strip them
12102             # from the output so that they don't get included in the library
12103             # dependencies.
12104             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12105             ;;
12106           *)
12107             if test "$GXX" = yes; then
12108               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12109             else
12110               # FIXME: insert proper C++ library support
12111               ld_shlibs_CXX=no
12112             fi
12113             ;;
12114         esac
12115         ;;
12116
12117       hpux10*|hpux11*)
12118         if test $with_gnu_ld = no; then
12119           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12120           hardcode_libdir_separator_CXX=:
12121
12122           case $host_cpu in
12123             hppa*64*|ia64*)
12124               ;;
12125             *)
12126               export_dynamic_flag_spec_CXX='${wl}-E'
12127               ;;
12128           esac
12129         fi
12130         case $host_cpu in
12131           hppa*64*|ia64*)
12132             hardcode_direct_CXX=no
12133             hardcode_shlibpath_var_CXX=no
12134             ;;
12135           *)
12136             hardcode_direct_CXX=yes
12137             hardcode_direct_absolute_CXX=yes
12138             hardcode_minus_L_CXX=yes # Not in the search PATH,
12139                                                  # but as the default
12140                                                  # location of the library.
12141             ;;
12142         esac
12143
12144         case $cc_basename in
12145           CC*)
12146             # FIXME: insert proper C++ library support
12147             ld_shlibs_CXX=no
12148             ;;
12149           aCC*)
12150             case $host_cpu in
12151               hppa*64*)
12152                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12153                 ;;
12154               ia64*)
12155                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12156                 ;;
12157               *)
12158                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12159                 ;;
12160             esac
12161             # Commands to make compiler produce verbose output that lists
12162             # what "hidden" libraries, object files and flags are used when
12163             # linking a shared library.
12164             #
12165             # There doesn't appear to be a way to prevent this compiler from
12166             # explicitly linking system object files so we need to strip them
12167             # from the output so that they don't get included in the library
12168             # dependencies.
12169             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12170             ;;
12171           *)
12172             if test "$GXX" = yes; then
12173               if test $with_gnu_ld = no; then
12174                 case $host_cpu in
12175                   hppa*64*)
12176                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12177                     ;;
12178                   ia64*)
12179                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12180                     ;;
12181                   *)
12182                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12183                     ;;
12184                 esac
12185               fi
12186             else
12187               # FIXME: insert proper C++ library support
12188               ld_shlibs_CXX=no
12189             fi
12190             ;;
12191         esac
12192         ;;
12193
12194       interix[3-9]*)
12195         hardcode_direct_CXX=no
12196         hardcode_shlibpath_var_CXX=no
12197         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12198         export_dynamic_flag_spec_CXX='${wl}-E'
12199         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12200         # Instead, shared libraries are loaded at an image base (0x10000000 by
12201         # default) and relocated if they conflict, which is a slow very memory
12202         # consuming and fragmenting process.  To avoid this, we pick a random,
12203         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12204         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12205         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'
12206         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'
12207         ;;
12208       irix5* | irix6*)
12209         case $cc_basename in
12210           CC*)
12211             # SGI C++
12212             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12213
12214             # Archives containing C++ object files must be created using
12215             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12216             # necessary to make sure instantiated templates are included
12217             # in the archive.
12218             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12219             ;;
12220           *)
12221             if test "$GXX" = yes; then
12222               if test "$with_gnu_ld" = no; then
12223                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12224               else
12225                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12226               fi
12227             fi
12228             link_all_deplibs_CXX=yes
12229             ;;
12230         esac
12231         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12232         hardcode_libdir_separator_CXX=:
12233         inherit_rpath_CXX=yes
12234         ;;
12235
12236       linux* | k*bsd*-gnu)
12237         case $cc_basename in
12238           KCC*)
12239             # Kuck and Associates, Inc. (KAI) C++ Compiler
12240
12241             # KCC will only create a shared library if the output file
12242             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12243             # to its proper name (with version) after linking.
12244             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'
12245             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'
12246             # Commands to make compiler produce verbose output that lists
12247             # what "hidden" libraries, object files and flags are used when
12248             # linking a shared library.
12249             #
12250             # There doesn't appear to be a way to prevent this compiler from
12251             # explicitly linking system object files so we need to strip them
12252             # from the output so that they don't get included in the library
12253             # dependencies.
12254             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12255
12256             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12257             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12258
12259             # Archives containing C++ object files must be created using
12260             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12261             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12262             ;;
12263           icpc* | ecpc* )
12264             # Intel C++
12265             with_gnu_ld=yes
12266             # version 8.0 and above of icpc choke on multiply defined symbols
12267             # if we add $predep_objects and $postdep_objects, however 7.1 and
12268             # earlier do not add the objects themselves.
12269             case `$CC -V 2>&1` in
12270               *"Version 7."*)
12271                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12272                 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'
12273                 ;;
12274               *)  # Version 8.0 or newer
12275                 tmp_idyn=
12276                 case $host_cpu in
12277                   ia64*) tmp_idyn=' -i_dynamic';;
12278                 esac
12279                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12280                 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'
12281                 ;;
12282             esac
12283             archive_cmds_need_lc_CXX=no
12284             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12285             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12286             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12287             ;;
12288           pgCC* | pgcpp*)
12289             # Portland Group C++ compiler
12290             case `$CC -V` in
12291             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12292               prelink_cmds_CXX='tpldir=Template.dir~
12293                 rm -rf $tpldir~
12294                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12295                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12296               old_archive_cmds_CXX='tpldir=Template.dir~
12297                 rm -rf $tpldir~
12298                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12299                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12300                 $RANLIB $oldlib'
12301               archive_cmds_CXX='tpldir=Template.dir~
12302                 rm -rf $tpldir~
12303                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12304                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12305               archive_expsym_cmds_CXX='tpldir=Template.dir~
12306                 rm -rf $tpldir~
12307                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12308                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12309               ;;
12310             *) # Version 6 will use weak symbols
12311               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12312               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'
12313               ;;
12314             esac
12315
12316             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12317             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12318             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12319             ;;
12320           cxx*)
12321             # Compaq C++
12322             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12323             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'
12324
12325             runpath_var=LD_RUN_PATH
12326             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12327             hardcode_libdir_separator_CXX=:
12328
12329             # Commands to make compiler produce verbose output that lists
12330             # what "hidden" libraries, object files and flags are used when
12331             # linking a shared library.
12332             #
12333             # There doesn't appear to be a way to prevent this compiler from
12334             # explicitly linking system object files so we need to strip them
12335             # from the output so that they don't get included in the library
12336             # dependencies.
12337             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12338             ;;
12339           xl*)
12340             # IBM XL 8.0 on PPC, with GNU ld
12341             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12342             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12343             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12344             if test "x$supports_anon_versioning" = xyes; then
12345               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12346                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12347                 echo "local: *; };" >> $output_objdir/$libname.ver~
12348                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12349             fi
12350             ;;
12351           *)
12352             case `$CC -V 2>&1 | sed 5q` in
12353             *Sun\ C*)
12354               # Sun C++ 5.9
12355               no_undefined_flag_CXX=' -zdefs'
12356               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12357               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'
12358               hardcode_libdir_flag_spec_CXX='-R$libdir'
12359               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12360               compiler_needs_object_CXX=yes
12361
12362               # Not sure whether something based on
12363               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12364               # would be better.
12365               output_verbose_link_cmd='echo'
12366
12367               # Archives containing C++ object files must be created using
12368               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12369               # necessary to make sure instantiated templates are included
12370               # in the archive.
12371               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12372               ;;
12373             esac
12374             ;;
12375         esac
12376         ;;
12377
12378       lynxos*)
12379         # FIXME: insert proper C++ library support
12380         ld_shlibs_CXX=no
12381         ;;
12382
12383       m88k*)
12384         # FIXME: insert proper C++ library support
12385         ld_shlibs_CXX=no
12386         ;;
12387
12388       mvs*)
12389         case $cc_basename in
12390           cxx*)
12391             # FIXME: insert proper C++ library support
12392             ld_shlibs_CXX=no
12393             ;;
12394           *)
12395             # FIXME: insert proper C++ library support
12396             ld_shlibs_CXX=no
12397             ;;
12398         esac
12399         ;;
12400
12401       netbsd*)
12402         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12403           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12404           wlarc=
12405           hardcode_libdir_flag_spec_CXX='-R$libdir'
12406           hardcode_direct_CXX=yes
12407           hardcode_shlibpath_var_CXX=no
12408         fi
12409         # Workaround some broken pre-1.5 toolchains
12410         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12411         ;;
12412
12413       *nto* | *qnx*)
12414         ld_shlibs_CXX=yes
12415         ;;
12416
12417       openbsd2*)
12418         # C++ shared libraries are fairly broken
12419         ld_shlibs_CXX=no
12420         ;;
12421
12422       openbsd*)
12423         if test -f /usr/libexec/ld.so; then
12424           hardcode_direct_CXX=yes
12425           hardcode_shlibpath_var_CXX=no
12426           hardcode_direct_absolute_CXX=yes
12427           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12428           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12429           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12430             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12431             export_dynamic_flag_spec_CXX='${wl}-E'
12432             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12433           fi
12434           output_verbose_link_cmd=echo
12435         else
12436           ld_shlibs_CXX=no
12437         fi
12438         ;;
12439
12440       osf3* | osf4* | osf5*)
12441         case $cc_basename in
12442           KCC*)
12443             # Kuck and Associates, Inc. (KAI) C++ Compiler
12444
12445             # KCC will only create a shared library if the output file
12446             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12447             # to its proper name (with version) after linking.
12448             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'
12449
12450             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12451             hardcode_libdir_separator_CXX=:
12452
12453             # Archives containing C++ object files must be created using
12454             # the KAI C++ compiler.
12455             case $host in
12456               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12457               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12458             esac
12459             ;;
12460           RCC*)
12461             # Rational C++ 2.4.1
12462             # FIXME: insert proper C++ library support
12463             ld_shlibs_CXX=no
12464             ;;
12465           cxx*)
12466             case $host in
12467               osf3*)
12468                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12469                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12470                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12471                 ;;
12472               *)
12473                 allow_undefined_flag_CXX=' -expect_unresolved \*'
12474                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12475                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12476                   echo "-hidden">> $lib.exp~
12477                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12478                   $RM $lib.exp'
12479                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12480                 ;;
12481             esac
12482
12483             hardcode_libdir_separator_CXX=:
12484
12485             # Commands to make compiler produce verbose output that lists
12486             # what "hidden" libraries, object files and flags are used when
12487             # linking a shared library.
12488             #
12489             # There doesn't appear to be a way to prevent this compiler from
12490             # explicitly linking system object files so we need to strip them
12491             # from the output so that they don't get included in the library
12492             # dependencies.
12493             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12494             ;;
12495           *)
12496             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12497               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12498               case $host in
12499                 osf3*)
12500                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12501                   ;;
12502                 *)
12503                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12504                   ;;
12505               esac
12506
12507               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12508               hardcode_libdir_separator_CXX=:
12509
12510               # Commands to make compiler produce verbose output that lists
12511               # what "hidden" libraries, object files and flags are used when
12512               # linking a shared library.
12513               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12514
12515             else
12516               # FIXME: insert proper C++ library support
12517               ld_shlibs_CXX=no
12518             fi
12519             ;;
12520         esac
12521         ;;
12522
12523       psos*)
12524         # FIXME: insert proper C++ library support
12525         ld_shlibs_CXX=no
12526         ;;
12527
12528       sunos4*)
12529         case $cc_basename in
12530           CC*)
12531             # Sun C++ 4.x
12532             # FIXME: insert proper C++ library support
12533             ld_shlibs_CXX=no
12534             ;;
12535           lcc*)
12536             # Lucid
12537             # FIXME: insert proper C++ library support
12538             ld_shlibs_CXX=no
12539             ;;
12540           *)
12541             # FIXME: insert proper C++ library support
12542             ld_shlibs_CXX=no
12543             ;;
12544         esac
12545         ;;
12546
12547       solaris*)
12548         case $cc_basename in
12549           CC*)
12550             # Sun C++ 4.2, 5.x and Centerline C++
12551             archive_cmds_need_lc_CXX=yes
12552             no_undefined_flag_CXX=' -zdefs'
12553             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12554             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12555               $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'
12556
12557             hardcode_libdir_flag_spec_CXX='-R$libdir'
12558             hardcode_shlibpath_var_CXX=no
12559             case $host_os in
12560               solaris2.[0-5] | solaris2.[0-5].*) ;;
12561               *)
12562                 # The compiler driver will combine and reorder linker options,
12563                 # but understands `-z linker_flag'.
12564                 # Supported since Solaris 2.6 (maybe 2.5.1?)
12565                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12566                 ;;
12567             esac
12568             link_all_deplibs_CXX=yes
12569
12570             output_verbose_link_cmd='echo'
12571
12572             # Archives containing C++ object files must be created using
12573             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12574             # necessary to make sure instantiated templates are included
12575             # in the archive.
12576             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12577             ;;
12578           gcx*)
12579             # Green Hills C++ Compiler
12580             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12581
12582             # The C++ compiler must be used to create the archive.
12583             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12584             ;;
12585           *)
12586             # GNU C++ compiler with Solaris linker
12587             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12588               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12589               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12590                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12591                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12592                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12593
12594                 # Commands to make compiler produce verbose output that lists
12595                 # what "hidden" libraries, object files and flags are used when
12596                 # linking a shared library.
12597                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12598               else
12599                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12600                 # platform.
12601                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12602                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12603                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12604
12605                 # Commands to make compiler produce verbose output that lists
12606                 # what "hidden" libraries, object files and flags are used when
12607                 # linking a shared library.
12608                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12609               fi
12610
12611               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12612               case $host_os in
12613                 solaris2.[0-5] | solaris2.[0-5].*) ;;
12614                 *)
12615                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12616                   ;;
12617               esac
12618             fi
12619             ;;
12620         esac
12621         ;;
12622
12623     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12624       no_undefined_flag_CXX='${wl}-z,text'
12625       archive_cmds_need_lc_CXX=no
12626       hardcode_shlibpath_var_CXX=no
12627       runpath_var='LD_RUN_PATH'
12628
12629       case $cc_basename in
12630         CC*)
12631           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12632           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12633           ;;
12634         *)
12635           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12636           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12637           ;;
12638       esac
12639       ;;
12640
12641       sysv5* | sco3.2v5* | sco5v6*)
12642         # Note: We can NOT use -z defs as we might desire, because we do not
12643         # link with -lc, and that would cause any symbols used from libc to
12644         # always be unresolved, which means just about no library would
12645         # ever link correctly.  If we're not using GNU ld we use -z text
12646         # though, which does catch some bad symbols but isn't as heavy-handed
12647         # as -z defs.
12648         no_undefined_flag_CXX='${wl}-z,text'
12649         allow_undefined_flag_CXX='${wl}-z,nodefs'
12650         archive_cmds_need_lc_CXX=no
12651         hardcode_shlibpath_var_CXX=no
12652         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12653         hardcode_libdir_separator_CXX=':'
12654         link_all_deplibs_CXX=yes
12655         export_dynamic_flag_spec_CXX='${wl}-Bexport'
12656         runpath_var='LD_RUN_PATH'
12657
12658         case $cc_basename in
12659           CC*)
12660             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12661             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12662             ;;
12663           *)
12664             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12665             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12666             ;;
12667         esac
12668       ;;
12669
12670       tandem*)
12671         case $cc_basename in
12672           NCC*)
12673             # NonStop-UX NCC 3.20
12674             # FIXME: insert proper C++ library support
12675             ld_shlibs_CXX=no
12676             ;;
12677           *)
12678             # FIXME: insert proper C++ library support
12679             ld_shlibs_CXX=no
12680             ;;
12681         esac
12682         ;;
12683
12684       vxworks*)
12685         # FIXME: insert proper C++ library support
12686         ld_shlibs_CXX=no
12687         ;;
12688
12689       *)
12690         # FIXME: insert proper C++ library support
12691         ld_shlibs_CXX=no
12692         ;;
12693     esac
12694
12695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12696 $as_echo "$ld_shlibs_CXX" >&6; }
12697     test "$ld_shlibs_CXX" = no && can_build_shared=no
12698
12699     GCC_CXX="$GXX"
12700     LD_CXX="$LD"
12701
12702     ## CAVEAT EMPTOR:
12703     ## There is no encapsulation within the following macros, do not change
12704     ## the running order or otherwise move them around unless you know exactly
12705     ## what you are doing...
12706     # Dependencies to place before and after the object being linked:
12707 predep_objects_CXX=
12708 postdep_objects_CXX=
12709 predeps_CXX=
12710 postdeps_CXX=
12711 compiler_lib_search_path_CXX=
12712
12713 cat > conftest.$ac_ext <<_LT_EOF
12714 class Foo
12715 {
12716 public:
12717   Foo (void) { a = 0; }
12718 private:
12719   int a;
12720 };
12721 _LT_EOF
12722
12723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12724   (eval $ac_compile) 2>&5
12725   ac_status=$?
12726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12727   test $ac_status = 0; }; then
12728   # Parse the compiler output and extract the necessary
12729   # objects, libraries and library flags.
12730
12731   # Sentinel used to keep track of whether or not we are before
12732   # the conftest object file.
12733   pre_test_object_deps_done=no
12734
12735   for p in `eval "$output_verbose_link_cmd"`; do
12736     case $p in
12737
12738     -L* | -R* | -l*)
12739        # Some compilers place space between "-{L,R}" and the path.
12740        # Remove the space.
12741        if test $p = "-L" ||
12742           test $p = "-R"; then
12743          prev=$p
12744          continue
12745        else
12746          prev=
12747        fi
12748
12749        if test "$pre_test_object_deps_done" = no; then
12750          case $p in
12751          -L* | -R*)
12752            # Internal compiler library paths should come after those
12753            # provided the user.  The postdeps already come after the
12754            # user supplied libs so there is no need to process them.
12755            if test -z "$compiler_lib_search_path_CXX"; then
12756              compiler_lib_search_path_CXX="${prev}${p}"
12757            else
12758              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12759            fi
12760            ;;
12761          # The "-l" case would never come before the object being
12762          # linked, so don't bother handling this case.
12763          esac
12764        else
12765          if test -z "$postdeps_CXX"; then
12766            postdeps_CXX="${prev}${p}"
12767          else
12768            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12769          fi
12770        fi
12771        ;;
12772
12773     *.$objext)
12774        # This assumes that the test object file only shows up
12775        # once in the compiler output.
12776        if test "$p" = "conftest.$objext"; then
12777          pre_test_object_deps_done=yes
12778          continue
12779        fi
12780
12781        if test "$pre_test_object_deps_done" = no; then
12782          if test -z "$predep_objects_CXX"; then
12783            predep_objects_CXX="$p"
12784          else
12785            predep_objects_CXX="$predep_objects_CXX $p"
12786          fi
12787        else
12788          if test -z "$postdep_objects_CXX"; then
12789            postdep_objects_CXX="$p"
12790          else
12791            postdep_objects_CXX="$postdep_objects_CXX $p"
12792          fi
12793        fi
12794        ;;
12795
12796     *) ;; # Ignore the rest.
12797
12798     esac
12799   done
12800
12801   # Clean up.
12802   rm -f a.out a.exe
12803 else
12804   echo "libtool.m4: error: problem compiling CXX test program"
12805 fi
12806
12807 $RM -f confest.$objext
12808
12809 # PORTME: override above test on systems where it is broken
12810 case $host_os in
12811 interix[3-9]*)
12812   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12813   # hack all around it, let's just trust "g++" to DTRT.
12814   predep_objects_CXX=
12815   postdep_objects_CXX=
12816   postdeps_CXX=
12817   ;;
12818
12819 linux*)
12820   case `$CC -V 2>&1 | sed 5q` in
12821   *Sun\ C*)
12822     # Sun C++ 5.9
12823
12824     # The more standards-conforming stlport4 library is
12825     # incompatible with the Cstd library. Avoid specifying
12826     # it if it's in CXXFLAGS. Ignore libCrun as
12827     # -library=stlport4 depends on it.
12828     case " $CXX $CXXFLAGS " in
12829     *" -library=stlport4 "*)
12830       solaris_use_stlport4=yes
12831       ;;
12832     esac
12833
12834     if test "$solaris_use_stlport4" != yes; then
12835       postdeps_CXX='-library=Cstd -library=Crun'
12836     fi
12837     ;;
12838   esac
12839   ;;
12840
12841 solaris*)
12842   case $cc_basename in
12843   CC*)
12844     # The more standards-conforming stlport4 library is
12845     # incompatible with the Cstd library. Avoid specifying
12846     # it if it's in CXXFLAGS. Ignore libCrun as
12847     # -library=stlport4 depends on it.
12848     case " $CXX $CXXFLAGS " in
12849     *" -library=stlport4 "*)
12850       solaris_use_stlport4=yes
12851       ;;
12852     esac
12853
12854     # Adding this requires a known-good setup of shared libraries for
12855     # Sun compiler versions before 5.6, else PIC objects from an old
12856     # archive will be linked into the output, leading to subtle bugs.
12857     if test "$solaris_use_stlport4" != yes; then
12858       postdeps_CXX='-library=Cstd -library=Crun'
12859     fi
12860     ;;
12861   esac
12862   ;;
12863 esac
12864
12865
12866 case " $postdeps_CXX " in
12867 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12868 esac
12869  compiler_lib_search_dirs_CXX=
12870 if test -n "${compiler_lib_search_path_CXX}"; then
12871  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12872 fi
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904     lt_prog_compiler_wl_CXX=
12905 lt_prog_compiler_pic_CXX=
12906 lt_prog_compiler_static_CXX=
12907
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12909 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12910
12911   # C++ specific cases for pic, static, wl, etc.
12912   if test "$GXX" = yes; then
12913     lt_prog_compiler_wl_CXX='-Wl,'
12914     lt_prog_compiler_static_CXX='-static'
12915
12916     case $host_os in
12917     aix*)
12918       # All AIX code is PIC.
12919       if test "$host_cpu" = ia64; then
12920         # AIX 5 now supports IA64 processor
12921         lt_prog_compiler_static_CXX='-Bstatic'
12922       fi
12923       ;;
12924
12925     amigaos*)
12926       case $host_cpu in
12927       powerpc)
12928             # see comment about AmigaOS4 .so support
12929             lt_prog_compiler_pic_CXX='-fPIC'
12930         ;;
12931       m68k)
12932             # FIXME: we need at least 68020 code to build shared libraries, but
12933             # adding the `-m68020' flag to GCC prevents building anything better,
12934             # like `-m68040'.
12935             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12936         ;;
12937       esac
12938       ;;
12939
12940     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12941       # PIC is the default for these OSes.
12942       ;;
12943     mingw* | cygwin* | os2* | pw32* | cegcc*)
12944       # This hack is so that the source file can tell whether it is being
12945       # built for inclusion in a dll (and should export symbols for example).
12946       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12947       # (--disable-auto-import) libraries
12948       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12949       ;;
12950     darwin* | rhapsody*)
12951       # PIC is the default on this platform
12952       # Common symbols not allowed in MH_DYLIB files
12953       lt_prog_compiler_pic_CXX='-fno-common'
12954       ;;
12955     *djgpp*)
12956       # DJGPP does not support shared libraries at all
12957       lt_prog_compiler_pic_CXX=
12958       ;;
12959     interix[3-9]*)
12960       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12961       # Instead, we relocate shared libraries at runtime.
12962       ;;
12963     sysv4*MP*)
12964       if test -d /usr/nec; then
12965         lt_prog_compiler_pic_CXX=-Kconform_pic
12966       fi
12967       ;;
12968     hpux*)
12969       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12970       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12971       # sets the default TLS model and affects inlining.
12972       case $host_cpu in
12973       hppa*64*)
12974         ;;
12975       *)
12976         lt_prog_compiler_pic_CXX='-fPIC'
12977         ;;
12978       esac
12979       ;;
12980     *qnx* | *nto*)
12981       # QNX uses GNU C++, but need to define -shared option too, otherwise
12982       # it will coredump.
12983       lt_prog_compiler_pic_CXX='-fPIC -shared'
12984       ;;
12985     *)
12986       lt_prog_compiler_pic_CXX='-fPIC'
12987       ;;
12988     esac
12989   else
12990     case $host_os in
12991       aix[4-9]*)
12992         # All AIX code is PIC.
12993         if test "$host_cpu" = ia64; then
12994           # AIX 5 now supports IA64 processor
12995           lt_prog_compiler_static_CXX='-Bstatic'
12996         else
12997           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12998         fi
12999         ;;
13000       chorus*)
13001         case $cc_basename in
13002         cxch68*)
13003           # Green Hills C++ Compiler
13004           # _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"
13005           ;;
13006         esac
13007         ;;
13008       dgux*)
13009         case $cc_basename in
13010           ec++*)
13011             lt_prog_compiler_pic_CXX='-KPIC'
13012             ;;
13013           ghcx*)
13014             # Green Hills C++ Compiler
13015             lt_prog_compiler_pic_CXX='-pic'
13016             ;;
13017           *)
13018             ;;
13019         esac
13020         ;;
13021       freebsd* | dragonfly*)
13022         # FreeBSD uses GNU C++
13023         ;;
13024       hpux9* | hpux10* | hpux11*)
13025         case $cc_basename in
13026           CC*)
13027             lt_prog_compiler_wl_CXX='-Wl,'
13028             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13029             if test "$host_cpu" != ia64; then
13030               lt_prog_compiler_pic_CXX='+Z'
13031             fi
13032             ;;
13033           aCC*)
13034             lt_prog_compiler_wl_CXX='-Wl,'
13035             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13036             case $host_cpu in
13037             hppa*64*|ia64*)
13038               # +Z the default
13039               ;;
13040             *)
13041               lt_prog_compiler_pic_CXX='+Z'
13042               ;;
13043             esac
13044             ;;
13045           *)
13046             ;;
13047         esac
13048         ;;
13049       interix*)
13050         # This is c89, which is MS Visual C++ (no shared libs)
13051         # Anyone wants to do a port?
13052         ;;
13053       irix5* | irix6* | nonstopux*)
13054         case $cc_basename in
13055           CC*)
13056             lt_prog_compiler_wl_CXX='-Wl,'
13057             lt_prog_compiler_static_CXX='-non_shared'
13058             # CC pic flag -KPIC is the default.
13059             ;;
13060           *)
13061             ;;
13062         esac
13063         ;;
13064       linux* | k*bsd*-gnu)
13065         case $cc_basename in
13066           KCC*)
13067             # KAI C++ Compiler
13068             lt_prog_compiler_wl_CXX='--backend -Wl,'
13069             lt_prog_compiler_pic_CXX='-fPIC'
13070             ;;
13071           ecpc* )
13072             # old Intel C++ for x86_64 which still supported -KPIC.
13073             lt_prog_compiler_wl_CXX='-Wl,'
13074             lt_prog_compiler_pic_CXX='-KPIC'
13075             lt_prog_compiler_static_CXX='-static'
13076             ;;
13077           icpc* )
13078             # Intel C++, used to be incompatible with GCC.
13079             # ICC 10 doesn't accept -KPIC any more.
13080             lt_prog_compiler_wl_CXX='-Wl,'
13081             lt_prog_compiler_pic_CXX='-fPIC'
13082             lt_prog_compiler_static_CXX='-static'
13083             ;;
13084           pgCC* | pgcpp*)
13085             # Portland Group C++ compiler
13086             lt_prog_compiler_wl_CXX='-Wl,'
13087             lt_prog_compiler_pic_CXX='-fpic'
13088             lt_prog_compiler_static_CXX='-Bstatic'
13089             ;;
13090           cxx*)
13091             # Compaq C++
13092             # Make sure the PIC flag is empty.  It appears that all Alpha
13093             # Linux and Compaq Tru64 Unix objects are PIC.
13094             lt_prog_compiler_pic_CXX=
13095             lt_prog_compiler_static_CXX='-non_shared'
13096             ;;
13097           xlc* | xlC*)
13098             # IBM XL 8.0 on PPC
13099             lt_prog_compiler_wl_CXX='-Wl,'
13100             lt_prog_compiler_pic_CXX='-qpic'
13101             lt_prog_compiler_static_CXX='-qstaticlink'
13102             ;;
13103           *)
13104             case `$CC -V 2>&1 | sed 5q` in
13105             *Sun\ C*)
13106               # Sun C++ 5.9
13107               lt_prog_compiler_pic_CXX='-KPIC'
13108               lt_prog_compiler_static_CXX='-Bstatic'
13109               lt_prog_compiler_wl_CXX='-Qoption ld '
13110               ;;
13111             esac
13112             ;;
13113         esac
13114         ;;
13115       lynxos*)
13116         ;;
13117       m88k*)
13118         ;;
13119       mvs*)
13120         case $cc_basename in
13121           cxx*)
13122             lt_prog_compiler_pic_CXX='-W c,exportall'
13123             ;;
13124           *)
13125             ;;
13126         esac
13127         ;;
13128       netbsd* | netbsdelf*-gnu)
13129         ;;
13130       *qnx* | *nto*)
13131         # QNX uses GNU C++, but need to define -shared option too, otherwise
13132         # it will coredump.
13133         lt_prog_compiler_pic_CXX='-fPIC -shared'
13134         ;;
13135       osf3* | osf4* | osf5*)
13136         case $cc_basename in
13137           KCC*)
13138             lt_prog_compiler_wl_CXX='--backend -Wl,'
13139             ;;
13140           RCC*)
13141             # Rational C++ 2.4.1
13142             lt_prog_compiler_pic_CXX='-pic'
13143             ;;
13144           cxx*)
13145             # Digital/Compaq C++
13146             lt_prog_compiler_wl_CXX='-Wl,'
13147             # Make sure the PIC flag is empty.  It appears that all Alpha
13148             # Linux and Compaq Tru64 Unix objects are PIC.
13149             lt_prog_compiler_pic_CXX=
13150             lt_prog_compiler_static_CXX='-non_shared'
13151             ;;
13152           *)
13153             ;;
13154         esac
13155         ;;
13156       psos*)
13157         ;;
13158       solaris*)
13159         case $cc_basename in
13160           CC*)
13161             # Sun C++ 4.2, 5.x and Centerline C++
13162             lt_prog_compiler_pic_CXX='-KPIC'
13163             lt_prog_compiler_static_CXX='-Bstatic'
13164             lt_prog_compiler_wl_CXX='-Qoption ld '
13165             ;;
13166           gcx*)
13167             # Green Hills C++ Compiler
13168             lt_prog_compiler_pic_CXX='-PIC'
13169             ;;
13170           *)
13171             ;;
13172         esac
13173         ;;
13174       sunos4*)
13175         case $cc_basename in
13176           CC*)
13177             # Sun C++ 4.x
13178             lt_prog_compiler_pic_CXX='-pic'
13179             lt_prog_compiler_static_CXX='-Bstatic'
13180             ;;
13181           lcc*)
13182             # Lucid
13183             lt_prog_compiler_pic_CXX='-pic'
13184             ;;
13185           *)
13186             ;;
13187         esac
13188         ;;
13189       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13190         case $cc_basename in
13191           CC*)
13192             lt_prog_compiler_wl_CXX='-Wl,'
13193             lt_prog_compiler_pic_CXX='-KPIC'
13194             lt_prog_compiler_static_CXX='-Bstatic'
13195             ;;
13196         esac
13197         ;;
13198       tandem*)
13199         case $cc_basename in
13200           NCC*)
13201             # NonStop-UX NCC 3.20
13202             lt_prog_compiler_pic_CXX='-KPIC'
13203             ;;
13204           *)
13205             ;;
13206         esac
13207         ;;
13208       vxworks*)
13209         ;;
13210       *)
13211         lt_prog_compiler_can_build_shared_CXX=no
13212         ;;
13213     esac
13214   fi
13215
13216 case $host_os in
13217   # For platforms which do not support PIC, -DPIC is meaningless:
13218   *djgpp*)
13219     lt_prog_compiler_pic_CXX=
13220     ;;
13221   *)
13222     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13223     ;;
13224 esac
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13226 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13227
13228
13229
13230 #
13231 # Check to make sure the PIC flag actually works.
13232 #
13233 if test -n "$lt_prog_compiler_pic_CXX"; then
13234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13235 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13236 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13237   $as_echo_n "(cached) " >&6
13238 else
13239   lt_cv_prog_compiler_pic_works_CXX=no
13240    ac_outfile=conftest.$ac_objext
13241    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13242    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13243    # Insert the option either (1) after the last *FLAGS variable, or
13244    # (2) before a word containing "conftest.", or (3) at the end.
13245    # Note that $ac_compile itself does not contain backslashes and begins
13246    # with a dollar sign (not a hyphen), so the echo should work correctly.
13247    # The option is referenced via a variable to avoid confusing sed.
13248    lt_compile=`echo "$ac_compile" | $SED \
13249    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13250    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13251    -e 's:$: $lt_compiler_flag:'`
13252    (eval echo "\"\$as_me:13252: $lt_compile\"" >&5)
13253    (eval "$lt_compile" 2>conftest.err)
13254    ac_status=$?
13255    cat conftest.err >&5
13256    echo "$as_me:13256: \$? = $ac_status" >&5
13257    if (exit $ac_status) && test -s "$ac_outfile"; then
13258      # The compiler can only warn and ignore the option if not recognized
13259      # So say no if there are warnings other than the usual output.
13260      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13261      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13262      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13263        lt_cv_prog_compiler_pic_works_CXX=yes
13264      fi
13265    fi
13266    $RM conftest*
13267
13268 fi
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13270 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13271
13272 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13273     case $lt_prog_compiler_pic_CXX in
13274      "" | " "*) ;;
13275      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13276      esac
13277 else
13278     lt_prog_compiler_pic_CXX=
13279      lt_prog_compiler_can_build_shared_CXX=no
13280 fi
13281
13282 fi
13283
13284
13285
13286 #
13287 # Check to make sure the static flag actually works.
13288 #
13289 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13291 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13292 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13293   $as_echo_n "(cached) " >&6
13294 else
13295   lt_cv_prog_compiler_static_works_CXX=no
13296    save_LDFLAGS="$LDFLAGS"
13297    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13298    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13299    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13300      # The linker can only warn and ignore the option if not recognized
13301      # So say no if there are warnings
13302      if test -s conftest.err; then
13303        # Append any errors to the config.log.
13304        cat conftest.err 1>&5
13305        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13306        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13307        if diff conftest.exp conftest.er2 >/dev/null; then
13308          lt_cv_prog_compiler_static_works_CXX=yes
13309        fi
13310      else
13311        lt_cv_prog_compiler_static_works_CXX=yes
13312      fi
13313    fi
13314    $RM -r conftest*
13315    LDFLAGS="$save_LDFLAGS"
13316
13317 fi
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13319 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13320
13321 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13322     :
13323 else
13324     lt_prog_compiler_static_CXX=
13325 fi
13326
13327
13328
13329
13330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13331 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13332 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13333   $as_echo_n "(cached) " >&6
13334 else
13335   lt_cv_prog_compiler_c_o_CXX=no
13336    $RM -r conftest 2>/dev/null
13337    mkdir conftest
13338    cd conftest
13339    mkdir out
13340    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13341
13342    lt_compiler_flag="-o out/conftest2.$ac_objext"
13343    # Insert the option either (1) after the last *FLAGS variable, or
13344    # (2) before a word containing "conftest.", or (3) at the end.
13345    # Note that $ac_compile itself does not contain backslashes and begins
13346    # with a dollar sign (not a hyphen), so the echo should work correctly.
13347    lt_compile=`echo "$ac_compile" | $SED \
13348    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13349    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13350    -e 's:$: $lt_compiler_flag:'`
13351    (eval echo "\"\$as_me:13351: $lt_compile\"" >&5)
13352    (eval "$lt_compile" 2>out/conftest.err)
13353    ac_status=$?
13354    cat out/conftest.err >&5
13355    echo "$as_me:13355: \$? = $ac_status" >&5
13356    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13357    then
13358      # The compiler can only warn and ignore the option if not recognized
13359      # So say no if there are warnings
13360      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13361      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13362      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13363        lt_cv_prog_compiler_c_o_CXX=yes
13364      fi
13365    fi
13366    chmod u+w . 2>&5
13367    $RM conftest*
13368    # SGI C++ compiler will create directory out/ii_files/ for
13369    # template instantiation
13370    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13371    $RM out/* && rmdir out
13372    cd ..
13373    $RM -r conftest
13374    $RM conftest*
13375
13376 fi
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13378 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13379
13380
13381
13382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13383 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13384 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13385   $as_echo_n "(cached) " >&6
13386 else
13387   lt_cv_prog_compiler_c_o_CXX=no
13388    $RM -r conftest 2>/dev/null
13389    mkdir conftest
13390    cd conftest
13391    mkdir out
13392    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13393
13394    lt_compiler_flag="-o out/conftest2.$ac_objext"
13395    # Insert the option either (1) after the last *FLAGS variable, or
13396    # (2) before a word containing "conftest.", or (3) at the end.
13397    # Note that $ac_compile itself does not contain backslashes and begins
13398    # with a dollar sign (not a hyphen), so the echo should work correctly.
13399    lt_compile=`echo "$ac_compile" | $SED \
13400    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13401    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13402    -e 's:$: $lt_compiler_flag:'`
13403    (eval echo "\"\$as_me:13403: $lt_compile\"" >&5)
13404    (eval "$lt_compile" 2>out/conftest.err)
13405    ac_status=$?
13406    cat out/conftest.err >&5
13407    echo "$as_me:13407: \$? = $ac_status" >&5
13408    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13409    then
13410      # The compiler can only warn and ignore the option if not recognized
13411      # So say no if there are warnings
13412      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13413      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13414      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13415        lt_cv_prog_compiler_c_o_CXX=yes
13416      fi
13417    fi
13418    chmod u+w . 2>&5
13419    $RM conftest*
13420    # SGI C++ compiler will create directory out/ii_files/ for
13421    # template instantiation
13422    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13423    $RM out/* && rmdir out
13424    cd ..
13425    $RM -r conftest
13426    $RM conftest*
13427
13428 fi
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13430 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13431
13432
13433
13434
13435 hard_links="nottested"
13436 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13437   # do not overwrite the value of need_locks provided by the user
13438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13439 $as_echo_n "checking if we can lock with hard links... " >&6; }
13440   hard_links=yes
13441   $RM conftest*
13442   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13443   touch conftest.a
13444   ln conftest.a conftest.b 2>&5 || hard_links=no
13445   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13447 $as_echo "$hard_links" >&6; }
13448   if test "$hard_links" = no; then
13449     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13450 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13451     need_locks=warn
13452   fi
13453 else
13454   need_locks=no
13455 fi
13456
13457
13458
13459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13460 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13461
13462   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13463   case $host_os in
13464   aix[4-9]*)
13465     # If we're using GNU nm, then we don't want the "-C" option.
13466     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13467     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13468       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13469     else
13470       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'
13471     fi
13472     ;;
13473   pw32*)
13474     export_symbols_cmds_CXX="$ltdll_cmds"
13475   ;;
13476   cygwin* | mingw* | cegcc*)
13477     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13478   ;;
13479   linux* | k*bsd*-gnu)
13480     link_all_deplibs_CXX=no
13481   ;;
13482   *)
13483     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13484   ;;
13485   esac
13486   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13487
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13489 $as_echo "$ld_shlibs_CXX" >&6; }
13490 test "$ld_shlibs_CXX" = no && can_build_shared=no
13491
13492 with_gnu_ld_CXX=$with_gnu_ld
13493
13494
13495
13496
13497
13498
13499 #
13500 # Do we need to explicitly link libc?
13501 #
13502 case "x$archive_cmds_need_lc_CXX" in
13503 x|xyes)
13504   # Assume -lc should be added
13505   archive_cmds_need_lc_CXX=yes
13506
13507   if test "$enable_shared" = yes && test "$GCC" = yes; then
13508     case $archive_cmds_CXX in
13509     *'~'*)
13510       # FIXME: we may have to deal with multi-command sequences.
13511       ;;
13512     '$CC '*)
13513       # Test whether the compiler implicitly links with -lc since on some
13514       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13515       # to ld, don't add -lc before -lgcc.
13516       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13517 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13518       $RM conftest*
13519       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13520
13521       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13522   (eval $ac_compile) 2>&5
13523   ac_status=$?
13524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13525   test $ac_status = 0; } 2>conftest.err; then
13526         soname=conftest
13527         lib=conftest
13528         libobjs=conftest.$ac_objext
13529         deplibs=
13530         wl=$lt_prog_compiler_wl_CXX
13531         pic_flag=$lt_prog_compiler_pic_CXX
13532         compiler_flags=-v
13533         linker_flags=-v
13534         verstring=
13535         output_objdir=.
13536         libname=conftest
13537         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13538         allow_undefined_flag_CXX=
13539         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13540   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13541   ac_status=$?
13542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13543   test $ac_status = 0; }
13544         then
13545           archive_cmds_need_lc_CXX=no
13546         else
13547           archive_cmds_need_lc_CXX=yes
13548         fi
13549         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13550       else
13551         cat conftest.err 1>&5
13552       fi
13553       $RM conftest*
13554       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13555 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13556       ;;
13557     esac
13558   fi
13559   ;;
13560 esac
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13626 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13627
13628 library_names_spec=
13629 libname_spec='lib$name'
13630 soname_spec=
13631 shrext_cmds=".so"
13632 postinstall_cmds=
13633 postuninstall_cmds=
13634 finish_cmds=
13635 finish_eval=
13636 shlibpath_var=
13637 shlibpath_overrides_runpath=unknown
13638 version_type=none
13639 dynamic_linker="$host_os ld.so"
13640 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13641 need_lib_prefix=unknown
13642 hardcode_into_libs=no
13643
13644 # when you set need_version to no, make sure it does not cause -set_version
13645 # flags to be left without arguments
13646 need_version=unknown
13647
13648 case $host_os in
13649 aix3*)
13650   version_type=linux
13651   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13652   shlibpath_var=LIBPATH
13653
13654   # AIX 3 has no versioning support, so we append a major version to the name.
13655   soname_spec='${libname}${release}${shared_ext}$major'
13656   ;;
13657
13658 aix[4-9]*)
13659   version_type=linux
13660   need_lib_prefix=no
13661   need_version=no
13662   hardcode_into_libs=yes
13663   if test "$host_cpu" = ia64; then
13664     # AIX 5 supports IA64
13665     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13666     shlibpath_var=LD_LIBRARY_PATH
13667   else
13668     # With GCC up to 2.95.x, collect2 would create an import file
13669     # for dependence libraries.  The import file would start with
13670     # the line `#! .'.  This would cause the generated library to
13671     # depend on `.', always an invalid library.  This was fixed in
13672     # development snapshots of GCC prior to 3.0.
13673     case $host_os in
13674       aix4 | aix4.[01] | aix4.[01].*)
13675       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13676            echo ' yes '
13677            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13678         :
13679       else
13680         can_build_shared=no
13681       fi
13682       ;;
13683     esac
13684     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13685     # soname into executable. Probably we can add versioning support to
13686     # collect2, so additional links can be useful in future.
13687     if test "$aix_use_runtimelinking" = yes; then
13688       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13689       # instead of lib<name>.a to let people know that these are not
13690       # typical AIX shared libraries.
13691       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13692     else
13693       # We preserve .a as extension for shared libraries through AIX4.2
13694       # and later when we are not doing run time linking.
13695       library_names_spec='${libname}${release}.a $libname.a'
13696       soname_spec='${libname}${release}${shared_ext}$major'
13697     fi
13698     shlibpath_var=LIBPATH
13699   fi
13700   ;;
13701
13702 amigaos*)
13703   case $host_cpu in
13704   powerpc)
13705     # Since July 2007 AmigaOS4 officially supports .so libraries.
13706     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13707     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13708     ;;
13709   m68k)
13710     library_names_spec='$libname.ixlibrary $libname.a'
13711     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13712     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13713     ;;
13714   esac
13715   ;;
13716
13717 beos*)
13718   library_names_spec='${libname}${shared_ext}'
13719   dynamic_linker="$host_os ld.so"
13720   shlibpath_var=LIBRARY_PATH
13721   ;;
13722
13723 bsdi[45]*)
13724   version_type=linux
13725   need_version=no
13726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13727   soname_spec='${libname}${release}${shared_ext}$major'
13728   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13729   shlibpath_var=LD_LIBRARY_PATH
13730   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13731   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13732   # the default ld.so.conf also contains /usr/contrib/lib and
13733   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13734   # libtool to hard-code these into programs
13735   ;;
13736
13737 cygwin* | mingw* | pw32* | cegcc*)
13738   version_type=windows
13739   shrext_cmds=".dll"
13740   need_version=no
13741   need_lib_prefix=no
13742
13743   case $GCC,$host_os in
13744   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13745     library_names_spec='$libname.dll.a'
13746     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13747     postinstall_cmds='base_file=`basename \${file}`~
13748       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13749       dldir=$destdir/`dirname \$dlpath`~
13750       test -d \$dldir || mkdir -p \$dldir~
13751       $install_prog $dir/$dlname \$dldir/$dlname~
13752       chmod a+x \$dldir/$dlname~
13753       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13754         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13755       fi'
13756     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13757       dlpath=$dir/\$dldll~
13758        $RM \$dlpath'
13759     shlibpath_overrides_runpath=yes
13760
13761     case $host_os in
13762     cygwin*)
13763       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13764       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13765       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13766       ;;
13767     mingw* | cegcc*)
13768       # MinGW DLLs use traditional 'lib' prefix
13769       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13770       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13771       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13772         # It is most probably a Windows format PATH printed by
13773         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13774         # path with ; separators, and with drive letters. We can handle the
13775         # drive letters (cygwin fileutils understands them), so leave them,
13776         # especially as we might pass files found there to a mingw objdump,
13777         # which wouldn't understand a cygwinified path. Ahh.
13778         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13779       else
13780         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13781       fi
13782       ;;
13783     pw32*)
13784       # pw32 DLLs use 'pw' prefix rather than 'lib'
13785       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13786       ;;
13787     esac
13788     ;;
13789
13790   *)
13791     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13792     ;;
13793   esac
13794   dynamic_linker='Win32 ld.exe'
13795   # FIXME: first we should search . and the directory the executable is in
13796   shlibpath_var=PATH
13797   ;;
13798
13799 darwin* | rhapsody*)
13800   dynamic_linker="$host_os dyld"
13801   version_type=darwin
13802   need_lib_prefix=no
13803   need_version=no
13804   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13805   soname_spec='${libname}${release}${major}$shared_ext'
13806   shlibpath_overrides_runpath=yes
13807   shlibpath_var=DYLD_LIBRARY_PATH
13808   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13809
13810   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13811   ;;
13812
13813 dgux*)
13814   version_type=linux
13815   need_lib_prefix=no
13816   need_version=no
13817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13818   soname_spec='${libname}${release}${shared_ext}$major'
13819   shlibpath_var=LD_LIBRARY_PATH
13820   ;;
13821
13822 freebsd1*)
13823   dynamic_linker=no
13824   ;;
13825
13826 freebsd* | dragonfly*)
13827   # DragonFly does not have aout.  When/if they implement a new
13828   # versioning mechanism, adjust this.
13829   if test -x /usr/bin/objformat; then
13830     objformat=`/usr/bin/objformat`
13831   else
13832     case $host_os in
13833     freebsd[123]*) objformat=aout ;;
13834     *) objformat=elf ;;
13835     esac
13836   fi
13837   version_type=freebsd-$objformat
13838   case $version_type in
13839     freebsd-elf*)
13840       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13841       need_version=no
13842       need_lib_prefix=no
13843       ;;
13844     freebsd-*)
13845       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13846       need_version=yes
13847       ;;
13848   esac
13849   shlibpath_var=LD_LIBRARY_PATH
13850   case $host_os in
13851   freebsd2*)
13852     shlibpath_overrides_runpath=yes
13853     ;;
13854   freebsd3.[01]* | freebsdelf3.[01]*)
13855     shlibpath_overrides_runpath=yes
13856     hardcode_into_libs=yes
13857     ;;
13858   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13859   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13860     shlibpath_overrides_runpath=no
13861     hardcode_into_libs=yes
13862     ;;
13863   *) # from 4.6 on, and DragonFly
13864     shlibpath_overrides_runpath=yes
13865     hardcode_into_libs=yes
13866     ;;
13867   esac
13868   ;;
13869
13870 gnu*)
13871   version_type=linux
13872   need_lib_prefix=no
13873   need_version=no
13874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13875   soname_spec='${libname}${release}${shared_ext}$major'
13876   shlibpath_var=LD_LIBRARY_PATH
13877   hardcode_into_libs=yes
13878   ;;
13879
13880 hpux9* | hpux10* | hpux11*)
13881   # Give a soname corresponding to the major version so that dld.sl refuses to
13882   # link against other versions.
13883   version_type=sunos
13884   need_lib_prefix=no
13885   need_version=no
13886   case $host_cpu in
13887   ia64*)
13888     shrext_cmds='.so'
13889     hardcode_into_libs=yes
13890     dynamic_linker="$host_os dld.so"
13891     shlibpath_var=LD_LIBRARY_PATH
13892     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13893     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13894     soname_spec='${libname}${release}${shared_ext}$major'
13895     if test "X$HPUX_IA64_MODE" = X32; then
13896       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13897     else
13898       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13899     fi
13900     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13901     ;;
13902   hppa*64*)
13903     shrext_cmds='.sl'
13904     hardcode_into_libs=yes
13905     dynamic_linker="$host_os dld.sl"
13906     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13907     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13908     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13909     soname_spec='${libname}${release}${shared_ext}$major'
13910     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13911     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13912     ;;
13913   *)
13914     shrext_cmds='.sl'
13915     dynamic_linker="$host_os dld.sl"
13916     shlibpath_var=SHLIB_PATH
13917     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13918     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13919     soname_spec='${libname}${release}${shared_ext}$major'
13920     ;;
13921   esac
13922   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13923   postinstall_cmds='chmod 555 $lib'
13924   ;;
13925
13926 interix[3-9]*)
13927   version_type=linux
13928   need_lib_prefix=no
13929   need_version=no
13930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13931   soname_spec='${libname}${release}${shared_ext}$major'
13932   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13933   shlibpath_var=LD_LIBRARY_PATH
13934   shlibpath_overrides_runpath=no
13935   hardcode_into_libs=yes
13936   ;;
13937
13938 irix5* | irix6* | nonstopux*)
13939   case $host_os in
13940     nonstopux*) version_type=nonstopux ;;
13941     *)
13942         if test "$lt_cv_prog_gnu_ld" = yes; then
13943                 version_type=linux
13944         else
13945                 version_type=irix
13946         fi ;;
13947   esac
13948   need_lib_prefix=no
13949   need_version=no
13950   soname_spec='${libname}${release}${shared_ext}$major'
13951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13952   case $host_os in
13953   irix5* | nonstopux*)
13954     libsuff= shlibsuff=
13955     ;;
13956   *)
13957     case $LD in # libtool.m4 will add one of these switches to LD
13958     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13959       libsuff= shlibsuff= libmagic=32-bit;;
13960     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13961       libsuff=32 shlibsuff=N32 libmagic=N32;;
13962     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13963       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13964     *) libsuff= shlibsuff= libmagic=never-match;;
13965     esac
13966     ;;
13967   esac
13968   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13969   shlibpath_overrides_runpath=no
13970   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13971   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13972   hardcode_into_libs=yes
13973   ;;
13974
13975 # No shared lib support for Linux oldld, aout, or coff.
13976 linux*oldld* | linux*aout* | linux*coff*)
13977   dynamic_linker=no
13978   ;;
13979
13980 # This must be Linux ELF.
13981 linux* | k*bsd*-gnu)
13982   version_type=linux
13983   need_lib_prefix=no
13984   need_version=no
13985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13986   soname_spec='${libname}${release}${shared_ext}$major'
13987   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13988   shlibpath_var=LD_LIBRARY_PATH
13989   shlibpath_overrides_runpath=no
13990   # Some binutils ld are patched to set DT_RUNPATH
13991   save_LDFLAGS=$LDFLAGS
13992   save_libdir=$libdir
13993   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13994        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h.  */
13997
13998 int
13999 main ()
14000 {
14001
14002   ;
14003   return 0;
14004 }
14005 _ACEOF
14006 if ac_fn_cxx_try_link "$LINENO"; then :
14007   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14008   shlibpath_overrides_runpath=yes
14009 fi
14010 fi
14011 rm -f core conftest.err conftest.$ac_objext \
14012     conftest$ac_exeext conftest.$ac_ext
14013   LDFLAGS=$save_LDFLAGS
14014   libdir=$save_libdir
14015
14016   # This implies no fast_install, which is unacceptable.
14017   # Some rework will be needed to allow for fast_install
14018   # before this can be enabled.
14019   hardcode_into_libs=yes
14020
14021   # Append ld.so.conf contents to the search path
14022   if test -f /etc/ld.so.conf; then
14023     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14024     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14025   fi
14026
14027   # We used to test for /lib/ld.so.1 and disable shared libraries on
14028   # powerpc, because MkLinux only supported shared libraries with the
14029   # GNU dynamic linker.  Since this was broken with cross compilers,
14030   # most powerpc-linux boxes support dynamic linking these days and
14031   # people can always --disable-shared, the test was removed, and we
14032   # assume the GNU/Linux dynamic linker is in use.
14033   dynamic_linker='GNU/Linux ld.so'
14034   ;;
14035
14036 netbsdelf*-gnu)
14037   version_type=linux
14038   need_lib_prefix=no
14039   need_version=no
14040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14041   soname_spec='${libname}${release}${shared_ext}$major'
14042   shlibpath_var=LD_LIBRARY_PATH
14043   shlibpath_overrides_runpath=no
14044   hardcode_into_libs=yes
14045   dynamic_linker='NetBSD ld.elf_so'
14046   ;;
14047
14048 netbsd*)
14049   version_type=sunos
14050   need_lib_prefix=no
14051   need_version=no
14052   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14053     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14054     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14055     dynamic_linker='NetBSD (a.out) ld.so'
14056   else
14057     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14058     soname_spec='${libname}${release}${shared_ext}$major'
14059     dynamic_linker='NetBSD ld.elf_so'
14060   fi
14061   shlibpath_var=LD_LIBRARY_PATH
14062   shlibpath_overrides_runpath=yes
14063   hardcode_into_libs=yes
14064   ;;
14065
14066 newsos6)
14067   version_type=linux
14068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14069   shlibpath_var=LD_LIBRARY_PATH
14070   shlibpath_overrides_runpath=yes
14071   ;;
14072
14073 *nto* | *qnx*)
14074   version_type=qnx
14075   need_lib_prefix=no
14076   need_version=no
14077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14078   soname_spec='${libname}${release}${shared_ext}$major'
14079   shlibpath_var=LD_LIBRARY_PATH
14080   shlibpath_overrides_runpath=no
14081   hardcode_into_libs=yes
14082   dynamic_linker='ldqnx.so'
14083   ;;
14084
14085 openbsd*)
14086   version_type=sunos
14087   sys_lib_dlsearch_path_spec="/usr/lib"
14088   need_lib_prefix=no
14089   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14090   case $host_os in
14091     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14092     *)                          need_version=no  ;;
14093   esac
14094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14095   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14096   shlibpath_var=LD_LIBRARY_PATH
14097   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14098     case $host_os in
14099       openbsd2.[89] | openbsd2.[89].*)
14100         shlibpath_overrides_runpath=no
14101         ;;
14102       *)
14103         shlibpath_overrides_runpath=yes
14104         ;;
14105       esac
14106   else
14107     shlibpath_overrides_runpath=yes
14108   fi
14109   ;;
14110
14111 os2*)
14112   libname_spec='$name'
14113   shrext_cmds=".dll"
14114   need_lib_prefix=no
14115   library_names_spec='$libname${shared_ext} $libname.a'
14116   dynamic_linker='OS/2 ld.exe'
14117   shlibpath_var=LIBPATH
14118   ;;
14119
14120 osf3* | osf4* | osf5*)
14121   version_type=osf
14122   need_lib_prefix=no
14123   need_version=no
14124   soname_spec='${libname}${release}${shared_ext}$major'
14125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14126   shlibpath_var=LD_LIBRARY_PATH
14127   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14128   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14129   ;;
14130
14131 rdos*)
14132   dynamic_linker=no
14133   ;;
14134
14135 solaris*)
14136   version_type=linux
14137   need_lib_prefix=no
14138   need_version=no
14139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14140   soname_spec='${libname}${release}${shared_ext}$major'
14141   shlibpath_var=LD_LIBRARY_PATH
14142   shlibpath_overrides_runpath=yes
14143   hardcode_into_libs=yes
14144   # ldd complains unless libraries are executable
14145   postinstall_cmds='chmod +x $lib'
14146   ;;
14147
14148 sunos4*)
14149   version_type=sunos
14150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14151   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14152   shlibpath_var=LD_LIBRARY_PATH
14153   shlibpath_overrides_runpath=yes
14154   if test "$with_gnu_ld" = yes; then
14155     need_lib_prefix=no
14156   fi
14157   need_version=yes
14158   ;;
14159
14160 sysv4 | sysv4.3*)
14161   version_type=linux
14162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14163   soname_spec='${libname}${release}${shared_ext}$major'
14164   shlibpath_var=LD_LIBRARY_PATH
14165   case $host_vendor in
14166     sni)
14167       shlibpath_overrides_runpath=no
14168       need_lib_prefix=no
14169       runpath_var=LD_RUN_PATH
14170       ;;
14171     siemens)
14172       need_lib_prefix=no
14173       ;;
14174     motorola)
14175       need_lib_prefix=no
14176       need_version=no
14177       shlibpath_overrides_runpath=no
14178       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14179       ;;
14180   esac
14181   ;;
14182
14183 sysv4*MP*)
14184   if test -d /usr/nec ;then
14185     version_type=linux
14186     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14187     soname_spec='$libname${shared_ext}.$major'
14188     shlibpath_var=LD_LIBRARY_PATH
14189   fi
14190   ;;
14191
14192 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14193   version_type=freebsd-elf
14194   need_lib_prefix=no
14195   need_version=no
14196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14197   soname_spec='${libname}${release}${shared_ext}$major'
14198   shlibpath_var=LD_LIBRARY_PATH
14199   shlibpath_overrides_runpath=yes
14200   hardcode_into_libs=yes
14201   if test "$with_gnu_ld" = yes; then
14202     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14203   else
14204     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14205     case $host_os in
14206       sco3.2v5*)
14207         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14208         ;;
14209     esac
14210   fi
14211   sys_lib_dlsearch_path_spec='/usr/lib'
14212   ;;
14213
14214 tpf*)
14215   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14216   version_type=linux
14217   need_lib_prefix=no
14218   need_version=no
14219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14220   shlibpath_var=LD_LIBRARY_PATH
14221   shlibpath_overrides_runpath=no
14222   hardcode_into_libs=yes
14223   ;;
14224
14225 uts4*)
14226   version_type=linux
14227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14228   soname_spec='${libname}${release}${shared_ext}$major'
14229   shlibpath_var=LD_LIBRARY_PATH
14230   ;;
14231
14232 *)
14233   dynamic_linker=no
14234   ;;
14235 esac
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14237 $as_echo "$dynamic_linker" >&6; }
14238 test "$dynamic_linker" = no && can_build_shared=no
14239
14240 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14241 if test "$GCC" = yes; then
14242   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14243 fi
14244
14245 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14246   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14247 fi
14248 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14249   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14250 fi
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14288 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14289 hardcode_action_CXX=
14290 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14291    test -n "$runpath_var_CXX" ||
14292    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14293
14294   # We can hardcode non-existent directories.
14295   if test "$hardcode_direct_CXX" != no &&
14296      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14297      # have to relink, otherwise we might link with an installed library
14298      # when we should be linking with a yet-to-be-installed one
14299      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14300      test "$hardcode_minus_L_CXX" != no; then
14301     # Linking always hardcodes the temporary library directory.
14302     hardcode_action_CXX=relink
14303   else
14304     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14305     hardcode_action_CXX=immediate
14306   fi
14307 else
14308   # We cannot hardcode anything, or else we can only hardcode existing
14309   # directories.
14310   hardcode_action_CXX=unsupported
14311 fi
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14313 $as_echo "$hardcode_action_CXX" >&6; }
14314
14315 if test "$hardcode_action_CXX" = relink ||
14316    test "$inherit_rpath_CXX" = yes; then
14317   # Fast installation is not supported
14318   enable_fast_install=no
14319 elif test "$shlibpath_overrides_runpath" = yes ||
14320      test "$enable_shared" = no; then
14321   # Fast installation is not necessary
14322   enable_fast_install=needless
14323 fi
14324
14325
14326
14327
14328
14329
14330
14331   fi # test -n "$compiler"
14332
14333   CC=$lt_save_CC
14334   LDCXX=$LD
14335   LD=$lt_save_LD
14336   GCC=$lt_save_GCC
14337   with_gnu_ld=$lt_save_with_gnu_ld
14338   lt_cv_path_LDCXX=$lt_cv_path_LD
14339   lt_cv_path_LD=$lt_save_path_LD
14340   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14341   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14342 fi # test "$_lt_caught_CXX_error" != yes
14343
14344 ac_ext=c
14345 ac_cpp='$CPP $CPPFLAGS'
14346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14349
14350
14351 ac_ext=c
14352 ac_cpp='$CPP $CPPFLAGS'
14353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14356 if test -n "$ac_tool_prefix"; then
14357   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14358 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14360 $as_echo_n "checking for $ac_word... " >&6; }
14361 if test "${ac_cv_prog_CC+set}" = set; then :
14362   $as_echo_n "(cached) " >&6
14363 else
14364   if test -n "$CC"; then
14365   ac_cv_prog_CC="$CC" # Let the user override the test.
14366 else
14367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14368 for as_dir in $PATH
14369 do
14370   IFS=$as_save_IFS
14371   test -z "$as_dir" && as_dir=.
14372     for ac_exec_ext in '' $ac_executable_extensions; do
14373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14374     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14376     break 2
14377   fi
14378 done
14379   done
14380 IFS=$as_save_IFS
14381
14382 fi
14383 fi
14384 CC=$ac_cv_prog_CC
14385 if test -n "$CC"; then
14386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14387 $as_echo "$CC" >&6; }
14388 else
14389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14390 $as_echo "no" >&6; }
14391 fi
14392
14393
14394 fi
14395 if test -z "$ac_cv_prog_CC"; then
14396   ac_ct_CC=$CC
14397   # Extract the first word of "gcc", so it can be a program name with args.
14398 set dummy gcc; ac_word=$2
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14400 $as_echo_n "checking for $ac_word... " >&6; }
14401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
14402   $as_echo_n "(cached) " >&6
14403 else
14404   if test -n "$ac_ct_CC"; then
14405   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14406 else
14407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14408 for as_dir in $PATH
14409 do
14410   IFS=$as_save_IFS
14411   test -z "$as_dir" && as_dir=.
14412     for ac_exec_ext in '' $ac_executable_extensions; do
14413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14414     ac_cv_prog_ac_ct_CC="gcc"
14415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14416     break 2
14417   fi
14418 done
14419   done
14420 IFS=$as_save_IFS
14421
14422 fi
14423 fi
14424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14425 if test -n "$ac_ct_CC"; then
14426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14427 $as_echo "$ac_ct_CC" >&6; }
14428 else
14429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14430 $as_echo "no" >&6; }
14431 fi
14432
14433   if test "x$ac_ct_CC" = x; then
14434     CC=""
14435   else
14436     case $cross_compiling:$ac_tool_warned in
14437 yes:)
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14440 ac_tool_warned=yes ;;
14441 esac
14442     CC=$ac_ct_CC
14443   fi
14444 else
14445   CC="$ac_cv_prog_CC"
14446 fi
14447
14448 if test -z "$CC"; then
14449           if test -n "$ac_tool_prefix"; then
14450     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14451 set dummy ${ac_tool_prefix}cc; ac_word=$2
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14453 $as_echo_n "checking for $ac_word... " >&6; }
14454 if test "${ac_cv_prog_CC+set}" = set; then :
14455   $as_echo_n "(cached) " >&6
14456 else
14457   if test -n "$CC"; then
14458   ac_cv_prog_CC="$CC" # Let the user override the test.
14459 else
14460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14461 for as_dir in $PATH
14462 do
14463   IFS=$as_save_IFS
14464   test -z "$as_dir" && as_dir=.
14465     for ac_exec_ext in '' $ac_executable_extensions; do
14466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14467     ac_cv_prog_CC="${ac_tool_prefix}cc"
14468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14469     break 2
14470   fi
14471 done
14472   done
14473 IFS=$as_save_IFS
14474
14475 fi
14476 fi
14477 CC=$ac_cv_prog_CC
14478 if test -n "$CC"; then
14479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14480 $as_echo "$CC" >&6; }
14481 else
14482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14483 $as_echo "no" >&6; }
14484 fi
14485
14486
14487   fi
14488 fi
14489 if test -z "$CC"; then
14490   # Extract the first word of "cc", so it can be a program name with args.
14491 set dummy cc; ac_word=$2
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14493 $as_echo_n "checking for $ac_word... " >&6; }
14494 if test "${ac_cv_prog_CC+set}" = set; then :
14495   $as_echo_n "(cached) " >&6
14496 else
14497   if test -n "$CC"; then
14498   ac_cv_prog_CC="$CC" # Let the user override the test.
14499 else
14500   ac_prog_rejected=no
14501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14502 for as_dir in $PATH
14503 do
14504   IFS=$as_save_IFS
14505   test -z "$as_dir" && as_dir=.
14506     for ac_exec_ext in '' $ac_executable_extensions; do
14507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14508     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14509        ac_prog_rejected=yes
14510        continue
14511      fi
14512     ac_cv_prog_CC="cc"
14513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14514     break 2
14515   fi
14516 done
14517   done
14518 IFS=$as_save_IFS
14519
14520 if test $ac_prog_rejected = yes; then
14521   # We found a bogon in the path, so make sure we never use it.
14522   set dummy $ac_cv_prog_CC
14523   shift
14524   if test $# != 0; then
14525     # We chose a different compiler from the bogus one.
14526     # However, it has the same basename, so the bogon will be chosen
14527     # first if we set CC to just the basename; use the full file name.
14528     shift
14529     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14530   fi
14531 fi
14532 fi
14533 fi
14534 CC=$ac_cv_prog_CC
14535 if test -n "$CC"; then
14536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14537 $as_echo "$CC" >&6; }
14538 else
14539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14540 $as_echo "no" >&6; }
14541 fi
14542
14543
14544 fi
14545 if test -z "$CC"; then
14546   if test -n "$ac_tool_prefix"; then
14547   for ac_prog in cl.exe
14548   do
14549     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14550 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14552 $as_echo_n "checking for $ac_word... " >&6; }
14553 if test "${ac_cv_prog_CC+set}" = set; then :
14554   $as_echo_n "(cached) " >&6
14555 else
14556   if test -n "$CC"; then
14557   ac_cv_prog_CC="$CC" # Let the user override the test.
14558 else
14559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14560 for as_dir in $PATH
14561 do
14562   IFS=$as_save_IFS
14563   test -z "$as_dir" && as_dir=.
14564     for ac_exec_ext in '' $ac_executable_extensions; do
14565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14566     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14568     break 2
14569   fi
14570 done
14571   done
14572 IFS=$as_save_IFS
14573
14574 fi
14575 fi
14576 CC=$ac_cv_prog_CC
14577 if test -n "$CC"; then
14578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14579 $as_echo "$CC" >&6; }
14580 else
14581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14582 $as_echo "no" >&6; }
14583 fi
14584
14585
14586     test -n "$CC" && break
14587   done
14588 fi
14589 if test -z "$CC"; then
14590   ac_ct_CC=$CC
14591   for ac_prog in cl.exe
14592 do
14593   # Extract the first word of "$ac_prog", so it can be a program name with args.
14594 set dummy $ac_prog; ac_word=$2
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14596 $as_echo_n "checking for $ac_word... " >&6; }
14597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
14598   $as_echo_n "(cached) " >&6
14599 else
14600   if test -n "$ac_ct_CC"; then
14601   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14602 else
14603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14604 for as_dir in $PATH
14605 do
14606   IFS=$as_save_IFS
14607   test -z "$as_dir" && as_dir=.
14608     for ac_exec_ext in '' $ac_executable_extensions; do
14609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14610     ac_cv_prog_ac_ct_CC="$ac_prog"
14611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14612     break 2
14613   fi
14614 done
14615   done
14616 IFS=$as_save_IFS
14617
14618 fi
14619 fi
14620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14621 if test -n "$ac_ct_CC"; then
14622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14623 $as_echo "$ac_ct_CC" >&6; }
14624 else
14625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14626 $as_echo "no" >&6; }
14627 fi
14628
14629
14630   test -n "$ac_ct_CC" && break
14631 done
14632
14633   if test "x$ac_ct_CC" = x; then
14634     CC=""
14635   else
14636     case $cross_compiling:$ac_tool_warned in
14637 yes:)
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14640 ac_tool_warned=yes ;;
14641 esac
14642     CC=$ac_ct_CC
14643   fi
14644 fi
14645
14646 fi
14647
14648
14649 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14651 as_fn_error "no acceptable C compiler found in \$PATH
14652 See \`config.log' for more details." "$LINENO" 5; }
14653
14654 # Provide some information about the compiler.
14655 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14656 set X $ac_compile
14657 ac_compiler=$2
14658 for ac_option in --version -v -V -qversion; do
14659   { { ac_try="$ac_compiler $ac_option >&5"
14660 case "(($ac_try" in
14661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662   *) ac_try_echo=$ac_try;;
14663 esac
14664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14665 $as_echo "$ac_try_echo"; } >&5
14666   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14667   ac_status=$?
14668   if test -s conftest.err; then
14669     sed '10a\
14670 ... rest of stderr output deleted ...
14671          10q' conftest.err >conftest.er1
14672     cat conftest.er1 >&5
14673     rm -f conftest.er1 conftest.err
14674   fi
14675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14676   test $ac_status = 0; }
14677 done
14678
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
14680 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
14681 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
14682   $as_echo_n "(cached) " >&6
14683 else
14684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14685 /* end confdefs.h.  */
14686
14687 int
14688 main ()
14689 {
14690 #ifndef __GNUC__
14691        choke me
14692 #endif
14693
14694   ;
14695   return 0;
14696 }
14697 _ACEOF
14698 if ac_fn_c_try_compile "$LINENO"; then :
14699   ac_compiler_gnu=yes
14700 else
14701   ac_compiler_gnu=no
14702 fi
14703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14704 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14705
14706 fi
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14708 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
14709 if test $ac_compiler_gnu = yes; then
14710   GCC=yes
14711 else
14712   GCC=
14713 fi
14714 ac_test_CFLAGS=${CFLAGS+set}
14715 ac_save_CFLAGS=$CFLAGS
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14717 $as_echo_n "checking whether $CC accepts -g... " >&6; }
14718 if test "${ac_cv_prog_cc_g+set}" = set; then :
14719   $as_echo_n "(cached) " >&6
14720 else
14721   ac_save_c_werror_flag=$ac_c_werror_flag
14722    ac_c_werror_flag=yes
14723    ac_cv_prog_cc_g=no
14724    CFLAGS="-g"
14725    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14726 /* end confdefs.h.  */
14727
14728 int
14729 main ()
14730 {
14731
14732   ;
14733   return 0;
14734 }
14735 _ACEOF
14736 if ac_fn_c_try_compile "$LINENO"; then :
14737   ac_cv_prog_cc_g=yes
14738 else
14739   CFLAGS=""
14740       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14741 /* end confdefs.h.  */
14742
14743 int
14744 main ()
14745 {
14746
14747   ;
14748   return 0;
14749 }
14750 _ACEOF
14751 if ac_fn_c_try_compile "$LINENO"; then :
14752
14753 else
14754   ac_c_werror_flag=$ac_save_c_werror_flag
14755          CFLAGS="-g"
14756          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757 /* end confdefs.h.  */
14758
14759 int
14760 main ()
14761 {
14762
14763   ;
14764   return 0;
14765 }
14766 _ACEOF
14767 if ac_fn_c_try_compile "$LINENO"; then :
14768   ac_cv_prog_cc_g=yes
14769 fi
14770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14771 fi
14772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14773 fi
14774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14775    ac_c_werror_flag=$ac_save_c_werror_flag
14776 fi
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14778 $as_echo "$ac_cv_prog_cc_g" >&6; }
14779 if test "$ac_test_CFLAGS" = set; then
14780   CFLAGS=$ac_save_CFLAGS
14781 elif test $ac_cv_prog_cc_g = yes; then
14782   if test "$GCC" = yes; then
14783     CFLAGS="-g -O2"
14784   else
14785     CFLAGS="-g"
14786   fi
14787 else
14788   if test "$GCC" = yes; then
14789     CFLAGS="-O2"
14790   else
14791     CFLAGS=
14792   fi
14793 fi
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14795 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14796 if test "${ac_cv_prog_cc_c89+set}" = set; then :
14797   $as_echo_n "(cached) " >&6
14798 else
14799   ac_cv_prog_cc_c89=no
14800 ac_save_CC=$CC
14801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14802 /* end confdefs.h.  */
14803 #include <stdarg.h>
14804 #include <stdio.h>
14805 #include <sys/types.h>
14806 #include <sys/stat.h>
14807 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14808 struct buf { int x; };
14809 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14810 static char *e (p, i)
14811      char **p;
14812      int i;
14813 {
14814   return p[i];
14815 }
14816 static char *f (char * (*g) (char **, int), char **p, ...)
14817 {
14818   char *s;
14819   va_list v;
14820   va_start (v,p);
14821   s = g (p, va_arg (v,int));
14822   va_end (v);
14823   return s;
14824 }
14825
14826 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14827    function prototypes and stuff, but not '\xHH' hex character constants.
14828    These don't provoke an error unfortunately, instead are silently treated
14829    as 'x'.  The following induces an error, until -std is added to get
14830    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14831    array size at least.  It's necessary to write '\x00'==0 to get something
14832    that's true only with -std.  */
14833 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14834
14835 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14836    inside strings and character constants.  */
14837 #define FOO(x) 'x'
14838 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14839
14840 int test (int i, double x);
14841 struct s1 {int (*f) (int a);};
14842 struct s2 {int (*f) (double a);};
14843 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14844 int argc;
14845 char **argv;
14846 int
14847 main ()
14848 {
14849 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14850   ;
14851   return 0;
14852 }
14853 _ACEOF
14854 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14855         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14856 do
14857   CC="$ac_save_CC $ac_arg"
14858   if ac_fn_c_try_compile "$LINENO"; then :
14859   ac_cv_prog_cc_c89=$ac_arg
14860 fi
14861 rm -f core conftest.err conftest.$ac_objext
14862   test "x$ac_cv_prog_cc_c89" != "xno" && break
14863 done
14864 rm -f conftest.$ac_ext
14865 CC=$ac_save_CC
14866
14867 fi
14868 # AC_CACHE_VAL
14869 case "x$ac_cv_prog_cc_c89" in
14870   x)
14871     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14872 $as_echo "none needed" >&6; } ;;
14873   xno)
14874     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14875 $as_echo "unsupported" >&6; } ;;
14876   *)
14877     CC="$CC $ac_cv_prog_cc_c89"
14878     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14879 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14880 esac
14881 if test "x$ac_cv_prog_cc_c89" != xno; then :
14882
14883 fi
14884
14885 ac_ext=c
14886 ac_cpp='$CPP $CPPFLAGS'
14887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14890
14891 depcc="$CC"   am_compiler_list=
14892
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14894 $as_echo_n "checking dependency style of $depcc... " >&6; }
14895 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
14896   $as_echo_n "(cached) " >&6
14897 else
14898   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14899   # We make a subdir and do the tests there.  Otherwise we can end up
14900   # making bogus files that we don't know about and never remove.  For
14901   # instance it was reported that on HP-UX the gcc test will end up
14902   # making a dummy file named `D' -- because `-MD' means `put the output
14903   # in D'.
14904   mkdir conftest.dir
14905   # Copy depcomp to subdir because otherwise we won't find it if we're
14906   # using a relative directory.
14907   cp "$am_depcomp" conftest.dir
14908   cd conftest.dir
14909   # We will build objects and dependencies in a subdirectory because
14910   # it helps to detect inapplicable dependency modes.  For instance
14911   # both Tru64's cc and ICC support -MD to output dependencies as a
14912   # side effect of compilation, but ICC will put the dependencies in
14913   # the current directory while Tru64 will put them in the object
14914   # directory.
14915   mkdir sub
14916
14917   am_cv_CC_dependencies_compiler_type=none
14918   if test "$am_compiler_list" = ""; then
14919      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14920   fi
14921   am__universal=false
14922   case " $depcc " in #(
14923      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14924      esac
14925
14926   for depmode in $am_compiler_list; do
14927     # Setup a source with many dependencies, because some compilers
14928     # like to wrap large dependency lists on column 80 (with \), and
14929     # we should not choose a depcomp mode which is confused by this.
14930     #
14931     # We need to recreate these files for each test, as the compiler may
14932     # overwrite some of them when testing with obscure command lines.
14933     # This happens at least with the AIX C compiler.
14934     : > sub/conftest.c
14935     for i in 1 2 3 4 5 6; do
14936       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14937       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14938       # Solaris 8's {/usr,}/bin/sh.
14939       touch sub/conftst$i.h
14940     done
14941     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14942
14943     # We check with `-c' and `-o' for the sake of the "dashmstdout"
14944     # mode.  It turns out that the SunPro C++ compiler does not properly
14945     # handle `-M -o', and we need to detect this.  Also, some Intel
14946     # versions had trouble with output in subdirs
14947     am__obj=sub/conftest.${OBJEXT-o}
14948     am__minus_obj="-o $am__obj"
14949     case $depmode in
14950     gcc)
14951       # This depmode causes a compiler race in universal mode.
14952       test "$am__universal" = false || continue
14953       ;;
14954     nosideeffect)
14955       # after this tag, mechanisms are not by side-effect, so they'll
14956       # only be used when explicitly requested
14957       if test "x$enable_dependency_tracking" = xyes; then
14958         continue
14959       else
14960         break
14961       fi
14962       ;;
14963     msvisualcpp | msvcmsys)
14964       # This compiler won't grok `-c -o', but also, the minuso test has
14965       # not run yet.  These depmodes are late enough in the game, and
14966       # so weak that their functioning should not be impacted.
14967       am__obj=conftest.${OBJEXT-o}
14968       am__minus_obj=
14969       ;;
14970     none) break ;;
14971     esac
14972     if depmode=$depmode \
14973        source=sub/conftest.c object=$am__obj \
14974        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14975        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14976          >/dev/null 2>conftest.err &&
14977        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14978        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14979        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14980        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14981       # icc doesn't choke on unknown options, it will just issue warnings
14982       # or remarks (even with -Werror).  So we grep stderr for any message
14983       # that says an option was ignored or not supported.
14984       # When given -MP, icc 7.0 and 7.1 complain thusly:
14985       #   icc: Command line warning: ignoring option '-M'; no argument required
14986       # The diagnosis changed in icc 8.0:
14987       #   icc: Command line remark: option '-MP' not supported
14988       if (grep 'ignoring option' conftest.err ||
14989           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14990         am_cv_CC_dependencies_compiler_type=$depmode
14991         break
14992       fi
14993     fi
14994   done
14995
14996   cd ..
14997   rm -rf conftest.dir
14998 else
14999   am_cv_CC_dependencies_compiler_type=none
15000 fi
15001
15002 fi
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15004 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15005 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15006
15007  if
15008   test "x$enable_dependency_tracking" != xno \
15009   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15010   am__fastdepCC_TRUE=
15011   am__fastdepCC_FALSE='#'
15012 else
15013   am__fastdepCC_TRUE='#'
15014   am__fastdepCC_FALSE=
15015 fi
15016
15017
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15019 $as_echo_n "checking whether ln -s works... " >&6; }
15020 LN_S=$as_ln_s
15021 if test "$LN_S" = "ln -s"; then
15022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15023 $as_echo "yes" >&6; }
15024 else
15025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15026 $as_echo "no, using $LN_S" >&6; }
15027 fi
15028
15029 for ac_prog in gawk mawk nawk awk
15030 do
15031   # Extract the first word of "$ac_prog", so it can be a program name with args.
15032 set dummy $ac_prog; ac_word=$2
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15034 $as_echo_n "checking for $ac_word... " >&6; }
15035 if test "${ac_cv_prog_AWK+set}" = set; then :
15036   $as_echo_n "(cached) " >&6
15037 else
15038   if test -n "$AWK"; then
15039   ac_cv_prog_AWK="$AWK" # Let the user override the test.
15040 else
15041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15042 for as_dir in $PATH
15043 do
15044   IFS=$as_save_IFS
15045   test -z "$as_dir" && as_dir=.
15046     for ac_exec_ext in '' $ac_executable_extensions; do
15047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15048     ac_cv_prog_AWK="$ac_prog"
15049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15050     break 2
15051   fi
15052 done
15053   done
15054 IFS=$as_save_IFS
15055
15056 fi
15057 fi
15058 AWK=$ac_cv_prog_AWK
15059 if test -n "$AWK"; then
15060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15061 $as_echo "$AWK" >&6; }
15062 else
15063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15064 $as_echo "no" >&6; }
15065 fi
15066
15067
15068   test -n "$AWK" && break
15069 done
15070
15071
15072    MANTYPE=
15073    TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
15074    for ac_prog in nroff awf
15075 do
15076   # Extract the first word of "$ac_prog", so it can be a program name with args.
15077 set dummy $ac_prog; ac_word=$2
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15079 $as_echo_n "checking for $ac_word... " >&6; }
15080 if test "${ac_cv_path_NROFF+set}" = set; then :
15081   $as_echo_n "(cached) " >&6
15082 else
15083   case $NROFF in
15084   [\\/]* | ?:[\\/]*)
15085   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15086   ;;
15087   *)
15088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15089 for as_dir in $TestPath
15090 do
15091   IFS=$as_save_IFS
15092   test -z "$as_dir" && as_dir=.
15093     for ac_exec_ext in '' $ac_executable_extensions; do
15094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15095     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
15096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15097     break 2
15098   fi
15099 done
15100   done
15101 IFS=$as_save_IFS
15102
15103   ;;
15104 esac
15105 fi
15106 NROFF=$ac_cv_path_NROFF
15107 if test -n "$NROFF"; then
15108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
15109 $as_echo "$NROFF" >&6; }
15110 else
15111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15112 $as_echo "no" >&6; }
15113 fi
15114
15115
15116   test -n "$NROFF" && break
15117 done
15118 test -n "$NROFF" || NROFF="/bin/false"
15119
15120    if ${NROFF} -mdoc ${srcdir}/doc/editrc.5.roff >/dev/null 2>&1; then
15121       MANTYPE=mdoc
15122    fi
15123
15124
15125
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
15127 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
15128 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
15129   $as_echo_n "(cached) " >&6
15130 else
15131   ac_check_lib_save_LIBS=$LIBS
15132 LIBS="-lcurses  $LIBS"
15133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15134 /* end confdefs.h.  */
15135
15136 /* Override any GCC internal prototype to avoid an error.
15137    Use char because int might match the return type of a GCC
15138    builtin and then its argument prototype would still apply.  */
15139 #ifdef __cplusplus
15140 extern "C"
15141 #endif
15142 char tgetent ();
15143 int
15144 main ()
15145 {
15146 return tgetent ();
15147   ;
15148   return 0;
15149 }
15150 _ACEOF
15151 if ac_fn_c_try_link "$LINENO"; then :
15152   ac_cv_lib_curses_tgetent=yes
15153 else
15154   ac_cv_lib_curses_tgetent=no
15155 fi
15156 rm -f core conftest.err conftest.$ac_objext \
15157     conftest$ac_exeext conftest.$ac_ext
15158 LIBS=$ac_check_lib_save_LIBS
15159 fi
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
15161 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
15162 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
15163   cat >>confdefs.h <<_ACEOF
15164 #define HAVE_LIBCURSES 1
15165 _ACEOF
15166
15167   LIBS="-lcurses $LIBS"
15168
15169 else
15170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
15171 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
15172 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
15173   $as_echo_n "(cached) " >&6
15174 else
15175   ac_check_lib_save_LIBS=$LIBS
15176 LIBS="-lncurses  $LIBS"
15177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15178 /* end confdefs.h.  */
15179
15180 /* Override any GCC internal prototype to avoid an error.
15181    Use char because int might match the return type of a GCC
15182    builtin and then its argument prototype would still apply.  */
15183 #ifdef __cplusplus
15184 extern "C"
15185 #endif
15186 char tgetent ();
15187 int
15188 main ()
15189 {
15190 return tgetent ();
15191   ;
15192   return 0;
15193 }
15194 _ACEOF
15195 if ac_fn_c_try_link "$LINENO"; then :
15196   ac_cv_lib_ncurses_tgetent=yes
15197 else
15198   ac_cv_lib_ncurses_tgetent=no
15199 fi
15200 rm -f core conftest.err conftest.$ac_objext \
15201     conftest$ac_exeext conftest.$ac_ext
15202 LIBS=$ac_check_lib_save_LIBS
15203 fi
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
15205 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
15206 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
15207   cat >>confdefs.h <<_ACEOF
15208 #define HAVE_LIBNCURSES 1
15209 _ACEOF
15210
15211   LIBS="-lncurses $LIBS"
15212
15213 else
15214   as_fn_error "libtermcap, libcurses or libncurses are required!" "$LINENO" 5
15215 fi
15216
15217 fi
15218
15219
15220 # Checks for header files.
15221 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15222 # for constant arguments.  Useless!
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15224 $as_echo_n "checking for working alloca.h... " >&6; }
15225 if test "${ac_cv_working_alloca_h+set}" = set; then :
15226   $as_echo_n "(cached) " >&6
15227 else
15228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h.  */
15230 #include <alloca.h>
15231 int
15232 main ()
15233 {
15234 char *p = (char *) alloca (2 * sizeof (int));
15235                           if (p) return 0;
15236   ;
15237   return 0;
15238 }
15239 _ACEOF
15240 if ac_fn_c_try_link "$LINENO"; then :
15241   ac_cv_working_alloca_h=yes
15242 else
15243   ac_cv_working_alloca_h=no
15244 fi
15245 rm -f core conftest.err conftest.$ac_objext \
15246     conftest$ac_exeext conftest.$ac_ext
15247 fi
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15249 $as_echo "$ac_cv_working_alloca_h" >&6; }
15250 if test $ac_cv_working_alloca_h = yes; then
15251
15252 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15253
15254 fi
15255
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15257 $as_echo_n "checking for alloca... " >&6; }
15258 if test "${ac_cv_func_alloca_works+set}" = set; then :
15259   $as_echo_n "(cached) " >&6
15260 else
15261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262 /* end confdefs.h.  */
15263 #ifdef __GNUC__
15264 # define alloca __builtin_alloca
15265 #else
15266 # ifdef _MSC_VER
15267 #  include <malloc.h>
15268 #  define alloca _alloca
15269 # else
15270 #  ifdef HAVE_ALLOCA_H
15271 #   include <alloca.h>
15272 #  else
15273 #   ifdef _AIX
15274  #pragma alloca
15275 #   else
15276 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15277 char *alloca ();
15278 #    endif
15279 #   endif
15280 #  endif
15281 # endif
15282 #endif
15283
15284 int
15285 main ()
15286 {
15287 char *p = (char *) alloca (1);
15288                                     if (p) return 0;
15289   ;
15290   return 0;
15291 }
15292 _ACEOF
15293 if ac_fn_c_try_link "$LINENO"; then :
15294   ac_cv_func_alloca_works=yes
15295 else
15296   ac_cv_func_alloca_works=no
15297 fi
15298 rm -f core conftest.err conftest.$ac_objext \
15299     conftest$ac_exeext conftest.$ac_ext
15300 fi
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15302 $as_echo "$ac_cv_func_alloca_works" >&6; }
15303
15304 if test $ac_cv_func_alloca_works = yes; then
15305
15306 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15307
15308 else
15309   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15310 # that cause trouble.  Some versions do not even contain alloca or
15311 # contain a buggy version.  If you still want to use their alloca,
15312 # use ar to extract alloca.o from them instead of compiling alloca.c.
15313
15314 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15315
15316 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15317
15318
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15320 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15321 if test "${ac_cv_os_cray+set}" = set; then :
15322   $as_echo_n "(cached) " >&6
15323 else
15324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15325 /* end confdefs.h.  */
15326 #if defined CRAY && ! defined CRAY2
15327 webecray
15328 #else
15329 wenotbecray
15330 #endif
15331
15332 _ACEOF
15333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15334   $EGREP "webecray" >/dev/null 2>&1; then :
15335   ac_cv_os_cray=yes
15336 else
15337   ac_cv_os_cray=no
15338 fi
15339 rm -f conftest*
15340
15341 fi
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15343 $as_echo "$ac_cv_os_cray" >&6; }
15344 if test $ac_cv_os_cray = yes; then
15345   for ac_func in _getb67 GETB67 getb67; do
15346     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15347 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15348 eval as_val=\$$as_ac_var
15349    if test "x$as_val" = x""yes; then :
15350
15351 cat >>confdefs.h <<_ACEOF
15352 #define CRAY_STACKSEG_END $ac_func
15353 _ACEOF
15354
15355     break
15356 fi
15357
15358   done
15359 fi
15360
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15362 $as_echo_n "checking stack direction for C alloca... " >&6; }
15363 if test "${ac_cv_c_stack_direction+set}" = set; then :
15364   $as_echo_n "(cached) " >&6
15365 else
15366   if test "$cross_compiling" = yes; then :
15367   ac_cv_c_stack_direction=0
15368 else
15369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370 /* end confdefs.h.  */
15371 $ac_includes_default
15372 int
15373 find_stack_direction ()
15374 {
15375   static char *addr = 0;
15376   auto char dummy;
15377   if (addr == 0)
15378     {
15379       addr = &dummy;
15380       return find_stack_direction ();
15381     }
15382   else
15383     return (&dummy > addr) ? 1 : -1;
15384 }
15385
15386 int
15387 main ()
15388 {
15389   return find_stack_direction () < 0;
15390 }
15391 _ACEOF
15392 if ac_fn_c_try_run "$LINENO"; then :
15393   ac_cv_c_stack_direction=1
15394 else
15395   ac_cv_c_stack_direction=-1
15396 fi
15397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15398   conftest.$ac_objext conftest.beam conftest.$ac_ext
15399 fi
15400
15401 fi
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15403 $as_echo "$ac_cv_c_stack_direction" >&6; }
15404 cat >>confdefs.h <<_ACEOF
15405 #define STACK_DIRECTION $ac_cv_c_stack_direction
15406 _ACEOF
15407
15408
15409 fi
15410
15411 ac_header_dirent=no
15412 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15413   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15415 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
15417   $as_echo_n "(cached) " >&6
15418 else
15419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420 /* end confdefs.h.  */
15421 #include <sys/types.h>
15422 #include <$ac_hdr>
15423
15424 int
15425 main ()
15426 {
15427 if ((DIR *) 0)
15428 return 0;
15429   ;
15430   return 0;
15431 }
15432 _ACEOF
15433 if ac_fn_c_try_compile "$LINENO"; then :
15434   eval "$as_ac_Header=yes"
15435 else
15436   eval "$as_ac_Header=no"
15437 fi
15438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15439 fi
15440 eval ac_res=\$$as_ac_Header
15441                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15442 $as_echo "$ac_res" >&6; }
15443 eval as_val=\$$as_ac_Header
15444    if test "x$as_val" = x""yes; then :
15445   cat >>confdefs.h <<_ACEOF
15446 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15447 _ACEOF
15448
15449 ac_header_dirent=$ac_hdr; break
15450 fi
15451
15452 done
15453 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15454 if test $ac_header_dirent = dirent.h; then
15455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15456 $as_echo_n "checking for library containing opendir... " >&6; }
15457 if test "${ac_cv_search_opendir+set}" = set; then :
15458   $as_echo_n "(cached) " >&6
15459 else
15460   ac_func_search_save_LIBS=$LIBS
15461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15462 /* end confdefs.h.  */
15463
15464 /* Override any GCC internal prototype to avoid an error.
15465    Use char because int might match the return type of a GCC
15466    builtin and then its argument prototype would still apply.  */
15467 #ifdef __cplusplus
15468 extern "C"
15469 #endif
15470 char opendir ();
15471 int
15472 main ()
15473 {
15474 return opendir ();
15475   ;
15476   return 0;
15477 }
15478 _ACEOF
15479 for ac_lib in '' dir; do
15480   if test -z "$ac_lib"; then
15481     ac_res="none required"
15482   else
15483     ac_res=-l$ac_lib
15484     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15485   fi
15486   if ac_fn_c_try_link "$LINENO"; then :
15487   ac_cv_search_opendir=$ac_res
15488 fi
15489 rm -f core conftest.err conftest.$ac_objext \
15490     conftest$ac_exeext
15491   if test "${ac_cv_search_opendir+set}" = set; then :
15492   break
15493 fi
15494 done
15495 if test "${ac_cv_search_opendir+set}" = set; then :
15496
15497 else
15498   ac_cv_search_opendir=no
15499 fi
15500 rm conftest.$ac_ext
15501 LIBS=$ac_func_search_save_LIBS
15502 fi
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15504 $as_echo "$ac_cv_search_opendir" >&6; }
15505 ac_res=$ac_cv_search_opendir
15506 if test "$ac_res" != no; then :
15507   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15508
15509 fi
15510
15511 else
15512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15513 $as_echo_n "checking for library containing opendir... " >&6; }
15514 if test "${ac_cv_search_opendir+set}" = set; then :
15515   $as_echo_n "(cached) " >&6
15516 else
15517   ac_func_search_save_LIBS=$LIBS
15518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15519 /* end confdefs.h.  */
15520
15521 /* Override any GCC internal prototype to avoid an error.
15522    Use char because int might match the return type of a GCC
15523    builtin and then its argument prototype would still apply.  */
15524 #ifdef __cplusplus
15525 extern "C"
15526 #endif
15527 char opendir ();
15528 int
15529 main ()
15530 {
15531 return opendir ();
15532   ;
15533   return 0;
15534 }
15535 _ACEOF
15536 for ac_lib in '' x; do
15537   if test -z "$ac_lib"; then
15538     ac_res="none required"
15539   else
15540     ac_res=-l$ac_lib
15541     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15542   fi
15543   if ac_fn_c_try_link "$LINENO"; then :
15544   ac_cv_search_opendir=$ac_res
15545 fi
15546 rm -f core conftest.err conftest.$ac_objext \
15547     conftest$ac_exeext
15548   if test "${ac_cv_search_opendir+set}" = set; then :
15549   break
15550 fi
15551 done
15552 if test "${ac_cv_search_opendir+set}" = set; then :
15553
15554 else
15555   ac_cv_search_opendir=no
15556 fi
15557 rm conftest.$ac_ext
15558 LIBS=$ac_func_search_save_LIBS
15559 fi
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15561 $as_echo "$ac_cv_search_opendir" >&6; }
15562 ac_res=$ac_cv_search_opendir
15563 if test "$ac_res" != no; then :
15564   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15565
15566 fi
15567
15568 fi
15569
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15571 $as_echo_n "checking for ANSI C header files... " >&6; }
15572 if test "${ac_cv_header_stdc+set}" = set; then :
15573   $as_echo_n "(cached) " >&6
15574 else
15575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15576 /* end confdefs.h.  */
15577 #include <stdlib.h>
15578 #include <stdarg.h>
15579 #include <string.h>
15580 #include <float.h>
15581
15582 int
15583 main ()
15584 {
15585
15586   ;
15587   return 0;
15588 }
15589 _ACEOF
15590 if ac_fn_c_try_compile "$LINENO"; then :
15591   ac_cv_header_stdc=yes
15592 else
15593   ac_cv_header_stdc=no
15594 fi
15595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15596
15597 if test $ac_cv_header_stdc = yes; then
15598   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15600 /* end confdefs.h.  */
15601 #include <string.h>
15602
15603 _ACEOF
15604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15605   $EGREP "memchr" >/dev/null 2>&1; then :
15606
15607 else
15608   ac_cv_header_stdc=no
15609 fi
15610 rm -f conftest*
15611
15612 fi
15613
15614 if test $ac_cv_header_stdc = yes; then
15615   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15617 /* end confdefs.h.  */
15618 #include <stdlib.h>
15619
15620 _ACEOF
15621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15622   $EGREP "free" >/dev/null 2>&1; then :
15623
15624 else
15625   ac_cv_header_stdc=no
15626 fi
15627 rm -f conftest*
15628
15629 fi
15630
15631 if test $ac_cv_header_stdc = yes; then
15632   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15633   if test "$cross_compiling" = yes; then :
15634   :
15635 else
15636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637 /* end confdefs.h.  */
15638 #include <ctype.h>
15639 #include <stdlib.h>
15640 #if ((' ' & 0x0FF) == 0x020)
15641 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15642 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15643 #else
15644 # define ISLOWER(c) \
15645                    (('a' <= (c) && (c) <= 'i') \
15646                      || ('j' <= (c) && (c) <= 'r') \
15647                      || ('s' <= (c) && (c) <= 'z'))
15648 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15649 #endif
15650
15651 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15652 int
15653 main ()
15654 {
15655   int i;
15656   for (i = 0; i < 256; i++)
15657     if (XOR (islower (i), ISLOWER (i))
15658         || toupper (i) != TOUPPER (i))
15659       return 2;
15660   return 0;
15661 }
15662 _ACEOF
15663 if ac_fn_c_try_run "$LINENO"; then :
15664
15665 else
15666   ac_cv_header_stdc=no
15667 fi
15668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15669   conftest.$ac_objext conftest.beam conftest.$ac_ext
15670 fi
15671
15672 fi
15673 fi
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15675 $as_echo "$ac_cv_header_stdc" >&6; }
15676 if test $ac_cv_header_stdc = yes; then
15677
15678 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15679
15680 fi
15681
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
15683 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
15684 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
15685   $as_echo_n "(cached) " >&6
15686 else
15687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15688 /* end confdefs.h.  */
15689 #include <sys/types.h>
15690 #include <sys/wait.h>
15691 #ifndef WEXITSTATUS
15692 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15693 #endif
15694 #ifndef WIFEXITED
15695 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15696 #endif
15697
15698 int
15699 main ()
15700 {
15701   int s;
15702   wait (&s);
15703   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15704   ;
15705   return 0;
15706 }
15707 _ACEOF
15708 if ac_fn_c_try_compile "$LINENO"; then :
15709   ac_cv_header_sys_wait_h=yes
15710 else
15711   ac_cv_header_sys_wait_h=no
15712 fi
15713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15714 fi
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
15716 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
15717 if test $ac_cv_header_sys_wait_h = yes; then
15718
15719 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15720
15721 fi
15722
15723 for ac_header in fcntl.h limits.h malloc.h stdlib.h string.h sys/ioctl.h sys/param.h unistd.h curses.h ncurses.h sys/cdefs.h
15724 do :
15725   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15726 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15727 eval as_val=\$$as_ac_Header
15728    if test "x$as_val" = x""yes; then :
15729   cat >>confdefs.h <<_ACEOF
15730 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15731 _ACEOF
15732
15733 fi
15734
15735 done
15736
15737
15738 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
15739 if test "x$ac_cv_header_termios_h" = x""yes; then :
15740
15741 else
15742   as_fn_error "termios.h is required!" "$LINENO" 5
15743 fi
15744
15745
15746
15747 ## include curses.h to prevent "Present But Cannot Be Compiled"
15748 for ac_header in term.h
15749 do :
15750   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
15751 # include <curses.h>
15752 #elif HAVE_NCURSES_H
15753 # include <ncurses.h>
15754 #endif
15755
15756 "
15757 if test "x$ac_cv_header_term_h" = x""yes; then :
15758   cat >>confdefs.h <<_ACEOF
15759 #define HAVE_TERM_H 1
15760 _ACEOF
15761
15762 fi
15763
15764 done
15765
15766
15767 # Checks for typedefs, structures, and compiler characteristics.
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15769 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15770 if test "${ac_cv_c_const+set}" = set; then :
15771   $as_echo_n "(cached) " >&6
15772 else
15773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15774 /* end confdefs.h.  */
15775
15776 int
15777 main ()
15778 {
15779 /* FIXME: Include the comments suggested by Paul. */
15780 #ifndef __cplusplus
15781   /* Ultrix mips cc rejects this.  */
15782   typedef int charset[2];
15783   const charset cs;
15784   /* SunOS 4.1.1 cc rejects this.  */
15785   char const *const *pcpcc;
15786   char **ppc;
15787   /* NEC SVR4.0.2 mips cc rejects this.  */
15788   struct point {int x, y;};
15789   static struct point const zero = {0,0};
15790   /* AIX XL C 1.02.0.0 rejects this.
15791      It does not let you subtract one const X* pointer from another in
15792      an arm of an if-expression whose if-part is not a constant
15793      expression */
15794   const char *g = "string";
15795   pcpcc = &g + (g ? g-g : 0);
15796   /* HPUX 7.0 cc rejects these. */
15797   ++pcpcc;
15798   ppc = (char**) pcpcc;
15799   pcpcc = (char const *const *) ppc;
15800   { /* SCO 3.2v4 cc rejects this.  */
15801     char *t;
15802     char const *s = 0 ? (char *) 0 : (char const *) 0;
15803
15804     *t++ = 0;
15805     if (s) return 0;
15806   }
15807   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15808     int x[] = {25, 17};
15809     const int *foo = &x[0];
15810     ++foo;
15811   }
15812   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15813     typedef const int *iptr;
15814     iptr p = 0;
15815     ++p;
15816   }
15817   { /* AIX XL C 1.02.0.0 rejects this saying
15818        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15819     struct s { int j; const int *ap[3]; };
15820     struct s *b; b->j = 5;
15821   }
15822   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15823     const int foo = 10;
15824     if (!foo) return 0;
15825   }
15826   return !cs[0] && !zero.x;
15827 #endif
15828
15829   ;
15830   return 0;
15831 }
15832 _ACEOF
15833 if ac_fn_c_try_compile "$LINENO"; then :
15834   ac_cv_c_const=yes
15835 else
15836   ac_cv_c_const=no
15837 fi
15838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15839 fi
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15841 $as_echo "$ac_cv_c_const" >&6; }
15842 if test $ac_cv_c_const = no; then
15843
15844 $as_echo "#define const /**/" >>confdefs.h
15845
15846 fi
15847
15848 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15849 if test "x$ac_cv_type_pid_t" = x""yes; then :
15850
15851 else
15852
15853 cat >>confdefs.h <<_ACEOF
15854 #define pid_t int
15855 _ACEOF
15856
15857 fi
15858
15859 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15860 if test "x$ac_cv_type_size_t" = x""yes; then :
15861
15862 else
15863
15864 cat >>confdefs.h <<_ACEOF
15865 #define size_t unsigned int
15866 _ACEOF
15867
15868 fi
15869
15870 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
15871 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15872
15873 cat >>confdefs.h <<_ACEOF
15874 #define HAVE_U_INT32_T 1
15875 _ACEOF
15876
15877
15878 fi
15879
15880
15881 # Checks for library functions.
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15883 $as_echo_n "checking whether closedir returns void... " >&6; }
15884 if test "${ac_cv_func_closedir_void+set}" = set; then :
15885   $as_echo_n "(cached) " >&6
15886 else
15887   if test "$cross_compiling" = yes; then :
15888   ac_cv_func_closedir_void=yes
15889 else
15890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891 /* end confdefs.h.  */
15892 $ac_includes_default
15893 #include <$ac_header_dirent>
15894 #ifndef __cplusplus
15895 int closedir ();
15896 #endif
15897
15898 int
15899 main ()
15900 {
15901 return closedir (opendir (".")) != 0;
15902   ;
15903   return 0;
15904 }
15905 _ACEOF
15906 if ac_fn_c_try_run "$LINENO"; then :
15907   ac_cv_func_closedir_void=no
15908 else
15909   ac_cv_func_closedir_void=yes
15910 fi
15911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15912   conftest.$ac_objext conftest.beam conftest.$ac_ext
15913 fi
15914
15915 fi
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15917 $as_echo "$ac_cv_func_closedir_void" >&6; }
15918 if test $ac_cv_func_closedir_void = yes; then
15919
15920 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
15921
15922 fi
15923
15924 for ac_header in vfork.h
15925 do :
15926   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15927 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15928   cat >>confdefs.h <<_ACEOF
15929 #define HAVE_VFORK_H 1
15930 _ACEOF
15931
15932 fi
15933
15934 done
15935
15936 for ac_func in fork vfork
15937 do :
15938   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15939 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15940 eval as_val=\$$as_ac_var
15941    if test "x$as_val" = x""yes; then :
15942   cat >>confdefs.h <<_ACEOF
15943 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15944 _ACEOF
15945
15946 fi
15947 done
15948
15949 if test "x$ac_cv_func_fork" = xyes; then
15950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15951 $as_echo_n "checking for working fork... " >&6; }
15952 if test "${ac_cv_func_fork_works+set}" = set; then :
15953   $as_echo_n "(cached) " >&6
15954 else
15955   if test "$cross_compiling" = yes; then :
15956   ac_cv_func_fork_works=cross
15957 else
15958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h.  */
15960 $ac_includes_default
15961 int
15962 main ()
15963 {
15964
15965           /* By Ruediger Kuhlmann. */
15966           return fork () < 0;
15967
15968   ;
15969   return 0;
15970 }
15971 _ACEOF
15972 if ac_fn_c_try_run "$LINENO"; then :
15973   ac_cv_func_fork_works=yes
15974 else
15975   ac_cv_func_fork_works=no
15976 fi
15977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15978   conftest.$ac_objext conftest.beam conftest.$ac_ext
15979 fi
15980
15981 fi
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15983 $as_echo "$ac_cv_func_fork_works" >&6; }
15984
15985 else
15986   ac_cv_func_fork_works=$ac_cv_func_fork
15987 fi
15988 if test "x$ac_cv_func_fork_works" = xcross; then
15989   case $host in
15990     *-*-amigaos* | *-*-msdosdjgpp*)
15991       # Override, as these systems have only a dummy fork() stub
15992       ac_cv_func_fork_works=no
15993       ;;
15994     *)
15995       ac_cv_func_fork_works=yes
15996       ;;
15997   esac
15998   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15999 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16000 fi
16001 ac_cv_func_vfork_works=$ac_cv_func_vfork
16002 if test "x$ac_cv_func_vfork" = xyes; then
16003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16004 $as_echo_n "checking for working vfork... " >&6; }
16005 if test "${ac_cv_func_vfork_works+set}" = set; then :
16006   $as_echo_n "(cached) " >&6
16007 else
16008   if test "$cross_compiling" = yes; then :
16009   ac_cv_func_vfork_works=cross
16010 else
16011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h.  */
16013 /* Thanks to Paul Eggert for this test.  */
16014 $ac_includes_default
16015 #include <sys/wait.h>
16016 #ifdef HAVE_VFORK_H
16017 # include <vfork.h>
16018 #endif
16019 /* On some sparc systems, changes by the child to local and incoming
16020    argument registers are propagated back to the parent.  The compiler
16021    is told about this with #include <vfork.h>, but some compilers
16022    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
16023    static variable whose address is put into a register that is
16024    clobbered by the vfork.  */
16025 static void
16026 #ifdef __cplusplus
16027 sparc_address_test (int arg)
16028 # else
16029 sparc_address_test (arg) int arg;
16030 #endif
16031 {
16032   static pid_t child;
16033   if (!child) {
16034     child = vfork ();
16035     if (child < 0) {
16036       perror ("vfork");
16037       _exit(2);
16038     }
16039     if (!child) {
16040       arg = getpid();
16041       write(-1, "", 0);
16042       _exit (arg);
16043     }
16044   }
16045 }
16046
16047 int
16048 main ()
16049 {
16050   pid_t parent = getpid ();
16051   pid_t child;
16052
16053   sparc_address_test (0);
16054
16055   child = vfork ();
16056
16057   if (child == 0) {
16058     /* Here is another test for sparc vfork register problems.  This
16059        test uses lots of local variables, at least as many local
16060        variables as main has allocated so far including compiler
16061        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
16062        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
16063        reuse the register of parent for one of the local variables,
16064        since it will think that parent can't possibly be used any more
16065        in this routine.  Assigning to the local variable will thus
16066        munge parent in the parent process.  */
16067     pid_t
16068       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16069       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16070     /* Convince the compiler that p..p7 are live; otherwise, it might
16071        use the same hardware register for all 8 local variables.  */
16072     if (p != p1 || p != p2 || p != p3 || p != p4
16073         || p != p5 || p != p6 || p != p7)
16074       _exit(1);
16075
16076     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16077        from child file descriptors.  If the child closes a descriptor
16078        before it execs or exits, this munges the parent's descriptor
16079        as well.  Test for this by closing stdout in the child.  */
16080     _exit(close(fileno(stdout)) != 0);
16081   } else {
16082     int status;
16083     struct stat st;
16084
16085     while (wait(&status) != child)
16086       ;
16087     return (
16088          /* Was there some problem with vforking?  */
16089          child < 0
16090
16091          /* Did the child fail?  (This shouldn't happen.)  */
16092          || status
16093
16094          /* Did the vfork/compiler bug occur?  */
16095          || parent != getpid()
16096
16097          /* Did the file descriptor bug occur?  */
16098          || fstat(fileno(stdout), &st) != 0
16099          );
16100   }
16101 }
16102 _ACEOF
16103 if ac_fn_c_try_run "$LINENO"; then :
16104   ac_cv_func_vfork_works=yes
16105 else
16106   ac_cv_func_vfork_works=no
16107 fi
16108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16109   conftest.$ac_objext conftest.beam conftest.$ac_ext
16110 fi
16111
16112 fi
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16114 $as_echo "$ac_cv_func_vfork_works" >&6; }
16115
16116 fi;
16117 if test "x$ac_cv_func_fork_works" = xcross; then
16118   ac_cv_func_vfork_works=$ac_cv_func_vfork
16119   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16120 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16121 fi
16122
16123 if test "x$ac_cv_func_vfork_works" = xyes; then
16124
16125 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16126
16127 else
16128
16129 $as_echo "#define vfork fork" >>confdefs.h
16130
16131 fi
16132 if test "x$ac_cv_func_fork_works" = xyes; then
16133
16134 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16135
16136 fi
16137
16138 if test $ac_cv_c_compiler_gnu = yes; then
16139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
16140 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
16141 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
16142   $as_echo_n "(cached) " >&6
16143 else
16144     ac_pattern="Autoconf.*'x'"
16145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16146 /* end confdefs.h.  */
16147 #include <sgtty.h>
16148 Autoconf TIOCGETP
16149 _ACEOF
16150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16151   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
16152   ac_cv_prog_gcc_traditional=yes
16153 else
16154   ac_cv_prog_gcc_traditional=no
16155 fi
16156 rm -f conftest*
16157
16158
16159   if test $ac_cv_prog_gcc_traditional = no; then
16160     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16161 /* end confdefs.h.  */
16162 #include <termio.h>
16163 Autoconf TCGETA
16164 _ACEOF
16165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16166   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
16167   ac_cv_prog_gcc_traditional=yes
16168 fi
16169 rm -f conftest*
16170
16171   fi
16172 fi
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
16174 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
16175   if test $ac_cv_prog_gcc_traditional = yes; then
16176     CC="$CC -traditional"
16177   fi
16178 fi
16179
16180 ## _AIX is offended by rpl_malloc and rpl_realloc
16181 #AC_FUNC_MALLOC
16182 #AC_FUNC_REALLOC
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
16184 $as_echo_n "checking return type of signal handlers... " >&6; }
16185 if test "${ac_cv_type_signal+set}" = set; then :
16186   $as_echo_n "(cached) " >&6
16187 else
16188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16189 /* end confdefs.h.  */
16190 #include <sys/types.h>
16191 #include <signal.h>
16192
16193 int
16194 main ()
16195 {
16196 return *(signal (0, 0)) (0) == 1;
16197   ;
16198   return 0;
16199 }
16200 _ACEOF
16201 if ac_fn_c_try_compile "$LINENO"; then :
16202   ac_cv_type_signal=int
16203 else
16204   ac_cv_type_signal=void
16205 fi
16206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16207 fi
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
16209 $as_echo "$ac_cv_type_signal" >&6; }
16210
16211 cat >>confdefs.h <<_ACEOF
16212 #define RETSIGTYPE $ac_cv_type_signal
16213 _ACEOF
16214
16215
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
16217 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
16218 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
16219   $as_echo_n "(cached) " >&6
16220 else
16221   rm -f conftest.sym conftest.file
16222 echo >conftest.file
16223 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
16224   if test "$cross_compiling" = yes; then :
16225   ac_cv_func_lstat_dereferences_slashed_symlink=no
16226 else
16227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16228 /* end confdefs.h.  */
16229 $ac_includes_default
16230 int
16231 main ()
16232 {
16233 struct stat sbuf;
16234      /* Linux will dereference the symlink and fail.
16235         That is better in the sense that it means we will not
16236         have to compile and use the lstat wrapper.  */
16237      return lstat ("conftest.sym/", &sbuf) == 0;
16238   ;
16239   return 0;
16240 }
16241 _ACEOF
16242 if ac_fn_c_try_run "$LINENO"; then :
16243   ac_cv_func_lstat_dereferences_slashed_symlink=yes
16244 else
16245   ac_cv_func_lstat_dereferences_slashed_symlink=no
16246 fi
16247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16248   conftest.$ac_objext conftest.beam conftest.$ac_ext
16249 fi
16250
16251 else
16252   # If the `ln -s' command failed, then we probably don't even
16253   # have an lstat function.
16254   ac_cv_func_lstat_dereferences_slashed_symlink=no
16255 fi
16256 rm -f conftest.sym conftest.file
16257
16258 fi
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
16260 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
16261
16262 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
16263
16264 cat >>confdefs.h <<_ACEOF
16265 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
16266 _ACEOF
16267
16268
16269 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
16270   case " $LIBOBJS " in
16271   *" lstat.$ac_objext "* ) ;;
16272   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
16273  ;;
16274 esac
16275
16276 fi
16277
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
16279 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
16280 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
16281   $as_echo_n "(cached) " >&6
16282 else
16283   if test "$cross_compiling" = yes; then :
16284   ac_cv_func_stat_empty_string_bug=yes
16285 else
16286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16287 /* end confdefs.h.  */
16288 $ac_includes_default
16289 int
16290 main ()
16291 {
16292 struct stat sbuf;
16293   return stat ("", &sbuf) == 0;
16294   ;
16295   return 0;
16296 }
16297 _ACEOF
16298 if ac_fn_c_try_run "$LINENO"; then :
16299   ac_cv_func_stat_empty_string_bug=no
16300 else
16301   ac_cv_func_stat_empty_string_bug=yes
16302 fi
16303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16304   conftest.$ac_objext conftest.beam conftest.$ac_ext
16305 fi
16306
16307 fi
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
16309 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
16310 if test $ac_cv_func_stat_empty_string_bug = yes; then
16311   case " $LIBOBJS " in
16312   *" stat.$ac_objext "* ) ;;
16313   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
16314  ;;
16315 esac
16316
16317
16318 cat >>confdefs.h <<_ACEOF
16319 #define HAVE_STAT_EMPTY_STRING_BUG 1
16320 _ACEOF
16321
16322 fi
16323
16324 for ac_func in endpwent isascii memchr memset re_comp regcomp strcasecmp strchr strcspn strdup strerror strrchr strstr strtol issetugid
16325 do :
16326   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16327 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16328 eval as_val=\$$as_ac_var
16329    if test "x$as_val" = x""yes; then :
16330   cat >>confdefs.h <<_ACEOF
16331 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16332 _ACEOF
16333
16334 fi
16335 done
16336
16337
16338    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpwnam_r and getpwuid_r are posix like" >&5
16339 $as_echo_n "checking whether getpwnam_r and getpwuid_r are posix like... " >&6; }
16340       # The prototype for the POSIX version is:
16341       # int getpwnam_r(char *, struct passwd *, char *, size_t, struct passwd **)
16342       # int getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **);
16343    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344 /* end confdefs.h.  */
16345 #include <stdlib.h>
16346                 #include <sys/types.h>
16347                 #include <pwd.h>
16348 int
16349 main ()
16350 {
16351 getpwnam_r(NULL, NULL, NULL, (size_t)0, NULL);
16352                 getpwuid_r((uid_t)0, NULL, NULL, (size_t)0, NULL);
16353   ;
16354   return 0;
16355 }
16356 _ACEOF
16357 if ac_fn_c_try_link "$LINENO"; then :
16358
16359 $as_echo "#define HAVE_GETPW_R_POSIX 1" >>confdefs.h
16360
16361        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16362 $as_echo "yes" >&6; }
16363 else
16364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16365 $as_echo "no" >&6; }
16366 fi
16367 rm -f core conftest.err conftest.$ac_objext \
16368     conftest$ac_exeext conftest.$ac_ext
16369
16370
16371    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpwnam_r and getpwuid_r are posix _draft_ like" >&5
16372 $as_echo_n "checking whether getpwnam_r and getpwuid_r are posix _draft_ like... " >&6; }
16373       # The prototype for the POSIX draft version is:
16374       # struct passwd *getpwuid_r(uid_t, struct passwd *, char *, int);
16375       # struct passwd *getpwnam_r(char *, struct passwd *,  char *, int);
16376    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16377 /* end confdefs.h.  */
16378 #include <stdlib.h>
16379                 #include <sys/types.h>
16380                 #include <pwd.h>
16381 int
16382 main ()
16383 {
16384 getpwnam_r(NULL, NULL, NULL, (size_t)0);
16385                 getpwuid_r((uid_t)0, NULL, NULL, (size_t)0);
16386   ;
16387   return 0;
16388 }
16389 _ACEOF
16390 if ac_fn_c_try_link "$LINENO"; then :
16391
16392 $as_echo "#define HAVE_GETPW_R_DRAFT 1" >>confdefs.h
16393
16394        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16395 $as_echo "yes" >&6; }
16396 else
16397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16398 $as_echo "no" >&6; }
16399 fi
16400 rm -f core conftest.err conftest.$ac_objext \
16401     conftest$ac_exeext conftest.$ac_ext
16402
16403
16404
16405
16406 ac_config_files="$ac_config_files Makefile libedit.pc src/Makefile doc/Makefile examples/Makefile"
16407
16408 cat >confcache <<\_ACEOF
16409 # This file is a shell script that caches the results of configure
16410 # tests run on this system so they can be shared between configure
16411 # scripts and configure runs, see configure's option --config-cache.
16412 # It is not useful on other systems.  If it contains results you don't
16413 # want to keep, you may remove or edit it.
16414 #
16415 # config.status only pays attention to the cache file if you give it
16416 # the --recheck option to rerun configure.
16417 #
16418 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16419 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16420 # following values.
16421
16422 _ACEOF
16423
16424 # The following way of writing the cache mishandles newlines in values,
16425 # but we know of no workaround that is simple, portable, and efficient.
16426 # So, we kill variables containing newlines.
16427 # Ultrix sh set writes to stderr and can't be redirected directly,
16428 # and sets the high bit in the cache file unless we assign to the vars.
16429 (
16430   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16431     eval ac_val=\$$ac_var
16432     case $ac_val in #(
16433     *${as_nl}*)
16434       case $ac_var in #(
16435       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16436 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16437       esac
16438       case $ac_var in #(
16439       _ | IFS | as_nl) ;; #(
16440       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16441       *) { eval $ac_var=; unset $ac_var;} ;;
16442       esac ;;
16443     esac
16444   done
16445
16446   (set) 2>&1 |
16447     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16448     *${as_nl}ac_space=\ *)
16449       # `set' does not quote correctly, so add quotes: double-quote
16450       # substitution turns \\\\ into \\, and sed turns \\ into \.
16451       sed -n \
16452         "s/'/'\\\\''/g;
16453           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16454       ;; #(
16455     *)
16456       # `set' quotes correctly as required by POSIX, so do not add quotes.
16457       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16458       ;;
16459     esac |
16460     sort
16461 ) |
16462   sed '
16463      /^ac_cv_env_/b end
16464      t clear
16465      :clear
16466      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16467      t end
16468      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16469      :end' >>confcache
16470 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16471   if test -w "$cache_file"; then
16472     test "x$cache_file" != "x/dev/null" &&
16473       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16474 $as_echo "$as_me: updating cache $cache_file" >&6;}
16475     cat confcache >$cache_file
16476   else
16477     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16478 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16479   fi
16480 fi
16481 rm -f confcache
16482
16483 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16484 # Let make expand exec_prefix.
16485 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16486
16487 DEFS=-DHAVE_CONFIG_H
16488
16489 ac_libobjs=
16490 ac_ltlibobjs=
16491 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16492   # 1. Remove the extension, and $U if already installed.
16493   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16494   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16495   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16496   #    will be set to the directory where LIBOBJS objects are built.
16497   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16498   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16499 done
16500 LIBOBJS=$ac_libobjs
16501
16502 LTLIBOBJS=$ac_ltlibobjs
16503
16504
16505  if test -n "$EXEEXT"; then
16506   am__EXEEXT_TRUE=
16507   am__EXEEXT_FALSE='#'
16508 else
16509   am__EXEEXT_TRUE='#'
16510   am__EXEEXT_FALSE=
16511 fi
16512
16513 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16514   as_fn_error "conditional \"AMDEP\" was never defined.
16515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16516 fi
16517 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16518   as_fn_error "conditional \"am__fastdepCC\" was never defined.
16519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16520 fi
16521 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16522   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16524 fi
16525 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16526   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16528 fi
16529 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16530   as_fn_error "conditional \"am__fastdepCC\" was never defined.
16531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16532 fi
16533
16534 : ${CONFIG_STATUS=./config.status}
16535 ac_write_fail=0
16536 ac_clean_files_save=$ac_clean_files
16537 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16539 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16540 as_write_fail=0
16541 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16542 #! $SHELL
16543 # Generated by $as_me.
16544 # Run this file to recreate the current configuration.
16545 # Compiler output produced by configure, useful for debugging
16546 # configure, is in config.log if it exists.
16547
16548 debug=false
16549 ac_cs_recheck=false
16550 ac_cs_silent=false
16551
16552 SHELL=\${CONFIG_SHELL-$SHELL}
16553 export SHELL
16554 _ASEOF
16555 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16556 ## -------------------- ##
16557 ## M4sh Initialization. ##
16558 ## -------------------- ##
16559
16560 # Be more Bourne compatible
16561 DUALCASE=1; export DUALCASE # for MKS sh
16562 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16563   emulate sh
16564   NULLCMD=:
16565   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16566   # is contrary to our usage.  Disable this feature.
16567   alias -g '${1+"$@"}'='"$@"'
16568   setopt NO_GLOB_SUBST
16569 else
16570   case `(set -o) 2>/dev/null` in #(
16571   *posix*) :
16572     set -o posix ;; #(
16573   *) :
16574      ;;
16575 esac
16576 fi
16577
16578
16579 as_nl='
16580 '
16581 export as_nl
16582 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16583 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16584 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16585 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16586 # Prefer a ksh shell builtin over an external printf program on Solaris,
16587 # but without wasting forks for bash or zsh.
16588 if test -z "$BASH_VERSION$ZSH_VERSION" \
16589     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16590   as_echo='print -r --'
16591   as_echo_n='print -rn --'
16592 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16593   as_echo='printf %s\n'
16594   as_echo_n='printf %s'
16595 else
16596   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16597     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16598     as_echo_n='/usr/ucb/echo -n'
16599   else
16600     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16601     as_echo_n_body='eval
16602       arg=$1;
16603       case $arg in #(
16604       *"$as_nl"*)
16605         expr "X$arg" : "X\\(.*\\)$as_nl";
16606         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16607       esac;
16608       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16609     '
16610     export as_echo_n_body
16611     as_echo_n='sh -c $as_echo_n_body as_echo'
16612   fi
16613   export as_echo_body
16614   as_echo='sh -c $as_echo_body as_echo'
16615 fi
16616
16617 # The user is always right.
16618 if test "${PATH_SEPARATOR+set}" != set; then
16619   PATH_SEPARATOR=:
16620   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16621     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16622       PATH_SEPARATOR=';'
16623   }
16624 fi
16625
16626
16627 # IFS
16628 # We need space, tab and new line, in precisely that order.  Quoting is
16629 # there to prevent editors from complaining about space-tab.
16630 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16631 # splitting by setting IFS to empty value.)
16632 IFS=" ""        $as_nl"
16633
16634 # Find who we are.  Look in the path if we contain no directory separator.
16635 case $0 in #((
16636   *[\\/]* ) as_myself=$0 ;;
16637   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16638 for as_dir in $PATH
16639 do
16640   IFS=$as_save_IFS
16641   test -z "$as_dir" && as_dir=.
16642     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16643   done
16644 IFS=$as_save_IFS
16645
16646      ;;
16647 esac
16648 # We did not find ourselves, most probably we were run as `sh COMMAND'
16649 # in which case we are not to be found in the path.
16650 if test "x$as_myself" = x; then
16651   as_myself=$0
16652 fi
16653 if test ! -f "$as_myself"; then
16654   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16655   exit 1
16656 fi
16657
16658 # Unset variables that we do not need and which cause bugs (e.g. in
16659 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16660 # suppresses any "Segmentation fault" message there.  '((' could
16661 # trigger a bug in pdksh 5.2.14.
16662 for as_var in BASH_ENV ENV MAIL MAILPATH
16663 do eval test x\${$as_var+set} = xset \
16664   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16665 done
16666 PS1='$ '
16667 PS2='> '
16668 PS4='+ '
16669
16670 # NLS nuisances.
16671 LC_ALL=C
16672 export LC_ALL
16673 LANGUAGE=C
16674 export LANGUAGE
16675
16676 # CDPATH.
16677 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16678
16679
16680 # as_fn_error ERROR [LINENO LOG_FD]
16681 # ---------------------------------
16682 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16683 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16684 # script with status $?, using 1 if that was 0.
16685 as_fn_error ()
16686 {
16687   as_status=$?; test $as_status -eq 0 && as_status=1
16688   if test "$3"; then
16689     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16690     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16691   fi
16692   $as_echo "$as_me: error: $1" >&2
16693   as_fn_exit $as_status
16694 } # as_fn_error
16695
16696
16697 # as_fn_set_status STATUS
16698 # -----------------------
16699 # Set $? to STATUS, without forking.
16700 as_fn_set_status ()
16701 {
16702   return $1
16703 } # as_fn_set_status
16704
16705 # as_fn_exit STATUS
16706 # -----------------
16707 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16708 as_fn_exit ()
16709 {
16710   set +e
16711   as_fn_set_status $1
16712   exit $1
16713 } # as_fn_exit
16714
16715 # as_fn_unset VAR
16716 # ---------------
16717 # Portably unset VAR.
16718 as_fn_unset ()
16719 {
16720   { eval $1=; unset $1;}
16721 }
16722 as_unset=as_fn_unset
16723 # as_fn_append VAR VALUE
16724 # ----------------------
16725 # Append the text in VALUE to the end of the definition contained in VAR. Take
16726 # advantage of any shell optimizations that allow amortized linear growth over
16727 # repeated appends, instead of the typical quadratic growth present in naive
16728 # implementations.
16729 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16730   eval 'as_fn_append ()
16731   {
16732     eval $1+=\$2
16733   }'
16734 else
16735   as_fn_append ()
16736   {
16737     eval $1=\$$1\$2
16738   }
16739 fi # as_fn_append
16740
16741 # as_fn_arith ARG...
16742 # ------------------
16743 # Perform arithmetic evaluation on the ARGs, and store the result in the
16744 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16745 # must be portable across $(()) and expr.
16746 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16747   eval 'as_fn_arith ()
16748   {
16749     as_val=$(( $* ))
16750   }'
16751 else
16752   as_fn_arith ()
16753   {
16754     as_val=`expr "$@" || test $? -eq 1`
16755   }
16756 fi # as_fn_arith
16757
16758
16759 if expr a : '\(a\)' >/dev/null 2>&1 &&
16760    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16761   as_expr=expr
16762 else
16763   as_expr=false
16764 fi
16765
16766 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16767   as_basename=basename
16768 else
16769   as_basename=false
16770 fi
16771
16772 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16773   as_dirname=dirname
16774 else
16775   as_dirname=false
16776 fi
16777
16778 as_me=`$as_basename -- "$0" ||
16779 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16780          X"$0" : 'X\(//\)$' \| \
16781          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16782 $as_echo X/"$0" |
16783     sed '/^.*\/\([^/][^/]*\)\/*$/{
16784             s//\1/
16785             q
16786           }
16787           /^X\/\(\/\/\)$/{
16788             s//\1/
16789             q
16790           }
16791           /^X\/\(\/\).*/{
16792             s//\1/
16793             q
16794           }
16795           s/.*/./; q'`
16796
16797 # Avoid depending upon Character Ranges.
16798 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16799 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16800 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16801 as_cr_digits='0123456789'
16802 as_cr_alnum=$as_cr_Letters$as_cr_digits
16803
16804 ECHO_C= ECHO_N= ECHO_T=
16805 case `echo -n x` in #(((((
16806 -n*)
16807   case `echo 'xy\c'` in
16808   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16809   xy)  ECHO_C='\c';;
16810   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16811        ECHO_T=' ';;
16812   esac;;
16813 *)
16814   ECHO_N='-n';;
16815 esac
16816
16817 rm -f conf$$ conf$$.exe conf$$.file
16818 if test -d conf$$.dir; then
16819   rm -f conf$$.dir/conf$$.file
16820 else
16821   rm -f conf$$.dir
16822   mkdir conf$$.dir 2>/dev/null
16823 fi
16824 if (echo >conf$$.file) 2>/dev/null; then
16825   if ln -s conf$$.file conf$$ 2>/dev/null; then
16826     as_ln_s='ln -s'
16827     # ... but there are two gotchas:
16828     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16829     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16830     # In both cases, we have to default to `cp -p'.
16831     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16832       as_ln_s='cp -p'
16833   elif ln conf$$.file conf$$ 2>/dev/null; then
16834     as_ln_s=ln
16835   else
16836     as_ln_s='cp -p'
16837   fi
16838 else
16839   as_ln_s='cp -p'
16840 fi
16841 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16842 rmdir conf$$.dir 2>/dev/null
16843
16844
16845 # as_fn_mkdir_p
16846 # -------------
16847 # Create "$as_dir" as a directory, including parents if necessary.
16848 as_fn_mkdir_p ()
16849 {
16850
16851   case $as_dir in #(
16852   -*) as_dir=./$as_dir;;
16853   esac
16854   test -d "$as_dir" || eval $as_mkdir_p || {
16855     as_dirs=
16856     while :; do
16857       case $as_dir in #(
16858       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16859       *) as_qdir=$as_dir;;
16860       esac
16861       as_dirs="'$as_qdir' $as_dirs"
16862       as_dir=`$as_dirname -- "$as_dir" ||
16863 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16864          X"$as_dir" : 'X\(//\)[^/]' \| \
16865          X"$as_dir" : 'X\(//\)$' \| \
16866          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16867 $as_echo X"$as_dir" |
16868     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16869             s//\1/
16870             q
16871           }
16872           /^X\(\/\/\)[^/].*/{
16873             s//\1/
16874             q
16875           }
16876           /^X\(\/\/\)$/{
16877             s//\1/
16878             q
16879           }
16880           /^X\(\/\).*/{
16881             s//\1/
16882             q
16883           }
16884           s/.*/./; q'`
16885       test -d "$as_dir" && break
16886     done
16887     test -z "$as_dirs" || eval "mkdir $as_dirs"
16888   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16889
16890
16891 } # as_fn_mkdir_p
16892 if mkdir -p . 2>/dev/null; then
16893   as_mkdir_p='mkdir -p "$as_dir"'
16894 else
16895   test -d ./-p && rmdir ./-p
16896   as_mkdir_p=false
16897 fi
16898
16899 if test -x / >/dev/null 2>&1; then
16900   as_test_x='test -x'
16901 else
16902   if ls -dL / >/dev/null 2>&1; then
16903     as_ls_L_option=L
16904   else
16905     as_ls_L_option=
16906   fi
16907   as_test_x='
16908     eval sh -c '\''
16909       if test -d "$1"; then
16910         test -d "$1/.";
16911       else
16912         case $1 in #(
16913         -*)set "./$1";;
16914         esac;
16915         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16916         ???[sx]*):;;*)false;;esac;fi
16917     '\'' sh
16918   '
16919 fi
16920 as_executable_p=$as_test_x
16921
16922 # Sed expression to map a string onto a valid CPP name.
16923 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16924
16925 # Sed expression to map a string onto a valid variable name.
16926 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16927
16928
16929 exec 6>&1
16930 ## ----------------------------------- ##
16931 ## Main body of $CONFIG_STATUS script. ##
16932 ## ----------------------------------- ##
16933 _ASEOF
16934 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16935
16936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16937 # Save the log message, to keep $0 and so on meaningful, and to
16938 # report actual input values of CONFIG_FILES etc. instead of their
16939 # values after options handling.
16940 ac_log="
16941 This file was extended by libedit $as_me 3.0, which was
16942 generated by GNU Autoconf 2.64.  Invocation command line was
16943
16944   CONFIG_FILES    = $CONFIG_FILES
16945   CONFIG_HEADERS  = $CONFIG_HEADERS
16946   CONFIG_LINKS    = $CONFIG_LINKS
16947   CONFIG_COMMANDS = $CONFIG_COMMANDS
16948   $ $0 $@
16949
16950 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16951 "
16952
16953 _ACEOF
16954
16955 case $ac_config_files in *"
16956 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16957 esac
16958
16959 case $ac_config_headers in *"
16960 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16961 esac
16962
16963
16964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16965 # Files that config.status was made for.
16966 config_files="$ac_config_files"
16967 config_headers="$ac_config_headers"
16968 config_commands="$ac_config_commands"
16969
16970 _ACEOF
16971
16972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16973 ac_cs_usage="\
16974 \`$as_me' instantiates files and other configuration actions
16975 from templates according to the current configuration.  Unless the files
16976 and actions are specified as TAGs, all are instantiated by default.
16977
16978 Usage: $0 [OPTION]... [TAG]...
16979
16980   -h, --help       print this help, then exit
16981   -V, --version    print version number and configuration settings, then exit
16982   -q, --quiet, --silent
16983                    do not print progress messages
16984   -d, --debug      don't remove temporary files
16985       --recheck    update $as_me by reconfiguring in the same conditions
16986       --file=FILE[:TEMPLATE]
16987                    instantiate the configuration file FILE
16988       --header=FILE[:TEMPLATE]
16989                    instantiate the configuration header FILE
16990
16991 Configuration files:
16992 $config_files
16993
16994 Configuration headers:
16995 $config_headers
16996
16997 Configuration commands:
16998 $config_commands
16999
17000 Report bugs to the package provider."
17001
17002 _ACEOF
17003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17004 ac_cs_version="\\
17005 libedit config.status 3.0
17006 configured by $0, generated by GNU Autoconf 2.64,
17007   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17008
17009 Copyright (C) 2009 Free Software Foundation, Inc.
17010 This config.status script is free software; the Free Software Foundation
17011 gives unlimited permission to copy, distribute and modify it."
17012
17013 ac_pwd='$ac_pwd'
17014 srcdir='$srcdir'
17015 INSTALL='$INSTALL'
17016 MKDIR_P='$MKDIR_P'
17017 AWK='$AWK'
17018 test -n "\$AWK" || AWK=awk
17019 _ACEOF
17020
17021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17022 # The default lists apply if the user does not specify any file.
17023 ac_need_defaults=:
17024 while test $# != 0
17025 do
17026   case $1 in
17027   --*=*)
17028     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17029     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17030     ac_shift=:
17031     ;;
17032   *)
17033     ac_option=$1
17034     ac_optarg=$2
17035     ac_shift=shift
17036     ;;
17037   esac
17038
17039   case $ac_option in
17040   # Handling of the options.
17041   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17042     ac_cs_recheck=: ;;
17043   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17044     $as_echo "$ac_cs_version"; exit ;;
17045   --debug | --debu | --deb | --de | --d | -d )
17046     debug=: ;;
17047   --file | --fil | --fi | --f )
17048     $ac_shift
17049     case $ac_optarg in
17050     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17051     esac
17052     as_fn_append CONFIG_FILES " '$ac_optarg'"
17053     ac_need_defaults=false;;
17054   --header | --heade | --head | --hea )
17055     $ac_shift
17056     case $ac_optarg in
17057     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17058     esac
17059     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17060     ac_need_defaults=false;;
17061   --he | --h)
17062     # Conflict between --help and --header
17063     as_fn_error "ambiguous option: \`$1'
17064 Try \`$0 --help' for more information.";;
17065   --help | --hel | -h )
17066     $as_echo "$ac_cs_usage"; exit ;;
17067   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17068   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17069     ac_cs_silent=: ;;
17070
17071   # This is an error.
17072   -*) as_fn_error "unrecognized option: \`$1'
17073 Try \`$0 --help' for more information." ;;
17074
17075   *) as_fn_append ac_config_targets " $1"
17076      ac_need_defaults=false ;;
17077
17078   esac
17079   shift
17080 done
17081
17082 ac_configure_extra_args=
17083
17084 if $ac_cs_silent; then
17085   exec 6>/dev/null
17086   ac_configure_extra_args="$ac_configure_extra_args --silent"
17087 fi
17088
17089 _ACEOF
17090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17091 if \$ac_cs_recheck; then
17092   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17093   shift
17094   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17095   CONFIG_SHELL='$SHELL'
17096   export CONFIG_SHELL
17097   exec "\$@"
17098 fi
17099
17100 _ACEOF
17101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17102 exec 5>>config.log
17103 {
17104   echo
17105   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17106 ## Running $as_me. ##
17107 _ASBOX
17108   $as_echo "$ac_log"
17109 } >&5
17110
17111 _ACEOF
17112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17113 #
17114 # INIT-COMMANDS
17115 #
17116 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17117
17118
17119 # The HP-UX ksh and POSIX shell print the target directory to stdout
17120 # if CDPATH is set.
17121 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17122
17123 sed_quote_subst='$sed_quote_subst'
17124 double_quote_subst='$double_quote_subst'
17125 delay_variable_subst='$delay_variable_subst'
17126 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17127 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17128 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17129 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17130 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17131 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17132 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17133 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17134 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17135 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17136 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17137 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17138 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17139 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17140 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17141 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17142 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17143 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17144 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17145 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17146 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17147 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17148 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17149 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17150 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17151 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17152 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17153 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17154 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17155 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17156 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17157 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17158 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17159 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17160 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17161 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17162 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17163 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17164 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17165 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17166 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17167 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17168 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17169 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17170 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
17171 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17172 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17173 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17174 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17175 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17176 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17177 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17178 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17179 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17180 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17181 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17182 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17183 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17184 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17185 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17186 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17187 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17188 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17189 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17190 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17191 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17192 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17193 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17194 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17195 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17196 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17197 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17198 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17199 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17200 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17201 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17202 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17203 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17204 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17205 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17206 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17207 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17208 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17209 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17210 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17211 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17212 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17213 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17214 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17215 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17216 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17217 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17218 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17219 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17220 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17221 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17222 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17223 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17224 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17225 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17226 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17227 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17228 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17229 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17230 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17231 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17232 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17233 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17234 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17235 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17236 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17237 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17238 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17239 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17240 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17241 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17242 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17243 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17244 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17245 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17246 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17247 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17248 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17249 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17250 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17251 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17252 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17253 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17254 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17255 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17256 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17257 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17258 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17259 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17260 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17261 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17262 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17263 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17264 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17265 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17266 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17267 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17268 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17269 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17270 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17271 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17272 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17273 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17274 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17275 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17276 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17277 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17278 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17279 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17280 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17281 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17282 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17283 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17284 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17285 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17286 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17287 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17288 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17289 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17290 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17291 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17292 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17293 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17294 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17295 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17296 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17297
17298 LTCC='$LTCC'
17299 LTCFLAGS='$LTCFLAGS'
17300 compiler='$compiler_DEFAULT'
17301
17302 # Quote evaled strings.
17303 for var in SED \
17304 GREP \
17305 EGREP \
17306 FGREP \
17307 LD \
17308 NM \
17309 LN_S \
17310 lt_SP2NL \
17311 lt_NL2SP \
17312 reload_flag \
17313 OBJDUMP \
17314 deplibs_check_method \
17315 file_magic_cmd \
17316 AR \
17317 AR_FLAGS \
17318 STRIP \
17319 RANLIB \
17320 CC \
17321 CFLAGS \
17322 compiler \
17323 lt_cv_sys_global_symbol_pipe \
17324 lt_cv_sys_global_symbol_to_cdecl \
17325 lt_cv_sys_global_symbol_to_c_name_address \
17326 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17327 SHELL \
17328 ECHO \
17329 lt_prog_compiler_no_builtin_flag \
17330 lt_prog_compiler_wl \
17331 lt_prog_compiler_pic \
17332 lt_prog_compiler_static \
17333 lt_cv_prog_compiler_c_o \
17334 need_locks \
17335 DSYMUTIL \
17336 NMEDIT \
17337 LIPO \
17338 OTOOL \
17339 OTOOL64 \
17340 shrext_cmds \
17341 export_dynamic_flag_spec \
17342 whole_archive_flag_spec \
17343 compiler_needs_object \
17344 with_gnu_ld \
17345 allow_undefined_flag \
17346 no_undefined_flag \
17347 hardcode_libdir_flag_spec \
17348 hardcode_libdir_flag_spec_ld \
17349 hardcode_libdir_separator \
17350 fix_srcfile_path \
17351 exclude_expsyms \
17352 include_expsyms \
17353 file_list_spec \
17354 variables_saved_for_relink \
17355 libname_spec \
17356 library_names_spec \
17357 soname_spec \
17358 finish_eval \
17359 old_striplib \
17360 striplib \
17361 compiler_lib_search_dirs \
17362 predep_objects \
17363 postdep_objects \
17364 predeps \
17365 postdeps \
17366 compiler_lib_search_path \
17367 LD_CXX \
17368 compiler_CXX \
17369 lt_prog_compiler_no_builtin_flag_CXX \
17370 lt_prog_compiler_wl_CXX \
17371 lt_prog_compiler_pic_CXX \
17372 lt_prog_compiler_static_CXX \
17373 lt_cv_prog_compiler_c_o_CXX \
17374 export_dynamic_flag_spec_CXX \
17375 whole_archive_flag_spec_CXX \
17376 compiler_needs_object_CXX \
17377 with_gnu_ld_CXX \
17378 allow_undefined_flag_CXX \
17379 no_undefined_flag_CXX \
17380 hardcode_libdir_flag_spec_CXX \
17381 hardcode_libdir_flag_spec_ld_CXX \
17382 hardcode_libdir_separator_CXX \
17383 fix_srcfile_path_CXX \
17384 exclude_expsyms_CXX \
17385 include_expsyms_CXX \
17386 file_list_spec_CXX \
17387 compiler_lib_search_dirs_CXX \
17388 predep_objects_CXX \
17389 postdep_objects_CXX \
17390 predeps_CXX \
17391 postdeps_CXX \
17392 compiler_lib_search_path_CXX; do
17393     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17394     *[\\\\\\\`\\"\\\$]*)
17395       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17396       ;;
17397     *)
17398       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17399       ;;
17400     esac
17401 done
17402
17403 # Double-quote double-evaled strings.
17404 for var in reload_cmds \
17405 old_postinstall_cmds \
17406 old_postuninstall_cmds \
17407 old_archive_cmds \
17408 extract_expsyms_cmds \
17409 old_archive_from_new_cmds \
17410 old_archive_from_expsyms_cmds \
17411 archive_cmds \
17412 archive_expsym_cmds \
17413 module_cmds \
17414 module_expsym_cmds \
17415 export_symbols_cmds \
17416 prelink_cmds \
17417 postinstall_cmds \
17418 postuninstall_cmds \
17419 finish_cmds \
17420 sys_lib_search_path_spec \
17421 sys_lib_dlsearch_path_spec \
17422 old_archive_cmds_CXX \
17423 old_archive_from_new_cmds_CXX \
17424 old_archive_from_expsyms_cmds_CXX \
17425 archive_cmds_CXX \
17426 archive_expsym_cmds_CXX \
17427 module_cmds_CXX \
17428 module_expsym_cmds_CXX \
17429 export_symbols_cmds_CXX \
17430 prelink_cmds_CXX; do
17431     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17432     *[\\\\\\\`\\"\\\$]*)
17433       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17434       ;;
17435     *)
17436       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17437       ;;
17438     esac
17439 done
17440
17441 # Fix-up fallback echo if it was mangled by the above quoting rules.
17442 case \$lt_ECHO in
17443 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17444   ;;
17445 esac
17446
17447 ac_aux_dir='$ac_aux_dir'
17448 xsi_shell='$xsi_shell'
17449 lt_shell_append='$lt_shell_append'
17450
17451 # See if we are running on zsh, and set the options which allow our
17452 # commands through without removal of \ escapes INIT.
17453 if test -n "\${ZSH_VERSION+set}" ; then
17454    setopt NO_GLOB_SUBST
17455 fi
17456
17457
17458     PACKAGE='$PACKAGE'
17459     VERSION='$VERSION'
17460     TIMESTAMP='$TIMESTAMP'
17461     RM='$RM'
17462     ofile='$ofile'
17463
17464
17465
17466
17467
17468
17469 _ACEOF
17470
17471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17472
17473 # Handling of arguments.
17474 for ac_config_target in $ac_config_targets
17475 do
17476   case $ac_config_target in
17477     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17478     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17479     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17480     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17481     "libedit.pc") CONFIG_FILES="$CONFIG_FILES libedit.pc" ;;
17482     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17483     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17484     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
17485
17486   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17487   esac
17488 done
17489
17490
17491 # If the user did not use the arguments to specify the items to instantiate,
17492 # then the envvar interface is used.  Set only those that are not.
17493 # We use the long form for the default assignment because of an extremely
17494 # bizarre bug on SunOS 4.1.3.
17495 if $ac_need_defaults; then
17496   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17497   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17498   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17499 fi
17500
17501 # Have a temporary directory for convenience.  Make it in the build tree
17502 # simply because there is no reason against having it here, and in addition,
17503 # creating and moving files from /tmp can sometimes cause problems.
17504 # Hook for its removal unless debugging.
17505 # Note that there is a small window in which the directory will not be cleaned:
17506 # after its creation but before its name has been assigned to `$tmp'.
17507 $debug ||
17508 {
17509   tmp=
17510   trap 'exit_status=$?
17511   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17512 ' 0
17513   trap 'as_fn_exit 1' 1 2 13 15
17514 }
17515 # Create a (secure) tmp directory for tmp files.
17516
17517 {
17518   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17519   test -n "$tmp" && test -d "$tmp"
17520 }  ||
17521 {
17522   tmp=./conf$$-$RANDOM
17523   (umask 077 && mkdir "$tmp")
17524 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17525
17526 # Set up the scripts for CONFIG_FILES section.
17527 # No need to generate them if there are no CONFIG_FILES.
17528 # This happens for instance with `./config.status config.h'.
17529 if test -n "$CONFIG_FILES"; then
17530
17531
17532 ac_cr=`echo X | tr X '\015'`
17533 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17534 # But we know of no other shell where ac_cr would be empty at this
17535 # point, so we can use a bashism as a fallback.
17536 if test "x$ac_cr" = x; then
17537   eval ac_cr=\$\'\\r\'
17538 fi
17539 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17540 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17541   ac_cs_awk_cr='\r'
17542 else
17543   ac_cs_awk_cr=$ac_cr
17544 fi
17545
17546 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17547 _ACEOF
17548
17549
17550 {
17551   echo "cat >conf$$subs.awk <<_ACEOF" &&
17552   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17553   echo "_ACEOF"
17554 } >conf$$subs.sh ||
17555   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17556 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17557 ac_delim='%!_!# '
17558 for ac_last_try in false false false false false :; do
17559   . ./conf$$subs.sh ||
17560     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17561
17562   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17563   if test $ac_delim_n = $ac_delim_num; then
17564     break
17565   elif $ac_last_try; then
17566     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17567   else
17568     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17569   fi
17570 done
17571 rm -f conf$$subs.sh
17572
17573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17574 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17575 _ACEOF
17576 sed -n '
17577 h
17578 s/^/S["/; s/!.*/"]=/
17579 p
17580 g
17581 s/^[^!]*!//
17582 :repl
17583 t repl
17584 s/'"$ac_delim"'$//
17585 t delim
17586 :nl
17587 h
17588 s/\(.\{148\}\).*/\1/
17589 t more1
17590 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17591 p
17592 n
17593 b repl
17594 :more1
17595 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17596 p
17597 g
17598 s/.\{148\}//
17599 t nl
17600 :delim
17601 h
17602 s/\(.\{148\}\).*/\1/
17603 t more2
17604 s/["\\]/\\&/g; s/^/"/; s/$/"/
17605 p
17606 b
17607 :more2
17608 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17609 p
17610 g
17611 s/.\{148\}//
17612 t delim
17613 ' <conf$$subs.awk | sed '
17614 /^[^""]/{
17615   N
17616   s/\n//
17617 }
17618 ' >>$CONFIG_STATUS || ac_write_fail=1
17619 rm -f conf$$subs.awk
17620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17621 _ACAWK
17622 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17623   for (key in S) S_is_set[key] = 1
17624   FS = "\a"
17625
17626 }
17627 {
17628   line = $ 0
17629   nfields = split(line, field, "@")
17630   substed = 0
17631   len = length(field[1])
17632   for (i = 2; i < nfields; i++) {
17633     key = field[i]
17634     keylen = length(key)
17635     if (S_is_set[key]) {
17636       value = S[key]
17637       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17638       len += length(value) + length(field[++i])
17639       substed = 1
17640     } else
17641       len += 1 + keylen
17642   }
17643
17644   print line
17645 }
17646
17647 _ACAWK
17648 _ACEOF
17649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17650 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17651   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17652 else
17653   cat
17654 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17655   || as_fn_error "could not setup config files machinery" "$LINENO" 5
17656 _ACEOF
17657
17658 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17659 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17660 # trailing colons and then remove the whole line if VPATH becomes empty
17661 # (actually we leave an empty line to preserve line numbers).
17662 if test "x$srcdir" = x.; then
17663   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17664 s/:*\$(srcdir):*/:/
17665 s/:*\${srcdir}:*/:/
17666 s/:*@srcdir@:*/:/
17667 s/^\([^=]*=[     ]*\):*/\1/
17668 s/:*$//
17669 s/^[^=]*=[       ]*$//
17670 }'
17671 fi
17672
17673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17674 fi # test -n "$CONFIG_FILES"
17675
17676 # Set up the scripts for CONFIG_HEADERS section.
17677 # No need to generate them if there are no CONFIG_HEADERS.
17678 # This happens for instance with `./config.status Makefile'.
17679 if test -n "$CONFIG_HEADERS"; then
17680 cat >"$tmp/defines.awk" <<\_ACAWK ||
17681 BEGIN {
17682 _ACEOF
17683
17684 # Transform confdefs.h into an awk script `defines.awk', embedded as
17685 # here-document in config.status, that substitutes the proper values into
17686 # config.h.in to produce config.h.
17687
17688 # Create a delimiter string that does not exist in confdefs.h, to ease
17689 # handling of long lines.
17690 ac_delim='%!_!# '
17691 for ac_last_try in false false :; do
17692   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17693   if test -z "$ac_t"; then
17694     break
17695   elif $ac_last_try; then
17696     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17697   else
17698     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17699   fi
17700 done
17701
17702 # For the awk script, D is an array of macro values keyed by name,
17703 # likewise P contains macro parameters if any.  Preserve backslash
17704 # newline sequences.
17705
17706 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17707 sed -n '
17708 s/.\{148\}/&'"$ac_delim"'/g
17709 t rset
17710 :rset
17711 s/^[     ]*#[    ]*define[       ][      ]*/ /
17712 t def
17713 d
17714 :def
17715 s/\\$//
17716 t bsnl
17717 s/["\\]/\\&/g
17718 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17719 D["\1"]=" \3"/p
17720 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17721 d
17722 :bsnl
17723 s/["\\]/\\&/g
17724 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17725 D["\1"]=" \3\\\\\\n"\\/p
17726 t cont
17727 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17728 t cont
17729 d
17730 :cont
17731 n
17732 s/.\{148\}/&'"$ac_delim"'/g
17733 t clear
17734 :clear
17735 s/\\$//
17736 t bsnlc
17737 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17738 d
17739 :bsnlc
17740 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17741 b cont
17742 ' <confdefs.h | sed '
17743 s/'"$ac_delim"'/"\\\
17744 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17745
17746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17747   for (key in D) D_is_set[key] = 1
17748   FS = "\a"
17749 }
17750 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17751   line = \$ 0
17752   split(line, arg, " ")
17753   if (arg[1] == "#") {
17754     defundef = arg[2]
17755     mac1 = arg[3]
17756   } else {
17757     defundef = substr(arg[1], 2)
17758     mac1 = arg[2]
17759   }
17760   split(mac1, mac2, "(") #)
17761   macro = mac2[1]
17762   prefix = substr(line, 1, index(line, defundef) - 1)
17763   if (D_is_set[macro]) {
17764     # Preserve the white space surrounding the "#".
17765     print prefix "define", macro P[macro] D[macro]
17766     next
17767   } else {
17768     # Replace #undef with comments.  This is necessary, for example,
17769     # in the case of _POSIX_SOURCE, which is predefined and required
17770     # on some systems where configure will not decide to define it.
17771     if (defundef == "undef") {
17772       print "/*", prefix defundef, macro, "*/"
17773       next
17774     }
17775   }
17776 }
17777 { print }
17778 _ACAWK
17779 _ACEOF
17780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17781   as_fn_error "could not setup config headers machinery" "$LINENO" 5
17782 fi # test -n "$CONFIG_HEADERS"
17783
17784
17785 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17786 shift
17787 for ac_tag
17788 do
17789   case $ac_tag in
17790   :[FHLC]) ac_mode=$ac_tag; continue;;
17791   esac
17792   case $ac_mode$ac_tag in
17793   :[FHL]*:*);;
17794   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17795   :[FH]-) ac_tag=-:-;;
17796   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17797   esac
17798   ac_save_IFS=$IFS
17799   IFS=:
17800   set x $ac_tag
17801   IFS=$ac_save_IFS
17802   shift
17803   ac_file=$1
17804   shift
17805
17806   case $ac_mode in
17807   :L) ac_source=$1;;
17808   :[FH])
17809     ac_file_inputs=
17810     for ac_f
17811     do
17812       case $ac_f in
17813       -) ac_f="$tmp/stdin";;
17814       *) # Look for the file first in the build tree, then in the source tree
17815          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17816          # because $ac_f cannot contain `:'.
17817          test -f "$ac_f" ||
17818            case $ac_f in
17819            [\\/$]*) false;;
17820            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17821            esac ||
17822            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17823       esac
17824       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17825       as_fn_append ac_file_inputs " '$ac_f'"
17826     done
17827
17828     # Let's still pretend it is `configure' which instantiates (i.e., don't
17829     # use $as_me), people would be surprised to read:
17830     #    /* config.h.  Generated by config.status.  */
17831     configure_input='Generated from '`
17832           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17833         `' by configure.'
17834     if test x"$ac_file" != x-; then
17835       configure_input="$ac_file.  $configure_input"
17836       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17837 $as_echo "$as_me: creating $ac_file" >&6;}
17838     fi
17839     # Neutralize special characters interpreted by sed in replacement strings.
17840     case $configure_input in #(
17841     *\&* | *\|* | *\\* )
17842        ac_sed_conf_input=`$as_echo "$configure_input" |
17843        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17844     *) ac_sed_conf_input=$configure_input;;
17845     esac
17846
17847     case $ac_tag in
17848     *:-:* | *:-) cat >"$tmp/stdin" \
17849       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17850     esac
17851     ;;
17852   esac
17853
17854   ac_dir=`$as_dirname -- "$ac_file" ||
17855 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17856          X"$ac_file" : 'X\(//\)[^/]' \| \
17857          X"$ac_file" : 'X\(//\)$' \| \
17858          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17859 $as_echo X"$ac_file" |
17860     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17861             s//\1/
17862             q
17863           }
17864           /^X\(\/\/\)[^/].*/{
17865             s//\1/
17866             q
17867           }
17868           /^X\(\/\/\)$/{
17869             s//\1/
17870             q
17871           }
17872           /^X\(\/\).*/{
17873             s//\1/
17874             q
17875           }
17876           s/.*/./; q'`
17877   as_dir="$ac_dir"; as_fn_mkdir_p
17878   ac_builddir=.
17879
17880 case "$ac_dir" in
17881 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17882 *)
17883   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17884   # A ".." for each directory in $ac_dir_suffix.
17885   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17886   case $ac_top_builddir_sub in
17887   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17888   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17889   esac ;;
17890 esac
17891 ac_abs_top_builddir=$ac_pwd
17892 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17893 # for backward compatibility:
17894 ac_top_builddir=$ac_top_build_prefix
17895
17896 case $srcdir in
17897   .)  # We are building in place.
17898     ac_srcdir=.
17899     ac_top_srcdir=$ac_top_builddir_sub
17900     ac_abs_top_srcdir=$ac_pwd ;;
17901   [\\/]* | ?:[\\/]* )  # Absolute name.
17902     ac_srcdir=$srcdir$ac_dir_suffix;
17903     ac_top_srcdir=$srcdir
17904     ac_abs_top_srcdir=$srcdir ;;
17905   *) # Relative name.
17906     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17907     ac_top_srcdir=$ac_top_build_prefix$srcdir
17908     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17909 esac
17910 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17911
17912
17913   case $ac_mode in
17914   :F)
17915   #
17916   # CONFIG_FILE
17917   #
17918
17919   case $INSTALL in
17920   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17921   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17922   esac
17923   ac_MKDIR_P=$MKDIR_P
17924   case $MKDIR_P in
17925   [\\/$]* | ?:[\\/]* ) ;;
17926   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17927   esac
17928 _ACEOF
17929
17930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17931 # If the template does not know about datarootdir, expand it.
17932 # FIXME: This hack should be removed a few years after 2.60.
17933 ac_datarootdir_hack=; ac_datarootdir_seen=
17934 ac_sed_dataroot='
17935 /datarootdir/ {
17936   p
17937   q
17938 }
17939 /@datadir@/p
17940 /@docdir@/p
17941 /@infodir@/p
17942 /@localedir@/p
17943 /@mandir@/p'
17944 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17945 *datarootdir*) ac_datarootdir_seen=yes;;
17946 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17947   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17948 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17949 _ACEOF
17950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17951   ac_datarootdir_hack='
17952   s&@datadir@&$datadir&g
17953   s&@docdir@&$docdir&g
17954   s&@infodir@&$infodir&g
17955   s&@localedir@&$localedir&g
17956   s&@mandir@&$mandir&g
17957   s&\\\${datarootdir}&$datarootdir&g' ;;
17958 esac
17959 _ACEOF
17960
17961 # Neutralize VPATH when `$srcdir' = `.'.
17962 # Shell code in configure.ac might set extrasub.
17963 # FIXME: do we really want to maintain this feature?
17964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17965 ac_sed_extra="$ac_vpsub
17966 $extrasub
17967 _ACEOF
17968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17969 :t
17970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17971 s|@configure_input@|$ac_sed_conf_input|;t t
17972 s&@top_builddir@&$ac_top_builddir_sub&;t t
17973 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17974 s&@srcdir@&$ac_srcdir&;t t
17975 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17976 s&@top_srcdir@&$ac_top_srcdir&;t t
17977 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17978 s&@builddir@&$ac_builddir&;t t
17979 s&@abs_builddir@&$ac_abs_builddir&;t t
17980 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17981 s&@INSTALL@&$ac_INSTALL&;t t
17982 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17983 $ac_datarootdir_hack
17984 "
17985 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17986   || as_fn_error "could not create $ac_file" "$LINENO" 5
17987
17988 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17989   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17990   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17991   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17992 which seems to be undefined.  Please make sure it is defined." >&5
17993 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17994 which seems to be undefined.  Please make sure it is defined." >&2;}
17995
17996   rm -f "$tmp/stdin"
17997   case $ac_file in
17998   -) cat "$tmp/out" && rm -f "$tmp/out";;
17999   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18000   esac \
18001   || as_fn_error "could not create $ac_file" "$LINENO" 5
18002  ;;
18003   :H)
18004   #
18005   # CONFIG_HEADER
18006   #
18007   if test x"$ac_file" != x-; then
18008     {
18009       $as_echo "/* $configure_input  */" \
18010       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18011     } >"$tmp/config.h" \
18012       || as_fn_error "could not create $ac_file" "$LINENO" 5
18013     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18014       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18015 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18016     else
18017       rm -f "$ac_file"
18018       mv "$tmp/config.h" "$ac_file" \
18019         || as_fn_error "could not create $ac_file" "$LINENO" 5
18020     fi
18021   else
18022     $as_echo "/* $configure_input  */" \
18023       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18024       || as_fn_error "could not create -" "$LINENO" 5
18025   fi
18026 # Compute "$ac_file"'s index in $config_headers.
18027 _am_arg="$ac_file"
18028 _am_stamp_count=1
18029 for _am_header in $config_headers :; do
18030   case $_am_header in
18031     $_am_arg | $_am_arg:* )
18032       break ;;
18033     * )
18034       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18035   esac
18036 done
18037 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18038 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18039          X"$_am_arg" : 'X\(//\)[^/]' \| \
18040          X"$_am_arg" : 'X\(//\)$' \| \
18041          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18042 $as_echo X"$_am_arg" |
18043     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18044             s//\1/
18045             q
18046           }
18047           /^X\(\/\/\)[^/].*/{
18048             s//\1/
18049             q
18050           }
18051           /^X\(\/\/\)$/{
18052             s//\1/
18053             q
18054           }
18055           /^X\(\/\).*/{
18056             s//\1/
18057             q
18058           }
18059           s/.*/./; q'`/stamp-h$_am_stamp_count
18060  ;;
18061
18062   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18063 $as_echo "$as_me: executing $ac_file commands" >&6;}
18064  ;;
18065   esac
18066
18067
18068   case $ac_file$ac_mode in
18069     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18070   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18071   # are listed without --file.  Let's play safe and only enable the eval
18072   # if we detect the quoting.
18073   case $CONFIG_FILES in
18074   *\'*) eval set x "$CONFIG_FILES" ;;
18075   *)   set x $CONFIG_FILES ;;
18076   esac
18077   shift
18078   for mf
18079   do
18080     # Strip MF so we end up with the name of the file.
18081     mf=`echo "$mf" | sed -e 's/:.*$//'`
18082     # Check whether this is an Automake generated Makefile or not.
18083     # We used to match only the files named `Makefile.in', but
18084     # some people rename them; so instead we look at the file content.
18085     # Grep'ing the first line is not enough: some people post-process
18086     # each Makefile.in and add a new line on top of each file to say so.
18087     # Grep'ing the whole file is not good either: AIX grep has a line
18088     # limit of 2048, but all sed's we know have understand at least 4000.
18089     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18090       dirpart=`$as_dirname -- "$mf" ||
18091 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18092          X"$mf" : 'X\(//\)[^/]' \| \
18093          X"$mf" : 'X\(//\)$' \| \
18094          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18095 $as_echo X"$mf" |
18096     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18097             s//\1/
18098             q
18099           }
18100           /^X\(\/\/\)[^/].*/{
18101             s//\1/
18102             q
18103           }
18104           /^X\(\/\/\)$/{
18105             s//\1/
18106             q
18107           }
18108           /^X\(\/\).*/{
18109             s//\1/
18110             q
18111           }
18112           s/.*/./; q'`
18113     else
18114       continue
18115     fi
18116     # Extract the definition of DEPDIR, am__include, and am__quote
18117     # from the Makefile without running `make'.
18118     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18119     test -z "$DEPDIR" && continue
18120     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18121     test -z "am__include" && continue
18122     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18123     # When using ansi2knr, U may be empty or an underscore; expand it
18124     U=`sed -n 's/^U = //p' < "$mf"`
18125     # Find all dependency output files, they are included files with
18126     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18127     # simplest approach to changing $(DEPDIR) to its actual value in the
18128     # expansion.
18129     for file in `sed -n "
18130       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18131          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18132       # Make sure the directory exists.
18133       test -f "$dirpart/$file" && continue
18134       fdir=`$as_dirname -- "$file" ||
18135 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18136          X"$file" : 'X\(//\)[^/]' \| \
18137          X"$file" : 'X\(//\)$' \| \
18138          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18139 $as_echo X"$file" |
18140     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18141             s//\1/
18142             q
18143           }
18144           /^X\(\/\/\)[^/].*/{
18145             s//\1/
18146             q
18147           }
18148           /^X\(\/\/\)$/{
18149             s//\1/
18150             q
18151           }
18152           /^X\(\/\).*/{
18153             s//\1/
18154             q
18155           }
18156           s/.*/./; q'`
18157       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18158       # echo "creating $dirpart/$file"
18159       echo '# dummy' > "$dirpart/$file"
18160     done
18161   done
18162 }
18163  ;;
18164     "libtool":C)
18165
18166     # See if we are running on zsh, and set the options which allow our
18167     # commands through without removal of \ escapes.
18168     if test -n "${ZSH_VERSION+set}" ; then
18169       setopt NO_GLOB_SUBST
18170     fi
18171
18172     cfgfile="${ofile}T"
18173     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18174     $RM "$cfgfile"
18175
18176     cat <<_LT_EOF >> "$cfgfile"
18177 #! $SHELL
18178
18179 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18180 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18181 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18182 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18183 #
18184 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18185 #                 2006, 2007, 2008 Free Software Foundation, Inc.
18186 #   Written by Gordon Matzigkeit, 1996
18187 #
18188 #   This file is part of GNU Libtool.
18189 #
18190 # GNU Libtool is free software; you can redistribute it and/or
18191 # modify it under the terms of the GNU General Public License as
18192 # published by the Free Software Foundation; either version 2 of
18193 # the License, or (at your option) any later version.
18194 #
18195 # As a special exception to the GNU General Public License,
18196 # if you distribute this file as part of a program or library that
18197 # is built using GNU Libtool, you may include this file under the
18198 # same distribution terms that you use for the rest of that program.
18199 #
18200 # GNU Libtool is distributed in the hope that it will be useful,
18201 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18202 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18203 # GNU General Public License for more details.
18204 #
18205 # You should have received a copy of the GNU General Public License
18206 # along with GNU Libtool; see the file COPYING.  If not, a copy
18207 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18208 # obtained by writing to the Free Software Foundation, Inc.,
18209 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18210
18211
18212 # The names of the tagged configurations supported by this script.
18213 available_tags="CXX "
18214
18215 # ### BEGIN LIBTOOL CONFIG
18216
18217 # Which release of libtool.m4 was used?
18218 macro_version=$macro_version
18219 macro_revision=$macro_revision
18220
18221 # Whether or not to build shared libraries.
18222 build_libtool_libs=$enable_shared
18223
18224 # Whether or not to build static libraries.
18225 build_old_libs=$enable_static
18226
18227 # What type of objects to build.
18228 pic_mode=$pic_mode
18229
18230 # Whether or not to optimize for fast installation.
18231 fast_install=$enable_fast_install
18232
18233 # The host system.
18234 host_alias=$host_alias
18235 host=$host
18236 host_os=$host_os
18237
18238 # The build system.
18239 build_alias=$build_alias
18240 build=$build
18241 build_os=$build_os
18242
18243 # A sed program that does not truncate output.
18244 SED=$lt_SED
18245
18246 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18247 Xsed="\$SED -e 1s/^X//"
18248
18249 # A grep program that handles long lines.
18250 GREP=$lt_GREP
18251
18252 # An ERE matcher.
18253 EGREP=$lt_EGREP
18254
18255 # A literal string matcher.
18256 FGREP=$lt_FGREP
18257
18258 # A BSD- or MS-compatible name lister.
18259 NM=$lt_NM
18260
18261 # Whether we need soft or hard links.
18262 LN_S=$lt_LN_S
18263
18264 # What is the maximum length of a command?
18265 max_cmd_len=$max_cmd_len
18266
18267 # Object file suffix (normally "o").
18268 objext=$ac_objext
18269
18270 # Executable file suffix (normally "").
18271 exeext=$exeext
18272
18273 # whether the shell understands "unset".
18274 lt_unset=$lt_unset
18275
18276 # turn spaces into newlines.
18277 SP2NL=$lt_lt_SP2NL
18278
18279 # turn newlines into spaces.
18280 NL2SP=$lt_lt_NL2SP
18281
18282 # How to create reloadable object files.
18283 reload_flag=$lt_reload_flag
18284 reload_cmds=$lt_reload_cmds
18285
18286 # An object symbol dumper.
18287 OBJDUMP=$lt_OBJDUMP
18288
18289 # Method to check whether dependent libraries are shared objects.
18290 deplibs_check_method=$lt_deplibs_check_method
18291
18292 # Command to use when deplibs_check_method == "file_magic".
18293 file_magic_cmd=$lt_file_magic_cmd
18294
18295 # The archiver.
18296 AR=$lt_AR
18297 AR_FLAGS=$lt_AR_FLAGS
18298
18299 # A symbol stripping program.
18300 STRIP=$lt_STRIP
18301
18302 # Commands used to install an old-style archive.
18303 RANLIB=$lt_RANLIB
18304 old_postinstall_cmds=$lt_old_postinstall_cmds
18305 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18306
18307 # A C compiler.
18308 LTCC=$lt_CC
18309
18310 # LTCC compiler flags.
18311 LTCFLAGS=$lt_CFLAGS
18312
18313 # Take the output of nm and produce a listing of raw symbols and C names.
18314 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18315
18316 # Transform the output of nm in a proper C declaration.
18317 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18318
18319 # Transform the output of nm in a C name address pair.
18320 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18321
18322 # Transform the output of nm in a C name address pair when lib prefix is needed.
18323 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18324
18325 # The name of the directory that contains temporary libtool files.
18326 objdir=$objdir
18327
18328 # Shell to use when invoking shell scripts.
18329 SHELL=$lt_SHELL
18330
18331 # An echo program that does not interpret backslashes.
18332 ECHO=$lt_ECHO
18333
18334 # Used to examine libraries when file_magic_cmd begins with "file".
18335 MAGIC_CMD=$MAGIC_CMD
18336
18337 # Must we lock files when doing compilation?
18338 need_locks=$lt_need_locks
18339
18340 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18341 DSYMUTIL=$lt_DSYMUTIL
18342
18343 # Tool to change global to local symbols on Mac OS X.
18344 NMEDIT=$lt_NMEDIT
18345
18346 # Tool to manipulate fat objects and archives on Mac OS X.
18347 LIPO=$lt_LIPO
18348
18349 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18350 OTOOL=$lt_OTOOL
18351
18352 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18353 OTOOL64=$lt_OTOOL64
18354
18355 # Old archive suffix (normally "a").
18356 libext=$libext
18357
18358 # Shared library suffix (normally ".so").
18359 shrext_cmds=$lt_shrext_cmds
18360
18361 # The commands to extract the exported symbol list from a shared archive.
18362 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18363
18364 # Variables whose values should be saved in libtool wrapper scripts and
18365 # restored at link time.
18366 variables_saved_for_relink=$lt_variables_saved_for_relink
18367
18368 # Do we need the "lib" prefix for modules?
18369 need_lib_prefix=$need_lib_prefix
18370
18371 # Do we need a version for libraries?
18372 need_version=$need_version
18373
18374 # Library versioning type.
18375 version_type=$version_type
18376
18377 # Shared library runtime path variable.
18378 runpath_var=$runpath_var
18379
18380 # Shared library path variable.
18381 shlibpath_var=$shlibpath_var
18382
18383 # Is shlibpath searched before the hard-coded library search path?
18384 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18385
18386 # Format of library name prefix.
18387 libname_spec=$lt_libname_spec
18388
18389 # List of archive names.  First name is the real one, the rest are links.
18390 # The last name is the one that the linker finds with -lNAME
18391 library_names_spec=$lt_library_names_spec
18392
18393 # The coded name of the library, if different from the real name.
18394 soname_spec=$lt_soname_spec
18395
18396 # Command to use after installation of a shared archive.
18397 postinstall_cmds=$lt_postinstall_cmds
18398
18399 # Command to use after uninstallation of a shared archive.
18400 postuninstall_cmds=$lt_postuninstall_cmds
18401
18402 # Commands used to finish a libtool library installation in a directory.
18403 finish_cmds=$lt_finish_cmds
18404
18405 # As "finish_cmds", except a single script fragment to be evaled but
18406 # not shown.
18407 finish_eval=$lt_finish_eval
18408
18409 # Whether we should hardcode library paths into libraries.
18410 hardcode_into_libs=$hardcode_into_libs
18411
18412 # Compile-time system search path for libraries.
18413 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18414
18415 # Run-time system search path for libraries.
18416 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18417
18418 # Whether dlopen is supported.
18419 dlopen_support=$enable_dlopen
18420
18421 # Whether dlopen of programs is supported.
18422 dlopen_self=$enable_dlopen_self
18423
18424 # Whether dlopen of statically linked programs is supported.
18425 dlopen_self_static=$enable_dlopen_self_static
18426
18427 # Commands to strip libraries.
18428 old_striplib=$lt_old_striplib
18429 striplib=$lt_striplib
18430
18431
18432 # The linker used to build libraries.
18433 LD=$lt_LD
18434
18435 # Commands used to build an old-style archive.
18436 old_archive_cmds=$lt_old_archive_cmds
18437
18438 # A language specific compiler.
18439 CC=$lt_compiler
18440
18441 # Is the compiler the GNU compiler?
18442 with_gcc=$GCC
18443
18444 # Compiler flag to turn off builtin functions.
18445 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18446
18447 # How to pass a linker flag through the compiler.
18448 wl=$lt_lt_prog_compiler_wl
18449
18450 # Additional compiler flags for building library objects.
18451 pic_flag=$lt_lt_prog_compiler_pic
18452
18453 # Compiler flag to prevent dynamic linking.
18454 link_static_flag=$lt_lt_prog_compiler_static
18455
18456 # Does compiler simultaneously support -c and -o options?
18457 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18458
18459 # Whether or not to add -lc for building shared libraries.
18460 build_libtool_need_lc=$archive_cmds_need_lc
18461
18462 # Whether or not to disallow shared libs when runtime libs are static.
18463 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18464
18465 # Compiler flag to allow reflexive dlopens.
18466 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18467
18468 # Compiler flag to generate shared objects directly from archives.
18469 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18470
18471 # Whether the compiler copes with passing no objects directly.
18472 compiler_needs_object=$lt_compiler_needs_object
18473
18474 # Create an old-style archive from a shared archive.
18475 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18476
18477 # Create a temporary old-style archive to link instead of a shared archive.
18478 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18479
18480 # Commands used to build a shared archive.
18481 archive_cmds=$lt_archive_cmds
18482 archive_expsym_cmds=$lt_archive_expsym_cmds
18483
18484 # Commands used to build a loadable module if different from building
18485 # a shared archive.
18486 module_cmds=$lt_module_cmds
18487 module_expsym_cmds=$lt_module_expsym_cmds
18488
18489 # Whether we are building with GNU ld or not.
18490 with_gnu_ld=$lt_with_gnu_ld
18491
18492 # Flag that allows shared libraries with undefined symbols to be built.
18493 allow_undefined_flag=$lt_allow_undefined_flag
18494
18495 # Flag that enforces no undefined symbols.
18496 no_undefined_flag=$lt_no_undefined_flag
18497
18498 # Flag to hardcode \$libdir into a binary during linking.
18499 # This must work even if \$libdir does not exist
18500 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18501
18502 # If ld is used when linking, flag to hardcode \$libdir into a binary
18503 # during linking.  This must work even if \$libdir does not exist.
18504 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18505
18506 # Whether we need a single "-rpath" flag with a separated argument.
18507 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18508
18509 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18510 # DIR into the resulting binary.
18511 hardcode_direct=$hardcode_direct
18512
18513 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18514 # DIR into the resulting binary and the resulting library dependency is
18515 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18516 # library is relocated.
18517 hardcode_direct_absolute=$hardcode_direct_absolute
18518
18519 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18520 # into the resulting binary.
18521 hardcode_minus_L=$hardcode_minus_L
18522
18523 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18524 # into the resulting binary.
18525 hardcode_shlibpath_var=$hardcode_shlibpath_var
18526
18527 # Set to "yes" if building a shared library automatically hardcodes DIR
18528 # into the library and all subsequent libraries and executables linked
18529 # against it.
18530 hardcode_automatic=$hardcode_automatic
18531
18532 # Set to yes if linker adds runtime paths of dependent libraries
18533 # to runtime path list.
18534 inherit_rpath=$inherit_rpath
18535
18536 # Whether libtool must link a program against all its dependency libraries.
18537 link_all_deplibs=$link_all_deplibs
18538
18539 # Fix the shell variable \$srcfile for the compiler.
18540 fix_srcfile_path=$lt_fix_srcfile_path
18541
18542 # Set to "yes" if exported symbols are required.
18543 always_export_symbols=$always_export_symbols
18544
18545 # The commands to list exported symbols.
18546 export_symbols_cmds=$lt_export_symbols_cmds
18547
18548 # Symbols that should not be listed in the preloaded symbols.
18549 exclude_expsyms=$lt_exclude_expsyms
18550
18551 # Symbols that must always be exported.
18552 include_expsyms=$lt_include_expsyms
18553
18554 # Commands necessary for linking programs (against libraries) with templates.
18555 prelink_cmds=$lt_prelink_cmds
18556
18557 # Specify filename containing input files.
18558 file_list_spec=$lt_file_list_spec
18559
18560 # How to hardcode a shared library path into an executable.
18561 hardcode_action=$hardcode_action
18562
18563 # The directories searched by this compiler when creating a shared library.
18564 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18565
18566 # Dependencies to place before and after the objects being linked to
18567 # create a shared library.
18568 predep_objects=$lt_predep_objects
18569 postdep_objects=$lt_postdep_objects
18570 predeps=$lt_predeps
18571 postdeps=$lt_postdeps
18572
18573 # The library search path used internally by the compiler when linking
18574 # a shared library.
18575 compiler_lib_search_path=$lt_compiler_lib_search_path
18576
18577 # ### END LIBTOOL CONFIG
18578
18579 _LT_EOF
18580
18581   case $host_os in
18582   aix3*)
18583     cat <<\_LT_EOF >> "$cfgfile"
18584 # AIX sometimes has problems with the GCC collect2 program.  For some
18585 # reason, if we set the COLLECT_NAMES environment variable, the problems
18586 # vanish in a puff of smoke.
18587 if test "X${COLLECT_NAMES+set}" != Xset; then
18588   COLLECT_NAMES=
18589   export COLLECT_NAMES
18590 fi
18591 _LT_EOF
18592     ;;
18593   esac
18594
18595
18596 ltmain="$ac_aux_dir/ltmain.sh"
18597
18598
18599   # We use sed instead of cat because bash on DJGPP gets confused if
18600   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18601   # text mode, it properly converts lines to CR/LF.  This bash problem
18602   # is reportedly fixed, but why not run on old versions too?
18603   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18604     || (rm -f "$cfgfile"; exit 1)
18605
18606   case $xsi_shell in
18607   yes)
18608     cat << \_LT_EOF >> "$cfgfile"
18609
18610 # func_dirname file append nondir_replacement
18611 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18612 # otherwise set result to NONDIR_REPLACEMENT.
18613 func_dirname ()
18614 {
18615   case ${1} in
18616     */*) func_dirname_result="${1%/*}${2}" ;;
18617     *  ) func_dirname_result="${3}" ;;
18618   esac
18619 }
18620
18621 # func_basename file
18622 func_basename ()
18623 {
18624   func_basename_result="${1##*/}"
18625 }
18626
18627 # func_dirname_and_basename file append nondir_replacement
18628 # perform func_basename and func_dirname in a single function
18629 # call:
18630 #   dirname:  Compute the dirname of FILE.  If nonempty,
18631 #             add APPEND to the result, otherwise set result
18632 #             to NONDIR_REPLACEMENT.
18633 #             value returned in "$func_dirname_result"
18634 #   basename: Compute filename of FILE.
18635 #             value retuned in "$func_basename_result"
18636 # Implementation must be kept synchronized with func_dirname
18637 # and func_basename. For efficiency, we do not delegate to
18638 # those functions but instead duplicate the functionality here.
18639 func_dirname_and_basename ()
18640 {
18641   case ${1} in
18642     */*) func_dirname_result="${1%/*}${2}" ;;
18643     *  ) func_dirname_result="${3}" ;;
18644   esac
18645   func_basename_result="${1##*/}"
18646 }
18647
18648 # func_stripname prefix suffix name
18649 # strip PREFIX and SUFFIX off of NAME.
18650 # PREFIX and SUFFIX must not contain globbing or regex special
18651 # characters, hashes, percent signs, but SUFFIX may contain a leading
18652 # dot (in which case that matches only a dot).
18653 func_stripname ()
18654 {
18655   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18656   # positional parameters, so assign one to ordinary parameter first.
18657   func_stripname_result=${3}
18658   func_stripname_result=${func_stripname_result#"${1}"}
18659   func_stripname_result=${func_stripname_result%"${2}"}
18660 }
18661
18662 # func_opt_split
18663 func_opt_split ()
18664 {
18665   func_opt_split_opt=${1%%=*}
18666   func_opt_split_arg=${1#*=}
18667 }
18668
18669 # func_lo2o object
18670 func_lo2o ()
18671 {
18672   case ${1} in
18673     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18674     *)    func_lo2o_result=${1} ;;
18675   esac
18676 }
18677
18678 # func_xform libobj-or-source
18679 func_xform ()
18680 {
18681   func_xform_result=${1%.*}.lo
18682 }
18683
18684 # func_arith arithmetic-term...
18685 func_arith ()
18686 {
18687   func_arith_result=$(( $* ))
18688 }
18689
18690 # func_len string
18691 # STRING may not start with a hyphen.
18692 func_len ()
18693 {
18694   func_len_result=${#1}
18695 }
18696
18697 _LT_EOF
18698     ;;
18699   *) # Bourne compatible functions.
18700     cat << \_LT_EOF >> "$cfgfile"
18701
18702 # func_dirname file append nondir_replacement
18703 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18704 # otherwise set result to NONDIR_REPLACEMENT.
18705 func_dirname ()
18706 {
18707   # Extract subdirectory from the argument.
18708   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18709   if test "X$func_dirname_result" = "X${1}"; then
18710     func_dirname_result="${3}"
18711   else
18712     func_dirname_result="$func_dirname_result${2}"
18713   fi
18714 }
18715
18716 # func_basename file
18717 func_basename ()
18718 {
18719   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18720 }
18721
18722
18723 # func_stripname prefix suffix name
18724 # strip PREFIX and SUFFIX off of NAME.
18725 # PREFIX and SUFFIX must not contain globbing or regex special
18726 # characters, hashes, percent signs, but SUFFIX may contain a leading
18727 # dot (in which case that matches only a dot).
18728 # func_strip_suffix prefix name
18729 func_stripname ()
18730 {
18731   case ${2} in
18732     .*) func_stripname_result=`$ECHO "X${3}" \
18733            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18734     *)  func_stripname_result=`$ECHO "X${3}" \
18735            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18736   esac
18737 }
18738
18739 # sed scripts:
18740 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18741 my_sed_long_arg='1s/^-[^=]*=//'
18742
18743 # func_opt_split
18744 func_opt_split ()
18745 {
18746   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18747   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18748 }
18749
18750 # func_lo2o object
18751 func_lo2o ()
18752 {
18753   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18754 }
18755
18756 # func_xform libobj-or-source
18757 func_xform ()
18758 {
18759   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18760 }
18761
18762 # func_arith arithmetic-term...
18763 func_arith ()
18764 {
18765   func_arith_result=`expr "$@"`
18766 }
18767
18768 # func_len string
18769 # STRING may not start with a hyphen.
18770 func_len ()
18771 {
18772   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18773 }
18774
18775 _LT_EOF
18776 esac
18777
18778 case $lt_shell_append in
18779   yes)
18780     cat << \_LT_EOF >> "$cfgfile"
18781
18782 # func_append var value
18783 # Append VALUE to the end of shell variable VAR.
18784 func_append ()
18785 {
18786   eval "$1+=\$2"
18787 }
18788 _LT_EOF
18789     ;;
18790   *)
18791     cat << \_LT_EOF >> "$cfgfile"
18792
18793 # func_append var value
18794 # Append VALUE to the end of shell variable VAR.
18795 func_append ()
18796 {
18797   eval "$1=\$$1\$2"
18798 }
18799
18800 _LT_EOF
18801     ;;
18802   esac
18803
18804
18805   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18806     || (rm -f "$cfgfile"; exit 1)
18807
18808   mv -f "$cfgfile" "$ofile" ||
18809     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18810   chmod +x "$ofile"
18811
18812
18813     cat <<_LT_EOF >> "$ofile"
18814
18815 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18816
18817 # The linker used to build libraries.
18818 LD=$lt_LD_CXX
18819
18820 # Commands used to build an old-style archive.
18821 old_archive_cmds=$lt_old_archive_cmds_CXX
18822
18823 # A language specific compiler.
18824 CC=$lt_compiler_CXX
18825
18826 # Is the compiler the GNU compiler?
18827 with_gcc=$GCC_CXX
18828
18829 # Compiler flag to turn off builtin functions.
18830 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18831
18832 # How to pass a linker flag through the compiler.
18833 wl=$lt_lt_prog_compiler_wl_CXX
18834
18835 # Additional compiler flags for building library objects.
18836 pic_flag=$lt_lt_prog_compiler_pic_CXX
18837
18838 # Compiler flag to prevent dynamic linking.
18839 link_static_flag=$lt_lt_prog_compiler_static_CXX
18840
18841 # Does compiler simultaneously support -c and -o options?
18842 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18843
18844 # Whether or not to add -lc for building shared libraries.
18845 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18846
18847 # Whether or not to disallow shared libs when runtime libs are static.
18848 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18849
18850 # Compiler flag to allow reflexive dlopens.
18851 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18852
18853 # Compiler flag to generate shared objects directly from archives.
18854 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18855
18856 # Whether the compiler copes with passing no objects directly.
18857 compiler_needs_object=$lt_compiler_needs_object_CXX
18858
18859 # Create an old-style archive from a shared archive.
18860 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18861
18862 # Create a temporary old-style archive to link instead of a shared archive.
18863 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18864
18865 # Commands used to build a shared archive.
18866 archive_cmds=$lt_archive_cmds_CXX
18867 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18868
18869 # Commands used to build a loadable module if different from building
18870 # a shared archive.
18871 module_cmds=$lt_module_cmds_CXX
18872 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18873
18874 # Whether we are building with GNU ld or not.
18875 with_gnu_ld=$lt_with_gnu_ld_CXX
18876
18877 # Flag that allows shared libraries with undefined symbols to be built.
18878 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18879
18880 # Flag that enforces no undefined symbols.
18881 no_undefined_flag=$lt_no_undefined_flag_CXX
18882
18883 # Flag to hardcode \$libdir into a binary during linking.
18884 # This must work even if \$libdir does not exist
18885 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18886
18887 # If ld is used when linking, flag to hardcode \$libdir into a binary
18888 # during linking.  This must work even if \$libdir does not exist.
18889 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18890
18891 # Whether we need a single "-rpath" flag with a separated argument.
18892 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18893
18894 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18895 # DIR into the resulting binary.
18896 hardcode_direct=$hardcode_direct_CXX
18897
18898 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18899 # DIR into the resulting binary and the resulting library dependency is
18900 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18901 # library is relocated.
18902 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18903
18904 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18905 # into the resulting binary.
18906 hardcode_minus_L=$hardcode_minus_L_CXX
18907
18908 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18909 # into the resulting binary.
18910 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18911
18912 # Set to "yes" if building a shared library automatically hardcodes DIR
18913 # into the library and all subsequent libraries and executables linked
18914 # against it.
18915 hardcode_automatic=$hardcode_automatic_CXX
18916
18917 # Set to yes if linker adds runtime paths of dependent libraries
18918 # to runtime path list.
18919 inherit_rpath=$inherit_rpath_CXX
18920
18921 # Whether libtool must link a program against all its dependency libraries.
18922 link_all_deplibs=$link_all_deplibs_CXX
18923
18924 # Fix the shell variable \$srcfile for the compiler.
18925 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18926
18927 # Set to "yes" if exported symbols are required.
18928 always_export_symbols=$always_export_symbols_CXX
18929
18930 # The commands to list exported symbols.
18931 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18932
18933 # Symbols that should not be listed in the preloaded symbols.
18934 exclude_expsyms=$lt_exclude_expsyms_CXX
18935
18936 # Symbols that must always be exported.
18937 include_expsyms=$lt_include_expsyms_CXX
18938
18939 # Commands necessary for linking programs (against libraries) with templates.
18940 prelink_cmds=$lt_prelink_cmds_CXX
18941
18942 # Specify filename containing input files.
18943 file_list_spec=$lt_file_list_spec_CXX
18944
18945 # How to hardcode a shared library path into an executable.
18946 hardcode_action=$hardcode_action_CXX
18947
18948 # The directories searched by this compiler when creating a shared library.
18949 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18950
18951 # Dependencies to place before and after the objects being linked to
18952 # create a shared library.
18953 predep_objects=$lt_predep_objects_CXX
18954 postdep_objects=$lt_postdep_objects_CXX
18955 predeps=$lt_predeps_CXX
18956 postdeps=$lt_postdeps_CXX
18957
18958 # The library search path used internally by the compiler when linking
18959 # a shared library.
18960 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18961
18962 # ### END LIBTOOL TAG CONFIG: CXX
18963 _LT_EOF
18964
18965  ;;
18966
18967   esac
18968 done # for ac_tag
18969
18970
18971 as_fn_exit 0
18972 _ACEOF
18973 ac_clean_files=$ac_clean_files_save
18974
18975 test $ac_write_fail = 0 ||
18976   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18977
18978
18979 # configure is writing to config.log, and then calls config.status.
18980 # config.status does its own redirection, appending to config.log.
18981 # Unfortunately, on DOS this fails, as config.log is still kept open
18982 # by configure, so config.status won't be able to write to it; its
18983 # output is simply discarded.  So we exec the FD to /dev/null,
18984 # effectively closing config.log, so it can be properly (re)opened and
18985 # appended to by config.status.  When coming back to configure, we
18986 # need to make the FD available again.
18987 if test "$no_create" != yes; then
18988   ac_cs_success=:
18989   ac_config_status_args=
18990   test "$silent" = yes &&
18991     ac_config_status_args="$ac_config_status_args --quiet"
18992   exec 5>/dev/null
18993   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18994   exec 5>>config.log
18995   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18996   # would make configure fail if this is the last instruction.
18997   $ac_cs_success || as_fn_exit $?
18998 fi
18999 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19000   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19001 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19002 fi
19003