OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgo/] [configure] - Blame information for rev 772

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 747 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.64 for package-unused version-unused.
4
#
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7
# Foundation, Inc.
8
#
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## -------------------- ##
12
## M4sh Initialization. ##
13
## -------------------- ##
14
 
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18
  emulate sh
19
  NULLCMD=:
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
  # is contrary to our usage.  Disable this feature.
22
  alias -g '${1+"$@"}'='"$@"'
23
  setopt NO_GLOB_SUBST
24
else
25
  case `(set -o) 2>/dev/null` in #(
26
  *posix*) :
27
    set -o posix ;; #(
28
  *) :
29
     ;;
30
esac
31
fi
32
 
33
 
34
as_nl='
35
'
36
export as_nl
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
42
# but without wasting forks for bash or zsh.
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
44
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45
  as_echo='print -r --'
46
  as_echo_n='print -rn --'
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
  as_echo='printf %s\n'
49
  as_echo_n='printf %s'
50
else
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
    as_echo_n='/usr/ucb/echo -n'
54
  else
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
    as_echo_n_body='eval
57
      arg=$1;
58
      case $arg in #(
59
      *"$as_nl"*)
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
      esac;
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
    '
65
    export as_echo_n_body
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
67
  fi
68
  export as_echo_body
69
  as_echo='sh -c $as_echo_body as_echo'
70
fi
71
 
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
74
  PATH_SEPARATOR=:
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
      PATH_SEPARATOR=';'
78
  }
79
fi
80
 
81
 
82
# IFS
83
# We need space, tab and new line, in precisely that order.  Quoting is
84
# there to prevent editors from complaining about space-tab.
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86
# splitting by setting IFS to empty value.)
87
IFS=" ""        $as_nl"
88
 
89
# Find who we are.  Look in the path if we contain no directory separator.
90
case $0 in #((
91
  *[\\/]* ) as_myself=$0 ;;
92
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93
for as_dir in $PATH
94
do
95
  IFS=$as_save_IFS
96
  test -z "$as_dir" && as_dir=.
97
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98
  done
99
IFS=$as_save_IFS
100
 
101
     ;;
102
esac
103
# We did not find ourselves, most probably we were run as `sh COMMAND'
104
# in which case we are not to be found in the path.
105
if test "x$as_myself" = x; then
106
  as_myself=$0
107
fi
108
if test ! -f "$as_myself"; then
109
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110
  exit 1
111
fi
112
 
113
# Unset variables that we do not need and which cause bugs (e.g. in
114
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115
# suppresses any "Segmentation fault" message there.  '((' could
116
# trigger a bug in pdksh 5.2.14.
117
for as_var in BASH_ENV ENV MAIL MAILPATH
118
do eval test x\${$as_var+set} = xset \
119
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120
done
121
PS1='$ '
122
PS2='> '
123
PS4='+ '
124
 
125
# NLS nuisances.
126
LC_ALL=C
127
export LC_ALL
128
LANGUAGE=C
129
export LANGUAGE
130
 
131
# CDPATH.
132
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
 
134
if test "x$CONFIG_SHELL" = x; then
135
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136
  emulate sh
137
  NULLCMD=:
138
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139
  # is contrary to our usage.  Disable this feature.
140
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141
  setopt NO_GLOB_SUBST
142
else
143
  case \`(set -o) 2>/dev/null\` in #(
144
  *posix*) :
145
    set -o posix ;; #(
146
  *) :
147
     ;;
148
esac
149
fi
150
"
151
  as_required="as_fn_return () { (exit \$1); }
152
as_fn_success () { as_fn_return 0; }
153
as_fn_failure () { as_fn_return 1; }
154
as_fn_ret_success () { return 0; }
155
as_fn_ret_failure () { return 1; }
156
 
157
exitcode=0
158
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
 
164
else
165
  exitcode=1; echo positional parameters were not saved.
166
fi
167
test x\$exitcode = x0 || exit 1"
168
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
test \$(( 1 + 1 )) = 2 || exit 1
173
 
174
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178
    PATH=/empty FPATH=/empty; export PATH FPATH
179
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181
  if (eval "$as_required") 2>/dev/null; then :
182
  as_have_required=yes
183
else
184
  as_have_required=no
185
fi
186
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
 
188
else
189
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190
as_found=false
191
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192
do
193
  IFS=$as_save_IFS
194
  test -z "$as_dir" && as_dir=.
195
  as_found=:
196
  case $as_dir in #(
197
         /*)
198
           for as_base in sh bash ksh sh5; do
199
             # Try only shells that exist, to save several forks.
200
             as_shell=$as_dir/$as_base
201
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203
  CONFIG_SHELL=$as_shell as_have_required=yes
204
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205
  break 2
206
fi
207
fi
208
           done;;
209
       esac
210
  as_found=false
211
done
212
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214
  CONFIG_SHELL=$SHELL as_have_required=yes
215
fi; }
216
IFS=$as_save_IFS
217
 
218
 
219
      if test "x$CONFIG_SHELL" != x; then :
220
  # We cannot yet assume a decent shell, so we have to provide a
221
        # neutralization value for shells without unset; and this also
222
        # works around shells that cannot unset nonexistent variables.
223
        BASH_ENV=/dev/null
224
        ENV=/dev/null
225
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226
        export CONFIG_SHELL
227
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228
fi
229
 
230
    if test x$as_have_required = xno; then :
231
  $as_echo "$0: This script requires a shell more modern than all"
232
  $as_echo "$0: the shells that I found on your system."
233
  if test x${ZSH_VERSION+set} = xset ; then
234
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236
  else
237
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238
$0: including any error possibly output before this
239
$0: message. Then install a modern shell, or manually run
240
$0: the script under such a shell if you do have one."
241
  fi
242
  exit 1
243
fi
244
fi
245
fi
246
SHELL=${CONFIG_SHELL-/bin/sh}
247
export SHELL
248
# Unset more variables known to interfere with behavior of common tools.
249
CLICOLOR_FORCE= GREP_OPTIONS=
250
unset CLICOLOR_FORCE GREP_OPTIONS
251
 
252
## --------------------- ##
253
## M4sh Shell Functions. ##
254
## --------------------- ##
255
# as_fn_unset VAR
256
# ---------------
257
# Portably unset VAR.
258
as_fn_unset ()
259
{
260
  { eval $1=; unset $1;}
261
}
262
as_unset=as_fn_unset
263
 
264
# as_fn_set_status STATUS
265
# -----------------------
266
# Set $? to STATUS, without forking.
267
as_fn_set_status ()
268
{
269
  return $1
270
} # as_fn_set_status
271
 
272
# as_fn_exit STATUS
273
# -----------------
274
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275
as_fn_exit ()
276
{
277
  set +e
278
  as_fn_set_status $1
279
  exit $1
280
} # as_fn_exit
281
 
282
# as_fn_mkdir_p
283
# -------------
284
# Create "$as_dir" as a directory, including parents if necessary.
285
as_fn_mkdir_p ()
286
{
287
 
288
  case $as_dir in #(
289
  -*) as_dir=./$as_dir;;
290
  esac
291
  test -d "$as_dir" || eval $as_mkdir_p || {
292
    as_dirs=
293
    while :; do
294
      case $as_dir in #(
295
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296
      *) as_qdir=$as_dir;;
297
      esac
298
      as_dirs="'$as_qdir' $as_dirs"
299
      as_dir=`$as_dirname -- "$as_dir" ||
300
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301
         X"$as_dir" : 'X\(//\)[^/]' \| \
302
         X"$as_dir" : 'X\(//\)$' \| \
303
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304
$as_echo X"$as_dir" |
305
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306
            s//\1/
307
            q
308
          }
309
          /^X\(\/\/\)[^/].*/{
310
            s//\1/
311
            q
312
          }
313
          /^X\(\/\/\)$/{
314
            s//\1/
315
            q
316
          }
317
          /^X\(\/\).*/{
318
            s//\1/
319
            q
320
          }
321
          s/.*/./; q'`
322
      test -d "$as_dir" && break
323
    done
324
    test -z "$as_dirs" || eval "mkdir $as_dirs"
325
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
 
327
 
328
} # as_fn_mkdir_p
329
# as_fn_append VAR VALUE
330
# ----------------------
331
# Append the text in VALUE to the end of the definition contained in VAR. Take
332
# advantage of any shell optimizations that allow amortized linear growth over
333
# repeated appends, instead of the typical quadratic growth present in naive
334
# implementations.
335
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336
  eval 'as_fn_append ()
337
  {
338
    eval $1+=\$2
339
  }'
340
else
341
  as_fn_append ()
342
  {
343
    eval $1=\$$1\$2
344
  }
345
fi # as_fn_append
346
 
347
# as_fn_arith ARG...
348
# ------------------
349
# Perform arithmetic evaluation on the ARGs, and store the result in the
350
# global $as_val. Take advantage of shells that can avoid forks. The arguments
351
# must be portable across $(()) and expr.
352
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353
  eval 'as_fn_arith ()
354
  {
355
    as_val=$(( $* ))
356
  }'
357
else
358
  as_fn_arith ()
359
  {
360
    as_val=`expr "$@" || test $? -eq 1`
361
  }
362
fi # as_fn_arith
363
 
364
 
365
# as_fn_error ERROR [LINENO LOG_FD]
366
# ---------------------------------
367
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369
# script with status $?, using 1 if that was 0.
370
as_fn_error ()
371
{
372
  as_status=$?; test $as_status -eq 0 && as_status=1
373
  if test "$3"; then
374
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376
  fi
377
  $as_echo "$as_me: error: $1" >&2
378
  as_fn_exit $as_status
379
} # as_fn_error
380
 
381
if expr a : '\(a\)' >/dev/null 2>&1 &&
382
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
383
  as_expr=expr
384
else
385
  as_expr=false
386
fi
387
 
388
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389
  as_basename=basename
390
else
391
  as_basename=false
392
fi
393
 
394
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395
  as_dirname=dirname
396
else
397
  as_dirname=false
398
fi
399
 
400
as_me=`$as_basename -- "$0" ||
401
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402
         X"$0" : 'X\(//\)$' \| \
403
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404
$as_echo X/"$0" |
405
    sed '/^.*\/\([^/][^/]*\)\/*$/{
406
            s//\1/
407
            q
408
          }
409
          /^X\/\(\/\/\)$/{
410
            s//\1/
411
            q
412
          }
413
          /^X\/\(\/\).*/{
414
            s//\1/
415
            q
416
          }
417
          s/.*/./; q'`
418
 
419
# Avoid depending upon Character Ranges.
420
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423
as_cr_digits='0123456789'
424
as_cr_alnum=$as_cr_Letters$as_cr_digits
425
 
426
 
427
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
428
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
429
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432
  sed -n '
433
    p
434
    /[$]LINENO/=
435
  ' <$as_myself |
436
    sed '
437
      s/[$]LINENO.*/&-/
438
      t lineno
439
      b
440
      :lineno
441
      N
442
      :loop
443
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444
      t loop
445
      s/-\n.*//
446
    ' >$as_me.lineno &&
447
  chmod +x "$as_me.lineno" ||
448
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
 
450
  # Don't try to exec as it changes $[0], causing all sort of problems
451
  # (the dirname of $[0] is not the place where we might find the
452
  # original and so on.  Autoconf is especially sensitive to this).
453
  . "./$as_me.lineno"
454
  # Exit status is that of the last command.
455
  exit
456
}
457
 
458
ECHO_C= ECHO_N= ECHO_T=
459
case `echo -n x` in #(((((
460
-n*)
461
  case `echo 'xy\c'` in
462
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463
  xy)  ECHO_C='\c';;
464
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465
       ECHO_T=' ';;
466
  esac;;
467
*)
468
  ECHO_N='-n';;
469
esac
470
 
471
rm -f conf$$ conf$$.exe conf$$.file
472
if test -d conf$$.dir; then
473
  rm -f conf$$.dir/conf$$.file
474
else
475
  rm -f conf$$.dir
476
  mkdir conf$$.dir 2>/dev/null
477
fi
478
if (echo >conf$$.file) 2>/dev/null; then
479
  if ln -s conf$$.file conf$$ 2>/dev/null; then
480
    as_ln_s='ln -s'
481
    # ... but there are two gotchas:
482
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484
    # In both cases, we have to default to `cp -p'.
485
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486
      as_ln_s='cp -p'
487
  elif ln conf$$.file conf$$ 2>/dev/null; then
488
    as_ln_s=ln
489
  else
490
    as_ln_s='cp -p'
491
  fi
492
else
493
  as_ln_s='cp -p'
494
fi
495
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496
rmdir conf$$.dir 2>/dev/null
497
 
498
if mkdir -p . 2>/dev/null; then
499
  as_mkdir_p='mkdir -p "$as_dir"'
500
else
501
  test -d ./-p && rmdir ./-p
502
  as_mkdir_p=false
503
fi
504
 
505
if test -x / >/dev/null 2>&1; then
506
  as_test_x='test -x'
507
else
508
  if ls -dL / >/dev/null 2>&1; then
509
    as_ls_L_option=L
510
  else
511
    as_ls_L_option=
512
  fi
513
  as_test_x='
514
    eval sh -c '\''
515
      if test -d "$1"; then
516
        test -d "$1/.";
517
      else
518
        case $1 in #(
519
        -*)set "./$1";;
520
        esac;
521
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522
        ???[sx]*):;;*)false;;esac;fi
523
    '\'' sh
524
  '
525
fi
526
as_executable_p=$as_test_x
527
 
528
# Sed expression to map a string onto a valid CPP name.
529
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
 
531
# Sed expression to map a string onto a valid variable name.
532
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
 
534
SHELL=${CONFIG_SHELL-/bin/sh}
535
 
536
 
537
exec 7<&0 &1
538
 
539
# Name of the host.
540
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541
# so uname gets run too.
542
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
 
544
#
545
# Initializations.
546
#
547
ac_default_prefix=/usr/local
548
ac_clean_files=
549
ac_config_libobj_dir=.
550
LIBOBJS=
551
cross_compiling=no
552
subdirs=
553
MFLAGS=
554
MAKEFLAGS=
555
 
556
# Identity of this package.
557
PACKAGE_NAME='package-unused'
558
PACKAGE_TARNAME='libgo'
559
PACKAGE_VERSION='version-unused'
560
PACKAGE_STRING='package-unused version-unused'
561
PACKAGE_BUGREPORT=''
562
PACKAGE_URL=''
563
 
564
ac_unique_file="Makefile.am"
565
# Factoring default headers for most tests.
566
ac_includes_default="\
567
#include 
568
#ifdef HAVE_SYS_TYPES_H
569
# include 
570
#endif
571
#ifdef HAVE_SYS_STAT_H
572
# include 
573
#endif
574
#ifdef STDC_HEADERS
575
# include 
576
# include 
577
#else
578
# ifdef HAVE_STDLIB_H
579
#  include 
580
# endif
581
#endif
582
#ifdef HAVE_STRING_H
583
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584
#  include 
585
# endif
586
# include 
587
#endif
588
#ifdef HAVE_STRINGS_H
589
# include 
590
#endif
591
#ifdef HAVE_INTTYPES_H
592
# include 
593
#endif
594
#ifdef HAVE_STDINT_H
595
# include 
596
#endif
597
#ifdef HAVE_UNISTD_H
598
# include 
599
#endif"
600
 
601
ac_subst_vars='am__EXEEXT_FALSE
602
am__EXEEXT_TRUE
603
LTLIBOBJS
604
LIBOBJS
605
STRUCT_EPOLL_EVENT_FD_OFFSET
606
SIZEOF_STRUCT_EPOLL_EVENT
607
MATH_FLAG
608
STRINGOPS_FLAG
609
HAVE_WAIT4_FALSE
610
HAVE_WAIT4_TRUE
611
HAVE_STRERROR_R_FALSE
612
HAVE_STRERROR_R_TRUE
613
HAVE_SYS_MMAN_H_FALSE
614
HAVE_SYS_MMAN_H_TRUE
615
PTHREAD_LIBS
616
PTHREAD_CFLAGS
617
NET_LIBS
618
MATH_LIBS
619
USING_SPLIT_STACK_FALSE
620
USING_SPLIT_STACK_TRUE
621
SPLIT_STACK
622
OSCFLAGS
623
GO_SYSCALL_OS_ARCH_FILE
624
GO_SYSCALL_OS_FILE
625
GO_LIBCALL_OS_ARCH_FILE
626
GO_LIBCALL_OS_FILE
627
GOARCH
628
LIBGO_IS_X86_64_FALSE
629
LIBGO_IS_X86_64_TRUE
630
LIBGO_IS_SPARC64_FALSE
631
LIBGO_IS_SPARC64_TRUE
632
LIBGO_IS_SPARC_FALSE
633
LIBGO_IS_SPARC_TRUE
634
LIBGO_IS_PPC64_FALSE
635
LIBGO_IS_PPC64_TRUE
636
LIBGO_IS_PPC_FALSE
637
LIBGO_IS_PPC_TRUE
638
LIBGO_IS_MIPSO64_FALSE
639
LIBGO_IS_MIPSO64_TRUE
640
LIBGO_IS_MIPSN64_FALSE
641
LIBGO_IS_MIPSN64_TRUE
642
LIBGO_IS_MIPSN32_FALSE
643
LIBGO_IS_MIPSN32_TRUE
644
LIBGO_IS_MIPSO32_FALSE
645
LIBGO_IS_MIPSO32_TRUE
646
LIBGO_IS_MIPS_FALSE
647
LIBGO_IS_MIPS_TRUE
648
LIBGO_IS_M68K_FALSE
649
LIBGO_IS_M68K_TRUE
650
LIBGO_IS_ARM_FALSE
651
LIBGO_IS_ARM_TRUE
652
LIBGO_IS_ALPHA_FALSE
653
LIBGO_IS_ALPHA_TRUE
654
LIBGO_IS_386_FALSE
655
LIBGO_IS_386_TRUE
656
GOOS
657
LIBGO_IS_SOLARIS_FALSE
658
LIBGO_IS_SOLARIS_TRUE
659
LIBGO_IS_RTEMS_FALSE
660
LIBGO_IS_RTEMS_TRUE
661
LIBGO_IS_NETBSD_FALSE
662
LIBGO_IS_NETBSD_TRUE
663
LIBGO_IS_LINUX_FALSE
664
LIBGO_IS_LINUX_TRUE
665
LIBGO_IS_IRIX_FALSE
666
LIBGO_IS_IRIX_TRUE
667
LIBGO_IS_FREEBSD_FALSE
668
LIBGO_IS_FREEBSD_TRUE
669
LIBGO_IS_DARWIN_FALSE
670
LIBGO_IS_DARWIN_TRUE
671
go_include
672
LIBFFIINCS
673
LIBFFI
674
nover_glibgo_toolexeclibdir
675
glibgo_toolexeclibdir
676
glibgo_toolexecdir
677
WERROR
678
WARN_FLAGS
679
CC_FOR_BUILD
680
enable_static
681
enable_shared
682
CPP
683
OTOOL64
684
OTOOL
685
LIPO
686
NMEDIT
687
DSYMUTIL
688
AR
689
OBJDUMP
690
LN_S
691
NM
692
ac_ct_DUMPBIN
693
DUMPBIN
694
LIBTOOL
695
OBJCOPY
696
RANLIB
697
LD
698
FGREP
699
EGREP
700
GREP
701
SED
702
MAINT
703
MAINTAINER_MODE_FALSE
704
MAINTAINER_MODE_TRUE
705
GOCFLAGS
706
GOC
707
am__fastdepCC_FALSE
708
am__fastdepCC_TRUE
709
CCDEPMODE
710
AMDEPBACKSLASH
711
AMDEP_FALSE
712
AMDEP_TRUE
713
am__quote
714
am__include
715
DEPDIR
716
OBJEXT
717
EXEEXT
718
ac_ct_CC
719
CPPFLAGS
720
LDFLAGS
721
CFLAGS
722
CC
723
am__untar
724
am__tar
725
AMTAR
726
am__leading_dot
727
SET_MAKE
728
AWK
729
mkdir_p
730
MKDIR_P
731
INSTALL_STRIP_PROGRAM
732
STRIP
733
install_sh
734
MAKEINFO
735
AUTOHEADER
736
AUTOMAKE
737
AUTOCONF
738
ACLOCAL
739
VERSION
740
PACKAGE
741
CYGPATH_W
742
am__isrc
743
INSTALL_DATA
744
INSTALL_SCRIPT
745
INSTALL_PROGRAM
746
target_os
747
target_vendor
748
target_cpu
749
target
750
host_os
751
host_vendor
752
host_cpu
753
host
754
build_os
755
build_vendor
756
build_cpu
757
build
758
multi_basedir
759
libtool_VERSION
760
target_alias
761
host_alias
762
build_alias
763
LIBS
764
ECHO_T
765
ECHO_N
766
ECHO_C
767
DEFS
768
mandir
769
localedir
770
libdir
771
psdir
772
pdfdir
773
dvidir
774
htmldir
775
infodir
776
docdir
777
oldincludedir
778
includedir
779
localstatedir
780
sharedstatedir
781
sysconfdir
782
datadir
783
datarootdir
784
libexecdir
785
sbindir
786
bindir
787
program_transform_name
788
prefix
789
exec_prefix
790
PACKAGE_URL
791
PACKAGE_BUGREPORT
792
PACKAGE_STRING
793
PACKAGE_VERSION
794
PACKAGE_TARNAME
795
PACKAGE_NAME
796
PATH_SEPARATOR
797
SHELL'
798
ac_subst_files=''
799
ac_user_opts='
800
enable_option_checking
801
enable_multilib
802
enable_dependency_tracking
803
enable_maintainer_mode
804
with_gnu_ld
805
enable_shared
806
enable_static
807
with_pic
808
enable_fast_install
809
enable_libtool_lock
810
enable_version_specific_runtime_libs
811
with_libffi
812
with_system_libunwind
813
enable_sjlj_exceptions
814
'
815
      ac_precious_vars='build_alias
816
host_alias
817
target_alias
818
CPP
819
CPPFLAGS'
820
 
821
 
822
# Initialize some variables set by options.
823
ac_init_help=
824
ac_init_version=false
825
ac_unrecognized_opts=
826
ac_unrecognized_sep=
827
# The variables have the same names as the options, with
828
# dashes changed to underlines.
829
cache_file=/dev/null
830
exec_prefix=NONE
831
no_create=
832
no_recursion=
833
prefix=NONE
834
program_prefix=NONE
835
program_suffix=NONE
836
program_transform_name=s,x,x,
837
silent=
838
site=
839
srcdir=
840
verbose=
841
x_includes=NONE
842
x_libraries=NONE
843
 
844
# Installation directory options.
845
# These are left unexpanded so users can "make install exec_prefix=/foo"
846
# and all the variables that are supposed to be based on exec_prefix
847
# by default will actually change.
848
# Use braces instead of parens because sh, perl, etc. also accept them.
849
# (The list follows the same order as the GNU Coding Standards.)
850
bindir='${exec_prefix}/bin'
851
sbindir='${exec_prefix}/sbin'
852
libexecdir='${exec_prefix}/libexec'
853
datarootdir='${prefix}/share'
854
datadir='${datarootdir}'
855
sysconfdir='${prefix}/etc'
856
sharedstatedir='${prefix}/com'
857
localstatedir='${prefix}/var'
858
includedir='${prefix}/include'
859
oldincludedir='/usr/include'
860
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861
infodir='${datarootdir}/info'
862
htmldir='${docdir}'
863
dvidir='${docdir}'
864
pdfdir='${docdir}'
865
psdir='${docdir}'
866
libdir='${exec_prefix}/lib'
867
localedir='${datarootdir}/locale'
868
mandir='${datarootdir}/man'
869
 
870
ac_prev=
871
ac_dashdash=
872
for ac_option
873
do
874
  # If the previous option needs an argument, assign it.
875
  if test -n "$ac_prev"; then
876
    eval $ac_prev=\$ac_option
877
    ac_prev=
878
    continue
879
  fi
880
 
881
  case $ac_option in
882
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883
  *)    ac_optarg=yes ;;
884
  esac
885
 
886
  # Accept the important Cygnus configure options, so we can diagnose typos.
887
 
888
  case $ac_dashdash$ac_option in
889
  --)
890
    ac_dashdash=yes ;;
891
 
892
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
893
    ac_prev=bindir ;;
894
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895
    bindir=$ac_optarg ;;
896
 
897
  -build | --build | --buil | --bui | --bu)
898
    ac_prev=build_alias ;;
899
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900
    build_alias=$ac_optarg ;;
901
 
902
  -cache-file | --cache-file | --cache-fil | --cache-fi \
903
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904
    ac_prev=cache_file ;;
905
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907
    cache_file=$ac_optarg ;;
908
 
909
  --config-cache | -C)
910
    cache_file=config.cache ;;
911
 
912
  -datadir | --datadir | --datadi | --datad)
913
    ac_prev=datadir ;;
914
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
915
    datadir=$ac_optarg ;;
916
 
917
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918
  | --dataroo | --dataro | --datar)
919
    ac_prev=datarootdir ;;
920
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922
    datarootdir=$ac_optarg ;;
923
 
924
  -disable-* | --disable-*)
925
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926
    # Reject names that are not valid shell variable names.
927
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928
      as_fn_error "invalid feature name: $ac_useropt"
929
    ac_useropt_orig=$ac_useropt
930
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931
    case $ac_user_opts in
932
      *"
933
"enable_$ac_useropt"
934
"*) ;;
935
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936
         ac_unrecognized_sep=', ';;
937
    esac
938
    eval enable_$ac_useropt=no ;;
939
 
940
  -docdir | --docdir | --docdi | --doc | --do)
941
    ac_prev=docdir ;;
942
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943
    docdir=$ac_optarg ;;
944
 
945
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946
    ac_prev=dvidir ;;
947
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948
    dvidir=$ac_optarg ;;
949
 
950
  -enable-* | --enable-*)
951
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952
    # Reject names that are not valid shell variable names.
953
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954
      as_fn_error "invalid feature name: $ac_useropt"
955
    ac_useropt_orig=$ac_useropt
956
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957
    case $ac_user_opts in
958
      *"
959
"enable_$ac_useropt"
960
"*) ;;
961
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962
         ac_unrecognized_sep=', ';;
963
    esac
964
    eval enable_$ac_useropt=\$ac_optarg ;;
965
 
966
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968
  | --exec | --exe | --ex)
969
    ac_prev=exec_prefix ;;
970
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972
  | --exec=* | --exe=* | --ex=*)
973
    exec_prefix=$ac_optarg ;;
974
 
975
  -gas | --gas | --ga | --g)
976
    # Obsolete; use --with-gas.
977
    with_gas=yes ;;
978
 
979
  -help | --help | --hel | --he | -h)
980
    ac_init_help=long ;;
981
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982
    ac_init_help=recursive ;;
983
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984
    ac_init_help=short ;;
985
 
986
  -host | --host | --hos | --ho)
987
    ac_prev=host_alias ;;
988
  -host=* | --host=* | --hos=* | --ho=*)
989
    host_alias=$ac_optarg ;;
990
 
991
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992
    ac_prev=htmldir ;;
993
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994
  | --ht=*)
995
    htmldir=$ac_optarg ;;
996
 
997
  -includedir | --includedir | --includedi | --included | --include \
998
  | --includ | --inclu | --incl | --inc)
999
    ac_prev=includedir ;;
1000
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1002
    includedir=$ac_optarg ;;
1003
 
1004
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1005
    ac_prev=infodir ;;
1006
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007
    infodir=$ac_optarg ;;
1008
 
1009
  -libdir | --libdir | --libdi | --libd)
1010
    ac_prev=libdir ;;
1011
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012
    libdir=$ac_optarg ;;
1013
 
1014
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015
  | --libexe | --libex | --libe)
1016
    ac_prev=libexecdir ;;
1017
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018
  | --libexe=* | --libex=* | --libe=*)
1019
    libexecdir=$ac_optarg ;;
1020
 
1021
  -localedir | --localedir | --localedi | --localed | --locale)
1022
    ac_prev=localedir ;;
1023
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024
    localedir=$ac_optarg ;;
1025
 
1026
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1027
  | --localstate | --localstat | --localsta | --localst | --locals)
1028
    ac_prev=localstatedir ;;
1029
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031
    localstatedir=$ac_optarg ;;
1032
 
1033
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034
    ac_prev=mandir ;;
1035
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036
    mandir=$ac_optarg ;;
1037
 
1038
  -nfp | --nfp | --nf)
1039
    # Obsolete; use --without-fp.
1040
    with_fp=no ;;
1041
 
1042
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043
  | --no-cr | --no-c | -n)
1044
    no_create=yes ;;
1045
 
1046
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048
    no_recursion=yes ;;
1049
 
1050
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052
  | --oldin | --oldi | --old | --ol | --o)
1053
    ac_prev=oldincludedir ;;
1054
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057
    oldincludedir=$ac_optarg ;;
1058
 
1059
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060
    ac_prev=prefix ;;
1061
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062
    prefix=$ac_optarg ;;
1063
 
1064
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065
  | --program-pre | --program-pr | --program-p)
1066
    ac_prev=program_prefix ;;
1067
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069
    program_prefix=$ac_optarg ;;
1070
 
1071
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072
  | --program-suf | --program-su | --program-s)
1073
    ac_prev=program_suffix ;;
1074
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076
    program_suffix=$ac_optarg ;;
1077
 
1078
  -program-transform-name | --program-transform-name \
1079
  | --program-transform-nam | --program-transform-na \
1080
  | --program-transform-n | --program-transform- \
1081
  | --program-transform | --program-transfor \
1082
  | --program-transfo | --program-transf \
1083
  | --program-trans | --program-tran \
1084
  | --progr-tra | --program-tr | --program-t)
1085
    ac_prev=program_transform_name ;;
1086
  -program-transform-name=* | --program-transform-name=* \
1087
  | --program-transform-nam=* | --program-transform-na=* \
1088
  | --program-transform-n=* | --program-transform-=* \
1089
  | --program-transform=* | --program-transfor=* \
1090
  | --program-transfo=* | --program-transf=* \
1091
  | --program-trans=* | --program-tran=* \
1092
  | --progr-tra=* | --program-tr=* | --program-t=*)
1093
    program_transform_name=$ac_optarg ;;
1094
 
1095
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096
    ac_prev=pdfdir ;;
1097
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098
    pdfdir=$ac_optarg ;;
1099
 
1100
  -psdir | --psdir | --psdi | --psd | --ps)
1101
    ac_prev=psdir ;;
1102
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103
    psdir=$ac_optarg ;;
1104
 
1105
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106
  | -silent | --silent | --silen | --sile | --sil)
1107
    silent=yes ;;
1108
 
1109
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110
    ac_prev=sbindir ;;
1111
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112
  | --sbi=* | --sb=*)
1113
    sbindir=$ac_optarg ;;
1114
 
1115
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117
  | --sharedst | --shareds | --shared | --share | --shar \
1118
  | --sha | --sh)
1119
    ac_prev=sharedstatedir ;;
1120
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123
  | --sha=* | --sh=*)
1124
    sharedstatedir=$ac_optarg ;;
1125
 
1126
  -site | --site | --sit)
1127
    ac_prev=site ;;
1128
  -site=* | --site=* | --sit=*)
1129
    site=$ac_optarg ;;
1130
 
1131
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132
    ac_prev=srcdir ;;
1133
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134
    srcdir=$ac_optarg ;;
1135
 
1136
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137
  | --syscon | --sysco | --sysc | --sys | --sy)
1138
    ac_prev=sysconfdir ;;
1139
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141
    sysconfdir=$ac_optarg ;;
1142
 
1143
  -target | --target | --targe | --targ | --tar | --ta | --t)
1144
    ac_prev=target_alias ;;
1145
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146
    target_alias=$ac_optarg ;;
1147
 
1148
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149
    verbose=yes ;;
1150
 
1151
  -version | --version | --versio | --versi | --vers | -V)
1152
    ac_init_version=: ;;
1153
 
1154
  -with-* | --with-*)
1155
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156
    # Reject names that are not valid shell variable names.
1157
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158
      as_fn_error "invalid package name: $ac_useropt"
1159
    ac_useropt_orig=$ac_useropt
1160
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161
    case $ac_user_opts in
1162
      *"
1163
"with_$ac_useropt"
1164
"*) ;;
1165
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166
         ac_unrecognized_sep=', ';;
1167
    esac
1168
    eval with_$ac_useropt=\$ac_optarg ;;
1169
 
1170
  -without-* | --without-*)
1171
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172
    # Reject names that are not valid shell variable names.
1173
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174
      as_fn_error "invalid package name: $ac_useropt"
1175
    ac_useropt_orig=$ac_useropt
1176
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177
    case $ac_user_opts in
1178
      *"
1179
"with_$ac_useropt"
1180
"*) ;;
1181
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182
         ac_unrecognized_sep=', ';;
1183
    esac
1184
    eval with_$ac_useropt=no ;;
1185
 
1186
  --x)
1187
    # Obsolete; use --with-x.
1188
    with_x=yes ;;
1189
 
1190
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191
  | --x-incl | --x-inc | --x-in | --x-i)
1192
    ac_prev=x_includes ;;
1193
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195
    x_includes=$ac_optarg ;;
1196
 
1197
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199
    ac_prev=x_libraries ;;
1200
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202
    x_libraries=$ac_optarg ;;
1203
 
1204
  -*) as_fn_error "unrecognized option: \`$ac_option'
1205
Try \`$0 --help' for more information."
1206
    ;;
1207
 
1208
  *=*)
1209
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210
    # Reject names that are not valid shell variable names.
1211
    case $ac_envvar in #(
1212
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1213
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1214
    esac
1215
    eval $ac_envvar=\$ac_optarg
1216
    export $ac_envvar ;;
1217
 
1218
  *)
1219
    # FIXME: should be removed in autoconf 3.0.
1220
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1224
    ;;
1225
 
1226
  esac
1227
done
1228
 
1229
if test -n "$ac_prev"; then
1230
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231
  as_fn_error "missing argument to $ac_option"
1232
fi
1233
 
1234
if test -n "$ac_unrecognized_opts"; then
1235
  case $enable_option_checking in
1236
    no) ;;
1237
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1238
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239
  esac
1240
fi
1241
 
1242
# Check all directory arguments for consistency.
1243
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244
                datadir sysconfdir sharedstatedir localstatedir includedir \
1245
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246
                libdir localedir mandir
1247
do
1248
  eval ac_val=\$$ac_var
1249
  # Remove trailing slashes.
1250
  case $ac_val in
1251
    */ )
1252
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253
      eval $ac_var=\$ac_val;;
1254
  esac
1255
  # Be sure to have absolute directory names.
1256
  case $ac_val in
1257
    [\\/$]* | ?:[\\/]* )  continue;;
1258
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259
  esac
1260
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1261
done
1262
 
1263
# There might be people who depend on the old broken behavior: `$host'
1264
# used to hold the argument of --host etc.
1265
# FIXME: To remove some day.
1266
build=$build_alias
1267
host=$host_alias
1268
target=$target_alias
1269
 
1270
# FIXME: To remove some day.
1271
if test "x$host_alias" != x; then
1272
  if test "x$build_alias" = x; then
1273
    cross_compiling=maybe
1274
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1275
    If a cross compiler is detected then cross compile mode will be used." >&2
1276
  elif test "x$build_alias" != "x$host_alias"; then
1277
    cross_compiling=yes
1278
  fi
1279
fi
1280
 
1281
ac_tool_prefix=
1282
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283
 
1284
test "$silent" = yes && exec 6>/dev/null
1285
 
1286
 
1287
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1288
ac_ls_di=`ls -di .` &&
1289
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1290
  as_fn_error "working directory cannot be determined"
1291
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292
  as_fn_error "pwd does not report name of working directory"
1293
 
1294
 
1295
# Find the source files, if location was not specified.
1296
if test -z "$srcdir"; then
1297
  ac_srcdir_defaulted=yes
1298
  # Try the directory containing this script, then the parent directory.
1299
  ac_confdir=`$as_dirname -- "$as_myself" ||
1300
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301
         X"$as_myself" : 'X\(//\)[^/]' \| \
1302
         X"$as_myself" : 'X\(//\)$' \| \
1303
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304
$as_echo X"$as_myself" |
1305
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306
            s//\1/
1307
            q
1308
          }
1309
          /^X\(\/\/\)[^/].*/{
1310
            s//\1/
1311
            q
1312
          }
1313
          /^X\(\/\/\)$/{
1314
            s//\1/
1315
            q
1316
          }
1317
          /^X\(\/\).*/{
1318
            s//\1/
1319
            q
1320
          }
1321
          s/.*/./; q'`
1322
  srcdir=$ac_confdir
1323
  if test ! -r "$srcdir/$ac_unique_file"; then
1324
    srcdir=..
1325
  fi
1326
else
1327
  ac_srcdir_defaulted=no
1328
fi
1329
if test ! -r "$srcdir/$ac_unique_file"; then
1330
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1332
fi
1333
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334
ac_abs_confdir=`(
1335
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1336
        pwd)`
1337
# When building in place, set srcdir=.
1338
if test "$ac_abs_confdir" = "$ac_pwd"; then
1339
  srcdir=.
1340
fi
1341
# Remove unnecessary trailing slashes from srcdir.
1342
# Double slashes in file names in object file debugging info
1343
# mess up M-x gdb in Emacs.
1344
case $srcdir in
1345
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346
esac
1347
for ac_var in $ac_precious_vars; do
1348
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349
  eval ac_env_${ac_var}_value=\$${ac_var}
1350
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352
done
1353
 
1354
#
1355
# Report the --help message.
1356
#
1357
if test "$ac_init_help" = "long"; then
1358
  # Omit some internal or obsolete options to make the list less imposing.
1359
  # This message is too long to be a string in the A/UX 3.1 sh.
1360
  cat <<_ACEOF
1361
\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1362
 
1363
Usage: $0 [OPTION]... [VAR=VALUE]...
1364
 
1365
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366
VAR=VALUE.  See below for descriptions of some of the useful variables.
1367
 
1368
Defaults for the options are specified in brackets.
1369
 
1370
Configuration:
1371
  -h, --help              display this help and exit
1372
      --help=short        display options specific to this package
1373
      --help=recursive    display the short help of all the included packages
1374
  -V, --version           display version information and exit
1375
  -q, --quiet, --silent   do not print \`checking...' messages
1376
      --cache-file=FILE   cache test results in FILE [disabled]
1377
  -C, --config-cache      alias for \`--cache-file=config.cache'
1378
  -n, --no-create         do not create output files
1379
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1380
 
1381
Installation directories:
1382
  --prefix=PREFIX         install architecture-independent files in PREFIX
1383
                          [$ac_default_prefix]
1384
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1385
                          [PREFIX]
1386
 
1387
By default, \`make install' will install all the files in
1388
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1389
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390
for instance \`--prefix=\$HOME'.
1391
 
1392
For better control, use the options below.
1393
 
1394
Fine tuning of the installation directories:
1395
  --bindir=DIR            user executables [EPREFIX/bin]
1396
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1397
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1398
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1399
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1400
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1401
  --libdir=DIR            object code libraries [EPREFIX/lib]
1402
  --includedir=DIR        C header files [PREFIX/include]
1403
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1404
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1405
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1406
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1407
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1408
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1409
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libgo]
1410
  --htmldir=DIR           html documentation [DOCDIR]
1411
  --dvidir=DIR            dvi documentation [DOCDIR]
1412
  --pdfdir=DIR            pdf documentation [DOCDIR]
1413
  --psdir=DIR             ps documentation [DOCDIR]
1414
_ACEOF
1415
 
1416
  cat <<\_ACEOF
1417
 
1418
Program names:
1419
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1420
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1421
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1422
 
1423
System types:
1424
  --build=BUILD     configure for building on BUILD [guessed]
1425
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1426
  --target=TARGET   configure for building compilers for TARGET [HOST]
1427
_ACEOF
1428
fi
1429
 
1430
if test -n "$ac_init_help"; then
1431
  case $ac_init_help in
1432
     short | recursive ) echo "Configuration of package-unused version-unused:";;
1433
   esac
1434
  cat <<\_ACEOF
1435
 
1436
Optional Features:
1437
  --disable-option-checking  ignore unrecognized --enable/--with options
1438
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1439
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1440
  --enable-multilib       build many library versions (default)
1441
  --disable-dependency-tracking  speeds up one-time build
1442
  --enable-dependency-tracking   do not reject slow dependency extractors
1443
  --enable-maintainer-mode  enable make rules and dependencies not useful
1444
                          (and sometimes confusing) to the casual installer
1445
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1446
  --enable-static[=PKGS]  build static libraries [default=yes]
1447
  --enable-fast-install[=PKGS]
1448
                          optimize for fast installation [default=yes]
1449
  --disable-libtool-lock  avoid locking (might break parallel builds)
1450
  --enable-version-specific-runtime-libs
1451
                          Specify that runtime libraries should be installed
1452
                          in a compiler-specific directory
1453
  --enable-sjlj-exceptions
1454
                          force use of builtin_setjmp for exceptions
1455
 
1456
Optional Packages:
1457
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1458
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1459
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1460
  --with-pic              try to use only PIC/non-PIC objects [default=use
1461
                          both]
1462
  --without-libffi        don't use libffi
1463
  --with-system-libunwind use installed libunwind
1464
 
1465
Some influential environment variables:
1466
  CC          C compiler command
1467
  CFLAGS      C compiler flags
1468
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1469
              nonstandard directory 
1470
  LIBS        libraries to pass to the linker, e.g. -l
1471
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1472
              you have headers in a nonstandard directory 
1473
  GOC         Go compiler command
1474
  GOCFLAGS    Go compiler flags
1475
  CPP         C preprocessor
1476
 
1477
Use these variables to override the choices made by `configure' or to help
1478
it to find libraries and programs with nonstandard names/locations.
1479
 
1480
Report bugs to the package provider.
1481
_ACEOF
1482
ac_status=$?
1483
fi
1484
 
1485
if test "$ac_init_help" = "recursive"; then
1486
  # If there are subdirs, report their specific --help.
1487
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488
    test -d "$ac_dir" ||
1489
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490
      continue
1491
    ac_builddir=.
1492
 
1493
case "$ac_dir" in
1494
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495
*)
1496
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1497
  # A ".." for each directory in $ac_dir_suffix.
1498
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499
  case $ac_top_builddir_sub in
1500
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502
  esac ;;
1503
esac
1504
ac_abs_top_builddir=$ac_pwd
1505
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506
# for backward compatibility:
1507
ac_top_builddir=$ac_top_build_prefix
1508
 
1509
case $srcdir in
1510
  .)  # We are building in place.
1511
    ac_srcdir=.
1512
    ac_top_srcdir=$ac_top_builddir_sub
1513
    ac_abs_top_srcdir=$ac_pwd ;;
1514
  [\\/]* | ?:[\\/]* )  # Absolute name.
1515
    ac_srcdir=$srcdir$ac_dir_suffix;
1516
    ac_top_srcdir=$srcdir
1517
    ac_abs_top_srcdir=$srcdir ;;
1518
  *) # Relative name.
1519
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1521
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522
esac
1523
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
 
1525
    cd "$ac_dir" || { ac_status=$?; continue; }
1526
    # Check for guested configure.
1527
    if test -f "$ac_srcdir/configure.gnu"; then
1528
      echo &&
1529
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530
    elif test -f "$ac_srcdir/configure"; then
1531
      echo &&
1532
      $SHELL "$ac_srcdir/configure" --help=recursive
1533
    else
1534
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535
    fi || ac_status=$?
1536
    cd "$ac_pwd" || { ac_status=$?; break; }
1537
  done
1538
fi
1539
 
1540
test -n "$ac_init_help" && exit $ac_status
1541
if $ac_init_version; then
1542
  cat <<\_ACEOF
1543
package-unused configure version-unused
1544
generated by GNU Autoconf 2.64
1545
 
1546
Copyright (C) 2009 Free Software Foundation, Inc.
1547
This configure script is free software; the Free Software Foundation
1548
gives unlimited permission to copy, distribute and modify it.
1549
_ACEOF
1550
  exit
1551
fi
1552
 
1553
## ------------------------ ##
1554
## Autoconf initialization. ##
1555
## ------------------------ ##
1556
 
1557
# ac_fn_c_try_compile LINENO
1558
# --------------------------
1559
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1560
ac_fn_c_try_compile ()
1561
{
1562
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563
  rm -f conftest.$ac_objext
1564
  if { { ac_try="$ac_compile"
1565
case "(($ac_try" in
1566
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567
  *) ac_try_echo=$ac_try;;
1568
esac
1569
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570
$as_echo "$ac_try_echo"; } >&5
1571
  (eval "$ac_compile") 2>conftest.err
1572
  ac_status=$?
1573
  if test -s conftest.err; then
1574
    grep -v '^ *+' conftest.err >conftest.er1
1575
    cat conftest.er1 >&5
1576
    mv -f conftest.er1 conftest.err
1577
  fi
1578
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579
  test $ac_status = 0; } && {
1580
         test -z "$ac_c_werror_flag" ||
1581
         test ! -s conftest.err
1582
       } && test -s conftest.$ac_objext; then :
1583
  ac_retval=0
1584
else
1585
  $as_echo "$as_me: failed program was:" >&5
1586
sed 's/^/| /' conftest.$ac_ext >&5
1587
 
1588
        ac_retval=1
1589
fi
1590
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591
  return $ac_retval
1592
 
1593
} # ac_fn_c_try_compile
1594
 
1595
# ac_fn_c_try_link LINENO
1596
# -----------------------
1597
# Try to link conftest.$ac_ext, and return whether this succeeded.
1598
ac_fn_c_try_link ()
1599
{
1600
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601
  rm -f conftest.$ac_objext conftest$ac_exeext
1602
  if { { ac_try="$ac_link"
1603
case "(($ac_try" in
1604
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605
  *) ac_try_echo=$ac_try;;
1606
esac
1607
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608
$as_echo "$ac_try_echo"; } >&5
1609
  (eval "$ac_link") 2>conftest.err
1610
  ac_status=$?
1611
  if test -s conftest.err; then
1612
    grep -v '^ *+' conftest.err >conftest.er1
1613
    cat conftest.er1 >&5
1614
    mv -f conftest.er1 conftest.err
1615
  fi
1616
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617
  test $ac_status = 0; } && {
1618
         test -z "$ac_c_werror_flag" ||
1619
         test ! -s conftest.err
1620
       } && test -s conftest$ac_exeext && {
1621
         test "$cross_compiling" = yes ||
1622
         $as_test_x conftest$ac_exeext
1623
       }; then :
1624
  ac_retval=0
1625
else
1626
  $as_echo "$as_me: failed program was:" >&5
1627
sed 's/^/| /' conftest.$ac_ext >&5
1628
 
1629
        ac_retval=1
1630
fi
1631
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1632
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1633
  # interfere with the next link command; also delete a directory that is
1634
  # left behind by Apple's compiler.  We do this before executing the actions.
1635
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1636
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1637
  return $ac_retval
1638
 
1639
} # ac_fn_c_try_link
1640
 
1641
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1642
# -------------------------------------------------------
1643
# Tests whether HEADER exists and can be compiled using the include files in
1644
# INCLUDES, setting the cache variable VAR accordingly.
1645
ac_fn_c_check_header_compile ()
1646
{
1647
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649
$as_echo_n "checking for $2... " >&6; }
1650
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1651
  $as_echo_n "(cached) " >&6
1652
else
1653
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654
/* end confdefs.h.  */
1655
$4
1656
#include <$2>
1657
_ACEOF
1658
if ac_fn_c_try_compile "$LINENO"; then :
1659
  eval "$3=yes"
1660
else
1661
  eval "$3=no"
1662
fi
1663
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664
fi
1665
eval ac_res=\$$3
1666
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667
$as_echo "$ac_res" >&6; }
1668
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669
 
1670
} # ac_fn_c_check_header_compile
1671
 
1672
# ac_fn_c_try_cpp LINENO
1673
# ----------------------
1674
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1675
ac_fn_c_try_cpp ()
1676
{
1677
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1679
case "(($ac_try" in
1680
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681
  *) ac_try_echo=$ac_try;;
1682
esac
1683
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684
$as_echo "$ac_try_echo"; } >&5
1685
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1686
  ac_status=$?
1687
  if test -s conftest.err; then
1688
    grep -v '^ *+' conftest.err >conftest.er1
1689
    cat conftest.er1 >&5
1690
    mv -f conftest.er1 conftest.err
1691
  fi
1692
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693
  test $ac_status = 0; } >/dev/null && {
1694
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1695
         test ! -s conftest.err
1696
       }; then :
1697
  ac_retval=0
1698
else
1699
  $as_echo "$as_me: failed program was:" >&5
1700
sed 's/^/| /' conftest.$ac_ext >&5
1701
 
1702
    ac_retval=1
1703
fi
1704
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1705
  return $ac_retval
1706
 
1707
} # ac_fn_c_try_cpp
1708
 
1709
# ac_fn_c_try_run LINENO
1710
# ----------------------
1711
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1712
# that executables *can* be run.
1713
ac_fn_c_try_run ()
1714
{
1715
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716
  if { { ac_try="$ac_link"
1717
case "(($ac_try" in
1718
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719
  *) ac_try_echo=$ac_try;;
1720
esac
1721
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722
$as_echo "$ac_try_echo"; } >&5
1723
  (eval "$ac_link") 2>&5
1724
  ac_status=$?
1725
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1727
  { { case "(($ac_try" in
1728
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729
  *) ac_try_echo=$ac_try;;
1730
esac
1731
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732
$as_echo "$ac_try_echo"; } >&5
1733
  (eval "$ac_try") 2>&5
1734
  ac_status=$?
1735
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736
  test $ac_status = 0; }; }; then :
1737
  ac_retval=0
1738
else
1739
  $as_echo "$as_me: program exited with status $ac_status" >&5
1740
       $as_echo "$as_me: failed program was:" >&5
1741
sed 's/^/| /' conftest.$ac_ext >&5
1742
 
1743
       ac_retval=$ac_status
1744
fi
1745
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747
  return $ac_retval
1748
 
1749
} # ac_fn_c_try_run
1750
 
1751
# ac_fn_c_check_func LINENO FUNC VAR
1752
# ----------------------------------
1753
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1754
ac_fn_c_check_func ()
1755
{
1756
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758
$as_echo_n "checking for $2... " >&6; }
1759
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1760
  $as_echo_n "(cached) " >&6
1761
else
1762
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763
/* end confdefs.h.  */
1764
/* Define $2 to an innocuous variant, in case  declares $2.
1765
   For example, HP-UX 11i  declares gettimeofday.  */
1766
#define $2 innocuous_$2
1767
 
1768
/* System header to define __stub macros and hopefully few prototypes,
1769
    which can conflict with char $2 (); below.
1770
    Prefer  to  if __STDC__ is defined, since
1771
     exists even on freestanding compilers.  */
1772
 
1773
#ifdef __STDC__
1774
# include 
1775
#else
1776
# include 
1777
#endif
1778
 
1779
#undef $2
1780
 
1781
/* Override any GCC internal prototype to avoid an error.
1782
   Use char because int might match the return type of a GCC
1783
   builtin and then its argument prototype would still apply.  */
1784
#ifdef __cplusplus
1785
extern "C"
1786
#endif
1787
char $2 ();
1788
/* The GNU C library defines this for functions which it implements
1789
    to always fail with ENOSYS.  Some functions are actually named
1790
    something starting with __ and the normal name is an alias.  */
1791
#if defined __stub_$2 || defined __stub___$2
1792
choke me
1793
#endif
1794
 
1795
int
1796
main ()
1797
{
1798
return $2 ();
1799
  ;
1800
  return 0;
1801
}
1802
_ACEOF
1803
if ac_fn_c_try_link "$LINENO"; then :
1804
  eval "$3=yes"
1805
else
1806
  eval "$3=no"
1807
fi
1808
rm -f core conftest.err conftest.$ac_objext \
1809
    conftest$ac_exeext conftest.$ac_ext
1810
fi
1811
eval ac_res=\$$3
1812
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813
$as_echo "$ac_res" >&6; }
1814
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815
 
1816
} # ac_fn_c_check_func
1817
 
1818
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1819
# -------------------------------------------------------
1820
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1821
# the include files in INCLUDES and setting the cache variable VAR
1822
# accordingly.
1823
ac_fn_c_check_header_mongrel ()
1824
{
1825
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1827
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828
$as_echo_n "checking for $2... " >&6; }
1829
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1830
  $as_echo_n "(cached) " >&6
1831
fi
1832
eval ac_res=\$$3
1833
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834
$as_echo "$ac_res" >&6; }
1835
else
1836
  # Is the header compilable?
1837
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1838
$as_echo_n "checking $2 usability... " >&6; }
1839
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840
/* end confdefs.h.  */
1841
$4
1842
#include <$2>
1843
_ACEOF
1844
if ac_fn_c_try_compile "$LINENO"; then :
1845
  ac_header_compiler=yes
1846
else
1847
  ac_header_compiler=no
1848
fi
1849
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1851
$as_echo "$ac_header_compiler" >&6; }
1852
 
1853
# Is the header present?
1854
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1855
$as_echo_n "checking $2 presence... " >&6; }
1856
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857
/* end confdefs.h.  */
1858
#include <$2>
1859
_ACEOF
1860
if ac_fn_c_try_cpp "$LINENO"; then :
1861
  ac_header_preproc=yes
1862
else
1863
  ac_header_preproc=no
1864
fi
1865
rm -f conftest.err conftest.$ac_ext
1866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1867
$as_echo "$ac_header_preproc" >&6; }
1868
 
1869
# So?  What about this header?
1870
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1871
  yes:no: )
1872
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1873
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1874
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1875
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1876
    ;;
1877
  no:yes:* )
1878
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1879
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1880
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1881
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1882
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1883
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1884
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1885
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1886
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1887
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1888
    ;;
1889
esac
1890
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891
$as_echo_n "checking for $2... " >&6; }
1892
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1893
  $as_echo_n "(cached) " >&6
1894
else
1895
  eval "$3=\$ac_header_compiler"
1896
fi
1897
eval ac_res=\$$3
1898
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899
$as_echo "$ac_res" >&6; }
1900
fi
1901
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902
 
1903
} # ac_fn_c_check_header_mongrel
1904
 
1905
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1906
# -------------------------------------------
1907
# Tests whether TYPE exists after having included INCLUDES, setting cache
1908
# variable VAR accordingly.
1909
ac_fn_c_check_type ()
1910
{
1911
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913
$as_echo_n "checking for $2... " >&6; }
1914
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915
  $as_echo_n "(cached) " >&6
1916
else
1917
  eval "$3=no"
1918
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919
/* end confdefs.h.  */
1920
$4
1921
int
1922
main ()
1923
{
1924
if (sizeof ($2))
1925
         return 0;
1926
  ;
1927
  return 0;
1928
}
1929
_ACEOF
1930
if ac_fn_c_try_compile "$LINENO"; then :
1931
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932
/* end confdefs.h.  */
1933
$4
1934
int
1935
main ()
1936
{
1937
if (sizeof (($2)))
1938
            return 0;
1939
  ;
1940
  return 0;
1941
}
1942
_ACEOF
1943
if ac_fn_c_try_compile "$LINENO"; then :
1944
 
1945
else
1946
  eval "$3=yes"
1947
fi
1948
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949
fi
1950
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951
fi
1952
eval ac_res=\$$3
1953
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954
$as_echo "$ac_res" >&6; }
1955
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956
 
1957
} # ac_fn_c_check_type
1958
 
1959
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1960
# --------------------------------------------
1961
# Tries to find the compile-time value of EXPR in a program that includes
1962
# INCLUDES, setting VAR accordingly. Returns whether the value could be
1963
# computed
1964
ac_fn_c_compute_int ()
1965
{
1966
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967
  if test "$cross_compiling" = yes; then
1968
    # Depending upon the size, compute the lo and hi bounds.
1969
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970
/* end confdefs.h.  */
1971
$4
1972
int
1973
main ()
1974
{
1975
static int test_array [1 - 2 * !(($2) >= 0)];
1976
test_array [0] = 0
1977
 
1978
  ;
1979
  return 0;
1980
}
1981
_ACEOF
1982
if ac_fn_c_try_compile "$LINENO"; then :
1983
  ac_lo=0 ac_mid=0
1984
  while :; do
1985
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986
/* end confdefs.h.  */
1987
$4
1988
int
1989
main ()
1990
{
1991
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1992
test_array [0] = 0
1993
 
1994
  ;
1995
  return 0;
1996
}
1997
_ACEOF
1998
if ac_fn_c_try_compile "$LINENO"; then :
1999
  ac_hi=$ac_mid; break
2000
else
2001
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2002
                        if test $ac_lo -le $ac_mid; then
2003
                          ac_lo= ac_hi=
2004
                          break
2005
                        fi
2006
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2007
fi
2008
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009
  done
2010
else
2011
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012
/* end confdefs.h.  */
2013
$4
2014
int
2015
main ()
2016
{
2017
static int test_array [1 - 2 * !(($2) < 0)];
2018
test_array [0] = 0
2019
 
2020
  ;
2021
  return 0;
2022
}
2023
_ACEOF
2024
if ac_fn_c_try_compile "$LINENO"; then :
2025
  ac_hi=-1 ac_mid=-1
2026
  while :; do
2027
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028
/* end confdefs.h.  */
2029
$4
2030
int
2031
main ()
2032
{
2033
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2034
test_array [0] = 0
2035
 
2036
  ;
2037
  return 0;
2038
}
2039
_ACEOF
2040
if ac_fn_c_try_compile "$LINENO"; then :
2041
  ac_lo=$ac_mid; break
2042
else
2043
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2044
                        if test $ac_mid -le $ac_hi; then
2045
                          ac_lo= ac_hi=
2046
                          break
2047
                        fi
2048
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2049
fi
2050
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051
  done
2052
else
2053
  ac_lo= ac_hi=
2054
fi
2055
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056
fi
2057
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058
# Binary search between lo and hi bounds.
2059
while test "x$ac_lo" != "x$ac_hi"; do
2060
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2061
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062
/* end confdefs.h.  */
2063
$4
2064
int
2065
main ()
2066
{
2067
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2068
test_array [0] = 0
2069
 
2070
  ;
2071
  return 0;
2072
}
2073
_ACEOF
2074
if ac_fn_c_try_compile "$LINENO"; then :
2075
  ac_hi=$ac_mid
2076
else
2077
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2078
fi
2079
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080
done
2081
case $ac_lo in #((
2082
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2083
'') ac_retval=1 ;;
2084
esac
2085
  else
2086
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087
/* end confdefs.h.  */
2088
$4
2089
static long int longval () { return $2; }
2090
static unsigned long int ulongval () { return $2; }
2091
#include 
2092
#include 
2093
int
2094
main ()
2095
{
2096
 
2097
  FILE *f = fopen ("conftest.val", "w");
2098
  if (! f)
2099
    return 1;
2100
  if (($2) < 0)
2101
    {
2102
      long int i = longval ();
2103
      if (i != ($2))
2104
        return 1;
2105
      fprintf (f, "%ld", i);
2106
    }
2107
  else
2108
    {
2109
      unsigned long int i = ulongval ();
2110
      if (i != ($2))
2111
        return 1;
2112
      fprintf (f, "%lu", i);
2113
    }
2114
  /* Do not output a trailing newline, as this causes \r\n confusion
2115
     on some platforms.  */
2116
  return ferror (f) || fclose (f) != 0;
2117
 
2118
  ;
2119
  return 0;
2120
}
2121
_ACEOF
2122
if ac_fn_c_try_run "$LINENO"; then :
2123
  echo >>conftest.val; read $3 
2124
else
2125
  ac_retval=1
2126
fi
2127
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2128
  conftest.$ac_objext conftest.beam conftest.$ac_ext
2129
rm -f conftest.val
2130
 
2131
  fi
2132
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2133
  return $ac_retval
2134
 
2135
} # ac_fn_c_compute_int
2136
cat >config.log <<_ACEOF
2137
This file contains any messages produced by compilers while
2138
running configure, to aid debugging if configure makes a mistake.
2139
 
2140
It was created by package-unused $as_me version-unused, which was
2141
generated by GNU Autoconf 2.64.  Invocation command line was
2142
 
2143
  $ $0 $@
2144
 
2145
_ACEOF
2146
exec 5>>config.log
2147
{
2148
cat <<_ASUNAME
2149
## --------- ##
2150
## Platform. ##
2151
## --------- ##
2152
 
2153
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2154
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2155
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2156
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2157
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2158
 
2159
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2160
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2161
 
2162
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2163
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2164
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2165
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2166
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2167
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2168
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2169
 
2170
_ASUNAME
2171
 
2172
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173
for as_dir in $PATH
2174
do
2175
  IFS=$as_save_IFS
2176
  test -z "$as_dir" && as_dir=.
2177
    $as_echo "PATH: $as_dir"
2178
  done
2179
IFS=$as_save_IFS
2180
 
2181
} >&5
2182
 
2183
cat >&5 <<_ACEOF
2184
 
2185
 
2186
## ----------- ##
2187
## Core tests. ##
2188
## ----------- ##
2189
 
2190
_ACEOF
2191
 
2192
 
2193
# Keep a trace of the command line.
2194
# Strip out --no-create and --no-recursion so they do not pile up.
2195
# Strip out --silent because we don't want to record it for future runs.
2196
# Also quote any args containing shell meta-characters.
2197
# Make two passes to allow for proper duplicate-argument suppression.
2198
ac_configure_args=
2199
ac_configure_args0=
2200
ac_configure_args1=
2201
ac_must_keep_next=false
2202
for ac_pass in 1 2
2203
do
2204
  for ac_arg
2205
  do
2206
    case $ac_arg in
2207
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2208
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2209
    | -silent | --silent | --silen | --sile | --sil)
2210
      continue ;;
2211
    *\'*)
2212
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2213
    esac
2214
    case $ac_pass in
2215
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2216
    2)
2217
      as_fn_append ac_configure_args1 " '$ac_arg'"
2218
      if test $ac_must_keep_next = true; then
2219
        ac_must_keep_next=false # Got value, back to normal.
2220
      else
2221
        case $ac_arg in
2222
          *=* | --config-cache | -C | -disable-* | --disable-* \
2223
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2224
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2225
          | -with-* | --with-* | -without-* | --without-* | --x)
2226
            case "$ac_configure_args0 " in
2227
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2228
            esac
2229
            ;;
2230
          -* ) ac_must_keep_next=true ;;
2231
        esac
2232
      fi
2233
      as_fn_append ac_configure_args " '$ac_arg'"
2234
      ;;
2235
    esac
2236
  done
2237
done
2238
{ ac_configure_args0=; unset ac_configure_args0;}
2239
{ ac_configure_args1=; unset ac_configure_args1;}
2240
 
2241
# When interrupted or exit'd, cleanup temporary files, and complete
2242
# config.log.  We remove comments because anyway the quotes in there
2243
# would cause problems or look ugly.
2244
# WARNING: Use '\'' to represent an apostrophe within the trap.
2245
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2246
trap 'exit_status=$?
2247
  # Save into config.log some information that might help in debugging.
2248
  {
2249
    echo
2250
 
2251
    cat <<\_ASBOX
2252
## ---------------- ##
2253
## Cache variables. ##
2254
## ---------------- ##
2255
_ASBOX
2256
    echo
2257
    # The following way of writing the cache mishandles newlines in values,
2258
(
2259
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2260
    eval ac_val=\$$ac_var
2261
    case $ac_val in #(
2262
    *${as_nl}*)
2263
      case $ac_var in #(
2264
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2265
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2266
      esac
2267
      case $ac_var in #(
2268
      _ | IFS | as_nl) ;; #(
2269
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2270
      *) { eval $ac_var=; unset $ac_var;} ;;
2271
      esac ;;
2272
    esac
2273
  done
2274
  (set) 2>&1 |
2275
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2276
    *${as_nl}ac_space=\ *)
2277
      sed -n \
2278
        "s/'\''/'\''\\\\'\'''\''/g;
2279
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2280
      ;; #(
2281
    *)
2282
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2283
      ;;
2284
    esac |
2285
    sort
2286
)
2287
    echo
2288
 
2289
    cat <<\_ASBOX
2290
## ----------------- ##
2291
## Output variables. ##
2292
## ----------------- ##
2293
_ASBOX
2294
    echo
2295
    for ac_var in $ac_subst_vars
2296
    do
2297
      eval ac_val=\$$ac_var
2298
      case $ac_val in
2299
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2300
      esac
2301
      $as_echo "$ac_var='\''$ac_val'\''"
2302
    done | sort
2303
    echo
2304
 
2305
    if test -n "$ac_subst_files"; then
2306
      cat <<\_ASBOX
2307
## ------------------- ##
2308
## File substitutions. ##
2309
## ------------------- ##
2310
_ASBOX
2311
      echo
2312
      for ac_var in $ac_subst_files
2313
      do
2314
        eval ac_val=\$$ac_var
2315
        case $ac_val in
2316
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2317
        esac
2318
        $as_echo "$ac_var='\''$ac_val'\''"
2319
      done | sort
2320
      echo
2321
    fi
2322
 
2323
    if test -s confdefs.h; then
2324
      cat <<\_ASBOX
2325
## ----------- ##
2326
## confdefs.h. ##
2327
## ----------- ##
2328
_ASBOX
2329
      echo
2330
      cat confdefs.h
2331
      echo
2332
    fi
2333
    test "$ac_signal" != 0 &&
2334
      $as_echo "$as_me: caught signal $ac_signal"
2335
    $as_echo "$as_me: exit $exit_status"
2336
  } >&5
2337
  rm -f core *.core core.conftest.* &&
2338
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2339
    exit $exit_status
2340
' 0
2341
for ac_signal in 1 2 13 15; do
2342
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2343
done
2344
ac_signal=0
2345
 
2346
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2347
rm -f -r conftest* confdefs.h
2348
 
2349
$as_echo "/* confdefs.h */" > confdefs.h
2350
 
2351
# Predefined preprocessor variables.
2352
 
2353
cat >>confdefs.h <<_ACEOF
2354
#define PACKAGE_NAME "$PACKAGE_NAME"
2355
_ACEOF
2356
 
2357
cat >>confdefs.h <<_ACEOF
2358
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2359
_ACEOF
2360
 
2361
cat >>confdefs.h <<_ACEOF
2362
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2363
_ACEOF
2364
 
2365
cat >>confdefs.h <<_ACEOF
2366
#define PACKAGE_STRING "$PACKAGE_STRING"
2367
_ACEOF
2368
 
2369
cat >>confdefs.h <<_ACEOF
2370
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2371
_ACEOF
2372
 
2373
cat >>confdefs.h <<_ACEOF
2374
#define PACKAGE_URL "$PACKAGE_URL"
2375
_ACEOF
2376
 
2377
 
2378
# Let the site file select an alternate cache file if it wants to.
2379
# Prefer an explicitly selected file to automatically selected ones.
2380
ac_site_file1=NONE
2381
ac_site_file2=NONE
2382
if test -n "$CONFIG_SITE"; then
2383
  ac_site_file1=$CONFIG_SITE
2384
elif test "x$prefix" != xNONE; then
2385
  ac_site_file1=$prefix/share/config.site
2386
  ac_site_file2=$prefix/etc/config.site
2387
else
2388
  ac_site_file1=$ac_default_prefix/share/config.site
2389
  ac_site_file2=$ac_default_prefix/etc/config.site
2390
fi
2391
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2392
do
2393
  test "x$ac_site_file" = xNONE && continue
2394
  if test -r "$ac_site_file"; then
2395
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2396
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2397
    sed 's/^/| /' "$ac_site_file" >&5
2398
    . "$ac_site_file"
2399
  fi
2400
done
2401
 
2402
if test -r "$cache_file"; then
2403
  # Some versions of bash will fail to source /dev/null (special
2404
  # files actually), so we avoid doing that.
2405
  if test -f "$cache_file"; then
2406
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2407
$as_echo "$as_me: loading cache $cache_file" >&6;}
2408
    case $cache_file in
2409
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2410
      *)                      . "./$cache_file";;
2411
    esac
2412
  fi
2413
else
2414
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2415
$as_echo "$as_me: creating cache $cache_file" >&6;}
2416
  >$cache_file
2417
fi
2418
 
2419
# Check that the precious variables saved in the cache have kept the same
2420
# value.
2421
ac_cache_corrupted=false
2422
for ac_var in $ac_precious_vars; do
2423
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2424
  eval ac_new_set=\$ac_env_${ac_var}_set
2425
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2426
  eval ac_new_val=\$ac_env_${ac_var}_value
2427
  case $ac_old_set,$ac_new_set in
2428
    set,)
2429
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2430
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2431
      ac_cache_corrupted=: ;;
2432
    ,set)
2433
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2434
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2435
      ac_cache_corrupted=: ;;
2436
    ,);;
2437
    *)
2438
      if test "x$ac_old_val" != "x$ac_new_val"; then
2439
        # differences in whitespace do not lead to failure.
2440
        ac_old_val_w=`echo x $ac_old_val`
2441
        ac_new_val_w=`echo x $ac_new_val`
2442
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2443
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2444
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2445
          ac_cache_corrupted=:
2446
        else
2447
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2448
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2449
          eval $ac_var=\$ac_old_val
2450
        fi
2451
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2452
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2453
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2454
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2455
      fi;;
2456
  esac
2457
  # Pass precious variables to config.status.
2458
  if test "$ac_new_set" = set; then
2459
    case $ac_new_val in
2460
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2461
    *) ac_arg=$ac_var=$ac_new_val ;;
2462
    esac
2463
    case " $ac_configure_args " in
2464
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2465
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2466
    esac
2467
  fi
2468
done
2469
if $ac_cache_corrupted; then
2470
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2471
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2472
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2473
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2474
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2475
fi
2476
## -------------------- ##
2477
## Main body of script. ##
2478
## -------------------- ##
2479
 
2480
ac_ext=c
2481
ac_cpp='$CPP $CPPFLAGS'
2482
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2485
 
2486
 
2487
 
2488
 
2489
 
2490
 
2491
ac_config_headers="$ac_config_headers config.h"
2492
 
2493
 
2494
libtool_VERSION=1:0:0
2495
 
2496
 
2497
# Default to --enable-multilib
2498
# Check whether --enable-multilib was given.
2499
if test "${enable_multilib+set}" = set; then :
2500
  enableval=$enable_multilib; case "$enableval" in
2501
  yes) multilib=yes ;;
2502
  no)  multilib=no ;;
2503
  *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2504
 esac
2505
else
2506
  multilib=yes
2507
fi
2508
 
2509
 
2510
# We may get other options which we leave undocumented:
2511
# --with-target-subdir, --with-multisrctop, --with-multisubdir
2512
# See config-ml.in if you want the gory details.
2513
 
2514
if test "$srcdir" = "."; then
2515
  if test "$with_target_subdir" != "."; then
2516
    multi_basedir="$srcdir/$with_multisrctop../.."
2517
  else
2518
    multi_basedir="$srcdir/$with_multisrctop.."
2519
  fi
2520
else
2521
  multi_basedir="$srcdir/.."
2522
fi
2523
 
2524
 
2525
# Even if the default multilib is not a cross compilation,
2526
# it may be that some of the other multilibs are.
2527
if test $cross_compiling = no && test $multilib = yes \
2528
   && test "x${with_multisubdir}" != x ; then
2529
   cross_compiling=maybe
2530
fi
2531
 
2532
ac_config_commands="$ac_config_commands default-1"
2533
 
2534
 
2535
ac_aux_dir=
2536
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2537
  for ac_t in install-sh install.sh shtool; do
2538
    if test -f "$ac_dir/$ac_t"; then
2539
      ac_aux_dir=$ac_dir
2540
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2541
      break 2
2542
    fi
2543
  done
2544
done
2545
if test -z "$ac_aux_dir"; then
2546
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2547
fi
2548
 
2549
# These three variables are undocumented and unsupported,
2550
# and are intended to be withdrawn in a future Autoconf release.
2551
# They can cause serious problems if a builder's source tree is in a directory
2552
# whose full name contains unusual characters.
2553
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2554
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2555
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2556
 
2557
 
2558
# Make sure we can run config.sub.
2559
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2560
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2561
 
2562
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2563
$as_echo_n "checking build system type... " >&6; }
2564
if test "${ac_cv_build+set}" = set; then :
2565
  $as_echo_n "(cached) " >&6
2566
else
2567
  ac_build_alias=$build_alias
2568
test "x$ac_build_alias" = x &&
2569
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2570
test "x$ac_build_alias" = x &&
2571
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2572
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2573
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2574
 
2575
fi
2576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2577
$as_echo "$ac_cv_build" >&6; }
2578
case $ac_cv_build in
2579
*-*-*) ;;
2580
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2581
esac
2582
build=$ac_cv_build
2583
ac_save_IFS=$IFS; IFS='-'
2584
set x $ac_cv_build
2585
shift
2586
build_cpu=$1
2587
build_vendor=$2
2588
shift; shift
2589
# Remember, the first character of IFS is used to create $*,
2590
# except with old shells:
2591
build_os=$*
2592
IFS=$ac_save_IFS
2593
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2594
 
2595
 
2596
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2597
$as_echo_n "checking host system type... " >&6; }
2598
if test "${ac_cv_host+set}" = set; then :
2599
  $as_echo_n "(cached) " >&6
2600
else
2601
  if test "x$host_alias" = x; then
2602
  ac_cv_host=$ac_cv_build
2603
else
2604
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2605
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2606
fi
2607
 
2608
fi
2609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2610
$as_echo "$ac_cv_host" >&6; }
2611
case $ac_cv_host in
2612
*-*-*) ;;
2613
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2614
esac
2615
host=$ac_cv_host
2616
ac_save_IFS=$IFS; IFS='-'
2617
set x $ac_cv_host
2618
shift
2619
host_cpu=$1
2620
host_vendor=$2
2621
shift; shift
2622
# Remember, the first character of IFS is used to create $*,
2623
# except with old shells:
2624
host_os=$*
2625
IFS=$ac_save_IFS
2626
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2627
 
2628
 
2629
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2630
$as_echo_n "checking target system type... " >&6; }
2631
if test "${ac_cv_target+set}" = set; then :
2632
  $as_echo_n "(cached) " >&6
2633
else
2634
  if test "x$target_alias" = x; then
2635
  ac_cv_target=$ac_cv_host
2636
else
2637
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2638
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2639
fi
2640
 
2641
fi
2642
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2643
$as_echo "$ac_cv_target" >&6; }
2644
case $ac_cv_target in
2645
*-*-*) ;;
2646
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2647
esac
2648
target=$ac_cv_target
2649
ac_save_IFS=$IFS; IFS='-'
2650
set x $ac_cv_target
2651
shift
2652
target_cpu=$1
2653
target_vendor=$2
2654
shift; shift
2655
# Remember, the first character of IFS is used to create $*,
2656
# except with old shells:
2657
target_os=$*
2658
IFS=$ac_save_IFS
2659
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2660
 
2661
 
2662
# The aliases save the names the user supplied, while $host etc.
2663
# will get canonicalized.
2664
test -n "$target_alias" &&
2665
  test "$program_prefix$program_suffix$program_transform_name" = \
2666
    NONENONEs,x,x, &&
2667
  program_prefix=${target_alias}-
2668
 
2669
target_alias=${target_alias-$host_alias}
2670
 
2671
am__api_version='1.11'
2672
 
2673
# Find a good install program.  We prefer a C program (faster),
2674
# so one script is as good as another.  But avoid the broken or
2675
# incompatible versions:
2676
# SysV /etc/install, /usr/sbin/install
2677
# SunOS /usr/etc/install
2678
# IRIX /sbin/install
2679
# AIX /bin/install
2680
# AmigaOS /C/install, which installs bootblocks on floppy discs
2681
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2682
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2683
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2684
# OS/2's system install, which has a completely different semantic
2685
# ./install, which can be erroneously created by make from ./install.sh.
2686
# Reject install programs that cannot install multiple files.
2687
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2688
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2689
if test -z "$INSTALL"; then
2690
if test "${ac_cv_path_install+set}" = set; then :
2691
  $as_echo_n "(cached) " >&6
2692
else
2693
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694
for as_dir in $PATH
2695
do
2696
  IFS=$as_save_IFS
2697
  test -z "$as_dir" && as_dir=.
2698
    # Account for people who put trailing slashes in PATH elements.
2699
case $as_dir/ in #((
2700
  ./ | .// | /[cC]/* | \
2701
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2702
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2703
  /usr/ucb/* ) ;;
2704
  *)
2705
    # OSF1 and SCO ODT 3.0 have their own names for install.
2706
    # Don't use installbsd from OSF since it installs stuff as root
2707
    # by default.
2708
    for ac_prog in ginstall scoinst install; do
2709
      for ac_exec_ext in '' $ac_executable_extensions; do
2710
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2711
          if test $ac_prog = install &&
2712
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2713
            # AIX install.  It has an incompatible calling convention.
2714
            :
2715
          elif test $ac_prog = install &&
2716
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2717
            # program-specific install script used by HP pwplus--don't use.
2718
            :
2719
          else
2720
            rm -rf conftest.one conftest.two conftest.dir
2721
            echo one > conftest.one
2722
            echo two > conftest.two
2723
            mkdir conftest.dir
2724
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2725
              test -s conftest.one && test -s conftest.two &&
2726
              test -s conftest.dir/conftest.one &&
2727
              test -s conftest.dir/conftest.two
2728
            then
2729
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2730
              break 3
2731
            fi
2732
          fi
2733
        fi
2734
      done
2735
    done
2736
    ;;
2737
esac
2738
 
2739
  done
2740
IFS=$as_save_IFS
2741
 
2742
rm -rf conftest.one conftest.two conftest.dir
2743
 
2744
fi
2745
  if test "${ac_cv_path_install+set}" = set; then
2746
    INSTALL=$ac_cv_path_install
2747
  else
2748
    # As a last resort, use the slow shell script.  Don't cache a
2749
    # value for INSTALL within a source directory, because that will
2750
    # break other packages using the cache if that directory is
2751
    # removed, or if the value is a relative name.
2752
    INSTALL=$ac_install_sh
2753
  fi
2754
fi
2755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2756
$as_echo "$INSTALL" >&6; }
2757
 
2758
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2759
# It thinks the first close brace ends the variable substitution.
2760
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2761
 
2762
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2763
 
2764
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2765
 
2766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2767
$as_echo_n "checking whether build environment is sane... " >&6; }
2768
# Just in case
2769
sleep 1
2770
echo timestamp > conftest.file
2771
# Reject unsafe characters in $srcdir or the absolute working directory
2772
# name.  Accept space and tab only in the latter.
2773
am_lf='
2774
'
2775
case `pwd` in
2776
  *[\\\"\#\$\&\'\`$am_lf]*)
2777
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2778
esac
2779
case $srcdir in
2780
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2781
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2782
esac
2783
 
2784
# Do `set' in a subshell so we don't clobber the current shell's
2785
# arguments.  Must try -L first in case configure is actually a
2786
# symlink; some systems play weird games with the mod time of symlinks
2787
# (eg FreeBSD returns the mod time of the symlink's containing
2788
# directory).
2789
if (
2790
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2791
   if test "$*" = "X"; then
2792
      # -L didn't work.
2793
      set X `ls -t "$srcdir/configure" conftest.file`
2794
   fi
2795
   rm -f conftest.file
2796
   if test "$*" != "X $srcdir/configure conftest.file" \
2797
      && test "$*" != "X conftest.file $srcdir/configure"; then
2798
 
2799
      # If neither matched, then we have a broken ls.  This can happen
2800
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2801
      # broken ls alias from the environment.  This has actually
2802
      # happened.  Such a system could not be considered "sane".
2803
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2804
alias in your environment" "$LINENO" 5
2805
   fi
2806
 
2807
   test "$2" = conftest.file
2808
   )
2809
then
2810
   # Ok.
2811
   :
2812
else
2813
   as_fn_error "newly created file is older than distributed files!
2814
Check your system clock" "$LINENO" 5
2815
fi
2816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2817
$as_echo "yes" >&6; }
2818
test "$program_prefix" != NONE &&
2819
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2820
# Use a double $ so make ignores it.
2821
test "$program_suffix" != NONE &&
2822
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2823
# Double any \ or $.
2824
# By default was `s,x,x', remove it if useless.
2825
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2826
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2827
 
2828
# expand $ac_aux_dir to an absolute path
2829
am_aux_dir=`cd $ac_aux_dir && pwd`
2830
 
2831
if test x"${MISSING+set}" != xset; then
2832
  case $am_aux_dir in
2833
  *\ * | *\     *)
2834
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2835
  *)
2836
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2837
  esac
2838
fi
2839
# Use eval to expand $SHELL
2840
if eval "$MISSING --run true"; then
2841
  am_missing_run="$MISSING --run "
2842
else
2843
  am_missing_run=
2844
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2845
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2846
fi
2847
 
2848
if test x"${install_sh}" != xset; then
2849
  case $am_aux_dir in
2850
  *\ * | *\     *)
2851
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2852
  *)
2853
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2854
  esac
2855
fi
2856
 
2857
# Installed binaries are usually stripped using `strip' when the user
2858
# run `make install-strip'.  However `strip' might not be the right
2859
# tool to use in cross-compilation environments, therefore Automake
2860
# will honor the `STRIP' environment variable to overrule this program.
2861
if test "$cross_compiling" != no; then
2862
  if test -n "$ac_tool_prefix"; then
2863
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2864
set dummy ${ac_tool_prefix}strip; ac_word=$2
2865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866
$as_echo_n "checking for $ac_word... " >&6; }
2867
if test "${ac_cv_prog_STRIP+set}" = set; then :
2868
  $as_echo_n "(cached) " >&6
2869
else
2870
  if test -n "$STRIP"; then
2871
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2872
else
2873
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874
for as_dir in $PATH
2875
do
2876
  IFS=$as_save_IFS
2877
  test -z "$as_dir" && as_dir=.
2878
    for ac_exec_ext in '' $ac_executable_extensions; do
2879
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2881
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882
    break 2
2883
  fi
2884
done
2885
  done
2886
IFS=$as_save_IFS
2887
 
2888
fi
2889
fi
2890
STRIP=$ac_cv_prog_STRIP
2891
if test -n "$STRIP"; then
2892
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2893
$as_echo "$STRIP" >&6; }
2894
else
2895
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896
$as_echo "no" >&6; }
2897
fi
2898
 
2899
 
2900
fi
2901
if test -z "$ac_cv_prog_STRIP"; then
2902
  ac_ct_STRIP=$STRIP
2903
  # Extract the first word of "strip", so it can be a program name with args.
2904
set dummy strip; ac_word=$2
2905
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906
$as_echo_n "checking for $ac_word... " >&6; }
2907
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2908
  $as_echo_n "(cached) " >&6
2909
else
2910
  if test -n "$ac_ct_STRIP"; then
2911
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2912
else
2913
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914
for as_dir in $PATH
2915
do
2916
  IFS=$as_save_IFS
2917
  test -z "$as_dir" && as_dir=.
2918
    for ac_exec_ext in '' $ac_executable_extensions; do
2919
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920
    ac_cv_prog_ac_ct_STRIP="strip"
2921
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922
    break 2
2923
  fi
2924
done
2925
  done
2926
IFS=$as_save_IFS
2927
 
2928
fi
2929
fi
2930
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2931
if test -n "$ac_ct_STRIP"; then
2932
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2933
$as_echo "$ac_ct_STRIP" >&6; }
2934
else
2935
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936
$as_echo "no" >&6; }
2937
fi
2938
 
2939
  if test "x$ac_ct_STRIP" = x; then
2940
    STRIP=":"
2941
  else
2942
    case $cross_compiling:$ac_tool_warned in
2943
yes:)
2944
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2945
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2946
ac_tool_warned=yes ;;
2947
esac
2948
    STRIP=$ac_ct_STRIP
2949
  fi
2950
else
2951
  STRIP="$ac_cv_prog_STRIP"
2952
fi
2953
 
2954
fi
2955
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2956
 
2957
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2958
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2959
if test -z "$MKDIR_P"; then
2960
  if test "${ac_cv_path_mkdir+set}" = set; then :
2961
  $as_echo_n "(cached) " >&6
2962
else
2963
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2965
do
2966
  IFS=$as_save_IFS
2967
  test -z "$as_dir" && as_dir=.
2968
    for ac_prog in mkdir gmkdir; do
2969
         for ac_exec_ext in '' $ac_executable_extensions; do
2970
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2971
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2972
             'mkdir (GNU coreutils) '* | \
2973
             'mkdir (coreutils) '* | \
2974
             'mkdir (fileutils) '4.1*)
2975
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2976
               break 3;;
2977
           esac
2978
         done
2979
       done
2980
  done
2981
IFS=$as_save_IFS
2982
 
2983
fi
2984
 
2985
  if test "${ac_cv_path_mkdir+set}" = set; then
2986
    MKDIR_P="$ac_cv_path_mkdir -p"
2987
  else
2988
    # As a last resort, use the slow shell script.  Don't cache a
2989
    # value for MKDIR_P within a source directory, because that will
2990
    # break other packages using the cache if that directory is
2991
    # removed, or if the value is a relative name.
2992
    test -d ./--version && rmdir ./--version
2993
    MKDIR_P="$ac_install_sh -d"
2994
  fi
2995
fi
2996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2997
$as_echo "$MKDIR_P" >&6; }
2998
 
2999
mkdir_p="$MKDIR_P"
3000
case $mkdir_p in
3001
  [\\/$]* | ?:[\\/]*) ;;
3002
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3003
esac
3004
 
3005
for ac_prog in gawk mawk nawk awk
3006
do
3007
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3008
set dummy $ac_prog; ac_word=$2
3009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010
$as_echo_n "checking for $ac_word... " >&6; }
3011
if test "${ac_cv_prog_AWK+set}" = set; then :
3012
  $as_echo_n "(cached) " >&6
3013
else
3014
  if test -n "$AWK"; then
3015
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3016
else
3017
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018
for as_dir in $PATH
3019
do
3020
  IFS=$as_save_IFS
3021
  test -z "$as_dir" && as_dir=.
3022
    for ac_exec_ext in '' $ac_executable_extensions; do
3023
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024
    ac_cv_prog_AWK="$ac_prog"
3025
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026
    break 2
3027
  fi
3028
done
3029
  done
3030
IFS=$as_save_IFS
3031
 
3032
fi
3033
fi
3034
AWK=$ac_cv_prog_AWK
3035
if test -n "$AWK"; then
3036
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3037
$as_echo "$AWK" >&6; }
3038
else
3039
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040
$as_echo "no" >&6; }
3041
fi
3042
 
3043
 
3044
  test -n "$AWK" && break
3045
done
3046
 
3047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3048
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3049
set x ${MAKE-make}
3050
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3051
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3052
  $as_echo_n "(cached) " >&6
3053
else
3054
  cat >conftest.make <<\_ACEOF
3055
SHELL = /bin/sh
3056
all:
3057
        @echo '@@@%%%=$(MAKE)=@@@%%%'
3058
_ACEOF
3059
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3060
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3061
  *@@@%%%=?*=@@@%%%*)
3062
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3063
  *)
3064
    eval ac_cv_prog_make_${ac_make}_set=no;;
3065
esac
3066
rm -f conftest.make
3067
fi
3068
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3069
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3070
$as_echo "yes" >&6; }
3071
  SET_MAKE=
3072
else
3073
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074
$as_echo "no" >&6; }
3075
  SET_MAKE="MAKE=${MAKE-make}"
3076
fi
3077
 
3078
rm -rf .tst 2>/dev/null
3079
mkdir .tst 2>/dev/null
3080
if test -d .tst; then
3081
  am__leading_dot=.
3082
else
3083
  am__leading_dot=_
3084
fi
3085
rmdir .tst 2>/dev/null
3086
 
3087
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3088
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3089
  # is not polluted with repeated "-I."
3090
  am__isrc=' -I$(srcdir)'
3091
  # test to see if srcdir already configured
3092
  if test -f $srcdir/config.status; then
3093
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3094
  fi
3095
fi
3096
 
3097
# test whether we have cygpath
3098
if test -z "$CYGPATH_W"; then
3099
  if (cygpath --version) >/dev/null 2>/dev/null; then
3100
    CYGPATH_W='cygpath -w'
3101
  else
3102
    CYGPATH_W=echo
3103
  fi
3104
fi
3105
 
3106
 
3107
# Define the identity of the package.
3108
 PACKAGE='libgo'
3109
 VERSION='version-unused'
3110
 
3111
 
3112
# Some tools Automake needs.
3113
 
3114
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3115
 
3116
 
3117
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3118
 
3119
 
3120
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3121
 
3122
 
3123
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3124
 
3125
 
3126
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3127
 
3128
# We need awk for the "check" target.  The system "awk" is bad on
3129
# some platforms.
3130
# Always define AMTAR for backward compatibility.
3131
 
3132
AMTAR=${AMTAR-"${am_missing_run}tar"}
3133
 
3134
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3135
 
3136
 
3137
 
3138
 
3139
 
3140
 
3141
 
3142
 
3143
 
3144
 
3145
ac_ext=c
3146
ac_cpp='$CPP $CPPFLAGS'
3147
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3148
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3149
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3150
if test -n "$ac_tool_prefix"; then
3151
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3152
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3153
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154
$as_echo_n "checking for $ac_word... " >&6; }
3155
if test "${ac_cv_prog_CC+set}" = set; then :
3156
  $as_echo_n "(cached) " >&6
3157
else
3158
  if test -n "$CC"; then
3159
  ac_cv_prog_CC="$CC" # Let the user override the test.
3160
else
3161
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162
for as_dir in $PATH
3163
do
3164
  IFS=$as_save_IFS
3165
  test -z "$as_dir" && as_dir=.
3166
    for ac_exec_ext in '' $ac_executable_extensions; do
3167
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3168
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3169
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170
    break 2
3171
  fi
3172
done
3173
  done
3174
IFS=$as_save_IFS
3175
 
3176
fi
3177
fi
3178
CC=$ac_cv_prog_CC
3179
if test -n "$CC"; then
3180
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3181
$as_echo "$CC" >&6; }
3182
else
3183
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184
$as_echo "no" >&6; }
3185
fi
3186
 
3187
 
3188
fi
3189
if test -z "$ac_cv_prog_CC"; then
3190
  ac_ct_CC=$CC
3191
  # Extract the first word of "gcc", so it can be a program name with args.
3192
set dummy gcc; ac_word=$2
3193
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194
$as_echo_n "checking for $ac_word... " >&6; }
3195
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3196
  $as_echo_n "(cached) " >&6
3197
else
3198
  if test -n "$ac_ct_CC"; then
3199
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3200
else
3201
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202
for as_dir in $PATH
3203
do
3204
  IFS=$as_save_IFS
3205
  test -z "$as_dir" && as_dir=.
3206
    for ac_exec_ext in '' $ac_executable_extensions; do
3207
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3208
    ac_cv_prog_ac_ct_CC="gcc"
3209
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210
    break 2
3211
  fi
3212
done
3213
  done
3214
IFS=$as_save_IFS
3215
 
3216
fi
3217
fi
3218
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3219
if test -n "$ac_ct_CC"; then
3220
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3221
$as_echo "$ac_ct_CC" >&6; }
3222
else
3223
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224
$as_echo "no" >&6; }
3225
fi
3226
 
3227
  if test "x$ac_ct_CC" = x; then
3228
    CC=""
3229
  else
3230
    case $cross_compiling:$ac_tool_warned in
3231
yes:)
3232
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3233
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3234
ac_tool_warned=yes ;;
3235
esac
3236
    CC=$ac_ct_CC
3237
  fi
3238
else
3239
  CC="$ac_cv_prog_CC"
3240
fi
3241
 
3242
if test -z "$CC"; then
3243
          if test -n "$ac_tool_prefix"; then
3244
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3245
set dummy ${ac_tool_prefix}cc; ac_word=$2
3246
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247
$as_echo_n "checking for $ac_word... " >&6; }
3248
if test "${ac_cv_prog_CC+set}" = set; then :
3249
  $as_echo_n "(cached) " >&6
3250
else
3251
  if test -n "$CC"; then
3252
  ac_cv_prog_CC="$CC" # Let the user override the test.
3253
else
3254
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255
for as_dir in $PATH
3256
do
3257
  IFS=$as_save_IFS
3258
  test -z "$as_dir" && as_dir=.
3259
    for ac_exec_ext in '' $ac_executable_extensions; do
3260
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3262
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263
    break 2
3264
  fi
3265
done
3266
  done
3267
IFS=$as_save_IFS
3268
 
3269
fi
3270
fi
3271
CC=$ac_cv_prog_CC
3272
if test -n "$CC"; then
3273
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3274
$as_echo "$CC" >&6; }
3275
else
3276
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277
$as_echo "no" >&6; }
3278
fi
3279
 
3280
 
3281
  fi
3282
fi
3283
if test -z "$CC"; then
3284
  # Extract the first word of "cc", so it can be a program name with args.
3285
set dummy cc; ac_word=$2
3286
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287
$as_echo_n "checking for $ac_word... " >&6; }
3288
if test "${ac_cv_prog_CC+set}" = set; then :
3289
  $as_echo_n "(cached) " >&6
3290
else
3291
  if test -n "$CC"; then
3292
  ac_cv_prog_CC="$CC" # Let the user override the test.
3293
else
3294
  ac_prog_rejected=no
3295
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296
for as_dir in $PATH
3297
do
3298
  IFS=$as_save_IFS
3299
  test -z "$as_dir" && as_dir=.
3300
    for ac_exec_ext in '' $ac_executable_extensions; do
3301
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3303
       ac_prog_rejected=yes
3304
       continue
3305
     fi
3306
    ac_cv_prog_CC="cc"
3307
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308
    break 2
3309
  fi
3310
done
3311
  done
3312
IFS=$as_save_IFS
3313
 
3314
if test $ac_prog_rejected = yes; then
3315
  # We found a bogon in the path, so make sure we never use it.
3316
  set dummy $ac_cv_prog_CC
3317
  shift
3318
  if test $# != 0; then
3319
    # We chose a different compiler from the bogus one.
3320
    # However, it has the same basename, so the bogon will be chosen
3321
    # first if we set CC to just the basename; use the full file name.
3322
    shift
3323
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3324
  fi
3325
fi
3326
fi
3327
fi
3328
CC=$ac_cv_prog_CC
3329
if test -n "$CC"; then
3330
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3331
$as_echo "$CC" >&6; }
3332
else
3333
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334
$as_echo "no" >&6; }
3335
fi
3336
 
3337
 
3338
fi
3339
if test -z "$CC"; then
3340
  if test -n "$ac_tool_prefix"; then
3341
  for ac_prog in cl.exe
3342
  do
3343
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3344
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3345
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346
$as_echo_n "checking for $ac_word... " >&6; }
3347
if test "${ac_cv_prog_CC+set}" = set; then :
3348
  $as_echo_n "(cached) " >&6
3349
else
3350
  if test -n "$CC"; then
3351
  ac_cv_prog_CC="$CC" # Let the user override the test.
3352
else
3353
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354
for as_dir in $PATH
3355
do
3356
  IFS=$as_save_IFS
3357
  test -z "$as_dir" && as_dir=.
3358
    for ac_exec_ext in '' $ac_executable_extensions; do
3359
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3360
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3361
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362
    break 2
3363
  fi
3364
done
3365
  done
3366
IFS=$as_save_IFS
3367
 
3368
fi
3369
fi
3370
CC=$ac_cv_prog_CC
3371
if test -n "$CC"; then
3372
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3373
$as_echo "$CC" >&6; }
3374
else
3375
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376
$as_echo "no" >&6; }
3377
fi
3378
 
3379
 
3380
    test -n "$CC" && break
3381
  done
3382
fi
3383
if test -z "$CC"; then
3384
  ac_ct_CC=$CC
3385
  for ac_prog in cl.exe
3386
do
3387
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3388
set dummy $ac_prog; ac_word=$2
3389
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390
$as_echo_n "checking for $ac_word... " >&6; }
3391
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3392
  $as_echo_n "(cached) " >&6
3393
else
3394
  if test -n "$ac_ct_CC"; then
3395
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3396
else
3397
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398
for as_dir in $PATH
3399
do
3400
  IFS=$as_save_IFS
3401
  test -z "$as_dir" && as_dir=.
3402
    for ac_exec_ext in '' $ac_executable_extensions; do
3403
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3404
    ac_cv_prog_ac_ct_CC="$ac_prog"
3405
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3406
    break 2
3407
  fi
3408
done
3409
  done
3410
IFS=$as_save_IFS
3411
 
3412
fi
3413
fi
3414
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3415
if test -n "$ac_ct_CC"; then
3416
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3417
$as_echo "$ac_ct_CC" >&6; }
3418
else
3419
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420
$as_echo "no" >&6; }
3421
fi
3422
 
3423
 
3424
  test -n "$ac_ct_CC" && break
3425
done
3426
 
3427
  if test "x$ac_ct_CC" = x; then
3428
    CC=""
3429
  else
3430
    case $cross_compiling:$ac_tool_warned in
3431
yes:)
3432
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3433
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3434
ac_tool_warned=yes ;;
3435
esac
3436
    CC=$ac_ct_CC
3437
  fi
3438
fi
3439
 
3440
fi
3441
 
3442
 
3443
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445
as_fn_error "no acceptable C compiler found in \$PATH
3446
See \`config.log' for more details." "$LINENO" 5; }
3447
 
3448
# Provide some information about the compiler.
3449
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3450
set X $ac_compile
3451
ac_compiler=$2
3452
for ac_option in --version -v -V -qversion; do
3453
  { { ac_try="$ac_compiler $ac_option >&5"
3454
case "(($ac_try" in
3455
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456
  *) ac_try_echo=$ac_try;;
3457
esac
3458
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459
$as_echo "$ac_try_echo"; } >&5
3460
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3461
  ac_status=$?
3462
  if test -s conftest.err; then
3463
    sed '10a\
3464
... rest of stderr output deleted ...
3465
         10q' conftest.err >conftest.er1
3466
    cat conftest.er1 >&5
3467
    rm -f conftest.er1 conftest.err
3468
  fi
3469
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470
  test $ac_status = 0; }
3471
done
3472
 
3473
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474
/* end confdefs.h.  */
3475
 
3476
int
3477
main ()
3478
{
3479
 
3480
  ;
3481
  return 0;
3482
}
3483
_ACEOF
3484
ac_clean_files_save=$ac_clean_files
3485
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3486
# Try to create an executable without -o first, disregard a.out.
3487
# It will help us diagnose broken compilers, and finding out an intuition
3488
# of exeext.
3489
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3490
$as_echo_n "checking for C compiler default output file name... " >&6; }
3491
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3492
 
3493
# The possible output files:
3494
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3495
 
3496
ac_rmfiles=
3497
for ac_file in $ac_files
3498
do
3499
  case $ac_file in
3500
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3501
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3502
  esac
3503
done
3504
rm -f $ac_rmfiles
3505
 
3506
if { { ac_try="$ac_link_default"
3507
case "(($ac_try" in
3508
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509
  *) ac_try_echo=$ac_try;;
3510
esac
3511
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512
$as_echo "$ac_try_echo"; } >&5
3513
  (eval "$ac_link_default") 2>&5
3514
  ac_status=$?
3515
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516
  test $ac_status = 0; }; then :
3517
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3518
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3519
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3520
# so that the user can short-circuit this test for compilers unknown to
3521
# Autoconf.
3522
for ac_file in $ac_files ''
3523
do
3524
  test -f "$ac_file" || continue
3525
  case $ac_file in
3526
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3527
        ;;
3528
    [ab].out )
3529
        # We found the default executable, but exeext='' is most
3530
        # certainly right.
3531
        break;;
3532
    *.* )
3533
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3534
        then :; else
3535
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3536
        fi
3537
        # We set ac_cv_exeext here because the later test for it is not
3538
        # safe: cross compilers may not add the suffix if given an `-o'
3539
        # argument, so we may need to know it at that point already.
3540
        # Even if this section looks crufty: it has the advantage of
3541
        # actually working.
3542
        break;;
3543
    * )
3544
        break;;
3545
  esac
3546
done
3547
test "$ac_cv_exeext" = no && ac_cv_exeext=
3548
 
3549
else
3550
  ac_file=''
3551
fi
3552
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3553
$as_echo "$ac_file" >&6; }
3554
if test -z "$ac_file"; then :
3555
  $as_echo "$as_me: failed program was:" >&5
3556
sed 's/^/| /' conftest.$ac_ext >&5
3557
 
3558
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3559
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3560
{ as_fn_set_status 77
3561
as_fn_error "C compiler cannot create executables
3562
See \`config.log' for more details." "$LINENO" 5; }; }
3563
fi
3564
ac_exeext=$ac_cv_exeext
3565
 
3566
# Check that the compiler produces executables we can run.  If not, either
3567
# the compiler is broken, or we cross compile.
3568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3569
$as_echo_n "checking whether the C compiler works... " >&6; }
3570
# If not cross compiling, check that we can run a simple program.
3571
if test "$cross_compiling" != yes; then
3572
  if { ac_try='./$ac_file'
3573
  { { case "(($ac_try" in
3574
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575
  *) ac_try_echo=$ac_try;;
3576
esac
3577
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578
$as_echo "$ac_try_echo"; } >&5
3579
  (eval "$ac_try") 2>&5
3580
  ac_status=$?
3581
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582
  test $ac_status = 0; }; }; then
3583
    cross_compiling=no
3584
  else
3585
    if test "$cross_compiling" = maybe; then
3586
        cross_compiling=yes
3587
    else
3588
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590
as_fn_error "cannot run C compiled programs.
3591
If you meant to cross compile, use \`--host'.
3592
See \`config.log' for more details." "$LINENO" 5; }
3593
    fi
3594
  fi
3595
fi
3596
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3597
$as_echo "yes" >&6; }
3598
 
3599
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3600
ac_clean_files=$ac_clean_files_save
3601
# Check that the compiler produces executables we can run.  If not, either
3602
# the compiler is broken, or we cross compile.
3603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3604
$as_echo_n "checking whether we are cross compiling... " >&6; }
3605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3606
$as_echo "$cross_compiling" >&6; }
3607
 
3608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3609
$as_echo_n "checking for suffix of executables... " >&6; }
3610
if { { ac_try="$ac_link"
3611
case "(($ac_try" in
3612
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613
  *) ac_try_echo=$ac_try;;
3614
esac
3615
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616
$as_echo "$ac_try_echo"; } >&5
3617
  (eval "$ac_link") 2>&5
3618
  ac_status=$?
3619
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620
  test $ac_status = 0; }; then :
3621
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3622
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3623
# work properly (i.e., refer to `conftest.exe'), while it won't with
3624
# `rm'.
3625
for ac_file in conftest.exe conftest conftest.*; do
3626
  test -f "$ac_file" || continue
3627
  case $ac_file in
3628
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3629
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3630
          break;;
3631
    * ) break;;
3632
  esac
3633
done
3634
else
3635
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637
as_fn_error "cannot compute suffix of executables: cannot compile and link
3638
See \`config.log' for more details." "$LINENO" 5; }
3639
fi
3640
rm -f conftest$ac_cv_exeext
3641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3642
$as_echo "$ac_cv_exeext" >&6; }
3643
 
3644
rm -f conftest.$ac_ext
3645
EXEEXT=$ac_cv_exeext
3646
ac_exeext=$EXEEXT
3647
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3648
$as_echo_n "checking for suffix of object files... " >&6; }
3649
if test "${ac_cv_objext+set}" = set; then :
3650
  $as_echo_n "(cached) " >&6
3651
else
3652
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653
/* end confdefs.h.  */
3654
 
3655
int
3656
main ()
3657
{
3658
 
3659
  ;
3660
  return 0;
3661
}
3662
_ACEOF
3663
rm -f conftest.o conftest.obj
3664
if { { ac_try="$ac_compile"
3665
case "(($ac_try" in
3666
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667
  *) ac_try_echo=$ac_try;;
3668
esac
3669
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670
$as_echo "$ac_try_echo"; } >&5
3671
  (eval "$ac_compile") 2>&5
3672
  ac_status=$?
3673
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674
  test $ac_status = 0; }; then :
3675
  for ac_file in conftest.o conftest.obj conftest.*; do
3676
  test -f "$ac_file" || continue;
3677
  case $ac_file in
3678
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3679
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3680
       break;;
3681
  esac
3682
done
3683
else
3684
  $as_echo "$as_me: failed program was:" >&5
3685
sed 's/^/| /' conftest.$ac_ext >&5
3686
 
3687
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3689
as_fn_error "cannot compute suffix of object files: cannot compile
3690
See \`config.log' for more details." "$LINENO" 5; }
3691
fi
3692
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3693
fi
3694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3695
$as_echo "$ac_cv_objext" >&6; }
3696
OBJEXT=$ac_cv_objext
3697
ac_objext=$OBJEXT
3698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3699
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3700
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3701
  $as_echo_n "(cached) " >&6
3702
else
3703
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704
/* end confdefs.h.  */
3705
 
3706
int
3707
main ()
3708
{
3709
#ifndef __GNUC__
3710
       choke me
3711
#endif
3712
 
3713
  ;
3714
  return 0;
3715
}
3716
_ACEOF
3717
if ac_fn_c_try_compile "$LINENO"; then :
3718
  ac_compiler_gnu=yes
3719
else
3720
  ac_compiler_gnu=no
3721
fi
3722
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3724
 
3725
fi
3726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3727
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3728
if test $ac_compiler_gnu = yes; then
3729
  GCC=yes
3730
else
3731
  GCC=
3732
fi
3733
ac_test_CFLAGS=${CFLAGS+set}
3734
ac_save_CFLAGS=$CFLAGS
3735
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3736
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3737
if test "${ac_cv_prog_cc_g+set}" = set; then :
3738
  $as_echo_n "(cached) " >&6
3739
else
3740
  ac_save_c_werror_flag=$ac_c_werror_flag
3741
   ac_c_werror_flag=yes
3742
   ac_cv_prog_cc_g=no
3743
   CFLAGS="-g"
3744
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745
/* end confdefs.h.  */
3746
 
3747
int
3748
main ()
3749
{
3750
 
3751
  ;
3752
  return 0;
3753
}
3754
_ACEOF
3755
if ac_fn_c_try_compile "$LINENO"; then :
3756
  ac_cv_prog_cc_g=yes
3757
else
3758
  CFLAGS=""
3759
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760
/* end confdefs.h.  */
3761
 
3762
int
3763
main ()
3764
{
3765
 
3766
  ;
3767
  return 0;
3768
}
3769
_ACEOF
3770
if ac_fn_c_try_compile "$LINENO"; then :
3771
 
3772
else
3773
  ac_c_werror_flag=$ac_save_c_werror_flag
3774
         CFLAGS="-g"
3775
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776
/* end confdefs.h.  */
3777
 
3778
int
3779
main ()
3780
{
3781
 
3782
  ;
3783
  return 0;
3784
}
3785
_ACEOF
3786
if ac_fn_c_try_compile "$LINENO"; then :
3787
  ac_cv_prog_cc_g=yes
3788
fi
3789
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790
fi
3791
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792
fi
3793
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794
   ac_c_werror_flag=$ac_save_c_werror_flag
3795
fi
3796
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3797
$as_echo "$ac_cv_prog_cc_g" >&6; }
3798
if test "$ac_test_CFLAGS" = set; then
3799
  CFLAGS=$ac_save_CFLAGS
3800
elif test $ac_cv_prog_cc_g = yes; then
3801
  if test "$GCC" = yes; then
3802
    CFLAGS="-g -O2"
3803
  else
3804
    CFLAGS="-g"
3805
  fi
3806
else
3807
  if test "$GCC" = yes; then
3808
    CFLAGS="-O2"
3809
  else
3810
    CFLAGS=
3811
  fi
3812
fi
3813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3814
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3815
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3816
  $as_echo_n "(cached) " >&6
3817
else
3818
  ac_cv_prog_cc_c89=no
3819
ac_save_CC=$CC
3820
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821
/* end confdefs.h.  */
3822
#include 
3823
#include 
3824
#include 
3825
#include 
3826
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3827
struct buf { int x; };
3828
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3829
static char *e (p, i)
3830
     char **p;
3831
     int i;
3832
{
3833
  return p[i];
3834
}
3835
static char *f (char * (*g) (char **, int), char **p, ...)
3836
{
3837
  char *s;
3838
  va_list v;
3839
  va_start (v,p);
3840
  s = g (p, va_arg (v,int));
3841
  va_end (v);
3842
  return s;
3843
}
3844
 
3845
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3846
   function prototypes and stuff, but not '\xHH' hex character constants.
3847
   These don't provoke an error unfortunately, instead are silently treated
3848
   as 'x'.  The following induces an error, until -std is added to get
3849
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3850
   array size at least.  It's necessary to write '\x00'==0 to get something
3851
   that's true only with -std.  */
3852
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3853
 
3854
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3855
   inside strings and character constants.  */
3856
#define FOO(x) 'x'
3857
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3858
 
3859
int test (int i, double x);
3860
struct s1 {int (*f) (int a);};
3861
struct s2 {int (*f) (double a);};
3862
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3863
int argc;
3864
char **argv;
3865
int
3866
main ()
3867
{
3868
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3869
  ;
3870
  return 0;
3871
}
3872
_ACEOF
3873
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3874
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3875
do
3876
  CC="$ac_save_CC $ac_arg"
3877
  if ac_fn_c_try_compile "$LINENO"; then :
3878
  ac_cv_prog_cc_c89=$ac_arg
3879
fi
3880
rm -f core conftest.err conftest.$ac_objext
3881
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3882
done
3883
rm -f conftest.$ac_ext
3884
CC=$ac_save_CC
3885
 
3886
fi
3887
# AC_CACHE_VAL
3888
case "x$ac_cv_prog_cc_c89" in
3889
  x)
3890
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3891
$as_echo "none needed" >&6; } ;;
3892
  xno)
3893
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3894
$as_echo "unsupported" >&6; } ;;
3895
  *)
3896
    CC="$CC $ac_cv_prog_cc_c89"
3897
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3898
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3899
esac
3900
if test "x$ac_cv_prog_cc_c89" != xno; then :
3901
 
3902
fi
3903
 
3904
ac_ext=c
3905
ac_cpp='$CPP $CPPFLAGS'
3906
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909
DEPDIR="${am__leading_dot}deps"
3910
 
3911
ac_config_commands="$ac_config_commands depfiles"
3912
 
3913
 
3914
am_make=${MAKE-make}
3915
cat > confinc << 'END'
3916
am__doit:
3917
        @echo this is the am__doit target
3918
.PHONY: am__doit
3919
END
3920
# If we don't find an include directive, just comment out the code.
3921
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3922
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3923
am__include="#"
3924
am__quote=
3925
_am_result=none
3926
# First try GNU make style include.
3927
echo "include confinc" > confmf
3928
# Ignore all kinds of additional output from `make'.
3929
case `$am_make -s -f confmf 2> /dev/null` in #(
3930
*the\ am__doit\ target*)
3931
  am__include=include
3932
  am__quote=
3933
  _am_result=GNU
3934
  ;;
3935
esac
3936
# Now try BSD make style include.
3937
if test "$am__include" = "#"; then
3938
   echo '.include "confinc"' > confmf
3939
   case `$am_make -s -f confmf 2> /dev/null` in #(
3940
   *the\ am__doit\ target*)
3941
     am__include=.include
3942
     am__quote="\""
3943
     _am_result=BSD
3944
     ;;
3945
   esac
3946
fi
3947
 
3948
 
3949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3950
$as_echo "$_am_result" >&6; }
3951
rm -f confinc confmf
3952
 
3953
# Check whether --enable-dependency-tracking was given.
3954
if test "${enable_dependency_tracking+set}" = set; then :
3955
  enableval=$enable_dependency_tracking;
3956
fi
3957
 
3958
if test "x$enable_dependency_tracking" != xno; then
3959
  am_depcomp="$ac_aux_dir/depcomp"
3960
  AMDEPBACKSLASH='\'
3961
fi
3962
 if test "x$enable_dependency_tracking" != xno; then
3963
  AMDEP_TRUE=
3964
  AMDEP_FALSE='#'
3965
else
3966
  AMDEP_TRUE='#'
3967
  AMDEP_FALSE=
3968
fi
3969
 
3970
 
3971
 
3972
depcc="$CC"   am_compiler_list=
3973
 
3974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3975
$as_echo_n "checking dependency style of $depcc... " >&6; }
3976
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3977
  $as_echo_n "(cached) " >&6
3978
else
3979
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3980
  # We make a subdir and do the tests there.  Otherwise we can end up
3981
  # making bogus files that we don't know about and never remove.  For
3982
  # instance it was reported that on HP-UX the gcc test will end up
3983
  # making a dummy file named `D' -- because `-MD' means `put the output
3984
  # in D'.
3985
  mkdir conftest.dir
3986
  # Copy depcomp to subdir because otherwise we won't find it if we're
3987
  # using a relative directory.
3988
  cp "$am_depcomp" conftest.dir
3989
  cd conftest.dir
3990
  # We will build objects and dependencies in a subdirectory because
3991
  # it helps to detect inapplicable dependency modes.  For instance
3992
  # both Tru64's cc and ICC support -MD to output dependencies as a
3993
  # side effect of compilation, but ICC will put the dependencies in
3994
  # the current directory while Tru64 will put them in the object
3995
  # directory.
3996
  mkdir sub
3997
 
3998
  am_cv_CC_dependencies_compiler_type=none
3999
  if test "$am_compiler_list" = ""; then
4000
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4001
  fi
4002
  am__universal=false
4003
  case " $depcc " in #(
4004
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4005
     esac
4006
 
4007
  for depmode in $am_compiler_list; do
4008
    # Setup a source with many dependencies, because some compilers
4009
    # like to wrap large dependency lists on column 80 (with \), and
4010
    # we should not choose a depcomp mode which is confused by this.
4011
    #
4012
    # We need to recreate these files for each test, as the compiler may
4013
    # overwrite some of them when testing with obscure command lines.
4014
    # This happens at least with the AIX C compiler.
4015
    : > sub/conftest.c
4016
    for i in 1 2 3 4 5 6; do
4017
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4018
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4019
      # Solaris 8's {/usr,}/bin/sh.
4020
      touch sub/conftst$i.h
4021
    done
4022
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4023
 
4024
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4025
    # mode.  It turns out that the SunPro C++ compiler does not properly
4026
    # handle `-M -o', and we need to detect this.  Also, some Intel
4027
    # versions had trouble with output in subdirs
4028
    am__obj=sub/conftest.${OBJEXT-o}
4029
    am__minus_obj="-o $am__obj"
4030
    case $depmode in
4031
    gcc)
4032
      # This depmode causes a compiler race in universal mode.
4033
      test "$am__universal" = false || continue
4034
      ;;
4035
    nosideeffect)
4036
      # after this tag, mechanisms are not by side-effect, so they'll
4037
      # only be used when explicitly requested
4038
      if test "x$enable_dependency_tracking" = xyes; then
4039
        continue
4040
      else
4041
        break
4042
      fi
4043
      ;;
4044
    msvisualcpp | msvcmsys)
4045
      # This compiler won't grok `-c -o', but also, the minuso test has
4046
      # not run yet.  These depmodes are late enough in the game, and
4047
      # so weak that their functioning should not be impacted.
4048
      am__obj=conftest.${OBJEXT-o}
4049
      am__minus_obj=
4050
      ;;
4051
    none) break ;;
4052
    esac
4053
    if depmode=$depmode \
4054
       source=sub/conftest.c object=$am__obj \
4055
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4056
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4057
         >/dev/null 2>conftest.err &&
4058
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4059
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4060
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4061
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4062
      # icc doesn't choke on unknown options, it will just issue warnings
4063
      # or remarks (even with -Werror).  So we grep stderr for any message
4064
      # that says an option was ignored or not supported.
4065
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4066
      #   icc: Command line warning: ignoring option '-M'; no argument required
4067
      # The diagnosis changed in icc 8.0:
4068
      #   icc: Command line remark: option '-MP' not supported
4069
      if (grep 'ignoring option' conftest.err ||
4070
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4071
        am_cv_CC_dependencies_compiler_type=$depmode
4072
        break
4073
      fi
4074
    fi
4075
  done
4076
 
4077
  cd ..
4078
  rm -rf conftest.dir
4079
else
4080
  am_cv_CC_dependencies_compiler_type=none
4081
fi
4082
 
4083
fi
4084
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4085
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4086
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4087
 
4088
 if
4089
  test "x$enable_dependency_tracking" != xno \
4090
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4091
  am__fastdepCC_TRUE=
4092
  am__fastdepCC_FALSE='#'
4093
else
4094
  am__fastdepCC_TRUE='#'
4095
  am__fastdepCC_FALSE=
4096
fi
4097
 
4098
 
4099
ac_ext=go
4100
ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4101
ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102
ac_compile_gnu=yes
4103
if test -n "$ac_tool_prefix"; then
4104
  # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4105
set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4106
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4107
$as_echo_n "checking for $ac_word... " >&6; }
4108
if test "${ac_cv_prog_GOC+set}" = set; then :
4109
  $as_echo_n "(cached) " >&6
4110
else
4111
  if test -n "$GOC"; then
4112
  ac_cv_prog_GOC="$GOC" # Let the user override the test.
4113
else
4114
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115
for as_dir in $PATH
4116
do
4117
  IFS=$as_save_IFS
4118
  test -z "$as_dir" && as_dir=.
4119
    for ac_exec_ext in '' $ac_executable_extensions; do
4120
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4121
    ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4122
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4123
    break 2
4124
  fi
4125
done
4126
  done
4127
IFS=$as_save_IFS
4128
 
4129
fi
4130
fi
4131
GOC=$ac_cv_prog_GOC
4132
if test -n "$GOC"; then
4133
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4134
$as_echo "$GOC" >&6; }
4135
else
4136
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137
$as_echo "no" >&6; }
4138
fi
4139
 
4140
 
4141
fi
4142
if test -z "$ac_cv_prog_GOC"; then
4143
  ac_ct_GOC=$GOC
4144
  # Extract the first word of "gccgo", so it can be a program name with args.
4145
set dummy gccgo; ac_word=$2
4146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4147
$as_echo_n "checking for $ac_word... " >&6; }
4148
if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4149
  $as_echo_n "(cached) " >&6
4150
else
4151
  if test -n "$ac_ct_GOC"; then
4152
  ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4153
else
4154
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155
for as_dir in $PATH
4156
do
4157
  IFS=$as_save_IFS
4158
  test -z "$as_dir" && as_dir=.
4159
    for ac_exec_ext in '' $ac_executable_extensions; do
4160
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4161
    ac_cv_prog_ac_ct_GOC="gccgo"
4162
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4163
    break 2
4164
  fi
4165
done
4166
  done
4167
IFS=$as_save_IFS
4168
 
4169
fi
4170
fi
4171
ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4172
if test -n "$ac_ct_GOC"; then
4173
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4174
$as_echo "$ac_ct_GOC" >&6; }
4175
else
4176
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4177
$as_echo "no" >&6; }
4178
fi
4179
 
4180
  if test "x$ac_ct_GOC" = x; then
4181
    GOC=""
4182
  else
4183
    case $cross_compiling:$ac_tool_warned in
4184
yes:)
4185
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4186
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4187
ac_tool_warned=yes ;;
4188
esac
4189
    GOC=$ac_ct_GOC
4190
  fi
4191
else
4192
  GOC="$ac_cv_prog_GOC"
4193
fi
4194
 
4195
if test -z "$GOC"; then
4196
  if test -n "$ac_tool_prefix"; then
4197
    # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4198
set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4200
$as_echo_n "checking for $ac_word... " >&6; }
4201
if test "${ac_cv_prog_GOC+set}" = set; then :
4202
  $as_echo_n "(cached) " >&6
4203
else
4204
  if test -n "$GOC"; then
4205
  ac_cv_prog_GOC="$GOC" # Let the user override the test.
4206
else
4207
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208
for as_dir in $PATH
4209
do
4210
  IFS=$as_save_IFS
4211
  test -z "$as_dir" && as_dir=.
4212
    for ac_exec_ext in '' $ac_executable_extensions; do
4213
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4214
    ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4215
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216
    break 2
4217
  fi
4218
done
4219
  done
4220
IFS=$as_save_IFS
4221
 
4222
fi
4223
fi
4224
GOC=$ac_cv_prog_GOC
4225
if test -n "$GOC"; then
4226
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4227
$as_echo "$GOC" >&6; }
4228
else
4229
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230
$as_echo "no" >&6; }
4231
fi
4232
 
4233
 
4234
  fi
4235
fi
4236
if test -z "$GOC"; then
4237
  # Extract the first word of "gccgo", so it can be a program name with args.
4238
set dummy gccgo; ac_word=$2
4239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4240
$as_echo_n "checking for $ac_word... " >&6; }
4241
if test "${ac_cv_prog_GOC+set}" = set; then :
4242
  $as_echo_n "(cached) " >&6
4243
else
4244
  if test -n "$GOC"; then
4245
  ac_cv_prog_GOC="$GOC" # Let the user override the test.
4246
else
4247
  ac_prog_rejected=no
4248
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249
for as_dir in $PATH
4250
do
4251
  IFS=$as_save_IFS
4252
  test -z "$as_dir" && as_dir=.
4253
    for ac_exec_ext in '' $ac_executable_extensions; do
4254
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4255
    if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4256
       ac_prog_rejected=yes
4257
       continue
4258
     fi
4259
    ac_cv_prog_GOC="gccgo"
4260
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261
    break 2
4262
  fi
4263
done
4264
  done
4265
IFS=$as_save_IFS
4266
 
4267
if test $ac_prog_rejected = yes; then
4268
  # We found a bogon in the path, so make sure we never use it.
4269
  set dummy $ac_cv_prog_GOC
4270
  shift
4271
  if test $# != 0; then
4272
    # We chose a different compiler from the bogus one.
4273
    # However, it has the same basename, so the bogon will be chosen
4274
    # first if we set GOC to just the basename; use the full file name.
4275
    shift
4276
    ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4277
  fi
4278
fi
4279
fi
4280
fi
4281
GOC=$ac_cv_prog_GOC
4282
if test -n "$GOC"; then
4283
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4284
$as_echo "$GOC" >&6; }
4285
else
4286
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4287
$as_echo "no" >&6; }
4288
fi
4289
 
4290
 
4291
fi
4292
 
4293
 
4294
# Provide some information about the compiler.
4295
$as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4296
set X $ac_compile
4297
ac_compiler=$2
4298
{ { ac_try="$ac_compiler --version >&5"
4299
case "(($ac_try" in
4300
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301
  *) ac_try_echo=$ac_try;;
4302
esac
4303
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304
$as_echo "$ac_try_echo"; } >&5
4305
  (eval "$ac_compiler --version >&5") 2>conftest.err
4306
  ac_status=$?
4307
  if test -s conftest.err; then
4308
    sed '10a\
4309
... rest of stderr output deleted ...
4310
         10q' conftest.err >conftest.er1
4311
    cat conftest.er1 >&5
4312
    rm -f conftest.er1 conftest.err
4313
  fi
4314
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315
  test $ac_status = 0; }
4316
GOCFLAGS="-g -O2"
4317
ac_ext=c
4318
ac_cpp='$CPP $CPPFLAGS'
4319
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4322
 
4323
 
4324
 
4325
 
4326
 
4327
 
4328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4329
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4330
    # Check whether --enable-maintainer-mode was given.
4331
if test "${enable_maintainer_mode+set}" = set; then :
4332
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4333
else
4334
  USE_MAINTAINER_MODE=no
4335
fi
4336
 
4337
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4338
$as_echo "$USE_MAINTAINER_MODE" >&6; }
4339
   if test $USE_MAINTAINER_MODE = yes; then
4340
  MAINTAINER_MODE_TRUE=
4341
  MAINTAINER_MODE_FALSE='#'
4342
else
4343
  MAINTAINER_MODE_TRUE='#'
4344
  MAINTAINER_MODE_FALSE=
4345
fi
4346
 
4347
  MAINT=$MAINTAINER_MODE_TRUE
4348
 
4349
 
4350
 
4351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4352
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4353
if test "${ac_cv_path_SED+set}" = set; then :
4354
  $as_echo_n "(cached) " >&6
4355
else
4356
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4357
     for ac_i in 1 2 3 4 5 6 7; do
4358
       ac_script="$ac_script$as_nl$ac_script"
4359
     done
4360
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4361
     { ac_script=; unset ac_script;}
4362
     if test -z "$SED"; then
4363
  ac_path_SED_found=false
4364
  # Loop through the user's path and test for each of PROGNAME-LIST
4365
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366
for as_dir in $PATH
4367
do
4368
  IFS=$as_save_IFS
4369
  test -z "$as_dir" && as_dir=.
4370
    for ac_prog in sed gsed; do
4371
    for ac_exec_ext in '' $ac_executable_extensions; do
4372
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4373
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4374
# Check for GNU ac_path_SED and select it if it is found.
4375
  # Check for GNU $ac_path_SED
4376
case `"$ac_path_SED" --version 2>&1` in
4377
*GNU*)
4378
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4379
*)
4380
  ac_count=0
4381
  $as_echo_n 0123456789 >"conftest.in"
4382
  while :
4383
  do
4384
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4385
    mv "conftest.tmp" "conftest.in"
4386
    cp "conftest.in" "conftest.nl"
4387
    $as_echo '' >> "conftest.nl"
4388
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4389
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4390
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4391
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4392
      # Best one so far, save it but keep looking for a better one
4393
      ac_cv_path_SED="$ac_path_SED"
4394
      ac_path_SED_max=$ac_count
4395
    fi
4396
    # 10*(2^10) chars as input seems more than enough
4397
    test $ac_count -gt 10 && break
4398
  done
4399
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4400
esac
4401
 
4402
      $ac_path_SED_found && break 3
4403
    done
4404
  done
4405
  done
4406
IFS=$as_save_IFS
4407
  if test -z "$ac_cv_path_SED"; then
4408
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4409
  fi
4410
else
4411
  ac_cv_path_SED=$SED
4412
fi
4413
 
4414
fi
4415
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4416
$as_echo "$ac_cv_path_SED" >&6; }
4417
 SED="$ac_cv_path_SED"
4418
  rm -f conftest.sed
4419
 
4420
test -z "$SED" && SED=sed
4421
Xsed="$SED -e 1s/^X//"
4422
 
4423
 
4424
 
4425
 
4426
 
4427
 
4428
 
4429
 
4430
 
4431
 
4432
 
4433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4434
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4435
if test "${ac_cv_path_GREP+set}" = set; then :
4436
  $as_echo_n "(cached) " >&6
4437
else
4438
  if test -z "$GREP"; then
4439
  ac_path_GREP_found=false
4440
  # Loop through the user's path and test for each of PROGNAME-LIST
4441
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4443
do
4444
  IFS=$as_save_IFS
4445
  test -z "$as_dir" && as_dir=.
4446
    for ac_prog in grep ggrep; do
4447
    for ac_exec_ext in '' $ac_executable_extensions; do
4448
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4449
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4450
# Check for GNU ac_path_GREP and select it if it is found.
4451
  # Check for GNU $ac_path_GREP
4452
case `"$ac_path_GREP" --version 2>&1` in
4453
*GNU*)
4454
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4455
*)
4456
  ac_count=0
4457
  $as_echo_n 0123456789 >"conftest.in"
4458
  while :
4459
  do
4460
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4461
    mv "conftest.tmp" "conftest.in"
4462
    cp "conftest.in" "conftest.nl"
4463
    $as_echo 'GREP' >> "conftest.nl"
4464
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4465
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4466
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4467
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4468
      # Best one so far, save it but keep looking for a better one
4469
      ac_cv_path_GREP="$ac_path_GREP"
4470
      ac_path_GREP_max=$ac_count
4471
    fi
4472
    # 10*(2^10) chars as input seems more than enough
4473
    test $ac_count -gt 10 && break
4474
  done
4475
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4476
esac
4477
 
4478
      $ac_path_GREP_found && break 3
4479
    done
4480
  done
4481
  done
4482
IFS=$as_save_IFS
4483
  if test -z "$ac_cv_path_GREP"; then
4484
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4485
  fi
4486
else
4487
  ac_cv_path_GREP=$GREP
4488
fi
4489
 
4490
fi
4491
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4492
$as_echo "$ac_cv_path_GREP" >&6; }
4493
 GREP="$ac_cv_path_GREP"
4494
 
4495
 
4496
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4497
$as_echo_n "checking for egrep... " >&6; }
4498
if test "${ac_cv_path_EGREP+set}" = set; then :
4499
  $as_echo_n "(cached) " >&6
4500
else
4501
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4502
   then ac_cv_path_EGREP="$GREP -E"
4503
   else
4504
     if test -z "$EGREP"; then
4505
  ac_path_EGREP_found=false
4506
  # Loop through the user's path and test for each of PROGNAME-LIST
4507
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4509
do
4510
  IFS=$as_save_IFS
4511
  test -z "$as_dir" && as_dir=.
4512
    for ac_prog in egrep; do
4513
    for ac_exec_ext in '' $ac_executable_extensions; do
4514
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4515
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4516
# Check for GNU ac_path_EGREP and select it if it is found.
4517
  # Check for GNU $ac_path_EGREP
4518
case `"$ac_path_EGREP" --version 2>&1` in
4519
*GNU*)
4520
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4521
*)
4522
  ac_count=0
4523
  $as_echo_n 0123456789 >"conftest.in"
4524
  while :
4525
  do
4526
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4527
    mv "conftest.tmp" "conftest.in"
4528
    cp "conftest.in" "conftest.nl"
4529
    $as_echo 'EGREP' >> "conftest.nl"
4530
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4531
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4532
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4533
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4534
      # Best one so far, save it but keep looking for a better one
4535
      ac_cv_path_EGREP="$ac_path_EGREP"
4536
      ac_path_EGREP_max=$ac_count
4537
    fi
4538
    # 10*(2^10) chars as input seems more than enough
4539
    test $ac_count -gt 10 && break
4540
  done
4541
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4542
esac
4543
 
4544
      $ac_path_EGREP_found && break 3
4545
    done
4546
  done
4547
  done
4548
IFS=$as_save_IFS
4549
  if test -z "$ac_cv_path_EGREP"; then
4550
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4551
  fi
4552
else
4553
  ac_cv_path_EGREP=$EGREP
4554
fi
4555
 
4556
   fi
4557
fi
4558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4559
$as_echo "$ac_cv_path_EGREP" >&6; }
4560
 EGREP="$ac_cv_path_EGREP"
4561
 
4562
 
4563
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4564
$as_echo_n "checking for fgrep... " >&6; }
4565
if test "${ac_cv_path_FGREP+set}" = set; then :
4566
  $as_echo_n "(cached) " >&6
4567
else
4568
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4569
   then ac_cv_path_FGREP="$GREP -F"
4570
   else
4571
     if test -z "$FGREP"; then
4572
  ac_path_FGREP_found=false
4573
  # Loop through the user's path and test for each of PROGNAME-LIST
4574
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4576
do
4577
  IFS=$as_save_IFS
4578
  test -z "$as_dir" && as_dir=.
4579
    for ac_prog in fgrep; do
4580
    for ac_exec_ext in '' $ac_executable_extensions; do
4581
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4582
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4583
# Check for GNU ac_path_FGREP and select it if it is found.
4584
  # Check for GNU $ac_path_FGREP
4585
case `"$ac_path_FGREP" --version 2>&1` in
4586
*GNU*)
4587
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4588
*)
4589
  ac_count=0
4590
  $as_echo_n 0123456789 >"conftest.in"
4591
  while :
4592
  do
4593
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4594
    mv "conftest.tmp" "conftest.in"
4595
    cp "conftest.in" "conftest.nl"
4596
    $as_echo 'FGREP' >> "conftest.nl"
4597
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4598
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4599
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4600
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4601
      # Best one so far, save it but keep looking for a better one
4602
      ac_cv_path_FGREP="$ac_path_FGREP"
4603
      ac_path_FGREP_max=$ac_count
4604
    fi
4605
    # 10*(2^10) chars as input seems more than enough
4606
    test $ac_count -gt 10 && break
4607
  done
4608
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4609
esac
4610
 
4611
      $ac_path_FGREP_found && break 3
4612
    done
4613
  done
4614
  done
4615
IFS=$as_save_IFS
4616
  if test -z "$ac_cv_path_FGREP"; then
4617
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4618
  fi
4619
else
4620
  ac_cv_path_FGREP=$FGREP
4621
fi
4622
 
4623
   fi
4624
fi
4625
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4626
$as_echo "$ac_cv_path_FGREP" >&6; }
4627
 FGREP="$ac_cv_path_FGREP"
4628
 
4629
 
4630
test -z "$GREP" && GREP=grep
4631
 
4632
 
4633
 
4634
 
4635
 
4636
 
4637
 
4638
 
4639
 
4640
 
4641
 
4642
 
4643
 
4644
 
4645
 
4646
 
4647
 
4648
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4649
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4650
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4651
 
4652
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4653
$as_echo_n "checking how to print strings... " >&6; }
4654
# Test print first, because it will be a builtin if present.
4655
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4656
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4657
  ECHO='print -r --'
4658
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4659
  ECHO='printf %s\n'
4660
else
4661
  # Use this function as a fallback that always works.
4662
  func_fallback_echo ()
4663
  {
4664
    eval 'cat <<_LTECHO_EOF
4665
$1
4666
_LTECHO_EOF'
4667
  }
4668
  ECHO='func_fallback_echo'
4669
fi
4670
 
4671
# func_echo_all arg...
4672
# Invoke $ECHO with all args, space-separated.
4673
func_echo_all ()
4674
{
4675
    $ECHO ""
4676
}
4677
 
4678
case "$ECHO" in
4679
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4680
$as_echo "printf" >&6; } ;;
4681
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4682
$as_echo "print -r" >&6; } ;;
4683
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4684
$as_echo "cat" >&6; } ;;
4685
esac
4686
 
4687
 
4688
 
4689
 
4690
 
4691
 
4692
 
4693
 
4694
 
4695
 
4696
 
4697
 
4698
 
4699
 
4700
 
4701
 
4702
# Check whether --with-gnu-ld was given.
4703
if test "${with_gnu_ld+set}" = set; then :
4704
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4705
else
4706
  with_gnu_ld=no
4707
fi
4708
 
4709
ac_prog=ld
4710
if test "$GCC" = yes; then
4711
  # Check if gcc -print-prog-name=ld gives a path.
4712
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4713
$as_echo_n "checking for ld used by $CC... " >&6; }
4714
  case $host in
4715
  *-*-mingw*)
4716
    # gcc leaves a trailing carriage return which upsets mingw
4717
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4718
  *)
4719
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4720
  esac
4721
  case $ac_prog in
4722
    # Accept absolute paths.
4723
    [\\/]* | ?:[\\/]*)
4724
      re_direlt='/[^/][^/]*/\.\./'
4725
      # Canonicalize the pathname of ld
4726
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4727
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4728
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4729
      done
4730
      test -z "$LD" && LD="$ac_prog"
4731
      ;;
4732
  "")
4733
    # If it fails, then pretend we aren't using GCC.
4734
    ac_prog=ld
4735
    ;;
4736
  *)
4737
    # If it is relative, then search for the first ld in PATH.
4738
    with_gnu_ld=unknown
4739
    ;;
4740
  esac
4741
elif test "$with_gnu_ld" = yes; then
4742
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4743
$as_echo_n "checking for GNU ld... " >&6; }
4744
else
4745
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4746
$as_echo_n "checking for non-GNU ld... " >&6; }
4747
fi
4748
if test "${lt_cv_path_LD+set}" = set; then :
4749
  $as_echo_n "(cached) " >&6
4750
else
4751
  if test -z "$LD"; then
4752
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4753
  for ac_dir in $PATH; do
4754
    IFS="$lt_save_ifs"
4755
    test -z "$ac_dir" && ac_dir=.
4756
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4757
      lt_cv_path_LD="$ac_dir/$ac_prog"
4758
      # Check to see if the program is GNU ld.  I'd rather use --version,
4759
      # but apparently some variants of GNU ld only accept -v.
4760
      # Break only if it was the GNU/non-GNU ld that we prefer.
4761
      case `"$lt_cv_path_LD" -v 2>&1 
4762
      *GNU* | *'with BFD'*)
4763
        test "$with_gnu_ld" != no && break
4764
        ;;
4765
      *)
4766
        test "$with_gnu_ld" != yes && break
4767
        ;;
4768
      esac
4769
    fi
4770
  done
4771
  IFS="$lt_save_ifs"
4772
else
4773
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4774
fi
4775
fi
4776
 
4777
LD="$lt_cv_path_LD"
4778
if test -n "$LD"; then
4779
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4780
$as_echo "$LD" >&6; }
4781
else
4782
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783
$as_echo "no" >&6; }
4784
fi
4785
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4787
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4788
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4789
  $as_echo_n "(cached) " >&6
4790
else
4791
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4792
case `$LD -v 2>&1 
4793
*GNU* | *'with BFD'*)
4794
  lt_cv_prog_gnu_ld=yes
4795
  ;;
4796
*)
4797
  lt_cv_prog_gnu_ld=no
4798
  ;;
4799
esac
4800
fi
4801
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4802
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4803
with_gnu_ld=$lt_cv_prog_gnu_ld
4804
 
4805
 
4806
 
4807
 
4808
 
4809
 
4810
 
4811
 
4812
 
4813
if test -n "$ac_tool_prefix"; then
4814
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4815
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4816
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817
$as_echo_n "checking for $ac_word... " >&6; }
4818
if test "${ac_cv_prog_RANLIB+set}" = set; then :
4819
  $as_echo_n "(cached) " >&6
4820
else
4821
  if test -n "$RANLIB"; then
4822
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4823
else
4824
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825
for as_dir in $PATH
4826
do
4827
  IFS=$as_save_IFS
4828
  test -z "$as_dir" && as_dir=.
4829
    for ac_exec_ext in '' $ac_executable_extensions; do
4830
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4832
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833
    break 2
4834
  fi
4835
done
4836
  done
4837
IFS=$as_save_IFS
4838
 
4839
fi
4840
fi
4841
RANLIB=$ac_cv_prog_RANLIB
4842
if test -n "$RANLIB"; then
4843
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4844
$as_echo "$RANLIB" >&6; }
4845
else
4846
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847
$as_echo "no" >&6; }
4848
fi
4849
 
4850
 
4851
fi
4852
if test -z "$ac_cv_prog_RANLIB"; then
4853
  ac_ct_RANLIB=$RANLIB
4854
  # Extract the first word of "ranlib", so it can be a program name with args.
4855
set dummy ranlib; ac_word=$2
4856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857
$as_echo_n "checking for $ac_word... " >&6; }
4858
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4859
  $as_echo_n "(cached) " >&6
4860
else
4861
  if test -n "$ac_ct_RANLIB"; then
4862
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4863
else
4864
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865
for as_dir in $PATH
4866
do
4867
  IFS=$as_save_IFS
4868
  test -z "$as_dir" && as_dir=.
4869
    for ac_exec_ext in '' $ac_executable_extensions; do
4870
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871
    ac_cv_prog_ac_ct_RANLIB="ranlib"
4872
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873
    break 2
4874
  fi
4875
done
4876
  done
4877
IFS=$as_save_IFS
4878
 
4879
fi
4880
fi
4881
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4882
if test -n "$ac_ct_RANLIB"; then
4883
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4884
$as_echo "$ac_ct_RANLIB" >&6; }
4885
else
4886
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887
$as_echo "no" >&6; }
4888
fi
4889
 
4890
  if test "x$ac_ct_RANLIB" = x; then
4891
    RANLIB=":"
4892
  else
4893
    case $cross_compiling:$ac_tool_warned in
4894
yes:)
4895
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4896
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4897
ac_tool_warned=yes ;;
4898
esac
4899
    RANLIB=$ac_ct_RANLIB
4900
  fi
4901
else
4902
  RANLIB="$ac_cv_prog_RANLIB"
4903
fi
4904
 
4905
if test -n "$ac_tool_prefix"; then
4906
  # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4907
set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4908
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909
$as_echo_n "checking for $ac_word... " >&6; }
4910
if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4911
  $as_echo_n "(cached) " >&6
4912
else
4913
  if test -n "$OBJCOPY"; then
4914
  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4915
else
4916
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917
for as_dir in $PATH
4918
do
4919
  IFS=$as_save_IFS
4920
  test -z "$as_dir" && as_dir=.
4921
    for ac_exec_ext in '' $ac_executable_extensions; do
4922
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923
    ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4924
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925
    break 2
4926
  fi
4927
done
4928
  done
4929
IFS=$as_save_IFS
4930
 
4931
fi
4932
fi
4933
OBJCOPY=$ac_cv_prog_OBJCOPY
4934
if test -n "$OBJCOPY"; then
4935
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4936
$as_echo "$OBJCOPY" >&6; }
4937
else
4938
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939
$as_echo "no" >&6; }
4940
fi
4941
 
4942
 
4943
fi
4944
if test -z "$ac_cv_prog_OBJCOPY"; then
4945
  ac_ct_OBJCOPY=$OBJCOPY
4946
  # Extract the first word of "objcopy", so it can be a program name with args.
4947
set dummy objcopy; ac_word=$2
4948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949
$as_echo_n "checking for $ac_word... " >&6; }
4950
if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4951
  $as_echo_n "(cached) " >&6
4952
else
4953
  if test -n "$ac_ct_OBJCOPY"; then
4954
  ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4955
else
4956
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957
for as_dir in $PATH
4958
do
4959
  IFS=$as_save_IFS
4960
  test -z "$as_dir" && as_dir=.
4961
    for ac_exec_ext in '' $ac_executable_extensions; do
4962
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963
    ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4964
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4965
    break 2
4966
  fi
4967
done
4968
  done
4969
IFS=$as_save_IFS
4970
 
4971
fi
4972
fi
4973
ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4974
if test -n "$ac_ct_OBJCOPY"; then
4975
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4976
$as_echo "$ac_ct_OBJCOPY" >&6; }
4977
else
4978
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979
$as_echo "no" >&6; }
4980
fi
4981
 
4982
  if test "x$ac_ct_OBJCOPY" = x; then
4983
    OBJCOPY="missing-objcopy"
4984
  else
4985
    case $cross_compiling:$ac_tool_warned in
4986
yes:)
4987
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4988
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4989
ac_tool_warned=yes ;;
4990
esac
4991
    OBJCOPY=$ac_ct_OBJCOPY
4992
  fi
4993
else
4994
  OBJCOPY="$ac_cv_prog_OBJCOPY"
4995
fi
4996
 
4997
 
4998
enable_dlopen=yes
4999
 
5000
 
5001
 
5002
case `pwd` in
5003
  *\ * | *\     *)
5004
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5005
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5006
esac
5007
 
5008
 
5009
 
5010
macro_version='2.2.7a'
5011
macro_revision='1.3134'
5012
 
5013
 
5014
 
5015
 
5016
 
5017
 
5018
 
5019
 
5020
 
5021
 
5022
 
5023
 
5024
 
5025
ltmain="$ac_aux_dir/ltmain.sh"
5026
 
5027
# Backslashify metacharacters that are still active within
5028
# double-quoted strings.
5029
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5030
 
5031
# Same as above, but do not quote variable references.
5032
double_quote_subst='s/\(["`\\]\)/\\\1/g'
5033
 
5034
# Sed substitution to delay expansion of an escaped shell variable in a
5035
# double_quote_subst'ed string.
5036
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5037
 
5038
# Sed substitution to delay expansion of an escaped single quote.
5039
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5040
 
5041
# Sed substitution to avoid accidental globbing in evaled expressions
5042
no_glob_subst='s/\*/\\\*/g'
5043
 
5044
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5045
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5046
if test "${lt_cv_path_NM+set}" = set; then :
5047
  $as_echo_n "(cached) " >&6
5048
else
5049
  if test -n "$NM"; then
5050
  # Let the user override the test.
5051
  lt_cv_path_NM="$NM"
5052
else
5053
  lt_nm_to_check="${ac_tool_prefix}nm"
5054
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5055
    lt_nm_to_check="$lt_nm_to_check nm"
5056
  fi
5057
  for lt_tmp_nm in $lt_nm_to_check; do
5058
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5059
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5060
      IFS="$lt_save_ifs"
5061
      test -z "$ac_dir" && ac_dir=.
5062
      tmp_nm="$ac_dir/$lt_tmp_nm"
5063
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5064
        # Check to see if the nm accepts a BSD-compat flag.
5065
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5066
        #   nm: unknown option "B" ignored
5067
        # Tru64's nm complains that /dev/null is an invalid object file
5068
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5069
        */dev/null* | *'Invalid file or object type'*)
5070
          lt_cv_path_NM="$tmp_nm -B"
5071
          break
5072
          ;;
5073
        *)
5074
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5075
          */dev/null*)
5076
            lt_cv_path_NM="$tmp_nm -p"
5077
            break
5078
            ;;
5079
          *)
5080
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5081
            continue # so that we can try to find one that supports BSD flags
5082
            ;;
5083
          esac
5084
          ;;
5085
        esac
5086
      fi
5087
    done
5088
    IFS="$lt_save_ifs"
5089
  done
5090
  : ${lt_cv_path_NM=no}
5091
fi
5092
fi
5093
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5094
$as_echo "$lt_cv_path_NM" >&6; }
5095
if test "$lt_cv_path_NM" != "no"; then
5096
  NM="$lt_cv_path_NM"
5097
else
5098
  # Didn't find any BSD compatible name lister, look for dumpbin.
5099
  if test -n "$DUMPBIN"; then :
5100
    # Let the user override the test.
5101
  else
5102
    if test -n "$ac_tool_prefix"; then
5103
  for ac_prog in dumpbin "link -dump"
5104
  do
5105
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5106
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5107
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108
$as_echo_n "checking for $ac_word... " >&6; }
5109
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5110
  $as_echo_n "(cached) " >&6
5111
else
5112
  if test -n "$DUMPBIN"; then
5113
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5114
else
5115
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116
for as_dir in $PATH
5117
do
5118
  IFS=$as_save_IFS
5119
  test -z "$as_dir" && as_dir=.
5120
    for ac_exec_ext in '' $ac_executable_extensions; do
5121
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5123
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124
    break 2
5125
  fi
5126
done
5127
  done
5128
IFS=$as_save_IFS
5129
 
5130
fi
5131
fi
5132
DUMPBIN=$ac_cv_prog_DUMPBIN
5133
if test -n "$DUMPBIN"; then
5134
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5135
$as_echo "$DUMPBIN" >&6; }
5136
else
5137
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138
$as_echo "no" >&6; }
5139
fi
5140
 
5141
 
5142
    test -n "$DUMPBIN" && break
5143
  done
5144
fi
5145
if test -z "$DUMPBIN"; then
5146
  ac_ct_DUMPBIN=$DUMPBIN
5147
  for ac_prog in dumpbin "link -dump"
5148
do
5149
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5150
set dummy $ac_prog; ac_word=$2
5151
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152
$as_echo_n "checking for $ac_word... " >&6; }
5153
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5154
  $as_echo_n "(cached) " >&6
5155
else
5156
  if test -n "$ac_ct_DUMPBIN"; then
5157
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5158
else
5159
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160
for as_dir in $PATH
5161
do
5162
  IFS=$as_save_IFS
5163
  test -z "$as_dir" && as_dir=.
5164
    for ac_exec_ext in '' $ac_executable_extensions; do
5165
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5167
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168
    break 2
5169
  fi
5170
done
5171
  done
5172
IFS=$as_save_IFS
5173
 
5174
fi
5175
fi
5176
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5177
if test -n "$ac_ct_DUMPBIN"; then
5178
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5179
$as_echo "$ac_ct_DUMPBIN" >&6; }
5180
else
5181
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182
$as_echo "no" >&6; }
5183
fi
5184
 
5185
 
5186
  test -n "$ac_ct_DUMPBIN" && break
5187
done
5188
 
5189
  if test "x$ac_ct_DUMPBIN" = x; then
5190
    DUMPBIN=":"
5191
  else
5192
    case $cross_compiling:$ac_tool_warned in
5193
yes:)
5194
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5195
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5196
ac_tool_warned=yes ;;
5197
esac
5198
    DUMPBIN=$ac_ct_DUMPBIN
5199
  fi
5200
fi
5201
 
5202
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5203
    *COFF*)
5204
      DUMPBIN="$DUMPBIN -symbols"
5205
      ;;
5206
    *)
5207
      DUMPBIN=:
5208
      ;;
5209
    esac
5210
  fi
5211
 
5212
  if test "$DUMPBIN" != ":"; then
5213
    NM="$DUMPBIN"
5214
  fi
5215
fi
5216
test -z "$NM" && NM=nm
5217
 
5218
 
5219
 
5220
 
5221
 
5222
 
5223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5224
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5225
if test "${lt_cv_nm_interface+set}" = set; then :
5226
  $as_echo_n "(cached) " >&6
5227
else
5228
  lt_cv_nm_interface="BSD nm"
5229
  echo "int some_variable = 0;" > conftest.$ac_ext
5230
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5231
  (eval "$ac_compile" 2>conftest.err)
5232
  cat conftest.err >&5
5233
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5234
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5235
  cat conftest.err >&5
5236
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5237
  cat conftest.out >&5
5238
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5239
    lt_cv_nm_interface="MS dumpbin"
5240
  fi
5241
  rm -f conftest*
5242
fi
5243
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5244
$as_echo "$lt_cv_nm_interface" >&6; }
5245
 
5246
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5247
$as_echo_n "checking whether ln -s works... " >&6; }
5248
LN_S=$as_ln_s
5249
if test "$LN_S" = "ln -s"; then
5250
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5251
$as_echo "yes" >&6; }
5252
else
5253
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5254
$as_echo "no, using $LN_S" >&6; }
5255
fi
5256
 
5257
# find the maximum length of command line arguments
5258
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5259
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5260
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5261
  $as_echo_n "(cached) " >&6
5262
else
5263
    i=0
5264
  teststring="ABCD"
5265
 
5266
  case $build_os in
5267
  msdosdjgpp*)
5268
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5269
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5270
    # during glob expansion).  Even if it were fixed, the result of this
5271
    # check would be larger than it should be.
5272
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5273
    ;;
5274
 
5275
  gnu*)
5276
    # Under GNU Hurd, this test is not required because there is
5277
    # no limit to the length of command line arguments.
5278
    # Libtool will interpret -1 as no limit whatsoever
5279
    lt_cv_sys_max_cmd_len=-1;
5280
    ;;
5281
 
5282
  cygwin* | mingw* | cegcc*)
5283
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5284
    # about 5 minutes as the teststring grows exponentially.
5285
    # Worse, since 9x/ME are not pre-emptively multitasking,
5286
    # you end up with a "frozen" computer, even though with patience
5287
    # the test eventually succeeds (with a max line length of 256k).
5288
    # Instead, let's just punt: use the minimum linelength reported by
5289
    # all of the supported platforms: 8192 (on NT/2K/XP).
5290
    lt_cv_sys_max_cmd_len=8192;
5291
    ;;
5292
 
5293
  mint*)
5294
    # On MiNT this can take a long time and run out of memory.
5295
    lt_cv_sys_max_cmd_len=8192;
5296
    ;;
5297
 
5298
  amigaos*)
5299
    # On AmigaOS with pdksh, this test takes hours, literally.
5300
    # So we just punt and use a minimum line length of 8192.
5301
    lt_cv_sys_max_cmd_len=8192;
5302
    ;;
5303
 
5304
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5305
    # This has been around since 386BSD, at least.  Likely further.
5306
    if test -x /sbin/sysctl; then
5307
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5308
    elif test -x /usr/sbin/sysctl; then
5309
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5310
    else
5311
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5312
    fi
5313
    # And add a safety zone
5314
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5315
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5316
    ;;
5317
 
5318
  interix*)
5319
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5320
    lt_cv_sys_max_cmd_len=196608
5321
    ;;
5322
 
5323
  osf*)
5324
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5325
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5326
    # nice to cause kernel panics so lets avoid the loop below.
5327
    # First set a reasonable default.
5328
    lt_cv_sys_max_cmd_len=16384
5329
    #
5330
    if test -x /sbin/sysconfig; then
5331
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5332
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5333
      esac
5334
    fi
5335
    ;;
5336
  sco3.2v5*)
5337
    lt_cv_sys_max_cmd_len=102400
5338
    ;;
5339
  sysv5* | sco5v6* | sysv4.2uw2*)
5340
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5341
    if test -n "$kargmax"; then
5342
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5343
    else
5344
      lt_cv_sys_max_cmd_len=32768
5345
    fi
5346
    ;;
5347
  *)
5348
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5349
    if test -n "$lt_cv_sys_max_cmd_len"; then
5350
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5351
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5352
    else
5353
      # Make teststring a little bigger before we do anything with it.
5354
      # a 1K string should be a reasonable start.
5355
      for i in 1 2 3 4 5 6 7 8 ; do
5356
        teststring=$teststring$teststring
5357
      done
5358
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5359
      # If test is not a shell built-in, we'll probably end up computing a
5360
      # maximum length that is only half of the actual maximum length, but
5361
      # we can't tell.
5362
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5363
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5364
              test $i != 17 # 1/2 MB should be enough
5365
      do
5366
        i=`expr $i + 1`
5367
        teststring=$teststring$teststring
5368
      done
5369
      # Only check the string length outside the loop.
5370
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5371
      teststring=
5372
      # Add a significant safety factor because C++ compilers can tack on
5373
      # massive amounts of additional arguments before passing them to the
5374
      # linker.  It appears as though 1/2 is a usable value.
5375
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5376
    fi
5377
    ;;
5378
  esac
5379
 
5380
fi
5381
 
5382
if test -n $lt_cv_sys_max_cmd_len ; then
5383
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5384
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5385
else
5386
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5387
$as_echo "none" >&6; }
5388
fi
5389
max_cmd_len=$lt_cv_sys_max_cmd_len
5390
 
5391
 
5392
 
5393
 
5394
 
5395
 
5396
: ${CP="cp -f"}
5397
: ${MV="mv -f"}
5398
: ${RM="rm -f"}
5399
 
5400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5401
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5402
# Try some XSI features
5403
xsi_shell=no
5404
( _lt_dummy="a/b/c"
5405
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5406
      = c,a/b,, \
5407
    && eval 'test $(( 1 + 1 )) -eq 2 \
5408
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5409
  && xsi_shell=yes
5410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5411
$as_echo "$xsi_shell" >&6; }
5412
 
5413
 
5414
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5415
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5416
lt_shell_append=no
5417
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5418
    >/dev/null 2>&1 \
5419
  && lt_shell_append=yes
5420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5421
$as_echo "$lt_shell_append" >&6; }
5422
 
5423
 
5424
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5425
  lt_unset=unset
5426
else
5427
  lt_unset=false
5428
fi
5429
 
5430
 
5431
 
5432
 
5433
 
5434
# test EBCDIC or ASCII
5435
case `echo X|tr X '\101'` in
5436
 A) # ASCII based system
5437
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5438
  lt_SP2NL='tr \040 \012'
5439
  lt_NL2SP='tr \015\012 \040\040'
5440
  ;;
5441
 *) # EBCDIC based system
5442
  lt_SP2NL='tr \100 \n'
5443
  lt_NL2SP='tr \r\n \100\100'
5444
  ;;
5445
esac
5446
 
5447
 
5448
 
5449
 
5450
 
5451
 
5452
 
5453
 
5454
 
5455
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5456
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5457
if test "${lt_cv_ld_reload_flag+set}" = set; then :
5458
  $as_echo_n "(cached) " >&6
5459
else
5460
  lt_cv_ld_reload_flag='-r'
5461
fi
5462
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5463
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5464
reload_flag=$lt_cv_ld_reload_flag
5465
case $reload_flag in
5466
"" | " "*) ;;
5467
*) reload_flag=" $reload_flag" ;;
5468
esac
5469
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5470
case $host_os in
5471
  darwin*)
5472
    if test "$GCC" = yes; then
5473
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5474
    else
5475
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5476
    fi
5477
    ;;
5478
esac
5479
 
5480
 
5481
 
5482
 
5483
 
5484
 
5485
 
5486
 
5487
 
5488
if test -n "$ac_tool_prefix"; then
5489
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5490
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5491
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5492
$as_echo_n "checking for $ac_word... " >&6; }
5493
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5494
  $as_echo_n "(cached) " >&6
5495
else
5496
  if test -n "$OBJDUMP"; then
5497
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5498
else
5499
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500
for as_dir in $PATH
5501
do
5502
  IFS=$as_save_IFS
5503
  test -z "$as_dir" && as_dir=.
5504
    for ac_exec_ext in '' $ac_executable_extensions; do
5505
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5506
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5507
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5508
    break 2
5509
  fi
5510
done
5511
  done
5512
IFS=$as_save_IFS
5513
 
5514
fi
5515
fi
5516
OBJDUMP=$ac_cv_prog_OBJDUMP
5517
if test -n "$OBJDUMP"; then
5518
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5519
$as_echo "$OBJDUMP" >&6; }
5520
else
5521
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522
$as_echo "no" >&6; }
5523
fi
5524
 
5525
 
5526
fi
5527
if test -z "$ac_cv_prog_OBJDUMP"; then
5528
  ac_ct_OBJDUMP=$OBJDUMP
5529
  # Extract the first word of "objdump", so it can be a program name with args.
5530
set dummy objdump; ac_word=$2
5531
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5532
$as_echo_n "checking for $ac_word... " >&6; }
5533
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5534
  $as_echo_n "(cached) " >&6
5535
else
5536
  if test -n "$ac_ct_OBJDUMP"; then
5537
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5538
else
5539
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540
for as_dir in $PATH
5541
do
5542
  IFS=$as_save_IFS
5543
  test -z "$as_dir" && as_dir=.
5544
    for ac_exec_ext in '' $ac_executable_extensions; do
5545
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5546
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5547
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5548
    break 2
5549
  fi
5550
done
5551
  done
5552
IFS=$as_save_IFS
5553
 
5554
fi
5555
fi
5556
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5557
if test -n "$ac_ct_OBJDUMP"; then
5558
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5559
$as_echo "$ac_ct_OBJDUMP" >&6; }
5560
else
5561
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562
$as_echo "no" >&6; }
5563
fi
5564
 
5565
  if test "x$ac_ct_OBJDUMP" = x; then
5566
    OBJDUMP="false"
5567
  else
5568
    case $cross_compiling:$ac_tool_warned in
5569
yes:)
5570
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5571
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5572
ac_tool_warned=yes ;;
5573
esac
5574
    OBJDUMP=$ac_ct_OBJDUMP
5575
  fi
5576
else
5577
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5578
fi
5579
 
5580
test -z "$OBJDUMP" && OBJDUMP=objdump
5581
 
5582
 
5583
 
5584
 
5585
 
5586
 
5587
 
5588
 
5589
 
5590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5591
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5592
if test "${lt_cv_deplibs_check_method+set}" = set; then :
5593
  $as_echo_n "(cached) " >&6
5594
else
5595
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5596
lt_cv_file_magic_test_file=
5597
lt_cv_deplibs_check_method='unknown'
5598
# Need to set the preceding variable on all platforms that support
5599
# interlibrary dependencies.
5600
# 'none' -- dependencies not supported.
5601
# `unknown' -- same as none, but documents that we really don't know.
5602
# 'pass_all' -- all dependencies passed with no checks.
5603
# 'test_compile' -- check by making test program.
5604
# 'file_magic [[regex]]' -- check by looking for files in library path
5605
# which responds to the $file_magic_cmd with a given extended regex.
5606
# If you have `file' or equivalent on your system and you're not sure
5607
# whether `pass_all' will *always* work, you probably want this one.
5608
 
5609
case $host_os in
5610
aix[4-9]*)
5611
  lt_cv_deplibs_check_method=pass_all
5612
  ;;
5613
 
5614
beos*)
5615
  lt_cv_deplibs_check_method=pass_all
5616
  ;;
5617
 
5618
bsdi[45]*)
5619
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5620
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5621
  lt_cv_file_magic_test_file=/shlib/libc.so
5622
  ;;
5623
 
5624
cygwin*)
5625
  # func_win32_libid is a shell function defined in ltmain.sh
5626
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5627
  lt_cv_file_magic_cmd='func_win32_libid'
5628
  ;;
5629
 
5630
mingw* | pw32*)
5631
  # Base MSYS/MinGW do not provide the 'file' command needed by
5632
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5633
  # unless we find 'file', for example because we are cross-compiling.
5634
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5635
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5636
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5637
    lt_cv_file_magic_cmd='func_win32_libid'
5638
  else
5639
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5640
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5641
  fi
5642
  ;;
5643
 
5644
cegcc*)
5645
  # use the weaker test based on 'objdump'. See mingw*.
5646
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5647
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5648
  ;;
5649
 
5650
darwin* | rhapsody*)
5651
  lt_cv_deplibs_check_method=pass_all
5652
  ;;
5653
 
5654
freebsd* | dragonfly*)
5655
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5656
    case $host_cpu in
5657
    i*86 )
5658
      # Not sure whether the presence of OpenBSD here was a mistake.
5659
      # Let's accept both of them until this is cleared up.
5660
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5661
      lt_cv_file_magic_cmd=/usr/bin/file
5662
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5663
      ;;
5664
    esac
5665
  else
5666
    lt_cv_deplibs_check_method=pass_all
5667
  fi
5668
  ;;
5669
 
5670
gnu*)
5671
  lt_cv_deplibs_check_method=pass_all
5672
  ;;
5673
 
5674
haiku*)
5675
  lt_cv_deplibs_check_method=pass_all
5676
  ;;
5677
 
5678
hpux10.20* | hpux11*)
5679
  lt_cv_file_magic_cmd=/usr/bin/file
5680
  case $host_cpu in
5681
  ia64*)
5682
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5683
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5684
    ;;
5685
  hppa*64*)
5686
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5687
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5688
    ;;
5689
  *)
5690
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5691
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5692
    ;;
5693
  esac
5694
  ;;
5695
 
5696
interix[3-9]*)
5697
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5698
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5699
  ;;
5700
 
5701
irix5* | irix6* | nonstopux*)
5702
  case $LD in
5703
  *-32|*"-32 ") libmagic=32-bit;;
5704
  *-n32|*"-n32 ") libmagic=N32;;
5705
  *-64|*"-64 ") libmagic=64-bit;;
5706
  *) libmagic=never-match;;
5707
  esac
5708
  lt_cv_deplibs_check_method=pass_all
5709
  ;;
5710
 
5711
# This must be Linux ELF.
5712
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5713
  lt_cv_deplibs_check_method=pass_all
5714
  ;;
5715
 
5716
netbsd*)
5717
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5718
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5719
  else
5720
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5721
  fi
5722
  ;;
5723
 
5724
newos6*)
5725
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5726
  lt_cv_file_magic_cmd=/usr/bin/file
5727
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5728
  ;;
5729
 
5730
*nto* | *qnx*)
5731
  lt_cv_deplibs_check_method=pass_all
5732
  ;;
5733
 
5734
openbsd*)
5735
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5736
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5737
  else
5738
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5739
  fi
5740
  ;;
5741
 
5742
osf3* | osf4* | osf5*)
5743
  lt_cv_deplibs_check_method=pass_all
5744
  ;;
5745
 
5746
rdos*)
5747
  lt_cv_deplibs_check_method=pass_all
5748
  ;;
5749
 
5750
solaris*)
5751
  lt_cv_deplibs_check_method=pass_all
5752
  ;;
5753
 
5754
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5755
  lt_cv_deplibs_check_method=pass_all
5756
  ;;
5757
 
5758
sysv4 | sysv4.3*)
5759
  case $host_vendor in
5760
  motorola)
5761
    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]'
5762
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5763
    ;;
5764
  ncr)
5765
    lt_cv_deplibs_check_method=pass_all
5766
    ;;
5767
  sequent)
5768
    lt_cv_file_magic_cmd='/bin/file'
5769
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5770
    ;;
5771
  sni)
5772
    lt_cv_file_magic_cmd='/bin/file'
5773
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5774
    lt_cv_file_magic_test_file=/lib/libc.so
5775
    ;;
5776
  siemens)
5777
    lt_cv_deplibs_check_method=pass_all
5778
    ;;
5779
  pc)
5780
    lt_cv_deplibs_check_method=pass_all
5781
    ;;
5782
  esac
5783
  ;;
5784
 
5785
tpf*)
5786
  lt_cv_deplibs_check_method=pass_all
5787
  ;;
5788
esac
5789
 
5790
fi
5791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5792
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5793
file_magic_cmd=$lt_cv_file_magic_cmd
5794
deplibs_check_method=$lt_cv_deplibs_check_method
5795
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5796
 
5797
 
5798
 
5799
 
5800
 
5801
 
5802
 
5803
 
5804
 
5805
 
5806
 
5807
 
5808
if test -n "$ac_tool_prefix"; then
5809
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5810
set dummy ${ac_tool_prefix}ar; ac_word=$2
5811
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812
$as_echo_n "checking for $ac_word... " >&6; }
5813
if test "${ac_cv_prog_AR+set}" = set; then :
5814
  $as_echo_n "(cached) " >&6
5815
else
5816
  if test -n "$AR"; then
5817
  ac_cv_prog_AR="$AR" # Let the user override the test.
5818
else
5819
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820
for as_dir in $PATH
5821
do
5822
  IFS=$as_save_IFS
5823
  test -z "$as_dir" && as_dir=.
5824
    for ac_exec_ext in '' $ac_executable_extensions; do
5825
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5827
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828
    break 2
5829
  fi
5830
done
5831
  done
5832
IFS=$as_save_IFS
5833
 
5834
fi
5835
fi
5836
AR=$ac_cv_prog_AR
5837
if test -n "$AR"; then
5838
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5839
$as_echo "$AR" >&6; }
5840
else
5841
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842
$as_echo "no" >&6; }
5843
fi
5844
 
5845
 
5846
fi
5847
if test -z "$ac_cv_prog_AR"; then
5848
  ac_ct_AR=$AR
5849
  # Extract the first word of "ar", so it can be a program name with args.
5850
set dummy ar; ac_word=$2
5851
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852
$as_echo_n "checking for $ac_word... " >&6; }
5853
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5854
  $as_echo_n "(cached) " >&6
5855
else
5856
  if test -n "$ac_ct_AR"; then
5857
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5858
else
5859
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860
for as_dir in $PATH
5861
do
5862
  IFS=$as_save_IFS
5863
  test -z "$as_dir" && as_dir=.
5864
    for ac_exec_ext in '' $ac_executable_extensions; do
5865
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866
    ac_cv_prog_ac_ct_AR="ar"
5867
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868
    break 2
5869
  fi
5870
done
5871
  done
5872
IFS=$as_save_IFS
5873
 
5874
fi
5875
fi
5876
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5877
if test -n "$ac_ct_AR"; then
5878
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5879
$as_echo "$ac_ct_AR" >&6; }
5880
else
5881
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882
$as_echo "no" >&6; }
5883
fi
5884
 
5885
  if test "x$ac_ct_AR" = x; then
5886
    AR="false"
5887
  else
5888
    case $cross_compiling:$ac_tool_warned in
5889
yes:)
5890
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5891
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5892
ac_tool_warned=yes ;;
5893
esac
5894
    AR=$ac_ct_AR
5895
  fi
5896
else
5897
  AR="$ac_cv_prog_AR"
5898
fi
5899
 
5900
test -z "$AR" && AR=ar
5901
test -z "$AR_FLAGS" && AR_FLAGS=cru
5902
 
5903
 
5904
 
5905
 
5906
 
5907
 
5908
 
5909
 
5910
 
5911
 
5912
 
5913
if test -n "$ac_tool_prefix"; then
5914
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5915
set dummy ${ac_tool_prefix}strip; ac_word=$2
5916
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917
$as_echo_n "checking for $ac_word... " >&6; }
5918
if test "${ac_cv_prog_STRIP+set}" = set; then :
5919
  $as_echo_n "(cached) " >&6
5920
else
5921
  if test -n "$STRIP"; then
5922
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5923
else
5924
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925
for as_dir in $PATH
5926
do
5927
  IFS=$as_save_IFS
5928
  test -z "$as_dir" && as_dir=.
5929
    for ac_exec_ext in '' $ac_executable_extensions; do
5930
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5931
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5932
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933
    break 2
5934
  fi
5935
done
5936
  done
5937
IFS=$as_save_IFS
5938
 
5939
fi
5940
fi
5941
STRIP=$ac_cv_prog_STRIP
5942
if test -n "$STRIP"; then
5943
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5944
$as_echo "$STRIP" >&6; }
5945
else
5946
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947
$as_echo "no" >&6; }
5948
fi
5949
 
5950
 
5951
fi
5952
if test -z "$ac_cv_prog_STRIP"; then
5953
  ac_ct_STRIP=$STRIP
5954
  # Extract the first word of "strip", so it can be a program name with args.
5955
set dummy strip; ac_word=$2
5956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957
$as_echo_n "checking for $ac_word... " >&6; }
5958
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5959
  $as_echo_n "(cached) " >&6
5960
else
5961
  if test -n "$ac_ct_STRIP"; then
5962
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5963
else
5964
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965
for as_dir in $PATH
5966
do
5967
  IFS=$as_save_IFS
5968
  test -z "$as_dir" && as_dir=.
5969
    for ac_exec_ext in '' $ac_executable_extensions; do
5970
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971
    ac_cv_prog_ac_ct_STRIP="strip"
5972
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973
    break 2
5974
  fi
5975
done
5976
  done
5977
IFS=$as_save_IFS
5978
 
5979
fi
5980
fi
5981
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5982
if test -n "$ac_ct_STRIP"; then
5983
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5984
$as_echo "$ac_ct_STRIP" >&6; }
5985
else
5986
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987
$as_echo "no" >&6; }
5988
fi
5989
 
5990
  if test "x$ac_ct_STRIP" = x; then
5991
    STRIP=":"
5992
  else
5993
    case $cross_compiling:$ac_tool_warned in
5994
yes:)
5995
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5996
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5997
ac_tool_warned=yes ;;
5998
esac
5999
    STRIP=$ac_ct_STRIP
6000
  fi
6001
else
6002
  STRIP="$ac_cv_prog_STRIP"
6003
fi
6004
 
6005
test -z "$STRIP" && STRIP=:
6006
 
6007
 
6008
 
6009
 
6010
 
6011
 
6012
if test -n "$ac_tool_prefix"; then
6013
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6014
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6015
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016
$as_echo_n "checking for $ac_word... " >&6; }
6017
if test "${ac_cv_prog_RANLIB+set}" = set; then :
6018
  $as_echo_n "(cached) " >&6
6019
else
6020
  if test -n "$RANLIB"; then
6021
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6022
else
6023
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024
for as_dir in $PATH
6025
do
6026
  IFS=$as_save_IFS
6027
  test -z "$as_dir" && as_dir=.
6028
    for ac_exec_ext in '' $ac_executable_extensions; do
6029
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6031
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032
    break 2
6033
  fi
6034
done
6035
  done
6036
IFS=$as_save_IFS
6037
 
6038
fi
6039
fi
6040
RANLIB=$ac_cv_prog_RANLIB
6041
if test -n "$RANLIB"; then
6042
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6043
$as_echo "$RANLIB" >&6; }
6044
else
6045
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046
$as_echo "no" >&6; }
6047
fi
6048
 
6049
 
6050
fi
6051
if test -z "$ac_cv_prog_RANLIB"; then
6052
  ac_ct_RANLIB=$RANLIB
6053
  # Extract the first word of "ranlib", so it can be a program name with args.
6054
set dummy ranlib; ac_word=$2
6055
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056
$as_echo_n "checking for $ac_word... " >&6; }
6057
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6058
  $as_echo_n "(cached) " >&6
6059
else
6060
  if test -n "$ac_ct_RANLIB"; then
6061
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6062
else
6063
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064
for as_dir in $PATH
6065
do
6066
  IFS=$as_save_IFS
6067
  test -z "$as_dir" && as_dir=.
6068
    for ac_exec_ext in '' $ac_executable_extensions; do
6069
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6070
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6071
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072
    break 2
6073
  fi
6074
done
6075
  done
6076
IFS=$as_save_IFS
6077
 
6078
fi
6079
fi
6080
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6081
if test -n "$ac_ct_RANLIB"; then
6082
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6083
$as_echo "$ac_ct_RANLIB" >&6; }
6084
else
6085
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086
$as_echo "no" >&6; }
6087
fi
6088
 
6089
  if test "x$ac_ct_RANLIB" = x; then
6090
    RANLIB=":"
6091
  else
6092
    case $cross_compiling:$ac_tool_warned in
6093
yes:)
6094
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6095
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096
ac_tool_warned=yes ;;
6097
esac
6098
    RANLIB=$ac_ct_RANLIB
6099
  fi
6100
else
6101
  RANLIB="$ac_cv_prog_RANLIB"
6102
fi
6103
 
6104
test -z "$RANLIB" && RANLIB=:
6105
 
6106
 
6107
 
6108
 
6109
 
6110
 
6111
# Determine commands to create old-style static archives.
6112
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6113
old_postinstall_cmds='chmod 644 $oldlib'
6114
old_postuninstall_cmds=
6115
 
6116
if test -n "$RANLIB"; then
6117
  case $host_os in
6118
  openbsd*)
6119
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6120
    ;;
6121
  *)
6122
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6123
    ;;
6124
  esac
6125
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6126
fi
6127
 
6128
case $host_os in
6129
  darwin*)
6130
    lock_old_archive_extraction=yes ;;
6131
  *)
6132
    lock_old_archive_extraction=no ;;
6133
esac
6134
 
6135
 
6136
 
6137
 
6138
 
6139
 
6140
 
6141
 
6142
 
6143
 
6144
 
6145
 
6146
 
6147
 
6148
 
6149
 
6150
 
6151
 
6152
 
6153
 
6154
 
6155
 
6156
 
6157
 
6158
 
6159
 
6160
 
6161
 
6162
 
6163
 
6164
 
6165
 
6166
 
6167
 
6168
 
6169
 
6170
 
6171
 
6172
 
6173
# If no C compiler was specified, use CC.
6174
LTCC=${LTCC-"$CC"}
6175
 
6176
# If no C compiler flags were specified, use CFLAGS.
6177
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6178
 
6179
# Allow CC to be a program name with arguments.
6180
compiler=$CC
6181
 
6182
 
6183
# Check for command to grab the raw symbol name followed by C symbol from nm.
6184
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6185
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6186
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6187
  $as_echo_n "(cached) " >&6
6188
else
6189
 
6190
# These are sane defaults that work on at least a few old systems.
6191
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6192
 
6193
# Character class describing NM global symbol codes.
6194
symcode='[BCDEGRST]'
6195
 
6196
# Regexp to match symbols that can be accessed directly from C.
6197
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6198
 
6199
# Define system-specific variables.
6200
case $host_os in
6201
aix*)
6202
  symcode='[BCDT]'
6203
  ;;
6204
cygwin* | mingw* | pw32* | cegcc*)
6205
  symcode='[ABCDGISTW]'
6206
  ;;
6207
hpux*)
6208
  if test "$host_cpu" = ia64; then
6209
    symcode='[ABCDEGRST]'
6210
  fi
6211
  ;;
6212
irix* | nonstopux*)
6213
  symcode='[BCDEGRST]'
6214
  ;;
6215
osf*)
6216
  symcode='[BCDEGQRST]'
6217
  ;;
6218
solaris*)
6219
  symcode='[BDRT]'
6220
  ;;
6221
sco3.2v5*)
6222
  symcode='[DT]'
6223
  ;;
6224
sysv4.2uw2*)
6225
  symcode='[DT]'
6226
  ;;
6227
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6228
  symcode='[ABDT]'
6229
  ;;
6230
sysv4)
6231
  symcode='[DFNSTU]'
6232
  ;;
6233
esac
6234
 
6235
# If we're using GNU nm, then use its standard symbol codes.
6236
case `$NM -V 2>&1` in
6237
*GNU* | *'with BFD'*)
6238
  symcode='[ABCDGIRSTW]' ;;
6239
esac
6240
 
6241
# Transform an extracted symbol line into a proper C declaration.
6242
# Some systems (esp. on ia64) link data and code symbols differently,
6243
# so use this general approach.
6244
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6245
 
6246
# Transform an extracted symbol line into symbol name and symbol address
6247
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6248
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6249
 
6250
# Handle CRLF in mingw tool chain
6251
opt_cr=
6252
case $build_os in
6253
mingw*)
6254
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6255
  ;;
6256
esac
6257
 
6258
# Try without a prefix underscore, then with it.
6259
for ac_symprfx in "" "_"; do
6260
 
6261
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6262
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6263
 
6264
  # Write the raw and C identifiers.
6265
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6266
    # Fake it for dumpbin and say T for any non-static function
6267
    # and D for any global variable.
6268
    # Also find C++ and __fastcall symbols from MSVC++,
6269
    # which start with @ or ?.
6270
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6271
"     {last_section=section; section=\$ 3};"\
6272
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6273
"     \$ 0!~/External *\|/{next};"\
6274
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6275
"     {if(hide[section]) next};"\
6276
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6277
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6278
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6279
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6280
"     ' prfx=^$ac_symprfx"
6281
  else
6282
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6283
  fi
6284
 
6285
  # Check to see that the pipe works correctly.
6286
  pipe_works=no
6287
 
6288
  rm -f conftest*
6289
  cat > conftest.$ac_ext <<_LT_EOF
6290
#ifdef __cplusplus
6291
extern "C" {
6292
#endif
6293
char nm_test_var;
6294
void nm_test_func(void);
6295
void nm_test_func(void){}
6296
#ifdef __cplusplus
6297
}
6298
#endif
6299
int main(){nm_test_var='a';nm_test_func();return(0);}
6300
_LT_EOF
6301
 
6302
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6303
  (eval $ac_compile) 2>&5
6304
  ac_status=$?
6305
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6306
  test $ac_status = 0; }; then
6307
    # Now try to grab the symbols.
6308
    nlist=conftest.nm
6309
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6310
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6311
  ac_status=$?
6312
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6313
  test $ac_status = 0; } && test -s "$nlist"; then
6314
      # Try sorting and uniquifying the output.
6315
      if sort "$nlist" | uniq > "$nlist"T; then
6316
        mv -f "$nlist"T "$nlist"
6317
      else
6318
        rm -f "$nlist"T
6319
      fi
6320
 
6321
      # Make sure that we snagged all the symbols we need.
6322
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6323
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6324
          cat <<_LT_EOF > conftest.$ac_ext
6325
#ifdef __cplusplus
6326
extern "C" {
6327
#endif
6328
 
6329
_LT_EOF
6330
          # Now generate the symbol file.
6331
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6332
 
6333
          cat <<_LT_EOF >> conftest.$ac_ext
6334
 
6335
/* The mapping between symbol names and symbols.  */
6336
const struct {
6337
  const char *name;
6338
  void       *address;
6339
}
6340
lt__PROGRAM__LTX_preloaded_symbols[] =
6341
{
6342
  { "@PROGRAM@", (void *) 0 },
6343
_LT_EOF
6344
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6345
          cat <<\_LT_EOF >> conftest.$ac_ext
6346
  {0, (void *) 0}
6347
};
6348
 
6349
/* This works around a problem in FreeBSD linker */
6350
#ifdef FREEBSD_WORKAROUND
6351
static const void *lt_preloaded_setup() {
6352
  return lt__PROGRAM__LTX_preloaded_symbols;
6353
}
6354
#endif
6355
 
6356
#ifdef __cplusplus
6357
}
6358
#endif
6359
_LT_EOF
6360
          # Now try linking the two files.
6361
          mv conftest.$ac_objext conftstm.$ac_objext
6362
          lt_save_LIBS="$LIBS"
6363
          lt_save_CFLAGS="$CFLAGS"
6364
          LIBS="conftstm.$ac_objext"
6365
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6366
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6367
  (eval $ac_link) 2>&5
6368
  ac_status=$?
6369
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6370
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6371
            pipe_works=yes
6372
          fi
6373
          LIBS="$lt_save_LIBS"
6374
          CFLAGS="$lt_save_CFLAGS"
6375
        else
6376
          echo "cannot find nm_test_func in $nlist" >&5
6377
        fi
6378
      else
6379
        echo "cannot find nm_test_var in $nlist" >&5
6380
      fi
6381
    else
6382
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6383
    fi
6384
  else
6385
    echo "$progname: failed program was:" >&5
6386
    cat conftest.$ac_ext >&5
6387
  fi
6388
  rm -rf conftest* conftst*
6389
 
6390
  # Do not use the global_symbol_pipe unless it works.
6391
  if test "$pipe_works" = yes; then
6392
    break
6393
  else
6394
    lt_cv_sys_global_symbol_pipe=
6395
  fi
6396
done
6397
 
6398
fi
6399
 
6400
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6401
  lt_cv_sys_global_symbol_to_cdecl=
6402
fi
6403
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6404
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6405
$as_echo "failed" >&6; }
6406
else
6407
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6408
$as_echo "ok" >&6; }
6409
fi
6410
 
6411
 
6412
 
6413
 
6414
 
6415
 
6416
 
6417
 
6418
 
6419
 
6420
 
6421
 
6422
 
6423
 
6424
 
6425
 
6426
 
6427
 
6428
 
6429
 
6430
 
6431
 
6432
 
6433
# Check whether --enable-libtool-lock was given.
6434
if test "${enable_libtool_lock+set}" = set; then :
6435
  enableval=$enable_libtool_lock;
6436
fi
6437
 
6438
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6439
 
6440
# Some flags need to be propagated to the compiler or linker for good
6441
# libtool support.
6442
case $host in
6443
ia64-*-hpux*)
6444
  # Find out which ABI we are using.
6445
  echo 'int i;' > conftest.$ac_ext
6446
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6447
  (eval $ac_compile) 2>&5
6448
  ac_status=$?
6449
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6450
  test $ac_status = 0; }; then
6451
    case `/usr/bin/file conftest.$ac_objext` in
6452
      *ELF-32*)
6453
        HPUX_IA64_MODE="32"
6454
        ;;
6455
      *ELF-64*)
6456
        HPUX_IA64_MODE="64"
6457
        ;;
6458
    esac
6459
  fi
6460
  rm -rf conftest*
6461
  ;;
6462
*-*-irix6*)
6463
  # Find out which ABI we are using.
6464
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6465
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6466
  (eval $ac_compile) 2>&5
6467
  ac_status=$?
6468
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6469
  test $ac_status = 0; }; then
6470
    if test "$lt_cv_prog_gnu_ld" = yes; then
6471
      case `/usr/bin/file conftest.$ac_objext` in
6472
        *32-bit*)
6473
          LD="${LD-ld} -melf32bsmip"
6474
          ;;
6475
        *N32*)
6476
          LD="${LD-ld} -melf32bmipn32"
6477
          ;;
6478
        *64-bit*)
6479
          LD="${LD-ld} -melf64bmip"
6480
        ;;
6481
      esac
6482
    else
6483
      case `/usr/bin/file conftest.$ac_objext` in
6484
        *32-bit*)
6485
          LD="${LD-ld} -32"
6486
          ;;
6487
        *N32*)
6488
          LD="${LD-ld} -n32"
6489
          ;;
6490
        *64-bit*)
6491
          LD="${LD-ld} -64"
6492
          ;;
6493
      esac
6494
    fi
6495
  fi
6496
  rm -rf conftest*
6497
  ;;
6498
 
6499
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6500
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6501
  # Find out which ABI we are using.
6502
  echo 'int i;' > conftest.$ac_ext
6503
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6504
  (eval $ac_compile) 2>&5
6505
  ac_status=$?
6506
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6507
  test $ac_status = 0; }; then
6508
    case `/usr/bin/file conftest.o` in
6509
      *32-bit*)
6510
        case $host in
6511
          x86_64-*kfreebsd*-gnu)
6512
            LD="${LD-ld} -m elf_i386_fbsd"
6513
            ;;
6514
          x86_64-*linux*)
6515
            LD="${LD-ld} -m elf_i386"
6516
            ;;
6517
          ppc64-*linux*|powerpc64-*linux*)
6518
            LD="${LD-ld} -m elf32ppclinux"
6519
            ;;
6520
          s390x-*linux*)
6521
            LD="${LD-ld} -m elf_s390"
6522
            ;;
6523
          sparc64-*linux*)
6524
            LD="${LD-ld} -m elf32_sparc"
6525
            ;;
6526
        esac
6527
        ;;
6528
      *64-bit*)
6529
        case $host in
6530
          x86_64-*kfreebsd*-gnu)
6531
            LD="${LD-ld} -m elf_x86_64_fbsd"
6532
            ;;
6533
          x86_64-*linux*)
6534
            LD="${LD-ld} -m elf_x86_64"
6535
            ;;
6536
          ppc*-*linux*|powerpc*-*linux*)
6537
            LD="${LD-ld} -m elf64ppc"
6538
            ;;
6539
          s390*-*linux*|s390*-*tpf*)
6540
            LD="${LD-ld} -m elf64_s390"
6541
            ;;
6542
          sparc*-*linux*)
6543
            LD="${LD-ld} -m elf64_sparc"
6544
            ;;
6545
        esac
6546
        ;;
6547
    esac
6548
  fi
6549
  rm -rf conftest*
6550
  ;;
6551
 
6552
*-*-sco3.2v5*)
6553
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6554
  SAVE_CFLAGS="$CFLAGS"
6555
  CFLAGS="$CFLAGS -belf"
6556
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6557
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6558
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6559
  $as_echo_n "(cached) " >&6
6560
else
6561
  ac_ext=c
6562
ac_cpp='$CPP $CPPFLAGS'
6563
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6564
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6565
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6566
 
6567
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568
/* end confdefs.h.  */
6569
 
6570
int
6571
main ()
6572
{
6573
 
6574
  ;
6575
  return 0;
6576
}
6577
_ACEOF
6578
if ac_fn_c_try_link "$LINENO"; then :
6579
  lt_cv_cc_needs_belf=yes
6580
else
6581
  lt_cv_cc_needs_belf=no
6582
fi
6583
rm -f core conftest.err conftest.$ac_objext \
6584
    conftest$ac_exeext conftest.$ac_ext
6585
     ac_ext=c
6586
ac_cpp='$CPP $CPPFLAGS'
6587
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6588
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6589
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6590
 
6591
fi
6592
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6593
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6594
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6595
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6596
    CFLAGS="$SAVE_CFLAGS"
6597
  fi
6598
  ;;
6599
*-*solaris*)
6600
  # Find out which ABI we are using.
6601
  echo 'int i;' > conftest.$ac_ext
6602
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6603
  (eval $ac_compile) 2>&5
6604
  ac_status=$?
6605
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6606
  test $ac_status = 0; }; then
6607
    case `/usr/bin/file conftest.o` in
6608
    *64-bit*)
6609
      case $lt_cv_prog_gnu_ld in
6610
      yes*)
6611
        case $host in
6612
        i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*)
6613
          LD="${LD-ld} -m elf_x86_64"
6614
          ;;
6615
        sparc*-*-solaris*)
6616
          LD="${LD-ld} -m elf64_sparc"
6617
          ;;
6618
        esac
6619
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6620
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6621
          LD="${LD-ld}_sol2"
6622
        fi
6623
        ;;
6624
      *)
6625
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6626
          LD="${LD-ld} -64"
6627
        fi
6628
        ;;
6629
      esac
6630
      ;;
6631
    esac
6632
  fi
6633
  rm -rf conftest*
6634
  ;;
6635
esac
6636
 
6637
need_locks="$enable_libtool_lock"
6638
 
6639
 
6640
  case $host_os in
6641
    rhapsody* | darwin*)
6642
    if test -n "$ac_tool_prefix"; then
6643
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6644
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6645
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646
$as_echo_n "checking for $ac_word... " >&6; }
6647
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6648
  $as_echo_n "(cached) " >&6
6649
else
6650
  if test -n "$DSYMUTIL"; then
6651
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6652
else
6653
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654
for as_dir in $PATH
6655
do
6656
  IFS=$as_save_IFS
6657
  test -z "$as_dir" && as_dir=.
6658
    for ac_exec_ext in '' $ac_executable_extensions; do
6659
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6660
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6661
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6662
    break 2
6663
  fi
6664
done
6665
  done
6666
IFS=$as_save_IFS
6667
 
6668
fi
6669
fi
6670
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6671
if test -n "$DSYMUTIL"; then
6672
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6673
$as_echo "$DSYMUTIL" >&6; }
6674
else
6675
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676
$as_echo "no" >&6; }
6677
fi
6678
 
6679
 
6680
fi
6681
if test -z "$ac_cv_prog_DSYMUTIL"; then
6682
  ac_ct_DSYMUTIL=$DSYMUTIL
6683
  # Extract the first word of "dsymutil", so it can be a program name with args.
6684
set dummy dsymutil; ac_word=$2
6685
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6686
$as_echo_n "checking for $ac_word... " >&6; }
6687
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6688
  $as_echo_n "(cached) " >&6
6689
else
6690
  if test -n "$ac_ct_DSYMUTIL"; then
6691
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6692
else
6693
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694
for as_dir in $PATH
6695
do
6696
  IFS=$as_save_IFS
6697
  test -z "$as_dir" && as_dir=.
6698
    for ac_exec_ext in '' $ac_executable_extensions; do
6699
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6701
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6702
    break 2
6703
  fi
6704
done
6705
  done
6706
IFS=$as_save_IFS
6707
 
6708
fi
6709
fi
6710
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6711
if test -n "$ac_ct_DSYMUTIL"; then
6712
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6713
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6714
else
6715
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716
$as_echo "no" >&6; }
6717
fi
6718
 
6719
  if test "x$ac_ct_DSYMUTIL" = x; then
6720
    DSYMUTIL=":"
6721
  else
6722
    case $cross_compiling:$ac_tool_warned in
6723
yes:)
6724
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6725
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6726
ac_tool_warned=yes ;;
6727
esac
6728
    DSYMUTIL=$ac_ct_DSYMUTIL
6729
  fi
6730
else
6731
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6732
fi
6733
 
6734
    if test -n "$ac_tool_prefix"; then
6735
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6736
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738
$as_echo_n "checking for $ac_word... " >&6; }
6739
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6740
  $as_echo_n "(cached) " >&6
6741
else
6742
  if test -n "$NMEDIT"; then
6743
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6744
else
6745
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746
for as_dir in $PATH
6747
do
6748
  IFS=$as_save_IFS
6749
  test -z "$as_dir" && as_dir=.
6750
    for ac_exec_ext in '' $ac_executable_extensions; do
6751
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6753
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6754
    break 2
6755
  fi
6756
done
6757
  done
6758
IFS=$as_save_IFS
6759
 
6760
fi
6761
fi
6762
NMEDIT=$ac_cv_prog_NMEDIT
6763
if test -n "$NMEDIT"; then
6764
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6765
$as_echo "$NMEDIT" >&6; }
6766
else
6767
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768
$as_echo "no" >&6; }
6769
fi
6770
 
6771
 
6772
fi
6773
if test -z "$ac_cv_prog_NMEDIT"; then
6774
  ac_ct_NMEDIT=$NMEDIT
6775
  # Extract the first word of "nmedit", so it can be a program name with args.
6776
set dummy nmedit; ac_word=$2
6777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778
$as_echo_n "checking for $ac_word... " >&6; }
6779
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6780
  $as_echo_n "(cached) " >&6
6781
else
6782
  if test -n "$ac_ct_NMEDIT"; then
6783
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6784
else
6785
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786
for as_dir in $PATH
6787
do
6788
  IFS=$as_save_IFS
6789
  test -z "$as_dir" && as_dir=.
6790
    for ac_exec_ext in '' $ac_executable_extensions; do
6791
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6792
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6793
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6794
    break 2
6795
  fi
6796
done
6797
  done
6798
IFS=$as_save_IFS
6799
 
6800
fi
6801
fi
6802
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6803
if test -n "$ac_ct_NMEDIT"; then
6804
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6805
$as_echo "$ac_ct_NMEDIT" >&6; }
6806
else
6807
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808
$as_echo "no" >&6; }
6809
fi
6810
 
6811
  if test "x$ac_ct_NMEDIT" = x; then
6812
    NMEDIT=":"
6813
  else
6814
    case $cross_compiling:$ac_tool_warned in
6815
yes:)
6816
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6817
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6818
ac_tool_warned=yes ;;
6819
esac
6820
    NMEDIT=$ac_ct_NMEDIT
6821
  fi
6822
else
6823
  NMEDIT="$ac_cv_prog_NMEDIT"
6824
fi
6825
 
6826
    if test -n "$ac_tool_prefix"; then
6827
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6828
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830
$as_echo_n "checking for $ac_word... " >&6; }
6831
if test "${ac_cv_prog_LIPO+set}" = set; then :
6832
  $as_echo_n "(cached) " >&6
6833
else
6834
  if test -n "$LIPO"; then
6835
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6836
else
6837
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838
for as_dir in $PATH
6839
do
6840
  IFS=$as_save_IFS
6841
  test -z "$as_dir" && as_dir=.
6842
    for ac_exec_ext in '' $ac_executable_extensions; do
6843
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6845
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846
    break 2
6847
  fi
6848
done
6849
  done
6850
IFS=$as_save_IFS
6851
 
6852
fi
6853
fi
6854
LIPO=$ac_cv_prog_LIPO
6855
if test -n "$LIPO"; then
6856
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6857
$as_echo "$LIPO" >&6; }
6858
else
6859
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860
$as_echo "no" >&6; }
6861
fi
6862
 
6863
 
6864
fi
6865
if test -z "$ac_cv_prog_LIPO"; then
6866
  ac_ct_LIPO=$LIPO
6867
  # Extract the first word of "lipo", so it can be a program name with args.
6868
set dummy lipo; ac_word=$2
6869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870
$as_echo_n "checking for $ac_word... " >&6; }
6871
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6872
  $as_echo_n "(cached) " >&6
6873
else
6874
  if test -n "$ac_ct_LIPO"; then
6875
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6876
else
6877
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878
for as_dir in $PATH
6879
do
6880
  IFS=$as_save_IFS
6881
  test -z "$as_dir" && as_dir=.
6882
    for ac_exec_ext in '' $ac_executable_extensions; do
6883
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6884
    ac_cv_prog_ac_ct_LIPO="lipo"
6885
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886
    break 2
6887
  fi
6888
done
6889
  done
6890
IFS=$as_save_IFS
6891
 
6892
fi
6893
fi
6894
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6895
if test -n "$ac_ct_LIPO"; then
6896
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6897
$as_echo "$ac_ct_LIPO" >&6; }
6898
else
6899
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900
$as_echo "no" >&6; }
6901
fi
6902
 
6903
  if test "x$ac_ct_LIPO" = x; then
6904
    LIPO=":"
6905
  else
6906
    case $cross_compiling:$ac_tool_warned in
6907
yes:)
6908
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6909
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6910
ac_tool_warned=yes ;;
6911
esac
6912
    LIPO=$ac_ct_LIPO
6913
  fi
6914
else
6915
  LIPO="$ac_cv_prog_LIPO"
6916
fi
6917
 
6918
    if test -n "$ac_tool_prefix"; then
6919
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6920
set dummy ${ac_tool_prefix}otool; ac_word=$2
6921
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922
$as_echo_n "checking for $ac_word... " >&6; }
6923
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6924
  $as_echo_n "(cached) " >&6
6925
else
6926
  if test -n "$OTOOL"; then
6927
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6928
else
6929
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930
for as_dir in $PATH
6931
do
6932
  IFS=$as_save_IFS
6933
  test -z "$as_dir" && as_dir=.
6934
    for ac_exec_ext in '' $ac_executable_extensions; do
6935
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6936
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6937
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938
    break 2
6939
  fi
6940
done
6941
  done
6942
IFS=$as_save_IFS
6943
 
6944
fi
6945
fi
6946
OTOOL=$ac_cv_prog_OTOOL
6947
if test -n "$OTOOL"; then
6948
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6949
$as_echo "$OTOOL" >&6; }
6950
else
6951
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952
$as_echo "no" >&6; }
6953
fi
6954
 
6955
 
6956
fi
6957
if test -z "$ac_cv_prog_OTOOL"; then
6958
  ac_ct_OTOOL=$OTOOL
6959
  # Extract the first word of "otool", so it can be a program name with args.
6960
set dummy otool; ac_word=$2
6961
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6962
$as_echo_n "checking for $ac_word... " >&6; }
6963
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6964
  $as_echo_n "(cached) " >&6
6965
else
6966
  if test -n "$ac_ct_OTOOL"; then
6967
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6968
else
6969
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970
for as_dir in $PATH
6971
do
6972
  IFS=$as_save_IFS
6973
  test -z "$as_dir" && as_dir=.
6974
    for ac_exec_ext in '' $ac_executable_extensions; do
6975
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6976
    ac_cv_prog_ac_ct_OTOOL="otool"
6977
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6978
    break 2
6979
  fi
6980
done
6981
  done
6982
IFS=$as_save_IFS
6983
 
6984
fi
6985
fi
6986
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6987
if test -n "$ac_ct_OTOOL"; then
6988
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6989
$as_echo "$ac_ct_OTOOL" >&6; }
6990
else
6991
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6992
$as_echo "no" >&6; }
6993
fi
6994
 
6995
  if test "x$ac_ct_OTOOL" = x; then
6996
    OTOOL=":"
6997
  else
6998
    case $cross_compiling:$ac_tool_warned in
6999
yes:)
7000
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7001
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7002
ac_tool_warned=yes ;;
7003
esac
7004
    OTOOL=$ac_ct_OTOOL
7005
  fi
7006
else
7007
  OTOOL="$ac_cv_prog_OTOOL"
7008
fi
7009
 
7010
    if test -n "$ac_tool_prefix"; then
7011
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7012
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7013
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7014
$as_echo_n "checking for $ac_word... " >&6; }
7015
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7016
  $as_echo_n "(cached) " >&6
7017
else
7018
  if test -n "$OTOOL64"; then
7019
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7020
else
7021
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022
for as_dir in $PATH
7023
do
7024
  IFS=$as_save_IFS
7025
  test -z "$as_dir" && as_dir=.
7026
    for ac_exec_ext in '' $ac_executable_extensions; do
7027
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7028
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7029
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7030
    break 2
7031
  fi
7032
done
7033
  done
7034
IFS=$as_save_IFS
7035
 
7036
fi
7037
fi
7038
OTOOL64=$ac_cv_prog_OTOOL64
7039
if test -n "$OTOOL64"; then
7040
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7041
$as_echo "$OTOOL64" >&6; }
7042
else
7043
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044
$as_echo "no" >&6; }
7045
fi
7046
 
7047
 
7048
fi
7049
if test -z "$ac_cv_prog_OTOOL64"; then
7050
  ac_ct_OTOOL64=$OTOOL64
7051
  # Extract the first word of "otool64", so it can be a program name with args.
7052
set dummy otool64; ac_word=$2
7053
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7054
$as_echo_n "checking for $ac_word... " >&6; }
7055
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7056
  $as_echo_n "(cached) " >&6
7057
else
7058
  if test -n "$ac_ct_OTOOL64"; then
7059
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7060
else
7061
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062
for as_dir in $PATH
7063
do
7064
  IFS=$as_save_IFS
7065
  test -z "$as_dir" && as_dir=.
7066
    for ac_exec_ext in '' $ac_executable_extensions; do
7067
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7068
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7069
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7070
    break 2
7071
  fi
7072
done
7073
  done
7074
IFS=$as_save_IFS
7075
 
7076
fi
7077
fi
7078
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7079
if test -n "$ac_ct_OTOOL64"; then
7080
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7081
$as_echo "$ac_ct_OTOOL64" >&6; }
7082
else
7083
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084
$as_echo "no" >&6; }
7085
fi
7086
 
7087
  if test "x$ac_ct_OTOOL64" = x; then
7088
    OTOOL64=":"
7089
  else
7090
    case $cross_compiling:$ac_tool_warned in
7091
yes:)
7092
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7093
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7094
ac_tool_warned=yes ;;
7095
esac
7096
    OTOOL64=$ac_ct_OTOOL64
7097
  fi
7098
else
7099
  OTOOL64="$ac_cv_prog_OTOOL64"
7100
fi
7101
 
7102
 
7103
 
7104
 
7105
 
7106
 
7107
 
7108
 
7109
 
7110
 
7111
 
7112
 
7113
 
7114
 
7115
 
7116
 
7117
 
7118
 
7119
 
7120
 
7121
 
7122
 
7123
 
7124
 
7125
 
7126
 
7127
 
7128
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7129
$as_echo_n "checking for -single_module linker flag... " >&6; }
7130
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7131
  $as_echo_n "(cached) " >&6
7132
else
7133
  lt_cv_apple_cc_single_mod=no
7134
      if test -z "${LT_MULTI_MODULE}"; then
7135
        # By default we will add the -single_module flag. You can override
7136
        # by either setting the environment variable LT_MULTI_MODULE
7137
        # non-empty at configure time, or by adding -multi_module to the
7138
        # link flags.
7139
        rm -rf libconftest.dylib*
7140
        echo "int foo(void){return 1;}" > conftest.c
7141
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7142
-dynamiclib -Wl,-single_module conftest.c" >&5
7143
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7144
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7145
        _lt_result=$?
7146
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7147
          lt_cv_apple_cc_single_mod=yes
7148
        else
7149
          cat conftest.err >&5
7150
        fi
7151
        rm -rf libconftest.dylib*
7152
        rm -f conftest.*
7153
      fi
7154
fi
7155
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7156
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7157
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7158
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7159
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7160
  $as_echo_n "(cached) " >&6
7161
else
7162
  lt_cv_ld_exported_symbols_list=no
7163
      save_LDFLAGS=$LDFLAGS
7164
      echo "_main" > conftest.sym
7165
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7166
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167
/* end confdefs.h.  */
7168
 
7169
int
7170
main ()
7171
{
7172
 
7173
  ;
7174
  return 0;
7175
}
7176
_ACEOF
7177
if ac_fn_c_try_link "$LINENO"; then :
7178
  lt_cv_ld_exported_symbols_list=yes
7179
else
7180
  lt_cv_ld_exported_symbols_list=no
7181
fi
7182
rm -f core conftest.err conftest.$ac_objext \
7183
    conftest$ac_exeext conftest.$ac_ext
7184
        LDFLAGS="$save_LDFLAGS"
7185
 
7186
fi
7187
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7188
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7189
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7190
$as_echo_n "checking for -force_load linker flag... " >&6; }
7191
if test "${lt_cv_ld_force_load+set}" = set; then :
7192
  $as_echo_n "(cached) " >&6
7193
else
7194
  lt_cv_ld_force_load=no
7195
      cat > conftest.c << _LT_EOF
7196
int forced_loaded() { return 2;}
7197
_LT_EOF
7198
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7199
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7200
      echo "$AR cru libconftest.a conftest.o" >&5
7201
      $AR cru libconftest.a conftest.o 2>&5
7202
      cat > conftest.c << _LT_EOF
7203
int main() { return 0;}
7204
_LT_EOF
7205
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7206
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7207
      _lt_result=$?
7208
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7209
        lt_cv_ld_force_load=yes
7210
      else
7211
        cat conftest.err >&5
7212
      fi
7213
        rm -f conftest.err libconftest.a conftest conftest.c
7214
        rm -rf conftest.dSYM
7215
 
7216
fi
7217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7218
$as_echo "$lt_cv_ld_force_load" >&6; }
7219
    case $host_os in
7220
    rhapsody* | darwin1.[012])
7221
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7222
    darwin1.*)
7223
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7224
    darwin*) # darwin 5.x on
7225
      # if running on 10.5 or later, the deployment target defaults
7226
      # to the OS version, if on x86, and 10.4, the deployment
7227
      # target defaults to 10.4. Don't you love it?
7228
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7229
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7230
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7231
        10.[012]*)
7232
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7233
        10.*)
7234
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7235
      esac
7236
    ;;
7237
  esac
7238
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7239
      _lt_dar_single_mod='$single_module'
7240
    fi
7241
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7242
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7243
    else
7244
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7245
    fi
7246
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7247
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7248
    else
7249
      _lt_dsymutil=
7250
    fi
7251
    ;;
7252
  esac
7253
 
7254
ac_ext=c
7255
ac_cpp='$CPP $CPPFLAGS'
7256
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7257
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7258
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7259
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7260
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7261
# On Suns, sometimes $CPP names a directory.
7262
if test -n "$CPP" && test -d "$CPP"; then
7263
  CPP=
7264
fi
7265
if test -z "$CPP"; then
7266
  if test "${ac_cv_prog_CPP+set}" = set; then :
7267
  $as_echo_n "(cached) " >&6
7268
else
7269
      # Double quotes because CPP needs to be expanded
7270
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7271
    do
7272
      ac_preproc_ok=false
7273
for ac_c_preproc_warn_flag in '' yes
7274
do
7275
  # Use a header file that comes with gcc, so configuring glibc
7276
  # with a fresh cross-compiler works.
7277
  # Prefer  to  if __STDC__ is defined, since
7278
  #  exists even on freestanding compilers.
7279
  # On the NeXT, cc -E runs the code through the compiler's parser,
7280
  # not just through cpp. "Syntax error" is here to catch this case.
7281
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282
/* end confdefs.h.  */
7283
#ifdef __STDC__
7284
# include 
7285
#else
7286
# include 
7287
#endif
7288
                     Syntax error
7289
_ACEOF
7290
if ac_fn_c_try_cpp "$LINENO"; then :
7291
 
7292
else
7293
  # Broken: fails on valid input.
7294
continue
7295
fi
7296
rm -f conftest.err conftest.$ac_ext
7297
 
7298
  # OK, works on sane cases.  Now check whether nonexistent headers
7299
  # can be detected and how.
7300
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301
/* end confdefs.h.  */
7302
#include 
7303
_ACEOF
7304
if ac_fn_c_try_cpp "$LINENO"; then :
7305
  # Broken: success on invalid input.
7306
continue
7307
else
7308
  # Passes both tests.
7309
ac_preproc_ok=:
7310
break
7311
fi
7312
rm -f conftest.err conftest.$ac_ext
7313
 
7314
done
7315
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7316
rm -f conftest.err conftest.$ac_ext
7317
if $ac_preproc_ok; then :
7318
  break
7319
fi
7320
 
7321
    done
7322
    ac_cv_prog_CPP=$CPP
7323
 
7324
fi
7325
  CPP=$ac_cv_prog_CPP
7326
else
7327
  ac_cv_prog_CPP=$CPP
7328
fi
7329
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7330
$as_echo "$CPP" >&6; }
7331
ac_preproc_ok=false
7332
for ac_c_preproc_warn_flag in '' yes
7333
do
7334
  # Use a header file that comes with gcc, so configuring glibc
7335
  # with a fresh cross-compiler works.
7336
  # Prefer  to  if __STDC__ is defined, since
7337
  #  exists even on freestanding compilers.
7338
  # On the NeXT, cc -E runs the code through the compiler's parser,
7339
  # not just through cpp. "Syntax error" is here to catch this case.
7340
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341
/* end confdefs.h.  */
7342
#ifdef __STDC__
7343
# include 
7344
#else
7345
# include 
7346
#endif
7347
                     Syntax error
7348
_ACEOF
7349
if ac_fn_c_try_cpp "$LINENO"; then :
7350
 
7351
else
7352
  # Broken: fails on valid input.
7353
continue
7354
fi
7355
rm -f conftest.err conftest.$ac_ext
7356
 
7357
  # OK, works on sane cases.  Now check whether nonexistent headers
7358
  # can be detected and how.
7359
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360
/* end confdefs.h.  */
7361
#include 
7362
_ACEOF
7363
if ac_fn_c_try_cpp "$LINENO"; then :
7364
  # Broken: success on invalid input.
7365
continue
7366
else
7367
  # Passes both tests.
7368
ac_preproc_ok=:
7369
break
7370
fi
7371
rm -f conftest.err conftest.$ac_ext
7372
 
7373
done
7374
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7375
rm -f conftest.err conftest.$ac_ext
7376
if $ac_preproc_ok; then :
7377
 
7378
else
7379
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7380
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7381
as_fn_error "C preprocessor \"$CPP\" fails sanity check
7382
See \`config.log' for more details." "$LINENO" 5; }
7383
fi
7384
 
7385
ac_ext=c
7386
ac_cpp='$CPP $CPPFLAGS'
7387
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7388
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7389
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7390
 
7391
 
7392
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7393
$as_echo_n "checking for ANSI C header files... " >&6; }
7394
if test "${ac_cv_header_stdc+set}" = set; then :
7395
  $as_echo_n "(cached) " >&6
7396
else
7397
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398
/* end confdefs.h.  */
7399
#include 
7400
#include 
7401
#include 
7402
#include 
7403
 
7404
int
7405
main ()
7406
{
7407
 
7408
  ;
7409
  return 0;
7410
}
7411
_ACEOF
7412
if ac_fn_c_try_compile "$LINENO"; then :
7413
  ac_cv_header_stdc=yes
7414
else
7415
  ac_cv_header_stdc=no
7416
fi
7417
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418
 
7419
if test $ac_cv_header_stdc = yes; then
7420
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7421
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422
/* end confdefs.h.  */
7423
#include 
7424
 
7425
_ACEOF
7426
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7427
  $EGREP "memchr" >/dev/null 2>&1; then :
7428
 
7429
else
7430
  ac_cv_header_stdc=no
7431
fi
7432
rm -f conftest*
7433
 
7434
fi
7435
 
7436
if test $ac_cv_header_stdc = yes; then
7437
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7438
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439
/* end confdefs.h.  */
7440
#include 
7441
 
7442
_ACEOF
7443
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7444
  $EGREP "free" >/dev/null 2>&1; then :
7445
 
7446
else
7447
  ac_cv_header_stdc=no
7448
fi
7449
rm -f conftest*
7450
 
7451
fi
7452
 
7453
if test $ac_cv_header_stdc = yes; then
7454
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7455
  if test "$cross_compiling" = yes; then :
7456
  :
7457
else
7458
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459
/* end confdefs.h.  */
7460
#include 
7461
#include 
7462
#if ((' ' & 0x0FF) == 0x020)
7463
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7464
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7465
#else
7466
# define ISLOWER(c) \
7467
                   (('a' <= (c) && (c) <= 'i') \
7468
                     || ('j' <= (c) && (c) <= 'r') \
7469
                     || ('s' <= (c) && (c) <= 'z'))
7470
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7471
#endif
7472
 
7473
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7474
int
7475
main ()
7476
{
7477
  int i;
7478
  for (i = 0; i < 256; i++)
7479
    if (XOR (islower (i), ISLOWER (i))
7480
        || toupper (i) != TOUPPER (i))
7481
      return 2;
7482
  return 0;
7483
}
7484
_ACEOF
7485
if ac_fn_c_try_run "$LINENO"; then :
7486
 
7487
else
7488
  ac_cv_header_stdc=no
7489
fi
7490
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7491
  conftest.$ac_objext conftest.beam conftest.$ac_ext
7492
fi
7493
 
7494
fi
7495
fi
7496
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7497
$as_echo "$ac_cv_header_stdc" >&6; }
7498
if test $ac_cv_header_stdc = yes; then
7499
 
7500
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7501
 
7502
fi
7503
 
7504
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7505
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7506
                  inttypes.h stdint.h unistd.h
7507
do :
7508
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7509
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7510
"
7511
eval as_val=\$$as_ac_Header
7512
   if test "x$as_val" = x""yes; then :
7513
  cat >>confdefs.h <<_ACEOF
7514
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7515
_ACEOF
7516
 
7517
fi
7518
 
7519
done
7520
 
7521
 
7522
for ac_header in dlfcn.h
7523
do :
7524
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7525
"
7526
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7527
  cat >>confdefs.h <<_ACEOF
7528
#define HAVE_DLFCN_H 1
7529
_ACEOF
7530
 
7531
fi
7532
 
7533
done
7534
 
7535
if test -n "$ac_tool_prefix"; then
7536
  # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7537
set dummy ${ac_tool_prefix}gccgo; 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; }
7540
if test "${ac_cv_prog_GOC+set}" = set; then :
7541
  $as_echo_n "(cached) " >&6
7542
else
7543
  if test -n "$GOC"; then
7544
  ac_cv_prog_GOC="$GOC" # Let the user override the test.
7545
else
7546
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547
for as_dir in $PATH
7548
do
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_GOC="${ac_tool_prefix}gccgo"
7554
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555
    break 2
7556
  fi
7557
done
7558
  done
7559
IFS=$as_save_IFS
7560
 
7561
fi
7562
fi
7563
GOC=$ac_cv_prog_GOC
7564
if test -n "$GOC"; then
7565
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7566
$as_echo "$GOC" >&6; }
7567
else
7568
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569
$as_echo "no" >&6; }
7570
fi
7571
 
7572
 
7573
fi
7574
if test -z "$ac_cv_prog_GOC"; then
7575
  ac_ct_GOC=$GOC
7576
  # Extract the first word of "gccgo", so it can be a program name with args.
7577
set dummy gccgo; 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; }
7580
if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7581
  $as_echo_n "(cached) " >&6
7582
else
7583
  if test -n "$ac_ct_GOC"; then
7584
  ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7585
else
7586
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587
for as_dir in $PATH
7588
do
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_GOC="gccgo"
7594
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595
    break 2
7596
  fi
7597
done
7598
  done
7599
IFS=$as_save_IFS
7600
 
7601
fi
7602
fi
7603
ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7604
if test -n "$ac_ct_GOC"; then
7605
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7606
$as_echo "$ac_ct_GOC" >&6; }
7607
else
7608
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609
$as_echo "no" >&6; }
7610
fi
7611
 
7612
  if test "x$ac_ct_GOC" = x; then
7613
    GOC=""
7614
  else
7615
    case $cross_compiling:$ac_tool_warned in
7616
yes:)
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;}
7619
ac_tool_warned=yes ;;
7620
esac
7621
    GOC=$ac_ct_GOC
7622
  fi
7623
else
7624
  GOC="$ac_cv_prog_GOC"
7625
fi
7626
 
7627
 
7628
 
7629
 
7630
 
7631
 
7632
# Set options
7633
 
7634
 
7635
 
7636
 
7637
  enable_win32_dll=no
7638
 
7639
 
7640
            # Check whether --enable-shared was given.
7641
if test "${enable_shared+set}" = set; then :
7642
  enableval=$enable_shared; p=${PACKAGE-default}
7643
    case $enableval in
7644
    yes) enable_shared=yes ;;
7645
    no) enable_shared=no ;;
7646
    *)
7647
      enable_shared=no
7648
      # Look at the argument we got.  We use all the common list separators.
7649
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7650
      for pkg in $enableval; do
7651
        IFS="$lt_save_ifs"
7652
        if test "X$pkg" = "X$p"; then
7653
          enable_shared=yes
7654
        fi
7655
      done
7656
      IFS="$lt_save_ifs"
7657
      ;;
7658
    esac
7659
else
7660
  enable_shared=yes
7661
fi
7662
 
7663
 
7664
 
7665
 
7666
 
7667
 
7668
 
7669
 
7670
 
7671
  # Check whether --enable-static was given.
7672
if test "${enable_static+set}" = set; then :
7673
  enableval=$enable_static; p=${PACKAGE-default}
7674
    case $enableval in
7675
    yes) enable_static=yes ;;
7676
    no) enable_static=no ;;
7677
    *)
7678
     enable_static=no
7679
      # Look at the argument we got.  We use all the common list separators.
7680
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7681
      for pkg in $enableval; do
7682
        IFS="$lt_save_ifs"
7683
        if test "X$pkg" = "X$p"; then
7684
          enable_static=yes
7685
        fi
7686
      done
7687
      IFS="$lt_save_ifs"
7688
      ;;
7689
    esac
7690
else
7691
  enable_static=yes
7692
fi
7693
 
7694
 
7695
 
7696
 
7697
 
7698
 
7699
 
7700
 
7701
 
7702
 
7703
# Check whether --with-pic was given.
7704
if test "${with_pic+set}" = set; then :
7705
  withval=$with_pic; pic_mode="$withval"
7706
else
7707
  pic_mode=default
7708
fi
7709
 
7710
 
7711
test -z "$pic_mode" && pic_mode=default
7712
 
7713
 
7714
 
7715
 
7716
 
7717
 
7718
 
7719
  # Check whether --enable-fast-install was given.
7720
if test "${enable_fast_install+set}" = set; then :
7721
  enableval=$enable_fast_install; p=${PACKAGE-default}
7722
    case $enableval in
7723
    yes) enable_fast_install=yes ;;
7724
    no) enable_fast_install=no ;;
7725
    *)
7726
      enable_fast_install=no
7727
      # Look at the argument we got.  We use all the common list separators.
7728
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7729
      for pkg in $enableval; do
7730
        IFS="$lt_save_ifs"
7731
        if test "X$pkg" = "X$p"; then
7732
          enable_fast_install=yes
7733
        fi
7734
      done
7735
      IFS="$lt_save_ifs"
7736
      ;;
7737
    esac
7738
else
7739
  enable_fast_install=yes
7740
fi
7741
 
7742
 
7743
 
7744
 
7745
 
7746
 
7747
 
7748
 
7749
 
7750
 
7751
 
7752
# This can be used to rebuild libtool when needed
7753
LIBTOOL_DEPS="$ltmain"
7754
 
7755
# Always use our own libtool.
7756
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7757
 
7758
 
7759
 
7760
 
7761
 
7762
 
7763
 
7764
 
7765
 
7766
 
7767
 
7768
 
7769
 
7770
 
7771
 
7772
 
7773
 
7774
 
7775
 
7776
 
7777
 
7778
 
7779
 
7780
 
7781
 
7782
 
7783
test -z "$LN_S" && LN_S="ln -s"
7784
 
7785
 
7786
 
7787
 
7788
 
7789
 
7790
 
7791
 
7792
 
7793
 
7794
 
7795
 
7796
 
7797
 
7798
if test -n "${ZSH_VERSION+set}" ; then
7799
   setopt NO_GLOB_SUBST
7800
fi
7801
 
7802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7803
$as_echo_n "checking for objdir... " >&6; }
7804
if test "${lt_cv_objdir+set}" = set; then :
7805
  $as_echo_n "(cached) " >&6
7806
else
7807
  rm -f .libs 2>/dev/null
7808
mkdir .libs 2>/dev/null
7809
if test -d .libs; then
7810
  lt_cv_objdir=.libs
7811
else
7812
  # MS-DOS does not allow filenames that begin with a dot.
7813
  lt_cv_objdir=_libs
7814
fi
7815
rmdir .libs 2>/dev/null
7816
fi
7817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7818
$as_echo "$lt_cv_objdir" >&6; }
7819
objdir=$lt_cv_objdir
7820
 
7821
 
7822
 
7823
 
7824
 
7825
cat >>confdefs.h <<_ACEOF
7826
#define LT_OBJDIR "$lt_cv_objdir/"
7827
_ACEOF
7828
 
7829
 
7830
 
7831
 
7832
case $host_os in
7833
aix3*)
7834
  # AIX sometimes has problems with the GCC collect2 program.  For some
7835
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7836
  # vanish in a puff of smoke.
7837
  if test "X${COLLECT_NAMES+set}" != Xset; then
7838
    COLLECT_NAMES=
7839
    export COLLECT_NAMES
7840
  fi
7841
  ;;
7842
esac
7843
 
7844
# Global variables:
7845
ofile=libtool
7846
can_build_shared=yes
7847
 
7848
# All known linkers require a `.a' archive for static linking (except MSVC,
7849
# which needs '.lib').
7850
libext=a
7851
 
7852
with_gnu_ld="$lt_cv_prog_gnu_ld"
7853
 
7854
old_CC="$CC"
7855
old_CFLAGS="$CFLAGS"
7856
 
7857
# Set sane defaults for various variables
7858
test -z "$CC" && CC=cc
7859
test -z "$LTCC" && LTCC=$CC
7860
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7861
test -z "$LD" && LD=ld
7862
test -z "$ac_objext" && ac_objext=o
7863
 
7864
for cc_temp in $compiler""; do
7865
  case $cc_temp in
7866
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7867
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7868
    \-*) ;;
7869
    *) break;;
7870
  esac
7871
done
7872
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7873
 
7874
 
7875
# Only perform the check for file, if the check method requires it
7876
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7877
case $deplibs_check_method in
7878
file_magic*)
7879
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7880
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7881
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7882
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7883
  $as_echo_n "(cached) " >&6
7884
else
7885
  case $MAGIC_CMD in
7886
[\\/*] |  ?:[\\/]*)
7887
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7888
  ;;
7889
*)
7890
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7891
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7892
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7893
  for ac_dir in $ac_dummy; do
7894
    IFS="$lt_save_ifs"
7895
    test -z "$ac_dir" && ac_dir=.
7896
    if test -f $ac_dir/${ac_tool_prefix}file; then
7897
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7898
      if test -n "$file_magic_test_file"; then
7899
        case $deplibs_check_method in
7900
        "file_magic "*)
7901
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7902
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7903
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7904
            $EGREP "$file_magic_regex" > /dev/null; then
7905
            :
7906
          else
7907
            cat <<_LT_EOF 1>&2
7908
 
7909
*** Warning: the command libtool uses to detect shared libraries,
7910
*** $file_magic_cmd, produces output that libtool cannot recognize.
7911
*** The result is that libtool may fail to recognize shared libraries
7912
*** as such.  This will affect the creation of libtool libraries that
7913
*** depend on shared libraries, but programs linked with such libtool
7914
*** libraries will work regardless of this problem.  Nevertheless, you
7915
*** may want to report the problem to your system manager and/or to
7916
*** bug-libtool@gnu.org
7917
 
7918
_LT_EOF
7919
          fi ;;
7920
        esac
7921
      fi
7922
      break
7923
    fi
7924
  done
7925
  IFS="$lt_save_ifs"
7926
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7927
  ;;
7928
esac
7929
fi
7930
 
7931
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7932
if test -n "$MAGIC_CMD"; then
7933
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7934
$as_echo "$MAGIC_CMD" >&6; }
7935
else
7936
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937
$as_echo "no" >&6; }
7938
fi
7939
 
7940
 
7941
 
7942
 
7943
 
7944
if test -z "$lt_cv_path_MAGIC_CMD"; then
7945
  if test -n "$ac_tool_prefix"; then
7946
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7947
$as_echo_n "checking for file... " >&6; }
7948
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7949
  $as_echo_n "(cached) " >&6
7950
else
7951
  case $MAGIC_CMD in
7952
[\\/*] |  ?:[\\/]*)
7953
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7954
  ;;
7955
*)
7956
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7957
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7958
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7959
  for ac_dir in $ac_dummy; do
7960
    IFS="$lt_save_ifs"
7961
    test -z "$ac_dir" && ac_dir=.
7962
    if test -f $ac_dir/file; then
7963
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7964
      if test -n "$file_magic_test_file"; then
7965
        case $deplibs_check_method in
7966
        "file_magic "*)
7967
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7968
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7969
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7970
            $EGREP "$file_magic_regex" > /dev/null; then
7971
            :
7972
          else
7973
            cat <<_LT_EOF 1>&2
7974
 
7975
*** Warning: the command libtool uses to detect shared libraries,
7976
*** $file_magic_cmd, produces output that libtool cannot recognize.
7977
*** The result is that libtool may fail to recognize shared libraries
7978
*** as such.  This will affect the creation of libtool libraries that
7979
*** depend on shared libraries, but programs linked with such libtool
7980
*** libraries will work regardless of this problem.  Nevertheless, you
7981
*** may want to report the problem to your system manager and/or to
7982
*** bug-libtool@gnu.org
7983
 
7984
_LT_EOF
7985
          fi ;;
7986
        esac
7987
      fi
7988
      break
7989
    fi
7990
  done
7991
  IFS="$lt_save_ifs"
7992
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7993
  ;;
7994
esac
7995
fi
7996
 
7997
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7998
if test -n "$MAGIC_CMD"; then
7999
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8000
$as_echo "$MAGIC_CMD" >&6; }
8001
else
8002
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003
$as_echo "no" >&6; }
8004
fi
8005
 
8006
 
8007
  else
8008
    MAGIC_CMD=:
8009
  fi
8010
fi
8011
 
8012
  fi
8013
  ;;
8014
esac
8015
 
8016
# Use C for the default configuration in the libtool script
8017
 
8018
lt_save_CC="$CC"
8019
ac_ext=c
8020
ac_cpp='$CPP $CPPFLAGS'
8021
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8022
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8023
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8024
 
8025
 
8026
# Source file extension for C test sources.
8027
ac_ext=c
8028
 
8029
# Object file extension for compiled C test sources.
8030
objext=o
8031
objext=$objext
8032
 
8033
# Code to be used in simple compile tests
8034
lt_simple_compile_test_code="int some_variable = 0;"
8035
 
8036
# Code to be used in simple link tests
8037
lt_simple_link_test_code='int main(){return(0);}'
8038
 
8039
 
8040
 
8041
 
8042
 
8043
 
8044
 
8045
# If no C compiler was specified, use CC.
8046
LTCC=${LTCC-"$CC"}
8047
 
8048
# If no C compiler flags were specified, use CFLAGS.
8049
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8050
 
8051
# Allow CC to be a program name with arguments.
8052
compiler=$CC
8053
 
8054
# Save the default compiler, since it gets overwritten when the other
8055
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8056
compiler_DEFAULT=$CC
8057
 
8058
# save warnings/boilerplate of simple test code
8059
ac_outfile=conftest.$ac_objext
8060
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8061
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8062
_lt_compiler_boilerplate=`cat conftest.err`
8063
$RM conftest*
8064
 
8065
ac_outfile=conftest.$ac_objext
8066
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8067
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8068
_lt_linker_boilerplate=`cat conftest.err`
8069
$RM -r conftest*
8070
 
8071
 
8072
## CAVEAT EMPTOR:
8073
## There is no encapsulation within the following macros, do not change
8074
## the running order or otherwise move them around unless you know exactly
8075
## what you are doing...
8076
if test -n "$compiler"; then
8077
 
8078
lt_prog_compiler_no_builtin_flag=
8079
 
8080
if test "$GCC" = yes; then
8081
  case $cc_basename in
8082
  nvcc*)
8083
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8084
  *)
8085
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8086
  esac
8087
 
8088
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8089
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8090
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8091
  $as_echo_n "(cached) " >&6
8092
else
8093
  lt_cv_prog_compiler_rtti_exceptions=no
8094
   ac_outfile=conftest.$ac_objext
8095
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8096
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8097
   # Insert the option either (1) after the last *FLAGS variable, or
8098
   # (2) before a word containing "conftest.", or (3) at the end.
8099
   # Note that $ac_compile itself does not contain backslashes and begins
8100
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8101
   # The option is referenced via a variable to avoid confusing sed.
8102
   lt_compile=`echo "$ac_compile" | $SED \
8103
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8104
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8105
   -e 's:$: $lt_compiler_flag:'`
8106
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8107
   (eval "$lt_compile" 2>conftest.err)
8108
   ac_status=$?
8109
   cat conftest.err >&5
8110
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111
   if (exit $ac_status) && test -s "$ac_outfile"; then
8112
     # The compiler can only warn and ignore the option if not recognized
8113
     # So say no if there are warnings other than the usual output.
8114
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8115
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8116
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8117
       lt_cv_prog_compiler_rtti_exceptions=yes
8118
     fi
8119
   fi
8120
   $RM conftest*
8121
 
8122
fi
8123
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8124
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8125
 
8126
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8127
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8128
else
8129
    :
8130
fi
8131
 
8132
fi
8133
 
8134
 
8135
 
8136
 
8137
 
8138
 
8139
  lt_prog_compiler_wl=
8140
lt_prog_compiler_pic=
8141
lt_prog_compiler_static=
8142
 
8143
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8144
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8145
 
8146
  if test "$GCC" = yes; then
8147
    lt_prog_compiler_wl='-Wl,'
8148
    lt_prog_compiler_static='-static'
8149
 
8150
    case $host_os in
8151
      aix*)
8152
      # All AIX code is PIC.
8153
      if test "$host_cpu" = ia64; then
8154
        # AIX 5 now supports IA64 processor
8155
        lt_prog_compiler_static='-Bstatic'
8156
      fi
8157
      ;;
8158
 
8159
    amigaos*)
8160
      case $host_cpu in
8161
      powerpc)
8162
            # see comment about AmigaOS4 .so support
8163
            lt_prog_compiler_pic='-fPIC'
8164
        ;;
8165
      m68k)
8166
            # FIXME: we need at least 68020 code to build shared libraries, but
8167
            # adding the `-m68020' flag to GCC prevents building anything better,
8168
            # like `-m68040'.
8169
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8170
        ;;
8171
      esac
8172
      ;;
8173
 
8174
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8175
      # PIC is the default for these OSes.
8176
      ;;
8177
 
8178
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8179
      # This hack is so that the source file can tell whether it is being
8180
      # built for inclusion in a dll (and should export symbols for example).
8181
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8182
      # (--disable-auto-import) libraries
8183
      lt_prog_compiler_pic='-DDLL_EXPORT'
8184
      ;;
8185
 
8186
    darwin* | rhapsody*)
8187
      # PIC is the default on this platform
8188
      # Common symbols not allowed in MH_DYLIB files
8189
      lt_prog_compiler_pic='-fno-common'
8190
      ;;
8191
 
8192
    haiku*)
8193
      # PIC is the default for Haiku.
8194
      # The "-static" flag exists, but is broken.
8195
      lt_prog_compiler_static=
8196
      ;;
8197
 
8198
    hpux*)
8199
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8200
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8201
      # sets the default TLS model and affects inlining.
8202
      case $host_cpu in
8203
      hppa*64*)
8204
        # +Z the default
8205
        ;;
8206
      *)
8207
        lt_prog_compiler_pic='-fPIC'
8208
        ;;
8209
      esac
8210
      ;;
8211
 
8212
    interix[3-9]*)
8213
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8214
      # Instead, we relocate shared libraries at runtime.
8215
      ;;
8216
 
8217
    msdosdjgpp*)
8218
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8219
      # on systems that don't support them.
8220
      lt_prog_compiler_can_build_shared=no
8221
      enable_shared=no
8222
      ;;
8223
 
8224
    *nto* | *qnx*)
8225
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8226
      # it will coredump.
8227
      lt_prog_compiler_pic='-fPIC -shared'
8228
      ;;
8229
 
8230
    sysv4*MP*)
8231
      if test -d /usr/nec; then
8232
        lt_prog_compiler_pic=-Kconform_pic
8233
      fi
8234
      ;;
8235
 
8236
    *)
8237
      lt_prog_compiler_pic='-fPIC'
8238
      ;;
8239
    esac
8240
 
8241
    case $cc_basename in
8242
    nvcc*) # Cuda Compiler Driver 2.2
8243
      lt_prog_compiler_wl='-Xlinker '
8244
      lt_prog_compiler_pic='-Xcompiler -fPIC'
8245
      ;;
8246
    esac
8247
  else
8248
    # PORTME Check for flag to pass linker flags through the system compiler.
8249
    case $host_os in
8250
    aix*)
8251
      lt_prog_compiler_wl='-Wl,'
8252
      if test "$host_cpu" = ia64; then
8253
        # AIX 5 now supports IA64 processor
8254
        lt_prog_compiler_static='-Bstatic'
8255
      else
8256
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8257
      fi
8258
      ;;
8259
 
8260
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8261
      # This hack is so that the source file can tell whether it is being
8262
      # built for inclusion in a dll (and should export symbols for example).
8263
      lt_prog_compiler_pic='-DDLL_EXPORT'
8264
      ;;
8265
 
8266
    hpux9* | hpux10* | hpux11*)
8267
      lt_prog_compiler_wl='-Wl,'
8268
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8269
      # not for PA HP-UX.
8270
      case $host_cpu in
8271
      hppa*64*|ia64*)
8272
        # +Z the default
8273
        ;;
8274
      *)
8275
        lt_prog_compiler_pic='+Z'
8276
        ;;
8277
      esac
8278
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8279
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8280
      ;;
8281
 
8282
    irix5* | irix6* | nonstopux*)
8283
      lt_prog_compiler_wl='-Wl,'
8284
      # PIC (with -KPIC) is the default.
8285
      lt_prog_compiler_static='-non_shared'
8286
      ;;
8287
 
8288
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8289
      case $cc_basename in
8290
      # old Intel for x86_64 which still supported -KPIC.
8291
      ecc*)
8292
        lt_prog_compiler_wl='-Wl,'
8293
        lt_prog_compiler_pic='-KPIC'
8294
        lt_prog_compiler_static='-static'
8295
        ;;
8296
      # icc used to be incompatible with GCC.
8297
      # ICC 10 doesn't accept -KPIC any more.
8298
      icc* | ifort*)
8299
        lt_prog_compiler_wl='-Wl,'
8300
        lt_prog_compiler_pic='-fPIC'
8301
        lt_prog_compiler_static='-static'
8302
        ;;
8303
      # Lahey Fortran 8.1.
8304
      lf95*)
8305
        lt_prog_compiler_wl='-Wl,'
8306
        lt_prog_compiler_pic='--shared'
8307
        lt_prog_compiler_static='--static'
8308
        ;;
8309
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8310
        # Portland Group compilers (*not* the Pentium gcc compiler,
8311
        # which looks to be a dead project)
8312
        lt_prog_compiler_wl='-Wl,'
8313
        lt_prog_compiler_pic='-fpic'
8314
        lt_prog_compiler_static='-Bstatic'
8315
        ;;
8316
      ccc*)
8317
        lt_prog_compiler_wl='-Wl,'
8318
        # All Alpha code is PIC.
8319
        lt_prog_compiler_static='-non_shared'
8320
        ;;
8321
      xl* | bgxl* | bgf* | mpixl*)
8322
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8323
        lt_prog_compiler_wl='-Wl,'
8324
        lt_prog_compiler_pic='-qpic'
8325
        lt_prog_compiler_static='-qstaticlink'
8326
        ;;
8327
      *)
8328
        case `$CC -V 2>&1 | sed 5q` in
8329
        *Sun\ F* | *Sun*Fortran*)
8330
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
8331
          lt_prog_compiler_pic='-KPIC'
8332
          lt_prog_compiler_static='-Bstatic'
8333
          lt_prog_compiler_wl=''
8334
          ;;
8335
        *Sun\ C*)
8336
          # Sun C 5.9
8337
          lt_prog_compiler_pic='-KPIC'
8338
          lt_prog_compiler_static='-Bstatic'
8339
          lt_prog_compiler_wl='-Wl,'
8340
          ;;
8341
        esac
8342
        ;;
8343
      esac
8344
      ;;
8345
 
8346
    newsos6)
8347
      lt_prog_compiler_pic='-KPIC'
8348
      lt_prog_compiler_static='-Bstatic'
8349
      ;;
8350
 
8351
    *nto* | *qnx*)
8352
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8353
      # it will coredump.
8354
      lt_prog_compiler_pic='-fPIC -shared'
8355
      ;;
8356
 
8357
    osf3* | osf4* | osf5*)
8358
      lt_prog_compiler_wl='-Wl,'
8359
      # All OSF/1 code is PIC.
8360
      lt_prog_compiler_static='-non_shared'
8361
      ;;
8362
 
8363
    rdos*)
8364
      lt_prog_compiler_static='-non_shared'
8365
      ;;
8366
 
8367
    solaris*)
8368
      lt_prog_compiler_pic='-KPIC'
8369
      lt_prog_compiler_static='-Bstatic'
8370
      case $cc_basename in
8371
      f77* | f90* | f95*)
8372
        lt_prog_compiler_wl='-Qoption ld ';;
8373
      *)
8374
        lt_prog_compiler_wl='-Wl,';;
8375
      esac
8376
      ;;
8377
 
8378
    sunos4*)
8379
      lt_prog_compiler_wl='-Qoption ld '
8380
      lt_prog_compiler_pic='-PIC'
8381
      lt_prog_compiler_static='-Bstatic'
8382
      ;;
8383
 
8384
    sysv4 | sysv4.2uw2* | sysv4.3*)
8385
      lt_prog_compiler_wl='-Wl,'
8386
      lt_prog_compiler_pic='-KPIC'
8387
      lt_prog_compiler_static='-Bstatic'
8388
      ;;
8389
 
8390
    sysv4*MP*)
8391
      if test -d /usr/nec ;then
8392
        lt_prog_compiler_pic='-Kconform_pic'
8393
        lt_prog_compiler_static='-Bstatic'
8394
      fi
8395
      ;;
8396
 
8397
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8398
      lt_prog_compiler_wl='-Wl,'
8399
      lt_prog_compiler_pic='-KPIC'
8400
      lt_prog_compiler_static='-Bstatic'
8401
      ;;
8402
 
8403
    unicos*)
8404
      lt_prog_compiler_wl='-Wl,'
8405
      lt_prog_compiler_can_build_shared=no
8406
      ;;
8407
 
8408
    uts4*)
8409
      lt_prog_compiler_pic='-pic'
8410
      lt_prog_compiler_static='-Bstatic'
8411
      ;;
8412
 
8413
    *)
8414
      lt_prog_compiler_can_build_shared=no
8415
      ;;
8416
    esac
8417
  fi
8418
 
8419
case $host_os in
8420
  # For platforms which do not support PIC, -DPIC is meaningless:
8421
  *djgpp*)
8422
    lt_prog_compiler_pic=
8423
    ;;
8424
  *)
8425
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8426
    ;;
8427
esac
8428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8429
$as_echo "$lt_prog_compiler_pic" >&6; }
8430
 
8431
 
8432
 
8433
 
8434
 
8435
 
8436
#
8437
# Check to make sure the PIC flag actually works.
8438
#
8439
if test -n "$lt_prog_compiler_pic"; then
8440
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8441
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8442
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8443
  $as_echo_n "(cached) " >&6
8444
else
8445
  lt_cv_prog_compiler_pic_works=no
8446
   ac_outfile=conftest.$ac_objext
8447
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8448
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8449
   # Insert the option either (1) after the last *FLAGS variable, or
8450
   # (2) before a word containing "conftest.", or (3) at the end.
8451
   # Note that $ac_compile itself does not contain backslashes and begins
8452
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8453
   # The option is referenced via a variable to avoid confusing sed.
8454
   lt_compile=`echo "$ac_compile" | $SED \
8455
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8456
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8457
   -e 's:$: $lt_compiler_flag:'`
8458
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8459
   (eval "$lt_compile" 2>conftest.err)
8460
   ac_status=$?
8461
   cat conftest.err >&5
8462
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463
   if (exit $ac_status) && test -s "$ac_outfile"; then
8464
     # The compiler can only warn and ignore the option if not recognized
8465
     # So say no if there are warnings other than the usual output.
8466
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8467
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8468
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8469
       lt_cv_prog_compiler_pic_works=yes
8470
     fi
8471
   fi
8472
   $RM conftest*
8473
 
8474
fi
8475
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8476
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8477
 
8478
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8479
    case $lt_prog_compiler_pic in
8480
     "" | " "*) ;;
8481
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8482
     esac
8483
else
8484
    lt_prog_compiler_pic=
8485
     lt_prog_compiler_can_build_shared=no
8486
fi
8487
 
8488
fi
8489
 
8490
 
8491
 
8492
 
8493
 
8494
 
8495
#
8496
# Check to make sure the static flag actually works.
8497
#
8498
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8499
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8500
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8501
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8502
  $as_echo_n "(cached) " >&6
8503
else
8504
  lt_cv_prog_compiler_static_works=no
8505
   save_LDFLAGS="$LDFLAGS"
8506
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8507
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8508
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8509
     # The linker can only warn and ignore the option if not recognized
8510
     # So say no if there are warnings
8511
     if test -s conftest.err; then
8512
       # Append any errors to the config.log.
8513
       cat conftest.err 1>&5
8514
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8515
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8516
       if diff conftest.exp conftest.er2 >/dev/null; then
8517
         lt_cv_prog_compiler_static_works=yes
8518
       fi
8519
     else
8520
       lt_cv_prog_compiler_static_works=yes
8521
     fi
8522
   fi
8523
   $RM -r conftest*
8524
   LDFLAGS="$save_LDFLAGS"
8525
 
8526
fi
8527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8528
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8529
 
8530
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8531
    :
8532
else
8533
    lt_prog_compiler_static=
8534
fi
8535
 
8536
 
8537
 
8538
 
8539
 
8540
 
8541
 
8542
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8543
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8544
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8545
  $as_echo_n "(cached) " >&6
8546
else
8547
  lt_cv_prog_compiler_c_o=no
8548
   $RM -r conftest 2>/dev/null
8549
   mkdir conftest
8550
   cd conftest
8551
   mkdir out
8552
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8553
 
8554
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8555
   # Insert the option either (1) after the last *FLAGS variable, or
8556
   # (2) before a word containing "conftest.", or (3) at the end.
8557
   # Note that $ac_compile itself does not contain backslashes and begins
8558
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8559
   lt_compile=`echo "$ac_compile" | $SED \
8560
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8561
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8562
   -e 's:$: $lt_compiler_flag:'`
8563
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8564
   (eval "$lt_compile" 2>out/conftest.err)
8565
   ac_status=$?
8566
   cat out/conftest.err >&5
8567
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8569
   then
8570
     # The compiler can only warn and ignore the option if not recognized
8571
     # So say no if there are warnings
8572
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8573
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8574
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8575
       lt_cv_prog_compiler_c_o=yes
8576
     fi
8577
   fi
8578
   chmod u+w . 2>&5
8579
   $RM conftest*
8580
   # SGI C++ compiler will create directory out/ii_files/ for
8581
   # template instantiation
8582
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8583
   $RM out/* && rmdir out
8584
   cd ..
8585
   $RM -r conftest
8586
   $RM conftest*
8587
 
8588
fi
8589
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8590
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8591
 
8592
 
8593
 
8594
 
8595
 
8596
 
8597
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8598
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8599
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8600
  $as_echo_n "(cached) " >&6
8601
else
8602
  lt_cv_prog_compiler_c_o=no
8603
   $RM -r conftest 2>/dev/null
8604
   mkdir conftest
8605
   cd conftest
8606
   mkdir out
8607
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8608
 
8609
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8610
   # Insert the option either (1) after the last *FLAGS variable, or
8611
   # (2) before a word containing "conftest.", or (3) at the end.
8612
   # Note that $ac_compile itself does not contain backslashes and begins
8613
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8614
   lt_compile=`echo "$ac_compile" | $SED \
8615
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8616
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8617
   -e 's:$: $lt_compiler_flag:'`
8618
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8619
   (eval "$lt_compile" 2>out/conftest.err)
8620
   ac_status=$?
8621
   cat out/conftest.err >&5
8622
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8624
   then
8625
     # The compiler can only warn and ignore the option if not recognized
8626
     # So say no if there are warnings
8627
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8628
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8629
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8630
       lt_cv_prog_compiler_c_o=yes
8631
     fi
8632
   fi
8633
   chmod u+w . 2>&5
8634
   $RM conftest*
8635
   # SGI C++ compiler will create directory out/ii_files/ for
8636
   # template instantiation
8637
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8638
   $RM out/* && rmdir out
8639
   cd ..
8640
   $RM -r conftest
8641
   $RM conftest*
8642
 
8643
fi
8644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8645
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8646
 
8647
 
8648
 
8649
 
8650
hard_links="nottested"
8651
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8652
  # do not overwrite the value of need_locks provided by the user
8653
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8654
$as_echo_n "checking if we can lock with hard links... " >&6; }
8655
  hard_links=yes
8656
  $RM conftest*
8657
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8658
  touch conftest.a
8659
  ln conftest.a conftest.b 2>&5 || hard_links=no
8660
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8661
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8662
$as_echo "$hard_links" >&6; }
8663
  if test "$hard_links" = no; then
8664
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8665
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8666
    need_locks=warn
8667
  fi
8668
else
8669
  need_locks=no
8670
fi
8671
 
8672
 
8673
 
8674
 
8675
 
8676
 
8677
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8678
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8679
 
8680
  runpath_var=
8681
  allow_undefined_flag=
8682
  always_export_symbols=no
8683
  archive_cmds=
8684
  archive_expsym_cmds=
8685
  compiler_needs_object=no
8686
  enable_shared_with_static_runtimes=no
8687
  export_dynamic_flag_spec=
8688
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8689
  hardcode_automatic=no
8690
  hardcode_direct=no
8691
  hardcode_direct_absolute=no
8692
  hardcode_libdir_flag_spec=
8693
  hardcode_libdir_flag_spec_ld=
8694
  hardcode_libdir_separator=
8695
  hardcode_minus_L=no
8696
  hardcode_shlibpath_var=unsupported
8697
  inherit_rpath=no
8698
  link_all_deplibs=unknown
8699
  module_cmds=
8700
  module_expsym_cmds=
8701
  old_archive_from_new_cmds=
8702
  old_archive_from_expsyms_cmds=
8703
  thread_safe_flag_spec=
8704
  whole_archive_flag_spec=
8705
  # include_expsyms should be a list of space-separated symbols to be *always*
8706
  # included in the symbol list
8707
  include_expsyms=
8708
  # exclude_expsyms can be an extended regexp of symbols to exclude
8709
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8710
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8711
  # as well as any symbol that contains `d'.
8712
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8713
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8714
  # platforms (ab)use it in PIC code, but their linkers get confused if
8715
  # the symbol is explicitly referenced.  Since portable code cannot
8716
  # rely on this symbol name, it's probably fine to never include it in
8717
  # preloaded symbol tables.
8718
  # Exclude shared library initialization/finalization symbols.
8719
  extract_expsyms_cmds=
8720
 
8721
  case $host_os in
8722
  cygwin* | mingw* | pw32* | cegcc*)
8723
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8724
    # When not using gcc, we currently assume that we are using
8725
    # Microsoft Visual C++.
8726
    if test "$GCC" != yes; then
8727
      with_gnu_ld=no
8728
    fi
8729
    ;;
8730
  interix*)
8731
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8732
    with_gnu_ld=yes
8733
    ;;
8734
  openbsd*)
8735
    with_gnu_ld=no
8736
    ;;
8737
  esac
8738
 
8739
  ld_shlibs=yes
8740
 
8741
  # On some targets, GNU ld is compatible enough with the native linker
8742
  # that we're better off using the native interface for both.
8743
  lt_use_gnu_ld_interface=no
8744
  if test "$with_gnu_ld" = yes; then
8745
    case $host_os in
8746
      aix*)
8747
        # The AIX port of GNU ld has always aspired to compatibility
8748
        # with the native linker.  However, as the warning in the GNU ld
8749
        # block says, versions before 2.19.5* couldn't really create working
8750
        # shared libraries, regardless of the interface used.
8751
        case `$LD -v 2>&1` in
8752
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8753
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8754
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8755
          *)
8756
            lt_use_gnu_ld_interface=yes
8757
            ;;
8758
        esac
8759
        ;;
8760
      *)
8761
        lt_use_gnu_ld_interface=yes
8762
        ;;
8763
    esac
8764
  fi
8765
 
8766
  if test "$lt_use_gnu_ld_interface" = yes; then
8767
    # If archive_cmds runs LD, not CC, wlarc should be empty
8768
    wlarc='${wl}'
8769
 
8770
    # Set some defaults for GNU ld with shared library support. These
8771
    # are reset later if shared libraries are not supported. Putting them
8772
    # here allows them to be overridden if necessary.
8773
    runpath_var=LD_RUN_PATH
8774
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8775
    export_dynamic_flag_spec='${wl}--export-dynamic'
8776
    # ancient GNU ld didn't support --whole-archive et. al.
8777
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8778
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8779
    else
8780
      whole_archive_flag_spec=
8781
    fi
8782
    supports_anon_versioning=no
8783
    case `$LD -v 2>&1` in
8784
      *GNU\ gold*) supports_anon_versioning=yes ;;
8785
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8786
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8787
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8788
      *\ 2.11.*) ;; # other 2.11 versions
8789
      *) supports_anon_versioning=yes ;;
8790
    esac
8791
 
8792
    # See if GNU ld supports shared libraries.
8793
    case $host_os in
8794
    aix[3-9]*)
8795
      # On AIX/PPC, the GNU linker is very broken
8796
      if test "$host_cpu" != ia64; then
8797
        ld_shlibs=no
8798
        cat <<_LT_EOF 1>&2
8799
 
8800
*** Warning: the GNU linker, at least up to release 2.19, is reported
8801
*** to be unable to reliably create shared libraries on AIX.
8802
*** Therefore, libtool is disabling shared libraries support.  If you
8803
*** really care for shared libraries, you may want to install binutils
8804
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8805
*** You will then need to restart the configuration process.
8806
 
8807
_LT_EOF
8808
      fi
8809
      ;;
8810
 
8811
    amigaos*)
8812
      case $host_cpu in
8813
      powerpc)
8814
            # see comment about AmigaOS4 .so support
8815
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8816
            archive_expsym_cmds=''
8817
        ;;
8818
      m68k)
8819
            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)'
8820
            hardcode_libdir_flag_spec='-L$libdir'
8821
            hardcode_minus_L=yes
8822
        ;;
8823
      esac
8824
      ;;
8825
 
8826
    beos*)
8827
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8828
        allow_undefined_flag=unsupported
8829
        # Joseph Beckenbach  says some releases of gcc
8830
        # support --undefined.  This deserves some investigation.  FIXME
8831
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832
      else
8833
        ld_shlibs=no
8834
      fi
8835
      ;;
8836
 
8837
    cygwin* | mingw* | pw32* | cegcc*)
8838
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8839
      # as there is no search path for DLLs.
8840
      hardcode_libdir_flag_spec='-L$libdir'
8841
      export_dynamic_flag_spec='${wl}--export-all-symbols'
8842
      allow_undefined_flag=unsupported
8843
      always_export_symbols=no
8844
      enable_shared_with_static_runtimes=yes
8845
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8846
 
8847
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8848
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8849
        # If the export-symbols file already is a .def file (1st line
8850
        # is EXPORTS), use it as is; otherwise, prepend...
8851
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8852
          cp $export_symbols $output_objdir/$soname.def;
8853
        else
8854
          echo EXPORTS > $output_objdir/$soname.def;
8855
          cat $export_symbols >> $output_objdir/$soname.def;
8856
        fi~
8857
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8858
      else
8859
        ld_shlibs=no
8860
      fi
8861
      ;;
8862
 
8863
    haiku*)
8864
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8865
      link_all_deplibs=yes
8866
      ;;
8867
 
8868
    interix[3-9]*)
8869
      hardcode_direct=no
8870
      hardcode_shlibpath_var=no
8871
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8872
      export_dynamic_flag_spec='${wl}-E'
8873
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8874
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8875
      # default) and relocated if they conflict, which is a slow very memory
8876
      # consuming and fragmenting process.  To avoid this, we pick a random,
8877
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8878
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8879
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8880
      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'
8881
      ;;
8882
 
8883
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8884
      tmp_diet=no
8885
      if test "$host_os" = linux-dietlibc; then
8886
        case $cc_basename in
8887
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8888
        esac
8889
      fi
8890
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8891
         && test "$tmp_diet" = no
8892
      then
8893
        tmp_addflag=
8894
        tmp_sharedflag='-shared'
8895
        case $cc_basename,$host_cpu in
8896
        pgcc*)                          # Portland Group C compiler
8897
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8898
          tmp_addflag=' $pic_flag'
8899
          ;;
8900
        pgf77* | pgf90* | pgf95* | pgfortran*)
8901
                                        # Portland Group f77 and f90 compilers
8902
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8903
          tmp_addflag=' $pic_flag -Mnomain' ;;
8904
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8905
          tmp_addflag=' -i_dynamic' ;;
8906
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8907
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8908
        ifc* | ifort*)                  # Intel Fortran compiler
8909
          tmp_addflag=' -nofor_main' ;;
8910
        lf95*)                          # Lahey Fortran 8.1
8911
          whole_archive_flag_spec=
8912
          tmp_sharedflag='--shared' ;;
8913
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8914
          tmp_sharedflag='-qmkshrobj'
8915
          tmp_addflag= ;;
8916
        nvcc*)  # Cuda Compiler Driver 2.2
8917
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8918
          compiler_needs_object=yes
8919
          ;;
8920
        esac
8921
        case `$CC -V 2>&1 | sed 5q` in
8922
        *Sun\ C*)                       # Sun C 5.9
8923
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8924
          compiler_needs_object=yes
8925
          tmp_sharedflag='-G' ;;
8926
        *Sun\ F*)                       # Sun Fortran 8.3
8927
          tmp_sharedflag='-G' ;;
8928
        esac
8929
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8930
 
8931
        if test "x$supports_anon_versioning" = xyes; then
8932
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8933
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8934
            echo "local: *; };" >> $output_objdir/$libname.ver~
8935
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8936
        fi
8937
 
8938
        case $cc_basename in
8939
        xlf* | bgf* | bgxlf* | mpixlf*)
8940
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8941
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8942
          hardcode_libdir_flag_spec=
8943
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8944
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8945
          if test "x$supports_anon_versioning" = xyes; then
8946
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8947
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8948
              echo "local: *; };" >> $output_objdir/$libname.ver~
8949
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8950
          fi
8951
          ;;
8952
        esac
8953
      else
8954
        ld_shlibs=no
8955
      fi
8956
      ;;
8957
 
8958
    netbsd*)
8959
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8960
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8961
        wlarc=
8962
      else
8963
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8964
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8965
      fi
8966
      ;;
8967
 
8968
    solaris*)
8969
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8970
        ld_shlibs=no
8971
        cat <<_LT_EOF 1>&2
8972
 
8973
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8974
*** create shared libraries on Solaris systems.  Therefore, libtool
8975
*** is disabling shared libraries support.  We urge you to upgrade GNU
8976
*** binutils to release 2.9.1 or newer.  Another option is to modify
8977
*** your PATH or compiler configuration so that the native linker is
8978
*** used, and then restart.
8979
 
8980
_LT_EOF
8981
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8982
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8983
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8984
      else
8985
        ld_shlibs=no
8986
      fi
8987
      ;;
8988
 
8989
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8990
      case `$LD -v 2>&1` in
8991
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8992
        ld_shlibs=no
8993
        cat <<_LT_EOF 1>&2
8994
 
8995
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8996
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8997
*** is disabling shared libraries support.  We urge you to upgrade GNU
8998
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8999
*** your PATH or compiler configuration so that the native linker is
9000
*** used, and then restart.
9001
 
9002
_LT_EOF
9003
        ;;
9004
        *)
9005
          # For security reasons, it is highly recommended that you always
9006
          # use absolute paths for naming shared libraries, and exclude the
9007
          # DT_RUNPATH tag from executables and libraries.  But doing so
9008
          # requires that you compile everything twice, which is a pain.
9009
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9010
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9011
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9012
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9013
          else
9014
            ld_shlibs=no
9015
          fi
9016
        ;;
9017
      esac
9018
      ;;
9019
 
9020
    sunos4*)
9021
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9022
      wlarc=
9023
      hardcode_direct=yes
9024
      hardcode_shlibpath_var=no
9025
      ;;
9026
 
9027
    *)
9028
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9029
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9030
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9031
      else
9032
        ld_shlibs=no
9033
      fi
9034
      ;;
9035
    esac
9036
 
9037
    if test "$ld_shlibs" = no; then
9038
      runpath_var=
9039
      hardcode_libdir_flag_spec=
9040
      export_dynamic_flag_spec=
9041
      whole_archive_flag_spec=
9042
    fi
9043
  else
9044
    # PORTME fill in a description of your system's linker (not GNU ld)
9045
    case $host_os in
9046
    aix3*)
9047
      allow_undefined_flag=unsupported
9048
      always_export_symbols=yes
9049
      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'
9050
      # Note: this linker hardcodes the directories in LIBPATH if there
9051
      # are no directories specified by -L.
9052
      hardcode_minus_L=yes
9053
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9054
        # Neither direct hardcoding nor static linking is supported with a
9055
        # broken collect2.
9056
        hardcode_direct=unsupported
9057
      fi
9058
      ;;
9059
 
9060
    aix[4-9]*)
9061
      if test "$host_cpu" = ia64; then
9062
        # On IA64, the linker does run time linking by default, so we don't
9063
        # have to do anything special.
9064
        aix_use_runtimelinking=no
9065
        exp_sym_flag='-Bexport'
9066
        no_entry_flag=""
9067
      else
9068
        # If we're using GNU nm, then we don't want the "-C" option.
9069
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9070
        # Also, AIX nm treats weak defined symbols like other global
9071
        # defined symbols, whereas GNU nm marks them as "W".
9072
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9073
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9074
        else
9075
          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'
9076
        fi
9077
        aix_use_runtimelinking=no
9078
 
9079
        # Test if we are trying to use run time linking or normal
9080
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9081
        # need to do runtime linking.
9082
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9083
          for ld_flag in $LDFLAGS; do
9084
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9085
            aix_use_runtimelinking=yes
9086
            break
9087
          fi
9088
          done
9089
          ;;
9090
        esac
9091
 
9092
        exp_sym_flag='-bexport'
9093
        no_entry_flag='-bnoentry'
9094
      fi
9095
 
9096
      # When large executables or shared objects are built, AIX ld can
9097
      # have problems creating the table of contents.  If linking a library
9098
      # or program results in "error TOC overflow" add -mminimal-toc to
9099
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9100
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9101
 
9102
      archive_cmds=''
9103
      hardcode_direct=yes
9104
      hardcode_direct_absolute=yes
9105
      hardcode_libdir_separator=':'
9106
      link_all_deplibs=yes
9107
      file_list_spec='${wl}-f,'
9108
 
9109
      if test "$GCC" = yes; then
9110
        case $host_os in aix4.[012]|aix4.[012].*)
9111
        # We only want to do this on AIX 4.2 and lower, the check
9112
        # below for broken collect2 doesn't work under 4.3+
9113
          collect2name=`${CC} -print-prog-name=collect2`
9114
          if test -f "$collect2name" &&
9115
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9116
          then
9117
          # We have reworked collect2
9118
          :
9119
          else
9120
          # We have old collect2
9121
          hardcode_direct=unsupported
9122
          # It fails to find uninstalled libraries when the uninstalled
9123
          # path is not listed in the libpath.  Setting hardcode_minus_L
9124
          # to unsupported forces relinking
9125
          hardcode_minus_L=yes
9126
          hardcode_libdir_flag_spec='-L$libdir'
9127
          hardcode_libdir_separator=
9128
          fi
9129
          ;;
9130
        esac
9131
        shared_flag='-shared'
9132
        if test "$aix_use_runtimelinking" = yes; then
9133
          shared_flag="$shared_flag "'${wl}-G'
9134
        fi
9135
      else
9136
        # not using gcc
9137
        if test "$host_cpu" = ia64; then
9138
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9139
        # chokes on -Wl,-G. The following line is correct:
9140
          shared_flag='-G'
9141
        else
9142
          if test "$aix_use_runtimelinking" = yes; then
9143
            shared_flag='${wl}-G'
9144
          else
9145
            shared_flag='${wl}-bM:SRE'
9146
          fi
9147
        fi
9148
      fi
9149
 
9150
      export_dynamic_flag_spec='${wl}-bexpall'
9151
      # It seems that -bexpall does not export symbols beginning with
9152
      # underscore (_), so it is better to generate a list of symbols to export.
9153
      always_export_symbols=yes
9154
      if test "$aix_use_runtimelinking" = yes; then
9155
        # Warning - without using the other runtime loading flags (-brtl),
9156
        # -berok will link without error, but may produce a broken library.
9157
        allow_undefined_flag='-berok'
9158
        # Determine the default libpath from the value encoded in an
9159
        # empty executable.
9160
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161
/* end confdefs.h.  */
9162
 
9163
int
9164
main ()
9165
{
9166
 
9167
  ;
9168
  return 0;
9169
}
9170
_ACEOF
9171
if ac_fn_c_try_link "$LINENO"; then :
9172
 
9173
lt_aix_libpath_sed='
9174
    /Import File Strings/,/^$/ {
9175
        /^0/ {
9176
            s/^0  *\(.*\)$/\1/
9177
            p
9178
        }
9179
    }'
9180
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9181
# Check for a 64-bit object if we didn't find anything.
9182
if test -z "$aix_libpath"; then
9183
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9184
fi
9185
fi
9186
rm -f core conftest.err conftest.$ac_objext \
9187
    conftest$ac_exeext conftest.$ac_ext
9188
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9189
 
9190
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9191
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9192
      else
9193
        if test "$host_cpu" = ia64; then
9194
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9195
          allow_undefined_flag="-z nodefs"
9196
          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"
9197
        else
9198
         # Determine the default libpath from the value encoded in an
9199
         # empty executable.
9200
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201
/* end confdefs.h.  */
9202
 
9203
int
9204
main ()
9205
{
9206
 
9207
  ;
9208
  return 0;
9209
}
9210
_ACEOF
9211
if ac_fn_c_try_link "$LINENO"; then :
9212
 
9213
lt_aix_libpath_sed='
9214
    /Import File Strings/,/^$/ {
9215
        /^0/ {
9216
            s/^0  *\(.*\)$/\1/
9217
            p
9218
        }
9219
    }'
9220
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9221
# Check for a 64-bit object if we didn't find anything.
9222
if test -z "$aix_libpath"; then
9223
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9224
fi
9225
fi
9226
rm -f core conftest.err conftest.$ac_objext \
9227
    conftest$ac_exeext conftest.$ac_ext
9228
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9229
 
9230
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9231
          # Warning - without using the other run time loading flags,
9232
          # -berok will link without error, but may produce a broken library.
9233
          no_undefined_flag=' ${wl}-bernotok'
9234
          allow_undefined_flag=' ${wl}-berok'
9235
          if test "$with_gnu_ld" = yes; then
9236
            # We only use this code for GNU lds that support --whole-archive.
9237
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9238
          else
9239
            # Exported symbols can be pulled into shared objects from archives
9240
            whole_archive_flag_spec='$convenience'
9241
          fi
9242
          archive_cmds_need_lc=yes
9243
          # This is similar to how AIX traditionally builds its shared libraries.
9244
          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'
9245
        fi
9246
      fi
9247
      ;;
9248
 
9249
    amigaos*)
9250
      case $host_cpu in
9251
      powerpc)
9252
            # see comment about AmigaOS4 .so support
9253
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9254
            archive_expsym_cmds=''
9255
        ;;
9256
      m68k)
9257
            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)'
9258
            hardcode_libdir_flag_spec='-L$libdir'
9259
            hardcode_minus_L=yes
9260
        ;;
9261
      esac
9262
      ;;
9263
 
9264
    bsdi[45]*)
9265
      export_dynamic_flag_spec=-rdynamic
9266
      ;;
9267
 
9268
    cygwin* | mingw* | pw32* | cegcc*)
9269
      # When not using gcc, we currently assume that we are using
9270
      # Microsoft Visual C++.
9271
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9272
      # no search path for DLLs.
9273
      hardcode_libdir_flag_spec=' '
9274
      allow_undefined_flag=unsupported
9275
      # Tell ltmain to make .lib files, not .a files.
9276
      libext=lib
9277
      # Tell ltmain to make .dll files, not .so files.
9278
      shrext_cmds=".dll"
9279
      # FIXME: Setting linknames here is a bad hack.
9280
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9281
      # The linker will automatically build a .lib file if we build a DLL.
9282
      old_archive_from_new_cmds='true'
9283
      # FIXME: Should let the user specify the lib program.
9284
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9285
      fix_srcfile_path='`cygpath -w "$srcfile"`'
9286
      enable_shared_with_static_runtimes=yes
9287
      ;;
9288
 
9289
    darwin* | rhapsody*)
9290
 
9291
 
9292
  archive_cmds_need_lc=no
9293
  hardcode_direct=no
9294
  hardcode_automatic=yes
9295
  hardcode_shlibpath_var=unsupported
9296
  if test "$lt_cv_ld_force_load" = "yes"; then
9297
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9298
  else
9299
    whole_archive_flag_spec=''
9300
  fi
9301
  link_all_deplibs=yes
9302
  allow_undefined_flag="$_lt_dar_allow_undefined"
9303
  case $cc_basename in
9304
     ifort*) _lt_dar_can_shared=yes ;;
9305
     *) _lt_dar_can_shared=$GCC ;;
9306
  esac
9307
  if test "$_lt_dar_can_shared" = "yes"; then
9308
    output_verbose_link_cmd=func_echo_all
9309
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9310
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9311
    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}"
9312
    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}"
9313
 
9314
  else
9315
  ld_shlibs=no
9316
  fi
9317
 
9318
      ;;
9319
 
9320
    dgux*)
9321
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9322
      hardcode_libdir_flag_spec='-L$libdir'
9323
      hardcode_shlibpath_var=no
9324
      ;;
9325
 
9326
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9327
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9328
    # does not break anything, and helps significantly (at the cost of a little
9329
    # extra space).
9330
    freebsd2.2*)
9331
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9332
      hardcode_libdir_flag_spec='-R$libdir'
9333
      hardcode_direct=yes
9334
      hardcode_shlibpath_var=no
9335
      ;;
9336
 
9337
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9338
    freebsd2*)
9339
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9340
      hardcode_direct=yes
9341
      hardcode_minus_L=yes
9342
      hardcode_shlibpath_var=no
9343
      ;;
9344
 
9345
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9346
    freebsd* | dragonfly*)
9347
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9348
      hardcode_libdir_flag_spec='-R$libdir'
9349
      hardcode_direct=yes
9350
      hardcode_shlibpath_var=no
9351
      ;;
9352
 
9353
    hpux9*)
9354
      if test "$GCC" = yes; then
9355
        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'
9356
      else
9357
        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'
9358
      fi
9359
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9360
      hardcode_libdir_separator=:
9361
      hardcode_direct=yes
9362
 
9363
      # hardcode_minus_L: Not really in the search PATH,
9364
      # but as the default location of the library.
9365
      hardcode_minus_L=yes
9366
      export_dynamic_flag_spec='${wl}-E'
9367
      ;;
9368
 
9369
    hpux10*)
9370
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9371
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9372
      else
9373
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9374
      fi
9375
      if test "$with_gnu_ld" = no; then
9376
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9377
        hardcode_libdir_flag_spec_ld='+b $libdir'
9378
        hardcode_libdir_separator=:
9379
        hardcode_direct=yes
9380
        hardcode_direct_absolute=yes
9381
        export_dynamic_flag_spec='${wl}-E'
9382
        # hardcode_minus_L: Not really in the search PATH,
9383
        # but as the default location of the library.
9384
        hardcode_minus_L=yes
9385
      fi
9386
      ;;
9387
 
9388
    hpux11*)
9389
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9390
        case $host_cpu in
9391
        hppa*64*)
9392
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9393
          ;;
9394
        ia64*)
9395
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9396
          ;;
9397
        *)
9398
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9399
          ;;
9400
        esac
9401
      else
9402
        case $host_cpu in
9403
        hppa*64*)
9404
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9405
          ;;
9406
        ia64*)
9407
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9408
          ;;
9409
        *)
9410
 
9411
          # Older versions of the 11.00 compiler do not understand -b yet
9412
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9413
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9414
$as_echo_n "checking if $CC understands -b... " >&6; }
9415
if test "${lt_cv_prog_compiler__b+set}" = set; then :
9416
  $as_echo_n "(cached) " >&6
9417
else
9418
  lt_cv_prog_compiler__b=no
9419
   save_LDFLAGS="$LDFLAGS"
9420
   LDFLAGS="$LDFLAGS -b"
9421
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9422
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9423
     # The linker can only warn and ignore the option if not recognized
9424
     # So say no if there are warnings
9425
     if test -s conftest.err; then
9426
       # Append any errors to the config.log.
9427
       cat conftest.err 1>&5
9428
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9429
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9430
       if diff conftest.exp conftest.er2 >/dev/null; then
9431
         lt_cv_prog_compiler__b=yes
9432
       fi
9433
     else
9434
       lt_cv_prog_compiler__b=yes
9435
     fi
9436
   fi
9437
   $RM -r conftest*
9438
   LDFLAGS="$save_LDFLAGS"
9439
 
9440
fi
9441
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9442
$as_echo "$lt_cv_prog_compiler__b" >&6; }
9443
 
9444
if test x"$lt_cv_prog_compiler__b" = xyes; then
9445
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9446
else
9447
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9448
fi
9449
 
9450
          ;;
9451
        esac
9452
      fi
9453
      if test "$with_gnu_ld" = no; then
9454
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9455
        hardcode_libdir_separator=:
9456
 
9457
        case $host_cpu in
9458
        hppa*64*|ia64*)
9459
          hardcode_direct=no
9460
          hardcode_shlibpath_var=no
9461
          ;;
9462
        *)
9463
          hardcode_direct=yes
9464
          hardcode_direct_absolute=yes
9465
          export_dynamic_flag_spec='${wl}-E'
9466
 
9467
          # hardcode_minus_L: Not really in the search PATH,
9468
          # but as the default location of the library.
9469
          hardcode_minus_L=yes
9470
          ;;
9471
        esac
9472
      fi
9473
      ;;
9474
 
9475
    irix5* | irix6* | nonstopux*)
9476
      if test "$GCC" = yes; then
9477
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9478
        # Try to use the -exported_symbol ld option, if it does not
9479
        # work, assume that -exports_file does not work either and
9480
        # implicitly export all symbols.
9481
        save_LDFLAGS="$LDFLAGS"
9482
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9483
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484
/* end confdefs.h.  */
9485
int foo(void) {}
9486
_ACEOF
9487
if ac_fn_c_try_link "$LINENO"; then :
9488
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9489
 
9490
fi
9491
rm -f core conftest.err conftest.$ac_objext \
9492
    conftest$ac_exeext conftest.$ac_ext
9493
        LDFLAGS="$save_LDFLAGS"
9494
      else
9495
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9496
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9497
      fi
9498
      archive_cmds_need_lc='no'
9499
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9500
      hardcode_libdir_separator=:
9501
      inherit_rpath=yes
9502
      link_all_deplibs=yes
9503
      ;;
9504
 
9505
    netbsd*)
9506
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9507
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9508
      else
9509
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9510
      fi
9511
      hardcode_libdir_flag_spec='-R$libdir'
9512
      hardcode_direct=yes
9513
      hardcode_shlibpath_var=no
9514
      ;;
9515
 
9516
    newsos6)
9517
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9518
      hardcode_direct=yes
9519
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9520
      hardcode_libdir_separator=:
9521
      hardcode_shlibpath_var=no
9522
      ;;
9523
 
9524
    *nto* | *qnx*)
9525
      ;;
9526
 
9527
    openbsd*)
9528
      if test -f /usr/libexec/ld.so; then
9529
        hardcode_direct=yes
9530
        hardcode_shlibpath_var=no
9531
        hardcode_direct_absolute=yes
9532
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9533
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9534
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9535
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9536
          export_dynamic_flag_spec='${wl}-E'
9537
        else
9538
          case $host_os in
9539
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9540
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9541
             hardcode_libdir_flag_spec='-R$libdir'
9542
             ;;
9543
           *)
9544
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9545
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9546
             ;;
9547
          esac
9548
        fi
9549
      else
9550
        ld_shlibs=no
9551
      fi
9552
      ;;
9553
 
9554
    os2*)
9555
      hardcode_libdir_flag_spec='-L$libdir'
9556
      hardcode_minus_L=yes
9557
      allow_undefined_flag=unsupported
9558
      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'
9559
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9560
      ;;
9561
 
9562
    osf3*)
9563
      if test "$GCC" = yes; then
9564
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9565
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9566
      else
9567
        allow_undefined_flag=' -expect_unresolved \*'
9568
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9569
      fi
9570
      archive_cmds_need_lc='no'
9571
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9572
      hardcode_libdir_separator=:
9573
      ;;
9574
 
9575
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9576
      if test "$GCC" = yes; then
9577
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9578
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9579
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9580
      else
9581
        allow_undefined_flag=' -expect_unresolved \*'
9582
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9583
        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~
9584
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9585
 
9586
        # Both c and cxx compiler support -rpath directly
9587
        hardcode_libdir_flag_spec='-rpath $libdir'
9588
      fi
9589
      archive_cmds_need_lc='no'
9590
      hardcode_libdir_separator=:
9591
      ;;
9592
 
9593
    solaris*)
9594
      no_undefined_flag=' -z defs'
9595
      if test "$GCC" = yes; then
9596
        wlarc='${wl}'
9597
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9598
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9599
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9600
      else
9601
        case `$CC -V 2>&1` in
9602
        *"Compilers 5.0"*)
9603
          wlarc=''
9604
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9605
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9606
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9607
          ;;
9608
        *)
9609
          wlarc='${wl}'
9610
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9611
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9612
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9613
          ;;
9614
        esac
9615
      fi
9616
      hardcode_libdir_flag_spec='-R$libdir'
9617
      hardcode_shlibpath_var=no
9618
      case $host_os in
9619
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9620
      *)
9621
        # The compiler driver will combine and reorder linker options,
9622
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9623
        # but is careful enough not to reorder.
9624
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9625
        if test "$GCC" = yes; then
9626
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9627
        else
9628
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9629
        fi
9630
        ;;
9631
      esac
9632
      link_all_deplibs=yes
9633
      ;;
9634
 
9635
    sunos4*)
9636
      if test "x$host_vendor" = xsequent; then
9637
        # Use $CC to link under sequent, because it throws in some extra .o
9638
        # files that make .init and .fini sections work.
9639
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9640
      else
9641
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9642
      fi
9643
      hardcode_libdir_flag_spec='-L$libdir'
9644
      hardcode_direct=yes
9645
      hardcode_minus_L=yes
9646
      hardcode_shlibpath_var=no
9647
      ;;
9648
 
9649
    sysv4)
9650
      case $host_vendor in
9651
        sni)
9652
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9653
          hardcode_direct=yes # is this really true???
9654
        ;;
9655
        siemens)
9656
          ## LD is ld it makes a PLAMLIB
9657
          ## CC just makes a GrossModule.
9658
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9659
          reload_cmds='$CC -r -o $output$reload_objs'
9660
          hardcode_direct=no
9661
        ;;
9662
        motorola)
9663
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9664
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9665
        ;;
9666
      esac
9667
      runpath_var='LD_RUN_PATH'
9668
      hardcode_shlibpath_var=no
9669
      ;;
9670
 
9671
    sysv4.3*)
9672
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9673
      hardcode_shlibpath_var=no
9674
      export_dynamic_flag_spec='-Bexport'
9675
      ;;
9676
 
9677
    sysv4*MP*)
9678
      if test -d /usr/nec; then
9679
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9680
        hardcode_shlibpath_var=no
9681
        runpath_var=LD_RUN_PATH
9682
        hardcode_runpath_var=yes
9683
        ld_shlibs=yes
9684
      fi
9685
      ;;
9686
 
9687
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9688
      no_undefined_flag='${wl}-z,text'
9689
      archive_cmds_need_lc=no
9690
      hardcode_shlibpath_var=no
9691
      runpath_var='LD_RUN_PATH'
9692
 
9693
      if test "$GCC" = yes; then
9694
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9695
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9696
      else
9697
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9698
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699
      fi
9700
      ;;
9701
 
9702
    sysv5* | sco3.2v5* | sco5v6*)
9703
      # Note: We can NOT use -z defs as we might desire, because we do not
9704
      # link with -lc, and that would cause any symbols used from libc to
9705
      # always be unresolved, which means just about no library would
9706
      # ever link correctly.  If we're not using GNU ld we use -z text
9707
      # though, which does catch some bad symbols but isn't as heavy-handed
9708
      # as -z defs.
9709
      no_undefined_flag='${wl}-z,text'
9710
      allow_undefined_flag='${wl}-z,nodefs'
9711
      archive_cmds_need_lc=no
9712
      hardcode_shlibpath_var=no
9713
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9714
      hardcode_libdir_separator=':'
9715
      link_all_deplibs=yes
9716
      export_dynamic_flag_spec='${wl}-Bexport'
9717
      runpath_var='LD_RUN_PATH'
9718
 
9719
      if test "$GCC" = yes; then
9720
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722
      else
9723
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9724
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725
      fi
9726
      ;;
9727
 
9728
    uts4*)
9729
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9730
      hardcode_libdir_flag_spec='-L$libdir'
9731
      hardcode_shlibpath_var=no
9732
      ;;
9733
 
9734
    *)
9735
      ld_shlibs=no
9736
      ;;
9737
    esac
9738
 
9739
    if test x$host_vendor = xsni; then
9740
      case $host in
9741
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9742
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9743
        ;;
9744
      esac
9745
    fi
9746
  fi
9747
 
9748
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9749
$as_echo "$ld_shlibs" >&6; }
9750
test "$ld_shlibs" = no && can_build_shared=no
9751
 
9752
with_gnu_ld=$with_gnu_ld
9753
 
9754
 
9755
 
9756
 
9757
 
9758
 
9759
 
9760
 
9761
 
9762
 
9763
 
9764
 
9765
 
9766
 
9767
 
9768
#
9769
# Do we need to explicitly link libc?
9770
#
9771
case "x$archive_cmds_need_lc" in
9772
x|xyes)
9773
  # Assume -lc should be added
9774
  archive_cmds_need_lc=yes
9775
 
9776
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9777
    case $archive_cmds in
9778
    *'~'*)
9779
      # FIXME: we may have to deal with multi-command sequences.
9780
      ;;
9781
    '$CC '*)
9782
      # Test whether the compiler implicitly links with -lc since on some
9783
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9784
      # to ld, don't add -lc before -lgcc.
9785
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9786
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9787
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9788
  $as_echo_n "(cached) " >&6
9789
else
9790
  $RM conftest*
9791
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9792
 
9793
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9794
  (eval $ac_compile) 2>&5
9795
  ac_status=$?
9796
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9797
  test $ac_status = 0; } 2>conftest.err; then
9798
          soname=conftest
9799
          lib=conftest
9800
          libobjs=conftest.$ac_objext
9801
          deplibs=
9802
          wl=$lt_prog_compiler_wl
9803
          pic_flag=$lt_prog_compiler_pic
9804
          compiler_flags=-v
9805
          linker_flags=-v
9806
          verstring=
9807
          output_objdir=.
9808
          libname=conftest
9809
          lt_save_allow_undefined_flag=$allow_undefined_flag
9810
          allow_undefined_flag=
9811
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9812
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9813
  ac_status=$?
9814
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9815
  test $ac_status = 0; }
9816
          then
9817
            lt_cv_archive_cmds_need_lc=no
9818
          else
9819
            lt_cv_archive_cmds_need_lc=yes
9820
          fi
9821
          allow_undefined_flag=$lt_save_allow_undefined_flag
9822
        else
9823
          cat conftest.err 1>&5
9824
        fi
9825
        $RM conftest*
9826
 
9827
fi
9828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9829
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9830
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9831
      ;;
9832
    esac
9833
  fi
9834
  ;;
9835
esac
9836
 
9837
 
9838
 
9839
 
9840
 
9841
 
9842
 
9843
 
9844
 
9845
 
9846
 
9847
 
9848
 
9849
 
9850
 
9851
 
9852
 
9853
 
9854
 
9855
 
9856
 
9857
 
9858
 
9859
 
9860
 
9861
 
9862
 
9863
 
9864
 
9865
 
9866
 
9867
 
9868
 
9869
 
9870
 
9871
 
9872
 
9873
 
9874
 
9875
 
9876
 
9877
 
9878
 
9879
 
9880
 
9881
 
9882
 
9883
 
9884
 
9885
 
9886
 
9887
 
9888
 
9889
 
9890
 
9891
 
9892
 
9893
 
9894
 
9895
 
9896
 
9897
 
9898
 
9899
 
9900
 
9901
 
9902
 
9903
 
9904
 
9905
 
9906
 
9907
 
9908
 
9909
 
9910
 
9911
 
9912
 
9913
 
9914
 
9915
 
9916
 
9917
 
9918
 
9919
 
9920
 
9921
 
9922
 
9923
 
9924
 
9925
 
9926
 
9927
 
9928
 
9929
 
9930
 
9931
 
9932
 
9933
 
9934
 
9935
 
9936
 
9937
 
9938
 
9939
 
9940
 
9941
 
9942
 
9943
 
9944
 
9945
 
9946
 
9947
 
9948
 
9949
 
9950
 
9951
 
9952
 
9953
 
9954
 
9955
 
9956
 
9957
 
9958
 
9959
 
9960
 
9961
 
9962
 
9963
 
9964
 
9965
 
9966
 
9967
 
9968
 
9969
 
9970
 
9971
 
9972
 
9973
 
9974
 
9975
 
9976
 
9977
 
9978
 
9979
 
9980
 
9981
 
9982
 
9983
 
9984
 
9985
 
9986
 
9987
 
9988
 
9989
 
9990
 
9991
 
9992
 
9993
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9994
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9995
 
9996
if test "$GCC" = yes; then
9997
  case $host_os in
9998
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9999
    *) lt_awk_arg="/^libraries:/" ;;
10000
  esac
10001
  case $host_os in
10002
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10003
    *) lt_sed_strip_eq="s,=/,/,g" ;;
10004
  esac
10005
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10006
  case $lt_search_path_spec in
10007
  *\;*)
10008
    # if the path contains ";" then we assume it to be the separator
10009
    # otherwise default to the standard path separator (i.e. ":") - it is
10010
    # assumed that no part of a normal pathname contains ";" but that should
10011
    # okay in the real world where ";" in dirpaths is itself problematic.
10012
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10013
    ;;
10014
  *)
10015
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10016
    ;;
10017
  esac
10018
  # Ok, now we have the path, separated by spaces, we can step through it
10019
  # and add multilib dir if necessary.
10020
  lt_tmp_lt_search_path_spec=
10021
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10022
  for lt_sys_path in $lt_search_path_spec; do
10023
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10024
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10025
    else
10026
      test -d "$lt_sys_path" && \
10027
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10028
    fi
10029
  done
10030
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10031
BEGIN {RS=" "; FS="/|\n";} {
10032
  lt_foo="";
10033
  lt_count=0;
10034
  for (lt_i = NF; lt_i > 0; lt_i--) {
10035
    if ($lt_i != "" && $lt_i != ".") {
10036
      if ($lt_i == "..") {
10037
        lt_count++;
10038
      } else {
10039
        if (lt_count == 0) {
10040
          lt_foo="/" $lt_i lt_foo;
10041
        } else {
10042
          lt_count--;
10043
        }
10044
      }
10045
    }
10046
  }
10047
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10048
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10049
}'`
10050
  # AWK program above erroneously prepends '/' to C:/dos/paths
10051
  # for these hosts.
10052
  case $host_os in
10053
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10054
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10055
  esac
10056
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10057
else
10058
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10059
fi
10060
library_names_spec=
10061
libname_spec='lib$name'
10062
soname_spec=
10063
shrext_cmds=".so"
10064
postinstall_cmds=
10065
postuninstall_cmds=
10066
finish_cmds=
10067
finish_eval=
10068
shlibpath_var=
10069
shlibpath_overrides_runpath=unknown
10070
version_type=none
10071
dynamic_linker="$host_os ld.so"
10072
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10073
need_lib_prefix=unknown
10074
hardcode_into_libs=no
10075
 
10076
# when you set need_version to no, make sure it does not cause -set_version
10077
# flags to be left without arguments
10078
need_version=unknown
10079
 
10080
case $host_os in
10081
aix3*)
10082
  version_type=linux
10083
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10084
  shlibpath_var=LIBPATH
10085
 
10086
  # AIX 3 has no versioning support, so we append a major version to the name.
10087
  soname_spec='${libname}${release}${shared_ext}$major'
10088
  ;;
10089
 
10090
aix[4-9]*)
10091
  version_type=linux
10092
  need_lib_prefix=no
10093
  need_version=no
10094
  hardcode_into_libs=yes
10095
  if test "$host_cpu" = ia64; then
10096
    # AIX 5 supports IA64
10097
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10098
    shlibpath_var=LD_LIBRARY_PATH
10099
  else
10100
    # With GCC up to 2.95.x, collect2 would create an import file
10101
    # for dependence libraries.  The import file would start with
10102
    # the line `#! .'.  This would cause the generated library to
10103
    # depend on `.', always an invalid library.  This was fixed in
10104
    # development snapshots of GCC prior to 3.0.
10105
    case $host_os in
10106
      aix4 | aix4.[01] | aix4.[01].*)
10107
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10108
           echo ' yes '
10109
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10110
        :
10111
      else
10112
        can_build_shared=no
10113
      fi
10114
      ;;
10115
    esac
10116
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10117
    # soname into executable. Probably we can add versioning support to
10118
    # collect2, so additional links can be useful in future.
10119
    if test "$aix_use_runtimelinking" = yes; then
10120
      # If using run time linking (on AIX 4.2 or later) use lib.so
10121
      # instead of lib.a to let people know that these are not
10122
      # typical AIX shared libraries.
10123
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10124
    else
10125
      # We preserve .a as extension for shared libraries through AIX4.2
10126
      # and later when we are not doing run time linking.
10127
      library_names_spec='${libname}${release}.a $libname.a'
10128
      soname_spec='${libname}${release}${shared_ext}$major'
10129
    fi
10130
    shlibpath_var=LIBPATH
10131
  fi
10132
  ;;
10133
 
10134
amigaos*)
10135
  case $host_cpu in
10136
  powerpc)
10137
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10138
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10139
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140
    ;;
10141
  m68k)
10142
    library_names_spec='$libname.ixlibrary $libname.a'
10143
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10144
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10145
    ;;
10146
  esac
10147
  ;;
10148
 
10149
beos*)
10150
  library_names_spec='${libname}${shared_ext}'
10151
  dynamic_linker="$host_os ld.so"
10152
  shlibpath_var=LIBRARY_PATH
10153
  ;;
10154
 
10155
bsdi[45]*)
10156
  version_type=linux
10157
  need_version=no
10158
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159
  soname_spec='${libname}${release}${shared_ext}$major'
10160
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10161
  shlibpath_var=LD_LIBRARY_PATH
10162
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10163
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10164
  # the default ld.so.conf also contains /usr/contrib/lib and
10165
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10166
  # libtool to hard-code these into programs
10167
  ;;
10168
 
10169
cygwin* | mingw* | pw32* | cegcc*)
10170
  version_type=windows
10171
  shrext_cmds=".dll"
10172
  need_version=no
10173
  need_lib_prefix=no
10174
 
10175
  case $GCC,$host_os in
10176
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10177
    library_names_spec='$libname.dll.a'
10178
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10179
    postinstall_cmds='base_file=`basename \${file}`~
10180
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10181
      dldir=$destdir/`dirname \$dlpath`~
10182
      test -d \$dldir || mkdir -p \$dldir~
10183
      $install_prog $dir/$dlname \$dldir/$dlname~
10184
      chmod a+x \$dldir/$dlname~
10185
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10186
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10187
      fi'
10188
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10189
      dlpath=$dir/\$dldll~
10190
       $RM \$dlpath'
10191
    shlibpath_overrides_runpath=yes
10192
 
10193
    case $host_os in
10194
    cygwin*)
10195
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10196
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10197
 
10198
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10199
      ;;
10200
    mingw* | cegcc*)
10201
      # MinGW DLLs use traditional 'lib' prefix
10202
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10203
      ;;
10204
    pw32*)
10205
      # pw32 DLLs use 'pw' prefix rather than 'lib'
10206
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10207
      ;;
10208
    esac
10209
    ;;
10210
 
10211
  *)
10212
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10213
    ;;
10214
  esac
10215
  dynamic_linker='Win32 ld.exe'
10216
  # FIXME: first we should search . and the directory the executable is in
10217
  shlibpath_var=PATH
10218
  ;;
10219
 
10220
darwin* | rhapsody*)
10221
  dynamic_linker="$host_os dyld"
10222
  version_type=darwin
10223
  need_lib_prefix=no
10224
  need_version=no
10225
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10226
  soname_spec='${libname}${release}${major}$shared_ext'
10227
  shlibpath_overrides_runpath=yes
10228
  shlibpath_var=DYLD_LIBRARY_PATH
10229
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10230
 
10231
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10232
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10233
  ;;
10234
 
10235
dgux*)
10236
  version_type=linux
10237
  need_lib_prefix=no
10238
  need_version=no
10239
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10240
  soname_spec='${libname}${release}${shared_ext}$major'
10241
  shlibpath_var=LD_LIBRARY_PATH
10242
  ;;
10243
 
10244
freebsd* | dragonfly*)
10245
  # DragonFly does not have aout.  When/if they implement a new
10246
  # versioning mechanism, adjust this.
10247
  if test -x /usr/bin/objformat; then
10248
    objformat=`/usr/bin/objformat`
10249
  else
10250
    case $host_os in
10251
    freebsd[123]*) objformat=aout ;;
10252
    *) objformat=elf ;;
10253
    esac
10254
  fi
10255
  version_type=freebsd-$objformat
10256
  case $version_type in
10257
    freebsd-elf*)
10258
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10259
      need_version=no
10260
      need_lib_prefix=no
10261
      ;;
10262
    freebsd-*)
10263
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10264
      need_version=yes
10265
      ;;
10266
  esac
10267
  shlibpath_var=LD_LIBRARY_PATH
10268
  case $host_os in
10269
  freebsd2*)
10270
    shlibpath_overrides_runpath=yes
10271
    ;;
10272
  freebsd3.[01]* | freebsdelf3.[01]*)
10273
    shlibpath_overrides_runpath=yes
10274
    hardcode_into_libs=yes
10275
    ;;
10276
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10277
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10278
    shlibpath_overrides_runpath=no
10279
    hardcode_into_libs=yes
10280
    ;;
10281
  *) # from 4.6 on, and DragonFly
10282
    shlibpath_overrides_runpath=yes
10283
    hardcode_into_libs=yes
10284
    ;;
10285
  esac
10286
  ;;
10287
 
10288
gnu*)
10289
  version_type=linux
10290
  need_lib_prefix=no
10291
  need_version=no
10292
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10293
  soname_spec='${libname}${release}${shared_ext}$major'
10294
  shlibpath_var=LD_LIBRARY_PATH
10295
  hardcode_into_libs=yes
10296
  ;;
10297
 
10298
haiku*)
10299
  version_type=linux
10300
  need_lib_prefix=no
10301
  need_version=no
10302
  dynamic_linker="$host_os runtime_loader"
10303
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10304
  soname_spec='${libname}${release}${shared_ext}$major'
10305
  shlibpath_var=LIBRARY_PATH
10306
  shlibpath_overrides_runpath=yes
10307
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10308
  hardcode_into_libs=yes
10309
  ;;
10310
 
10311
hpux9* | hpux10* | hpux11*)
10312
  # Give a soname corresponding to the major version so that dld.sl refuses to
10313
  # link against other versions.
10314
  version_type=sunos
10315
  need_lib_prefix=no
10316
  need_version=no
10317
  case $host_cpu in
10318
  ia64*)
10319
    shrext_cmds='.so'
10320
    hardcode_into_libs=yes
10321
    dynamic_linker="$host_os dld.so"
10322
    shlibpath_var=LD_LIBRARY_PATH
10323
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10324
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10325
    soname_spec='${libname}${release}${shared_ext}$major'
10326
    if test "X$HPUX_IA64_MODE" = X32; then
10327
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10328
    else
10329
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10330
    fi
10331
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10332
    ;;
10333
  hppa*64*)
10334
    shrext_cmds='.sl'
10335
    hardcode_into_libs=yes
10336
    dynamic_linker="$host_os dld.sl"
10337
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10338
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10339
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340
    soname_spec='${libname}${release}${shared_ext}$major'
10341
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10342
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10343
    ;;
10344
  *)
10345
    shrext_cmds='.sl'
10346
    dynamic_linker="$host_os dld.sl"
10347
    shlibpath_var=SHLIB_PATH
10348
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10349
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350
    soname_spec='${libname}${release}${shared_ext}$major'
10351
    ;;
10352
  esac
10353
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10354
  postinstall_cmds='chmod 555 $lib'
10355
  # or fails outright, so override atomically:
10356
  install_override_mode=555
10357
  ;;
10358
 
10359
interix[3-9]*)
10360
  version_type=linux
10361
  need_lib_prefix=no
10362
  need_version=no
10363
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10364
  soname_spec='${libname}${release}${shared_ext}$major'
10365
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10366
  shlibpath_var=LD_LIBRARY_PATH
10367
  shlibpath_overrides_runpath=no
10368
  hardcode_into_libs=yes
10369
  ;;
10370
 
10371
irix5* | irix6* | nonstopux*)
10372
  case $host_os in
10373
    nonstopux*) version_type=nonstopux ;;
10374
    *)
10375
        if test "$lt_cv_prog_gnu_ld" = yes; then
10376
                version_type=linux
10377
        else
10378
                version_type=irix
10379
        fi ;;
10380
  esac
10381
  need_lib_prefix=no
10382
  need_version=no
10383
  soname_spec='${libname}${release}${shared_ext}$major'
10384
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10385
  case $host_os in
10386
  irix5* | nonstopux*)
10387
    libsuff= shlibsuff=
10388
    ;;
10389
  *)
10390
    case $LD in # libtool.m4 will add one of these switches to LD
10391
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10392
      libsuff= shlibsuff= libmagic=32-bit;;
10393
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10394
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10395
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10396
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10397
    *) libsuff= shlibsuff= libmagic=never-match;;
10398
    esac
10399
    ;;
10400
  esac
10401
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10402
  shlibpath_overrides_runpath=no
10403
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10404
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10405
  hardcode_into_libs=yes
10406
  ;;
10407
 
10408
# No shared lib support for Linux oldld, aout, or coff.
10409
linux*oldld* | linux*aout* | linux*coff*)
10410
  dynamic_linker=no
10411
  ;;
10412
 
10413
# This must be Linux ELF.
10414
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10415
  version_type=linux
10416
  need_lib_prefix=no
10417
  need_version=no
10418
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10419
  soname_spec='${libname}${release}${shared_ext}$major'
10420
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10421
  shlibpath_var=LD_LIBRARY_PATH
10422
  shlibpath_overrides_runpath=no
10423
 
10424
  # Some binutils ld are patched to set DT_RUNPATH
10425
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10426
  $as_echo_n "(cached) " >&6
10427
else
10428
  lt_cv_shlibpath_overrides_runpath=no
10429
    save_LDFLAGS=$LDFLAGS
10430
    save_libdir=$libdir
10431
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10432
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10433
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434
/* end confdefs.h.  */
10435
 
10436
int
10437
main ()
10438
{
10439
 
10440
  ;
10441
  return 0;
10442
}
10443
_ACEOF
10444
if ac_fn_c_try_link "$LINENO"; then :
10445
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10446
  lt_cv_shlibpath_overrides_runpath=yes
10447
fi
10448
fi
10449
rm -f core conftest.err conftest.$ac_objext \
10450
    conftest$ac_exeext conftest.$ac_ext
10451
    LDFLAGS=$save_LDFLAGS
10452
    libdir=$save_libdir
10453
 
10454
fi
10455
 
10456
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10457
 
10458
  # This implies no fast_install, which is unacceptable.
10459
  # Some rework will be needed to allow for fast_install
10460
  # before this can be enabled.
10461
  hardcode_into_libs=yes
10462
 
10463
  # Append ld.so.conf contents to the search path
10464
  if test -f /etc/ld.so.conf; then
10465
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10466
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10467
  fi
10468
 
10469
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10470
  # powerpc, because MkLinux only supported shared libraries with the
10471
  # GNU dynamic linker.  Since this was broken with cross compilers,
10472
  # most powerpc-linux boxes support dynamic linking these days and
10473
  # people can always --disable-shared, the test was removed, and we
10474
  # assume the GNU/Linux dynamic linker is in use.
10475
  dynamic_linker='GNU/Linux ld.so'
10476
  ;;
10477
 
10478
netbsd*)
10479
  version_type=sunos
10480
  need_lib_prefix=no
10481
  need_version=no
10482
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10483
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10484
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10485
    dynamic_linker='NetBSD (a.out) ld.so'
10486
  else
10487
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10488
    soname_spec='${libname}${release}${shared_ext}$major'
10489
    dynamic_linker='NetBSD ld.elf_so'
10490
  fi
10491
  shlibpath_var=LD_LIBRARY_PATH
10492
  shlibpath_overrides_runpath=yes
10493
  hardcode_into_libs=yes
10494
  ;;
10495
 
10496
newsos6)
10497
  version_type=linux
10498
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10499
  shlibpath_var=LD_LIBRARY_PATH
10500
  shlibpath_overrides_runpath=yes
10501
  ;;
10502
 
10503
*nto* | *qnx*)
10504
  version_type=qnx
10505
  need_lib_prefix=no
10506
  need_version=no
10507
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10508
  soname_spec='${libname}${release}${shared_ext}$major'
10509
  shlibpath_var=LD_LIBRARY_PATH
10510
  shlibpath_overrides_runpath=no
10511
  hardcode_into_libs=yes
10512
  dynamic_linker='ldqnx.so'
10513
  ;;
10514
 
10515
openbsd*)
10516
  version_type=sunos
10517
  sys_lib_dlsearch_path_spec="/usr/lib"
10518
  need_lib_prefix=no
10519
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10520
  case $host_os in
10521
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10522
    *)                          need_version=no  ;;
10523
  esac
10524
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10525
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10526
  shlibpath_var=LD_LIBRARY_PATH
10527
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10528
    case $host_os in
10529
      openbsd2.[89] | openbsd2.[89].*)
10530
        shlibpath_overrides_runpath=no
10531
        ;;
10532
      *)
10533
        shlibpath_overrides_runpath=yes
10534
        ;;
10535
      esac
10536
  else
10537
    shlibpath_overrides_runpath=yes
10538
  fi
10539
  ;;
10540
 
10541
os2*)
10542
  libname_spec='$name'
10543
  shrext_cmds=".dll"
10544
  need_lib_prefix=no
10545
  library_names_spec='$libname${shared_ext} $libname.a'
10546
  dynamic_linker='OS/2 ld.exe'
10547
  shlibpath_var=LIBPATH
10548
  ;;
10549
 
10550
osf3* | osf4* | osf5*)
10551
  version_type=osf
10552
  need_lib_prefix=no
10553
  need_version=no
10554
  soname_spec='${libname}${release}${shared_ext}$major'
10555
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556
  shlibpath_var=LD_LIBRARY_PATH
10557
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10558
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10559
  ;;
10560
 
10561
rdos*)
10562
  dynamic_linker=no
10563
  ;;
10564
 
10565
solaris*)
10566
  version_type=linux
10567
  need_lib_prefix=no
10568
  need_version=no
10569
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10570
  soname_spec='${libname}${release}${shared_ext}$major'
10571
  shlibpath_var=LD_LIBRARY_PATH
10572
  shlibpath_overrides_runpath=yes
10573
  hardcode_into_libs=yes
10574
  # ldd complains unless libraries are executable
10575
  postinstall_cmds='chmod +x $lib'
10576
  ;;
10577
 
10578
sunos4*)
10579
  version_type=sunos
10580
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10581
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10582
  shlibpath_var=LD_LIBRARY_PATH
10583
  shlibpath_overrides_runpath=yes
10584
  if test "$with_gnu_ld" = yes; then
10585
    need_lib_prefix=no
10586
  fi
10587
  need_version=yes
10588
  ;;
10589
 
10590
sysv4 | sysv4.3*)
10591
  version_type=linux
10592
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10593
  soname_spec='${libname}${release}${shared_ext}$major'
10594
  shlibpath_var=LD_LIBRARY_PATH
10595
  case $host_vendor in
10596
    sni)
10597
      shlibpath_overrides_runpath=no
10598
      need_lib_prefix=no
10599
      runpath_var=LD_RUN_PATH
10600
      ;;
10601
    siemens)
10602
      need_lib_prefix=no
10603
      ;;
10604
    motorola)
10605
      need_lib_prefix=no
10606
      need_version=no
10607
      shlibpath_overrides_runpath=no
10608
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10609
      ;;
10610
  esac
10611
  ;;
10612
 
10613
sysv4*MP*)
10614
  if test -d /usr/nec ;then
10615
    version_type=linux
10616
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10617
    soname_spec='$libname${shared_ext}.$major'
10618
    shlibpath_var=LD_LIBRARY_PATH
10619
  fi
10620
  ;;
10621
 
10622
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10623
  version_type=freebsd-elf
10624
  need_lib_prefix=no
10625
  need_version=no
10626
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10627
  soname_spec='${libname}${release}${shared_ext}$major'
10628
  shlibpath_var=LD_LIBRARY_PATH
10629
  shlibpath_overrides_runpath=yes
10630
  hardcode_into_libs=yes
10631
  if test "$with_gnu_ld" = yes; then
10632
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10633
  else
10634
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10635
    case $host_os in
10636
      sco3.2v5*)
10637
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10638
        ;;
10639
    esac
10640
  fi
10641
  sys_lib_dlsearch_path_spec='/usr/lib'
10642
  ;;
10643
 
10644
tpf*)
10645
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10646
  version_type=linux
10647
  need_lib_prefix=no
10648
  need_version=no
10649
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10650
  shlibpath_var=LD_LIBRARY_PATH
10651
  shlibpath_overrides_runpath=no
10652
  hardcode_into_libs=yes
10653
  ;;
10654
 
10655
uts4*)
10656
  version_type=linux
10657
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10658
  soname_spec='${libname}${release}${shared_ext}$major'
10659
  shlibpath_var=LD_LIBRARY_PATH
10660
  ;;
10661
 
10662
*)
10663
  dynamic_linker=no
10664
  ;;
10665
esac
10666
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10667
$as_echo "$dynamic_linker" >&6; }
10668
test "$dynamic_linker" = no && can_build_shared=no
10669
 
10670
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10671
if test "$GCC" = yes; then
10672
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10673
fi
10674
 
10675
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10676
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10677
fi
10678
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10679
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10680
fi
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
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10774
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10775
hardcode_action=
10776
if test -n "$hardcode_libdir_flag_spec" ||
10777
   test -n "$runpath_var" ||
10778
   test "X$hardcode_automatic" = "Xyes" ; then
10779
 
10780
  # We can hardcode non-existent directories.
10781
  if test "$hardcode_direct" != no &&
10782
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10783
     # have to relink, otherwise we might link with an installed library
10784
     # when we should be linking with a yet-to-be-installed one
10785
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10786
     test "$hardcode_minus_L" != no; then
10787
    # Linking always hardcodes the temporary library directory.
10788
    hardcode_action=relink
10789
  else
10790
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10791
    hardcode_action=immediate
10792
  fi
10793
else
10794
  # We cannot hardcode anything, or else we can only hardcode existing
10795
  # directories.
10796
  hardcode_action=unsupported
10797
fi
10798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10799
$as_echo "$hardcode_action" >&6; }
10800
 
10801
if test "$hardcode_action" = relink ||
10802
   test "$inherit_rpath" = yes; then
10803
  # Fast installation is not supported
10804
  enable_fast_install=no
10805
elif test "$shlibpath_overrides_runpath" = yes ||
10806
     test "$enable_shared" = no; then
10807
  # Fast installation is not necessary
10808
  enable_fast_install=needless
10809
fi
10810
 
10811
 
10812
 
10813
 
10814
 
10815
 
10816
  if test "x$enable_dlopen" != xyes; then
10817
  enable_dlopen=unknown
10818
  enable_dlopen_self=unknown
10819
  enable_dlopen_self_static=unknown
10820
else
10821
  lt_cv_dlopen=no
10822
  lt_cv_dlopen_libs=
10823
 
10824
  case $host_os in
10825
  beos*)
10826
    lt_cv_dlopen="load_add_on"
10827
    lt_cv_dlopen_libs=
10828
    lt_cv_dlopen_self=yes
10829
    ;;
10830
 
10831
  mingw* | pw32* | cegcc*)
10832
    lt_cv_dlopen="LoadLibrary"
10833
    lt_cv_dlopen_libs=
10834
    ;;
10835
 
10836
  cygwin*)
10837
    lt_cv_dlopen="dlopen"
10838
    lt_cv_dlopen_libs=
10839
    ;;
10840
 
10841
  darwin*)
10842
  # if libdl is installed we need to link against it
10843
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10844
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10845
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10846
  $as_echo_n "(cached) " >&6
10847
else
10848
  ac_check_lib_save_LIBS=$LIBS
10849
LIBS="-ldl  $LIBS"
10850
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851
/* end confdefs.h.  */
10852
 
10853
/* Override any GCC internal prototype to avoid an error.
10854
   Use char because int might match the return type of a GCC
10855
   builtin and then its argument prototype would still apply.  */
10856
#ifdef __cplusplus
10857
extern "C"
10858
#endif
10859
char dlopen ();
10860
int
10861
main ()
10862
{
10863
return dlopen ();
10864
  ;
10865
  return 0;
10866
}
10867
_ACEOF
10868
if ac_fn_c_try_link "$LINENO"; then :
10869
  ac_cv_lib_dl_dlopen=yes
10870
else
10871
  ac_cv_lib_dl_dlopen=no
10872
fi
10873
rm -f core conftest.err conftest.$ac_objext \
10874
    conftest$ac_exeext conftest.$ac_ext
10875
LIBS=$ac_check_lib_save_LIBS
10876
fi
10877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10878
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10879
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10880
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10881
else
10882
 
10883
    lt_cv_dlopen="dyld"
10884
    lt_cv_dlopen_libs=
10885
    lt_cv_dlopen_self=yes
10886
 
10887
fi
10888
 
10889
    ;;
10890
 
10891
  *)
10892
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10893
if test "x$ac_cv_func_shl_load" = x""yes; then :
10894
  lt_cv_dlopen="shl_load"
10895
else
10896
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10897
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10898
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10899
  $as_echo_n "(cached) " >&6
10900
else
10901
  ac_check_lib_save_LIBS=$LIBS
10902
LIBS="-ldld  $LIBS"
10903
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10904
/* end confdefs.h.  */
10905
 
10906
/* Override any GCC internal prototype to avoid an error.
10907
   Use char because int might match the return type of a GCC
10908
   builtin and then its argument prototype would still apply.  */
10909
#ifdef __cplusplus
10910
extern "C"
10911
#endif
10912
char shl_load ();
10913
int
10914
main ()
10915
{
10916
return shl_load ();
10917
  ;
10918
  return 0;
10919
}
10920
_ACEOF
10921
if ac_fn_c_try_link "$LINENO"; then :
10922
  ac_cv_lib_dld_shl_load=yes
10923
else
10924
  ac_cv_lib_dld_shl_load=no
10925
fi
10926
rm -f core conftest.err conftest.$ac_objext \
10927
    conftest$ac_exeext conftest.$ac_ext
10928
LIBS=$ac_check_lib_save_LIBS
10929
fi
10930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10931
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10932
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10933
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10934
else
10935
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10936
if test "x$ac_cv_func_dlopen" = x""yes; then :
10937
  lt_cv_dlopen="dlopen"
10938
else
10939
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10940
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10941
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10942
  $as_echo_n "(cached) " >&6
10943
else
10944
  ac_check_lib_save_LIBS=$LIBS
10945
LIBS="-ldl  $LIBS"
10946
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947
/* end confdefs.h.  */
10948
 
10949
/* Override any GCC internal prototype to avoid an error.
10950
   Use char because int might match the return type of a GCC
10951
   builtin and then its argument prototype would still apply.  */
10952
#ifdef __cplusplus
10953
extern "C"
10954
#endif
10955
char dlopen ();
10956
int
10957
main ()
10958
{
10959
return dlopen ();
10960
  ;
10961
  return 0;
10962
}
10963
_ACEOF
10964
if ac_fn_c_try_link "$LINENO"; then :
10965
  ac_cv_lib_dl_dlopen=yes
10966
else
10967
  ac_cv_lib_dl_dlopen=no
10968
fi
10969
rm -f core conftest.err conftest.$ac_objext \
10970
    conftest$ac_exeext conftest.$ac_ext
10971
LIBS=$ac_check_lib_save_LIBS
10972
fi
10973
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10974
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10975
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10976
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10977
else
10978
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10979
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10980
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10981
  $as_echo_n "(cached) " >&6
10982
else
10983
  ac_check_lib_save_LIBS=$LIBS
10984
LIBS="-lsvld  $LIBS"
10985
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986
/* end confdefs.h.  */
10987
 
10988
/* Override any GCC internal prototype to avoid an error.
10989
   Use char because int might match the return type of a GCC
10990
   builtin and then its argument prototype would still apply.  */
10991
#ifdef __cplusplus
10992
extern "C"
10993
#endif
10994
char dlopen ();
10995
int
10996
main ()
10997
{
10998
return dlopen ();
10999
  ;
11000
  return 0;
11001
}
11002
_ACEOF
11003
if ac_fn_c_try_link "$LINENO"; then :
11004
  ac_cv_lib_svld_dlopen=yes
11005
else
11006
  ac_cv_lib_svld_dlopen=no
11007
fi
11008
rm -f core conftest.err conftest.$ac_objext \
11009
    conftest$ac_exeext conftest.$ac_ext
11010
LIBS=$ac_check_lib_save_LIBS
11011
fi
11012
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11013
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11014
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11015
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11016
else
11017
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11018
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11019
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11020
  $as_echo_n "(cached) " >&6
11021
else
11022
  ac_check_lib_save_LIBS=$LIBS
11023
LIBS="-ldld  $LIBS"
11024
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025
/* end confdefs.h.  */
11026
 
11027
/* Override any GCC internal prototype to avoid an error.
11028
   Use char because int might match the return type of a GCC
11029
   builtin and then its argument prototype would still apply.  */
11030
#ifdef __cplusplus
11031
extern "C"
11032
#endif
11033
char dld_link ();
11034
int
11035
main ()
11036
{
11037
return dld_link ();
11038
  ;
11039
  return 0;
11040
}
11041
_ACEOF
11042
if ac_fn_c_try_link "$LINENO"; then :
11043
  ac_cv_lib_dld_dld_link=yes
11044
else
11045
  ac_cv_lib_dld_dld_link=no
11046
fi
11047
rm -f core conftest.err conftest.$ac_objext \
11048
    conftest$ac_exeext conftest.$ac_ext
11049
LIBS=$ac_check_lib_save_LIBS
11050
fi
11051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11052
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11053
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11054
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11055
fi
11056
 
11057
 
11058
fi
11059
 
11060
 
11061
fi
11062
 
11063
 
11064
fi
11065
 
11066
 
11067
fi
11068
 
11069
 
11070
fi
11071
 
11072
    ;;
11073
  esac
11074
 
11075
  if test "x$lt_cv_dlopen" != xno; then
11076
    enable_dlopen=yes
11077
  else
11078
    enable_dlopen=no
11079
  fi
11080
 
11081
  case $lt_cv_dlopen in
11082
  dlopen)
11083
    save_CPPFLAGS="$CPPFLAGS"
11084
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11085
 
11086
    save_LDFLAGS="$LDFLAGS"
11087
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11088
 
11089
    save_LIBS="$LIBS"
11090
    LIBS="$lt_cv_dlopen_libs $LIBS"
11091
 
11092
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11093
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11094
if test "${lt_cv_dlopen_self+set}" = set; then :
11095
  $as_echo_n "(cached) " >&6
11096
else
11097
          if test "$cross_compiling" = yes; then :
11098
  lt_cv_dlopen_self=cross
11099
else
11100
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11101
  lt_status=$lt_dlunknown
11102
  cat > conftest.$ac_ext <<_LT_EOF
11103
#line 11103 "configure"
11104
#include "confdefs.h"
11105
 
11106
#if HAVE_DLFCN_H
11107
#include 
11108
#endif
11109
 
11110
#include 
11111
 
11112
#ifdef RTLD_GLOBAL
11113
#  define LT_DLGLOBAL           RTLD_GLOBAL
11114
#else
11115
#  ifdef DL_GLOBAL
11116
#    define LT_DLGLOBAL         DL_GLOBAL
11117
#  else
11118
#    define LT_DLGLOBAL         0
11119
#  endif
11120
#endif
11121
 
11122
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11123
   find out it does not work in some platform. */
11124
#ifndef LT_DLLAZY_OR_NOW
11125
#  ifdef RTLD_LAZY
11126
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11127
#  else
11128
#    ifdef DL_LAZY
11129
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11130
#    else
11131
#      ifdef RTLD_NOW
11132
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11133
#      else
11134
#        ifdef DL_NOW
11135
#          define LT_DLLAZY_OR_NOW      DL_NOW
11136
#        else
11137
#          define LT_DLLAZY_OR_NOW      0
11138
#        endif
11139
#      endif
11140
#    endif
11141
#  endif
11142
#endif
11143
 
11144
/* When -fvisbility=hidden is used, assume the code has been annotated
11145
   correspondingly for the symbols needed.  */
11146
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11147
void fnord () __attribute__((visibility("default")));
11148
#endif
11149
 
11150
void fnord () { int i=42; }
11151
int main ()
11152
{
11153
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11154
  int status = $lt_dlunknown;
11155
 
11156
  if (self)
11157
    {
11158
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11159
      else
11160
        {
11161
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11162
          else puts (dlerror ());
11163
        }
11164
      /* dlclose (self); */
11165
    }
11166
  else
11167
    puts (dlerror ());
11168
 
11169
  return status;
11170
}
11171
_LT_EOF
11172
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11173
  (eval $ac_link) 2>&5
11174
  ac_status=$?
11175
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11176
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11177
    (./conftest; exit; ) >&5 2>/dev/null
11178
    lt_status=$?
11179
    case x$lt_status in
11180
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11181
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11182
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11183
    esac
11184
  else :
11185
    # compilation failed
11186
    lt_cv_dlopen_self=no
11187
  fi
11188
fi
11189
rm -fr conftest*
11190
 
11191
 
11192
fi
11193
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11194
$as_echo "$lt_cv_dlopen_self" >&6; }
11195
 
11196
    if test "x$lt_cv_dlopen_self" = xyes; then
11197
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11198
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11199
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11200
if test "${lt_cv_dlopen_self_static+set}" = set; then :
11201
  $as_echo_n "(cached) " >&6
11202
else
11203
          if test "$cross_compiling" = yes; then :
11204
  lt_cv_dlopen_self_static=cross
11205
else
11206
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11207
  lt_status=$lt_dlunknown
11208
  cat > conftest.$ac_ext <<_LT_EOF
11209
#line 11209 "configure"
11210
#include "confdefs.h"
11211
 
11212
#if HAVE_DLFCN_H
11213
#include 
11214
#endif
11215
 
11216
#include 
11217
 
11218
#ifdef RTLD_GLOBAL
11219
#  define LT_DLGLOBAL           RTLD_GLOBAL
11220
#else
11221
#  ifdef DL_GLOBAL
11222
#    define LT_DLGLOBAL         DL_GLOBAL
11223
#  else
11224
#    define LT_DLGLOBAL         0
11225
#  endif
11226
#endif
11227
 
11228
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11229
   find out it does not work in some platform. */
11230
#ifndef LT_DLLAZY_OR_NOW
11231
#  ifdef RTLD_LAZY
11232
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11233
#  else
11234
#    ifdef DL_LAZY
11235
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11236
#    else
11237
#      ifdef RTLD_NOW
11238
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11239
#      else
11240
#        ifdef DL_NOW
11241
#          define LT_DLLAZY_OR_NOW      DL_NOW
11242
#        else
11243
#          define LT_DLLAZY_OR_NOW      0
11244
#        endif
11245
#      endif
11246
#    endif
11247
#  endif
11248
#endif
11249
 
11250
/* When -fvisbility=hidden is used, assume the code has been annotated
11251
   correspondingly for the symbols needed.  */
11252
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11253
void fnord () __attribute__((visibility("default")));
11254
#endif
11255
 
11256
void fnord () { int i=42; }
11257
int main ()
11258
{
11259
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11260
  int status = $lt_dlunknown;
11261
 
11262
  if (self)
11263
    {
11264
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11265
      else
11266
        {
11267
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11268
          else puts (dlerror ());
11269
        }
11270
      /* dlclose (self); */
11271
    }
11272
  else
11273
    puts (dlerror ());
11274
 
11275
  return status;
11276
}
11277
_LT_EOF
11278
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11279
  (eval $ac_link) 2>&5
11280
  ac_status=$?
11281
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11282
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11283
    (./conftest; exit; ) >&5 2>/dev/null
11284
    lt_status=$?
11285
    case x$lt_status in
11286
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11287
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11288
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11289
    esac
11290
  else :
11291
    # compilation failed
11292
    lt_cv_dlopen_self_static=no
11293
  fi
11294
fi
11295
rm -fr conftest*
11296
 
11297
 
11298
fi
11299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11300
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11301
    fi
11302
 
11303
    CPPFLAGS="$save_CPPFLAGS"
11304
    LDFLAGS="$save_LDFLAGS"
11305
    LIBS="$save_LIBS"
11306
    ;;
11307
  esac
11308
 
11309
  case $lt_cv_dlopen_self in
11310
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11311
  *) enable_dlopen_self=unknown ;;
11312
  esac
11313
 
11314
  case $lt_cv_dlopen_self_static in
11315
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11316
  *) enable_dlopen_self_static=unknown ;;
11317
  esac
11318
fi
11319
 
11320
 
11321
 
11322
 
11323
 
11324
 
11325
 
11326
 
11327
 
11328
 
11329
 
11330
 
11331
 
11332
 
11333
 
11334
 
11335
 
11336
striplib=
11337
old_striplib=
11338
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11339
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11340
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11341
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11342
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11343
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11344
$as_echo "yes" >&6; }
11345
else
11346
# FIXME - insert some real tests, host_os isn't really good enough
11347
  case $host_os in
11348
  darwin*)
11349
    if test -n "$STRIP" ; then
11350
      striplib="$STRIP -x"
11351
      old_striplib="$STRIP -S"
11352
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11353
$as_echo "yes" >&6; }
11354
    else
11355
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356
$as_echo "no" >&6; }
11357
    fi
11358
    ;;
11359
  *)
11360
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361
$as_echo "no" >&6; }
11362
    ;;
11363
  esac
11364
fi
11365
 
11366
 
11367
 
11368
 
11369
 
11370
 
11371
 
11372
 
11373
 
11374
 
11375
 
11376
 
11377
  # Report which library types will actually be built
11378
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11379
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11380
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11381
$as_echo "$can_build_shared" >&6; }
11382
 
11383
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11384
$as_echo_n "checking whether to build shared libraries... " >&6; }
11385
  test "$can_build_shared" = "no" && enable_shared=no
11386
 
11387
  # On AIX, shared libraries and static libraries use the same namespace, and
11388
  # are all built from PIC.
11389
  case $host_os in
11390
  aix3*)
11391
    test "$enable_shared" = yes && enable_static=no
11392
    if test -n "$RANLIB"; then
11393
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11394
      postinstall_cmds='$RANLIB $lib'
11395
    fi
11396
    ;;
11397
 
11398
  aix[4-9]*)
11399
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11400
      test "$enable_shared" = yes && enable_static=no
11401
    fi
11402
    ;;
11403
  esac
11404
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11405
$as_echo "$enable_shared" >&6; }
11406
 
11407
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11408
$as_echo_n "checking whether to build static libraries... " >&6; }
11409
  # Make sure either enable_shared or enable_static is yes.
11410
  test "$enable_shared" = yes || enable_static=yes
11411
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11412
$as_echo "$enable_static" >&6; }
11413
 
11414
 
11415
 
11416
 
11417
fi
11418
ac_ext=c
11419
ac_cpp='$CPP $CPPFLAGS'
11420
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11421
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11422
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11423
 
11424
CC="$lt_save_CC"
11425
 
11426
 
11427
 
11428
 
11429
 
11430
 
11431
 
11432
 
11433
 
11434
 
11435
 
11436
 
11437
 
11438
# Source file extension for Go test sources.
11439
ac_ext=go
11440
 
11441
# Object file extension for compiled Go test sources.
11442
objext=o
11443
objext_GO=$objext
11444
 
11445
# Code to be used in simple compile tests
11446
lt_simple_compile_test_code="package main; func main() { }"
11447
 
11448
# Code to be used in simple link tests
11449
lt_simple_link_test_code='package main; func main() { }'
11450
 
11451
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11452
 
11453
 
11454
 
11455
 
11456
 
11457
 
11458
# If no C compiler was specified, use CC.
11459
LTCC=${LTCC-"$CC"}
11460
 
11461
# If no C compiler flags were specified, use CFLAGS.
11462
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11463
 
11464
# Allow CC to be a program name with arguments.
11465
compiler=$CC
11466
 
11467
 
11468
# save warnings/boilerplate of simple test code
11469
ac_outfile=conftest.$ac_objext
11470
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11471
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11472
_lt_compiler_boilerplate=`cat conftest.err`
11473
$RM conftest*
11474
 
11475
ac_outfile=conftest.$ac_objext
11476
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11477
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11478
_lt_linker_boilerplate=`cat conftest.err`
11479
$RM -r conftest*
11480
 
11481
 
11482
# Allow CC to be a program name with arguments.
11483
lt_save_CC="$CC"
11484
lt_save_GCC="$GCC"
11485
GCC=yes
11486
CC=${GOC-"gccgo"}
11487
compiler=$CC
11488
compiler_GO=$CC
11489
LD_GO="$LD"
11490
for cc_temp in $compiler""; do
11491
  case $cc_temp in
11492
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11493
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11494
    \-*) ;;
11495
    *) break;;
11496
  esac
11497
done
11498
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11499
 
11500
 
11501
# Go did not exist at the time GCC didn't implicitly link libc in.
11502
archive_cmds_need_lc_GO=no
11503
 
11504
old_archive_cmds_GO=$old_archive_cmds
11505
 
11506
## CAVEAT EMPTOR:
11507
## There is no encapsulation within the following macros, do not change
11508
## the running order or otherwise move them around unless you know exactly
11509
## what you are doing...
11510
if test -n "$compiler"; then
11511
 
11512
lt_prog_compiler_no_builtin_flag_GO=
11513
 
11514
if test "$GCC" = yes; then
11515
  case $cc_basename in
11516
  nvcc*)
11517
    lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11518
  *)
11519
    lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11520
  esac
11521
 
11522
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11523
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11524
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11525
  $as_echo_n "(cached) " >&6
11526
else
11527
  lt_cv_prog_compiler_rtti_exceptions=no
11528
   ac_outfile=conftest.$ac_objext
11529
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11530
   lt_compiler_flag="-fno-rtti -fno-exceptions"
11531
   # Insert the option either (1) after the last *FLAGS variable, or
11532
   # (2) before a word containing "conftest.", or (3) at the end.
11533
   # Note that $ac_compile itself does not contain backslashes and begins
11534
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11535
   # The option is referenced via a variable to avoid confusing sed.
11536
   lt_compile=`echo "$ac_compile" | $SED \
11537
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11538
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11539
   -e 's:$: $lt_compiler_flag:'`
11540
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11541
   (eval "$lt_compile" 2>conftest.err)
11542
   ac_status=$?
11543
   cat conftest.err >&5
11544
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545
   if (exit $ac_status) && test -s "$ac_outfile"; then
11546
     # The compiler can only warn and ignore the option if not recognized
11547
     # So say no if there are warnings other than the usual output.
11548
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11549
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11550
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11551
       lt_cv_prog_compiler_rtti_exceptions=yes
11552
     fi
11553
   fi
11554
   $RM conftest*
11555
 
11556
fi
11557
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11558
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11559
 
11560
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11561
    lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11562
else
11563
    :
11564
fi
11565
 
11566
fi
11567
 
11568
 
11569
 
11570
  lt_prog_compiler_wl_GO=
11571
lt_prog_compiler_pic_GO=
11572
lt_prog_compiler_static_GO=
11573
 
11574
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11575
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11576
 
11577
  if test "$GCC" = yes; then
11578
    lt_prog_compiler_wl_GO='-Wl,'
11579
    lt_prog_compiler_static_GO='-static'
11580
 
11581
    case $host_os in
11582
      aix*)
11583
      # All AIX code is PIC.
11584
      if test "$host_cpu" = ia64; then
11585
        # AIX 5 now supports IA64 processor
11586
        lt_prog_compiler_static_GO='-Bstatic'
11587
      fi
11588
      ;;
11589
 
11590
    amigaos*)
11591
      case $host_cpu in
11592
      powerpc)
11593
            # see comment about AmigaOS4 .so support
11594
            lt_prog_compiler_pic_GO='-fPIC'
11595
        ;;
11596
      m68k)
11597
            # FIXME: we need at least 68020 code to build shared libraries, but
11598
            # adding the `-m68020' flag to GCC prevents building anything better,
11599
            # like `-m68040'.
11600
            lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11601
        ;;
11602
      esac
11603
      ;;
11604
 
11605
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11606
      # PIC is the default for these OSes.
11607
      ;;
11608
 
11609
    mingw* | cygwin* | pw32* | os2* | cegcc*)
11610
      # This hack is so that the source file can tell whether it is being
11611
      # built for inclusion in a dll (and should export symbols for example).
11612
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11613
      # (--disable-auto-import) libraries
11614
      lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11615
      ;;
11616
 
11617
    darwin* | rhapsody*)
11618
      # PIC is the default on this platform
11619
      # Common symbols not allowed in MH_DYLIB files
11620
      lt_prog_compiler_pic_GO='-fno-common'
11621
      ;;
11622
 
11623
    haiku*)
11624
      # PIC is the default for Haiku.
11625
      # The "-static" flag exists, but is broken.
11626
      lt_prog_compiler_static_GO=
11627
      ;;
11628
 
11629
    hpux*)
11630
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11631
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11632
      # sets the default TLS model and affects inlining.
11633
      case $host_cpu in
11634
      hppa*64*)
11635
        # +Z the default
11636
        ;;
11637
      *)
11638
        lt_prog_compiler_pic_GO='-fPIC'
11639
        ;;
11640
      esac
11641
      ;;
11642
 
11643
    interix[3-9]*)
11644
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11645
      # Instead, we relocate shared libraries at runtime.
11646
      ;;
11647
 
11648
    msdosdjgpp*)
11649
      # Just because we use GCC doesn't mean we suddenly get shared libraries
11650
      # on systems that don't support them.
11651
      lt_prog_compiler_can_build_shared_GO=no
11652
      enable_shared=no
11653
      ;;
11654
 
11655
    *nto* | *qnx*)
11656
      # QNX uses GNU C++, but need to define -shared option too, otherwise
11657
      # it will coredump.
11658
      lt_prog_compiler_pic_GO='-fPIC -shared'
11659
      ;;
11660
 
11661
    sysv4*MP*)
11662
      if test -d /usr/nec; then
11663
        lt_prog_compiler_pic_GO=-Kconform_pic
11664
      fi
11665
      ;;
11666
 
11667
    *)
11668
      lt_prog_compiler_pic_GO='-fPIC'
11669
      ;;
11670
    esac
11671
 
11672
    case $cc_basename in
11673
    nvcc*) # Cuda Compiler Driver 2.2
11674
      lt_prog_compiler_wl_GO='-Xlinker '
11675
      lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11676
      ;;
11677
    esac
11678
  else
11679
    # PORTME Check for flag to pass linker flags through the system compiler.
11680
    case $host_os in
11681
    aix*)
11682
      lt_prog_compiler_wl_GO='-Wl,'
11683
      if test "$host_cpu" = ia64; then
11684
        # AIX 5 now supports IA64 processor
11685
        lt_prog_compiler_static_GO='-Bstatic'
11686
      else
11687
        lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11688
      fi
11689
      ;;
11690
 
11691
    mingw* | cygwin* | pw32* | os2* | cegcc*)
11692
      # This hack is so that the source file can tell whether it is being
11693
      # built for inclusion in a dll (and should export symbols for example).
11694
      lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11695
      ;;
11696
 
11697
    hpux9* | hpux10* | hpux11*)
11698
      lt_prog_compiler_wl_GO='-Wl,'
11699
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11700
      # not for PA HP-UX.
11701
      case $host_cpu in
11702
      hppa*64*|ia64*)
11703
        # +Z the default
11704
        ;;
11705
      *)
11706
        lt_prog_compiler_pic_GO='+Z'
11707
        ;;
11708
      esac
11709
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11710
      lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11711
      ;;
11712
 
11713
    irix5* | irix6* | nonstopux*)
11714
      lt_prog_compiler_wl_GO='-Wl,'
11715
      # PIC (with -KPIC) is the default.
11716
      lt_prog_compiler_static_GO='-non_shared'
11717
      ;;
11718
 
11719
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
11720
      case $cc_basename in
11721
      # old Intel for x86_64 which still supported -KPIC.
11722
      ecc*)
11723
        lt_prog_compiler_wl_GO='-Wl,'
11724
        lt_prog_compiler_pic_GO='-KPIC'
11725
        lt_prog_compiler_static_GO='-static'
11726
        ;;
11727
      # icc used to be incompatible with GCC.
11728
      # ICC 10 doesn't accept -KPIC any more.
11729
      icc* | ifort*)
11730
        lt_prog_compiler_wl_GO='-Wl,'
11731
        lt_prog_compiler_pic_GO='-fPIC'
11732
        lt_prog_compiler_static_GO='-static'
11733
        ;;
11734
      # Lahey Fortran 8.1.
11735
      lf95*)
11736
        lt_prog_compiler_wl_GO='-Wl,'
11737
        lt_prog_compiler_pic_GO='--shared'
11738
        lt_prog_compiler_static_GO='--static'
11739
        ;;
11740
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11741
        # Portland Group compilers (*not* the Pentium gcc compiler,
11742
        # which looks to be a dead project)
11743
        lt_prog_compiler_wl_GO='-Wl,'
11744
        lt_prog_compiler_pic_GO='-fpic'
11745
        lt_prog_compiler_static_GO='-Bstatic'
11746
        ;;
11747
      ccc*)
11748
        lt_prog_compiler_wl_GO='-Wl,'
11749
        # All Alpha code is PIC.
11750
        lt_prog_compiler_static_GO='-non_shared'
11751
        ;;
11752
      xl* | bgxl* | bgf* | mpixl*)
11753
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11754
        lt_prog_compiler_wl_GO='-Wl,'
11755
        lt_prog_compiler_pic_GO='-qpic'
11756
        lt_prog_compiler_static_GO='-qstaticlink'
11757
        ;;
11758
      *)
11759
        case `$CC -V 2>&1 | sed 5q` in
11760
        *Sun\ F* | *Sun*Fortran*)
11761
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
11762
          lt_prog_compiler_pic_GO='-KPIC'
11763
          lt_prog_compiler_static_GO='-Bstatic'
11764
          lt_prog_compiler_wl_GO=''
11765
          ;;
11766
        *Sun\ C*)
11767
          # Sun C 5.9
11768
          lt_prog_compiler_pic_GO='-KPIC'
11769
          lt_prog_compiler_static_GO='-Bstatic'
11770
          lt_prog_compiler_wl_GO='-Wl,'
11771
          ;;
11772
        esac
11773
        ;;
11774
      esac
11775
      ;;
11776
 
11777
    newsos6)
11778
      lt_prog_compiler_pic_GO='-KPIC'
11779
      lt_prog_compiler_static_GO='-Bstatic'
11780
      ;;
11781
 
11782
    *nto* | *qnx*)
11783
      # QNX uses GNU C++, but need to define -shared option too, otherwise
11784
      # it will coredump.
11785
      lt_prog_compiler_pic_GO='-fPIC -shared'
11786
      ;;
11787
 
11788
    osf3* | osf4* | osf5*)
11789
      lt_prog_compiler_wl_GO='-Wl,'
11790
      # All OSF/1 code is PIC.
11791
      lt_prog_compiler_static_GO='-non_shared'
11792
      ;;
11793
 
11794
    rdos*)
11795
      lt_prog_compiler_static_GO='-non_shared'
11796
      ;;
11797
 
11798
    solaris*)
11799
      lt_prog_compiler_pic_GO='-KPIC'
11800
      lt_prog_compiler_static_GO='-Bstatic'
11801
      case $cc_basename in
11802
      f77* | f90* | f95*)
11803
        lt_prog_compiler_wl_GO='-Qoption ld ';;
11804
      *)
11805
        lt_prog_compiler_wl_GO='-Wl,';;
11806
      esac
11807
      ;;
11808
 
11809
    sunos4*)
11810
      lt_prog_compiler_wl_GO='-Qoption ld '
11811
      lt_prog_compiler_pic_GO='-PIC'
11812
      lt_prog_compiler_static_GO='-Bstatic'
11813
      ;;
11814
 
11815
    sysv4 | sysv4.2uw2* | sysv4.3*)
11816
      lt_prog_compiler_wl_GO='-Wl,'
11817
      lt_prog_compiler_pic_GO='-KPIC'
11818
      lt_prog_compiler_static_GO='-Bstatic'
11819
      ;;
11820
 
11821
    sysv4*MP*)
11822
      if test -d /usr/nec ;then
11823
        lt_prog_compiler_pic_GO='-Kconform_pic'
11824
        lt_prog_compiler_static_GO='-Bstatic'
11825
      fi
11826
      ;;
11827
 
11828
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11829
      lt_prog_compiler_wl_GO='-Wl,'
11830
      lt_prog_compiler_pic_GO='-KPIC'
11831
      lt_prog_compiler_static_GO='-Bstatic'
11832
      ;;
11833
 
11834
    unicos*)
11835
      lt_prog_compiler_wl_GO='-Wl,'
11836
      lt_prog_compiler_can_build_shared_GO=no
11837
      ;;
11838
 
11839
    uts4*)
11840
      lt_prog_compiler_pic_GO='-pic'
11841
      lt_prog_compiler_static_GO='-Bstatic'
11842
      ;;
11843
 
11844
    *)
11845
      lt_prog_compiler_can_build_shared_GO=no
11846
      ;;
11847
    esac
11848
  fi
11849
 
11850
case $host_os in
11851
  # For platforms which do not support PIC, -DPIC is meaningless:
11852
  *djgpp*)
11853
    lt_prog_compiler_pic_GO=
11854
    ;;
11855
  *)
11856
    lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11857
    ;;
11858
esac
11859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11860
$as_echo "$lt_prog_compiler_pic_GO" >&6; }
11861
 
11862
 
11863
 
11864
#
11865
# Check to make sure the PIC flag actually works.
11866
#
11867
if test -n "$lt_prog_compiler_pic_GO"; then
11868
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11869
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11870
if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11871
  $as_echo_n "(cached) " >&6
11872
else
11873
  lt_cv_prog_compiler_pic_works_GO=no
11874
   ac_outfile=conftest.$ac_objext
11875
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11876
   lt_compiler_flag="$lt_prog_compiler_pic_GO"
11877
   # Insert the option either (1) after the last *FLAGS variable, or
11878
   # (2) before a word containing "conftest.", or (3) at the end.
11879
   # Note that $ac_compile itself does not contain backslashes and begins
11880
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11881
   # The option is referenced via a variable to avoid confusing sed.
11882
   lt_compile=`echo "$ac_compile" | $SED \
11883
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11884
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11885
   -e 's:$: $lt_compiler_flag:'`
11886
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11887
   (eval "$lt_compile" 2>conftest.err)
11888
   ac_status=$?
11889
   cat conftest.err >&5
11890
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891
   if (exit $ac_status) && test -s "$ac_outfile"; then
11892
     # The compiler can only warn and ignore the option if not recognized
11893
     # So say no if there are warnings other than the usual output.
11894
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11895
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11896
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11897
       lt_cv_prog_compiler_pic_works_GO=yes
11898
     fi
11899
   fi
11900
   $RM conftest*
11901
 
11902
fi
11903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11904
$as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11905
 
11906
if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11907
    case $lt_prog_compiler_pic_GO in
11908
     "" | " "*) ;;
11909
     *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11910
     esac
11911
else
11912
    lt_prog_compiler_pic_GO=
11913
     lt_prog_compiler_can_build_shared_GO=no
11914
fi
11915
 
11916
fi
11917
 
11918
 
11919
 
11920
#
11921
# Check to make sure the static flag actually works.
11922
#
11923
wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11925
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11926
if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11927
  $as_echo_n "(cached) " >&6
11928
else
11929
  lt_cv_prog_compiler_static_works_GO=no
11930
   save_LDFLAGS="$LDFLAGS"
11931
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11932
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11933
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11934
     # The linker can only warn and ignore the option if not recognized
11935
     # So say no if there are warnings
11936
     if test -s conftest.err; then
11937
       # Append any errors to the config.log.
11938
       cat conftest.err 1>&5
11939
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11940
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11941
       if diff conftest.exp conftest.er2 >/dev/null; then
11942
         lt_cv_prog_compiler_static_works_GO=yes
11943
       fi
11944
     else
11945
       lt_cv_prog_compiler_static_works_GO=yes
11946
     fi
11947
   fi
11948
   $RM -r conftest*
11949
   LDFLAGS="$save_LDFLAGS"
11950
 
11951
fi
11952
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11953
$as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11954
 
11955
if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11956
    :
11957
else
11958
    lt_prog_compiler_static_GO=
11959
fi
11960
 
11961
 
11962
 
11963
 
11964
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11965
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11966
if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11967
  $as_echo_n "(cached) " >&6
11968
else
11969
  lt_cv_prog_compiler_c_o_GO=no
11970
   $RM -r conftest 2>/dev/null
11971
   mkdir conftest
11972
   cd conftest
11973
   mkdir out
11974
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11975
 
11976
   lt_compiler_flag="-o out/conftest2.$ac_objext"
11977
   # Insert the option either (1) after the last *FLAGS variable, or
11978
   # (2) before a word containing "conftest.", or (3) at the end.
11979
   # Note that $ac_compile itself does not contain backslashes and begins
11980
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11981
   lt_compile=`echo "$ac_compile" | $SED \
11982
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11983
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11984
   -e 's:$: $lt_compiler_flag:'`
11985
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11986
   (eval "$lt_compile" 2>out/conftest.err)
11987
   ac_status=$?
11988
   cat out/conftest.err >&5
11989
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11991
   then
11992
     # The compiler can only warn and ignore the option if not recognized
11993
     # So say no if there are warnings
11994
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11995
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11996
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11997
       lt_cv_prog_compiler_c_o_GO=yes
11998
     fi
11999
   fi
12000
   chmod u+w . 2>&5
12001
   $RM conftest*
12002
   # SGI C++ compiler will create directory out/ii_files/ for
12003
   # template instantiation
12004
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12005
   $RM out/* && rmdir out
12006
   cd ..
12007
   $RM -r conftest
12008
   $RM conftest*
12009
 
12010
fi
12011
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12012
$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12013
 
12014
 
12015
 
12016
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12017
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12018
if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12019
  $as_echo_n "(cached) " >&6
12020
else
12021
  lt_cv_prog_compiler_c_o_GO=no
12022
   $RM -r conftest 2>/dev/null
12023
   mkdir conftest
12024
   cd conftest
12025
   mkdir out
12026
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12027
 
12028
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12029
   # Insert the option either (1) after the last *FLAGS variable, or
12030
   # (2) before a word containing "conftest.", or (3) at the end.
12031
   # Note that $ac_compile itself does not contain backslashes and begins
12032
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12033
   lt_compile=`echo "$ac_compile" | $SED \
12034
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12035
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12036
   -e 's:$: $lt_compiler_flag:'`
12037
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12038
   (eval "$lt_compile" 2>out/conftest.err)
12039
   ac_status=$?
12040
   cat out/conftest.err >&5
12041
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12043
   then
12044
     # The compiler can only warn and ignore the option if not recognized
12045
     # So say no if there are warnings
12046
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12047
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12048
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12049
       lt_cv_prog_compiler_c_o_GO=yes
12050
     fi
12051
   fi
12052
   chmod u+w . 2>&5
12053
   $RM conftest*
12054
   # SGI C++ compiler will create directory out/ii_files/ for
12055
   # template instantiation
12056
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12057
   $RM out/* && rmdir out
12058
   cd ..
12059
   $RM -r conftest
12060
   $RM conftest*
12061
 
12062
fi
12063
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12064
$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12065
 
12066
 
12067
 
12068
 
12069
hard_links="nottested"
12070
if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12071
  # do not overwrite the value of need_locks provided by the user
12072
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12073
$as_echo_n "checking if we can lock with hard links... " >&6; }
12074
  hard_links=yes
12075
  $RM conftest*
12076
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12077
  touch conftest.a
12078
  ln conftest.a conftest.b 2>&5 || hard_links=no
12079
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12080
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12081
$as_echo "$hard_links" >&6; }
12082
  if test "$hard_links" = no; then
12083
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12084
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12085
    need_locks=warn
12086
  fi
12087
else
12088
  need_locks=no
12089
fi
12090
 
12091
 
12092
 
12093
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12094
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12095
 
12096
  runpath_var=
12097
  allow_undefined_flag_GO=
12098
  always_export_symbols_GO=no
12099
  archive_cmds_GO=
12100
  archive_expsym_cmds_GO=
12101
  compiler_needs_object_GO=no
12102
  enable_shared_with_static_runtimes_GO=no
12103
  export_dynamic_flag_spec_GO=
12104
  export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12105
  hardcode_automatic_GO=no
12106
  hardcode_direct_GO=no
12107
  hardcode_direct_absolute_GO=no
12108
  hardcode_libdir_flag_spec_GO=
12109
  hardcode_libdir_flag_spec_ld_GO=
12110
  hardcode_libdir_separator_GO=
12111
  hardcode_minus_L_GO=no
12112
  hardcode_shlibpath_var_GO=unsupported
12113
  inherit_rpath_GO=no
12114
  link_all_deplibs_GO=unknown
12115
  module_cmds_GO=
12116
  module_expsym_cmds_GO=
12117
  old_archive_from_new_cmds_GO=
12118
  old_archive_from_expsyms_cmds_GO=
12119
  thread_safe_flag_spec_GO=
12120
  whole_archive_flag_spec_GO=
12121
  # include_expsyms should be a list of space-separated symbols to be *always*
12122
  # included in the symbol list
12123
  include_expsyms_GO=
12124
  # exclude_expsyms can be an extended regexp of symbols to exclude
12125
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12126
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12127
  # as well as any symbol that contains `d'.
12128
  exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12129
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12130
  # platforms (ab)use it in PIC code, but their linkers get confused if
12131
  # the symbol is explicitly referenced.  Since portable code cannot
12132
  # rely on this symbol name, it's probably fine to never include it in
12133
  # preloaded symbol tables.
12134
  # Exclude shared library initialization/finalization symbols.
12135
  extract_expsyms_cmds=
12136
 
12137
  case $host_os in
12138
  cygwin* | mingw* | pw32* | cegcc*)
12139
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12140
    # When not using gcc, we currently assume that we are using
12141
    # Microsoft Visual C++.
12142
    if test "$GCC" != yes; then
12143
      with_gnu_ld=no
12144
    fi
12145
    ;;
12146
  interix*)
12147
    # we just hope/assume this is gcc and not c89 (= MSVC++)
12148
    with_gnu_ld=yes
12149
    ;;
12150
  openbsd*)
12151
    with_gnu_ld=no
12152
    ;;
12153
  esac
12154
 
12155
  ld_shlibs_GO=yes
12156
 
12157
  # On some targets, GNU ld is compatible enough with the native linker
12158
  # that we're better off using the native interface for both.
12159
  lt_use_gnu_ld_interface=no
12160
  if test "$with_gnu_ld" = yes; then
12161
    case $host_os in
12162
      aix*)
12163
        # The AIX port of GNU ld has always aspired to compatibility
12164
        # with the native linker.  However, as the warning in the GNU ld
12165
        # block says, versions before 2.19.5* couldn't really create working
12166
        # shared libraries, regardless of the interface used.
12167
        case `$LD -v 2>&1` in
12168
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12169
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12170
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12171
          *)
12172
            lt_use_gnu_ld_interface=yes
12173
            ;;
12174
        esac
12175
        ;;
12176
      *)
12177
        lt_use_gnu_ld_interface=yes
12178
        ;;
12179
    esac
12180
  fi
12181
 
12182
  if test "$lt_use_gnu_ld_interface" = yes; then
12183
    # If archive_cmds runs LD, not CC, wlarc should be empty
12184
    wlarc='${wl}'
12185
 
12186
    # Set some defaults for GNU ld with shared library support. These
12187
    # are reset later if shared libraries are not supported. Putting them
12188
    # here allows them to be overridden if necessary.
12189
    runpath_var=LD_RUN_PATH
12190
    hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12191
    export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12192
    # ancient GNU ld didn't support --whole-archive et. al.
12193
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12194
      whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12195
    else
12196
      whole_archive_flag_spec_GO=
12197
    fi
12198
    supports_anon_versioning=no
12199
    case `$LD -v 2>&1` in
12200
      *GNU\ gold*) supports_anon_versioning=yes ;;
12201
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12202
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12203
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12204
      *\ 2.11.*) ;; # other 2.11 versions
12205
      *) supports_anon_versioning=yes ;;
12206
    esac
12207
 
12208
    # See if GNU ld supports shared libraries.
12209
    case $host_os in
12210
    aix[3-9]*)
12211
      # On AIX/PPC, the GNU linker is very broken
12212
      if test "$host_cpu" != ia64; then
12213
        ld_shlibs_GO=no
12214
        cat <<_LT_EOF 1>&2
12215
 
12216
*** Warning: the GNU linker, at least up to release 2.19, is reported
12217
*** to be unable to reliably create shared libraries on AIX.
12218
*** Therefore, libtool is disabling shared libraries support.  If you
12219
*** really care for shared libraries, you may want to install binutils
12220
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12221
*** You will then need to restart the configuration process.
12222
 
12223
_LT_EOF
12224
      fi
12225
      ;;
12226
 
12227
    amigaos*)
12228
      case $host_cpu in
12229
      powerpc)
12230
            # see comment about AmigaOS4 .so support
12231
            archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12232
            archive_expsym_cmds_GO=''
12233
        ;;
12234
      m68k)
12235
            archive_cmds_GO='$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)'
12236
            hardcode_libdir_flag_spec_GO='-L$libdir'
12237
            hardcode_minus_L_GO=yes
12238
        ;;
12239
      esac
12240
      ;;
12241
 
12242
    beos*)
12243
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12244
        allow_undefined_flag_GO=unsupported
12245
        # Joseph Beckenbach  says some releases of gcc
12246
        # support --undefined.  This deserves some investigation.  FIXME
12247
        archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12248
      else
12249
        ld_shlibs_GO=no
12250
      fi
12251
      ;;
12252
 
12253
    cygwin* | mingw* | pw32* | cegcc*)
12254
      # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12255
      # as there is no search path for DLLs.
12256
      hardcode_libdir_flag_spec_GO='-L$libdir'
12257
      export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12258
      allow_undefined_flag_GO=unsupported
12259
      always_export_symbols_GO=no
12260
      enable_shared_with_static_runtimes_GO=yes
12261
      export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12262
 
12263
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12264
        archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12265
        # If the export-symbols file already is a .def file (1st line
12266
        # is EXPORTS), use it as is; otherwise, prepend...
12267
        archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12268
          cp $export_symbols $output_objdir/$soname.def;
12269
        else
12270
          echo EXPORTS > $output_objdir/$soname.def;
12271
          cat $export_symbols >> $output_objdir/$soname.def;
12272
        fi~
12273
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12274
      else
12275
        ld_shlibs_GO=no
12276
      fi
12277
      ;;
12278
 
12279
    haiku*)
12280
      archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12281
      link_all_deplibs_GO=yes
12282
      ;;
12283
 
12284
    interix[3-9]*)
12285
      hardcode_direct_GO=no
12286
      hardcode_shlibpath_var_GO=no
12287
      hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12288
      export_dynamic_flag_spec_GO='${wl}-E'
12289
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12290
      # Instead, shared libraries are loaded at an image base (0x10000000 by
12291
      # default) and relocated if they conflict, which is a slow very memory
12292
      # consuming and fragmenting process.  To avoid this, we pick a random,
12293
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12294
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12295
      archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12296
      archive_expsym_cmds_GO='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'
12297
      ;;
12298
 
12299
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12300
      tmp_diet=no
12301
      if test "$host_os" = linux-dietlibc; then
12302
        case $cc_basename in
12303
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12304
        esac
12305
      fi
12306
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12307
         && test "$tmp_diet" = no
12308
      then
12309
        tmp_addflag=
12310
        tmp_sharedflag='-shared'
12311
        case $cc_basename,$host_cpu in
12312
        pgcc*)                          # Portland Group C compiler
12313
          whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12314
          tmp_addflag=' $pic_flag'
12315
          ;;
12316
        pgf77* | pgf90* | pgf95* | pgfortran*)
12317
                                        # Portland Group f77 and f90 compilers
12318
          whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12319
          tmp_addflag=' $pic_flag -Mnomain' ;;
12320
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12321
          tmp_addflag=' -i_dynamic' ;;
12322
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12323
          tmp_addflag=' -i_dynamic -nofor_main' ;;
12324
        ifc* | ifort*)                  # Intel Fortran compiler
12325
          tmp_addflag=' -nofor_main' ;;
12326
        lf95*)                          # Lahey Fortran 8.1
12327
          whole_archive_flag_spec_GO=
12328
          tmp_sharedflag='--shared' ;;
12329
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12330
          tmp_sharedflag='-qmkshrobj'
12331
          tmp_addflag= ;;
12332
        nvcc*)  # Cuda Compiler Driver 2.2
12333
          whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12334
          compiler_needs_object_GO=yes
12335
          ;;
12336
        esac
12337
        case `$CC -V 2>&1 | sed 5q` in
12338
        *Sun\ C*)                       # Sun C 5.9
12339
          whole_archive_flag_spec_GO='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12340
          compiler_needs_object_GO=yes
12341
          tmp_sharedflag='-G' ;;
12342
        *Sun\ F*)                       # Sun Fortran 8.3
12343
          tmp_sharedflag='-G' ;;
12344
        esac
12345
        archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12346
 
12347
        if test "x$supports_anon_versioning" = xyes; then
12348
          archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12349
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12350
            echo "local: *; };" >> $output_objdir/$libname.ver~
12351
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12352
        fi
12353
 
12354
        case $cc_basename in
12355
        xlf* | bgf* | bgxlf* | mpixlf*)
12356
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12357
          whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12358
          hardcode_libdir_flag_spec_GO=
12359
          hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12360
          archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12361
          if test "x$supports_anon_versioning" = xyes; then
12362
            archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12363
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12364
              echo "local: *; };" >> $output_objdir/$libname.ver~
12365
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12366
          fi
12367
          ;;
12368
        esac
12369
      else
12370
        ld_shlibs_GO=no
12371
      fi
12372
      ;;
12373
 
12374
    netbsd*)
12375
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12376
        archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12377
        wlarc=
12378
      else
12379
        archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12380
        archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12381
      fi
12382
      ;;
12383
 
12384
    solaris*)
12385
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12386
        ld_shlibs_GO=no
12387
        cat <<_LT_EOF 1>&2
12388
 
12389
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12390
*** create shared libraries on Solaris systems.  Therefore, libtool
12391
*** is disabling shared libraries support.  We urge you to upgrade GNU
12392
*** binutils to release 2.9.1 or newer.  Another option is to modify
12393
*** your PATH or compiler configuration so that the native linker is
12394
*** used, and then restart.
12395
 
12396
_LT_EOF
12397
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12398
        archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12399
        archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12400
      else
12401
        ld_shlibs_GO=no
12402
      fi
12403
      ;;
12404
 
12405
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12406
      case `$LD -v 2>&1` in
12407
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12408
        ld_shlibs_GO=no
12409
        cat <<_LT_EOF 1>&2
12410
 
12411
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12412
*** reliably create shared libraries on SCO systems.  Therefore, libtool
12413
*** is disabling shared libraries support.  We urge you to upgrade GNU
12414
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12415
*** your PATH or compiler configuration so that the native linker is
12416
*** used, and then restart.
12417
 
12418
_LT_EOF
12419
        ;;
12420
        *)
12421
          # For security reasons, it is highly recommended that you always
12422
          # use absolute paths for naming shared libraries, and exclude the
12423
          # DT_RUNPATH tag from executables and libraries.  But doing so
12424
          # requires that you compile everything twice, which is a pain.
12425
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12426
            hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12427
            archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12428
            archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12429
          else
12430
            ld_shlibs_GO=no
12431
          fi
12432
        ;;
12433
      esac
12434
      ;;
12435
 
12436
    sunos4*)
12437
      archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12438
      wlarc=
12439
      hardcode_direct_GO=yes
12440
      hardcode_shlibpath_var_GO=no
12441
      ;;
12442
 
12443
    *)
12444
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12445
        archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12446
        archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12447
      else
12448
        ld_shlibs_GO=no
12449
      fi
12450
      ;;
12451
    esac
12452
 
12453
    if test "$ld_shlibs_GO" = no; then
12454
      runpath_var=
12455
      hardcode_libdir_flag_spec_GO=
12456
      export_dynamic_flag_spec_GO=
12457
      whole_archive_flag_spec_GO=
12458
    fi
12459
  else
12460
    # PORTME fill in a description of your system's linker (not GNU ld)
12461
    case $host_os in
12462
    aix3*)
12463
      allow_undefined_flag_GO=unsupported
12464
      always_export_symbols_GO=yes
12465
      archive_expsym_cmds_GO='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12466
      # Note: this linker hardcodes the directories in LIBPATH if there
12467
      # are no directories specified by -L.
12468
      hardcode_minus_L_GO=yes
12469
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12470
        # Neither direct hardcoding nor static linking is supported with a
12471
        # broken collect2.
12472
        hardcode_direct_GO=unsupported
12473
      fi
12474
      ;;
12475
 
12476
    aix[4-9]*)
12477
      if test "$host_cpu" = ia64; then
12478
        # On IA64, the linker does run time linking by default, so we don't
12479
        # have to do anything special.
12480
        aix_use_runtimelinking=no
12481
        exp_sym_flag='-Bexport'
12482
        no_entry_flag=""
12483
      else
12484
        # If we're using GNU nm, then we don't want the "-C" option.
12485
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
12486
        # Also, AIX nm treats weak defined symbols like other global
12487
        # defined symbols, whereas GNU nm marks them as "W".
12488
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12489
          export_symbols_cmds_GO='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12490
        else
12491
          export_symbols_cmds_GO='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12492
        fi
12493
        aix_use_runtimelinking=no
12494
 
12495
        # Test if we are trying to use run time linking or normal
12496
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12497
        # need to do runtime linking.
12498
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12499
          for ld_flag in $LDFLAGS; do
12500
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12501
            aix_use_runtimelinking=yes
12502
            break
12503
          fi
12504
          done
12505
          ;;
12506
        esac
12507
 
12508
        exp_sym_flag='-bexport'
12509
        no_entry_flag='-bnoentry'
12510
      fi
12511
 
12512
      # When large executables or shared objects are built, AIX ld can
12513
      # have problems creating the table of contents.  If linking a library
12514
      # or program results in "error TOC overflow" add -mminimal-toc to
12515
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12516
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12517
 
12518
      archive_cmds_GO=''
12519
      hardcode_direct_GO=yes
12520
      hardcode_direct_absolute_GO=yes
12521
      hardcode_libdir_separator_GO=':'
12522
      link_all_deplibs_GO=yes
12523
      file_list_spec_GO='${wl}-f,'
12524
 
12525
      if test "$GCC" = yes; then
12526
        case $host_os in aix4.[012]|aix4.[012].*)
12527
        # We only want to do this on AIX 4.2 and lower, the check
12528
        # below for broken collect2 doesn't work under 4.3+
12529
          collect2name=`${CC} -print-prog-name=collect2`
12530
          if test -f "$collect2name" &&
12531
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12532
          then
12533
          # We have reworked collect2
12534
          :
12535
          else
12536
          # We have old collect2
12537
          hardcode_direct_GO=unsupported
12538
          # It fails to find uninstalled libraries when the uninstalled
12539
          # path is not listed in the libpath.  Setting hardcode_minus_L
12540
          # to unsupported forces relinking
12541
          hardcode_minus_L_GO=yes
12542
          hardcode_libdir_flag_spec_GO='-L$libdir'
12543
          hardcode_libdir_separator_GO=
12544
          fi
12545
          ;;
12546
        esac
12547
        shared_flag='-shared'
12548
        if test "$aix_use_runtimelinking" = yes; then
12549
          shared_flag="$shared_flag "'${wl}-G'
12550
        fi
12551
      else
12552
        # not using gcc
12553
        if test "$host_cpu" = ia64; then
12554
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12555
        # chokes on -Wl,-G. The following line is correct:
12556
          shared_flag='-G'
12557
        else
12558
          if test "$aix_use_runtimelinking" = yes; then
12559
            shared_flag='${wl}-G'
12560
          else
12561
            shared_flag='${wl}-bM:SRE'
12562
          fi
12563
        fi
12564
      fi
12565
 
12566
      export_dynamic_flag_spec_GO='${wl}-bexpall'
12567
      # It seems that -bexpall does not export symbols beginning with
12568
      # underscore (_), so it is better to generate a list of symbols to export.
12569
      always_export_symbols_GO=yes
12570
      if test "$aix_use_runtimelinking" = yes; then
12571
        # Warning - without using the other runtime loading flags (-brtl),
12572
        # -berok will link without error, but may produce a broken library.
12573
        allow_undefined_flag_GO='-berok'
12574
        # Determine the default libpath from the value encoded in an
12575
        # empty executable.
12576
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577
/* end confdefs.h.  */
12578
 
12579
int
12580
main ()
12581
{
12582
 
12583
  ;
12584
  return 0;
12585
}
12586
_ACEOF
12587
if ac_fn_c_try_link "$LINENO"; then :
12588
 
12589
lt_aix_libpath_sed='
12590
    /Import File Strings/,/^$/ {
12591
        /^0/ {
12592
            s/^0  *\(.*\)$/\1/
12593
            p
12594
        }
12595
    }'
12596
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12597
# Check for a 64-bit object if we didn't find anything.
12598
if test -z "$aix_libpath"; then
12599
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12600
fi
12601
fi
12602
rm -f core conftest.err conftest.$ac_objext \
12603
    conftest$ac_exeext conftest.$ac_ext
12604
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12605
 
12606
        hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12607
        archive_expsym_cmds_GO='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12608
      else
12609
        if test "$host_cpu" = ia64; then
12610
          hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12611
          allow_undefined_flag_GO="-z nodefs"
12612
          archive_expsym_cmds_GO="\$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"
12613
        else
12614
         # Determine the default libpath from the value encoded in an
12615
         # empty executable.
12616
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617
/* end confdefs.h.  */
12618
 
12619
int
12620
main ()
12621
{
12622
 
12623
  ;
12624
  return 0;
12625
}
12626
_ACEOF
12627
if ac_fn_c_try_link "$LINENO"; then :
12628
 
12629
lt_aix_libpath_sed='
12630
    /Import File Strings/,/^$/ {
12631
        /^0/ {
12632
            s/^0  *\(.*\)$/\1/
12633
            p
12634
        }
12635
    }'
12636
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12637
# Check for a 64-bit object if we didn't find anything.
12638
if test -z "$aix_libpath"; then
12639
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12640
fi
12641
fi
12642
rm -f core conftest.err conftest.$ac_objext \
12643
    conftest$ac_exeext conftest.$ac_ext
12644
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12645
 
12646
         hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12647
          # Warning - without using the other run time loading flags,
12648
          # -berok will link without error, but may produce a broken library.
12649
          no_undefined_flag_GO=' ${wl}-bernotok'
12650
          allow_undefined_flag_GO=' ${wl}-berok'
12651
          if test "$with_gnu_ld" = yes; then
12652
            # We only use this code for GNU lds that support --whole-archive.
12653
            whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12654
          else
12655
            # Exported symbols can be pulled into shared objects from archives
12656
            whole_archive_flag_spec_GO='$convenience'
12657
          fi
12658
          archive_cmds_need_lc_GO=yes
12659
          # This is similar to how AIX traditionally builds its shared libraries.
12660
          archive_expsym_cmds_GO="\$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'
12661
        fi
12662
      fi
12663
      ;;
12664
 
12665
    amigaos*)
12666
      case $host_cpu in
12667
      powerpc)
12668
            # see comment about AmigaOS4 .so support
12669
            archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12670
            archive_expsym_cmds_GO=''
12671
        ;;
12672
      m68k)
12673
            archive_cmds_GO='$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)'
12674
            hardcode_libdir_flag_spec_GO='-L$libdir'
12675
            hardcode_minus_L_GO=yes
12676
        ;;
12677
      esac
12678
      ;;
12679
 
12680
    bsdi[45]*)
12681
      export_dynamic_flag_spec_GO=-rdynamic
12682
      ;;
12683
 
12684
    cygwin* | mingw* | pw32* | cegcc*)
12685
      # When not using gcc, we currently assume that we are using
12686
      # Microsoft Visual C++.
12687
      # hardcode_libdir_flag_spec is actually meaningless, as there is
12688
      # no search path for DLLs.
12689
      hardcode_libdir_flag_spec_GO=' '
12690
      allow_undefined_flag_GO=unsupported
12691
      # Tell ltmain to make .lib files, not .a files.
12692
      libext=lib
12693
      # Tell ltmain to make .dll files, not .so files.
12694
      shrext_cmds=".dll"
12695
      # FIXME: Setting linknames here is a bad hack.
12696
      archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12697
      # The linker will automatically build a .lib file if we build a DLL.
12698
      old_archive_from_new_cmds_GO='true'
12699
      # FIXME: Should let the user specify the lib program.
12700
      old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12701
      fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12702
      enable_shared_with_static_runtimes_GO=yes
12703
      ;;
12704
 
12705
    darwin* | rhapsody*)
12706
 
12707
 
12708
  archive_cmds_need_lc_GO=no
12709
  hardcode_direct_GO=no
12710
  hardcode_automatic_GO=yes
12711
  hardcode_shlibpath_var_GO=unsupported
12712
  if test "$lt_cv_ld_force_load" = "yes"; then
12713
    whole_archive_flag_spec_GO='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12714
  else
12715
    whole_archive_flag_spec_GO=''
12716
  fi
12717
  link_all_deplibs_GO=yes
12718
  allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12719
  case $cc_basename in
12720
     ifort*) _lt_dar_can_shared=yes ;;
12721
     *) _lt_dar_can_shared=$GCC ;;
12722
  esac
12723
  if test "$_lt_dar_can_shared" = "yes"; then
12724
    output_verbose_link_cmd=func_echo_all
12725
    archive_cmds_GO="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12726
    module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12727
    archive_expsym_cmds_GO="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}"
12728
    module_expsym_cmds_GO="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}"
12729
 
12730
  else
12731
  ld_shlibs_GO=no
12732
  fi
12733
 
12734
      ;;
12735
 
12736
    dgux*)
12737
      archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12738
      hardcode_libdir_flag_spec_GO='-L$libdir'
12739
      hardcode_shlibpath_var_GO=no
12740
      ;;
12741
 
12742
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12743
    # support.  Future versions do this automatically, but an explicit c++rt0.o
12744
    # does not break anything, and helps significantly (at the cost of a little
12745
    # extra space).
12746
    freebsd2.2*)
12747
      archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12748
      hardcode_libdir_flag_spec_GO='-R$libdir'
12749
      hardcode_direct_GO=yes
12750
      hardcode_shlibpath_var_GO=no
12751
      ;;
12752
 
12753
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12754
    freebsd2*)
12755
      archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12756
      hardcode_direct_GO=yes
12757
      hardcode_minus_L_GO=yes
12758
      hardcode_shlibpath_var_GO=no
12759
      ;;
12760
 
12761
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12762
    freebsd* | dragonfly*)
12763
      archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12764
      hardcode_libdir_flag_spec_GO='-R$libdir'
12765
      hardcode_direct_GO=yes
12766
      hardcode_shlibpath_var_GO=no
12767
      ;;
12768
 
12769
    hpux9*)
12770
      if test "$GCC" = yes; then
12771
        archive_cmds_GO='$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'
12772
      else
12773
        archive_cmds_GO='$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'
12774
      fi
12775
      hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12776
      hardcode_libdir_separator_GO=:
12777
      hardcode_direct_GO=yes
12778
 
12779
      # hardcode_minus_L: Not really in the search PATH,
12780
      # but as the default location of the library.
12781
      hardcode_minus_L_GO=yes
12782
      export_dynamic_flag_spec_GO='${wl}-E'
12783
      ;;
12784
 
12785
    hpux10*)
12786
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12787
        archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12788
      else
12789
        archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12790
      fi
12791
      if test "$with_gnu_ld" = no; then
12792
        hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12793
        hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12794
        hardcode_libdir_separator_GO=:
12795
        hardcode_direct_GO=yes
12796
        hardcode_direct_absolute_GO=yes
12797
        export_dynamic_flag_spec_GO='${wl}-E'
12798
        # hardcode_minus_L: Not really in the search PATH,
12799
        # but as the default location of the library.
12800
        hardcode_minus_L_GO=yes
12801
      fi
12802
      ;;
12803
 
12804
    hpux11*)
12805
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12806
        case $host_cpu in
12807
        hppa*64*)
12808
          archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12809
          ;;
12810
        ia64*)
12811
          archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12812
          ;;
12813
        *)
12814
          archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12815
          ;;
12816
        esac
12817
      else
12818
        case $host_cpu in
12819
        hppa*64*)
12820
          archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12821
          ;;
12822
        ia64*)
12823
          archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12824
          ;;
12825
        *)
12826
        archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12827
          ;;
12828
        esac
12829
      fi
12830
      if test "$with_gnu_ld" = no; then
12831
        hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12832
        hardcode_libdir_separator_GO=:
12833
 
12834
        case $host_cpu in
12835
        hppa*64*|ia64*)
12836
          hardcode_direct_GO=no
12837
          hardcode_shlibpath_var_GO=no
12838
          ;;
12839
        *)
12840
          hardcode_direct_GO=yes
12841
          hardcode_direct_absolute_GO=yes
12842
          export_dynamic_flag_spec_GO='${wl}-E'
12843
 
12844
          # hardcode_minus_L: Not really in the search PATH,
12845
          # but as the default location of the library.
12846
          hardcode_minus_L_GO=yes
12847
          ;;
12848
        esac
12849
      fi
12850
      ;;
12851
 
12852
    irix5* | irix6* | nonstopux*)
12853
      if test "$GCC" = yes; then
12854
        archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12855
        # Try to use the -exported_symbol ld option, if it does not
12856
        # work, assume that -exports_file does not work either and
12857
        # implicitly export all symbols.
12858
        save_LDFLAGS="$LDFLAGS"
12859
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12860
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861
/* end confdefs.h.  */
12862
int foo(void) {}
12863
_ACEOF
12864
if ac_fn_c_try_link "$LINENO"; then :
12865
  archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12866
 
12867
fi
12868
rm -f core conftest.err conftest.$ac_objext \
12869
    conftest$ac_exeext conftest.$ac_ext
12870
        LDFLAGS="$save_LDFLAGS"
12871
      else
12872
        archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12873
        archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12874
      fi
12875
      archive_cmds_need_lc_GO='no'
12876
      hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12877
      hardcode_libdir_separator_GO=:
12878
      inherit_rpath_GO=yes
12879
      link_all_deplibs_GO=yes
12880
      ;;
12881
 
12882
    netbsd*)
12883
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12884
        archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12885
      else
12886
        archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12887
      fi
12888
      hardcode_libdir_flag_spec_GO='-R$libdir'
12889
      hardcode_direct_GO=yes
12890
      hardcode_shlibpath_var_GO=no
12891
      ;;
12892
 
12893
    newsos6)
12894
      archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12895
      hardcode_direct_GO=yes
12896
      hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12897
      hardcode_libdir_separator_GO=:
12898
      hardcode_shlibpath_var_GO=no
12899
      ;;
12900
 
12901
    *nto* | *qnx*)
12902
      ;;
12903
 
12904
    openbsd*)
12905
      if test -f /usr/libexec/ld.so; then
12906
        hardcode_direct_GO=yes
12907
        hardcode_shlibpath_var_GO=no
12908
        hardcode_direct_absolute_GO=yes
12909
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12910
          archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12911
          archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12912
          hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12913
          export_dynamic_flag_spec_GO='${wl}-E'
12914
        else
12915
          case $host_os in
12916
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12917
             archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12918
             hardcode_libdir_flag_spec_GO='-R$libdir'
12919
             ;;
12920
           *)
12921
             archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12922
             hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12923
             ;;
12924
          esac
12925
        fi
12926
      else
12927
        ld_shlibs_GO=no
12928
      fi
12929
      ;;
12930
 
12931
    os2*)
12932
      hardcode_libdir_flag_spec_GO='-L$libdir'
12933
      hardcode_minus_L_GO=yes
12934
      allow_undefined_flag_GO=unsupported
12935
      archive_cmds_GO='$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'
12936
      old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12937
      ;;
12938
 
12939
    osf3*)
12940
      if test "$GCC" = yes; then
12941
        allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12942
        archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12943
      else
12944
        allow_undefined_flag_GO=' -expect_unresolved \*'
12945
        archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12946
      fi
12947
      archive_cmds_need_lc_GO='no'
12948
      hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12949
      hardcode_libdir_separator_GO=:
12950
      ;;
12951
 
12952
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
12953
      if test "$GCC" = yes; then
12954
        allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12955
        archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12956
        hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12957
      else
12958
        allow_undefined_flag_GO=' -expect_unresolved \*'
12959
        archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12960
        archive_expsym_cmds_GO='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12961
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12962
 
12963
        # Both c and cxx compiler support -rpath directly
12964
        hardcode_libdir_flag_spec_GO='-rpath $libdir'
12965
      fi
12966
      archive_cmds_need_lc_GO='no'
12967
      hardcode_libdir_separator_GO=:
12968
      ;;
12969
 
12970
    solaris*)
12971
      no_undefined_flag_GO=' -z defs'
12972
      if test "$GCC" = yes; then
12973
        wlarc='${wl}'
12974
        archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12975
        archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12976
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12977
      else
12978
        case `$CC -V 2>&1` in
12979
        *"Compilers 5.0"*)
12980
          wlarc=''
12981
          archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12982
          archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12983
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12984
          ;;
12985
        *)
12986
          wlarc='${wl}'
12987
          archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12988
          archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12989
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12990
          ;;
12991
        esac
12992
      fi
12993
      hardcode_libdir_flag_spec_GO='-R$libdir'
12994
      hardcode_shlibpath_var_GO=no
12995
      case $host_os in
12996
      solaris2.[0-5] | solaris2.[0-5].*) ;;
12997
      *)
12998
        # The compiler driver will combine and reorder linker options,
12999
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
13000
        # but is careful enough not to reorder.
13001
        # Supported since Solaris 2.6 (maybe 2.5.1?)
13002
        if test "$GCC" = yes; then
13003
          whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13004
        else
13005
          whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13006
        fi
13007
        ;;
13008
      esac
13009
      link_all_deplibs_GO=yes
13010
      ;;
13011
 
13012
    sunos4*)
13013
      if test "x$host_vendor" = xsequent; then
13014
        # Use $CC to link under sequent, because it throws in some extra .o
13015
        # files that make .init and .fini sections work.
13016
        archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13017
      else
13018
        archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13019
      fi
13020
      hardcode_libdir_flag_spec_GO='-L$libdir'
13021
      hardcode_direct_GO=yes
13022
      hardcode_minus_L_GO=yes
13023
      hardcode_shlibpath_var_GO=no
13024
      ;;
13025
 
13026
    sysv4)
13027
      case $host_vendor in
13028
        sni)
13029
          archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13030
          hardcode_direct_GO=yes # is this really true???
13031
        ;;
13032
        siemens)
13033
          ## LD is ld it makes a PLAMLIB
13034
          ## CC just makes a GrossModule.
13035
          archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13036
          reload_cmds_GO='$CC -r -o $output$reload_objs'
13037
          hardcode_direct_GO=no
13038
        ;;
13039
        motorola)
13040
          archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13041
          hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13042
        ;;
13043
      esac
13044
      runpath_var='LD_RUN_PATH'
13045
      hardcode_shlibpath_var_GO=no
13046
      ;;
13047
 
13048
    sysv4.3*)
13049
      archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13050
      hardcode_shlibpath_var_GO=no
13051
      export_dynamic_flag_spec_GO='-Bexport'
13052
      ;;
13053
 
13054
    sysv4*MP*)
13055
      if test -d /usr/nec; then
13056
        archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13057
        hardcode_shlibpath_var_GO=no
13058
        runpath_var=LD_RUN_PATH
13059
        hardcode_runpath_var=yes
13060
        ld_shlibs_GO=yes
13061
      fi
13062
      ;;
13063
 
13064
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13065
      no_undefined_flag_GO='${wl}-z,text'
13066
      archive_cmds_need_lc_GO=no
13067
      hardcode_shlibpath_var_GO=no
13068
      runpath_var='LD_RUN_PATH'
13069
 
13070
      if test "$GCC" = yes; then
13071
        archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13072
        archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13073
      else
13074
        archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13075
        archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13076
      fi
13077
      ;;
13078
 
13079
    sysv5* | sco3.2v5* | sco5v6*)
13080
      # Note: We can NOT use -z defs as we might desire, because we do not
13081
      # link with -lc, and that would cause any symbols used from libc to
13082
      # always be unresolved, which means just about no library would
13083
      # ever link correctly.  If we're not using GNU ld we use -z text
13084
      # though, which does catch some bad symbols but isn't as heavy-handed
13085
      # as -z defs.
13086
      no_undefined_flag_GO='${wl}-z,text'
13087
      allow_undefined_flag_GO='${wl}-z,nodefs'
13088
      archive_cmds_need_lc_GO=no
13089
      hardcode_shlibpath_var_GO=no
13090
      hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13091
      hardcode_libdir_separator_GO=':'
13092
      link_all_deplibs_GO=yes
13093
      export_dynamic_flag_spec_GO='${wl}-Bexport'
13094
      runpath_var='LD_RUN_PATH'
13095
 
13096
      if test "$GCC" = yes; then
13097
        archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13098
        archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13099
      else
13100
        archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13101
        archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13102
      fi
13103
      ;;
13104
 
13105
    uts4*)
13106
      archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13107
      hardcode_libdir_flag_spec_GO='-L$libdir'
13108
      hardcode_shlibpath_var_GO=no
13109
      ;;
13110
 
13111
    *)
13112
      ld_shlibs_GO=no
13113
      ;;
13114
    esac
13115
 
13116
    if test x$host_vendor = xsni; then
13117
      case $host in
13118
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13119
        export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13120
        ;;
13121
      esac
13122
    fi
13123
  fi
13124
 
13125
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13126
$as_echo "$ld_shlibs_GO" >&6; }
13127
test "$ld_shlibs_GO" = no && can_build_shared=no
13128
 
13129
with_gnu_ld_GO=$with_gnu_ld
13130
 
13131
 
13132
 
13133
 
13134
 
13135
 
13136
#
13137
# Do we need to explicitly link libc?
13138
#
13139
case "x$archive_cmds_need_lc_GO" in
13140
x|xyes)
13141
  # Assume -lc should be added
13142
  archive_cmds_need_lc_GO=yes
13143
 
13144
  if test "$enable_shared" = yes && test "$GCC" = yes; then
13145
    case $archive_cmds_GO in
13146
    *'~'*)
13147
      # FIXME: we may have to deal with multi-command sequences.
13148
      ;;
13149
    '$CC '*)
13150
      # Test whether the compiler implicitly links with -lc since on some
13151
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13152
      # to ld, don't add -lc before -lgcc.
13153
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13154
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13155
if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13156
  $as_echo_n "(cached) " >&6
13157
else
13158
  $RM conftest*
13159
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13160
 
13161
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13162
  (eval $ac_compile) 2>&5
13163
  ac_status=$?
13164
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13165
  test $ac_status = 0; } 2>conftest.err; then
13166
          soname=conftest
13167
          lib=conftest
13168
          libobjs=conftest.$ac_objext
13169
          deplibs=
13170
          wl=$lt_prog_compiler_wl_GO
13171
          pic_flag=$lt_prog_compiler_pic_GO
13172
          compiler_flags=-v
13173
          linker_flags=-v
13174
          verstring=
13175
          output_objdir=.
13176
          libname=conftest
13177
          lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13178
          allow_undefined_flag_GO=
13179
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13180
  (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13181
  ac_status=$?
13182
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13183
  test $ac_status = 0; }
13184
          then
13185
            lt_cv_archive_cmds_need_lc_GO=no
13186
          else
13187
            lt_cv_archive_cmds_need_lc_GO=yes
13188
          fi
13189
          allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13190
        else
13191
          cat conftest.err 1>&5
13192
        fi
13193
        $RM conftest*
13194
 
13195
fi
13196
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13197
$as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13198
      archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13199
      ;;
13200
    esac
13201
  fi
13202
  ;;
13203
esac
13204
 
13205
 
13206
 
13207
 
13208
 
13209
 
13210
 
13211
 
13212
 
13213
 
13214
 
13215
 
13216
 
13217
 
13218
 
13219
 
13220
 
13221
 
13222
 
13223
 
13224
 
13225
 
13226
 
13227
 
13228
 
13229
 
13230
 
13231
 
13232
 
13233
 
13234
 
13235
 
13236
 
13237
 
13238
 
13239
 
13240
 
13241
 
13242
 
13243
 
13244
 
13245
 
13246
 
13247
 
13248
 
13249
 
13250
 
13251
 
13252
 
13253
 
13254
 
13255
 
13256
 
13257
 
13258
 
13259
 
13260
 
13261
 
13262
 
13263
 
13264
 
13265
 
13266
 
13267
 
13268
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13269
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13270
hardcode_action_GO=
13271
if test -n "$hardcode_libdir_flag_spec_GO" ||
13272
   test -n "$runpath_var_GO" ||
13273
   test "X$hardcode_automatic_GO" = "Xyes" ; then
13274
 
13275
  # We can hardcode non-existent directories.
13276
  if test "$hardcode_direct_GO" != no &&
13277
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13278
     # have to relink, otherwise we might link with an installed library
13279
     # when we should be linking with a yet-to-be-installed one
13280
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13281
     test "$hardcode_minus_L_GO" != no; then
13282
    # Linking always hardcodes the temporary library directory.
13283
    hardcode_action_GO=relink
13284
  else
13285
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13286
    hardcode_action_GO=immediate
13287
  fi
13288
else
13289
  # We cannot hardcode anything, or else we can only hardcode existing
13290
  # directories.
13291
  hardcode_action_GO=unsupported
13292
fi
13293
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13294
$as_echo "$hardcode_action_GO" >&6; }
13295
 
13296
if test "$hardcode_action_GO" = relink ||
13297
   test "$inherit_rpath_GO" = yes; then
13298
  # Fast installation is not supported
13299
  enable_fast_install=no
13300
elif test "$shlibpath_overrides_runpath" = yes ||
13301
     test "$enable_shared" = no; then
13302
  # Fast installation is not necessary
13303
  enable_fast_install=needless
13304
fi
13305
 
13306
 
13307
 
13308
 
13309
 
13310
 
13311
 
13312
fi
13313
 
13314
ac_ext=c
13315
ac_cpp='$CPP $CPPFLAGS'
13316
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13317
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13318
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13319
 
13320
 
13321
GCC=$lt_save_GCC
13322
CC="$lt_save_CC"
13323
 
13324
 
13325
 
13326
 
13327
        ac_config_commands="$ac_config_commands libtool"
13328
 
13329
 
13330
 
13331
 
13332
# Only expand once:
13333
 
13334
 
13335
 
13336
 
13337
 
13338
CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13339
 
13340
 
13341
for ac_prog in gawk mawk nawk awk
13342
do
13343
  # Extract the first word of "$ac_prog", so it can be a program name with args.
13344
set dummy $ac_prog; ac_word=$2
13345
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13346
$as_echo_n "checking for $ac_word... " >&6; }
13347
if test "${ac_cv_prog_AWK+set}" = set; then :
13348
  $as_echo_n "(cached) " >&6
13349
else
13350
  if test -n "$AWK"; then
13351
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
13352
else
13353
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13354
for as_dir in $PATH
13355
do
13356
  IFS=$as_save_IFS
13357
  test -z "$as_dir" && as_dir=.
13358
    for ac_exec_ext in '' $ac_executable_extensions; do
13359
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13360
    ac_cv_prog_AWK="$ac_prog"
13361
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13362
    break 2
13363
  fi
13364
done
13365
  done
13366
IFS=$as_save_IFS
13367
 
13368
fi
13369
fi
13370
AWK=$ac_cv_prog_AWK
13371
if test -n "$AWK"; then
13372
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13373
$as_echo "$AWK" >&6; }
13374
else
13375
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13376
$as_echo "no" >&6; }
13377
fi
13378
 
13379
 
13380
  test -n "$AWK" && break
13381
done
13382
 
13383
 
13384
WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13385
 
13386
 
13387
WERROR="-Werror"
13388
 
13389
 
13390
glibgo_toolexecdir=no
13391
glibgo_toolexeclibdir=no
13392
 
13393
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13394
$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13395
# Check whether --enable-version-specific-runtime-libs was given.
13396
if test "${enable_version_specific_runtime_libs+set}" = set; then :
13397
  enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13398
    yes) version_specific_libs=yes ;;
13399
    no)  version_specific_libs=no ;;
13400
    *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13401
   esac
13402
else
13403
  version_specific_libs=no
13404
fi
13405
 
13406
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13407
$as_echo "$version_specific_libs" >&6; }
13408
 
13409
# Version-specific runtime libs processing.
13410
if test $version_specific_libs = yes; then
13411
  glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13412
  glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13413
fi
13414
 
13415
# Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13416
# Install a library built with a cross compiler in tooldir, not libdir.
13417
if test -n "$with_cross_host" &&
13418
   test x"$with_cross_host" != x"no"; then
13419
  nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13420
  nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13421
else
13422
  nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13423
  nover_glibgo_toolexeclibdir='${libdir}'
13424
fi
13425
multi_os_directory=`$CC -print-multi-os-directory`
13426
case $multi_os_directory in
13427
  .) ;; # Avoid trailing /.
13428
  *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13429
esac
13430
 
13431
if test x"$glibgo_toolexecdir" = x"no"; then
13432
  glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13433
  glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13434
fi
13435
 
13436
 
13437
 
13438
 
13439
 
13440
# See if the user wants to configure without libffi.  Some
13441
# architectures don't support it.  FIXME: We should set a default
13442
# based on the host.
13443
 
13444
# Check whether --with-libffi was given.
13445
if test "${with_libffi+set}" = set; then :
13446
  withval=$with_libffi; :
13447
else
13448
  with_libffi=${with_libffi_default-yes}
13449
fi
13450
 
13451
 
13452
LIBFFI=
13453
LIBFFIINCS=
13454
if test "$with_libffi" != no; then
13455
 
13456
$as_echo "#define USE_LIBFFI 1" >>confdefs.h
13457
 
13458
   LIBFFI=../libffi/libffi_convenience.la
13459
   LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13460
fi
13461
 
13462
 
13463
 
13464
# Used to tell GNU make to include a file without telling automake to
13465
# include it.
13466
go_include="-include"
13467
 
13468
 
13469
is_darwin=no
13470
is_freebsd=no
13471
is_irix=no
13472
is_linux=no
13473
is_netbsd=no
13474
is_rtems=no
13475
is_solaris=no
13476
GOOS=unknown
13477
case ${host} in
13478
  *-*-darwin*)   is_darwin=yes;  GOOS=darwin ;;
13479
  *-*-freebsd*)  is_freebsd=yes; GOOS=freebsd ;;
13480
  *-*-irix6*)    is_irix=yes;    GOOS=irix ;;
13481
  *-*-linux*)    is_linux=yes;   GOOS=linux ;;
13482
  *-*-netbsd*)   is_netbsd=yes;  GOOS=netbsd ;;
13483
  *-*-rtems*)    is_rtems=yes;   GOOS=rtems ;;
13484
  *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13485
esac
13486
 if test $is_darwin = yes; then
13487
  LIBGO_IS_DARWIN_TRUE=
13488
  LIBGO_IS_DARWIN_FALSE='#'
13489
else
13490
  LIBGO_IS_DARWIN_TRUE='#'
13491
  LIBGO_IS_DARWIN_FALSE=
13492
fi
13493
 
13494
 if test $is_freebsd = yes; then
13495
  LIBGO_IS_FREEBSD_TRUE=
13496
  LIBGO_IS_FREEBSD_FALSE='#'
13497
else
13498
  LIBGO_IS_FREEBSD_TRUE='#'
13499
  LIBGO_IS_FREEBSD_FALSE=
13500
fi
13501
 
13502
 if test $is_irix = yes; then
13503
  LIBGO_IS_IRIX_TRUE=
13504
  LIBGO_IS_IRIX_FALSE='#'
13505
else
13506
  LIBGO_IS_IRIX_TRUE='#'
13507
  LIBGO_IS_IRIX_FALSE=
13508
fi
13509
 
13510
 if test $is_linux = yes; then
13511
  LIBGO_IS_LINUX_TRUE=
13512
  LIBGO_IS_LINUX_FALSE='#'
13513
else
13514
  LIBGO_IS_LINUX_TRUE='#'
13515
  LIBGO_IS_LINUX_FALSE=
13516
fi
13517
 
13518
 if test $is_netbsd = yes; then
13519
  LIBGO_IS_NETBSD_TRUE=
13520
  LIBGO_IS_NETBSD_FALSE='#'
13521
else
13522
  LIBGO_IS_NETBSD_TRUE='#'
13523
  LIBGO_IS_NETBSD_FALSE=
13524
fi
13525
 
13526
 if test $is_rtems = yes; then
13527
  LIBGO_IS_RTEMS_TRUE=
13528
  LIBGO_IS_RTEMS_FALSE='#'
13529
else
13530
  LIBGO_IS_RTEMS_TRUE='#'
13531
  LIBGO_IS_RTEMS_FALSE=
13532
fi
13533
 
13534
 if test $is_solaris = yes; then
13535
  LIBGO_IS_SOLARIS_TRUE=
13536
  LIBGO_IS_SOLARIS_FALSE='#'
13537
else
13538
  LIBGO_IS_SOLARIS_TRUE='#'
13539
  LIBGO_IS_SOLARIS_FALSE=
13540
fi
13541
 
13542
 
13543
 
13544
is_386=no
13545
is_alpha=no
13546
is_arm=no
13547
is_m68k=no
13548
mips_abi=unknown
13549
is_ppc=no
13550
is_ppc64=no
13551
is_sparc=no
13552
is_sparc64=no
13553
is_x86_64=no
13554
GOARCH=unknown
13555
case ${host} in
13556
  alpha*-*-*)
13557
    is_alpha=yes
13558
    GOARCH=alpha
13559
    ;;
13560
  arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13561
    is_arm=yes
13562
    GOARCH=arm
13563
    ;;
13564
  i[34567]86-*-* | x86_64-*-*)
13565
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13566
/* end confdefs.h.  */
13567
 
13568
#ifdef __x86_64__
13569
#error 64-bit
13570
#endif
13571
_ACEOF
13572
if ac_fn_c_try_compile "$LINENO"; then :
13573
  is_386=yes
13574
else
13575
  is_x86_64=yes
13576
fi
13577
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13578
    if test "$is_386" = "yes"; then
13579
      GOARCH=386
13580
    else
13581
      GOARCH=amd64
13582
    fi
13583
    ;;
13584
  m68k*-*-*)
13585
    is_m68k=yes
13586
    GOARCH=m68k
13587
    ;;
13588
  mips*-*-*)
13589
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590
/* end confdefs.h.  */
13591
 
13592
#if _MIPS_SIM != _ABIO32
13593
#error not o32
13594
#endif
13595
_ACEOF
13596
if ac_fn_c_try_compile "$LINENO"; then :
13597
  mips_abi="o32"
13598
else
13599
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600
/* end confdefs.h.  */
13601
 
13602
#if _MIPS_SIM != _ABIN32
13603
#error not n32
13604
#endif
13605
_ACEOF
13606
if ac_fn_c_try_compile "$LINENO"; then :
13607
  mips_abi="n32"
13608
else
13609
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13610
/* end confdefs.h.  */
13611
 
13612
#if _MIPS_SIM != _ABI64
13613
#error not n64
13614
#endif
13615
_ACEOF
13616
if ac_fn_c_try_compile "$LINENO"; then :
13617
  mips_abi="n64"
13618
else
13619
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620
/* end confdefs.h.  */
13621
 
13622
#if _MIPS_SIM != _ABIO64
13623
#error not o64
13624
#endif
13625
_ACEOF
13626
if ac_fn_c_try_compile "$LINENO"; then :
13627
  mips_abi="o64"
13628
else
13629
  as_fn_error "unknown MIPS ABI" "$LINENO" 5
13630
mips_abi="n32"
13631
fi
13632
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13633
fi
13634
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13635
fi
13636
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13637
fi
13638
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13639
    case "$mips_abi" in
13640
    "o32") GOARCH=mipso32 ;;
13641
    "n32") GOARCH=mipsn32 ;;
13642
    "n64") GOARCH=mipsn64 ;;
13643
    "o64") GOARCH=mipso64 ;;
13644
    esac
13645
    ;;
13646
  rs6000*-*-* | powerpc*-*-*)
13647
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648
/* end confdefs.h.  */
13649
 
13650
#ifdef _ARCH_PPC64
13651
#error 64-bit
13652
#endif
13653
_ACEOF
13654
if ac_fn_c_try_compile "$LINENO"; then :
13655
  is_ppc=yes
13656
else
13657
  is_ppc64=yes
13658
fi
13659
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13660
    if test "$is_ppc" = "yes"; then
13661
      GOARCH=ppc
13662
    else
13663
      GOARCH=ppc64
13664
    fi
13665
    ;;
13666
  sparc*-*-*)
13667
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13668
/* end confdefs.h.  */
13669
 
13670
#if defined(__sparcv9) || defined(__arch64__)
13671
#error 64-bit
13672
#endif
13673
_ACEOF
13674
if ac_fn_c_try_compile "$LINENO"; then :
13675
  is_sparc=yes
13676
else
13677
  is_sparc64=yes
13678
fi
13679
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13680
    if test "$is_sparc" = "yes"; then
13681
      GOARCH=sparc
13682
    else
13683
      GOARCH=sparc64
13684
    fi
13685
    ;;
13686
esac
13687
 if test $is_386 = yes; then
13688
  LIBGO_IS_386_TRUE=
13689
  LIBGO_IS_386_FALSE='#'
13690
else
13691
  LIBGO_IS_386_TRUE='#'
13692
  LIBGO_IS_386_FALSE=
13693
fi
13694
 
13695
 if test $is_alpha = yes; then
13696
  LIBGO_IS_ALPHA_TRUE=
13697
  LIBGO_IS_ALPHA_FALSE='#'
13698
else
13699
  LIBGO_IS_ALPHA_TRUE='#'
13700
  LIBGO_IS_ALPHA_FALSE=
13701
fi
13702
 
13703
 if test $is_arm = yes; then
13704
  LIBGO_IS_ARM_TRUE=
13705
  LIBGO_IS_ARM_FALSE='#'
13706
else
13707
  LIBGO_IS_ARM_TRUE='#'
13708
  LIBGO_IS_ARM_FALSE=
13709
fi
13710
 
13711
 if test $is_m68k = yes; then
13712
  LIBGO_IS_M68K_TRUE=
13713
  LIBGO_IS_M68K_FALSE='#'
13714
else
13715
  LIBGO_IS_M68K_TRUE='#'
13716
  LIBGO_IS_M68K_FALSE=
13717
fi
13718
 
13719
 if test $mips_abi != unknown; then
13720
  LIBGO_IS_MIPS_TRUE=
13721
  LIBGO_IS_MIPS_FALSE='#'
13722
else
13723
  LIBGO_IS_MIPS_TRUE='#'
13724
  LIBGO_IS_MIPS_FALSE=
13725
fi
13726
 
13727
 if test $mips_abi = o32; then
13728
  LIBGO_IS_MIPSO32_TRUE=
13729
  LIBGO_IS_MIPSO32_FALSE='#'
13730
else
13731
  LIBGO_IS_MIPSO32_TRUE='#'
13732
  LIBGO_IS_MIPSO32_FALSE=
13733
fi
13734
 
13735
 if test $mips_abi = n32; then
13736
  LIBGO_IS_MIPSN32_TRUE=
13737
  LIBGO_IS_MIPSN32_FALSE='#'
13738
else
13739
  LIBGO_IS_MIPSN32_TRUE='#'
13740
  LIBGO_IS_MIPSN32_FALSE=
13741
fi
13742
 
13743
 if test $mips_abi = n64; then
13744
  LIBGO_IS_MIPSN64_TRUE=
13745
  LIBGO_IS_MIPSN64_FALSE='#'
13746
else
13747
  LIBGO_IS_MIPSN64_TRUE='#'
13748
  LIBGO_IS_MIPSN64_FALSE=
13749
fi
13750
 
13751
 if test $mips_abi = o64; then
13752
  LIBGO_IS_MIPSO64_TRUE=
13753
  LIBGO_IS_MIPSO64_FALSE='#'
13754
else
13755
  LIBGO_IS_MIPSO64_TRUE='#'
13756
  LIBGO_IS_MIPSO64_FALSE=
13757
fi
13758
 
13759
 if test $is_ppc = yes; then
13760
  LIBGO_IS_PPC_TRUE=
13761
  LIBGO_IS_PPC_FALSE='#'
13762
else
13763
  LIBGO_IS_PPC_TRUE='#'
13764
  LIBGO_IS_PPC_FALSE=
13765
fi
13766
 
13767
 if test $is_ppc64 = yes; then
13768
  LIBGO_IS_PPC64_TRUE=
13769
  LIBGO_IS_PPC64_FALSE='#'
13770
else
13771
  LIBGO_IS_PPC64_TRUE='#'
13772
  LIBGO_IS_PPC64_FALSE=
13773
fi
13774
 
13775
 if test $is_sparc = yes; then
13776
  LIBGO_IS_SPARC_TRUE=
13777
  LIBGO_IS_SPARC_FALSE='#'
13778
else
13779
  LIBGO_IS_SPARC_TRUE='#'
13780
  LIBGO_IS_SPARC_FALSE=
13781
fi
13782
 
13783
 if test $is_sparc64 = yes; then
13784
  LIBGO_IS_SPARC64_TRUE=
13785
  LIBGO_IS_SPARC64_FALSE='#'
13786
else
13787
  LIBGO_IS_SPARC64_TRUE='#'
13788
  LIBGO_IS_SPARC64_FALSE=
13789
fi
13790
 
13791
 if test $is_x86_64 = yes; then
13792
  LIBGO_IS_X86_64_TRUE=
13793
  LIBGO_IS_X86_64_FALSE='#'
13794
else
13795
  LIBGO_IS_X86_64_TRUE='#'
13796
  LIBGO_IS_X86_64_FALSE=
13797
fi
13798
 
13799
 
13800
 
13801
GO_LIBCALL_OS_FILE=
13802
GO_LIBCALL_OS_ARCH_FILE=
13803
GO_SYSCALL_OS_FILE=
13804
GO_SYSCALL_OS_ARCH_FILE=
13805
if test -f ${srcdir}/go/syscall/libcall_${GOOS}.go; then
13806
  GO_LIBCALL_OS_FILE=go/syscall/libcall_${GOOS}.go
13807
fi
13808
if test -f ${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go; then
13809
  GO_LIBCALL_OS_ARCH_FILE=go/syscall/libcall_${GOOS}_${GOARCH}.go
13810
fi
13811
if test -f ${srcdir}/go/syscall/syscall_${GOOS}.go; then
13812
  GO_SYSCALL_OS_FILE=go/syscall/syscall_${GOOS}.go
13813
fi
13814
if test -f ${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go; then
13815
  GO_SYSCALL_OS_ARCH_FILE=go/syscall/syscall_${GOOS}_${GOARCH}.go
13816
fi
13817
 
13818
 
13819
 
13820
 
13821
 
13822
OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13823
case "$target" in
13824
    mips-sgi-irix6.5*)
13825
        # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13826
        # msghdr in .
13827
        OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13828
        ;;
13829
    *-*-solaris2.[89])
13830
        # Solaris 8/9 need this so struct msghdr gets the msg_control
13831
        # etc. fields in  (_XPG4_2).
13832
        OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__"
13833
        ;;
13834
    *-*-solaris2.1[01])
13835
        # Solaris 10+ needs this so struct msghdr gets the msg_control
13836
        # etc. fields in  (_XPG4_2).  _XOPEN_SOURCE=600 as
13837
        # above doesn't work with C99.
13838
        OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13839
        ;;
13840
esac
13841
 
13842
 
13843
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13844
$as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13845
if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13846
  $as_echo_n "(cached) " >&6
13847
else
13848
  CFLAGS_hold=$CFLAGS
13849
CFLAGS="$CFLAGS -fsplit-stack"
13850
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13851
/* end confdefs.h.  */
13852
int i;
13853
_ACEOF
13854
if ac_fn_c_try_compile "$LINENO"; then :
13855
  libgo_cv_c_split_stack_supported=yes
13856
else
13857
  libgo_cv_c_split_stack_supported=no
13858
fi
13859
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13860
CFLAGS=$CFLAGS_hold
13861
fi
13862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13863
$as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13864
if test "$libgo_cv_c_split_stack_supported" = yes; then
13865
  SPLIT_STACK=-fsplit-stack
13866
 
13867
$as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13868
 
13869
else
13870
  SPLIT_STACK=
13871
fi
13872
 
13873
 if test "$libgo_cv_c_split_stack_supported" = yes; then
13874
  USING_SPLIT_STACK_TRUE=
13875
  USING_SPLIT_STACK_FALSE='#'
13876
else
13877
  USING_SPLIT_STACK_TRUE='#'
13878
  USING_SPLIT_STACK_FALSE=
13879
fi
13880
 
13881
 
13882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13883
$as_echo_n "checking whether linker supports split stack... " >&6; }
13884
if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13885
  $as_echo_n "(cached) " >&6
13886
else
13887
  libgo_cv_c_linker_supports_split_stack=no
13888
if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13889
  libgo_cv_c_linker_supports_split_stack=yes
13890
fi
13891
fi
13892
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13893
$as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13894
if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13895
 
13896
$as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13897
 
13898
fi
13899
 
13900
MATH_LIBS=
13901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13902
$as_echo_n "checking for sqrt in -lm... " >&6; }
13903
if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13904
  $as_echo_n "(cached) " >&6
13905
else
13906
  ac_check_lib_save_LIBS=$LIBS
13907
LIBS="-lm  $LIBS"
13908
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909
/* end confdefs.h.  */
13910
 
13911
/* Override any GCC internal prototype to avoid an error.
13912
   Use char because int might match the return type of a GCC
13913
   builtin and then its argument prototype would still apply.  */
13914
#ifdef __cplusplus
13915
extern "C"
13916
#endif
13917
char sqrt ();
13918
int
13919
main ()
13920
{
13921
return sqrt ();
13922
  ;
13923
  return 0;
13924
}
13925
_ACEOF
13926
if ac_fn_c_try_link "$LINENO"; then :
13927
  ac_cv_lib_m_sqrt=yes
13928
else
13929
  ac_cv_lib_m_sqrt=no
13930
fi
13931
rm -f core conftest.err conftest.$ac_objext \
13932
    conftest$ac_exeext conftest.$ac_ext
13933
LIBS=$ac_check_lib_save_LIBS
13934
fi
13935
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13936
$as_echo "$ac_cv_lib_m_sqrt" >&6; }
13937
if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13938
  MATH_LIBS=-lm
13939
fi
13940
 
13941
 
13942
 
13943
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13944
$as_echo_n "checking for socket libraries... " >&6; }
13945
if test "${libgo_cv_lib_sockets+set}" = set; then :
13946
  $as_echo_n "(cached) " >&6
13947
else
13948
  libgo_cv_lib_sockets=
13949
   libgo_check_both=no
13950
   ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13951
if test "x$ac_cv_func_connect" = x""yes; then :
13952
  libgo_check_socket=no
13953
else
13954
  libgo_check_socket=yes
13955
fi
13956
 
13957
   if test "$libgo_check_socket" = "yes"; then
13958
     unset ac_cv_func_connect
13959
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13960
$as_echo_n "checking for main in -lsocket... " >&6; }
13961
if test "${ac_cv_lib_socket_main+set}" = set; then :
13962
  $as_echo_n "(cached) " >&6
13963
else
13964
  ac_check_lib_save_LIBS=$LIBS
13965
LIBS="-lsocket  $LIBS"
13966
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967
/* end confdefs.h.  */
13968
 
13969
 
13970
int
13971
main ()
13972
{
13973
return main ();
13974
  ;
13975
  return 0;
13976
}
13977
_ACEOF
13978
if ac_fn_c_try_link "$LINENO"; then :
13979
  ac_cv_lib_socket_main=yes
13980
else
13981
  ac_cv_lib_socket_main=no
13982
fi
13983
rm -f core conftest.err conftest.$ac_objext \
13984
    conftest$ac_exeext conftest.$ac_ext
13985
LIBS=$ac_check_lib_save_LIBS
13986
fi
13987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13988
$as_echo "$ac_cv_lib_socket_main" >&6; }
13989
if test "x$ac_cv_lib_socket_main" = x""yes; then :
13990
  libgo_cv_lib_sockets="-lsocket"
13991
else
13992
  libgo_check_both=yes
13993
fi
13994
 
13995
   fi
13996
   if test "$libgo_check_both" = "yes"; then
13997
     libgo_old_libs=$LIBS
13998
     LIBS="$LIBS -lsocket -lnsl"
13999
     unset ac_cv_func_accept
14000
     ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14001
if test "x$ac_cv_func_accept" = x""yes; then :
14002
  libgo_check_nsl=no
14003
                    libgo_cv_lib_sockets="-lsocket -lnsl"
14004
fi
14005
 
14006
     unset ac_cv_func_accept
14007
     LIBS=$libgo_old_libs
14008
   fi
14009
   unset ac_cv_func_gethostbyname
14010
   libgo_old_libs="$LIBS"
14011
   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14012
if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14013
 
14014
else
14015
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14016
$as_echo_n "checking for main in -lnsl... " >&6; }
14017
if test "${ac_cv_lib_nsl_main+set}" = set; then :
14018
  $as_echo_n "(cached) " >&6
14019
else
14020
  ac_check_lib_save_LIBS=$LIBS
14021
LIBS="-lnsl  $LIBS"
14022
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14023
/* end confdefs.h.  */
14024
 
14025
 
14026
int
14027
main ()
14028
{
14029
return main ();
14030
  ;
14031
  return 0;
14032
}
14033
_ACEOF
14034
if ac_fn_c_try_link "$LINENO"; then :
14035
  ac_cv_lib_nsl_main=yes
14036
else
14037
  ac_cv_lib_nsl_main=no
14038
fi
14039
rm -f core conftest.err conftest.$ac_objext \
14040
    conftest$ac_exeext conftest.$ac_ext
14041
LIBS=$ac_check_lib_save_LIBS
14042
fi
14043
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14044
$as_echo "$ac_cv_lib_nsl_main" >&6; }
14045
if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14046
  libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14047
fi
14048
 
14049
fi
14050
 
14051
   unset ac_cv_func_gethostbyname
14052
   LIBS=$libgo_old_libs
14053
 
14054
fi
14055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14056
$as_echo "$libgo_cv_lib_sockets" >&6; }
14057
NET_LIBS="$libgo_cv_lib_sockets"
14058
 
14059
 
14060
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14061
$as_echo_n "checking whether -pthread is supported... " >&6; }
14062
if test "${libgo_cv_lib_pthread+set}" = set; then :
14063
  $as_echo_n "(cached) " >&6
14064
else
14065
  CFLAGS_hold=$CFLAGS
14066
CFLAGS="$CFLAGS -pthread"
14067
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14068
/* end confdefs.h.  */
14069
int i;
14070
_ACEOF
14071
if ac_fn_c_try_compile "$LINENO"; then :
14072
  libgo_cv_lib_pthread=yes
14073
else
14074
  libgo_cv_lib_pthread=no
14075
fi
14076
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14077
CFLAGS=$CFLAGS_hold
14078
fi
14079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14080
$as_echo "$libgo_cv_lib_pthread" >&6; }
14081
PTHREAD_CFLAGS=
14082
if test "$libgo_cv_lib_pthread" = yes; then
14083
  PTHREAD_CFLAGS=-pthread
14084
fi
14085
 
14086
 
14087
PTHREAD_LIBS=
14088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14089
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14090
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14091
  $as_echo_n "(cached) " >&6
14092
else
14093
  ac_check_lib_save_LIBS=$LIBS
14094
LIBS="-lpthread  $LIBS"
14095
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096
/* end confdefs.h.  */
14097
 
14098
/* Override any GCC internal prototype to avoid an error.
14099
   Use char because int might match the return type of a GCC
14100
   builtin and then its argument prototype would still apply.  */
14101
#ifdef __cplusplus
14102
extern "C"
14103
#endif
14104
char pthread_create ();
14105
int
14106
main ()
14107
{
14108
return pthread_create ();
14109
  ;
14110
  return 0;
14111
}
14112
_ACEOF
14113
if ac_fn_c_try_link "$LINENO"; then :
14114
  ac_cv_lib_pthread_pthread_create=yes
14115
else
14116
  ac_cv_lib_pthread_pthread_create=no
14117
fi
14118
rm -f core conftest.err conftest.$ac_objext \
14119
    conftest$ac_exeext conftest.$ac_ext
14120
LIBS=$ac_check_lib_save_LIBS
14121
fi
14122
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14123
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14124
if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14125
  PTHREAD_LIBS=-lpthread
14126
fi
14127
 
14128
 
14129
 
14130
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14131
$as_echo_n "checking for library containing sched_yield... " >&6; }
14132
if test "${ac_cv_search_sched_yield+set}" = set; then :
14133
  $as_echo_n "(cached) " >&6
14134
else
14135
  ac_func_search_save_LIBS=$LIBS
14136
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14137
/* end confdefs.h.  */
14138
 
14139
/* Override any GCC internal prototype to avoid an error.
14140
   Use char because int might match the return type of a GCC
14141
   builtin and then its argument prototype would still apply.  */
14142
#ifdef __cplusplus
14143
extern "C"
14144
#endif
14145
char sched_yield ();
14146
int
14147
main ()
14148
{
14149
return sched_yield ();
14150
  ;
14151
  return 0;
14152
}
14153
_ACEOF
14154
for ac_lib in '' rt; do
14155
  if test -z "$ac_lib"; then
14156
    ac_res="none required"
14157
  else
14158
    ac_res=-l$ac_lib
14159
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14160
  fi
14161
  if ac_fn_c_try_link "$LINENO"; then :
14162
  ac_cv_search_sched_yield=$ac_res
14163
fi
14164
rm -f core conftest.err conftest.$ac_objext \
14165
    conftest$ac_exeext
14166
  if test "${ac_cv_search_sched_yield+set}" = set; then :
14167
  break
14168
fi
14169
done
14170
if test "${ac_cv_search_sched_yield+set}" = set; then :
14171
 
14172
else
14173
  ac_cv_search_sched_yield=no
14174
fi
14175
rm conftest.$ac_ext
14176
LIBS=$ac_func_search_save_LIBS
14177
fi
14178
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14179
$as_echo "$ac_cv_search_sched_yield" >&6; }
14180
ac_res=$ac_cv_search_sched_yield
14181
if test "$ac_res" != no; then :
14182
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14183
 
14184
fi
14185
 
14186
 
14187
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14188
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14189
if test "${ac_cv_c_bigendian+set}" = set; then :
14190
  $as_echo_n "(cached) " >&6
14191
else
14192
  ac_cv_c_bigendian=unknown
14193
    # See if we're dealing with a universal compiler.
14194
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195
/* end confdefs.h.  */
14196
#ifndef __APPLE_CC__
14197
               not a universal capable compiler
14198
             #endif
14199
             typedef int dummy;
14200
 
14201
_ACEOF
14202
if ac_fn_c_try_compile "$LINENO"; then :
14203
 
14204
        # Check for potential -arch flags.  It is not universal unless
14205
        # there are at least two -arch flags with different values.
14206
        ac_arch=
14207
        ac_prev=
14208
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14209
         if test -n "$ac_prev"; then
14210
           case $ac_word in
14211
             i?86 | x86_64 | ppc | ppc64)
14212
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14213
                 ac_arch=$ac_word
14214
               else
14215
                 ac_cv_c_bigendian=universal
14216
                 break
14217
               fi
14218
               ;;
14219
           esac
14220
           ac_prev=
14221
         elif test "x$ac_word" = "x-arch"; then
14222
           ac_prev=arch
14223
         fi
14224
       done
14225
fi
14226
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14227
    if test $ac_cv_c_bigendian = unknown; then
14228
      # See if sys/param.h defines the BYTE_ORDER macro.
14229
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14230
/* end confdefs.h.  */
14231
#include 
14232
             #include 
14233
 
14234
int
14235
main ()
14236
{
14237
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14238
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14239
                     && LITTLE_ENDIAN)
14240
              bogus endian macros
14241
             #endif
14242
 
14243
  ;
14244
  return 0;
14245
}
14246
_ACEOF
14247
if ac_fn_c_try_compile "$LINENO"; then :
14248
  # It does; now see whether it defined to BIG_ENDIAN or not.
14249
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250
/* end confdefs.h.  */
14251
#include 
14252
                #include 
14253
 
14254
int
14255
main ()
14256
{
14257
#if BYTE_ORDER != BIG_ENDIAN
14258
                 not big endian
14259
                #endif
14260
 
14261
  ;
14262
  return 0;
14263
}
14264
_ACEOF
14265
if ac_fn_c_try_compile "$LINENO"; then :
14266
  ac_cv_c_bigendian=yes
14267
else
14268
  ac_cv_c_bigendian=no
14269
fi
14270
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14271
fi
14272
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273
    fi
14274
    if test $ac_cv_c_bigendian = unknown; then
14275
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14276
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14277
/* end confdefs.h.  */
14278
#include 
14279
 
14280
int
14281
main ()
14282
{
14283
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14284
              bogus endian macros
14285
             #endif
14286
 
14287
  ;
14288
  return 0;
14289
}
14290
_ACEOF
14291
if ac_fn_c_try_compile "$LINENO"; then :
14292
  # It does; now see whether it defined to _BIG_ENDIAN or not.
14293
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294
/* end confdefs.h.  */
14295
#include 
14296
 
14297
int
14298
main ()
14299
{
14300
#ifndef _BIG_ENDIAN
14301
                 not big endian
14302
                #endif
14303
 
14304
  ;
14305
  return 0;
14306
}
14307
_ACEOF
14308
if ac_fn_c_try_compile "$LINENO"; then :
14309
  ac_cv_c_bigendian=yes
14310
else
14311
  ac_cv_c_bigendian=no
14312
fi
14313
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14314
fi
14315
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14316
    fi
14317
    if test $ac_cv_c_bigendian = unknown; then
14318
      # Compile a test program.
14319
      if test "$cross_compiling" = yes; then :
14320
  # Try to guess by grepping values from an object file.
14321
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322
/* end confdefs.h.  */
14323
short int ascii_mm[] =
14324
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14325
                short int ascii_ii[] =
14326
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14327
                int use_ascii (int i) {
14328
                  return ascii_mm[i] + ascii_ii[i];
14329
                }
14330
                short int ebcdic_ii[] =
14331
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14332
                short int ebcdic_mm[] =
14333
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14334
                int use_ebcdic (int i) {
14335
                  return ebcdic_mm[i] + ebcdic_ii[i];
14336
                }
14337
                extern int foo;
14338
 
14339
int
14340
main ()
14341
{
14342
return use_ascii (foo) == use_ebcdic (foo);
14343
  ;
14344
  return 0;
14345
}
14346
_ACEOF
14347
if ac_fn_c_try_compile "$LINENO"; then :
14348
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14349
              ac_cv_c_bigendian=yes
14350
            fi
14351
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14352
              if test "$ac_cv_c_bigendian" = unknown; then
14353
                ac_cv_c_bigendian=no
14354
              else
14355
                # finding both strings is unlikely to happen, but who knows?
14356
                ac_cv_c_bigendian=unknown
14357
              fi
14358
            fi
14359
fi
14360
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14361
else
14362
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14363
/* end confdefs.h.  */
14364
$ac_includes_default
14365
int
14366
main ()
14367
{
14368
 
14369
             /* Are we little or big endian?  From Harbison&Steele.  */
14370
             union
14371
             {
14372
               long int l;
14373
               char c[sizeof (long int)];
14374
             } u;
14375
             u.l = 1;
14376
             return u.c[sizeof (long int) - 1] == 1;
14377
 
14378
  ;
14379
  return 0;
14380
}
14381
_ACEOF
14382
if ac_fn_c_try_run "$LINENO"; then :
14383
  ac_cv_c_bigendian=no
14384
else
14385
  ac_cv_c_bigendian=yes
14386
fi
14387
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14388
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14389
fi
14390
 
14391
    fi
14392
fi
14393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14394
$as_echo "$ac_cv_c_bigendian" >&6; }
14395
 case $ac_cv_c_bigendian in #(
14396
   yes)
14397
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14398
;; #(
14399
   no)
14400
      ;; #(
14401
   universal)
14402
 
14403
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14404
 
14405
     ;; #(
14406
   *)
14407
     as_fn_error "unknown endianness
14408
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14409
 esac
14410
 
14411
 
14412
 
14413
 
14414
# Check whether --with-system-libunwind was given.
14415
if test "${with_system_libunwind+set}" = set; then :
14416
  withval=$with_system_libunwind;
14417
fi
14418
 
14419
  # If system-libunwind was not specifically set, pick a default setting.
14420
  if test x$with_system_libunwind = x; then
14421
    case ${target} in
14422
      ia64-*-hpux*) with_system_libunwind=yes ;;
14423
      *) with_system_libunwind=no ;;
14424
    esac
14425
  fi
14426
  # Based on system-libunwind and target, do we have ipinfo?
14427
  if  test x$with_system_libunwind = xyes; then
14428
    case ${target} in
14429
      ia64-*-*) have_unwind_getipinfo=no ;;
14430
      *) have_unwind_getipinfo=yes ;;
14431
    esac
14432
  else
14433
    # Darwin before version 9 does not have _Unwind_GetIPInfo.
14434
 
14435
    case ${target} in
14436
      *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14437
      *) have_unwind_getipinfo=yes ;;
14438
    esac
14439
 
14440
  fi
14441
 
14442
  if test x$have_unwind_getipinfo = xyes; then
14443
 
14444
$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14445
 
14446
  fi
14447
 
14448
 
14449
# Check whether --enable-sjlj-exceptions was given.
14450
if test "${enable_sjlj_exceptions+set}" = set; then :
14451
  enableval=$enable_sjlj_exceptions; case "$enableval" in
14452
   yes|no|auto) ;;
14453
   *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14454
   esac
14455
else
14456
  enable_sjlj_exceptions=auto
14457
fi
14458
 
14459
 
14460
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14461
$as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14462
if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14463
  $as_echo_n "(cached) " >&6
14464
else
14465
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466
/* end confdefs.h.  */
14467
 
14468
void bar ();
14469
void clean (int *);
14470
void foo ()
14471
{
14472
  int i __attribute__ ((cleanup (clean)));
14473
  bar();
14474
}
14475
 
14476
_ACEOF
14477
CFLAGS_hold=$CFLAGS
14478
CFLAGS="--save-temps -fexceptions"
14479
libgo_cv_lib_sjlj_exceptions=unknown
14480
if ac_fn_c_try_compile; then :
14481
  if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14482
    libgo_cv_lib_sjlj_exceptions=yes
14483
  elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14484
    libgo_cv_lib_sjlj_exceptions=no
14485
  fi
14486
fi
14487
CFLAGS=$CFLAGS_hold
14488
rm -f conftest*
14489
 
14490
fi
14491
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14492
$as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14493
 
14494
if test "$enable_sjlj_exceptions" = "auto"; then
14495
  enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14496
fi
14497
 
14498
case $enable_sjlj_exceptions in
14499
yes)
14500
 
14501
$as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14502
 
14503
  ;;
14504
no)
14505
  ;;
14506
*)
14507
  as_fn_error "unable to detect exception model" "$LINENO" 5
14508
  ;;
14509
esac
14510
 
14511
for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h
14512
do :
14513
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14514
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14515
eval as_val=\$$as_ac_Header
14516
   if test "x$as_val" = x""yes; then :
14517
  cat >>confdefs.h <<_ACEOF
14518
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14519
_ACEOF
14520
 
14521
fi
14522
 
14523
done
14524
 
14525
 
14526
for ac_header in linux/filter.h linux/netlink.h linux/rtnetlink.h
14527
do :
14528
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14529
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14530
#include 
14531
#endif
14532
 
14533
"
14534
eval as_val=\$$as_ac_Header
14535
   if test "x$as_val" = x""yes; then :
14536
  cat >>confdefs.h <<_ACEOF
14537
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14538
_ACEOF
14539
 
14540
fi
14541
 
14542
done
14543
 
14544
 
14545
 if test "$ac_cv_header_sys_mman_h" = yes; then
14546
  HAVE_SYS_MMAN_H_TRUE=
14547
  HAVE_SYS_MMAN_H_FALSE='#'
14548
else
14549
  HAVE_SYS_MMAN_H_TRUE='#'
14550
  HAVE_SYS_MMAN_H_FALSE=
14551
fi
14552
 
14553
 
14554
for ac_func in strerror_r strsignal wait4 mincore setenv
14555
do :
14556
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14557
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14558
eval as_val=\$$as_ac_var
14559
   if test "x$as_val" = x""yes; then :
14560
  cat >>confdefs.h <<_ACEOF
14561
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14562
_ACEOF
14563
 
14564
fi
14565
done
14566
 
14567
 if test "$ac_cv_func_strerror_r" = yes; then
14568
  HAVE_STRERROR_R_TRUE=
14569
  HAVE_STRERROR_R_FALSE='#'
14570
else
14571
  HAVE_STRERROR_R_TRUE='#'
14572
  HAVE_STRERROR_R_FALSE=
14573
fi
14574
 
14575
 if test "$ac_cv_func_wait4" = yes; then
14576
  HAVE_WAIT4_TRUE=
14577
  HAVE_WAIT4_FALSE='#'
14578
else
14579
  HAVE_WAIT4_TRUE='#'
14580
  HAVE_WAIT4_FALSE=
14581
fi
14582
 
14583
 
14584
for ac_func in epoll_create1 faccessat fallocate fchmodat fchownat futimesat inotify_add_watch inotify_init inotify_rm_watch mkdirat mknodat openat renameat splice tee unlinkat unshare
14585
do :
14586
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14587
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14588
eval as_val=\$$as_ac_var
14589
   if test "x$as_val" = x""yes; then :
14590
  cat >>confdefs.h <<_ACEOF
14591
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14592
_ACEOF
14593
 
14594
fi
14595
done
14596
 
14597
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14598
if test "x$ac_cv_type_off_t" = x""yes; then :
14599
 
14600
else
14601
 
14602
cat >>confdefs.h <<_ACEOF
14603
#define off_t long int
14604
_ACEOF
14605
 
14606
fi
14607
 
14608
ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14609
if test "x$ac_cv_type_loff_t" = x""yes; then :
14610
 
14611
cat >>confdefs.h <<_ACEOF
14612
#define HAVE_LOFF_T 1
14613
_ACEOF
14614
 
14615
 
14616
fi
14617
 
14618
 
14619
CFLAGS_hold="$CFLAGS"
14620
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14621
LIBS_hold="$LIBS"
14622
LIBS="$LIBS $PTHREAD_LIBS"
14623
for ac_func in sem_timedwait
14624
do :
14625
  ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14626
if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14627
  cat >>confdefs.h <<_ACEOF
14628
#define HAVE_SEM_TIMEDWAIT 1
14629
_ACEOF
14630
 
14631
fi
14632
done
14633
 
14634
CFLAGS="$CFLAGS_hold"
14635
LIBS="$LIBS_hold"
14636
 
14637
LIBS_hold="$LIBS"
14638
LIBS="$LIBS $MATH_LIBS"
14639
for ac_func in matherr
14640
do :
14641
  ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14642
if test "x$ac_cv_func_matherr" = x""yes; then :
14643
  cat >>confdefs.h <<_ACEOF
14644
#define HAVE_MATHERR 1
14645
_ACEOF
14646
 
14647
fi
14648
done
14649
 
14650
LIBS="$LIBS_hold"
14651
 
14652
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14653
$as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14654
if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14655
  $as_echo_n "(cached) " >&6
14656
else
14657
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14658
/* end confdefs.h.  */
14659
 
14660
typedef unsigned int uint32  __attribute__ ((mode (SI)));
14661
uint32 i;
14662
int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14663
 
14664
_ACEOF
14665
if ac_fn_c_try_link "$LINENO"; then :
14666
  libgo_cv_func___sync_bool_compare_and_swap_4=yes
14667
else
14668
  libgo_cv_func___sync_bool_compare_and_swap_4=no
14669
fi
14670
rm -f core conftest.err conftest.$ac_objext \
14671
    conftest$ac_exeext conftest.$ac_ext
14672
fi
14673
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14674
$as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14675
if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14676
 
14677
$as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14678
 
14679
fi
14680
 
14681
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14682
$as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14683
if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14684
  $as_echo_n "(cached) " >&6
14685
else
14686
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14687
/* end confdefs.h.  */
14688
 
14689
typedef unsigned int uint64  __attribute__ ((mode (DI)));
14690
uint64 i;
14691
int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14692
 
14693
_ACEOF
14694
if ac_fn_c_try_link "$LINENO"; then :
14695
  libgo_cv_func___sync_bool_compare_and_swap_8=yes
14696
else
14697
  libgo_cv_func___sync_bool_compare_and_swap_8=no
14698
fi
14699
rm -f core conftest.err conftest.$ac_objext \
14700
    conftest$ac_exeext conftest.$ac_ext
14701
fi
14702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
14703
$as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
14704
if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
14705
 
14706
$as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
14707
 
14708
fi
14709
 
14710
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14711
$as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14712
if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14713
  $as_echo_n "(cached) " >&6
14714
else
14715
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716
/* end confdefs.h.  */
14717
 
14718
typedef unsigned int uint32  __attribute__ ((mode (SI)));
14719
uint32 i;
14720
int main() { return __sync_fetch_and_add (&i, 1); }
14721
 
14722
_ACEOF
14723
if ac_fn_c_try_link "$LINENO"; then :
14724
  libgo_cv_func___sync_fetch_and_add_4=yes
14725
else
14726
  libgo_cv_func___sync_fetch_and_add_4=no
14727
fi
14728
rm -f core conftest.err conftest.$ac_objext \
14729
    conftest$ac_exeext conftest.$ac_ext
14730
fi
14731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14732
$as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14733
if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14734
 
14735
$as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14736
 
14737
fi
14738
 
14739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
14740
$as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
14741
if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
14742
  $as_echo_n "(cached) " >&6
14743
else
14744
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14745
/* end confdefs.h.  */
14746
 
14747
typedef unsigned int uint64  __attribute__ ((mode (DI)));
14748
uint64 i;
14749
int main() { return __sync_add_and_fetch (&i, 1); }
14750
 
14751
_ACEOF
14752
if ac_fn_c_try_link "$LINENO"; then :
14753
  libgo_cv_func___sync_add_and_fetch_8=yes
14754
else
14755
  libgo_cv_func___sync_add_and_fetch_8=no
14756
fi
14757
rm -f core conftest.err conftest.$ac_objext \
14758
    conftest$ac_exeext conftest.$ac_ext
14759
fi
14760
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
14761
$as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
14762
if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
14763
 
14764
$as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
14765
 
14766
fi
14767
 
14768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14769
$as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14770
if test "${libgo_cv_c_stringops+set}" = set; then :
14771
  $as_echo_n "(cached) " >&6
14772
else
14773
  CFLAGS_hold=$CFLAGS
14774
CFLAGS="$CFLAGS -minline-all-stringops"
14775
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14776
/* end confdefs.h.  */
14777
int i;
14778
_ACEOF
14779
if ac_fn_c_try_compile "$LINENO"; then :
14780
  libgo_cv_c_stringops=yes
14781
else
14782
  libgo_cv_c_stringops=no
14783
fi
14784
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14785
CFLAGS=$CFLAGS_hold
14786
fi
14787
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14788
$as_echo "$libgo_cv_c_stringops" >&6; }
14789
STRINGOPS_FLAG=
14790
if test "$libgo_cv_c_stringops" = yes; then
14791
  STRINGOPS_FLAG=-minline-all-stringops
14792
fi
14793
 
14794
 
14795
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
14796
$as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
14797
if test "${libgo_cv_c_fancymath+set}" = set; then :
14798
  $as_echo_n "(cached) " >&6
14799
else
14800
  CFLAGS_hold=$CFLAGS
14801
CFLAGS="$CFLAGS -mfancy-math-387"
14802
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14803
/* end confdefs.h.  */
14804
int i;
14805
_ACEOF
14806
if ac_fn_c_try_compile "$LINENO"; then :
14807
  libgo_cv_c_fancymath=yes
14808
else
14809
  libgo_cv_c_fancymath=no
14810
fi
14811
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14812
CFLAGS=$CFLAGS_hold
14813
fi
14814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
14815
$as_echo "$libgo_cv_c_fancymath" >&6; }
14816
MATH_FLAG=
14817
if test "$libgo_cv_c_fancymath" = yes; then
14818
  MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
14819
fi
14820
 
14821
 
14822
CFLAGS_hold=$CFLAGS
14823
CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14824
ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14825
if test "x$ac_cv_type_off64_t" = x""yes; then :
14826
 
14827
cat >>confdefs.h <<_ACEOF
14828
#define HAVE_OFF64_T 1
14829
_ACEOF
14830
 
14831
 
14832
fi
14833
 
14834
CFLAGS=$CFLAGS_hold
14835
 
14836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
14837
$as_echo_n "checking epoll_event size... " >&6; }
14838
if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
14839
  $as_echo_n "(cached) " >&6
14840
else
14841
  if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size"        "#include "; then :
14842
 
14843
else
14844
  libgo_cv_c_epoll_event_size=0
14845
fi
14846
 
14847
fi
14848
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
14849
$as_echo "$libgo_cv_c_epoll_event_size" >&6; }
14850
SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
14851
 
14852
 
14853
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
14854
$as_echo_n "checking epoll_event data.fd offset... " >&6; }
14855
if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
14856
  $as_echo_n "(cached) " >&6
14857
else
14858
  if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset"        "#include 
14859
#include "; then :
14860
 
14861
else
14862
  libgo_cv_c_epoll_event_fd_offset=0
14863
fi
14864
 
14865
fi
14866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
14867
$as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
14868
STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
14869
 
14870
 
14871
ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include 
14872
"
14873
if test "x$ac_cv_type_struct_exception" = x""yes; then :
14874
  libgo_has_struct_exception=yes
14875
else
14876
  libgo_has_struct_exception=no
14877
fi
14878
 
14879
if test "$libgo_has_struct_exception" = "yes"; then
14880
 
14881
$as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
14882
 
14883
fi
14884
 
14885
case "$target" in
14886
  sparc*-*-solaris2.[89]*)
14887
    libgo_cv_lib_makecontext_stack_top=yes
14888
    ;;
14889
  *)
14890
    libgo_cv_lib_makecontext_stack_top=no
14891
    ;;
14892
esac
14893
if test "$libgo_cv_lib_makecontext_stack_top" = "yes"; then
14894
 
14895
$as_echo "#define MAKECONTEXT_STACK_TOP 1" >>confdefs.h
14896
 
14897
fi
14898
 
14899
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
14900
$as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
14901
if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
14902
  $as_echo_n "(cached) " >&6
14903
else
14904
  CFLAGS_hold="$CFLAGS"
14905
CFLAGS="$PTHREAD_CFLAGS"
14906
LIBS_hold="$LIBS"
14907
LIBS="$LIBS $PTHREAD_LIBS"
14908
# The cast to long int works around a bug in the HP C Compiler
14909
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14910
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14911
# This bug is HP SR number 8606223364.
14912
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14913
$as_echo_n "checking size of void *... " >&6; }
14914
if test "${ac_cv_sizeof_void_p+set}" = set; then :
14915
  $as_echo_n "(cached) " >&6
14916
else
14917
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
14918
 
14919
else
14920
  if test "$ac_cv_type_void_p" = yes; then
14921
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14922
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14923
{ as_fn_set_status 77
14924
as_fn_error "cannot compute sizeof (void *)
14925
See \`config.log' for more details." "$LINENO" 5; }; }
14926
   else
14927
     ac_cv_sizeof_void_p=0
14928
   fi
14929
fi
14930
 
14931
fi
14932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14933
$as_echo "$ac_cv_sizeof_void_p" >&6; }
14934
 
14935
 
14936
 
14937
cat >>confdefs.h <<_ACEOF
14938
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14939
_ACEOF
14940
 
14941
 
14942
as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
14943
if test "$cross_compiling" = yes; then :
14944
  case "$target:$ptr_type_size" in
14945
  i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
14946
    libgo_cv_lib_setcontext_clobbers_tls=yes ;;
14947
  *)
14948
    libgo_cv_lib_setcontext_clobbers_tls=no ;;
14949
 esac
14950
 
14951
else
14952
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953
/* end confdefs.h.  */
14954
 
14955
#include 
14956
#include 
14957
#include 
14958
#include 
14959
 
14960
__thread int tls;
14961
 
14962
static char stack[10 * 1024 * 1024];
14963
static ucontext_t c;
14964
 
14965
/* Called via makecontext/setcontext.  */
14966
 
14967
static void
14968
cfn (void)
14969
{
14970
  exit (tls);
14971
}
14972
 
14973
/* Called via pthread_create.  */
14974
 
14975
static void *
14976
tfn (void *dummy)
14977
{
14978
  /* The thread should still see this value after calling
14979
     setcontext.  */
14980
  tls = 0;
14981
 
14982
  setcontext (&c);
14983
 
14984
  /* The call to setcontext should not return.  */
14985
  abort ();
14986
}
14987
 
14988
int
14989
main ()
14990
{
14991
  pthread_t tid;
14992
 
14993
  /* The thread should not see this value.  */
14994
  tls = 1;
14995
 
14996
  if (getcontext (&c) < 0)
14997
    abort ();
14998
 
14999
  c.uc_stack.ss_sp = stack;
15000
#ifdef MAKECONTEXT_STACK_TOP
15001
  c.uc_stack.ss_sp += sizeof stack;
15002
#endif
15003
  c.uc_stack.ss_flags = 0;
15004
  c.uc_stack.ss_size = sizeof stack;
15005
  c.uc_link = NULL;
15006
  makecontext (&c, cfn, 0);
15007
 
15008
  if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15009
    abort ();
15010
 
15011
  if (pthread_join (tid, NULL) != 0)
15012
    abort ();
15013
 
15014
  /* The thread should have called exit.  */
15015
  abort ();
15016
}
15017
 
15018
_ACEOF
15019
if ac_fn_c_try_run "$LINENO"; then :
15020
  libgo_cv_lib_setcontext_clobbers_tls=no
15021
else
15022
  libgo_cv_lib_setcontext_clobbers_tls=yes
15023
fi
15024
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15025
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15026
fi
15027
 
15028
CFLAGS="$CFLAGS_hold"
15029
LIBS="$LIBS_hold"
15030
 
15031
fi
15032
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15033
$as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15034
if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15035
 
15036
$as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15037
 
15038
fi
15039
 
15040
cat >confcache <<\_ACEOF
15041
# This file is a shell script that caches the results of configure
15042
# tests run on this system so they can be shared between configure
15043
# scripts and configure runs, see configure's option --config-cache.
15044
# It is not useful on other systems.  If it contains results you don't
15045
# want to keep, you may remove or edit it.
15046
#
15047
# config.status only pays attention to the cache file if you give it
15048
# the --recheck option to rerun configure.
15049
#
15050
# `ac_cv_env_foo' variables (set or unset) will be overridden when
15051
# loading this file, other *unset* `ac_cv_foo' will be assigned the
15052
# following values.
15053
 
15054
_ACEOF
15055
 
15056
# The following way of writing the cache mishandles newlines in values,
15057
# but we know of no workaround that is simple, portable, and efficient.
15058
# So, we kill variables containing newlines.
15059
# Ultrix sh set writes to stderr and can't be redirected directly,
15060
# and sets the high bit in the cache file unless we assign to the vars.
15061
(
15062
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15063
    eval ac_val=\$$ac_var
15064
    case $ac_val in #(
15065
    *${as_nl}*)
15066
      case $ac_var in #(
15067
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15068
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15069
      esac
15070
      case $ac_var in #(
15071
      _ | IFS | as_nl) ;; #(
15072
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15073
      *) { eval $ac_var=; unset $ac_var;} ;;
15074
      esac ;;
15075
    esac
15076
  done
15077
 
15078
  (set) 2>&1 |
15079
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15080
    *${as_nl}ac_space=\ *)
15081
      # `set' does not quote correctly, so add quotes: double-quote
15082
      # substitution turns \\\\ into \\, and sed turns \\ into \.
15083
      sed -n \
15084
        "s/'/'\\\\''/g;
15085
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15086
      ;; #(
15087
    *)
15088
      # `set' quotes correctly as required by POSIX, so do not add quotes.
15089
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15090
      ;;
15091
    esac |
15092
    sort
15093
) |
15094
  sed '
15095
     /^ac_cv_env_/b end
15096
     t clear
15097
     :clear
15098
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15099
     t end
15100
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15101
     :end' >>confcache
15102
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15103
  if test -w "$cache_file"; then
15104
    test "x$cache_file" != "x/dev/null" &&
15105
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15106
$as_echo "$as_me: updating cache $cache_file" >&6;}
15107
    cat confcache >$cache_file
15108
  else
15109
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15110
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15111
  fi
15112
fi
15113
rm -f confcache
15114
 
15115
if test ${multilib} = yes; then
15116
  multilib_arg="--enable-multilib"
15117
else
15118
  multilib_arg=
15119
fi
15120
 
15121
ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15122
 
15123
 
15124
ac_config_commands="$ac_config_commands default"
15125
 
15126
 
15127
cat >confcache <<\_ACEOF
15128
# This file is a shell script that caches the results of configure
15129
# tests run on this system so they can be shared between configure
15130
# scripts and configure runs, see configure's option --config-cache.
15131
# It is not useful on other systems.  If it contains results you don't
15132
# want to keep, you may remove or edit it.
15133
#
15134
# config.status only pays attention to the cache file if you give it
15135
# the --recheck option to rerun configure.
15136
#
15137
# `ac_cv_env_foo' variables (set or unset) will be overridden when
15138
# loading this file, other *unset* `ac_cv_foo' will be assigned the
15139
# following values.
15140
 
15141
_ACEOF
15142
 
15143
# The following way of writing the cache mishandles newlines in values,
15144
# but we know of no workaround that is simple, portable, and efficient.
15145
# So, we kill variables containing newlines.
15146
# Ultrix sh set writes to stderr and can't be redirected directly,
15147
# and sets the high bit in the cache file unless we assign to the vars.
15148
(
15149
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15150
    eval ac_val=\$$ac_var
15151
    case $ac_val in #(
15152
    *${as_nl}*)
15153
      case $ac_var in #(
15154
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15155
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15156
      esac
15157
      case $ac_var in #(
15158
      _ | IFS | as_nl) ;; #(
15159
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15160
      *) { eval $ac_var=; unset $ac_var;} ;;
15161
      esac ;;
15162
    esac
15163
  done
15164
 
15165
  (set) 2>&1 |
15166
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15167
    *${as_nl}ac_space=\ *)
15168
      # `set' does not quote correctly, so add quotes: double-quote
15169
      # substitution turns \\\\ into \\, and sed turns \\ into \.
15170
      sed -n \
15171
        "s/'/'\\\\''/g;
15172
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15173
      ;; #(
15174
    *)
15175
      # `set' quotes correctly as required by POSIX, so do not add quotes.
15176
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15177
      ;;
15178
    esac |
15179
    sort
15180
) |
15181
  sed '
15182
     /^ac_cv_env_/b end
15183
     t clear
15184
     :clear
15185
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15186
     t end
15187
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15188
     :end' >>confcache
15189
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15190
  if test -w "$cache_file"; then
15191
    test "x$cache_file" != "x/dev/null" &&
15192
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15193
$as_echo "$as_me: updating cache $cache_file" >&6;}
15194
    cat confcache >$cache_file
15195
  else
15196
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15197
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15198
  fi
15199
fi
15200
rm -f confcache
15201
 
15202
test "x$prefix" = xNONE && prefix=$ac_default_prefix
15203
# Let make expand exec_prefix.
15204
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15205
 
15206
DEFS=-DHAVE_CONFIG_H
15207
 
15208
ac_libobjs=
15209
ac_ltlibobjs=
15210
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15211
  # 1. Remove the extension, and $U if already installed.
15212
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15213
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15214
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15215
  #    will be set to the directory where LIBOBJS objects are built.
15216
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15217
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15218
done
15219
LIBOBJS=$ac_libobjs
15220
 
15221
LTLIBOBJS=$ac_ltlibobjs
15222
 
15223
 
15224
 if test -n "$EXEEXT"; then
15225
  am__EXEEXT_TRUE=
15226
  am__EXEEXT_FALSE='#'
15227
else
15228
  am__EXEEXT_TRUE='#'
15229
  am__EXEEXT_FALSE=
15230
fi
15231
 
15232
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15233
  as_fn_error "conditional \"AMDEP\" was never defined.
15234
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15235
fi
15236
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15237
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
15238
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15239
fi
15240
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15241
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15242
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15243
fi
15244
if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15245
  as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15246
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15247
fi
15248
if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15249
  as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15250
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15251
fi
15252
if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15253
  as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15254
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15255
fi
15256
if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15257
  as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15258
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15259
fi
15260
if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15261
  as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15262
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15263
fi
15264
if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15265
  as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15266
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15267
fi
15268
if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15269
  as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15270
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15271
fi
15272
if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
15273
  as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
15274
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15275
fi
15276
if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
15277
  as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
15278
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15279
fi
15280
if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
15281
  as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
15282
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15283
fi
15284
if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
15285
  as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
15286
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15287
fi
15288
if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
15289
  as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
15290
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15291
fi
15292
if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
15293
  as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
15294
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15295
fi
15296
if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
15297
  as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
15298
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15299
fi
15300
if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
15301
  as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
15302
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15303
fi
15304
if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
15305
  as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
15306
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15307
fi
15308
if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15309
  as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
15310
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15311
fi
15312
if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15313
  as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
15314
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15315
fi
15316
if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15317
  as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
15318
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15319
fi
15320
if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15321
  as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
15322
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15323
fi
15324
if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15325
  as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15326
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15327
fi
15328
if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15329
  as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15330
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15331
fi
15332
 
15333
if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15334
  as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15335
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15336
fi
15337
if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15338
  as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15339
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15340
fi
15341
if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15342
  as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15343
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15344
fi
15345
 
15346
: ${CONFIG_STATUS=./config.status}
15347
ac_write_fail=0
15348
ac_clean_files_save=$ac_clean_files
15349
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15350
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15351
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15352
as_write_fail=0
15353
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15354
#! $SHELL
15355
# Generated by $as_me.
15356
# Run this file to recreate the current configuration.
15357
# Compiler output produced by configure, useful for debugging
15358
# configure, is in config.log if it exists.
15359
 
15360
debug=false
15361
ac_cs_recheck=false
15362
ac_cs_silent=false
15363
 
15364
SHELL=\${CONFIG_SHELL-$SHELL}
15365
export SHELL
15366
_ASEOF
15367
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15368
## -------------------- ##
15369
## M4sh Initialization. ##
15370
## -------------------- ##
15371
 
15372
# Be more Bourne compatible
15373
DUALCASE=1; export DUALCASE # for MKS sh
15374
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15375
  emulate sh
15376
  NULLCMD=:
15377
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15378
  # is contrary to our usage.  Disable this feature.
15379
  alias -g '${1+"$@"}'='"$@"'
15380
  setopt NO_GLOB_SUBST
15381
else
15382
  case `(set -o) 2>/dev/null` in #(
15383
  *posix*) :
15384
    set -o posix ;; #(
15385
  *) :
15386
     ;;
15387
esac
15388
fi
15389
 
15390
 
15391
as_nl='
15392
'
15393
export as_nl
15394
# Printing a long string crashes Solaris 7 /usr/bin/printf.
15395
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15396
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15397
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15398
# Prefer a ksh shell builtin over an external printf program on Solaris,
15399
# but without wasting forks for bash or zsh.
15400
if test -z "$BASH_VERSION$ZSH_VERSION" \
15401
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15402
  as_echo='print -r --'
15403
  as_echo_n='print -rn --'
15404
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15405
  as_echo='printf %s\n'
15406
  as_echo_n='printf %s'
15407
else
15408
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15409
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15410
    as_echo_n='/usr/ucb/echo -n'
15411
  else
15412
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15413
    as_echo_n_body='eval
15414
      arg=$1;
15415
      case $arg in #(
15416
      *"$as_nl"*)
15417
        expr "X$arg" : "X\\(.*\\)$as_nl";
15418
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15419
      esac;
15420
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15421
    '
15422
    export as_echo_n_body
15423
    as_echo_n='sh -c $as_echo_n_body as_echo'
15424
  fi
15425
  export as_echo_body
15426
  as_echo='sh -c $as_echo_body as_echo'
15427
fi
15428
 
15429
# The user is always right.
15430
if test "${PATH_SEPARATOR+set}" != set; then
15431
  PATH_SEPARATOR=:
15432
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15433
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15434
      PATH_SEPARATOR=';'
15435
  }
15436
fi
15437
 
15438
 
15439
# IFS
15440
# We need space, tab and new line, in precisely that order.  Quoting is
15441
# there to prevent editors from complaining about space-tab.
15442
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15443
# splitting by setting IFS to empty value.)
15444
IFS=" ""        $as_nl"
15445
 
15446
# Find who we are.  Look in the path if we contain no directory separator.
15447
case $0 in #((
15448
  *[\\/]* ) as_myself=$0 ;;
15449
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15450
for as_dir in $PATH
15451
do
15452
  IFS=$as_save_IFS
15453
  test -z "$as_dir" && as_dir=.
15454
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15455
  done
15456
IFS=$as_save_IFS
15457
 
15458
     ;;
15459
esac
15460
# We did not find ourselves, most probably we were run as `sh COMMAND'
15461
# in which case we are not to be found in the path.
15462
if test "x$as_myself" = x; then
15463
  as_myself=$0
15464
fi
15465
if test ! -f "$as_myself"; then
15466
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15467
  exit 1
15468
fi
15469
 
15470
# Unset variables that we do not need and which cause bugs (e.g. in
15471
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15472
# suppresses any "Segmentation fault" message there.  '((' could
15473
# trigger a bug in pdksh 5.2.14.
15474
for as_var in BASH_ENV ENV MAIL MAILPATH
15475
do eval test x\${$as_var+set} = xset \
15476
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15477
done
15478
PS1='$ '
15479
PS2='> '
15480
PS4='+ '
15481
 
15482
# NLS nuisances.
15483
LC_ALL=C
15484
export LC_ALL
15485
LANGUAGE=C
15486
export LANGUAGE
15487
 
15488
# CDPATH.
15489
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15490
 
15491
 
15492
# as_fn_error ERROR [LINENO LOG_FD]
15493
# ---------------------------------
15494
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15495
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15496
# script with status $?, using 1 if that was 0.
15497
as_fn_error ()
15498
{
15499
  as_status=$?; test $as_status -eq 0 && as_status=1
15500
  if test "$3"; then
15501
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15502
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15503
  fi
15504
  $as_echo "$as_me: error: $1" >&2
15505
  as_fn_exit $as_status
15506
} # as_fn_error
15507
 
15508
 
15509
# as_fn_set_status STATUS
15510
# -----------------------
15511
# Set $? to STATUS, without forking.
15512
as_fn_set_status ()
15513
{
15514
  return $1
15515
} # as_fn_set_status
15516
 
15517
# as_fn_exit STATUS
15518
# -----------------
15519
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15520
as_fn_exit ()
15521
{
15522
  set +e
15523
  as_fn_set_status $1
15524
  exit $1
15525
} # as_fn_exit
15526
 
15527
# as_fn_unset VAR
15528
# ---------------
15529
# Portably unset VAR.
15530
as_fn_unset ()
15531
{
15532
  { eval $1=; unset $1;}
15533
}
15534
as_unset=as_fn_unset
15535
# as_fn_append VAR VALUE
15536
# ----------------------
15537
# Append the text in VALUE to the end of the definition contained in VAR. Take
15538
# advantage of any shell optimizations that allow amortized linear growth over
15539
# repeated appends, instead of the typical quadratic growth present in naive
15540
# implementations.
15541
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15542
  eval 'as_fn_append ()
15543
  {
15544
    eval $1+=\$2
15545
  }'
15546
else
15547
  as_fn_append ()
15548
  {
15549
    eval $1=\$$1\$2
15550
  }
15551
fi # as_fn_append
15552
 
15553
# as_fn_arith ARG...
15554
# ------------------
15555
# Perform arithmetic evaluation on the ARGs, and store the result in the
15556
# global $as_val. Take advantage of shells that can avoid forks. The arguments
15557
# must be portable across $(()) and expr.
15558
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15559
  eval 'as_fn_arith ()
15560
  {
15561
    as_val=$(( $* ))
15562
  }'
15563
else
15564
  as_fn_arith ()
15565
  {
15566
    as_val=`expr "$@" || test $? -eq 1`
15567
  }
15568
fi # as_fn_arith
15569
 
15570
 
15571
if expr a : '\(a\)' >/dev/null 2>&1 &&
15572
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15573
  as_expr=expr
15574
else
15575
  as_expr=false
15576
fi
15577
 
15578
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15579
  as_basename=basename
15580
else
15581
  as_basename=false
15582
fi
15583
 
15584
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15585
  as_dirname=dirname
15586
else
15587
  as_dirname=false
15588
fi
15589
 
15590
as_me=`$as_basename -- "$0" ||
15591
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15592
         X"$0" : 'X\(//\)$' \| \
15593
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15594
$as_echo X/"$0" |
15595
    sed '/^.*\/\([^/][^/]*\)\/*$/{
15596
            s//\1/
15597
            q
15598
          }
15599
          /^X\/\(\/\/\)$/{
15600
            s//\1/
15601
            q
15602
          }
15603
          /^X\/\(\/\).*/{
15604
            s//\1/
15605
            q
15606
          }
15607
          s/.*/./; q'`
15608
 
15609
# Avoid depending upon Character Ranges.
15610
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15611
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15612
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15613
as_cr_digits='0123456789'
15614
as_cr_alnum=$as_cr_Letters$as_cr_digits
15615
 
15616
ECHO_C= ECHO_N= ECHO_T=
15617
case `echo -n x` in #(((((
15618
-n*)
15619
  case `echo 'xy\c'` in
15620
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15621
  xy)  ECHO_C='\c';;
15622
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15623
       ECHO_T=' ';;
15624
  esac;;
15625
*)
15626
  ECHO_N='-n';;
15627
esac
15628
 
15629
rm -f conf$$ conf$$.exe conf$$.file
15630
if test -d conf$$.dir; then
15631
  rm -f conf$$.dir/conf$$.file
15632
else
15633
  rm -f conf$$.dir
15634
  mkdir conf$$.dir 2>/dev/null
15635
fi
15636
if (echo >conf$$.file) 2>/dev/null; then
15637
  if ln -s conf$$.file conf$$ 2>/dev/null; then
15638
    as_ln_s='ln -s'
15639
    # ... but there are two gotchas:
15640
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15641
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15642
    # In both cases, we have to default to `cp -p'.
15643
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15644
      as_ln_s='cp -p'
15645
  elif ln conf$$.file conf$$ 2>/dev/null; then
15646
    as_ln_s=ln
15647
  else
15648
    as_ln_s='cp -p'
15649
  fi
15650
else
15651
  as_ln_s='cp -p'
15652
fi
15653
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15654
rmdir conf$$.dir 2>/dev/null
15655
 
15656
 
15657
# as_fn_mkdir_p
15658
# -------------
15659
# Create "$as_dir" as a directory, including parents if necessary.
15660
as_fn_mkdir_p ()
15661
{
15662
 
15663
  case $as_dir in #(
15664
  -*) as_dir=./$as_dir;;
15665
  esac
15666
  test -d "$as_dir" || eval $as_mkdir_p || {
15667
    as_dirs=
15668
    while :; do
15669
      case $as_dir in #(
15670
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15671
      *) as_qdir=$as_dir;;
15672
      esac
15673
      as_dirs="'$as_qdir' $as_dirs"
15674
      as_dir=`$as_dirname -- "$as_dir" ||
15675
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15676
         X"$as_dir" : 'X\(//\)[^/]' \| \
15677
         X"$as_dir" : 'X\(//\)$' \| \
15678
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15679
$as_echo X"$as_dir" |
15680
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15681
            s//\1/
15682
            q
15683
          }
15684
          /^X\(\/\/\)[^/].*/{
15685
            s//\1/
15686
            q
15687
          }
15688
          /^X\(\/\/\)$/{
15689
            s//\1/
15690
            q
15691
          }
15692
          /^X\(\/\).*/{
15693
            s//\1/
15694
            q
15695
          }
15696
          s/.*/./; q'`
15697
      test -d "$as_dir" && break
15698
    done
15699
    test -z "$as_dirs" || eval "mkdir $as_dirs"
15700
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15701
 
15702
 
15703
} # as_fn_mkdir_p
15704
if mkdir -p . 2>/dev/null; then
15705
  as_mkdir_p='mkdir -p "$as_dir"'
15706
else
15707
  test -d ./-p && rmdir ./-p
15708
  as_mkdir_p=false
15709
fi
15710
 
15711
if test -x / >/dev/null 2>&1; then
15712
  as_test_x='test -x'
15713
else
15714
  if ls -dL / >/dev/null 2>&1; then
15715
    as_ls_L_option=L
15716
  else
15717
    as_ls_L_option=
15718
  fi
15719
  as_test_x='
15720
    eval sh -c '\''
15721
      if test -d "$1"; then
15722
        test -d "$1/.";
15723
      else
15724
        case $1 in #(
15725
        -*)set "./$1";;
15726
        esac;
15727
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15728
        ???[sx]*):;;*)false;;esac;fi
15729
    '\'' sh
15730
  '
15731
fi
15732
as_executable_p=$as_test_x
15733
 
15734
# Sed expression to map a string onto a valid CPP name.
15735
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15736
 
15737
# Sed expression to map a string onto a valid variable name.
15738
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15739
 
15740
 
15741
exec 6>&1
15742
## ----------------------------------- ##
15743
## Main body of $CONFIG_STATUS script. ##
15744
## ----------------------------------- ##
15745
_ASEOF
15746
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15747
 
15748
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15749
# Save the log message, to keep $0 and so on meaningful, and to
15750
# report actual input values of CONFIG_FILES etc. instead of their
15751
# values after options handling.
15752
ac_log="
15753
This file was extended by package-unused $as_me version-unused, which was
15754
generated by GNU Autoconf 2.64.  Invocation command line was
15755
 
15756
  CONFIG_FILES    = $CONFIG_FILES
15757
  CONFIG_HEADERS  = $CONFIG_HEADERS
15758
  CONFIG_LINKS    = $CONFIG_LINKS
15759
  CONFIG_COMMANDS = $CONFIG_COMMANDS
15760
  $ $0 $@
15761
 
15762
on `(hostname || uname -n) 2>/dev/null | sed 1q`
15763
"
15764
 
15765
_ACEOF
15766
 
15767
case $ac_config_files in *"
15768
"*) set x $ac_config_files; shift; ac_config_files=$*;;
15769
esac
15770
 
15771
case $ac_config_headers in *"
15772
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15773
esac
15774
 
15775
 
15776
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15777
# Files that config.status was made for.
15778
config_files="$ac_config_files"
15779
config_headers="$ac_config_headers"
15780
config_commands="$ac_config_commands"
15781
 
15782
_ACEOF
15783
 
15784
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15785
ac_cs_usage="\
15786
\`$as_me' instantiates files and other configuration actions
15787
from templates according to the current configuration.  Unless the files
15788
and actions are specified as TAGs, all are instantiated by default.
15789
 
15790
Usage: $0 [OPTION]... [TAG]...
15791
 
15792
  -h, --help       print this help, then exit
15793
  -V, --version    print version number and configuration settings, then exit
15794
  -q, --quiet, --silent
15795
                   do not print progress messages
15796
  -d, --debug      don't remove temporary files
15797
      --recheck    update $as_me by reconfiguring in the same conditions
15798
      --file=FILE[:TEMPLATE]
15799
                   instantiate the configuration file FILE
15800
      --header=FILE[:TEMPLATE]
15801
                   instantiate the configuration header FILE
15802
 
15803
Configuration files:
15804
$config_files
15805
 
15806
Configuration headers:
15807
$config_headers
15808
 
15809
Configuration commands:
15810
$config_commands
15811
 
15812
Report bugs to the package provider."
15813
 
15814
_ACEOF
15815
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15816
ac_cs_version="\\
15817
package-unused config.status version-unused
15818
configured by $0, generated by GNU Autoconf 2.64,
15819
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15820
 
15821
Copyright (C) 2009 Free Software Foundation, Inc.
15822
This config.status script is free software; the Free Software Foundation
15823
gives unlimited permission to copy, distribute and modify it."
15824
 
15825
ac_pwd='$ac_pwd'
15826
srcdir='$srcdir'
15827
INSTALL='$INSTALL'
15828
MKDIR_P='$MKDIR_P'
15829
AWK='$AWK'
15830
test -n "\$AWK" || AWK=awk
15831
_ACEOF
15832
 
15833
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15834
# The default lists apply if the user does not specify any file.
15835
ac_need_defaults=:
15836
while test $# != 0
15837
do
15838
  case $1 in
15839
  --*=*)
15840
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15841
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15842
    ac_shift=:
15843
    ;;
15844
  *)
15845
    ac_option=$1
15846
    ac_optarg=$2
15847
    ac_shift=shift
15848
    ;;
15849
  esac
15850
 
15851
  case $ac_option in
15852
  # Handling of the options.
15853
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15854
    ac_cs_recheck=: ;;
15855
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15856
    $as_echo "$ac_cs_version"; exit ;;
15857
  --debug | --debu | --deb | --de | --d | -d )
15858
    debug=: ;;
15859
  --file | --fil | --fi | --f )
15860
    $ac_shift
15861
    case $ac_optarg in
15862
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15863
    esac
15864
    as_fn_append CONFIG_FILES " '$ac_optarg'"
15865
    ac_need_defaults=false;;
15866
  --header | --heade | --head | --hea )
15867
    $ac_shift
15868
    case $ac_optarg in
15869
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15870
    esac
15871
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15872
    ac_need_defaults=false;;
15873
  --he | --h)
15874
    # Conflict between --help and --header
15875
    as_fn_error "ambiguous option: \`$1'
15876
Try \`$0 --help' for more information.";;
15877
  --help | --hel | -h )
15878
    $as_echo "$ac_cs_usage"; exit ;;
15879
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15880
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15881
    ac_cs_silent=: ;;
15882
 
15883
  # This is an error.
15884
  -*) as_fn_error "unrecognized option: \`$1'
15885
Try \`$0 --help' for more information." ;;
15886
 
15887
  *) as_fn_append ac_config_targets " $1"
15888
     ac_need_defaults=false ;;
15889
 
15890
  esac
15891
  shift
15892
done
15893
 
15894
ac_configure_extra_args=
15895
 
15896
if $ac_cs_silent; then
15897
  exec 6>/dev/null
15898
  ac_configure_extra_args="$ac_configure_extra_args --silent"
15899
fi
15900
 
15901
_ACEOF
15902
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15903
if \$ac_cs_recheck; then
15904
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15905
  shift
15906
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15907
  CONFIG_SHELL='$SHELL'
15908
  export CONFIG_SHELL
15909
  exec "\$@"
15910
fi
15911
 
15912
_ACEOF
15913
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15914
exec 5>>config.log
15915
{
15916
  echo
15917
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15918
## Running $as_me. ##
15919
_ASBOX
15920
  $as_echo "$ac_log"
15921
} >&5
15922
 
15923
_ACEOF
15924
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15925
#
15926
# INIT-COMMANDS
15927
#
15928
 
15929
srcdir="$srcdir"
15930
host="$host"
15931
target="$target"
15932
with_multisubdir="$with_multisubdir"
15933
with_multisrctop="$with_multisrctop"
15934
with_target_subdir="$with_target_subdir"
15935
ac_configure_args="${multilib_arg} ${ac_configure_args}"
15936
multi_basedir="$multi_basedir"
15937
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15938
CC="$CC"
15939
CXX="$CXX"
15940
GFORTRAN="$GFORTRAN"
15941
GCJ="$GCJ"
15942
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15943
 
15944
 
15945
# The HP-UX ksh and POSIX shell print the target directory to stdout
15946
# if CDPATH is set.
15947
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15948
 
15949
sed_quote_subst='$sed_quote_subst'
15950
double_quote_subst='$double_quote_subst'
15951
delay_variable_subst='$delay_variable_subst'
15952
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15953
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15954
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15955
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15956
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15957
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15958
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15959
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15960
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15961
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15962
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15963
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15964
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15965
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15966
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15967
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15968
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15969
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15970
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15971
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15972
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15973
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15974
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15975
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15976
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15977
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15978
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15979
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15980
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15981
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15982
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15983
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15984
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15985
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15986
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15987
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15988
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15989
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15990
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15991
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15992
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15993
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15994
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15995
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15996
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15997
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15998
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15999
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16000
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16001
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16002
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16003
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16004
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16005
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16006
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16007
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16008
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16009
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16010
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16011
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16012
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16013
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16014
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16015
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16016
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16017
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16018
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16019
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16020
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16021
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16022
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16023
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16024
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16025
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16026
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16027
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16028
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16029
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16030
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16031
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16032
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16033
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16034
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16035
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16036
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16037
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16038
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16039
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16040
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16041
fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16042
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16043
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16044
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16045
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16046
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16047
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16048
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16049
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16050
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16051
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16052
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16053
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16054
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16055
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16056
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16057
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16058
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16059
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16060
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16061
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16062
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16063
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16064
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16065
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16066
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16067
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16068
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16069
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16070
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16071
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16072
LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16073
reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16074
reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16075
old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16076
compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16077
GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16078
lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16079
lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16080
lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16081
lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16082
lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16083
archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16084
enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16085
export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16086
whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16087
compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16088
old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16089
old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16090
archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16091
archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16092
module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16093
module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16094
with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16095
allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16096
no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16097
hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16098
hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16099
hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16100
hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16101
hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16102
hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16103
hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16104
hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16105
inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16106
link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16107
fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16108
always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16109
export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16110
exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16111
include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16112
prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16113
file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16114
hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16115
 
16116
LTCC='$LTCC'
16117
LTCFLAGS='$LTCFLAGS'
16118
compiler='$compiler_DEFAULT'
16119
 
16120
# A function that is used when there is no print builtin or printf.
16121
func_fallback_echo ()
16122
{
16123
  eval 'cat <<_LTECHO_EOF
16124
\$1
16125
_LTECHO_EOF'
16126
}
16127
 
16128
# Quote evaled strings.
16129
for var in SED \
16130
GREP \
16131
EGREP \
16132
FGREP \
16133
SHELL \
16134
ECHO \
16135
LD \
16136
NM \
16137
LN_S \
16138
lt_SP2NL \
16139
lt_NL2SP \
16140
reload_flag \
16141
OBJDUMP \
16142
deplibs_check_method \
16143
file_magic_cmd \
16144
AR \
16145
AR_FLAGS \
16146
STRIP \
16147
RANLIB \
16148
CC \
16149
CFLAGS \
16150
compiler \
16151
lt_cv_sys_global_symbol_pipe \
16152
lt_cv_sys_global_symbol_to_cdecl \
16153
lt_cv_sys_global_symbol_to_c_name_address \
16154
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16155
lt_prog_compiler_no_builtin_flag \
16156
lt_prog_compiler_wl \
16157
lt_prog_compiler_pic \
16158
lt_prog_compiler_static \
16159
lt_cv_prog_compiler_c_o \
16160
need_locks \
16161
DSYMUTIL \
16162
NMEDIT \
16163
LIPO \
16164
OTOOL \
16165
OTOOL64 \
16166
shrext_cmds \
16167
export_dynamic_flag_spec \
16168
whole_archive_flag_spec \
16169
compiler_needs_object \
16170
with_gnu_ld \
16171
allow_undefined_flag \
16172
no_undefined_flag \
16173
hardcode_libdir_flag_spec \
16174
hardcode_libdir_flag_spec_ld \
16175
hardcode_libdir_separator \
16176
fix_srcfile_path \
16177
exclude_expsyms \
16178
include_expsyms \
16179
file_list_spec \
16180
variables_saved_for_relink \
16181
libname_spec \
16182
library_names_spec \
16183
soname_spec \
16184
install_override_mode \
16185
finish_eval \
16186
old_striplib \
16187
striplib \
16188
LD_GO \
16189
reload_flag_GO \
16190
compiler_GO \
16191
lt_prog_compiler_no_builtin_flag_GO \
16192
lt_prog_compiler_wl_GO \
16193
lt_prog_compiler_pic_GO \
16194
lt_prog_compiler_static_GO \
16195
lt_cv_prog_compiler_c_o_GO \
16196
export_dynamic_flag_spec_GO \
16197
whole_archive_flag_spec_GO \
16198
compiler_needs_object_GO \
16199
with_gnu_ld_GO \
16200
allow_undefined_flag_GO \
16201
no_undefined_flag_GO \
16202
hardcode_libdir_flag_spec_GO \
16203
hardcode_libdir_flag_spec_ld_GO \
16204
hardcode_libdir_separator_GO \
16205
fix_srcfile_path_GO \
16206
exclude_expsyms_GO \
16207
include_expsyms_GO \
16208
file_list_spec_GO; do
16209
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16210
    *[\\\\\\\`\\"\\\$]*)
16211
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16212
      ;;
16213
    *)
16214
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16215
      ;;
16216
    esac
16217
done
16218
 
16219
# Double-quote double-evaled strings.
16220
for var in reload_cmds \
16221
old_postinstall_cmds \
16222
old_postuninstall_cmds \
16223
old_archive_cmds \
16224
extract_expsyms_cmds \
16225
old_archive_from_new_cmds \
16226
old_archive_from_expsyms_cmds \
16227
archive_cmds \
16228
archive_expsym_cmds \
16229
module_cmds \
16230
module_expsym_cmds \
16231
export_symbols_cmds \
16232
prelink_cmds \
16233
postinstall_cmds \
16234
postuninstall_cmds \
16235
finish_cmds \
16236
sys_lib_search_path_spec \
16237
sys_lib_dlsearch_path_spec \
16238
reload_cmds_GO \
16239
old_archive_cmds_GO \
16240
old_archive_from_new_cmds_GO \
16241
old_archive_from_expsyms_cmds_GO \
16242
archive_cmds_GO \
16243
archive_expsym_cmds_GO \
16244
module_cmds_GO \
16245
module_expsym_cmds_GO \
16246
export_symbols_cmds_GO \
16247
prelink_cmds_GO; do
16248
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16249
    *[\\\\\\\`\\"\\\$]*)
16250
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16251
      ;;
16252
    *)
16253
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16254
      ;;
16255
    esac
16256
done
16257
 
16258
ac_aux_dir='$ac_aux_dir'
16259
xsi_shell='$xsi_shell'
16260
lt_shell_append='$lt_shell_append'
16261
 
16262
# See if we are running on zsh, and set the options which allow our
16263
# commands through without removal of \ escapes INIT.
16264
if test -n "\${ZSH_VERSION+set}" ; then
16265
   setopt NO_GLOB_SUBST
16266
fi
16267
 
16268
 
16269
    PACKAGE='$PACKAGE'
16270
    VERSION='$VERSION'
16271
    TIMESTAMP='$TIMESTAMP'
16272
    RM='$RM'
16273
    ofile='$ofile'
16274
 
16275
 
16276
 
16277
 
16278
 
16279
 
16280
# Variables needed in config.status (file generation) which aren't already
16281
# passed by autoconf.
16282
SUBDIRS="$SUBDIRS"
16283
 
16284
 
16285
_ACEOF
16286
 
16287
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16288
 
16289
# Handling of arguments.
16290
for ac_config_target in $ac_config_targets
16291
do
16292
  case $ac_config_target in
16293
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16294
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16295
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16296
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16297
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16298
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16299
    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16300
 
16301
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16302
  esac
16303
done
16304
 
16305
 
16306
# If the user did not use the arguments to specify the items to instantiate,
16307
# then the envvar interface is used.  Set only those that are not.
16308
# We use the long form for the default assignment because of an extremely
16309
# bizarre bug on SunOS 4.1.3.
16310
if $ac_need_defaults; then
16311
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16312
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16313
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16314
fi
16315
 
16316
# Have a temporary directory for convenience.  Make it in the build tree
16317
# simply because there is no reason against having it here, and in addition,
16318
# creating and moving files from /tmp can sometimes cause problems.
16319
# Hook for its removal unless debugging.
16320
# Note that there is a small window in which the directory will not be cleaned:
16321
# after its creation but before its name has been assigned to `$tmp'.
16322
$debug ||
16323
{
16324
  tmp=
16325
  trap 'exit_status=$?
16326
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16327
' 0
16328
  trap 'as_fn_exit 1' 1 2 13 15
16329
}
16330
# Create a (secure) tmp directory for tmp files.
16331
 
16332
{
16333
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16334
  test -n "$tmp" && test -d "$tmp"
16335
}  ||
16336
{
16337
  tmp=./conf$$-$RANDOM
16338
  (umask 077 && mkdir "$tmp")
16339
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16340
 
16341
# Set up the scripts for CONFIG_FILES section.
16342
# No need to generate them if there are no CONFIG_FILES.
16343
# This happens for instance with `./config.status config.h'.
16344
if test -n "$CONFIG_FILES"; then
16345
 
16346
 
16347
ac_cr=`echo X | tr X '\015'`
16348
# On cygwin, bash can eat \r inside `` if the user requested igncr.
16349
# But we know of no other shell where ac_cr would be empty at this
16350
# point, so we can use a bashism as a fallback.
16351
if test "x$ac_cr" = x; then
16352
  eval ac_cr=\$\'\\r\'
16353
fi
16354
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
16355
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16356
  ac_cs_awk_cr='\r'
16357
else
16358
  ac_cs_awk_cr=$ac_cr
16359
fi
16360
 
16361
echo 'BEGIN {' >"$tmp/subs1.awk" &&
16362
_ACEOF
16363
 
16364
 
16365
{
16366
  echo "cat >conf$$subs.awk <<_ACEOF" &&
16367
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16368
  echo "_ACEOF"
16369
} >conf$$subs.sh ||
16370
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16371
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16372
ac_delim='%!_!# '
16373
for ac_last_try in false false false false false :; do
16374
  . ./conf$$subs.sh ||
16375
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16376
 
16377
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16378
  if test $ac_delim_n = $ac_delim_num; then
16379
    break
16380
  elif $ac_last_try; then
16381
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16382
  else
16383
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16384
  fi
16385
done
16386
rm -f conf$$subs.sh
16387
 
16388
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16389
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16390
_ACEOF
16391
sed -n '
16392
h
16393
s/^/S["/; s/!.*/"]=/
16394
p
16395
g
16396
s/^[^!]*!//
16397
:repl
16398
t repl
16399
s/'"$ac_delim"'$//
16400
t delim
16401
:nl
16402
h
16403
s/\(.\{148\}\).*/\1/
16404
t more1
16405
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16406
p
16407
n
16408
b repl
16409
:more1
16410
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16411
p
16412
g
16413
s/.\{148\}//
16414
t nl
16415
:delim
16416
h
16417
s/\(.\{148\}\).*/\1/
16418
t more2
16419
s/["\\]/\\&/g; s/^/"/; s/$/"/
16420
p
16421
b
16422
:more2
16423
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16424
p
16425
g
16426
s/.\{148\}//
16427
t delim
16428
' 
16429
/^[^""]/{
16430
  N
16431
  s/\n//
16432
}
16433
' >>$CONFIG_STATUS || ac_write_fail=1
16434
rm -f conf$$subs.awk
16435
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16436
_ACAWK
16437
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16438
  for (key in S) S_is_set[key] = 1
16439
  FS = ""
16440
 
16441
}
16442
{
16443
  line = $ 0
16444
  nfields = split(line, field, "@")
16445
  substed = 0
16446
  len = length(field[1])
16447
  for (i = 2; i < nfields; i++) {
16448
    key = field[i]
16449
    keylen = length(key)
16450
    if (S_is_set[key]) {
16451
      value = S[key]
16452
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16453
      len += length(value) + length(field[++i])
16454
      substed = 1
16455
    } else
16456
      len += 1 + keylen
16457
  }
16458
 
16459
  print line
16460
}
16461
 
16462
_ACAWK
16463
_ACEOF
16464
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16465
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16466
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16467
else
16468
  cat
16469
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16470
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
16471
_ACEOF
16472
 
16473
# VPATH may cause trouble with some makes, so we remove $(srcdir),
16474
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16475
# trailing colons and then remove the whole line if VPATH becomes empty
16476
# (actually we leave an empty line to preserve line numbers).
16477
if test "x$srcdir" = x.; then
16478
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
16479
s/:*\$(srcdir):*/:/
16480
s/:*\${srcdir}:*/:/
16481
s/:*@srcdir@:*/:/
16482
s/^\([^=]*=[     ]*\):*/\1/
16483
s/:*$//
16484
s/^[^=]*=[       ]*$//
16485
}'
16486
fi
16487
 
16488
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16489
fi # test -n "$CONFIG_FILES"
16490
 
16491
# Set up the scripts for CONFIG_HEADERS section.
16492
# No need to generate them if there are no CONFIG_HEADERS.
16493
# This happens for instance with `./config.status Makefile'.
16494
if test -n "$CONFIG_HEADERS"; then
16495
cat >"$tmp/defines.awk" <<\_ACAWK ||
16496
BEGIN {
16497
_ACEOF
16498
 
16499
# Transform confdefs.h into an awk script `defines.awk', embedded as
16500
# here-document in config.status, that substitutes the proper values into
16501
# config.h.in to produce config.h.
16502
 
16503
# Create a delimiter string that does not exist in confdefs.h, to ease
16504
# handling of long lines.
16505
ac_delim='%!_!# '
16506
for ac_last_try in false false :; do
16507
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16508
  if test -z "$ac_t"; then
16509
    break
16510
  elif $ac_last_try; then
16511
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16512
  else
16513
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16514
  fi
16515
done
16516
 
16517
# For the awk script, D is an array of macro values keyed by name,
16518
# likewise P contains macro parameters if any.  Preserve backslash
16519
# newline sequences.
16520
 
16521
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16522
sed -n '
16523
s/.\{148\}/&'"$ac_delim"'/g
16524
t rset
16525
:rset
16526
s/^[     ]*#[    ]*define[       ][      ]*/ /
16527
t def
16528
d
16529
:def
16530
s/\\$//
16531
t bsnl
16532
s/["\\]/\\&/g
16533
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16534
D["\1"]=" \3"/p
16535
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16536
d
16537
:bsnl
16538
s/["\\]/\\&/g
16539
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16540
D["\1"]=" \3\\\\\\n"\\/p
16541
t cont
16542
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16543
t cont
16544
d
16545
:cont
16546
n
16547
s/.\{148\}/&'"$ac_delim"'/g
16548
t clear
16549
:clear
16550
s/\\$//
16551
t bsnlc
16552
s/["\\]/\\&/g; s/^/"/; s/$/"/p
16553
d
16554
:bsnlc
16555
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16556
b cont
16557
' 
16558
s/'"$ac_delim"'/"\\\
16559
"/g' >>$CONFIG_STATUS || ac_write_fail=1
16560
 
16561
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16562
  for (key in D) D_is_set[key] = 1
16563
  FS = ""
16564
}
16565
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16566
  line = \$ 0
16567
  split(line, arg, " ")
16568
  if (arg[1] == "#") {
16569
    defundef = arg[2]
16570
    mac1 = arg[3]
16571
  } else {
16572
    defundef = substr(arg[1], 2)
16573
    mac1 = arg[2]
16574
  }
16575
  split(mac1, mac2, "(") #)
16576
  macro = mac2[1]
16577
  prefix = substr(line, 1, index(line, defundef) - 1)
16578
  if (D_is_set[macro]) {
16579
    # Preserve the white space surrounding the "#".
16580
    print prefix "define", macro P[macro] D[macro]
16581
    next
16582
  } else {
16583
    # Replace #undef with comments.  This is necessary, for example,
16584
    # in the case of _POSIX_SOURCE, which is predefined and required
16585
    # on some systems where configure will not decide to define it.
16586
    if (defundef == "undef") {
16587
      print "/*", prefix defundef, macro, "*/"
16588
      next
16589
    }
16590
  }
16591
}
16592
{ print }
16593
_ACAWK
16594
_ACEOF
16595
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16596
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
16597
fi # test -n "$CONFIG_HEADERS"
16598
 
16599
 
16600
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16601
shift
16602
for ac_tag
16603
do
16604
  case $ac_tag in
16605
  :[FHLC]) ac_mode=$ac_tag; continue;;
16606
  esac
16607
  case $ac_mode$ac_tag in
16608
  :[FHL]*:*);;
16609
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16610
  :[FH]-) ac_tag=-:-;;
16611
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16612
  esac
16613
  ac_save_IFS=$IFS
16614
  IFS=:
16615
  set x $ac_tag
16616
  IFS=$ac_save_IFS
16617
  shift
16618
  ac_file=$1
16619
  shift
16620
 
16621
  case $ac_mode in
16622
  :L) ac_source=$1;;
16623
  :[FH])
16624
    ac_file_inputs=
16625
    for ac_f
16626
    do
16627
      case $ac_f in
16628
      -) ac_f="$tmp/stdin";;
16629
      *) # Look for the file first in the build tree, then in the source tree
16630
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
16631
         # because $ac_f cannot contain `:'.
16632
         test -f "$ac_f" ||
16633
           case $ac_f in
16634
           [\\/$]*) false;;
16635
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16636
           esac ||
16637
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16638
      esac
16639
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16640
      as_fn_append ac_file_inputs " '$ac_f'"
16641
    done
16642
 
16643
    # Let's still pretend it is `configure' which instantiates (i.e., don't
16644
    # use $as_me), people would be surprised to read:
16645
    #    /* config.h.  Generated by config.status.  */
16646
    configure_input='Generated from '`
16647
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16648
        `' by configure.'
16649
    if test x"$ac_file" != x-; then
16650
      configure_input="$ac_file.  $configure_input"
16651
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16652
$as_echo "$as_me: creating $ac_file" >&6;}
16653
    fi
16654
    # Neutralize special characters interpreted by sed in replacement strings.
16655
    case $configure_input in #(
16656
    *\&* | *\|* | *\\* )
16657
       ac_sed_conf_input=`$as_echo "$configure_input" |
16658
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16659
    *) ac_sed_conf_input=$configure_input;;
16660
    esac
16661
 
16662
    case $ac_tag in
16663
    *:-:* | *:-) cat >"$tmp/stdin" \
16664
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16665
    esac
16666
    ;;
16667
  esac
16668
 
16669
  ac_dir=`$as_dirname -- "$ac_file" ||
16670
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16671
         X"$ac_file" : 'X\(//\)[^/]' \| \
16672
         X"$ac_file" : 'X\(//\)$' \| \
16673
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16674
$as_echo X"$ac_file" |
16675
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16676
            s//\1/
16677
            q
16678
          }
16679
          /^X\(\/\/\)[^/].*/{
16680
            s//\1/
16681
            q
16682
          }
16683
          /^X\(\/\/\)$/{
16684
            s//\1/
16685
            q
16686
          }
16687
          /^X\(\/\).*/{
16688
            s//\1/
16689
            q
16690
          }
16691
          s/.*/./; q'`
16692
  as_dir="$ac_dir"; as_fn_mkdir_p
16693
  ac_builddir=.
16694
 
16695
case "$ac_dir" in
16696
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16697
*)
16698
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16699
  # A ".." for each directory in $ac_dir_suffix.
16700
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16701
  case $ac_top_builddir_sub in
16702
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16703
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16704
  esac ;;
16705
esac
16706
ac_abs_top_builddir=$ac_pwd
16707
ac_abs_builddir=$ac_pwd$ac_dir_suffix
16708
# for backward compatibility:
16709
ac_top_builddir=$ac_top_build_prefix
16710
 
16711
case $srcdir in
16712
  .)  # We are building in place.
16713
    ac_srcdir=.
16714
    ac_top_srcdir=$ac_top_builddir_sub
16715
    ac_abs_top_srcdir=$ac_pwd ;;
16716
  [\\/]* | ?:[\\/]* )  # Absolute name.
16717
    ac_srcdir=$srcdir$ac_dir_suffix;
16718
    ac_top_srcdir=$srcdir
16719
    ac_abs_top_srcdir=$srcdir ;;
16720
  *) # Relative name.
16721
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16722
    ac_top_srcdir=$ac_top_build_prefix$srcdir
16723
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16724
esac
16725
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16726
 
16727
 
16728
  case $ac_mode in
16729
  :F)
16730
  #
16731
  # CONFIG_FILE
16732
  #
16733
 
16734
  case $INSTALL in
16735
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16736
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16737
  esac
16738
  ac_MKDIR_P=$MKDIR_P
16739
  case $MKDIR_P in
16740
  [\\/$]* | ?:[\\/]* ) ;;
16741
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16742
  esac
16743
_ACEOF
16744
 
16745
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16746
# If the template does not know about datarootdir, expand it.
16747
# FIXME: This hack should be removed a few years after 2.60.
16748
ac_datarootdir_hack=; ac_datarootdir_seen=
16749
ac_sed_dataroot='
16750
/datarootdir/ {
16751
  p
16752
  q
16753
}
16754
/@datadir@/p
16755
/@docdir@/p
16756
/@infodir@/p
16757
/@localedir@/p
16758
/@mandir@/p'
16759
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16760
*datarootdir*) ac_datarootdir_seen=yes;;
16761
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16762
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16763
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16764
_ACEOF
16765
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16766
  ac_datarootdir_hack='
16767
  s&@datadir@&$datadir&g
16768
  s&@docdir@&$docdir&g
16769
  s&@infodir@&$infodir&g
16770
  s&@localedir@&$localedir&g
16771
  s&@mandir@&$mandir&g
16772
  s&\\\${datarootdir}&$datarootdir&g' ;;
16773
esac
16774
_ACEOF
16775
 
16776
# Neutralize VPATH when `$srcdir' = `.'.
16777
# Shell code in configure.ac might set extrasub.
16778
# FIXME: do we really want to maintain this feature?
16779
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16780
ac_sed_extra="$ac_vpsub
16781
$extrasub
16782
_ACEOF
16783
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16784
:t
16785
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16786
s|@configure_input@|$ac_sed_conf_input|;t t
16787
s&@top_builddir@&$ac_top_builddir_sub&;t t
16788
s&@top_build_prefix@&$ac_top_build_prefix&;t t
16789
s&@srcdir@&$ac_srcdir&;t t
16790
s&@abs_srcdir@&$ac_abs_srcdir&;t t
16791
s&@top_srcdir@&$ac_top_srcdir&;t t
16792
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16793
s&@builddir@&$ac_builddir&;t t
16794
s&@abs_builddir@&$ac_abs_builddir&;t t
16795
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16796
s&@INSTALL@&$ac_INSTALL&;t t
16797
s&@MKDIR_P@&$ac_MKDIR_P&;t t
16798
$ac_datarootdir_hack
16799
"
16800
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16801
  || as_fn_error "could not create $ac_file" "$LINENO" 5
16802
 
16803
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16804
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16805
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16806
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16807
which seems to be undefined.  Please make sure it is defined." >&5
16808
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16809
which seems to be undefined.  Please make sure it is defined." >&2;}
16810
 
16811
  rm -f "$tmp/stdin"
16812
  case $ac_file in
16813
  -) cat "$tmp/out" && rm -f "$tmp/out";;
16814
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16815
  esac \
16816
  || as_fn_error "could not create $ac_file" "$LINENO" 5
16817
 ;;
16818
  :H)
16819
  #
16820
  # CONFIG_HEADER
16821
  #
16822
  if test x"$ac_file" != x-; then
16823
    {
16824
      $as_echo "/* $configure_input  */" \
16825
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16826
    } >"$tmp/config.h" \
16827
      || as_fn_error "could not create $ac_file" "$LINENO" 5
16828
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16829
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16830
$as_echo "$as_me: $ac_file is unchanged" >&6;}
16831
    else
16832
      rm -f "$ac_file"
16833
      mv "$tmp/config.h" "$ac_file" \
16834
        || as_fn_error "could not create $ac_file" "$LINENO" 5
16835
    fi
16836
  else
16837
    $as_echo "/* $configure_input  */" \
16838
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16839
      || as_fn_error "could not create -" "$LINENO" 5
16840
  fi
16841
# Compute "$ac_file"'s index in $config_headers.
16842
_am_arg="$ac_file"
16843
_am_stamp_count=1
16844
for _am_header in $config_headers :; do
16845
  case $_am_header in
16846
    $_am_arg | $_am_arg:* )
16847
      break ;;
16848
    * )
16849
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16850
  esac
16851
done
16852
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16853
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16854
         X"$_am_arg" : 'X\(//\)[^/]' \| \
16855
         X"$_am_arg" : 'X\(//\)$' \| \
16856
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16857
$as_echo X"$_am_arg" |
16858
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16859
            s//\1/
16860
            q
16861
          }
16862
          /^X\(\/\/\)[^/].*/{
16863
            s//\1/
16864
            q
16865
          }
16866
          /^X\(\/\/\)$/{
16867
            s//\1/
16868
            q
16869
          }
16870
          /^X\(\/\).*/{
16871
            s//\1/
16872
            q
16873
          }
16874
          s/.*/./; q'`/stamp-h$_am_stamp_count
16875
 ;;
16876
 
16877
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16878
$as_echo "$as_me: executing $ac_file commands" >&6;}
16879
 ;;
16880
  esac
16881
 
16882
 
16883
  case $ac_file$ac_mode in
16884
    "default-1":C)
16885
# Only add multilib support code if we just rebuilt the top-level
16886
# Makefile.
16887
case " $CONFIG_FILES " in
16888
 *" Makefile "*)
16889
   ac_file=Makefile . ${multi_basedir}/config-ml.in
16890
   ;;
16891
esac ;;
16892
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16893
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16894
  # are listed without --file.  Let's play safe and only enable the eval
16895
  # if we detect the quoting.
16896
  case $CONFIG_FILES in
16897
  *\'*) eval set x "$CONFIG_FILES" ;;
16898
  *)   set x $CONFIG_FILES ;;
16899
  esac
16900
  shift
16901
  for mf
16902
  do
16903
    # Strip MF so we end up with the name of the file.
16904
    mf=`echo "$mf" | sed -e 's/:.*$//'`
16905
    # Check whether this is an Automake generated Makefile or not.
16906
    # We used to match only the files named `Makefile.in', but
16907
    # some people rename them; so instead we look at the file content.
16908
    # Grep'ing the first line is not enough: some people post-process
16909
    # each Makefile.in and add a new line on top of each file to say so.
16910
    # Grep'ing the whole file is not good either: AIX grep has a line
16911
    # limit of 2048, but all sed's we know have understand at least 4000.
16912
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16913
      dirpart=`$as_dirname -- "$mf" ||
16914
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16915
         X"$mf" : 'X\(//\)[^/]' \| \
16916
         X"$mf" : 'X\(//\)$' \| \
16917
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16918
$as_echo X"$mf" |
16919
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16920
            s//\1/
16921
            q
16922
          }
16923
          /^X\(\/\/\)[^/].*/{
16924
            s//\1/
16925
            q
16926
          }
16927
          /^X\(\/\/\)$/{
16928
            s//\1/
16929
            q
16930
          }
16931
          /^X\(\/\).*/{
16932
            s//\1/
16933
            q
16934
          }
16935
          s/.*/./; q'`
16936
    else
16937
      continue
16938
    fi
16939
    # Extract the definition of DEPDIR, am__include, and am__quote
16940
    # from the Makefile without running `make'.
16941
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16942
    test -z "$DEPDIR" && continue
16943
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16944
    test -z "am__include" && continue
16945
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16946
    # When using ansi2knr, U may be empty or an underscore; expand it
16947
    U=`sed -n 's/^U = //p' < "$mf"`
16948
    # Find all dependency output files, they are included files with
16949
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16950
    # simplest approach to changing $(DEPDIR) to its actual value in the
16951
    # expansion.
16952
    for file in `sed -n "
16953
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16954
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16955
      # Make sure the directory exists.
16956
      test -f "$dirpart/$file" && continue
16957
      fdir=`$as_dirname -- "$file" ||
16958
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16959
         X"$file" : 'X\(//\)[^/]' \| \
16960
         X"$file" : 'X\(//\)$' \| \
16961
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16962
$as_echo X"$file" |
16963
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16964
            s//\1/
16965
            q
16966
          }
16967
          /^X\(\/\/\)[^/].*/{
16968
            s//\1/
16969
            q
16970
          }
16971
          /^X\(\/\/\)$/{
16972
            s//\1/
16973
            q
16974
          }
16975
          /^X\(\/\).*/{
16976
            s//\1/
16977
            q
16978
          }
16979
          s/.*/./; q'`
16980
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16981
      # echo "creating $dirpart/$file"
16982
      echo '# dummy' > "$dirpart/$file"
16983
    done
16984
  done
16985
}
16986
 ;;
16987
    "libtool":C)
16988
 
16989
    # See if we are running on zsh, and set the options which allow our
16990
    # commands through without removal of \ escapes.
16991
    if test -n "${ZSH_VERSION+set}" ; then
16992
      setopt NO_GLOB_SUBST
16993
    fi
16994
 
16995
    cfgfile="${ofile}T"
16996
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16997
    $RM "$cfgfile"
16998
 
16999
    cat <<_LT_EOF >> "$cfgfile"
17000
#! $SHELL
17001
 
17002
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17003
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17004
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17005
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17006
#
17007
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17008
#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17009
#   Written by Gordon Matzigkeit, 1996
17010
#
17011
#   This file is part of GNU Libtool.
17012
#
17013
# GNU Libtool is free software; you can redistribute it and/or
17014
# modify it under the terms of the GNU General Public License as
17015
# published by the Free Software Foundation; either version 2 of
17016
# the License, or (at your option) any later version.
17017
#
17018
# As a special exception to the GNU General Public License,
17019
# if you distribute this file as part of a program or library that
17020
# is built using GNU Libtool, you may include this file under the
17021
# same distribution terms that you use for the rest of that program.
17022
#
17023
# GNU Libtool is distributed in the hope that it will be useful,
17024
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17025
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17026
# GNU General Public License for more details.
17027
#
17028
# You should have received a copy of the GNU General Public License
17029
# along with GNU Libtool; see the file COPYING.  If not, a copy
17030
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17031
# obtained by writing to the Free Software Foundation, Inc.,
17032
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17033
 
17034
 
17035
# The names of the tagged configurations supported by this script.
17036
available_tags="GO "
17037
 
17038
# ### BEGIN LIBTOOL CONFIG
17039
 
17040
# A sed program that does not truncate output.
17041
SED=$lt_SED
17042
 
17043
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17044
Xsed="\$SED -e 1s/^X//"
17045
 
17046
# A grep program that handles long lines.
17047
GREP=$lt_GREP
17048
 
17049
# An ERE matcher.
17050
EGREP=$lt_EGREP
17051
 
17052
# A literal string matcher.
17053
FGREP=$lt_FGREP
17054
 
17055
# Shell to use when invoking shell scripts.
17056
SHELL=$lt_SHELL
17057
 
17058
# An echo program that protects backslashes.
17059
ECHO=$lt_ECHO
17060
 
17061
# Which release of libtool.m4 was used?
17062
macro_version=$macro_version
17063
macro_revision=$macro_revision
17064
 
17065
# Whether or not to build shared libraries.
17066
build_libtool_libs=$enable_shared
17067
 
17068
# Whether or not to build static libraries.
17069
build_old_libs=$enable_static
17070
 
17071
# What type of objects to build.
17072
pic_mode=$pic_mode
17073
 
17074
# Whether or not to optimize for fast installation.
17075
fast_install=$enable_fast_install
17076
 
17077
# The host system.
17078
host_alias=$host_alias
17079
host=$host
17080
host_os=$host_os
17081
 
17082
# The build system.
17083
build_alias=$build_alias
17084
build=$build
17085
build_os=$build_os
17086
 
17087
# A BSD- or MS-compatible name lister.
17088
NM=$lt_NM
17089
 
17090
# Whether we need soft or hard links.
17091
LN_S=$lt_LN_S
17092
 
17093
# What is the maximum length of a command?
17094
max_cmd_len=$max_cmd_len
17095
 
17096
# Object file suffix (normally "o").
17097
objext=$ac_objext
17098
 
17099
# Executable file suffix (normally "").
17100
exeext=$exeext
17101
 
17102
# whether the shell understands "unset".
17103
lt_unset=$lt_unset
17104
 
17105
# turn spaces into newlines.
17106
SP2NL=$lt_lt_SP2NL
17107
 
17108
# turn newlines into spaces.
17109
NL2SP=$lt_lt_NL2SP
17110
 
17111
# An object symbol dumper.
17112
OBJDUMP=$lt_OBJDUMP
17113
 
17114
# Method to check whether dependent libraries are shared objects.
17115
deplibs_check_method=$lt_deplibs_check_method
17116
 
17117
# Command to use when deplibs_check_method == "file_magic".
17118
file_magic_cmd=$lt_file_magic_cmd
17119
 
17120
# The archiver.
17121
AR=$lt_AR
17122
AR_FLAGS=$lt_AR_FLAGS
17123
 
17124
# A symbol stripping program.
17125
STRIP=$lt_STRIP
17126
 
17127
# Commands used to install an old-style archive.
17128
RANLIB=$lt_RANLIB
17129
old_postinstall_cmds=$lt_old_postinstall_cmds
17130
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17131
 
17132
# Whether to use a lock for old archive extraction.
17133
lock_old_archive_extraction=$lock_old_archive_extraction
17134
 
17135
# A C compiler.
17136
LTCC=$lt_CC
17137
 
17138
# LTCC compiler flags.
17139
LTCFLAGS=$lt_CFLAGS
17140
 
17141
# Take the output of nm and produce a listing of raw symbols and C names.
17142
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17143
 
17144
# Transform the output of nm in a proper C declaration.
17145
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17146
 
17147
# Transform the output of nm in a C name address pair.
17148
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17149
 
17150
# Transform the output of nm in a C name address pair when lib prefix is needed.
17151
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17152
 
17153
# The name of the directory that contains temporary libtool files.
17154
objdir=$objdir
17155
 
17156
# Used to examine libraries when file_magic_cmd begins with "file".
17157
MAGIC_CMD=$MAGIC_CMD
17158
 
17159
# Must we lock files when doing compilation?
17160
need_locks=$lt_need_locks
17161
 
17162
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17163
DSYMUTIL=$lt_DSYMUTIL
17164
 
17165
# Tool to change global to local symbols on Mac OS X.
17166
NMEDIT=$lt_NMEDIT
17167
 
17168
# Tool to manipulate fat objects and archives on Mac OS X.
17169
LIPO=$lt_LIPO
17170
 
17171
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17172
OTOOL=$lt_OTOOL
17173
 
17174
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17175
OTOOL64=$lt_OTOOL64
17176
 
17177
# Old archive suffix (normally "a").
17178
libext=$libext
17179
 
17180
# Shared library suffix (normally ".so").
17181
shrext_cmds=$lt_shrext_cmds
17182
 
17183
# The commands to extract the exported symbol list from a shared archive.
17184
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17185
 
17186
# Variables whose values should be saved in libtool wrapper scripts and
17187
# restored at link time.
17188
variables_saved_for_relink=$lt_variables_saved_for_relink
17189
 
17190
# Do we need the "lib" prefix for modules?
17191
need_lib_prefix=$need_lib_prefix
17192
 
17193
# Do we need a version for libraries?
17194
need_version=$need_version
17195
 
17196
# Library versioning type.
17197
version_type=$version_type
17198
 
17199
# Shared library runtime path variable.
17200
runpath_var=$runpath_var
17201
 
17202
# Shared library path variable.
17203
shlibpath_var=$shlibpath_var
17204
 
17205
# Is shlibpath searched before the hard-coded library search path?
17206
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17207
 
17208
# Format of library name prefix.
17209
libname_spec=$lt_libname_spec
17210
 
17211
# List of archive names.  First name is the real one, the rest are links.
17212
# The last name is the one that the linker finds with -lNAME
17213
library_names_spec=$lt_library_names_spec
17214
 
17215
# The coded name of the library, if different from the real name.
17216
soname_spec=$lt_soname_spec
17217
 
17218
# Permission mode override for installation of shared libraries.
17219
install_override_mode=$lt_install_override_mode
17220
 
17221
# Command to use after installation of a shared archive.
17222
postinstall_cmds=$lt_postinstall_cmds
17223
 
17224
# Command to use after uninstallation of a shared archive.
17225
postuninstall_cmds=$lt_postuninstall_cmds
17226
 
17227
# Commands used to finish a libtool library installation in a directory.
17228
finish_cmds=$lt_finish_cmds
17229
 
17230
# As "finish_cmds", except a single script fragment to be evaled but
17231
# not shown.
17232
finish_eval=$lt_finish_eval
17233
 
17234
# Whether we should hardcode library paths into libraries.
17235
hardcode_into_libs=$hardcode_into_libs
17236
 
17237
# Compile-time system search path for libraries.
17238
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17239
 
17240
# Run-time system search path for libraries.
17241
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17242
 
17243
# Whether dlopen is supported.
17244
dlopen_support=$enable_dlopen
17245
 
17246
# Whether dlopen of programs is supported.
17247
dlopen_self=$enable_dlopen_self
17248
 
17249
# Whether dlopen of statically linked programs is supported.
17250
dlopen_self_static=$enable_dlopen_self_static
17251
 
17252
# Commands to strip libraries.
17253
old_striplib=$lt_old_striplib
17254
striplib=$lt_striplib
17255
 
17256
 
17257
# The linker used to build libraries.
17258
LD=$lt_LD
17259
 
17260
# How to create reloadable object files.
17261
reload_flag=$lt_reload_flag
17262
reload_cmds=$lt_reload_cmds
17263
 
17264
# Commands used to build an old-style archive.
17265
old_archive_cmds=$lt_old_archive_cmds
17266
 
17267
# A language specific compiler.
17268
CC=$lt_compiler
17269
 
17270
# Is the compiler the GNU compiler?
17271
with_gcc=$GCC
17272
 
17273
# Compiler flag to turn off builtin functions.
17274
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17275
 
17276
# How to pass a linker flag through the compiler.
17277
wl=$lt_lt_prog_compiler_wl
17278
 
17279
# Additional compiler flags for building library objects.
17280
pic_flag=$lt_lt_prog_compiler_pic
17281
 
17282
# Compiler flag to prevent dynamic linking.
17283
link_static_flag=$lt_lt_prog_compiler_static
17284
 
17285
# Does compiler simultaneously support -c and -o options?
17286
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17287
 
17288
# Whether or not to add -lc for building shared libraries.
17289
build_libtool_need_lc=$archive_cmds_need_lc
17290
 
17291
# Whether or not to disallow shared libs when runtime libs are static.
17292
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17293
 
17294
# Compiler flag to allow reflexive dlopens.
17295
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17296
 
17297
# Compiler flag to generate shared objects directly from archives.
17298
whole_archive_flag_spec=$lt_whole_archive_flag_spec
17299
 
17300
# Whether the compiler copes with passing no objects directly.
17301
compiler_needs_object=$lt_compiler_needs_object
17302
 
17303
# Create an old-style archive from a shared archive.
17304
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17305
 
17306
# Create a temporary old-style archive to link instead of a shared archive.
17307
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17308
 
17309
# Commands used to build a shared archive.
17310
archive_cmds=$lt_archive_cmds
17311
archive_expsym_cmds=$lt_archive_expsym_cmds
17312
 
17313
# Commands used to build a loadable module if different from building
17314
# a shared archive.
17315
module_cmds=$lt_module_cmds
17316
module_expsym_cmds=$lt_module_expsym_cmds
17317
 
17318
# Whether we are building with GNU ld or not.
17319
with_gnu_ld=$lt_with_gnu_ld
17320
 
17321
# Flag that allows shared libraries with undefined symbols to be built.
17322
allow_undefined_flag=$lt_allow_undefined_flag
17323
 
17324
# Flag that enforces no undefined symbols.
17325
no_undefined_flag=$lt_no_undefined_flag
17326
 
17327
# Flag to hardcode \$libdir into a binary during linking.
17328
# This must work even if \$libdir does not exist
17329
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17330
 
17331
# If ld is used when linking, flag to hardcode \$libdir into a binary
17332
# during linking.  This must work even if \$libdir does not exist.
17333
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17334
 
17335
# Whether we need a single "-rpath" flag with a separated argument.
17336
hardcode_libdir_separator=$lt_hardcode_libdir_separator
17337
 
17338
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17339
# DIR into the resulting binary.
17340
hardcode_direct=$hardcode_direct
17341
 
17342
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17343
# DIR into the resulting binary and the resulting library dependency is
17344
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17345
# library is relocated.
17346
hardcode_direct_absolute=$hardcode_direct_absolute
17347
 
17348
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17349
# into the resulting binary.
17350
hardcode_minus_L=$hardcode_minus_L
17351
 
17352
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17353
# into the resulting binary.
17354
hardcode_shlibpath_var=$hardcode_shlibpath_var
17355
 
17356
# Set to "yes" if building a shared library automatically hardcodes DIR
17357
# into the library and all subsequent libraries and executables linked
17358
# against it.
17359
hardcode_automatic=$hardcode_automatic
17360
 
17361
# Set to yes if linker adds runtime paths of dependent libraries
17362
# to runtime path list.
17363
inherit_rpath=$inherit_rpath
17364
 
17365
# Whether libtool must link a program against all its dependency libraries.
17366
link_all_deplibs=$link_all_deplibs
17367
 
17368
# Fix the shell variable \$srcfile for the compiler.
17369
fix_srcfile_path=$lt_fix_srcfile_path
17370
 
17371
# Set to "yes" if exported symbols are required.
17372
always_export_symbols=$always_export_symbols
17373
 
17374
# The commands to list exported symbols.
17375
export_symbols_cmds=$lt_export_symbols_cmds
17376
 
17377
# Symbols that should not be listed in the preloaded symbols.
17378
exclude_expsyms=$lt_exclude_expsyms
17379
 
17380
# Symbols that must always be exported.
17381
include_expsyms=$lt_include_expsyms
17382
 
17383
# Commands necessary for linking programs (against libraries) with templates.
17384
prelink_cmds=$lt_prelink_cmds
17385
 
17386
# Specify filename containing input files.
17387
file_list_spec=$lt_file_list_spec
17388
 
17389
# How to hardcode a shared library path into an executable.
17390
hardcode_action=$hardcode_action
17391
 
17392
# ### END LIBTOOL CONFIG
17393
 
17394
_LT_EOF
17395
 
17396
  case $host_os in
17397
  aix3*)
17398
    cat <<\_LT_EOF >> "$cfgfile"
17399
# AIX sometimes has problems with the GCC collect2 program.  For some
17400
# reason, if we set the COLLECT_NAMES environment variable, the problems
17401
# vanish in a puff of smoke.
17402
if test "X${COLLECT_NAMES+set}" != Xset; then
17403
  COLLECT_NAMES=
17404
  export COLLECT_NAMES
17405
fi
17406
_LT_EOF
17407
    ;;
17408
  esac
17409
 
17410
 
17411
ltmain="$ac_aux_dir/ltmain.sh"
17412
 
17413
 
17414
  # We use sed instead of cat because bash on DJGPP gets confused if
17415
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17416
  # text mode, it properly converts lines to CR/LF.  This bash problem
17417
  # is reportedly fixed, but why not run on old versions too?
17418
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17419
    || (rm -f "$cfgfile"; exit 1)
17420
 
17421
  case $xsi_shell in
17422
  yes)
17423
    cat << \_LT_EOF >> "$cfgfile"
17424
 
17425
# func_dirname file append nondir_replacement
17426
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17427
# otherwise set result to NONDIR_REPLACEMENT.
17428
func_dirname ()
17429
{
17430
  case ${1} in
17431
    */*) func_dirname_result="${1%/*}${2}" ;;
17432
    *  ) func_dirname_result="${3}" ;;
17433
  esac
17434
}
17435
 
17436
# func_basename file
17437
func_basename ()
17438
{
17439
  func_basename_result="${1##*/}"
17440
}
17441
 
17442
# func_dirname_and_basename file append nondir_replacement
17443
# perform func_basename and func_dirname in a single function
17444
# call:
17445
#   dirname:  Compute the dirname of FILE.  If nonempty,
17446
#             add APPEND to the result, otherwise set result
17447
#             to NONDIR_REPLACEMENT.
17448
#             value returned in "$func_dirname_result"
17449
#   basename: Compute filename of FILE.
17450
#             value retuned in "$func_basename_result"
17451
# Implementation must be kept synchronized with func_dirname
17452
# and func_basename. For efficiency, we do not delegate to
17453
# those functions but instead duplicate the functionality here.
17454
func_dirname_and_basename ()
17455
{
17456
  case ${1} in
17457
    */*) func_dirname_result="${1%/*}${2}" ;;
17458
    *  ) func_dirname_result="${3}" ;;
17459
  esac
17460
  func_basename_result="${1##*/}"
17461
}
17462
 
17463
# func_stripname prefix suffix name
17464
# strip PREFIX and SUFFIX off of NAME.
17465
# PREFIX and SUFFIX must not contain globbing or regex special
17466
# characters, hashes, percent signs, but SUFFIX may contain a leading
17467
# dot (in which case that matches only a dot).
17468
func_stripname ()
17469
{
17470
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17471
  # positional parameters, so assign one to ordinary parameter first.
17472
  func_stripname_result=${3}
17473
  func_stripname_result=${func_stripname_result#"${1}"}
17474
  func_stripname_result=${func_stripname_result%"${2}"}
17475
}
17476
 
17477
# func_opt_split
17478
func_opt_split ()
17479
{
17480
  func_opt_split_opt=${1%%=*}
17481
  func_opt_split_arg=${1#*=}
17482
}
17483
 
17484
# func_lo2o object
17485
func_lo2o ()
17486
{
17487
  case ${1} in
17488
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17489
    *)    func_lo2o_result=${1} ;;
17490
  esac
17491
}
17492
 
17493
# func_xform libobj-or-source
17494
func_xform ()
17495
{
17496
  func_xform_result=${1%.*}.lo
17497
}
17498
 
17499
# func_arith arithmetic-term...
17500
func_arith ()
17501
{
17502
  func_arith_result=$(( $* ))
17503
}
17504
 
17505
# func_len string
17506
# STRING may not start with a hyphen.
17507
func_len ()
17508
{
17509
  func_len_result=${#1}
17510
}
17511
 
17512
_LT_EOF
17513
    ;;
17514
  *) # Bourne compatible functions.
17515
    cat << \_LT_EOF >> "$cfgfile"
17516
 
17517
# func_dirname file append nondir_replacement
17518
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17519
# otherwise set result to NONDIR_REPLACEMENT.
17520
func_dirname ()
17521
{
17522
  # Extract subdirectory from the argument.
17523
  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17524
  if test "X$func_dirname_result" = "X${1}"; then
17525
    func_dirname_result="${3}"
17526
  else
17527
    func_dirname_result="$func_dirname_result${2}"
17528
  fi
17529
}
17530
 
17531
# func_basename file
17532
func_basename ()
17533
{
17534
  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17535
}
17536
 
17537
 
17538
# func_stripname prefix suffix name
17539
# strip PREFIX and SUFFIX off of NAME.
17540
# PREFIX and SUFFIX must not contain globbing or regex special
17541
# characters, hashes, percent signs, but SUFFIX may contain a leading
17542
# dot (in which case that matches only a dot).
17543
# func_strip_suffix prefix name
17544
func_stripname ()
17545
{
17546
  case ${2} in
17547
    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17548
    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17549
  esac
17550
}
17551
 
17552
# sed scripts:
17553
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17554
my_sed_long_arg='1s/^-[^=]*=//'
17555
 
17556
# func_opt_split
17557
func_opt_split ()
17558
{
17559
  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17560
  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17561
}
17562
 
17563
# func_lo2o object
17564
func_lo2o ()
17565
{
17566
  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17567
}
17568
 
17569
# func_xform libobj-or-source
17570
func_xform ()
17571
{
17572
  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17573
}
17574
 
17575
# func_arith arithmetic-term...
17576
func_arith ()
17577
{
17578
  func_arith_result=`expr "$@"`
17579
}
17580
 
17581
# func_len string
17582
# STRING may not start with a hyphen.
17583
func_len ()
17584
{
17585
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17586
}
17587
 
17588
_LT_EOF
17589
esac
17590
 
17591
case $lt_shell_append in
17592
  yes)
17593
    cat << \_LT_EOF >> "$cfgfile"
17594
 
17595
# func_append var value
17596
# Append VALUE to the end of shell variable VAR.
17597
func_append ()
17598
{
17599
  eval "$1+=\$2"
17600
}
17601
_LT_EOF
17602
    ;;
17603
  *)
17604
    cat << \_LT_EOF >> "$cfgfile"
17605
 
17606
# func_append var value
17607
# Append VALUE to the end of shell variable VAR.
17608
func_append ()
17609
{
17610
  eval "$1=\$$1\$2"
17611
}
17612
 
17613
_LT_EOF
17614
    ;;
17615
  esac
17616
 
17617
 
17618
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17619
    || (rm -f "$cfgfile"; exit 1)
17620
 
17621
  mv -f "$cfgfile" "$ofile" ||
17622
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17623
  chmod +x "$ofile"
17624
 
17625
 
17626
    cat <<_LT_EOF >> "$ofile"
17627
 
17628
# ### BEGIN LIBTOOL TAG CONFIG: GO
17629
 
17630
# The linker used to build libraries.
17631
LD=$lt_LD_GO
17632
 
17633
# How to create reloadable object files.
17634
reload_flag=$lt_reload_flag_GO
17635
reload_cmds=$lt_reload_cmds_GO
17636
 
17637
# Commands used to build an old-style archive.
17638
old_archive_cmds=$lt_old_archive_cmds_GO
17639
 
17640
# A language specific compiler.
17641
CC=$lt_compiler_GO
17642
 
17643
# Is the compiler the GNU compiler?
17644
with_gcc=$GCC_GO
17645
 
17646
# Compiler flag to turn off builtin functions.
17647
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17648
 
17649
# How to pass a linker flag through the compiler.
17650
wl=$lt_lt_prog_compiler_wl_GO
17651
 
17652
# Additional compiler flags for building library objects.
17653
pic_flag=$lt_lt_prog_compiler_pic_GO
17654
 
17655
# Compiler flag to prevent dynamic linking.
17656
link_static_flag=$lt_lt_prog_compiler_static_GO
17657
 
17658
# Does compiler simultaneously support -c and -o options?
17659
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17660
 
17661
# Whether or not to add -lc for building shared libraries.
17662
build_libtool_need_lc=$archive_cmds_need_lc_GO
17663
 
17664
# Whether or not to disallow shared libs when runtime libs are static.
17665
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17666
 
17667
# Compiler flag to allow reflexive dlopens.
17668
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17669
 
17670
# Compiler flag to generate shared objects directly from archives.
17671
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17672
 
17673
# Whether the compiler copes with passing no objects directly.
17674
compiler_needs_object=$lt_compiler_needs_object_GO
17675
 
17676
# Create an old-style archive from a shared archive.
17677
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17678
 
17679
# Create a temporary old-style archive to link instead of a shared archive.
17680
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17681
 
17682
# Commands used to build a shared archive.
17683
archive_cmds=$lt_archive_cmds_GO
17684
archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17685
 
17686
# Commands used to build a loadable module if different from building
17687
# a shared archive.
17688
module_cmds=$lt_module_cmds_GO
17689
module_expsym_cmds=$lt_module_expsym_cmds_GO
17690
 
17691
# Whether we are building with GNU ld or not.
17692
with_gnu_ld=$lt_with_gnu_ld_GO
17693
 
17694
# Flag that allows shared libraries with undefined symbols to be built.
17695
allow_undefined_flag=$lt_allow_undefined_flag_GO
17696
 
17697
# Flag that enforces no undefined symbols.
17698
no_undefined_flag=$lt_no_undefined_flag_GO
17699
 
17700
# Flag to hardcode \$libdir into a binary during linking.
17701
# This must work even if \$libdir does not exist
17702
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17703
 
17704
# If ld is used when linking, flag to hardcode \$libdir into a binary
17705
# during linking.  This must work even if \$libdir does not exist.
17706
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17707
 
17708
# Whether we need a single "-rpath" flag with a separated argument.
17709
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17710
 
17711
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17712
# DIR into the resulting binary.
17713
hardcode_direct=$hardcode_direct_GO
17714
 
17715
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17716
# DIR into the resulting binary and the resulting library dependency is
17717
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17718
# library is relocated.
17719
hardcode_direct_absolute=$hardcode_direct_absolute_GO
17720
 
17721
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17722
# into the resulting binary.
17723
hardcode_minus_L=$hardcode_minus_L_GO
17724
 
17725
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17726
# into the resulting binary.
17727
hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17728
 
17729
# Set to "yes" if building a shared library automatically hardcodes DIR
17730
# into the library and all subsequent libraries and executables linked
17731
# against it.
17732
hardcode_automatic=$hardcode_automatic_GO
17733
 
17734
# Set to yes if linker adds runtime paths of dependent libraries
17735
# to runtime path list.
17736
inherit_rpath=$inherit_rpath_GO
17737
 
17738
# Whether libtool must link a program against all its dependency libraries.
17739
link_all_deplibs=$link_all_deplibs_GO
17740
 
17741
# Fix the shell variable \$srcfile for the compiler.
17742
fix_srcfile_path=$lt_fix_srcfile_path_GO
17743
 
17744
# Set to "yes" if exported symbols are required.
17745
always_export_symbols=$always_export_symbols_GO
17746
 
17747
# The commands to list exported symbols.
17748
export_symbols_cmds=$lt_export_symbols_cmds_GO
17749
 
17750
# Symbols that should not be listed in the preloaded symbols.
17751
exclude_expsyms=$lt_exclude_expsyms_GO
17752
 
17753
# Symbols that must always be exported.
17754
include_expsyms=$lt_include_expsyms_GO
17755
 
17756
# Commands necessary for linking programs (against libraries) with templates.
17757
prelink_cmds=$lt_prelink_cmds_GO
17758
 
17759
# Specify filename containing input files.
17760
file_list_spec=$lt_file_list_spec_GO
17761
 
17762
# How to hardcode a shared library path into an executable.
17763
hardcode_action=$hardcode_action_GO
17764
 
17765
# ### END LIBTOOL TAG CONFIG: GO
17766
_LT_EOF
17767
 
17768
 ;;
17769
    "default":C) if test -n "$CONFIG_FILES"; then
17770
   # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17771
   # that multilib installs will end up installed in the correct place.
17772
   # The testsuite needs it for multilib-aware ABI baseline files.
17773
   # To work around this not being passed down from config-ml.in ->
17774
   # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17775
   # append it here.  Only modify Makefiles that have just been created.
17776
   #
17777
   # Also, get rid of this simulated-VPATH thing that automake does.
17778
   cat > vpsed << \_EOF
17779
s!`test -f '$<' || echo '$(srcdir)/'`!!
17780
_EOF
17781
   for i in $SUBDIRS; do
17782
    case $CONFIG_FILES in
17783
     *${i}/Makefile*)
17784
       #echo "Adding MULTISUBDIR to $i/Makefile"
17785
       sed -f vpsed $i/Makefile > tmp
17786
       grep '^MULTISUBDIR =' Makefile >> tmp
17787
       mv tmp $i/Makefile
17788
       ;;
17789
    esac
17790
   done
17791
   rm vpsed
17792
 fi
17793
 ;;
17794
 
17795
  esac
17796
done # for ac_tag
17797
 
17798
 
17799
as_fn_exit 0
17800
_ACEOF
17801
ac_clean_files=$ac_clean_files_save
17802
 
17803
test $ac_write_fail = 0 ||
17804
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17805
 
17806
 
17807
# configure is writing to config.log, and then calls config.status.
17808
# config.status does its own redirection, appending to config.log.
17809
# Unfortunately, on DOS this fails, as config.log is still kept open
17810
# by configure, so config.status won't be able to write to it; its
17811
# output is simply discarded.  So we exec the FD to /dev/null,
17812
# effectively closing config.log, so it can be properly (re)opened and
17813
# appended to by config.status.  When coming back to configure, we
17814
# need to make the FD available again.
17815
if test "$no_create" != yes; then
17816
  ac_cs_success=:
17817
  ac_config_status_args=
17818
  test "$silent" = yes &&
17819
    ac_config_status_args="$ac_config_status_args --quiet"
17820
  exec 5>/dev/null
17821
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17822
  exec 5>>config.log
17823
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17824
  # would make configure fail if this is the last instruction.
17825
  $ac_cs_success || as_fn_exit $?
17826
fi
17827
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17828
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17829
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17830
fi
17831
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.