source: trunk/configure @ 209

Last change on this file since 209 was 209, checked in by kulshres, 9 years ago

regenerete autotools stuff

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

File size: 575.3 KB
Line 
1#! /bin/sh
2# From configure.ac Revision.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.68 for adolc 2.1.12-trunk.
5#
6# Report bugs to <adol-c@list.coin-or.org>.
7#
8#
9# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11# Foundation, Inc.
12#
13#
14# This configure script is free software; the Free Software Foundation
15# gives unlimited permission to copy, distribute and modify it.
16## -------------------- ##
17## M4sh Initialization. ##
18## -------------------- ##
19
20# Be more Bourne compatible
21DUALCASE=1; export DUALCASE # for MKS sh
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39as_nl='
40'
41export as_nl
42# Printing a long string crashes Solaris 7 /usr/bin/printf.
43as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46# Prefer a ksh shell builtin over an external printf program on Solaris,
47# but without wasting forks for bash or zsh.
48if test -z "$BASH_VERSION$ZSH_VERSION" \
49    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='print -r --'
51  as_echo_n='print -rn --'
52elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53  as_echo='printf %s\n'
54  as_echo_n='printf %s'
55else
56  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58    as_echo_n='/usr/ucb/echo -n'
59  else
60    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61    as_echo_n_body='eval
62      arg=$1;
63      case $arg in #(
64      *"$as_nl"*)
65        expr "X$arg" : "X\\(.*\\)$as_nl";
66        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67      esac;
68      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69    '
70    export as_echo_n_body
71    as_echo_n='sh -c $as_echo_n_body as_echo'
72  fi
73  export as_echo_body
74  as_echo='sh -c $as_echo_body as_echo'
75fi
76
77# The user is always right.
78if test "${PATH_SEPARATOR+set}" != set; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# IFS
88# We need space, tab and new line, in precisely that order.  Quoting is
89# there to prevent editors from complaining about space-tab.
90# (If _AS_PATH_WALK were called with IFS unset, it would disable word
91# splitting by setting IFS to empty value.)
92IFS=" ""        $as_nl"
93
94# Find who we are.  Look in the path if we contain no directory separator.
95as_myself=
96case $0 in #((
97  *[\\/]* ) as_myself=$0 ;;
98  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99for as_dir in $PATH
100do
101  IFS=$as_save_IFS
102  test -z "$as_dir" && as_dir=.
103    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104  done
105IFS=$as_save_IFS
106
107     ;;
108esac
109# We did not find ourselves, most probably we were run as `sh COMMAND'
110# in which case we are not to be found in the path.
111if test "x$as_myself" = x; then
112  as_myself=$0
113fi
114if test ! -f "$as_myself"; then
115  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116  exit 1
117fi
118
119# Unset variables that we do not need and which cause bugs (e.g. in
120# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
121# suppresses any "Segmentation fault" message there.  '((' could
122# trigger a bug in pdksh 5.2.14.
123for as_var in BASH_ENV ENV MAIL MAILPATH
124do eval test x\${$as_var+set} = xset \
125  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126done
127PS1='$ '
128PS2='> '
129PS4='+ '
130
131# NLS nuisances.
132LC_ALL=C
133export LC_ALL
134LANGUAGE=C
135export LANGUAGE
136
137# CDPATH.
138(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140if test "x$CONFIG_SHELL" = x; then
141  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142  emulate sh
143  NULLCMD=:
144  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145  # is contrary to our usage.  Disable this feature.
146  alias -g '\${1+\"\$@\"}'='\"\$@\"'
147  setopt NO_GLOB_SUBST
148else
149  case \`(set -o) 2>/dev/null\` in #(
150  *posix*) :
151    set -o posix ;; #(
152  *) :
153     ;;
154esac
155fi
156"
157  as_required="as_fn_return () { (exit \$1); }
158as_fn_success () { as_fn_return 0; }
159as_fn_failure () { as_fn_return 1; }
160as_fn_ret_success () { return 0; }
161as_fn_ret_failure () { return 1; }
162
163exitcode=0
164as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170else
171  exitcode=1; echo positional parameters were not saved.
172fi
173test x\$exitcode = x0 || exit 1"
174  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178test \$(( 1 + 1 )) = 2 || exit 1"
179  if (eval "$as_required") 2>/dev/null; then :
180  as_have_required=yes
181else
182  as_have_required=no
183fi
184  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
186else
187  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188as_found=false
189for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190do
191  IFS=$as_save_IFS
192  test -z "$as_dir" && as_dir=.
193  as_found=:
194  case $as_dir in #(
195         /*)
196           for as_base in sh bash ksh sh5; do
197             # Try only shells that exist, to save several forks.
198             as_shell=$as_dir/$as_base
199             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  CONFIG_SHELL=$as_shell as_have_required=yes
202                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
203  break 2
204fi
205fi
206           done;;
207       esac
208  as_found=false
209done
210$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212  CONFIG_SHELL=$SHELL as_have_required=yes
213fi; }
214IFS=$as_save_IFS
215
216
217      if test "x$CONFIG_SHELL" != x; then :
218  # We cannot yet assume a decent shell, so we have to provide a
219        # neutralization value for shells without unset; and this also
220        # works around shells that cannot unset nonexistent variables.
221        # Preserve -v and -x to the replacement shell.
222        BASH_ENV=/dev/null
223        ENV=/dev/null
224        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
225        export CONFIG_SHELL
226        case $- in # ((((
227          *v*x* | *x*v* ) as_opts=-vx ;;
228          *v* ) as_opts=-v ;;
229          *x* ) as_opts=-x ;;
230          * ) as_opts= ;;
231        esac
232        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
233fi
234
235    if test x$as_have_required = xno; then :
236  $as_echo "$0: This script requires a shell more modern than all"
237  $as_echo "$0: the shells that I found on your system."
238  if test x${ZSH_VERSION+set} = xset ; then
239    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241  else
242    $as_echo "$0: Please tell bug-autoconf@gnu.org and
243$0: adol-c@list.coin-or.org about your system, including
244$0: any error possibly output before this message. Then
245$0: install a modern shell, or manually run the script
246$0: under such a shell if you do have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307         X"$as_dir" : 'X\(//\)[^/]' \| \
308         X"$as_dir" : 'X\(//\)$' \| \
309         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312            s//\1/
313            q
314          }
315          /^X\(\/\/\)[^/].*/{
316            s//\1/
317            q
318          }
319          /^X\(\/\/\)$/{
320            s//\1/
321            q
322          }
323          /^X\(\/\).*/{
324            s//\1/
325            q
326          }
327          s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408         X"$0" : 'X\(//\)$' \| \
409         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412            s//\1/
413            q
414          }
415          /^X\/\(\/\/\)$/{
416            s//\1/
417            q
418          }
419          /^X\/\(\/\).*/{
420            s//\1/
421            q
422          }
423          s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T=' ';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522        test -d "$1/.";
523      else
524        case $1 in #(
525        -*)set "./$1";;
526        esac;
527        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528        ???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$lt_ECHO in
546X*--fallback-echo)
547  # Remove one level of quotation (which was required for Make).
548  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
549  ;;
550esac
551
552ECHO=${lt_ECHO-echo}
553if test "X$1" = X--no-reexec; then
554  # Discard the --no-reexec flag, and continue.
555  shift
556elif test "X$1" = X--fallback-echo; then
557  # Avoid inline document here, it may be left over
558  :
559elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
560  # Yippee, $ECHO works!
561  :
562else
563  # Restart under the correct shell.
564  exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568  # used as fallback echo
569  shift
570  cat <<_LT_EOF
571$*
572_LT_EOF
573  exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580if test -z "$lt_ECHO"; then
581  if test "X${echo_test_string+set}" != Xset; then
582    # find a string as large as possible, as long as the shell can cope with it
583    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
586         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
587      then
588        break
589      fi
590    done
591  fi
592
593  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
594     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
595     test "X$echo_testing_string" = "X$echo_test_string"; then
596    :
597  else
598    # The Solaris, AIX, and Digital Unix default echo programs unquote
599    # backslashes.  This makes it impossible to quote backslashes using
600    #   echo "$something" | sed 's/\\/\\\\/g'
601    #
602    # So, first we look for a working echo in the user's PATH.
603
604    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
605    for dir in $PATH /usr/ucb; do
606      IFS="$lt_save_ifs"
607      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
608         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
609         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
610         test "X$echo_testing_string" = "X$echo_test_string"; then
611        ECHO="$dir/echo"
612        break
613      fi
614    done
615    IFS="$lt_save_ifs"
616
617    if test "X$ECHO" = Xecho; then
618      # We didn't find a better echo, so look for alternatives.
619      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
620         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
621         test "X$echo_testing_string" = "X$echo_test_string"; then
622        # This shell has a builtin print -r that does the trick.
623        ECHO='print -r'
624      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
625           test "X$CONFIG_SHELL" != X/bin/ksh; then
626        # If we have ksh, try running configure again with it.
627        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
628        export ORIGINAL_CONFIG_SHELL
629        CONFIG_SHELL=/bin/ksh
630        export CONFIG_SHELL
631        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
632      else
633        # Try using printf.
634        ECHO='printf %s\n'
635        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
636           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
637           test "X$echo_testing_string" = "X$echo_test_string"; then
638          # Cool, printf works
639          :
640        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641             test "X$echo_testing_string" = 'X\t' &&
642             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643             test "X$echo_testing_string" = "X$echo_test_string"; then
644          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
645          export CONFIG_SHELL
646          SHELL="$CONFIG_SHELL"
647          export SHELL
648          ECHO="$CONFIG_SHELL $0 --fallback-echo"
649        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
650             test "X$echo_testing_string" = 'X\t' &&
651             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
652             test "X$echo_testing_string" = "X$echo_test_string"; then
653          ECHO="$CONFIG_SHELL $0 --fallback-echo"
654        else
655          # maybe with a smaller string...
656          prev=:
657
658          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
659            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
660            then
661              break
662            fi
663            prev="$cmd"
664          done
665
666          if test "$prev" != 'sed 50q "$0"'; then
667            echo_test_string=`eval $prev`
668            export echo_test_string
669            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
670          else
671            # Oops.  We lost completely, so just stick with echo.
672            ECHO=echo
673          fi
674        fi
675      fi
676    fi
677  fi
678fi
679
680# Copy echo and quote the copy suitably for passing to libtool from
681# the Makefile, instead of quoting the original, which is used later.
682lt_ECHO=$ECHO
683if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
684   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
685fi
686
687
688
689
690test -n "$DJDIR" || exec 7<&0 </dev/null
691exec 6>&1
692
693# Name of the host.
694# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
695# so uname gets run too.
696ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
697
698#
699# Initializations.
700#
701ac_default_prefix=/usr/local
702ac_clean_files=
703ac_config_libobj_dir=.
704LIBOBJS=
705cross_compiling=no
706subdirs=
707MFLAGS=
708MAKEFLAGS=
709
710# Identity of this package.
711PACKAGE_NAME='adolc'
712PACKAGE_TARNAME='adolc'
713PACKAGE_VERSION='2.1.12-trunk'
714PACKAGE_STRING='adolc 2.1.12-trunk'
715PACKAGE_BUGREPORT='adol-c@list.coin-or.org'
716PACKAGE_URL=''
717
718ac_unique_file="ADOL-C/src/adolc.h"
719ac_default_prefix=${HOME}/adolc_base
720# Factoring default headers for most tests.
721ac_includes_default="\
722#include <stdio.h>
723#ifdef HAVE_SYS_TYPES_H
724# include <sys/types.h>
725#endif
726#ifdef HAVE_SYS_STAT_H
727# include <sys/stat.h>
728#endif
729#ifdef STDC_HEADERS
730# include <stdlib.h>
731# include <stddef.h>
732#else
733# ifdef HAVE_STDLIB_H
734#  include <stdlib.h>
735# endif
736#endif
737#ifdef HAVE_STRING_H
738# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
739#  include <memory.h>
740# endif
741# include <string.h>
742#endif
743#ifdef HAVE_STRINGS_H
744# include <strings.h>
745#endif
746#ifdef HAVE_INTTYPES_H
747# include <inttypes.h>
748#endif
749#ifdef HAVE_STDINT_H
750# include <stdint.h>
751#endif
752#ifdef HAVE_UNISTD_H
753# include <unistd.h>
754#endif"
755
756ac_subst_vars='am__EXEEXT_FALSE
757am__EXEEXT_TRUE
758LTLIBOBJS
759Q
760V
761MCS
762OBJC
763F77
764FC
765AM_MAKEFLAGS
766MAKEFLAGS
767shavedir
768ac_adolc_cxxflags
769ac_adolc_cflags
770PAREXA_FALSE
771PAREXA_TRUE
772ADDEXA_FALSE
773ADDEXA_TRUE
774DOCEXA_FALSE
775DOCEXA_TRUE
776COLPACK_LIBS
777COLPACK_CFLAGS
778SPARSE_FALSE
779SPARSE_TRUE
780HAVE_LIBCOLPACK_FALSE
781HAVE_LIBCOLPACK_TRUE
782ADOLC_PATCHLEVEL
783ADOLC_SUBVERSION
784ADOLC_VERSION
785ac_aux_dir
786LIBOBJS
787_lib
788LTCXXCOMPILE
789LTCOMPILE
790DOLT_BASH
791CXXCPP
792OTOOL64
793OTOOL
794LIPO
795NMEDIT
796DSYMUTIL
797lt_ECHO
798RANLIB
799AR
800NM
801ac_ct_DUMPBIN
802DUMPBIN
803LD
804FGREP
805EGREP
806GREP
807SED
808LIBTOOL
809OBJDUMP
810DLLTOOL
811AS
812host_os
813host_vendor
814host_cpu
815host
816build_os
817build_vendor
818build_cpu
819build
820LN_S
821CPP
822am__fastdepCC_FALSE
823am__fastdepCC_TRUE
824CCDEPMODE
825ac_ct_CC
826CFLAGS
827CC
828am__fastdepCXX_FALSE
829am__fastdepCXX_TRUE
830CXXDEPMODE
831AMDEPBACKSLASH
832AMDEP_FALSE
833AMDEP_TRUE
834am__quote
835am__include
836DEPDIR
837OBJEXT
838EXEEXT
839ac_ct_CXX
840CPPFLAGS
841LDFLAGS
842CXXFLAGS
843CXX
844am__untar
845am__tar
846AMTAR
847am__leading_dot
848SET_MAKE
849AWK
850mkdir_p
851MKDIR_P
852INSTALL_STRIP_PROGRAM
853STRIP
854install_sh
855MAKEINFO
856AUTOHEADER
857AUTOMAKE
858AUTOCONF
859ACLOCAL
860VERSION
861PACKAGE
862CYGPATH_W
863am__isrc
864INSTALL_DATA
865INSTALL_SCRIPT
866INSTALL_PROGRAM
867target_alias
868host_alias
869build_alias
870LIBS
871ECHO_T
872ECHO_N
873ECHO_C
874DEFS
875mandir
876localedir
877libdir
878psdir
879pdfdir
880dvidir
881htmldir
882infodir
883docdir
884oldincludedir
885includedir
886localstatedir
887sharedstatedir
888sysconfdir
889datadir
890datarootdir
891libexecdir
892sbindir
893bindir
894program_transform_name
895prefix
896exec_prefix
897PACKAGE_URL
898PACKAGE_BUGREPORT
899PACKAGE_STRING
900PACKAGE_VERSION
901PACKAGE_TARNAME
902PACKAGE_NAME
903PATH_SEPARATOR
904SHELL'
905ac_subst_files=''
906ac_user_opts='
907enable_option_checking
908enable_dependency_tracking
909enable_shared
910enable_static
911with_pic
912enable_fast_install
913with_gnu_ld
914enable_libtool_lock
915enable_debug
916enable_harddebug
917enable_stdczero
918enable_tserrno
919enable_safe_extern
920enable_sparse
921with_colpack
922enable_docexa
923enable_addexa
924enable_parexa
925with_openmp_flag
926with_cflags
927with_cxxflags
928enable_shave
929'
930      ac_precious_vars='build_alias
931host_alias
932target_alias
933CXX
934CXXFLAGS
935LDFLAGS
936LIBS
937CPPFLAGS
938CCC
939CC
940CFLAGS
941CPP
942CXXCPP'
943
944
945# Initialize some variables set by options.
946ac_init_help=
947ac_init_version=false
948ac_unrecognized_opts=
949ac_unrecognized_sep=
950# The variables have the same names as the options, with
951# dashes changed to underlines.
952cache_file=/dev/null
953exec_prefix=NONE
954no_create=
955no_recursion=
956prefix=NONE
957program_prefix=NONE
958program_suffix=NONE
959program_transform_name=s,x,x,
960silent=
961site=
962srcdir=
963verbose=
964x_includes=NONE
965x_libraries=NONE
966
967# Installation directory options.
968# These are left unexpanded so users can "make install exec_prefix=/foo"
969# and all the variables that are supposed to be based on exec_prefix
970# by default will actually change.
971# Use braces instead of parens because sh, perl, etc. also accept them.
972# (The list follows the same order as the GNU Coding Standards.)
973bindir='${exec_prefix}/bin'
974sbindir='${exec_prefix}/sbin'
975libexecdir='${exec_prefix}/libexec'
976datarootdir='${prefix}/share'
977datadir='${datarootdir}'
978sysconfdir='${prefix}/etc'
979sharedstatedir='${prefix}/com'
980localstatedir='${prefix}/var'
981includedir='${prefix}/include'
982oldincludedir='/usr/include'
983docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
984infodir='${datarootdir}/info'
985htmldir='${docdir}'
986dvidir='${docdir}'
987pdfdir='${docdir}'
988psdir='${docdir}'
989libdir='${exec_prefix}/lib'
990localedir='${datarootdir}/locale'
991mandir='${datarootdir}/man'
992
993ac_prev=
994ac_dashdash=
995for ac_option
996do
997  # If the previous option needs an argument, assign it.
998  if test -n "$ac_prev"; then
999    eval $ac_prev=\$ac_option
1000    ac_prev=
1001    continue
1002  fi
1003
1004  case $ac_option in
1005  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006  *=)   ac_optarg= ;;
1007  *)    ac_optarg=yes ;;
1008  esac
1009
1010  # Accept the important Cygnus configure options, so we can diagnose typos.
1011
1012  case $ac_dashdash$ac_option in
1013  --)
1014    ac_dashdash=yes ;;
1015
1016  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017    ac_prev=bindir ;;
1018  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019    bindir=$ac_optarg ;;
1020
1021  -build | --build | --buil | --bui | --bu)
1022    ac_prev=build_alias ;;
1023  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024    build_alias=$ac_optarg ;;
1025
1026  -cache-file | --cache-file | --cache-fil | --cache-fi \
1027  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028    ac_prev=cache_file ;;
1029  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031    cache_file=$ac_optarg ;;
1032
1033  --config-cache | -C)
1034    cache_file=config.cache ;;
1035
1036  -datadir | --datadir | --datadi | --datad)
1037    ac_prev=datadir ;;
1038  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039    datadir=$ac_optarg ;;
1040
1041  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042  | --dataroo | --dataro | --datar)
1043    ac_prev=datarootdir ;;
1044  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046    datarootdir=$ac_optarg ;;
1047
1048  -disable-* | --disable-*)
1049    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050    # Reject names that are not valid shell variable names.
1051    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052      as_fn_error $? "invalid feature name: $ac_useropt"
1053    ac_useropt_orig=$ac_useropt
1054    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055    case $ac_user_opts in
1056      *"
1057"enable_$ac_useropt"
1058"*) ;;
1059      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060         ac_unrecognized_sep=', ';;
1061    esac
1062    eval enable_$ac_useropt=no ;;
1063
1064  -docdir | --docdir | --docdi | --doc | --do)
1065    ac_prev=docdir ;;
1066  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067    docdir=$ac_optarg ;;
1068
1069  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070    ac_prev=dvidir ;;
1071  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072    dvidir=$ac_optarg ;;
1073
1074  -enable-* | --enable-*)
1075    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076    # Reject names that are not valid shell variable names.
1077    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078      as_fn_error $? "invalid feature name: $ac_useropt"
1079    ac_useropt_orig=$ac_useropt
1080    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081    case $ac_user_opts in
1082      *"
1083"enable_$ac_useropt"
1084"*) ;;
1085      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1086         ac_unrecognized_sep=', ';;
1087    esac
1088    eval enable_$ac_useropt=\$ac_optarg ;;
1089
1090  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092  | --exec | --exe | --ex)
1093    ac_prev=exec_prefix ;;
1094  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096  | --exec=* | --exe=* | --ex=*)
1097    exec_prefix=$ac_optarg ;;
1098
1099  -gas | --gas | --ga | --g)
1100    # Obsolete; use --with-gas.
1101    with_gas=yes ;;
1102
1103  -help | --help | --hel | --he | -h)
1104    ac_init_help=long ;;
1105  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106    ac_init_help=recursive ;;
1107  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108    ac_init_help=short ;;
1109
1110  -host | --host | --hos | --ho)
1111    ac_prev=host_alias ;;
1112  -host=* | --host=* | --hos=* | --ho=*)
1113    host_alias=$ac_optarg ;;
1114
1115  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116    ac_prev=htmldir ;;
1117  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118  | --ht=*)
1119    htmldir=$ac_optarg ;;
1120
1121  -includedir | --includedir | --includedi | --included | --include \
1122  | --includ | --inclu | --incl | --inc)
1123    ac_prev=includedir ;;
1124  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125  | --includ=* | --inclu=* | --incl=* | --inc=*)
1126    includedir=$ac_optarg ;;
1127
1128  -infodir | --infodir | --infodi | --infod | --info | --inf)
1129    ac_prev=infodir ;;
1130  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131    infodir=$ac_optarg ;;
1132
1133  -libdir | --libdir | --libdi | --libd)
1134    ac_prev=libdir ;;
1135  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136    libdir=$ac_optarg ;;
1137
1138  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139  | --libexe | --libex | --libe)
1140    ac_prev=libexecdir ;;
1141  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142  | --libexe=* | --libex=* | --libe=*)
1143    libexecdir=$ac_optarg ;;
1144
1145  -localedir | --localedir | --localedi | --localed | --locale)
1146    ac_prev=localedir ;;
1147  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148    localedir=$ac_optarg ;;
1149
1150  -localstatedir | --localstatedir | --localstatedi | --localstated \
1151  | --localstate | --localstat | --localsta | --localst | --locals)
1152    ac_prev=localstatedir ;;
1153  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155    localstatedir=$ac_optarg ;;
1156
1157  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158    ac_prev=mandir ;;
1159  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160    mandir=$ac_optarg ;;
1161
1162  -nfp | --nfp | --nf)
1163    # Obsolete; use --without-fp.
1164    with_fp=no ;;
1165
1166  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167  | --no-cr | --no-c | -n)
1168    no_create=yes ;;
1169
1170  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172    no_recursion=yes ;;
1173
1174  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176  | --oldin | --oldi | --old | --ol | --o)
1177    ac_prev=oldincludedir ;;
1178  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181    oldincludedir=$ac_optarg ;;
1182
1183  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184    ac_prev=prefix ;;
1185  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186    prefix=$ac_optarg ;;
1187
1188  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189  | --program-pre | --program-pr | --program-p)
1190    ac_prev=program_prefix ;;
1191  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193    program_prefix=$ac_optarg ;;
1194
1195  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196  | --program-suf | --program-su | --program-s)
1197    ac_prev=program_suffix ;;
1198  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200    program_suffix=$ac_optarg ;;
1201
1202  -program-transform-name | --program-transform-name \
1203  | --program-transform-nam | --program-transform-na \
1204  | --program-transform-n | --program-transform- \
1205  | --program-transform | --program-transfor \
1206  | --program-transfo | --program-transf \
1207  | --program-trans | --program-tran \
1208  | --progr-tra | --program-tr | --program-t)
1209    ac_prev=program_transform_name ;;
1210  -program-transform-name=* | --program-transform-name=* \
1211  | --program-transform-nam=* | --program-transform-na=* \
1212  | --program-transform-n=* | --program-transform-=* \
1213  | --program-transform=* | --program-transfor=* \
1214  | --program-transfo=* | --program-transf=* \
1215  | --program-trans=* | --program-tran=* \
1216  | --progr-tra=* | --program-tr=* | --program-t=*)
1217    program_transform_name=$ac_optarg ;;
1218
1219  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220    ac_prev=pdfdir ;;
1221  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222    pdfdir=$ac_optarg ;;
1223
1224  -psdir | --psdir | --psdi | --psd | --ps)
1225    ac_prev=psdir ;;
1226  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227    psdir=$ac_optarg ;;
1228
1229  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230  | -silent | --silent | --silen | --sile | --sil)
1231    silent=yes ;;
1232
1233  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234    ac_prev=sbindir ;;
1235  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236  | --sbi=* | --sb=*)
1237    sbindir=$ac_optarg ;;
1238
1239  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241  | --sharedst | --shareds | --shared | --share | --shar \
1242  | --sha | --sh)
1243    ac_prev=sharedstatedir ;;
1244  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247  | --sha=* | --sh=*)
1248    sharedstatedir=$ac_optarg ;;
1249
1250  -site | --site | --sit)
1251    ac_prev=site ;;
1252  -site=* | --site=* | --sit=*)
1253    site=$ac_optarg ;;
1254
1255  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256    ac_prev=srcdir ;;
1257  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258    srcdir=$ac_optarg ;;
1259
1260  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261  | --syscon | --sysco | --sysc | --sys | --sy)
1262    ac_prev=sysconfdir ;;
1263  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265    sysconfdir=$ac_optarg ;;
1266
1267  -target | --target | --targe | --targ | --tar | --ta | --t)
1268    ac_prev=target_alias ;;
1269  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270    target_alias=$ac_optarg ;;
1271
1272  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273    verbose=yes ;;
1274
1275  -version | --version | --versio | --versi | --vers | -V)
1276    ac_init_version=: ;;
1277
1278  -with-* | --with-*)
1279    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280    # Reject names that are not valid shell variable names.
1281    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282      as_fn_error $? "invalid package name: $ac_useropt"
1283    ac_useropt_orig=$ac_useropt
1284    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285    case $ac_user_opts in
1286      *"
1287"with_$ac_useropt"
1288"*) ;;
1289      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1290         ac_unrecognized_sep=', ';;
1291    esac
1292    eval with_$ac_useropt=\$ac_optarg ;;
1293
1294  -without-* | --without-*)
1295    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1296    # Reject names that are not valid shell variable names.
1297    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298      as_fn_error $? "invalid package name: $ac_useropt"
1299    ac_useropt_orig=$ac_useropt
1300    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301    case $ac_user_opts in
1302      *"
1303"with_$ac_useropt"
1304"*) ;;
1305      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306         ac_unrecognized_sep=', ';;
1307    esac
1308    eval with_$ac_useropt=no ;;
1309
1310  --x)
1311    # Obsolete; use --with-x.
1312    with_x=yes ;;
1313
1314  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315  | --x-incl | --x-inc | --x-in | --x-i)
1316    ac_prev=x_includes ;;
1317  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319    x_includes=$ac_optarg ;;
1320
1321  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323    ac_prev=x_libraries ;;
1324  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326    x_libraries=$ac_optarg ;;
1327
1328  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1329Try \`$0 --help' for more information"
1330    ;;
1331
1332  *=*)
1333    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334    # Reject names that are not valid shell variable names.
1335    case $ac_envvar in #(
1336      '' | [0-9]* | *[!_$as_cr_alnum]* )
1337      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1338    esac
1339    eval $ac_envvar=\$ac_optarg
1340    export $ac_envvar ;;
1341
1342  *)
1343    # FIXME: should be removed in autoconf 3.0.
1344    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1348    ;;
1349
1350  esac
1351done
1352
1353if test -n "$ac_prev"; then
1354  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355  as_fn_error $? "missing argument to $ac_option"
1356fi
1357
1358if test -n "$ac_unrecognized_opts"; then
1359  case $enable_option_checking in
1360    no) ;;
1361    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1362    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363  esac
1364fi
1365
1366# Check all directory arguments for consistency.
1367for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368                datadir sysconfdir sharedstatedir localstatedir includedir \
1369                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370                libdir localedir mandir
1371do
1372  eval ac_val=\$$ac_var
1373  # Remove trailing slashes.
1374  case $ac_val in
1375    */ )
1376      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377      eval $ac_var=\$ac_val;;
1378  esac
1379  # Be sure to have absolute directory names.
1380  case $ac_val in
1381    [\\/$]* | ?:[\\/]* )  continue;;
1382    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383  esac
1384  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1385done
1386
1387# There might be people who depend on the old broken behavior: `$host'
1388# used to hold the argument of --host etc.
1389# FIXME: To remove some day.
1390build=$build_alias
1391host=$host_alias
1392target=$target_alias
1393
1394# FIXME: To remove some day.
1395if test "x$host_alias" != x; then
1396  if test "x$build_alias" = x; then
1397    cross_compiling=maybe
1398    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1399    If a cross compiler is detected then cross compile mode will be used" >&2
1400  elif test "x$build_alias" != "x$host_alias"; then
1401    cross_compiling=yes
1402  fi
1403fi
1404
1405ac_tool_prefix=
1406test -n "$host_alias" && ac_tool_prefix=$host_alias-
1407
1408test "$silent" = yes && exec 6>/dev/null
1409
1410
1411ac_pwd=`pwd` && test -n "$ac_pwd" &&
1412ac_ls_di=`ls -di .` &&
1413ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1414  as_fn_error $? "working directory cannot be determined"
1415test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416  as_fn_error $? "pwd does not report name of working directory"
1417
1418
1419# Find the source files, if location was not specified.
1420if test -z "$srcdir"; then
1421  ac_srcdir_defaulted=yes
1422  # Try the directory containing this script, then the parent directory.
1423  ac_confdir=`$as_dirname -- "$as_myself" ||
1424$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425         X"$as_myself" : 'X\(//\)[^/]' \| \
1426         X"$as_myself" : 'X\(//\)$' \| \
1427         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428$as_echo X"$as_myself" |
1429    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430            s//\1/
1431            q
1432          }
1433          /^X\(\/\/\)[^/].*/{
1434            s//\1/
1435            q
1436          }
1437          /^X\(\/\/\)$/{
1438            s//\1/
1439            q
1440          }
1441          /^X\(\/\).*/{
1442            s//\1/
1443            q
1444          }
1445          s/.*/./; q'`
1446  srcdir=$ac_confdir
1447  if test ! -r "$srcdir/$ac_unique_file"; then
1448    srcdir=..
1449  fi
1450else
1451  ac_srcdir_defaulted=no
1452fi
1453if test ! -r "$srcdir/$ac_unique_file"; then
1454  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1456fi
1457ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458ac_abs_confdir=`(
1459        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1460        pwd)`
1461# When building in place, set srcdir=.
1462if test "$ac_abs_confdir" = "$ac_pwd"; then
1463  srcdir=.
1464fi
1465# Remove unnecessary trailing slashes from srcdir.
1466# Double slashes in file names in object file debugging info
1467# mess up M-x gdb in Emacs.
1468case $srcdir in
1469*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470esac
1471for ac_var in $ac_precious_vars; do
1472  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473  eval ac_env_${ac_var}_value=\$${ac_var}
1474  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476done
1477
1478#
1479# Report the --help message.
1480#
1481if test "$ac_init_help" = "long"; then
1482  # Omit some internal or obsolete options to make the list less imposing.
1483  # This message is too long to be a string in the A/UX 3.1 sh.
1484  cat <<_ACEOF
1485\`configure' configures adolc 2.1.12-trunk to adapt to many kinds of systems.
1486
1487Usage: $0 [OPTION]... [VAR=VALUE]...
1488
1489To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490VAR=VALUE.  See below for descriptions of some of the useful variables.
1491
1492Defaults for the options are specified in brackets.
1493
1494Configuration:
1495  -h, --help              display this help and exit
1496      --help=short        display options specific to this package
1497      --help=recursive    display the short help of all the included packages
1498  -V, --version           display version information and exit
1499  -q, --quiet, --silent   do not print \`checking ...' messages
1500      --cache-file=FILE   cache test results in FILE [disabled]
1501  -C, --config-cache      alias for \`--cache-file=config.cache'
1502  -n, --no-create         do not create output files
1503      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1504
1505Installation directories:
1506  --prefix=PREFIX         install architecture-independent files in PREFIX
1507                          [$ac_default_prefix]
1508  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1509                          [PREFIX]
1510
1511By default, \`make install' will install all the files in
1512\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1513an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514for instance \`--prefix=\$HOME'.
1515
1516For better control, use the options below.
1517
1518Fine tuning of the installation directories:
1519  --bindir=DIR            user executables [EPREFIX/bin]
1520  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1521  --libexecdir=DIR        program executables [EPREFIX/libexec]
1522  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1523  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1524  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1525  --libdir=DIR            object code libraries [EPREFIX/lib]
1526  --includedir=DIR        C header files [PREFIX/include]
1527  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1528  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1529  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1530  --infodir=DIR           info documentation [DATAROOTDIR/info]
1531  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1532  --mandir=DIR            man documentation [DATAROOTDIR/man]
1533  --docdir=DIR            documentation root [DATAROOTDIR/doc/adolc]
1534  --htmldir=DIR           html documentation [DOCDIR]
1535  --dvidir=DIR            dvi documentation [DOCDIR]
1536  --pdfdir=DIR            pdf documentation [DOCDIR]
1537  --psdir=DIR             ps documentation [DOCDIR]
1538_ACEOF
1539
1540  cat <<\_ACEOF
1541
1542Program names:
1543  --program-prefix=PREFIX            prepend PREFIX to installed program names
1544  --program-suffix=SUFFIX            append SUFFIX to installed program names
1545  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1546
1547System types:
1548  --build=BUILD     configure for building on BUILD [guessed]
1549  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1550_ACEOF
1551fi
1552
1553if test -n "$ac_init_help"; then
1554  case $ac_init_help in
1555     short | recursive ) echo "Configuration of adolc 2.1.12-trunk:";;
1556   esac
1557  cat <<\_ACEOF
1558
1559Optional Features:
1560  --disable-option-checking  ignore unrecognized --enable/--with options
1561  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1562  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1563  --disable-dependency-tracking  speeds up one-time build
1564  --enable-dependency-tracking   do not reject slow dependency extractors
1565  --enable-shared[=PKGS]  build shared libraries [default=yes]
1566  --enable-static[=PKGS]  build static libraries [default=yes]
1567  --enable-fast-install[=PKGS]
1568                          optimize for fast installation [default=yes]
1569  --disable-libtool-lock  avoid locking (might break parallel builds)
1570
1571  --enable-debug          enable ADOL-C debug mode [default=no]
1572
1573  --enable-harddebug      enable ADOL-C hard debug mode [default=no]
1574
1575  --enable-stdczero       adouble standard constructor zeros value (at the
1576                          cost of performance) [default=no]
1577
1578  --enable-tserrno        use errno as thread number cache [default=no]
1579
1580  --enable-safe-extern    backup all adoubles before calling an external
1581                          function [default=no]
1582
1583  --enable-sparse         build sparse drivers [default=disabled]
1584
1585  --enable-docexa         build documented examples [default=disabled]
1586  --enable-addexa         build additional examples [default=disabled]
1587  --enable-parexa         build parallel example [default=disabled], if
1588                          enabled -with-openmp-flag=FLAG required
1589  --enable-shave          use shave to make the build pretty [[default=yes]]
1590
1591Optional Packages:
1592  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1593  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1594  --with-pic              try to use only PIC/non-PIC objects [default=use
1595                          both]
1596  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1597
1598  --with-colpack          path to the colpack library and headers
1599                          [default=${srcdir}/ThirdParty/ColPack]
1600  --with-openmp-flag=FLAG use FLAG to enable OpenMP at compile time
1601                          [default=none]
1602  --with-cflags=FLAGS     use CFLAGS=FLAGS (default: -O2)
1603  --with-cxxflags=FLAGS   use CXXFLAGS=FLAGS (default: -O2)
1604
1605Some influential environment variables:
1606  CXX         C++ compiler command
1607  CXXFLAGS    C++ compiler flags
1608  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1609              nonstandard directory <lib dir>
1610  LIBS        libraries to pass to the linker, e.g. -l<library>
1611  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1612              you have headers in a nonstandard directory <include dir>
1613  CC          C compiler command
1614  CFLAGS      C compiler flags
1615  CPP         C preprocessor
1616  CXXCPP      C++ preprocessor
1617
1618Use these variables to override the choices made by `configure' or to help
1619it to find libraries and programs with nonstandard names/locations.
1620
1621Report bugs to <adol-c@list.coin-or.org>.
1622_ACEOF
1623ac_status=$?
1624fi
1625
1626if test "$ac_init_help" = "recursive"; then
1627  # If there are subdirs, report their specific --help.
1628  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1629    test -d "$ac_dir" ||
1630      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1631      continue
1632    ac_builddir=.
1633
1634case "$ac_dir" in
1635.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636*)
1637  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1638  # A ".." for each directory in $ac_dir_suffix.
1639  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1640  case $ac_top_builddir_sub in
1641  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1643  esac ;;
1644esac
1645ac_abs_top_builddir=$ac_pwd
1646ac_abs_builddir=$ac_pwd$ac_dir_suffix
1647# for backward compatibility:
1648ac_top_builddir=$ac_top_build_prefix
1649
1650case $srcdir in
1651  .)  # We are building in place.
1652    ac_srcdir=.
1653    ac_top_srcdir=$ac_top_builddir_sub
1654    ac_abs_top_srcdir=$ac_pwd ;;
1655  [\\/]* | ?:[\\/]* )  # Absolute name.
1656    ac_srcdir=$srcdir$ac_dir_suffix;
1657    ac_top_srcdir=$srcdir
1658    ac_abs_top_srcdir=$srcdir ;;
1659  *) # Relative name.
1660    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1661    ac_top_srcdir=$ac_top_build_prefix$srcdir
1662    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1663esac
1664ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1665
1666    cd "$ac_dir" || { ac_status=$?; continue; }
1667    # Check for guested configure.
1668    if test -f "$ac_srcdir/configure.gnu"; then
1669      echo &&
1670      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1671    elif test -f "$ac_srcdir/configure"; then
1672      echo &&
1673      $SHELL "$ac_srcdir/configure" --help=recursive
1674    else
1675      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1676    fi || ac_status=$?
1677    cd "$ac_pwd" || { ac_status=$?; break; }
1678  done
1679fi
1680
1681test -n "$ac_init_help" && exit $ac_status
1682if $ac_init_version; then
1683  cat <<\_ACEOF
1684adolc configure 2.1.12-trunk
1685generated by GNU Autoconf 2.68
1686
1687Copyright (C) 2010 Free Software Foundation, Inc.
1688This configure script is free software; the Free Software Foundation
1689gives unlimited permission to copy, distribute and modify it.
1690_ACEOF
1691  exit
1692fi
1693
1694## ------------------------ ##
1695## Autoconf initialization. ##
1696## ------------------------ ##
1697
1698# ac_fn_cxx_try_compile LINENO
1699# ----------------------------
1700# Try to compile conftest.$ac_ext, and return whether this succeeded.
1701ac_fn_cxx_try_compile ()
1702{
1703  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704  rm -f conftest.$ac_objext
1705  if { { ac_try="$ac_compile"
1706case "(($ac_try" in
1707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708  *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712  (eval "$ac_compile") 2>conftest.err
1713  ac_status=$?
1714  if test -s conftest.err; then
1715    grep -v '^ *+' conftest.err >conftest.er1
1716    cat conftest.er1 >&5
1717    mv -f conftest.er1 conftest.err
1718  fi
1719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720  test $ac_status = 0; } && {
1721         test -z "$ac_cxx_werror_flag" ||
1722         test ! -s conftest.err
1723       } && test -s conftest.$ac_objext; then :
1724  ac_retval=0
1725else
1726  $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729        ac_retval=1
1730fi
1731  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732  as_fn_set_status $ac_retval
1733
1734} # ac_fn_cxx_try_compile
1735
1736# ac_fn_c_try_compile LINENO
1737# --------------------------
1738# Try to compile conftest.$ac_ext, and return whether this succeeded.
1739ac_fn_c_try_compile ()
1740{
1741  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742  rm -f conftest.$ac_objext
1743  if { { ac_try="$ac_compile"
1744case "(($ac_try" in
1745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746  *) ac_try_echo=$ac_try;;
1747esac
1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749$as_echo "$ac_try_echo"; } >&5
1750  (eval "$ac_compile") 2>conftest.err
1751  ac_status=$?
1752  if test -s conftest.err; then
1753    grep -v '^ *+' conftest.err >conftest.er1
1754    cat conftest.er1 >&5
1755    mv -f conftest.er1 conftest.err
1756  fi
1757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758  test $ac_status = 0; } && {
1759         test -z "$ac_c_werror_flag" ||
1760         test ! -s conftest.err
1761       } && test -s conftest.$ac_objext; then :
1762  ac_retval=0
1763else
1764  $as_echo "$as_me: failed program was:" >&5
1765sed 's/^/| /' conftest.$ac_ext >&5
1766
1767        ac_retval=1
1768fi
1769  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770  as_fn_set_status $ac_retval
1771
1772} # ac_fn_c_try_compile
1773
1774# ac_fn_c_try_cpp LINENO
1775# ----------------------
1776# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1777ac_fn_c_try_cpp ()
1778{
1779  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780  if { { ac_try="$ac_cpp conftest.$ac_ext"
1781case "(($ac_try" in
1782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783  *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1788  ac_status=$?
1789  if test -s conftest.err; then
1790    grep -v '^ *+' conftest.err >conftest.er1
1791    cat conftest.er1 >&5
1792    mv -f conftest.er1 conftest.err
1793  fi
1794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795  test $ac_status = 0; } > conftest.i && {
1796         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1797         test ! -s conftest.err
1798       }; then :
1799  ac_retval=0
1800else
1801  $as_echo "$as_me: failed program was:" >&5
1802sed 's/^/| /' conftest.$ac_ext >&5
1803
1804    ac_retval=1
1805fi
1806  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807  as_fn_set_status $ac_retval
1808
1809} # ac_fn_c_try_cpp
1810
1811# ac_fn_c_try_link LINENO
1812# -----------------------
1813# Try to link conftest.$ac_ext, and return whether this succeeded.
1814ac_fn_c_try_link ()
1815{
1816  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817  rm -f conftest.$ac_objext conftest$ac_exeext
1818  if { { ac_try="$ac_link"
1819case "(($ac_try" in
1820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821  *) ac_try_echo=$ac_try;;
1822esac
1823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824$as_echo "$ac_try_echo"; } >&5
1825  (eval "$ac_link") 2>conftest.err
1826  ac_status=$?
1827  if test -s conftest.err; then
1828    grep -v '^ *+' conftest.err >conftest.er1
1829    cat conftest.er1 >&5
1830    mv -f conftest.er1 conftest.err
1831  fi
1832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833  test $ac_status = 0; } && {
1834         test -z "$ac_c_werror_flag" ||
1835         test ! -s conftest.err
1836       } && test -s conftest$ac_exeext && {
1837         test "$cross_compiling" = yes ||
1838         $as_test_x conftest$ac_exeext
1839       }; then :
1840  ac_retval=0
1841else
1842  $as_echo "$as_me: failed program was:" >&5
1843sed 's/^/| /' conftest.$ac_ext >&5
1844
1845        ac_retval=1
1846fi
1847  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1848  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1849  # interfere with the next link command; also delete a directory that is
1850  # left behind by Apple's compiler.  We do this before executing the actions.
1851  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853  as_fn_set_status $ac_retval
1854
1855} # ac_fn_c_try_link
1856
1857# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1858# -------------------------------------------------------
1859# Tests whether HEADER exists and can be compiled using the include files in
1860# INCLUDES, setting the cache variable VAR accordingly.
1861ac_fn_c_check_header_compile ()
1862{
1863  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865$as_echo_n "checking for $2... " >&6; }
1866if eval \${$3+:} false; then :
1867  $as_echo_n "(cached) " >&6
1868else
1869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870/* end confdefs.h.  */
1871$4
1872#include <$2>
1873_ACEOF
1874if ac_fn_c_try_compile "$LINENO"; then :
1875  eval "$3=yes"
1876else
1877  eval "$3=no"
1878fi
1879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1880fi
1881eval ac_res=\$$3
1882               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883$as_echo "$ac_res" >&6; }
1884  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885
1886} # ac_fn_c_check_header_compile
1887
1888# ac_fn_c_try_run LINENO
1889# ----------------------
1890# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1891# that executables *can* be run.
1892ac_fn_c_try_run ()
1893{
1894  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895  if { { ac_try="$ac_link"
1896case "(($ac_try" in
1897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898  *) ac_try_echo=$ac_try;;
1899esac
1900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901$as_echo "$ac_try_echo"; } >&5
1902  (eval "$ac_link") 2>&5
1903  ac_status=$?
1904  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1906  { { case "(($ac_try" in
1907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908  *) ac_try_echo=$ac_try;;
1909esac
1910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911$as_echo "$ac_try_echo"; } >&5
1912  (eval "$ac_try") 2>&5
1913  ac_status=$?
1914  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915  test $ac_status = 0; }; }; then :
1916  ac_retval=0
1917else
1918  $as_echo "$as_me: program exited with status $ac_status" >&5
1919       $as_echo "$as_me: failed program was:" >&5
1920sed 's/^/| /' conftest.$ac_ext >&5
1921
1922       ac_retval=$ac_status
1923fi
1924  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926  as_fn_set_status $ac_retval
1927
1928} # ac_fn_c_try_run
1929
1930# ac_fn_c_check_func LINENO FUNC VAR
1931# ----------------------------------
1932# Tests whether FUNC exists, setting the cache variable VAR accordingly
1933ac_fn_c_check_func ()
1934{
1935  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937$as_echo_n "checking for $2... " >&6; }
1938if eval \${$3+:} false; then :
1939  $as_echo_n "(cached) " >&6
1940else
1941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942/* end confdefs.h.  */
1943/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1944   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1945#define $2 innocuous_$2
1946
1947/* System header to define __stub macros and hopefully few prototypes,
1948    which can conflict with char $2 (); below.
1949    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1950    <limits.h> exists even on freestanding compilers.  */
1951
1952#ifdef __STDC__
1953# include <limits.h>
1954#else
1955# include <assert.h>
1956#endif
1957
1958#undef $2
1959
1960/* Override any GCC internal prototype to avoid an error.
1961   Use char because int might match the return type of a GCC
1962   builtin and then its argument prototype would still apply.  */
1963#ifdef __cplusplus
1964extern "C"
1965#endif
1966char $2 ();
1967/* The GNU C library defines this for functions which it implements
1968    to always fail with ENOSYS.  Some functions are actually named
1969    something starting with __ and the normal name is an alias.  */
1970#if defined __stub_$2 || defined __stub___$2
1971choke me
1972#endif
1973
1974int
1975main ()
1976{
1977return $2 ();
1978  ;
1979  return 0;
1980}
1981_ACEOF
1982if ac_fn_c_try_link "$LINENO"; then :
1983  eval "$3=yes"
1984else
1985  eval "$3=no"
1986fi
1987rm -f core conftest.err conftest.$ac_objext \
1988    conftest$ac_exeext conftest.$ac_ext
1989fi
1990eval ac_res=\$$3
1991               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992$as_echo "$ac_res" >&6; }
1993  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994
1995} # ac_fn_c_check_func
1996
1997# ac_fn_cxx_try_cpp LINENO
1998# ------------------------
1999# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2000ac_fn_cxx_try_cpp ()
2001{
2002  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003  if { { ac_try="$ac_cpp conftest.$ac_ext"
2004case "(($ac_try" in
2005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2006  *) ac_try_echo=$ac_try;;
2007esac
2008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2009$as_echo "$ac_try_echo"; } >&5
2010  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2011  ac_status=$?
2012  if test -s conftest.err; then
2013    grep -v '^ *+' conftest.err >conftest.er1
2014    cat conftest.er1 >&5
2015    mv -f conftest.er1 conftest.err
2016  fi
2017  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018  test $ac_status = 0; } > conftest.i && {
2019         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2020         test ! -s conftest.err
2021       }; then :
2022  ac_retval=0
2023else
2024  $as_echo "$as_me: failed program was:" >&5
2025sed 's/^/| /' conftest.$ac_ext >&5
2026
2027    ac_retval=1
2028fi
2029  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030  as_fn_set_status $ac_retval
2031
2032} # ac_fn_cxx_try_cpp
2033
2034# ac_fn_cxx_try_link LINENO
2035# -------------------------
2036# Try to link conftest.$ac_ext, and return whether this succeeded.
2037ac_fn_cxx_try_link ()
2038{
2039  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040  rm -f conftest.$ac_objext conftest$ac_exeext
2041  if { { ac_try="$ac_link"
2042case "(($ac_try" in
2043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044  *) ac_try_echo=$ac_try;;
2045esac
2046eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047$as_echo "$ac_try_echo"; } >&5
2048  (eval "$ac_link") 2>conftest.err
2049  ac_status=$?
2050  if test -s conftest.err; then
2051    grep -v '^ *+' conftest.err >conftest.er1
2052    cat conftest.er1 >&5
2053    mv -f conftest.er1 conftest.err
2054  fi
2055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056  test $ac_status = 0; } && {
2057         test -z "$ac_cxx_werror_flag" ||
2058         test ! -s conftest.err
2059       } && test -s conftest$ac_exeext && {
2060         test "$cross_compiling" = yes ||
2061         $as_test_x conftest$ac_exeext
2062       }; then :
2063  ac_retval=0
2064else
2065  $as_echo "$as_me: failed program was:" >&5
2066sed 's/^/| /' conftest.$ac_ext >&5
2067
2068        ac_retval=1
2069fi
2070  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2071  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2072  # interfere with the next link command; also delete a directory that is
2073  # left behind by Apple's compiler.  We do this before executing the actions.
2074  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2075  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076  as_fn_set_status $ac_retval
2077
2078} # ac_fn_cxx_try_link
2079
2080# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2081# --------------------------------------------
2082# Tries to find the compile-time value of EXPR in a program that includes
2083# INCLUDES, setting VAR accordingly. Returns whether the value could be
2084# computed
2085ac_fn_c_compute_int ()
2086{
2087  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088  if test "$cross_compiling" = yes; then
2089    # Depending upon the size, compute the lo and hi bounds.
2090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091/* end confdefs.h.  */
2092$4
2093int
2094main ()
2095{
2096static int test_array [1 - 2 * !(($2) >= 0)];
2097test_array [0] = 0
2098
2099  ;
2100  return 0;
2101}
2102_ACEOF
2103if ac_fn_c_try_compile "$LINENO"; then :
2104  ac_lo=0 ac_mid=0
2105  while :; do
2106    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107/* end confdefs.h.  */
2108$4
2109int
2110main ()
2111{
2112static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2113test_array [0] = 0
2114
2115  ;
2116  return 0;
2117}
2118_ACEOF
2119if ac_fn_c_try_compile "$LINENO"; then :
2120  ac_hi=$ac_mid; break
2121else
2122  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2123                        if test $ac_lo -le $ac_mid; then
2124                          ac_lo= ac_hi=
2125                          break
2126                        fi
2127                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2128fi
2129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130  done
2131else
2132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133/* end confdefs.h.  */
2134$4
2135int
2136main ()
2137{
2138static int test_array [1 - 2 * !(($2) < 0)];
2139test_array [0] = 0
2140
2141  ;
2142  return 0;
2143}
2144_ACEOF
2145if ac_fn_c_try_compile "$LINENO"; then :
2146  ac_hi=-1 ac_mid=-1
2147  while :; do
2148    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149/* end confdefs.h.  */
2150$4
2151int
2152main ()
2153{
2154static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2155test_array [0] = 0
2156
2157  ;
2158  return 0;
2159}
2160_ACEOF
2161if ac_fn_c_try_compile "$LINENO"; then :
2162  ac_lo=$ac_mid; break
2163else
2164  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2165                        if test $ac_mid -le $ac_hi; then
2166                          ac_lo= ac_hi=
2167                          break
2168                        fi
2169                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2170fi
2171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172  done
2173else
2174  ac_lo= ac_hi=
2175fi
2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177fi
2178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179# Binary search between lo and hi bounds.
2180while test "x$ac_lo" != "x$ac_hi"; do
2181  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183/* end confdefs.h.  */
2184$4
2185int
2186main ()
2187{
2188static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2189test_array [0] = 0
2190
2191  ;
2192  return 0;
2193}
2194_ACEOF
2195if ac_fn_c_try_compile "$LINENO"; then :
2196  ac_hi=$ac_mid
2197else
2198  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2199fi
2200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201done
2202case $ac_lo in #((
2203?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2204'') ac_retval=1 ;;
2205esac
2206  else
2207    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208/* end confdefs.h.  */
2209$4
2210static long int longval () { return $2; }
2211static unsigned long int ulongval () { return $2; }
2212#include <stdio.h>
2213#include <stdlib.h>
2214int
2215main ()
2216{
2217
2218  FILE *f = fopen ("conftest.val", "w");
2219  if (! f)
2220    return 1;
2221  if (($2) < 0)
2222    {
2223      long int i = longval ();
2224      if (i != ($2))
2225        return 1;
2226      fprintf (f, "%ld", i);
2227    }
2228  else
2229    {
2230      unsigned long int i = ulongval ();
2231      if (i != ($2))
2232        return 1;
2233      fprintf (f, "%lu", i);
2234    }
2235  /* Do not output a trailing newline, as this causes \r\n confusion
2236     on some platforms.  */
2237  return ferror (f) || fclose (f) != 0;
2238
2239  ;
2240  return 0;
2241}
2242_ACEOF
2243if ac_fn_c_try_run "$LINENO"; then :
2244  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2245else
2246  ac_retval=1
2247fi
2248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2249  conftest.$ac_objext conftest.beam conftest.$ac_ext
2250rm -f conftest.val
2251
2252  fi
2253  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254  as_fn_set_status $ac_retval
2255
2256} # ac_fn_c_compute_int
2257
2258# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2259# -------------------------------------------
2260# Tests whether TYPE exists after having included INCLUDES, setting cache
2261# variable VAR accordingly.
2262ac_fn_c_check_type ()
2263{
2264  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2266$as_echo_n "checking for $2... " >&6; }
2267if eval \${$3+:} false; then :
2268  $as_echo_n "(cached) " >&6
2269else
2270  eval "$3=no"
2271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272/* end confdefs.h.  */
2273$4
2274int
2275main ()
2276{
2277if (sizeof ($2))
2278         return 0;
2279  ;
2280  return 0;
2281}
2282_ACEOF
2283if ac_fn_c_try_compile "$LINENO"; then :
2284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285/* end confdefs.h.  */
2286$4
2287int
2288main ()
2289{
2290if (sizeof (($2)))
2291            return 0;
2292  ;
2293  return 0;
2294}
2295_ACEOF
2296if ac_fn_c_try_compile "$LINENO"; then :
2297
2298else
2299  eval "$3=yes"
2300fi
2301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302fi
2303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304fi
2305eval ac_res=\$$3
2306               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2307$as_echo "$ac_res" >&6; }
2308  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2309
2310} # ac_fn_c_check_type
2311
2312# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2313# -------------------------------------------------------
2314# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2315# the include files in INCLUDES and setting the cache variable VAR
2316# accordingly.
2317ac_fn_c_check_header_mongrel ()
2318{
2319  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2320  if eval \${$3+:} false; then :
2321  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2322$as_echo_n "checking for $2... " >&6; }
2323if eval \${$3+:} false; then :
2324  $as_echo_n "(cached) " >&6
2325fi
2326eval ac_res=\$$3
2327               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2328$as_echo "$ac_res" >&6; }
2329else
2330  # Is the header compilable?
2331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2332$as_echo_n "checking $2 usability... " >&6; }
2333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334/* end confdefs.h.  */
2335$4
2336#include <$2>
2337_ACEOF
2338if ac_fn_c_try_compile "$LINENO"; then :
2339  ac_header_compiler=yes
2340else
2341  ac_header_compiler=no
2342fi
2343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2345$as_echo "$ac_header_compiler" >&6; }
2346
2347# Is the header present?
2348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2349$as_echo_n "checking $2 presence... " >&6; }
2350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351/* end confdefs.h.  */
2352#include <$2>
2353_ACEOF
2354if ac_fn_c_try_cpp "$LINENO"; then :
2355  ac_header_preproc=yes
2356else
2357  ac_header_preproc=no
2358fi
2359rm -f conftest.err conftest.i conftest.$ac_ext
2360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2361$as_echo "$ac_header_preproc" >&6; }
2362
2363# So?  What about this header?
2364case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2365  yes:no: )
2366    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2367$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2368    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2369$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2370    ;;
2371  no:yes:* )
2372    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2373$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2374    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2375$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2376    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2377$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2378    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2379$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2380    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2381$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2382( $as_echo "## -------------------------------------- ##
2383## Report this to adol-c@list.coin-or.org ##
2384## -------------------------------------- ##"
2385     ) | sed "s/^/$as_me: WARNING:     /" >&2
2386    ;;
2387esac
2388  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2389$as_echo_n "checking for $2... " >&6; }
2390if eval \${$3+:} false; then :
2391  $as_echo_n "(cached) " >&6
2392else
2393  eval "$3=\$ac_header_compiler"
2394fi
2395eval ac_res=\$$3
2396               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2397$as_echo "$ac_res" >&6; }
2398fi
2399  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2400
2401} # ac_fn_c_check_header_mongrel
2402
2403# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2404# ---------------------------------------------------------
2405# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2406# the include files in INCLUDES and setting the cache variable VAR
2407# accordingly.
2408ac_fn_cxx_check_header_mongrel ()
2409{
2410  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411  if eval \${$3+:} false; then :
2412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2413$as_echo_n "checking for $2... " >&6; }
2414if eval \${$3+:} false; then :
2415  $as_echo_n "(cached) " >&6
2416fi
2417eval ac_res=\$$3
2418               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2419$as_echo "$ac_res" >&6; }
2420else
2421  # Is the header compilable?
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2423$as_echo_n "checking $2 usability... " >&6; }
2424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425/* end confdefs.h.  */
2426$4
2427#include <$2>
2428_ACEOF
2429if ac_fn_cxx_try_compile "$LINENO"; then :
2430  ac_header_compiler=yes
2431else
2432  ac_header_compiler=no
2433fi
2434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2436$as_echo "$ac_header_compiler" >&6; }
2437
2438# Is the header present?
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2440$as_echo_n "checking $2 presence... " >&6; }
2441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442/* end confdefs.h.  */
2443#include <$2>
2444_ACEOF
2445if ac_fn_cxx_try_cpp "$LINENO"; then :
2446  ac_header_preproc=yes
2447else
2448  ac_header_preproc=no
2449fi
2450rm -f conftest.err conftest.i conftest.$ac_ext
2451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2452$as_echo "$ac_header_preproc" >&6; }
2453
2454# So?  What about this header?
2455case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2456  yes:no: )
2457    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2458$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2459    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2460$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2461    ;;
2462  no:yes:* )
2463    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2464$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2465    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2466$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2467    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2468$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2469    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2470$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2471    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2472$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2473( $as_echo "## -------------------------------------- ##
2474## Report this to adol-c@list.coin-or.org ##
2475## -------------------------------------- ##"
2476     ) | sed "s/^/$as_me: WARNING:     /" >&2
2477    ;;
2478esac
2479  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2480$as_echo_n "checking for $2... " >&6; }
2481if eval \${$3+:} false; then :
2482  $as_echo_n "(cached) " >&6
2483else
2484  eval "$3=\$ac_header_compiler"
2485fi
2486eval ac_res=\$$3
2487               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2488$as_echo "$ac_res" >&6; }
2489fi
2490  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2491
2492} # ac_fn_cxx_check_header_mongrel
2493cat >config.log <<_ACEOF
2494This file contains any messages produced by compilers while
2495running configure, to aid debugging if configure makes a mistake.
2496
2497It was created by adolc $as_me 2.1.12-trunk, which was
2498generated by GNU Autoconf 2.68.  Invocation command line was
2499
2500  $ $0 $@
2501
2502_ACEOF
2503exec 5>>config.log
2504{
2505cat <<_ASUNAME
2506## --------- ##
2507## Platform. ##
2508## --------- ##
2509
2510hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2511uname -m = `(uname -m) 2>/dev/null || echo unknown`
2512uname -r = `(uname -r) 2>/dev/null || echo unknown`
2513uname -s = `(uname -s) 2>/dev/null || echo unknown`
2514uname -v = `(uname -v) 2>/dev/null || echo unknown`
2515
2516/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2517/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2518
2519/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2520/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2521/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2522/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2523/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2524/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2525/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2526
2527_ASUNAME
2528
2529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530for as_dir in $PATH
2531do
2532  IFS=$as_save_IFS
2533  test -z "$as_dir" && as_dir=.
2534    $as_echo "PATH: $as_dir"
2535  done
2536IFS=$as_save_IFS
2537
2538} >&5
2539
2540cat >&5 <<_ACEOF
2541
2542
2543## ----------- ##
2544## Core tests. ##
2545## ----------- ##
2546
2547_ACEOF
2548
2549
2550# Keep a trace of the command line.
2551# Strip out --no-create and --no-recursion so they do not pile up.
2552# Strip out --silent because we don't want to record it for future runs.
2553# Also quote any args containing shell meta-characters.
2554# Make two passes to allow for proper duplicate-argument suppression.
2555ac_configure_args=
2556ac_configure_args0=
2557ac_configure_args1=
2558ac_must_keep_next=false
2559for ac_pass in 1 2
2560do
2561  for ac_arg
2562  do
2563    case $ac_arg in
2564    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2565    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2566    | -silent | --silent | --silen | --sile | --sil)
2567      continue ;;
2568    *\'*)
2569      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2570    esac
2571    case $ac_pass in
2572    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2573    2)
2574      as_fn_append ac_configure_args1 " '$ac_arg'"
2575      if test $ac_must_keep_next = true; then
2576        ac_must_keep_next=false # Got value, back to normal.
2577      else
2578        case $ac_arg in
2579          *=* | --config-cache | -C | -disable-* | --disable-* \
2580          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2581          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2582          | -with-* | --with-* | -without-* | --without-* | --x)
2583            case "$ac_configure_args0 " in
2584              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2585            esac
2586            ;;
2587          -* ) ac_must_keep_next=true ;;
2588        esac
2589      fi
2590      as_fn_append ac_configure_args " '$ac_arg'"
2591      ;;
2592    esac
2593  done
2594done
2595{ ac_configure_args0=; unset ac_configure_args0;}
2596{ ac_configure_args1=; unset ac_configure_args1;}
2597
2598# When interrupted or exit'd, cleanup temporary files, and complete
2599# config.log.  We remove comments because anyway the quotes in there
2600# would cause problems or look ugly.
2601# WARNING: Use '\'' to represent an apostrophe within the trap.
2602# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2603trap 'exit_status=$?
2604  # Save into config.log some information that might help in debugging.
2605  {
2606    echo
2607
2608    $as_echo "## ---------------- ##
2609## Cache variables. ##
2610## ---------------- ##"
2611    echo
2612    # The following way of writing the cache mishandles newlines in values,
2613(
2614  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2615    eval ac_val=\$$ac_var
2616    case $ac_val in #(
2617    *${as_nl}*)
2618      case $ac_var in #(
2619      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2620$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2621      esac
2622      case $ac_var in #(
2623      _ | IFS | as_nl) ;; #(
2624      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2625      *) { eval $ac_var=; unset $ac_var;} ;;
2626      esac ;;
2627    esac
2628  done
2629  (set) 2>&1 |
2630    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2631    *${as_nl}ac_space=\ *)
2632      sed -n \
2633        "s/'\''/'\''\\\\'\'''\''/g;
2634          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2635      ;; #(
2636    *)
2637      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2638      ;;
2639    esac |
2640    sort
2641)
2642    echo
2643
2644    $as_echo "## ----------------- ##
2645## Output variables. ##
2646## ----------------- ##"
2647    echo
2648    for ac_var in $ac_subst_vars
2649    do
2650      eval ac_val=\$$ac_var
2651      case $ac_val in
2652      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2653      esac
2654      $as_echo "$ac_var='\''$ac_val'\''"
2655    done | sort
2656    echo
2657
2658    if test -n "$ac_subst_files"; then
2659      $as_echo "## ------------------- ##
2660## File substitutions. ##
2661## ------------------- ##"
2662      echo
2663      for ac_var in $ac_subst_files
2664      do
2665        eval ac_val=\$$ac_var
2666        case $ac_val in
2667        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2668        esac
2669        $as_echo "$ac_var='\''$ac_val'\''"
2670      done | sort
2671      echo
2672    fi
2673
2674    if test -s confdefs.h; then
2675      $as_echo "## ----------- ##
2676## confdefs.h. ##
2677## ----------- ##"
2678      echo
2679      cat confdefs.h
2680      echo
2681    fi
2682    test "$ac_signal" != 0 &&
2683      $as_echo "$as_me: caught signal $ac_signal"
2684    $as_echo "$as_me: exit $exit_status"
2685  } >&5
2686  rm -f core *.core core.conftest.* &&
2687    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2688    exit $exit_status
2689' 0
2690for ac_signal in 1 2 13 15; do
2691  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2692done
2693ac_signal=0
2694
2695# confdefs.h avoids OS command line length limits that DEFS can exceed.
2696rm -f -r conftest* confdefs.h
2697
2698$as_echo "/* confdefs.h */" > confdefs.h
2699
2700# Predefined preprocessor variables.
2701
2702cat >>confdefs.h <<_ACEOF
2703#define PACKAGE_NAME "$PACKAGE_NAME"
2704_ACEOF
2705
2706cat >>confdefs.h <<_ACEOF
2707#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2708_ACEOF
2709
2710cat >>confdefs.h <<_ACEOF
2711#define PACKAGE_VERSION "$PACKAGE_VERSION"
2712_ACEOF
2713
2714cat >>confdefs.h <<_ACEOF
2715#define PACKAGE_STRING "$PACKAGE_STRING"
2716_ACEOF
2717
2718cat >>confdefs.h <<_ACEOF
2719#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2720_ACEOF
2721
2722cat >>confdefs.h <<_ACEOF
2723#define PACKAGE_URL "$PACKAGE_URL"
2724_ACEOF
2725
2726
2727# Let the site file select an alternate cache file if it wants to.
2728# Prefer an explicitly selected file to automatically selected ones.
2729ac_site_file1=NONE
2730ac_site_file2=NONE
2731if test -n "$CONFIG_SITE"; then
2732  # We do not want a PATH search for config.site.
2733  case $CONFIG_SITE in #((
2734    -*)  ac_site_file1=./$CONFIG_SITE;;
2735    */*) ac_site_file1=$CONFIG_SITE;;
2736    *)   ac_site_file1=./$CONFIG_SITE;;
2737  esac
2738elif test "x$prefix" != xNONE; then
2739  ac_site_file1=$prefix/share/config.site
2740  ac_site_file2=$prefix/etc/config.site
2741else
2742  ac_site_file1=$ac_default_prefix/share/config.site
2743  ac_site_file2=$ac_default_prefix/etc/config.site
2744fi
2745for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2746do
2747  test "x$ac_site_file" = xNONE && continue
2748  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2749    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2750$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2751    sed 's/^/| /' "$ac_site_file" >&5
2752    . "$ac_site_file" \
2753      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2755as_fn_error $? "failed to load site script $ac_site_file
2756See \`config.log' for more details" "$LINENO" 5; }
2757  fi
2758done
2759
2760if test -r "$cache_file"; then
2761  # Some versions of bash will fail to source /dev/null (special files
2762  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2763  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2764    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2765$as_echo "$as_me: loading cache $cache_file" >&6;}
2766    case $cache_file in
2767      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2768      *)                      . "./$cache_file";;
2769    esac
2770  fi
2771else
2772  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2773$as_echo "$as_me: creating cache $cache_file" >&6;}
2774  >$cache_file
2775fi
2776
2777# Check that the precious variables saved in the cache have kept the same
2778# value.
2779ac_cache_corrupted=false
2780for ac_var in $ac_precious_vars; do
2781  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2782  eval ac_new_set=\$ac_env_${ac_var}_set
2783  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2784  eval ac_new_val=\$ac_env_${ac_var}_value
2785  case $ac_old_set,$ac_new_set in
2786    set,)
2787      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2788$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2789      ac_cache_corrupted=: ;;
2790    ,set)
2791      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2792$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2793      ac_cache_corrupted=: ;;
2794    ,);;
2795    *)
2796      if test "x$ac_old_val" != "x$ac_new_val"; then
2797        # differences in whitespace do not lead to failure.
2798        ac_old_val_w=`echo x $ac_old_val`
2799        ac_new_val_w=`echo x $ac_new_val`
2800        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2801          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2802$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2803          ac_cache_corrupted=:
2804        else
2805          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2806$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2807          eval $ac_var=\$ac_old_val
2808        fi
2809        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2810$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2811        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2812$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2813      fi;;
2814  esac
2815  # Pass precious variables to config.status.
2816  if test "$ac_new_set" = set; then
2817    case $ac_new_val in
2818    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2819    *) ac_arg=$ac_var=$ac_new_val ;;
2820    esac
2821    case " $ac_configure_args " in
2822      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2823      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2824    esac
2825  fi
2826done
2827if $ac_cache_corrupted; then
2828  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2830  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2831$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2832  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2833fi
2834## -------------------- ##
2835## Main body of script. ##
2836## -------------------- ##
2837
2838ac_ext=c
2839ac_cpp='$CPP $CPPFLAGS'
2840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842ac_compiler_gnu=$ac_cv_c_compiler_gnu
2843
2844
2845
2846
2847ac_aux_dir=
2848for ac_dir in autoconf "$srcdir"/autoconf; do
2849  if test -f "$ac_dir/install-sh"; then
2850    ac_aux_dir=$ac_dir
2851    ac_install_sh="$ac_aux_dir/install-sh -c"
2852    break
2853  elif test -f "$ac_dir/install.sh"; then
2854    ac_aux_dir=$ac_dir
2855    ac_install_sh="$ac_aux_dir/install.sh -c"
2856    break
2857  elif test -f "$ac_dir/shtool"; then
2858    ac_aux_dir=$ac_dir
2859    ac_install_sh="$ac_aux_dir/shtool install -c"
2860    break
2861  fi
2862done
2863if test -z "$ac_aux_dir"; then
2864  as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2865fi
2866
2867# These three variables are undocumented and unsupported,
2868# and are intended to be withdrawn in a future Autoconf release.
2869# They can cause serious problems if a builder's source tree is in a directory
2870# whose full name contains unusual characters.
2871ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2872ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2873ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2874
2875
2876ac_config_headers="$ac_config_headers ADOL-C/src/config.h"
2877
2878
2879am__api_version='1.11'
2880
2881# Find a good install program.  We prefer a C program (faster),
2882# so one script is as good as another.  But avoid the broken or
2883# incompatible versions:
2884# SysV /etc/install, /usr/sbin/install
2885# SunOS /usr/etc/install
2886# IRIX /sbin/install
2887# AIX /bin/install
2888# AmigaOS /C/install, which installs bootblocks on floppy discs
2889# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2890# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2891# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2892# OS/2's system install, which has a completely different semantic
2893# ./install, which can be erroneously created by make from ./install.sh.
2894# Reject install programs that cannot install multiple files.
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2896$as_echo_n "checking for a BSD-compatible install... " >&6; }
2897if test -z "$INSTALL"; then
2898if ${ac_cv_path_install+:} false; then :
2899  $as_echo_n "(cached) " >&6
2900else
2901  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904  IFS=$as_save_IFS
2905  test -z "$as_dir" && as_dir=.
2906    # Account for people who put trailing slashes in PATH elements.
2907case $as_dir/ in #((
2908  ./ | .// | /[cC]/* | \
2909  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2910  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2911  /usr/ucb/* ) ;;
2912  *)
2913    # OSF1 and SCO ODT 3.0 have their own names for install.
2914    # Don't use installbsd from OSF since it installs stuff as root
2915    # by default.
2916    for ac_prog in ginstall scoinst install; do
2917      for ac_exec_ext in '' $ac_executable_extensions; do
2918        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2919          if test $ac_prog = install &&
2920            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2921            # AIX install.  It has an incompatible calling convention.
2922            :
2923          elif test $ac_prog = install &&
2924            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2925            # program-specific install script used by HP pwplus--don't use.
2926            :
2927          else
2928            rm -rf conftest.one conftest.two conftest.dir
2929            echo one > conftest.one
2930            echo two > conftest.two
2931            mkdir conftest.dir
2932            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2933              test -s conftest.one && test -s conftest.two &&
2934              test -s conftest.dir/conftest.one &&
2935              test -s conftest.dir/conftest.two
2936            then
2937              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2938              break 3
2939            fi
2940          fi
2941        fi
2942      done
2943    done
2944    ;;
2945esac
2946
2947  done
2948IFS=$as_save_IFS
2949
2950rm -rf conftest.one conftest.two conftest.dir
2951
2952fi
2953  if test "${ac_cv_path_install+set}" = set; then
2954    INSTALL=$ac_cv_path_install
2955  else
2956    # As a last resort, use the slow shell script.  Don't cache a
2957    # value for INSTALL within a source directory, because that will
2958    # break other packages using the cache if that directory is
2959    # removed, or if the value is a relative name.
2960    INSTALL=$ac_install_sh
2961  fi
2962fi
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2964$as_echo "$INSTALL" >&6; }
2965
2966# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2967# It thinks the first close brace ends the variable substitution.
2968test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2969
2970test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2971
2972test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2973
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2975$as_echo_n "checking whether build environment is sane... " >&6; }
2976# Just in case
2977sleep 1
2978echo timestamp > conftest.file
2979# Reject unsafe characters in $srcdir or the absolute working directory
2980# name.  Accept space and tab only in the latter.
2981am_lf='
2982'
2983case `pwd` in
2984  *[\\\"\#\$\&\'\`$am_lf]*)
2985    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2986esac
2987case $srcdir in
2988  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2989    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2990esac
2991
2992# Do `set' in a subshell so we don't clobber the current shell's
2993# arguments.  Must try -L first in case configure is actually a
2994# symlink; some systems play weird games with the mod time of symlinks
2995# (eg FreeBSD returns the mod time of the symlink's containing
2996# directory).
2997if (
2998   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2999   if test "$*" = "X"; then
3000      # -L didn't work.
3001      set X `ls -t "$srcdir/configure" conftest.file`
3002   fi
3003   rm -f conftest.file
3004   if test "$*" != "X $srcdir/configure conftest.file" \
3005      && test "$*" != "X conftest.file $srcdir/configure"; then
3006
3007      # If neither matched, then we have a broken ls.  This can happen
3008      # if, for instance, CONFIG_SHELL is bash and it inherits a
3009      # broken ls alias from the environment.  This has actually
3010      # happened.  Such a system could not be considered "sane".
3011      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3012alias in your environment" "$LINENO" 5
3013   fi
3014
3015   test "$2" = conftest.file
3016   )
3017then
3018   # Ok.
3019   :
3020else
3021   as_fn_error $? "newly created file is older than distributed files!
3022Check your system clock" "$LINENO" 5
3023fi
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3025$as_echo "yes" >&6; }
3026test "$program_prefix" != NONE &&
3027  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3028# Use a double $ so make ignores it.
3029test "$program_suffix" != NONE &&
3030  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3031# Double any \ or $.
3032# By default was `s,x,x', remove it if useless.
3033ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3034program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3035
3036# expand $ac_aux_dir to an absolute path
3037am_aux_dir=`cd $ac_aux_dir && pwd`
3038
3039if test x"${MISSING+set}" != xset; then
3040  case $am_aux_dir in
3041  *\ * | *\     *)
3042    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3043  *)
3044    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3045  esac
3046fi
3047# Use eval to expand $SHELL
3048if eval "$MISSING --run true"; then
3049  am_missing_run="$MISSING --run "
3050else
3051  am_missing_run=
3052  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3053$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3054fi
3055
3056if test x"${install_sh}" != xset; then
3057  case $am_aux_dir in
3058  *\ * | *\     *)
3059    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3060  *)
3061    install_sh="\${SHELL} $am_aux_dir/install-sh"
3062  esac
3063fi
3064
3065# Installed binaries are usually stripped using `strip' when the user
3066# run `make install-strip'.  However `strip' might not be the right
3067# tool to use in cross-compilation environments, therefore Automake
3068# will honor the `STRIP' environment variable to overrule this program.
3069if test "$cross_compiling" != no; then
3070  if test -n "$ac_tool_prefix"; then
3071  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3072set dummy ${ac_tool_prefix}strip; ac_word=$2
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074$as_echo_n "checking for $ac_word... " >&6; }
3075if ${ac_cv_prog_STRIP+:} false; then :
3076  $as_echo_n "(cached) " >&6
3077else
3078  if test -n "$STRIP"; then
3079  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3080else
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084  IFS=$as_save_IFS
3085  test -z "$as_dir" && as_dir=.
3086    for ac_exec_ext in '' $ac_executable_extensions; do
3087  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3088    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3089    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090    break 2
3091  fi
3092done
3093  done
3094IFS=$as_save_IFS
3095
3096fi
3097fi
3098STRIP=$ac_cv_prog_STRIP
3099if test -n "$STRIP"; then
3100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3101$as_echo "$STRIP" >&6; }
3102else
3103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104$as_echo "no" >&6; }
3105fi
3106
3107
3108fi
3109if test -z "$ac_cv_prog_STRIP"; then
3110  ac_ct_STRIP=$STRIP
3111  # Extract the first word of "strip", so it can be a program name with args.
3112set dummy strip; ac_word=$2
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114$as_echo_n "checking for $ac_word... " >&6; }
3115if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3116  $as_echo_n "(cached) " >&6
3117else
3118  if test -n "$ac_ct_STRIP"; then
3119  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3120else
3121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122for as_dir in $PATH
3123do
3124  IFS=$as_save_IFS
3125  test -z "$as_dir" && as_dir=.
3126    for ac_exec_ext in '' $ac_executable_extensions; do
3127  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3128    ac_cv_prog_ac_ct_STRIP="strip"
3129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130    break 2
3131  fi
3132done
3133  done
3134IFS=$as_save_IFS
3135
3136fi
3137fi
3138ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3139if test -n "$ac_ct_STRIP"; then
3140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3141$as_echo "$ac_ct_STRIP" >&6; }
3142else
3143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144$as_echo "no" >&6; }
3145fi
3146
3147  if test "x$ac_ct_STRIP" = x; then
3148    STRIP=":"
3149  else
3150    case $cross_compiling:$ac_tool_warned in
3151yes:)
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3154ac_tool_warned=yes ;;
3155esac
3156    STRIP=$ac_ct_STRIP
3157  fi
3158else
3159  STRIP="$ac_cv_prog_STRIP"
3160fi
3161
3162fi
3163INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3164
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3166$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3167if test -z "$MKDIR_P"; then
3168  if ${ac_cv_path_mkdir+:} false; then :
3169  $as_echo_n "(cached) " >&6
3170else
3171  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3173do
3174  IFS=$as_save_IFS
3175  test -z "$as_dir" && as_dir=.
3176    for ac_prog in mkdir gmkdir; do
3177         for ac_exec_ext in '' $ac_executable_extensions; do
3178           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3179           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3180             'mkdir (GNU coreutils) '* | \
3181             'mkdir (coreutils) '* | \
3182             'mkdir (fileutils) '4.1*)
3183               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3184               break 3;;
3185           esac
3186         done
3187       done
3188  done
3189IFS=$as_save_IFS
3190
3191fi
3192
3193  test -d ./--version && rmdir ./--version
3194  if test "${ac_cv_path_mkdir+set}" = set; then
3195    MKDIR_P="$ac_cv_path_mkdir -p"
3196  else
3197    # As a last resort, use the slow shell script.  Don't cache a
3198    # value for MKDIR_P within a source directory, because that will
3199    # break other packages using the cache if that directory is
3200    # removed, or if the value is a relative name.
3201    MKDIR_P="$ac_install_sh -d"
3202  fi
3203fi
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3205$as_echo "$MKDIR_P" >&6; }
3206
3207mkdir_p="$MKDIR_P"
3208case $mkdir_p in
3209  [\\/$]* | ?:[\\/]*) ;;
3210  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3211esac
3212
3213for ac_prog in gawk mawk nawk awk
3214do
3215  # Extract the first word of "$ac_prog", so it can be a program name with args.
3216set dummy $ac_prog; ac_word=$2
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218$as_echo_n "checking for $ac_word... " >&6; }
3219if ${ac_cv_prog_AWK+:} false; then :
3220  $as_echo_n "(cached) " >&6
3221else
3222  if test -n "$AWK"; then
3223  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3224else
3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226for as_dir in $PATH
3227do
3228  IFS=$as_save_IFS
3229  test -z "$as_dir" && as_dir=.
3230    for ac_exec_ext in '' $ac_executable_extensions; do
3231  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3232    ac_cv_prog_AWK="$ac_prog"
3233    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234    break 2
3235  fi
3236done
3237  done
3238IFS=$as_save_IFS
3239
3240fi
3241fi
3242AWK=$ac_cv_prog_AWK
3243if test -n "$AWK"; then
3244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3245$as_echo "$AWK" >&6; }
3246else
3247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248$as_echo "no" >&6; }
3249fi
3250
3251
3252  test -n "$AWK" && break
3253done
3254
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3256$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3257set x ${MAKE-make}
3258ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3259if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3260  $as_echo_n "(cached) " >&6
3261else
3262  cat >conftest.make <<\_ACEOF
3263SHELL = /bin/sh
3264all:
3265        @echo '@@@%%%=$(MAKE)=@@@%%%'
3266_ACEOF
3267# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3268case `${MAKE-make} -f conftest.make 2>/dev/null` in
3269  *@@@%%%=?*=@@@%%%*)
3270    eval ac_cv_prog_make_${ac_make}_set=yes;;
3271  *)
3272    eval ac_cv_prog_make_${ac_make}_set=no;;
3273esac
3274rm -f conftest.make
3275fi
3276if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3278$as_echo "yes" >&6; }
3279  SET_MAKE=
3280else
3281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282$as_echo "no" >&6; }
3283  SET_MAKE="MAKE=${MAKE-make}"
3284fi
3285
3286rm -rf .tst 2>/dev/null
3287mkdir .tst 2>/dev/null
3288if test -d .tst; then
3289  am__leading_dot=.
3290else
3291  am__leading_dot=_
3292fi
3293rmdir .tst 2>/dev/null
3294
3295if test "`cd $srcdir && pwd`" != "`pwd`"; then
3296  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3297  # is not polluted with repeated "-I."
3298  am__isrc=' -I$(srcdir)'
3299  # test to see if srcdir already configured
3300  if test -f $srcdir/config.status; then
3301    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3302  fi
3303fi
3304
3305# test whether we have cygpath
3306if test -z "$CYGPATH_W"; then
3307  if (cygpath --version) >/dev/null 2>/dev/null; then
3308    CYGPATH_W='cygpath -w'
3309  else
3310    CYGPATH_W=echo
3311  fi
3312fi
3313
3314
3315# Define the identity of the package.
3316 PACKAGE='adolc'
3317 VERSION='2.1.12-trunk'
3318
3319
3320cat >>confdefs.h <<_ACEOF
3321#define PACKAGE "$PACKAGE"
3322_ACEOF
3323
3324
3325cat >>confdefs.h <<_ACEOF
3326#define VERSION "$VERSION"
3327_ACEOF
3328
3329# Some tools Automake needs.
3330
3331ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3332
3333
3334AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3335
3336
3337AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3338
3339
3340AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3341
3342
3343MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3344
3345# We need awk for the "check" target.  The system "awk" is bad on
3346# some platforms.
3347# Always define AMTAR for backward compatibility.
3348
3349AMTAR=${AMTAR-"${am_missing_run}tar"}
3350
3351am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3352
3353
3354
3355
3356
3357
3358if test "x$CFLAGS" == x ; then
3359    ac_shell_cflags="not_set"
3360else
3361    ac_shell_cflags="$CFLAGS"
3362fi
3363if test "x$CXXFLAGS" == x ; then
3364    ac_shell_cxxflags="not_set"
3365else
3366    ac_shell_cxxflags="$CXXFLAGS"
3367fi
3368
3369# checks for programs
3370ac_ext=cpp
3371ac_cpp='$CXXCPP $CPPFLAGS'
3372ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3375if test -z "$CXX"; then
3376  if test -n "$CCC"; then
3377    CXX=$CCC
3378  else
3379    if test -n "$ac_tool_prefix"; then
3380  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3381  do
3382    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3383set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385$as_echo_n "checking for $ac_word... " >&6; }
3386if ${ac_cv_prog_CXX+:} false; then :
3387  $as_echo_n "(cached) " >&6
3388else
3389  if test -n "$CXX"; then
3390  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3391else
3392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393for as_dir in $PATH
3394do
3395  IFS=$as_save_IFS
3396  test -z "$as_dir" && as_dir=.
3397    for ac_exec_ext in '' $ac_executable_extensions; do
3398  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3400    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401    break 2
3402  fi
3403done
3404  done
3405IFS=$as_save_IFS
3406
3407fi
3408fi
3409CXX=$ac_cv_prog_CXX
3410if test -n "$CXX"; then
3411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3412$as_echo "$CXX" >&6; }
3413else
3414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415$as_echo "no" >&6; }
3416fi
3417
3418
3419    test -n "$CXX" && break
3420  done
3421fi
3422if test -z "$CXX"; then
3423  ac_ct_CXX=$CXX
3424  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3425do
3426  # Extract the first word of "$ac_prog", so it can be a program name with args.
3427set dummy $ac_prog; ac_word=$2
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429$as_echo_n "checking for $ac_word... " >&6; }
3430if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3431  $as_echo_n "(cached) " >&6
3432else
3433  if test -n "$ac_ct_CXX"; then
3434  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3435else
3436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437for as_dir in $PATH
3438do
3439  IFS=$as_save_IFS
3440  test -z "$as_dir" && as_dir=.
3441    for ac_exec_ext in '' $ac_executable_extensions; do
3442  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3443    ac_cv_prog_ac_ct_CXX="$ac_prog"
3444    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445    break 2
3446  fi
3447done
3448  done
3449IFS=$as_save_IFS
3450
3451fi
3452fi
3453ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3454if test -n "$ac_ct_CXX"; then
3455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3456$as_echo "$ac_ct_CXX" >&6; }
3457else
3458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459$as_echo "no" >&6; }
3460fi
3461
3462
3463  test -n "$ac_ct_CXX" && break
3464done
3465
3466  if test "x$ac_ct_CXX" = x; then
3467    CXX="g++"
3468  else
3469    case $cross_compiling:$ac_tool_warned in
3470yes:)
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3473ac_tool_warned=yes ;;
3474esac
3475    CXX=$ac_ct_CXX
3476  fi
3477fi
3478
3479  fi
3480fi
3481# Provide some information about the compiler.
3482$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3483set X $ac_compile
3484ac_compiler=$2
3485for ac_option in --version -v -V -qversion; do
3486  { { ac_try="$ac_compiler $ac_option >&5"
3487case "(($ac_try" in
3488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489  *) ac_try_echo=$ac_try;;
3490esac
3491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492$as_echo "$ac_try_echo"; } >&5
3493  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3494  ac_status=$?
3495  if test -s conftest.err; then
3496    sed '10a\
3497... rest of stderr output deleted ...
3498         10q' conftest.err >conftest.er1
3499    cat conftest.er1 >&5
3500  fi
3501  rm -f conftest.er1 conftest.err
3502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503  test $ac_status = 0; }
3504done
3505
3506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507/* end confdefs.h.  */
3508
3509int
3510main ()
3511{
3512
3513  ;
3514  return 0;
3515}
3516_ACEOF
3517ac_clean_files_save=$ac_clean_files
3518ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3519# Try to create an executable without -o first, disregard a.out.
3520# It will help us diagnose broken compilers, and finding out an intuition
3521# of exeext.
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3523$as_echo_n "checking whether the C++ compiler works... " >&6; }
3524ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3525
3526# The possible output files:
3527ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3528
3529ac_rmfiles=
3530for ac_file in $ac_files
3531do
3532  case $ac_file in
3533    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3534    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3535  esac
3536done
3537rm -f $ac_rmfiles
3538
3539if { { ac_try="$ac_link_default"
3540case "(($ac_try" in
3541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542  *) ac_try_echo=$ac_try;;
3543esac
3544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545$as_echo "$ac_try_echo"; } >&5
3546  (eval "$ac_link_default") 2>&5
3547  ac_status=$?
3548  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549  test $ac_status = 0; }; then :
3550  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3551# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3552# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3553# so that the user can short-circuit this test for compilers unknown to
3554# Autoconf.
3555for ac_file in $ac_files ''
3556do
3557  test -f "$ac_file" || continue
3558  case $ac_file in
3559    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3560        ;;
3561    [ab].out )
3562        # We found the default executable, but exeext='' is most
3563        # certainly right.
3564        break;;
3565    *.* )
3566        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3567        then :; else
3568           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3569        fi
3570        # We set ac_cv_exeext here because the later test for it is not
3571        # safe: cross compilers may not add the suffix if given an `-o'
3572        # argument, so we may need to know it at that point already.
3573        # Even if this section looks crufty: it has the advantage of
3574        # actually working.
3575        break;;
3576    * )
3577        break;;
3578  esac
3579done
3580test "$ac_cv_exeext" = no && ac_cv_exeext=
3581
3582else
3583  ac_file=''
3584fi
3585if test -z "$ac_file"; then :
3586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587$as_echo "no" >&6; }
3588$as_echo "$as_me: failed program was:" >&5
3589sed 's/^/| /' conftest.$ac_ext >&5
3590
3591{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593as_fn_error 77 "C++ compiler cannot create executables
3594See \`config.log' for more details" "$LINENO" 5; }
3595else
3596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3597$as_echo "yes" >&6; }
3598fi
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3600$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3602$as_echo "$ac_file" >&6; }
3603ac_exeext=$ac_cv_exeext
3604
3605rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3606ac_clean_files=$ac_clean_files_save
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3608$as_echo_n "checking for suffix of executables... " >&6; }
3609if { { ac_try="$ac_link"
3610case "(($ac_try" in
3611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612  *) ac_try_echo=$ac_try;;
3613esac
3614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615$as_echo "$ac_try_echo"; } >&5
3616  (eval "$ac_link") 2>&5
3617  ac_status=$?
3618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619  test $ac_status = 0; }; then :
3620  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3621# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3622# work properly (i.e., refer to `conftest.exe'), while it won't with
3623# `rm'.
3624for ac_file in conftest.exe conftest conftest.*; do
3625  test -f "$ac_file" || continue
3626  case $ac_file in
3627    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3628    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3629          break;;
3630    * ) break;;
3631  esac
3632done
3633else
3634  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3637See \`config.log' for more details" "$LINENO" 5; }
3638fi
3639rm -f conftest conftest$ac_cv_exeext
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3641$as_echo "$ac_cv_exeext" >&6; }
3642
3643rm -f conftest.$ac_ext
3644EXEEXT=$ac_cv_exeext
3645ac_exeext=$EXEEXT
3646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647/* end confdefs.h.  */
3648#include <stdio.h>
3649int
3650main ()
3651{
3652FILE *f = fopen ("conftest.out", "w");
3653 return ferror (f) || fclose (f) != 0;
3654
3655  ;
3656  return 0;
3657}
3658_ACEOF
3659ac_clean_files="$ac_clean_files conftest.out"
3660# Check that the compiler produces executables we can run.  If not, either
3661# the compiler is broken, or we cross compile.
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3663$as_echo_n "checking whether we are cross compiling... " >&6; }
3664if test "$cross_compiling" != yes; then
3665  { { ac_try="$ac_link"
3666case "(($ac_try" in
3667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668  *) ac_try_echo=$ac_try;;
3669esac
3670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671$as_echo "$ac_try_echo"; } >&5
3672  (eval "$ac_link") 2>&5
3673  ac_status=$?
3674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3675  test $ac_status = 0; }
3676  if { ac_try='./conftest$ac_cv_exeext'
3677  { { case "(($ac_try" in
3678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679  *) ac_try_echo=$ac_try;;
3680esac
3681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682$as_echo "$ac_try_echo"; } >&5
3683  (eval "$ac_try") 2>&5
3684  ac_status=$?
3685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686  test $ac_status = 0; }; }; then
3687    cross_compiling=no
3688  else
3689    if test "$cross_compiling" = maybe; then
3690        cross_compiling=yes
3691    else
3692        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694as_fn_error $? "cannot run C++ compiled programs.
3695If you meant to cross compile, use \`--host'.
3696See \`config.log' for more details" "$LINENO" 5; }
3697    fi
3698  fi
3699fi
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3701$as_echo "$cross_compiling" >&6; }
3702
3703rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3704ac_clean_files=$ac_clean_files_save
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3706$as_echo_n "checking for suffix of object files... " >&6; }
3707if ${ac_cv_objext+:} false; then :
3708  $as_echo_n "(cached) " >&6
3709else
3710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711/* end confdefs.h.  */
3712
3713int
3714main ()
3715{
3716
3717  ;
3718  return 0;
3719}
3720_ACEOF
3721rm -f conftest.o conftest.obj
3722if { { ac_try="$ac_compile"
3723case "(($ac_try" in
3724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725  *) ac_try_echo=$ac_try;;
3726esac
3727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3728$as_echo "$ac_try_echo"; } >&5
3729  (eval "$ac_compile") 2>&5
3730  ac_status=$?
3731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732  test $ac_status = 0; }; then :
3733  for ac_file in conftest.o conftest.obj conftest.*; do
3734  test -f "$ac_file" || continue;
3735  case $ac_file in
3736    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3737    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3738       break;;
3739  esac
3740done
3741else
3742  $as_echo "$as_me: failed program was:" >&5
3743sed 's/^/| /' conftest.$ac_ext >&5
3744
3745{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3747as_fn_error $? "cannot compute suffix of object files: cannot compile
3748See \`config.log' for more details" "$LINENO" 5; }
3749fi
3750rm -f conftest.$ac_cv_objext conftest.$ac_ext
3751fi
3752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3753$as_echo "$ac_cv_objext" >&6; }
3754OBJEXT=$ac_cv_objext
3755ac_objext=$OBJEXT
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3757$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3758if ${ac_cv_cxx_compiler_gnu+:} false; then :
3759  $as_echo_n "(cached) " >&6
3760else
3761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762/* end confdefs.h.  */
3763
3764int
3765main ()
3766{
3767#ifndef __GNUC__
3768       choke me
3769#endif
3770
3771  ;
3772  return 0;
3773}
3774_ACEOF
3775if ac_fn_cxx_try_compile "$LINENO"; then :
3776  ac_compiler_gnu=yes
3777else
3778  ac_compiler_gnu=no
3779fi
3780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3782
3783fi
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3785$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3786if test $ac_compiler_gnu = yes; then
3787  GXX=yes
3788else
3789  GXX=
3790fi
3791ac_test_CXXFLAGS=${CXXFLAGS+set}
3792ac_save_CXXFLAGS=$CXXFLAGS
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3794$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3795if ${ac_cv_prog_cxx_g+:} false; then :
3796  $as_echo_n "(cached) " >&6
3797else
3798  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3799   ac_cxx_werror_flag=yes
3800   ac_cv_prog_cxx_g=no
3801   CXXFLAGS="-g"
3802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803/* end confdefs.h.  */
3804
3805int
3806main ()
3807{
3808
3809  ;
3810  return 0;
3811}
3812_ACEOF
3813if ac_fn_cxx_try_compile "$LINENO"; then :
3814  ac_cv_prog_cxx_g=yes
3815else
3816  CXXFLAGS=""
3817      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818/* end confdefs.h.  */
3819
3820int
3821main ()
3822{
3823
3824  ;
3825  return 0;
3826}
3827_ACEOF
3828if ac_fn_cxx_try_compile "$LINENO"; then :
3829
3830else
3831  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3832         CXXFLAGS="-g"
3833         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834/* end confdefs.h.  */
3835
3836int
3837main ()
3838{
3839
3840  ;
3841  return 0;
3842}
3843_ACEOF
3844if ac_fn_cxx_try_compile "$LINENO"; then :
3845  ac_cv_prog_cxx_g=yes
3846fi
3847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848fi
3849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850fi
3851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3852   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3853fi
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3855$as_echo "$ac_cv_prog_cxx_g" >&6; }
3856if test "$ac_test_CXXFLAGS" = set; then
3857  CXXFLAGS=$ac_save_CXXFLAGS
3858elif test $ac_cv_prog_cxx_g = yes; then
3859  if test "$GXX" = yes; then
3860    CXXFLAGS="-g -O2"
3861  else
3862    CXXFLAGS="-g"
3863  fi
3864else
3865  if test "$GXX" = yes; then
3866    CXXFLAGS="-O2"
3867  else
3868    CXXFLAGS=
3869  fi
3870fi
3871ac_ext=c
3872ac_cpp='$CPP $CPPFLAGS'
3873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875ac_compiler_gnu=$ac_cv_c_compiler_gnu
3876DEPDIR="${am__leading_dot}deps"
3877
3878ac_config_commands="$ac_config_commands depfiles"
3879
3880
3881am_make=${MAKE-make}
3882cat > confinc << 'END'
3883am__doit:
3884        @echo this is the am__doit target
3885.PHONY: am__doit
3886END
3887# If we don't find an include directive, just comment out the code.
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3889$as_echo_n "checking for style of include used by $am_make... " >&6; }
3890am__include="#"
3891am__quote=
3892_am_result=none
3893# First try GNU make style include.
3894echo "include confinc" > confmf
3895# Ignore all kinds of additional output from `make'.
3896case `$am_make -s -f confmf 2> /dev/null` in #(
3897*the\ am__doit\ target*)
3898  am__include=include
3899  am__quote=
3900  _am_result=GNU
3901  ;;
3902esac
3903# Now try BSD make style include.
3904if test "$am__include" = "#"; then
3905   echo '.include "confinc"' > confmf
3906   case `$am_make -s -f confmf 2> /dev/null` in #(
3907   *the\ am__doit\ target*)
3908     am__include=.include
3909     am__quote="\""
3910     _am_result=BSD
3911     ;;
3912   esac
3913fi
3914
3915
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3917$as_echo "$_am_result" >&6; }
3918rm -f confinc confmf
3919
3920# Check whether --enable-dependency-tracking was given.
3921if test "${enable_dependency_tracking+set}" = set; then :
3922  enableval=$enable_dependency_tracking;
3923fi
3924
3925if test "x$enable_dependency_tracking" != xno; then
3926  am_depcomp="$ac_aux_dir/depcomp"
3927  AMDEPBACKSLASH='\'
3928fi
3929 if test "x$enable_dependency_tracking" != xno; then
3930  AMDEP_TRUE=
3931  AMDEP_FALSE='#'
3932else
3933  AMDEP_TRUE='#'
3934  AMDEP_FALSE=
3935fi
3936
3937
3938
3939depcc="$CXX"  am_compiler_list=
3940
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3942$as_echo_n "checking dependency style of $depcc... " >&6; }
3943if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3944  $as_echo_n "(cached) " >&6
3945else
3946  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3947  # We make a subdir and do the tests there.  Otherwise we can end up
3948  # making bogus files that we don't know about and never remove.  For
3949  # instance it was reported that on HP-UX the gcc test will end up
3950  # making a dummy file named `D' -- because `-MD' means `put the output
3951  # in D'.
3952  mkdir conftest.dir
3953  # Copy depcomp to subdir because otherwise we won't find it if we're
3954  # using a relative directory.
3955  cp "$am_depcomp" conftest.dir
3956  cd conftest.dir
3957  # We will build objects and dependencies in a subdirectory because
3958  # it helps to detect inapplicable dependency modes.  For instance
3959  # both Tru64's cc and ICC support -MD to output dependencies as a
3960  # side effect of compilation, but ICC will put the dependencies in
3961  # the current directory while Tru64 will put them in the object
3962  # directory.
3963  mkdir sub
3964
3965  am_cv_CXX_dependencies_compiler_type=none
3966  if test "$am_compiler_list" = ""; then
3967     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3968  fi
3969  am__universal=false
3970  case " $depcc " in #(
3971     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3972     esac
3973
3974  for depmode in $am_compiler_list; do
3975    # Setup a source with many dependencies, because some compilers
3976    # like to wrap large dependency lists on column 80 (with \), and
3977    # we should not choose a depcomp mode which is confused by this.
3978    #
3979    # We need to recreate these files for each test, as the compiler may
3980    # overwrite some of them when testing with obscure command lines.
3981    # This happens at least with the AIX C compiler.
3982    : > sub/conftest.c
3983    for i in 1 2 3 4 5 6; do
3984      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3985      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3986      # Solaris 8's {/usr,}/bin/sh.
3987      touch sub/conftst$i.h
3988    done
3989    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3990
3991    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3992    # mode.  It turns out that the SunPro C++ compiler does not properly
3993    # handle `-M -o', and we need to detect this.  Also, some Intel
3994    # versions had trouble with output in subdirs
3995    am__obj=sub/conftest.${OBJEXT-o}
3996    am__minus_obj="-o $am__obj"
3997    case $depmode in
3998    gcc)
3999      # This depmode causes a compiler race in universal mode.
4000      test "$am__universal" = false || continue
4001      ;;
4002    nosideeffect)
4003      # after this tag, mechanisms are not by side-effect, so they'll
4004      # only be used when explicitly requested
4005      if test "x$enable_dependency_tracking" = xyes; then
4006        continue
4007      else
4008        break
4009      fi
4010      ;;
4011    msvisualcpp | msvcmsys)
4012      # This compiler won't grok `-c -o', but also, the minuso test has
4013      # not run yet.  These depmodes are late enough in the game, and
4014      # so weak that their functioning should not be impacted.
4015      am__obj=conftest.${OBJEXT-o}
4016      am__minus_obj=
4017      ;;
4018    none) break ;;
4019    esac
4020    if depmode=$depmode \
4021       source=sub/conftest.c object=$am__obj \
4022       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4023       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4024         >/dev/null 2>conftest.err &&
4025       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4026       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4027       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4028       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4029      # icc doesn't choke on unknown options, it will just issue warnings
4030      # or remarks (even with -Werror).  So we grep stderr for any message
4031      # that says an option was ignored or not supported.
4032      # When given -MP, icc 7.0 and 7.1 complain thusly:
4033      #   icc: Command line warning: ignoring option '-M'; no argument required
4034      # The diagnosis changed in icc 8.0:
4035      #   icc: Command line remark: option '-MP' not supported
4036      if (grep 'ignoring option' conftest.err ||
4037          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4038        am_cv_CXX_dependencies_compiler_type=$depmode
4039        break
4040      fi
4041    fi
4042  done
4043
4044  cd ..
4045  rm -rf conftest.dir
4046else
4047  am_cv_CXX_dependencies_compiler_type=none
4048fi
4049
4050fi
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4052$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4053CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4054
4055 if
4056  test "x$enable_dependency_tracking" != xno \
4057  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4058  am__fastdepCXX_TRUE=
4059  am__fastdepCXX_FALSE='#'
4060else
4061  am__fastdepCXX_TRUE='#'
4062  am__fastdepCXX_FALSE=
4063fi
4064
4065
4066ac_ext=c
4067ac_cpp='$CPP $CPPFLAGS'
4068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070ac_compiler_gnu=$ac_cv_c_compiler_gnu
4071if test -n "$ac_tool_prefix"; then
4072  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4073set dummy ${ac_tool_prefix}gcc; ac_word=$2
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4075$as_echo_n "checking for $ac_word... " >&6; }
4076if ${ac_cv_prog_CC+:} false; then :
4077  $as_echo_n "(cached) " >&6
4078else
4079  if test -n "$CC"; then
4080  ac_cv_prog_CC="$CC" # Let the user override the test.
4081else
4082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083for as_dir in $PATH
4084do
4085  IFS=$as_save_IFS
4086  test -z "$as_dir" && as_dir=.
4087    for ac_exec_ext in '' $ac_executable_extensions; do
4088  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4089    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4091    break 2
4092  fi
4093done
4094  done
4095IFS=$as_save_IFS
4096
4097fi
4098fi
4099CC=$ac_cv_prog_CC
4100if test -n "$CC"; then
4101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4102$as_echo "$CC" >&6; }
4103else
4104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4105$as_echo "no" >&6; }
4106fi
4107
4108
4109fi
4110if test -z "$ac_cv_prog_CC"; then
4111  ac_ct_CC=$CC
4112  # Extract the first word of "gcc", so it can be a program name with args.
4113set dummy gcc; ac_word=$2
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4115$as_echo_n "checking for $ac_word... " >&6; }
4116if ${ac_cv_prog_ac_ct_CC+:} false; then :
4117  $as_echo_n "(cached) " >&6
4118else
4119  if test -n "$ac_ct_CC"; then
4120  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4121else
4122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123for as_dir in $PATH
4124do
4125  IFS=$as_save_IFS
4126  test -z "$as_dir" && as_dir=.
4127    for ac_exec_ext in '' $ac_executable_extensions; do
4128  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4129    ac_cv_prog_ac_ct_CC="gcc"
4130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4131    break 2
4132  fi
4133done
4134  done
4135IFS=$as_save_IFS
4136
4137fi
4138fi
4139ac_ct_CC=$ac_cv_prog_ac_ct_CC
4140if test -n "$ac_ct_CC"; then
4141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4142$as_echo "$ac_ct_CC" >&6; }
4143else
4144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145$as_echo "no" >&6; }
4146fi
4147
4148  if test "x$ac_ct_CC" = x; then
4149    CC=""
4150  else
4151    case $cross_compiling:$ac_tool_warned in
4152yes:)
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4155ac_tool_warned=yes ;;
4156esac
4157    CC=$ac_ct_CC
4158  fi
4159else
4160  CC="$ac_cv_prog_CC"
4161fi
4162
4163if test -z "$CC"; then
4164          if test -n "$ac_tool_prefix"; then
4165    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4166set dummy ${ac_tool_prefix}cc; ac_word=$2
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168$as_echo_n "checking for $ac_word... " >&6; }
4169if ${ac_cv_prog_CC+:} false; then :
4170  $as_echo_n "(cached) " >&6
4171else
4172  if test -n "$CC"; then
4173  ac_cv_prog_CC="$CC" # Let the user override the test.
4174else
4175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176for as_dir in $PATH
4177do
4178  IFS=$as_save_IFS
4179  test -z "$as_dir" && as_dir=.
4180    for ac_exec_ext in '' $ac_executable_extensions; do
4181  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4182    ac_cv_prog_CC="${ac_tool_prefix}cc"
4183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184    break 2
4185  fi
4186done
4187  done
4188IFS=$as_save_IFS
4189
4190fi
4191fi
4192CC=$ac_cv_prog_CC
4193if test -n "$CC"; then
4194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4195$as_echo "$CC" >&6; }
4196else
4197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198$as_echo "no" >&6; }
4199fi
4200
4201
4202  fi
4203fi
4204if test -z "$CC"; then
4205  # Extract the first word of "cc", so it can be a program name with args.
4206set dummy cc; ac_word=$2
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208$as_echo_n "checking for $ac_word... " >&6; }
4209if ${ac_cv_prog_CC+:} false; then :
4210  $as_echo_n "(cached) " >&6
4211else
4212  if test -n "$CC"; then
4213  ac_cv_prog_CC="$CC" # Let the user override the test.
4214else
4215  ac_prog_rejected=no
4216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217for as_dir in $PATH
4218do
4219  IFS=$as_save_IFS
4220  test -z "$as_dir" && as_dir=.
4221    for ac_exec_ext in '' $ac_executable_extensions; do
4222  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4223    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4224       ac_prog_rejected=yes
4225       continue
4226     fi
4227    ac_cv_prog_CC="cc"
4228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229    break 2
4230  fi
4231done
4232  done
4233IFS=$as_save_IFS
4234
4235if test $ac_prog_rejected = yes; then
4236  # We found a bogon in the path, so make sure we never use it.
4237  set dummy $ac_cv_prog_CC
4238  shift
4239  if test $# != 0; then
4240    # We chose a different compiler from the bogus one.
4241    # However, it has the same basename, so the bogon will be chosen
4242    # first if we set CC to just the basename; use the full file name.
4243    shift
4244    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4245  fi
4246fi
4247fi
4248fi
4249CC=$ac_cv_prog_CC
4250if test -n "$CC"; then
4251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4252$as_echo "$CC" >&6; }
4253else
4254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255$as_echo "no" >&6; }
4256fi
4257
4258
4259fi
4260if test -z "$CC"; then
4261  if test -n "$ac_tool_prefix"; then
4262  for ac_prog in cl.exe
4263  do
4264    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4265set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267$as_echo_n "checking for $ac_word... " >&6; }
4268if ${ac_cv_prog_CC+:} false; then :
4269  $as_echo_n "(cached) " >&6
4270else
4271  if test -n "$CC"; then
4272  ac_cv_prog_CC="$CC" # Let the user override the test.
4273else
4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277  IFS=$as_save_IFS
4278  test -z "$as_dir" && as_dir=.
4279    for ac_exec_ext in '' $ac_executable_extensions; do
4280  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283    break 2
4284  fi
4285done
4286  done
4287IFS=$as_save_IFS
4288
4289fi
4290fi
4291CC=$ac_cv_prog_CC
4292if test -n "$CC"; then
4293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4294$as_echo "$CC" >&6; }
4295else
4296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297$as_echo "no" >&6; }
4298fi
4299
4300
4301    test -n "$CC" && break
4302  done
4303fi
4304if test -z "$CC"; then
4305  ac_ct_CC=$CC
4306  for ac_prog in cl.exe
4307do
4308  # Extract the first word of "$ac_prog", so it can be a program name with args.
4309set dummy $ac_prog; ac_word=$2
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4311$as_echo_n "checking for $ac_word... " >&6; }
4312if ${ac_cv_prog_ac_ct_CC+:} false; then :
4313  $as_echo_n "(cached) " >&6
4314else
4315  if test -n "$ac_ct_CC"; then
4316  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4317else
4318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319for as_dir in $PATH
4320do
4321  IFS=$as_save_IFS
4322  test -z "$as_dir" && as_dir=.
4323    for ac_exec_ext in '' $ac_executable_extensions; do
4324  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4325    ac_cv_prog_ac_ct_CC="$ac_prog"
4326    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327    break 2
4328  fi
4329done
4330  done
4331IFS=$as_save_IFS
4332
4333fi
4334fi
4335ac_ct_CC=$ac_cv_prog_ac_ct_CC
4336if test -n "$ac_ct_CC"; then
4337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4338$as_echo "$ac_ct_CC" >&6; }
4339else
4340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341$as_echo "no" >&6; }
4342fi
4343
4344
4345  test -n "$ac_ct_CC" && break
4346done
4347
4348  if test "x$ac_ct_CC" = x; then
4349    CC=""
4350  else
4351    case $cross_compiling:$ac_tool_warned in
4352yes:)
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4355ac_tool_warned=yes ;;
4356esac
4357    CC=$ac_ct_CC
4358  fi
4359fi
4360
4361fi
4362
4363
4364test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4366as_fn_error $? "no acceptable C compiler found in \$PATH
4367See \`config.log' for more details" "$LINENO" 5; }
4368
4369# Provide some information about the compiler.
4370$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4371set X $ac_compile
4372ac_compiler=$2
4373for ac_option in --version -v -V -qversion; do
4374  { { ac_try="$ac_compiler $ac_option >&5"
4375case "(($ac_try" in
4376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377  *) ac_try_echo=$ac_try;;
4378esac
4379eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4380$as_echo "$ac_try_echo"; } >&5
4381  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4382  ac_status=$?
4383  if test -s conftest.err; then
4384    sed '10a\
4385... rest of stderr output deleted ...
4386         10q' conftest.err >conftest.er1
4387    cat conftest.er1 >&5
4388  fi
4389  rm -f conftest.er1 conftest.err
4390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391  test $ac_status = 0; }
4392done
4393
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4395$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4396if ${ac_cv_c_compiler_gnu+:} false; then :
4397  $as_echo_n "(cached) " >&6
4398else
4399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400/* end confdefs.h.  */
4401
4402int
4403main ()
4404{
4405#ifndef __GNUC__
4406       choke me
4407#endif
4408
4409  ;
4410  return 0;
4411}
4412_ACEOF
4413if ac_fn_c_try_compile "$LINENO"; then :
4414  ac_compiler_gnu=yes
4415else
4416  ac_compiler_gnu=no
4417fi
4418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419ac_cv_c_compiler_gnu=$ac_compiler_gnu
4420
4421fi
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4423$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4424if test $ac_compiler_gnu = yes; then
4425  GCC=yes
4426else
4427  GCC=
4428fi
4429ac_test_CFLAGS=${CFLAGS+set}
4430ac_save_CFLAGS=$CFLAGS
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4432$as_echo_n "checking whether $CC accepts -g... " >&6; }
4433if ${ac_cv_prog_cc_g+:} false; then :
4434  $as_echo_n "(cached) " >&6
4435else
4436  ac_save_c_werror_flag=$ac_c_werror_flag
4437   ac_c_werror_flag=yes
4438   ac_cv_prog_cc_g=no
4439   CFLAGS="-g"
4440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441/* end confdefs.h.  */
4442
4443int
4444main ()
4445{
4446
4447  ;
4448  return 0;
4449}
4450_ACEOF
4451if ac_fn_c_try_compile "$LINENO"; then :
4452  ac_cv_prog_cc_g=yes
4453else
4454  CFLAGS=""
4455      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456/* end confdefs.h.  */
4457
4458int
4459main ()
4460{
4461
4462  ;
4463  return 0;
4464}
4465_ACEOF
4466if ac_fn_c_try_compile "$LINENO"; then :
4467
4468else
4469  ac_c_werror_flag=$ac_save_c_werror_flag
4470         CFLAGS="-g"
4471         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472/* end confdefs.h.  */
4473
4474int
4475main ()
4476{
4477
4478  ;
4479  return 0;
4480}
4481_ACEOF
4482if ac_fn_c_try_compile "$LINENO"; then :
4483  ac_cv_prog_cc_g=yes
4484fi
4485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486fi
4487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488fi
4489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490   ac_c_werror_flag=$ac_save_c_werror_flag
4491fi
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4493$as_echo "$ac_cv_prog_cc_g" >&6; }
4494if test "$ac_test_CFLAGS" = set; then
4495  CFLAGS=$ac_save_CFLAGS
4496elif test $ac_cv_prog_cc_g = yes; then
4497  if test "$GCC" = yes; then
4498    CFLAGS="-g -O2"
4499  else
4500    CFLAGS="-g"
4501  fi
4502else
4503  if test "$GCC" = yes; then
4504    CFLAGS="-O2"
4505  else
4506    CFLAGS=
4507  fi
4508fi
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4510$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4511if ${ac_cv_prog_cc_c89+:} false; then :
4512  $as_echo_n "(cached) " >&6
4513else
4514  ac_cv_prog_cc_c89=no
4515ac_save_CC=$CC
4516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517/* end confdefs.h.  */
4518#include <stdarg.h>
4519#include <stdio.h>
4520#include <sys/types.h>
4521#include <sys/stat.h>
4522/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4523struct buf { int x; };
4524FILE * (*rcsopen) (struct buf *, struct stat *, int);
4525static char *e (p, i)
4526     char **p;
4527     int i;
4528{
4529  return p[i];
4530}
4531static char *f (char * (*g) (char **, int), char **p, ...)
4532{
4533  char *s;
4534  va_list v;
4535  va_start (v,p);
4536  s = g (p, va_arg (v,int));
4537  va_end (v);
4538  return s;
4539}
4540
4541/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4542   function prototypes and stuff, but not '\xHH' hex character constants.
4543   These don't provoke an error unfortunately, instead are silently treated
4544   as 'x'.  The following induces an error, until -std is added to get
4545   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4546   array size at least.  It's necessary to write '\x00'==0 to get something
4547   that's true only with -std.  */
4548int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4549
4550/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4551   inside strings and character constants.  */
4552#define FOO(x) 'x'
4553int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4554
4555int test (int i, double x);
4556struct s1 {int (*f) (int a);};
4557struct s2 {int (*f) (double a);};
4558int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4559int argc;
4560char **argv;
4561int
4562main ()
4563{
4564return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4565  ;
4566  return 0;
4567}
4568_ACEOF
4569for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4570        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4571do
4572  CC="$ac_save_CC $ac_arg"
4573  if ac_fn_c_try_compile "$LINENO"; then :
4574  ac_cv_prog_cc_c89=$ac_arg
4575fi
4576rm -f core conftest.err conftest.$ac_objext
4577  test "x$ac_cv_prog_cc_c89" != "xno" && break
4578done
4579rm -f conftest.$ac_ext
4580CC=$ac_save_CC
4581
4582fi
4583# AC_CACHE_VAL
4584case "x$ac_cv_prog_cc_c89" in
4585  x)
4586    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4587$as_echo "none needed" >&6; } ;;
4588  xno)
4589    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4590$as_echo "unsupported" >&6; } ;;
4591  *)
4592    CC="$CC $ac_cv_prog_cc_c89"
4593    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4594$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4595esac
4596if test "x$ac_cv_prog_cc_c89" != xno; then :
4597
4598fi
4599
4600ac_ext=c
4601ac_cpp='$CPP $CPPFLAGS'
4602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604ac_compiler_gnu=$ac_cv_c_compiler_gnu
4605
4606depcc="$CC"   am_compiler_list=
4607
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4609$as_echo_n "checking dependency style of $depcc... " >&6; }
4610if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4611  $as_echo_n "(cached) " >&6
4612else
4613  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4614  # We make a subdir and do the tests there.  Otherwise we can end up
4615  # making bogus files that we don't know about and never remove.  For
4616  # instance it was reported that on HP-UX the gcc test will end up
4617  # making a dummy file named `D' -- because `-MD' means `put the output
4618  # in D'.
4619  mkdir conftest.dir
4620  # Copy depcomp to subdir because otherwise we won't find it if we're
4621  # using a relative directory.
4622  cp "$am_depcomp" conftest.dir
4623  cd conftest.dir
4624  # We will build objects and dependencies in a subdirectory because
4625  # it helps to detect inapplicable dependency modes.  For instance
4626  # both Tru64's cc and ICC support -MD to output dependencies as a
4627  # side effect of compilation, but ICC will put the dependencies in
4628  # the current directory while Tru64 will put them in the object
4629  # directory.
4630  mkdir sub
4631
4632  am_cv_CC_dependencies_compiler_type=none
4633  if test "$am_compiler_list" = ""; then
4634     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4635  fi
4636  am__universal=false
4637  case " $depcc " in #(
4638     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4639     esac
4640
4641  for depmode in $am_compiler_list; do
4642    # Setup a source with many dependencies, because some compilers
4643    # like to wrap large dependency lists on column 80 (with \), and
4644    # we should not choose a depcomp mode which is confused by this.
4645    #
4646    # We need to recreate these files for each test, as the compiler may
4647    # overwrite some of them when testing with obscure command lines.
4648    # This happens at least with the AIX C compiler.
4649    : > sub/conftest.c
4650    for i in 1 2 3 4 5 6; do
4651      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4652      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4653      # Solaris 8's {/usr,}/bin/sh.
4654      touch sub/conftst$i.h
4655    done
4656    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4657
4658    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4659    # mode.  It turns out that the SunPro C++ compiler does not properly
4660    # handle `-M -o', and we need to detect this.  Also, some Intel
4661    # versions had trouble with output in subdirs
4662    am__obj=sub/conftest.${OBJEXT-o}
4663    am__minus_obj="-o $am__obj"
4664    case $depmode in
4665    gcc)
4666      # This depmode causes a compiler race in universal mode.
4667      test "$am__universal" = false || continue
4668      ;;
4669    nosideeffect)
4670      # after this tag, mechanisms are not by side-effect, so they'll
4671      # only be used when explicitly requested
4672      if test "x$enable_dependency_tracking" = xyes; then
4673        continue
4674      else
4675        break
4676      fi
4677      ;;
4678    msvisualcpp | msvcmsys)
4679      # This compiler won't grok `-c -o', but also, the minuso test has
4680      # not run yet.  These depmodes are late enough in the game, and
4681      # so weak that their functioning should not be impacted.
4682      am__obj=conftest.${OBJEXT-o}
4683      am__minus_obj=
4684      ;;
4685    none) break ;;
4686    esac
4687    if depmode=$depmode \
4688       source=sub/conftest.c object=$am__obj \
4689       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4690       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4691         >/dev/null 2>conftest.err &&
4692       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4693       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4694       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4695       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4696      # icc doesn't choke on unknown options, it will just issue warnings
4697      # or remarks (even with -Werror).  So we grep stderr for any message
4698      # that says an option was ignored or not supported.
4699      # When given -MP, icc 7.0 and 7.1 complain thusly:
4700      #   icc: Command line warning: ignoring option '-M'; no argument required
4701      # The diagnosis changed in icc 8.0:
4702      #   icc: Command line remark: option '-MP' not supported
4703      if (grep 'ignoring option' conftest.err ||
4704          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4705        am_cv_CC_dependencies_compiler_type=$depmode
4706        break
4707      fi
4708    fi
4709  done
4710
4711  cd ..
4712  rm -rf conftest.dir
4713else
4714  am_cv_CC_dependencies_compiler_type=none
4715fi
4716
4717fi
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4719$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4720CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4721
4722 if
4723  test "x$enable_dependency_tracking" != xno \
4724  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4725  am__fastdepCC_TRUE=
4726  am__fastdepCC_FALSE='#'
4727else
4728  am__fastdepCC_TRUE='#'
4729  am__fastdepCC_FALSE=
4730fi
4731
4732
4733ac_ext=c
4734ac_cpp='$CPP $CPPFLAGS'
4735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4737ac_compiler_gnu=$ac_cv_c_compiler_gnu
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4739$as_echo_n "checking how to run the C preprocessor... " >&6; }
4740# On Suns, sometimes $CPP names a directory.
4741if test -n "$CPP" && test -d "$CPP"; then
4742  CPP=
4743fi
4744if test -z "$CPP"; then
4745  if ${ac_cv_prog_CPP+:} false; then :
4746  $as_echo_n "(cached) " >&6
4747else
4748      # Double quotes because CPP needs to be expanded
4749    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4750    do
4751      ac_preproc_ok=false
4752for ac_c_preproc_warn_flag in '' yes
4753do
4754  # Use a header file that comes with gcc, so configuring glibc
4755  # with a fresh cross-compiler works.
4756  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4757  # <limits.h> exists even on freestanding compilers.
4758  # On the NeXT, cc -E runs the code through the compiler's parser,
4759  # not just through cpp. "Syntax error" is here to catch this case.
4760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761/* end confdefs.h.  */
4762#ifdef __STDC__
4763# include <limits.h>
4764#else
4765# include <assert.h>
4766#endif
4767                     Syntax error
4768_ACEOF
4769if ac_fn_c_try_cpp "$LINENO"; then :
4770
4771else
4772  # Broken: fails on valid input.
4773continue
4774fi
4775rm -f conftest.err conftest.i conftest.$ac_ext
4776
4777  # OK, works on sane cases.  Now check whether nonexistent headers
4778  # can be detected and how.
4779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780/* end confdefs.h.  */
4781#include <ac_nonexistent.h>
4782_ACEOF
4783if ac_fn_c_try_cpp "$LINENO"; then :
4784  # Broken: success on invalid input.
4785continue
4786else
4787  # Passes both tests.
4788ac_preproc_ok=:
4789break
4790fi
4791rm -f conftest.err conftest.i conftest.$ac_ext
4792
4793done
4794# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4795rm -f conftest.i conftest.err conftest.$ac_ext
4796if $ac_preproc_ok; then :
4797  break
4798fi
4799
4800    done
4801    ac_cv_prog_CPP=$CPP
4802
4803fi
4804  CPP=$ac_cv_prog_CPP
4805else
4806  ac_cv_prog_CPP=$CPP
4807fi
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4809$as_echo "$CPP" >&6; }
4810ac_preproc_ok=false
4811for ac_c_preproc_warn_flag in '' yes
4812do
4813  # Use a header file that comes with gcc, so configuring glibc
4814  # with a fresh cross-compiler works.
4815  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4816  # <limits.h> exists even on freestanding compilers.
4817  # On the NeXT, cc -E runs the code through the compiler's parser,
4818  # not just through cpp. "Syntax error" is here to catch this case.
4819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820/* end confdefs.h.  */
4821#ifdef __STDC__
4822# include <limits.h>
4823#else
4824# include <assert.h>
4825#endif
4826                     Syntax error
4827_ACEOF
4828if ac_fn_c_try_cpp "$LINENO"; then :
4829
4830else
4831  # Broken: fails on valid input.
4832continue
4833fi
4834rm -f conftest.err conftest.i conftest.$ac_ext
4835
4836  # OK, works on sane cases.  Now check whether nonexistent headers
4837  # can be detected and how.
4838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839/* end confdefs.h.  */
4840#include <ac_nonexistent.h>
4841_ACEOF
4842if ac_fn_c_try_cpp "$LINENO"; then :
4843  # Broken: success on invalid input.
4844continue
4845else
4846  # Passes both tests.
4847ac_preproc_ok=:
4848break
4849fi
4850rm -f conftest.err conftest.i conftest.$ac_ext
4851
4852done
4853# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4854rm -f conftest.i conftest.err conftest.$ac_ext
4855if $ac_preproc_ok; then :
4856
4857else
4858  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4860as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4861See \`config.log' for more details" "$LINENO" 5; }
4862fi
4863
4864ac_ext=c
4865ac_cpp='$CPP $CPPFLAGS'
4866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4868ac_compiler_gnu=$ac_cv_c_compiler_gnu
4869
4870
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4872$as_echo_n "checking whether ln -s works... " >&6; }
4873LN_S=$as_ln_s
4874if test "$LN_S" = "ln -s"; then
4875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4876$as_echo "yes" >&6; }
4877else
4878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4879$as_echo "no, using $LN_S" >&6; }
4880fi
4881
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4883$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4884set x ${MAKE-make}
4885ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4886if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4887  $as_echo_n "(cached) " >&6
4888else
4889  cat >conftest.make <<\_ACEOF
4890SHELL = /bin/sh
4891all:
4892        @echo '@@@%%%=$(MAKE)=@@@%%%'
4893_ACEOF
4894# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4895case `${MAKE-make} -f conftest.make 2>/dev/null` in
4896  *@@@%%%=?*=@@@%%%*)
4897    eval ac_cv_prog_make_${ac_make}_set=yes;;
4898  *)
4899    eval ac_cv_prog_make_${ac_make}_set=no;;
4900esac
4901rm -f conftest.make
4902fi
4903if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4905$as_echo "yes" >&6; }
4906  SET_MAKE=
4907else
4908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909$as_echo "no" >&6; }
4910  SET_MAKE="MAKE=${MAKE-make}"
4911fi
4912
4913# Make sure we can run config.sub.
4914$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4915  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4916
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4918$as_echo_n "checking build system type... " >&6; }
4919if ${ac_cv_build+:} false; then :
4920  $as_echo_n "(cached) " >&6
4921else
4922  ac_build_alias=$build_alias
4923test "x$ac_build_alias" = x &&
4924  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4925test "x$ac_build_alias" = x &&
4926  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4927ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4928  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4929
4930fi
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4932$as_echo "$ac_cv_build" >&6; }
4933case $ac_cv_build in
4934*-*-*) ;;
4935*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4936esac
4937build=$ac_cv_build
4938ac_save_IFS=$IFS; IFS='-'
4939set x $ac_cv_build
4940shift
4941build_cpu=$1
4942build_vendor=$2
4943shift; shift
4944# Remember, the first character of IFS is used to create $*,
4945# except with old shells:
4946build_os=$*
4947IFS=$ac_save_IFS
4948case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4949
4950
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4952$as_echo_n "checking host system type... " >&6; }
4953if ${ac_cv_host+:} false; then :
4954  $as_echo_n "(cached) " >&6
4955else
4956  if test "x$host_alias" = x; then
4957  ac_cv_host=$ac_cv_build
4958else
4959  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4960    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4961fi
4962
4963fi
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4965$as_echo "$ac_cv_host" >&6; }
4966case $ac_cv_host in
4967*-*-*) ;;
4968*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4969esac
4970host=$ac_cv_host
4971ac_save_IFS=$IFS; IFS='-'
4972set x $ac_cv_host
4973shift
4974host_cpu=$1
4975host_vendor=$2
4976shift; shift
4977# Remember, the first character of IFS is used to create $*,
4978# except with old shells:
4979host_os=$*
4980IFS=$ac_save_IFS
4981case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4982
4983
4984enable_win32_dll=yes
4985
4986case $host in
4987*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4988  if test -n "$ac_tool_prefix"; then
4989  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4990set dummy ${ac_tool_prefix}as; ac_word=$2
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992$as_echo_n "checking for $ac_word... " >&6; }
4993if ${ac_cv_prog_AS+:} false; then :
4994  $as_echo_n "(cached) " >&6
4995else
4996  if test -n "$AS"; then
4997  ac_cv_prog_AS="$AS" # Let the user override the test.
4998else
4999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000for as_dir in $PATH
5001do
5002  IFS=$as_save_IFS
5003  test -z "$as_dir" && as_dir=.
5004    for ac_exec_ext in '' $ac_executable_extensions; do
5005  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5006    ac_cv_prog_AS="${ac_tool_prefix}as"
5007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008    break 2
5009  fi
5010done
5011  done
5012IFS=$as_save_IFS
5013
5014fi
5015fi
5016AS=$ac_cv_prog_AS
5017if test -n "$AS"; then
5018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5019$as_echo "$AS" >&6; }
5020else
5021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022$as_echo "no" >&6; }
5023fi
5024
5025
5026fi
5027if test -z "$ac_cv_prog_AS"; then
5028  ac_ct_AS=$AS
5029  # Extract the first word of "as", so it can be a program name with args.
5030set dummy as; ac_word=$2
5031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032$as_echo_n "checking for $ac_word... " >&6; }
5033if ${ac_cv_prog_ac_ct_AS+:} false; then :
5034  $as_echo_n "(cached) " >&6
5035else
5036  if test -n "$ac_ct_AS"; then
5037  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5038else
5039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040for as_dir in $PATH
5041do
5042  IFS=$as_save_IFS
5043  test -z "$as_dir" && as_dir=.
5044    for ac_exec_ext in '' $ac_executable_extensions; do
5045  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046    ac_cv_prog_ac_ct_AS="as"
5047    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048    break 2
5049  fi
5050done
5051  done
5052IFS=$as_save_IFS
5053
5054fi
5055fi
5056ac_ct_AS=$ac_cv_prog_ac_ct_AS
5057if test -n "$ac_ct_AS"; then
5058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5059$as_echo "$ac_ct_AS" >&6; }
5060else
5061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062$as_echo "no" >&6; }
5063fi
5064
5065  if test "x$ac_ct_AS" = x; then
5066    AS="false"
5067  else
5068    case $cross_compiling:$ac_tool_warned in
5069yes:)
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5072ac_tool_warned=yes ;;
5073esac
5074    AS=$ac_ct_AS
5075  fi
5076else
5077  AS="$ac_cv_prog_AS"
5078fi
5079
5080  if test -n "$ac_tool_prefix"; then
5081  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5082set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084$as_echo_n "checking for $ac_word... " >&6; }
5085if ${ac_cv_prog_DLLTOOL+:} false; then :
5086  $as_echo_n "(cached) " >&6
5087else
5088  if test -n "$DLLTOOL"; then
5089  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5090else
5091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092for as_dir in $PATH
5093do
5094  IFS=$as_save_IFS
5095  test -z "$as_dir" && as_dir=.
5096    for ac_exec_ext in '' $ac_executable_extensions; do
5097  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5098    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100    break 2
5101  fi
5102done
5103  done
5104IFS=$as_save_IFS
5105
5106fi
5107fi
5108DLLTOOL=$ac_cv_prog_DLLTOOL
5109if test -n "$DLLTOOL"; then
5110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5111$as_echo "$DLLTOOL" >&6; }
5112else
5113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114$as_echo "no" >&6; }
5115fi
5116
5117
5118fi
5119if test -z "$ac_cv_prog_DLLTOOL"; then
5120  ac_ct_DLLTOOL=$DLLTOOL
5121  # Extract the first word of "dlltool", so it can be a program name with args.
5122set dummy dlltool; ac_word=$2
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124$as_echo_n "checking for $ac_word... " >&6; }
5125if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5126  $as_echo_n "(cached) " >&6
5127else
5128  if test -n "$ac_ct_DLLTOOL"; then
5129  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5130else
5131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132for as_dir in $PATH
5133do
5134  IFS=$as_save_IFS
5135  test -z "$as_dir" && as_dir=.
5136    for ac_exec_ext in '' $ac_executable_extensions; do
5137  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140    break 2
5141  fi
5142done
5143  done
5144IFS=$as_save_IFS
5145
5146fi
5147fi
5148ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5149if test -n "$ac_ct_DLLTOOL"; then
5150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5151$as_echo "$ac_ct_DLLTOOL" >&6; }
5152else
5153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154$as_echo "no" >&6; }
5155fi
5156
5157  if test "x$ac_ct_DLLTOOL" = x; then
5158    DLLTOOL="false"
5159  else
5160    case $cross_compiling:$ac_tool_warned in
5161yes:)
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5164ac_tool_warned=yes ;;
5165esac
5166    DLLTOOL=$ac_ct_DLLTOOL
5167  fi
5168else
5169  DLLTOOL="$ac_cv_prog_DLLTOOL"
5170fi
5171
5172  if test -n "$ac_tool_prefix"; then
5173  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5174set dummy ${ac_tool_prefix}objdump; ac_word=$2
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176$as_echo_n "checking for $ac_word... " >&6; }
5177if ${ac_cv_prog_OBJDUMP+:} false; then :
5178  $as_echo_n "(cached) " >&6
5179else
5180  if test -n "$OBJDUMP"; then
5181  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5182else
5183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184for as_dir in $PATH
5185do
5186  IFS=$as_save_IFS
5187  test -z "$as_dir" && as_dir=.
5188    for ac_exec_ext in '' $ac_executable_extensions; do
5189  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5190    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192    break 2
5193  fi
5194done
5195  done
5196IFS=$as_save_IFS
5197
5198fi
5199fi
5200OBJDUMP=$ac_cv_prog_OBJDUMP
5201if test -n "$OBJDUMP"; then
5202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5203$as_echo "$OBJDUMP" >&6; }
5204else
5205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206$as_echo "no" >&6; }
5207fi
5208
5209
5210fi
5211if test -z "$ac_cv_prog_OBJDUMP"; then
5212  ac_ct_OBJDUMP=$OBJDUMP
5213  # Extract the first word of "objdump", so it can be a program name with args.
5214set dummy objdump; ac_word=$2
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5216$as_echo_n "checking for $ac_word... " >&6; }
5217if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5218  $as_echo_n "(cached) " >&6
5219else
5220  if test -n "$ac_ct_OBJDUMP"; then
5221  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5222else
5223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224for as_dir in $PATH
5225do
5226  IFS=$as_save_IFS
5227  test -z "$as_dir" && as_dir=.
5228    for ac_exec_ext in '' $ac_executable_extensions; do
5229  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5231    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5232    break 2
5233  fi
5234done
5235  done
5236IFS=$as_save_IFS
5237
5238fi
5239fi
5240ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5241if test -n "$ac_ct_OBJDUMP"; then
5242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5243$as_echo "$ac_ct_OBJDUMP" >&6; }
5244else
5245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246$as_echo "no" >&6; }
5247fi
5248
5249  if test "x$ac_ct_OBJDUMP" = x; then
5250    OBJDUMP="false"
5251  else
5252    case $cross_compiling:$ac_tool_warned in
5253yes:)
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5256ac_tool_warned=yes ;;
5257esac
5258    OBJDUMP=$ac_ct_OBJDUMP
5259  fi
5260else
5261  OBJDUMP="$ac_cv_prog_OBJDUMP"
5262fi
5263
5264  ;;
5265esac
5266
5267test -z "$AS" && AS=as
5268
5269
5270
5271
5272
5273test -z "$DLLTOOL" && DLLTOOL=dlltool
5274
5275
5276
5277
5278
5279test -z "$OBJDUMP" && OBJDUMP=objdump
5280
5281
5282
5283
5284
5285
5286
5287case `pwd` in
5288  *\ * | *\     *)
5289    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5290$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5291esac
5292
5293
5294
5295macro_version='2.2.6b'
5296macro_revision='1.3018'
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310ltmain="$ac_aux_dir/ltmain.sh"
5311
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5313$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5314if ${ac_cv_path_SED+:} false; then :
5315  $as_echo_n "(cached) " >&6
5316else
5317            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5318     for ac_i in 1 2 3 4 5 6 7; do
5319       ac_script="$ac_script$as_nl$ac_script"
5320     done
5321     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5322     { ac_script=; unset ac_script;}
5323     if test -z "$SED"; then
5324  ac_path_SED_found=false
5325  # Loop through the user's path and test for each of PROGNAME-LIST
5326  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327for as_dir in $PATH
5328do
5329  IFS=$as_save_IFS
5330  test -z "$as_dir" && as_dir=.
5331    for ac_prog in sed gsed; do
5332    for ac_exec_ext in '' $ac_executable_extensions; do
5333      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5334      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5335# Check for GNU ac_path_SED and select it if it is found.
5336  # Check for GNU $ac_path_SED
5337case `"$ac_path_SED" --version 2>&1` in
5338*GNU*)
5339  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5340*)
5341  ac_count=0
5342  $as_echo_n 0123456789 >"conftest.in"
5343  while :
5344  do
5345    cat "conftest.in" "conftest.in" >"conftest.tmp"
5346    mv "conftest.tmp" "conftest.in"
5347    cp "conftest.in" "conftest.nl"
5348    $as_echo '' >> "conftest.nl"
5349    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5350    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5351    as_fn_arith $ac_count + 1 && ac_count=$as_val
5352    if test $ac_count -gt ${ac_path_SED_max-0}; then
5353      # Best one so far, save it but keep looking for a better one
5354      ac_cv_path_SED="$ac_path_SED"
5355      ac_path_SED_max=$ac_count
5356    fi
5357    # 10*(2^10) chars as input seems more than enough
5358    test $ac_count -gt 10 && break
5359  done
5360  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5361esac
5362
5363      $ac_path_SED_found && break 3
5364    done
5365  done
5366  done
5367IFS=$as_save_IFS
5368  if test -z "$ac_cv_path_SED"; then
5369    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5370  fi
5371else
5372  ac_cv_path_SED=$SED
5373fi
5374
5375fi
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5377$as_echo "$ac_cv_path_SED" >&6; }
5378 SED="$ac_cv_path_SED"
5379  rm -f conftest.sed
5380
5381test -z "$SED" && SED=sed
5382Xsed="$SED -e 1s/^X//"
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5395$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5396if ${ac_cv_path_GREP+:} false; then :
5397  $as_echo_n "(cached) " >&6
5398else
5399  if test -z "$GREP"; then
5400  ac_path_GREP_found=false
5401  # Loop through the user's path and test for each of PROGNAME-LIST
5402  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5404do
5405  IFS=$as_save_IFS
5406  test -z "$as_dir" && as_dir=.
5407    for ac_prog in grep ggrep; do
5408    for ac_exec_ext in '' $ac_executable_extensions; do
5409      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5410      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5411# Check for GNU ac_path_GREP and select it if it is found.
5412  # Check for GNU $ac_path_GREP
5413case `"$ac_path_GREP" --version 2>&1` in
5414*GNU*)
5415  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5416*)
5417  ac_count=0
5418  $as_echo_n 0123456789 >"conftest.in"
5419  while :
5420  do
5421    cat "conftest.in" "conftest.in" >"conftest.tmp"
5422    mv "conftest.tmp" "conftest.in"
5423    cp "conftest.in" "conftest.nl"
5424    $as_echo 'GREP' >> "conftest.nl"
5425    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5426    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5427    as_fn_arith $ac_count + 1 && ac_count=$as_val
5428    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5429      # Best one so far, save it but keep looking for a better one
5430      ac_cv_path_GREP="$ac_path_GREP"
5431      ac_path_GREP_max=$ac_count
5432    fi
5433    # 10*(2^10) chars as input seems more than enough
5434    test $ac_count -gt 10 && break
5435  done
5436  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5437esac
5438
5439      $ac_path_GREP_found && break 3
5440    done
5441  done
5442  done
5443IFS=$as_save_IFS
5444  if test -z "$ac_cv_path_GREP"; then
5445    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5446  fi
5447else
5448  ac_cv_path_GREP=$GREP
5449fi
5450
5451fi
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5453$as_echo "$ac_cv_path_GREP" >&6; }
5454 GREP="$ac_cv_path_GREP"
5455
5456
5457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5458$as_echo_n "checking for egrep... " >&6; }
5459if ${ac_cv_path_EGREP+:} false; then :
5460  $as_echo_n "(cached) " >&6
5461else
5462  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5463   then ac_cv_path_EGREP="$GREP -E"
5464   else
5465     if test -z "$EGREP"; then
5466  ac_path_EGREP_found=false
5467  # Loop through the user's path and test for each of PROGNAME-LIST
5468  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5470do
5471  IFS=$as_save_IFS
5472  test -z "$as_dir" && as_dir=.
5473    for ac_prog in egrep; do
5474    for ac_exec_ext in '' $ac_executable_extensions; do
5475      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5476      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5477# Check for GNU ac_path_EGREP and select it if it is found.
5478  # Check for GNU $ac_path_EGREP
5479case `"$ac_path_EGREP" --version 2>&1` in
5480*GNU*)
5481  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5482*)
5483  ac_count=0
5484  $as_echo_n 0123456789 >"conftest.in"
5485  while :
5486  do
5487    cat "conftest.in" "conftest.in" >"conftest.tmp"
5488    mv "conftest.tmp" "conftest.in"
5489    cp "conftest.in" "conftest.nl"
5490    $as_echo 'EGREP' >> "conftest.nl"
5491    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5492    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5493    as_fn_arith $ac_count + 1 && ac_count=$as_val
5494    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5495      # Best one so far, save it but keep looking for a better one
5496      ac_cv_path_EGREP="$ac_path_EGREP"
5497      ac_path_EGREP_max=$ac_count
5498    fi
5499    # 10*(2^10) chars as input seems more than enough
5500    test $ac_count -gt 10 && break
5501  done
5502  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5503esac
5504
5505      $ac_path_EGREP_found && break 3
5506    done
5507  done
5508  done
5509IFS=$as_save_IFS
5510  if test -z "$ac_cv_path_EGREP"; then
5511    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5512  fi
5513else
5514  ac_cv_path_EGREP=$EGREP
5515fi
5516
5517   fi
5518fi
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5520$as_echo "$ac_cv_path_EGREP" >&6; }
5521 EGREP="$ac_cv_path_EGREP"
5522
5523
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5525$as_echo_n "checking for fgrep... " >&6; }
5526if ${ac_cv_path_FGREP+:} false; then :
5527  $as_echo_n "(cached) " >&6
5528else
5529  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5530   then ac_cv_path_FGREP="$GREP -F"
5531   else
5532     if test -z "$FGREP"; then
5533  ac_path_FGREP_found=false
5534  # Loop through the user's path and test for each of PROGNAME-LIST
5535  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5537do
5538  IFS=$as_save_IFS
5539  test -z "$as_dir" && as_dir=.
5540    for ac_prog in fgrep; do
5541    for ac_exec_ext in '' $ac_executable_extensions; do
5542      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5543      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5544# Check for GNU ac_path_FGREP and select it if it is found.
5545  # Check for GNU $ac_path_FGREP
5546case `"$ac_path_FGREP" --version 2>&1` in
5547*GNU*)
5548  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5549*)
5550  ac_count=0
5551  $as_echo_n 0123456789 >"conftest.in"
5552  while :
5553  do
5554    cat "conftest.in" "conftest.in" >"conftest.tmp"
5555    mv "conftest.tmp" "conftest.in"
5556    cp "conftest.in" "conftest.nl"
5557    $as_echo 'FGREP' >> "conftest.nl"
5558    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5559    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5560    as_fn_arith $ac_count + 1 && ac_count=$as_val
5561    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5562      # Best one so far, save it but keep looking for a better one
5563      ac_cv_path_FGREP="$ac_path_FGREP"
5564      ac_path_FGREP_max=$ac_count
5565    fi
5566    # 10*(2^10) chars as input seems more than enough
5567    test $ac_count -gt 10 && break
5568  done
5569  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5570esac
5571
5572      $ac_path_FGREP_found && break 3
5573    done
5574  done
5575  done
5576IFS=$as_save_IFS
5577  if test -z "$ac_cv_path_FGREP"; then
5578    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5579  fi
5580else
5581  ac_cv_path_FGREP=$FGREP
5582fi
5583
5584   fi
5585fi
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5587$as_echo "$ac_cv_path_FGREP" >&6; }
5588 FGREP="$ac_cv_path_FGREP"
5589
5590
5591test -z "$GREP" && GREP=grep
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611# Check whether --with-gnu-ld was given.
5612if test "${with_gnu_ld+set}" = set; then :
5613  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5614else
5615  with_gnu_ld=no
5616fi
5617
5618ac_prog=ld
5619if test "$GCC" = yes; then
5620  # Check if gcc -print-prog-name=ld gives a path.
5621  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5622$as_echo_n "checking for ld used by $CC... " >&6; }
5623  case $host in
5624  *-*-mingw*)
5625    # gcc leaves a trailing carriage return which upsets mingw
5626    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5627  *)
5628    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5629  esac
5630  case $ac_prog in
5631    # Accept absolute paths.
5632    [\\/]* | ?:[\\/]*)
5633      re_direlt='/[^/][^/]*/\.\./'
5634      # Canonicalize the pathname of ld
5635      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5636      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5637        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5638      done
5639      test -z "$LD" && LD="$ac_prog"
5640      ;;
5641  "")
5642    # If it fails, then pretend we aren't using GCC.
5643    ac_prog=ld
5644    ;;
5645  *)
5646    # If it is relative, then search for the first ld in PATH.
5647    with_gnu_ld=unknown
5648    ;;
5649  esac
5650elif test "$with_gnu_ld" = yes; then
5651  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5652$as_echo_n "checking for GNU ld... " >&6; }
5653else
5654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5655$as_echo_n "checking for non-GNU ld... " >&6; }
5656fi
5657if ${lt_cv_path_LD+:} false; then :
5658  $as_echo_n "(cached) " >&6
5659else
5660  if test -z "$LD"; then
5661  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5662  for ac_dir in $PATH; do
5663    IFS="$lt_save_ifs"
5664    test -z "$ac_dir" && ac_dir=.
5665    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5666      lt_cv_path_LD="$ac_dir/$ac_prog"
5667      # Check to see if the program is GNU ld.  I'd rather use --version,
5668      # but apparently some variants of GNU ld only accept -v.
5669      # Break only if it was the GNU/non-GNU ld that we prefer.
5670      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5671      *GNU* | *'with BFD'*)
5672        test "$with_gnu_ld" != no && break
5673        ;;
5674      *)
5675        test "$with_gnu_ld" != yes && break
5676        ;;
5677      esac
5678    fi
5679  done
5680  IFS="$lt_save_ifs"
5681else
5682  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5683fi
5684fi
5685
5686LD="$lt_cv_path_LD"
5687if test -n "$LD"; then
5688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5689$as_echo "$LD" >&6; }
5690else
5691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692$as_echo "no" >&6; }
5693fi
5694test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5696$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5697if ${lt_cv_prog_gnu_ld+:} false; then :
5698  $as_echo_n "(cached) " >&6
5699else
5700  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5701case `$LD -v 2>&1 </dev/null` in
5702*GNU* | *'with BFD'*)
5703  lt_cv_prog_gnu_ld=yes
5704  ;;
5705*)
5706  lt_cv_prog_gnu_ld=no
5707  ;;
5708esac
5709fi
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5711$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5712with_gnu_ld=$lt_cv_prog_gnu_ld
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5723$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5724if ${lt_cv_path_NM+:} false; then :
5725  $as_echo_n "(cached) " >&6
5726else
5727  if test -n "$NM"; then
5728  # Let the user override the test.
5729  lt_cv_path_NM="$NM"
5730else
5731  lt_nm_to_check="${ac_tool_prefix}nm"
5732  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5733    lt_nm_to_check="$lt_nm_to_check nm"
5734  fi
5735  for lt_tmp_nm in $lt_nm_to_check; do
5736    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5737    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5738      IFS="$lt_save_ifs"
5739      test -z "$ac_dir" && ac_dir=.
5740      tmp_nm="$ac_dir/$lt_tmp_nm"
5741      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5742        # Check to see if the nm accepts a BSD-compat flag.
5743        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5744        #   nm: unknown option "B" ignored
5745        # Tru64's nm complains that /dev/null is an invalid object file
5746        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5747        */dev/null* | *'Invalid file or object type'*)
5748          lt_cv_path_NM="$tmp_nm -B"
5749          break
5750          ;;
5751        *)
5752          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5753          */dev/null*)
5754            lt_cv_path_NM="$tmp_nm -p"
5755            break
5756            ;;
5757          *)
5758            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5759            continue # so that we can try to find one that supports BSD flags
5760            ;;
5761          esac
5762          ;;
5763        esac
5764      fi
5765    done
5766    IFS="$lt_save_ifs"
5767  done
5768  : ${lt_cv_path_NM=no}
5769fi
5770fi
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5772$as_echo "$lt_cv_path_NM" >&6; }
5773if test "$lt_cv_path_NM" != "no"; then
5774  NM="$lt_cv_path_NM"
5775else
5776  # Didn't find any BSD compatible name lister, look for dumpbin.
5777  if test -n "$ac_tool_prefix"; then
5778  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5779  do
5780    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5781set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5783$as_echo_n "checking for $ac_word... " >&6; }
5784if ${ac_cv_prog_DUMPBIN+:} false; then :
5785  $as_echo_n "(cached) " >&6
5786else
5787  if test -n "$DUMPBIN"; then
5788  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5789else
5790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791for as_dir in $PATH
5792do
5793  IFS=$as_save_IFS
5794  test -z "$as_dir" && as_dir=.
5795    for ac_exec_ext in '' $ac_executable_extensions; do
5796  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5797    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799    break 2
5800  fi
5801done
5802  done
5803IFS=$as_save_IFS
5804
5805fi
5806fi
5807DUMPBIN=$ac_cv_prog_DUMPBIN
5808if test -n "$DUMPBIN"; then
5809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5810$as_echo "$DUMPBIN" >&6; }
5811else
5812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813$as_echo "no" >&6; }
5814fi
5815
5816
5817    test -n "$DUMPBIN" && break
5818  done
5819fi
5820if test -z "$DUMPBIN"; then
5821  ac_ct_DUMPBIN=$DUMPBIN
5822  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5823do
5824  # Extract the first word of "$ac_prog", so it can be a program name with args.
5825set dummy $ac_prog; ac_word=$2
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827$as_echo_n "checking for $ac_word... " >&6; }
5828if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5829  $as_echo_n "(cached) " >&6
5830else
5831  if test -n "$ac_ct_DUMPBIN"; then
5832  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5833else
5834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835for as_dir in $PATH
5836do
5837  IFS=$as_save_IFS
5838  test -z "$as_dir" && as_dir=.
5839    for ac_exec_ext in '' $ac_executable_extensions; do
5840  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5842    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843    break 2
5844  fi
5845done
5846  done
5847IFS=$as_save_IFS
5848
5849fi
5850fi
5851ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5852if test -n "$ac_ct_DUMPBIN"; then
5853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5854$as_echo "$ac_ct_DUMPBIN" >&6; }
5855else
5856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857$as_echo "no" >&6; }
5858fi
5859
5860
5861  test -n "$ac_ct_DUMPBIN" && break
5862done
5863
5864  if test "x$ac_ct_DUMPBIN" = x; then
5865    DUMPBIN=":"
5866  else
5867    case $cross_compiling:$ac_tool_warned in
5868yes:)
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5871ac_tool_warned=yes ;;
5872esac
5873    DUMPBIN=$ac_ct_DUMPBIN
5874  fi
5875fi
5876
5877
5878  if test "$DUMPBIN" != ":"; then
5879    NM="$DUMPBIN"
5880  fi
5881fi
5882test -z "$NM" && NM=nm
5883
5884
5885
5886
5887
5888
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5890$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5891if ${lt_cv_nm_interface+:} false; then :
5892  $as_echo_n "(cached) " >&6
5893else
5894  lt_cv_nm_interface="BSD nm"
5895  echo "int some_variable = 0;" > conftest.$ac_ext
5896  (eval echo "\"\$as_me:5896: $ac_compile\"" >&5)
5897  (eval "$ac_compile" 2>conftest.err)
5898  cat conftest.err >&5
5899  (eval echo "\"\$as_me:5899: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5900  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5901  cat conftest.err >&5
5902  (eval echo "\"\$as_me:5902: output\"" >&5)
5903  cat conftest.out >&5
5904  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5905    lt_cv_nm_interface="MS dumpbin"
5906  fi
5907  rm -f conftest*
5908fi
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5910$as_echo "$lt_cv_nm_interface" >&6; }
5911
5912# find the maximum length of command line arguments
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5914$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5915if ${lt_cv_sys_max_cmd_len+:} false; then :
5916  $as_echo_n "(cached) " >&6
5917else
5918    i=0
5919  teststring="ABCD"
5920
5921  case $build_os in
5922  msdosdjgpp*)
5923    # On DJGPP, this test can blow up pretty badly due to problems in libc
5924    # (any single argument exceeding 2000 bytes causes a buffer overrun
5925    # during glob expansion).  Even if it were fixed, the result of this
5926    # check would be larger than it should be.
5927    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5928    ;;
5929
5930  gnu*)
5931    # Under GNU Hurd, this test is not required because there is
5932    # no limit to the length of command line arguments.
5933    # Libtool will interpret -1 as no limit whatsoever
5934    lt_cv_sys_max_cmd_len=-1;
5935    ;;
5936
5937  cygwin* | mingw* | cegcc*)
5938    # On Win9x/ME, this test blows up -- it succeeds, but takes
5939    # about 5 minutes as the teststring grows exponentially.
5940    # Worse, since 9x/ME are not pre-emptively multitasking,
5941    # you end up with a "frozen" computer, even though with patience
5942    # the test eventually succeeds (with a max line length of 256k).
5943    # Instead, let's just punt: use the minimum linelength reported by
5944    # all of the supported platforms: 8192 (on NT/2K/XP).
5945    lt_cv_sys_max_cmd_len=8192;
5946    ;;
5947
5948  amigaos*)
5949    # On AmigaOS with pdksh, this test takes hours, literally.
5950    # So we just punt and use a minimum line length of 8192.
5951    lt_cv_sys_max_cmd_len=8192;
5952    ;;
5953
5954  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5955    # This has been around since 386BSD, at least.  Likely further.
5956    if test -x /sbin/sysctl; then
5957      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5958    elif test -x /usr/sbin/sysctl; then
5959      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5960    else
5961      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5962    fi
5963    # And add a safety zone
5964    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5965    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5966    ;;
5967
5968  interix*)
5969    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5970    lt_cv_sys_max_cmd_len=196608
5971    ;;
5972
5973  osf*)
5974    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5975    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5976    # nice to cause kernel panics so lets avoid the loop below.
5977    # First set a reasonable default.
5978    lt_cv_sys_max_cmd_len=16384
5979    #
5980    if test -x /sbin/sysconfig; then
5981      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5982        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5983      esac
5984    fi
5985    ;;
5986  sco3.2v5*)
5987    lt_cv_sys_max_cmd_len=102400
5988    ;;
5989  sysv5* | sco5v6* | sysv4.2uw2*)
5990    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5991    if test -n "$kargmax"; then
5992      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5993    else
5994      lt_cv_sys_max_cmd_len=32768
5995    fi
5996    ;;
5997  *)
5998    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5999    if test -n "$lt_cv_sys_max_cmd_len"; then
6000      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6001      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6002    else
6003      # Make teststring a little bigger before we do anything with it.
6004      # a 1K string should be a reasonable start.
6005      for i in 1 2 3 4 5 6 7 8 ; do
6006        teststring=$teststring$teststring
6007      done
6008      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6009      # If test is not a shell built-in, we'll probably end up computing a
6010      # maximum length that is only half of the actual maximum length, but
6011      # we can't tell.
6012      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6013                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6014              test $i != 17 # 1/2 MB should be enough
6015      do
6016        i=`expr $i + 1`
6017        teststring=$teststring$teststring
6018      done
6019      # Only check the string length outside the loop.
6020      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6021      teststring=
6022      # Add a significant safety factor because C++ compilers can tack on
6023      # massive amounts of additional arguments before passing them to the
6024      # linker.  It appears as though 1/2 is a usable value.
6025      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6026    fi
6027    ;;
6028  esac
6029
6030fi
6031
6032if test -n $lt_cv_sys_max_cmd_len ; then
6033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6034$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6035else
6036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6037$as_echo "none" >&6; }
6038fi
6039max_cmd_len=$lt_cv_sys_max_cmd_len
6040
6041
6042
6043
6044
6045
6046: ${CP="cp -f"}
6047: ${MV="mv -f"}
6048: ${RM="rm -f"}
6049
6050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6051$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6052# Try some XSI features
6053xsi_shell=no
6054( _lt_dummy="a/b/c"
6055  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6056      = c,a/b,, \
6057    && eval 'test $(( 1 + 1 )) -eq 2 \
6058    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6059  && xsi_shell=yes
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6061$as_echo "$xsi_shell" >&6; }
6062
6063
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6065$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6066lt_shell_append=no
6067( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6068    >/dev/null 2>&1 \
6069  && lt_shell_append=yes
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6071$as_echo "$lt_shell_append" >&6; }
6072
6073
6074if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6075  lt_unset=unset
6076else
6077  lt_unset=false
6078fi
6079
6080
6081
6082
6083
6084# test EBCDIC or ASCII
6085case `echo X|tr X '\101'` in
6086 A) # ASCII based system
6087    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6088  lt_SP2NL='tr \040 \012'
6089  lt_NL2SP='tr \015\012 \040\040'
6090  ;;
6091 *) # EBCDIC based system
6092  lt_SP2NL='tr \100 \n'
6093  lt_NL2SP='tr \r\n \100\100'
6094  ;;
6095esac
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6106$as_echo_n "checking for $LD option to reload object files... " >&6; }
6107if ${lt_cv_ld_reload_flag+:} false; then :
6108  $as_echo_n "(cached) " >&6
6109else
6110  lt_cv_ld_reload_flag='-r'
6111fi
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6113$as_echo "$lt_cv_ld_reload_flag" >&6; }
6114reload_flag=$lt_cv_ld_reload_flag
6115case $reload_flag in
6116"" | " "*) ;;
6117*) reload_flag=" $reload_flag" ;;
6118esac
6119reload_cmds='$LD$reload_flag -o $output$reload_objs'
6120case $host_os in
6121  darwin*)
6122    if test "$GCC" = yes; then
6123      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6124    else
6125      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6126    fi
6127    ;;
6128esac
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138if test -n "$ac_tool_prefix"; then
6139  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6140set dummy ${ac_tool_prefix}objdump; ac_word=$2
6141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142$as_echo_n "checking for $ac_word... " >&6; }
6143if ${ac_cv_prog_OBJDUMP+:} false; then :
6144  $as_echo_n "(cached) " >&6
6145else
6146  if test -n "$OBJDUMP"; then
6147  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6148else
6149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150for as_dir in $PATH
6151do
6152  IFS=$as_save_IFS
6153  test -z "$as_dir" && as_dir=.
6154    for ac_exec_ext in '' $ac_executable_extensions; do
6155  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6156    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158    break 2
6159  fi
6160done
6161  done
6162IFS=$as_save_IFS
6163
6164fi
6165fi
6166OBJDUMP=$ac_cv_prog_OBJDUMP
6167if test -n "$OBJDUMP"; then
6168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6169$as_echo "$OBJDUMP" >&6; }
6170else
6171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172$as_echo "no" >&6; }
6173fi
6174
6175
6176fi
6177if test -z "$ac_cv_prog_OBJDUMP"; then
6178  ac_ct_OBJDUMP=$OBJDUMP
6179  # Extract the first word of "objdump", so it can be a program name with args.
6180set dummy objdump; ac_word=$2
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182$as_echo_n "checking for $ac_word... " >&6; }
6183if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6184  $as_echo_n "(cached) " >&6
6185else
6186  if test -n "$ac_ct_OBJDUMP"; then
6187  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6188else
6189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190for as_dir in $PATH
6191do
6192  IFS=$as_save_IFS
6193  test -z "$as_dir" && as_dir=.
6194    for ac_exec_ext in '' $ac_executable_extensions; do
6195  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198    break 2
6199  fi
6200done
6201  done
6202IFS=$as_save_IFS
6203
6204fi
6205fi
6206ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6207if test -n "$ac_ct_OBJDUMP"; then
6208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6209$as_echo "$ac_ct_OBJDUMP" >&6; }
6210else
6211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212$as_echo "no" >&6; }
6213fi
6214
6215  if test "x$ac_ct_OBJDUMP" = x; then
6216    OBJDUMP="false"
6217  else
6218    case $cross_compiling:$ac_tool_warned in
6219yes:)
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6222ac_tool_warned=yes ;;
6223esac
6224    OBJDUMP=$ac_ct_OBJDUMP
6225  fi
6226else
6227  OBJDUMP="$ac_cv_prog_OBJDUMP"
6228fi
6229
6230test -z "$OBJDUMP" && OBJDUMP=objdump
6231
6232
6233
6234
6235
6236
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6238$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6239if ${lt_cv_deplibs_check_method+:} false; then :
6240  $as_echo_n "(cached) " >&6
6241else
6242  lt_cv_file_magic_cmd='$MAGIC_CMD'
6243lt_cv_file_magic_test_file=
6244lt_cv_deplibs_check_method='unknown'
6245# Need to set the preceding variable on all platforms that support
6246# interlibrary dependencies.
6247# 'none' -- dependencies not supported.
6248# `unknown' -- same as none, but documents that we really don't know.
6249# 'pass_all' -- all dependencies passed with no checks.
6250# 'test_compile' -- check by making test program.
6251# 'file_magic [[regex]]' -- check by looking for files in library path
6252# which responds to the $file_magic_cmd with a given extended regex.
6253# If you have `file' or equivalent on your system and you're not sure
6254# whether `pass_all' will *always* work, you probably want this one.
6255
6256case $host_os in
6257aix[4-9]*)
6258  lt_cv_deplibs_check_method=pass_all
6259  ;;
6260
6261beos*)
6262  lt_cv_deplibs_check_method=pass_all
6263  ;;
6264
6265bsdi[45]*)
6266  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6267  lt_cv_file_magic_cmd='/usr/bin/file -L'
6268  lt_cv_file_magic_test_file=/shlib/libc.so
6269  ;;
6270
6271cygwin*)
6272  # func_win32_libid is a shell function defined in ltmain.sh
6273  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6274  lt_cv_file_magic_cmd='func_win32_libid'
6275  ;;
6276
6277mingw* | pw32*)
6278  # Base MSYS/MinGW do not provide the 'file' command needed by
6279  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6280  # unless we find 'file', for example because we are cross-compiling.
6281  if ( file / ) >/dev/null 2>&1; then
6282    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6283    lt_cv_file_magic_cmd='func_win32_libid'
6284  else
6285    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6286    lt_cv_file_magic_cmd='$OBJDUMP -f'
6287  fi
6288  ;;
6289
6290cegcc)
6291  # use the weaker test based on 'objdump'. See mingw*.
6292  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6293  lt_cv_file_magic_cmd='$OBJDUMP -f'
6294  ;;
6295
6296darwin* | rhapsody*)
6297  lt_cv_deplibs_check_method=pass_all
6298  ;;
6299
6300freebsd* | dragonfly*)
6301  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6302    case $host_cpu in
6303    i*86 )
6304      # Not sure whether the presence of OpenBSD here was a mistake.
6305      # Let's accept both of them until this is cleared up.
6306      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6307      lt_cv_file_magic_cmd=/usr/bin/file
6308      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6309      ;;
6310    esac
6311  else
6312    lt_cv_deplibs_check_method=pass_all
6313  fi
6314  ;;
6315
6316gnu*)
6317  lt_cv_deplibs_check_method=pass_all
6318  ;;
6319
6320hpux10.20* | hpux11*)
6321  lt_cv_file_magic_cmd=/usr/bin/file
6322  case $host_cpu in
6323  ia64*)
6324    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6325    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6326    ;;
6327  hppa*64*)
6328    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]'
6329    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6330    ;;
6331  *)
6332    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6333    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6334    ;;
6335  esac
6336  ;;
6337
6338interix[3-9]*)
6339  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6340  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6341  ;;
6342
6343irix5* | irix6* | nonstopux*)
6344  case $LD in
6345  *-32|*"-32 ") libmagic=32-bit;;
6346  *-n32|*"-n32 ") libmagic=N32;;
6347  *-64|*"-64 ") libmagic=64-bit;;
6348  *) libmagic=never-match;;
6349  esac
6350  lt_cv_deplibs_check_method=pass_all
6351  ;;
6352
6353# This must be Linux ELF.
6354linux* | k*bsd*-gnu)
6355  lt_cv_deplibs_check_method=pass_all
6356  ;;
6357
6358netbsd*)
6359  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6360    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6361  else
6362    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6363  fi
6364  ;;
6365
6366newos6*)
6367  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6368  lt_cv_file_magic_cmd=/usr/bin/file
6369  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6370  ;;
6371
6372*nto* | *qnx*)
6373  lt_cv_deplibs_check_method=pass_all
6374  ;;
6375
6376openbsd*)
6377  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6378    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6379  else
6380    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6381  fi
6382  ;;
6383
6384osf3* | osf4* | osf5*)
6385  lt_cv_deplibs_check_method=pass_all
6386  ;;
6387
6388rdos*)
6389  lt_cv_deplibs_check_method=pass_all
6390  ;;
6391
6392solaris*)
6393  lt_cv_deplibs_check_method=pass_all
6394  ;;
6395
6396sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6397  lt_cv_deplibs_check_method=pass_all
6398  ;;
6399
6400sysv4 | sysv4.3*)
6401  case $host_vendor in
6402  motorola)
6403    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]'
6404    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6405    ;;
6406  ncr)
6407    lt_cv_deplibs_check_method=pass_all
6408    ;;
6409  sequent)
6410    lt_cv_file_magic_cmd='/bin/file'
6411    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6412    ;;
6413  sni)
6414    lt_cv_file_magic_cmd='/bin/file'
6415    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6416    lt_cv_file_magic_test_file=/lib/libc.so
6417    ;;
6418  siemens)
6419    lt_cv_deplibs_check_method=pass_all
6420    ;;
6421  pc)
6422    lt_cv_deplibs_check_method=pass_all
6423    ;;
6424  esac
6425  ;;
6426
6427tpf*)
6428  lt_cv_deplibs_check_method=pass_all
6429  ;;
6430esac
6431
6432fi
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6434$as_echo "$lt_cv_deplibs_check_method" >&6; }
6435file_magic_cmd=$lt_cv_file_magic_cmd
6436deplibs_check_method=$lt_cv_deplibs_check_method
6437test -z "$deplibs_check_method" && deplibs_check_method=unknown
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450if test -n "$ac_tool_prefix"; then
6451  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6452set dummy ${ac_tool_prefix}ar; ac_word=$2
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454$as_echo_n "checking for $ac_word... " >&6; }
6455if ${ac_cv_prog_AR+:} false; then :
6456  $as_echo_n "(cached) " >&6
6457else
6458  if test -n "$AR"; then
6459  ac_cv_prog_AR="$AR" # Let the user override the test.
6460else
6461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462for as_dir in $PATH
6463do
6464  IFS=$as_save_IFS
6465  test -z "$as_dir" && as_dir=.
6466    for ac_exec_ext in '' $ac_executable_extensions; do
6467  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6468    ac_cv_prog_AR="${ac_tool_prefix}ar"
6469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470    break 2
6471  fi
6472done
6473  done
6474IFS=$as_save_IFS
6475
6476fi
6477fi
6478AR=$ac_cv_prog_AR
6479if test -n "$AR"; then
6480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6481$as_echo "$AR" >&6; }
6482else
6483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484$as_echo "no" >&6; }
6485fi
6486
6487
6488fi
6489if test -z "$ac_cv_prog_AR"; then
6490  ac_ct_AR=$AR
6491  # Extract the first word of "ar", so it can be a program name with args.
6492set dummy ar; ac_word=$2
6493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494$as_echo_n "checking for $ac_word... " >&6; }
6495if ${ac_cv_prog_ac_ct_AR+:} false; then :
6496  $as_echo_n "(cached) " >&6
6497else
6498  if test -n "$ac_ct_AR"; then
6499  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6500else
6501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502for as_dir in $PATH
6503do
6504  IFS=$as_save_IFS
6505  test -z "$as_dir" && as_dir=.
6506    for ac_exec_ext in '' $ac_executable_extensions; do
6507  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6508    ac_cv_prog_ac_ct_AR="ar"
6509    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510    break 2
6511  fi
6512done
6513  done
6514IFS=$as_save_IFS
6515
6516fi
6517fi
6518ac_ct_AR=$ac_cv_prog_ac_ct_AR
6519if test -n "$ac_ct_AR"; then
6520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6521$as_echo "$ac_ct_AR" >&6; }
6522else
6523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524$as_echo "no" >&6; }
6525fi
6526
6527  if test "x$ac_ct_AR" = x; then
6528    AR="false"
6529  else
6530    case $cross_compiling:$ac_tool_warned in
6531yes:)
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6534ac_tool_warned=yes ;;
6535esac
6536    AR=$ac_ct_AR
6537  fi
6538else
6539  AR="$ac_cv_prog_AR"
6540fi
6541
6542test -z "$AR" && AR=ar
6543test -z "$AR_FLAGS" && AR_FLAGS=cru
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555if test -n "$ac_tool_prefix"; then
6556  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6557set dummy ${ac_tool_prefix}strip; ac_word=$2
6558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6559$as_echo_n "checking for $ac_word... " >&6; }
6560if ${ac_cv_prog_STRIP+:} false; then :
6561  $as_echo_n "(cached) " >&6
6562else
6563  if test -n "$STRIP"; then
6564  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6565else
6566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567for as_dir in $PATH
6568do
6569  IFS=$as_save_IFS
6570  test -z "$as_dir" && as_dir=.
6571    for ac_exec_ext in '' $ac_executable_extensions; do
6572  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6573    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6575    break 2
6576  fi
6577done
6578  done
6579IFS=$as_save_IFS
6580
6581fi
6582fi
6583STRIP=$ac_cv_prog_STRIP
6584if test -n "$STRIP"; then
6585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6586$as_echo "$STRIP" >&6; }
6587else
6588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6589$as_echo "no" >&6; }
6590fi
6591
6592
6593fi
6594if test -z "$ac_cv_prog_STRIP"; then
6595  ac_ct_STRIP=$STRIP
6596  # Extract the first word of "strip", so it can be a program name with args.
6597set dummy strip; ac_word=$2
6598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599$as_echo_n "checking for $ac_word... " >&6; }
6600if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6601  $as_echo_n "(cached) " >&6
6602else
6603  if test -n "$ac_ct_STRIP"; then
6604  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6605else
6606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607for as_dir in $PATH
6608do
6609  IFS=$as_save_IFS
6610  test -z "$as_dir" && as_dir=.
6611    for ac_exec_ext in '' $ac_executable_extensions; do
6612  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6613    ac_cv_prog_ac_ct_STRIP="strip"
6614    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6615    break 2
6616  fi
6617done
6618  done
6619IFS=$as_save_IFS
6620
6621fi
6622fi
6623ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6624if test -n "$ac_ct_STRIP"; then
6625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6626$as_echo "$ac_ct_STRIP" >&6; }
6627else
6628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629$as_echo "no" >&6; }
6630fi
6631
6632  if test "x$ac_ct_STRIP" = x; then
6633    STRIP=":"
6634  else
6635    case $cross_compiling:$ac_tool_warned in
6636yes:)
6637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6639ac_tool_warned=yes ;;
6640esac
6641    STRIP=$ac_ct_STRIP
6642  fi
6643else
6644  STRIP="$ac_cv_prog_STRIP"
6645fi
6646
6647test -z "$STRIP" && STRIP=:
6648
6649
6650
6651
6652
6653
6654if test -n "$ac_tool_prefix"; then
6655  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6656set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658$as_echo_n "checking for $ac_word... " >&6; }
6659if ${ac_cv_prog_RANLIB+:} false; then :
6660  $as_echo_n "(cached) " >&6
6661else
6662  if test -n "$RANLIB"; then
6663  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6664else
6665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666for as_dir in $PATH
6667do
6668  IFS=$as_save_IFS
6669  test -z "$as_dir" && as_dir=.
6670    for ac_exec_ext in '' $ac_executable_extensions; do
6671  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6672    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674    break 2
6675  fi
6676done
6677  done
6678IFS=$as_save_IFS
6679
6680fi
6681fi
6682RANLIB=$ac_cv_prog_RANLIB
6683if test -n "$RANLIB"; then
6684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6685$as_echo "$RANLIB" >&6; }
6686else
6687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688$as_echo "no" >&6; }
6689fi
6690
6691
6692fi
6693if test -z "$ac_cv_prog_RANLIB"; then
6694  ac_ct_RANLIB=$RANLIB
6695  # Extract the first word of "ranlib", so it can be a program name with args.
6696set dummy ranlib; ac_word=$2
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698$as_echo_n "checking for $ac_word... " >&6; }
6699if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6700  $as_echo_n "(cached) " >&6
6701else
6702  if test -n "$ac_ct_RANLIB"; then
6703  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6704else
6705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706for as_dir in $PATH
6707do
6708  IFS=$as_save_IFS
6709  test -z "$as_dir" && as_dir=.
6710    for ac_exec_ext in '' $ac_executable_extensions; do
6711  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6712    ac_cv_prog_ac_ct_RANLIB="ranlib"
6713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714    break 2
6715  fi
6716done
6717  done
6718IFS=$as_save_IFS
6719
6720fi
6721fi
6722ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6723if test -n "$ac_ct_RANLIB"; then
6724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6725$as_echo "$ac_ct_RANLIB" >&6; }
6726else
6727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728$as_echo "no" >&6; }
6729fi
6730
6731  if test "x$ac_ct_RANLIB" = x; then
6732    RANLIB=":"
6733  else
6734    case $cross_compiling:$ac_tool_warned in
6735yes:)
6736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6738ac_tool_warned=yes ;;
6739esac
6740    RANLIB=$ac_ct_RANLIB
6741  fi
6742else
6743  RANLIB="$ac_cv_prog_RANLIB"
6744fi
6745
6746test -z "$RANLIB" && RANLIB=:
6747
6748
6749
6750
6751
6752
6753# Determine commands to create old-style static archives.
6754old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6755old_postinstall_cmds='chmod 644 $oldlib'
6756old_postuninstall_cmds=
6757
6758if test -n "$RANLIB"; then
6759  case $host_os in
6760  openbsd*)
6761    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6762    ;;
6763  *)
6764    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6765    ;;
6766  esac
6767  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6768fi
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803# If no C compiler was specified, use CC.
6804LTCC=${LTCC-"$CC"}
6805
6806# If no C compiler flags were specified, use CFLAGS.
6807LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6808
6809# Allow CC to be a program name with arguments.
6810compiler=$CC
6811
6812
6813# Check for command to grab the raw symbol name followed by C symbol from nm.
6814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6815$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6816if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6817  $as_echo_n "(cached) " >&6
6818else
6819
6820# These are sane defaults that work on at least a few old systems.
6821# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6822
6823# Character class describing NM global symbol codes.
6824symcode='[BCDEGRST]'
6825
6826# Regexp to match symbols that can be accessed directly from C.
6827sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6828
6829# Define system-specific variables.
6830case $host_os in
6831aix*)
6832  symcode='[BCDT]'
6833  ;;
6834cygwin* | mingw* | pw32* | cegcc*)
6835  symcode='[ABCDGISTW]'
6836  ;;
6837hpux*)
6838  if test "$host_cpu" = ia64; then
6839    symcode='[ABCDEGRST]'
6840  fi
6841  ;;
6842irix* | nonstopux*)
6843  symcode='[BCDEGRST]'
6844  ;;
6845osf*)
6846  symcode='[BCDEGQRST]'
6847  ;;
6848solaris*)
6849  symcode='[BDRT]'
6850  ;;
6851sco3.2v5*)
6852  symcode='[DT]'
6853  ;;
6854sysv4.2uw2*)
6855  symcode='[DT]'
6856  ;;
6857sysv5* | sco5v6* | unixware* | OpenUNIX*)
6858  symcode='[ABDT]'
6859  ;;
6860sysv4)
6861  symcode='[DFNSTU]'
6862  ;;
6863esac
6864
6865# If we're using GNU nm, then use its standard symbol codes.
6866case `$NM -V 2>&1` in
6867*GNU* | *'with BFD'*)
6868  symcode='[ABCDGIRSTW]' ;;
6869esac
6870
6871# Transform an extracted symbol line into a proper C declaration.
6872# Some systems (esp. on ia64) link data and code symbols differently,
6873# so use this general approach.
6874lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6875
6876# Transform an extracted symbol line into symbol name and symbol address
6877lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6878lt_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'"
6879
6880# Handle CRLF in mingw tool chain
6881opt_cr=
6882case $build_os in
6883mingw*)
6884  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6885  ;;
6886esac
6887
6888# Try without a prefix underscore, then with it.
6889for ac_symprfx in "" "_"; do
6890
6891  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6892  symxfrm="\\1 $ac_symprfx\\2 \\2"
6893
6894  # Write the raw and C identifiers.
6895  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6896    # Fake it for dumpbin and say T for any non-static function
6897    # and D for any global variable.
6898    # Also find C++ and __fastcall symbols from MSVC++,
6899    # which start with @ or ?.
6900    lt_cv_sys_global_symbol_pipe="$AWK '"\
6901"     {last_section=section; section=\$ 3};"\
6902"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6903"     \$ 0!~/External *\|/{next};"\
6904"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6905"     {if(hide[section]) next};"\
6906"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6907"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6908"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6909"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6910"     ' prfx=^$ac_symprfx"
6911  else
6912    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6913  fi
6914
6915  # Check to see that the pipe works correctly.
6916  pipe_works=no
6917
6918  rm -f conftest*
6919  cat > conftest.$ac_ext <<_LT_EOF
6920#ifdef __cplusplus
6921extern "C" {
6922#endif
6923char nm_test_var;
6924void nm_test_func(void);
6925void nm_test_func(void){}
6926#ifdef __cplusplus
6927}
6928#endif
6929int main(){nm_test_var='a';nm_test_func();return(0);}
6930_LT_EOF
6931
6932  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6933  (eval $ac_compile) 2>&5
6934  ac_status=$?
6935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6936  test $ac_status = 0; }; then
6937    # Now try to grab the symbols.
6938    nlist=conftest.nm
6939    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6940  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6941  ac_status=$?
6942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6943  test $ac_status = 0; } && test -s "$nlist"; then
6944      # Try sorting and uniquifying the output.
6945      if sort "$nlist" | uniq > "$nlist"T; then
6946        mv -f "$nlist"T "$nlist"
6947      else
6948        rm -f "$nlist"T
6949      fi
6950
6951      # Make sure that we snagged all the symbols we need.
6952      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6953        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6954          cat <<_LT_EOF > conftest.$ac_ext
6955#ifdef __cplusplus
6956extern "C" {
6957#endif
6958
6959_LT_EOF
6960          # Now generate the symbol file.
6961          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6962
6963          cat <<_LT_EOF >> conftest.$ac_ext
6964
6965/* The mapping between symbol names and symbols.  */
6966const struct {
6967  const char *name;
6968  void       *address;
6969}
6970lt__PROGRAM__LTX_preloaded_symbols[] =
6971{
6972  { "@PROGRAM@", (void *) 0 },
6973_LT_EOF
6974          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6975          cat <<\_LT_EOF >> conftest.$ac_ext
6976  {0, (void *) 0}
6977};
6978
6979/* This works around a problem in FreeBSD linker */
6980#ifdef FREEBSD_WORKAROUND
6981static const void *lt_preloaded_setup() {
6982  return lt__PROGRAM__LTX_preloaded_symbols;
6983}
6984#endif
6985
6986#ifdef __cplusplus
6987}
6988#endif
6989_LT_EOF
6990          # Now try linking the two files.
6991          mv conftest.$ac_objext conftstm.$ac_objext
6992          lt_save_LIBS="$LIBS"
6993          lt_save_CFLAGS="$CFLAGS"
6994          LIBS="conftstm.$ac_objext"
6995          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6996          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6997  (eval $ac_link) 2>&5
6998  ac_status=$?
6999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7000  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7001            pipe_works=yes
7002          fi
7003          LIBS="$lt_save_LIBS"
7004          CFLAGS="$lt_save_CFLAGS"
7005        else
7006          echo "cannot find nm_test_func in $nlist" >&5
7007        fi
7008      else
7009        echo "cannot find nm_test_var in $nlist" >&5
7010      fi
7011    else
7012      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7013    fi
7014  else
7015    echo "$progname: failed program was:" >&5
7016    cat conftest.$ac_ext >&5
7017  fi
7018  rm -rf conftest* conftst*
7019
7020  # Do not use the global_symbol_pipe unless it works.
7021  if test "$pipe_works" = yes; then
7022    break
7023  else
7024    lt_cv_sys_global_symbol_pipe=
7025  fi
7026done
7027
7028fi
7029
7030if test -z "$lt_cv_sys_global_symbol_pipe"; then
7031  lt_cv_sys_global_symbol_to_cdecl=
7032fi
7033if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7035$as_echo "failed" >&6; }
7036else
7037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7038$as_echo "ok" >&6; }
7039fi
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063# Check whether --enable-libtool-lock was given.
7064if test "${enable_libtool_lock+set}" = set; then :
7065  enableval=$enable_libtool_lock;
7066fi
7067
7068test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7069
7070# Some flags need to be propagated to the compiler or linker for good
7071# libtool support.
7072case $host in
7073ia64-*-hpux*)
7074  # Find out which ABI we are using.
7075  echo 'int i;' > conftest.$ac_ext
7076  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7077  (eval $ac_compile) 2>&5
7078  ac_status=$?
7079  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7080  test $ac_status = 0; }; then
7081    case `/usr/bin/file conftest.$ac_objext` in
7082      *ELF-32*)
7083        HPUX_IA64_MODE="32"
7084        ;;
7085      *ELF-64*)
7086        HPUX_IA64_MODE="64"
7087        ;;
7088    esac
7089  fi
7090  rm -rf conftest*
7091  ;;
7092*-*-irix6*)
7093  # Find out which ABI we are using.
7094  echo '#line 7094 "configure"' > conftest.$ac_ext
7095  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7096  (eval $ac_compile) 2>&5
7097  ac_status=$?
7098  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7099  test $ac_status = 0; }; then
7100    if test "$lt_cv_prog_gnu_ld" = yes; then
7101      case `/usr/bin/file conftest.$ac_objext` in
7102        *32-bit*)
7103          LD="${LD-ld} -melf32bsmip"
7104          ;;
7105        *N32*)
7106          LD="${LD-ld} -melf32bmipn32"
7107          ;;
7108        *64-bit*)
7109          LD="${LD-ld} -melf64bmip"
7110        ;;
7111      esac
7112    else
7113      case `/usr/bin/file conftest.$ac_objext` in
7114        *32-bit*)
7115          LD="${LD-ld} -32"
7116          ;;
7117        *N32*)
7118          LD="${LD-ld} -n32"
7119          ;;
7120        *64-bit*)
7121          LD="${LD-ld} -64"
7122          ;;
7123      esac
7124    fi
7125  fi
7126  rm -rf conftest*
7127  ;;
7128
7129x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7130s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7131  # Find out which ABI we are using.
7132  echo 'int i;' > conftest.$ac_ext
7133  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7134  (eval $ac_compile) 2>&5
7135  ac_status=$?
7136  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7137  test $ac_status = 0; }; then
7138    case `/usr/bin/file conftest.o` in
7139      *32-bit*)
7140        case $host in
7141          x86_64-*kfreebsd*-gnu)
7142            LD="${LD-ld} -m elf_i386_fbsd"
7143            ;;
7144          x86_64-*linux*)
7145            LD="${LD-ld} -m elf_i386"
7146            ;;
7147          ppc64-*linux*|powerpc64-*linux*)
7148            LD="${LD-ld} -m elf32ppclinux"
7149            ;;
7150          s390x-*linux*)
7151            LD="${LD-ld} -m elf_s390"
7152            ;;
7153          sparc64-*linux*)
7154            LD="${LD-ld} -m elf32_sparc"
7155            ;;
7156        esac
7157        ;;
7158      *64-bit*)
7159        case $host in
7160          x86_64-*kfreebsd*-gnu)
7161            LD="${LD-ld} -m elf_x86_64_fbsd"
7162            ;;
7163          x86_64-*linux*)
7164            LD="${LD-ld} -m elf_x86_64"
7165            ;;
7166          ppc*-*linux*|powerpc*-*linux*)
7167            LD="${LD-ld} -m elf64ppc"
7168            ;;
7169          s390*-*linux*|s390*-*tpf*)
7170            LD="${LD-ld} -m elf64_s390"
7171            ;;
7172          sparc*-*linux*)
7173            LD="${LD-ld} -m elf64_sparc"
7174            ;;
7175        esac
7176        ;;
7177    esac
7178  fi
7179  rm -rf conftest*
7180  ;;
7181
7182*-*-sco3.2v5*)
7183  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7184  SAVE_CFLAGS="$CFLAGS"
7185  CFLAGS="$CFLAGS -belf"
7186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7187$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7188if ${lt_cv_cc_needs_belf+:} false; then :
7189  $as_echo_n "(cached) " >&6
7190else
7191  ac_ext=c
7192ac_cpp='$CPP $CPPFLAGS'
7193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7195ac_compiler_gnu=$ac_cv_c_compiler_gnu
7196
7197     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198/* end confdefs.h.  */
7199
7200int
7201main ()
7202{
7203
7204  ;
7205  return 0;
7206}
7207_ACEOF
7208if ac_fn_c_try_link "$LINENO"; then :
7209  lt_cv_cc_needs_belf=yes
7210else
7211  lt_cv_cc_needs_belf=no
7212fi
7213rm -f core conftest.err conftest.$ac_objext \
7214    conftest$ac_exeext conftest.$ac_ext
7215     ac_ext=c
7216ac_cpp='$CPP $CPPFLAGS'
7217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7219ac_compiler_gnu=$ac_cv_c_compiler_gnu
7220
7221fi
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7223$as_echo "$lt_cv_cc_needs_belf" >&6; }
7224  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7225    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7226    CFLAGS="$SAVE_CFLAGS"
7227  fi
7228  ;;
7229sparc*-*solaris*)
7230  # Find out which ABI we are using.
7231  echo 'int i;' > conftest.$ac_ext
7232  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7233  (eval $ac_compile) 2>&5
7234  ac_status=$?
7235  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7236  test $ac_status = 0; }; then
7237    case `/usr/bin/file conftest.o` in
7238    *64-bit*)
7239      case $lt_cv_prog_gnu_ld in
7240      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7241      *)
7242        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7243          LD="${LD-ld} -64"
7244        fi
7245        ;;
7246      esac
7247      ;;
7248    esac
7249  fi
7250  rm -rf conftest*
7251  ;;
7252esac
7253
7254need_locks="$enable_libtool_lock"
7255
7256
7257  case $host_os in
7258    rhapsody* | darwin*)
7259    if test -n "$ac_tool_prefix"; then
7260  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7261set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263$as_echo_n "checking for $ac_word... " >&6; }
7264if ${ac_cv_prog_DSYMUTIL+:} false; then :
7265  $as_echo_n "(cached) " >&6
7266else
7267  if test -n "$DSYMUTIL"; then
7268  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7269else
7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273  IFS=$as_save_IFS
7274  test -z "$as_dir" && as_dir=.
7275    for ac_exec_ext in '' $ac_executable_extensions; do
7276  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7277    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279    break 2
7280  fi
7281done
7282  done
7283IFS=$as_save_IFS
7284
7285fi
7286fi
7287DSYMUTIL=$ac_cv_prog_DSYMUTIL
7288if test -n "$DSYMUTIL"; then
7289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7290$as_echo "$DSYMUTIL" >&6; }
7291else
7292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293$as_echo "no" >&6; }
7294fi
7295
7296
7297fi
7298if test -z "$ac_cv_prog_DSYMUTIL"; then
7299  ac_ct_DSYMUTIL=$DSYMUTIL
7300  # Extract the first word of "dsymutil", so it can be a program name with args.
7301set dummy dsymutil; ac_word=$2
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303$as_echo_n "checking for $ac_word... " >&6; }
7304if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7305  $as_echo_n "(cached) " >&6
7306else
7307  if test -n "$ac_ct_DSYMUTIL"; then
7308  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7309else
7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313  IFS=$as_save_IFS
7314  test -z "$as_dir" && as_dir=.
7315    for ac_exec_ext in '' $ac_executable_extensions; do
7316  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7317    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319    break 2
7320  fi
7321done
7322  done
7323IFS=$as_save_IFS
7324
7325fi
7326fi
7327ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7328if test -n "$ac_ct_DSYMUTIL"; then
7329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7330$as_echo "$ac_ct_DSYMUTIL" >&6; }
7331else
7332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333$as_echo "no" >&6; }
7334fi
7335
7336  if test "x$ac_ct_DSYMUTIL" = x; then
7337    DSYMUTIL=":"
7338  else
7339    case $cross_compiling:$ac_tool_warned in
7340yes:)
7341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7343ac_tool_warned=yes ;;
7344esac
7345    DSYMUTIL=$ac_ct_DSYMUTIL
7346  fi
7347else
7348  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7349fi
7350
7351    if test -n "$ac_tool_prefix"; then
7352  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7353set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355$as_echo_n "checking for $ac_word... " >&6; }
7356if ${ac_cv_prog_NMEDIT+:} false; then :
7357  $as_echo_n "(cached) " >&6
7358else
7359  if test -n "$NMEDIT"; then
7360  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7361else
7362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363for as_dir in $PATH
7364do
7365  IFS=$as_save_IFS
7366  test -z "$as_dir" && as_dir=.
7367    for ac_exec_ext in '' $ac_executable_extensions; do
7368  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7369    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371    break 2
7372  fi
7373done
7374  done
7375IFS=$as_save_IFS
7376
7377fi
7378fi
7379NMEDIT=$ac_cv_prog_NMEDIT
7380if test -n "$NMEDIT"; then
7381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7382$as_echo "$NMEDIT" >&6; }
7383else
7384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385$as_echo "no" >&6; }
7386fi
7387
7388
7389fi
7390if test -z "$ac_cv_prog_NMEDIT"; then
7391  ac_ct_NMEDIT=$NMEDIT
7392  # Extract the first word of "nmedit", so it can be a program name with args.
7393set dummy nmedit; ac_word=$2
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395$as_echo_n "checking for $ac_word... " >&6; }
7396if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7397  $as_echo_n "(cached) " >&6
7398else
7399  if test -n "$ac_ct_NMEDIT"; then
7400  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7401else
7402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403for as_dir in $PATH
7404do
7405  IFS=$as_save_IFS
7406  test -z "$as_dir" && as_dir=.
7407    for ac_exec_ext in '' $ac_executable_extensions; do
7408  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411    break 2
7412  fi
7413done
7414  done
7415IFS=$as_save_IFS
7416
7417fi
7418fi
7419ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7420if test -n "$ac_ct_NMEDIT"; then
7421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7422$as_echo "$ac_ct_NMEDIT" >&6; }
7423else
7424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425$as_echo "no" >&6; }
7426fi
7427
7428  if test "x$ac_ct_NMEDIT" = x; then
7429    NMEDIT=":"
7430  else
7431    case $cross_compiling:$ac_tool_warned in
7432yes:)
7433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7435ac_tool_warned=yes ;;
7436esac
7437    NMEDIT=$ac_ct_NMEDIT
7438  fi
7439else
7440  NMEDIT="$ac_cv_prog_NMEDIT"
7441fi
7442
7443    if test -n "$ac_tool_prefix"; then
7444  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7445set dummy ${ac_tool_prefix}lipo; ac_word=$2
7446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447$as_echo_n "checking for $ac_word... " >&6; }
7448if ${ac_cv_prog_LIPO+:} false; then :
7449  $as_echo_n "(cached) " >&6
7450else
7451  if test -n "$LIPO"; then
7452  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7453else
7454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455for as_dir in $PATH
7456do
7457  IFS=$as_save_IFS
7458  test -z "$as_dir" && as_dir=.
7459    for ac_exec_ext in '' $ac_executable_extensions; do
7460  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7461    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463    break 2
7464  fi
7465done
7466  done
7467IFS=$as_save_IFS
7468
7469fi
7470fi
7471LIPO=$ac_cv_prog_LIPO
7472if test -n "$LIPO"; then
7473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7474$as_echo "$LIPO" >&6; }
7475else
7476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477$as_echo "no" >&6; }
7478fi
7479
7480
7481fi
7482if test -z "$ac_cv_prog_LIPO"; then
7483  ac_ct_LIPO=$LIPO
7484  # Extract the first word of "lipo", so it can be a program name with args.
7485set dummy lipo; ac_word=$2
7486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487$as_echo_n "checking for $ac_word... " >&6; }
7488if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7489  $as_echo_n "(cached) " >&6
7490else
7491  if test -n "$ac_ct_LIPO"; then
7492  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7493else
7494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495for as_dir in $PATH
7496do
7497  IFS=$as_save_IFS
7498  test -z "$as_dir" && as_dir=.
7499    for ac_exec_ext in '' $ac_executable_extensions; do
7500  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7501    ac_cv_prog_ac_ct_LIPO="lipo"
7502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503    break 2
7504  fi
7505done
7506  done
7507IFS=$as_save_IFS
7508
7509fi
7510fi
7511ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7512if test -n "$ac_ct_LIPO"; then
7513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7514$as_echo "$ac_ct_LIPO" >&6; }
7515else
7516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517$as_echo "no" >&6; }
7518fi
7519
7520  if test "x$ac_ct_LIPO" = x; then
7521    LIPO=":"
7522  else
7523    case $cross_compiling:$ac_tool_warned in
7524yes:)
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7527ac_tool_warned=yes ;;
7528esac
7529    LIPO=$ac_ct_LIPO
7530  fi
7531else
7532  LIPO="$ac_cv_prog_LIPO"
7533fi
7534
7535    if test -n "$ac_tool_prefix"; then
7536  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7537set dummy ${ac_tool_prefix}otool; ac_word=$2
7538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539$as_echo_n "checking for $ac_word... " >&6; }
7540if ${ac_cv_prog_OTOOL+:} false; then :
7541  $as_echo_n "(cached) " >&6
7542else
7543  if test -n "$OTOOL"; then
7544  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7545else
7546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547for as_dir in $PATH
7548do
7549  IFS=$as_save_IFS
7550  test -z "$as_dir" && as_dir=.
7551    for ac_exec_ext in '' $ac_executable_extensions; do
7552  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7553    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555    break 2
7556  fi
7557done
7558  done
7559IFS=$as_save_IFS
7560
7561fi
7562fi
7563OTOOL=$ac_cv_prog_OTOOL
7564if test -n "$OTOOL"; then
7565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7566$as_echo "$OTOOL" >&6; }
7567else
7568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569$as_echo "no" >&6; }
7570fi
7571
7572
7573fi
7574if test -z "$ac_cv_prog_OTOOL"; then
7575  ac_ct_OTOOL=$OTOOL
7576  # Extract the first word of "otool", so it can be a program name with args.
7577set dummy otool; ac_word=$2
7578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579$as_echo_n "checking for $ac_word... " >&6; }
7580if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7581  $as_echo_n "(cached) " >&6
7582else
7583  if test -n "$ac_ct_OTOOL"; then
7584  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7585else
7586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587for as_dir in $PATH
7588do
7589  IFS=$as_save_IFS
7590  test -z "$as_dir" && as_dir=.
7591    for ac_exec_ext in '' $ac_executable_extensions; do
7592  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7593    ac_cv_prog_ac_ct_OTOOL="otool"
7594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595    break 2
7596  fi
7597done
7598  done
7599IFS=$as_save_IFS
7600
7601fi
7602fi
7603ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7604if test -n "$ac_ct_OTOOL"; then
7605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7606$as_echo "$ac_ct_OTOOL" >&6; }
7607else
7608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609$as_echo "no" >&6; }
7610fi
7611
7612  if test "x$ac_ct_OTOOL" = x; then
7613    OTOOL=":"
7614  else
7615    case $cross_compiling:$ac_tool_warned in
7616yes:)
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7619ac_tool_warned=yes ;;
7620esac
7621    OTOOL=$ac_ct_OTOOL
7622  fi
7623else
7624  OTOOL="$ac_cv_prog_OTOOL"
7625fi
7626
7627    if test -n "$ac_tool_prefix"; then
7628  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7629set dummy ${ac_tool_prefix}otool64; ac_word=$2
7630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7631$as_echo_n "checking for $ac_word... " >&6; }
7632if ${ac_cv_prog_OTOOL64+:} false; then :
7633  $as_echo_n "(cached) " >&6
7634else
7635  if test -n "$OTOOL64"; then
7636  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7637else
7638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639for as_dir in $PATH
7640do
7641  IFS=$as_save_IFS
7642  test -z "$as_dir" && as_dir=.
7643    for ac_exec_ext in '' $ac_executable_extensions; do
7644  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7645    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647    break 2
7648  fi
7649done
7650  done
7651IFS=$as_save_IFS
7652
7653fi
7654fi
7655OTOOL64=$ac_cv_prog_OTOOL64
7656if test -n "$OTOOL64"; then
7657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7658$as_echo "$OTOOL64" >&6; }
7659else
7660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661$as_echo "no" >&6; }
7662fi
7663
7664
7665fi
7666if test -z "$ac_cv_prog_OTOOL64"; then
7667  ac_ct_OTOOL64=$OTOOL64
7668  # Extract the first word of "otool64", so it can be a program name with args.
7669set dummy otool64; ac_word=$2
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671$as_echo_n "checking for $ac_word... " >&6; }
7672if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7673  $as_echo_n "(cached) " >&6
7674else
7675  if test -n "$ac_ct_OTOOL64"; then
7676  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7677else
7678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679for as_dir in $PATH
7680do
7681  IFS=$as_save_IFS
7682  test -z "$as_dir" && as_dir=.
7683    for ac_exec_ext in '' $ac_executable_extensions; do
7684  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7685    ac_cv_prog_ac_ct_OTOOL64="otool64"
7686    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687    break 2
7688  fi
7689done
7690  done
7691IFS=$as_save_IFS
7692
7693fi
7694fi
7695ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7696if test -n "$ac_ct_OTOOL64"; then
7697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7698$as_echo "$ac_ct_OTOOL64" >&6; }
7699else
7700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701$as_echo "no" >&6; }
7702fi
7703
7704  if test "x$ac_ct_OTOOL64" = x; then
7705    OTOOL64=":"
7706  else
7707    case $cross_compiling:$ac_tool_warned in
7708yes:)
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7711ac_tool_warned=yes ;;
7712esac
7713    OTOOL64=$ac_ct_OTOOL64
7714  fi
7715else
7716  OTOOL64="$ac_cv_prog_OTOOL64"
7717fi
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7746$as_echo_n "checking for -single_module linker flag... " >&6; }
7747if ${lt_cv_apple_cc_single_mod+:} false; then :
7748  $as_echo_n "(cached) " >&6
7749else
7750  lt_cv_apple_cc_single_mod=no
7751      if test -z "${LT_MULTI_MODULE}"; then
7752        # By default we will add the -single_module flag. You can override
7753        # by either setting the environment variable LT_MULTI_MODULE
7754        # non-empty at configure time, or by adding -multi_module to the
7755        # link flags.
7756        rm -rf libconftest.dylib*
7757        echo "int foo(void){return 1;}" > conftest.c
7758        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7759-dynamiclib -Wl,-single_module conftest.c" >&5
7760        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7761          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7762        _lt_result=$?
7763        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7764          lt_cv_apple_cc_single_mod=yes
7765        else
7766          cat conftest.err >&5
7767        fi
7768        rm -rf libconftest.dylib*
7769        rm -f conftest.*
7770      fi
7771fi
7772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7773$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7774    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7775$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7776if ${lt_cv_ld_exported_symbols_list+:} false; then :
7777  $as_echo_n "(cached) " >&6
7778else
7779  lt_cv_ld_exported_symbols_list=no
7780      save_LDFLAGS=$LDFLAGS
7781      echo "_main" > conftest.sym
7782      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7783      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784/* end confdefs.h.  */
7785
7786int
7787main ()
7788{
7789
7790  ;
7791  return 0;
7792}
7793_ACEOF
7794if ac_fn_c_try_link "$LINENO"; then :
7795  lt_cv_ld_exported_symbols_list=yes
7796else
7797  lt_cv_ld_exported_symbols_list=no
7798fi
7799rm -f core conftest.err conftest.$ac_objext \
7800    conftest$ac_exeext conftest.$ac_ext
7801        LDFLAGS="$save_LDFLAGS"
7802
7803fi
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7805$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7806    case $host_os in
7807    rhapsody* | darwin1.[012])
7808      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7809    darwin1.*)
7810      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7811    darwin*) # darwin 5.x on
7812      # if running on 10.5 or later, the deployment target defaults
7813      # to the OS version, if on x86, and 10.4, the deployment
7814      # target defaults to 10.4. Don't you love it?
7815      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7816        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7817          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7818        10.[012]*)
7819          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7820        10.*)
7821          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7822      esac
7823    ;;
7824  esac
7825    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7826      _lt_dar_single_mod='$single_module'
7827    fi
7828    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7829      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7830    else
7831      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7832    fi
7833    if test "$DSYMUTIL" != ":"; then
7834      _lt_dsymutil='~$DSYMUTIL $lib || :'
7835    else
7836      _lt_dsymutil=
7837    fi
7838    ;;
7839  esac
7840
7841
7842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7843$as_echo_n "checking for ANSI C header files... " >&6; }
7844if ${ac_cv_header_stdc+:} false; then :
7845  $as_echo_n "(cached) " >&6
7846else
7847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848/* end confdefs.h.  */
7849#include <stdlib.h>
7850#include <stdarg.h>
7851#include <string.h>
7852#include <float.h>
7853
7854int
7855main ()
7856{
7857
7858  ;
7859  return 0;
7860}
7861_ACEOF
7862if ac_fn_c_try_compile "$LINENO"; then :
7863  ac_cv_header_stdc=yes
7864else
7865  ac_cv_header_stdc=no
7866fi
7867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868
7869if test $ac_cv_header_stdc = yes; then
7870  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872/* end confdefs.h.  */
7873#include <string.h>
7874
7875_ACEOF
7876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7877  $EGREP "memchr" >/dev/null 2>&1; then :
7878
7879else
7880  ac_cv_header_stdc=no
7881fi
7882rm -f conftest*
7883
7884fi
7885
7886if test $ac_cv_header_stdc = yes; then
7887  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889/* end confdefs.h.  */
7890#include <stdlib.h>
7891
7892_ACEOF
7893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7894  $EGREP "free" >/dev/null 2>&1; then :
7895
7896else
7897  ac_cv_header_stdc=no
7898fi
7899rm -f conftest*
7900
7901fi
7902
7903if test $ac_cv_header_stdc = yes; then
7904  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7905  if test "$cross_compiling" = yes; then :
7906  :
7907else
7908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909/* end confdefs.h.  */
7910#include <ctype.h>
7911#include <stdlib.h>
7912#if ((' ' & 0x0FF) == 0x020)
7913# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7914# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7915#else
7916# define ISLOWER(c) \
7917                   (('a' <= (c) && (c) <= 'i') \
7918                     || ('j' <= (c) && (c) <= 'r') \
7919                     || ('s' <= (c) && (c) <= 'z'))
7920# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7921#endif
7922
7923#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7924int
7925main ()
7926{
7927  int i;
7928  for (i = 0; i < 256; i++)
7929    if (XOR (islower (i), ISLOWER (i))
7930        || toupper (i) != TOUPPER (i))
7931      return 2;
7932  return 0;
7933}
7934_ACEOF
7935if ac_fn_c_try_run "$LINENO"; then :
7936
7937else
7938  ac_cv_header_stdc=no
7939fi
7940rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7941  conftest.$ac_objext conftest.beam conftest.$ac_ext
7942fi
7943
7944fi
7945fi
7946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7947$as_echo "$ac_cv_header_stdc" >&6; }
7948if test $ac_cv_header_stdc = yes; then
7949
7950$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7951
7952fi
7953
7954# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7955for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7956                  inttypes.h stdint.h unistd.h
7957do :
7958  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7959ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7960"
7961if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7962  cat >>confdefs.h <<_ACEOF
7963#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7964_ACEOF
7965
7966fi
7967
7968done
7969
7970
7971for ac_header in dlfcn.h
7972do :
7973  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7974"
7975if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7976  cat >>confdefs.h <<_ACEOF
7977#define HAVE_DLFCN_H 1
7978_ACEOF
7979
7980fi
7981
7982done
7983
7984
7985
7986ac_ext=cpp
7987ac_cpp='$CXXCPP $CPPFLAGS'
7988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7991if test -z "$CXX"; then
7992  if test -n "$CCC"; then
7993    CXX=$CCC
7994  else
7995    if test -n "$ac_tool_prefix"; then
7996  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7997  do
7998    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7999set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001$as_echo_n "checking for $ac_word... " >&6; }
8002if ${ac_cv_prog_CXX+:} false; then :
8003  $as_echo_n "(cached) " >&6
8004else
8005  if test -n "$CXX"; then
8006  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8007else
8008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009for as_dir in $PATH
8010do
8011  IFS=$as_save_IFS
8012  test -z "$as_dir" && as_dir=.
8013    for ac_exec_ext in '' $ac_executable_extensions; do
8014  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8015    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017    break 2
8018  fi
8019done
8020  done
8021IFS=$as_save_IFS
8022
8023fi
8024fi
8025CXX=$ac_cv_prog_CXX
8026if test -n "$CXX"; then
8027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8028$as_echo "$CXX" >&6; }
8029else
8030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031$as_echo "no" >&6; }
8032fi
8033
8034
8035    test -n "$CXX" && break
8036  done
8037fi
8038if test -z "$CXX"; then
8039  ac_ct_CXX=$CXX
8040  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8041do
8042  # Extract the first word of "$ac_prog", so it can be a program name with args.
8043set dummy $ac_prog; ac_word=$2
8044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8045$as_echo_n "checking for $ac_word... " >&6; }
8046if ${ac_cv_prog_ac_ct_CXX+:} false; then :
8047  $as_echo_n "(cached) " >&6
8048else
8049  if test -n "$ac_ct_CXX"; then
8050  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8051else
8052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053for as_dir in $PATH
8054do
8055  IFS=$as_save_IFS
8056  test -z "$as_dir" && as_dir=.
8057    for ac_exec_ext in '' $ac_executable_extensions; do
8058  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8059    ac_cv_prog_ac_ct_CXX="$ac_prog"
8060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8061    break 2
8062  fi
8063done
8064  done
8065IFS=$as_save_IFS
8066
8067fi
8068fi
8069ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8070if test -n "$ac_ct_CXX"; then
8071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8072$as_echo "$ac_ct_CXX" >&6; }
8073else
8074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075$as_echo "no" >&6; }
8076fi
8077
8078
8079  test -n "$ac_ct_CXX" && break
8080done
8081
8082  if test "x$ac_ct_CXX" = x; then
8083    CXX="g++"
8084  else
8085    case $cross_compiling:$ac_tool_warned in
8086yes:)
8087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8089ac_tool_warned=yes ;;
8090esac
8091    CXX=$ac_ct_CXX
8092  fi
8093fi
8094
8095  fi
8096fi
8097# Provide some information about the compiler.
8098$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8099set X $ac_compile
8100ac_compiler=$2
8101for ac_option in --version -v -V -qversion; do
8102  { { ac_try="$ac_compiler $ac_option >&5"
8103case "(($ac_try" in
8104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105  *) ac_try_echo=$ac_try;;
8106esac
8107eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8108$as_echo "$ac_try_echo"; } >&5
8109  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8110  ac_status=$?
8111  if test -s conftest.err; then
8112    sed '10a\
8113... rest of stderr output deleted ...
8114         10q' conftest.err >conftest.er1
8115    cat conftest.er1 >&5
8116  fi
8117  rm -f conftest.er1 conftest.err
8118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8119  test $ac_status = 0; }
8120done
8121
8122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8123$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8124if ${ac_cv_cxx_compiler_gnu+:} false; then :
8125  $as_echo_n "(cached) " >&6
8126else
8127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128/* end confdefs.h.  */
8129
8130int
8131main ()
8132{
8133#ifndef __GNUC__
8134       choke me
8135#endif
8136
8137  ;
8138  return 0;
8139}
8140_ACEOF
8141if ac_fn_cxx_try_compile "$LINENO"; then :
8142  ac_compiler_gnu=yes
8143else
8144  ac_compiler_gnu=no
8145fi
8146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8147ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8148
8149fi
8150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8151$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8152if test $ac_compiler_gnu = yes; then
8153  GXX=yes
8154else
8155  GXX=
8156fi
8157ac_test_CXXFLAGS=${CXXFLAGS+set}
8158ac_save_CXXFLAGS=$CXXFLAGS
8159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8160$as_echo_n "checking whether $CXX accepts -g... " >&6; }
8161if ${ac_cv_prog_cxx_g+:} false; then :
8162  $as_echo_n "(cached) " >&6
8163else
8164  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8165   ac_cxx_werror_flag=yes
8166   ac_cv_prog_cxx_g=no
8167   CXXFLAGS="-g"
8168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169/* end confdefs.h.  */
8170
8171int
8172main ()
8173{
8174
8175  ;
8176  return 0;
8177}
8178_ACEOF
8179if ac_fn_cxx_try_compile "$LINENO"; then :
8180  ac_cv_prog_cxx_g=yes
8181else
8182  CXXFLAGS=""
8183      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184/* end confdefs.h.  */
8185
8186int
8187main ()
8188{
8189
8190  ;
8191  return 0;
8192}
8193_ACEOF
8194if ac_fn_cxx_try_compile "$LINENO"; then :
8195
8196else
8197  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8198         CXXFLAGS="-g"
8199         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200/* end confdefs.h.  */
8201
8202int
8203main ()
8204{
8205
8206  ;
8207  return 0;
8208}
8209_ACEOF
8210if ac_fn_cxx_try_compile "$LINENO"; then :
8211  ac_cv_prog_cxx_g=yes
8212fi
8213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214fi
8215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216fi
8217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8219fi
8220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8221$as_echo "$ac_cv_prog_cxx_g" >&6; }
8222if test "$ac_test_CXXFLAGS" = set; then
8223  CXXFLAGS=$ac_save_CXXFLAGS
8224elif test $ac_cv_prog_cxx_g = yes; then
8225  if test "$GXX" = yes; then
8226    CXXFLAGS="-g -O2"
8227  else
8228    CXXFLAGS="-g"
8229  fi
8230else
8231  if test "$GXX" = yes; then
8232    CXXFLAGS="-O2"
8233  else
8234    CXXFLAGS=
8235  fi
8236fi
8237ac_ext=c
8238ac_cpp='$CPP $CPPFLAGS'
8239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8241ac_compiler_gnu=$ac_cv_c_compiler_gnu
8242
8243depcc="$CXX"  am_compiler_list=
8244
8245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8246$as_echo_n "checking dependency style of $depcc... " >&6; }
8247if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
8248  $as_echo_n "(cached) " >&6
8249else
8250  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8251  # We make a subdir and do the tests there.  Otherwise we can end up
8252  # making bogus files that we don't know about and never remove.  For
8253  # instance it was reported that on HP-UX the gcc test will end up
8254  # making a dummy file named `D' -- because `-MD' means `put the output
8255  # in D'.
8256  mkdir conftest.dir
8257  # Copy depcomp to subdir because otherwise we won't find it if we're
8258  # using a relative directory.
8259  cp "$am_depcomp" conftest.dir
8260  cd conftest.dir
8261  # We will build objects and dependencies in a subdirectory because
8262  # it helps to detect inapplicable dependency modes.  For instance
8263  # both Tru64's cc and ICC support -MD to output dependencies as a
8264  # side effect of compilation, but ICC will put the dependencies in
8265  # the current directory while Tru64 will put them in the object
8266  # directory.
8267  mkdir sub
8268
8269  am_cv_CXX_dependencies_compiler_type=none
8270  if test "$am_compiler_list" = ""; then
8271     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8272  fi
8273  am__universal=false
8274  case " $depcc " in #(
8275     *\ -arch\ *\ -arch\ *) am__universal=true ;;
8276     esac
8277
8278  for depmode in $am_compiler_list; do
8279    # Setup a source with many dependencies, because some compilers
8280    # like to wrap large dependency lists on column 80 (with \), and
8281    # we should not choose a depcomp mode which is confused by this.
8282    #
8283    # We need to recreate these files for each test, as the compiler may
8284    # overwrite some of them when testing with obscure command lines.
8285    # This happens at least with the AIX C compiler.
8286    : > sub/conftest.c
8287    for i in 1 2 3 4 5 6; do
8288      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8289      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8290      # Solaris 8's {/usr,}/bin/sh.
8291      touch sub/conftst$i.h
8292    done
8293    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8294
8295    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8296    # mode.  It turns out that the SunPro C++ compiler does not properly
8297    # handle `-M -o', and we need to detect this.  Also, some Intel
8298    # versions had trouble with output in subdirs
8299    am__obj=sub/conftest.${OBJEXT-o}
8300    am__minus_obj="-o $am__obj"
8301    case $depmode in
8302    gcc)
8303      # This depmode causes a compiler race in universal mode.
8304      test "$am__universal" = false || continue
8305      ;;
8306    nosideeffect)
8307      # after this tag, mechanisms are not by side-effect, so they'll
8308      # only be used when explicitly requested
8309      if test "x$enable_dependency_tracking" = xyes; then
8310        continue
8311      else
8312        break
8313      fi
8314      ;;
8315    msvisualcpp | msvcmsys)
8316      # This compiler won't grok `-c -o', but also, the minuso test has
8317      # not run yet.  These depmodes are late enough in the game, and
8318      # so weak that their functioning should not be impacted.
8319      am__obj=conftest.${OBJEXT-o}
8320      am__minus_obj=
8321      ;;
8322    none) break ;;
8323    esac
8324    if depmode=$depmode \
8325       source=sub/conftest.c object=$am__obj \
8326       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8327       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8328         >/dev/null 2>conftest.err &&
8329       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8330       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8331       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8332       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8333      # icc doesn't choke on unknown options, it will just issue warnings
8334      # or remarks (even with -Werror).  So we grep stderr for any message
8335      # that says an option was ignored or not supported.
8336      # When given -MP, icc 7.0 and 7.1 complain thusly:
8337      #   icc: Command line warning: ignoring option '-M'; no argument required
8338      # The diagnosis changed in icc 8.0:
8339      #   icc: Command line remark: option '-MP' not supported
8340      if (grep 'ignoring option' conftest.err ||
8341          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8342        am_cv_CXX_dependencies_compiler_type=$depmode
8343        break
8344      fi
8345    fi
8346  done
8347
8348  cd ..
8349  rm -rf conftest.dir
8350else
8351  am_cv_CXX_dependencies_compiler_type=none
8352fi
8353
8354fi
8355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8356$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8357CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8358
8359 if
8360  test "x$enable_dependency_tracking" != xno \
8361  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8362  am__fastdepCXX_TRUE=
8363  am__fastdepCXX_FALSE='#'
8364else
8365  am__fastdepCXX_TRUE='#'
8366  am__fastdepCXX_FALSE=
8367fi
8368
8369
8370if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8371    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8372    (test "X$CXX" != "Xg++"))) ; then
8373  ac_ext=cpp
8374ac_cpp='$CXXCPP $CPPFLAGS'
8375ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8376ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8377ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8379$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8380if test -z "$CXXCPP"; then
8381  if ${ac_cv_prog_CXXCPP+:} false; then :
8382  $as_echo_n "(cached) " >&6
8383else
8384      # Double quotes because CXXCPP needs to be expanded
8385    for CXXCPP in "$CXX -E" "/lib/cpp"
8386    do
8387      ac_preproc_ok=false
8388for ac_cxx_preproc_warn_flag in '' yes
8389do
8390  # Use a header file that comes with gcc, so configuring glibc
8391  # with a fresh cross-compiler works.
8392  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8393  # <limits.h> exists even on freestanding compilers.
8394  # On the NeXT, cc -E runs the code through the compiler's parser,
8395  # not just through cpp. "Syntax error" is here to catch this case.
8396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397/* end confdefs.h.  */
8398#ifdef __STDC__
8399# include <limits.h>
8400#else
8401# include <assert.h>
8402#endif
8403                     Syntax error
8404_ACEOF
8405if ac_fn_cxx_try_cpp "$LINENO"; then :
8406
8407else
8408  # Broken: fails on valid input.
8409continue
8410fi
8411rm -f conftest.err conftest.i conftest.$ac_ext
8412
8413  # OK, works on sane cases.  Now check whether nonexistent headers
8414  # can be detected and how.
8415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8416/* end confdefs.h.  */
8417#include <ac_nonexistent.h>
8418_ACEOF
8419if ac_fn_cxx_try_cpp "$LINENO"; then :
8420  # Broken: success on invalid input.
8421continue
8422else
8423  # Passes both tests.
8424ac_preproc_ok=:
8425break
8426fi
8427rm -f conftest.err conftest.i conftest.$ac_ext
8428
8429done
8430# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8431rm -f conftest.i conftest.err conftest.$ac_ext
8432if $ac_preproc_ok; then :
8433  break
8434fi
8435
8436    done
8437    ac_cv_prog_CXXCPP=$CXXCPP
8438
8439fi
8440  CXXCPP=$ac_cv_prog_CXXCPP
8441else
8442  ac_cv_prog_CXXCPP=$CXXCPP
8443fi
8444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8445$as_echo "$CXXCPP" >&6; }
8446ac_preproc_ok=false
8447for ac_cxx_preproc_warn_flag in '' yes
8448do
8449  # Use a header file that comes with gcc, so configuring glibc
8450  # with a fresh cross-compiler works.
8451  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8452  # <limits.h> exists even on freestanding compilers.
8453  # On the NeXT, cc -E runs the code through the compiler's parser,
8454  # not just through cpp. "Syntax error" is here to catch this case.
8455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456/* end confdefs.h.  */
8457#ifdef __STDC__
8458# include <limits.h>
8459#else
8460# include <assert.h>
8461#endif
8462                     Syntax error
8463_ACEOF
8464if ac_fn_cxx_try_cpp "$LINENO"; then :
8465
8466else
8467  # Broken: fails on valid input.
8468continue
8469fi
8470rm -f conftest.err conftest.i conftest.$ac_ext
8471
8472  # OK, works on sane cases.  Now check whether nonexistent headers
8473  # can be detected and how.
8474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475/* end confdefs.h.  */
8476#include <ac_nonexistent.h>
8477_ACEOF
8478if ac_fn_cxx_try_cpp "$LINENO"; then :
8479  # Broken: success on invalid input.
8480continue
8481else
8482  # Passes both tests.
8483ac_preproc_ok=:
8484break
8485fi
8486rm -f conftest.err conftest.i conftest.$ac_ext
8487
8488done
8489# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8490rm -f conftest.i conftest.err conftest.$ac_ext
8491if $ac_preproc_ok; then :
8492
8493else
8494  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8496_lt_caught_CXX_error=yes; }
8497fi
8498
8499ac_ext=c
8500ac_cpp='$CPP $CPPFLAGS'
8501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8503ac_compiler_gnu=$ac_cv_c_compiler_gnu
8504
8505else
8506  _lt_caught_CXX_error=yes
8507fi
8508
8509
8510
8511
8512
8513# Set options
8514
8515
8516
8517        enable_dlopen=no
8518
8519
8520
8521            # Check whether --enable-shared was given.
8522if test "${enable_shared+set}" = set; then :
8523  enableval=$enable_shared; p=${PACKAGE-default}
8524    case $enableval in
8525    yes) enable_shared=yes ;;
8526    no) enable_shared=no ;;
8527    *)
8528      enable_shared=no
8529      # Look at the argument we got.  We use all the common list separators.
8530      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8531      for pkg in $enableval; do
8532        IFS="$lt_save_ifs"
8533        if test "X$pkg" = "X$p"; then
8534          enable_shared=yes
8535        fi
8536      done
8537      IFS="$lt_save_ifs"
8538      ;;
8539    esac
8540else
8541  enable_shared=yes
8542fi
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552  # Check whether --enable-static was given.
8553if test "${enable_static+set}" = set; then :
8554  enableval=$enable_static; p=${PACKAGE-default}
8555    case $enableval in
8556    yes) enable_static=yes ;;
8557    no) enable_static=no ;;
8558    *)
8559     enable_static=no
8560      # Look at the argument we got.  We use all the common list separators.
8561      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8562      for pkg in $enableval; do
8563        IFS="$lt_save_ifs"
8564        if test "X$pkg" = "X$p"; then
8565          enable_static=yes
8566        fi
8567      done
8568      IFS="$lt_save_ifs"
8569      ;;
8570    esac
8571else
8572  enable_static=yes
8573fi
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584# Check whether --with-pic was given.
8585if test "${with_pic+set}" = set; then :
8586  withval=$with_pic; pic_mode="$withval"
8587else
8588  pic_mode=default
8589fi
8590
8591
8592test -z "$pic_mode" && pic_mode=default
8593
8594
8595
8596
8597
8598
8599
8600  # Check whether --enable-fast-install was given.
8601if test "${enable_fast_install+set}" = set; then :
8602  enableval=$enable_fast_install; p=${PACKAGE-default}
8603    case $enableval in
8604    yes) enable_fast_install=yes ;;
8605    no) enable_fast_install=no ;;
8606    *)
8607      enable_fast_install=no
8608      # Look at the argument we got.  We use all the common list separators.
8609      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8610      for pkg in $enableval; do
8611        IFS="$lt_save_ifs"
8612        if test "X$pkg" = "X$p"; then
8613          enable_fast_install=yes
8614        fi
8615      done
8616      IFS="$lt_save_ifs"
8617      ;;
8618    esac
8619else
8620  enable_fast_install=yes
8621fi
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633# This can be used to rebuild libtool when needed
8634LIBTOOL_DEPS="$ltmain"
8635
8636# Always use our own libtool.
8637LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663test -z "$LN_S" && LN_S="ln -s"
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678if test -n "${ZSH_VERSION+set}" ; then
8679   setopt NO_GLOB_SUBST
8680fi
8681
8682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8683$as_echo_n "checking for objdir... " >&6; }
8684if ${lt_cv_objdir+:} false; then :
8685  $as_echo_n "(cached) " >&6
8686else
8687  rm -f .libs 2>/dev/null
8688mkdir .libs 2>/dev/null
8689if test -d .libs; then
8690  lt_cv_objdir=.libs
8691else
8692  # MS-DOS does not allow filenames that begin with a dot.
8693  lt_cv_objdir=_libs
8694fi
8695rmdir .libs 2>/dev/null
8696fi
8697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8698$as_echo "$lt_cv_objdir" >&6; }
8699objdir=$lt_cv_objdir
8700
8701
8702
8703
8704
8705cat >>confdefs.h <<_ACEOF
8706#define LT_OBJDIR "$lt_cv_objdir/"
8707_ACEOF
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725case $host_os in
8726aix3*)
8727  # AIX sometimes has problems with the GCC collect2 program.  For some
8728  # reason, if we set the COLLECT_NAMES environment variable, the problems
8729  # vanish in a puff of smoke.
8730  if test "X${COLLECT_NAMES+set}" != Xset; then
8731    COLLECT_NAMES=
8732    export COLLECT_NAMES
8733  fi
8734  ;;
8735esac
8736
8737# Sed substitution that helps us do robust quoting.  It backslashifies
8738# metacharacters that are still active within double-quoted strings.
8739sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8740
8741# Same as above, but do not quote variable references.
8742double_quote_subst='s/\(["`\\]\)/\\\1/g'
8743
8744# Sed substitution to delay expansion of an escaped shell variable in a
8745# double_quote_subst'ed string.
8746delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8747
8748# Sed substitution to delay expansion of an escaped single quote.
8749delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8750
8751# Sed substitution to avoid accidental globbing in evaled expressions
8752no_glob_subst='s/\*/\\\*/g'
8753
8754# Global variables:
8755ofile=libtool
8756can_build_shared=yes
8757
8758# All known linkers require a `.a' archive for static linking (except MSVC,
8759# which needs '.lib').
8760libext=a
8761
8762with_gnu_ld="$lt_cv_prog_gnu_ld"
8763
8764old_CC="$CC"
8765old_CFLAGS="$CFLAGS"
8766
8767# Set sane defaults for various variables
8768test -z "$CC" && CC=cc
8769test -z "$LTCC" && LTCC=$CC
8770test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8771test -z "$LD" && LD=ld
8772test -z "$ac_objext" && ac_objext=o
8773
8774for cc_temp in $compiler""; do
8775  case $cc_temp in
8776    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8777    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8778    \-*) ;;
8779    *) break;;
8780  esac
8781done
8782cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8783
8784
8785# Only perform the check for file, if the check method requires it
8786test -z "$MAGIC_CMD" && MAGIC_CMD=file
8787case $deplibs_check_method in
8788file_magic*)
8789  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8790    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8791$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8792if ${lt_cv_path_MAGIC_CMD+:} false; then :
8793  $as_echo_n "(cached) " >&6
8794else
8795  case $MAGIC_CMD in
8796[\\/*] |  ?:[\\/]*)
8797  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8798  ;;
8799*)
8800  lt_save_MAGIC_CMD="$MAGIC_CMD"
8801  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8802  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8803  for ac_dir in $ac_dummy; do
8804    IFS="$lt_save_ifs"
8805    test -z "$ac_dir" && ac_dir=.
8806    if test -f $ac_dir/${ac_tool_prefix}file; then
8807      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8808      if test -n "$file_magic_test_file"; then
8809        case $deplibs_check_method in
8810        "file_magic "*)
8811          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8812          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8813          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8814            $EGREP "$file_magic_regex" > /dev/null; then
8815            :
8816          else
8817            cat <<_LT_EOF 1>&2
8818
8819*** Warning: the command libtool uses to detect shared libraries,
8820*** $file_magic_cmd, produces output that libtool cannot recognize.
8821*** The result is that libtool may fail to recognize shared libraries
8822*** as such.  This will affect the creation of libtool libraries that
8823*** depend on shared libraries, but programs linked with such libtool
8824*** libraries will work regardless of this problem.  Nevertheless, you
8825*** may want to report the problem to your system manager and/or to
8826*** bug-libtool@gnu.org
8827
8828_LT_EOF
8829          fi ;;
8830        esac
8831      fi
8832      break
8833    fi
8834  done
8835  IFS="$lt_save_ifs"
8836  MAGIC_CMD="$lt_save_MAGIC_CMD"
8837  ;;
8838esac
8839fi
8840
8841MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8842if test -n "$MAGIC_CMD"; then
8843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8844$as_echo "$MAGIC_CMD" >&6; }
8845else
8846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847$as_echo "no" >&6; }
8848fi
8849
8850
8851
8852
8853
8854if test -z "$lt_cv_path_MAGIC_CMD"; then
8855  if test -n "$ac_tool_prefix"; then
8856    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8857$as_echo_n "checking for file... " >&6; }
8858if ${lt_cv_path_MAGIC_CMD+:} false; then :
8859  $as_echo_n "(cached) " >&6
8860else
8861  case $MAGIC_CMD in
8862[\\/*] |  ?:[\\/]*)
8863  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8864  ;;
8865*)
8866  lt_save_MAGIC_CMD="$MAGIC_CMD"
8867  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8868  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8869  for ac_dir in $ac_dummy; do
8870    IFS="$lt_save_ifs"
8871    test -z "$ac_dir" && ac_dir=.
8872    if test -f $ac_dir/file; then
8873      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8874      if test -n "$file_magic_test_file"; then
8875        case $deplibs_check_method in
8876        "file_magic "*)
8877          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8878          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8879          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8880            $EGREP "$file_magic_regex" > /dev/null; then
8881            :
8882          else
8883            cat <<_LT_EOF 1>&2
8884
8885*** Warning: the command libtool uses to detect shared libraries,
8886*** $file_magic_cmd, produces output that libtool cannot recognize.
8887*** The result is that libtool may fail to recognize shared libraries
8888*** as such.  This will affect the creation of libtool libraries that
8889*** depend on shared libraries, but programs linked with such libtool
8890*** libraries will work regardless of this problem.  Nevertheless, you
8891*** may want to report the problem to your system manager and/or to
8892*** bug-libtool@gnu.org
8893
8894_LT_EOF
8895          fi ;;
8896        esac
8897      fi
8898      break
8899    fi
8900  done
8901  IFS="$lt_save_ifs"
8902  MAGIC_CMD="$lt_save_MAGIC_CMD"
8903  ;;
8904esac
8905fi
8906
8907MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8908if test -n "$MAGIC_CMD"; then
8909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8910$as_echo "$MAGIC_CMD" >&6; }
8911else
8912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8913$as_echo "no" >&6; }
8914fi
8915
8916
8917  else
8918    MAGIC_CMD=:
8919  fi
8920fi
8921
8922  fi
8923  ;;
8924esac
8925
8926# Use C for the default configuration in the libtool script
8927
8928lt_save_CC="$CC"
8929ac_ext=c
8930ac_cpp='$CPP $CPPFLAGS'
8931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8933ac_compiler_gnu=$ac_cv_c_compiler_gnu
8934
8935
8936# Source file extension for C test sources.
8937ac_ext=c
8938
8939# Object file extension for compiled C test sources.
8940objext=o
8941objext=$objext
8942
8943# Code to be used in simple compile tests
8944lt_simple_compile_test_code="int some_variable = 0;"
8945
8946# Code to be used in simple link tests
8947lt_simple_link_test_code='int main(){return(0);}'
8948
8949
8950
8951
8952
8953
8954
8955# If no C compiler was specified, use CC.
8956LTCC=${LTCC-"$CC"}
8957
8958# If no C compiler flags were specified, use CFLAGS.
8959LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8960
8961# Allow CC to be a program name with arguments.
8962compiler=$CC
8963
8964# Save the default compiler, since it gets overwritten when the other
8965# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8966compiler_DEFAULT=$CC
8967
8968# save warnings/boilerplate of simple test code
8969ac_outfile=conftest.$ac_objext
8970echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8971eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8972_lt_compiler_boilerplate=`cat conftest.err`
8973$RM conftest*
8974
8975ac_outfile=conftest.$ac_objext
8976echo "$lt_simple_link_test_code" >conftest.$ac_ext
8977eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8978_lt_linker_boilerplate=`cat conftest.err`
8979$RM -r conftest*
8980
8981
8982if test -n "$compiler"; then
8983
8984lt_prog_compiler_no_builtin_flag=
8985
8986if test "$GCC" = yes; then
8987  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8988
8989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8990$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8991if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8992  $as_echo_n "(cached) " >&6
8993else
8994  lt_cv_prog_compiler_rtti_exceptions=no
8995   ac_outfile=conftest.$ac_objext
8996   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8997   lt_compiler_flag="-fno-rtti -fno-exceptions"
8998   # Insert the option either (1) after the last *FLAGS variable, or
8999   # (2) before a word containing "conftest.", or (3) at the end.
9000   # Note that $ac_compile itself does not contain backslashes and begins
9001   # with a dollar sign (not a hyphen), so the echo should work correctly.
9002   # The option is referenced via a variable to avoid confusing sed.
9003   lt_compile=`echo "$ac_compile" | $SED \
9004   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9005   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9006   -e 's:$: $lt_compiler_flag:'`
9007   (eval echo "\"\$as_me:9007: $lt_compile\"" >&5)
9008   (eval "$lt_compile" 2>conftest.err)
9009   ac_status=$?
9010   cat conftest.err >&5
9011   echo "$as_me:9011: \$? = $ac_status" >&5
9012   if (exit $ac_status) && test -s "$ac_outfile"; then
9013     # The compiler can only warn and ignore the option if not recognized
9014     # So say no if there are warnings other than the usual output.
9015     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9016     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9017     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9018       lt_cv_prog_compiler_rtti_exceptions=yes
9019     fi
9020   fi
9021   $RM conftest*
9022
9023fi
9024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9025$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9026
9027if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9028    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9029else
9030    :
9031fi
9032
9033fi
9034
9035
9036
9037
9038
9039
9040  lt_prog_compiler_wl=
9041lt_prog_compiler_pic=
9042lt_prog_compiler_static=
9043
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9045$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9046
9047  if test "$GCC" = yes; then
9048    lt_prog_compiler_wl='-Wl,'
9049    lt_prog_compiler_static='-static'
9050
9051    case $host_os in
9052      aix*)
9053      # All AIX code is PIC.
9054      if test "$host_cpu" = ia64; then
9055        # AIX 5 now supports IA64 processor
9056        lt_prog_compiler_static='-Bstatic'
9057      fi
9058      ;;
9059
9060    amigaos*)
9061      case $host_cpu in
9062      powerpc)
9063            # see comment about AmigaOS4 .so support
9064            lt_prog_compiler_pic='-fPIC'
9065        ;;
9066      m68k)
9067            # FIXME: we need at least 68020 code to build shared libraries, but
9068            # adding the `-m68020' flag to GCC prevents building anything better,
9069            # like `-m68040'.
9070            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9071        ;;
9072      esac
9073      ;;
9074
9075    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9076      # PIC is the default for these OSes.
9077      ;;
9078
9079    mingw* | cygwin* | pw32* | os2* | cegcc*)
9080      # This hack is so that the source file can tell whether it is being
9081      # built for inclusion in a dll (and should export symbols for example).
9082      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9083      # (--disable-auto-import) libraries
9084      lt_prog_compiler_pic='-DDLL_EXPORT'
9085      ;;
9086
9087    darwin* | rhapsody*)
9088      # PIC is the default on this platform
9089      # Common symbols not allowed in MH_DYLIB files
9090      lt_prog_compiler_pic='-fno-common'
9091      ;;
9092
9093    hpux*)
9094      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9095      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9096      # sets the default TLS model and affects inlining.
9097      case $host_cpu in
9098      hppa*64*)
9099        # +Z the default
9100        ;;
9101      *)
9102        lt_prog_compiler_pic='-fPIC'
9103        ;;
9104      esac
9105      ;;
9106
9107    interix[3-9]*)
9108      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9109      # Instead, we relocate shared libraries at runtime.
9110      ;;
9111
9112    msdosdjgpp*)
9113      # Just because we use GCC doesn't mean we suddenly get shared libraries
9114      # on systems that don't support them.
9115      lt_prog_compiler_can_build_shared=no
9116      enable_shared=no
9117      ;;
9118
9119    *nto* | *qnx*)
9120      # QNX uses GNU C++, but need to define -shared option too, otherwise
9121      # it will coredump.
9122      lt_prog_compiler_pic='-fPIC -shared'
9123      ;;
9124
9125    sysv4*MP*)
9126      if test -d /usr/nec; then
9127        lt_prog_compiler_pic=-Kconform_pic
9128      fi
9129      ;;
9130
9131    *)
9132      lt_prog_compiler_pic='-fPIC'
9133      ;;
9134    esac
9135  else
9136    # PORTME Check for flag to pass linker flags through the system compiler.
9137    case $host_os in
9138    aix*)
9139      lt_prog_compiler_wl='-Wl,'
9140      if test "$host_cpu" = ia64; then
9141        # AIX 5 now supports IA64 processor
9142        lt_prog_compiler_static='-Bstatic'
9143      else
9144        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9145      fi
9146      ;;
9147
9148    mingw* | cygwin* | pw32* | os2* | cegcc*)
9149      # This hack is so that the source file can tell whether it is being
9150      # built for inclusion in a dll (and should export symbols for example).
9151      lt_prog_compiler_pic='-DDLL_EXPORT'
9152      ;;
9153
9154    hpux9* | hpux10* | hpux11*)
9155      lt_prog_compiler_wl='-Wl,'
9156      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9157      # not for PA HP-UX.
9158      case $host_cpu in
9159      hppa*64*|ia64*)
9160        # +Z the default
9161        ;;
9162      *)
9163        lt_prog_compiler_pic='+Z'
9164        ;;
9165      esac
9166      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9167      lt_prog_compiler_static='${wl}-a ${wl}archive'
9168      ;;
9169
9170    irix5* | irix6* | nonstopux*)
9171      lt_prog_compiler_wl='-Wl,'
9172      # PIC (with -KPIC) is the default.
9173      lt_prog_compiler_static='-non_shared'
9174      ;;
9175
9176    linux* | k*bsd*-gnu)
9177      case $cc_basename in
9178      # old Intel for x86_64 which still supported -KPIC.
9179      ecc*)
9180        lt_prog_compiler_wl='-Wl,'
9181        lt_prog_compiler_pic='-KPIC'
9182        lt_prog_compiler_static='-static'
9183        ;;
9184      # icc used to be incompatible with GCC.
9185      # ICC 10 doesn't accept -KPIC any more.
9186      icc* | ifort*)
9187        lt_prog_compiler_wl='-Wl,'
9188        lt_prog_compiler_pic='-fPIC'
9189        lt_prog_compiler_static='-static'
9190        ;;
9191      # Lahey Fortran 8.1.
9192      lf95*)
9193        lt_prog_compiler_wl='-Wl,'
9194        lt_prog_compiler_pic='--shared'
9195        lt_prog_compiler_static='--static'
9196        ;;
9197      pgcc* | pgf77* | pgf90* | pgf95*)
9198        # Portland Group compilers (*not* the Pentium gcc compiler,
9199        # which looks to be a dead project)
9200        lt_prog_compiler_wl='-Wl,'
9201        lt_prog_compiler_pic='-fpic'
9202        lt_prog_compiler_static='-Bstatic'
9203        ;;
9204      ccc*)
9205        lt_prog_compiler_wl='-Wl,'
9206        # All Alpha code is PIC.
9207        lt_prog_compiler_static='-non_shared'
9208        ;;
9209      xl*)
9210        # IBM XL C 8.0/Fortran 10.1 on PPC
9211        lt_prog_compiler_wl='-Wl,'
9212        lt_prog_compiler_pic='-qpic'
9213        lt_prog_compiler_static='-qstaticlink'
9214        ;;
9215      *)
9216        case `$CC -V 2>&1 | sed 5q` in
9217        *Sun\ C*)
9218          # Sun C 5.9
9219          lt_prog_compiler_pic='-KPIC'
9220          lt_prog_compiler_static='-Bstatic'
9221          lt_prog_compiler_wl='-Wl,'
9222          ;;
9223        *Sun\ F*)
9224          # Sun Fortran 8.3 passes all unrecognized flags to the linker
9225          lt_prog_compiler_pic='-KPIC'
9226          lt_prog_compiler_static='-Bstatic'
9227          lt_prog_compiler_wl=''
9228          ;;
9229        esac
9230        ;;
9231      esac
9232      ;;
9233
9234    newsos6)
9235      lt_prog_compiler_pic='-KPIC'
9236      lt_prog_compiler_static='-Bstatic'
9237      ;;
9238
9239    *nto* | *qnx*)
9240      # QNX uses GNU C++, but need to define -shared option too, otherwise
9241      # it will coredump.
9242      lt_prog_compiler_pic='-fPIC -shared'
9243      ;;
9244
9245    osf3* | osf4* | osf5*)
9246      lt_prog_compiler_wl='-Wl,'
9247      # All OSF/1 code is PIC.
9248      lt_prog_compiler_static='-non_shared'
9249      ;;
9250
9251    rdos*)
9252      lt_prog_compiler_static='-non_shared'
9253      ;;
9254
9255    solaris*)
9256      lt_prog_compiler_pic='-KPIC'
9257      lt_prog_compiler_static='-Bstatic'
9258      case $cc_basename in
9259      f77* | f90* | f95*)
9260        lt_prog_compiler_wl='-Qoption ld ';;
9261      *)
9262        lt_prog_compiler_wl='-Wl,';;
9263      esac
9264      ;;
9265
9266    sunos4*)
9267      lt_prog_compiler_wl='-Qoption ld '
9268      lt_prog_compiler_pic='-PIC'
9269      lt_prog_compiler_static='-Bstatic'
9270      ;;
9271
9272    sysv4 | sysv4.2uw2* | sysv4.3*)
9273      lt_prog_compiler_wl='-Wl,'
9274      lt_prog_compiler_pic='-KPIC'
9275      lt_prog_compiler_static='-Bstatic'
9276      ;;
9277
9278    sysv4*MP*)
9279      if test -d /usr/nec ;then
9280        lt_prog_compiler_pic='-Kconform_pic'
9281        lt_prog_compiler_static='-Bstatic'
9282      fi
9283      ;;
9284
9285    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9286      lt_prog_compiler_wl='-Wl,'
9287      lt_prog_compiler_pic='-KPIC'
9288      lt_prog_compiler_static='-Bstatic'
9289      ;;
9290
9291    unicos*)
9292      lt_prog_compiler_wl='-Wl,'
9293      lt_prog_compiler_can_build_shared=no
9294      ;;
9295
9296    uts4*)
9297      lt_prog_compiler_pic='-pic'
9298      lt_prog_compiler_static='-Bstatic'
9299      ;;
9300
9301    *)
9302      lt_prog_compiler_can_build_shared=no
9303      ;;
9304    esac
9305  fi
9306
9307case $host_os in
9308  # For platforms which do not support PIC, -DPIC is meaningless:
9309  *djgpp*)
9310    lt_prog_compiler_pic=
9311    ;;
9312  *)
9313    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9314    ;;
9315esac
9316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9317$as_echo "$lt_prog_compiler_pic" >&6; }
9318
9319
9320
9321
9322
9323
9324#
9325# Check to make sure the PIC flag actually works.
9326#
9327if test -n "$lt_prog_compiler_pic"; then
9328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9329$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9330if ${lt_cv_prog_compiler_pic_works+:} false; then :
9331  $as_echo_n "(cached) " >&6
9332else
9333  lt_cv_prog_compiler_pic_works=no
9334   ac_outfile=conftest.$ac_objext
9335   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9336   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9337   # Insert the option either (1) after the last *FLAGS variable, or
9338   # (2) before a word containing "conftest.", or (3) at the end.
9339   # Note that $ac_compile itself does not contain backslashes and begins
9340   # with a dollar sign (not a hyphen), so the echo should work correctly.
9341   # The option is referenced via a variable to avoid confusing sed.
9342   lt_compile=`echo "$ac_compile" | $SED \
9343   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9344   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9345   -e 's:$: $lt_compiler_flag:'`
9346   (eval echo "\"\$as_me:9346: $lt_compile\"" >&5)
9347   (eval "$lt_compile" 2>conftest.err)
9348   ac_status=$?
9349   cat conftest.err >&5
9350   echo "$as_me:9350: \$? = $ac_status" >&5
9351   if (exit $ac_status) && test -s "$ac_outfile"; then
9352     # The compiler can only warn and ignore the option if not recognized
9353     # So say no if there are warnings other than the usual output.
9354     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9355     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9356     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9357       lt_cv_prog_compiler_pic_works=yes
9358     fi
9359   fi
9360   $RM conftest*
9361
9362fi
9363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9364$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9365
9366if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9367    case $lt_prog_compiler_pic in
9368     "" | " "*) ;;
9369     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9370     esac
9371else
9372    lt_prog_compiler_pic=
9373     lt_prog_compiler_can_build_shared=no
9374fi
9375
9376fi
9377
9378
9379
9380
9381
9382
9383#
9384# Check to make sure the static flag actually works.
9385#
9386wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9388$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9389if ${lt_cv_prog_compiler_static_works+:} false; then :
9390  $as_echo_n "(cached) " >&6
9391else
9392  lt_cv_prog_compiler_static_works=no
9393   save_LDFLAGS="$LDFLAGS"
9394   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9395   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9396   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9397     # The linker can only warn and ignore the option if not recognized
9398     # So say no if there are warnings
9399     if test -s conftest.err; then
9400       # Append any errors to the config.log.
9401       cat conftest.err 1>&5
9402       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9403       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9404       if diff conftest.exp conftest.er2 >/dev/null; then
9405         lt_cv_prog_compiler_static_works=yes
9406       fi
9407     else
9408       lt_cv_prog_compiler_static_works=yes
9409     fi
9410   fi
9411   $RM -r conftest*
9412   LDFLAGS="$save_LDFLAGS"
9413
9414fi
9415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9416$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9417
9418if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9419    :
9420else
9421    lt_prog_compiler_static=
9422fi
9423
9424
9425
9426
9427
9428
9429
9430  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9431$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9432if ${lt_cv_prog_compiler_c_o+:} false; then :
9433  $as_echo_n "(cached) " >&6
9434else
9435  lt_cv_prog_compiler_c_o=no
9436   $RM -r conftest 2>/dev/null
9437   mkdir conftest
9438   cd conftest
9439   mkdir out
9440   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9441
9442   lt_compiler_flag="-o out/conftest2.$ac_objext"
9443   # Insert the option either (1) after the last *FLAGS variable, or
9444   # (2) before a word containing "conftest.", or (3) at the end.
9445   # Note that $ac_compile itself does not contain backslashes and begins
9446   # with a dollar sign (not a hyphen), so the echo should work correctly.
9447   lt_compile=`echo "$ac_compile" | $SED \
9448   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9449   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9450   -e 's:$: $lt_compiler_flag:'`
9451   (eval echo "\"\$as_me:9451: $lt_compile\"" >&5)
9452   (eval "$lt_compile" 2>out/conftest.err)
9453   ac_status=$?
9454   cat out/conftest.err >&5
9455   echo "$as_me:9455: \$? = $ac_status" >&5
9456   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9457   then
9458     # The compiler can only warn and ignore the option if not recognized
9459     # So say no if there are warnings
9460     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9461     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9462     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9463       lt_cv_prog_compiler_c_o=yes
9464     fi
9465   fi
9466   chmod u+w . 2>&5
9467   $RM conftest*
9468   # SGI C++ compiler will create directory out/ii_files/ for
9469   # template instantiation
9470   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9471   $RM out/* && rmdir out
9472   cd ..
9473   $RM -r conftest
9474   $RM conftest*
9475
9476fi
9477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9478$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9479
9480
9481
9482
9483
9484
9485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9486$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9487if ${lt_cv_prog_compiler_c_o+:} false; then :
9488  $as_echo_n "(cached) " >&6
9489else
9490  lt_cv_prog_compiler_c_o=no
9491   $RM -r conftest 2>/dev/null
9492   mkdir conftest
9493   cd conftest
9494   mkdir out
9495   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9496
9497   lt_compiler_flag="-o out/conftest2.$ac_objext"
9498   # Insert the option either (1) after the last *FLAGS variable, or
9499   # (2) before a word containing "conftest.", or (3) at the end.
9500   # Note that $ac_compile itself does not contain backslashes and begins
9501   # with a dollar sign (not a hyphen), so the echo should work correctly.
9502   lt_compile=`echo "$ac_compile" | $SED \
9503   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9504   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9505   -e 's:$: $lt_compiler_flag:'`
9506   (eval echo "\"\$as_me:9506: $lt_compile\"" >&5)
9507   (eval "$lt_compile" 2>out/conftest.err)
9508   ac_status=$?
9509   cat out/conftest.err >&5
9510   echo "$as_me:9510: \$? = $ac_status" >&5
9511   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9512   then
9513     # The compiler can only warn and ignore the option if not recognized
9514     # So say no if there are warnings
9515     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9516     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9517     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9518       lt_cv_prog_compiler_c_o=yes
9519     fi
9520   fi
9521   chmod u+w . 2>&5
9522   $RM conftest*
9523   # SGI C++ compiler will create directory out/ii_files/ for
9524   # template instantiation
9525   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9526   $RM out/* && rmdir out
9527   cd ..
9528   $RM -r conftest
9529   $RM conftest*
9530
9531fi
9532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9533$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9534
9535
9536
9537
9538hard_links="nottested"
9539if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9540  # do not overwrite the value of need_locks provided by the user
9541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9542$as_echo_n "checking if we can lock with hard links... " >&6; }
9543  hard_links=yes
9544  $RM conftest*
9545  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9546  touch conftest.a
9547  ln conftest.a conftest.b 2>&5 || hard_links=no
9548  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9550$as_echo "$hard_links" >&6; }
9551  if test "$hard_links" = no; then
9552    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9553$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9554    need_locks=warn
9555  fi
9556else
9557  need_locks=no
9558fi
9559
9560
9561
9562
9563
9564
9565  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9566$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9567
9568  runpath_var=
9569  allow_undefined_flag=
9570  always_export_symbols=no
9571  archive_cmds=
9572  archive_expsym_cmds=
9573  compiler_needs_object=no
9574  enable_shared_with_static_runtimes=no
9575  export_dynamic_flag_spec=
9576  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9577  hardcode_automatic=no
9578  hardcode_direct=no
9579  hardcode_direct_absolute=no
9580  hardcode_libdir_flag_spec=
9581  hardcode_libdir_flag_spec_ld=
9582  hardcode_libdir_separator=
9583  hardcode_minus_L=no
9584  hardcode_shlibpath_var=unsupported
9585  inherit_rpath=no
9586  link_all_deplibs=unknown
9587  module_cmds=
9588  module_expsym_cmds=
9589  old_archive_from_new_cmds=
9590  old_archive_from_expsyms_cmds=
9591  thread_safe_flag_spec=
9592  whole_archive_flag_spec=
9593  # include_expsyms should be a list of space-separated symbols to be *always*
9594  # included in the symbol list
9595  include_expsyms=
9596  # exclude_expsyms can be an extended regexp of symbols to exclude
9597  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9598  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9599  # as well as any symbol that contains `d'.
9600  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9601  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9602  # platforms (ab)use it in PIC code, but their linkers get confused if
9603  # the symbol is explicitly referenced.  Since portable code cannot
9604  # rely on this symbol name, it's probably fine to never include it in
9605  # preloaded symbol tables.
9606  # Exclude shared library initialization/finalization symbols.
9607  extract_expsyms_cmds=
9608
9609  case $host_os in
9610  cygwin* | mingw* | pw32* | cegcc*)
9611    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9612    # When not using gcc, we currently assume that we are using
9613    # Microsoft Visual C++.
9614    if test "$GCC" != yes; then
9615      with_gnu_ld=no
9616    fi
9617    ;;
9618  interix*)
9619    # we just hope/assume this is gcc and not c89 (= MSVC++)
9620    with_gnu_ld=yes
9621    ;;
9622  openbsd*)
9623    with_gnu_ld=no
9624    ;;
9625  esac
9626
9627  ld_shlibs=yes
9628  if test "$with_gnu_ld" = yes; then
9629    # If archive_cmds runs LD, not CC, wlarc should be empty
9630    wlarc='${wl}'
9631
9632    # Set some defaults for GNU ld with shared library support. These
9633    # are reset later if shared libraries are not supported. Putting them
9634    # here allows them to be overridden if necessary.
9635    runpath_var=LD_RUN_PATH
9636    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9637    export_dynamic_flag_spec='${wl}--export-dynamic'
9638    # ancient GNU ld didn't support --whole-archive et. al.
9639    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9640      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9641    else
9642      whole_archive_flag_spec=
9643    fi
9644    supports_anon_versioning=no
9645    case `$LD -v 2>&1` in
9646      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9647      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9648      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9649      *\ 2.11.*) ;; # other 2.11 versions
9650      *) supports_anon_versioning=yes ;;
9651    esac
9652
9653    # See if GNU ld supports shared libraries.
9654    case $host_os in
9655    aix[3-9]*)
9656      # On AIX/PPC, the GNU linker is very broken
9657      if test "$host_cpu" != ia64; then
9658        ld_shlibs=no
9659        cat <<_LT_EOF 1>&2
9660
9661*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9662*** to be unable to reliably create shared libraries on AIX.
9663*** Therefore, libtool is disabling shared libraries support.  If you
9664*** really care for shared libraries, you may want to modify your PATH
9665*** so that a non-GNU linker is found, and then restart.
9666
9667_LT_EOF
9668      fi
9669      ;;
9670
9671    amigaos*)
9672      case $host_cpu in
9673      powerpc)
9674            # see comment about AmigaOS4 .so support
9675            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9676            archive_expsym_cmds=''
9677        ;;
9678      m68k)
9679            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)'
9680            hardcode_libdir_flag_spec='-L$libdir'
9681            hardcode_minus_L=yes
9682        ;;
9683      esac
9684      ;;
9685
9686    beos*)
9687      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9688        allow_undefined_flag=unsupported
9689        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9690        # support --undefined.  This deserves some investigation.  FIXME
9691        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9692      else
9693        ld_shlibs=no
9694      fi
9695      ;;
9696
9697    cygwin* | mingw* | pw32* | cegcc*)
9698      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9699      # as there is no search path for DLLs.
9700      hardcode_libdir_flag_spec='-L$libdir'
9701      allow_undefined_flag=unsupported
9702      always_export_symbols=no
9703      enable_shared_with_static_runtimes=yes
9704      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9705
9706      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9707        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9708        # If the export-symbols file already is a .def file (1st line
9709        # is EXPORTS), use it as is; otherwise, prepend...
9710        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9711          cp $export_symbols $output_objdir/$soname.def;
9712        else
9713          echo EXPORTS > $output_objdir/$soname.def;
9714          cat $export_symbols >> $output_objdir/$soname.def;
9715        fi~
9716        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9717      else
9718        ld_shlibs=no
9719      fi
9720      ;;
9721
9722    interix[3-9]*)
9723      hardcode_direct=no
9724      hardcode_shlibpath_var=no
9725      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9726      export_dynamic_flag_spec='${wl}-E'
9727      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9728      # Instead, shared libraries are loaded at an image base (0x10000000 by
9729      # default) and relocated if they conflict, which is a slow very memory
9730      # consuming and fragmenting process.  To avoid this, we pick a random,
9731      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9732      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9733      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9734      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'
9735      ;;
9736
9737    gnu* | linux* | tpf* | k*bsd*-gnu)
9738      tmp_diet=no
9739      if test "$host_os" = linux-dietlibc; then
9740        case $cc_basename in
9741          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9742        esac
9743      fi
9744      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9745         && test "$tmp_diet" = no
9746      then
9747        tmp_addflag=
9748        tmp_sharedflag='-shared'
9749        case $cc_basename,$host_cpu in
9750        pgcc*)                          # Portland Group C compiler
9751          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'
9752          tmp_addflag=' $pic_flag'
9753          ;;
9754        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9755          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'
9756          tmp_addflag=' $pic_flag -Mnomain' ;;
9757        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9758          tmp_addflag=' -i_dynamic' ;;
9759        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9760          tmp_addflag=' -i_dynamic -nofor_main' ;;
9761        ifc* | ifort*)                  # Intel Fortran compiler
9762          tmp_addflag=' -nofor_main' ;;
9763        lf95*)                          # Lahey Fortran 8.1
9764          whole_archive_flag_spec=
9765          tmp_sharedflag='--shared' ;;
9766        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9767          tmp_sharedflag='-qmkshrobj'
9768          tmp_addflag= ;;
9769        esac
9770        case `$CC -V 2>&1 | sed 5q` in
9771        *Sun\ C*)                       # Sun C 5.9
9772          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'
9773          compiler_needs_object=yes
9774          tmp_sharedflag='-G' ;;
9775        *Sun\ F*)                       # Sun Fortran 8.3
9776          tmp_sharedflag='-G' ;;
9777        esac
9778        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9779
9780        if test "x$supports_anon_versioning" = xyes; then
9781          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9782            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9783            echo "local: *; };" >> $output_objdir/$libname.ver~
9784            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9785        fi
9786
9787        case $cc_basename in
9788        xlf*)
9789          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9790          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9791          hardcode_libdir_flag_spec=
9792          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9793          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9794          if test "x$supports_anon_versioning" = xyes; then
9795            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9796              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9797              echo "local: *; };" >> $output_objdir/$libname.ver~
9798              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9799          fi
9800          ;;
9801        esac
9802      else
9803        ld_shlibs=no
9804      fi
9805      ;;
9806
9807    netbsd*)
9808      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9809        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9810        wlarc=
9811      else
9812        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9813        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9814      fi
9815      ;;
9816
9817    solaris*)
9818      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9819        ld_shlibs=no
9820        cat <<_LT_EOF 1>&2
9821
9822*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9823*** create shared libraries on Solaris systems.  Therefore, libtool
9824*** is disabling shared libraries support.  We urge you to upgrade GNU
9825*** binutils to release 2.9.1 or newer.  Another option is to modify
9826*** your PATH or compiler configuration so that the native linker is
9827*** used, and then restart.
9828
9829_LT_EOF
9830      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9831        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9832        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9833      else
9834        ld_shlibs=no
9835      fi
9836      ;;
9837
9838    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9839      case `$LD -v 2>&1` in
9840        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9841        ld_shlibs=no
9842        cat <<_LT_EOF 1>&2
9843
9844*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9845*** reliably create shared libraries on SCO systems.  Therefore, libtool
9846*** is disabling shared libraries support.  We urge you to upgrade GNU
9847*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9848*** your PATH or compiler configuration so that the native linker is
9849*** used, and then restart.
9850
9851_LT_EOF
9852        ;;
9853        *)
9854          # For security reasons, it is highly recommended that you always
9855          # use absolute paths for naming shared libraries, and exclude the
9856          # DT_RUNPATH tag from executables and libraries.  But doing so
9857          # requires that you compile everything twice, which is a pain.
9858          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9859            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9860            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9861            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9862          else
9863            ld_shlibs=no
9864          fi
9865        ;;
9866      esac
9867      ;;
9868
9869    sunos4*)
9870      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9871      wlarc=
9872      hardcode_direct=yes
9873      hardcode_shlibpath_var=no
9874      ;;
9875
9876    *)
9877      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9878        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9879        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9880      else
9881        ld_shlibs=no
9882      fi
9883      ;;
9884    esac
9885
9886    if test "$ld_shlibs" = no; then
9887      runpath_var=
9888      hardcode_libdir_flag_spec=
9889      export_dynamic_flag_spec=
9890      whole_archive_flag_spec=
9891    fi
9892  else
9893    # PORTME fill in a description of your system's linker (not GNU ld)
9894    case $host_os in
9895    aix3*)
9896      allow_undefined_flag=unsupported
9897      always_export_symbols=yes
9898      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'
9899      # Note: this linker hardcodes the directories in LIBPATH if there
9900      # are no directories specified by -L.
9901      hardcode_minus_L=yes
9902      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9903        # Neither direct hardcoding nor static linking is supported with a
9904        # broken collect2.
9905        hardcode_direct=unsupported
9906      fi
9907      ;;
9908
9909    aix[4-9]*)
9910      if test "$host_cpu" = ia64; then
9911        # On IA64, the linker does run time linking by default, so we don't
9912        # have to do anything special.
9913        aix_use_runtimelinking=no
9914        exp_sym_flag='-Bexport'
9915        no_entry_flag=""
9916      else
9917        # If we're using GNU nm, then we don't want the "-C" option.
9918        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9919        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9920          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'
9921        else
9922          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'
9923        fi
9924        aix_use_runtimelinking=no
9925
9926        # Test if we are trying to use run time linking or normal
9927        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9928        # need to do runtime linking.
9929        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9930          for ld_flag in $LDFLAGS; do
9931          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9932            aix_use_runtimelinking=yes
9933            break
9934          fi
9935          done
9936          ;;
9937        esac
9938
9939        exp_sym_flag='-bexport'
9940        no_entry_flag='-bnoentry'
9941      fi
9942
9943      # When large executables or shared objects are built, AIX ld can
9944      # have problems creating the table of contents.  If linking a library
9945      # or program results in "error TOC overflow" add -mminimal-toc to
9946      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9947      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9948
9949      archive_cmds=''
9950      hardcode_direct=yes
9951      hardcode_direct_absolute=yes
9952      hardcode_libdir_separator=':'
9953      link_all_deplibs=yes
9954      file_list_spec='${wl}-f,'
9955
9956      if test "$GCC" = yes; then
9957        case $host_os in aix4.[012]|aix4.[012].*)
9958        # We only want to do this on AIX 4.2 and lower, the check
9959        # below for broken collect2 doesn't work under 4.3+
9960          collect2name=`${CC} -print-prog-name=collect2`
9961          if test -f "$collect2name" &&
9962           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9963          then
9964          # We have reworked collect2
9965          :
9966          else
9967          # We have old collect2
9968          hardcode_direct=unsupported
9969          # It fails to find uninstalled libraries when the uninstalled
9970          # path is not listed in the libpath.  Setting hardcode_minus_L
9971          # to unsupported forces relinking
9972          hardcode_minus_L=yes
9973          hardcode_libdir_flag_spec='-L$libdir'
9974          hardcode_libdir_separator=
9975          fi
9976          ;;
9977        esac
9978        shared_flag='-shared'
9979        if test "$aix_use_runtimelinking" = yes; then
9980          shared_flag="$shared_flag "'${wl}-G'
9981        fi
9982      else
9983        # not using gcc
9984        if test "$host_cpu" = ia64; then
9985        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9986        # chokes on -Wl,-G. The following line is correct:
9987          shared_flag='-G'
9988        else
9989          if test "$aix_use_runtimelinking" = yes; then
9990            shared_flag='${wl}-G'
9991          else
9992            shared_flag='${wl}-bM:SRE'
9993          fi
9994        fi
9995      fi
9996
9997      export_dynamic_flag_spec='${wl}-bexpall'
9998      # It seems that -bexpall does not export symbols beginning with
9999      # underscore (_), so it is better to generate a list of symbols to export.
10000      always_export_symbols=yes
10001      if test "$aix_use_runtimelinking" = yes; then
10002        # Warning - without using the other runtime loading flags (-brtl),
10003        # -berok will link without error, but may produce a broken library.
10004        allow_undefined_flag='-berok'
10005        # Determine the default libpath from the value encoded in an
10006        # empty executable.
10007        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008/* end confdefs.h.  */
10009
10010int
10011main ()
10012{
10013
10014  ;
10015  return 0;
10016}
10017_ACEOF
10018if ac_fn_c_try_link "$LINENO"; then :
10019
10020lt_aix_libpath_sed='
10021    /Import File Strings/,/^$/ {
10022        /^0/ {
10023            s/^0  *\(.*\)$/\1/
10024            p
10025        }
10026    }'
10027aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10028# Check for a 64-bit object if we didn't find anything.
10029if test -z "$aix_libpath"; then
10030  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10031fi
10032fi
10033rm -f core conftest.err conftest.$ac_objext \
10034    conftest$ac_exeext conftest.$ac_ext
10035if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10036
10037        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10038        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"
10039      else
10040        if test "$host_cpu" = ia64; then
10041          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10042          allow_undefined_flag="-z nodefs"
10043          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"
10044        else
10045         # Determine the default libpath from the value encoded in an
10046         # empty executable.
10047         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048/* end confdefs.h.  */
10049
10050int
10051main ()
10052{
10053
10054  ;
10055  return 0;
10056}
10057_ACEOF
10058if ac_fn_c_try_link "$LINENO"; then :
10059
10060lt_aix_libpath_sed='
10061    /Import File Strings/,/^$/ {
10062        /^0/ {
10063            s/^0  *\(.*\)$/\1/
10064            p
10065        }
10066    }'
10067aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10068# Check for a 64-bit object if we didn't find anything.
10069if test -z "$aix_libpath"; then
10070  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10071fi
10072fi
10073rm -f core conftest.err conftest.$ac_objext \
10074    conftest$ac_exeext conftest.$ac_ext
10075if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10076
10077         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10078          # Warning - without using the other run time loading flags,
10079          # -berok will link without error, but may produce a broken library.
10080          no_undefined_flag=' ${wl}-bernotok'
10081          allow_undefined_flag=' ${wl}-berok'
10082          # Exported symbols can be pulled into shared objects from archives
10083          whole_archive_flag_spec='$convenience'
10084          archive_cmds_need_lc=yes
10085          # This is similar to how AIX traditionally builds its shared libraries.
10086          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'
10087        fi
10088      fi
10089      ;;
10090
10091    amigaos*)
10092      case $host_cpu in
10093      powerpc)
10094            # see comment about AmigaOS4 .so support
10095            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10096            archive_expsym_cmds=''
10097        ;;
10098      m68k)
10099            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)'
10100            hardcode_libdir_flag_spec='-L$libdir'
10101            hardcode_minus_L=yes
10102        ;;
10103      esac
10104      ;;
10105
10106    bsdi[45]*)
10107      export_dynamic_flag_spec=-rdynamic
10108      ;;
10109
10110    cygwin* | mingw* | pw32* | cegcc*)
10111      # When not using gcc, we currently assume that we are using
10112      # Microsoft Visual C++.
10113      # hardcode_libdir_flag_spec is actually meaningless, as there is
10114      # no search path for DLLs.
10115      hardcode_libdir_flag_spec=' '
10116      allow_undefined_flag=unsupported
10117      # Tell ltmain to make .lib files, not .a files.
10118      libext=lib
10119      # Tell ltmain to make .dll files, not .so files.
10120      shrext_cmds=".dll"
10121      # FIXME: Setting linknames here is a bad hack.
10122      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10123      # The linker will automatically build a .lib file if we build a DLL.
10124      old_archive_from_new_cmds='true'
10125      # FIXME: Should let the user specify the lib program.
10126      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10127      fix_srcfile_path='`cygpath -w "$srcfile"`'
10128      enable_shared_with_static_runtimes=yes
10129      ;;
10130
10131    darwin* | rhapsody*)
10132
10133
10134  archive_cmds_need_lc=no
10135  hardcode_direct=no
10136  hardcode_automatic=yes
10137  hardcode_shlibpath_var=unsupported
10138  whole_archive_flag_spec=''
10139  link_all_deplibs=yes
10140  allow_undefined_flag="$_lt_dar_allow_undefined"
10141  case $cc_basename in
10142     ifort*) _lt_dar_can_shared=yes ;;
10143     *) _lt_dar_can_shared=$GCC ;;
10144  esac
10145  if test "$_lt_dar_can_shared" = "yes"; then
10146    output_verbose_link_cmd=echo
10147    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10148    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10149    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}"
10150    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}"
10151
10152  else
10153  ld_shlibs=no
10154  fi
10155
10156      ;;
10157
10158    dgux*)
10159      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10160      hardcode_libdir_flag_spec='-L$libdir'
10161      hardcode_shlibpath_var=no
10162      ;;
10163
10164    freebsd1*)
10165      ld_shlibs=no
10166      ;;
10167
10168    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10169    # support.  Future versions do this automatically, but an explicit c++rt0.o
10170    # does not break anything, and helps significantly (at the cost of a little
10171    # extra space).
10172    freebsd2.2*)
10173      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10174      hardcode_libdir_flag_spec='-R$libdir'
10175      hardcode_direct=yes
10176      hardcode_shlibpath_var=no
10177      ;;
10178
10179    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10180    freebsd2*)
10181      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10182      hardcode_direct=yes
10183      hardcode_minus_L=yes
10184      hardcode_shlibpath_var=no
10185      ;;
10186
10187    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10188    freebsd* | dragonfly*)
10189      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10190      hardcode_libdir_flag_spec='-R$libdir'
10191      hardcode_direct=yes
10192      hardcode_shlibpath_var=no
10193      ;;
10194
10195    hpux9*)
10196      if test "$GCC" = yes; then
10197        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'
10198      else
10199        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'
10200      fi
10201      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10202      hardcode_libdir_separator=:
10203      hardcode_direct=yes
10204
10205      # hardcode_minus_L: Not really in the search PATH,
10206      # but as the default location of the library.
10207      hardcode_minus_L=yes
10208      export_dynamic_flag_spec='${wl}-E'
10209      ;;
10210
10211    hpux10*)
10212      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10213        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10214      else
10215        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10216      fi
10217      if test "$with_gnu_ld" = no; then
10218        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10219        hardcode_libdir_flag_spec_ld='+b $libdir'
10220        hardcode_libdir_separator=:
10221        hardcode_direct=yes
10222        hardcode_direct_absolute=yes
10223        export_dynamic_flag_spec='${wl}-E'
10224        # hardcode_minus_L: Not really in the search PATH,
10225        # but as the default location of the library.
10226        hardcode_minus_L=yes
10227      fi
10228      ;;
10229
10230    hpux11*)
10231      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10232        case $host_cpu in
10233        hppa*64*)
10234          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10235          ;;
10236        ia64*)
10237          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10238          ;;
10239        *)
10240          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10241          ;;
10242        esac
10243      else
10244        case $host_cpu in
10245        hppa*64*)
10246          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10247          ;;
10248        ia64*)
10249          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10250          ;;
10251        *)
10252          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10253          ;;
10254        esac
10255      fi
10256      if test "$with_gnu_ld" = no; then
10257        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10258        hardcode_libdir_separator=:
10259
10260        case $host_cpu in
10261        hppa*64*|ia64*)
10262          hardcode_direct=no
10263          hardcode_shlibpath_var=no
10264          ;;
10265        *)
10266          hardcode_direct=yes
10267          hardcode_direct_absolute=yes
10268          export_dynamic_flag_spec='${wl}-E'
10269
10270          # hardcode_minus_L: Not really in the search PATH,
10271          # but as the default location of the library.
10272          hardcode_minus_L=yes
10273          ;;
10274        esac
10275      fi
10276      ;;
10277
10278    irix5* | irix6* | nonstopux*)
10279      if test "$GCC" = yes; then
10280        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'
10281        # Try to use the -exported_symbol ld option, if it does not
10282        # work, assume that -exports_file does not work either and
10283        # implicitly export all symbols.
10284        save_LDFLAGS="$LDFLAGS"
10285        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10286        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287/* end confdefs.h.  */
10288int foo (void) { return 0; }
10289_ACEOF
10290if ac_fn_c_try_link "$LINENO"; then :
10291
10292          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'
10293
10294fi
10295rm -f core conftest.err conftest.$ac_objext \
10296    conftest$ac_exeext conftest.$ac_ext
10297        LDFLAGS="$save_LDFLAGS"
10298      else
10299        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'
10300        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'
10301      fi
10302      archive_cmds_need_lc='no'
10303      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10304      hardcode_libdir_separator=:
10305      inherit_rpath=yes
10306      link_all_deplibs=yes
10307      ;;
10308
10309    netbsd*)
10310      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10311        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10312      else
10313        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10314      fi
10315      hardcode_libdir_flag_spec='-R$libdir'
10316      hardcode_direct=yes
10317      hardcode_shlibpath_var=no
10318      ;;
10319
10320    newsos6)
10321      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10322      hardcode_direct=yes
10323      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10324      hardcode_libdir_separator=:
10325      hardcode_shlibpath_var=no
10326      ;;
10327
10328    *nto* | *qnx*)
10329      ;;
10330
10331    openbsd*)
10332      if test -f /usr/libexec/ld.so; then
10333        hardcode_direct=yes
10334        hardcode_shlibpath_var=no
10335        hardcode_direct_absolute=yes
10336        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10337          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10338          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10339          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10340          export_dynamic_flag_spec='${wl}-E'
10341        else
10342          case $host_os in
10343           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10344             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10345             hardcode_libdir_flag_spec='-R$libdir'
10346             ;;
10347           *)
10348             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10349             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10350             ;;
10351          esac
10352        fi
10353      else
10354        ld_shlibs=no
10355      fi
10356      ;;
10357
10358    os2*)
10359      hardcode_libdir_flag_spec='-L$libdir'
10360      hardcode_minus_L=yes
10361      allow_undefined_flag=unsupported
10362      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'
10363      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10364      ;;
10365
10366    osf3*)
10367      if test "$GCC" = yes; then
10368        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10369        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'
10370      else
10371        allow_undefined_flag=' -expect_unresolved \*'
10372        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'
10373      fi
10374      archive_cmds_need_lc='no'
10375      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10376      hardcode_libdir_separator=:
10377      ;;
10378
10379    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10380      if test "$GCC" = yes; then
10381        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10382        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'
10383        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10384      else
10385        allow_undefined_flag=' -expect_unresolved \*'
10386        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'
10387        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~
10388        $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'
10389
10390        # Both c and cxx compiler support -rpath directly
10391        hardcode_libdir_flag_spec='-rpath $libdir'
10392      fi
10393      archive_cmds_need_lc='no'
10394      hardcode_libdir_separator=:
10395      ;;
10396
10397    solaris*)
10398      no_undefined_flag=' -z defs'
10399      if test "$GCC" = yes; then
10400        wlarc='${wl}'
10401        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10402        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10403          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10404      else
10405        case `$CC -V 2>&1` in
10406        *"Compilers 5.0"*)
10407          wlarc=''
10408          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10409          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10410          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10411          ;;
10412        *)
10413          wlarc='${wl}'
10414          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10415          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10416          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10417          ;;
10418        esac
10419      fi
10420      hardcode_libdir_flag_spec='-R$libdir'
10421      hardcode_shlibpath_var=no
10422      case $host_os in
10423      solaris2.[0-5] | solaris2.[0-5].*) ;;
10424      *)
10425        # The compiler driver will combine and reorder linker options,
10426        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10427        # but is careful enough not to reorder.
10428        # Supported since Solaris 2.6 (maybe 2.5.1?)
10429        if test "$GCC" = yes; then
10430          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10431        else
10432          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10433        fi
10434        ;;
10435      esac
10436      link_all_deplibs=yes
10437      ;;
10438
10439    sunos4*)
10440      if test "x$host_vendor" = xsequent; then
10441        # Use $CC to link under sequent, because it throws in some extra .o
10442        # files that make .init and .fini sections work.
10443        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10444      else
10445        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10446      fi
10447      hardcode_libdir_flag_spec='-L$libdir'
10448      hardcode_direct=yes
10449      hardcode_minus_L=yes
10450      hardcode_shlibpath_var=no
10451      ;;
10452
10453    sysv4)
10454      case $host_vendor in
10455        sni)
10456          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10457          hardcode_direct=yes # is this really true???
10458        ;;
10459        siemens)
10460          ## LD is ld it makes a PLAMLIB
10461          ## CC just makes a GrossModule.
10462          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10463          reload_cmds='$CC -r -o $output$reload_objs'
10464          hardcode_direct=no
10465        ;;
10466        motorola)
10467          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10468          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10469        ;;
10470      esac
10471      runpath_var='LD_RUN_PATH'
10472      hardcode_shlibpath_var=no
10473      ;;
10474
10475    sysv4.3*)
10476      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10477      hardcode_shlibpath_var=no
10478      export_dynamic_flag_spec='-Bexport'
10479      ;;
10480
10481    sysv4*MP*)
10482      if test -d /usr/nec; then
10483        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10484        hardcode_shlibpath_var=no
10485        runpath_var=LD_RUN_PATH
10486        hardcode_runpath_var=yes
10487        ld_shlibs=yes
10488      fi
10489      ;;
10490
10491    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10492      no_undefined_flag='${wl}-z,text'
10493      archive_cmds_need_lc=no
10494      hardcode_shlibpath_var=no
10495      runpath_var='LD_RUN_PATH'
10496
10497      if test "$GCC" = yes; then
10498        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10499        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10500      else
10501        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10502        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10503      fi
10504      ;;
10505
10506    sysv5* | sco3.2v5* | sco5v6*)
10507      # Note: We can NOT use -z defs as we might desire, because we do not
10508      # link with -lc, and that would cause any symbols used from libc to
10509      # always be unresolved, which means just about no library would
10510      # ever link correctly.  If we're not using GNU ld we use -z text
10511      # though, which does catch some bad symbols but isn't as heavy-handed
10512      # as -z defs.
10513      no_undefined_flag='${wl}-z,text'
10514      allow_undefined_flag='${wl}-z,nodefs'
10515      archive_cmds_need_lc=no
10516      hardcode_shlibpath_var=no
10517      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10518      hardcode_libdir_separator=':'
10519      link_all_deplibs=yes
10520      export_dynamic_flag_spec='${wl}-Bexport'
10521      runpath_var='LD_RUN_PATH'
10522
10523      if test "$GCC" = yes; then
10524        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10525        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10526      else
10527        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10528        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10529      fi
10530      ;;
10531
10532    uts4*)
10533      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10534      hardcode_libdir_flag_spec='-L$libdir'
10535      hardcode_shlibpath_var=no
10536      ;;
10537
10538    *)
10539      ld_shlibs=no
10540      ;;
10541    esac
10542
10543    if test x$host_vendor = xsni; then
10544      case $host in
10545      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10546        export_dynamic_flag_spec='${wl}-Blargedynsym'
10547        ;;
10548      esac
10549    fi
10550  fi
10551
10552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10553$as_echo "$ld_shlibs" >&6; }
10554test "$ld_shlibs" = no && can_build_shared=no
10555
10556with_gnu_ld=$with_gnu_ld
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572#
10573# Do we need to explicitly link libc?
10574#
10575case "x$archive_cmds_need_lc" in
10576x|xyes)
10577  # Assume -lc should be added
10578  archive_cmds_need_lc=yes
10579
10580  if test "$enable_shared" = yes && test "$GCC" = yes; then
10581    case $archive_cmds in
10582    *'~'*)
10583      # FIXME: we may have to deal with multi-command sequences.
10584      ;;
10585    '$CC '*)
10586      # Test whether the compiler implicitly links with -lc since on some
10587      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10588      # to ld, don't add -lc before -lgcc.
10589      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10590$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10591      $RM conftest*
10592      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10593
10594      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10595  (eval $ac_compile) 2>&5
10596  ac_status=$?
10597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10598  test $ac_status = 0; } 2>conftest.err; then
10599        soname=conftest
10600        lib=conftest
10601        libobjs=conftest.$ac_objext
10602        deplibs=
10603        wl=$lt_prog_compiler_wl
10604        pic_flag=$lt_prog_compiler_pic
10605        compiler_flags=-v
10606        linker_flags=-v
10607        verstring=
10608        output_objdir=.
10609        libname=conftest
10610        lt_save_allow_undefined_flag=$allow_undefined_flag
10611        allow_undefined_flag=
10612        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10613  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10614  ac_status=$?
10615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10616  test $ac_status = 0; }
10617        then
10618          archive_cmds_need_lc=no
10619        else
10620          archive_cmds_need_lc=yes
10621        fi
10622        allow_undefined_flag=$lt_save_allow_undefined_flag
10623      else
10624        cat conftest.err 1>&5
10625      fi
10626      $RM conftest*
10627      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10628$as_echo "$archive_cmds_need_lc" >&6; }
10629      ;;
10630    esac
10631  fi
10632  ;;
10633esac
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10792$as_echo_n "checking dynamic linker characteristics... " >&6; }
10793
10794if test "$GCC" = yes; then
10795  case $host_os in
10796    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10797    *) lt_awk_arg="/^libraries:/" ;;
10798  esac
10799  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10800  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10801    # if the path contains ";" then we assume it to be the separator
10802    # otherwise default to the standard path separator (i.e. ":") - it is
10803    # assumed that no part of a normal pathname contains ";" but that should
10804    # okay in the real world where ";" in dirpaths is itself problematic.
10805    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10806  else
10807    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10808  fi
10809  # Ok, now we have the path, separated by spaces, we can step through it
10810  # and add multilib dir if necessary.
10811  lt_tmp_lt_search_path_spec=
10812  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10813  for lt_sys_path in $lt_search_path_spec; do
10814    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10815      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10816    else
10817      test -d "$lt_sys_path" && \
10818        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10819    fi
10820  done
10821  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10822BEGIN {RS=" "; FS="/|\n";} {
10823  lt_foo="";
10824  lt_count=0;
10825  for (lt_i = NF; lt_i > 0; lt_i--) {
10826    if ($lt_i != "" && $lt_i != ".") {
10827      if ($lt_i == "..") {
10828        lt_count++;
10829      } else {
10830        if (lt_count == 0) {
10831          lt_foo="/" $lt_i lt_foo;
10832        } else {
10833          lt_count--;
10834        }
10835      }
10836    }
10837  }
10838  if (lt_foo != "") { lt_freq[lt_foo]++; }
10839  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10840}'`
10841  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10842else
10843  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10844fi
10845library_names_spec=
10846libname_spec='lib$name'
10847soname_spec=
10848shrext_cmds=".so"
10849postinstall_cmds=
10850postuninstall_cmds=
10851finish_cmds=
10852finish_eval=
10853shlibpath_var=
10854shlibpath_overrides_runpath=unknown
10855version_type=none
10856dynamic_linker="$host_os ld.so"
10857sys_lib_dlsearch_path_spec="/lib /usr/lib"
10858need_lib_prefix=unknown
10859hardcode_into_libs=no
10860
10861# when you set need_version to no, make sure it does not cause -set_version
10862# flags to be left without arguments
10863need_version=unknown
10864
10865case $host_os in
10866aix3*)
10867  version_type=linux
10868  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10869  shlibpath_var=LIBPATH
10870
10871  # AIX 3 has no versioning support, so we append a major version to the name.
10872  soname_spec='${libname}${release}${shared_ext}$major'
10873  ;;
10874
10875aix[4-9]*)
10876  version_type=linux
10877  need_lib_prefix=no
10878  need_version=no
10879  hardcode_into_libs=yes
10880  if test "$host_cpu" = ia64; then
10881    # AIX 5 supports IA64
10882    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10883    shlibpath_var=LD_LIBRARY_PATH
10884  else
10885    # With GCC up to 2.95.x, collect2 would create an import file
10886    # for dependence libraries.  The import file would start with
10887    # the line `#! .'.  This would cause the generated library to
10888    # depend on `.', always an invalid library.  This was fixed in
10889    # development snapshots of GCC prior to 3.0.
10890    case $host_os in
10891      aix4 | aix4.[01] | aix4.[01].*)
10892      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10893           echo ' yes '
10894           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10895        :
10896      else
10897        can_build_shared=no
10898      fi
10899      ;;
10900    esac
10901    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10902    # soname into executable. Probably we can add versioning support to
10903    # collect2, so additional links can be useful in future.
10904    if test "$aix_use_runtimelinking" = yes; then
10905      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10906      # instead of lib<name>.a to let people know that these are not
10907      # typical AIX shared libraries.
10908      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10909    else
10910      # We preserve .a as extension for shared libraries through AIX4.2
10911      # and later when we are not doing run time linking.
10912      library_names_spec='${libname}${release}.a $libname.a'
10913      soname_spec='${libname}${release}${shared_ext}$major'
10914    fi
10915    shlibpath_var=LIBPATH
10916  fi
10917  ;;
10918
10919amigaos*)
10920  case $host_cpu in
10921  powerpc)
10922    # Since July 2007 AmigaOS4 officially supports .so libraries.
10923    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10924    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10925    ;;
10926  m68k)
10927    library_names_spec='$libname.ixlibrary $libname.a'
10928    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10929    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'
10930    ;;
10931  esac
10932  ;;
10933
10934beos*)
10935  library_names_spec='${libname}${shared_ext}'
10936  dynamic_linker="$host_os ld.so"
10937  shlibpath_var=LIBRARY_PATH
10938  ;;
10939
10940bsdi[45]*)
10941  version_type=linux
10942  need_version=no
10943  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10944  soname_spec='${libname}${release}${shared_ext}$major'
10945  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10946  shlibpath_var=LD_LIBRARY_PATH
10947  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10948  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10949  # the default ld.so.conf also contains /usr/contrib/lib and
10950  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10951  # libtool to hard-code these into programs
10952  ;;
10953
10954cygwin* | mingw* | pw32* | cegcc*)
10955  version_type=windows
10956  shrext_cmds=".dll"
10957  need_version=no
10958  need_lib_prefix=no
10959
10960  case $GCC,$host_os in
10961  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10962    library_names_spec='$libname.dll.a'
10963    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10964    postinstall_cmds='base_file=`basename \${file}`~
10965      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10966      dldir=$destdir/`dirname \$dlpath`~
10967      test -d \$dldir || mkdir -p \$dldir~
10968      $install_prog $dir/$dlname \$dldir/$dlname~
10969      chmod a+x \$dldir/$dlname~
10970      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10971        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10972      fi'
10973    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10974      dlpath=$dir/\$dldll~
10975       $RM \$dlpath'
10976    shlibpath_overrides_runpath=yes
10977
10978    case $host_os in
10979    cygwin*)
10980      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10981      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10982      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10983      ;;
10984    mingw* | cegcc*)
10985      # MinGW DLLs use traditional 'lib' prefix
10986