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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [libgomp/] [configure] - Blame information for rev 859

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

Line No. Rev Author Line
1 273 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.64 for GNU OpenMP Runtime Library 1.0.
4
#
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7
# Foundation, Inc.
8
#
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## -------------------- ##
12
## M4sh Initialization. ##
13
## -------------------- ##
14
 
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18
  emulate sh
19
  NULLCMD=:
20
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
  # is contrary to our usage.  Disable this feature.
22
  alias -g '${1+"$@"}'='"$@"'
23
  setopt NO_GLOB_SUBST
24
else
25
  case `(set -o) 2>/dev/null` in #(
26
  *posix*) :
27
    set -o posix ;; #(
28
  *) :
29
     ;;
30
esac
31
fi
32
 
33
 
34
as_nl='
35
'
36
export as_nl
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
42
# but without wasting forks for bash or zsh.
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
44
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45
  as_echo='print -r --'
46
  as_echo_n='print -rn --'
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
  as_echo='printf %s\n'
49
  as_echo_n='printf %s'
50
else
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
    as_echo_n='/usr/ucb/echo -n'
54
  else
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
    as_echo_n_body='eval
57
      arg=$1;
58
      case $arg in #(
59
      *"$as_nl"*)
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
      esac;
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
    '
65
    export as_echo_n_body
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
67
  fi
68
  export as_echo_body
69
  as_echo='sh -c $as_echo_body as_echo'
70
fi
71
 
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
74
  PATH_SEPARATOR=:
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
      PATH_SEPARATOR=';'
78
  }
79
fi
80
 
81
 
82
# IFS
83
# We need space, tab and new line, in precisely that order.  Quoting is
84
# there to prevent editors from complaining about space-tab.
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86
# splitting by setting IFS to empty value.)
87
IFS=" ""        $as_nl"
88
 
89
# Find who we are.  Look in the path if we contain no directory separator.
90
case $0 in #((
91
  *[\\/]* ) as_myself=$0 ;;
92
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93
for as_dir in $PATH
94
do
95
  IFS=$as_save_IFS
96
  test -z "$as_dir" && as_dir=.
97
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98
  done
99
IFS=$as_save_IFS
100
 
101
     ;;
102
esac
103
# We did not find ourselves, most probably we were run as `sh COMMAND'
104
# in which case we are not to be found in the path.
105
if test "x$as_myself" = x; then
106
  as_myself=$0
107
fi
108
if test ! -f "$as_myself"; then
109
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110
  exit 1
111
fi
112
 
113
# Unset variables that we do not need and which cause bugs (e.g. in
114
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115
# suppresses any "Segmentation fault" message there.  '((' could
116
# trigger a bug in pdksh 5.2.14.
117
for as_var in BASH_ENV ENV MAIL MAILPATH
118
do eval test x\${$as_var+set} = xset \
119
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120
done
121
PS1='$ '
122
PS2='> '
123
PS4='+ '
124
 
125
# NLS nuisances.
126
LC_ALL=C
127
export LC_ALL
128
LANGUAGE=C
129
export LANGUAGE
130
 
131
# CDPATH.
132
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
 
134
if test "x$CONFIG_SHELL" = x; then
135
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136
  emulate sh
137
  NULLCMD=:
138
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139
  # is contrary to our usage.  Disable this feature.
140
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141
  setopt NO_GLOB_SUBST
142
else
143
  case \`(set -o) 2>/dev/null\` in #(
144
  *posix*) :
145
    set -o posix ;; #(
146
  *) :
147
     ;;
148
esac
149
fi
150
"
151
  as_required="as_fn_return () { (exit \$1); }
152
as_fn_success () { as_fn_return 0; }
153
as_fn_failure () { as_fn_return 1; }
154
as_fn_ret_success () { return 0; }
155
as_fn_ret_failure () { return 1; }
156
 
157
exitcode=0
158
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
 
164
else
165
  exitcode=1; echo positional parameters were not saved.
166
fi
167
test x\$exitcode = x0 || exit 1"
168
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
 
173
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177
    PATH=/empty FPATH=/empty; export PATH FPATH
178
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180
test \$(( 1 + 1 )) = 2 || 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='GNU OpenMP Runtime Library'
558
PACKAGE_TARNAME='libgomp'
559
PACKAGE_VERSION='1.0'
560
PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
561
PACKAGE_BUGREPORT=''
562
PACKAGE_URL='http://www.gnu.org/software/libgomp/'
563
 
564
# Factoring default headers for most tests.
565
ac_includes_default="\
566
#include 
567
#ifdef HAVE_SYS_TYPES_H
568
# include 
569
#endif
570
#ifdef HAVE_SYS_STAT_H
571
# include 
572
#endif
573
#ifdef STDC_HEADERS
574
# include 
575
# include 
576
#else
577
# ifdef HAVE_STDLIB_H
578
#  include 
579
# endif
580
#endif
581
#ifdef HAVE_STRING_H
582
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583
#  include 
584
# endif
585
# include 
586
#endif
587
#ifdef HAVE_STRINGS_H
588
# include 
589
#endif
590
#ifdef HAVE_INTTYPES_H
591
# include 
592
#endif
593
#ifdef HAVE_STDINT_H
594
# include 
595
#endif
596
#ifdef HAVE_UNISTD_H
597
# include 
598
#endif"
599
 
600
ac_subst_vars='am__EXEEXT_FALSE
601
am__EXEEXT_TRUE
602
LTLIBOBJS
603
LIBOBJS
604
OMP_NEST_LOCK_25_KIND
605
OMP_LOCK_25_KIND
606
OMP_NEST_LOCK_25_ALIGN
607
OMP_NEST_LOCK_25_SIZE
608
OMP_LOCK_25_ALIGN
609
OMP_LOCK_25_SIZE
610
OMP_NEST_LOCK_KIND
611
OMP_LOCK_KIND
612
OMP_NEST_LOCK_ALIGN
613
OMP_NEST_LOCK_SIZE
614
OMP_LOCK_ALIGN
615
OMP_LOCK_SIZE
616
USE_FORTRAN_FALSE
617
USE_FORTRAN_TRUE
618
link_gomp
619
XLDFLAGS
620
XCFLAGS
621
config_path
622
LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
623
LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
624
OPT_LDFLAGS
625
SECTION_LDFLAGS
626
libtool_VERSION
627
ac_ct_FC
628
FCFLAGS
629
FC
630
MAINT
631
MAINTAINER_MODE_FALSE
632
MAINTAINER_MODE_TRUE
633
enable_static
634
enable_shared
635
CPP
636
OTOOL64
637
OTOOL
638
LIPO
639
NMEDIT
640
DSYMUTIL
641
OBJDUMP
642
LN_S
643
NM
644
ac_ct_DUMPBIN
645
DUMPBIN
646
LD
647
FGREP
648
EGREP
649
GREP
650
SED
651
LIBTOOL
652
BUILD_INFO_FALSE
653
BUILD_INFO_TRUE
654
PERL
655
RANLIB
656
AR
657
am__fastdepCC_FALSE
658
am__fastdepCC_TRUE
659
CCDEPMODE
660
AMDEPBACKSLASH
661
AMDEP_FALSE
662
AMDEP_TRUE
663
am__quote
664
am__include
665
DEPDIR
666
OBJEXT
667
EXEEXT
668
ac_ct_CC
669
CPPFLAGS
670
LDFLAGS
671
CFLAGS
672
CC
673
toolexeclibdir
674
toolexecdir
675
multi_basedir
676
am__untar
677
am__tar
678
AMTAR
679
am__leading_dot
680
SET_MAKE
681
AWK
682
mkdir_p
683
MKDIR_P
684
INSTALL_STRIP_PROGRAM
685
STRIP
686
install_sh
687
MAKEINFO
688
AUTOHEADER
689
AUTOMAKE
690
AUTOCONF
691
ACLOCAL
692
VERSION
693
PACKAGE
694
CYGPATH_W
695
am__isrc
696
INSTALL_DATA
697
INSTALL_SCRIPT
698
INSTALL_PROGRAM
699
target_os
700
target_vendor
701
target_cpu
702
target
703
host_os
704
host_vendor
705
host_cpu
706
host
707
build_os
708
build_vendor
709
build_cpu
710
build
711
GENINSRC_FALSE
712
GENINSRC_TRUE
713
target_alias
714
host_alias
715
build_alias
716
LIBS
717
ECHO_T
718
ECHO_N
719
ECHO_C
720
DEFS
721
mandir
722
localedir
723
libdir
724
psdir
725
pdfdir
726
dvidir
727
htmldir
728
infodir
729
docdir
730
oldincludedir
731
includedir
732
localstatedir
733
sharedstatedir
734
sysconfdir
735
datadir
736
datarootdir
737
libexecdir
738
sbindir
739
bindir
740
program_transform_name
741
prefix
742
exec_prefix
743
PACKAGE_URL
744
PACKAGE_BUGREPORT
745
PACKAGE_STRING
746
PACKAGE_VERSION
747
PACKAGE_TARNAME
748
PACKAGE_NAME
749
PATH_SEPARATOR
750
SHELL'
751
ac_subst_files=''
752
ac_user_opts='
753
enable_option_checking
754
enable_version_specific_runtime_libs
755
enable_generated_files_in_srcdir
756
enable_multilib
757
enable_dependency_tracking
758
enable_shared
759
enable_static
760
with_pic
761
enable_fast_install
762
with_gnu_ld
763
enable_libtool_lock
764
enable_maintainer_mode
765
enable_linux_futex
766
enable_tls
767
enable_symvers
768
'
769
      ac_precious_vars='build_alias
770
host_alias
771
target_alias
772
CPP
773
CPPFLAGS
774
FC
775
FCFLAGS
776
LDFLAGS
777
LIBS'
778
 
779
 
780
# Initialize some variables set by options.
781
ac_init_help=
782
ac_init_version=false
783
ac_unrecognized_opts=
784
ac_unrecognized_sep=
785
# The variables have the same names as the options, with
786
# dashes changed to underlines.
787
cache_file=/dev/null
788
exec_prefix=NONE
789
no_create=
790
no_recursion=
791
prefix=NONE
792
program_prefix=NONE
793
program_suffix=NONE
794
program_transform_name=s,x,x,
795
silent=
796
site=
797
srcdir=
798
verbose=
799
x_includes=NONE
800
x_libraries=NONE
801
 
802
# Installation directory options.
803
# These are left unexpanded so users can "make install exec_prefix=/foo"
804
# and all the variables that are supposed to be based on exec_prefix
805
# by default will actually change.
806
# Use braces instead of parens because sh, perl, etc. also accept them.
807
# (The list follows the same order as the GNU Coding Standards.)
808
bindir='${exec_prefix}/bin'
809
sbindir='${exec_prefix}/sbin'
810
libexecdir='${exec_prefix}/libexec'
811
datarootdir='${prefix}/share'
812
datadir='${datarootdir}'
813
sysconfdir='${prefix}/etc'
814
sharedstatedir='${prefix}/com'
815
localstatedir='${prefix}/var'
816
includedir='${prefix}/include'
817
oldincludedir='/usr/include'
818
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819
infodir='${datarootdir}/info'
820
htmldir='${docdir}'
821
dvidir='${docdir}'
822
pdfdir='${docdir}'
823
psdir='${docdir}'
824
libdir='${exec_prefix}/lib'
825
localedir='${datarootdir}/locale'
826
mandir='${datarootdir}/man'
827
 
828
ac_prev=
829
ac_dashdash=
830
for ac_option
831
do
832
  # If the previous option needs an argument, assign it.
833
  if test -n "$ac_prev"; then
834
    eval $ac_prev=\$ac_option
835
    ac_prev=
836
    continue
837
  fi
838
 
839
  case $ac_option in
840
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841
  *)    ac_optarg=yes ;;
842
  esac
843
 
844
  # Accept the important Cygnus configure options, so we can diagnose typos.
845
 
846
  case $ac_dashdash$ac_option in
847
  --)
848
    ac_dashdash=yes ;;
849
 
850
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
851
    ac_prev=bindir ;;
852
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853
    bindir=$ac_optarg ;;
854
 
855
  -build | --build | --buil | --bui | --bu)
856
    ac_prev=build_alias ;;
857
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858
    build_alias=$ac_optarg ;;
859
 
860
  -cache-file | --cache-file | --cache-fil | --cache-fi \
861
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862
    ac_prev=cache_file ;;
863
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865
    cache_file=$ac_optarg ;;
866
 
867
  --config-cache | -C)
868
    cache_file=config.cache ;;
869
 
870
  -datadir | --datadir | --datadi | --datad)
871
    ac_prev=datadir ;;
872
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
873
    datadir=$ac_optarg ;;
874
 
875
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876
  | --dataroo | --dataro | --datar)
877
    ac_prev=datarootdir ;;
878
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880
    datarootdir=$ac_optarg ;;
881
 
882
  -disable-* | --disable-*)
883
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884
    # Reject names that are not valid shell variable names.
885
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886
      as_fn_error "invalid feature name: $ac_useropt"
887
    ac_useropt_orig=$ac_useropt
888
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889
    case $ac_user_opts in
890
      *"
891
"enable_$ac_useropt"
892
"*) ;;
893
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894
         ac_unrecognized_sep=', ';;
895
    esac
896
    eval enable_$ac_useropt=no ;;
897
 
898
  -docdir | --docdir | --docdi | --doc | --do)
899
    ac_prev=docdir ;;
900
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901
    docdir=$ac_optarg ;;
902
 
903
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904
    ac_prev=dvidir ;;
905
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906
    dvidir=$ac_optarg ;;
907
 
908
  -enable-* | --enable-*)
909
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910
    # Reject names that are not valid shell variable names.
911
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912
      as_fn_error "invalid feature name: $ac_useropt"
913
    ac_useropt_orig=$ac_useropt
914
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915
    case $ac_user_opts in
916
      *"
917
"enable_$ac_useropt"
918
"*) ;;
919
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920
         ac_unrecognized_sep=', ';;
921
    esac
922
    eval enable_$ac_useropt=\$ac_optarg ;;
923
 
924
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926
  | --exec | --exe | --ex)
927
    ac_prev=exec_prefix ;;
928
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930
  | --exec=* | --exe=* | --ex=*)
931
    exec_prefix=$ac_optarg ;;
932
 
933
  -gas | --gas | --ga | --g)
934
    # Obsolete; use --with-gas.
935
    with_gas=yes ;;
936
 
937
  -help | --help | --hel | --he | -h)
938
    ac_init_help=long ;;
939
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940
    ac_init_help=recursive ;;
941
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942
    ac_init_help=short ;;
943
 
944
  -host | --host | --hos | --ho)
945
    ac_prev=host_alias ;;
946
  -host=* | --host=* | --hos=* | --ho=*)
947
    host_alias=$ac_optarg ;;
948
 
949
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950
    ac_prev=htmldir ;;
951
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952
  | --ht=*)
953
    htmldir=$ac_optarg ;;
954
 
955
  -includedir | --includedir | --includedi | --included | --include \
956
  | --includ | --inclu | --incl | --inc)
957
    ac_prev=includedir ;;
958
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959
  | --includ=* | --inclu=* | --incl=* | --inc=*)
960
    includedir=$ac_optarg ;;
961
 
962
  -infodir | --infodir | --infodi | --infod | --info | --inf)
963
    ac_prev=infodir ;;
964
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965
    infodir=$ac_optarg ;;
966
 
967
  -libdir | --libdir | --libdi | --libd)
968
    ac_prev=libdir ;;
969
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
970
    libdir=$ac_optarg ;;
971
 
972
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973
  | --libexe | --libex | --libe)
974
    ac_prev=libexecdir ;;
975
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976
  | --libexe=* | --libex=* | --libe=*)
977
    libexecdir=$ac_optarg ;;
978
 
979
  -localedir | --localedir | --localedi | --localed | --locale)
980
    ac_prev=localedir ;;
981
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982
    localedir=$ac_optarg ;;
983
 
984
  -localstatedir | --localstatedir | --localstatedi | --localstated \
985
  | --localstate | --localstat | --localsta | --localst | --locals)
986
    ac_prev=localstatedir ;;
987
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
988
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
989
    localstatedir=$ac_optarg ;;
990
 
991
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992
    ac_prev=mandir ;;
993
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994
    mandir=$ac_optarg ;;
995
 
996
  -nfp | --nfp | --nf)
997
    # Obsolete; use --without-fp.
998
    with_fp=no ;;
999
 
1000
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001
  | --no-cr | --no-c | -n)
1002
    no_create=yes ;;
1003
 
1004
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006
    no_recursion=yes ;;
1007
 
1008
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010
  | --oldin | --oldi | --old | --ol | --o)
1011
    ac_prev=oldincludedir ;;
1012
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015
    oldincludedir=$ac_optarg ;;
1016
 
1017
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018
    ac_prev=prefix ;;
1019
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020
    prefix=$ac_optarg ;;
1021
 
1022
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023
  | --program-pre | --program-pr | --program-p)
1024
    ac_prev=program_prefix ;;
1025
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027
    program_prefix=$ac_optarg ;;
1028
 
1029
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030
  | --program-suf | --program-su | --program-s)
1031
    ac_prev=program_suffix ;;
1032
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034
    program_suffix=$ac_optarg ;;
1035
 
1036
  -program-transform-name | --program-transform-name \
1037
  | --program-transform-nam | --program-transform-na \
1038
  | --program-transform-n | --program-transform- \
1039
  | --program-transform | --program-transfor \
1040
  | --program-transfo | --program-transf \
1041
  | --program-trans | --program-tran \
1042
  | --progr-tra | --program-tr | --program-t)
1043
    ac_prev=program_transform_name ;;
1044
  -program-transform-name=* | --program-transform-name=* \
1045
  | --program-transform-nam=* | --program-transform-na=* \
1046
  | --program-transform-n=* | --program-transform-=* \
1047
  | --program-transform=* | --program-transfor=* \
1048
  | --program-transfo=* | --program-transf=* \
1049
  | --program-trans=* | --program-tran=* \
1050
  | --progr-tra=* | --program-tr=* | --program-t=*)
1051
    program_transform_name=$ac_optarg ;;
1052
 
1053
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054
    ac_prev=pdfdir ;;
1055
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056
    pdfdir=$ac_optarg ;;
1057
 
1058
  -psdir | --psdir | --psdi | --psd | --ps)
1059
    ac_prev=psdir ;;
1060
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061
    psdir=$ac_optarg ;;
1062
 
1063
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064
  | -silent | --silent | --silen | --sile | --sil)
1065
    silent=yes ;;
1066
 
1067
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068
    ac_prev=sbindir ;;
1069
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070
  | --sbi=* | --sb=*)
1071
    sbindir=$ac_optarg ;;
1072
 
1073
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075
  | --sharedst | --shareds | --shared | --share | --shar \
1076
  | --sha | --sh)
1077
    ac_prev=sharedstatedir ;;
1078
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081
  | --sha=* | --sh=*)
1082
    sharedstatedir=$ac_optarg ;;
1083
 
1084
  -site | --site | --sit)
1085
    ac_prev=site ;;
1086
  -site=* | --site=* | --sit=*)
1087
    site=$ac_optarg ;;
1088
 
1089
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090
    ac_prev=srcdir ;;
1091
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092
    srcdir=$ac_optarg ;;
1093
 
1094
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095
  | --syscon | --sysco | --sysc | --sys | --sy)
1096
    ac_prev=sysconfdir ;;
1097
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099
    sysconfdir=$ac_optarg ;;
1100
 
1101
  -target | --target | --targe | --targ | --tar | --ta | --t)
1102
    ac_prev=target_alias ;;
1103
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104
    target_alias=$ac_optarg ;;
1105
 
1106
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107
    verbose=yes ;;
1108
 
1109
  -version | --version | --versio | --versi | --vers | -V)
1110
    ac_init_version=: ;;
1111
 
1112
  -with-* | --with-*)
1113
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1114
    # Reject names that are not valid shell variable names.
1115
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116
      as_fn_error "invalid package name: $ac_useropt"
1117
    ac_useropt_orig=$ac_useropt
1118
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119
    case $ac_user_opts in
1120
      *"
1121
"with_$ac_useropt"
1122
"*) ;;
1123
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124
         ac_unrecognized_sep=', ';;
1125
    esac
1126
    eval with_$ac_useropt=\$ac_optarg ;;
1127
 
1128
  -without-* | --without-*)
1129
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130
    # Reject names that are not valid shell variable names.
1131
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132
      as_fn_error "invalid package name: $ac_useropt"
1133
    ac_useropt_orig=$ac_useropt
1134
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135
    case $ac_user_opts in
1136
      *"
1137
"with_$ac_useropt"
1138
"*) ;;
1139
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140
         ac_unrecognized_sep=', ';;
1141
    esac
1142
    eval with_$ac_useropt=no ;;
1143
 
1144
  --x)
1145
    # Obsolete; use --with-x.
1146
    with_x=yes ;;
1147
 
1148
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149
  | --x-incl | --x-inc | --x-in | --x-i)
1150
    ac_prev=x_includes ;;
1151
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153
    x_includes=$ac_optarg ;;
1154
 
1155
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157
    ac_prev=x_libraries ;;
1158
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160
    x_libraries=$ac_optarg ;;
1161
 
1162
  -*) as_fn_error "unrecognized option: \`$ac_option'
1163
Try \`$0 --help' for more information."
1164
    ;;
1165
 
1166
  *=*)
1167
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1168
    # Reject names that are not valid shell variable names.
1169
    case $ac_envvar in #(
1170
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1171
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1172
    esac
1173
    eval $ac_envvar=\$ac_optarg
1174
    export $ac_envvar ;;
1175
 
1176
  *)
1177
    # FIXME: should be removed in autoconf 3.0.
1178
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1182
    ;;
1183
 
1184
  esac
1185
done
1186
 
1187
if test -n "$ac_prev"; then
1188
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189
  as_fn_error "missing argument to $ac_option"
1190
fi
1191
 
1192
if test -n "$ac_unrecognized_opts"; then
1193
  case $enable_option_checking in
1194
    no) ;;
1195
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1196
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1197
  esac
1198
fi
1199
 
1200
# Check all directory arguments for consistency.
1201
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202
                datadir sysconfdir sharedstatedir localstatedir includedir \
1203
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204
                libdir localedir mandir
1205
do
1206
  eval ac_val=\$$ac_var
1207
  # Remove trailing slashes.
1208
  case $ac_val in
1209
    */ )
1210
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211
      eval $ac_var=\$ac_val;;
1212
  esac
1213
  # Be sure to have absolute directory names.
1214
  case $ac_val in
1215
    [\\/$]* | ?:[\\/]* )  continue;;
1216
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217
  esac
1218
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1219
done
1220
 
1221
# There might be people who depend on the old broken behavior: `$host'
1222
# used to hold the argument of --host etc.
1223
# FIXME: To remove some day.
1224
build=$build_alias
1225
host=$host_alias
1226
target=$target_alias
1227
 
1228
# FIXME: To remove some day.
1229
if test "x$host_alias" != x; then
1230
  if test "x$build_alias" = x; then
1231
    cross_compiling=maybe
1232
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1233
    If a cross compiler is detected then cross compile mode will be used." >&2
1234
  elif test "x$build_alias" != "x$host_alias"; then
1235
    cross_compiling=yes
1236
  fi
1237
fi
1238
 
1239
ac_tool_prefix=
1240
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
 
1242
test "$silent" = yes && exec 6>/dev/null
1243
 
1244
 
1245
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246
ac_ls_di=`ls -di .` &&
1247
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248
  as_fn_error "working directory cannot be determined"
1249
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250
  as_fn_error "pwd does not report name of working directory"
1251
 
1252
 
1253
# Find the source files, if location was not specified.
1254
if test -z "$srcdir"; then
1255
  ac_srcdir_defaulted=yes
1256
  # Try the directory containing this script, then the parent directory.
1257
  ac_confdir=`$as_dirname -- "$as_myself" ||
1258
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259
         X"$as_myself" : 'X\(//\)[^/]' \| \
1260
         X"$as_myself" : 'X\(//\)$' \| \
1261
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262
$as_echo X"$as_myself" |
1263
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264
            s//\1/
1265
            q
1266
          }
1267
          /^X\(\/\/\)[^/].*/{
1268
            s//\1/
1269
            q
1270
          }
1271
          /^X\(\/\/\)$/{
1272
            s//\1/
1273
            q
1274
          }
1275
          /^X\(\/\).*/{
1276
            s//\1/
1277
            q
1278
          }
1279
          s/.*/./; q'`
1280
  srcdir=$ac_confdir
1281
  if test ! -r "$srcdir/$ac_unique_file"; then
1282
    srcdir=..
1283
  fi
1284
else
1285
  ac_srcdir_defaulted=no
1286
fi
1287
if test ! -r "$srcdir/$ac_unique_file"; then
1288
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1290
fi
1291
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292
ac_abs_confdir=`(
1293
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1294
        pwd)`
1295
# When building in place, set srcdir=.
1296
if test "$ac_abs_confdir" = "$ac_pwd"; then
1297
  srcdir=.
1298
fi
1299
# Remove unnecessary trailing slashes from srcdir.
1300
# Double slashes in file names in object file debugging info
1301
# mess up M-x gdb in Emacs.
1302
case $srcdir in
1303
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304
esac
1305
for ac_var in $ac_precious_vars; do
1306
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307
  eval ac_env_${ac_var}_value=\$${ac_var}
1308
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310
done
1311
 
1312
#
1313
# Report the --help message.
1314
#
1315
if test "$ac_init_help" = "long"; then
1316
  # Omit some internal or obsolete options to make the list less imposing.
1317
  # This message is too long to be a string in the A/UX 3.1 sh.
1318
  cat <<_ACEOF
1319
\`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
1320
 
1321
Usage: $0 [OPTION]... [VAR=VALUE]...
1322
 
1323
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324
VAR=VALUE.  See below for descriptions of some of the useful variables.
1325
 
1326
Defaults for the options are specified in brackets.
1327
 
1328
Configuration:
1329
  -h, --help              display this help and exit
1330
      --help=short        display options specific to this package
1331
      --help=recursive    display the short help of all the included packages
1332
  -V, --version           display version information and exit
1333
  -q, --quiet, --silent   do not print \`checking...' messages
1334
      --cache-file=FILE   cache test results in FILE [disabled]
1335
  -C, --config-cache      alias for \`--cache-file=config.cache'
1336
  -n, --no-create         do not create output files
1337
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1338
 
1339
Installation directories:
1340
  --prefix=PREFIX         install architecture-independent files in PREFIX
1341
                          [$ac_default_prefix]
1342
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1343
                          [PREFIX]
1344
 
1345
By default, \`make install' will install all the files in
1346
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1347
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348
for instance \`--prefix=\$HOME'.
1349
 
1350
For better control, use the options below.
1351
 
1352
Fine tuning of the installation directories:
1353
  --bindir=DIR            user executables [EPREFIX/bin]
1354
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1355
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1356
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1357
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1358
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1359
  --libdir=DIR            object code libraries [EPREFIX/lib]
1360
  --includedir=DIR        C header files [PREFIX/include]
1361
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1362
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1363
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1364
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1365
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1366
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1367
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libgomp]
1368
  --htmldir=DIR           html documentation [DOCDIR]
1369
  --dvidir=DIR            dvi documentation [DOCDIR]
1370
  --pdfdir=DIR            pdf documentation [DOCDIR]
1371
  --psdir=DIR             ps documentation [DOCDIR]
1372
_ACEOF
1373
 
1374
  cat <<\_ACEOF
1375
 
1376
Program names:
1377
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1378
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1379
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1380
 
1381
System types:
1382
  --build=BUILD     configure for building on BUILD [guessed]
1383
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1384
  --target=TARGET   configure for building compilers for TARGET [HOST]
1385
_ACEOF
1386
fi
1387
 
1388
if test -n "$ac_init_help"; then
1389
  case $ac_init_help in
1390
     short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
1391
   esac
1392
  cat <<\_ACEOF
1393
 
1394
Optional Features:
1395
  --disable-option-checking  ignore unrecognized --enable/--with options
1396
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1397
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1398
  --enable-version-specific-runtime-libs
1399
                          Specify that runtime libraries should be installed
1400
                          in a compiler-specific directory [default=no]
1401
  --enable-generated-files-in-srcdir
1402
                          put copies of generated files in source dir intended
1403
                          for creating source tarballs for users without
1404
                          texinfo bison or flex. [default=no]
1405
  --enable-multilib       build many library versions (default)
1406
  --disable-dependency-tracking  speeds up one-time build
1407
  --enable-dependency-tracking   do not reject slow dependency extractors
1408
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1409
  --enable-static[=PKGS]  build static libraries [default=yes]
1410
  --enable-fast-install[=PKGS]
1411
                          optimize for fast installation [default=yes]
1412
  --disable-libtool-lock  avoid locking (might break parallel builds)
1413
  --enable-maintainer-mode  enable make rules and dependencies not useful
1414
                          (and sometimes confusing) to the casual installer
1415
  --enable-linux-futex    use the Linux futex system call [default=default]
1416
  --enable-tls            Use thread-local storage [default=yes]
1417
  --enable-symvers=STYLE  enables symbol versioning of the shared library
1418
                          [default=yes]
1419
 
1420
Optional Packages:
1421
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1422
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1423
  --with-pic              try to use only PIC/non-PIC objects [default=use
1424
                          both]
1425
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1426
 
1427
Some influential environment variables:
1428
  CC          C compiler command
1429
  CFLAGS      C compiler flags
1430
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1431
              nonstandard directory 
1432
  LIBS        libraries to pass to the linker, e.g. -l
1433
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1434
              you have headers in a nonstandard directory 
1435
  CPP         C preprocessor
1436
  FC          Fortran compiler command
1437
  FCFLAGS     Fortran compiler flags
1438
 
1439
Use these variables to override the choices made by `configure' or to help
1440
it to find libraries and programs with nonstandard names/locations.
1441
 
1442
Report bugs to the package provider.
1443
GNU OpenMP Runtime Library home page: .
1444
General help using GNU software: .
1445
_ACEOF
1446
ac_status=$?
1447
fi
1448
 
1449
if test "$ac_init_help" = "recursive"; then
1450
  # If there are subdirs, report their specific --help.
1451
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1452
    test -d "$ac_dir" ||
1453
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1454
      continue
1455
    ac_builddir=.
1456
 
1457
case "$ac_dir" in
1458
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459
*)
1460
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461
  # A ".." for each directory in $ac_dir_suffix.
1462
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463
  case $ac_top_builddir_sub in
1464
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466
  esac ;;
1467
esac
1468
ac_abs_top_builddir=$ac_pwd
1469
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470
# for backward compatibility:
1471
ac_top_builddir=$ac_top_build_prefix
1472
 
1473
case $srcdir in
1474
  .)  # We are building in place.
1475
    ac_srcdir=.
1476
    ac_top_srcdir=$ac_top_builddir_sub
1477
    ac_abs_top_srcdir=$ac_pwd ;;
1478
  [\\/]* | ?:[\\/]* )  # Absolute name.
1479
    ac_srcdir=$srcdir$ac_dir_suffix;
1480
    ac_top_srcdir=$srcdir
1481
    ac_abs_top_srcdir=$srcdir ;;
1482
  *) # Relative name.
1483
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1485
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486
esac
1487
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1488
 
1489
    cd "$ac_dir" || { ac_status=$?; continue; }
1490
    # Check for guested configure.
1491
    if test -f "$ac_srcdir/configure.gnu"; then
1492
      echo &&
1493
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494
    elif test -f "$ac_srcdir/configure"; then
1495
      echo &&
1496
      $SHELL "$ac_srcdir/configure" --help=recursive
1497
    else
1498
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499
    fi || ac_status=$?
1500
    cd "$ac_pwd" || { ac_status=$?; break; }
1501
  done
1502
fi
1503
 
1504
test -n "$ac_init_help" && exit $ac_status
1505
if $ac_init_version; then
1506
  cat <<\_ACEOF
1507
GNU OpenMP Runtime Library configure 1.0
1508
generated by GNU Autoconf 2.64
1509
 
1510
Copyright (C) 2009 Free Software Foundation, Inc.
1511
This configure script is free software; the Free Software Foundation
1512
gives unlimited permission to copy, distribute and modify it.
1513
_ACEOF
1514
  exit
1515
fi
1516
 
1517
## ------------------------ ##
1518
## Autoconf initialization. ##
1519
## ------------------------ ##
1520
 
1521
# ac_fn_c_try_compile LINENO
1522
# --------------------------
1523
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1524
ac_fn_c_try_compile ()
1525
{
1526
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527
  rm -f conftest.$ac_objext
1528
  if { { ac_try="$ac_compile"
1529
case "(($ac_try" in
1530
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531
  *) ac_try_echo=$ac_try;;
1532
esac
1533
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534
$as_echo "$ac_try_echo"; } >&5
1535
  (eval "$ac_compile") 2>conftest.err
1536
  ac_status=$?
1537
  if test -s conftest.err; then
1538
    grep -v '^ *+' conftest.err >conftest.er1
1539
    cat conftest.er1 >&5
1540
    mv -f conftest.er1 conftest.err
1541
  fi
1542
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543
  test $ac_status = 0; } && {
1544
         test -z "$ac_c_werror_flag" ||
1545
         test ! -s conftest.err
1546
       } && test -s conftest.$ac_objext; then :
1547
  ac_retval=0
1548
else
1549
  $as_echo "$as_me: failed program was:" >&5
1550
sed 's/^/| /' conftest.$ac_ext >&5
1551
 
1552
        ac_retval=1
1553
fi
1554
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1555
  return $ac_retval
1556
 
1557
} # ac_fn_c_try_compile
1558
 
1559
# ac_fn_c_try_link LINENO
1560
# -----------------------
1561
# Try to link conftest.$ac_ext, and return whether this succeeded.
1562
ac_fn_c_try_link ()
1563
{
1564
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565
  rm -f conftest.$ac_objext conftest$ac_exeext
1566
  if { { ac_try="$ac_link"
1567
case "(($ac_try" in
1568
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569
  *) ac_try_echo=$ac_try;;
1570
esac
1571
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572
$as_echo "$ac_try_echo"; } >&5
1573
  (eval "$ac_link") 2>conftest.err
1574
  ac_status=$?
1575
  if test -s conftest.err; then
1576
    grep -v '^ *+' conftest.err >conftest.er1
1577
    cat conftest.er1 >&5
1578
    mv -f conftest.er1 conftest.err
1579
  fi
1580
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581
  test $ac_status = 0; } && {
1582
         test -z "$ac_c_werror_flag" ||
1583
         test ! -s conftest.err
1584
       } && test -s conftest$ac_exeext && {
1585
         test "$cross_compiling" = yes ||
1586
         $as_test_x conftest$ac_exeext
1587
       }; then :
1588
  ac_retval=0
1589
else
1590
  $as_echo "$as_me: failed program was:" >&5
1591
sed 's/^/| /' conftest.$ac_ext >&5
1592
 
1593
        ac_retval=1
1594
fi
1595
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1596
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1597
  # interfere with the next link command; also delete a directory that is
1598
  # left behind by Apple's compiler.  We do this before executing the actions.
1599
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1600
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1601
  return $ac_retval
1602
 
1603
} # ac_fn_c_try_link
1604
 
1605
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1606
# -------------------------------------------------------
1607
# Tests whether HEADER exists and can be compiled using the include files in
1608
# INCLUDES, setting the cache variable VAR accordingly.
1609
ac_fn_c_check_header_compile ()
1610
{
1611
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613
$as_echo_n "checking for $2... " >&6; }
1614
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1615
  $as_echo_n "(cached) " >&6
1616
else
1617
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618
/* end confdefs.h.  */
1619
$4
1620
#include <$2>
1621
_ACEOF
1622
if ac_fn_c_try_compile "$LINENO"; then :
1623
  eval "$3=yes"
1624
else
1625
  eval "$3=no"
1626
fi
1627
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628
fi
1629
eval ac_res=\$$3
1630
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631
$as_echo "$ac_res" >&6; }
1632
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1633
 
1634
} # ac_fn_c_check_header_compile
1635
 
1636
# ac_fn_c_try_cpp LINENO
1637
# ----------------------
1638
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639
ac_fn_c_try_cpp ()
1640
{
1641
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1643
case "(($ac_try" in
1644
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645
  *) ac_try_echo=$ac_try;;
1646
esac
1647
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648
$as_echo "$ac_try_echo"; } >&5
1649
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1650
  ac_status=$?
1651
  if test -s conftest.err; then
1652
    grep -v '^ *+' conftest.err >conftest.er1
1653
    cat conftest.er1 >&5
1654
    mv -f conftest.er1 conftest.err
1655
  fi
1656
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657
  test $ac_status = 0; } >/dev/null && {
1658
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1659
         test ! -s conftest.err
1660
       }; then :
1661
  ac_retval=0
1662
else
1663
  $as_echo "$as_me: failed program was:" >&5
1664
sed 's/^/| /' conftest.$ac_ext >&5
1665
 
1666
    ac_retval=1
1667
fi
1668
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669
  return $ac_retval
1670
 
1671
} # ac_fn_c_try_cpp
1672
 
1673
# ac_fn_c_try_run LINENO
1674
# ----------------------
1675
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1676
# that executables *can* be run.
1677
ac_fn_c_try_run ()
1678
{
1679
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680
  if { { ac_try="$ac_link"
1681
case "(($ac_try" in
1682
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683
  *) ac_try_echo=$ac_try;;
1684
esac
1685
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686
$as_echo "$ac_try_echo"; } >&5
1687
  (eval "$ac_link") 2>&5
1688
  ac_status=$?
1689
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691
  { { case "(($ac_try" in
1692
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693
  *) ac_try_echo=$ac_try;;
1694
esac
1695
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696
$as_echo "$ac_try_echo"; } >&5
1697
  (eval "$ac_try") 2>&5
1698
  ac_status=$?
1699
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700
  test $ac_status = 0; }; }; then :
1701
  ac_retval=0
1702
else
1703
  $as_echo "$as_me: program exited with status $ac_status" >&5
1704
       $as_echo "$as_me: failed program was:" >&5
1705
sed 's/^/| /' conftest.$ac_ext >&5
1706
 
1707
       ac_retval=$ac_status
1708
fi
1709
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1711
  return $ac_retval
1712
 
1713
} # ac_fn_c_try_run
1714
 
1715
# ac_fn_c_check_func LINENO FUNC VAR
1716
# ----------------------------------
1717
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1718
ac_fn_c_check_func ()
1719
{
1720
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722
$as_echo_n "checking for $2... " >&6; }
1723
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1724
  $as_echo_n "(cached) " >&6
1725
else
1726
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727
/* end confdefs.h.  */
1728
/* Define $2 to an innocuous variant, in case  declares $2.
1729
   For example, HP-UX 11i  declares gettimeofday.  */
1730
#define $2 innocuous_$2
1731
 
1732
/* System header to define __stub macros and hopefully few prototypes,
1733
    which can conflict with char $2 (); below.
1734
    Prefer  to  if __STDC__ is defined, since
1735
     exists even on freestanding compilers.  */
1736
 
1737
#ifdef __STDC__
1738
# include 
1739
#else
1740
# include 
1741
#endif
1742
 
1743
#undef $2
1744
 
1745
/* Override any GCC internal prototype to avoid an error.
1746
   Use char because int might match the return type of a GCC
1747
   builtin and then its argument prototype would still apply.  */
1748
#ifdef __cplusplus
1749
extern "C"
1750
#endif
1751
char $2 ();
1752
/* The GNU C library defines this for functions which it implements
1753
    to always fail with ENOSYS.  Some functions are actually named
1754
    something starting with __ and the normal name is an alias.  */
1755
#if defined __stub_$2 || defined __stub___$2
1756
choke me
1757
#endif
1758
 
1759
int
1760
main ()
1761
{
1762
return $2 ();
1763
  ;
1764
  return 0;
1765
}
1766
_ACEOF
1767
if ac_fn_c_try_link "$LINENO"; then :
1768
  eval "$3=yes"
1769
else
1770
  eval "$3=no"
1771
fi
1772
rm -f core conftest.err conftest.$ac_objext \
1773
    conftest$ac_exeext conftest.$ac_ext
1774
fi
1775
eval ac_res=\$$3
1776
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777
$as_echo "$ac_res" >&6; }
1778
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779
 
1780
} # ac_fn_c_check_func
1781
 
1782
# ac_fn_fc_try_compile LINENO
1783
# ---------------------------
1784
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1785
ac_fn_fc_try_compile ()
1786
{
1787
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788
  rm -f conftest.$ac_objext
1789
  if { { ac_try="$ac_compile"
1790
case "(($ac_try" in
1791
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792
  *) ac_try_echo=$ac_try;;
1793
esac
1794
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795
$as_echo "$ac_try_echo"; } >&5
1796
  (eval "$ac_compile") 2>conftest.err
1797
  ac_status=$?
1798
  if test -s conftest.err; then
1799
    grep -v '^ *+' conftest.err >conftest.er1
1800
    cat conftest.er1 >&5
1801
    mv -f conftest.er1 conftest.err
1802
  fi
1803
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804
  test $ac_status = 0; } && {
1805
         test -z "$ac_fc_werror_flag" ||
1806
         test ! -s conftest.err
1807
       } && test -s conftest.$ac_objext; then :
1808
  ac_retval=0
1809
else
1810
  $as_echo "$as_me: failed program was:" >&5
1811
sed 's/^/| /' conftest.$ac_ext >&5
1812
 
1813
        ac_retval=1
1814
fi
1815
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816
  return $ac_retval
1817
 
1818
} # ac_fn_fc_try_compile
1819
 
1820
# ac_fn_fc_try_link LINENO
1821
# ------------------------
1822
# Try to link conftest.$ac_ext, and return whether this succeeded.
1823
ac_fn_fc_try_link ()
1824
{
1825
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826
  rm -f conftest.$ac_objext conftest$ac_exeext
1827
  if { { ac_try="$ac_link"
1828
case "(($ac_try" in
1829
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830
  *) ac_try_echo=$ac_try;;
1831
esac
1832
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833
$as_echo "$ac_try_echo"; } >&5
1834
  (eval "$ac_link") 2>conftest.err
1835
  ac_status=$?
1836
  if test -s conftest.err; then
1837
    grep -v '^ *+' conftest.err >conftest.er1
1838
    cat conftest.er1 >&5
1839
    mv -f conftest.er1 conftest.err
1840
  fi
1841
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842
  test $ac_status = 0; } && {
1843
         test -z "$ac_fc_werror_flag" ||
1844
         test ! -s conftest.err
1845
       } && test -s conftest$ac_exeext && {
1846
         test "$cross_compiling" = yes ||
1847
         $as_test_x conftest$ac_exeext
1848
       }; then :
1849
  ac_retval=0
1850
else
1851
  $as_echo "$as_me: failed program was:" >&5
1852
sed 's/^/| /' conftest.$ac_ext >&5
1853
 
1854
        ac_retval=1
1855
fi
1856
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1857
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1858
  # interfere with the next link command; also delete a directory that is
1859
  # left behind by Apple's compiler.  We do this before executing the actions.
1860
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1861
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862
  return $ac_retval
1863
 
1864
} # ac_fn_fc_try_link
1865
 
1866
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1867
# -------------------------------------------------------
1868
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1869
# the include files in INCLUDES and setting the cache variable VAR
1870
# accordingly.
1871
ac_fn_c_check_header_mongrel ()
1872
{
1873
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876
$as_echo_n "checking for $2... " >&6; }
1877
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1878
  $as_echo_n "(cached) " >&6
1879
fi
1880
eval ac_res=\$$3
1881
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882
$as_echo "$ac_res" >&6; }
1883
else
1884
  # Is the header compilable?
1885
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1886
$as_echo_n "checking $2 usability... " >&6; }
1887
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888
/* end confdefs.h.  */
1889
$4
1890
#include <$2>
1891
_ACEOF
1892
if ac_fn_c_try_compile "$LINENO"; then :
1893
  ac_header_compiler=yes
1894
else
1895
  ac_header_compiler=no
1896
fi
1897
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1899
$as_echo "$ac_header_compiler" >&6; }
1900
 
1901
# Is the header present?
1902
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1903
$as_echo_n "checking $2 presence... " >&6; }
1904
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905
/* end confdefs.h.  */
1906
#include <$2>
1907
_ACEOF
1908
if ac_fn_c_try_cpp "$LINENO"; then :
1909
  ac_header_preproc=yes
1910
else
1911
  ac_header_preproc=no
1912
fi
1913
rm -f conftest.err conftest.$ac_ext
1914
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1915
$as_echo "$ac_header_preproc" >&6; }
1916
 
1917
# So?  What about this header?
1918
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1919
  yes:no: )
1920
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1921
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1922
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1923
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1924
    ;;
1925
  no:yes:* )
1926
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1927
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1928
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1929
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1930
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1931
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1932
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1933
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1934
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1935
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1936
    ;;
1937
esac
1938
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939
$as_echo_n "checking for $2... " >&6; }
1940
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1941
  $as_echo_n "(cached) " >&6
1942
else
1943
  eval "$3=\$ac_header_compiler"
1944
fi
1945
eval ac_res=\$$3
1946
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947
$as_echo "$ac_res" >&6; }
1948
fi
1949
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1950
 
1951
} # ac_fn_c_check_header_mongrel
1952
 
1953
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1954
# -------------------------------------------
1955
# Tests whether TYPE exists after having included INCLUDES, setting cache
1956
# variable VAR accordingly.
1957
ac_fn_c_check_type ()
1958
{
1959
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961
$as_echo_n "checking for $2... " >&6; }
1962
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1963
  $as_echo_n "(cached) " >&6
1964
else
1965
  eval "$3=no"
1966
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967
/* end confdefs.h.  */
1968
$4
1969
int
1970
main ()
1971
{
1972
if (sizeof ($2))
1973
         return 0;
1974
  ;
1975
  return 0;
1976
}
1977
_ACEOF
1978
if ac_fn_c_try_compile "$LINENO"; then :
1979
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980
/* end confdefs.h.  */
1981
$4
1982
int
1983
main ()
1984
{
1985
if (sizeof (($2)))
1986
            return 0;
1987
  ;
1988
  return 0;
1989
}
1990
_ACEOF
1991
if ac_fn_c_try_compile "$LINENO"; then :
1992
 
1993
else
1994
  eval "$3=yes"
1995
fi
1996
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997
fi
1998
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999
fi
2000
eval ac_res=\$$3
2001
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002
$as_echo "$ac_res" >&6; }
2003
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004
 
2005
} # ac_fn_c_check_type
2006
 
2007
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2008
# --------------------------------------------
2009
# Tries to find the compile-time value of EXPR in a program that includes
2010
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2011
# computed
2012
ac_fn_c_compute_int ()
2013
{
2014
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015
  if test "$cross_compiling" = yes; then
2016
    # Depending upon the size, compute the lo and hi bounds.
2017
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018
/* end confdefs.h.  */
2019
$4
2020
int
2021
main ()
2022
{
2023
static int test_array [1 - 2 * !(($2) >= 0)];
2024
test_array [0] = 0
2025
 
2026
  ;
2027
  return 0;
2028
}
2029
_ACEOF
2030
if ac_fn_c_try_compile "$LINENO"; then :
2031
  ac_lo=0 ac_mid=0
2032
  while :; do
2033
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034
/* end confdefs.h.  */
2035
$4
2036
int
2037
main ()
2038
{
2039
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2040
test_array [0] = 0
2041
 
2042
  ;
2043
  return 0;
2044
}
2045
_ACEOF
2046
if ac_fn_c_try_compile "$LINENO"; then :
2047
  ac_hi=$ac_mid; break
2048
else
2049
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2050
                        if test $ac_lo -le $ac_mid; then
2051
                          ac_lo= ac_hi=
2052
                          break
2053
                        fi
2054
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2055
fi
2056
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057
  done
2058
else
2059
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060
/* end confdefs.h.  */
2061
$4
2062
int
2063
main ()
2064
{
2065
static int test_array [1 - 2 * !(($2) < 0)];
2066
test_array [0] = 0
2067
 
2068
  ;
2069
  return 0;
2070
}
2071
_ACEOF
2072
if ac_fn_c_try_compile "$LINENO"; then :
2073
  ac_hi=-1 ac_mid=-1
2074
  while :; do
2075
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076
/* end confdefs.h.  */
2077
$4
2078
int
2079
main ()
2080
{
2081
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2082
test_array [0] = 0
2083
 
2084
  ;
2085
  return 0;
2086
}
2087
_ACEOF
2088
if ac_fn_c_try_compile "$LINENO"; then :
2089
  ac_lo=$ac_mid; break
2090
else
2091
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2092
                        if test $ac_mid -le $ac_hi; then
2093
                          ac_lo= ac_hi=
2094
                          break
2095
                        fi
2096
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2097
fi
2098
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099
  done
2100
else
2101
  ac_lo= ac_hi=
2102
fi
2103
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104
fi
2105
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106
# Binary search between lo and hi bounds.
2107
while test "x$ac_lo" != "x$ac_hi"; do
2108
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2109
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110
/* end confdefs.h.  */
2111
$4
2112
int
2113
main ()
2114
{
2115
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2116
test_array [0] = 0
2117
 
2118
  ;
2119
  return 0;
2120
}
2121
_ACEOF
2122
if ac_fn_c_try_compile "$LINENO"; then :
2123
  ac_hi=$ac_mid
2124
else
2125
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2126
fi
2127
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128
done
2129
case $ac_lo in #((
2130
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2131
'') ac_retval=1 ;;
2132
esac
2133
  else
2134
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135
/* end confdefs.h.  */
2136
$4
2137
static long int longval () { return $2; }
2138
static unsigned long int ulongval () { return $2; }
2139
#include 
2140
#include 
2141
int
2142
main ()
2143
{
2144
 
2145
  FILE *f = fopen ("conftest.val", "w");
2146
  if (! f)
2147
    return 1;
2148
  if (($2) < 0)
2149
    {
2150
      long int i = longval ();
2151
      if (i != ($2))
2152
        return 1;
2153
      fprintf (f, "%ld", i);
2154
    }
2155
  else
2156
    {
2157
      unsigned long int i = ulongval ();
2158
      if (i != ($2))
2159
        return 1;
2160
      fprintf (f, "%lu", i);
2161
    }
2162
  /* Do not output a trailing newline, as this causes \r\n confusion
2163
     on some platforms.  */
2164
  return ferror (f) || fclose (f) != 0;
2165
 
2166
  ;
2167
  return 0;
2168
}
2169
_ACEOF
2170
if ac_fn_c_try_run "$LINENO"; then :
2171
  echo >>conftest.val; read $3 
2172
else
2173
  ac_retval=1
2174
fi
2175
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2176
  conftest.$ac_objext conftest.beam conftest.$ac_ext
2177
rm -f conftest.val
2178
 
2179
  fi
2180
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2181
  return $ac_retval
2182
 
2183
} # ac_fn_c_compute_int
2184
cat >config.log <<_ACEOF
2185
This file contains any messages produced by compilers while
2186
running configure, to aid debugging if configure makes a mistake.
2187
 
2188
It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
2189
generated by GNU Autoconf 2.64.  Invocation command line was
2190
 
2191
  $ $0 $@
2192
 
2193
_ACEOF
2194
exec 5>>config.log
2195
{
2196
cat <<_ASUNAME
2197
## --------- ##
2198
## Platform. ##
2199
## --------- ##
2200
 
2201
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2202
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2203
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2204
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2205
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2206
 
2207
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2208
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2209
 
2210
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2211
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2212
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2213
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2214
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2215
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2216
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2217
 
2218
_ASUNAME
2219
 
2220
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221
for as_dir in $PATH
2222
do
2223
  IFS=$as_save_IFS
2224
  test -z "$as_dir" && as_dir=.
2225
    $as_echo "PATH: $as_dir"
2226
  done
2227
IFS=$as_save_IFS
2228
 
2229
} >&5
2230
 
2231
cat >&5 <<_ACEOF
2232
 
2233
 
2234
## ----------- ##
2235
## Core tests. ##
2236
## ----------- ##
2237
 
2238
_ACEOF
2239
 
2240
 
2241
# Keep a trace of the command line.
2242
# Strip out --no-create and --no-recursion so they do not pile up.
2243
# Strip out --silent because we don't want to record it for future runs.
2244
# Also quote any args containing shell meta-characters.
2245
# Make two passes to allow for proper duplicate-argument suppression.
2246
ac_configure_args=
2247
ac_configure_args0=
2248
ac_configure_args1=
2249
ac_must_keep_next=false
2250
for ac_pass in 1 2
2251
do
2252
  for ac_arg
2253
  do
2254
    case $ac_arg in
2255
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2256
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2257
    | -silent | --silent | --silen | --sile | --sil)
2258
      continue ;;
2259
    *\'*)
2260
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2261
    esac
2262
    case $ac_pass in
2263
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2264
    2)
2265
      as_fn_append ac_configure_args1 " '$ac_arg'"
2266
      if test $ac_must_keep_next = true; then
2267
        ac_must_keep_next=false # Got value, back to normal.
2268
      else
2269
        case $ac_arg in
2270
          *=* | --config-cache | -C | -disable-* | --disable-* \
2271
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2272
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2273
          | -with-* | --with-* | -without-* | --without-* | --x)
2274
            case "$ac_configure_args0 " in
2275
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2276
            esac
2277
            ;;
2278
          -* ) ac_must_keep_next=true ;;
2279
        esac
2280
      fi
2281
      as_fn_append ac_configure_args " '$ac_arg'"
2282
      ;;
2283
    esac
2284
  done
2285
done
2286
{ ac_configure_args0=; unset ac_configure_args0;}
2287
{ ac_configure_args1=; unset ac_configure_args1;}
2288
 
2289
# When interrupted or exit'd, cleanup temporary files, and complete
2290
# config.log.  We remove comments because anyway the quotes in there
2291
# would cause problems or look ugly.
2292
# WARNING: Use '\'' to represent an apostrophe within the trap.
2293
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2294
trap 'exit_status=$?
2295
  # Save into config.log some information that might help in debugging.
2296
  {
2297
    echo
2298
 
2299
    cat <<\_ASBOX
2300
## ---------------- ##
2301
## Cache variables. ##
2302
## ---------------- ##
2303
_ASBOX
2304
    echo
2305
    # The following way of writing the cache mishandles newlines in values,
2306
(
2307
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2308
    eval ac_val=\$$ac_var
2309
    case $ac_val in #(
2310
    *${as_nl}*)
2311
      case $ac_var in #(
2312
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2313
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2314
      esac
2315
      case $ac_var in #(
2316
      _ | IFS | as_nl) ;; #(
2317
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2318
      *) { eval $ac_var=; unset $ac_var;} ;;
2319
      esac ;;
2320
    esac
2321
  done
2322
  (set) 2>&1 |
2323
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2324
    *${as_nl}ac_space=\ *)
2325
      sed -n \
2326
        "s/'\''/'\''\\\\'\'''\''/g;
2327
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2328
      ;; #(
2329
    *)
2330
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2331
      ;;
2332
    esac |
2333
    sort
2334
)
2335
    echo
2336
 
2337
    cat <<\_ASBOX
2338
## ----------------- ##
2339
## Output variables. ##
2340
## ----------------- ##
2341
_ASBOX
2342
    echo
2343
    for ac_var in $ac_subst_vars
2344
    do
2345
      eval ac_val=\$$ac_var
2346
      case $ac_val in
2347
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2348
      esac
2349
      $as_echo "$ac_var='\''$ac_val'\''"
2350
    done | sort
2351
    echo
2352
 
2353
    if test -n "$ac_subst_files"; then
2354
      cat <<\_ASBOX
2355
## ------------------- ##
2356
## File substitutions. ##
2357
## ------------------- ##
2358
_ASBOX
2359
      echo
2360
      for ac_var in $ac_subst_files
2361
      do
2362
        eval ac_val=\$$ac_var
2363
        case $ac_val in
2364
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2365
        esac
2366
        $as_echo "$ac_var='\''$ac_val'\''"
2367
      done | sort
2368
      echo
2369
    fi
2370
 
2371
    if test -s confdefs.h; then
2372
      cat <<\_ASBOX
2373
## ----------- ##
2374
## confdefs.h. ##
2375
## ----------- ##
2376
_ASBOX
2377
      echo
2378
      cat confdefs.h
2379
      echo
2380
    fi
2381
    test "$ac_signal" != 0 &&
2382
      $as_echo "$as_me: caught signal $ac_signal"
2383
    $as_echo "$as_me: exit $exit_status"
2384
  } >&5
2385
  rm -f core *.core core.conftest.* &&
2386
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2387
    exit $exit_status
2388
' 0
2389
for ac_signal in 1 2 13 15; do
2390
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2391
done
2392
ac_signal=0
2393
 
2394
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2395
rm -f -r conftest* confdefs.h
2396
 
2397
$as_echo "/* confdefs.h */" > confdefs.h
2398
 
2399
# Predefined preprocessor variables.
2400
 
2401
cat >>confdefs.h <<_ACEOF
2402
#define PACKAGE_NAME "$PACKAGE_NAME"
2403
_ACEOF
2404
 
2405
cat >>confdefs.h <<_ACEOF
2406
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2407
_ACEOF
2408
 
2409
cat >>confdefs.h <<_ACEOF
2410
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2411
_ACEOF
2412
 
2413
cat >>confdefs.h <<_ACEOF
2414
#define PACKAGE_STRING "$PACKAGE_STRING"
2415
_ACEOF
2416
 
2417
cat >>confdefs.h <<_ACEOF
2418
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2419
_ACEOF
2420
 
2421
cat >>confdefs.h <<_ACEOF
2422
#define PACKAGE_URL "$PACKAGE_URL"
2423
_ACEOF
2424
 
2425
 
2426
# Let the site file select an alternate cache file if it wants to.
2427
# Prefer an explicitly selected file to automatically selected ones.
2428
ac_site_file1=NONE
2429
ac_site_file2=NONE
2430
if test -n "$CONFIG_SITE"; then
2431
  ac_site_file1=$CONFIG_SITE
2432
elif test "x$prefix" != xNONE; then
2433
  ac_site_file1=$prefix/share/config.site
2434
  ac_site_file2=$prefix/etc/config.site
2435
else
2436
  ac_site_file1=$ac_default_prefix/share/config.site
2437
  ac_site_file2=$ac_default_prefix/etc/config.site
2438
fi
2439
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2440
do
2441
  test "x$ac_site_file" = xNONE && continue
2442
  if test -r "$ac_site_file"; then
2443
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2444
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2445
    sed 's/^/| /' "$ac_site_file" >&5
2446
    . "$ac_site_file"
2447
  fi
2448
done
2449
 
2450
if test -r "$cache_file"; then
2451
  # Some versions of bash will fail to source /dev/null (special
2452
  # files actually), so we avoid doing that.
2453
  if test -f "$cache_file"; then
2454
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2455
$as_echo "$as_me: loading cache $cache_file" >&6;}
2456
    case $cache_file in
2457
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2458
      *)                      . "./$cache_file";;
2459
    esac
2460
  fi
2461
else
2462
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2463
$as_echo "$as_me: creating cache $cache_file" >&6;}
2464
  >$cache_file
2465
fi
2466
 
2467
# Check that the precious variables saved in the cache have kept the same
2468
# value.
2469
ac_cache_corrupted=false
2470
for ac_var in $ac_precious_vars; do
2471
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2472
  eval ac_new_set=\$ac_env_${ac_var}_set
2473
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2474
  eval ac_new_val=\$ac_env_${ac_var}_value
2475
  case $ac_old_set,$ac_new_set in
2476
    set,)
2477
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2478
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2479
      ac_cache_corrupted=: ;;
2480
    ,set)
2481
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2482
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2483
      ac_cache_corrupted=: ;;
2484
    ,);;
2485
    *)
2486
      if test "x$ac_old_val" != "x$ac_new_val"; then
2487
        # differences in whitespace do not lead to failure.
2488
        ac_old_val_w=`echo x $ac_old_val`
2489
        ac_new_val_w=`echo x $ac_new_val`
2490
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2491
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2492
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2493
          ac_cache_corrupted=:
2494
        else
2495
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2496
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2497
          eval $ac_var=\$ac_old_val
2498
        fi
2499
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2500
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2501
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2502
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2503
      fi;;
2504
  esac
2505
  # Pass precious variables to config.status.
2506
  if test "$ac_new_set" = set; then
2507
    case $ac_new_val in
2508
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2509
    *) ac_arg=$ac_var=$ac_new_val ;;
2510
    esac
2511
    case " $ac_configure_args " in
2512
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2513
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2514
    esac
2515
  fi
2516
done
2517
if $ac_cache_corrupted; then
2518
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2519
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2520
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2521
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2522
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2523
fi
2524
## -------------------- ##
2525
## Main body of script. ##
2526
## -------------------- ##
2527
 
2528
ac_ext=c
2529
ac_cpp='$CPP $CPPFLAGS'
2530
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2531
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2532
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2533
 
2534
 
2535
 
2536
 
2537
 
2538
ac_config_headers="$ac_config_headers config.h"
2539
 
2540
 
2541
# -------
2542
# Options
2543
# -------
2544
 
2545
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2546
$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2547
 # Check whether --enable-version-specific-runtime-libs was given.
2548
if test "${enable_version_specific_runtime_libs+set}" = set; then :
2549
  enableval=$enable_version_specific_runtime_libs;
2550
      case "$enableval" in
2551
       yes|no) ;;
2552
       *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2553
                          esac
2554
 
2555
else
2556
  enable_version_specific_runtime_libs=no
2557
fi
2558
 
2559
 
2560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2561
$as_echo "$enable_version_specific_runtime_libs" >&6; }
2562
 
2563
# We would like our source tree to be readonly. However when releases or
2564
# pre-releases are generated, the flex/bison generated files as well as the
2565
# various formats of manuals need to be included along with the rest of the
2566
# sources.  Therefore we have --enable-generated-files-in-srcdir to do
2567
# just that.
2568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2569
$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2570
 # Check whether --enable-generated-files-in-srcdir was given.
2571
if test "${enable_generated_files_in_srcdir+set}" = set; then :
2572
  enableval=$enable_generated_files_in_srcdir;
2573
      case "$enableval" in
2574
       yes|no) ;;
2575
       *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2576
                          esac
2577
 
2578
else
2579
  enable_generated_files_in_srcdir=no
2580
fi
2581
 
2582
 
2583
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2584
$as_echo "$enable_generated_files_in_srcdir" >&6; }
2585
 if test "$enable_generated_files_in_srcdir" = yes; then
2586
  GENINSRC_TRUE=
2587
  GENINSRC_FALSE='#'
2588
else
2589
  GENINSRC_TRUE='#'
2590
  GENINSRC_FALSE=
2591
fi
2592
 
2593
 
2594
 
2595
# -------
2596
# -------
2597
 
2598
# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2599
#
2600
# You will slowly go insane if you do not grok the following fact:  when
2601
# building this library, the top-level /target/ becomes the library's /host/.
2602
#
2603
# configure then causes --target to default to --host, exactly like any
2604
# other package using autoconf.  Therefore, 'target' and 'host' will
2605
# always be the same.  This makes sense both for native and cross compilers
2606
# just think about it for a little while.  :-)
2607
#
2608
# Also, if this library is being configured as part of a cross compiler, the
2609
# top-level configure script will pass the "real" host as $with_cross_host.
2610
#
2611
# Do not delete or change the following two lines.  For why, see
2612
# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2613
ac_aux_dir=
2614
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2615
  for ac_t in install-sh install.sh shtool; do
2616
    if test -f "$ac_dir/$ac_t"; then
2617
      ac_aux_dir=$ac_dir
2618
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2619
      break 2
2620
    fi
2621
  done
2622
done
2623
if test -z "$ac_aux_dir"; then
2624
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2625
fi
2626
 
2627
# These three variables are undocumented and unsupported,
2628
# and are intended to be withdrawn in a future Autoconf release.
2629
# They can cause serious problems if a builder's source tree is in a directory
2630
# whose full name contains unusual characters.
2631
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2632
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2633
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2634
 
2635
 
2636
# Make sure we can run config.sub.
2637
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2638
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2639
 
2640
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2641
$as_echo_n "checking build system type... " >&6; }
2642
if test "${ac_cv_build+set}" = set; then :
2643
  $as_echo_n "(cached) " >&6
2644
else
2645
  ac_build_alias=$build_alias
2646
test "x$ac_build_alias" = x &&
2647
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2648
test "x$ac_build_alias" = x &&
2649
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2650
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2651
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2652
 
2653
fi
2654
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2655
$as_echo "$ac_cv_build" >&6; }
2656
case $ac_cv_build in
2657
*-*-*) ;;
2658
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2659
esac
2660
build=$ac_cv_build
2661
ac_save_IFS=$IFS; IFS='-'
2662
set x $ac_cv_build
2663
shift
2664
build_cpu=$1
2665
build_vendor=$2
2666
shift; shift
2667
# Remember, the first character of IFS is used to create $*,
2668
# except with old shells:
2669
build_os=$*
2670
IFS=$ac_save_IFS
2671
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2672
 
2673
 
2674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2675
$as_echo_n "checking host system type... " >&6; }
2676
if test "${ac_cv_host+set}" = set; then :
2677
  $as_echo_n "(cached) " >&6
2678
else
2679
  if test "x$host_alias" = x; then
2680
  ac_cv_host=$ac_cv_build
2681
else
2682
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2683
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2684
fi
2685
 
2686
fi
2687
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2688
$as_echo "$ac_cv_host" >&6; }
2689
case $ac_cv_host in
2690
*-*-*) ;;
2691
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2692
esac
2693
host=$ac_cv_host
2694
ac_save_IFS=$IFS; IFS='-'
2695
set x $ac_cv_host
2696
shift
2697
host_cpu=$1
2698
host_vendor=$2
2699
shift; shift
2700
# Remember, the first character of IFS is used to create $*,
2701
# except with old shells:
2702
host_os=$*
2703
IFS=$ac_save_IFS
2704
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2705
 
2706
 
2707
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2708
$as_echo_n "checking target system type... " >&6; }
2709
if test "${ac_cv_target+set}" = set; then :
2710
  $as_echo_n "(cached) " >&6
2711
else
2712
  if test "x$target_alias" = x; then
2713
  ac_cv_target=$ac_cv_host
2714
else
2715
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2716
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2717
fi
2718
 
2719
fi
2720
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2721
$as_echo "$ac_cv_target" >&6; }
2722
case $ac_cv_target in
2723
*-*-*) ;;
2724
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2725
esac
2726
target=$ac_cv_target
2727
ac_save_IFS=$IFS; IFS='-'
2728
set x $ac_cv_target
2729
shift
2730
target_cpu=$1
2731
target_vendor=$2
2732
shift; shift
2733
# Remember, the first character of IFS is used to create $*,
2734
# except with old shells:
2735
target_os=$*
2736
IFS=$ac_save_IFS
2737
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2738
 
2739
 
2740
# The aliases save the names the user supplied, while $host etc.
2741
# will get canonicalized.
2742
test -n "$target_alias" &&
2743
  test "$program_prefix$program_suffix$program_transform_name" = \
2744
    NONENONEs,x,x, &&
2745
  program_prefix=${target_alias}-
2746
 
2747
target_alias=${target_alias-$host_alias}
2748
 
2749
# Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
2750
# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2751
#  1.9.0:  minimum required version
2752
#  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
2753
#              of other PACKAGE_* variables will, however, and there's nothing
2754
#              we can do about that; they come from AC_INIT).
2755
#  foreign:  we don't follow the normal rules for GNU packages (no COPYING
2756
#            file in the top srcdir, etc, etc), so stop complaining.
2757
#  -Wall:  turns on all automake warnings...
2758
#  -Wno-portability:  ...except this one, since GNU make is required.
2759
#  -Wno-override: ... and this one, since we do want this in testsuite.
2760
am__api_version='1.11'
2761
 
2762
# Find a good install program.  We prefer a C program (faster),
2763
# so one script is as good as another.  But avoid the broken or
2764
# incompatible versions:
2765
# SysV /etc/install, /usr/sbin/install
2766
# SunOS /usr/etc/install
2767
# IRIX /sbin/install
2768
# AIX /bin/install
2769
# AmigaOS /C/install, which installs bootblocks on floppy discs
2770
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2771
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2772
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2773
# OS/2's system install, which has a completely different semantic
2774
# ./install, which can be erroneously created by make from ./install.sh.
2775
# Reject install programs that cannot install multiple files.
2776
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2777
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2778
if test -z "$INSTALL"; then
2779
if test "${ac_cv_path_install+set}" = set; then :
2780
  $as_echo_n "(cached) " >&6
2781
else
2782
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783
for as_dir in $PATH
2784
do
2785
  IFS=$as_save_IFS
2786
  test -z "$as_dir" && as_dir=.
2787
    # Account for people who put trailing slashes in PATH elements.
2788
case $as_dir/ in #((
2789
  ./ | .// | /[cC]/* | \
2790
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2791
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2792
  /usr/ucb/* ) ;;
2793
  *)
2794
    # OSF1 and SCO ODT 3.0 have their own names for install.
2795
    # Don't use installbsd from OSF since it installs stuff as root
2796
    # by default.
2797
    for ac_prog in ginstall scoinst install; do
2798
      for ac_exec_ext in '' $ac_executable_extensions; do
2799
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2800
          if test $ac_prog = install &&
2801
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2802
            # AIX install.  It has an incompatible calling convention.
2803
            :
2804
          elif test $ac_prog = install &&
2805
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2806
            # program-specific install script used by HP pwplus--don't use.
2807
            :
2808
          else
2809
            rm -rf conftest.one conftest.two conftest.dir
2810
            echo one > conftest.one
2811
            echo two > conftest.two
2812
            mkdir conftest.dir
2813
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2814
              test -s conftest.one && test -s conftest.two &&
2815
              test -s conftest.dir/conftest.one &&
2816
              test -s conftest.dir/conftest.two
2817
            then
2818
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2819
              break 3
2820
            fi
2821
          fi
2822
        fi
2823
      done
2824
    done
2825
    ;;
2826
esac
2827
 
2828
  done
2829
IFS=$as_save_IFS
2830
 
2831
rm -rf conftest.one conftest.two conftest.dir
2832
 
2833
fi
2834
  if test "${ac_cv_path_install+set}" = set; then
2835
    INSTALL=$ac_cv_path_install
2836
  else
2837
    # As a last resort, use the slow shell script.  Don't cache a
2838
    # value for INSTALL within a source directory, because that will
2839
    # break other packages using the cache if that directory is
2840
    # removed, or if the value is a relative name.
2841
    INSTALL=$ac_install_sh
2842
  fi
2843
fi
2844
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2845
$as_echo "$INSTALL" >&6; }
2846
 
2847
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2848
# It thinks the first close brace ends the variable substitution.
2849
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2850
 
2851
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2852
 
2853
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2854
 
2855
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2856
$as_echo_n "checking whether build environment is sane... " >&6; }
2857
# Just in case
2858
sleep 1
2859
echo timestamp > conftest.file
2860
# Reject unsafe characters in $srcdir or the absolute working directory
2861
# name.  Accept space and tab only in the latter.
2862
am_lf='
2863
'
2864
case `pwd` in
2865
  *[\\\"\#\$\&\'\`$am_lf]*)
2866
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2867
esac
2868
case $srcdir in
2869
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2870
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2871
esac
2872
 
2873
# Do `set' in a subshell so we don't clobber the current shell's
2874
# arguments.  Must try -L first in case configure is actually a
2875
# symlink; some systems play weird games with the mod time of symlinks
2876
# (eg FreeBSD returns the mod time of the symlink's containing
2877
# directory).
2878
if (
2879
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2880
   if test "$*" = "X"; then
2881
      # -L didn't work.
2882
      set X `ls -t "$srcdir/configure" conftest.file`
2883
   fi
2884
   rm -f conftest.file
2885
   if test "$*" != "X $srcdir/configure conftest.file" \
2886
      && test "$*" != "X conftest.file $srcdir/configure"; then
2887
 
2888
      # If neither matched, then we have a broken ls.  This can happen
2889
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2890
      # broken ls alias from the environment.  This has actually
2891
      # happened.  Such a system could not be considered "sane".
2892
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2893
alias in your environment" "$LINENO" 5
2894
   fi
2895
 
2896
   test "$2" = conftest.file
2897
   )
2898
then
2899
   # Ok.
2900
   :
2901
else
2902
   as_fn_error "newly created file is older than distributed files!
2903
Check your system clock" "$LINENO" 5
2904
fi
2905
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2906
$as_echo "yes" >&6; }
2907
test "$program_prefix" != NONE &&
2908
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2909
# Use a double $ so make ignores it.
2910
test "$program_suffix" != NONE &&
2911
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2912
# Double any \ or $.
2913
# By default was `s,x,x', remove it if useless.
2914
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2915
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2916
 
2917
# expand $ac_aux_dir to an absolute path
2918
am_aux_dir=`cd $ac_aux_dir && pwd`
2919
 
2920
if test x"${MISSING+set}" != xset; then
2921
  case $am_aux_dir in
2922
  *\ * | *\     *)
2923
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2924
  *)
2925
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2926
  esac
2927
fi
2928
# Use eval to expand $SHELL
2929
if eval "$MISSING --run true"; then
2930
  am_missing_run="$MISSING --run "
2931
else
2932
  am_missing_run=
2933
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2934
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2935
fi
2936
 
2937
if test x"${install_sh}" != xset; then
2938
  case $am_aux_dir in
2939
  *\ * | *\     *)
2940
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2941
  *)
2942
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2943
  esac
2944
fi
2945
 
2946
# Installed binaries are usually stripped using `strip' when the user
2947
# run `make install-strip'.  However `strip' might not be the right
2948
# tool to use in cross-compilation environments, therefore Automake
2949
# will honor the `STRIP' environment variable to overrule this program.
2950
if test "$cross_compiling" != no; then
2951
  if test -n "$ac_tool_prefix"; then
2952
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2953
set dummy ${ac_tool_prefix}strip; ac_word=$2
2954
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955
$as_echo_n "checking for $ac_word... " >&6; }
2956
if test "${ac_cv_prog_STRIP+set}" = set; then :
2957
  $as_echo_n "(cached) " >&6
2958
else
2959
  if test -n "$STRIP"; then
2960
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2961
else
2962
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963
for as_dir in $PATH
2964
do
2965
  IFS=$as_save_IFS
2966
  test -z "$as_dir" && as_dir=.
2967
    for ac_exec_ext in '' $ac_executable_extensions; do
2968
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2970
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971
    break 2
2972
  fi
2973
done
2974
  done
2975
IFS=$as_save_IFS
2976
 
2977
fi
2978
fi
2979
STRIP=$ac_cv_prog_STRIP
2980
if test -n "$STRIP"; then
2981
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2982
$as_echo "$STRIP" >&6; }
2983
else
2984
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985
$as_echo "no" >&6; }
2986
fi
2987
 
2988
 
2989
fi
2990
if test -z "$ac_cv_prog_STRIP"; then
2991
  ac_ct_STRIP=$STRIP
2992
  # Extract the first word of "strip", so it can be a program name with args.
2993
set dummy strip; ac_word=$2
2994
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995
$as_echo_n "checking for $ac_word... " >&6; }
2996
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2997
  $as_echo_n "(cached) " >&6
2998
else
2999
  if test -n "$ac_ct_STRIP"; then
3000
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3001
else
3002
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003
for as_dir in $PATH
3004
do
3005
  IFS=$as_save_IFS
3006
  test -z "$as_dir" && as_dir=.
3007
    for ac_exec_ext in '' $ac_executable_extensions; do
3008
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3009
    ac_cv_prog_ac_ct_STRIP="strip"
3010
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011
    break 2
3012
  fi
3013
done
3014
  done
3015
IFS=$as_save_IFS
3016
 
3017
fi
3018
fi
3019
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3020
if test -n "$ac_ct_STRIP"; then
3021
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3022
$as_echo "$ac_ct_STRIP" >&6; }
3023
else
3024
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025
$as_echo "no" >&6; }
3026
fi
3027
 
3028
  if test "x$ac_ct_STRIP" = x; then
3029
    STRIP=":"
3030
  else
3031
    case $cross_compiling:$ac_tool_warned in
3032
yes:)
3033
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3034
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3035
ac_tool_warned=yes ;;
3036
esac
3037
    STRIP=$ac_ct_STRIP
3038
  fi
3039
else
3040
  STRIP="$ac_cv_prog_STRIP"
3041
fi
3042
 
3043
fi
3044
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3045
 
3046
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3047
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3048
if test -z "$MKDIR_P"; then
3049
  if test "${ac_cv_path_mkdir+set}" = set; then :
3050
  $as_echo_n "(cached) " >&6
3051
else
3052
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3054
do
3055
  IFS=$as_save_IFS
3056
  test -z "$as_dir" && as_dir=.
3057
    for ac_prog in mkdir gmkdir; do
3058
         for ac_exec_ext in '' $ac_executable_extensions; do
3059
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3060
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3061
             'mkdir (GNU coreutils) '* | \
3062
             'mkdir (coreutils) '* | \
3063
             'mkdir (fileutils) '4.1*)
3064
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3065
               break 3;;
3066
           esac
3067
         done
3068
       done
3069
  done
3070
IFS=$as_save_IFS
3071
 
3072
fi
3073
 
3074
  if test "${ac_cv_path_mkdir+set}" = set; then
3075
    MKDIR_P="$ac_cv_path_mkdir -p"
3076
  else
3077
    # As a last resort, use the slow shell script.  Don't cache a
3078
    # value for MKDIR_P within a source directory, because that will
3079
    # break other packages using the cache if that directory is
3080
    # removed, or if the value is a relative name.
3081
    test -d ./--version && rmdir ./--version
3082
    MKDIR_P="$ac_install_sh -d"
3083
  fi
3084
fi
3085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3086
$as_echo "$MKDIR_P" >&6; }
3087
 
3088
mkdir_p="$MKDIR_P"
3089
case $mkdir_p in
3090
  [\\/$]* | ?:[\\/]*) ;;
3091
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3092
esac
3093
 
3094
for ac_prog in gawk mawk nawk awk
3095
do
3096
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3097
set dummy $ac_prog; ac_word=$2
3098
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099
$as_echo_n "checking for $ac_word... " >&6; }
3100
if test "${ac_cv_prog_AWK+set}" = set; then :
3101
  $as_echo_n "(cached) " >&6
3102
else
3103
  if test -n "$AWK"; then
3104
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3105
else
3106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107
for as_dir in $PATH
3108
do
3109
  IFS=$as_save_IFS
3110
  test -z "$as_dir" && as_dir=.
3111
    for ac_exec_ext in '' $ac_executable_extensions; do
3112
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113
    ac_cv_prog_AWK="$ac_prog"
3114
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115
    break 2
3116
  fi
3117
done
3118
  done
3119
IFS=$as_save_IFS
3120
 
3121
fi
3122
fi
3123
AWK=$ac_cv_prog_AWK
3124
if test -n "$AWK"; then
3125
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3126
$as_echo "$AWK" >&6; }
3127
else
3128
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129
$as_echo "no" >&6; }
3130
fi
3131
 
3132
 
3133
  test -n "$AWK" && break
3134
done
3135
 
3136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3137
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3138
set x ${MAKE-make}
3139
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3140
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3141
  $as_echo_n "(cached) " >&6
3142
else
3143
  cat >conftest.make <<\_ACEOF
3144
SHELL = /bin/sh
3145
all:
3146
        @echo '@@@%%%=$(MAKE)=@@@%%%'
3147
_ACEOF
3148
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3149
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3150
  *@@@%%%=?*=@@@%%%*)
3151
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3152
  *)
3153
    eval ac_cv_prog_make_${ac_make}_set=no;;
3154
esac
3155
rm -f conftest.make
3156
fi
3157
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3158
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3159
$as_echo "yes" >&6; }
3160
  SET_MAKE=
3161
else
3162
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163
$as_echo "no" >&6; }
3164
  SET_MAKE="MAKE=${MAKE-make}"
3165
fi
3166
 
3167
rm -rf .tst 2>/dev/null
3168
mkdir .tst 2>/dev/null
3169
if test -d .tst; then
3170
  am__leading_dot=.
3171
else
3172
  am__leading_dot=_
3173
fi
3174
rmdir .tst 2>/dev/null
3175
 
3176
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3177
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3178
  # is not polluted with repeated "-I."
3179
  am__isrc=' -I$(srcdir)'
3180
  # test to see if srcdir already configured
3181
  if test -f $srcdir/config.status; then
3182
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3183
  fi
3184
fi
3185
 
3186
# test whether we have cygpath
3187
if test -z "$CYGPATH_W"; then
3188
  if (cygpath --version) >/dev/null 2>/dev/null; then
3189
    CYGPATH_W='cygpath -w'
3190
  else
3191
    CYGPATH_W=echo
3192
  fi
3193
fi
3194
 
3195
 
3196
# Define the identity of the package.
3197
 PACKAGE='libgomp'
3198
 VERSION='1.0'
3199
 
3200
 
3201
cat >>confdefs.h <<_ACEOF
3202
#define PACKAGE "$PACKAGE"
3203
_ACEOF
3204
 
3205
 
3206
cat >>confdefs.h <<_ACEOF
3207
#define VERSION "$VERSION"
3208
_ACEOF
3209
 
3210
# Some tools Automake needs.
3211
 
3212
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3213
 
3214
 
3215
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3216
 
3217
 
3218
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3219
 
3220
 
3221
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3222
 
3223
 
3224
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3225
 
3226
# We need awk for the "check" target.  The system "awk" is bad on
3227
# some platforms.
3228
# Always define AMTAR for backward compatibility.
3229
 
3230
AMTAR=${AMTAR-"${am_missing_run}tar"}
3231
 
3232
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3233
 
3234
 
3235
 
3236
 
3237
 
3238
# Default to --enable-multilib
3239
# Check whether --enable-multilib was given.
3240
if test "${enable_multilib+set}" = set; then :
3241
  enableval=$enable_multilib; case "$enableval" in
3242
  yes) multilib=yes ;;
3243
  no)  multilib=no ;;
3244
  *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3245
 esac
3246
else
3247
  multilib=yes
3248
fi
3249
 
3250
 
3251
# We may get other options which we leave undocumented:
3252
# --with-target-subdir, --with-multisrctop, --with-multisubdir
3253
# See config-ml.in if you want the gory details.
3254
 
3255
if test "$srcdir" = "."; then
3256
  if test "$with_target_subdir" != "."; then
3257
    multi_basedir="$srcdir/$with_multisrctop../.."
3258
  else
3259
    multi_basedir="$srcdir/$with_multisrctop.."
3260
  fi
3261
else
3262
  multi_basedir="$srcdir/.."
3263
fi
3264
 
3265
 
3266
# Even if the default multilib is not a cross compilation,
3267
# it may be that some of the other multilibs are.
3268
if test $cross_compiling = no && test $multilib = yes \
3269
   && test "x${with_multisubdir}" != x ; then
3270
   cross_compiling=maybe
3271
fi
3272
 
3273
ac_config_commands="$ac_config_commands default-1"
3274
 
3275
 
3276
# Calculate toolexeclibdir
3277
# Also toolexecdir, though it's only used in toolexeclibdir
3278
case ${enable_version_specific_runtime_libs} in
3279
  yes)
3280
    # Need the gcc compiler version to know where to install libraries
3281
    # and header files if --enable-version-specific-runtime-libs option
3282
    # is selected.
3283
    toolexecdir='$(libdir)/gcc/$(target_alias)'
3284
    toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3285
    ;;
3286
  no)
3287
    if test -n "$with_cross_host" &&
3288
       test x"$with_cross_host" != x"no"; then
3289
      # Install a library built with a cross compiler in tooldir, not libdir.
3290
      toolexecdir='$(exec_prefix)/$(target_alias)'
3291
      toolexeclibdir='$(toolexecdir)/lib'
3292
    else
3293
      toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3294
      toolexeclibdir='$(libdir)'
3295
    fi
3296
    multi_os_directory=`$CC -print-multi-os-directory`
3297
    case $multi_os_directory in
3298
      .) ;; # Avoid trailing /.
3299
      *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3300
    esac
3301
    ;;
3302
esac
3303
 
3304
 
3305
 
3306
# Check the compiler.
3307
# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3308
# We must force CC to /not/ be precious variables; otherwise
3309
# the wrong, non-multilib-adjusted value will be used in multilibs.
3310
# As a side effect, we have to subst CFLAGS ourselves.
3311
 
3312
 
3313
 
3314
ac_ext=c
3315
ac_cpp='$CPP $CPPFLAGS'
3316
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319
if test -n "$ac_tool_prefix"; then
3320
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3321
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3322
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323
$as_echo_n "checking for $ac_word... " >&6; }
3324
if test "${ac_cv_prog_CC+set}" = set; then :
3325
  $as_echo_n "(cached) " >&6
3326
else
3327
  if test -n "$CC"; then
3328
  ac_cv_prog_CC="$CC" # Let the user override the test.
3329
else
3330
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331
for as_dir in $PATH
3332
do
3333
  IFS=$as_save_IFS
3334
  test -z "$as_dir" && as_dir=.
3335
    for ac_exec_ext in '' $ac_executable_extensions; do
3336
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3337
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3338
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339
    break 2
3340
  fi
3341
done
3342
  done
3343
IFS=$as_save_IFS
3344
 
3345
fi
3346
fi
3347
CC=$ac_cv_prog_CC
3348
if test -n "$CC"; then
3349
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350
$as_echo "$CC" >&6; }
3351
else
3352
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353
$as_echo "no" >&6; }
3354
fi
3355
 
3356
 
3357
fi
3358
if test -z "$ac_cv_prog_CC"; then
3359
  ac_ct_CC=$CC
3360
  # Extract the first word of "gcc", so it can be a program name with args.
3361
set dummy gcc; ac_word=$2
3362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363
$as_echo_n "checking for $ac_word... " >&6; }
3364
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3365
  $as_echo_n "(cached) " >&6
3366
else
3367
  if test -n "$ac_ct_CC"; then
3368
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3369
else
3370
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371
for as_dir in $PATH
3372
do
3373
  IFS=$as_save_IFS
3374
  test -z "$as_dir" && as_dir=.
3375
    for ac_exec_ext in '' $ac_executable_extensions; do
3376
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377
    ac_cv_prog_ac_ct_CC="gcc"
3378
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379
    break 2
3380
  fi
3381
done
3382
  done
3383
IFS=$as_save_IFS
3384
 
3385
fi
3386
fi
3387
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3388
if test -n "$ac_ct_CC"; then
3389
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3390
$as_echo "$ac_ct_CC" >&6; }
3391
else
3392
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393
$as_echo "no" >&6; }
3394
fi
3395
 
3396
  if test "x$ac_ct_CC" = x; then
3397
    CC=""
3398
  else
3399
    case $cross_compiling:$ac_tool_warned in
3400
yes:)
3401
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3402
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3403
ac_tool_warned=yes ;;
3404
esac
3405
    CC=$ac_ct_CC
3406
  fi
3407
else
3408
  CC="$ac_cv_prog_CC"
3409
fi
3410
 
3411
if test -z "$CC"; then
3412
          if test -n "$ac_tool_prefix"; then
3413
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3414
set dummy ${ac_tool_prefix}cc; ac_word=$2
3415
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416
$as_echo_n "checking for $ac_word... " >&6; }
3417
if test "${ac_cv_prog_CC+set}" = set; then :
3418
  $as_echo_n "(cached) " >&6
3419
else
3420
  if test -n "$CC"; then
3421
  ac_cv_prog_CC="$CC" # Let the user override the test.
3422
else
3423
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424
for as_dir in $PATH
3425
do
3426
  IFS=$as_save_IFS
3427
  test -z "$as_dir" && as_dir=.
3428
    for ac_exec_ext in '' $ac_executable_extensions; do
3429
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3430
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3431
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432
    break 2
3433
  fi
3434
done
3435
  done
3436
IFS=$as_save_IFS
3437
 
3438
fi
3439
fi
3440
CC=$ac_cv_prog_CC
3441
if test -n "$CC"; then
3442
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443
$as_echo "$CC" >&6; }
3444
else
3445
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446
$as_echo "no" >&6; }
3447
fi
3448
 
3449
 
3450
  fi
3451
fi
3452
if test -z "$CC"; then
3453
  # Extract the first word of "cc", so it can be a program name with args.
3454
set dummy cc; ac_word=$2
3455
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456
$as_echo_n "checking for $ac_word... " >&6; }
3457
if test "${ac_cv_prog_CC+set}" = set; then :
3458
  $as_echo_n "(cached) " >&6
3459
else
3460
  if test -n "$CC"; then
3461
  ac_cv_prog_CC="$CC" # Let the user override the test.
3462
else
3463
  ac_prog_rejected=no
3464
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465
for as_dir in $PATH
3466
do
3467
  IFS=$as_save_IFS
3468
  test -z "$as_dir" && as_dir=.
3469
    for ac_exec_ext in '' $ac_executable_extensions; do
3470
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3472
       ac_prog_rejected=yes
3473
       continue
3474
     fi
3475
    ac_cv_prog_CC="cc"
3476
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477
    break 2
3478
  fi
3479
done
3480
  done
3481
IFS=$as_save_IFS
3482
 
3483
if test $ac_prog_rejected = yes; then
3484
  # We found a bogon in the path, so make sure we never use it.
3485
  set dummy $ac_cv_prog_CC
3486
  shift
3487
  if test $# != 0; then
3488
    # We chose a different compiler from the bogus one.
3489
    # However, it has the same basename, so the bogon will be chosen
3490
    # first if we set CC to just the basename; use the full file name.
3491
    shift
3492
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3493
  fi
3494
fi
3495
fi
3496
fi
3497
CC=$ac_cv_prog_CC
3498
if test -n "$CC"; then
3499
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3500
$as_echo "$CC" >&6; }
3501
else
3502
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503
$as_echo "no" >&6; }
3504
fi
3505
 
3506
 
3507
fi
3508
if test -z "$CC"; then
3509
  if test -n "$ac_tool_prefix"; then
3510
  for ac_prog in cl.exe
3511
  do
3512
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3513
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3514
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515
$as_echo_n "checking for $ac_word... " >&6; }
3516
if test "${ac_cv_prog_CC+set}" = set; then :
3517
  $as_echo_n "(cached) " >&6
3518
else
3519
  if test -n "$CC"; then
3520
  ac_cv_prog_CC="$CC" # Let the user override the test.
3521
else
3522
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523
for as_dir in $PATH
3524
do
3525
  IFS=$as_save_IFS
3526
  test -z "$as_dir" && as_dir=.
3527
    for ac_exec_ext in '' $ac_executable_extensions; do
3528
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3529
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3530
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531
    break 2
3532
  fi
3533
done
3534
  done
3535
IFS=$as_save_IFS
3536
 
3537
fi
3538
fi
3539
CC=$ac_cv_prog_CC
3540
if test -n "$CC"; then
3541
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542
$as_echo "$CC" >&6; }
3543
else
3544
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545
$as_echo "no" >&6; }
3546
fi
3547
 
3548
 
3549
    test -n "$CC" && break
3550
  done
3551
fi
3552
if test -z "$CC"; then
3553
  ac_ct_CC=$CC
3554
  for ac_prog in cl.exe
3555
do
3556
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3557
set dummy $ac_prog; ac_word=$2
3558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559
$as_echo_n "checking for $ac_word... " >&6; }
3560
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3561
  $as_echo_n "(cached) " >&6
3562
else
3563
  if test -n "$ac_ct_CC"; then
3564
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3565
else
3566
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567
for as_dir in $PATH
3568
do
3569
  IFS=$as_save_IFS
3570
  test -z "$as_dir" && as_dir=.
3571
    for ac_exec_ext in '' $ac_executable_extensions; do
3572
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3573
    ac_cv_prog_ac_ct_CC="$ac_prog"
3574
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575
    break 2
3576
  fi
3577
done
3578
  done
3579
IFS=$as_save_IFS
3580
 
3581
fi
3582
fi
3583
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3584
if test -n "$ac_ct_CC"; then
3585
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3586
$as_echo "$ac_ct_CC" >&6; }
3587
else
3588
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589
$as_echo "no" >&6; }
3590
fi
3591
 
3592
 
3593
  test -n "$ac_ct_CC" && break
3594
done
3595
 
3596
  if test "x$ac_ct_CC" = x; then
3597
    CC=""
3598
  else
3599
    case $cross_compiling:$ac_tool_warned in
3600
yes:)
3601
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3602
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3603
ac_tool_warned=yes ;;
3604
esac
3605
    CC=$ac_ct_CC
3606
  fi
3607
fi
3608
 
3609
fi
3610
 
3611
 
3612
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614
as_fn_error "no acceptable C compiler found in \$PATH
3615
See \`config.log' for more details." "$LINENO" 5; }
3616
 
3617
# Provide some information about the compiler.
3618
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3619
set X $ac_compile
3620
ac_compiler=$2
3621
for ac_option in --version -v -V -qversion; do
3622
  { { ac_try="$ac_compiler $ac_option >&5"
3623
case "(($ac_try" in
3624
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625
  *) ac_try_echo=$ac_try;;
3626
esac
3627
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628
$as_echo "$ac_try_echo"; } >&5
3629
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3630
  ac_status=$?
3631
  if test -s conftest.err; then
3632
    sed '10a\
3633
... rest of stderr output deleted ...
3634
         10q' conftest.err >conftest.er1
3635
    cat conftest.er1 >&5
3636
    rm -f conftest.er1 conftest.err
3637
  fi
3638
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639
  test $ac_status = 0; }
3640
done
3641
 
3642
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643
/* end confdefs.h.  */
3644
 
3645
int
3646
main ()
3647
{
3648
 
3649
  ;
3650
  return 0;
3651
}
3652
_ACEOF
3653
ac_clean_files_save=$ac_clean_files
3654
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3655
# Try to create an executable without -o first, disregard a.out.
3656
# It will help us diagnose broken compilers, and finding out an intuition
3657
# of exeext.
3658
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3659
$as_echo_n "checking for C compiler default output file name... " >&6; }
3660
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3661
 
3662
# The possible output files:
3663
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3664
 
3665
ac_rmfiles=
3666
for ac_file in $ac_files
3667
do
3668
  case $ac_file in
3669
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3670
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3671
  esac
3672
done
3673
rm -f $ac_rmfiles
3674
 
3675
if { { ac_try="$ac_link_default"
3676
case "(($ac_try" in
3677
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678
  *) ac_try_echo=$ac_try;;
3679
esac
3680
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3681
$as_echo "$ac_try_echo"; } >&5
3682
  (eval "$ac_link_default") 2>&5
3683
  ac_status=$?
3684
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685
  test $ac_status = 0; }; then :
3686
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3687
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3688
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3689
# so that the user can short-circuit this test for compilers unknown to
3690
# Autoconf.
3691
for ac_file in $ac_files ''
3692
do
3693
  test -f "$ac_file" || continue
3694
  case $ac_file in
3695
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3696
        ;;
3697
    [ab].out )
3698
        # We found the default executable, but exeext='' is most
3699
        # certainly right.
3700
        break;;
3701
    *.* )
3702
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3703
        then :; else
3704
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3705
        fi
3706
        # We set ac_cv_exeext here because the later test for it is not
3707
        # safe: cross compilers may not add the suffix if given an `-o'
3708
        # argument, so we may need to know it at that point already.
3709
        # Even if this section looks crufty: it has the advantage of
3710
        # actually working.
3711
        break;;
3712
    * )
3713
        break;;
3714
  esac
3715
done
3716
test "$ac_cv_exeext" = no && ac_cv_exeext=
3717
 
3718
else
3719
  ac_file=''
3720
fi
3721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3722
$as_echo "$ac_file" >&6; }
3723
if test -z "$ac_file"; then :
3724
  $as_echo "$as_me: failed program was:" >&5
3725
sed 's/^/| /' conftest.$ac_ext >&5
3726
 
3727
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729
{ as_fn_set_status 77
3730
as_fn_error "C compiler cannot create executables
3731
See \`config.log' for more details." "$LINENO" 5; }; }
3732
fi
3733
ac_exeext=$ac_cv_exeext
3734
 
3735
# Check that the compiler produces executables we can run.  If not, either
3736
# the compiler is broken, or we cross compile.
3737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3738
$as_echo_n "checking whether the C compiler works... " >&6; }
3739
# If not cross compiling, check that we can run a simple program.
3740
if test "$cross_compiling" != yes; then
3741
  if { ac_try='./$ac_file'
3742
  { { case "(($ac_try" in
3743
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744
  *) ac_try_echo=$ac_try;;
3745
esac
3746
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747
$as_echo "$ac_try_echo"; } >&5
3748
  (eval "$ac_try") 2>&5
3749
  ac_status=$?
3750
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3751
  test $ac_status = 0; }; }; then
3752
    cross_compiling=no
3753
  else
3754
    if test "$cross_compiling" = maybe; then
3755
        cross_compiling=yes
3756
    else
3757
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3758
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3759
as_fn_error "cannot run C compiled programs.
3760
If you meant to cross compile, use \`--host'.
3761
See \`config.log' for more details." "$LINENO" 5; }
3762
    fi
3763
  fi
3764
fi
3765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3766
$as_echo "yes" >&6; }
3767
 
3768
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3769
ac_clean_files=$ac_clean_files_save
3770
# Check that the compiler produces executables we can run.  If not, either
3771
# the compiler is broken, or we cross compile.
3772
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3773
$as_echo_n "checking whether we are cross compiling... " >&6; }
3774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3775
$as_echo "$cross_compiling" >&6; }
3776
 
3777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3778
$as_echo_n "checking for suffix of executables... " >&6; }
3779
if { { ac_try="$ac_link"
3780
case "(($ac_try" in
3781
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782
  *) ac_try_echo=$ac_try;;
3783
esac
3784
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785
$as_echo "$ac_try_echo"; } >&5
3786
  (eval "$ac_link") 2>&5
3787
  ac_status=$?
3788
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789
  test $ac_status = 0; }; then :
3790
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3791
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3792
# work properly (i.e., refer to `conftest.exe'), while it won't with
3793
# `rm'.
3794
for ac_file in conftest.exe conftest conftest.*; do
3795
  test -f "$ac_file" || continue
3796
  case $ac_file in
3797
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3798
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3799
          break;;
3800
    * ) break;;
3801
  esac
3802
done
3803
else
3804
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3805
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3806
as_fn_error "cannot compute suffix of executables: cannot compile and link
3807
See \`config.log' for more details." "$LINENO" 5; }
3808
fi
3809
rm -f conftest$ac_cv_exeext
3810
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3811
$as_echo "$ac_cv_exeext" >&6; }
3812
 
3813
rm -f conftest.$ac_ext
3814
EXEEXT=$ac_cv_exeext
3815
ac_exeext=$EXEEXT
3816
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3817
$as_echo_n "checking for suffix of object files... " >&6; }
3818
if test "${ac_cv_objext+set}" = set; then :
3819
  $as_echo_n "(cached) " >&6
3820
else
3821
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822
/* end confdefs.h.  */
3823
 
3824
int
3825
main ()
3826
{
3827
 
3828
  ;
3829
  return 0;
3830
}
3831
_ACEOF
3832
rm -f conftest.o conftest.obj
3833
if { { ac_try="$ac_compile"
3834
case "(($ac_try" in
3835
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836
  *) ac_try_echo=$ac_try;;
3837
esac
3838
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3839
$as_echo "$ac_try_echo"; } >&5
3840
  (eval "$ac_compile") 2>&5
3841
  ac_status=$?
3842
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843
  test $ac_status = 0; }; then :
3844
  for ac_file in conftest.o conftest.obj conftest.*; do
3845
  test -f "$ac_file" || continue;
3846
  case $ac_file in
3847
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3848
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3849
       break;;
3850
  esac
3851
done
3852
else
3853
  $as_echo "$as_me: failed program was:" >&5
3854
sed 's/^/| /' conftest.$ac_ext >&5
3855
 
3856
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3857
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3858
as_fn_error "cannot compute suffix of object files: cannot compile
3859
See \`config.log' for more details." "$LINENO" 5; }
3860
fi
3861
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3862
fi
3863
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3864
$as_echo "$ac_cv_objext" >&6; }
3865
OBJEXT=$ac_cv_objext
3866
ac_objext=$OBJEXT
3867
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3868
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3869
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3870
  $as_echo_n "(cached) " >&6
3871
else
3872
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873
/* end confdefs.h.  */
3874
 
3875
int
3876
main ()
3877
{
3878
#ifndef __GNUC__
3879
       choke me
3880
#endif
3881
 
3882
  ;
3883
  return 0;
3884
}
3885
_ACEOF
3886
if ac_fn_c_try_compile "$LINENO"; then :
3887
  ac_compiler_gnu=yes
3888
else
3889
  ac_compiler_gnu=no
3890
fi
3891
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3893
 
3894
fi
3895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3896
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3897
if test $ac_compiler_gnu = yes; then
3898
  GCC=yes
3899
else
3900
  GCC=
3901
fi
3902
ac_test_CFLAGS=${CFLAGS+set}
3903
ac_save_CFLAGS=$CFLAGS
3904
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3905
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3906
if test "${ac_cv_prog_cc_g+set}" = set; then :
3907
  $as_echo_n "(cached) " >&6
3908
else
3909
  ac_save_c_werror_flag=$ac_c_werror_flag
3910
   ac_c_werror_flag=yes
3911
   ac_cv_prog_cc_g=no
3912
   CFLAGS="-g"
3913
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914
/* end confdefs.h.  */
3915
 
3916
int
3917
main ()
3918
{
3919
 
3920
  ;
3921
  return 0;
3922
}
3923
_ACEOF
3924
if ac_fn_c_try_compile "$LINENO"; then :
3925
  ac_cv_prog_cc_g=yes
3926
else
3927
  CFLAGS=""
3928
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929
/* end confdefs.h.  */
3930
 
3931
int
3932
main ()
3933
{
3934
 
3935
  ;
3936
  return 0;
3937
}
3938
_ACEOF
3939
if ac_fn_c_try_compile "$LINENO"; then :
3940
 
3941
else
3942
  ac_c_werror_flag=$ac_save_c_werror_flag
3943
         CFLAGS="-g"
3944
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945
/* end confdefs.h.  */
3946
 
3947
int
3948
main ()
3949
{
3950
 
3951
  ;
3952
  return 0;
3953
}
3954
_ACEOF
3955
if ac_fn_c_try_compile "$LINENO"; then :
3956
  ac_cv_prog_cc_g=yes
3957
fi
3958
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959
fi
3960
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961
fi
3962
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963
   ac_c_werror_flag=$ac_save_c_werror_flag
3964
fi
3965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3966
$as_echo "$ac_cv_prog_cc_g" >&6; }
3967
if test "$ac_test_CFLAGS" = set; then
3968
  CFLAGS=$ac_save_CFLAGS
3969
elif test $ac_cv_prog_cc_g = yes; then
3970
  if test "$GCC" = yes; then
3971
    CFLAGS="-g -O2"
3972
  else
3973
    CFLAGS="-g"
3974
  fi
3975
else
3976
  if test "$GCC" = yes; then
3977
    CFLAGS="-O2"
3978
  else
3979
    CFLAGS=
3980
  fi
3981
fi
3982
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3983
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3984
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3985
  $as_echo_n "(cached) " >&6
3986
else
3987
  ac_cv_prog_cc_c89=no
3988
ac_save_CC=$CC
3989
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990
/* end confdefs.h.  */
3991
#include 
3992
#include 
3993
#include 
3994
#include 
3995
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3996
struct buf { int x; };
3997
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3998
static char *e (p, i)
3999
     char **p;
4000
     int i;
4001
{
4002
  return p[i];
4003
}
4004
static char *f (char * (*g) (char **, int), char **p, ...)
4005
{
4006
  char *s;
4007
  va_list v;
4008
  va_start (v,p);
4009
  s = g (p, va_arg (v,int));
4010
  va_end (v);
4011
  return s;
4012
}
4013
 
4014
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4015
   function prototypes and stuff, but not '\xHH' hex character constants.
4016
   These don't provoke an error unfortunately, instead are silently treated
4017
   as 'x'.  The following induces an error, until -std is added to get
4018
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4019
   array size at least.  It's necessary to write '\x00'==0 to get something
4020
   that's true only with -std.  */
4021
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4022
 
4023
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4024
   inside strings and character constants.  */
4025
#define FOO(x) 'x'
4026
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4027
 
4028
int test (int i, double x);
4029
struct s1 {int (*f) (int a);};
4030
struct s2 {int (*f) (double a);};
4031
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4032
int argc;
4033
char **argv;
4034
int
4035
main ()
4036
{
4037
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4038
  ;
4039
  return 0;
4040
}
4041
_ACEOF
4042
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4043
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4044
do
4045
  CC="$ac_save_CC $ac_arg"
4046
  if ac_fn_c_try_compile "$LINENO"; then :
4047
  ac_cv_prog_cc_c89=$ac_arg
4048
fi
4049
rm -f core conftest.err conftest.$ac_objext
4050
  test "x$ac_cv_prog_cc_c89" != "xno" && break
4051
done
4052
rm -f conftest.$ac_ext
4053
CC=$ac_save_CC
4054
 
4055
fi
4056
# AC_CACHE_VAL
4057
case "x$ac_cv_prog_cc_c89" in
4058
  x)
4059
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4060
$as_echo "none needed" >&6; } ;;
4061
  xno)
4062
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4063
$as_echo "unsupported" >&6; } ;;
4064
  *)
4065
    CC="$CC $ac_cv_prog_cc_c89"
4066
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4067
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4068
esac
4069
if test "x$ac_cv_prog_cc_c89" != xno; then :
4070
 
4071
fi
4072
 
4073
ac_ext=c
4074
ac_cpp='$CPP $CPPFLAGS'
4075
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4076
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4077
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4078
DEPDIR="${am__leading_dot}deps"
4079
 
4080
ac_config_commands="$ac_config_commands depfiles"
4081
 
4082
 
4083
am_make=${MAKE-make}
4084
cat > confinc << 'END'
4085
am__doit:
4086
        @echo this is the am__doit target
4087
.PHONY: am__doit
4088
END
4089
# If we don't find an include directive, just comment out the code.
4090
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4091
$as_echo_n "checking for style of include used by $am_make... " >&6; }
4092
am__include="#"
4093
am__quote=
4094
_am_result=none
4095
# First try GNU make style include.
4096
echo "include confinc" > confmf
4097
# Ignore all kinds of additional output from `make'.
4098
case `$am_make -s -f confmf 2> /dev/null` in #(
4099
*the\ am__doit\ target*)
4100
  am__include=include
4101
  am__quote=
4102
  _am_result=GNU
4103
  ;;
4104
esac
4105
# Now try BSD make style include.
4106
if test "$am__include" = "#"; then
4107
   echo '.include "confinc"' > confmf
4108
   case `$am_make -s -f confmf 2> /dev/null` in #(
4109
   *the\ am__doit\ target*)
4110
     am__include=.include
4111
     am__quote="\""
4112
     _am_result=BSD
4113
     ;;
4114
   esac
4115
fi
4116
 
4117
 
4118
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4119
$as_echo "$_am_result" >&6; }
4120
rm -f confinc confmf
4121
 
4122
# Check whether --enable-dependency-tracking was given.
4123
if test "${enable_dependency_tracking+set}" = set; then :
4124
  enableval=$enable_dependency_tracking;
4125
fi
4126
 
4127
if test "x$enable_dependency_tracking" != xno; then
4128
  am_depcomp="$ac_aux_dir/depcomp"
4129
  AMDEPBACKSLASH='\'
4130
fi
4131
 if test "x$enable_dependency_tracking" != xno; then
4132
  AMDEP_TRUE=
4133
  AMDEP_FALSE='#'
4134
else
4135
  AMDEP_TRUE='#'
4136
  AMDEP_FALSE=
4137
fi
4138
 
4139
 
4140
 
4141
depcc="$CC"   am_compiler_list=
4142
 
4143
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4144
$as_echo_n "checking dependency style of $depcc... " >&6; }
4145
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4146
  $as_echo_n "(cached) " >&6
4147
else
4148
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4149
  # We make a subdir and do the tests there.  Otherwise we can end up
4150
  # making bogus files that we don't know about and never remove.  For
4151
  # instance it was reported that on HP-UX the gcc test will end up
4152
  # making a dummy file named `D' -- because `-MD' means `put the output
4153
  # in D'.
4154
  mkdir conftest.dir
4155
  # Copy depcomp to subdir because otherwise we won't find it if we're
4156
  # using a relative directory.
4157
  cp "$am_depcomp" conftest.dir
4158
  cd conftest.dir
4159
  # We will build objects and dependencies in a subdirectory because
4160
  # it helps to detect inapplicable dependency modes.  For instance
4161
  # both Tru64's cc and ICC support -MD to output dependencies as a
4162
  # side effect of compilation, but ICC will put the dependencies in
4163
  # the current directory while Tru64 will put them in the object
4164
  # directory.
4165
  mkdir sub
4166
 
4167
  am_cv_CC_dependencies_compiler_type=none
4168
  if test "$am_compiler_list" = ""; then
4169
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4170
  fi
4171
  am__universal=false
4172
  case " $depcc " in #(
4173
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4174
     esac
4175
 
4176
  for depmode in $am_compiler_list; do
4177
    # Setup a source with many dependencies, because some compilers
4178
    # like to wrap large dependency lists on column 80 (with \), and
4179
    # we should not choose a depcomp mode which is confused by this.
4180
    #
4181
    # We need to recreate these files for each test, as the compiler may
4182
    # overwrite some of them when testing with obscure command lines.
4183
    # This happens at least with the AIX C compiler.
4184
    : > sub/conftest.c
4185
    for i in 1 2 3 4 5 6; do
4186
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4187
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4188
      # Solaris 8's {/usr,}/bin/sh.
4189
      touch sub/conftst$i.h
4190
    done
4191
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4192
 
4193
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4194
    # mode.  It turns out that the SunPro C++ compiler does not properly
4195
    # handle `-M -o', and we need to detect this.  Also, some Intel
4196
    # versions had trouble with output in subdirs
4197
    am__obj=sub/conftest.${OBJEXT-o}
4198
    am__minus_obj="-o $am__obj"
4199
    case $depmode in
4200
    gcc)
4201
      # This depmode causes a compiler race in universal mode.
4202
      test "$am__universal" = false || continue
4203
      ;;
4204
    nosideeffect)
4205
      # after this tag, mechanisms are not by side-effect, so they'll
4206
      # only be used when explicitly requested
4207
      if test "x$enable_dependency_tracking" = xyes; then
4208
        continue
4209
      else
4210
        break
4211
      fi
4212
      ;;
4213
    msvisualcpp | msvcmsys)
4214
      # This compiler won't grok `-c -o', but also, the minuso test has
4215
      # not run yet.  These depmodes are late enough in the game, and
4216
      # so weak that their functioning should not be impacted.
4217
      am__obj=conftest.${OBJEXT-o}
4218
      am__minus_obj=
4219
      ;;
4220
    none) break ;;
4221
    esac
4222
    if depmode=$depmode \
4223
       source=sub/conftest.c object=$am__obj \
4224
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4225
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4226
         >/dev/null 2>conftest.err &&
4227
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4228
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4229
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4230
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4231
      # icc doesn't choke on unknown options, it will just issue warnings
4232
      # or remarks (even with -Werror).  So we grep stderr for any message
4233
      # that says an option was ignored or not supported.
4234
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4235
      #   icc: Command line warning: ignoring option '-M'; no argument required
4236
      # The diagnosis changed in icc 8.0:
4237
      #   icc: Command line remark: option '-MP' not supported
4238
      if (grep 'ignoring option' conftest.err ||
4239
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4240
        am_cv_CC_dependencies_compiler_type=$depmode
4241
        break
4242
      fi
4243
    fi
4244
  done
4245
 
4246
  cd ..
4247
  rm -rf conftest.dir
4248
else
4249
  am_cv_CC_dependencies_compiler_type=none
4250
fi
4251
 
4252
fi
4253
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4254
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4255
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4256
 
4257
 if
4258
  test "x$enable_dependency_tracking" != xno \
4259
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4260
  am__fastdepCC_TRUE=
4261
  am__fastdepCC_FALSE='#'
4262
else
4263
  am__fastdepCC_TRUE='#'
4264
  am__fastdepCC_FALSE=
4265
fi
4266
 
4267
 
4268
 
4269
 
4270
 
4271
 
4272
# In order to override CFLAGS_FOR_TARGET, all of our special flags go
4273
# in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
4274
# in both places for now and restore CFLAGS at the end of config.
4275
save_CFLAGS="$CFLAGS"
4276
 
4277
# Add -Wall -Werror if we are using GCC.
4278
if test "x$GCC" = "xyes"; then
4279
  XCFLAGS="$XCFLAGS -Wall -Werror"
4280
fi
4281
 
4282
# Find other programs we need.
4283
if test -n "$ac_tool_prefix"; then
4284
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4285
set dummy ${ac_tool_prefix}ar; ac_word=$2
4286
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287
$as_echo_n "checking for $ac_word... " >&6; }
4288
if test "${ac_cv_prog_AR+set}" = set; then :
4289
  $as_echo_n "(cached) " >&6
4290
else
4291
  if test -n "$AR"; then
4292
  ac_cv_prog_AR="$AR" # Let the user override the test.
4293
else
4294
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295
for as_dir in $PATH
4296
do
4297
  IFS=$as_save_IFS
4298
  test -z "$as_dir" && as_dir=.
4299
    for ac_exec_ext in '' $ac_executable_extensions; do
4300
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4301
    ac_cv_prog_AR="${ac_tool_prefix}ar"
4302
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303
    break 2
4304
  fi
4305
done
4306
  done
4307
IFS=$as_save_IFS
4308
 
4309
fi
4310
fi
4311
AR=$ac_cv_prog_AR
4312
if test -n "$AR"; then
4313
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4314
$as_echo "$AR" >&6; }
4315
else
4316
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317
$as_echo "no" >&6; }
4318
fi
4319
 
4320
 
4321
fi
4322
if test -z "$ac_cv_prog_AR"; then
4323
  ac_ct_AR=$AR
4324
  # Extract the first word of "ar", so it can be a program name with args.
4325
set dummy ar; ac_word=$2
4326
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4327
$as_echo_n "checking for $ac_word... " >&6; }
4328
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4329
  $as_echo_n "(cached) " >&6
4330
else
4331
  if test -n "$ac_ct_AR"; then
4332
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4333
else
4334
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335
for as_dir in $PATH
4336
do
4337
  IFS=$as_save_IFS
4338
  test -z "$as_dir" && as_dir=.
4339
    for ac_exec_ext in '' $ac_executable_extensions; do
4340
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4341
    ac_cv_prog_ac_ct_AR="ar"
4342
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343
    break 2
4344
  fi
4345
done
4346
  done
4347
IFS=$as_save_IFS
4348
 
4349
fi
4350
fi
4351
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4352
if test -n "$ac_ct_AR"; then
4353
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4354
$as_echo "$ac_ct_AR" >&6; }
4355
else
4356
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357
$as_echo "no" >&6; }
4358
fi
4359
 
4360
  if test "x$ac_ct_AR" = x; then
4361
    AR=""
4362
  else
4363
    case $cross_compiling:$ac_tool_warned in
4364
yes:)
4365
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4366
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4367
ac_tool_warned=yes ;;
4368
esac
4369
    AR=$ac_ct_AR
4370
  fi
4371
else
4372
  AR="$ac_cv_prog_AR"
4373
fi
4374
 
4375
if test -n "$ac_tool_prefix"; then
4376
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4377
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4379
$as_echo_n "checking for $ac_word... " >&6; }
4380
if test "${ac_cv_prog_RANLIB+set}" = set; then :
4381
  $as_echo_n "(cached) " >&6
4382
else
4383
  if test -n "$RANLIB"; then
4384
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4385
else
4386
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387
for as_dir in $PATH
4388
do
4389
  IFS=$as_save_IFS
4390
  test -z "$as_dir" && as_dir=.
4391
    for ac_exec_ext in '' $ac_executable_extensions; do
4392
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4393
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4394
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4395
    break 2
4396
  fi
4397
done
4398
  done
4399
IFS=$as_save_IFS
4400
 
4401
fi
4402
fi
4403
RANLIB=$ac_cv_prog_RANLIB
4404
if test -n "$RANLIB"; then
4405
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4406
$as_echo "$RANLIB" >&6; }
4407
else
4408
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409
$as_echo "no" >&6; }
4410
fi
4411
 
4412
 
4413
fi
4414
if test -z "$ac_cv_prog_RANLIB"; then
4415
  ac_ct_RANLIB=$RANLIB
4416
  # Extract the first word of "ranlib", so it can be a program name with args.
4417
set dummy ranlib; ac_word=$2
4418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419
$as_echo_n "checking for $ac_word... " >&6; }
4420
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4421
  $as_echo_n "(cached) " >&6
4422
else
4423
  if test -n "$ac_ct_RANLIB"; then
4424
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4425
else
4426
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427
for as_dir in $PATH
4428
do
4429
  IFS=$as_save_IFS
4430
  test -z "$as_dir" && as_dir=.
4431
    for ac_exec_ext in '' $ac_executable_extensions; do
4432
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433
    ac_cv_prog_ac_ct_RANLIB="ranlib"
4434
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435
    break 2
4436
  fi
4437
done
4438
  done
4439
IFS=$as_save_IFS
4440
 
4441
fi
4442
fi
4443
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4444
if test -n "$ac_ct_RANLIB"; then
4445
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4446
$as_echo "$ac_ct_RANLIB" >&6; }
4447
else
4448
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449
$as_echo "no" >&6; }
4450
fi
4451
 
4452
  if test "x$ac_ct_RANLIB" = x; then
4453
    RANLIB="ranlib-not-found-in-path-error"
4454
  else
4455
    case $cross_compiling:$ac_tool_warned in
4456
yes:)
4457
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4458
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4459
ac_tool_warned=yes ;;
4460
esac
4461
    RANLIB=$ac_ct_RANLIB
4462
  fi
4463
else
4464
  RANLIB="$ac_cv_prog_RANLIB"
4465
fi
4466
 
4467
# Extract the first word of "perl", so it can be a program name with args.
4468
set dummy perl; ac_word=$2
4469
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4470
$as_echo_n "checking for $ac_word... " >&6; }
4471
if test "${ac_cv_path_PERL+set}" = set; then :
4472
  $as_echo_n "(cached) " >&6
4473
else
4474
  case $PERL in
4475
  [\\/]* | ?:[\\/]*)
4476
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4477
  ;;
4478
  *)
4479
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480
for as_dir in $PATH
4481
do
4482
  IFS=$as_save_IFS
4483
  test -z "$as_dir" && as_dir=.
4484
    for ac_exec_ext in '' $ac_executable_extensions; do
4485
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4486
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4487
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4488
    break 2
4489
  fi
4490
done
4491
  done
4492
IFS=$as_save_IFS
4493
 
4494
  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4495
  ;;
4496
esac
4497
fi
4498
PERL=$ac_cv_path_PERL
4499
if test -n "$PERL"; then
4500
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4501
$as_echo "$PERL" >&6; }
4502
else
4503
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504
$as_echo "no" >&6; }
4505
fi
4506
 
4507
 
4508
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4509
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4510
set x ${MAKE-make}
4511
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4512
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4513
  $as_echo_n "(cached) " >&6
4514
else
4515
  cat >conftest.make <<\_ACEOF
4516
SHELL = /bin/sh
4517
all:
4518
        @echo '@@@%%%=$(MAKE)=@@@%%%'
4519
_ACEOF
4520
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4521
case `${MAKE-make} -f conftest.make 2>/dev/null` in
4522
  *@@@%%%=?*=@@@%%%*)
4523
    eval ac_cv_prog_make_${ac_make}_set=yes;;
4524
  *)
4525
    eval ac_cv_prog_make_${ac_make}_set=no;;
4526
esac
4527
rm -f conftest.make
4528
fi
4529
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4530
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4531
$as_echo "yes" >&6; }
4532
  SET_MAKE=
4533
else
4534
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535
$as_echo "no" >&6; }
4536
  SET_MAKE="MAKE=${MAKE-make}"
4537
fi
4538
 
4539
 
4540
 
4541
# See if makeinfo has been installed and is modern enough
4542
# that we can use it.
4543
 
4544
  # Extract the first word of "makeinfo", so it can be a program name with args.
4545
set dummy makeinfo; ac_word=$2
4546
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547
$as_echo_n "checking for $ac_word... " >&6; }
4548
if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4549
  $as_echo_n "(cached) " >&6
4550
else
4551
  if test -n "$MAKEINFO"; then
4552
  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4553
else
4554
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555
for as_dir in $PATH
4556
do
4557
  IFS=$as_save_IFS
4558
  test -z "$as_dir" && as_dir=.
4559
    for ac_exec_ext in '' $ac_executable_extensions; do
4560
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561
    ac_cv_prog_MAKEINFO="makeinfo"
4562
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563
    break 2
4564
  fi
4565
done
4566
  done
4567
IFS=$as_save_IFS
4568
 
4569
fi
4570
fi
4571
MAKEINFO=$ac_cv_prog_MAKEINFO
4572
if test -n "$MAKEINFO"; then
4573
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4574
$as_echo "$MAKEINFO" >&6; }
4575
else
4576
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577
$as_echo "no" >&6; }
4578
fi
4579
 
4580
 
4581
  if test -n "$MAKEINFO"; then
4582
    # Found it, now check the version.
4583
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4584
$as_echo_n "checking for modern makeinfo... " >&6; }
4585
if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4586
  $as_echo_n "(cached) " >&6
4587
else
4588
  ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4589
                                     sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4590
 
4591
                    case $ac_prog_version in
4592
                      '')  gcc_cv_prog_makeinfo_modern=no;;
4593
                      4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
4594
                      *)   gcc_cv_prog_makeinfo_modern=no;;
4595
                    esac
4596
 
4597
fi
4598
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4599
$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4600
  else
4601
    gcc_cv_prog_makeinfo_modern=no
4602
  fi
4603
  if test $gcc_cv_prog_makeinfo_modern = no; then
4604
    MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4605
  fi
4606
 
4607
 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4608
  BUILD_INFO_TRUE=
4609
  BUILD_INFO_FALSE='#'
4610
else
4611
  BUILD_INFO_TRUE='#'
4612
  BUILD_INFO_FALSE=
4613
fi
4614
 
4615
 
4616
 
4617
# Configure libtool
4618
case `pwd` in
4619
  *\ * | *\     *)
4620
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4621
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4622
esac
4623
 
4624
 
4625
 
4626
macro_version='2.2.7a'
4627
macro_revision='1.3134'
4628
 
4629
 
4630
 
4631
 
4632
 
4633
 
4634
 
4635
 
4636
 
4637
 
4638
 
4639
 
4640
 
4641
ltmain="$ac_aux_dir/ltmain.sh"
4642
 
4643
# Backslashify metacharacters that are still active within
4644
# double-quoted strings.
4645
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4646
 
4647
# Same as above, but do not quote variable references.
4648
double_quote_subst='s/\(["`\\]\)/\\\1/g'
4649
 
4650
# Sed substitution to delay expansion of an escaped shell variable in a
4651
# double_quote_subst'ed string.
4652
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4653
 
4654
# Sed substitution to delay expansion of an escaped single quote.
4655
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4656
 
4657
# Sed substitution to avoid accidental globbing in evaled expressions
4658
no_glob_subst='s/\*/\\\*/g'
4659
 
4660
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4661
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4662
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4663
 
4664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4665
$as_echo_n "checking how to print strings... " >&6; }
4666
# Test print first, because it will be a builtin if present.
4667
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4668
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4669
  ECHO='print -r --'
4670
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4671
  ECHO='printf %s\n'
4672
else
4673
  # Use this function as a fallback that always works.
4674
  func_fallback_echo ()
4675
  {
4676
    eval 'cat <<_LTECHO_EOF
4677
$1
4678
_LTECHO_EOF'
4679
  }
4680
  ECHO='func_fallback_echo'
4681
fi
4682
 
4683
# func_echo_all arg...
4684
# Invoke $ECHO with all args, space-separated.
4685
func_echo_all ()
4686
{
4687
    $ECHO ""
4688
}
4689
 
4690
case "$ECHO" in
4691
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4692
$as_echo "printf" >&6; } ;;
4693
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4694
$as_echo "print -r" >&6; } ;;
4695
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4696
$as_echo "cat" >&6; } ;;
4697
esac
4698
 
4699
 
4700
 
4701
 
4702
 
4703
 
4704
 
4705
 
4706
 
4707
 
4708
 
4709
 
4710
 
4711
 
4712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4713
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4714
if test "${ac_cv_path_SED+set}" = set; then :
4715
  $as_echo_n "(cached) " >&6
4716
else
4717
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4718
     for ac_i in 1 2 3 4 5 6 7; do
4719
       ac_script="$ac_script$as_nl$ac_script"
4720
     done
4721
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4722
     { ac_script=; unset ac_script;}
4723
     if test -z "$SED"; then
4724
  ac_path_SED_found=false
4725
  # Loop through the user's path and test for each of PROGNAME-LIST
4726
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727
for as_dir in $PATH
4728
do
4729
  IFS=$as_save_IFS
4730
  test -z "$as_dir" && as_dir=.
4731
    for ac_prog in sed gsed; do
4732
    for ac_exec_ext in '' $ac_executable_extensions; do
4733
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4734
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4735
# Check for GNU ac_path_SED and select it if it is found.
4736
  # Check for GNU $ac_path_SED
4737
case `"$ac_path_SED" --version 2>&1` in
4738
*GNU*)
4739
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4740
*)
4741
  ac_count=0
4742
  $as_echo_n 0123456789 >"conftest.in"
4743
  while :
4744
  do
4745
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4746
    mv "conftest.tmp" "conftest.in"
4747
    cp "conftest.in" "conftest.nl"
4748
    $as_echo '' >> "conftest.nl"
4749
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4750
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4751
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4752
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4753
      # Best one so far, save it but keep looking for a better one
4754
      ac_cv_path_SED="$ac_path_SED"
4755
      ac_path_SED_max=$ac_count
4756
    fi
4757
    # 10*(2^10) chars as input seems more than enough
4758
    test $ac_count -gt 10 && break
4759
  done
4760
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4761
esac
4762
 
4763
      $ac_path_SED_found && break 3
4764
    done
4765
  done
4766
  done
4767
IFS=$as_save_IFS
4768
  if test -z "$ac_cv_path_SED"; then
4769
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4770
  fi
4771
else
4772
  ac_cv_path_SED=$SED
4773
fi
4774
 
4775
fi
4776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4777
$as_echo "$ac_cv_path_SED" >&6; }
4778
 SED="$ac_cv_path_SED"
4779
  rm -f conftest.sed
4780
 
4781
test -z "$SED" && SED=sed
4782
Xsed="$SED -e 1s/^X//"
4783
 
4784
 
4785
 
4786
 
4787
 
4788
 
4789
 
4790
 
4791
 
4792
 
4793
 
4794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4795
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4796
if test "${ac_cv_path_GREP+set}" = set; then :
4797
  $as_echo_n "(cached) " >&6
4798
else
4799
  if test -z "$GREP"; then
4800
  ac_path_GREP_found=false
4801
  # Loop through the user's path and test for each of PROGNAME-LIST
4802
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4804
do
4805
  IFS=$as_save_IFS
4806
  test -z "$as_dir" && as_dir=.
4807
    for ac_prog in grep ggrep; do
4808
    for ac_exec_ext in '' $ac_executable_extensions; do
4809
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4810
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4811
# Check for GNU ac_path_GREP and select it if it is found.
4812
  # Check for GNU $ac_path_GREP
4813
case `"$ac_path_GREP" --version 2>&1` in
4814
*GNU*)
4815
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4816
*)
4817
  ac_count=0
4818
  $as_echo_n 0123456789 >"conftest.in"
4819
  while :
4820
  do
4821
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4822
    mv "conftest.tmp" "conftest.in"
4823
    cp "conftest.in" "conftest.nl"
4824
    $as_echo 'GREP' >> "conftest.nl"
4825
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4826
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4827
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4828
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4829
      # Best one so far, save it but keep looking for a better one
4830
      ac_cv_path_GREP="$ac_path_GREP"
4831
      ac_path_GREP_max=$ac_count
4832
    fi
4833
    # 10*(2^10) chars as input seems more than enough
4834
    test $ac_count -gt 10 && break
4835
  done
4836
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4837
esac
4838
 
4839
      $ac_path_GREP_found && break 3
4840
    done
4841
  done
4842
  done
4843
IFS=$as_save_IFS
4844
  if test -z "$ac_cv_path_GREP"; then
4845
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4846
  fi
4847
else
4848
  ac_cv_path_GREP=$GREP
4849
fi
4850
 
4851
fi
4852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4853
$as_echo "$ac_cv_path_GREP" >&6; }
4854
 GREP="$ac_cv_path_GREP"
4855
 
4856
 
4857
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4858
$as_echo_n "checking for egrep... " >&6; }
4859
if test "${ac_cv_path_EGREP+set}" = set; then :
4860
  $as_echo_n "(cached) " >&6
4861
else
4862
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4863
   then ac_cv_path_EGREP="$GREP -E"
4864
   else
4865
     if test -z "$EGREP"; then
4866
  ac_path_EGREP_found=false
4867
  # Loop through the user's path and test for each of PROGNAME-LIST
4868
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4870
do
4871
  IFS=$as_save_IFS
4872
  test -z "$as_dir" && as_dir=.
4873
    for ac_prog in egrep; do
4874
    for ac_exec_ext in '' $ac_executable_extensions; do
4875
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4876
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4877
# Check for GNU ac_path_EGREP and select it if it is found.
4878
  # Check for GNU $ac_path_EGREP
4879
case `"$ac_path_EGREP" --version 2>&1` in
4880
*GNU*)
4881
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4882
*)
4883
  ac_count=0
4884
  $as_echo_n 0123456789 >"conftest.in"
4885
  while :
4886
  do
4887
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4888
    mv "conftest.tmp" "conftest.in"
4889
    cp "conftest.in" "conftest.nl"
4890
    $as_echo 'EGREP' >> "conftest.nl"
4891
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4892
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4893
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4894
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4895
      # Best one so far, save it but keep looking for a better one
4896
      ac_cv_path_EGREP="$ac_path_EGREP"
4897
      ac_path_EGREP_max=$ac_count
4898
    fi
4899
    # 10*(2^10) chars as input seems more than enough
4900
    test $ac_count -gt 10 && break
4901
  done
4902
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4903
esac
4904
 
4905
      $ac_path_EGREP_found && break 3
4906
    done
4907
  done
4908
  done
4909
IFS=$as_save_IFS
4910
  if test -z "$ac_cv_path_EGREP"; then
4911
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4912
  fi
4913
else
4914
  ac_cv_path_EGREP=$EGREP
4915
fi
4916
 
4917
   fi
4918
fi
4919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4920
$as_echo "$ac_cv_path_EGREP" >&6; }
4921
 EGREP="$ac_cv_path_EGREP"
4922
 
4923
 
4924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4925
$as_echo_n "checking for fgrep... " >&6; }
4926
if test "${ac_cv_path_FGREP+set}" = set; then :
4927
  $as_echo_n "(cached) " >&6
4928
else
4929
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4930
   then ac_cv_path_FGREP="$GREP -F"
4931
   else
4932
     if test -z "$FGREP"; then
4933
  ac_path_FGREP_found=false
4934
  # Loop through the user's path and test for each of PROGNAME-LIST
4935
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4937
do
4938
  IFS=$as_save_IFS
4939
  test -z "$as_dir" && as_dir=.
4940
    for ac_prog in fgrep; do
4941
    for ac_exec_ext in '' $ac_executable_extensions; do
4942
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4943
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4944
# Check for GNU ac_path_FGREP and select it if it is found.
4945
  # Check for GNU $ac_path_FGREP
4946
case `"$ac_path_FGREP" --version 2>&1` in
4947
*GNU*)
4948
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4949
*)
4950
  ac_count=0
4951
  $as_echo_n 0123456789 >"conftest.in"
4952
  while :
4953
  do
4954
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4955
    mv "conftest.tmp" "conftest.in"
4956
    cp "conftest.in" "conftest.nl"
4957
    $as_echo 'FGREP' >> "conftest.nl"
4958
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4959
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4960
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4961
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4962
      # Best one so far, save it but keep looking for a better one
4963
      ac_cv_path_FGREP="$ac_path_FGREP"
4964
      ac_path_FGREP_max=$ac_count
4965
    fi
4966
    # 10*(2^10) chars as input seems more than enough
4967
    test $ac_count -gt 10 && break
4968
  done
4969
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4970
esac
4971
 
4972
      $ac_path_FGREP_found && break 3
4973
    done
4974
  done
4975
  done
4976
IFS=$as_save_IFS
4977
  if test -z "$ac_cv_path_FGREP"; then
4978
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4979
  fi
4980
else
4981
  ac_cv_path_FGREP=$FGREP
4982
fi
4983
 
4984
   fi
4985
fi
4986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4987
$as_echo "$ac_cv_path_FGREP" >&6; }
4988
 FGREP="$ac_cv_path_FGREP"
4989
 
4990
 
4991
test -z "$GREP" && GREP=grep
4992
 
4993
 
4994
 
4995
 
4996
 
4997
 
4998
 
4999
 
5000
 
5001
 
5002
 
5003
 
5004
 
5005
 
5006
 
5007
 
5008
 
5009
 
5010
 
5011
# Check whether --with-gnu-ld was given.
5012
if test "${with_gnu_ld+set}" = set; then :
5013
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5014
else
5015
  with_gnu_ld=no
5016
fi
5017
 
5018
ac_prog=ld
5019
if test "$GCC" = yes; then
5020
  # Check if gcc -print-prog-name=ld gives a path.
5021
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5022
$as_echo_n "checking for ld used by $CC... " >&6; }
5023
  case $host in
5024
  *-*-mingw*)
5025
    # gcc leaves a trailing carriage return which upsets mingw
5026
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5027
  *)
5028
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5029
  esac
5030
  case $ac_prog in
5031
    # Accept absolute paths.
5032
    [\\/]* | ?:[\\/]*)
5033
      re_direlt='/[^/][^/]*/\.\./'
5034
      # Canonicalize the pathname of ld
5035
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5036
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5037
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5038
      done
5039
      test -z "$LD" && LD="$ac_prog"
5040
      ;;
5041
  "")
5042
    # If it fails, then pretend we aren't using GCC.
5043
    ac_prog=ld
5044
    ;;
5045
  *)
5046
    # If it is relative, then search for the first ld in PATH.
5047
    with_gnu_ld=unknown
5048
    ;;
5049
  esac
5050
elif test "$with_gnu_ld" = yes; then
5051
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5052
$as_echo_n "checking for GNU ld... " >&6; }
5053
else
5054
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5055
$as_echo_n "checking for non-GNU ld... " >&6; }
5056
fi
5057
if test "${lt_cv_path_LD+set}" = set; then :
5058
  $as_echo_n "(cached) " >&6
5059
else
5060
  if test -z "$LD"; then
5061
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5062
  for ac_dir in $PATH; do
5063
    IFS="$lt_save_ifs"
5064
    test -z "$ac_dir" && ac_dir=.
5065
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5066
      lt_cv_path_LD="$ac_dir/$ac_prog"
5067
      # Check to see if the program is GNU ld.  I'd rather use --version,
5068
      # but apparently some variants of GNU ld only accept -v.
5069
      # Break only if it was the GNU/non-GNU ld that we prefer.
5070
      case `"$lt_cv_path_LD" -v 2>&1 
5071
      *GNU* | *'with BFD'*)
5072
        test "$with_gnu_ld" != no && break
5073
        ;;
5074
      *)
5075
        test "$with_gnu_ld" != yes && break
5076
        ;;
5077
      esac
5078
    fi
5079
  done
5080
  IFS="$lt_save_ifs"
5081
else
5082
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5083
fi
5084
fi
5085
 
5086
LD="$lt_cv_path_LD"
5087
if test -n "$LD"; then
5088
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5089
$as_echo "$LD" >&6; }
5090
else
5091
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092
$as_echo "no" >&6; }
5093
fi
5094
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5095
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5096
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5097
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5098
  $as_echo_n "(cached) " >&6
5099
else
5100
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5101
case `$LD -v 2>&1 
5102
*GNU* | *'with BFD'*)
5103
  lt_cv_prog_gnu_ld=yes
5104
  ;;
5105
*)
5106
  lt_cv_prog_gnu_ld=no
5107
  ;;
5108
esac
5109
fi
5110
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5111
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5112
with_gnu_ld=$lt_cv_prog_gnu_ld
5113
 
5114
 
5115
 
5116
 
5117
 
5118
 
5119
 
5120
 
5121
 
5122
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5123
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5124
if test "${lt_cv_path_NM+set}" = set; then :
5125
  $as_echo_n "(cached) " >&6
5126
else
5127
  if test -n "$NM"; then
5128
  # Let the user override the test.
5129
  lt_cv_path_NM="$NM"
5130
else
5131
  lt_nm_to_check="${ac_tool_prefix}nm"
5132
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5133
    lt_nm_to_check="$lt_nm_to_check nm"
5134
  fi
5135
  for lt_tmp_nm in $lt_nm_to_check; do
5136
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5137
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5138
      IFS="$lt_save_ifs"
5139
      test -z "$ac_dir" && ac_dir=.
5140
      tmp_nm="$ac_dir/$lt_tmp_nm"
5141
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5142
        # Check to see if the nm accepts a BSD-compat flag.
5143
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5144
        #   nm: unknown option "B" ignored
5145
        # Tru64's nm complains that /dev/null is an invalid object file
5146
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5147
        */dev/null* | *'Invalid file or object type'*)
5148
          lt_cv_path_NM="$tmp_nm -B"
5149
          break
5150
          ;;
5151
        *)
5152
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5153
          */dev/null*)
5154
            lt_cv_path_NM="$tmp_nm -p"
5155
            break
5156
            ;;
5157
          *)
5158
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5159
            continue # so that we can try to find one that supports BSD flags
5160
            ;;
5161
          esac
5162
          ;;
5163
        esac
5164
      fi
5165
    done
5166
    IFS="$lt_save_ifs"
5167
  done
5168
  : ${lt_cv_path_NM=no}
5169
fi
5170
fi
5171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5172
$as_echo "$lt_cv_path_NM" >&6; }
5173
if test "$lt_cv_path_NM" != "no"; then
5174
  NM="$lt_cv_path_NM"
5175
else
5176
  # Didn't find any BSD compatible name lister, look for dumpbin.
5177
  if test -n "$DUMPBIN"; then :
5178
    # Let the user override the test.
5179
  else
5180
    if test -n "$ac_tool_prefix"; then
5181
  for ac_prog in dumpbin "link -dump"
5182
  do
5183
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5184
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5185
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186
$as_echo_n "checking for $ac_word... " >&6; }
5187
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5188
  $as_echo_n "(cached) " >&6
5189
else
5190
  if test -n "$DUMPBIN"; then
5191
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5192
else
5193
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194
for as_dir in $PATH
5195
do
5196
  IFS=$as_save_IFS
5197
  test -z "$as_dir" && as_dir=.
5198
    for ac_exec_ext in '' $ac_executable_extensions; do
5199
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5200
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5201
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202
    break 2
5203
  fi
5204
done
5205
  done
5206
IFS=$as_save_IFS
5207
 
5208
fi
5209
fi
5210
DUMPBIN=$ac_cv_prog_DUMPBIN
5211
if test -n "$DUMPBIN"; then
5212
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5213
$as_echo "$DUMPBIN" >&6; }
5214
else
5215
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216
$as_echo "no" >&6; }
5217
fi
5218
 
5219
 
5220
    test -n "$DUMPBIN" && break
5221
  done
5222
fi
5223
if test -z "$DUMPBIN"; then
5224
  ac_ct_DUMPBIN=$DUMPBIN
5225
  for ac_prog in dumpbin "link -dump"
5226
do
5227
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5228
set dummy $ac_prog; ac_word=$2
5229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230
$as_echo_n "checking for $ac_word... " >&6; }
5231
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5232
  $as_echo_n "(cached) " >&6
5233
else
5234
  if test -n "$ac_ct_DUMPBIN"; then
5235
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5236
else
5237
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238
for as_dir in $PATH
5239
do
5240
  IFS=$as_save_IFS
5241
  test -z "$as_dir" && as_dir=.
5242
    for ac_exec_ext in '' $ac_executable_extensions; do
5243
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5244
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5245
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246
    break 2
5247
  fi
5248
done
5249
  done
5250
IFS=$as_save_IFS
5251
 
5252
fi
5253
fi
5254
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5255
if test -n "$ac_ct_DUMPBIN"; then
5256
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5257
$as_echo "$ac_ct_DUMPBIN" >&6; }
5258
else
5259
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260
$as_echo "no" >&6; }
5261
fi
5262
 
5263
 
5264
  test -n "$ac_ct_DUMPBIN" && break
5265
done
5266
 
5267
  if test "x$ac_ct_DUMPBIN" = x; then
5268
    DUMPBIN=":"
5269
  else
5270
    case $cross_compiling:$ac_tool_warned in
5271
yes:)
5272
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5273
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5274
ac_tool_warned=yes ;;
5275
esac
5276
    DUMPBIN=$ac_ct_DUMPBIN
5277
  fi
5278
fi
5279
 
5280
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5281
    *COFF*)
5282
      DUMPBIN="$DUMPBIN -symbols"
5283
      ;;
5284
    *)
5285
      DUMPBIN=:
5286
      ;;
5287
    esac
5288
  fi
5289
 
5290
  if test "$DUMPBIN" != ":"; then
5291
    NM="$DUMPBIN"
5292
  fi
5293
fi
5294
test -z "$NM" && NM=nm
5295
 
5296
 
5297
 
5298
 
5299
 
5300
 
5301
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5302
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5303
if test "${lt_cv_nm_interface+set}" = set; then :
5304
  $as_echo_n "(cached) " >&6
5305
else
5306
  lt_cv_nm_interface="BSD nm"
5307
  echo "int some_variable = 0;" > conftest.$ac_ext
5308
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5309
  (eval "$ac_compile" 2>conftest.err)
5310
  cat conftest.err >&5
5311
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5312
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5313
  cat conftest.err >&5
5314
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5315
  cat conftest.out >&5
5316
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5317
    lt_cv_nm_interface="MS dumpbin"
5318
  fi
5319
  rm -f conftest*
5320
fi
5321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5322
$as_echo "$lt_cv_nm_interface" >&6; }
5323
 
5324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5325
$as_echo_n "checking whether ln -s works... " >&6; }
5326
LN_S=$as_ln_s
5327
if test "$LN_S" = "ln -s"; then
5328
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5329
$as_echo "yes" >&6; }
5330
else
5331
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5332
$as_echo "no, using $LN_S" >&6; }
5333
fi
5334
 
5335
# find the maximum length of command line arguments
5336
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5337
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5338
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5339
  $as_echo_n "(cached) " >&6
5340
else
5341
    i=0
5342
  teststring="ABCD"
5343
 
5344
  case $build_os in
5345
  msdosdjgpp*)
5346
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5347
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5348
    # during glob expansion).  Even if it were fixed, the result of this
5349
    # check would be larger than it should be.
5350
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5351
    ;;
5352
 
5353
  gnu*)
5354
    # Under GNU Hurd, this test is not required because there is
5355
    # no limit to the length of command line arguments.
5356
    # Libtool will interpret -1 as no limit whatsoever
5357
    lt_cv_sys_max_cmd_len=-1;
5358
    ;;
5359
 
5360
  cygwin* | mingw* | cegcc*)
5361
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5362
    # about 5 minutes as the teststring grows exponentially.
5363
    # Worse, since 9x/ME are not pre-emptively multitasking,
5364
    # you end up with a "frozen" computer, even though with patience
5365
    # the test eventually succeeds (with a max line length of 256k).
5366
    # Instead, let's just punt: use the minimum linelength reported by
5367
    # all of the supported platforms: 8192 (on NT/2K/XP).
5368
    lt_cv_sys_max_cmd_len=8192;
5369
    ;;
5370
 
5371
  mint*)
5372
    # On MiNT this can take a long time and run out of memory.
5373
    lt_cv_sys_max_cmd_len=8192;
5374
    ;;
5375
 
5376
  amigaos*)
5377
    # On AmigaOS with pdksh, this test takes hours, literally.
5378
    # So we just punt and use a minimum line length of 8192.
5379
    lt_cv_sys_max_cmd_len=8192;
5380
    ;;
5381
 
5382
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5383
    # This has been around since 386BSD, at least.  Likely further.
5384
    if test -x /sbin/sysctl; then
5385
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5386
    elif test -x /usr/sbin/sysctl; then
5387
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5388
    else
5389
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5390
    fi
5391
    # And add a safety zone
5392
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5393
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5394
    ;;
5395
 
5396
  interix*)
5397
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5398
    lt_cv_sys_max_cmd_len=196608
5399
    ;;
5400
 
5401
  osf*)
5402
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5403
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5404
    # nice to cause kernel panics so lets avoid the loop below.
5405
    # First set a reasonable default.
5406
    lt_cv_sys_max_cmd_len=16384
5407
    #
5408
    if test -x /sbin/sysconfig; then
5409
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5410
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5411
      esac
5412
    fi
5413
    ;;
5414
  sco3.2v5*)
5415
    lt_cv_sys_max_cmd_len=102400
5416
    ;;
5417
  sysv5* | sco5v6* | sysv4.2uw2*)
5418
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5419
    if test -n "$kargmax"; then
5420
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5421
    else
5422
      lt_cv_sys_max_cmd_len=32768
5423
    fi
5424
    ;;
5425
  *)
5426
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5427
    if test -n "$lt_cv_sys_max_cmd_len"; then
5428
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5429
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5430
    else
5431
      # Make teststring a little bigger before we do anything with it.
5432
      # a 1K string should be a reasonable start.
5433
      for i in 1 2 3 4 5 6 7 8 ; do
5434
        teststring=$teststring$teststring
5435
      done
5436
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5437
      # If test is not a shell built-in, we'll probably end up computing a
5438
      # maximum length that is only half of the actual maximum length, but
5439
      # we can't tell.
5440
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5441
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5442
              test $i != 17 # 1/2 MB should be enough
5443
      do
5444
        i=`expr $i + 1`
5445
        teststring=$teststring$teststring
5446
      done
5447
      # Only check the string length outside the loop.
5448
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5449
      teststring=
5450
      # Add a significant safety factor because C++ compilers can tack on
5451
      # massive amounts of additional arguments before passing them to the
5452
      # linker.  It appears as though 1/2 is a usable value.
5453
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5454
    fi
5455
    ;;
5456
  esac
5457
 
5458
fi
5459
 
5460
if test -n $lt_cv_sys_max_cmd_len ; then
5461
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5462
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5463
else
5464
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5465
$as_echo "none" >&6; }
5466
fi
5467
max_cmd_len=$lt_cv_sys_max_cmd_len
5468
 
5469
 
5470
 
5471
 
5472
 
5473
 
5474
: ${CP="cp -f"}
5475
: ${MV="mv -f"}
5476
: ${RM="rm -f"}
5477
 
5478
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5479
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5480
# Try some XSI features
5481
xsi_shell=no
5482
( _lt_dummy="a/b/c"
5483
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5484
      = c,a/b,, \
5485
    && eval 'test $(( 1 + 1 )) -eq 2 \
5486
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5487
  && xsi_shell=yes
5488
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5489
$as_echo "$xsi_shell" >&6; }
5490
 
5491
 
5492
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5493
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5494
lt_shell_append=no
5495
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5496
    >/dev/null 2>&1 \
5497
  && lt_shell_append=yes
5498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5499
$as_echo "$lt_shell_append" >&6; }
5500
 
5501
 
5502
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5503
  lt_unset=unset
5504
else
5505
  lt_unset=false
5506
fi
5507
 
5508
 
5509
 
5510
 
5511
 
5512
# test EBCDIC or ASCII
5513
case `echo X|tr X '\101'` in
5514
 A) # ASCII based system
5515
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5516
  lt_SP2NL='tr \040 \012'
5517
  lt_NL2SP='tr \015\012 \040\040'
5518
  ;;
5519
 *) # EBCDIC based system
5520
  lt_SP2NL='tr \100 \n'
5521
  lt_NL2SP='tr \r\n \100\100'
5522
  ;;
5523
esac
5524
 
5525
 
5526
 
5527
 
5528
 
5529
 
5530
 
5531
 
5532
 
5533
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5534
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5535
if test "${lt_cv_ld_reload_flag+set}" = set; then :
5536
  $as_echo_n "(cached) " >&6
5537
else
5538
  lt_cv_ld_reload_flag='-r'
5539
fi
5540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5541
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5542
reload_flag=$lt_cv_ld_reload_flag
5543
case $reload_flag in
5544
"" | " "*) ;;
5545
*) reload_flag=" $reload_flag" ;;
5546
esac
5547
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5548
case $host_os in
5549
  darwin*)
5550
    if test "$GCC" = yes; then
5551
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5552
    else
5553
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5554
    fi
5555
    ;;
5556
esac
5557
 
5558
 
5559
 
5560
 
5561
 
5562
 
5563
 
5564
 
5565
 
5566
if test -n "$ac_tool_prefix"; then
5567
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5568
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5569
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570
$as_echo_n "checking for $ac_word... " >&6; }
5571
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5572
  $as_echo_n "(cached) " >&6
5573
else
5574
  if test -n "$OBJDUMP"; then
5575
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5576
else
5577
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578
for as_dir in $PATH
5579
do
5580
  IFS=$as_save_IFS
5581
  test -z "$as_dir" && as_dir=.
5582
    for ac_exec_ext in '' $ac_executable_extensions; do
5583
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5584
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5585
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586
    break 2
5587
  fi
5588
done
5589
  done
5590
IFS=$as_save_IFS
5591
 
5592
fi
5593
fi
5594
OBJDUMP=$ac_cv_prog_OBJDUMP
5595
if test -n "$OBJDUMP"; then
5596
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5597
$as_echo "$OBJDUMP" >&6; }
5598
else
5599
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600
$as_echo "no" >&6; }
5601
fi
5602
 
5603
 
5604
fi
5605
if test -z "$ac_cv_prog_OBJDUMP"; then
5606
  ac_ct_OBJDUMP=$OBJDUMP
5607
  # Extract the first word of "objdump", so it can be a program name with args.
5608
set dummy objdump; ac_word=$2
5609
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610
$as_echo_n "checking for $ac_word... " >&6; }
5611
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5612
  $as_echo_n "(cached) " >&6
5613
else
5614
  if test -n "$ac_ct_OBJDUMP"; then
5615
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5616
else
5617
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618
for as_dir in $PATH
5619
do
5620
  IFS=$as_save_IFS
5621
  test -z "$as_dir" && as_dir=.
5622
    for ac_exec_ext in '' $ac_executable_extensions; do
5623
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5625
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626
    break 2
5627
  fi
5628
done
5629
  done
5630
IFS=$as_save_IFS
5631
 
5632
fi
5633
fi
5634
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5635
if test -n "$ac_ct_OBJDUMP"; then
5636
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5637
$as_echo "$ac_ct_OBJDUMP" >&6; }
5638
else
5639
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640
$as_echo "no" >&6; }
5641
fi
5642
 
5643
  if test "x$ac_ct_OBJDUMP" = x; then
5644
    OBJDUMP="false"
5645
  else
5646
    case $cross_compiling:$ac_tool_warned in
5647
yes:)
5648
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5649
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5650
ac_tool_warned=yes ;;
5651
esac
5652
    OBJDUMP=$ac_ct_OBJDUMP
5653
  fi
5654
else
5655
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5656
fi
5657
 
5658
test -z "$OBJDUMP" && OBJDUMP=objdump
5659
 
5660
 
5661
 
5662
 
5663
 
5664
 
5665
 
5666
 
5667
 
5668
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5669
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5670
if test "${lt_cv_deplibs_check_method+set}" = set; then :
5671
  $as_echo_n "(cached) " >&6
5672
else
5673
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5674
lt_cv_file_magic_test_file=
5675
lt_cv_deplibs_check_method='unknown'
5676
# Need to set the preceding variable on all platforms that support
5677
# interlibrary dependencies.
5678
# 'none' -- dependencies not supported.
5679
# `unknown' -- same as none, but documents that we really don't know.
5680
# 'pass_all' -- all dependencies passed with no checks.
5681
# 'test_compile' -- check by making test program.
5682
# 'file_magic [[regex]]' -- check by looking for files in library path
5683
# which responds to the $file_magic_cmd with a given extended regex.
5684
# If you have `file' or equivalent on your system and you're not sure
5685
# whether `pass_all' will *always* work, you probably want this one.
5686
 
5687
case $host_os in
5688
aix[4-9]*)
5689
  lt_cv_deplibs_check_method=pass_all
5690
  ;;
5691
 
5692
beos*)
5693
  lt_cv_deplibs_check_method=pass_all
5694
  ;;
5695
 
5696
bsdi[45]*)
5697
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5698
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5699
  lt_cv_file_magic_test_file=/shlib/libc.so
5700
  ;;
5701
 
5702
cygwin*)
5703
  # func_win32_libid is a shell function defined in ltmain.sh
5704
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5705
  lt_cv_file_magic_cmd='func_win32_libid'
5706
  ;;
5707
 
5708
mingw* | pw32*)
5709
  # Base MSYS/MinGW do not provide the 'file' command needed by
5710
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5711
  # unless we find 'file', for example because we are cross-compiling.
5712
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5713
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5714
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5715
    lt_cv_file_magic_cmd='func_win32_libid'
5716
  else
5717
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5718
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5719
  fi
5720
  ;;
5721
 
5722
cegcc*)
5723
  # use the weaker test based on 'objdump'. See mingw*.
5724
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5725
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5726
  ;;
5727
 
5728
darwin* | rhapsody*)
5729
  lt_cv_deplibs_check_method=pass_all
5730
  ;;
5731
 
5732
freebsd* | dragonfly*)
5733
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5734
    case $host_cpu in
5735
    i*86 )
5736
      # Not sure whether the presence of OpenBSD here was a mistake.
5737
      # Let's accept both of them until this is cleared up.
5738
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5739
      lt_cv_file_magic_cmd=/usr/bin/file
5740
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5741
      ;;
5742
    esac
5743
  else
5744
    lt_cv_deplibs_check_method=pass_all
5745
  fi
5746
  ;;
5747
 
5748
gnu*)
5749
  lt_cv_deplibs_check_method=pass_all
5750
  ;;
5751
 
5752
haiku*)
5753
  lt_cv_deplibs_check_method=pass_all
5754
  ;;
5755
 
5756
hpux10.20* | hpux11*)
5757
  lt_cv_file_magic_cmd=/usr/bin/file
5758
  case $host_cpu in
5759
  ia64*)
5760
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5761
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5762
    ;;
5763
  hppa*64*)
5764
    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]'
5765
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5766
    ;;
5767
  *)
5768
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5769
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5770
    ;;
5771
  esac
5772
  ;;
5773
 
5774
interix[3-9]*)
5775
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5776
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5777
  ;;
5778
 
5779
irix5* | irix6* | nonstopux*)
5780
  case $LD in
5781
  *-32|*"-32 ") libmagic=32-bit;;
5782
  *-n32|*"-n32 ") libmagic=N32;;
5783
  *-64|*"-64 ") libmagic=64-bit;;
5784
  *) libmagic=never-match;;
5785
  esac
5786
  lt_cv_deplibs_check_method=pass_all
5787
  ;;
5788
 
5789
# This must be Linux ELF.
5790
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5791
  lt_cv_deplibs_check_method=pass_all
5792
  ;;
5793
 
5794
netbsd*)
5795
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5796
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5797
  else
5798
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5799
  fi
5800
  ;;
5801
 
5802
newos6*)
5803
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5804
  lt_cv_file_magic_cmd=/usr/bin/file
5805
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5806
  ;;
5807
 
5808
*nto* | *qnx*)
5809
  lt_cv_deplibs_check_method=pass_all
5810
  ;;
5811
 
5812
openbsd*)
5813
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5814
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5815
  else
5816
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5817
  fi
5818
  ;;
5819
 
5820
osf3* | osf4* | osf5*)
5821
  lt_cv_deplibs_check_method=pass_all
5822
  ;;
5823
 
5824
rdos*)
5825
  lt_cv_deplibs_check_method=pass_all
5826
  ;;
5827
 
5828
solaris*)
5829
  lt_cv_deplibs_check_method=pass_all
5830
  ;;
5831
 
5832
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5833
  lt_cv_deplibs_check_method=pass_all
5834
  ;;
5835
 
5836
sysv4 | sysv4.3*)
5837
  case $host_vendor in
5838
  motorola)
5839
    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]'
5840
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5841
    ;;
5842
  ncr)
5843
    lt_cv_deplibs_check_method=pass_all
5844
    ;;
5845
  sequent)
5846
    lt_cv_file_magic_cmd='/bin/file'
5847
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5848
    ;;
5849
  sni)
5850
    lt_cv_file_magic_cmd='/bin/file'
5851
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5852
    lt_cv_file_magic_test_file=/lib/libc.so
5853
    ;;
5854
  siemens)
5855
    lt_cv_deplibs_check_method=pass_all
5856
    ;;
5857
  pc)
5858
    lt_cv_deplibs_check_method=pass_all
5859
    ;;
5860
  esac
5861
  ;;
5862
 
5863
tpf*)
5864
  lt_cv_deplibs_check_method=pass_all
5865
  ;;
5866
esac
5867
 
5868
fi
5869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5870
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5871
file_magic_cmd=$lt_cv_file_magic_cmd
5872
deplibs_check_method=$lt_cv_deplibs_check_method
5873
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5874
 
5875
 
5876
 
5877
 
5878
 
5879
 
5880
 
5881
 
5882
 
5883
 
5884
 
5885
 
5886
if test -n "$ac_tool_prefix"; then
5887
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5888
set dummy ${ac_tool_prefix}ar; ac_word=$2
5889
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890
$as_echo_n "checking for $ac_word... " >&6; }
5891
if test "${ac_cv_prog_AR+set}" = set; then :
5892
  $as_echo_n "(cached) " >&6
5893
else
5894
  if test -n "$AR"; then
5895
  ac_cv_prog_AR="$AR" # Let the user override the test.
5896
else
5897
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898
for as_dir in $PATH
5899
do
5900
  IFS=$as_save_IFS
5901
  test -z "$as_dir" && as_dir=.
5902
    for ac_exec_ext in '' $ac_executable_extensions; do
5903
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5905
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906
    break 2
5907
  fi
5908
done
5909
  done
5910
IFS=$as_save_IFS
5911
 
5912
fi
5913
fi
5914
AR=$ac_cv_prog_AR
5915
if test -n "$AR"; then
5916
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5917
$as_echo "$AR" >&6; }
5918
else
5919
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920
$as_echo "no" >&6; }
5921
fi
5922
 
5923
 
5924
fi
5925
if test -z "$ac_cv_prog_AR"; then
5926
  ac_ct_AR=$AR
5927
  # Extract the first word of "ar", so it can be a program name with args.
5928
set dummy ar; ac_word=$2
5929
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930
$as_echo_n "checking for $ac_word... " >&6; }
5931
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5932
  $as_echo_n "(cached) " >&6
5933
else
5934
  if test -n "$ac_ct_AR"; then
5935
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5936
else
5937
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938
for as_dir in $PATH
5939
do
5940
  IFS=$as_save_IFS
5941
  test -z "$as_dir" && as_dir=.
5942
    for ac_exec_ext in '' $ac_executable_extensions; do
5943
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5944
    ac_cv_prog_ac_ct_AR="ar"
5945
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946
    break 2
5947
  fi
5948
done
5949
  done
5950
IFS=$as_save_IFS
5951
 
5952
fi
5953
fi
5954
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5955
if test -n "$ac_ct_AR"; then
5956
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5957
$as_echo "$ac_ct_AR" >&6; }
5958
else
5959
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960
$as_echo "no" >&6; }
5961
fi
5962
 
5963
  if test "x$ac_ct_AR" = x; then
5964
    AR="false"
5965
  else
5966
    case $cross_compiling:$ac_tool_warned in
5967
yes:)
5968
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5969
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5970
ac_tool_warned=yes ;;
5971
esac
5972
    AR=$ac_ct_AR
5973
  fi
5974
else
5975
  AR="$ac_cv_prog_AR"
5976
fi
5977
 
5978
test -z "$AR" && AR=ar
5979
test -z "$AR_FLAGS" && AR_FLAGS=cru
5980
 
5981
 
5982
 
5983
 
5984
 
5985
 
5986
 
5987
 
5988
 
5989
 
5990
 
5991
if test -n "$ac_tool_prefix"; then
5992
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5993
set dummy ${ac_tool_prefix}strip; ac_word=$2
5994
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995
$as_echo_n "checking for $ac_word... " >&6; }
5996
if test "${ac_cv_prog_STRIP+set}" = set; then :
5997
  $as_echo_n "(cached) " >&6
5998
else
5999
  if test -n "$STRIP"; then
6000
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6001
else
6002
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003
for as_dir in $PATH
6004
do
6005
  IFS=$as_save_IFS
6006
  test -z "$as_dir" && as_dir=.
6007
    for ac_exec_ext in '' $ac_executable_extensions; do
6008
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6009
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6010
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6011
    break 2
6012
  fi
6013
done
6014
  done
6015
IFS=$as_save_IFS
6016
 
6017
fi
6018
fi
6019
STRIP=$ac_cv_prog_STRIP
6020
if test -n "$STRIP"; then
6021
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6022
$as_echo "$STRIP" >&6; }
6023
else
6024
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025
$as_echo "no" >&6; }
6026
fi
6027
 
6028
 
6029
fi
6030
if test -z "$ac_cv_prog_STRIP"; then
6031
  ac_ct_STRIP=$STRIP
6032
  # Extract the first word of "strip", so it can be a program name with args.
6033
set dummy strip; ac_word=$2
6034
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035
$as_echo_n "checking for $ac_word... " >&6; }
6036
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6037
  $as_echo_n "(cached) " >&6
6038
else
6039
  if test -n "$ac_ct_STRIP"; then
6040
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6041
else
6042
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043
for as_dir in $PATH
6044
do
6045
  IFS=$as_save_IFS
6046
  test -z "$as_dir" && as_dir=.
6047
    for ac_exec_ext in '' $ac_executable_extensions; do
6048
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6049
    ac_cv_prog_ac_ct_STRIP="strip"
6050
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051
    break 2
6052
  fi
6053
done
6054
  done
6055
IFS=$as_save_IFS
6056
 
6057
fi
6058
fi
6059
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6060
if test -n "$ac_ct_STRIP"; then
6061
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6062
$as_echo "$ac_ct_STRIP" >&6; }
6063
else
6064
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065
$as_echo "no" >&6; }
6066
fi
6067
 
6068
  if test "x$ac_ct_STRIP" = x; then
6069
    STRIP=":"
6070
  else
6071
    case $cross_compiling:$ac_tool_warned in
6072
yes:)
6073
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6074
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6075
ac_tool_warned=yes ;;
6076
esac
6077
    STRIP=$ac_ct_STRIP
6078
  fi
6079
else
6080
  STRIP="$ac_cv_prog_STRIP"
6081
fi
6082
 
6083
test -z "$STRIP" && STRIP=:
6084
 
6085
 
6086
 
6087
 
6088
 
6089
 
6090
if test -n "$ac_tool_prefix"; then
6091
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6092
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6093
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094
$as_echo_n "checking for $ac_word... " >&6; }
6095
if test "${ac_cv_prog_RANLIB+set}" = set; then :
6096
  $as_echo_n "(cached) " >&6
6097
else
6098
  if test -n "$RANLIB"; then
6099
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6100
else
6101
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102
for as_dir in $PATH
6103
do
6104
  IFS=$as_save_IFS
6105
  test -z "$as_dir" && as_dir=.
6106
    for ac_exec_ext in '' $ac_executable_extensions; do
6107
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6108
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6109
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6110
    break 2
6111
  fi
6112
done
6113
  done
6114
IFS=$as_save_IFS
6115
 
6116
fi
6117
fi
6118
RANLIB=$ac_cv_prog_RANLIB
6119
if test -n "$RANLIB"; then
6120
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6121
$as_echo "$RANLIB" >&6; }
6122
else
6123
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124
$as_echo "no" >&6; }
6125
fi
6126
 
6127
 
6128
fi
6129
if test -z "$ac_cv_prog_RANLIB"; then
6130
  ac_ct_RANLIB=$RANLIB
6131
  # Extract the first word of "ranlib", so it can be a program name with args.
6132
set dummy ranlib; ac_word=$2
6133
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134
$as_echo_n "checking for $ac_word... " >&6; }
6135
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6136
  $as_echo_n "(cached) " >&6
6137
else
6138
  if test -n "$ac_ct_RANLIB"; then
6139
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6140
else
6141
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142
for as_dir in $PATH
6143
do
6144
  IFS=$as_save_IFS
6145
  test -z "$as_dir" && as_dir=.
6146
    for ac_exec_ext in '' $ac_executable_extensions; do
6147
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6148
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6149
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150
    break 2
6151
  fi
6152
done
6153
  done
6154
IFS=$as_save_IFS
6155
 
6156
fi
6157
fi
6158
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6159
if test -n "$ac_ct_RANLIB"; then
6160
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6161
$as_echo "$ac_ct_RANLIB" >&6; }
6162
else
6163
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164
$as_echo "no" >&6; }
6165
fi
6166
 
6167
  if test "x$ac_ct_RANLIB" = x; then
6168
    RANLIB=":"
6169
  else
6170
    case $cross_compiling:$ac_tool_warned in
6171
yes:)
6172
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6173
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6174
ac_tool_warned=yes ;;
6175
esac
6176
    RANLIB=$ac_ct_RANLIB
6177
  fi
6178
else
6179
  RANLIB="$ac_cv_prog_RANLIB"
6180
fi
6181
 
6182
test -z "$RANLIB" && RANLIB=:
6183
 
6184
 
6185
 
6186
 
6187
 
6188
 
6189
# Determine commands to create old-style static archives.
6190
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6191
old_postinstall_cmds='chmod 644 $oldlib'
6192
old_postuninstall_cmds=
6193
 
6194
if test -n "$RANLIB"; then
6195
  case $host_os in
6196
  openbsd*)
6197
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6198
    ;;
6199
  *)
6200
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6201
    ;;
6202
  esac
6203
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6204
fi
6205
 
6206
case $host_os in
6207
  darwin*)
6208
    lock_old_archive_extraction=yes ;;
6209
  *)
6210
    lock_old_archive_extraction=no ;;
6211
esac
6212
 
6213
 
6214
 
6215
 
6216
 
6217
 
6218
 
6219
 
6220
 
6221
 
6222
 
6223
 
6224
 
6225
 
6226
 
6227
 
6228
 
6229
 
6230
 
6231
 
6232
 
6233
 
6234
 
6235
 
6236
 
6237
 
6238
 
6239
 
6240
 
6241
 
6242
 
6243
 
6244
 
6245
 
6246
 
6247
 
6248
 
6249
 
6250
 
6251
# If no C compiler was specified, use CC.
6252
LTCC=${LTCC-"$CC"}
6253
 
6254
# If no C compiler flags were specified, use CFLAGS.
6255
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6256
 
6257
# Allow CC to be a program name with arguments.
6258
compiler=$CC
6259
 
6260
 
6261
# Check for command to grab the raw symbol name followed by C symbol from nm.
6262
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6263
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6264
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6265
  $as_echo_n "(cached) " >&6
6266
else
6267
 
6268
# These are sane defaults that work on at least a few old systems.
6269
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6270
 
6271
# Character class describing NM global symbol codes.
6272
symcode='[BCDEGRST]'
6273
 
6274
# Regexp to match symbols that can be accessed directly from C.
6275
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6276
 
6277
# Define system-specific variables.
6278
case $host_os in
6279
aix*)
6280
  symcode='[BCDT]'
6281
  ;;
6282
cygwin* | mingw* | pw32* | cegcc*)
6283
  symcode='[ABCDGISTW]'
6284
  ;;
6285
hpux*)
6286
  if test "$host_cpu" = ia64; then
6287
    symcode='[ABCDEGRST]'
6288
  fi
6289
  ;;
6290
irix* | nonstopux*)
6291
  symcode='[BCDEGRST]'
6292
  ;;
6293
osf*)
6294
  symcode='[BCDEGQRST]'
6295
  ;;
6296
solaris*)
6297
  symcode='[BDRT]'
6298
  ;;
6299
sco3.2v5*)
6300
  symcode='[DT]'
6301
  ;;
6302
sysv4.2uw2*)
6303
  symcode='[DT]'
6304
  ;;
6305
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6306
  symcode='[ABDT]'
6307
  ;;
6308
sysv4)
6309
  symcode='[DFNSTU]'
6310
  ;;
6311
esac
6312
 
6313
# If we're using GNU nm, then use its standard symbol codes.
6314
case `$NM -V 2>&1` in
6315
*GNU* | *'with BFD'*)
6316
  symcode='[ABCDGIRSTW]' ;;
6317
esac
6318
 
6319
# Transform an extracted symbol line into a proper C declaration.
6320
# Some systems (esp. on ia64) link data and code symbols differently,
6321
# so use this general approach.
6322
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6323
 
6324
# Transform an extracted symbol line into symbol name and symbol address
6325
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6326
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'"
6327
 
6328
# Handle CRLF in mingw tool chain
6329
opt_cr=
6330
case $build_os in
6331
mingw*)
6332
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6333
  ;;
6334
esac
6335
 
6336
# Try without a prefix underscore, then with it.
6337
for ac_symprfx in "" "_"; do
6338
 
6339
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6340
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6341
 
6342
  # Write the raw and C identifiers.
6343
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6344
    # Fake it for dumpbin and say T for any non-static function
6345
    # and D for any global variable.
6346
    # Also find C++ and __fastcall symbols from MSVC++,
6347
    # which start with @ or ?.
6348
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6349
"     {last_section=section; section=\$ 3};"\
6350
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6351
"     \$ 0!~/External *\|/{next};"\
6352
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6353
"     {if(hide[section]) next};"\
6354
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6355
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6356
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6357
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6358
"     ' prfx=^$ac_symprfx"
6359
  else
6360
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6361
  fi
6362
 
6363
  # Check to see that the pipe works correctly.
6364
  pipe_works=no
6365
 
6366
  rm -f conftest*
6367
  cat > conftest.$ac_ext <<_LT_EOF
6368
#ifdef __cplusplus
6369
extern "C" {
6370
#endif
6371
char nm_test_var;
6372
void nm_test_func(void);
6373
void nm_test_func(void){}
6374
#ifdef __cplusplus
6375
}
6376
#endif
6377
int main(){nm_test_var='a';nm_test_func();return(0);}
6378
_LT_EOF
6379
 
6380
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6381
  (eval $ac_compile) 2>&5
6382
  ac_status=$?
6383
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6384
  test $ac_status = 0; }; then
6385
    # Now try to grab the symbols.
6386
    nlist=conftest.nm
6387
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6388
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6389
  ac_status=$?
6390
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6391
  test $ac_status = 0; } && test -s "$nlist"; then
6392
      # Try sorting and uniquifying the output.
6393
      if sort "$nlist" | uniq > "$nlist"T; then
6394
        mv -f "$nlist"T "$nlist"
6395
      else
6396
        rm -f "$nlist"T
6397
      fi
6398
 
6399
      # Make sure that we snagged all the symbols we need.
6400
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6401
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6402
          cat <<_LT_EOF > conftest.$ac_ext
6403
#ifdef __cplusplus
6404
extern "C" {
6405
#endif
6406
 
6407
_LT_EOF
6408
          # Now generate the symbol file.
6409
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6410
 
6411
          cat <<_LT_EOF >> conftest.$ac_ext
6412
 
6413
/* The mapping between symbol names and symbols.  */
6414
const struct {
6415
  const char *name;
6416
  void       *address;
6417
}
6418
lt__PROGRAM__LTX_preloaded_symbols[] =
6419
{
6420
  { "@PROGRAM@", (void *) 0 },
6421
_LT_EOF
6422
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6423
          cat <<\_LT_EOF >> conftest.$ac_ext
6424
  {0, (void *) 0}
6425
};
6426
 
6427
/* This works around a problem in FreeBSD linker */
6428
#ifdef FREEBSD_WORKAROUND
6429
static const void *lt_preloaded_setup() {
6430
  return lt__PROGRAM__LTX_preloaded_symbols;
6431
}
6432
#endif
6433
 
6434
#ifdef __cplusplus
6435
}
6436
#endif
6437
_LT_EOF
6438
          # Now try linking the two files.
6439
          mv conftest.$ac_objext conftstm.$ac_objext
6440
          lt_save_LIBS="$LIBS"
6441
          lt_save_CFLAGS="$CFLAGS"
6442
          LIBS="conftstm.$ac_objext"
6443
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6444
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6445
  (eval $ac_link) 2>&5
6446
  ac_status=$?
6447
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6448
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6449
            pipe_works=yes
6450
          fi
6451
          LIBS="$lt_save_LIBS"
6452
          CFLAGS="$lt_save_CFLAGS"
6453
        else
6454
          echo "cannot find nm_test_func in $nlist" >&5
6455
        fi
6456
      else
6457
        echo "cannot find nm_test_var in $nlist" >&5
6458
      fi
6459
    else
6460
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6461
    fi
6462
  else
6463
    echo "$progname: failed program was:" >&5
6464
    cat conftest.$ac_ext >&5
6465
  fi
6466
  rm -rf conftest* conftst*
6467
 
6468
  # Do not use the global_symbol_pipe unless it works.
6469
  if test "$pipe_works" = yes; then
6470
    break
6471
  else
6472
    lt_cv_sys_global_symbol_pipe=
6473
  fi
6474
done
6475
 
6476
fi
6477
 
6478
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6479
  lt_cv_sys_global_symbol_to_cdecl=
6480
fi
6481
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6482
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6483
$as_echo "failed" >&6; }
6484
else
6485
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6486
$as_echo "ok" >&6; }
6487
fi
6488
 
6489
 
6490
 
6491
 
6492
 
6493
 
6494
 
6495
 
6496
 
6497
 
6498
 
6499
 
6500
 
6501
 
6502
 
6503
 
6504
 
6505
 
6506
 
6507
 
6508
 
6509
 
6510
 
6511
# Check whether --enable-libtool-lock was given.
6512
if test "${enable_libtool_lock+set}" = set; then :
6513
  enableval=$enable_libtool_lock;
6514
fi
6515
 
6516
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6517
 
6518
# Some flags need to be propagated to the compiler or linker for good
6519
# libtool support.
6520
case $host in
6521
ia64-*-hpux*)
6522
  # Find out which ABI we are using.
6523
  echo 'int i;' > conftest.$ac_ext
6524
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6525
  (eval $ac_compile) 2>&5
6526
  ac_status=$?
6527
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6528
  test $ac_status = 0; }; then
6529
    case `/usr/bin/file conftest.$ac_objext` in
6530
      *ELF-32*)
6531
        HPUX_IA64_MODE="32"
6532
        ;;
6533
      *ELF-64*)
6534
        HPUX_IA64_MODE="64"
6535
        ;;
6536
    esac
6537
  fi
6538
  rm -rf conftest*
6539
  ;;
6540
*-*-irix6*)
6541
  # Find out which ABI we are using.
6542
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6543
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6544
  (eval $ac_compile) 2>&5
6545
  ac_status=$?
6546
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547
  test $ac_status = 0; }; then
6548
    if test "$lt_cv_prog_gnu_ld" = yes; then
6549
      case `/usr/bin/file conftest.$ac_objext` in
6550
        *32-bit*)
6551
          LD="${LD-ld} -melf32bsmip"
6552
          ;;
6553
        *N32*)
6554
          LD="${LD-ld} -melf32bmipn32"
6555
          ;;
6556
        *64-bit*)
6557
          LD="${LD-ld} -melf64bmip"
6558
        ;;
6559
      esac
6560
    else
6561
      case `/usr/bin/file conftest.$ac_objext` in
6562
        *32-bit*)
6563
          LD="${LD-ld} -32"
6564
          ;;
6565
        *N32*)
6566
          LD="${LD-ld} -n32"
6567
          ;;
6568
        *64-bit*)
6569
          LD="${LD-ld} -64"
6570
          ;;
6571
      esac
6572
    fi
6573
  fi
6574
  rm -rf conftest*
6575
  ;;
6576
 
6577
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6578
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6579
  # Find out which ABI we are using.
6580
  echo 'int i;' > conftest.$ac_ext
6581
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6582
  (eval $ac_compile) 2>&5
6583
  ac_status=$?
6584
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6585
  test $ac_status = 0; }; then
6586
    case `/usr/bin/file conftest.o` in
6587
      *32-bit*)
6588
        case $host in
6589
          x86_64-*kfreebsd*-gnu)
6590
            LD="${LD-ld} -m elf_i386_fbsd"
6591
            ;;
6592
          x86_64-*linux*)
6593
            LD="${LD-ld} -m elf_i386"
6594
            ;;
6595
          ppc64-*linux*|powerpc64-*linux*)
6596
            LD="${LD-ld} -m elf32ppclinux"
6597
            ;;
6598
          s390x-*linux*)
6599
            LD="${LD-ld} -m elf_s390"
6600
            ;;
6601
          sparc64-*linux*)
6602
            LD="${LD-ld} -m elf32_sparc"
6603
            ;;
6604
        esac
6605
        ;;
6606
      *64-bit*)
6607
        case $host in
6608
          x86_64-*kfreebsd*-gnu)
6609
            LD="${LD-ld} -m elf_x86_64_fbsd"
6610
            ;;
6611
          x86_64-*linux*)
6612
            LD="${LD-ld} -m elf_x86_64"
6613
            ;;
6614
          ppc*-*linux*|powerpc*-*linux*)
6615
            LD="${LD-ld} -m elf64ppc"
6616
            ;;
6617
          s390*-*linux*|s390*-*tpf*)
6618
            LD="${LD-ld} -m elf64_s390"
6619
            ;;
6620
          sparc*-*linux*)
6621
            LD="${LD-ld} -m elf64_sparc"
6622
            ;;
6623
        esac
6624
        ;;
6625
    esac
6626
  fi
6627
  rm -rf conftest*
6628
  ;;
6629
 
6630
*-*-sco3.2v5*)
6631
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6632
  SAVE_CFLAGS="$CFLAGS"
6633
  CFLAGS="$CFLAGS -belf"
6634
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6635
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6636
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6637
  $as_echo_n "(cached) " >&6
6638
else
6639
  ac_ext=c
6640
ac_cpp='$CPP $CPPFLAGS'
6641
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6642
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6643
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6644
 
6645
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646
/* end confdefs.h.  */
6647
 
6648
int
6649
main ()
6650
{
6651
 
6652
  ;
6653
  return 0;
6654
}
6655
_ACEOF
6656
if ac_fn_c_try_link "$LINENO"; then :
6657
  lt_cv_cc_needs_belf=yes
6658
else
6659
  lt_cv_cc_needs_belf=no
6660
fi
6661
rm -f core conftest.err conftest.$ac_objext \
6662
    conftest$ac_exeext conftest.$ac_ext
6663
     ac_ext=c
6664
ac_cpp='$CPP $CPPFLAGS'
6665
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6666
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6667
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6668
 
6669
fi
6670
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6671
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6672
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6673
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6674
    CFLAGS="$SAVE_CFLAGS"
6675
  fi
6676
  ;;
6677
sparc*-*solaris*)
6678
  # Find out which ABI we are using.
6679
  echo 'int i;' > conftest.$ac_ext
6680
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6681
  (eval $ac_compile) 2>&5
6682
  ac_status=$?
6683
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6684
  test $ac_status = 0; }; then
6685
    case `/usr/bin/file conftest.o` in
6686
    *64-bit*)
6687
      case $lt_cv_prog_gnu_ld in
6688
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6689
      *)
6690
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6691
          LD="${LD-ld} -64"
6692
        fi
6693
        ;;
6694
      esac
6695
      ;;
6696
    esac
6697
  fi
6698
  rm -rf conftest*
6699
  ;;
6700
esac
6701
 
6702
need_locks="$enable_libtool_lock"
6703
 
6704
 
6705
  case $host_os in
6706
    rhapsody* | darwin*)
6707
    if test -n "$ac_tool_prefix"; then
6708
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6709
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6710
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711
$as_echo_n "checking for $ac_word... " >&6; }
6712
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6713
  $as_echo_n "(cached) " >&6
6714
else
6715
  if test -n "$DSYMUTIL"; then
6716
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6717
else
6718
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719
for as_dir in $PATH
6720
do
6721
  IFS=$as_save_IFS
6722
  test -z "$as_dir" && as_dir=.
6723
    for ac_exec_ext in '' $ac_executable_extensions; do
6724
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6726
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727
    break 2
6728
  fi
6729
done
6730
  done
6731
IFS=$as_save_IFS
6732
 
6733
fi
6734
fi
6735
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6736
if test -n "$DSYMUTIL"; then
6737
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6738
$as_echo "$DSYMUTIL" >&6; }
6739
else
6740
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741
$as_echo "no" >&6; }
6742
fi
6743
 
6744
 
6745
fi
6746
if test -z "$ac_cv_prog_DSYMUTIL"; then
6747
  ac_ct_DSYMUTIL=$DSYMUTIL
6748
  # Extract the first word of "dsymutil", so it can be a program name with args.
6749
set dummy dsymutil; ac_word=$2
6750
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751
$as_echo_n "checking for $ac_word... " >&6; }
6752
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6753
  $as_echo_n "(cached) " >&6
6754
else
6755
  if test -n "$ac_ct_DSYMUTIL"; then
6756
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6757
else
6758
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759
for as_dir in $PATH
6760
do
6761
  IFS=$as_save_IFS
6762
  test -z "$as_dir" && as_dir=.
6763
    for ac_exec_ext in '' $ac_executable_extensions; do
6764
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6765
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6766
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767
    break 2
6768
  fi
6769
done
6770
  done
6771
IFS=$as_save_IFS
6772
 
6773
fi
6774
fi
6775
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6776
if test -n "$ac_ct_DSYMUTIL"; then
6777
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6778
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6779
else
6780
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781
$as_echo "no" >&6; }
6782
fi
6783
 
6784
  if test "x$ac_ct_DSYMUTIL" = x; then
6785
    DSYMUTIL=":"
6786
  else
6787
    case $cross_compiling:$ac_tool_warned in
6788
yes:)
6789
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791
ac_tool_warned=yes ;;
6792
esac
6793
    DSYMUTIL=$ac_ct_DSYMUTIL
6794
  fi
6795
else
6796
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6797
fi
6798
 
6799
    if test -n "$ac_tool_prefix"; then
6800
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6801
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803
$as_echo_n "checking for $ac_word... " >&6; }
6804
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6805
  $as_echo_n "(cached) " >&6
6806
else
6807
  if test -n "$NMEDIT"; then
6808
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6809
else
6810
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811
for as_dir in $PATH
6812
do
6813
  IFS=$as_save_IFS
6814
  test -z "$as_dir" && as_dir=.
6815
    for ac_exec_ext in '' $ac_executable_extensions; do
6816
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6818
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819
    break 2
6820
  fi
6821
done
6822
  done
6823
IFS=$as_save_IFS
6824
 
6825
fi
6826
fi
6827
NMEDIT=$ac_cv_prog_NMEDIT
6828
if test -n "$NMEDIT"; then
6829
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6830
$as_echo "$NMEDIT" >&6; }
6831
else
6832
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833
$as_echo "no" >&6; }
6834
fi
6835
 
6836
 
6837
fi
6838
if test -z "$ac_cv_prog_NMEDIT"; then
6839
  ac_ct_NMEDIT=$NMEDIT
6840
  # Extract the first word of "nmedit", so it can be a program name with args.
6841
set dummy nmedit; ac_word=$2
6842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843
$as_echo_n "checking for $ac_word... " >&6; }
6844
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6845
  $as_echo_n "(cached) " >&6
6846
else
6847
  if test -n "$ac_ct_NMEDIT"; then
6848
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6849
else
6850
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851
for as_dir in $PATH
6852
do
6853
  IFS=$as_save_IFS
6854
  test -z "$as_dir" && as_dir=.
6855
    for ac_exec_ext in '' $ac_executable_extensions; do
6856
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6857
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6858
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859
    break 2
6860
  fi
6861
done
6862
  done
6863
IFS=$as_save_IFS
6864
 
6865
fi
6866
fi
6867
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6868
if test -n "$ac_ct_NMEDIT"; then
6869
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6870
$as_echo "$ac_ct_NMEDIT" >&6; }
6871
else
6872
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873
$as_echo "no" >&6; }
6874
fi
6875
 
6876
  if test "x$ac_ct_NMEDIT" = x; then
6877
    NMEDIT=":"
6878
  else
6879
    case $cross_compiling:$ac_tool_warned in
6880
yes:)
6881
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6882
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6883
ac_tool_warned=yes ;;
6884
esac
6885
    NMEDIT=$ac_ct_NMEDIT
6886
  fi
6887
else
6888
  NMEDIT="$ac_cv_prog_NMEDIT"
6889
fi
6890
 
6891
    if test -n "$ac_tool_prefix"; then
6892
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6893
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895
$as_echo_n "checking for $ac_word... " >&6; }
6896
if test "${ac_cv_prog_LIPO+set}" = set; then :
6897
  $as_echo_n "(cached) " >&6
6898
else
6899
  if test -n "$LIPO"; then
6900
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6901
else
6902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903
for as_dir in $PATH
6904
do
6905
  IFS=$as_save_IFS
6906
  test -z "$as_dir" && as_dir=.
6907
    for ac_exec_ext in '' $ac_executable_extensions; do
6908
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6909
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6910
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911
    break 2
6912
  fi
6913
done
6914
  done
6915
IFS=$as_save_IFS
6916
 
6917
fi
6918
fi
6919
LIPO=$ac_cv_prog_LIPO
6920
if test -n "$LIPO"; then
6921
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6922
$as_echo "$LIPO" >&6; }
6923
else
6924
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925
$as_echo "no" >&6; }
6926
fi
6927
 
6928
 
6929
fi
6930
if test -z "$ac_cv_prog_LIPO"; then
6931
  ac_ct_LIPO=$LIPO
6932
  # Extract the first word of "lipo", so it can be a program name with args.
6933
set dummy lipo; ac_word=$2
6934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935
$as_echo_n "checking for $ac_word... " >&6; }
6936
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6937
  $as_echo_n "(cached) " >&6
6938
else
6939
  if test -n "$ac_ct_LIPO"; then
6940
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6941
else
6942
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943
for as_dir in $PATH
6944
do
6945
  IFS=$as_save_IFS
6946
  test -z "$as_dir" && as_dir=.
6947
    for ac_exec_ext in '' $ac_executable_extensions; do
6948
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949
    ac_cv_prog_ac_ct_LIPO="lipo"
6950
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951
    break 2
6952
  fi
6953
done
6954
  done
6955
IFS=$as_save_IFS
6956
 
6957
fi
6958
fi
6959
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6960
if test -n "$ac_ct_LIPO"; then
6961
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6962
$as_echo "$ac_ct_LIPO" >&6; }
6963
else
6964
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965
$as_echo "no" >&6; }
6966
fi
6967
 
6968
  if test "x$ac_ct_LIPO" = x; then
6969
    LIPO=":"
6970
  else
6971
    case $cross_compiling:$ac_tool_warned in
6972
yes:)
6973
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975
ac_tool_warned=yes ;;
6976
esac
6977
    LIPO=$ac_ct_LIPO
6978
  fi
6979
else
6980
  LIPO="$ac_cv_prog_LIPO"
6981
fi
6982
 
6983
    if test -n "$ac_tool_prefix"; then
6984
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6985
set dummy ${ac_tool_prefix}otool; ac_word=$2
6986
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987
$as_echo_n "checking for $ac_word... " >&6; }
6988
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6989
  $as_echo_n "(cached) " >&6
6990
else
6991
  if test -n "$OTOOL"; then
6992
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6993
else
6994
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995
for as_dir in $PATH
6996
do
6997
  IFS=$as_save_IFS
6998
  test -z "$as_dir" && as_dir=.
6999
    for ac_exec_ext in '' $ac_executable_extensions; do
7000
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7001
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7002
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003
    break 2
7004
  fi
7005
done
7006
  done
7007
IFS=$as_save_IFS
7008
 
7009
fi
7010
fi
7011
OTOOL=$ac_cv_prog_OTOOL
7012
if test -n "$OTOOL"; then
7013
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7014
$as_echo "$OTOOL" >&6; }
7015
else
7016
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017
$as_echo "no" >&6; }
7018
fi
7019
 
7020
 
7021
fi
7022
if test -z "$ac_cv_prog_OTOOL"; then
7023
  ac_ct_OTOOL=$OTOOL
7024
  # Extract the first word of "otool", so it can be a program name with args.
7025
set dummy otool; ac_word=$2
7026
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027
$as_echo_n "checking for $ac_word... " >&6; }
7028
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7029
  $as_echo_n "(cached) " >&6
7030
else
7031
  if test -n "$ac_ct_OTOOL"; then
7032
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7033
else
7034
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035
for as_dir in $PATH
7036
do
7037
  IFS=$as_save_IFS
7038
  test -z "$as_dir" && as_dir=.
7039
    for ac_exec_ext in '' $ac_executable_extensions; do
7040
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7041
    ac_cv_prog_ac_ct_OTOOL="otool"
7042
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043
    break 2
7044
  fi
7045
done
7046
  done
7047
IFS=$as_save_IFS
7048
 
7049
fi
7050
fi
7051
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7052
if test -n "$ac_ct_OTOOL"; then
7053
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7054
$as_echo "$ac_ct_OTOOL" >&6; }
7055
else
7056
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057
$as_echo "no" >&6; }
7058
fi
7059
 
7060
  if test "x$ac_ct_OTOOL" = x; then
7061
    OTOOL=":"
7062
  else
7063
    case $cross_compiling:$ac_tool_warned in
7064
yes:)
7065
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7066
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7067
ac_tool_warned=yes ;;
7068
esac
7069
    OTOOL=$ac_ct_OTOOL
7070
  fi
7071
else
7072
  OTOOL="$ac_cv_prog_OTOOL"
7073
fi
7074
 
7075
    if test -n "$ac_tool_prefix"; then
7076
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7077
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079
$as_echo_n "checking for $ac_word... " >&6; }
7080
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7081
  $as_echo_n "(cached) " >&6
7082
else
7083
  if test -n "$OTOOL64"; then
7084
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7085
else
7086
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087
for as_dir in $PATH
7088
do
7089
  IFS=$as_save_IFS
7090
  test -z "$as_dir" && as_dir=.
7091
    for ac_exec_ext in '' $ac_executable_extensions; do
7092
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7093
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7094
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095
    break 2
7096
  fi
7097
done
7098
  done
7099
IFS=$as_save_IFS
7100
 
7101
fi
7102
fi
7103
OTOOL64=$ac_cv_prog_OTOOL64
7104
if test -n "$OTOOL64"; then
7105
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7106
$as_echo "$OTOOL64" >&6; }
7107
else
7108
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109
$as_echo "no" >&6; }
7110
fi
7111
 
7112
 
7113
fi
7114
if test -z "$ac_cv_prog_OTOOL64"; then
7115
  ac_ct_OTOOL64=$OTOOL64
7116
  # Extract the first word of "otool64", so it can be a program name with args.
7117
set dummy otool64; ac_word=$2
7118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119
$as_echo_n "checking for $ac_word... " >&6; }
7120
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7121
  $as_echo_n "(cached) " >&6
7122
else
7123
  if test -n "$ac_ct_OTOOL64"; then
7124
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7125
else
7126
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127
for as_dir in $PATH
7128
do
7129
  IFS=$as_save_IFS
7130
  test -z "$as_dir" && as_dir=.
7131
    for ac_exec_ext in '' $ac_executable_extensions; do
7132
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7133
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7134
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135
    break 2
7136
  fi
7137
done
7138
  done
7139
IFS=$as_save_IFS
7140
 
7141
fi
7142
fi
7143
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7144
if test -n "$ac_ct_OTOOL64"; then
7145
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7146
$as_echo "$ac_ct_OTOOL64" >&6; }
7147
else
7148
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149
$as_echo "no" >&6; }
7150
fi
7151
 
7152
  if test "x$ac_ct_OTOOL64" = x; then
7153
    OTOOL64=":"
7154
  else
7155
    case $cross_compiling:$ac_tool_warned in
7156
yes:)
7157
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7158
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7159
ac_tool_warned=yes ;;
7160
esac
7161
    OTOOL64=$ac_ct_OTOOL64
7162
  fi
7163
else
7164
  OTOOL64="$ac_cv_prog_OTOOL64"
7165
fi
7166
 
7167
 
7168
 
7169
 
7170
 
7171
 
7172
 
7173
 
7174
 
7175
 
7176
 
7177
 
7178
 
7179
 
7180
 
7181
 
7182
 
7183
 
7184
 
7185
 
7186
 
7187
 
7188
 
7189
 
7190
 
7191
 
7192
 
7193
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7194
$as_echo_n "checking for -single_module linker flag... " >&6; }
7195
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7196
  $as_echo_n "(cached) " >&6
7197
else
7198
  lt_cv_apple_cc_single_mod=no
7199
      if test -z "${LT_MULTI_MODULE}"; then
7200
        # By default we will add the -single_module flag. You can override
7201
        # by either setting the environment variable LT_MULTI_MODULE
7202
        # non-empty at configure time, or by adding -multi_module to the
7203
        # link flags.
7204
        rm -rf libconftest.dylib*
7205
        echo "int foo(void){return 1;}" > conftest.c
7206
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7207
-dynamiclib -Wl,-single_module conftest.c" >&5
7208
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7209
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7210
        _lt_result=$?
7211
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7212
          lt_cv_apple_cc_single_mod=yes
7213
        else
7214
          cat conftest.err >&5
7215
        fi
7216
        rm -rf libconftest.dylib*
7217
        rm -f conftest.*
7218
      fi
7219
fi
7220
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7221
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7222
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7223
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7224
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7225
  $as_echo_n "(cached) " >&6
7226
else
7227
  lt_cv_ld_exported_symbols_list=no
7228
      save_LDFLAGS=$LDFLAGS
7229
      echo "_main" > conftest.sym
7230
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7231
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232
/* end confdefs.h.  */
7233
 
7234
int
7235
main ()
7236
{
7237
 
7238
  ;
7239
  return 0;
7240
}
7241
_ACEOF
7242
if ac_fn_c_try_link "$LINENO"; then :
7243
  lt_cv_ld_exported_symbols_list=yes
7244
else
7245
  lt_cv_ld_exported_symbols_list=no
7246
fi
7247
rm -f core conftest.err conftest.$ac_objext \
7248
    conftest$ac_exeext conftest.$ac_ext
7249
        LDFLAGS="$save_LDFLAGS"
7250
 
7251
fi
7252
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7253
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7254
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7255
$as_echo_n "checking for -force_load linker flag... " >&6; }
7256
if test "${lt_cv_ld_force_load+set}" = set; then :
7257
  $as_echo_n "(cached) " >&6
7258
else
7259
  lt_cv_ld_force_load=no
7260
      cat > conftest.c << _LT_EOF
7261
int forced_loaded() { return 2;}
7262
_LT_EOF
7263
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7264
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7265
      echo "$AR cru libconftest.a conftest.o" >&5
7266
      $AR cru libconftest.a conftest.o 2>&5
7267
      cat > conftest.c << _LT_EOF
7268
int main() { return 0;}
7269
_LT_EOF
7270
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7271
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7272
      _lt_result=$?
7273
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7274
        lt_cv_ld_force_load=yes
7275
      else
7276
        cat conftest.err >&5
7277
      fi
7278
        rm -f conftest.err libconftest.a conftest conftest.c
7279
        rm -rf conftest.dSYM
7280
 
7281
fi
7282
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7283
$as_echo "$lt_cv_ld_force_load" >&6; }
7284
    case $host_os in
7285
    rhapsody* | darwin1.[012])
7286
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7287
    darwin1.*)
7288
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7289
    darwin*) # darwin 5.x on
7290
      # if running on 10.5 or later, the deployment target defaults
7291
      # to the OS version, if on x86, and 10.4, the deployment
7292
      # target defaults to 10.4. Don't you love it?
7293
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7294
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7295
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7296
        10.[012]*)
7297
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7298
        10.*)
7299
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7300
      esac
7301
    ;;
7302
  esac
7303
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7304
      _lt_dar_single_mod='$single_module'
7305
    fi
7306
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7307
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7308
    else
7309
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7310
    fi
7311
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7312
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7313
    else
7314
      _lt_dsymutil=
7315
    fi
7316
    ;;
7317
  esac
7318
 
7319
ac_ext=c
7320
ac_cpp='$CPP $CPPFLAGS'
7321
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7325
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7326
# On Suns, sometimes $CPP names a directory.
7327
if test -n "$CPP" && test -d "$CPP"; then
7328
  CPP=
7329
fi
7330
if test -z "$CPP"; then
7331
  if test "${ac_cv_prog_CPP+set}" = set; then :
7332
  $as_echo_n "(cached) " >&6
7333
else
7334
      # Double quotes because CPP needs to be expanded
7335
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7336
    do
7337
      ac_preproc_ok=false
7338
for ac_c_preproc_warn_flag in '' yes
7339
do
7340
  # Use a header file that comes with gcc, so configuring glibc
7341
  # with a fresh cross-compiler works.
7342
  # Prefer  to  if __STDC__ is defined, since
7343
  #  exists even on freestanding compilers.
7344
  # On the NeXT, cc -E runs the code through the compiler's parser,
7345
  # not just through cpp. "Syntax error" is here to catch this case.
7346
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347
/* end confdefs.h.  */
7348
#ifdef __STDC__
7349
# include 
7350
#else
7351
# include 
7352
#endif
7353
                     Syntax error
7354
_ACEOF
7355
if ac_fn_c_try_cpp "$LINENO"; then :
7356
 
7357
else
7358
  # Broken: fails on valid input.
7359
continue
7360
fi
7361
rm -f conftest.err conftest.$ac_ext
7362
 
7363
  # OK, works on sane cases.  Now check whether nonexistent headers
7364
  # can be detected and how.
7365
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366
/* end confdefs.h.  */
7367
#include 
7368
_ACEOF
7369
if ac_fn_c_try_cpp "$LINENO"; then :
7370
  # Broken: success on invalid input.
7371
continue
7372
else
7373
  # Passes both tests.
7374
ac_preproc_ok=:
7375
break
7376
fi
7377
rm -f conftest.err conftest.$ac_ext
7378
 
7379
done
7380
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7381
rm -f conftest.err conftest.$ac_ext
7382
if $ac_preproc_ok; then :
7383
  break
7384
fi
7385
 
7386
    done
7387
    ac_cv_prog_CPP=$CPP
7388
 
7389
fi
7390
  CPP=$ac_cv_prog_CPP
7391
else
7392
  ac_cv_prog_CPP=$CPP
7393
fi
7394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7395
$as_echo "$CPP" >&6; }
7396
ac_preproc_ok=false
7397
for ac_c_preproc_warn_flag in '' yes
7398
do
7399
  # Use a header file that comes with gcc, so configuring glibc
7400
  # with a fresh cross-compiler works.
7401
  # Prefer  to  if __STDC__ is defined, since
7402
  #  exists even on freestanding compilers.
7403
  # On the NeXT, cc -E runs the code through the compiler's parser,
7404
  # not just through cpp. "Syntax error" is here to catch this case.
7405
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406
/* end confdefs.h.  */
7407
#ifdef __STDC__
7408
# include 
7409
#else
7410
# include 
7411
#endif
7412
                     Syntax error
7413
_ACEOF
7414
if ac_fn_c_try_cpp "$LINENO"; then :
7415
 
7416
else
7417
  # Broken: fails on valid input.
7418
continue
7419
fi
7420
rm -f conftest.err conftest.$ac_ext
7421
 
7422
  # OK, works on sane cases.  Now check whether nonexistent headers
7423
  # can be detected and how.
7424
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425
/* end confdefs.h.  */
7426
#include 
7427
_ACEOF
7428
if ac_fn_c_try_cpp "$LINENO"; then :
7429
  # Broken: success on invalid input.
7430
continue
7431
else
7432
  # Passes both tests.
7433
ac_preproc_ok=:
7434
break
7435
fi
7436
rm -f conftest.err conftest.$ac_ext
7437
 
7438
done
7439
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7440
rm -f conftest.err conftest.$ac_ext
7441
if $ac_preproc_ok; then :
7442
 
7443
else
7444
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7445
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7446
as_fn_error "C preprocessor \"$CPP\" fails sanity check
7447
See \`config.log' for more details." "$LINENO" 5; }
7448
fi
7449
 
7450
ac_ext=c
7451
ac_cpp='$CPP $CPPFLAGS'
7452
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7453
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7454
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7455
 
7456
 
7457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7458
$as_echo_n "checking for ANSI C header files... " >&6; }
7459
if test "${ac_cv_header_stdc+set}" = set; then :
7460
  $as_echo_n "(cached) " >&6
7461
else
7462
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463
/* end confdefs.h.  */
7464
#include 
7465
#include 
7466
#include 
7467
#include 
7468
 
7469
int
7470
main ()
7471
{
7472
 
7473
  ;
7474
  return 0;
7475
}
7476
_ACEOF
7477
if ac_fn_c_try_compile "$LINENO"; then :
7478
  ac_cv_header_stdc=yes
7479
else
7480
  ac_cv_header_stdc=no
7481
fi
7482
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483
 
7484
if test $ac_cv_header_stdc = yes; then
7485
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7486
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487
/* end confdefs.h.  */
7488
#include 
7489
 
7490
_ACEOF
7491
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7492
  $EGREP "memchr" >/dev/null 2>&1; then :
7493
 
7494
else
7495
  ac_cv_header_stdc=no
7496
fi
7497
rm -f conftest*
7498
 
7499
fi
7500
 
7501
if test $ac_cv_header_stdc = yes; then
7502
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7503
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504
/* end confdefs.h.  */
7505
#include 
7506
 
7507
_ACEOF
7508
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7509
  $EGREP "free" >/dev/null 2>&1; then :
7510
 
7511
else
7512
  ac_cv_header_stdc=no
7513
fi
7514
rm -f conftest*
7515
 
7516
fi
7517
 
7518
if test $ac_cv_header_stdc = yes; then
7519
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7520
  if test "$cross_compiling" = yes; then :
7521
  :
7522
else
7523
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524
/* end confdefs.h.  */
7525
#include 
7526
#include 
7527
#if ((' ' & 0x0FF) == 0x020)
7528
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7529
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7530
#else
7531
# define ISLOWER(c) \
7532
                   (('a' <= (c) && (c) <= 'i') \
7533
                     || ('j' <= (c) && (c) <= 'r') \
7534
                     || ('s' <= (c) && (c) <= 'z'))
7535
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7536
#endif
7537
 
7538
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7539
int
7540
main ()
7541
{
7542
  int i;
7543
  for (i = 0; i < 256; i++)
7544
    if (XOR (islower (i), ISLOWER (i))
7545
        || toupper (i) != TOUPPER (i))
7546
      return 2;
7547
  return 0;
7548
}
7549
_ACEOF
7550
if ac_fn_c_try_run "$LINENO"; then :
7551
 
7552
else
7553
  ac_cv_header_stdc=no
7554
fi
7555
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7556
  conftest.$ac_objext conftest.beam conftest.$ac_ext
7557
fi
7558
 
7559
fi
7560
fi
7561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7562
$as_echo "$ac_cv_header_stdc" >&6; }
7563
if test $ac_cv_header_stdc = yes; then
7564
 
7565
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7566
 
7567
fi
7568
 
7569
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7570
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7571
                  inttypes.h stdint.h unistd.h
7572
do :
7573
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7574
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7575
"
7576
eval as_val=\$$as_ac_Header
7577
   if test "x$as_val" = x""yes; then :
7578
  cat >>confdefs.h <<_ACEOF
7579
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7580
_ACEOF
7581
 
7582
fi
7583
 
7584
done
7585
 
7586
 
7587
for ac_header in dlfcn.h
7588
do :
7589
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7590
"
7591
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7592
  cat >>confdefs.h <<_ACEOF
7593
#define HAVE_DLFCN_H 1
7594
_ACEOF
7595
 
7596
fi
7597
 
7598
done
7599
 
7600
 
7601
 
7602
 
7603
 
7604
# Set options
7605
 
7606
 
7607
 
7608
        enable_dlopen=no
7609
 
7610
 
7611
  enable_win32_dll=no
7612
 
7613
 
7614
            # Check whether --enable-shared was given.
7615
if test "${enable_shared+set}" = set; then :
7616
  enableval=$enable_shared; p=${PACKAGE-default}
7617
    case $enableval in
7618
    yes) enable_shared=yes ;;
7619
    no) enable_shared=no ;;
7620
    *)
7621
      enable_shared=no
7622
      # Look at the argument we got.  We use all the common list separators.
7623
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7624
      for pkg in $enableval; do
7625
        IFS="$lt_save_ifs"
7626
        if test "X$pkg" = "X$p"; then
7627
          enable_shared=yes
7628
        fi
7629
      done
7630
      IFS="$lt_save_ifs"
7631
      ;;
7632
    esac
7633
else
7634
  enable_shared=yes
7635
fi
7636
 
7637
 
7638
 
7639
 
7640
 
7641
 
7642
 
7643
 
7644
 
7645
  # Check whether --enable-static was given.
7646
if test "${enable_static+set}" = set; then :
7647
  enableval=$enable_static; p=${PACKAGE-default}
7648
    case $enableval in
7649
    yes) enable_static=yes ;;
7650
    no) enable_static=no ;;
7651
    *)
7652
     enable_static=no
7653
      # Look at the argument we got.  We use all the common list separators.
7654
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7655
      for pkg in $enableval; do
7656
        IFS="$lt_save_ifs"
7657
        if test "X$pkg" = "X$p"; then
7658
          enable_static=yes
7659
        fi
7660
      done
7661
      IFS="$lt_save_ifs"
7662
      ;;
7663
    esac
7664
else
7665
  enable_static=yes
7666
fi
7667
 
7668
 
7669
 
7670
 
7671
 
7672
 
7673
 
7674
 
7675
 
7676
 
7677
# Check whether --with-pic was given.
7678
if test "${with_pic+set}" = set; then :
7679
  withval=$with_pic; pic_mode="$withval"
7680
else
7681
  pic_mode=default
7682
fi
7683
 
7684
 
7685
test -z "$pic_mode" && pic_mode=default
7686
 
7687
 
7688
 
7689
 
7690
 
7691
 
7692
 
7693
  # Check whether --enable-fast-install was given.
7694
if test "${enable_fast_install+set}" = set; then :
7695
  enableval=$enable_fast_install; p=${PACKAGE-default}
7696
    case $enableval in
7697
    yes) enable_fast_install=yes ;;
7698
    no) enable_fast_install=no ;;
7699
    *)
7700
      enable_fast_install=no
7701
      # Look at the argument we got.  We use all the common list separators.
7702
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7703
      for pkg in $enableval; do
7704
        IFS="$lt_save_ifs"
7705
        if test "X$pkg" = "X$p"; then
7706
          enable_fast_install=yes
7707
        fi
7708
      done
7709
      IFS="$lt_save_ifs"
7710
      ;;
7711
    esac
7712
else
7713
  enable_fast_install=yes
7714
fi
7715
 
7716
 
7717
 
7718
 
7719
 
7720
 
7721
 
7722
 
7723
 
7724
 
7725
 
7726
# This can be used to rebuild libtool when needed
7727
LIBTOOL_DEPS="$ltmain"
7728
 
7729
# Always use our own libtool.
7730
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7731
 
7732
 
7733
 
7734
 
7735
 
7736
 
7737
 
7738
 
7739
 
7740
 
7741
 
7742
 
7743
 
7744
 
7745
 
7746
 
7747
 
7748
 
7749
 
7750
 
7751
 
7752
 
7753
 
7754
 
7755
 
7756
 
7757
test -z "$LN_S" && LN_S="ln -s"
7758
 
7759
 
7760
 
7761
 
7762
 
7763
 
7764
 
7765
 
7766
 
7767
 
7768
 
7769
 
7770
 
7771
 
7772
if test -n "${ZSH_VERSION+set}" ; then
7773
   setopt NO_GLOB_SUBST
7774
fi
7775
 
7776
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7777
$as_echo_n "checking for objdir... " >&6; }
7778
if test "${lt_cv_objdir+set}" = set; then :
7779
  $as_echo_n "(cached) " >&6
7780
else
7781
  rm -f .libs 2>/dev/null
7782
mkdir .libs 2>/dev/null
7783
if test -d .libs; then
7784
  lt_cv_objdir=.libs
7785
else
7786
  # MS-DOS does not allow filenames that begin with a dot.
7787
  lt_cv_objdir=_libs
7788
fi
7789
rmdir .libs 2>/dev/null
7790
fi
7791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7792
$as_echo "$lt_cv_objdir" >&6; }
7793
objdir=$lt_cv_objdir
7794
 
7795
 
7796
 
7797
 
7798
 
7799
cat >>confdefs.h <<_ACEOF
7800
#define LT_OBJDIR "$lt_cv_objdir/"
7801
_ACEOF
7802
 
7803
 
7804
 
7805
 
7806
case $host_os in
7807
aix3*)
7808
  # AIX sometimes has problems with the GCC collect2 program.  For some
7809
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7810
  # vanish in a puff of smoke.
7811
  if test "X${COLLECT_NAMES+set}" != Xset; then
7812
    COLLECT_NAMES=
7813
    export COLLECT_NAMES
7814
  fi
7815
  ;;
7816
esac
7817
 
7818
# Global variables:
7819
ofile=libtool
7820
can_build_shared=yes
7821
 
7822
# All known linkers require a `.a' archive for static linking (except MSVC,
7823
# which needs '.lib').
7824
libext=a
7825
 
7826
with_gnu_ld="$lt_cv_prog_gnu_ld"
7827
 
7828
old_CC="$CC"
7829
old_CFLAGS="$CFLAGS"
7830
 
7831
# Set sane defaults for various variables
7832
test -z "$CC" && CC=cc
7833
test -z "$LTCC" && LTCC=$CC
7834
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7835
test -z "$LD" && LD=ld
7836
test -z "$ac_objext" && ac_objext=o
7837
 
7838
for cc_temp in $compiler""; do
7839
  case $cc_temp in
7840
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7841
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7842
    \-*) ;;
7843
    *) break;;
7844
  esac
7845
done
7846
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7847
 
7848
 
7849
# Only perform the check for file, if the check method requires it
7850
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7851
case $deplibs_check_method in
7852
file_magic*)
7853
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7854
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7855
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7856
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7857
  $as_echo_n "(cached) " >&6
7858
else
7859
  case $MAGIC_CMD in
7860
[\\/*] |  ?:[\\/]*)
7861
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7862
  ;;
7863
*)
7864
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7865
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7866
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7867
  for ac_dir in $ac_dummy; do
7868
    IFS="$lt_save_ifs"
7869
    test -z "$ac_dir" && ac_dir=.
7870
    if test -f $ac_dir/${ac_tool_prefix}file; then
7871
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7872
      if test -n "$file_magic_test_file"; then
7873
        case $deplibs_check_method in
7874
        "file_magic "*)
7875
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7876
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7877
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7878
            $EGREP "$file_magic_regex" > /dev/null; then
7879
            :
7880
          else
7881
            cat <<_LT_EOF 1>&2
7882
 
7883
*** Warning: the command libtool uses to detect shared libraries,
7884
*** $file_magic_cmd, produces output that libtool cannot recognize.
7885
*** The result is that libtool may fail to recognize shared libraries
7886
*** as such.  This will affect the creation of libtool libraries that
7887
*** depend on shared libraries, but programs linked with such libtool
7888
*** libraries will work regardless of this problem.  Nevertheless, you
7889
*** may want to report the problem to your system manager and/or to
7890
*** bug-libtool@gnu.org
7891
 
7892
_LT_EOF
7893
          fi ;;
7894
        esac
7895
      fi
7896
      break
7897
    fi
7898
  done
7899
  IFS="$lt_save_ifs"
7900
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7901
  ;;
7902
esac
7903
fi
7904
 
7905
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7906
if test -n "$MAGIC_CMD"; then
7907
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7908
$as_echo "$MAGIC_CMD" >&6; }
7909
else
7910
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911
$as_echo "no" >&6; }
7912
fi
7913
 
7914
 
7915
 
7916
 
7917
 
7918
if test -z "$lt_cv_path_MAGIC_CMD"; then
7919
  if test -n "$ac_tool_prefix"; then
7920
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7921
$as_echo_n "checking for file... " >&6; }
7922
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7923
  $as_echo_n "(cached) " >&6
7924
else
7925
  case $MAGIC_CMD in
7926
[\\/*] |  ?:[\\/]*)
7927
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7928
  ;;
7929
*)
7930
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7931
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7932
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7933
  for ac_dir in $ac_dummy; do
7934
    IFS="$lt_save_ifs"
7935
    test -z "$ac_dir" && ac_dir=.
7936
    if test -f $ac_dir/file; then
7937
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7938
      if test -n "$file_magic_test_file"; then
7939
        case $deplibs_check_method in
7940
        "file_magic "*)
7941
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7942
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7943
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7944
            $EGREP "$file_magic_regex" > /dev/null; then
7945
            :
7946
          else
7947
            cat <<_LT_EOF 1>&2
7948
 
7949
*** Warning: the command libtool uses to detect shared libraries,
7950
*** $file_magic_cmd, produces output that libtool cannot recognize.
7951
*** The result is that libtool may fail to recognize shared libraries
7952
*** as such.  This will affect the creation of libtool libraries that
7953
*** depend on shared libraries, but programs linked with such libtool
7954
*** libraries will work regardless of this problem.  Nevertheless, you
7955
*** may want to report the problem to your system manager and/or to
7956
*** bug-libtool@gnu.org
7957
 
7958
_LT_EOF
7959
          fi ;;
7960
        esac
7961
      fi
7962
      break
7963
    fi
7964
  done
7965
  IFS="$lt_save_ifs"
7966
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7967
  ;;
7968
esac
7969
fi
7970
 
7971
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7972
if test -n "$MAGIC_CMD"; then
7973
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7974
$as_echo "$MAGIC_CMD" >&6; }
7975
else
7976
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977
$as_echo "no" >&6; }
7978
fi
7979
 
7980
 
7981
  else
7982
    MAGIC_CMD=:
7983
  fi
7984
fi
7985
 
7986
  fi
7987
  ;;
7988
esac
7989
 
7990
# Use C for the default configuration in the libtool script
7991
 
7992
lt_save_CC="$CC"
7993
ac_ext=c
7994
ac_cpp='$CPP $CPPFLAGS'
7995
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7996
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7997
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7998
 
7999
 
8000
# Source file extension for C test sources.
8001
ac_ext=c
8002
 
8003
# Object file extension for compiled C test sources.
8004
objext=o
8005
objext=$objext
8006
 
8007
# Code to be used in simple compile tests
8008
lt_simple_compile_test_code="int some_variable = 0;"
8009
 
8010
# Code to be used in simple link tests
8011
lt_simple_link_test_code='int main(){return(0);}'
8012
 
8013
 
8014
 
8015
 
8016
 
8017
 
8018
 
8019
# If no C compiler was specified, use CC.
8020
LTCC=${LTCC-"$CC"}
8021
 
8022
# If no C compiler flags were specified, use CFLAGS.
8023
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8024
 
8025
# Allow CC to be a program name with arguments.
8026
compiler=$CC
8027
 
8028
# Save the default compiler, since it gets overwritten when the other
8029
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8030
compiler_DEFAULT=$CC
8031
 
8032
# save warnings/boilerplate of simple test code
8033
ac_outfile=conftest.$ac_objext
8034
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8035
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8036
_lt_compiler_boilerplate=`cat conftest.err`
8037
$RM conftest*
8038
 
8039
ac_outfile=conftest.$ac_objext
8040
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8041
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8042
_lt_linker_boilerplate=`cat conftest.err`
8043
$RM -r conftest*
8044
 
8045
 
8046
## CAVEAT EMPTOR:
8047
## There is no encapsulation within the following macros, do not change
8048
## the running order or otherwise move them around unless you know exactly
8049
## what you are doing...
8050
if test -n "$compiler"; then
8051
 
8052
lt_prog_compiler_no_builtin_flag=
8053
 
8054
if test "$GCC" = yes; then
8055
  case $cc_basename in
8056
  nvcc*)
8057
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8058
  *)
8059
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8060
  esac
8061
 
8062
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8063
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8064
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8065
  $as_echo_n "(cached) " >&6
8066
else
8067
  lt_cv_prog_compiler_rtti_exceptions=no
8068
   ac_outfile=conftest.$ac_objext
8069
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8070
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8071
   # Insert the option either (1) after the last *FLAGS variable, or
8072
   # (2) before a word containing "conftest.", or (3) at the end.
8073
   # Note that $ac_compile itself does not contain backslashes and begins
8074
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8075
   # The option is referenced via a variable to avoid confusing sed.
8076
   lt_compile=`echo "$ac_compile" | $SED \
8077
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8078
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8079
   -e 's:$: $lt_compiler_flag:'`
8080
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8081
   (eval "$lt_compile" 2>conftest.err)
8082
   ac_status=$?
8083
   cat conftest.err >&5
8084
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085
   if (exit $ac_status) && test -s "$ac_outfile"; then
8086
     # The compiler can only warn and ignore the option if not recognized
8087
     # So say no if there are warnings other than the usual output.
8088
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8089
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8090
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8091
       lt_cv_prog_compiler_rtti_exceptions=yes
8092
     fi
8093
   fi
8094
   $RM conftest*
8095
 
8096
fi
8097
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8098
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8099
 
8100
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8101
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8102
else
8103
    :
8104
fi
8105
 
8106
fi
8107
 
8108
 
8109
 
8110
 
8111
 
8112
 
8113
  lt_prog_compiler_wl=
8114
lt_prog_compiler_pic=
8115
lt_prog_compiler_static=
8116
 
8117
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8118
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8119
 
8120
  if test "$GCC" = yes; then
8121
    lt_prog_compiler_wl='-Wl,'
8122
    lt_prog_compiler_static='-static'
8123
 
8124
    case $host_os in
8125
      aix*)
8126
      # All AIX code is PIC.
8127
      if test "$host_cpu" = ia64; then
8128
        # AIX 5 now supports IA64 processor
8129
        lt_prog_compiler_static='-Bstatic'
8130
      fi
8131
      ;;
8132
 
8133
    amigaos*)
8134
      case $host_cpu in
8135
      powerpc)
8136
            # see comment about AmigaOS4 .so support
8137
            lt_prog_compiler_pic='-fPIC'
8138
        ;;
8139
      m68k)
8140
            # FIXME: we need at least 68020 code to build shared libraries, but
8141
            # adding the `-m68020' flag to GCC prevents building anything better,
8142
            # like `-m68040'.
8143
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8144
        ;;
8145
      esac
8146
      ;;
8147
 
8148
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8149
      # PIC is the default for these OSes.
8150
      ;;
8151
 
8152
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8153
      # This hack is so that the source file can tell whether it is being
8154
      # built for inclusion in a dll (and should export symbols for example).
8155
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8156
      # (--disable-auto-import) libraries
8157
      lt_prog_compiler_pic='-DDLL_EXPORT'
8158
      ;;
8159
 
8160
    darwin* | rhapsody*)
8161
      # PIC is the default on this platform
8162
      # Common symbols not allowed in MH_DYLIB files
8163
      lt_prog_compiler_pic='-fno-common'
8164
      ;;
8165
 
8166
    haiku*)
8167
      # PIC is the default for Haiku.
8168
      # The "-static" flag exists, but is broken.
8169
      lt_prog_compiler_static=
8170
      ;;
8171
 
8172
    hpux*)
8173
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8174
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8175
      # sets the default TLS model and affects inlining.
8176
      case $host_cpu in
8177
      hppa*64*)
8178
        # +Z the default
8179
        ;;
8180
      *)
8181
        lt_prog_compiler_pic='-fPIC'
8182
        ;;
8183
      esac
8184
      ;;
8185
 
8186
    interix[3-9]*)
8187
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8188
      # Instead, we relocate shared libraries at runtime.
8189
      ;;
8190
 
8191
    msdosdjgpp*)
8192
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8193
      # on systems that don't support them.
8194
      lt_prog_compiler_can_build_shared=no
8195
      enable_shared=no
8196
      ;;
8197
 
8198
    *nto* | *qnx*)
8199
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8200
      # it will coredump.
8201
      lt_prog_compiler_pic='-fPIC -shared'
8202
      ;;
8203
 
8204
    sysv4*MP*)
8205
      if test -d /usr/nec; then
8206
        lt_prog_compiler_pic=-Kconform_pic
8207
      fi
8208
      ;;
8209
 
8210
    *)
8211
      lt_prog_compiler_pic='-fPIC'
8212
      ;;
8213
    esac
8214
 
8215
    case $cc_basename in
8216
    nvcc*) # Cuda Compiler Driver 2.2
8217
      lt_prog_compiler_wl='-Xlinker '
8218
      lt_prog_compiler_pic='-Xcompiler -fPIC'
8219
      ;;
8220
    esac
8221
  else
8222
    # PORTME Check for flag to pass linker flags through the system compiler.
8223
    case $host_os in
8224
    aix*)
8225
      lt_prog_compiler_wl='-Wl,'
8226
      if test "$host_cpu" = ia64; then
8227
        # AIX 5 now supports IA64 processor
8228
        lt_prog_compiler_static='-Bstatic'
8229
      else
8230
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8231
      fi
8232
      ;;
8233
 
8234
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8235
      # This hack is so that the source file can tell whether it is being
8236
      # built for inclusion in a dll (and should export symbols for example).
8237
      lt_prog_compiler_pic='-DDLL_EXPORT'
8238
      ;;
8239
 
8240
    hpux9* | hpux10* | hpux11*)
8241
      lt_prog_compiler_wl='-Wl,'
8242
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8243
      # not for PA HP-UX.
8244
      case $host_cpu in
8245
      hppa*64*|ia64*)
8246
        # +Z the default
8247
        ;;
8248
      *)
8249
        lt_prog_compiler_pic='+Z'
8250
        ;;
8251
      esac
8252
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8253
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8254
      ;;
8255
 
8256
    irix5* | irix6* | nonstopux*)
8257
      lt_prog_compiler_wl='-Wl,'
8258
      # PIC (with -KPIC) is the default.
8259
      lt_prog_compiler_static='-non_shared'
8260
      ;;
8261
 
8262
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8263
      case $cc_basename in
8264
      # old Intel for x86_64 which still supported -KPIC.
8265
      ecc*)
8266
        lt_prog_compiler_wl='-Wl,'
8267
        lt_prog_compiler_pic='-KPIC'
8268
        lt_prog_compiler_static='-static'
8269
        ;;
8270
      # icc used to be incompatible with GCC.
8271
      # ICC 10 doesn't accept -KPIC any more.
8272
      icc* | ifort*)
8273
        lt_prog_compiler_wl='-Wl,'
8274
        lt_prog_compiler_pic='-fPIC'
8275
        lt_prog_compiler_static='-static'
8276
        ;;
8277
      # Lahey Fortran 8.1.
8278
      lf95*)
8279
        lt_prog_compiler_wl='-Wl,'
8280
        lt_prog_compiler_pic='--shared'
8281
        lt_prog_compiler_static='--static'
8282
        ;;
8283
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8284
        # Portland Group compilers (*not* the Pentium gcc compiler,
8285
        # which looks to be a dead project)
8286
        lt_prog_compiler_wl='-Wl,'
8287
        lt_prog_compiler_pic='-fpic'
8288
        lt_prog_compiler_static='-Bstatic'
8289
        ;;
8290
      ccc*)
8291
        lt_prog_compiler_wl='-Wl,'
8292
        # All Alpha code is PIC.
8293
        lt_prog_compiler_static='-non_shared'
8294
        ;;
8295
      xl* | bgxl* | bgf* | mpixl*)
8296
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8297
        lt_prog_compiler_wl='-Wl,'
8298
        lt_prog_compiler_pic='-qpic'
8299
        lt_prog_compiler_static='-qstaticlink'
8300
        ;;
8301
      *)
8302
        case `$CC -V 2>&1 | sed 5q` in
8303
        *Sun\ F* | *Sun*Fortran*)
8304
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
8305
          lt_prog_compiler_pic='-KPIC'
8306
          lt_prog_compiler_static='-Bstatic'
8307
          lt_prog_compiler_wl=''
8308
          ;;
8309
        *Sun\ C*)
8310
          # Sun C 5.9
8311
          lt_prog_compiler_pic='-KPIC'
8312
          lt_prog_compiler_static='-Bstatic'
8313
          lt_prog_compiler_wl='-Wl,'
8314
          ;;
8315
        esac
8316
        ;;
8317
      esac
8318
      ;;
8319
 
8320
    newsos6)
8321
      lt_prog_compiler_pic='-KPIC'
8322
      lt_prog_compiler_static='-Bstatic'
8323
      ;;
8324
 
8325
    *nto* | *qnx*)
8326
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8327
      # it will coredump.
8328
      lt_prog_compiler_pic='-fPIC -shared'
8329
      ;;
8330
 
8331
    osf3* | osf4* | osf5*)
8332
      lt_prog_compiler_wl='-Wl,'
8333
      # All OSF/1 code is PIC.
8334
      lt_prog_compiler_static='-non_shared'
8335
      ;;
8336
 
8337
    rdos*)
8338
      lt_prog_compiler_static='-non_shared'
8339
      ;;
8340
 
8341
    solaris*)
8342
      lt_prog_compiler_pic='-KPIC'
8343
      lt_prog_compiler_static='-Bstatic'
8344
      case $cc_basename in
8345
      f77* | f90* | f95*)
8346
        lt_prog_compiler_wl='-Qoption ld ';;
8347
      *)
8348
        lt_prog_compiler_wl='-Wl,';;
8349
      esac
8350
      ;;
8351
 
8352
    sunos4*)
8353
      lt_prog_compiler_wl='-Qoption ld '
8354
      lt_prog_compiler_pic='-PIC'
8355
      lt_prog_compiler_static='-Bstatic'
8356
      ;;
8357
 
8358
    sysv4 | sysv4.2uw2* | sysv4.3*)
8359
      lt_prog_compiler_wl='-Wl,'
8360
      lt_prog_compiler_pic='-KPIC'
8361
      lt_prog_compiler_static='-Bstatic'
8362
      ;;
8363
 
8364
    sysv4*MP*)
8365
      if test -d /usr/nec ;then
8366
        lt_prog_compiler_pic='-Kconform_pic'
8367
        lt_prog_compiler_static='-Bstatic'
8368
      fi
8369
      ;;
8370
 
8371
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8372
      lt_prog_compiler_wl='-Wl,'
8373
      lt_prog_compiler_pic='-KPIC'
8374
      lt_prog_compiler_static='-Bstatic'
8375
      ;;
8376
 
8377
    unicos*)
8378
      lt_prog_compiler_wl='-Wl,'
8379
      lt_prog_compiler_can_build_shared=no
8380
      ;;
8381
 
8382
    uts4*)
8383
      lt_prog_compiler_pic='-pic'
8384
      lt_prog_compiler_static='-Bstatic'
8385
      ;;
8386
 
8387
    *)
8388
      lt_prog_compiler_can_build_shared=no
8389
      ;;
8390
    esac
8391
  fi
8392
 
8393
case $host_os in
8394
  # For platforms which do not support PIC, -DPIC is meaningless:
8395
  *djgpp*)
8396
    lt_prog_compiler_pic=
8397
    ;;
8398
  *)
8399
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8400
    ;;
8401
esac
8402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8403
$as_echo "$lt_prog_compiler_pic" >&6; }
8404
 
8405
 
8406
 
8407
 
8408
 
8409
 
8410
#
8411
# Check to make sure the PIC flag actually works.
8412
#
8413
if test -n "$lt_prog_compiler_pic"; then
8414
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8415
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8416
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8417
  $as_echo_n "(cached) " >&6
8418
else
8419
  lt_cv_prog_compiler_pic_works=no
8420
   ac_outfile=conftest.$ac_objext
8421
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8422
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8423
   # Insert the option either (1) after the last *FLAGS variable, or
8424
   # (2) before a word containing "conftest.", or (3) at the end.
8425
   # Note that $ac_compile itself does not contain backslashes and begins
8426
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8427
   # The option is referenced via a variable to avoid confusing sed.
8428
   lt_compile=`echo "$ac_compile" | $SED \
8429
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8430
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8431
   -e 's:$: $lt_compiler_flag:'`
8432
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8433
   (eval "$lt_compile" 2>conftest.err)
8434
   ac_status=$?
8435
   cat conftest.err >&5
8436
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437
   if (exit $ac_status) && test -s "$ac_outfile"; then
8438
     # The compiler can only warn and ignore the option if not recognized
8439
     # So say no if there are warnings other than the usual output.
8440
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8441
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8442
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8443
       lt_cv_prog_compiler_pic_works=yes
8444
     fi
8445
   fi
8446
   $RM conftest*
8447
 
8448
fi
8449
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8450
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8451
 
8452
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8453
    case $lt_prog_compiler_pic in
8454
     "" | " "*) ;;
8455
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8456
     esac
8457
else
8458
    lt_prog_compiler_pic=
8459
     lt_prog_compiler_can_build_shared=no
8460
fi
8461
 
8462
fi
8463
 
8464
 
8465
 
8466
 
8467
 
8468
 
8469
#
8470
# Check to make sure the static flag actually works.
8471
#
8472
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8474
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8475
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8476
  $as_echo_n "(cached) " >&6
8477
else
8478
  lt_cv_prog_compiler_static_works=no
8479
   save_LDFLAGS="$LDFLAGS"
8480
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8481
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8482
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8483
     # The linker can only warn and ignore the option if not recognized
8484
     # So say no if there are warnings
8485
     if test -s conftest.err; then
8486
       # Append any errors to the config.log.
8487
       cat conftest.err 1>&5
8488
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8489
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8490
       if diff conftest.exp conftest.er2 >/dev/null; then
8491
         lt_cv_prog_compiler_static_works=yes
8492
       fi
8493
     else
8494
       lt_cv_prog_compiler_static_works=yes
8495
     fi
8496
   fi
8497
   $RM -r conftest*
8498
   LDFLAGS="$save_LDFLAGS"
8499
 
8500
fi
8501
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8502
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8503
 
8504
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8505
    :
8506
else
8507
    lt_prog_compiler_static=
8508
fi
8509
 
8510
 
8511
 
8512
 
8513
 
8514
 
8515
 
8516
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8517
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8518
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8519
  $as_echo_n "(cached) " >&6
8520
else
8521
  lt_cv_prog_compiler_c_o=no
8522
   $RM -r conftest 2>/dev/null
8523
   mkdir conftest
8524
   cd conftest
8525
   mkdir out
8526
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8527
 
8528
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8529
   # Insert the option either (1) after the last *FLAGS variable, or
8530
   # (2) before a word containing "conftest.", or (3) at the end.
8531
   # Note that $ac_compile itself does not contain backslashes and begins
8532
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8533
   lt_compile=`echo "$ac_compile" | $SED \
8534
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8535
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8536
   -e 's:$: $lt_compiler_flag:'`
8537
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8538
   (eval "$lt_compile" 2>out/conftest.err)
8539
   ac_status=$?
8540
   cat out/conftest.err >&5
8541
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8543
   then
8544
     # The compiler can only warn and ignore the option if not recognized
8545
     # So say no if there are warnings
8546
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8547
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8548
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8549
       lt_cv_prog_compiler_c_o=yes
8550
     fi
8551
   fi
8552
   chmod u+w . 2>&5
8553
   $RM conftest*
8554
   # SGI C++ compiler will create directory out/ii_files/ for
8555
   # template instantiation
8556
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8557
   $RM out/* && rmdir out
8558
   cd ..
8559
   $RM -r conftest
8560
   $RM conftest*
8561
 
8562
fi
8563
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8564
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8565
 
8566
 
8567
 
8568
 
8569
 
8570
 
8571
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8572
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8573
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8574
  $as_echo_n "(cached) " >&6
8575
else
8576
  lt_cv_prog_compiler_c_o=no
8577
   $RM -r conftest 2>/dev/null
8578
   mkdir conftest
8579
   cd conftest
8580
   mkdir out
8581
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8582
 
8583
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8584
   # Insert the option either (1) after the last *FLAGS variable, or
8585
   # (2) before a word containing "conftest.", or (3) at the end.
8586
   # Note that $ac_compile itself does not contain backslashes and begins
8587
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8588
   lt_compile=`echo "$ac_compile" | $SED \
8589
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8590
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8591
   -e 's:$: $lt_compiler_flag:'`
8592
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8593
   (eval "$lt_compile" 2>out/conftest.err)
8594
   ac_status=$?
8595
   cat out/conftest.err >&5
8596
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8598
   then
8599
     # The compiler can only warn and ignore the option if not recognized
8600
     # So say no if there are warnings
8601
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8602
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8603
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8604
       lt_cv_prog_compiler_c_o=yes
8605
     fi
8606
   fi
8607
   chmod u+w . 2>&5
8608
   $RM conftest*
8609
   # SGI C++ compiler will create directory out/ii_files/ for
8610
   # template instantiation
8611
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8612
   $RM out/* && rmdir out
8613
   cd ..
8614
   $RM -r conftest
8615
   $RM conftest*
8616
 
8617
fi
8618
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8619
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8620
 
8621
 
8622
 
8623
 
8624
hard_links="nottested"
8625
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8626
  # do not overwrite the value of need_locks provided by the user
8627
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8628
$as_echo_n "checking if we can lock with hard links... " >&6; }
8629
  hard_links=yes
8630
  $RM conftest*
8631
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8632
  touch conftest.a
8633
  ln conftest.a conftest.b 2>&5 || hard_links=no
8634
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8635
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8636
$as_echo "$hard_links" >&6; }
8637
  if test "$hard_links" = no; then
8638
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8639
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8640
    need_locks=warn
8641
  fi
8642
else
8643
  need_locks=no
8644
fi
8645
 
8646
 
8647
 
8648
 
8649
 
8650
 
8651
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8652
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8653
 
8654
  runpath_var=
8655
  allow_undefined_flag=
8656
  always_export_symbols=no
8657
  archive_cmds=
8658
  archive_expsym_cmds=
8659
  compiler_needs_object=no
8660
  enable_shared_with_static_runtimes=no
8661
  export_dynamic_flag_spec=
8662
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8663
  hardcode_automatic=no
8664
  hardcode_direct=no
8665
  hardcode_direct_absolute=no
8666
  hardcode_libdir_flag_spec=
8667
  hardcode_libdir_flag_spec_ld=
8668
  hardcode_libdir_separator=
8669
  hardcode_minus_L=no
8670
  hardcode_shlibpath_var=unsupported
8671
  inherit_rpath=no
8672
  link_all_deplibs=unknown
8673
  module_cmds=
8674
  module_expsym_cmds=
8675
  old_archive_from_new_cmds=
8676
  old_archive_from_expsyms_cmds=
8677
  thread_safe_flag_spec=
8678
  whole_archive_flag_spec=
8679
  # include_expsyms should be a list of space-separated symbols to be *always*
8680
  # included in the symbol list
8681
  include_expsyms=
8682
  # exclude_expsyms can be an extended regexp of symbols to exclude
8683
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8684
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8685
  # as well as any symbol that contains `d'.
8686
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8687
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8688
  # platforms (ab)use it in PIC code, but their linkers get confused if
8689
  # the symbol is explicitly referenced.  Since portable code cannot
8690
  # rely on this symbol name, it's probably fine to never include it in
8691
  # preloaded symbol tables.
8692
  # Exclude shared library initialization/finalization symbols.
8693
  extract_expsyms_cmds=
8694
 
8695
  case $host_os in
8696
  cygwin* | mingw* | pw32* | cegcc*)
8697
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8698
    # When not using gcc, we currently assume that we are using
8699
    # Microsoft Visual C++.
8700
    if test "$GCC" != yes; then
8701
      with_gnu_ld=no
8702
    fi
8703
    ;;
8704
  interix*)
8705
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8706
    with_gnu_ld=yes
8707
    ;;
8708
  openbsd*)
8709
    with_gnu_ld=no
8710
    ;;
8711
  esac
8712
 
8713
  ld_shlibs=yes
8714
 
8715
  # On some targets, GNU ld is compatible enough with the native linker
8716
  # that we're better off using the native interface for both.
8717
  lt_use_gnu_ld_interface=no
8718
  if test "$with_gnu_ld" = yes; then
8719
    case $host_os in
8720
      aix*)
8721
        # The AIX port of GNU ld has always aspired to compatibility
8722
        # with the native linker.  However, as the warning in the GNU ld
8723
        # block says, versions before 2.19.5* couldn't really create working
8724
        # shared libraries, regardless of the interface used.
8725
        case `$LD -v 2>&1` in
8726
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8727
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8728
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8729
          *)
8730
            lt_use_gnu_ld_interface=yes
8731
            ;;
8732
        esac
8733
        ;;
8734
      *)
8735
        lt_use_gnu_ld_interface=yes
8736
        ;;
8737
    esac
8738
  fi
8739
 
8740
  if test "$lt_use_gnu_ld_interface" = yes; then
8741
    # If archive_cmds runs LD, not CC, wlarc should be empty
8742
    wlarc='${wl}'
8743
 
8744
    # Set some defaults for GNU ld with shared library support. These
8745
    # are reset later if shared libraries are not supported. Putting them
8746
    # here allows them to be overridden if necessary.
8747
    runpath_var=LD_RUN_PATH
8748
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8749
    export_dynamic_flag_spec='${wl}--export-dynamic'
8750
    # ancient GNU ld didn't support --whole-archive et. al.
8751
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8752
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8753
    else
8754
      whole_archive_flag_spec=
8755
    fi
8756
    supports_anon_versioning=no
8757
    case `$LD -v 2>&1` in
8758
      *GNU\ gold*) supports_anon_versioning=yes ;;
8759
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8760
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8761
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8762
      *\ 2.11.*) ;; # other 2.11 versions
8763
      *) supports_anon_versioning=yes ;;
8764
    esac
8765
 
8766
    # See if GNU ld supports shared libraries.
8767
    case $host_os in
8768
    aix[3-9]*)
8769
      # On AIX/PPC, the GNU linker is very broken
8770
      if test "$host_cpu" != ia64; then
8771
        ld_shlibs=no
8772
        cat <<_LT_EOF 1>&2
8773
 
8774
*** Warning: the GNU linker, at least up to release 2.19, is reported
8775
*** to be unable to reliably create shared libraries on AIX.
8776
*** Therefore, libtool is disabling shared libraries support.  If you
8777
*** really care for shared libraries, you may want to install binutils
8778
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8779
*** You will then need to restart the configuration process.
8780
 
8781
_LT_EOF
8782
      fi
8783
      ;;
8784
 
8785
    amigaos*)
8786
      case $host_cpu in
8787
      powerpc)
8788
            # see comment about AmigaOS4 .so support
8789
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8790
            archive_expsym_cmds=''
8791
        ;;
8792
      m68k)
8793
            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)'
8794
            hardcode_libdir_flag_spec='-L$libdir'
8795
            hardcode_minus_L=yes
8796
        ;;
8797
      esac
8798
      ;;
8799
 
8800
    beos*)
8801
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8802
        allow_undefined_flag=unsupported
8803
        # Joseph Beckenbach  says some releases of gcc
8804
        # support --undefined.  This deserves some investigation.  FIXME
8805
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8806
      else
8807
        ld_shlibs=no
8808
      fi
8809
      ;;
8810
 
8811
    cygwin* | mingw* | pw32* | cegcc*)
8812
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8813
      # as there is no search path for DLLs.
8814
      hardcode_libdir_flag_spec='-L$libdir'
8815
      export_dynamic_flag_spec='${wl}--export-all-symbols'
8816
      allow_undefined_flag=unsupported
8817
      always_export_symbols=no
8818
      enable_shared_with_static_runtimes=yes
8819
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8820
 
8821
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8822
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8823
        # If the export-symbols file already is a .def file (1st line
8824
        # is EXPORTS), use it as is; otherwise, prepend...
8825
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8826
          cp $export_symbols $output_objdir/$soname.def;
8827
        else
8828
          echo EXPORTS > $output_objdir/$soname.def;
8829
          cat $export_symbols >> $output_objdir/$soname.def;
8830
        fi~
8831
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8832
      else
8833
        ld_shlibs=no
8834
      fi
8835
      ;;
8836
 
8837
    haiku*)
8838
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8839
      link_all_deplibs=yes
8840
      ;;
8841
 
8842
    interix[3-9]*)
8843
      hardcode_direct=no
8844
      hardcode_shlibpath_var=no
8845
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8846
      export_dynamic_flag_spec='${wl}-E'
8847
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8848
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8849
      # default) and relocated if they conflict, which is a slow very memory
8850
      # consuming and fragmenting process.  To avoid this, we pick a random,
8851
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8852
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8853
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8854
      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'
8855
      ;;
8856
 
8857
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8858
      tmp_diet=no
8859
      if test "$host_os" = linux-dietlibc; then
8860
        case $cc_basename in
8861
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8862
        esac
8863
      fi
8864
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8865
         && test "$tmp_diet" = no
8866
      then
8867
        tmp_addflag=
8868
        tmp_sharedflag='-shared'
8869
        case $cc_basename,$host_cpu in
8870
        pgcc*)                          # Portland Group C compiler
8871
          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'
8872
          tmp_addflag=' $pic_flag'
8873
          ;;
8874
        pgf77* | pgf90* | pgf95* | pgfortran*)
8875
                                        # Portland Group f77 and f90 compilers
8876
          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'
8877
          tmp_addflag=' $pic_flag -Mnomain' ;;
8878
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8879
          tmp_addflag=' -i_dynamic' ;;
8880
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8881
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8882
        ifc* | ifort*)                  # Intel Fortran compiler
8883
          tmp_addflag=' -nofor_main' ;;
8884
        lf95*)                          # Lahey Fortran 8.1
8885
          whole_archive_flag_spec=
8886
          tmp_sharedflag='--shared' ;;
8887
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8888
          tmp_sharedflag='-qmkshrobj'
8889
          tmp_addflag= ;;
8890
        nvcc*)  # Cuda Compiler Driver 2.2
8891
          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'
8892
          compiler_needs_object=yes
8893
          ;;
8894
        esac
8895
        case `$CC -V 2>&1 | sed 5q` in
8896
        *Sun\ C*)                       # Sun C 5.9
8897
          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'
8898
          compiler_needs_object=yes
8899
          tmp_sharedflag='-G' ;;
8900
        *Sun\ F*)                       # Sun Fortran 8.3
8901
          tmp_sharedflag='-G' ;;
8902
        esac
8903
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8904
 
8905
        if test "x$supports_anon_versioning" = xyes; then
8906
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8907
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8908
            echo "local: *; };" >> $output_objdir/$libname.ver~
8909
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8910
        fi
8911
 
8912
        case $cc_basename in
8913
        xlf* | bgf* | bgxlf* | mpixlf*)
8914
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8915
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8916
          hardcode_libdir_flag_spec=
8917
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8918
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8919
          if test "x$supports_anon_versioning" = xyes; then
8920
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8921
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8922
              echo "local: *; };" >> $output_objdir/$libname.ver~
8923
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8924
          fi
8925
          ;;
8926
        esac
8927
      else
8928
        ld_shlibs=no
8929
      fi
8930
      ;;
8931
 
8932
    netbsd*)
8933
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8934
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8935
        wlarc=
8936
      else
8937
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8938
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8939
      fi
8940
      ;;
8941
 
8942
    solaris*)
8943
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8944
        ld_shlibs=no
8945
        cat <<_LT_EOF 1>&2
8946
 
8947
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8948
*** create shared libraries on Solaris systems.  Therefore, libtool
8949
*** is disabling shared libraries support.  We urge you to upgrade GNU
8950
*** binutils to release 2.9.1 or newer.  Another option is to modify
8951
*** your PATH or compiler configuration so that the native linker is
8952
*** used, and then restart.
8953
 
8954
_LT_EOF
8955
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8956
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8957
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8958
      else
8959
        ld_shlibs=no
8960
      fi
8961
      ;;
8962
 
8963
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8964
      case `$LD -v 2>&1` in
8965
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8966
        ld_shlibs=no
8967
        cat <<_LT_EOF 1>&2
8968
 
8969
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8970
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8971
*** is disabling shared libraries support.  We urge you to upgrade GNU
8972
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8973
*** your PATH or compiler configuration so that the native linker is
8974
*** used, and then restart.
8975
 
8976
_LT_EOF
8977
        ;;
8978
        *)
8979
          # For security reasons, it is highly recommended that you always
8980
          # use absolute paths for naming shared libraries, and exclude the
8981
          # DT_RUNPATH tag from executables and libraries.  But doing so
8982
          # requires that you compile everything twice, which is a pain.
8983
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8984
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8985
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8987
          else
8988
            ld_shlibs=no
8989
          fi
8990
        ;;
8991
      esac
8992
      ;;
8993
 
8994
    sunos4*)
8995
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8996
      wlarc=
8997
      hardcode_direct=yes
8998
      hardcode_shlibpath_var=no
8999
      ;;
9000
 
9001
    *)
9002
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9003
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9004
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9005
      else
9006
        ld_shlibs=no
9007
      fi
9008
      ;;
9009
    esac
9010
 
9011
    if test "$ld_shlibs" = no; then
9012
      runpath_var=
9013
      hardcode_libdir_flag_spec=
9014
      export_dynamic_flag_spec=
9015
      whole_archive_flag_spec=
9016
    fi
9017
  else
9018
    # PORTME fill in a description of your system's linker (not GNU ld)
9019
    case $host_os in
9020
    aix3*)
9021
      allow_undefined_flag=unsupported
9022
      always_export_symbols=yes
9023
      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'
9024
      # Note: this linker hardcodes the directories in LIBPATH if there
9025
      # are no directories specified by -L.
9026
      hardcode_minus_L=yes
9027
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9028
        # Neither direct hardcoding nor static linking is supported with a
9029
        # broken collect2.
9030
        hardcode_direct=unsupported
9031
      fi
9032
      ;;
9033
 
9034
    aix[4-9]*)
9035
      if test "$host_cpu" = ia64; then
9036
        # On IA64, the linker does run time linking by default, so we don't
9037
        # have to do anything special.
9038
        aix_use_runtimelinking=no
9039
        exp_sym_flag='-Bexport'
9040
        no_entry_flag=""
9041
      else
9042
        # If we're using GNU nm, then we don't want the "-C" option.
9043
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9044
        # Also, AIX nm treats weak defined symbols like other global
9045
        # defined symbols, whereas GNU nm marks them as "W".
9046
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9047
          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'
9048
        else
9049
          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'
9050
        fi
9051
        aix_use_runtimelinking=no
9052
 
9053
        # Test if we are trying to use run time linking or normal
9054
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9055
        # need to do runtime linking.
9056
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9057
          for ld_flag in $LDFLAGS; do
9058
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9059
            aix_use_runtimelinking=yes
9060
            break
9061
          fi
9062
          done
9063
          ;;
9064
        esac
9065
 
9066
        exp_sym_flag='-bexport'
9067
        no_entry_flag='-bnoentry'
9068
      fi
9069
 
9070
      # When large executables or shared objects are built, AIX ld can
9071
      # have problems creating the table of contents.  If linking a library
9072
      # or program results in "error TOC overflow" add -mminimal-toc to
9073
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9074
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9075
 
9076
      archive_cmds=''
9077
      hardcode_direct=yes
9078
      hardcode_direct_absolute=yes
9079
      hardcode_libdir_separator=':'
9080
      link_all_deplibs=yes
9081
      file_list_spec='${wl}-f,'
9082
 
9083
      if test "$GCC" = yes; then
9084
        case $host_os in aix4.[012]|aix4.[012].*)
9085
        # We only want to do this on AIX 4.2 and lower, the check
9086
        # below for broken collect2 doesn't work under 4.3+
9087
          collect2name=`${CC} -print-prog-name=collect2`
9088
          if test -f "$collect2name" &&
9089
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9090
          then
9091
          # We have reworked collect2
9092
          :
9093
          else
9094
          # We have old collect2
9095
          hardcode_direct=unsupported
9096
          # It fails to find uninstalled libraries when the uninstalled
9097
          # path is not listed in the libpath.  Setting hardcode_minus_L
9098
          # to unsupported forces relinking
9099
          hardcode_minus_L=yes
9100
          hardcode_libdir_flag_spec='-L$libdir'
9101
          hardcode_libdir_separator=
9102
          fi
9103
          ;;
9104
        esac
9105
        shared_flag='-shared'
9106
        if test "$aix_use_runtimelinking" = yes; then
9107
          shared_flag="$shared_flag "'${wl}-G'
9108
        fi
9109
      else
9110
        # not using gcc
9111
        if test "$host_cpu" = ia64; then
9112
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9113
        # chokes on -Wl,-G. The following line is correct:
9114
          shared_flag='-G'
9115
        else
9116
          if test "$aix_use_runtimelinking" = yes; then
9117
            shared_flag='${wl}-G'
9118
          else
9119
            shared_flag='${wl}-bM:SRE'
9120
          fi
9121
        fi
9122
      fi
9123
 
9124
      export_dynamic_flag_spec='${wl}-bexpall'
9125
      # It seems that -bexpall does not export symbols beginning with
9126
      # underscore (_), so it is better to generate a list of symbols to export.
9127
      always_export_symbols=yes
9128
      if test "$aix_use_runtimelinking" = yes; then
9129
        # Warning - without using the other runtime loading flags (-brtl),
9130
        # -berok will link without error, but may produce a broken library.
9131
        allow_undefined_flag='-berok'
9132
        # Determine the default libpath from the value encoded in an
9133
        # empty executable.
9134
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135
/* end confdefs.h.  */
9136
 
9137
int
9138
main ()
9139
{
9140
 
9141
  ;
9142
  return 0;
9143
}
9144
_ACEOF
9145
if ac_fn_c_try_link "$LINENO"; then :
9146
 
9147
lt_aix_libpath_sed='
9148
    /Import File Strings/,/^$/ {
9149
        /^0/ {
9150
            s/^0  *\(.*\)$/\1/
9151
            p
9152
        }
9153
    }'
9154
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9155
# Check for a 64-bit object if we didn't find anything.
9156
if test -z "$aix_libpath"; then
9157
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9158
fi
9159
fi
9160
rm -f core conftest.err conftest.$ac_objext \
9161
    conftest$ac_exeext conftest.$ac_ext
9162
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9163
 
9164
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9165
        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"
9166
      else
9167
        if test "$host_cpu" = ia64; then
9168
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9169
          allow_undefined_flag="-z nodefs"
9170
          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"
9171
        else
9172
         # Determine the default libpath from the value encoded in an
9173
         # empty executable.
9174
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9175
/* end confdefs.h.  */
9176
 
9177
int
9178
main ()
9179
{
9180
 
9181
  ;
9182
  return 0;
9183
}
9184
_ACEOF
9185
if ac_fn_c_try_link "$LINENO"; then :
9186
 
9187
lt_aix_libpath_sed='
9188
    /Import File Strings/,/^$/ {
9189
        /^0/ {
9190
            s/^0  *\(.*\)$/\1/
9191
            p
9192
        }
9193
    }'
9194
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9195
# Check for a 64-bit object if we didn't find anything.
9196
if test -z "$aix_libpath"; then
9197
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9198
fi
9199
fi
9200
rm -f core conftest.err conftest.$ac_objext \
9201
    conftest$ac_exeext conftest.$ac_ext
9202
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9203
 
9204
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9205
          # Warning - without using the other run time loading flags,
9206
          # -berok will link without error, but may produce a broken library.
9207
          no_undefined_flag=' ${wl}-bernotok'
9208
          allow_undefined_flag=' ${wl}-berok'
9209
          if test "$with_gnu_ld" = yes; then
9210
            # We only use this code for GNU lds that support --whole-archive.
9211
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9212
          else
9213
            # Exported symbols can be pulled into shared objects from archives
9214
            whole_archive_flag_spec='$convenience'
9215
          fi
9216
          archive_cmds_need_lc=yes
9217
          # This is similar to how AIX traditionally builds its shared libraries.
9218
          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'
9219
        fi
9220
      fi
9221
      ;;
9222
 
9223
    amigaos*)
9224
      case $host_cpu in
9225
      powerpc)
9226
            # see comment about AmigaOS4 .so support
9227
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9228
            archive_expsym_cmds=''
9229
        ;;
9230
      m68k)
9231
            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)'
9232
            hardcode_libdir_flag_spec='-L$libdir'
9233
            hardcode_minus_L=yes
9234
        ;;
9235
      esac
9236
      ;;
9237
 
9238
    bsdi[45]*)
9239
      export_dynamic_flag_spec=-rdynamic
9240
      ;;
9241
 
9242
    cygwin* | mingw* | pw32* | cegcc*)
9243
      # When not using gcc, we currently assume that we are using
9244
      # Microsoft Visual C++.
9245
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9246
      # no search path for DLLs.
9247
      hardcode_libdir_flag_spec=' '
9248
      allow_undefined_flag=unsupported
9249
      # Tell ltmain to make .lib files, not .a files.
9250
      libext=lib
9251
      # Tell ltmain to make .dll files, not .so files.
9252
      shrext_cmds=".dll"
9253
      # FIXME: Setting linknames here is a bad hack.
9254
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9255
      # The linker will automatically build a .lib file if we build a DLL.
9256
      old_archive_from_new_cmds='true'
9257
      # FIXME: Should let the user specify the lib program.
9258
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9259
      fix_srcfile_path='`cygpath -w "$srcfile"`'
9260
      enable_shared_with_static_runtimes=yes
9261
      ;;
9262
 
9263
    darwin* | rhapsody*)
9264
 
9265
 
9266
  archive_cmds_need_lc=no
9267
  hardcode_direct=no
9268
  hardcode_automatic=yes
9269
  hardcode_shlibpath_var=unsupported
9270
  if test "$lt_cv_ld_force_load" = "yes"; then
9271
    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\"`'
9272
  else
9273
    whole_archive_flag_spec=''
9274
  fi
9275
  link_all_deplibs=yes
9276
  allow_undefined_flag="$_lt_dar_allow_undefined"
9277
  case $cc_basename in
9278
     ifort*) _lt_dar_can_shared=yes ;;
9279
     *) _lt_dar_can_shared=$GCC ;;
9280
  esac
9281
  if test "$_lt_dar_can_shared" = "yes"; then
9282
    output_verbose_link_cmd=func_echo_all
9283
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9284
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9285
    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}"
9286
    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}"
9287
 
9288
  else
9289
  ld_shlibs=no
9290
  fi
9291
 
9292
      ;;
9293
 
9294
    dgux*)
9295
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9296
      hardcode_libdir_flag_spec='-L$libdir'
9297
      hardcode_shlibpath_var=no
9298
      ;;
9299
 
9300
    freebsd1*)
9301
      ld_shlibs=no
9302
      ;;
9303
 
9304
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9305
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9306
    # does not break anything, and helps significantly (at the cost of a little
9307
    # extra space).
9308
    freebsd2.2*)
9309
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9310
      hardcode_libdir_flag_spec='-R$libdir'
9311
      hardcode_direct=yes
9312
      hardcode_shlibpath_var=no
9313
      ;;
9314
 
9315
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9316
    freebsd2*)
9317
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9318
      hardcode_direct=yes
9319
      hardcode_minus_L=yes
9320
      hardcode_shlibpath_var=no
9321
      ;;
9322
 
9323
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9324
    freebsd* | dragonfly*)
9325
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9326
      hardcode_libdir_flag_spec='-R$libdir'
9327
      hardcode_direct=yes
9328
      hardcode_shlibpath_var=no
9329
      ;;
9330
 
9331
    hpux9*)
9332
      if test "$GCC" = yes; then
9333
        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'
9334
      else
9335
        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'
9336
      fi
9337
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9338
      hardcode_libdir_separator=:
9339
      hardcode_direct=yes
9340
 
9341
      # hardcode_minus_L: Not really in the search PATH,
9342
      # but as the default location of the library.
9343
      hardcode_minus_L=yes
9344
      export_dynamic_flag_spec='${wl}-E'
9345
      ;;
9346
 
9347
    hpux10*)
9348
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9349
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9350
      else
9351
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9352
      fi
9353
      if test "$with_gnu_ld" = no; then
9354
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9355
        hardcode_libdir_flag_spec_ld='+b $libdir'
9356
        hardcode_libdir_separator=:
9357
        hardcode_direct=yes
9358
        hardcode_direct_absolute=yes
9359
        export_dynamic_flag_spec='${wl}-E'
9360
        # hardcode_minus_L: Not really in the search PATH,
9361
        # but as the default location of the library.
9362
        hardcode_minus_L=yes
9363
      fi
9364
      ;;
9365
 
9366
    hpux11*)
9367
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9368
        case $host_cpu in
9369
        hppa*64*)
9370
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9371
          ;;
9372
        ia64*)
9373
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9374
          ;;
9375
        *)
9376
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9377
          ;;
9378
        esac
9379
      else
9380
        case $host_cpu in
9381
        hppa*64*)
9382
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9383
          ;;
9384
        ia64*)
9385
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9386
          ;;
9387
        *)
9388
 
9389
          # Older versions of the 11.00 compiler do not understand -b yet
9390
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9391
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9392
$as_echo_n "checking if $CC understands -b... " >&6; }
9393
if test "${lt_cv_prog_compiler__b+set}" = set; then :
9394
  $as_echo_n "(cached) " >&6
9395
else
9396
  lt_cv_prog_compiler__b=no
9397
   save_LDFLAGS="$LDFLAGS"
9398
   LDFLAGS="$LDFLAGS -b"
9399
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9400
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9401
     # The linker can only warn and ignore the option if not recognized
9402
     # So say no if there are warnings
9403
     if test -s conftest.err; then
9404
       # Append any errors to the config.log.
9405
       cat conftest.err 1>&5
9406
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9407
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9408
       if diff conftest.exp conftest.er2 >/dev/null; then
9409
         lt_cv_prog_compiler__b=yes
9410
       fi
9411
     else
9412
       lt_cv_prog_compiler__b=yes
9413
     fi
9414
   fi
9415
   $RM -r conftest*
9416
   LDFLAGS="$save_LDFLAGS"
9417
 
9418
fi
9419
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9420
$as_echo "$lt_cv_prog_compiler__b" >&6; }
9421
 
9422
if test x"$lt_cv_prog_compiler__b" = xyes; then
9423
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9424
else
9425
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9426
fi
9427
 
9428
          ;;
9429
        esac
9430
      fi
9431
      if test "$with_gnu_ld" = no; then
9432
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9433
        hardcode_libdir_separator=:
9434
 
9435
        case $host_cpu in
9436
        hppa*64*|ia64*)
9437
          hardcode_direct=no
9438
          hardcode_shlibpath_var=no
9439
          ;;
9440
        *)
9441
          hardcode_direct=yes
9442
          hardcode_direct_absolute=yes
9443
          export_dynamic_flag_spec='${wl}-E'
9444
 
9445
          # hardcode_minus_L: Not really in the search PATH,
9446
          # but as the default location of the library.
9447
          hardcode_minus_L=yes
9448
          ;;
9449
        esac
9450
      fi
9451
      ;;
9452
 
9453
    irix5* | irix6* | nonstopux*)
9454
      if test "$GCC" = yes; then
9455
        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'
9456
        # Try to use the -exported_symbol ld option, if it does not
9457
        # work, assume that -exports_file does not work either and
9458
        # implicitly export all symbols.
9459
        save_LDFLAGS="$LDFLAGS"
9460
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9461
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462
/* end confdefs.h.  */
9463
int foo(void) {}
9464
_ACEOF
9465
if ac_fn_c_try_link "$LINENO"; then :
9466
  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'
9467
 
9468
fi
9469
rm -f core conftest.err conftest.$ac_objext \
9470
    conftest$ac_exeext conftest.$ac_ext
9471
        LDFLAGS="$save_LDFLAGS"
9472
      else
9473
        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'
9474
        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'
9475
      fi
9476
      archive_cmds_need_lc='no'
9477
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9478
      hardcode_libdir_separator=:
9479
      inherit_rpath=yes
9480
      link_all_deplibs=yes
9481
      ;;
9482
 
9483
    netbsd*)
9484
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9485
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9486
      else
9487
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9488
      fi
9489
      hardcode_libdir_flag_spec='-R$libdir'
9490
      hardcode_direct=yes
9491
      hardcode_shlibpath_var=no
9492
      ;;
9493
 
9494
    newsos6)
9495
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9496
      hardcode_direct=yes
9497
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9498
      hardcode_libdir_separator=:
9499
      hardcode_shlibpath_var=no
9500
      ;;
9501
 
9502
    *nto* | *qnx*)
9503
      ;;
9504
 
9505
    openbsd*)
9506
      if test -f /usr/libexec/ld.so; then
9507
        hardcode_direct=yes
9508
        hardcode_shlibpath_var=no
9509
        hardcode_direct_absolute=yes
9510
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9511
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9512
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9513
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9514
          export_dynamic_flag_spec='${wl}-E'
9515
        else
9516
          case $host_os in
9517
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9518
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9519
             hardcode_libdir_flag_spec='-R$libdir'
9520
             ;;
9521
           *)
9522
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9523
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9524
             ;;
9525
          esac
9526
        fi
9527
      else
9528
        ld_shlibs=no
9529
      fi
9530
      ;;
9531
 
9532
    os2*)
9533
      hardcode_libdir_flag_spec='-L$libdir'
9534
      hardcode_minus_L=yes
9535
      allow_undefined_flag=unsupported
9536
      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'
9537
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9538
      ;;
9539
 
9540
    osf3*)
9541
      if test "$GCC" = yes; then
9542
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9543
        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'
9544
      else
9545
        allow_undefined_flag=' -expect_unresolved \*'
9546
        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'
9547
      fi
9548
      archive_cmds_need_lc='no'
9549
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9550
      hardcode_libdir_separator=:
9551
      ;;
9552
 
9553
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9554
      if test "$GCC" = yes; then
9555
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9556
        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'
9557
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9558
      else
9559
        allow_undefined_flag=' -expect_unresolved \*'
9560
        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'
9561
        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~
9562
        $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'
9563
 
9564
        # Both c and cxx compiler support -rpath directly
9565
        hardcode_libdir_flag_spec='-rpath $libdir'
9566
      fi
9567
      archive_cmds_need_lc='no'
9568
      hardcode_libdir_separator=:
9569
      ;;
9570
 
9571
    solaris*)
9572
      no_undefined_flag=' -z defs'
9573
      if test "$GCC" = yes; then
9574
        wlarc='${wl}'
9575
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9576
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9577
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9578
      else
9579
        case `$CC -V 2>&1` in
9580
        *"Compilers 5.0"*)
9581
          wlarc=''
9582
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9583
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9584
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9585
          ;;
9586
        *)
9587
          wlarc='${wl}'
9588
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9589
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9590
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9591
          ;;
9592
        esac
9593
      fi
9594
      hardcode_libdir_flag_spec='-R$libdir'
9595
      hardcode_shlibpath_var=no
9596
      case $host_os in
9597
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9598
      *)
9599
        # The compiler driver will combine and reorder linker options,
9600
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9601
        # but is careful enough not to reorder.
9602
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9603
        if test "$GCC" = yes; then
9604
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9605
        else
9606
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9607
        fi
9608
        ;;
9609
      esac
9610
      link_all_deplibs=yes
9611
      ;;
9612
 
9613
    sunos4*)
9614
      if test "x$host_vendor" = xsequent; then
9615
        # Use $CC to link under sequent, because it throws in some extra .o
9616
        # files that make .init and .fini sections work.
9617
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9618
      else
9619
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9620
      fi
9621
      hardcode_libdir_flag_spec='-L$libdir'
9622
      hardcode_direct=yes
9623
      hardcode_minus_L=yes
9624
      hardcode_shlibpath_var=no
9625
      ;;
9626
 
9627
    sysv4)
9628
      case $host_vendor in
9629
        sni)
9630
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9631
          hardcode_direct=yes # is this really true???
9632
        ;;
9633
        siemens)
9634
          ## LD is ld it makes a PLAMLIB
9635
          ## CC just makes a GrossModule.
9636
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9637
          reload_cmds='$CC -r -o $output$reload_objs'
9638
          hardcode_direct=no
9639
        ;;
9640
        motorola)
9641
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9642
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9643
        ;;
9644
      esac
9645
      runpath_var='LD_RUN_PATH'
9646
      hardcode_shlibpath_var=no
9647
      ;;
9648
 
9649
    sysv4.3*)
9650
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9651
      hardcode_shlibpath_var=no
9652
      export_dynamic_flag_spec='-Bexport'
9653
      ;;
9654
 
9655
    sysv4*MP*)
9656
      if test -d /usr/nec; then
9657
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9658
        hardcode_shlibpath_var=no
9659
        runpath_var=LD_RUN_PATH
9660
        hardcode_runpath_var=yes
9661
        ld_shlibs=yes
9662
      fi
9663
      ;;
9664
 
9665
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9666
      no_undefined_flag='${wl}-z,text'
9667
      archive_cmds_need_lc=no
9668
      hardcode_shlibpath_var=no
9669
      runpath_var='LD_RUN_PATH'
9670
 
9671
      if test "$GCC" = yes; then
9672
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9673
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9674
      else
9675
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9676
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9677
      fi
9678
      ;;
9679
 
9680
    sysv5* | sco3.2v5* | sco5v6*)
9681
      # Note: We can NOT use -z defs as we might desire, because we do not
9682
      # link with -lc, and that would cause any symbols used from libc to
9683
      # always be unresolved, which means just about no library would
9684
      # ever link correctly.  If we're not using GNU ld we use -z text
9685
      # though, which does catch some bad symbols but isn't as heavy-handed
9686
      # as -z defs.
9687
      no_undefined_flag='${wl}-z,text'
9688
      allow_undefined_flag='${wl}-z,nodefs'
9689
      archive_cmds_need_lc=no
9690
      hardcode_shlibpath_var=no
9691
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9692
      hardcode_libdir_separator=':'
9693
      link_all_deplibs=yes
9694
      export_dynamic_flag_spec='${wl}-Bexport'
9695
      runpath_var='LD_RUN_PATH'
9696
 
9697
      if test "$GCC" = yes; then
9698
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700
      else
9701
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9702
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9703
      fi
9704
      ;;
9705
 
9706
    uts4*)
9707
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708
      hardcode_libdir_flag_spec='-L$libdir'
9709
      hardcode_shlibpath_var=no
9710
      ;;
9711
 
9712
    *)
9713
      ld_shlibs=no
9714
      ;;
9715
    esac
9716
 
9717
    if test x$host_vendor = xsni; then
9718
      case $host in
9719
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9720
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9721
        ;;
9722
      esac
9723
    fi
9724
  fi
9725
 
9726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9727
$as_echo "$ld_shlibs" >&6; }
9728
test "$ld_shlibs" = no && can_build_shared=no
9729
 
9730
with_gnu_ld=$with_gnu_ld
9731
 
9732
 
9733
 
9734
 
9735
 
9736
 
9737
 
9738
 
9739
 
9740
 
9741
 
9742
 
9743
 
9744
 
9745
 
9746
#
9747
# Do we need to explicitly link libc?
9748
#
9749
case "x$archive_cmds_need_lc" in
9750
x|xyes)
9751
  # Assume -lc should be added
9752
  archive_cmds_need_lc=yes
9753
 
9754
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9755
    case $archive_cmds in
9756
    *'~'*)
9757
      # FIXME: we may have to deal with multi-command sequences.
9758
      ;;
9759
    '$CC '*)
9760
      # Test whether the compiler implicitly links with -lc since on some
9761
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9762
      # to ld, don't add -lc before -lgcc.
9763
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9764
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9765
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9766
  $as_echo_n "(cached) " >&6
9767
else
9768
  $RM conftest*
9769
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9770
 
9771
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9772
  (eval $ac_compile) 2>&5
9773
  ac_status=$?
9774
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9775
  test $ac_status = 0; } 2>conftest.err; then
9776
          soname=conftest
9777
          lib=conftest
9778
          libobjs=conftest.$ac_objext
9779
          deplibs=
9780
          wl=$lt_prog_compiler_wl
9781
          pic_flag=$lt_prog_compiler_pic
9782
          compiler_flags=-v
9783
          linker_flags=-v
9784
          verstring=
9785
          output_objdir=.
9786
          libname=conftest
9787
          lt_save_allow_undefined_flag=$allow_undefined_flag
9788
          allow_undefined_flag=
9789
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9790
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9791
  ac_status=$?
9792
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9793
  test $ac_status = 0; }
9794
          then
9795
            lt_cv_archive_cmds_need_lc=no
9796
          else
9797
            lt_cv_archive_cmds_need_lc=yes
9798
          fi
9799
          allow_undefined_flag=$lt_save_allow_undefined_flag
9800
        else
9801
          cat conftest.err 1>&5
9802
        fi
9803
        $RM conftest*
9804
 
9805
fi
9806
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9807
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9808
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9809
      ;;
9810
    esac
9811
  fi
9812
  ;;
9813
esac
9814
 
9815
 
9816
 
9817
 
9818
 
9819
 
9820
 
9821
 
9822
 
9823
 
9824
 
9825
 
9826
 
9827
 
9828
 
9829
 
9830
 
9831
 
9832
 
9833
 
9834
 
9835
 
9836
 
9837
 
9838
 
9839
 
9840
 
9841
 
9842
 
9843
 
9844
 
9845
 
9846
 
9847
 
9848
 
9849
 
9850
 
9851
 
9852
 
9853
 
9854
 
9855
 
9856
 
9857
 
9858
 
9859
 
9860
 
9861
 
9862
 
9863
 
9864
 
9865
 
9866
 
9867
 
9868
 
9869
 
9870
 
9871
 
9872
 
9873
 
9874
 
9875
 
9876
 
9877
 
9878
 
9879
 
9880
 
9881
 
9882
 
9883
 
9884
 
9885
 
9886
 
9887
 
9888
 
9889
 
9890
 
9891
 
9892
 
9893
 
9894
 
9895
 
9896
 
9897
 
9898
 
9899
 
9900
 
9901
 
9902
 
9903
 
9904
 
9905
 
9906
 
9907
 
9908
 
9909
 
9910
 
9911
 
9912
 
9913
 
9914
 
9915
 
9916
 
9917
 
9918
 
9919
 
9920
 
9921
 
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
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9972
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9973
 
9974
if test "$GCC" = yes; then
9975
  case $host_os in
9976
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9977
    *) lt_awk_arg="/^libraries:/" ;;
9978
  esac
9979
  case $host_os in
9980
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9981
    *) lt_sed_strip_eq="s,=/,/,g" ;;
9982
  esac
9983
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9984
  case $lt_search_path_spec in
9985
  *\;*)
9986
    # if the path contains ";" then we assume it to be the separator
9987
    # otherwise default to the standard path separator (i.e. ":") - it is
9988
    # assumed that no part of a normal pathname contains ";" but that should
9989
    # okay in the real world where ";" in dirpaths is itself problematic.
9990
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9991
    ;;
9992
  *)
9993
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9994
    ;;
9995
  esac
9996
  # Ok, now we have the path, separated by spaces, we can step through it
9997
  # and add multilib dir if necessary.
9998
  lt_tmp_lt_search_path_spec=
9999
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10000
  for lt_sys_path in $lt_search_path_spec; do
10001
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10002
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10003
    else
10004
      test -d "$lt_sys_path" && \
10005
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10006
    fi
10007
  done
10008
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10009
BEGIN {RS=" "; FS="/|\n";} {
10010
  lt_foo="";
10011
  lt_count=0;
10012
  for (lt_i = NF; lt_i > 0; lt_i--) {
10013
    if ($lt_i != "" && $lt_i != ".") {
10014
      if ($lt_i == "..") {
10015
        lt_count++;
10016
      } else {
10017
        if (lt_count == 0) {
10018
          lt_foo="/" $lt_i lt_foo;
10019
        } else {
10020
          lt_count--;
10021
        }
10022
      }
10023
    }
10024
  }
10025
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10026
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10027
}'`
10028
  # AWK program above erroneously prepends '/' to C:/dos/paths
10029
  # for these hosts.
10030
  case $host_os in
10031
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10032
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10033
  esac
10034
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10035
else
10036
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10037
fi
10038
library_names_spec=
10039
libname_spec='lib$name'
10040
soname_spec=
10041
shrext_cmds=".so"
10042
postinstall_cmds=
10043
postuninstall_cmds=
10044
finish_cmds=
10045
finish_eval=
10046
shlibpath_var=
10047
shlibpath_overrides_runpath=unknown
10048
version_type=none
10049
dynamic_linker="$host_os ld.so"
10050
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10051
need_lib_prefix=unknown
10052
hardcode_into_libs=no
10053
 
10054
# when you set need_version to no, make sure it does not cause -set_version
10055
# flags to be left without arguments
10056
need_version=unknown
10057
 
10058
case $host_os in
10059
aix3*)
10060
  version_type=linux
10061
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10062
  shlibpath_var=LIBPATH
10063
 
10064
  # AIX 3 has no versioning support, so we append a major version to the name.
10065
  soname_spec='${libname}${release}${shared_ext}$major'
10066
  ;;
10067
 
10068
aix[4-9]*)
10069
  version_type=linux
10070
  need_lib_prefix=no
10071
  need_version=no
10072
  hardcode_into_libs=yes
10073
  if test "$host_cpu" = ia64; then
10074
    # AIX 5 supports IA64
10075
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10076
    shlibpath_var=LD_LIBRARY_PATH
10077
  else
10078
    # With GCC up to 2.95.x, collect2 would create an import file
10079
    # for dependence libraries.  The import file would start with
10080
    # the line `#! .'.  This would cause the generated library to
10081
    # depend on `.', always an invalid library.  This was fixed in
10082
    # development snapshots of GCC prior to 3.0.
10083
    case $host_os in
10084
      aix4 | aix4.[01] | aix4.[01].*)
10085
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10086
           echo ' yes '
10087
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10088
        :
10089
      else
10090
        can_build_shared=no
10091
      fi
10092
      ;;
10093
    esac
10094
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10095
    # soname into executable. Probably we can add versioning support to
10096
    # collect2, so additional links can be useful in future.
10097
    if test "$aix_use_runtimelinking" = yes; then
10098
      # If using run time linking (on AIX 4.2 or later) use lib.so
10099
      # instead of lib.a to let people know that these are not
10100
      # typical AIX shared libraries.
10101
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102
    else
10103
      # We preserve .a as extension for shared libraries through AIX4.2
10104
      # and later when we are not doing run time linking.
10105
      library_names_spec='${libname}${release}.a $libname.a'
10106
      soname_spec='${libname}${release}${shared_ext}$major'
10107
    fi
10108
    shlibpath_var=LIBPATH
10109
  fi
10110
  ;;
10111
 
10112
amigaos*)
10113
  case $host_cpu in
10114
  powerpc)
10115
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10116
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10117
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118
    ;;
10119
  m68k)
10120
    library_names_spec='$libname.ixlibrary $libname.a'
10121
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10122
    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'
10123
    ;;
10124
  esac
10125
  ;;
10126
 
10127
beos*)
10128
  library_names_spec='${libname}${shared_ext}'
10129
  dynamic_linker="$host_os ld.so"
10130
  shlibpath_var=LIBRARY_PATH
10131
  ;;
10132
 
10133
bsdi[45]*)
10134
  version_type=linux
10135
  need_version=no
10136
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137
  soname_spec='${libname}${release}${shared_ext}$major'
10138
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10139
  shlibpath_var=LD_LIBRARY_PATH
10140
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10141
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10142
  # the default ld.so.conf also contains /usr/contrib/lib and
10143
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10144
  # libtool to hard-code these into programs
10145
  ;;
10146
 
10147
cygwin* | mingw* | pw32* | cegcc*)
10148
  version_type=windows
10149
  shrext_cmds=".dll"
10150
  need_version=no
10151
  need_lib_prefix=no
10152
 
10153
  case $GCC,$host_os in
10154
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10155
    library_names_spec='$libname.dll.a'
10156
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10157
    postinstall_cmds='base_file=`basename \${file}`~
10158
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10159
      dldir=$destdir/`dirname \$dlpath`~
10160
      test -d \$dldir || mkdir -p \$dldir~
10161
      $install_prog $dir/$dlname \$dldir/$dlname~
10162
      chmod a+x \$dldir/$dlname~
10163
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10164
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10165
      fi'
10166
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10167
      dlpath=$dir/\$dldll~
10168
       $RM \$dlpath'
10169
    shlibpath_overrides_runpath=yes
10170
 
10171
    case $host_os in
10172
    cygwin*)
10173
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10174
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10175
 
10176
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10177
      ;;
10178
    mingw* | cegcc*)
10179
      # MinGW DLLs use traditional 'lib' prefix
10180
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10181
      ;;
10182
    pw32*)
10183
      # pw32 DLLs use 'pw' prefix rather than 'lib'
10184
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10185
      ;;
10186
    esac
10187
    ;;
10188
 
10189
  *)
10190
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10191
    ;;
10192
  esac
10193
  dynamic_linker='Win32 ld.exe'
10194
  # FIXME: first we should search . and the directory the executable is in
10195
  shlibpath_var=PATH
10196
  ;;
10197
 
10198
darwin* | rhapsody*)
10199
  dynamic_linker="$host_os dyld"
10200
  version_type=darwin
10201
  need_lib_prefix=no
10202
  need_version=no
10203
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10204
  soname_spec='${libname}${release}${major}$shared_ext'
10205
  shlibpath_overrides_runpath=yes
10206
  shlibpath_var=DYLD_LIBRARY_PATH
10207
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10208
 
10209
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10210
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10211
  ;;
10212
 
10213
dgux*)
10214
  version_type=linux
10215
  need_lib_prefix=no
10216
  need_version=no
10217
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10218
  soname_spec='${libname}${release}${shared_ext}$major'
10219
  shlibpath_var=LD_LIBRARY_PATH
10220
  ;;
10221
 
10222
freebsd1*)
10223
  dynamic_linker=no
10224
  ;;
10225
 
10226
freebsd* | dragonfly*)
10227
  # DragonFly does not have aout.  When/if they implement a new
10228
  # versioning mechanism, adjust this.
10229
  if test -x /usr/bin/objformat; then
10230
    objformat=`/usr/bin/objformat`
10231
  else
10232
    case $host_os in
10233
    freebsd[123]*) objformat=aout ;;
10234
    *) objformat=elf ;;
10235
    esac
10236
  fi
10237
  version_type=freebsd-$objformat
10238
  case $version_type in
10239
    freebsd-elf*)
10240
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10241
      need_version=no
10242
      need_lib_prefix=no
10243
      ;;
10244
    freebsd-*)
10245
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10246
      need_version=yes
10247
      ;;
10248
  esac
10249
  shlibpath_var=LD_LIBRARY_PATH
10250
  case $host_os in
10251
  freebsd2*)
10252
    shlibpath_overrides_runpath=yes
10253
    ;;
10254
  freebsd3.[01]* | freebsdelf3.[01]*)
10255
    shlibpath_overrides_runpath=yes
10256
    hardcode_into_libs=yes
10257
    ;;
10258
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10259
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10260
    shlibpath_overrides_runpath=no
10261
    hardcode_into_libs=yes
10262
    ;;
10263
  *) # from 4.6 on, and DragonFly
10264
    shlibpath_overrides_runpath=yes
10265
    hardcode_into_libs=yes
10266
    ;;
10267
  esac
10268
  ;;
10269
 
10270
gnu*)
10271
  version_type=linux
10272
  need_lib_prefix=no
10273
  need_version=no
10274
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10275
  soname_spec='${libname}${release}${shared_ext}$major'
10276
  shlibpath_var=LD_LIBRARY_PATH
10277
  hardcode_into_libs=yes
10278
  ;;
10279
 
10280
haiku*)
10281
  version_type=linux
10282
  need_lib_prefix=no
10283
  need_version=no
10284
  dynamic_linker="$host_os runtime_loader"
10285
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10286
  soname_spec='${libname}${release}${shared_ext}$major'
10287
  shlibpath_var=LIBRARY_PATH
10288
  shlibpath_overrides_runpath=yes
10289
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10290
  hardcode_into_libs=yes
10291
  ;;
10292
 
10293
hpux9* | hpux10* | hpux11*)
10294
  # Give a soname corresponding to the major version so that dld.sl refuses to
10295
  # link against other versions.
10296
  version_type=sunos
10297
  need_lib_prefix=no
10298
  need_version=no
10299
  case $host_cpu in
10300
  ia64*)
10301
    shrext_cmds='.so'
10302
    hardcode_into_libs=yes
10303
    dynamic_linker="$host_os dld.so"
10304
    shlibpath_var=LD_LIBRARY_PATH
10305
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10306
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307
    soname_spec='${libname}${release}${shared_ext}$major'
10308
    if test "X$HPUX_IA64_MODE" = X32; then
10309
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10310
    else
10311
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10312
    fi
10313
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10314
    ;;
10315
  hppa*64*)
10316
    shrext_cmds='.sl'
10317
    hardcode_into_libs=yes
10318
    dynamic_linker="$host_os dld.sl"
10319
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10320
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10321
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322
    soname_spec='${libname}${release}${shared_ext}$major'
10323
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10324
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10325
    ;;
10326
  *)
10327
    shrext_cmds='.sl'
10328
    dynamic_linker="$host_os dld.sl"
10329
    shlibpath_var=SHLIB_PATH
10330
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10331
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332
    soname_spec='${libname}${release}${shared_ext}$major'
10333
    ;;
10334
  esac
10335
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10336
  postinstall_cmds='chmod 555 $lib'
10337
  # or fails outright, so override atomically:
10338
  install_override_mode=555
10339
  ;;
10340
 
10341
interix[3-9]*)
10342
  version_type=linux
10343
  need_lib_prefix=no
10344
  need_version=no
10345
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10346
  soname_spec='${libname}${release}${shared_ext}$major'
10347
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10348
  shlibpath_var=LD_LIBRARY_PATH
10349
  shlibpath_overrides_runpath=no
10350
  hardcode_into_libs=yes
10351
  ;;
10352
 
10353
irix5* | irix6* | nonstopux*)
10354
  case $host_os in
10355
    nonstopux*) version_type=nonstopux ;;
10356
    *)
10357
        if test "$lt_cv_prog_gnu_ld" = yes; then
10358
                version_type=linux
10359
        else
10360
                version_type=irix
10361
        fi ;;
10362
  esac
10363
  need_lib_prefix=no
10364
  need_version=no
10365
  soname_spec='${libname}${release}${shared_ext}$major'
10366
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10367
  case $host_os in
10368
  irix5* | nonstopux*)
10369
    libsuff= shlibsuff=
10370
    ;;
10371
  *)
10372
    case $LD in # libtool.m4 will add one of these switches to LD
10373
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10374
      libsuff= shlibsuff= libmagic=32-bit;;
10375
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10376
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10377
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10378
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10379
    *) libsuff= shlibsuff= libmagic=never-match;;
10380
    esac
10381
    ;;
10382
  esac
10383
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10384
  shlibpath_overrides_runpath=no
10385
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10386
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10387
  hardcode_into_libs=yes
10388
  ;;
10389
 
10390
# No shared lib support for Linux oldld, aout, or coff.
10391
linux*oldld* | linux*aout* | linux*coff*)
10392
  dynamic_linker=no
10393
  ;;
10394
 
10395
# This must be Linux ELF.
10396
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10397
  version_type=linux
10398
  need_lib_prefix=no
10399
  need_version=no
10400
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401
  soname_spec='${libname}${release}${shared_ext}$major'
10402
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10403
  shlibpath_var=LD_LIBRARY_PATH
10404
  shlibpath_overrides_runpath=no
10405
 
10406
  # Some binutils ld are patched to set DT_RUNPATH
10407
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10408
  $as_echo_n "(cached) " >&6
10409
else
10410
  lt_cv_shlibpath_overrides_runpath=no
10411
    save_LDFLAGS=$LDFLAGS
10412
    save_libdir=$libdir
10413
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10414
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10415
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416
/* end confdefs.h.  */
10417
 
10418
int
10419
main ()
10420
{
10421
 
10422
  ;
10423
  return 0;
10424
}
10425
_ACEOF
10426
if ac_fn_c_try_link "$LINENO"; then :
10427
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10428
  lt_cv_shlibpath_overrides_runpath=yes
10429
fi
10430
fi
10431
rm -f core conftest.err conftest.$ac_objext \
10432
    conftest$ac_exeext conftest.$ac_ext
10433
    LDFLAGS=$save_LDFLAGS
10434
    libdir=$save_libdir
10435
 
10436
fi
10437
 
10438
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10439
 
10440
  # This implies no fast_install, which is unacceptable.
10441
  # Some rework will be needed to allow for fast_install
10442
  # before this can be enabled.
10443
  hardcode_into_libs=yes
10444
 
10445
  # Append ld.so.conf contents to the search path
10446
  if test -f /etc/ld.so.conf; then
10447
    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' ' '`
10448
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10449
  fi
10450
 
10451
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10452
  # powerpc, because MkLinux only supported shared libraries with the
10453
  # GNU dynamic linker.  Since this was broken with cross compilers,
10454
  # most powerpc-linux boxes support dynamic linking these days and
10455
  # people can always --disable-shared, the test was removed, and we
10456
  # assume the GNU/Linux dynamic linker is in use.
10457
  dynamic_linker='GNU/Linux ld.so'
10458
  ;;
10459
 
10460
netbsd*)
10461
  version_type=sunos
10462
  need_lib_prefix=no
10463
  need_version=no
10464
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10465
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10466
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10467
    dynamic_linker='NetBSD (a.out) ld.so'
10468
  else
10469
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10470
    soname_spec='${libname}${release}${shared_ext}$major'
10471
    dynamic_linker='NetBSD ld.elf_so'
10472
  fi
10473
  shlibpath_var=LD_LIBRARY_PATH
10474
  shlibpath_overrides_runpath=yes
10475
  hardcode_into_libs=yes
10476
  ;;
10477
 
10478
newsos6)
10479
  version_type=linux
10480
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10481
  shlibpath_var=LD_LIBRARY_PATH
10482
  shlibpath_overrides_runpath=yes
10483
  ;;
10484
 
10485
*nto* | *qnx*)
10486
  version_type=qnx
10487
  need_lib_prefix=no
10488
  need_version=no
10489
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490
  soname_spec='${libname}${release}${shared_ext}$major'
10491
  shlibpath_var=LD_LIBRARY_PATH
10492
  shlibpath_overrides_runpath=no
10493
  hardcode_into_libs=yes
10494
  dynamic_linker='ldqnx.so'
10495
  ;;
10496
 
10497
openbsd*)
10498
  version_type=sunos
10499
  sys_lib_dlsearch_path_spec="/usr/lib"
10500
  need_lib_prefix=no
10501
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10502
  case $host_os in
10503
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10504
    *)                          need_version=no  ;;
10505
  esac
10506
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10507
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10508
  shlibpath_var=LD_LIBRARY_PATH
10509
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10510
    case $host_os in
10511
      openbsd2.[89] | openbsd2.[89].*)
10512
        shlibpath_overrides_runpath=no
10513
        ;;
10514
      *)
10515
        shlibpath_overrides_runpath=yes
10516
        ;;
10517
      esac
10518
  else
10519
    shlibpath_overrides_runpath=yes
10520
  fi
10521
  ;;
10522
 
10523
os2*)
10524
  libname_spec='$name'
10525
  shrext_cmds=".dll"
10526
  need_lib_prefix=no
10527
  library_names_spec='$libname${shared_ext} $libname.a'
10528
  dynamic_linker='OS/2 ld.exe'
10529
  shlibpath_var=LIBPATH
10530
  ;;
10531
 
10532
osf3* | osf4* | osf5*)
10533
  version_type=osf
10534
  need_lib_prefix=no
10535
  need_version=no
10536
  soname_spec='${libname}${release}${shared_ext}$major'
10537
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538
  shlibpath_var=LD_LIBRARY_PATH
10539
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10540
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10541
  ;;
10542
 
10543
rdos*)
10544
  dynamic_linker=no
10545
  ;;
10546
 
10547
solaris*)
10548
  version_type=linux
10549
  need_lib_prefix=no
10550
  need_version=no
10551
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552
  soname_spec='${libname}${release}${shared_ext}$major'
10553
  shlibpath_var=LD_LIBRARY_PATH
10554
  shlibpath_overrides_runpath=yes
10555
  hardcode_into_libs=yes
10556
  # ldd complains unless libraries are executable
10557
  postinstall_cmds='chmod +x $lib'
10558
  ;;
10559
 
10560
sunos4*)
10561
  version_type=sunos
10562
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10563
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10564
  shlibpath_var=LD_LIBRARY_PATH
10565
  shlibpath_overrides_runpath=yes
10566
  if test "$with_gnu_ld" = yes; then
10567
    need_lib_prefix=no
10568
  fi
10569
  need_version=yes
10570
  ;;
10571
 
10572
sysv4 | sysv4.3*)
10573
  version_type=linux
10574
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575
  soname_spec='${libname}${release}${shared_ext}$major'
10576
  shlibpath_var=LD_LIBRARY_PATH
10577
  case $host_vendor in
10578
    sni)
10579
      shlibpath_overrides_runpath=no
10580
      need_lib_prefix=no
10581
      runpath_var=LD_RUN_PATH
10582
      ;;
10583
    siemens)
10584
      need_lib_prefix=no
10585
      ;;
10586
    motorola)
10587
      need_lib_prefix=no
10588
      need_version=no
10589
      shlibpath_overrides_runpath=no
10590
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10591
      ;;
10592
  esac
10593
  ;;
10594
 
10595
sysv4*MP*)
10596
  if test -d /usr/nec ;then
10597
    version_type=linux
10598
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10599
    soname_spec='$libname${shared_ext}.$major'
10600
    shlibpath_var=LD_LIBRARY_PATH
10601
  fi
10602
  ;;
10603
 
10604
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10605
  version_type=freebsd-elf
10606
  need_lib_prefix=no
10607
  need_version=no
10608
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10609
  soname_spec='${libname}${release}${shared_ext}$major'
10610
  shlibpath_var=LD_LIBRARY_PATH
10611
  shlibpath_overrides_runpath=yes
10612
  hardcode_into_libs=yes
10613
  if test "$with_gnu_ld" = yes; then
10614
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10615
  else
10616
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10617
    case $host_os in
10618
      sco3.2v5*)
10619
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10620
        ;;
10621
    esac
10622
  fi
10623
  sys_lib_dlsearch_path_spec='/usr/lib'
10624
  ;;
10625
 
10626
tpf*)
10627
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10628
  version_type=linux
10629
  need_lib_prefix=no
10630
  need_version=no
10631
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632
  shlibpath_var=LD_LIBRARY_PATH
10633
  shlibpath_overrides_runpath=no
10634
  hardcode_into_libs=yes
10635
  ;;
10636
 
10637
uts4*)
10638
  version_type=linux
10639
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640
  soname_spec='${libname}${release}${shared_ext}$major'
10641
  shlibpath_var=LD_LIBRARY_PATH
10642
  ;;
10643
 
10644
*)
10645
  dynamic_linker=no
10646
  ;;
10647
esac
10648
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10649
$as_echo "$dynamic_linker" >&6; }
10650
test "$dynamic_linker" = no && can_build_shared=no
10651
 
10652
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10653
if test "$GCC" = yes; then
10654
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10655
fi
10656
 
10657
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10658
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10659
fi
10660
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10661
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10662
fi
10663
 
10664
 
10665
 
10666
 
10667
 
10668
 
10669
 
10670
 
10671
 
10672
 
10673
 
10674
 
10675
 
10676
 
10677
 
10678
 
10679
 
10680
 
10681
 
10682
 
10683
 
10684
 
10685
 
10686
 
10687
 
10688
 
10689
 
10690
 
10691
 
10692
 
10693
 
10694
 
10695
 
10696
 
10697
 
10698
 
10699
 
10700
 
10701
 
10702
 
10703
 
10704
 
10705
 
10706
 
10707
 
10708
 
10709
 
10710
 
10711
 
10712
 
10713
 
10714
 
10715
 
10716
 
10717
 
10718
 
10719
 
10720
 
10721
 
10722
 
10723
 
10724
 
10725
 
10726
 
10727
 
10728
 
10729
 
10730
 
10731
 
10732
 
10733
 
10734
 
10735
 
10736
 
10737
 
10738
 
10739
 
10740
 
10741
 
10742
 
10743
 
10744
 
10745
 
10746
 
10747
 
10748
 
10749
 
10750
 
10751
 
10752
 
10753
 
10754
 
10755
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10756
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10757
hardcode_action=
10758
if test -n "$hardcode_libdir_flag_spec" ||
10759
   test -n "$runpath_var" ||
10760
   test "X$hardcode_automatic" = "Xyes" ; then
10761
 
10762
  # We can hardcode non-existent directories.
10763
  if test "$hardcode_direct" != no &&
10764
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10765
     # have to relink, otherwise we might link with an installed library
10766
     # when we should be linking with a yet-to-be-installed one
10767
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10768
     test "$hardcode_minus_L" != no; then
10769
    # Linking always hardcodes the temporary library directory.
10770
    hardcode_action=relink
10771
  else
10772
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10773
    hardcode_action=immediate
10774
  fi
10775
else
10776
  # We cannot hardcode anything, or else we can only hardcode existing
10777
  # directories.
10778
  hardcode_action=unsupported
10779
fi
10780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10781
$as_echo "$hardcode_action" >&6; }
10782
 
10783
if test "$hardcode_action" = relink ||
10784
   test "$inherit_rpath" = yes; then
10785
  # Fast installation is not supported
10786
  enable_fast_install=no
10787
elif test "$shlibpath_overrides_runpath" = yes ||
10788
     test "$enable_shared" = no; then
10789
  # Fast installation is not necessary
10790
  enable_fast_install=needless
10791
fi
10792
 
10793
 
10794
 
10795
 
10796
 
10797
 
10798
  if test "x$enable_dlopen" != xyes; then
10799
  enable_dlopen=unknown
10800
  enable_dlopen_self=unknown
10801
  enable_dlopen_self_static=unknown
10802
else
10803
  lt_cv_dlopen=no
10804
  lt_cv_dlopen_libs=
10805
 
10806
  case $host_os in
10807
  beos*)
10808
    lt_cv_dlopen="load_add_on"
10809
    lt_cv_dlopen_libs=
10810
    lt_cv_dlopen_self=yes
10811
    ;;
10812
 
10813
  mingw* | pw32* | cegcc*)
10814
    lt_cv_dlopen="LoadLibrary"
10815
    lt_cv_dlopen_libs=
10816
    ;;
10817
 
10818
  cygwin*)
10819
    lt_cv_dlopen="dlopen"
10820
    lt_cv_dlopen_libs=
10821
    ;;
10822
 
10823
  darwin*)
10824
  # if libdl is installed we need to link against it
10825
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10826
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10827
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10828
  $as_echo_n "(cached) " >&6
10829
else
10830
  ac_check_lib_save_LIBS=$LIBS
10831
LIBS="-ldl  $LIBS"
10832
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833
/* end confdefs.h.  */
10834
 
10835
/* Override any GCC internal prototype to avoid an error.
10836
   Use char because int might match the return type of a GCC
10837
   builtin and then its argument prototype would still apply.  */
10838
#ifdef __cplusplus
10839
extern "C"
10840
#endif
10841
char dlopen ();
10842
int
10843
main ()
10844
{
10845
return dlopen ();
10846
  ;
10847
  return 0;
10848
}
10849
_ACEOF
10850
if ac_fn_c_try_link "$LINENO"; then :
10851
  ac_cv_lib_dl_dlopen=yes
10852
else
10853
  ac_cv_lib_dl_dlopen=no
10854
fi
10855
rm -f core conftest.err conftest.$ac_objext \
10856
    conftest$ac_exeext conftest.$ac_ext
10857
LIBS=$ac_check_lib_save_LIBS
10858
fi
10859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10860
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10861
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10862
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10863
else
10864
 
10865
    lt_cv_dlopen="dyld"
10866
    lt_cv_dlopen_libs=
10867
    lt_cv_dlopen_self=yes
10868
 
10869
fi
10870
 
10871
    ;;
10872
 
10873
  *)
10874
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10875
if test "x$ac_cv_func_shl_load" = x""yes; then :
10876
  lt_cv_dlopen="shl_load"
10877
else
10878
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10879
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10880
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10881
  $as_echo_n "(cached) " >&6
10882
else
10883
  ac_check_lib_save_LIBS=$LIBS
10884
LIBS="-ldld  $LIBS"
10885
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886
/* end confdefs.h.  */
10887
 
10888
/* Override any GCC internal prototype to avoid an error.
10889
   Use char because int might match the return type of a GCC
10890
   builtin and then its argument prototype would still apply.  */
10891
#ifdef __cplusplus
10892
extern "C"
10893
#endif
10894
char shl_load ();
10895
int
10896
main ()
10897
{
10898
return shl_load ();
10899
  ;
10900
  return 0;
10901
}
10902
_ACEOF
10903
if ac_fn_c_try_link "$LINENO"; then :
10904
  ac_cv_lib_dld_shl_load=yes
10905
else
10906
  ac_cv_lib_dld_shl_load=no
10907
fi
10908
rm -f core conftest.err conftest.$ac_objext \
10909
    conftest$ac_exeext conftest.$ac_ext
10910
LIBS=$ac_check_lib_save_LIBS
10911
fi
10912
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10913
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10914
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10915
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10916
else
10917
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10918
if test "x$ac_cv_func_dlopen" = x""yes; then :
10919
  lt_cv_dlopen="dlopen"
10920
else
10921
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10922
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10923
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10924
  $as_echo_n "(cached) " >&6
10925
else
10926
  ac_check_lib_save_LIBS=$LIBS
10927
LIBS="-ldl  $LIBS"
10928
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929
/* end confdefs.h.  */
10930
 
10931
/* Override any GCC internal prototype to avoid an error.
10932
   Use char because int might match the return type of a GCC
10933
   builtin and then its argument prototype would still apply.  */
10934
#ifdef __cplusplus
10935
extern "C"
10936
#endif
10937
char dlopen ();
10938
int
10939
main ()
10940
{
10941
return dlopen ();
10942
  ;
10943
  return 0;
10944
}
10945
_ACEOF
10946
if ac_fn_c_try_link "$LINENO"; then :
10947
  ac_cv_lib_dl_dlopen=yes
10948
else
10949
  ac_cv_lib_dl_dlopen=no
10950
fi
10951
rm -f core conftest.err conftest.$ac_objext \
10952
    conftest$ac_exeext conftest.$ac_ext
10953
LIBS=$ac_check_lib_save_LIBS
10954
fi
10955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10956
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10957
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10958
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10959
else
10960
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10961
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10962
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10963
  $as_echo_n "(cached) " >&6
10964
else
10965
  ac_check_lib_save_LIBS=$LIBS
10966
LIBS="-lsvld  $LIBS"
10967
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968
/* end confdefs.h.  */
10969
 
10970
/* Override any GCC internal prototype to avoid an error.
10971
   Use char because int might match the return type of a GCC
10972
   builtin and then its argument prototype would still apply.  */
10973
#ifdef __cplusplus
10974
extern "C"
10975
#endif
10976
char dlopen ();
10977
int
10978
main ()
10979
{
10980
return dlopen ();
10981
  ;
10982
  return 0;
10983
}
10984
_ACEOF
10985
if ac_fn_c_try_link "$LINENO"; then :
10986
  ac_cv_lib_svld_dlopen=yes
10987
else
10988
  ac_cv_lib_svld_dlopen=no
10989
fi
10990
rm -f core conftest.err conftest.$ac_objext \
10991
    conftest$ac_exeext conftest.$ac_ext
10992
LIBS=$ac_check_lib_save_LIBS
10993
fi
10994
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10995
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10996
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10997
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10998
else
10999
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11000
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11001
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11002
  $as_echo_n "(cached) " >&6
11003
else
11004
  ac_check_lib_save_LIBS=$LIBS
11005
LIBS="-ldld  $LIBS"
11006
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007
/* end confdefs.h.  */
11008
 
11009
/* Override any GCC internal prototype to avoid an error.
11010
   Use char because int might match the return type of a GCC
11011
   builtin and then its argument prototype would still apply.  */
11012
#ifdef __cplusplus
11013
extern "C"
11014
#endif
11015
char dld_link ();
11016
int
11017
main ()
11018
{
11019
return dld_link ();
11020
  ;
11021
  return 0;
11022
}
11023
_ACEOF
11024
if ac_fn_c_try_link "$LINENO"; then :
11025
  ac_cv_lib_dld_dld_link=yes
11026
else
11027
  ac_cv_lib_dld_dld_link=no
11028
fi
11029
rm -f core conftest.err conftest.$ac_objext \
11030
    conftest$ac_exeext conftest.$ac_ext
11031
LIBS=$ac_check_lib_save_LIBS
11032
fi
11033
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11034
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11035
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11036
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11037
fi
11038
 
11039
 
11040
fi
11041
 
11042
 
11043
fi
11044
 
11045
 
11046
fi
11047
 
11048
 
11049
fi
11050
 
11051
 
11052
fi
11053
 
11054
    ;;
11055
  esac
11056
 
11057
  if test "x$lt_cv_dlopen" != xno; then
11058
    enable_dlopen=yes
11059
  else
11060
    enable_dlopen=no
11061
  fi
11062
 
11063
  case $lt_cv_dlopen in
11064
  dlopen)
11065
    save_CPPFLAGS="$CPPFLAGS"
11066
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11067
 
11068
    save_LDFLAGS="$LDFLAGS"
11069
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11070
 
11071
    save_LIBS="$LIBS"
11072
    LIBS="$lt_cv_dlopen_libs $LIBS"
11073
 
11074
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11075
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11076
if test "${lt_cv_dlopen_self+set}" = set; then :
11077
  $as_echo_n "(cached) " >&6
11078
else
11079
          if test "$cross_compiling" = yes; then :
11080
  lt_cv_dlopen_self=cross
11081
else
11082
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11083
  lt_status=$lt_dlunknown
11084
  cat > conftest.$ac_ext <<_LT_EOF
11085
#line 11085 "configure"
11086
#include "confdefs.h"
11087
 
11088
#if HAVE_DLFCN_H
11089
#include 
11090
#endif
11091
 
11092
#include 
11093
 
11094
#ifdef RTLD_GLOBAL
11095
#  define LT_DLGLOBAL           RTLD_GLOBAL
11096
#else
11097
#  ifdef DL_GLOBAL
11098
#    define LT_DLGLOBAL         DL_GLOBAL
11099
#  else
11100
#    define LT_DLGLOBAL         0
11101
#  endif
11102
#endif
11103
 
11104
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11105
   find out it does not work in some platform. */
11106
#ifndef LT_DLLAZY_OR_NOW
11107
#  ifdef RTLD_LAZY
11108
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11109
#  else
11110
#    ifdef DL_LAZY
11111
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11112
#    else
11113
#      ifdef RTLD_NOW
11114
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11115
#      else
11116
#        ifdef DL_NOW
11117
#          define LT_DLLAZY_OR_NOW      DL_NOW
11118
#        else
11119
#          define LT_DLLAZY_OR_NOW      0
11120
#        endif
11121
#      endif
11122
#    endif
11123
#  endif
11124
#endif
11125
 
11126
/* When -fvisbility=hidden is used, assume the code has been annotated
11127
   correspondingly for the symbols needed.  */
11128
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11129
void fnord () __attribute__((visibility("default")));
11130
#endif
11131
 
11132
void fnord () { int i=42; }
11133
int main ()
11134
{
11135
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11136
  int status = $lt_dlunknown;
11137
 
11138
  if (self)
11139
    {
11140
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11141
      else
11142
        {
11143
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11144
          else puts (dlerror ());
11145
        }
11146
      /* dlclose (self); */
11147
    }
11148
  else
11149
    puts (dlerror ());
11150
 
11151
  return status;
11152
}
11153
_LT_EOF
11154
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11155
  (eval $ac_link) 2>&5
11156
  ac_status=$?
11157
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11158
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11159
    (./conftest; exit; ) >&5 2>/dev/null
11160
    lt_status=$?
11161
    case x$lt_status in
11162
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11163
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11164
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11165
    esac
11166
  else :
11167
    # compilation failed
11168
    lt_cv_dlopen_self=no
11169
  fi
11170
fi
11171
rm -fr conftest*
11172
 
11173
 
11174
fi
11175
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11176
$as_echo "$lt_cv_dlopen_self" >&6; }
11177
 
11178
    if test "x$lt_cv_dlopen_self" = xyes; then
11179
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11180
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11181
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11182
if test "${lt_cv_dlopen_self_static+set}" = set; then :
11183
  $as_echo_n "(cached) " >&6
11184
else
11185
          if test "$cross_compiling" = yes; then :
11186
  lt_cv_dlopen_self_static=cross
11187
else
11188
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11189
  lt_status=$lt_dlunknown
11190
  cat > conftest.$ac_ext <<_LT_EOF
11191
#line 11191 "configure"
11192
#include "confdefs.h"
11193
 
11194
#if HAVE_DLFCN_H
11195
#include 
11196
#endif
11197
 
11198
#include 
11199
 
11200
#ifdef RTLD_GLOBAL
11201
#  define LT_DLGLOBAL           RTLD_GLOBAL
11202
#else
11203
#  ifdef DL_GLOBAL
11204
#    define LT_DLGLOBAL         DL_GLOBAL
11205
#  else
11206
#    define LT_DLGLOBAL         0
11207
#  endif
11208
#endif
11209
 
11210
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11211
   find out it does not work in some platform. */
11212
#ifndef LT_DLLAZY_OR_NOW
11213
#  ifdef RTLD_LAZY
11214
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11215
#  else
11216
#    ifdef DL_LAZY
11217
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11218
#    else
11219
#      ifdef RTLD_NOW
11220
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11221
#      else
11222
#        ifdef DL_NOW
11223
#          define LT_DLLAZY_OR_NOW      DL_NOW
11224
#        else
11225
#          define LT_DLLAZY_OR_NOW      0
11226
#        endif
11227
#      endif
11228
#    endif
11229
#  endif
11230
#endif
11231
 
11232
/* When -fvisbility=hidden is used, assume the code has been annotated
11233
   correspondingly for the symbols needed.  */
11234
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11235
void fnord () __attribute__((visibility("default")));
11236
#endif
11237
 
11238
void fnord () { int i=42; }
11239
int main ()
11240
{
11241
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11242
  int status = $lt_dlunknown;
11243
 
11244
  if (self)
11245
    {
11246
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11247
      else
11248
        {
11249
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11250
          else puts (dlerror ());
11251
        }
11252
      /* dlclose (self); */
11253
    }
11254
  else
11255
    puts (dlerror ());
11256
 
11257
  return status;
11258
}
11259
_LT_EOF
11260
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11261
  (eval $ac_link) 2>&5
11262
  ac_status=$?
11263
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11264
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11265
    (./conftest; exit; ) >&5 2>/dev/null
11266
    lt_status=$?
11267
    case x$lt_status in
11268
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11269
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11270
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11271
    esac
11272
  else :
11273
    # compilation failed
11274
    lt_cv_dlopen_self_static=no
11275
  fi
11276
fi
11277
rm -fr conftest*
11278
 
11279
 
11280
fi
11281
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11282
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11283
    fi
11284
 
11285
    CPPFLAGS="$save_CPPFLAGS"
11286
    LDFLAGS="$save_LDFLAGS"
11287
    LIBS="$save_LIBS"
11288
    ;;
11289
  esac
11290
 
11291
  case $lt_cv_dlopen_self in
11292
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11293
  *) enable_dlopen_self=unknown ;;
11294
  esac
11295
 
11296
  case $lt_cv_dlopen_self_static in
11297
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11298
  *) enable_dlopen_self_static=unknown ;;
11299
  esac
11300
fi
11301
 
11302
 
11303
 
11304
 
11305
 
11306
 
11307
 
11308
 
11309
 
11310
 
11311
 
11312
 
11313
 
11314
 
11315
 
11316
 
11317
 
11318
striplib=
11319
old_striplib=
11320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11321
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11322
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11323
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11324
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11325
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11326
$as_echo "yes" >&6; }
11327
else
11328
# FIXME - insert some real tests, host_os isn't really good enough
11329
  case $host_os in
11330
  darwin*)
11331
    if test -n "$STRIP" ; then
11332
      striplib="$STRIP -x"
11333
      old_striplib="$STRIP -S"
11334
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11335
$as_echo "yes" >&6; }
11336
    else
11337
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338
$as_echo "no" >&6; }
11339
    fi
11340
    ;;
11341
  *)
11342
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343
$as_echo "no" >&6; }
11344
    ;;
11345
  esac
11346
fi
11347
 
11348
 
11349
 
11350
 
11351
 
11352
 
11353
 
11354
 
11355
 
11356
 
11357
 
11358
 
11359
  # Report which library types will actually be built
11360
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11361
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11362
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11363
$as_echo "$can_build_shared" >&6; }
11364
 
11365
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11366
$as_echo_n "checking whether to build shared libraries... " >&6; }
11367
  test "$can_build_shared" = "no" && enable_shared=no
11368
 
11369
  # On AIX, shared libraries and static libraries use the same namespace, and
11370
  # are all built from PIC.
11371
  case $host_os in
11372
  aix3*)
11373
    test "$enable_shared" = yes && enable_static=no
11374
    if test -n "$RANLIB"; then
11375
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11376
      postinstall_cmds='$RANLIB $lib'
11377
    fi
11378
    ;;
11379
 
11380
  aix[4-9]*)
11381
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11382
      test "$enable_shared" = yes && enable_static=no
11383
    fi
11384
    ;;
11385
  esac
11386
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11387
$as_echo "$enable_shared" >&6; }
11388
 
11389
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11390
$as_echo_n "checking whether to build static libraries... " >&6; }
11391
  # Make sure either enable_shared or enable_static is yes.
11392
  test "$enable_shared" = yes || enable_static=yes
11393
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11394
$as_echo "$enable_static" >&6; }
11395
 
11396
 
11397
 
11398
 
11399
fi
11400
ac_ext=c
11401
ac_cpp='$CPP $CPPFLAGS'
11402
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11403
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11404
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11405
 
11406
CC="$lt_save_CC"
11407
 
11408
 
11409
 
11410
 
11411
 
11412
 
11413
 
11414
 
11415
 
11416
 
11417
 
11418
 
11419
 
11420
        ac_config_commands="$ac_config_commands libtool"
11421
 
11422
 
11423
 
11424
 
11425
# Only expand once:
11426
 
11427
 
11428
 
11429
 
11430
 
11431
 
11432
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11433
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11434
    # Check whether --enable-maintainer-mode was given.
11435
if test "${enable_maintainer_mode+set}" = set; then :
11436
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11437
else
11438
  USE_MAINTAINER_MODE=no
11439
fi
11440
 
11441
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11442
$as_echo "$USE_MAINTAINER_MODE" >&6; }
11443
   if test $USE_MAINTAINER_MODE = yes; then
11444
  MAINTAINER_MODE_TRUE=
11445
  MAINTAINER_MODE_FALSE='#'
11446
else
11447
  MAINTAINER_MODE_TRUE='#'
11448
  MAINTAINER_MODE_FALSE=
11449
fi
11450
 
11451
  MAINT=$MAINTAINER_MODE_TRUE
11452
 
11453
 
11454
 
11455
# We need gfortran to compile parts of the library
11456
# We can't use AC_PROG_FC because it expects a fully working gfortran.
11457
#AC_PROG_FC(gfortran)
11458
case `echo $GFORTRAN` in
11459
  -* | no* )
11460
    FC=no ;;
11461
  *)
11462
    set dummy $GFORTRAN; ac_word=$2
11463
    if test -x "$ac_word"; then
11464
      FC="$GFORTRAN"
11465
    else
11466
      FC=no
11467
    fi ;;
11468
esac
11469
ac_ext=${ac_fc_srcext-f}
11470
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11471
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11472
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11473
if test -n "$ac_tool_prefix"; then
11474
  for ac_prog in gfortran
11475
  do
11476
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11477
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11478
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11479
$as_echo_n "checking for $ac_word... " >&6; }
11480
if test "${ac_cv_prog_FC+set}" = set; then :
11481
  $as_echo_n "(cached) " >&6
11482
else
11483
  if test -n "$FC"; then
11484
  ac_cv_prog_FC="$FC" # Let the user override the test.
11485
else
11486
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487
for as_dir in $PATH
11488
do
11489
  IFS=$as_save_IFS
11490
  test -z "$as_dir" && as_dir=.
11491
    for ac_exec_ext in '' $ac_executable_extensions; do
11492
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11493
    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11494
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11495
    break 2
11496
  fi
11497
done
11498
  done
11499
IFS=$as_save_IFS
11500
 
11501
fi
11502
fi
11503
FC=$ac_cv_prog_FC
11504
if test -n "$FC"; then
11505
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11506
$as_echo "$FC" >&6; }
11507
else
11508
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509
$as_echo "no" >&6; }
11510
fi
11511
 
11512
 
11513
    test -n "$FC" && break
11514
  done
11515
fi
11516
if test -z "$FC"; then
11517
  ac_ct_FC=$FC
11518
  for ac_prog in gfortran
11519
do
11520
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11521
set dummy $ac_prog; ac_word=$2
11522
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11523
$as_echo_n "checking for $ac_word... " >&6; }
11524
if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11525
  $as_echo_n "(cached) " >&6
11526
else
11527
  if test -n "$ac_ct_FC"; then
11528
  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11529
else
11530
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11531
for as_dir in $PATH
11532
do
11533
  IFS=$as_save_IFS
11534
  test -z "$as_dir" && as_dir=.
11535
    for ac_exec_ext in '' $ac_executable_extensions; do
11536
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11537
    ac_cv_prog_ac_ct_FC="$ac_prog"
11538
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11539
    break 2
11540
  fi
11541
done
11542
  done
11543
IFS=$as_save_IFS
11544
 
11545
fi
11546
fi
11547
ac_ct_FC=$ac_cv_prog_ac_ct_FC
11548
if test -n "$ac_ct_FC"; then
11549
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11550
$as_echo "$ac_ct_FC" >&6; }
11551
else
11552
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11553
$as_echo "no" >&6; }
11554
fi
11555
 
11556
 
11557
  test -n "$ac_ct_FC" && break
11558
done
11559
 
11560
  if test "x$ac_ct_FC" = x; then
11561
    FC=""
11562
  else
11563
    case $cross_compiling:$ac_tool_warned in
11564
yes:)
11565
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11566
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11567
ac_tool_warned=yes ;;
11568
esac
11569
    FC=$ac_ct_FC
11570
  fi
11571
fi
11572
 
11573
 
11574
# Provide some information about the compiler.
11575
$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11576
set X $ac_compile
11577
ac_compiler=$2
11578
for ac_option in --version -v -V -qversion; do
11579
  { { ac_try="$ac_compiler $ac_option >&5"
11580
case "(($ac_try" in
11581
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582
  *) ac_try_echo=$ac_try;;
11583
esac
11584
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11585
$as_echo "$ac_try_echo"; } >&5
11586
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11587
  ac_status=$?
11588
  if test -s conftest.err; then
11589
    sed '10a\
11590
... rest of stderr output deleted ...
11591
         10q' conftest.err >conftest.er1
11592
    cat conftest.er1 >&5
11593
    rm -f conftest.er1 conftest.err
11594
  fi
11595
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11596
  test $ac_status = 0; }
11597
done
11598
rm -f a.out
11599
 
11600
# If we don't use `.F' as extension, the preprocessor is not run on the
11601
# input file.  (Note that this only needs to work for GNU compilers.)
11602
ac_save_ext=$ac_ext
11603
ac_ext=F
11604
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11605
$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11606
if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11607
  $as_echo_n "(cached) " >&6
11608
else
11609
  cat > conftest.$ac_ext <<_ACEOF
11610
      program main
11611
#ifndef __GNUC__
11612
       choke me
11613
#endif
11614
 
11615
      end
11616
_ACEOF
11617
if ac_fn_fc_try_compile "$LINENO"; then :
11618
  ac_compiler_gnu=yes
11619
else
11620
  ac_compiler_gnu=no
11621
fi
11622
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11623
ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11624
 
11625
fi
11626
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11627
$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11628
ac_ext=$ac_save_ext
11629
ac_test_FCFLAGS=${FCFLAGS+set}
11630
ac_save_FCFLAGS=$FCFLAGS
11631
FCFLAGS=
11632
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11633
$as_echo_n "checking whether $FC accepts -g... " >&6; }
11634
if test "${ac_cv_prog_fc_g+set}" = set; then :
11635
  $as_echo_n "(cached) " >&6
11636
else
11637
  FCFLAGS=-g
11638
cat > conftest.$ac_ext <<_ACEOF
11639
      program main
11640
 
11641
      end
11642
_ACEOF
11643
if ac_fn_fc_try_compile "$LINENO"; then :
11644
  ac_cv_prog_fc_g=yes
11645
else
11646
  ac_cv_prog_fc_g=no
11647
fi
11648
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11649
 
11650
fi
11651
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11652
$as_echo "$ac_cv_prog_fc_g" >&6; }
11653
if test "$ac_test_FCFLAGS" = set; then
11654
  FCFLAGS=$ac_save_FCFLAGS
11655
elif test $ac_cv_prog_fc_g = yes; then
11656
  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11657
    FCFLAGS="-g -O2"
11658
  else
11659
    FCFLAGS="-g"
11660
  fi
11661
else
11662
  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11663
    FCFLAGS="-O2"
11664
  else
11665
    FCFLAGS=
11666
  fi
11667
fi
11668
 
11669
ac_ext=c
11670
ac_cpp='$CPP $CPPFLAGS'
11671
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11672
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11673
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11674
 
11675
      ac_ext=${ac_fc_srcext-f}
11676
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11677
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11678
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11679
 
11680
 
11681
if test -z "$FC" || test "X$FC" = "Xno"; then
11682
  _lt_disable_FC=yes
11683
fi
11684
 
11685
archive_cmds_need_lc_FC=no
11686
allow_undefined_flag_FC=
11687
always_export_symbols_FC=no
11688
archive_expsym_cmds_FC=
11689
export_dynamic_flag_spec_FC=
11690
hardcode_direct_FC=no
11691
hardcode_direct_absolute_FC=no
11692
hardcode_libdir_flag_spec_FC=
11693
hardcode_libdir_flag_spec_ld_FC=
11694
hardcode_libdir_separator_FC=
11695
hardcode_minus_L_FC=no
11696
hardcode_automatic_FC=no
11697
inherit_rpath_FC=no
11698
module_cmds_FC=
11699
module_expsym_cmds_FC=
11700
link_all_deplibs_FC=unknown
11701
old_archive_cmds_FC=$old_archive_cmds
11702
reload_flag_FC=$reload_flag
11703
reload_cmds_FC=$reload_cmds
11704
no_undefined_flag_FC=
11705
whole_archive_flag_spec_FC=
11706
enable_shared_with_static_runtimes_FC=no
11707
 
11708
# Source file extension for fc test sources.
11709
ac_ext=${ac_fc_srcext-f}
11710
 
11711
# Object file extension for compiled fc test sources.
11712
objext=o
11713
objext_FC=$objext
11714
 
11715
# No sense in running all these tests if we already determined that
11716
# the FC compiler isn't working.  Some variables (like enable_shared)
11717
# are currently assumed to apply to all compilers on this platform,
11718
# and will be corrupted by setting them based on a non-working compiler.
11719
if test "$_lt_disable_FC" != yes; then
11720
  # Code to be used in simple compile tests
11721
  lt_simple_compile_test_code="\
11722
      subroutine t
11723
      return
11724
      end
11725
"
11726
 
11727
  # Code to be used in simple link tests
11728
  lt_simple_link_test_code="\
11729
      program t
11730
      end
11731
"
11732
 
11733
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11734
 
11735
 
11736
 
11737
 
11738
 
11739
 
11740
# If no C compiler was specified, use CC.
11741
LTCC=${LTCC-"$CC"}
11742
 
11743
# If no C compiler flags were specified, use CFLAGS.
11744
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11745
 
11746
# Allow CC to be a program name with arguments.
11747
compiler=$CC
11748
 
11749
 
11750
  # save warnings/boilerplate of simple test code
11751
  ac_outfile=conftest.$ac_objext
11752
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11753
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11754
_lt_compiler_boilerplate=`cat conftest.err`
11755
$RM conftest*
11756
 
11757
  ac_outfile=conftest.$ac_objext
11758
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11759
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11760
_lt_linker_boilerplate=`cat conftest.err`
11761
$RM -r conftest*
11762
 
11763
 
11764
  # Allow CC to be a program name with arguments.
11765
  lt_save_CC="$CC"
11766
  lt_save_GCC=$GCC
11767
  CC=${FC-"f95"}
11768
  compiler=$CC
11769
  GCC=$ac_cv_fc_compiler_gnu
11770
 
11771
  compiler_FC=$CC
11772
  for cc_temp in $compiler""; do
11773
  case $cc_temp in
11774
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11775
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11776
    \-*) ;;
11777
    *) break;;
11778
  esac
11779
done
11780
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11781
 
11782
 
11783
  if test -n "$compiler"; then
11784
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11785
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11786
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11787
$as_echo "$can_build_shared" >&6; }
11788
 
11789
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11790
$as_echo_n "checking whether to build shared libraries... " >&6; }
11791
    test "$can_build_shared" = "no" && enable_shared=no
11792
 
11793
    # On AIX, shared libraries and static libraries use the same namespace, and
11794
    # are all built from PIC.
11795
    case $host_os in
11796
      aix3*)
11797
        test "$enable_shared" = yes && enable_static=no
11798
        if test -n "$RANLIB"; then
11799
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
11800
          postinstall_cmds='$RANLIB $lib'
11801
        fi
11802
        ;;
11803
      aix[4-9]*)
11804
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11805
          test "$enable_shared" = yes && enable_static=no
11806
        fi
11807
        ;;
11808
    esac
11809
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11810
$as_echo "$enable_shared" >&6; }
11811
 
11812
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11813
$as_echo_n "checking whether to build static libraries... " >&6; }
11814
    # Make sure either enable_shared or enable_static is yes.
11815
    test "$enable_shared" = yes || enable_static=yes
11816
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11817
$as_echo "$enable_static" >&6; }
11818
 
11819
    GCC_FC="$ac_cv_fc_compiler_gnu"
11820
    LD_FC="$LD"
11821
 
11822
    ## CAVEAT EMPTOR:
11823
    ## There is no encapsulation within the following macros, do not change
11824
    ## the running order or otherwise move them around unless you know exactly
11825
    ## what you are doing...
11826
    # Dependencies to place before and after the object being linked:
11827
predep_objects_FC=
11828
postdep_objects_FC=
11829
predeps_FC=
11830
postdeps_FC=
11831
compiler_lib_search_path_FC=
11832
 
11833
cat > conftest.$ac_ext <<_LT_EOF
11834
      subroutine foo
11835
      implicit none
11836
      integer a
11837
      a=0
11838
      return
11839
      end
11840
_LT_EOF
11841
 
11842
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11843
  (eval $ac_compile) 2>&5
11844
  ac_status=$?
11845
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11846
  test $ac_status = 0; }; then
11847
  # Parse the compiler output and extract the necessary
11848
  # objects, libraries and library flags.
11849
 
11850
  # Sentinel used to keep track of whether or not we are before
11851
  # the conftest object file.
11852
  pre_test_object_deps_done=no
11853
 
11854
  for p in `eval "$output_verbose_link_cmd"`; do
11855
    case $p in
11856
 
11857
    -L* | -R* | -l*)
11858
       # Some compilers place space between "-{L,R}" and the path.
11859
       # Remove the space.
11860
       if test $p = "-L" ||
11861
          test $p = "-R"; then
11862
         prev=$p
11863
         continue
11864
       else
11865
         prev=
11866
       fi
11867
 
11868
       if test "$pre_test_object_deps_done" = no; then
11869
         case $p in
11870
         -L* | -R*)
11871
           # Internal compiler library paths should come after those
11872
           # provided the user.  The postdeps already come after the
11873
           # user supplied libs so there is no need to process them.
11874
           if test -z "$compiler_lib_search_path_FC"; then
11875
             compiler_lib_search_path_FC="${prev}${p}"
11876
           else
11877
             compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11878
           fi
11879
           ;;
11880
         # The "-l" case would never come before the object being
11881
         # linked, so don't bother handling this case.
11882
         esac
11883
       else
11884
         if test -z "$postdeps_FC"; then
11885
           postdeps_FC="${prev}${p}"
11886
         else
11887
           postdeps_FC="${postdeps_FC} ${prev}${p}"
11888
         fi
11889
       fi
11890
       ;;
11891
 
11892
    *.$objext)
11893
       # This assumes that the test object file only shows up
11894
       # once in the compiler output.
11895
       if test "$p" = "conftest.$objext"; then
11896
         pre_test_object_deps_done=yes
11897
         continue
11898
       fi
11899
 
11900
       if test "$pre_test_object_deps_done" = no; then
11901
         if test -z "$predep_objects_FC"; then
11902
           predep_objects_FC="$p"
11903
         else
11904
           predep_objects_FC="$predep_objects_FC $p"
11905
         fi
11906
       else
11907
         if test -z "$postdep_objects_FC"; then
11908
           postdep_objects_FC="$p"
11909
         else
11910
           postdep_objects_FC="$postdep_objects_FC $p"
11911
         fi
11912
       fi
11913
       ;;
11914
 
11915
    *) ;; # Ignore the rest.
11916
 
11917
    esac
11918
  done
11919
 
11920
  # Clean up.
11921
  rm -f a.out a.exe
11922
else
11923
  echo "libtool.m4: error: problem compiling FC test program"
11924
fi
11925
 
11926
$RM -f confest.$objext
11927
 
11928
# PORTME: override above test on systems where it is broken
11929
 
11930
 
11931
case " $postdeps_FC " in
11932
*" -lc "*) archive_cmds_need_lc_FC=no ;;
11933
esac
11934
 compiler_lib_search_dirs_FC=
11935
if test -n "${compiler_lib_search_path_FC}"; then
11936
 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11937
fi
11938
 
11939
 
11940
 
11941
 
11942
 
11943
 
11944
 
11945
 
11946
 
11947
 
11948
 
11949
 
11950
 
11951
 
11952
 
11953
 
11954
 
11955
 
11956
 
11957
 
11958
 
11959
 
11960
 
11961
 
11962
 
11963
 
11964
 
11965
 
11966
 
11967
 
11968
 
11969
    lt_prog_compiler_wl_FC=
11970
lt_prog_compiler_pic_FC=
11971
lt_prog_compiler_static_FC=
11972
 
11973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11974
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11975
 
11976
  if test "$GCC" = yes; then
11977
    lt_prog_compiler_wl_FC='-Wl,'
11978
    lt_prog_compiler_static_FC='-static'
11979
 
11980
    case $host_os in
11981
      aix*)
11982
      # All AIX code is PIC.
11983
      if test "$host_cpu" = ia64; then
11984
        # AIX 5 now supports IA64 processor
11985
        lt_prog_compiler_static_FC='-Bstatic'
11986
      fi
11987
      ;;
11988
 
11989
    amigaos*)
11990
      case $host_cpu in
11991
      powerpc)
11992
            # see comment about AmigaOS4 .so support
11993
            lt_prog_compiler_pic_FC='-fPIC'
11994
        ;;
11995
      m68k)
11996
            # FIXME: we need at least 68020 code to build shared libraries, but
11997
            # adding the `-m68020' flag to GCC prevents building anything better,
11998
            # like `-m68040'.
11999
            lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12000
        ;;
12001
      esac
12002
      ;;
12003
 
12004
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12005
      # PIC is the default for these OSes.
12006
      ;;
12007
 
12008
    mingw* | cygwin* | pw32* | os2* | cegcc*)
12009
      # This hack is so that the source file can tell whether it is being
12010
      # built for inclusion in a dll (and should export symbols for example).
12011
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12012
      # (--disable-auto-import) libraries
12013
      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12014
      ;;
12015
 
12016
    darwin* | rhapsody*)
12017
      # PIC is the default on this platform
12018
      # Common symbols not allowed in MH_DYLIB files
12019
      lt_prog_compiler_pic_FC='-fno-common'
12020
      ;;
12021
 
12022
    haiku*)
12023
      # PIC is the default for Haiku.
12024
      # The "-static" flag exists, but is broken.
12025
      lt_prog_compiler_static_FC=
12026
      ;;
12027
 
12028
    hpux*)
12029
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12030
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12031
      # sets the default TLS model and affects inlining.
12032
      case $host_cpu in
12033
      hppa*64*)
12034
        # +Z the default
12035
        ;;
12036
      *)
12037
        lt_prog_compiler_pic_FC='-fPIC'
12038
        ;;
12039
      esac
12040
      ;;
12041
 
12042
    interix[3-9]*)
12043
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12044
      # Instead, we relocate shared libraries at runtime.
12045
      ;;
12046
 
12047
    msdosdjgpp*)
12048
      # Just because we use GCC doesn't mean we suddenly get shared libraries
12049
      # on systems that don't support them.
12050
      lt_prog_compiler_can_build_shared_FC=no
12051
      enable_shared=no
12052
      ;;
12053
 
12054
    *nto* | *qnx*)
12055
      # QNX uses GNU C++, but need to define -shared option too, otherwise
12056
      # it will coredump.
12057
      lt_prog_compiler_pic_FC='-fPIC -shared'
12058
      ;;
12059
 
12060
    sysv4*MP*)
12061
      if test -d /usr/nec; then
12062
        lt_prog_compiler_pic_FC=-Kconform_pic
12063
      fi
12064
      ;;
12065
 
12066
    *)
12067
      lt_prog_compiler_pic_FC='-fPIC'
12068
      ;;
12069
    esac
12070
 
12071
    case $cc_basename in
12072
    nvcc*) # Cuda Compiler Driver 2.2
12073
      lt_prog_compiler_wl_FC='-Xlinker '
12074
      lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12075
      ;;
12076
    esac
12077
  else
12078
    # PORTME Check for flag to pass linker flags through the system compiler.
12079
    case $host_os in
12080
    aix*)
12081
      lt_prog_compiler_wl_FC='-Wl,'
12082
      if test "$host_cpu" = ia64; then
12083
        # AIX 5 now supports IA64 processor
12084
        lt_prog_compiler_static_FC='-Bstatic'
12085
      else
12086
        lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12087
      fi
12088
      ;;
12089
 
12090
    mingw* | cygwin* | pw32* | os2* | cegcc*)
12091
      # This hack is so that the source file can tell whether it is being
12092
      # built for inclusion in a dll (and should export symbols for example).
12093
      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12094
      ;;
12095
 
12096
    hpux9* | hpux10* | hpux11*)
12097
      lt_prog_compiler_wl_FC='-Wl,'
12098
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12099
      # not for PA HP-UX.
12100
      case $host_cpu in
12101
      hppa*64*|ia64*)
12102
        # +Z the default
12103
        ;;
12104
      *)
12105
        lt_prog_compiler_pic_FC='+Z'
12106
        ;;
12107
      esac
12108
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12109
      lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12110
      ;;
12111
 
12112
    irix5* | irix6* | nonstopux*)
12113
      lt_prog_compiler_wl_FC='-Wl,'
12114
      # PIC (with -KPIC) is the default.
12115
      lt_prog_compiler_static_FC='-non_shared'
12116
      ;;
12117
 
12118
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
12119
      case $cc_basename in
12120
      # old Intel for x86_64 which still supported -KPIC.
12121
      ecc*)
12122
        lt_prog_compiler_wl_FC='-Wl,'
12123
        lt_prog_compiler_pic_FC='-KPIC'
12124
        lt_prog_compiler_static_FC='-static'
12125
        ;;
12126
      # icc used to be incompatible with GCC.
12127
      # ICC 10 doesn't accept -KPIC any more.
12128
      icc* | ifort*)
12129
        lt_prog_compiler_wl_FC='-Wl,'
12130
        lt_prog_compiler_pic_FC='-fPIC'
12131
        lt_prog_compiler_static_FC='-static'
12132
        ;;
12133
      # Lahey Fortran 8.1.
12134
      lf95*)
12135
        lt_prog_compiler_wl_FC='-Wl,'
12136
        lt_prog_compiler_pic_FC='--shared'
12137
        lt_prog_compiler_static_FC='--static'
12138
        ;;
12139
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12140
        # Portland Group compilers (*not* the Pentium gcc compiler,
12141
        # which looks to be a dead project)
12142
        lt_prog_compiler_wl_FC='-Wl,'
12143
        lt_prog_compiler_pic_FC='-fpic'
12144
        lt_prog_compiler_static_FC='-Bstatic'
12145
        ;;
12146
      ccc*)
12147
        lt_prog_compiler_wl_FC='-Wl,'
12148
        # All Alpha code is PIC.
12149
        lt_prog_compiler_static_FC='-non_shared'
12150
        ;;
12151
      xl* | bgxl* | bgf* | mpixl*)
12152
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12153
        lt_prog_compiler_wl_FC='-Wl,'
12154
        lt_prog_compiler_pic_FC='-qpic'
12155
        lt_prog_compiler_static_FC='-qstaticlink'
12156
        ;;
12157
      *)
12158
        case `$CC -V 2>&1 | sed 5q` in
12159
        *Sun\ F* | *Sun*Fortran*)
12160
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
12161
          lt_prog_compiler_pic_FC='-KPIC'
12162
          lt_prog_compiler_static_FC='-Bstatic'
12163
          lt_prog_compiler_wl_FC=''
12164
          ;;
12165
        *Sun\ C*)
12166
          # Sun C 5.9
12167
          lt_prog_compiler_pic_FC='-KPIC'
12168
          lt_prog_compiler_static_FC='-Bstatic'
12169
          lt_prog_compiler_wl_FC='-Wl,'
12170
          ;;
12171
        esac
12172
        ;;
12173
      esac
12174
      ;;
12175
 
12176
    newsos6)
12177
      lt_prog_compiler_pic_FC='-KPIC'
12178
      lt_prog_compiler_static_FC='-Bstatic'
12179
      ;;
12180
 
12181
    *nto* | *qnx*)
12182
      # QNX uses GNU C++, but need to define -shared option too, otherwise
12183
      # it will coredump.
12184
      lt_prog_compiler_pic_FC='-fPIC -shared'
12185
      ;;
12186
 
12187
    osf3* | osf4* | osf5*)
12188
      lt_prog_compiler_wl_FC='-Wl,'
12189
      # All OSF/1 code is PIC.
12190
      lt_prog_compiler_static_FC='-non_shared'
12191
      ;;
12192
 
12193
    rdos*)
12194
      lt_prog_compiler_static_FC='-non_shared'
12195
      ;;
12196
 
12197
    solaris*)
12198
      lt_prog_compiler_pic_FC='-KPIC'
12199
      lt_prog_compiler_static_FC='-Bstatic'
12200
      case $cc_basename in
12201
      f77* | f90* | f95*)
12202
        lt_prog_compiler_wl_FC='-Qoption ld ';;
12203
      *)
12204
        lt_prog_compiler_wl_FC='-Wl,';;
12205
      esac
12206
      ;;
12207
 
12208
    sunos4*)
12209
      lt_prog_compiler_wl_FC='-Qoption ld '
12210
      lt_prog_compiler_pic_FC='-PIC'
12211
      lt_prog_compiler_static_FC='-Bstatic'
12212
      ;;
12213
 
12214
    sysv4 | sysv4.2uw2* | sysv4.3*)
12215
      lt_prog_compiler_wl_FC='-Wl,'
12216
      lt_prog_compiler_pic_FC='-KPIC'
12217
      lt_prog_compiler_static_FC='-Bstatic'
12218
      ;;
12219
 
12220
    sysv4*MP*)
12221
      if test -d /usr/nec ;then
12222
        lt_prog_compiler_pic_FC='-Kconform_pic'
12223
        lt_prog_compiler_static_FC='-Bstatic'
12224
      fi
12225
      ;;
12226
 
12227
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12228
      lt_prog_compiler_wl_FC='-Wl,'
12229
      lt_prog_compiler_pic_FC='-KPIC'
12230
      lt_prog_compiler_static_FC='-Bstatic'
12231
      ;;
12232
 
12233
    unicos*)
12234
      lt_prog_compiler_wl_FC='-Wl,'
12235
      lt_prog_compiler_can_build_shared_FC=no
12236
      ;;
12237
 
12238
    uts4*)
12239
      lt_prog_compiler_pic_FC='-pic'
12240
      lt_prog_compiler_static_FC='-Bstatic'
12241
      ;;
12242
 
12243
    *)
12244
      lt_prog_compiler_can_build_shared_FC=no
12245
      ;;
12246
    esac
12247
  fi
12248
 
12249
case $host_os in
12250
  # For platforms which do not support PIC, -DPIC is meaningless:
12251
  *djgpp*)
12252
    lt_prog_compiler_pic_FC=
12253
    ;;
12254
  *)
12255
    lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12256
    ;;
12257
esac
12258
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12259
$as_echo "$lt_prog_compiler_pic_FC" >&6; }
12260
 
12261
 
12262
 
12263
#
12264
# Check to make sure the PIC flag actually works.
12265
#
12266
if test -n "$lt_prog_compiler_pic_FC"; then
12267
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12268
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12269
if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12270
  $as_echo_n "(cached) " >&6
12271
else
12272
  lt_cv_prog_compiler_pic_works_FC=no
12273
   ac_outfile=conftest.$ac_objext
12274
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12275
   lt_compiler_flag="$lt_prog_compiler_pic_FC"
12276
   # Insert the option either (1) after the last *FLAGS variable, or
12277
   # (2) before a word containing "conftest.", or (3) at the end.
12278
   # Note that $ac_compile itself does not contain backslashes and begins
12279
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12280
   # The option is referenced via a variable to avoid confusing sed.
12281
   lt_compile=`echo "$ac_compile" | $SED \
12282
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12283
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12284
   -e 's:$: $lt_compiler_flag:'`
12285
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12286
   (eval "$lt_compile" 2>conftest.err)
12287
   ac_status=$?
12288
   cat conftest.err >&5
12289
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290
   if (exit $ac_status) && test -s "$ac_outfile"; then
12291
     # The compiler can only warn and ignore the option if not recognized
12292
     # So say no if there are warnings other than the usual output.
12293
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12294
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12295
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12296
       lt_cv_prog_compiler_pic_works_FC=yes
12297
     fi
12298
   fi
12299
   $RM conftest*
12300
 
12301
fi
12302
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12303
$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12304
 
12305
if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12306
    case $lt_prog_compiler_pic_FC in
12307
     "" | " "*) ;;
12308
     *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12309
     esac
12310
else
12311
    lt_prog_compiler_pic_FC=
12312
     lt_prog_compiler_can_build_shared_FC=no
12313
fi
12314
 
12315
fi
12316
 
12317
 
12318
 
12319
#
12320
# Check to make sure the static flag actually works.
12321
#
12322
wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12323
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12324
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12325
if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12326
  $as_echo_n "(cached) " >&6
12327
else
12328
  lt_cv_prog_compiler_static_works_FC=no
12329
   save_LDFLAGS="$LDFLAGS"
12330
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12331
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12332
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12333
     # The linker can only warn and ignore the option if not recognized
12334
     # So say no if there are warnings
12335
     if test -s conftest.err; then
12336
       # Append any errors to the config.log.
12337
       cat conftest.err 1>&5
12338
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12339
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12340
       if diff conftest.exp conftest.er2 >/dev/null; then
12341
         lt_cv_prog_compiler_static_works_FC=yes
12342
       fi
12343
     else
12344
       lt_cv_prog_compiler_static_works_FC=yes
12345
     fi
12346
   fi
12347
   $RM -r conftest*
12348
   LDFLAGS="$save_LDFLAGS"
12349
 
12350
fi
12351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12352
$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12353
 
12354
if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12355
    :
12356
else
12357
    lt_prog_compiler_static_FC=
12358
fi
12359
 
12360
 
12361
 
12362
 
12363
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12364
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12365
if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12366
  $as_echo_n "(cached) " >&6
12367
else
12368
  lt_cv_prog_compiler_c_o_FC=no
12369
   $RM -r conftest 2>/dev/null
12370
   mkdir conftest
12371
   cd conftest
12372
   mkdir out
12373
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12374
 
12375
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12376
   # Insert the option either (1) after the last *FLAGS variable, or
12377
   # (2) before a word containing "conftest.", or (3) at the end.
12378
   # Note that $ac_compile itself does not contain backslashes and begins
12379
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12380
   lt_compile=`echo "$ac_compile" | $SED \
12381
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12382
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12383
   -e 's:$: $lt_compiler_flag:'`
12384
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12385
   (eval "$lt_compile" 2>out/conftest.err)
12386
   ac_status=$?
12387
   cat out/conftest.err >&5
12388
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12390
   then
12391
     # The compiler can only warn and ignore the option if not recognized
12392
     # So say no if there are warnings
12393
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12394
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12395
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12396
       lt_cv_prog_compiler_c_o_FC=yes
12397
     fi
12398
   fi
12399
   chmod u+w . 2>&5
12400
   $RM conftest*
12401
   # SGI C++ compiler will create directory out/ii_files/ for
12402
   # template instantiation
12403
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12404
   $RM out/* && rmdir out
12405
   cd ..
12406
   $RM -r conftest
12407
   $RM conftest*
12408
 
12409
fi
12410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12411
$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12412
 
12413
 
12414
 
12415
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12416
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12417
if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12418
  $as_echo_n "(cached) " >&6
12419
else
12420
  lt_cv_prog_compiler_c_o_FC=no
12421
   $RM -r conftest 2>/dev/null
12422
   mkdir conftest
12423
   cd conftest
12424
   mkdir out
12425
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12426
 
12427
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12428
   # Insert the option either (1) after the last *FLAGS variable, or
12429
   # (2) before a word containing "conftest.", or (3) at the end.
12430
   # Note that $ac_compile itself does not contain backslashes and begins
12431
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12432
   lt_compile=`echo "$ac_compile" | $SED \
12433
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12434
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12435
   -e 's:$: $lt_compiler_flag:'`
12436
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12437
   (eval "$lt_compile" 2>out/conftest.err)
12438
   ac_status=$?
12439
   cat out/conftest.err >&5
12440
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12442
   then
12443
     # The compiler can only warn and ignore the option if not recognized
12444
     # So say no if there are warnings
12445
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12446
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12447
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12448
       lt_cv_prog_compiler_c_o_FC=yes
12449
     fi
12450
   fi
12451
   chmod u+w . 2>&5
12452
   $RM conftest*
12453
   # SGI C++ compiler will create directory out/ii_files/ for
12454
   # template instantiation
12455
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12456
   $RM out/* && rmdir out
12457
   cd ..
12458
   $RM -r conftest
12459
   $RM conftest*
12460
 
12461
fi
12462
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12463
$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12464
 
12465
 
12466
 
12467
 
12468
hard_links="nottested"
12469
if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12470
  # do not overwrite the value of need_locks provided by the user
12471
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12472
$as_echo_n "checking if we can lock with hard links... " >&6; }
12473
  hard_links=yes
12474
  $RM conftest*
12475
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12476
  touch conftest.a
12477
  ln conftest.a conftest.b 2>&5 || hard_links=no
12478
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12479
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12480
$as_echo "$hard_links" >&6; }
12481
  if test "$hard_links" = no; then
12482
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12483
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12484
    need_locks=warn
12485
  fi
12486
else
12487
  need_locks=no
12488
fi
12489
 
12490
 
12491
 
12492
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12493
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12494
 
12495
  runpath_var=
12496
  allow_undefined_flag_FC=
12497
  always_export_symbols_FC=no
12498
  archive_cmds_FC=
12499
  archive_expsym_cmds_FC=
12500
  compiler_needs_object_FC=no
12501
  enable_shared_with_static_runtimes_FC=no
12502
  export_dynamic_flag_spec_FC=
12503
  export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12504
  hardcode_automatic_FC=no
12505
  hardcode_direct_FC=no
12506
  hardcode_direct_absolute_FC=no
12507
  hardcode_libdir_flag_spec_FC=
12508
  hardcode_libdir_flag_spec_ld_FC=
12509
  hardcode_libdir_separator_FC=
12510
  hardcode_minus_L_FC=no
12511
  hardcode_shlibpath_var_FC=unsupported
12512
  inherit_rpath_FC=no
12513
  link_all_deplibs_FC=unknown
12514
  module_cmds_FC=
12515
  module_expsym_cmds_FC=
12516
  old_archive_from_new_cmds_FC=
12517
  old_archive_from_expsyms_cmds_FC=
12518
  thread_safe_flag_spec_FC=
12519
  whole_archive_flag_spec_FC=
12520
  # include_expsyms should be a list of space-separated symbols to be *always*
12521
  # included in the symbol list
12522
  include_expsyms_FC=
12523
  # exclude_expsyms can be an extended regexp of symbols to exclude
12524
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12525
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12526
  # as well as any symbol that contains `d'.
12527
  exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12528
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12529
  # platforms (ab)use it in PIC code, but their linkers get confused if
12530
  # the symbol is explicitly referenced.  Since portable code cannot
12531
  # rely on this symbol name, it's probably fine to never include it in
12532
  # preloaded symbol tables.
12533
  # Exclude shared library initialization/finalization symbols.
12534
  extract_expsyms_cmds=
12535
 
12536
  case $host_os in
12537
  cygwin* | mingw* | pw32* | cegcc*)
12538
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12539
    # When not using gcc, we currently assume that we are using
12540
    # Microsoft Visual C++.
12541
    if test "$GCC" != yes; then
12542
      with_gnu_ld=no
12543
    fi
12544
    ;;
12545
  interix*)
12546
    # we just hope/assume this is gcc and not c89 (= MSVC++)
12547
    with_gnu_ld=yes
12548
    ;;
12549
  openbsd*)
12550
    with_gnu_ld=no
12551
    ;;
12552
  esac
12553
 
12554
  ld_shlibs_FC=yes
12555
 
12556
  # On some targets, GNU ld is compatible enough with the native linker
12557
  # that we're better off using the native interface for both.
12558
  lt_use_gnu_ld_interface=no
12559
  if test "$with_gnu_ld" = yes; then
12560
    case $host_os in
12561
      aix*)
12562
        # The AIX port of GNU ld has always aspired to compatibility
12563
        # with the native linker.  However, as the warning in the GNU ld
12564
        # block says, versions before 2.19.5* couldn't really create working
12565
        # shared libraries, regardless of the interface used.
12566
        case `$LD -v 2>&1` in
12567
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12568
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12569
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12570
          *)
12571
            lt_use_gnu_ld_interface=yes
12572
            ;;
12573
        esac
12574
        ;;
12575
      *)
12576
        lt_use_gnu_ld_interface=yes
12577
        ;;
12578
    esac
12579
  fi
12580
 
12581
  if test "$lt_use_gnu_ld_interface" = yes; then
12582
    # If archive_cmds runs LD, not CC, wlarc should be empty
12583
    wlarc='${wl}'
12584
 
12585
    # Set some defaults for GNU ld with shared library support. These
12586
    # are reset later if shared libraries are not supported. Putting them
12587
    # here allows them to be overridden if necessary.
12588
    runpath_var=LD_RUN_PATH
12589
    hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12590
    export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12591
    # ancient GNU ld didn't support --whole-archive et. al.
12592
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12593
      whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12594
    else
12595
      whole_archive_flag_spec_FC=
12596
    fi
12597
    supports_anon_versioning=no
12598
    case `$LD -v 2>&1` in
12599
      *GNU\ gold*) supports_anon_versioning=yes ;;
12600
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12601
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12602
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12603
      *\ 2.11.*) ;; # other 2.11 versions
12604
      *) supports_anon_versioning=yes ;;
12605
    esac
12606
 
12607
    # See if GNU ld supports shared libraries.
12608
    case $host_os in
12609
    aix[3-9]*)
12610
      # On AIX/PPC, the GNU linker is very broken
12611
      if test "$host_cpu" != ia64; then
12612
        ld_shlibs_FC=no
12613
        cat <<_LT_EOF 1>&2
12614
 
12615
*** Warning: the GNU linker, at least up to release 2.19, is reported
12616
*** to be unable to reliably create shared libraries on AIX.
12617
*** Therefore, libtool is disabling shared libraries support.  If you
12618
*** really care for shared libraries, you may want to install binutils
12619
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12620
*** You will then need to restart the configuration process.
12621
 
12622
_LT_EOF
12623
      fi
12624
      ;;
12625
 
12626
    amigaos*)
12627
      case $host_cpu in
12628
      powerpc)
12629
            # see comment about AmigaOS4 .so support
12630
            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12631
            archive_expsym_cmds_FC=''
12632
        ;;
12633
      m68k)
12634
            archive_cmds_FC='$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)'
12635
            hardcode_libdir_flag_spec_FC='-L$libdir'
12636
            hardcode_minus_L_FC=yes
12637
        ;;
12638
      esac
12639
      ;;
12640
 
12641
    beos*)
12642
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12643
        allow_undefined_flag_FC=unsupported
12644
        # Joseph Beckenbach  says some releases of gcc
12645
        # support --undefined.  This deserves some investigation.  FIXME
12646
        archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12647
      else
12648
        ld_shlibs_FC=no
12649
      fi
12650
      ;;
12651
 
12652
    cygwin* | mingw* | pw32* | cegcc*)
12653
      # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12654
      # as there is no search path for DLLs.
12655
      hardcode_libdir_flag_spec_FC='-L$libdir'
12656
      export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12657
      allow_undefined_flag_FC=unsupported
12658
      always_export_symbols_FC=no
12659
      enable_shared_with_static_runtimes_FC=yes
12660
      export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12661
 
12662
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12663
        archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12664
        # If the export-symbols file already is a .def file (1st line
12665
        # is EXPORTS), use it as is; otherwise, prepend...
12666
        archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12667
          cp $export_symbols $output_objdir/$soname.def;
12668
        else
12669
          echo EXPORTS > $output_objdir/$soname.def;
12670
          cat $export_symbols >> $output_objdir/$soname.def;
12671
        fi~
12672
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12673
      else
12674
        ld_shlibs_FC=no
12675
      fi
12676
      ;;
12677
 
12678
    haiku*)
12679
      archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12680
      link_all_deplibs_FC=yes
12681
      ;;
12682
 
12683
    interix[3-9]*)
12684
      hardcode_direct_FC=no
12685
      hardcode_shlibpath_var_FC=no
12686
      hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12687
      export_dynamic_flag_spec_FC='${wl}-E'
12688
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12689
      # Instead, shared libraries are loaded at an image base (0x10000000 by
12690
      # default) and relocated if they conflict, which is a slow very memory
12691
      # consuming and fragmenting process.  To avoid this, we pick a random,
12692
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12693
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12694
      archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12695
      archive_expsym_cmds_FC='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'
12696
      ;;
12697
 
12698
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12699
      tmp_diet=no
12700
      if test "$host_os" = linux-dietlibc; then
12701
        case $cc_basename in
12702
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12703
        esac
12704
      fi
12705
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12706
         && test "$tmp_diet" = no
12707
      then
12708
        tmp_addflag=
12709
        tmp_sharedflag='-shared'
12710
        case $cc_basename,$host_cpu in
12711
        pgcc*)                          # Portland Group C compiler
12712
          whole_archive_flag_spec_FC='${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'
12713
          tmp_addflag=' $pic_flag'
12714
          ;;
12715
        pgf77* | pgf90* | pgf95* | pgfortran*)
12716
                                        # Portland Group f77 and f90 compilers
12717
          whole_archive_flag_spec_FC='${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'
12718
          tmp_addflag=' $pic_flag -Mnomain' ;;
12719
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12720
          tmp_addflag=' -i_dynamic' ;;
12721
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12722
          tmp_addflag=' -i_dynamic -nofor_main' ;;
12723
        ifc* | ifort*)                  # Intel Fortran compiler
12724
          tmp_addflag=' -nofor_main' ;;
12725
        lf95*)                          # Lahey Fortran 8.1
12726
          whole_archive_flag_spec_FC=
12727
          tmp_sharedflag='--shared' ;;
12728
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12729
          tmp_sharedflag='-qmkshrobj'
12730
          tmp_addflag= ;;
12731
        nvcc*)  # Cuda Compiler Driver 2.2
12732
          whole_archive_flag_spec_FC='${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'
12733
          compiler_needs_object_FC=yes
12734
          ;;
12735
        esac
12736
        case `$CC -V 2>&1 | sed 5q` in
12737
        *Sun\ C*)                       # Sun C 5.9
12738
          whole_archive_flag_spec_FC='${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'
12739
          compiler_needs_object_FC=yes
12740
          tmp_sharedflag='-G' ;;
12741
        *Sun\ F*)                       # Sun Fortran 8.3
12742
          tmp_sharedflag='-G' ;;
12743
        esac
12744
        archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12745
 
12746
        if test "x$supports_anon_versioning" = xyes; then
12747
          archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12748
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12749
            echo "local: *; };" >> $output_objdir/$libname.ver~
12750
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12751
        fi
12752
 
12753
        case $cc_basename in
12754
        xlf* | bgf* | bgxlf* | mpixlf*)
12755
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12756
          whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12757
          hardcode_libdir_flag_spec_FC=
12758
          hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12759
          archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12760
          if test "x$supports_anon_versioning" = xyes; then
12761
            archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12762
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12763
              echo "local: *; };" >> $output_objdir/$libname.ver~
12764
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12765
          fi
12766
          ;;
12767
        esac
12768
      else
12769
        ld_shlibs_FC=no
12770
      fi
12771
      ;;
12772
 
12773
    netbsd*)
12774
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12775
        archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12776
        wlarc=
12777
      else
12778
        archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12779
        archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12780
      fi
12781
      ;;
12782
 
12783
    solaris*)
12784
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12785
        ld_shlibs_FC=no
12786
        cat <<_LT_EOF 1>&2
12787
 
12788
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12789
*** create shared libraries on Solaris systems.  Therefore, libtool
12790
*** is disabling shared libraries support.  We urge you to upgrade GNU
12791
*** binutils to release 2.9.1 or newer.  Another option is to modify
12792
*** your PATH or compiler configuration so that the native linker is
12793
*** used, and then restart.
12794
 
12795
_LT_EOF
12796
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12797
        archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12798
        archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12799
      else
12800
        ld_shlibs_FC=no
12801
      fi
12802
      ;;
12803
 
12804
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12805
      case `$LD -v 2>&1` in
12806
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12807
        ld_shlibs_FC=no
12808
        cat <<_LT_EOF 1>&2
12809
 
12810
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12811
*** reliably create shared libraries on SCO systems.  Therefore, libtool
12812
*** is disabling shared libraries support.  We urge you to upgrade GNU
12813
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12814
*** your PATH or compiler configuration so that the native linker is
12815
*** used, and then restart.
12816
 
12817
_LT_EOF
12818
        ;;
12819
        *)
12820
          # For security reasons, it is highly recommended that you always
12821
          # use absolute paths for naming shared libraries, and exclude the
12822
          # DT_RUNPATH tag from executables and libraries.  But doing so
12823
          # requires that you compile everything twice, which is a pain.
12824
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12825
            hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12826
            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12827
            archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12828
          else
12829
            ld_shlibs_FC=no
12830
          fi
12831
        ;;
12832
      esac
12833
      ;;
12834
 
12835
    sunos4*)
12836
      archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12837
      wlarc=
12838
      hardcode_direct_FC=yes
12839
      hardcode_shlibpath_var_FC=no
12840
      ;;
12841
 
12842
    *)
12843
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12844
        archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12845
        archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12846
      else
12847
        ld_shlibs_FC=no
12848
      fi
12849
      ;;
12850
    esac
12851
 
12852
    if test "$ld_shlibs_FC" = no; then
12853
      runpath_var=
12854
      hardcode_libdir_flag_spec_FC=
12855
      export_dynamic_flag_spec_FC=
12856
      whole_archive_flag_spec_FC=
12857
    fi
12858
  else
12859
    # PORTME fill in a description of your system's linker (not GNU ld)
12860
    case $host_os in
12861
    aix3*)
12862
      allow_undefined_flag_FC=unsupported
12863
      always_export_symbols_FC=yes
12864
      archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12865
      # Note: this linker hardcodes the directories in LIBPATH if there
12866
      # are no directories specified by -L.
12867
      hardcode_minus_L_FC=yes
12868
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12869
        # Neither direct hardcoding nor static linking is supported with a
12870
        # broken collect2.
12871
        hardcode_direct_FC=unsupported
12872
      fi
12873
      ;;
12874
 
12875
    aix[4-9]*)
12876
      if test "$host_cpu" = ia64; then
12877
        # On IA64, the linker does run time linking by default, so we don't
12878
        # have to do anything special.
12879
        aix_use_runtimelinking=no
12880
        exp_sym_flag='-Bexport'
12881
        no_entry_flag=""
12882
      else
12883
        # If we're using GNU nm, then we don't want the "-C" option.
12884
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
12885
        # Also, AIX nm treats weak defined symbols like other global
12886
        # defined symbols, whereas GNU nm marks them as "W".
12887
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12888
          export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12889
        else
12890
          export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12891
        fi
12892
        aix_use_runtimelinking=no
12893
 
12894
        # Test if we are trying to use run time linking or normal
12895
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12896
        # need to do runtime linking.
12897
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12898
          for ld_flag in $LDFLAGS; do
12899
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12900
            aix_use_runtimelinking=yes
12901
            break
12902
          fi
12903
          done
12904
          ;;
12905
        esac
12906
 
12907
        exp_sym_flag='-bexport'
12908
        no_entry_flag='-bnoentry'
12909
      fi
12910
 
12911
      # When large executables or shared objects are built, AIX ld can
12912
      # have problems creating the table of contents.  If linking a library
12913
      # or program results in "error TOC overflow" add -mminimal-toc to
12914
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12915
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12916
 
12917
      archive_cmds_FC=''
12918
      hardcode_direct_FC=yes
12919
      hardcode_direct_absolute_FC=yes
12920
      hardcode_libdir_separator_FC=':'
12921
      link_all_deplibs_FC=yes
12922
      file_list_spec_FC='${wl}-f,'
12923
 
12924
      if test "$GCC" = yes; then
12925
        case $host_os in aix4.[012]|aix4.[012].*)
12926
        # We only want to do this on AIX 4.2 and lower, the check
12927
        # below for broken collect2 doesn't work under 4.3+
12928
          collect2name=`${CC} -print-prog-name=collect2`
12929
          if test -f "$collect2name" &&
12930
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12931
          then
12932
          # We have reworked collect2
12933
          :
12934
          else
12935
          # We have old collect2
12936
          hardcode_direct_FC=unsupported
12937
          # It fails to find uninstalled libraries when the uninstalled
12938
          # path is not listed in the libpath.  Setting hardcode_minus_L
12939
          # to unsupported forces relinking
12940
          hardcode_minus_L_FC=yes
12941
          hardcode_libdir_flag_spec_FC='-L$libdir'
12942
          hardcode_libdir_separator_FC=
12943
          fi
12944
          ;;
12945
        esac
12946
        shared_flag='-shared'
12947
        if test "$aix_use_runtimelinking" = yes; then
12948
          shared_flag="$shared_flag "'${wl}-G'
12949
        fi
12950
      else
12951
        # not using gcc
12952
        if test "$host_cpu" = ia64; then
12953
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12954
        # chokes on -Wl,-G. The following line is correct:
12955
          shared_flag='-G'
12956
        else
12957
          if test "$aix_use_runtimelinking" = yes; then
12958
            shared_flag='${wl}-G'
12959
          else
12960
            shared_flag='${wl}-bM:SRE'
12961
          fi
12962
        fi
12963
      fi
12964
 
12965
      export_dynamic_flag_spec_FC='${wl}-bexpall'
12966
      # It seems that -bexpall does not export symbols beginning with
12967
      # underscore (_), so it is better to generate a list of symbols to export.
12968
      always_export_symbols_FC=yes
12969
      if test "$aix_use_runtimelinking" = yes; then
12970
        # Warning - without using the other runtime loading flags (-brtl),
12971
        # -berok will link without error, but may produce a broken library.
12972
        allow_undefined_flag_FC='-berok'
12973
        # Determine the default libpath from the value encoded in an
12974
        # empty executable.
12975
        cat > conftest.$ac_ext <<_ACEOF
12976
      program main
12977
 
12978
      end
12979
_ACEOF
12980
if ac_fn_fc_try_link "$LINENO"; then :
12981
 
12982
lt_aix_libpath_sed='
12983
    /Import File Strings/,/^$/ {
12984
        /^0/ {
12985
            s/^0  *\(.*\)$/\1/
12986
            p
12987
        }
12988
    }'
12989
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12990
# Check for a 64-bit object if we didn't find anything.
12991
if test -z "$aix_libpath"; then
12992
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12993
fi
12994
fi
12995
rm -f core conftest.err conftest.$ac_objext \
12996
    conftest$ac_exeext conftest.$ac_ext
12997
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12998
 
12999
        hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13000
        archive_expsym_cmds_FC='$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"
13001
      else
13002
        if test "$host_cpu" = ia64; then
13003
          hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13004
          allow_undefined_flag_FC="-z nodefs"
13005
          archive_expsym_cmds_FC="\$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"
13006
        else
13007
         # Determine the default libpath from the value encoded in an
13008
         # empty executable.
13009
         cat > conftest.$ac_ext <<_ACEOF
13010
      program main
13011
 
13012
      end
13013
_ACEOF
13014
if ac_fn_fc_try_link "$LINENO"; then :
13015
 
13016
lt_aix_libpath_sed='
13017
    /Import File Strings/,/^$/ {
13018
        /^0/ {
13019
            s/^0  *\(.*\)$/\1/
13020
            p
13021
        }
13022
    }'
13023
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13024
# Check for a 64-bit object if we didn't find anything.
13025
if test -z "$aix_libpath"; then
13026
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13027
fi
13028
fi
13029
rm -f core conftest.err conftest.$ac_objext \
13030
    conftest$ac_exeext conftest.$ac_ext
13031
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13032
 
13033
         hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13034
          # Warning - without using the other run time loading flags,
13035
          # -berok will link without error, but may produce a broken library.
13036
          no_undefined_flag_FC=' ${wl}-bernotok'
13037
          allow_undefined_flag_FC=' ${wl}-berok'
13038
          if test "$with_gnu_ld" = yes; then
13039
            # We only use this code for GNU lds that support --whole-archive.
13040
            whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13041
          else
13042
            # Exported symbols can be pulled into shared objects from archives
13043
            whole_archive_flag_spec_FC='$convenience'
13044
          fi
13045
          archive_cmds_need_lc_FC=yes
13046
          # This is similar to how AIX traditionally builds its shared libraries.
13047
          archive_expsym_cmds_FC="\$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'
13048
        fi
13049
      fi
13050
      ;;
13051
 
13052
    amigaos*)
13053
      case $host_cpu in
13054
      powerpc)
13055
            # see comment about AmigaOS4 .so support
13056
            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13057
            archive_expsym_cmds_FC=''
13058
        ;;
13059
      m68k)
13060
            archive_cmds_FC='$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)'
13061
            hardcode_libdir_flag_spec_FC='-L$libdir'
13062
            hardcode_minus_L_FC=yes
13063
        ;;
13064
      esac
13065
      ;;
13066
 
13067
    bsdi[45]*)
13068
      export_dynamic_flag_spec_FC=-rdynamic
13069
      ;;
13070
 
13071
    cygwin* | mingw* | pw32* | cegcc*)
13072
      # When not using gcc, we currently assume that we are using
13073
      # Microsoft Visual C++.
13074
      # hardcode_libdir_flag_spec is actually meaningless, as there is
13075
      # no search path for DLLs.
13076
      hardcode_libdir_flag_spec_FC=' '
13077
      allow_undefined_flag_FC=unsupported
13078
      # Tell ltmain to make .lib files, not .a files.
13079
      libext=lib
13080
      # Tell ltmain to make .dll files, not .so files.
13081
      shrext_cmds=".dll"
13082
      # FIXME: Setting linknames here is a bad hack.
13083
      archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13084
      # The linker will automatically build a .lib file if we build a DLL.
13085
      old_archive_from_new_cmds_FC='true'
13086
      # FIXME: Should let the user specify the lib program.
13087
      old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13088
      fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13089
      enable_shared_with_static_runtimes_FC=yes
13090
      ;;
13091
 
13092
    darwin* | rhapsody*)
13093
 
13094
 
13095
  archive_cmds_need_lc_FC=no
13096
  hardcode_direct_FC=no
13097
  hardcode_automatic_FC=yes
13098
  hardcode_shlibpath_var_FC=unsupported
13099
  if test "$lt_cv_ld_force_load" = "yes"; then
13100
    whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13101
  else
13102
    whole_archive_flag_spec_FC=''
13103
  fi
13104
  link_all_deplibs_FC=yes
13105
  allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13106
  case $cc_basename in
13107
     ifort*) _lt_dar_can_shared=yes ;;
13108
     *) _lt_dar_can_shared=$GCC ;;
13109
  esac
13110
  if test "$_lt_dar_can_shared" = "yes"; then
13111
    output_verbose_link_cmd=func_echo_all
13112
    archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13113
    module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13114
    archive_expsym_cmds_FC="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}"
13115
    module_expsym_cmds_FC="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}"
13116
 
13117
  else
13118
  ld_shlibs_FC=no
13119
  fi
13120
 
13121
      ;;
13122
 
13123
    dgux*)
13124
      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13125
      hardcode_libdir_flag_spec_FC='-L$libdir'
13126
      hardcode_shlibpath_var_FC=no
13127
      ;;
13128
 
13129
    freebsd1*)
13130
      ld_shlibs_FC=no
13131
      ;;
13132
 
13133
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13134
    # support.  Future versions do this automatically, but an explicit c++rt0.o
13135
    # does not break anything, and helps significantly (at the cost of a little
13136
    # extra space).
13137
    freebsd2.2*)
13138
      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13139
      hardcode_libdir_flag_spec_FC='-R$libdir'
13140
      hardcode_direct_FC=yes
13141
      hardcode_shlibpath_var_FC=no
13142
      ;;
13143
 
13144
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13145
    freebsd2*)
13146
      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13147
      hardcode_direct_FC=yes
13148
      hardcode_minus_L_FC=yes
13149
      hardcode_shlibpath_var_FC=no
13150
      ;;
13151
 
13152
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13153
    freebsd* | dragonfly*)
13154
      archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13155
      hardcode_libdir_flag_spec_FC='-R$libdir'
13156
      hardcode_direct_FC=yes
13157
      hardcode_shlibpath_var_FC=no
13158
      ;;
13159
 
13160
    hpux9*)
13161
      if test "$GCC" = yes; then
13162
        archive_cmds_FC='$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'
13163
      else
13164
        archive_cmds_FC='$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'
13165
      fi
13166
      hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13167
      hardcode_libdir_separator_FC=:
13168
      hardcode_direct_FC=yes
13169
 
13170
      # hardcode_minus_L: Not really in the search PATH,
13171
      # but as the default location of the library.
13172
      hardcode_minus_L_FC=yes
13173
      export_dynamic_flag_spec_FC='${wl}-E'
13174
      ;;
13175
 
13176
    hpux10*)
13177
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13178
        archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13179
      else
13180
        archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13181
      fi
13182
      if test "$with_gnu_ld" = no; then
13183
        hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13184
        hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13185
        hardcode_libdir_separator_FC=:
13186
        hardcode_direct_FC=yes
13187
        hardcode_direct_absolute_FC=yes
13188
        export_dynamic_flag_spec_FC='${wl}-E'
13189
        # hardcode_minus_L: Not really in the search PATH,
13190
        # but as the default location of the library.
13191
        hardcode_minus_L_FC=yes
13192
      fi
13193
      ;;
13194
 
13195
    hpux11*)
13196
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13197
        case $host_cpu in
13198
        hppa*64*)
13199
          archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13200
          ;;
13201
        ia64*)
13202
          archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13203
          ;;
13204
        *)
13205
          archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13206
          ;;
13207
        esac
13208
      else
13209
        case $host_cpu in
13210
        hppa*64*)
13211
          archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13212
          ;;
13213
        ia64*)
13214
          archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13215
          ;;
13216
        *)
13217
        archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13218
          ;;
13219
        esac
13220
      fi
13221
      if test "$with_gnu_ld" = no; then
13222
        hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13223
        hardcode_libdir_separator_FC=:
13224
 
13225
        case $host_cpu in
13226
        hppa*64*|ia64*)
13227
          hardcode_direct_FC=no
13228
          hardcode_shlibpath_var_FC=no
13229
          ;;
13230
        *)
13231
          hardcode_direct_FC=yes
13232
          hardcode_direct_absolute_FC=yes
13233
          export_dynamic_flag_spec_FC='${wl}-E'
13234
 
13235
          # hardcode_minus_L: Not really in the search PATH,
13236
          # but as the default location of the library.
13237
          hardcode_minus_L_FC=yes
13238
          ;;
13239
        esac
13240
      fi
13241
      ;;
13242
 
13243
    irix5* | irix6* | nonstopux*)
13244
      if test "$GCC" = yes; then
13245
        archive_cmds_FC='$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'
13246
        # Try to use the -exported_symbol ld option, if it does not
13247
        # work, assume that -exports_file does not work either and
13248
        # implicitly export all symbols.
13249
        save_LDFLAGS="$LDFLAGS"
13250
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13251
        cat > conftest.$ac_ext <<_ACEOF
13252
int foo(void) {}
13253
_ACEOF
13254
if ac_fn_fc_try_link "$LINENO"; then :
13255
  archive_expsym_cmds_FC='$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'
13256
 
13257
fi
13258
rm -f core conftest.err conftest.$ac_objext \
13259
    conftest$ac_exeext conftest.$ac_ext
13260
        LDFLAGS="$save_LDFLAGS"
13261
      else
13262
        archive_cmds_FC='$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'
13263
        archive_expsym_cmds_FC='$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'
13264
      fi
13265
      archive_cmds_need_lc_FC='no'
13266
      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13267
      hardcode_libdir_separator_FC=:
13268
      inherit_rpath_FC=yes
13269
      link_all_deplibs_FC=yes
13270
      ;;
13271
 
13272
    netbsd*)
13273
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13274
        archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13275
      else
13276
        archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13277
      fi
13278
      hardcode_libdir_flag_spec_FC='-R$libdir'
13279
      hardcode_direct_FC=yes
13280
      hardcode_shlibpath_var_FC=no
13281
      ;;
13282
 
13283
    newsos6)
13284
      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13285
      hardcode_direct_FC=yes
13286
      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13287
      hardcode_libdir_separator_FC=:
13288
      hardcode_shlibpath_var_FC=no
13289
      ;;
13290
 
13291
    *nto* | *qnx*)
13292
      ;;
13293
 
13294
    openbsd*)
13295
      if test -f /usr/libexec/ld.so; then
13296
        hardcode_direct_FC=yes
13297
        hardcode_shlibpath_var_FC=no
13298
        hardcode_direct_absolute_FC=yes
13299
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13300
          archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13301
          archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13302
          hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13303
          export_dynamic_flag_spec_FC='${wl}-E'
13304
        else
13305
          case $host_os in
13306
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13307
             archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13308
             hardcode_libdir_flag_spec_FC='-R$libdir'
13309
             ;;
13310
           *)
13311
             archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13312
             hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13313
             ;;
13314
          esac
13315
        fi
13316
      else
13317
        ld_shlibs_FC=no
13318
      fi
13319
      ;;
13320
 
13321
    os2*)
13322
      hardcode_libdir_flag_spec_FC='-L$libdir'
13323
      hardcode_minus_L_FC=yes
13324
      allow_undefined_flag_FC=unsupported
13325
      archive_cmds_FC='$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'
13326
      old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13327
      ;;
13328
 
13329
    osf3*)
13330
      if test "$GCC" = yes; then
13331
        allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13332
        archive_cmds_FC='$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'
13333
      else
13334
        allow_undefined_flag_FC=' -expect_unresolved \*'
13335
        archive_cmds_FC='$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'
13336
      fi
13337
      archive_cmds_need_lc_FC='no'
13338
      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13339
      hardcode_libdir_separator_FC=:
13340
      ;;
13341
 
13342
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
13343
      if test "$GCC" = yes; then
13344
        allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13345
        archive_cmds_FC='$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'
13346
        hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13347
      else
13348
        allow_undefined_flag_FC=' -expect_unresolved \*'
13349
        archive_cmds_FC='$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'
13350
        archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13351
        $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'
13352
 
13353
        # Both c and cxx compiler support -rpath directly
13354
        hardcode_libdir_flag_spec_FC='-rpath $libdir'
13355
      fi
13356
      archive_cmds_need_lc_FC='no'
13357
      hardcode_libdir_separator_FC=:
13358
      ;;
13359
 
13360
    solaris*)
13361
      no_undefined_flag_FC=' -z defs'
13362
      if test "$GCC" = yes; then
13363
        wlarc='${wl}'
13364
        archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13365
        archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13366
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13367
      else
13368
        case `$CC -V 2>&1` in
13369
        *"Compilers 5.0"*)
13370
          wlarc=''
13371
          archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13372
          archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13373
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13374
          ;;
13375
        *)
13376
          wlarc='${wl}'
13377
          archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13378
          archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13379
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13380
          ;;
13381
        esac
13382
      fi
13383
      hardcode_libdir_flag_spec_FC='-R$libdir'
13384
      hardcode_shlibpath_var_FC=no
13385
      case $host_os in
13386
      solaris2.[0-5] | solaris2.[0-5].*) ;;
13387
      *)
13388
        # The compiler driver will combine and reorder linker options,
13389
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
13390
        # but is careful enough not to reorder.
13391
        # Supported since Solaris 2.6 (maybe 2.5.1?)
13392
        if test "$GCC" = yes; then
13393
          whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13394
        else
13395
          whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13396
        fi
13397
        ;;
13398
      esac
13399
      link_all_deplibs_FC=yes
13400
      ;;
13401
 
13402
    sunos4*)
13403
      if test "x$host_vendor" = xsequent; then
13404
        # Use $CC to link under sequent, because it throws in some extra .o
13405
        # files that make .init and .fini sections work.
13406
        archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13407
      else
13408
        archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13409
      fi
13410
      hardcode_libdir_flag_spec_FC='-L$libdir'
13411
      hardcode_direct_FC=yes
13412
      hardcode_minus_L_FC=yes
13413
      hardcode_shlibpath_var_FC=no
13414
      ;;
13415
 
13416
    sysv4)
13417
      case $host_vendor in
13418
        sni)
13419
          archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13420
          hardcode_direct_FC=yes # is this really true???
13421
        ;;
13422
        siemens)
13423
          ## LD is ld it makes a PLAMLIB
13424
          ## CC just makes a GrossModule.
13425
          archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13426
          reload_cmds_FC='$CC -r -o $output$reload_objs'
13427
          hardcode_direct_FC=no
13428
        ;;
13429
        motorola)
13430
          archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13431
          hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13432
        ;;
13433
      esac
13434
      runpath_var='LD_RUN_PATH'
13435
      hardcode_shlibpath_var_FC=no
13436
      ;;
13437
 
13438
    sysv4.3*)
13439
      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13440
      hardcode_shlibpath_var_FC=no
13441
      export_dynamic_flag_spec_FC='-Bexport'
13442
      ;;
13443
 
13444
    sysv4*MP*)
13445
      if test -d /usr/nec; then
13446
        archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13447
        hardcode_shlibpath_var_FC=no
13448
        runpath_var=LD_RUN_PATH
13449
        hardcode_runpath_var=yes
13450
        ld_shlibs_FC=yes
13451
      fi
13452
      ;;
13453
 
13454
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13455
      no_undefined_flag_FC='${wl}-z,text'
13456
      archive_cmds_need_lc_FC=no
13457
      hardcode_shlibpath_var_FC=no
13458
      runpath_var='LD_RUN_PATH'
13459
 
13460
      if test "$GCC" = yes; then
13461
        archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13462
        archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13463
      else
13464
        archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13465
        archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13466
      fi
13467
      ;;
13468
 
13469
    sysv5* | sco3.2v5* | sco5v6*)
13470
      # Note: We can NOT use -z defs as we might desire, because we do not
13471
      # link with -lc, and that would cause any symbols used from libc to
13472
      # always be unresolved, which means just about no library would
13473
      # ever link correctly.  If we're not using GNU ld we use -z text
13474
      # though, which does catch some bad symbols but isn't as heavy-handed
13475
      # as -z defs.
13476
      no_undefined_flag_FC='${wl}-z,text'
13477
      allow_undefined_flag_FC='${wl}-z,nodefs'
13478
      archive_cmds_need_lc_FC=no
13479
      hardcode_shlibpath_var_FC=no
13480
      hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13481
      hardcode_libdir_separator_FC=':'
13482
      link_all_deplibs_FC=yes
13483
      export_dynamic_flag_spec_FC='${wl}-Bexport'
13484
      runpath_var='LD_RUN_PATH'
13485
 
13486
      if test "$GCC" = yes; then
13487
        archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13488
        archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13489
      else
13490
        archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13491
        archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13492
      fi
13493
      ;;
13494
 
13495
    uts4*)
13496
      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13497
      hardcode_libdir_flag_spec_FC='-L$libdir'
13498
      hardcode_shlibpath_var_FC=no
13499
      ;;
13500
 
13501
    *)
13502
      ld_shlibs_FC=no
13503
      ;;
13504
    esac
13505
 
13506
    if test x$host_vendor = xsni; then
13507
      case $host in
13508
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13509
        export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13510
        ;;
13511
      esac
13512
    fi
13513
  fi
13514
 
13515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13516
$as_echo "$ld_shlibs_FC" >&6; }
13517
test "$ld_shlibs_FC" = no && can_build_shared=no
13518
 
13519
with_gnu_ld_FC=$with_gnu_ld
13520
 
13521
 
13522
 
13523
 
13524
 
13525
 
13526
#
13527
# Do we need to explicitly link libc?
13528
#
13529
case "x$archive_cmds_need_lc_FC" in
13530
x|xyes)
13531
  # Assume -lc should be added
13532
  archive_cmds_need_lc_FC=yes
13533
 
13534
  if test "$enable_shared" = yes && test "$GCC" = yes; then
13535
    case $archive_cmds_FC in
13536
    *'~'*)
13537
      # FIXME: we may have to deal with multi-command sequences.
13538
      ;;
13539
    '$CC '*)
13540
      # Test whether the compiler implicitly links with -lc since on some
13541
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13542
      # to ld, don't add -lc before -lgcc.
13543
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13544
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13545
if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13546
  $as_echo_n "(cached) " >&6
13547
else
13548
  $RM conftest*
13549
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13550
 
13551
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13552
  (eval $ac_compile) 2>&5
13553
  ac_status=$?
13554
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13555
  test $ac_status = 0; } 2>conftest.err; then
13556
          soname=conftest
13557
          lib=conftest
13558
          libobjs=conftest.$ac_objext
13559
          deplibs=
13560
          wl=$lt_prog_compiler_wl_FC
13561
          pic_flag=$lt_prog_compiler_pic_FC
13562
          compiler_flags=-v
13563
          linker_flags=-v
13564
          verstring=
13565
          output_objdir=.
13566
          libname=conftest
13567
          lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13568
          allow_undefined_flag_FC=
13569
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13570
  (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13571
  ac_status=$?
13572
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13573
  test $ac_status = 0; }
13574
          then
13575
            lt_cv_archive_cmds_need_lc_FC=no
13576
          else
13577
            lt_cv_archive_cmds_need_lc_FC=yes
13578
          fi
13579
          allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13580
        else
13581
          cat conftest.err 1>&5
13582
        fi
13583
        $RM conftest*
13584
 
13585
fi
13586
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13587
$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13588
      archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13589
      ;;
13590
    esac
13591
  fi
13592
  ;;
13593
esac
13594
 
13595
 
13596
 
13597
 
13598
 
13599
 
13600
 
13601
 
13602
 
13603
 
13604
 
13605
 
13606
 
13607
 
13608
 
13609
 
13610
 
13611
 
13612
 
13613
 
13614
 
13615
 
13616
 
13617
 
13618
 
13619
 
13620
 
13621
 
13622
 
13623
 
13624
 
13625
 
13626
 
13627
 
13628
 
13629
 
13630
 
13631
 
13632
 
13633
 
13634
 
13635
 
13636
 
13637
 
13638
 
13639
 
13640
 
13641
 
13642
 
13643
 
13644
 
13645
 
13646
 
13647
 
13648
 
13649
 
13650
 
13651
 
13652
 
13653
 
13654
 
13655
 
13656
 
13657
 
13658
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13659
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13660
 
13661
library_names_spec=
13662
libname_spec='lib$name'
13663
soname_spec=
13664
shrext_cmds=".so"
13665
postinstall_cmds=
13666
postuninstall_cmds=
13667
finish_cmds=
13668
finish_eval=
13669
shlibpath_var=
13670
shlibpath_overrides_runpath=unknown
13671
version_type=none
13672
dynamic_linker="$host_os ld.so"
13673
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13674
need_lib_prefix=unknown
13675
hardcode_into_libs=no
13676
 
13677
# when you set need_version to no, make sure it does not cause -set_version
13678
# flags to be left without arguments
13679
need_version=unknown
13680
 
13681
case $host_os in
13682
aix3*)
13683
  version_type=linux
13684
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13685
  shlibpath_var=LIBPATH
13686
 
13687
  # AIX 3 has no versioning support, so we append a major version to the name.
13688
  soname_spec='${libname}${release}${shared_ext}$major'
13689
  ;;
13690
 
13691
aix[4-9]*)
13692
  version_type=linux
13693
  need_lib_prefix=no
13694
  need_version=no
13695
  hardcode_into_libs=yes
13696
  if test "$host_cpu" = ia64; then
13697
    # AIX 5 supports IA64
13698
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13699
    shlibpath_var=LD_LIBRARY_PATH
13700
  else
13701
    # With GCC up to 2.95.x, collect2 would create an import file
13702
    # for dependence libraries.  The import file would start with
13703
    # the line `#! .'.  This would cause the generated library to
13704
    # depend on `.', always an invalid library.  This was fixed in
13705
    # development snapshots of GCC prior to 3.0.
13706
    case $host_os in
13707
      aix4 | aix4.[01] | aix4.[01].*)
13708
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13709
           echo ' yes '
13710
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13711
        :
13712
      else
13713
        can_build_shared=no
13714
      fi
13715
      ;;
13716
    esac
13717
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13718
    # soname into executable. Probably we can add versioning support to
13719
    # collect2, so additional links can be useful in future.
13720
    if test "$aix_use_runtimelinking" = yes; then
13721
      # If using run time linking (on AIX 4.2 or later) use lib.so
13722
      # instead of lib.a to let people know that these are not
13723
      # typical AIX shared libraries.
13724
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13725
    else
13726
      # We preserve .a as extension for shared libraries through AIX4.2
13727
      # and later when we are not doing run time linking.
13728
      library_names_spec='${libname}${release}.a $libname.a'
13729
      soname_spec='${libname}${release}${shared_ext}$major'
13730
    fi
13731
    shlibpath_var=LIBPATH
13732
  fi
13733
  ;;
13734
 
13735
amigaos*)
13736
  case $host_cpu in
13737
  powerpc)
13738
    # Since July 2007 AmigaOS4 officially supports .so libraries.
13739
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13740
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13741
    ;;
13742
  m68k)
13743
    library_names_spec='$libname.ixlibrary $libname.a'
13744
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13745
    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'
13746
    ;;
13747
  esac
13748
  ;;
13749
 
13750
beos*)
13751
  library_names_spec='${libname}${shared_ext}'
13752
  dynamic_linker="$host_os ld.so"
13753
  shlibpath_var=LIBRARY_PATH
13754
  ;;
13755
 
13756
bsdi[45]*)
13757
  version_type=linux
13758
  need_version=no
13759
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13760
  soname_spec='${libname}${release}${shared_ext}$major'
13761
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13762
  shlibpath_var=LD_LIBRARY_PATH
13763
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13764
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13765
  # the default ld.so.conf also contains /usr/contrib/lib and
13766
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13767
  # libtool to hard-code these into programs
13768
  ;;
13769
 
13770
cygwin* | mingw* | pw32* | cegcc*)
13771
  version_type=windows
13772
  shrext_cmds=".dll"
13773
  need_version=no
13774
  need_lib_prefix=no
13775
 
13776
  case $GCC,$host_os in
13777
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13778
    library_names_spec='$libname.dll.a'
13779
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13780
    postinstall_cmds='base_file=`basename \${file}`~
13781
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13782
      dldir=$destdir/`dirname \$dlpath`~
13783
      test -d \$dldir || mkdir -p \$dldir~
13784
      $install_prog $dir/$dlname \$dldir/$dlname~
13785
      chmod a+x \$dldir/$dlname~
13786
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13787
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13788
      fi'
13789
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13790
      dlpath=$dir/\$dldll~
13791
       $RM \$dlpath'
13792
    shlibpath_overrides_runpath=yes
13793
 
13794
    case $host_os in
13795
    cygwin*)
13796
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13797
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13798
 
13799
      ;;
13800
    mingw* | cegcc*)
13801
      # MinGW DLLs use traditional 'lib' prefix
13802
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13803
      ;;
13804
    pw32*)
13805
      # pw32 DLLs use 'pw' prefix rather than 'lib'
13806
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13807
      ;;
13808
    esac
13809
    ;;
13810
 
13811
  *)
13812
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13813
    ;;
13814
  esac
13815
  dynamic_linker='Win32 ld.exe'
13816
  # FIXME: first we should search . and the directory the executable is in
13817
  shlibpath_var=PATH
13818
  ;;
13819
 
13820
darwin* | rhapsody*)
13821
  dynamic_linker="$host_os dyld"
13822
  version_type=darwin
13823
  need_lib_prefix=no
13824
  need_version=no
13825
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13826
  soname_spec='${libname}${release}${major}$shared_ext'
13827
  shlibpath_overrides_runpath=yes
13828
  shlibpath_var=DYLD_LIBRARY_PATH
13829
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13830
 
13831
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13832
  ;;
13833
 
13834
dgux*)
13835
  version_type=linux
13836
  need_lib_prefix=no
13837
  need_version=no
13838
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13839
  soname_spec='${libname}${release}${shared_ext}$major'
13840
  shlibpath_var=LD_LIBRARY_PATH
13841
  ;;
13842
 
13843
freebsd1*)
13844
  dynamic_linker=no
13845
  ;;
13846
 
13847
freebsd* | dragonfly*)
13848
  # DragonFly does not have aout.  When/if they implement a new
13849
  # versioning mechanism, adjust this.
13850
  if test -x /usr/bin/objformat; then
13851
    objformat=`/usr/bin/objformat`
13852
  else
13853
    case $host_os in
13854
    freebsd[123]*) objformat=aout ;;
13855
    *) objformat=elf ;;
13856
    esac
13857
  fi
13858
  version_type=freebsd-$objformat
13859
  case $version_type in
13860
    freebsd-elf*)
13861
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13862
      need_version=no
13863
      need_lib_prefix=no
13864
      ;;
13865
    freebsd-*)
13866
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13867
      need_version=yes
13868
      ;;
13869
  esac
13870
  shlibpath_var=LD_LIBRARY_PATH
13871
  case $host_os in
13872
  freebsd2*)
13873
    shlibpath_overrides_runpath=yes
13874
    ;;
13875
  freebsd3.[01]* | freebsdelf3.[01]*)
13876
    shlibpath_overrides_runpath=yes
13877
    hardcode_into_libs=yes
13878
    ;;
13879
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13880
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13881
    shlibpath_overrides_runpath=no
13882
    hardcode_into_libs=yes
13883
    ;;
13884
  *) # from 4.6 on, and DragonFly
13885
    shlibpath_overrides_runpath=yes
13886
    hardcode_into_libs=yes
13887
    ;;
13888
  esac
13889
  ;;
13890
 
13891
gnu*)
13892
  version_type=linux
13893
  need_lib_prefix=no
13894
  need_version=no
13895
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13896
  soname_spec='${libname}${release}${shared_ext}$major'
13897
  shlibpath_var=LD_LIBRARY_PATH
13898
  hardcode_into_libs=yes
13899
  ;;
13900
 
13901
haiku*)
13902
  version_type=linux
13903
  need_lib_prefix=no
13904
  need_version=no
13905
  dynamic_linker="$host_os runtime_loader"
13906
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13907
  soname_spec='${libname}${release}${shared_ext}$major'
13908
  shlibpath_var=LIBRARY_PATH
13909
  shlibpath_overrides_runpath=yes
13910
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13911
  hardcode_into_libs=yes
13912
  ;;
13913
 
13914
hpux9* | hpux10* | hpux11*)
13915
  # Give a soname corresponding to the major version so that dld.sl refuses to
13916
  # link against other versions.
13917
  version_type=sunos
13918
  need_lib_prefix=no
13919
  need_version=no
13920
  case $host_cpu in
13921
  ia64*)
13922
    shrext_cmds='.so'
13923
    hardcode_into_libs=yes
13924
    dynamic_linker="$host_os dld.so"
13925
    shlibpath_var=LD_LIBRARY_PATH
13926
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13927
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13928
    soname_spec='${libname}${release}${shared_ext}$major'
13929
    if test "X$HPUX_IA64_MODE" = X32; then
13930
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13931
    else
13932
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13933
    fi
13934
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13935
    ;;
13936
  hppa*64*)
13937
    shrext_cmds='.sl'
13938
    hardcode_into_libs=yes
13939
    dynamic_linker="$host_os dld.sl"
13940
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13941
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13942
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13943
    soname_spec='${libname}${release}${shared_ext}$major'
13944
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13945
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13946
    ;;
13947
  *)
13948
    shrext_cmds='.sl'
13949
    dynamic_linker="$host_os dld.sl"
13950
    shlibpath_var=SHLIB_PATH
13951
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13952
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13953
    soname_spec='${libname}${release}${shared_ext}$major'
13954
    ;;
13955
  esac
13956
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13957
  postinstall_cmds='chmod 555 $lib'
13958
  # or fails outright, so override atomically:
13959
  install_override_mode=555
13960
  ;;
13961
 
13962
interix[3-9]*)
13963
  version_type=linux
13964
  need_lib_prefix=no
13965
  need_version=no
13966
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13967
  soname_spec='${libname}${release}${shared_ext}$major'
13968
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13969
  shlibpath_var=LD_LIBRARY_PATH
13970
  shlibpath_overrides_runpath=no
13971
  hardcode_into_libs=yes
13972
  ;;
13973
 
13974
irix5* | irix6* | nonstopux*)
13975
  case $host_os in
13976
    nonstopux*) version_type=nonstopux ;;
13977
    *)
13978
        if test "$lt_cv_prog_gnu_ld" = yes; then
13979
                version_type=linux
13980
        else
13981
                version_type=irix
13982
        fi ;;
13983
  esac
13984
  need_lib_prefix=no
13985
  need_version=no
13986
  soname_spec='${libname}${release}${shared_ext}$major'
13987
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13988
  case $host_os in
13989
  irix5* | nonstopux*)
13990
    libsuff= shlibsuff=
13991
    ;;
13992
  *)
13993
    case $LD in # libtool.m4 will add one of these switches to LD
13994
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13995
      libsuff= shlibsuff= libmagic=32-bit;;
13996
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13997
      libsuff=32 shlibsuff=N32 libmagic=N32;;
13998
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13999
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14000
    *) libsuff= shlibsuff= libmagic=never-match;;
14001
    esac
14002
    ;;
14003
  esac
14004
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14005
  shlibpath_overrides_runpath=no
14006
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14007
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14008
  hardcode_into_libs=yes
14009
  ;;
14010
 
14011
# No shared lib support for Linux oldld, aout, or coff.
14012
linux*oldld* | linux*aout* | linux*coff*)
14013
  dynamic_linker=no
14014
  ;;
14015
 
14016
# This must be Linux ELF.
14017
linux* | k*bsd*-gnu | kopensolaris*-gnu)
14018
  version_type=linux
14019
  need_lib_prefix=no
14020
  need_version=no
14021
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14022
  soname_spec='${libname}${release}${shared_ext}$major'
14023
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14024
  shlibpath_var=LD_LIBRARY_PATH
14025
  shlibpath_overrides_runpath=no
14026
 
14027
  # Some binutils ld are patched to set DT_RUNPATH
14028
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14029
  $as_echo_n "(cached) " >&6
14030
else
14031
  lt_cv_shlibpath_overrides_runpath=no
14032
    save_LDFLAGS=$LDFLAGS
14033
    save_libdir=$libdir
14034
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14035
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14036
    cat > conftest.$ac_ext <<_ACEOF
14037
      program main
14038
 
14039
      end
14040
_ACEOF
14041
if ac_fn_fc_try_link "$LINENO"; then :
14042
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14043
  lt_cv_shlibpath_overrides_runpath=yes
14044
fi
14045
fi
14046
rm -f core conftest.err conftest.$ac_objext \
14047
    conftest$ac_exeext conftest.$ac_ext
14048
    LDFLAGS=$save_LDFLAGS
14049
    libdir=$save_libdir
14050
 
14051
fi
14052
 
14053
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14054
 
14055
  # This implies no fast_install, which is unacceptable.
14056
  # Some rework will be needed to allow for fast_install
14057
  # before this can be enabled.
14058
  hardcode_into_libs=yes
14059
 
14060
  # Append ld.so.conf contents to the search path
14061
  if test -f /etc/ld.so.conf; then
14062
    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' ' '`
14063
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14064
  fi
14065
 
14066
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14067
  # powerpc, because MkLinux only supported shared libraries with the
14068
  # GNU dynamic linker.  Since this was broken with cross compilers,
14069
  # most powerpc-linux boxes support dynamic linking these days and
14070
  # people can always --disable-shared, the test was removed, and we
14071
  # assume the GNU/Linux dynamic linker is in use.
14072
  dynamic_linker='GNU/Linux ld.so'
14073
  ;;
14074
 
14075
netbsd*)
14076
  version_type=sunos
14077
  need_lib_prefix=no
14078
  need_version=no
14079
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14080
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14081
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14082
    dynamic_linker='NetBSD (a.out) ld.so'
14083
  else
14084
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14085
    soname_spec='${libname}${release}${shared_ext}$major'
14086
    dynamic_linker='NetBSD ld.elf_so'
14087
  fi
14088
  shlibpath_var=LD_LIBRARY_PATH
14089
  shlibpath_overrides_runpath=yes
14090
  hardcode_into_libs=yes
14091
  ;;
14092
 
14093
newsos6)
14094
  version_type=linux
14095
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14096
  shlibpath_var=LD_LIBRARY_PATH
14097
  shlibpath_overrides_runpath=yes
14098
  ;;
14099
 
14100
*nto* | *qnx*)
14101
  version_type=qnx
14102
  need_lib_prefix=no
14103
  need_version=no
14104
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14105
  soname_spec='${libname}${release}${shared_ext}$major'
14106
  shlibpath_var=LD_LIBRARY_PATH
14107
  shlibpath_overrides_runpath=no
14108
  hardcode_into_libs=yes
14109
  dynamic_linker='ldqnx.so'
14110
  ;;
14111
 
14112
openbsd*)
14113
  version_type=sunos
14114
  sys_lib_dlsearch_path_spec="/usr/lib"
14115
  need_lib_prefix=no
14116
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14117
  case $host_os in
14118
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14119
    *)                          need_version=no  ;;
14120
  esac
14121
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14122
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14123
  shlibpath_var=LD_LIBRARY_PATH
14124
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14125
    case $host_os in
14126
      openbsd2.[89] | openbsd2.[89].*)
14127
        shlibpath_overrides_runpath=no
14128
        ;;
14129
      *)
14130
        shlibpath_overrides_runpath=yes
14131
        ;;
14132
      esac
14133
  else
14134
    shlibpath_overrides_runpath=yes
14135
  fi
14136
  ;;
14137
 
14138
os2*)
14139
  libname_spec='$name'
14140
  shrext_cmds=".dll"
14141
  need_lib_prefix=no
14142
  library_names_spec='$libname${shared_ext} $libname.a'
14143
  dynamic_linker='OS/2 ld.exe'
14144
  shlibpath_var=LIBPATH
14145
  ;;
14146
 
14147
osf3* | osf4* | osf5*)
14148
  version_type=osf
14149
  need_lib_prefix=no
14150
  need_version=no
14151
  soname_spec='${libname}${release}${shared_ext}$major'
14152
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14153
  shlibpath_var=LD_LIBRARY_PATH
14154
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14155
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14156
  ;;
14157
 
14158
rdos*)
14159
  dynamic_linker=no
14160
  ;;
14161
 
14162
solaris*)
14163
  version_type=linux
14164
  need_lib_prefix=no
14165
  need_version=no
14166
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14167
  soname_spec='${libname}${release}${shared_ext}$major'
14168
  shlibpath_var=LD_LIBRARY_PATH
14169
  shlibpath_overrides_runpath=yes
14170
  hardcode_into_libs=yes
14171
  # ldd complains unless libraries are executable
14172
  postinstall_cmds='chmod +x $lib'
14173
  ;;
14174
 
14175
sunos4*)
14176
  version_type=sunos
14177
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14178
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14179
  shlibpath_var=LD_LIBRARY_PATH
14180
  shlibpath_overrides_runpath=yes
14181
  if test "$with_gnu_ld" = yes; then
14182
    need_lib_prefix=no
14183
  fi
14184
  need_version=yes
14185
  ;;
14186
 
14187
sysv4 | sysv4.3*)
14188
  version_type=linux
14189
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14190
  soname_spec='${libname}${release}${shared_ext}$major'
14191
  shlibpath_var=LD_LIBRARY_PATH
14192
  case $host_vendor in
14193
    sni)
14194
      shlibpath_overrides_runpath=no
14195
      need_lib_prefix=no
14196
      runpath_var=LD_RUN_PATH
14197
      ;;
14198
    siemens)
14199
      need_lib_prefix=no
14200
      ;;
14201
    motorola)
14202
      need_lib_prefix=no
14203
      need_version=no
14204
      shlibpath_overrides_runpath=no
14205
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14206
      ;;
14207
  esac
14208
  ;;
14209
 
14210
sysv4*MP*)
14211
  if test -d /usr/nec ;then
14212
    version_type=linux
14213
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14214
    soname_spec='$libname${shared_ext}.$major'
14215
    shlibpath_var=LD_LIBRARY_PATH
14216
  fi
14217
  ;;
14218
 
14219
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14220
  version_type=freebsd-elf
14221
  need_lib_prefix=no
14222
  need_version=no
14223
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14224
  soname_spec='${libname}${release}${shared_ext}$major'
14225
  shlibpath_var=LD_LIBRARY_PATH
14226
  shlibpath_overrides_runpath=yes
14227
  hardcode_into_libs=yes
14228
  if test "$with_gnu_ld" = yes; then
14229
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14230
  else
14231
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14232
    case $host_os in
14233
      sco3.2v5*)
14234
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14235
        ;;
14236
    esac
14237
  fi
14238
  sys_lib_dlsearch_path_spec='/usr/lib'
14239
  ;;
14240
 
14241
tpf*)
14242
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14243
  version_type=linux
14244
  need_lib_prefix=no
14245
  need_version=no
14246
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14247
  shlibpath_var=LD_LIBRARY_PATH
14248
  shlibpath_overrides_runpath=no
14249
  hardcode_into_libs=yes
14250
  ;;
14251
 
14252
uts4*)
14253
  version_type=linux
14254
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14255
  soname_spec='${libname}${release}${shared_ext}$major'
14256
  shlibpath_var=LD_LIBRARY_PATH
14257
  ;;
14258
 
14259
*)
14260
  dynamic_linker=no
14261
  ;;
14262
esac
14263
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14264
$as_echo "$dynamic_linker" >&6; }
14265
test "$dynamic_linker" = no && can_build_shared=no
14266
 
14267
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14268
if test "$GCC" = yes; then
14269
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14270
fi
14271
 
14272
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14273
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14274
fi
14275
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14276
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14277
fi
14278
 
14279
 
14280
 
14281
 
14282
 
14283
 
14284
 
14285
 
14286
 
14287
 
14288
 
14289
 
14290
 
14291
 
14292
 
14293
 
14294
 
14295
 
14296
 
14297
 
14298
 
14299
 
14300
 
14301
 
14302
 
14303
 
14304
 
14305
 
14306
 
14307
 
14308
 
14309
 
14310
 
14311
 
14312
 
14313
 
14314
 
14315
 
14316
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14317
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14318
hardcode_action_FC=
14319
if test -n "$hardcode_libdir_flag_spec_FC" ||
14320
   test -n "$runpath_var_FC" ||
14321
   test "X$hardcode_automatic_FC" = "Xyes" ; then
14322
 
14323
  # We can hardcode non-existent directories.
14324
  if test "$hardcode_direct_FC" != no &&
14325
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14326
     # have to relink, otherwise we might link with an installed library
14327
     # when we should be linking with a yet-to-be-installed one
14328
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14329
     test "$hardcode_minus_L_FC" != no; then
14330
    # Linking always hardcodes the temporary library directory.
14331
    hardcode_action_FC=relink
14332
  else
14333
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14334
    hardcode_action_FC=immediate
14335
  fi
14336
else
14337
  # We cannot hardcode anything, or else we can only hardcode existing
14338
  # directories.
14339
  hardcode_action_FC=unsupported
14340
fi
14341
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14342
$as_echo "$hardcode_action_FC" >&6; }
14343
 
14344
if test "$hardcode_action_FC" = relink ||
14345
   test "$inherit_rpath_FC" = yes; then
14346
  # Fast installation is not supported
14347
  enable_fast_install=no
14348
elif test "$shlibpath_overrides_runpath" = yes ||
14349
     test "$enable_shared" = no; then
14350
  # Fast installation is not necessary
14351
  enable_fast_install=needless
14352
fi
14353
 
14354
 
14355
 
14356
 
14357
 
14358
 
14359
 
14360
  fi # test -n "$compiler"
14361
 
14362
  GCC=$lt_save_GCC
14363
  CC="$lt_save_CC"
14364
fi # test "$_lt_disable_FC" != yes
14365
 
14366
ac_ext=c
14367
ac_cpp='$CPP $CPPFLAGS'
14368
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14369
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14370
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14371
 
14372
 
14373
FCFLAGS="$FCFLAGS -Wall"
14374
 
14375
# For libtool versioning info, format is CURRENT:REVISION:AGE
14376
libtool_VERSION=1:0:0
14377
 
14378
 
14379
# Check header files.
14380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14381
$as_echo_n "checking for ANSI C header files... " >&6; }
14382
if test "${ac_cv_header_stdc+set}" = set; then :
14383
  $as_echo_n "(cached) " >&6
14384
else
14385
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14386
/* end confdefs.h.  */
14387
#include 
14388
#include 
14389
#include 
14390
#include 
14391
 
14392
int
14393
main ()
14394
{
14395
 
14396
  ;
14397
  return 0;
14398
}
14399
_ACEOF
14400
if ac_fn_c_try_compile "$LINENO"; then :
14401
  ac_cv_header_stdc=yes
14402
else
14403
  ac_cv_header_stdc=no
14404
fi
14405
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14406
 
14407
if test $ac_cv_header_stdc = yes; then
14408
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14409
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410
/* end confdefs.h.  */
14411
#include 
14412
 
14413
_ACEOF
14414
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14415
  $EGREP "memchr" >/dev/null 2>&1; then :
14416
 
14417
else
14418
  ac_cv_header_stdc=no
14419
fi
14420
rm -f conftest*
14421
 
14422
fi
14423
 
14424
if test $ac_cv_header_stdc = yes; then
14425
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14426
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427
/* end confdefs.h.  */
14428
#include 
14429
 
14430
_ACEOF
14431
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14432
  $EGREP "free" >/dev/null 2>&1; then :
14433
 
14434
else
14435
  ac_cv_header_stdc=no
14436
fi
14437
rm -f conftest*
14438
 
14439
fi
14440
 
14441
if test $ac_cv_header_stdc = yes; then
14442
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14443
  if test "$cross_compiling" = yes; then :
14444
  :
14445
else
14446
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14447
/* end confdefs.h.  */
14448
#include 
14449
#include 
14450
#if ((' ' & 0x0FF) == 0x020)
14451
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14452
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14453
#else
14454
# define ISLOWER(c) \
14455
                   (('a' <= (c) && (c) <= 'i') \
14456
                     || ('j' <= (c) && (c) <= 'r') \
14457
                     || ('s' <= (c) && (c) <= 'z'))
14458
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14459
#endif
14460
 
14461
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14462
int
14463
main ()
14464
{
14465
  int i;
14466
  for (i = 0; i < 256; i++)
14467
    if (XOR (islower (i), ISLOWER (i))
14468
        || toupper (i) != TOUPPER (i))
14469
      return 2;
14470
  return 0;
14471
}
14472
_ACEOF
14473
if ac_fn_c_try_run "$LINENO"; then :
14474
 
14475
else
14476
  ac_cv_header_stdc=no
14477
fi
14478
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14479
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14480
fi
14481
 
14482
fi
14483
fi
14484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14485
$as_echo "$ac_cv_header_stdc" >&6; }
14486
if test $ac_cv_header_stdc = yes; then
14487
 
14488
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14489
 
14490
fi
14491
 
14492
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14493
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14494
if test "${ac_cv_header_time+set}" = set; then :
14495
  $as_echo_n "(cached) " >&6
14496
else
14497
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498
/* end confdefs.h.  */
14499
#include 
14500
#include 
14501
#include 
14502
 
14503
int
14504
main ()
14505
{
14506
if ((struct tm *) 0)
14507
return 0;
14508
  ;
14509
  return 0;
14510
}
14511
_ACEOF
14512
if ac_fn_c_try_compile "$LINENO"; then :
14513
  ac_cv_header_time=yes
14514
else
14515
  ac_cv_header_time=no
14516
fi
14517
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518
fi
14519
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14520
$as_echo "$ac_cv_header_time" >&6; }
14521
if test $ac_cv_header_time = yes; then
14522
 
14523
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14524
 
14525
fi
14526
 
14527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14528
$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14529
if test "${gcc_cv_header_string+set}" = set; then :
14530
  $as_echo_n "(cached) " >&6
14531
else
14532
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14533
/* end confdefs.h.  */
14534
#include 
14535
#include 
14536
int
14537
main ()
14538
{
14539
 
14540
  ;
14541
  return 0;
14542
}
14543
_ACEOF
14544
if ac_fn_c_try_compile "$LINENO"; then :
14545
  gcc_cv_header_string=yes
14546
else
14547
  gcc_cv_header_string=no
14548
fi
14549
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14550
fi
14551
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14552
$as_echo "$gcc_cv_header_string" >&6; }
14553
if test $gcc_cv_header_string = yes; then
14554
 
14555
$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14556
 
14557
fi
14558
 
14559
for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h sys/time.h
14560
do :
14561
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14562
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14563
eval as_val=\$$as_ac_Header
14564
   if test "x$as_val" = x""yes; then :
14565
  cat >>confdefs.h <<_ACEOF
14566
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14567
_ACEOF
14568
 
14569
fi
14570
 
14571
done
14572
 
14573
 
14574
 
14575
 
14576
inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
14577
 
14578
acx_cv_header_stdint=stddef.h
14579
acx_cv_header_stdint_kind="(already complete)"
14580
for i in stdint.h $inttype_headers; do
14581
  unset ac_cv_type_uintptr_t
14582
  unset ac_cv_type_uintmax_t
14583
  unset ac_cv_type_int_least32_t
14584
  unset ac_cv_type_int_fast32_t
14585
  unset ac_cv_type_uint64_t
14586
  $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14587
  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include 
14588
#include <$i>
14589
"
14590
if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14591
  acx_cv_header_stdint=$i
14592
else
14593
  continue
14594
fi
14595
 
14596
  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include 
14597
#include <$i>
14598
"
14599
if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14600
 
14601
else
14602
  acx_cv_header_stdint_kind="(mostly complete)"
14603
fi
14604
 
14605
  ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include 
14606
#include <$i>
14607
"
14608
if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14609
 
14610
else
14611
  acx_cv_header_stdint_kind="(mostly complete)"
14612
fi
14613
 
14614
  ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include 
14615
#include <$i>
14616
"
14617
if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14618
 
14619
else
14620
  acx_cv_header_stdint_kind="(mostly complete)"
14621
fi
14622
 
14623
  ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include 
14624
#include <$i>
14625
"
14626
if test "x$ac_cv_type_uint64_t" = x""yes; then :
14627
 
14628
else
14629
  acx_cv_header_stdint_kind="(lacks uint64_t)"
14630
fi
14631
 
14632
  break
14633
done
14634
if test "$acx_cv_header_stdint" = stddef.h; then
14635
  acx_cv_header_stdint_kind="(lacks uintmax_t)"
14636
  for i in stdint.h $inttype_headers; do
14637
    unset ac_cv_type_uintptr_t
14638
    unset ac_cv_type_uint32_t
14639
    unset ac_cv_type_uint64_t
14640
    $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14641
    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include 
14642
#include <$i>
14643
"
14644
if test "x$ac_cv_type_uint32_t" = x""yes; then :
14645
  acx_cv_header_stdint=$i
14646
else
14647
  continue
14648
fi
14649
 
14650
    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include 
14651
#include <$i>
14652
"
14653
if test "x$ac_cv_type_uint64_t" = x""yes; then :
14654
 
14655
fi
14656
 
14657
    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include 
14658
#include <$i>
14659
"
14660
if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14661
 
14662
fi
14663
 
14664
    break
14665
  done
14666
fi
14667
if test "$acx_cv_header_stdint" = stddef.h; then
14668
  acx_cv_header_stdint_kind="(u_intXX_t style)"
14669
  for i in sys/types.h $inttype_headers; do
14670
    unset ac_cv_type_u_int32_t
14671
    unset ac_cv_type_u_int64_t
14672
    $as_echo_n "looking for u_intXX_t types in $i, " >&6
14673
    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include 
14674
#include <$i>
14675
"
14676
if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14677
  acx_cv_header_stdint=$i
14678
else
14679
  continue
14680
fi
14681
 
14682
    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include 
14683
#include <$i>
14684
"
14685
if test "x$ac_cv_type_u_int64_t" = x""yes; then :
14686
 
14687
fi
14688
 
14689
    break
14690
  done
14691
fi
14692
if test "$acx_cv_header_stdint" = stddef.h; then
14693
  acx_cv_header_stdint_kind="(using manual detection)"
14694
fi
14695
 
14696
test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14697
test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14698
test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14699
test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14700
test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14701
 
14702
# ----------------- Summarize what we found so far
14703
 
14704
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14705
$as_echo_n "checking what to include in gstdint.h... " >&6; }
14706
 
14707
case `$as_basename -- gstdint.h ||
14708
$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14709
         Xgstdint.h : 'X\(//\)$' \| \
14710
         Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14711
$as_echo X/gstdint.h |
14712
    sed '/^.*\/\([^/][^/]*\)\/*$/{
14713
            s//\1/
14714
            q
14715
          }
14716
          /^X\/\(\/\/\)$/{
14717
            s//\1/
14718
            q
14719
          }
14720
          /^X\/\(\/\).*/{
14721
            s//\1/
14722
            q
14723
          }
14724
          s/.*/./; q'` in
14725
  stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14726
$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14727
  inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14728
$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14729
  *) ;;
14730
esac
14731
 
14732
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14733
$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14734
 
14735
# ----------------- done included file, check C basic types --------
14736
 
14737
# Lacking an uintptr_t?  Test size of void *
14738
case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14739
  stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14740
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14741
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14742
# This bug is HP SR number 8606223364.
14743
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14744
$as_echo_n "checking size of void *... " >&6; }
14745
if test "${ac_cv_sizeof_void_p+set}" = set; then :
14746
  $as_echo_n "(cached) " >&6
14747
else
14748
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
14749
 
14750
else
14751
  if test "$ac_cv_type_void_p" = yes; then
14752
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14753
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14754
{ as_fn_set_status 77
14755
as_fn_error "cannot compute sizeof (void *)
14756
See \`config.log' for more details." "$LINENO" 5; }; }
14757
   else
14758
     ac_cv_sizeof_void_p=0
14759
   fi
14760
fi
14761
 
14762
fi
14763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14764
$as_echo "$ac_cv_sizeof_void_p" >&6; }
14765
 
14766
 
14767
 
14768
cat >>confdefs.h <<_ACEOF
14769
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14770
_ACEOF
14771
 
14772
 ;;
14773
esac
14774
 
14775
# Lacking an uint64_t?  Test size of long
14776
case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14777
  stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14778
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14779
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14780
# This bug is HP SR number 8606223364.
14781
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14782
$as_echo_n "checking size of long... " >&6; }
14783
if test "${ac_cv_sizeof_long+set}" = set; then :
14784
  $as_echo_n "(cached) " >&6
14785
else
14786
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
14787
 
14788
else
14789
  if test "$ac_cv_type_long" = yes; then
14790
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14791
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14792
{ as_fn_set_status 77
14793
as_fn_error "cannot compute sizeof (long)
14794
See \`config.log' for more details." "$LINENO" 5; }; }
14795
   else
14796
     ac_cv_sizeof_long=0
14797
   fi
14798
fi
14799
 
14800
fi
14801
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14802
$as_echo "$ac_cv_sizeof_long" >&6; }
14803
 
14804
 
14805
 
14806
cat >>confdefs.h <<_ACEOF
14807
#define SIZEOF_LONG $ac_cv_sizeof_long
14808
_ACEOF
14809
 
14810
 ;;
14811
esac
14812
 
14813
if test $acx_cv_header_stdint = stddef.h; then
14814
  # Lacking a good header?  Test size of everything and deduce all types.
14815
  # The cast to long int works around a bug in the HP C Compiler
14816
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14817
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14818
# This bug is HP SR number 8606223364.
14819
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14820
$as_echo_n "checking size of int... " >&6; }
14821
if test "${ac_cv_sizeof_int+set}" = set; then :
14822
  $as_echo_n "(cached) " >&6
14823
else
14824
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
14825
 
14826
else
14827
  if test "$ac_cv_type_int" = yes; then
14828
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14829
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14830
{ as_fn_set_status 77
14831
as_fn_error "cannot compute sizeof (int)
14832
See \`config.log' for more details." "$LINENO" 5; }; }
14833
   else
14834
     ac_cv_sizeof_int=0
14835
   fi
14836
fi
14837
 
14838
fi
14839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14840
$as_echo "$ac_cv_sizeof_int" >&6; }
14841
 
14842
 
14843
 
14844
cat >>confdefs.h <<_ACEOF
14845
#define SIZEOF_INT $ac_cv_sizeof_int
14846
_ACEOF
14847
 
14848
 
14849
  # The cast to long int works around a bug in the HP C Compiler
14850
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14851
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14852
# This bug is HP SR number 8606223364.
14853
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14854
$as_echo_n "checking size of short... " >&6; }
14855
if test "${ac_cv_sizeof_short+set}" = set; then :
14856
  $as_echo_n "(cached) " >&6
14857
else
14858
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
14859
 
14860
else
14861
  if test "$ac_cv_type_short" = yes; then
14862
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14863
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14864
{ as_fn_set_status 77
14865
as_fn_error "cannot compute sizeof (short)
14866
See \`config.log' for more details." "$LINENO" 5; }; }
14867
   else
14868
     ac_cv_sizeof_short=0
14869
   fi
14870
fi
14871
 
14872
fi
14873
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14874
$as_echo "$ac_cv_sizeof_short" >&6; }
14875
 
14876
 
14877
 
14878
cat >>confdefs.h <<_ACEOF
14879
#define SIZEOF_SHORT $ac_cv_sizeof_short
14880
_ACEOF
14881
 
14882
 
14883
  # The cast to long int works around a bug in the HP C Compiler
14884
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14885
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14886
# This bug is HP SR number 8606223364.
14887
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14888
$as_echo_n "checking size of char... " >&6; }
14889
if test "${ac_cv_sizeof_char+set}" = set; then :
14890
  $as_echo_n "(cached) " >&6
14891
else
14892
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
14893
 
14894
else
14895
  if test "$ac_cv_type_char" = yes; then
14896
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14897
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14898
{ as_fn_set_status 77
14899
as_fn_error "cannot compute sizeof (char)
14900
See \`config.log' for more details." "$LINENO" 5; }; }
14901
   else
14902
     ac_cv_sizeof_char=0
14903
   fi
14904
fi
14905
 
14906
fi
14907
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14908
$as_echo "$ac_cv_sizeof_char" >&6; }
14909
 
14910
 
14911
 
14912
cat >>confdefs.h <<_ACEOF
14913
#define SIZEOF_CHAR $ac_cv_sizeof_char
14914
_ACEOF
14915
 
14916
 
14917
 
14918
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
14919
$as_echo_n "checking for type equivalent to int8_t... " >&6; }
14920
  case "$ac_cv_sizeof_char" in
14921
    1) acx_cv_type_int8_t=char ;;
14922
    *) { as_fn_set_status please report a bug
14923
as_fn_error "no 8-bit type" "$LINENO" 5; }
14924
  esac
14925
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
14926
$as_echo "$acx_cv_type_int8_t" >&6; }
14927
 
14928
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
14929
$as_echo_n "checking for type equivalent to int16_t... " >&6; }
14930
  case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14931
    2:*) acx_cv_type_int16_t=int ;;
14932
    *:2) acx_cv_type_int16_t=short ;;
14933
    *) { as_fn_set_status please report a bug
14934
as_fn_error "no 16-bit type" "$LINENO" 5; }
14935
  esac
14936
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
14937
$as_echo "$acx_cv_type_int16_t" >&6; }
14938
 
14939
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
14940
$as_echo_n "checking for type equivalent to int32_t... " >&6; }
14941
  case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14942
    4:*) acx_cv_type_int32_t=int ;;
14943
    *:4) acx_cv_type_int32_t=long ;;
14944
    *) { as_fn_set_status please report a bug
14945
as_fn_error "no 32-bit type" "$LINENO" 5; }
14946
  esac
14947
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
14948
$as_echo "$acx_cv_type_int32_t" >&6; }
14949
fi
14950
 
14951
# These tests are here to make the output prettier
14952
 
14953
if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14954
  case "$ac_cv_sizeof_long" in
14955
    8) acx_cv_type_int64_t=long ;;
14956
  esac
14957
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
14958
$as_echo_n "checking for type equivalent to int64_t... " >&6; }
14959
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14960
$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
14961
fi
14962
 
14963
# Now we can use the above types
14964
 
14965
if test "$ac_cv_type_uintptr_t" != yes; then
14966
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
14967
$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
14968
  case $ac_cv_sizeof_void_p in
14969
    2) acx_cv_type_intptr_t=int16_t ;;
14970
    4) acx_cv_type_intptr_t=int32_t ;;
14971
    8) acx_cv_type_intptr_t=int64_t ;;
14972
    *) { as_fn_set_status please report a bug
14973
as_fn_error "no equivalent for intptr_t" "$LINENO" 5; }
14974
  esac
14975
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
14976
$as_echo "$acx_cv_type_intptr_t" >&6; }
14977
fi
14978
 
14979
# ----------------- done all checks, emit header -------------
14980
ac_config_commands="$ac_config_commands gstdint.h"
14981
 
14982
 
14983
 
14984
 
14985
# Check to see if -pthread or -lpthread is needed.  Prefer the former.
14986
# In case the pthread.h system header is not found, this test will fail.
14987
XPCFLAGS=""
14988
CFLAGS="$CFLAGS -pthread"
14989
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14990
/* end confdefs.h.  */
14991
#include 
14992
   void *g(void *d) { return NULL; }
14993
int
14994
main ()
14995
{
14996
pthread_t t; pthread_create(&t,NULL,g,NULL);
14997
  ;
14998
  return 0;
14999
}
15000
_ACEOF
15001
if ac_fn_c_try_link "$LINENO"; then :
15002
  XPCFLAGS=" -Wc,-pthread"
15003
else
15004
  CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15005
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15006
/* end confdefs.h.  */
15007
#include 
15008
     void *g(void *d) { return NULL; }
15009
int
15010
main ()
15011
{
15012
pthread_t t; pthread_create(&t,NULL,g,NULL);
15013
  ;
15014
  return 0;
15015
}
15016
_ACEOF
15017
if ac_fn_c_try_link "$LINENO"; then :
15018
 
15019
else
15020
  as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15021
fi
15022
rm -f core conftest.err conftest.$ac_objext \
15023
    conftest$ac_exeext conftest.$ac_ext
15024
fi
15025
rm -f core conftest.err conftest.$ac_objext \
15026
    conftest$ac_exeext conftest.$ac_ext
15027
 
15028
# Check for functions needed.
15029
for ac_func in getloadavg clock_gettime strtoull
15030
do :
15031
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15032
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15033
eval as_val=\$$as_ac_var
15034
   if test "x$as_val" = x""yes; then :
15035
  cat >>confdefs.h <<_ACEOF
15036
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15037
_ACEOF
15038
 
15039
fi
15040
done
15041
 
15042
 
15043
# Check for broken semaphore implementation on darwin.
15044
# sem_init returns: sem_init error: Function not implemented.
15045
case "$host" in
15046
  *-darwin*)
15047
 
15048
$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15049
 
15050
    ;;
15051
esac
15052
 
15053
 # Check whether --enable-linux-futex was given.
15054
if test "${enable_linux_futex+set}" = set; then :
15055
  enableval=$enable_linux_futex;
15056
      case "$enableval" in
15057
       yes|no|default) ;;
15058
       *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15059
                          esac
15060
 
15061
else
15062
  enable_linux_futex=default
15063
fi
15064
 
15065
 
15066
case "$target" in
15067
  *-linux*)
15068
    case "$enable_linux_futex" in
15069
      default)
15070
        # If headers don't have gettid/futex syscalls definition, then
15071
        # default to no, otherwise there will be compile time failures.
15072
        # Otherwise, default to yes.  If we don't detect we are
15073
        # compiled/linked against NPTL and not cross-compiling, check
15074
        # if programs are run by default against NPTL and if not, issue
15075
        # a warning.
15076
        enable_linux_futex=no
15077
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15078
/* end confdefs.h.  */
15079
#include 
15080
           int lk;
15081
int
15082
main ()
15083
{
15084
syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15085
  ;
15086
  return 0;
15087
}
15088
_ACEOF
15089
if ac_fn_c_try_link "$LINENO"; then :
15090
  save_LIBS="$LIBS"
15091
           LIBS="-lpthread $LIBS"
15092
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093
/* end confdefs.h.  */
15094
#ifndef _GNU_SOURCE
15095
             #define _GNU_SOURCE 1
15096
             #endif
15097
             #include 
15098
             pthread_t th; void *status;
15099
int
15100
main ()
15101
{
15102
pthread_tryjoin_np (th, &status);
15103
  ;
15104
  return 0;
15105
}
15106
_ACEOF
15107
if ac_fn_c_try_link "$LINENO"; then :
15108
  enable_linux_futex=yes
15109
else
15110
  if test x$cross_compiling = xno; then
15111
               if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15112
                  | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15113
                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15114
If so, please configure with --disable-linux-futex" >&5
15115
$as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15116
If so, please configure with --disable-linux-futex" >&2;}
15117
               fi
15118
             fi
15119
             enable_linux_futex=yes
15120
fi
15121
rm -f core conftest.err conftest.$ac_objext \
15122
    conftest$ac_exeext conftest.$ac_ext
15123
           LIBS="$save_LIBS"
15124
fi
15125
rm -f core conftest.err conftest.$ac_objext \
15126
    conftest$ac_exeext conftest.$ac_ext
15127
        ;;
15128
      yes)
15129
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15130
/* end confdefs.h.  */
15131
#include 
15132
           int lk;
15133
int
15134
main ()
15135
{
15136
syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15137
  ;
15138
  return 0;
15139
}
15140
_ACEOF
15141
if ac_fn_c_try_link "$LINENO"; then :
15142
 
15143
else
15144
  as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15145
fi
15146
rm -f core conftest.err conftest.$ac_objext \
15147
    conftest$ac_exeext conftest.$ac_ext
15148
        ;;
15149
    esac
15150
    ;;
15151
  *)
15152
    enable_linux_futex=no
15153
    ;;
15154
esac
15155
if test x$enable_linux_futex = xyes; then
15156
  :
15157
fi
15158
 
15159
 
15160
# Check for pthread_{,attr_}[sg]etaffinity_np.
15161
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15162
/* end confdefs.h.  */
15163
#define _GNU_SOURCE
15164
   #include 
15165
int
15166
main ()
15167
{
15168
cpu_set_t cpuset;
15169
   pthread_attr_t attr;
15170
   pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15171
   if (CPU_ISSET (0, &cpuset))
15172
     CPU_SET (1, &cpuset);
15173
   else
15174
     CPU_ZERO (&cpuset);
15175
   pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15176
   pthread_attr_init (&attr);
15177
   pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15178
   pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15179
  ;
15180
  return 0;
15181
}
15182
_ACEOF
15183
if ac_fn_c_try_link "$LINENO"; then :
15184
 
15185
$as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15186
 
15187
fi
15188
rm -f core conftest.err conftest.$ac_objext \
15189
    conftest$ac_exeext conftest.$ac_ext
15190
 
15191
# At least for glibc, clock_gettime is in librt.  But don't pull that
15192
# in if it still doesn't give us the function we want.
15193
if test $ac_cv_func_clock_gettime = no; then
15194
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15195
$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15196
if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15197
  $as_echo_n "(cached) " >&6
15198
else
15199
  ac_check_lib_save_LIBS=$LIBS
15200
LIBS="-lrt  $LIBS"
15201
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202
/* end confdefs.h.  */
15203
 
15204
/* Override any GCC internal prototype to avoid an error.
15205
   Use char because int might match the return type of a GCC
15206
   builtin and then its argument prototype would still apply.  */
15207
#ifdef __cplusplus
15208
extern "C"
15209
#endif
15210
char clock_gettime ();
15211
int
15212
main ()
15213
{
15214
return clock_gettime ();
15215
  ;
15216
  return 0;
15217
}
15218
_ACEOF
15219
if ac_fn_c_try_link "$LINENO"; then :
15220
  ac_cv_lib_rt_clock_gettime=yes
15221
else
15222
  ac_cv_lib_rt_clock_gettime=no
15223
fi
15224
rm -f core conftest.err conftest.$ac_objext \
15225
    conftest$ac_exeext conftest.$ac_ext
15226
LIBS=$ac_check_lib_save_LIBS
15227
fi
15228
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15229
$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15230
if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15231
  LIBS="-lrt $LIBS"
15232
 
15233
$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15234
 
15235
fi
15236
 
15237
fi
15238
 
15239
# See if we support thread-local storage.
15240
 
15241
 
15242
   # Check whether --enable-tls was given.
15243
if test "${enable_tls+set}" = set; then :
15244
  enableval=$enable_tls;
15245
      case "$enableval" in
15246
       yes|no) ;;
15247
       *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15248
      esac
15249
 
15250
else
15251
  enable_tls=yes
15252
fi
15253
 
15254
 
15255
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15256
$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15257
if test "${gcc_cv_have_tls+set}" = set; then :
15258
  $as_echo_n "(cached) " >&6
15259
else
15260
 
15261
    if test "$cross_compiling" = yes; then :
15262
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15263
/* end confdefs.h.  */
15264
__thread int a; int b; int main() { return a = b; }
15265
_ACEOF
15266
if ac_fn_c_try_link "$LINENO"; then :
15267
  chktls_save_LDFLAGS="$LDFLAGS"
15268
                          case $host in
15269
            *-*-linux*)
15270
              LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15271
              ;;
15272
          esac
15273
          chktls_save_CFLAGS="$CFLAGS"
15274
          CFLAGS="-fPIC $CFLAGS"
15275
                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15276
/* end confdefs.h.  */
15277
int f() { return 0; }
15278
_ACEOF
15279
if ac_fn_c_try_link "$LINENO"; then :
15280
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15281
/* end confdefs.h.  */
15282
__thread int a; int b; int f() { return a = b; }
15283
_ACEOF
15284
if ac_fn_c_try_link "$LINENO"; then :
15285
  gcc_cv_have_tls=yes
15286
else
15287
  gcc_cv_have_tls=no
15288
fi
15289
rm -f core conftest.err conftest.$ac_objext \
15290
    conftest$ac_exeext conftest.$ac_ext
15291
else
15292
  gcc_cv_have_tls=yes
15293
fi
15294
rm -f core conftest.err conftest.$ac_objext \
15295
    conftest$ac_exeext conftest.$ac_ext
15296
          CFLAGS="$chktls_save_CFLAGS"
15297
          LDFLAGS="$chktls_save_LDFLAGS"
15298
else
15299
  gcc_cv_have_tls=no
15300
fi
15301
rm -f core conftest.err conftest.$ac_objext \
15302
    conftest$ac_exeext conftest.$ac_ext
15303
 
15304
 
15305
else
15306
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15307
/* end confdefs.h.  */
15308
__thread int a; int b; int main() { return a = b; }
15309
_ACEOF
15310
if ac_fn_c_try_run "$LINENO"; then :
15311
                      chktls_save_LDFLAGS="$LDFLAGS"
15312
      LDFLAGS="-static $LDFLAGS"
15313
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15314
/* end confdefs.h.  */
15315
int main() { return 0; }
15316
_ACEOF
15317
if ac_fn_c_try_link "$LINENO"; then :
15318
  if test "$cross_compiling" = yes; then :
15319
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15320
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15321
as_fn_error "cannot run test program while cross compiling
15322
See \`config.log' for more details." "$LINENO" 5; }
15323
else
15324
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15325
/* end confdefs.h.  */
15326
__thread int a; int b; int main() { return a = b; }
15327
_ACEOF
15328
if ac_fn_c_try_run "$LINENO"; then :
15329
  gcc_cv_have_tls=yes
15330
else
15331
  gcc_cv_have_tls=no
15332
fi
15333
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15334
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15335
fi
15336
 
15337
else
15338
  gcc_cv_have_tls=yes
15339
fi
15340
rm -f core conftest.err conftest.$ac_objext \
15341
    conftest$ac_exeext conftest.$ac_ext
15342
      LDFLAGS="$chktls_save_LDFLAGS"
15343
      if test $gcc_cv_have_tls = yes; then
15344
                                                chktls_save_CFLAGS="$CFLAGS"
15345
        thread_CFLAGS=failed
15346
        for flag in '' '-pthread' '-lpthread'; do
15347
          CFLAGS="$flag $chktls_save_CFLAGS"
15348
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15349
/* end confdefs.h.  */
15350
#include 
15351
                void *g(void *d) { return NULL; }
15352
int
15353
main ()
15354
{
15355
pthread_t t; pthread_create(&t,NULL,g,NULL);
15356
  ;
15357
  return 0;
15358
}
15359
_ACEOF
15360
if ac_fn_c_try_link "$LINENO"; then :
15361
  thread_CFLAGS="$flag"
15362
fi
15363
rm -f core conftest.err conftest.$ac_objext \
15364
    conftest$ac_exeext conftest.$ac_ext
15365
          if test "X$thread_CFLAGS" != Xfailed; then
15366
            break
15367
          fi
15368
        done
15369
        CFLAGS="$chktls_save_CFLAGS"
15370
        if test "X$thread_CFLAGS" != Xfailed; then
15371
          CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15372
          if test "$cross_compiling" = yes; then :
15373
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15374
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15375
as_fn_error "cannot run test program while cross compiling
15376
See \`config.log' for more details." "$LINENO" 5; }
15377
else
15378
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15379
/* end confdefs.h.  */
15380
#include 
15381
                __thread int a;
15382
                static int *volatile a_in_other_thread;
15383
                static void *
15384
                thread_func (void *arg)
15385
                {
15386
                  a_in_other_thread = &a;
15387
                  return (void *)0;
15388
                }
15389
int
15390
main ()
15391
{
15392
pthread_t thread;
15393
                void *thread_retval;
15394
                int *volatile a_in_main_thread;
15395
                a_in_main_thread = &a;
15396
                if (pthread_create (&thread, (pthread_attr_t *)0,
15397
                                    thread_func, (void *)0))
15398
                  return 0;
15399
                if (pthread_join (thread, &thread_retval))
15400
                  return 0;
15401
                return (a_in_other_thread == a_in_main_thread);
15402
  ;
15403
  return 0;
15404
}
15405
_ACEOF
15406
if ac_fn_c_try_run "$LINENO"; then :
15407
  gcc_cv_have_tls=yes
15408
else
15409
  gcc_cv_have_tls=no
15410
fi
15411
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15412
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15413
fi
15414
 
15415
          CFLAGS="$chktls_save_CFLAGS"
15416
        fi
15417
      fi
15418
else
15419
  gcc_cv_have_tls=no
15420
fi
15421
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15422
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15423
fi
15424
 
15425
fi
15426
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15427
$as_echo "$gcc_cv_have_tls" >&6; }
15428
  if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15429
 
15430
$as_echo "#define HAVE_TLS 1" >>confdefs.h
15431
 
15432
  fi
15433
 
15434
# See what sort of export controls are availible.
15435
 
15436
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15437
$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15438
if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15439
  $as_echo_n "(cached) " >&6
15440
else
15441
 
15442
  save_CFLAGS="$CFLAGS"
15443
  CFLAGS="$CFLAGS -Werror"
15444
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15445
/* end confdefs.h.  */
15446
void __attribute__((visibility("hidden"))) foo(void) { }
15447
int
15448
main ()
15449
{
15450
 
15451
  ;
15452
  return 0;
15453
}
15454
_ACEOF
15455
if ac_fn_c_try_compile "$LINENO"; then :
15456
  libgomp_cv_have_attribute_visibility=yes
15457
else
15458
  libgomp_cv_have_attribute_visibility=no
15459
fi
15460
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15461
  CFLAGS="$save_CFLAGS"
15462
fi
15463
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15464
$as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15465
  if test $libgomp_cv_have_attribute_visibility = yes; then
15466
 
15467
$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15468
 
15469
  fi
15470
 
15471
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15472
$as_echo_n "checking whether the target supports dllexport... " >&6; }
15473
if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
15474
  $as_echo_n "(cached) " >&6
15475
else
15476
 
15477
  save_CFLAGS="$CFLAGS"
15478
  CFLAGS="$CFLAGS -Werror"
15479
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15480
/* end confdefs.h.  */
15481
void __attribute__((dllexport)) foo(void) { }
15482
int
15483
main ()
15484
{
15485
 
15486
  ;
15487
  return 0;
15488
}
15489
_ACEOF
15490
if ac_fn_c_try_compile "$LINENO"; then :
15491
  libgomp_cv_have_attribute_dllexport=yes
15492
else
15493
  libgomp_cv_have_attribute_dllexport=no
15494
fi
15495
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15496
  CFLAGS="$save_CFLAGS"
15497
fi
15498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15499
$as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15500
  if test $libgomp_cv_have_attribute_dllexport = yes; then
15501
 
15502
$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15503
 
15504
  fi
15505
 
15506
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15507
$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15508
if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
15509
  $as_echo_n "(cached) " >&6
15510
else
15511
 
15512
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15513
/* end confdefs.h.  */
15514
 
15515
void foo(void) { }
15516
extern void bar(void) __attribute__((alias("foo")));
15517
int
15518
main ()
15519
{
15520
bar();
15521
  ;
15522
  return 0;
15523
}
15524
_ACEOF
15525
if ac_fn_c_try_link "$LINENO"; then :
15526
  libgomp_cv_have_attribute_alias=yes
15527
else
15528
  libgomp_cv_have_attribute_alias=no
15529
fi
15530
rm -f core conftest.err conftest.$ac_objext \
15531
    conftest$ac_exeext conftest.$ac_ext
15532
fi
15533
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15534
$as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15535
  if test $libgomp_cv_have_attribute_alias = yes; then
15536
 
15537
$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15538
 
15539
  fi
15540
 
15541
 
15542
# Check whether --with-gnu-ld was given.
15543
if test "${with_gnu_ld+set}" = set; then :
15544
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15545
else
15546
  with_gnu_ld=no
15547
fi
15548
 
15549
ac_prog=ld
15550
if test "$GCC" = yes; then
15551
  # Check if gcc -print-prog-name=ld gives a path.
15552
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15553
$as_echo_n "checking for ld used by $CC... " >&6; }
15554
  case $host in
15555
  *-*-mingw*)
15556
    # gcc leaves a trailing carriage return which upsets mingw
15557
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15558
  *)
15559
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15560
  esac
15561
  case $ac_prog in
15562
    # Accept absolute paths.
15563
    [\\/]* | ?:[\\/]*)
15564
      re_direlt='/[^/][^/]*/\.\./'
15565
      # Canonicalize the pathname of ld
15566
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15567
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15568
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15569
      done
15570
      test -z "$LD" && LD="$ac_prog"
15571
      ;;
15572
  "")
15573
    # If it fails, then pretend we aren't using GCC.
15574
    ac_prog=ld
15575
    ;;
15576
  *)
15577
    # If it is relative, then search for the first ld in PATH.
15578
    with_gnu_ld=unknown
15579
    ;;
15580
  esac
15581
elif test "$with_gnu_ld" = yes; then
15582
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15583
$as_echo_n "checking for GNU ld... " >&6; }
15584
else
15585
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15586
$as_echo_n "checking for non-GNU ld... " >&6; }
15587
fi
15588
if test "${lt_cv_path_LD+set}" = set; then :
15589
  $as_echo_n "(cached) " >&6
15590
else
15591
  if test -z "$LD"; then
15592
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15593
  for ac_dir in $PATH; do
15594
    IFS="$lt_save_ifs"
15595
    test -z "$ac_dir" && ac_dir=.
15596
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15597
      lt_cv_path_LD="$ac_dir/$ac_prog"
15598
      # Check to see if the program is GNU ld.  I'd rather use --version,
15599
      # but apparently some variants of GNU ld only accept -v.
15600
      # Break only if it was the GNU/non-GNU ld that we prefer.
15601
      case `"$lt_cv_path_LD" -v 2>&1 
15602
      *GNU* | *'with BFD'*)
15603
        test "$with_gnu_ld" != no && break
15604
        ;;
15605
      *)
15606
        test "$with_gnu_ld" != yes && break
15607
        ;;
15608
      esac
15609
    fi
15610
  done
15611
  IFS="$lt_save_ifs"
15612
else
15613
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
15614
fi
15615
fi
15616
 
15617
LD="$lt_cv_path_LD"
15618
if test -n "$LD"; then
15619
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15620
$as_echo "$LD" >&6; }
15621
else
15622
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15623
$as_echo "no" >&6; }
15624
fi
15625
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15626
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15627
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15628
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15629
  $as_echo_n "(cached) " >&6
15630
else
15631
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15632
case `$LD -v 2>&1 
15633
*GNU* | *'with BFD'*)
15634
  lt_cv_prog_gnu_ld=yes
15635
  ;;
15636
*)
15637
  lt_cv_prog_gnu_ld=no
15638
  ;;
15639
esac
15640
fi
15641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15642
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15643
with_gnu_ld=$lt_cv_prog_gnu_ld
15644
 
15645
 
15646
 
15647
 
15648
 
15649
 
15650
 
15651
  # If we're not using GNU ld, then there's no point in even trying these
15652
  # tests.  Check for that first.  We should have already tested for gld
15653
  # by now (in libtool), but require it now just to be safe...
15654
  test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
15655
  test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
15656
 
15657
 
15658
 
15659
  # The name set by libtool depends on the version of libtool.  Shame on us
15660
  # for depending on an impl detail, but c'est la vie.  Older versions used
15661
  # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15662
  # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15663
  # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
15664
  # set (hence we're using an older libtool), then set it.
15665
  if test x${with_gnu_ld+set} != xset; then
15666
    if test x${ac_cv_prog_gnu_ld+set} != xset; then
15667
      # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
15668
      with_gnu_ld=no
15669
    else
15670
      with_gnu_ld=$ac_cv_prog_gnu_ld
15671
    fi
15672
  fi
15673
 
15674
  # Start by getting the version number.  I think the libtool test already
15675
  # does some of this, but throws away the result.
15676
  libgomp_ld_is_gold=no
15677
  if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
15678
    libgomp_ld_is_gold=yes
15679
  fi
15680
 
15681
  ldver=`$LD --version 2>/dev/null |
15682
         sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
15683
 
15684
  libgomp_gnu_ld_version=`echo $ldver | \
15685
         $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15686
 
15687
  # Set --gc-sections.
15688
  if test "$with_gnu_ld" = "notbroken"; then
15689
    # GNU ld it is!  Joy and bunny rabbits!
15690
 
15691
    # All these tests are for C++; save the language and the compiler flags.
15692
    # Need to do this so that g++ won't try to link in libstdc++
15693
    ac_test_CFLAGS="${CFLAGS+set}"
15694
    ac_save_CFLAGS="$CFLAGS"
15695
    CFLAGS='-x c++  -Wl,--gc-sections'
15696
 
15697
    # Check for -Wl,--gc-sections
15698
    # XXX This test is broken at the moment, as symbols required for linking
15699
    # are now in libsupc++ (not built yet).  In addition, this test has
15700
    # cored on solaris in the past.  In addition, --gc-sections doesn't
15701
    # really work at the moment (keeps on discarding used sections, first
15702
    # .eh_frame and now some of the glibc sections for iconv).
15703
    # Bzzzzt.  Thanks for playing, maybe next time.
15704
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
15705
$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
15706
    if test "$cross_compiling" = yes; then :
15707
  ac_sectionLDflags=yes
15708
else
15709
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710
/* end confdefs.h.  */
15711
 
15712
     int main(void)
15713
     {
15714
       try { throw 1; }
15715
       catch (...) { };
15716
       return 0;
15717
     }
15718
 
15719
_ACEOF
15720
if ac_fn_c_try_run "$LINENO"; then :
15721
  ac_sectionLDflags=yes
15722
else
15723
  ac_sectionLDflags=no
15724
fi
15725
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15726
  conftest.$ac_objext conftest.beam conftest.$ac_ext
15727
fi
15728
 
15729
    if test "$ac_test_CFLAGS" = set; then
15730
      CFLAGS="$ac_save_CFLAGS"
15731
    else
15732
      # this is the suspicious part
15733
      CFLAGS=''
15734
    fi
15735
    if test "$ac_sectionLDflags" = "yes"; then
15736
      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
15737
    fi
15738
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
15739
$as_echo "$ac_sectionLDflags" >&6; }
15740
  fi
15741
 
15742
  # Set linker optimization flags.
15743
  if test x"$with_gnu_ld" = x"yes"; then
15744
    OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
15745
  fi
15746
 
15747
 
15748
 
15749
 
15750
 
15751
 
15752
 # Check whether --enable-symvers was given.
15753
if test "${enable_symvers+set}" = set; then :
15754
  enableval=$enable_symvers;
15755
      case "$enableval" in
15756
       yes|no|gnu) ;;
15757
       *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
15758
                          esac
15759
 
15760
else
15761
  enable_symvers=yes
15762
fi
15763
 
15764
 
15765
 
15766
# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
15767
# don't know enough about $LD to do tricks...
15768
 
15769
# FIXME  The following test is too strict, in theory.
15770
if test $enable_shared = no ||
15771
        test "x$LD" = x ||
15772
        test x$libgomp_gnu_ld_version = x; then
15773
  enable_symvers=no
15774
fi
15775
 
15776
# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15777
if test $enable_symvers != no; then
15778
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15779
$as_echo_n "checking for shared libgcc... " >&6; }
15780
  ac_save_CFLAGS="$CFLAGS"
15781
  CFLAGS=' -lgcc_s'
15782
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15783
/* end confdefs.h.  */
15784
 
15785
int
15786
main ()
15787
{
15788
return 0;
15789
  ;
15790
  return 0;
15791
}
15792
_ACEOF
15793
if ac_fn_c_try_link "$LINENO"; then :
15794
  libgomp_shared_libgcc=yes
15795
else
15796
  libgomp_shared_libgcc=no
15797
fi
15798
rm -f core conftest.err conftest.$ac_objext \
15799
    conftest$ac_exeext conftest.$ac_ext
15800
  CFLAGS="$ac_save_CFLAGS"
15801
  if test $libgomp_shared_libgcc = no; then
15802
    cat > conftest.c <
15803
int main (void) { return 0; }
15804
EOF
15805
    libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15806
                             -shared -shared-libgcc -o conftest.so \
15807
                             conftest.c -v 2>&1 >/dev/null \
15808
                             | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15809
    rm -f conftest.c conftest.so
15810
    if test x${libgomp_libgcc_s_suffix+set} = xset; then
15811
      CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
15812
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15813
/* end confdefs.h.  */
15814
 
15815
int
15816
main ()
15817
{
15818
return 0;
15819
  ;
15820
  return 0;
15821
}
15822
_ACEOF
15823
if ac_fn_c_try_link "$LINENO"; then :
15824
  libgomp_shared_libgcc=yes
15825
fi
15826
rm -f core conftest.err conftest.$ac_objext \
15827
    conftest$ac_exeext conftest.$ac_ext
15828
      CFLAGS="$ac_save_CFLAGS"
15829
    fi
15830
  fi
15831
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
15832
$as_echo "$libgomp_shared_libgcc" >&6; }
15833
fi
15834
 
15835
# For GNU ld, we need at least this version.  The format is described in
15836
# LIBGOMP_CHECK_LINKER_FEATURES above.
15837
libgomp_min_gnu_ld_version=21400
15838
# XXXXXXXXXXX libgomp_gnu_ld_version=21390
15839
 
15840
# Check to see if unspecified "yes" value can win, given results above.
15841
# Change "yes" into either "no" or a style name.
15842
if test $enable_symvers = yes; then
15843
  if test $with_gnu_ld = yes &&
15844
     test $libgomp_shared_libgcc = yes;
15845
  then
15846
    if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
15847
      enable_symvers=gnu
15848
    elif test $libgomp_ld_is_gold = yes ; then
15849
      enable_symvers=gnu
15850
    else
15851
      # The right tools, the right setup, but too old.  Fallbacks?
15852
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
15853
$as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
15854
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15855
$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15856
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15857
$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15858
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
15859
$as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
15860
      if test $libgomp_gnu_ld_version -ge 21200 ; then
15861
        # Globbing fix is present, proper block support is not.
15862
                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15863
$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15864
        enable_symvers=no
15865
      else
15866
        # 2.11 or older.
15867
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15868
$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15869
        enable_symvers=no
15870
      fi
15871
    fi
15872
  else
15873
    # just fail for now
15874
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15875
$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15876
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15877
$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15878
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15879
$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15880
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15881
$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15882
    enable_symvers=no
15883
  fi
15884
fi
15885
 
15886
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
15887
$as_echo_n "checking whether the target supports .symver directive... " >&6; }
15888
if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
15889
  $as_echo_n "(cached) " >&6
15890
else
15891
 
15892
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15893
/* end confdefs.h.  */
15894
void foo (void); __asm (".symver foo, bar@SYMVER");
15895
int
15896
main ()
15897
{
15898
 
15899
  ;
15900
  return 0;
15901
}
15902
_ACEOF
15903
if ac_fn_c_try_compile "$LINENO"; then :
15904
  libgomp_cv_have_as_symver_directive=yes
15905
else
15906
  libgomp_cv_have_as_symver_directive=no
15907
fi
15908
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15909
fi
15910
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
15911
$as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
15912
if test $libgomp_cv_have_as_symver_directive = yes; then
15913
 
15914
$as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
15915
 
15916
fi
15917
 
15918
 if test $enable_symvers != no; then
15919
  LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
15920
  LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
15921
else
15922
  LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
15923
  LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
15924
fi
15925
 
15926
{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15927
$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
15928
 
15929
 
15930
if test $enable_symvers = gnu; then
15931
 
15932
$as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
15933
 
15934
fi
15935
 
15936
# Get target configury.
15937
. ${srcdir}/configure.tgt
15938
CFLAGS="$save_CFLAGS $XCFLAGS"
15939
 
15940
# Check for __sync_val_compare_and_swap, but only after the target has
15941
# had a chance to set XCFLAGS.
15942
 
15943
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
15944
$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
15945
if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
15946
  $as_echo_n "(cached) " >&6
15947
else
15948
 
15949
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950
/* end confdefs.h.  */
15951
 
15952
int
15953
main ()
15954
{
15955
int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
15956
  ;
15957
  return 0;
15958
}
15959
_ACEOF
15960
if ac_fn_c_try_link "$LINENO"; then :
15961
  libgomp_cv_have_sync_builtins=yes
15962
else
15963
  libgomp_cv_have_sync_builtins=no
15964
fi
15965
rm -f core conftest.err conftest.$ac_objext \
15966
    conftest$ac_exeext conftest.$ac_ext
15967
fi
15968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
15969
$as_echo "$libgomp_cv_have_sync_builtins" >&6; }
15970
  if test $libgomp_cv_have_sync_builtins = yes; then
15971
 
15972
$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
15973
 
15974
  fi
15975
 
15976
XCFLAGS="$XCFLAGS$XPCFLAGS"
15977
 
15978
 
15979
 
15980
 
15981
 
15982
# Cleanup and exit.
15983
CFLAGS="$save_CFLAGS"
15984
cat >confcache <<\_ACEOF
15985
# This file is a shell script that caches the results of configure
15986
# tests run on this system so they can be shared between configure
15987
# scripts and configure runs, see configure's option --config-cache.
15988
# It is not useful on other systems.  If it contains results you don't
15989
# want to keep, you may remove or edit it.
15990
#
15991
# config.status only pays attention to the cache file if you give it
15992
# the --recheck option to rerun configure.
15993
#
15994
# `ac_cv_env_foo' variables (set or unset) will be overridden when
15995
# loading this file, other *unset* `ac_cv_foo' will be assigned the
15996
# following values.
15997
 
15998
_ACEOF
15999
 
16000
# The following way of writing the cache mishandles newlines in values,
16001
# but we know of no workaround that is simple, portable, and efficient.
16002
# So, we kill variables containing newlines.
16003
# Ultrix sh set writes to stderr and can't be redirected directly,
16004
# and sets the high bit in the cache file unless we assign to the vars.
16005
(
16006
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16007
    eval ac_val=\$$ac_var
16008
    case $ac_val in #(
16009
    *${as_nl}*)
16010
      case $ac_var in #(
16011
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16012
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16013
      esac
16014
      case $ac_var in #(
16015
      _ | IFS | as_nl) ;; #(
16016
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16017
      *) { eval $ac_var=; unset $ac_var;} ;;
16018
      esac ;;
16019
    esac
16020
  done
16021
 
16022
  (set) 2>&1 |
16023
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16024
    *${as_nl}ac_space=\ *)
16025
      # `set' does not quote correctly, so add quotes: double-quote
16026
      # substitution turns \\\\ into \\, and sed turns \\ into \.
16027
      sed -n \
16028
        "s/'/'\\\\''/g;
16029
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16030
      ;; #(
16031
    *)
16032
      # `set' quotes correctly as required by POSIX, so do not add quotes.
16033
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16034
      ;;
16035
    esac |
16036
    sort
16037
) |
16038
  sed '
16039
     /^ac_cv_env_/b end
16040
     t clear
16041
     :clear
16042
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16043
     t end
16044
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16045
     :end' >>confcache
16046
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16047
  if test -w "$cache_file"; then
16048
    test "x$cache_file" != "x/dev/null" &&
16049
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16050
$as_echo "$as_me: updating cache $cache_file" >&6;}
16051
    cat confcache >$cache_file
16052
  else
16053
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16054
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16055
  fi
16056
fi
16057
rm -f confcache
16058
 
16059
if test ${multilib} = yes; then
16060
  multilib_arg="--enable-multilib"
16061
else
16062
  multilib_arg=
16063
fi
16064
 
16065
# Set up the set of libraries that we need to link against for libgomp.
16066
# Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
16067
# which will force linkage against -lpthread (or equivalent for the system).
16068
# That's not 100% ideal, but about the best we can do easily.
16069
if test $enable_shared = yes; then
16070
  link_gomp="-lgomp %{static: $LIBS}"
16071
else
16072
  link_gomp="-lgomp $LIBS"
16073
fi
16074
 
16075
 
16076
 if test "$ac_cv_fc_compiler_gnu" = yes; then
16077
  USE_FORTRAN_TRUE=
16078
  USE_FORTRAN_FALSE='#'
16079
else
16080
  USE_FORTRAN_TRUE='#'
16081
  USE_FORTRAN_FALSE=
16082
fi
16083
 
16084
 
16085
# ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16086
# and export AC_COMPUTE_INT.  If that happens, then we'll need to remove
16087
# the underscore here and update the PREREQ.  If it doesn't, then we'll
16088
# need to copy this macro to our acinclude.m4.
16089
save_CFLAGS="$CFLAGS"
16090
for i in $config_path; do
16091
  if test -f $srcdir/config/$i/omp-lock.h; then
16092
    CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16093
    break
16094
  fi
16095
done
16096
 
16097
if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE"        ""; then :
16098
 
16099
else
16100
  as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16101
fi
16102
 
16103
 
16104
if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN"        ""; then :
16105
 
16106
fi
16107
 
16108
 
16109
if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE"        ""; then :
16110
 
16111
fi
16112
 
16113
 
16114
if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN"        ""; then :
16115
 
16116
fi
16117
 
16118
 
16119
if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE"        ""; then :
16120
 
16121
else
16122
  as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16123
fi
16124
 
16125
 
16126
if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN"        ""; then :
16127
 
16128
fi
16129
 
16130
 
16131
if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE"        ""; then :
16132
 
16133
fi
16134
 
16135
 
16136
if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN"        ""; then :
16137
 
16138
fi
16139
 
16140
 
16141
 
16142
# If the lock fits in an integer, then arrange for Fortran to use that
16143
# integer.  If it doesn't, then arrange for Fortran to use a pointer.
16144
# Except that we don't have a way at present to multi-lib the installed
16145
# Fortran modules, so we assume 8 bytes for pointers, regardless of the
16146
# actual target.
16147
OMP_LOCK_KIND=$OMP_LOCK_SIZE
16148
OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16149
if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16150
  OMP_LOCK_KIND=8
16151
fi
16152
if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16153
  OMP_NEST_LOCK_KIND=8
16154
fi
16155
OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16156
OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16157
if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16158
  OMP_LOCK_25_KIND=8
16159
fi
16160
if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16161
  OMP_NEST_LOCK_25_KIND=8
16162
fi
16163
 
16164
 
16165
 
16166
 
16167
 
16168
 
16169
 
16170
 
16171
 
16172
 
16173
 
16174
 
16175
 
16176
CFLAGS="$save_CFLAGS"
16177
 
16178
ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16179
 
16180
ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16181
 
16182
cat >confcache <<\_ACEOF
16183
# This file is a shell script that caches the results of configure
16184
# tests run on this system so they can be shared between configure
16185
# scripts and configure runs, see configure's option --config-cache.
16186
# It is not useful on other systems.  If it contains results you don't
16187
# want to keep, you may remove or edit it.
16188
#
16189
# config.status only pays attention to the cache file if you give it
16190
# the --recheck option to rerun configure.
16191
#
16192
# `ac_cv_env_foo' variables (set or unset) will be overridden when
16193
# loading this file, other *unset* `ac_cv_foo' will be assigned the
16194
# following values.
16195
 
16196
_ACEOF
16197
 
16198
# The following way of writing the cache mishandles newlines in values,
16199
# but we know of no workaround that is simple, portable, and efficient.
16200
# So, we kill variables containing newlines.
16201
# Ultrix sh set writes to stderr and can't be redirected directly,
16202
# and sets the high bit in the cache file unless we assign to the vars.
16203
(
16204
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16205
    eval ac_val=\$$ac_var
16206
    case $ac_val in #(
16207
    *${as_nl}*)
16208
      case $ac_var in #(
16209
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16210
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16211
      esac
16212
      case $ac_var in #(
16213
      _ | IFS | as_nl) ;; #(
16214
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16215
      *) { eval $ac_var=; unset $ac_var;} ;;
16216
      esac ;;
16217
    esac
16218
  done
16219
 
16220
  (set) 2>&1 |
16221
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16222
    *${as_nl}ac_space=\ *)
16223
      # `set' does not quote correctly, so add quotes: double-quote
16224
      # substitution turns \\\\ into \\, and sed turns \\ into \.
16225
      sed -n \
16226
        "s/'/'\\\\''/g;
16227
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16228
      ;; #(
16229
    *)
16230
      # `set' quotes correctly as required by POSIX, so do not add quotes.
16231
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16232
      ;;
16233
    esac |
16234
    sort
16235
) |
16236
  sed '
16237
     /^ac_cv_env_/b end
16238
     t clear
16239
     :clear
16240
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16241
     t end
16242
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16243
     :end' >>confcache
16244
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16245
  if test -w "$cache_file"; then
16246
    test "x$cache_file" != "x/dev/null" &&
16247
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16248
$as_echo "$as_me: updating cache $cache_file" >&6;}
16249
    cat confcache >$cache_file
16250
  else
16251
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16252
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16253
  fi
16254
fi
16255
rm -f confcache
16256
 
16257
test "x$prefix" = xNONE && prefix=$ac_default_prefix
16258
# Let make expand exec_prefix.
16259
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16260
 
16261
DEFS=-DHAVE_CONFIG_H
16262
 
16263
ac_libobjs=
16264
ac_ltlibobjs=
16265
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16266
  # 1. Remove the extension, and $U if already installed.
16267
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16268
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16269
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16270
  #    will be set to the directory where LIBOBJS objects are built.
16271
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16272
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16273
done
16274
LIBOBJS=$ac_libobjs
16275
 
16276
LTLIBOBJS=$ac_ltlibobjs
16277
 
16278
 
16279
if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16280
  as_fn_error "conditional \"GENINSRC\" was never defined.
16281
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16282
fi
16283
 if test -n "$EXEEXT"; then
16284
  am__EXEEXT_TRUE=
16285
  am__EXEEXT_FALSE='#'
16286
else
16287
  am__EXEEXT_TRUE='#'
16288
  am__EXEEXT_FALSE=
16289
fi
16290
 
16291
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16292
  as_fn_error "conditional \"AMDEP\" was never defined.
16293
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16294
fi
16295
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16296
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
16297
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16298
fi
16299
if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16300
  as_fn_error "conditional \"BUILD_INFO\" was never defined.
16301
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16302
fi
16303
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16304
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16305
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16306
fi
16307
if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16308
  as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16309
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16310
fi
16311
if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16312
  as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16313
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16314
fi
16315
 
16316
: ${CONFIG_STATUS=./config.status}
16317
ac_write_fail=0
16318
ac_clean_files_save=$ac_clean_files
16319
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16320
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16321
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16322
as_write_fail=0
16323
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16324
#! $SHELL
16325
# Generated by $as_me.
16326
# Run this file to recreate the current configuration.
16327
# Compiler output produced by configure, useful for debugging
16328
# configure, is in config.log if it exists.
16329
 
16330
debug=false
16331
ac_cs_recheck=false
16332
ac_cs_silent=false
16333
 
16334
SHELL=\${CONFIG_SHELL-$SHELL}
16335
export SHELL
16336
_ASEOF
16337
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16338
## -------------------- ##
16339
## M4sh Initialization. ##
16340
## -------------------- ##
16341
 
16342
# Be more Bourne compatible
16343
DUALCASE=1; export DUALCASE # for MKS sh
16344
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16345
  emulate sh
16346
  NULLCMD=:
16347
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16348
  # is contrary to our usage.  Disable this feature.
16349
  alias -g '${1+"$@"}'='"$@"'
16350
  setopt NO_GLOB_SUBST
16351
else
16352
  case `(set -o) 2>/dev/null` in #(
16353
  *posix*) :
16354
    set -o posix ;; #(
16355
  *) :
16356
     ;;
16357
esac
16358
fi
16359
 
16360
 
16361
as_nl='
16362
'
16363
export as_nl
16364
# Printing a long string crashes Solaris 7 /usr/bin/printf.
16365
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16366
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16367
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16368
# Prefer a ksh shell builtin over an external printf program on Solaris,
16369
# but without wasting forks for bash or zsh.
16370
if test -z "$BASH_VERSION$ZSH_VERSION" \
16371
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16372
  as_echo='print -r --'
16373
  as_echo_n='print -rn --'
16374
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16375
  as_echo='printf %s\n'
16376
  as_echo_n='printf %s'
16377
else
16378
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16379
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16380
    as_echo_n='/usr/ucb/echo -n'
16381
  else
16382
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16383
    as_echo_n_body='eval
16384
      arg=$1;
16385
      case $arg in #(
16386
      *"$as_nl"*)
16387
        expr "X$arg" : "X\\(.*\\)$as_nl";
16388
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16389
      esac;
16390
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16391
    '
16392
    export as_echo_n_body
16393
    as_echo_n='sh -c $as_echo_n_body as_echo'
16394
  fi
16395
  export as_echo_body
16396
  as_echo='sh -c $as_echo_body as_echo'
16397
fi
16398
 
16399
# The user is always right.
16400
if test "${PATH_SEPARATOR+set}" != set; then
16401
  PATH_SEPARATOR=:
16402
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16403
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16404
      PATH_SEPARATOR=';'
16405
  }
16406
fi
16407
 
16408
 
16409
# IFS
16410
# We need space, tab and new line, in precisely that order.  Quoting is
16411
# there to prevent editors from complaining about space-tab.
16412
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16413
# splitting by setting IFS to empty value.)
16414
IFS=" ""        $as_nl"
16415
 
16416
# Find who we are.  Look in the path if we contain no directory separator.
16417
case $0 in #((
16418
  *[\\/]* ) as_myself=$0 ;;
16419
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16420
for as_dir in $PATH
16421
do
16422
  IFS=$as_save_IFS
16423
  test -z "$as_dir" && as_dir=.
16424
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16425
  done
16426
IFS=$as_save_IFS
16427
 
16428
     ;;
16429
esac
16430
# We did not find ourselves, most probably we were run as `sh COMMAND'
16431
# in which case we are not to be found in the path.
16432
if test "x$as_myself" = x; then
16433
  as_myself=$0
16434
fi
16435
if test ! -f "$as_myself"; then
16436
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16437
  exit 1
16438
fi
16439
 
16440
# Unset variables that we do not need and which cause bugs (e.g. in
16441
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16442
# suppresses any "Segmentation fault" message there.  '((' could
16443
# trigger a bug in pdksh 5.2.14.
16444
for as_var in BASH_ENV ENV MAIL MAILPATH
16445
do eval test x\${$as_var+set} = xset \
16446
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16447
done
16448
PS1='$ '
16449
PS2='> '
16450
PS4='+ '
16451
 
16452
# NLS nuisances.
16453
LC_ALL=C
16454
export LC_ALL
16455
LANGUAGE=C
16456
export LANGUAGE
16457
 
16458
# CDPATH.
16459
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16460
 
16461
 
16462
# as_fn_error ERROR [LINENO LOG_FD]
16463
# ---------------------------------
16464
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16465
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16466
# script with status $?, using 1 if that was 0.
16467
as_fn_error ()
16468
{
16469
  as_status=$?; test $as_status -eq 0 && as_status=1
16470
  if test "$3"; then
16471
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16472
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16473
  fi
16474
  $as_echo "$as_me: error: $1" >&2
16475
  as_fn_exit $as_status
16476
} # as_fn_error
16477
 
16478
 
16479
# as_fn_set_status STATUS
16480
# -----------------------
16481
# Set $? to STATUS, without forking.
16482
as_fn_set_status ()
16483
{
16484
  return $1
16485
} # as_fn_set_status
16486
 
16487
# as_fn_exit STATUS
16488
# -----------------
16489
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16490
as_fn_exit ()
16491
{
16492
  set +e
16493
  as_fn_set_status $1
16494
  exit $1
16495
} # as_fn_exit
16496
 
16497
# as_fn_unset VAR
16498
# ---------------
16499
# Portably unset VAR.
16500
as_fn_unset ()
16501
{
16502
  { eval $1=; unset $1;}
16503
}
16504
as_unset=as_fn_unset
16505
# as_fn_append VAR VALUE
16506
# ----------------------
16507
# Append the text in VALUE to the end of the definition contained in VAR. Take
16508
# advantage of any shell optimizations that allow amortized linear growth over
16509
# repeated appends, instead of the typical quadratic growth present in naive
16510
# implementations.
16511
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16512
  eval 'as_fn_append ()
16513
  {
16514
    eval $1+=\$2
16515
  }'
16516
else
16517
  as_fn_append ()
16518
  {
16519
    eval $1=\$$1\$2
16520
  }
16521
fi # as_fn_append
16522
 
16523
# as_fn_arith ARG...
16524
# ------------------
16525
# Perform arithmetic evaluation on the ARGs, and store the result in the
16526
# global $as_val. Take advantage of shells that can avoid forks. The arguments
16527
# must be portable across $(()) and expr.
16528
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16529
  eval 'as_fn_arith ()
16530
  {
16531
    as_val=$(( $* ))
16532
  }'
16533
else
16534
  as_fn_arith ()
16535
  {
16536
    as_val=`expr "$@" || test $? -eq 1`
16537
  }
16538
fi # as_fn_arith
16539
 
16540
 
16541
if expr a : '\(a\)' >/dev/null 2>&1 &&
16542
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16543
  as_expr=expr
16544
else
16545
  as_expr=false
16546
fi
16547
 
16548
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16549
  as_basename=basename
16550
else
16551
  as_basename=false
16552
fi
16553
 
16554
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16555
  as_dirname=dirname
16556
else
16557
  as_dirname=false
16558
fi
16559
 
16560
as_me=`$as_basename -- "$0" ||
16561
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16562
         X"$0" : 'X\(//\)$' \| \
16563
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16564
$as_echo X/"$0" |
16565
    sed '/^.*\/\([^/][^/]*\)\/*$/{
16566
            s//\1/
16567
            q
16568
          }
16569
          /^X\/\(\/\/\)$/{
16570
            s//\1/
16571
            q
16572
          }
16573
          /^X\/\(\/\).*/{
16574
            s//\1/
16575
            q
16576
          }
16577
          s/.*/./; q'`
16578
 
16579
# Avoid depending upon Character Ranges.
16580
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16581
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16582
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16583
as_cr_digits='0123456789'
16584
as_cr_alnum=$as_cr_Letters$as_cr_digits
16585
 
16586
ECHO_C= ECHO_N= ECHO_T=
16587
case `echo -n x` in #(((((
16588
-n*)
16589
  case `echo 'xy\c'` in
16590
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16591
  xy)  ECHO_C='\c';;
16592
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16593
       ECHO_T=' ';;
16594
  esac;;
16595
*)
16596
  ECHO_N='-n';;
16597
esac
16598
 
16599
rm -f conf$$ conf$$.exe conf$$.file
16600
if test -d conf$$.dir; then
16601
  rm -f conf$$.dir/conf$$.file
16602
else
16603
  rm -f conf$$.dir
16604
  mkdir conf$$.dir 2>/dev/null
16605
fi
16606
if (echo >conf$$.file) 2>/dev/null; then
16607
  if ln -s conf$$.file conf$$ 2>/dev/null; then
16608
    as_ln_s='ln -s'
16609
    # ... but there are two gotchas:
16610
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16611
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16612
    # In both cases, we have to default to `cp -p'.
16613
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16614
      as_ln_s='cp -p'
16615
  elif ln conf$$.file conf$$ 2>/dev/null; then
16616
    as_ln_s=ln
16617
  else
16618
    as_ln_s='cp -p'
16619
  fi
16620
else
16621
  as_ln_s='cp -p'
16622
fi
16623
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16624
rmdir conf$$.dir 2>/dev/null
16625
 
16626
 
16627
# as_fn_mkdir_p
16628
# -------------
16629
# Create "$as_dir" as a directory, including parents if necessary.
16630
as_fn_mkdir_p ()
16631
{
16632
 
16633
  case $as_dir in #(
16634
  -*) as_dir=./$as_dir;;
16635
  esac
16636
  test -d "$as_dir" || eval $as_mkdir_p || {
16637
    as_dirs=
16638
    while :; do
16639
      case $as_dir in #(
16640
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16641
      *) as_qdir=$as_dir;;
16642
      esac
16643
      as_dirs="'$as_qdir' $as_dirs"
16644
      as_dir=`$as_dirname -- "$as_dir" ||
16645
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16646
         X"$as_dir" : 'X\(//\)[^/]' \| \
16647
         X"$as_dir" : 'X\(//\)$' \| \
16648
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16649
$as_echo X"$as_dir" |
16650
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16651
            s//\1/
16652
            q
16653
          }
16654
          /^X\(\/\/\)[^/].*/{
16655
            s//\1/
16656
            q
16657
          }
16658
          /^X\(\/\/\)$/{
16659
            s//\1/
16660
            q
16661
          }
16662
          /^X\(\/\).*/{
16663
            s//\1/
16664
            q
16665
          }
16666
          s/.*/./; q'`
16667
      test -d "$as_dir" && break
16668
    done
16669
    test -z "$as_dirs" || eval "mkdir $as_dirs"
16670
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16671
 
16672
 
16673
} # as_fn_mkdir_p
16674
if mkdir -p . 2>/dev/null; then
16675
  as_mkdir_p='mkdir -p "$as_dir"'
16676
else
16677
  test -d ./-p && rmdir ./-p
16678
  as_mkdir_p=false
16679
fi
16680
 
16681
if test -x / >/dev/null 2>&1; then
16682
  as_test_x='test -x'
16683
else
16684
  if ls -dL / >/dev/null 2>&1; then
16685
    as_ls_L_option=L
16686
  else
16687
    as_ls_L_option=
16688
  fi
16689
  as_test_x='
16690
    eval sh -c '\''
16691
      if test -d "$1"; then
16692
        test -d "$1/.";
16693
      else
16694
        case $1 in #(
16695
        -*)set "./$1";;
16696
        esac;
16697
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16698
        ???[sx]*):;;*)false;;esac;fi
16699
    '\'' sh
16700
  '
16701
fi
16702
as_executable_p=$as_test_x
16703
 
16704
# Sed expression to map a string onto a valid CPP name.
16705
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16706
 
16707
# Sed expression to map a string onto a valid variable name.
16708
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16709
 
16710
 
16711
exec 6>&1
16712
## ----------------------------------- ##
16713
## Main body of $CONFIG_STATUS script. ##
16714
## ----------------------------------- ##
16715
_ASEOF
16716
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16717
 
16718
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16719
# Save the log message, to keep $0 and so on meaningful, and to
16720
# report actual input values of CONFIG_FILES etc. instead of their
16721
# values after options handling.
16722
ac_log="
16723
This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
16724
generated by GNU Autoconf 2.64.  Invocation command line was
16725
 
16726
  CONFIG_FILES    = $CONFIG_FILES
16727
  CONFIG_HEADERS  = $CONFIG_HEADERS
16728
  CONFIG_LINKS    = $CONFIG_LINKS
16729
  CONFIG_COMMANDS = $CONFIG_COMMANDS
16730
  $ $0 $@
16731
 
16732
on `(hostname || uname -n) 2>/dev/null | sed 1q`
16733
"
16734
 
16735
_ACEOF
16736
 
16737
case $ac_config_files in *"
16738
"*) set x $ac_config_files; shift; ac_config_files=$*;;
16739
esac
16740
 
16741
case $ac_config_headers in *"
16742
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16743
esac
16744
 
16745
 
16746
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16747
# Files that config.status was made for.
16748
config_files="$ac_config_files"
16749
config_headers="$ac_config_headers"
16750
config_commands="$ac_config_commands"
16751
 
16752
_ACEOF
16753
 
16754
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16755
ac_cs_usage="\
16756
\`$as_me' instantiates files and other configuration actions
16757
from templates according to the current configuration.  Unless the files
16758
and actions are specified as TAGs, all are instantiated by default.
16759
 
16760
Usage: $0 [OPTION]... [TAG]...
16761
 
16762
  -h, --help       print this help, then exit
16763
  -V, --version    print version number and configuration settings, then exit
16764
  -q, --quiet, --silent
16765
                   do not print progress messages
16766
  -d, --debug      don't remove temporary files
16767
      --recheck    update $as_me by reconfiguring in the same conditions
16768
      --file=FILE[:TEMPLATE]
16769
                   instantiate the configuration file FILE
16770
      --header=FILE[:TEMPLATE]
16771
                   instantiate the configuration header FILE
16772
 
16773
Configuration files:
16774
$config_files
16775
 
16776
Configuration headers:
16777
$config_headers
16778
 
16779
Configuration commands:
16780
$config_commands
16781
 
16782
Report bugs to the package provider.
16783
GNU OpenMP Runtime Library home page: .
16784
General help using GNU software: ."
16785
 
16786
_ACEOF
16787
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16788
ac_cs_version="\\
16789
GNU OpenMP Runtime Library config.status 1.0
16790
configured by $0, generated by GNU Autoconf 2.64,
16791
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16792
 
16793
Copyright (C) 2009 Free Software Foundation, Inc.
16794
This config.status script is free software; the Free Software Foundation
16795
gives unlimited permission to copy, distribute and modify it."
16796
 
16797
ac_pwd='$ac_pwd'
16798
srcdir='$srcdir'
16799
INSTALL='$INSTALL'
16800
MKDIR_P='$MKDIR_P'
16801
AWK='$AWK'
16802
test -n "\$AWK" || AWK=awk
16803
_ACEOF
16804
 
16805
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16806
# The default lists apply if the user does not specify any file.
16807
ac_need_defaults=:
16808
while test $# != 0
16809
do
16810
  case $1 in
16811
  --*=*)
16812
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16813
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16814
    ac_shift=:
16815
    ;;
16816
  *)
16817
    ac_option=$1
16818
    ac_optarg=$2
16819
    ac_shift=shift
16820
    ;;
16821
  esac
16822
 
16823
  case $ac_option in
16824
  # Handling of the options.
16825
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16826
    ac_cs_recheck=: ;;
16827
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16828
    $as_echo "$ac_cs_version"; exit ;;
16829
  --debug | --debu | --deb | --de | --d | -d )
16830
    debug=: ;;
16831
  --file | --fil | --fi | --f )
16832
    $ac_shift
16833
    case $ac_optarg in
16834
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16835
    esac
16836
    as_fn_append CONFIG_FILES " '$ac_optarg'"
16837
    ac_need_defaults=false;;
16838
  --header | --heade | --head | --hea )
16839
    $ac_shift
16840
    case $ac_optarg in
16841
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16842
    esac
16843
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16844
    ac_need_defaults=false;;
16845
  --he | --h)
16846
    # Conflict between --help and --header
16847
    as_fn_error "ambiguous option: \`$1'
16848
Try \`$0 --help' for more information.";;
16849
  --help | --hel | -h )
16850
    $as_echo "$ac_cs_usage"; exit ;;
16851
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16852
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16853
    ac_cs_silent=: ;;
16854
 
16855
  # This is an error.
16856
  -*) as_fn_error "unrecognized option: \`$1'
16857
Try \`$0 --help' for more information." ;;
16858
 
16859
  *) as_fn_append ac_config_targets " $1"
16860
     ac_need_defaults=false ;;
16861
 
16862
  esac
16863
  shift
16864
done
16865
 
16866
ac_configure_extra_args=
16867
 
16868
if $ac_cs_silent; then
16869
  exec 6>/dev/null
16870
  ac_configure_extra_args="$ac_configure_extra_args --silent"
16871
fi
16872
 
16873
_ACEOF
16874
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16875
if \$ac_cs_recheck; then
16876
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16877
  shift
16878
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16879
  CONFIG_SHELL='$SHELL'
16880
  export CONFIG_SHELL
16881
  exec "\$@"
16882
fi
16883
 
16884
_ACEOF
16885
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16886
exec 5>>config.log
16887
{
16888
  echo
16889
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16890
## Running $as_me. ##
16891
_ASBOX
16892
  $as_echo "$ac_log"
16893
} >&5
16894
 
16895
_ACEOF
16896
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16897
#
16898
# INIT-COMMANDS
16899
#
16900
 
16901
srcdir="$srcdir"
16902
host="$host"
16903
target="$target"
16904
with_multisubdir="$with_multisubdir"
16905
with_multisrctop="$with_multisrctop"
16906
with_target_subdir="$with_target_subdir"
16907
ac_configure_args="${multilib_arg} ${ac_configure_args}"
16908
multi_basedir="$multi_basedir"
16909
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16910
CC="$CC"
16911
CXX="$CXX"
16912
GFORTRAN="$GFORTRAN"
16913
GCJ="$GCJ"
16914
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16915
 
16916
 
16917
# The HP-UX ksh and POSIX shell print the target directory to stdout
16918
# if CDPATH is set.
16919
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16920
 
16921
sed_quote_subst='$sed_quote_subst'
16922
double_quote_subst='$double_quote_subst'
16923
delay_variable_subst='$delay_variable_subst'
16924
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16925
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16926
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16927
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16928
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16929
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16930
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16931
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16932
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16933
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16934
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16935
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16936
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16937
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16938
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16939
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16940
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16941
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16942
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16943
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16944
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16945
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16946
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16947
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16948
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16949
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16950
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16951
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16952
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16953
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16954
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16955
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16956
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16957
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16958
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16959
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16960
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16961
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16962
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16963
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16964
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16965
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16966
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16967
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16968
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16969
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16970
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16971
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16972
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"`'
16973
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16974
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16975
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16976
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16977
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16978
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16979
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16980
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16981
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16982
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16983
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16984
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16985
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16986
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16987
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16988
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16989
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16990
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16991
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16992
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16993
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16994
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16995
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16996
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16997
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16998
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16999
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17000
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17001
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17002
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17003
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17004
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17005
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17006
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17007
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17008
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17009
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17010
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17011
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17012
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17013
fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17014
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17015
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17016
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17017
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17018
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17019
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17020
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17021
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17022
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17023
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17024
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17025
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17026
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17027
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17028
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17029
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17030
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17031
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17032
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17033
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17034
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17035
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17036
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17037
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17038
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17039
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17040
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17041
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17042
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17043
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17044
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17045
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17046
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17047
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17048
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17049
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17050
LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17051
reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17052
reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17053
old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17054
compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17055
GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17056
lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17057
lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17058
lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17059
lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17060
lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17061
archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17062
enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17063
export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17064
whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17065
compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17066
old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17067
old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17068
archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17069
archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17070
module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17071
module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17072
with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17073
allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17074
no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17075
hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17076
hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17077
hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17078
hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17079
hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17080
hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17081
hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17082
hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17083
inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17084
link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17085
fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17086
always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17087
export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17088
exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17089
include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17090
prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17091
file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17092
hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17093
compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17094
predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17095
postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17096
predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17097
postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17098
compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17099
 
17100
LTCC='$LTCC'
17101
LTCFLAGS='$LTCFLAGS'
17102
compiler='$compiler_DEFAULT'
17103
 
17104
# A function that is used when there is no print builtin or printf.
17105
func_fallback_echo ()
17106
{
17107
  eval 'cat <<_LTECHO_EOF
17108
\$1
17109
_LTECHO_EOF'
17110
}
17111
 
17112
# Quote evaled strings.
17113
for var in SHELL \
17114
ECHO \
17115
SED \
17116
GREP \
17117
EGREP \
17118
FGREP \
17119
LD \
17120
NM \
17121
LN_S \
17122
lt_SP2NL \
17123
lt_NL2SP \
17124
reload_flag \
17125
OBJDUMP \
17126
deplibs_check_method \
17127
file_magic_cmd \
17128
AR \
17129
AR_FLAGS \
17130
STRIP \
17131
RANLIB \
17132
CC \
17133
CFLAGS \
17134
compiler \
17135
lt_cv_sys_global_symbol_pipe \
17136
lt_cv_sys_global_symbol_to_cdecl \
17137
lt_cv_sys_global_symbol_to_c_name_address \
17138
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17139
lt_prog_compiler_no_builtin_flag \
17140
lt_prog_compiler_wl \
17141
lt_prog_compiler_pic \
17142
lt_prog_compiler_static \
17143
lt_cv_prog_compiler_c_o \
17144
need_locks \
17145
DSYMUTIL \
17146
NMEDIT \
17147
LIPO \
17148
OTOOL \
17149
OTOOL64 \
17150
shrext_cmds \
17151
export_dynamic_flag_spec \
17152
whole_archive_flag_spec \
17153
compiler_needs_object \
17154
with_gnu_ld \
17155
allow_undefined_flag \
17156
no_undefined_flag \
17157
hardcode_libdir_flag_spec \
17158
hardcode_libdir_flag_spec_ld \
17159
hardcode_libdir_separator \
17160
fix_srcfile_path \
17161
exclude_expsyms \
17162
include_expsyms \
17163
file_list_spec \
17164
variables_saved_for_relink \
17165
libname_spec \
17166
library_names_spec \
17167
soname_spec \
17168
install_override_mode \
17169
finish_eval \
17170
old_striplib \
17171
striplib \
17172
compiler_lib_search_dirs \
17173
predep_objects \
17174
postdep_objects \
17175
predeps \
17176
postdeps \
17177
compiler_lib_search_path \
17178
LD_FC \
17179
reload_flag_FC \
17180
compiler_FC \
17181
lt_prog_compiler_no_builtin_flag_FC \
17182
lt_prog_compiler_wl_FC \
17183
lt_prog_compiler_pic_FC \
17184
lt_prog_compiler_static_FC \
17185
lt_cv_prog_compiler_c_o_FC \
17186
export_dynamic_flag_spec_FC \
17187
whole_archive_flag_spec_FC \
17188
compiler_needs_object_FC \
17189
with_gnu_ld_FC \
17190
allow_undefined_flag_FC \
17191
no_undefined_flag_FC \
17192
hardcode_libdir_flag_spec_FC \
17193
hardcode_libdir_flag_spec_ld_FC \
17194
hardcode_libdir_separator_FC \
17195
fix_srcfile_path_FC \
17196
exclude_expsyms_FC \
17197
include_expsyms_FC \
17198
file_list_spec_FC \
17199
compiler_lib_search_dirs_FC \
17200
predep_objects_FC \
17201
postdep_objects_FC \
17202
predeps_FC \
17203
postdeps_FC \
17204
compiler_lib_search_path_FC; do
17205
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17206
    *[\\\\\\\`\\"\\\$]*)
17207
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17208
      ;;
17209
    *)
17210
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17211
      ;;
17212
    esac
17213
done
17214
 
17215
# Double-quote double-evaled strings.
17216
for var in reload_cmds \
17217
old_postinstall_cmds \
17218
old_postuninstall_cmds \
17219
old_archive_cmds \
17220
extract_expsyms_cmds \
17221
old_archive_from_new_cmds \
17222
old_archive_from_expsyms_cmds \
17223
archive_cmds \
17224
archive_expsym_cmds \
17225
module_cmds \
17226
module_expsym_cmds \
17227
export_symbols_cmds \
17228
prelink_cmds \
17229
postinstall_cmds \
17230
postuninstall_cmds \
17231
finish_cmds \
17232
sys_lib_search_path_spec \
17233
sys_lib_dlsearch_path_spec \
17234
reload_cmds_FC \
17235
old_archive_cmds_FC \
17236
old_archive_from_new_cmds_FC \
17237
old_archive_from_expsyms_cmds_FC \
17238
archive_cmds_FC \
17239
archive_expsym_cmds_FC \
17240
module_cmds_FC \
17241
module_expsym_cmds_FC \
17242
export_symbols_cmds_FC \
17243
prelink_cmds_FC; do
17244
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17245
    *[\\\\\\\`\\"\\\$]*)
17246
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17247
      ;;
17248
    *)
17249
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17250
      ;;
17251
    esac
17252
done
17253
 
17254
ac_aux_dir='$ac_aux_dir'
17255
xsi_shell='$xsi_shell'
17256
lt_shell_append='$lt_shell_append'
17257
 
17258
# See if we are running on zsh, and set the options which allow our
17259
# commands through without removal of \ escapes INIT.
17260
if test -n "\${ZSH_VERSION+set}" ; then
17261
   setopt NO_GLOB_SUBST
17262
fi
17263
 
17264
 
17265
    PACKAGE='$PACKAGE'
17266
    VERSION='$VERSION'
17267
    TIMESTAMP='$TIMESTAMP'
17268
    RM='$RM'
17269
    ofile='$ofile'
17270
 
17271
 
17272
 
17273
 
17274
 
17275
 
17276
GCC="$GCC"
17277
CC="$CC"
17278
acx_cv_header_stdint="$acx_cv_header_stdint"
17279
acx_cv_type_int8_t="$acx_cv_type_int8_t"
17280
acx_cv_type_int16_t="$acx_cv_type_int16_t"
17281
acx_cv_type_int32_t="$acx_cv_type_int32_t"
17282
acx_cv_type_int64_t="$acx_cv_type_int64_t"
17283
acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17284
ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17285
ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17286
ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17287
ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17288
ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17289
ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17290
ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17291
ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17292
 
17293
 
17294
_ACEOF
17295
 
17296
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17297
 
17298
# Handling of arguments.
17299
for ac_config_target in $ac_config_targets
17300
do
17301
  case $ac_config_target in
17302
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17303
    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17304
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17305
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17306
    "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17307
    "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
17308
    "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
17309
    "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
17310
    "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
17311
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17312
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17313
    "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
17314
 
17315
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17316
  esac
17317
done
17318
 
17319
 
17320
# If the user did not use the arguments to specify the items to instantiate,
17321
# then the envvar interface is used.  Set only those that are not.
17322
# We use the long form for the default assignment because of an extremely
17323
# bizarre bug on SunOS 4.1.3.
17324
if $ac_need_defaults; then
17325
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17326
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17327
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17328
fi
17329
 
17330
# Have a temporary directory for convenience.  Make it in the build tree
17331
# simply because there is no reason against having it here, and in addition,
17332
# creating and moving files from /tmp can sometimes cause problems.
17333
# Hook for its removal unless debugging.
17334
# Note that there is a small window in which the directory will not be cleaned:
17335
# after its creation but before its name has been assigned to `$tmp'.
17336
$debug ||
17337
{
17338
  tmp=
17339
  trap 'exit_status=$?
17340
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17341
' 0
17342
  trap 'as_fn_exit 1' 1 2 13 15
17343
}
17344
# Create a (secure) tmp directory for tmp files.
17345
 
17346
{
17347
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17348
  test -n "$tmp" && test -d "$tmp"
17349
}  ||
17350
{
17351
  tmp=./conf$$-$RANDOM
17352
  (umask 077 && mkdir "$tmp")
17353
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17354
 
17355
# Set up the scripts for CONFIG_FILES section.
17356
# No need to generate them if there are no CONFIG_FILES.
17357
# This happens for instance with `./config.status config.h'.
17358
if test -n "$CONFIG_FILES"; then
17359
 
17360
 
17361
ac_cr=`echo X | tr X '\015'`
17362
# On cygwin, bash can eat \r inside `` if the user requested igncr.
17363
# But we know of no other shell where ac_cr would be empty at this
17364
# point, so we can use a bashism as a fallback.
17365
if test "x$ac_cr" = x; then
17366
  eval ac_cr=\$\'\\r\'
17367
fi
17368
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
17369
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17370
  ac_cs_awk_cr='\r'
17371
else
17372
  ac_cs_awk_cr=$ac_cr
17373
fi
17374
 
17375
echo 'BEGIN {' >"$tmp/subs1.awk" &&
17376
_ACEOF
17377
 
17378
 
17379
{
17380
  echo "cat >conf$$subs.awk <<_ACEOF" &&
17381
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17382
  echo "_ACEOF"
17383
} >conf$$subs.sh ||
17384
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17385
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17386
ac_delim='%!_!# '
17387
for ac_last_try in false false false false false :; do
17388
  . ./conf$$subs.sh ||
17389
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17390
 
17391
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17392
  if test $ac_delim_n = $ac_delim_num; then
17393
    break
17394
  elif $ac_last_try; then
17395
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17396
  else
17397
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17398
  fi
17399
done
17400
rm -f conf$$subs.sh
17401
 
17402
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17403
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17404
_ACEOF
17405
sed -n '
17406
h
17407
s/^/S["/; s/!.*/"]=/
17408
p
17409
g
17410
s/^[^!]*!//
17411
:repl
17412
t repl
17413
s/'"$ac_delim"'$//
17414
t delim
17415
:nl
17416
h
17417
s/\(.\{148\}\).*/\1/
17418
t more1
17419
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17420
p
17421
n
17422
b repl
17423
:more1
17424
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17425
p
17426
g
17427
s/.\{148\}//
17428
t nl
17429
:delim
17430
h
17431
s/\(.\{148\}\).*/\1/
17432
t more2
17433
s/["\\]/\\&/g; s/^/"/; s/$/"/
17434
p
17435
b
17436
:more2
17437
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17438
p
17439
g
17440
s/.\{148\}//
17441
t delim
17442
' 
17443
/^[^""]/{
17444
  N
17445
  s/\n//
17446
}
17447
' >>$CONFIG_STATUS || ac_write_fail=1
17448
rm -f conf$$subs.awk
17449
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17450
_ACAWK
17451
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17452
  for (key in S) S_is_set[key] = 1
17453
  FS = ""
17454
 
17455
}
17456
{
17457
  line = $ 0
17458
  nfields = split(line, field, "@")
17459
  substed = 0
17460
  len = length(field[1])
17461
  for (i = 2; i < nfields; i++) {
17462
    key = field[i]
17463
    keylen = length(key)
17464
    if (S_is_set[key]) {
17465
      value = S[key]
17466
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17467
      len += length(value) + length(field[++i])
17468
      substed = 1
17469
    } else
17470
      len += 1 + keylen
17471
  }
17472
 
17473
  print line
17474
}
17475
 
17476
_ACAWK
17477
_ACEOF
17478
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17479
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17480
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17481
else
17482
  cat
17483
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17484
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
17485
_ACEOF
17486
 
17487
# VPATH may cause trouble with some makes, so we remove $(srcdir),
17488
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17489
# trailing colons and then remove the whole line if VPATH becomes empty
17490
# (actually we leave an empty line to preserve line numbers).
17491
if test "x$srcdir" = x.; then
17492
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
17493
s/:*\$(srcdir):*/:/
17494
s/:*\${srcdir}:*/:/
17495
s/:*@srcdir@:*/:/
17496
s/^\([^=]*=[     ]*\):*/\1/
17497
s/:*$//
17498
s/^[^=]*=[       ]*$//
17499
}'
17500
fi
17501
 
17502
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17503
fi # test -n "$CONFIG_FILES"
17504
 
17505
# Set up the scripts for CONFIG_HEADERS section.
17506
# No need to generate them if there are no CONFIG_HEADERS.
17507
# This happens for instance with `./config.status Makefile'.
17508
if test -n "$CONFIG_HEADERS"; then
17509
cat >"$tmp/defines.awk" <<\_ACAWK ||
17510
BEGIN {
17511
_ACEOF
17512
 
17513
# Transform confdefs.h into an awk script `defines.awk', embedded as
17514
# here-document in config.status, that substitutes the proper values into
17515
# config.h.in to produce config.h.
17516
 
17517
# Create a delimiter string that does not exist in confdefs.h, to ease
17518
# handling of long lines.
17519
ac_delim='%!_!# '
17520
for ac_last_try in false false :; do
17521
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17522
  if test -z "$ac_t"; then
17523
    break
17524
  elif $ac_last_try; then
17525
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17526
  else
17527
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17528
  fi
17529
done
17530
 
17531
# For the awk script, D is an array of macro values keyed by name,
17532
# likewise P contains macro parameters if any.  Preserve backslash
17533
# newline sequences.
17534
 
17535
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17536
sed -n '
17537
s/.\{148\}/&'"$ac_delim"'/g
17538
t rset
17539
:rset
17540
s/^[     ]*#[    ]*define[       ][      ]*/ /
17541
t def
17542
d
17543
:def
17544
s/\\$//
17545
t bsnl
17546
s/["\\]/\\&/g
17547
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17548
D["\1"]=" \3"/p
17549
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17550
d
17551
:bsnl
17552
s/["\\]/\\&/g
17553
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17554
D["\1"]=" \3\\\\\\n"\\/p
17555
t cont
17556
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17557
t cont
17558
d
17559
:cont
17560
n
17561
s/.\{148\}/&'"$ac_delim"'/g
17562
t clear
17563
:clear
17564
s/\\$//
17565
t bsnlc
17566
s/["\\]/\\&/g; s/^/"/; s/$/"/p
17567
d
17568
:bsnlc
17569
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17570
b cont
17571
' 
17572
s/'"$ac_delim"'/"\\\
17573
"/g' >>$CONFIG_STATUS || ac_write_fail=1
17574
 
17575
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17576
  for (key in D) D_is_set[key] = 1
17577
  FS = ""
17578
}
17579
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17580
  line = \$ 0
17581
  split(line, arg, " ")
17582
  if (arg[1] == "#") {
17583
    defundef = arg[2]
17584
    mac1 = arg[3]
17585
  } else {
17586
    defundef = substr(arg[1], 2)
17587
    mac1 = arg[2]
17588
  }
17589
  split(mac1, mac2, "(") #)
17590
  macro = mac2[1]
17591
  prefix = substr(line, 1, index(line, defundef) - 1)
17592
  if (D_is_set[macro]) {
17593
    # Preserve the white space surrounding the "#".
17594
    print prefix "define", macro P[macro] D[macro]
17595
    next
17596
  } else {
17597
    # Replace #undef with comments.  This is necessary, for example,
17598
    # in the case of _POSIX_SOURCE, which is predefined and required
17599
    # on some systems where configure will not decide to define it.
17600
    if (defundef == "undef") {
17601
      print "/*", prefix defundef, macro, "*/"
17602
      next
17603
    }
17604
  }
17605
}
17606
{ print }
17607
_ACAWK
17608
_ACEOF
17609
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17610
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
17611
fi # test -n "$CONFIG_HEADERS"
17612
 
17613
 
17614
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17615
shift
17616
for ac_tag
17617
do
17618
  case $ac_tag in
17619
  :[FHLC]) ac_mode=$ac_tag; continue;;
17620
  esac
17621
  case $ac_mode$ac_tag in
17622
  :[FHL]*:*);;
17623
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17624
  :[FH]-) ac_tag=-:-;;
17625
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17626
  esac
17627
  ac_save_IFS=$IFS
17628
  IFS=:
17629
  set x $ac_tag
17630
  IFS=$ac_save_IFS
17631
  shift
17632
  ac_file=$1
17633
  shift
17634
 
17635
  case $ac_mode in
17636
  :L) ac_source=$1;;
17637
  :[FH])
17638
    ac_file_inputs=
17639
    for ac_f
17640
    do
17641
      case $ac_f in
17642
      -) ac_f="$tmp/stdin";;
17643
      *) # Look for the file first in the build tree, then in the source tree
17644
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
17645
         # because $ac_f cannot contain `:'.
17646
         test -f "$ac_f" ||
17647
           case $ac_f in
17648
           [\\/$]*) false;;
17649
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17650
           esac ||
17651
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17652
      esac
17653
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17654
      as_fn_append ac_file_inputs " '$ac_f'"
17655
    done
17656
 
17657
    # Let's still pretend it is `configure' which instantiates (i.e., don't
17658
    # use $as_me), people would be surprised to read:
17659
    #    /* config.h.  Generated by config.status.  */
17660
    configure_input='Generated from '`
17661
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17662
        `' by configure.'
17663
    if test x"$ac_file" != x-; then
17664
      configure_input="$ac_file.  $configure_input"
17665
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17666
$as_echo "$as_me: creating $ac_file" >&6;}
17667
    fi
17668
    # Neutralize special characters interpreted by sed in replacement strings.
17669
    case $configure_input in #(
17670
    *\&* | *\|* | *\\* )
17671
       ac_sed_conf_input=`$as_echo "$configure_input" |
17672
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
17673
    *) ac_sed_conf_input=$configure_input;;
17674
    esac
17675
 
17676
    case $ac_tag in
17677
    *:-:* | *:-) cat >"$tmp/stdin" \
17678
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17679
    esac
17680
    ;;
17681
  esac
17682
 
17683
  ac_dir=`$as_dirname -- "$ac_file" ||
17684
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17685
         X"$ac_file" : 'X\(//\)[^/]' \| \
17686
         X"$ac_file" : 'X\(//\)$' \| \
17687
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17688
$as_echo X"$ac_file" |
17689
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17690
            s//\1/
17691
            q
17692
          }
17693
          /^X\(\/\/\)[^/].*/{
17694
            s//\1/
17695
            q
17696
          }
17697
          /^X\(\/\/\)$/{
17698
            s//\1/
17699
            q
17700
          }
17701
          /^X\(\/\).*/{
17702
            s//\1/
17703
            q
17704
          }
17705
          s/.*/./; q'`
17706
  as_dir="$ac_dir"; as_fn_mkdir_p
17707
  ac_builddir=.
17708
 
17709
case "$ac_dir" in
17710
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17711
*)
17712
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17713
  # A ".." for each directory in $ac_dir_suffix.
17714
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17715
  case $ac_top_builddir_sub in
17716
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17717
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17718
  esac ;;
17719
esac
17720
ac_abs_top_builddir=$ac_pwd
17721
ac_abs_builddir=$ac_pwd$ac_dir_suffix
17722
# for backward compatibility:
17723
ac_top_builddir=$ac_top_build_prefix
17724
 
17725
case $srcdir in
17726
  .)  # We are building in place.
17727
    ac_srcdir=.
17728
    ac_top_srcdir=$ac_top_builddir_sub
17729
    ac_abs_top_srcdir=$ac_pwd ;;
17730
  [\\/]* | ?:[\\/]* )  # Absolute name.
17731
    ac_srcdir=$srcdir$ac_dir_suffix;
17732
    ac_top_srcdir=$srcdir
17733
    ac_abs_top_srcdir=$srcdir ;;
17734
  *) # Relative name.
17735
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17736
    ac_top_srcdir=$ac_top_build_prefix$srcdir
17737
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17738
esac
17739
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17740
 
17741
 
17742
  case $ac_mode in
17743
  :F)
17744
  #
17745
  # CONFIG_FILE
17746
  #
17747
 
17748
  case $INSTALL in
17749
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17750
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17751
  esac
17752
  ac_MKDIR_P=$MKDIR_P
17753
  case $MKDIR_P in
17754
  [\\/$]* | ?:[\\/]* ) ;;
17755
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17756
  esac
17757
_ACEOF
17758
 
17759
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17760
# If the template does not know about datarootdir, expand it.
17761
# FIXME: This hack should be removed a few years after 2.60.
17762
ac_datarootdir_hack=; ac_datarootdir_seen=
17763
ac_sed_dataroot='
17764
/datarootdir/ {
17765
  p
17766
  q
17767
}
17768
/@datadir@/p
17769
/@docdir@/p
17770
/@infodir@/p
17771
/@localedir@/p
17772
/@mandir@/p'
17773
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17774
*datarootdir*) ac_datarootdir_seen=yes;;
17775
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17776
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17777
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17778
_ACEOF
17779
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17780
  ac_datarootdir_hack='
17781
  s&@datadir@&$datadir&g
17782
  s&@docdir@&$docdir&g
17783
  s&@infodir@&$infodir&g
17784
  s&@localedir@&$localedir&g
17785
  s&@mandir@&$mandir&g
17786
  s&\\\${datarootdir}&$datarootdir&g' ;;
17787
esac
17788
_ACEOF
17789
 
17790
# Neutralize VPATH when `$srcdir' = `.'.
17791
# Shell code in configure.ac might set extrasub.
17792
# FIXME: do we really want to maintain this feature?
17793
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17794
ac_sed_extra="$ac_vpsub
17795
$extrasub
17796
_ACEOF
17797
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17798
:t
17799
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17800
s|@configure_input@|$ac_sed_conf_input|;t t
17801
s&@top_builddir@&$ac_top_builddir_sub&;t t
17802
s&@top_build_prefix@&$ac_top_build_prefix&;t t
17803
s&@srcdir@&$ac_srcdir&;t t
17804
s&@abs_srcdir@&$ac_abs_srcdir&;t t
17805
s&@top_srcdir@&$ac_top_srcdir&;t t
17806
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17807
s&@builddir@&$ac_builddir&;t t
17808
s&@abs_builddir@&$ac_abs_builddir&;t t
17809
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17810
s&@INSTALL@&$ac_INSTALL&;t t
17811
s&@MKDIR_P@&$ac_MKDIR_P&;t t
17812
$ac_datarootdir_hack
17813
"
17814
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17815
  || as_fn_error "could not create $ac_file" "$LINENO" 5
17816
 
17817
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17818
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17819
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17820
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17821
which seems to be undefined.  Please make sure it is defined." >&5
17822
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17823
which seems to be undefined.  Please make sure it is defined." >&2;}
17824
 
17825
  rm -f "$tmp/stdin"
17826
  case $ac_file in
17827
  -) cat "$tmp/out" && rm -f "$tmp/out";;
17828
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17829
  esac \
17830
  || as_fn_error "could not create $ac_file" "$LINENO" 5
17831
 ;;
17832
  :H)
17833
  #
17834
  # CONFIG_HEADER
17835
  #
17836
  if test x"$ac_file" != x-; then
17837
    {
17838
      $as_echo "/* $configure_input  */" \
17839
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17840
    } >"$tmp/config.h" \
17841
      || as_fn_error "could not create $ac_file" "$LINENO" 5
17842
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17843
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17844
$as_echo "$as_me: $ac_file is unchanged" >&6;}
17845
    else
17846
      rm -f "$ac_file"
17847
      mv "$tmp/config.h" "$ac_file" \
17848
        || as_fn_error "could not create $ac_file" "$LINENO" 5
17849
    fi
17850
  else
17851
    $as_echo "/* $configure_input  */" \
17852
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17853
      || as_fn_error "could not create -" "$LINENO" 5
17854
  fi
17855
# Compute "$ac_file"'s index in $config_headers.
17856
_am_arg="$ac_file"
17857
_am_stamp_count=1
17858
for _am_header in $config_headers :; do
17859
  case $_am_header in
17860
    $_am_arg | $_am_arg:* )
17861
      break ;;
17862
    * )
17863
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17864
  esac
17865
done
17866
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17867
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17868
         X"$_am_arg" : 'X\(//\)[^/]' \| \
17869
         X"$_am_arg" : 'X\(//\)$' \| \
17870
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17871
$as_echo X"$_am_arg" |
17872
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17873
            s//\1/
17874
            q
17875
          }
17876
          /^X\(\/\/\)[^/].*/{
17877
            s//\1/
17878
            q
17879
          }
17880
          /^X\(\/\/\)$/{
17881
            s//\1/
17882
            q
17883
          }
17884
          /^X\(\/\).*/{
17885
            s//\1/
17886
            q
17887
          }
17888
          s/.*/./; q'`/stamp-h$_am_stamp_count
17889
 ;;
17890
 
17891
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17892
$as_echo "$as_me: executing $ac_file commands" >&6;}
17893
 ;;
17894
  esac
17895
 
17896
 
17897
  case $ac_file$ac_mode in
17898
    "default-1":C)
17899
# Only add multilib support code if we just rebuilt the top-level
17900
# Makefile.
17901
case " $CONFIG_FILES " in
17902
 *" Makefile "*)
17903
   ac_file=Makefile . ${multi_basedir}/config-ml.in
17904
   ;;
17905
esac ;;
17906
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17907
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
17908
  # are listed without --file.  Let's play safe and only enable the eval
17909
  # if we detect the quoting.
17910
  case $CONFIG_FILES in
17911
  *\'*) eval set x "$CONFIG_FILES" ;;
17912
  *)   set x $CONFIG_FILES ;;
17913
  esac
17914
  shift
17915
  for mf
17916
  do
17917
    # Strip MF so we end up with the name of the file.
17918
    mf=`echo "$mf" | sed -e 's/:.*$//'`
17919
    # Check whether this is an Automake generated Makefile or not.
17920
    # We used to match only the files named `Makefile.in', but
17921
    # some people rename them; so instead we look at the file content.
17922
    # Grep'ing the first line is not enough: some people post-process
17923
    # each Makefile.in and add a new line on top of each file to say so.
17924
    # Grep'ing the whole file is not good either: AIX grep has a line
17925
    # limit of 2048, but all sed's we know have understand at least 4000.
17926
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17927
      dirpart=`$as_dirname -- "$mf" ||
17928
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17929
         X"$mf" : 'X\(//\)[^/]' \| \
17930
         X"$mf" : 'X\(//\)$' \| \
17931
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17932
$as_echo X"$mf" |
17933
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17934
            s//\1/
17935
            q
17936
          }
17937
          /^X\(\/\/\)[^/].*/{
17938
            s//\1/
17939
            q
17940
          }
17941
          /^X\(\/\/\)$/{
17942
            s//\1/
17943
            q
17944
          }
17945
          /^X\(\/\).*/{
17946
            s//\1/
17947
            q
17948
          }
17949
          s/.*/./; q'`
17950
    else
17951
      continue
17952
    fi
17953
    # Extract the definition of DEPDIR, am__include, and am__quote
17954
    # from the Makefile without running `make'.
17955
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17956
    test -z "$DEPDIR" && continue
17957
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17958
    test -z "am__include" && continue
17959
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17960
    # When using ansi2knr, U may be empty or an underscore; expand it
17961
    U=`sed -n 's/^U = //p' < "$mf"`
17962
    # Find all dependency output files, they are included files with
17963
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17964
    # simplest approach to changing $(DEPDIR) to its actual value in the
17965
    # expansion.
17966
    for file in `sed -n "
17967
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17968
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17969
      # Make sure the directory exists.
17970
      test -f "$dirpart/$file" && continue
17971
      fdir=`$as_dirname -- "$file" ||
17972
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17973
         X"$file" : 'X\(//\)[^/]' \| \
17974
         X"$file" : 'X\(//\)$' \| \
17975
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17976
$as_echo X"$file" |
17977
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17978
            s//\1/
17979
            q
17980
          }
17981
          /^X\(\/\/\)[^/].*/{
17982
            s//\1/
17983
            q
17984
          }
17985
          /^X\(\/\/\)$/{
17986
            s//\1/
17987
            q
17988
          }
17989
          /^X\(\/\).*/{
17990
            s//\1/
17991
            q
17992
          }
17993
          s/.*/./; q'`
17994
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17995
      # echo "creating $dirpart/$file"
17996
      echo '# dummy' > "$dirpart/$file"
17997
    done
17998
  done
17999
}
18000
 ;;
18001
    "libtool":C)
18002
 
18003
    # See if we are running on zsh, and set the options which allow our
18004
    # commands through without removal of \ escapes.
18005
    if test -n "${ZSH_VERSION+set}" ; then
18006
      setopt NO_GLOB_SUBST
18007
    fi
18008
 
18009
    cfgfile="${ofile}T"
18010
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18011
    $RM "$cfgfile"
18012
 
18013
    cat <<_LT_EOF >> "$cfgfile"
18014
#! $SHELL
18015
 
18016
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18017
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18018
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18019
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18020
#
18021
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18022
#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18023
#   Written by Gordon Matzigkeit, 1996
18024
#
18025
#   This file is part of GNU Libtool.
18026
#
18027
# GNU Libtool is free software; you can redistribute it and/or
18028
# modify it under the terms of the GNU General Public License as
18029
# published by the Free Software Foundation; either version 2 of
18030
# the License, or (at your option) any later version.
18031
#
18032
# As a special exception to the GNU General Public License,
18033
# if you distribute this file as part of a program or library that
18034
# is built using GNU Libtool, you may include this file under the
18035
# same distribution terms that you use for the rest of that program.
18036
#
18037
# GNU Libtool is distributed in the hope that it will be useful,
18038
# but WITHOUT ANY WARRANTY; without even the implied warranty of
18039
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18040
# GNU General Public License for more details.
18041
#
18042
# You should have received a copy of the GNU General Public License
18043
# along with GNU Libtool; see the file COPYING.  If not, a copy
18044
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18045
# obtained by writing to the Free Software Foundation, Inc.,
18046
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18047
 
18048
 
18049
# The names of the tagged configurations supported by this script.
18050
available_tags="FC "
18051
 
18052
# ### BEGIN LIBTOOL CONFIG
18053
 
18054
# Which release of libtool.m4 was used?
18055
macro_version=$macro_version
18056
macro_revision=$macro_revision
18057
 
18058
# Whether or not to build shared libraries.
18059
build_libtool_libs=$enable_shared
18060
 
18061
# Whether or not to build static libraries.
18062
build_old_libs=$enable_static
18063
 
18064
# What type of objects to build.
18065
pic_mode=$pic_mode
18066
 
18067
# Whether or not to optimize for fast installation.
18068
fast_install=$enable_fast_install
18069
 
18070
# Shell to use when invoking shell scripts.
18071
SHELL=$lt_SHELL
18072
 
18073
# An echo program that protects backslashes.
18074
ECHO=$lt_ECHO
18075
 
18076
# The host system.
18077
host_alias=$host_alias
18078
host=$host
18079
host_os=$host_os
18080
 
18081
# The build system.
18082
build_alias=$build_alias
18083
build=$build
18084
build_os=$build_os
18085
 
18086
# A sed program that does not truncate output.
18087
SED=$lt_SED
18088
 
18089
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18090
Xsed="\$SED -e 1s/^X//"
18091
 
18092
# A grep program that handles long lines.
18093
GREP=$lt_GREP
18094
 
18095
# An ERE matcher.
18096
EGREP=$lt_EGREP
18097
 
18098
# A literal string matcher.
18099
FGREP=$lt_FGREP
18100
 
18101
# A BSD- or MS-compatible name lister.
18102
NM=$lt_NM
18103
 
18104
# Whether we need soft or hard links.
18105
LN_S=$lt_LN_S
18106
 
18107
# What is the maximum length of a command?
18108
max_cmd_len=$max_cmd_len
18109
 
18110
# Object file suffix (normally "o").
18111
objext=$ac_objext
18112
 
18113
# Executable file suffix (normally "").
18114
exeext=$exeext
18115
 
18116
# whether the shell understands "unset".
18117
lt_unset=$lt_unset
18118
 
18119
# turn spaces into newlines.
18120
SP2NL=$lt_lt_SP2NL
18121
 
18122
# turn newlines into spaces.
18123
NL2SP=$lt_lt_NL2SP
18124
 
18125
# An object symbol dumper.
18126
OBJDUMP=$lt_OBJDUMP
18127
 
18128
# Method to check whether dependent libraries are shared objects.
18129
deplibs_check_method=$lt_deplibs_check_method
18130
 
18131
# Command to use when deplibs_check_method == "file_magic".
18132
file_magic_cmd=$lt_file_magic_cmd
18133
 
18134
# The archiver.
18135
AR=$lt_AR
18136
AR_FLAGS=$lt_AR_FLAGS
18137
 
18138
# A symbol stripping program.
18139
STRIP=$lt_STRIP
18140
 
18141
# Commands used to install an old-style archive.
18142
RANLIB=$lt_RANLIB
18143
old_postinstall_cmds=$lt_old_postinstall_cmds
18144
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18145
 
18146
# Whether to use a lock for old archive extraction.
18147
lock_old_archive_extraction=$lock_old_archive_extraction
18148
 
18149
# A C compiler.
18150
LTCC=$lt_CC
18151
 
18152
# LTCC compiler flags.
18153
LTCFLAGS=$lt_CFLAGS
18154
 
18155
# Take the output of nm and produce a listing of raw symbols and C names.
18156
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18157
 
18158
# Transform the output of nm in a proper C declaration.
18159
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18160
 
18161
# Transform the output of nm in a C name address pair.
18162
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18163
 
18164
# Transform the output of nm in a C name address pair when lib prefix is needed.
18165
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18166
 
18167
# The name of the directory that contains temporary libtool files.
18168
objdir=$objdir
18169
 
18170
# Used to examine libraries when file_magic_cmd begins with "file".
18171
MAGIC_CMD=$MAGIC_CMD
18172
 
18173
# Must we lock files when doing compilation?
18174
need_locks=$lt_need_locks
18175
 
18176
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18177
DSYMUTIL=$lt_DSYMUTIL
18178
 
18179
# Tool to change global to local symbols on Mac OS X.
18180
NMEDIT=$lt_NMEDIT
18181
 
18182
# Tool to manipulate fat objects and archives on Mac OS X.
18183
LIPO=$lt_LIPO
18184
 
18185
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18186
OTOOL=$lt_OTOOL
18187
 
18188
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18189
OTOOL64=$lt_OTOOL64
18190
 
18191
# Old archive suffix (normally "a").
18192
libext=$libext
18193
 
18194
# Shared library suffix (normally ".so").
18195
shrext_cmds=$lt_shrext_cmds
18196
 
18197
# The commands to extract the exported symbol list from a shared archive.
18198
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18199
 
18200
# Variables whose values should be saved in libtool wrapper scripts and
18201
# restored at link time.
18202
variables_saved_for_relink=$lt_variables_saved_for_relink
18203
 
18204
# Do we need the "lib" prefix for modules?
18205
need_lib_prefix=$need_lib_prefix
18206
 
18207
# Do we need a version for libraries?
18208
need_version=$need_version
18209
 
18210
# Library versioning type.
18211
version_type=$version_type
18212
 
18213
# Shared library runtime path variable.
18214
runpath_var=$runpath_var
18215
 
18216
# Shared library path variable.
18217
shlibpath_var=$shlibpath_var
18218
 
18219
# Is shlibpath searched before the hard-coded library search path?
18220
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18221
 
18222
# Format of library name prefix.
18223
libname_spec=$lt_libname_spec
18224
 
18225
# List of archive names.  First name is the real one, the rest are links.
18226
# The last name is the one that the linker finds with -lNAME
18227
library_names_spec=$lt_library_names_spec
18228
 
18229
# The coded name of the library, if different from the real name.
18230
soname_spec=$lt_soname_spec
18231
 
18232
# Permission mode override for installation of shared libraries.
18233
install_override_mode=$lt_install_override_mode
18234
 
18235
# Command to use after installation of a shared archive.
18236
postinstall_cmds=$lt_postinstall_cmds
18237
 
18238
# Command to use after uninstallation of a shared archive.
18239
postuninstall_cmds=$lt_postuninstall_cmds
18240
 
18241
# Commands used to finish a libtool library installation in a directory.
18242
finish_cmds=$lt_finish_cmds
18243
 
18244
# As "finish_cmds", except a single script fragment to be evaled but
18245
# not shown.
18246
finish_eval=$lt_finish_eval
18247
 
18248
# Whether we should hardcode library paths into libraries.
18249
hardcode_into_libs=$hardcode_into_libs
18250
 
18251
# Compile-time system search path for libraries.
18252
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18253
 
18254
# Run-time system search path for libraries.
18255
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18256
 
18257
# Whether dlopen is supported.
18258
dlopen_support=$enable_dlopen
18259
 
18260
# Whether dlopen of programs is supported.
18261
dlopen_self=$enable_dlopen_self
18262
 
18263
# Whether dlopen of statically linked programs is supported.
18264
dlopen_self_static=$enable_dlopen_self_static
18265
 
18266
# Commands to strip libraries.
18267
old_striplib=$lt_old_striplib
18268
striplib=$lt_striplib
18269
 
18270
 
18271
# The linker used to build libraries.
18272
LD=$lt_LD
18273
 
18274
# How to create reloadable object files.
18275
reload_flag=$lt_reload_flag
18276
reload_cmds=$lt_reload_cmds
18277
 
18278
# Commands used to build an old-style archive.
18279
old_archive_cmds=$lt_old_archive_cmds
18280
 
18281
# A language specific compiler.
18282
CC=$lt_compiler
18283
 
18284
# Is the compiler the GNU compiler?
18285
with_gcc=$GCC
18286
 
18287
# Compiler flag to turn off builtin functions.
18288
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18289
 
18290
# How to pass a linker flag through the compiler.
18291
wl=$lt_lt_prog_compiler_wl
18292
 
18293
# Additional compiler flags for building library objects.
18294
pic_flag=$lt_lt_prog_compiler_pic
18295
 
18296
# Compiler flag to prevent dynamic linking.
18297
link_static_flag=$lt_lt_prog_compiler_static
18298
 
18299
# Does compiler simultaneously support -c and -o options?
18300
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18301
 
18302
# Whether or not to add -lc for building shared libraries.
18303
build_libtool_need_lc=$archive_cmds_need_lc
18304
 
18305
# Whether or not to disallow shared libs when runtime libs are static.
18306
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18307
 
18308
# Compiler flag to allow reflexive dlopens.
18309
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18310
 
18311
# Compiler flag to generate shared objects directly from archives.
18312
whole_archive_flag_spec=$lt_whole_archive_flag_spec
18313
 
18314
# Whether the compiler copes with passing no objects directly.
18315
compiler_needs_object=$lt_compiler_needs_object
18316
 
18317
# Create an old-style archive from a shared archive.
18318
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18319
 
18320
# Create a temporary old-style archive to link instead of a shared archive.
18321
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18322
 
18323
# Commands used to build a shared archive.
18324
archive_cmds=$lt_archive_cmds
18325
archive_expsym_cmds=$lt_archive_expsym_cmds
18326
 
18327
# Commands used to build a loadable module if different from building
18328
# a shared archive.
18329
module_cmds=$lt_module_cmds
18330
module_expsym_cmds=$lt_module_expsym_cmds
18331
 
18332
# Whether we are building with GNU ld or not.
18333
with_gnu_ld=$lt_with_gnu_ld
18334
 
18335
# Flag that allows shared libraries with undefined symbols to be built.
18336
allow_undefined_flag=$lt_allow_undefined_flag
18337
 
18338
# Flag that enforces no undefined symbols.
18339
no_undefined_flag=$lt_no_undefined_flag
18340
 
18341
# Flag to hardcode \$libdir into a binary during linking.
18342
# This must work even if \$libdir does not exist
18343
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18344
 
18345
# If ld is used when linking, flag to hardcode \$libdir into a binary
18346
# during linking.  This must work even if \$libdir does not exist.
18347
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18348
 
18349
# Whether we need a single "-rpath" flag with a separated argument.
18350
hardcode_libdir_separator=$lt_hardcode_libdir_separator
18351
 
18352
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18353
# DIR into the resulting binary.
18354
hardcode_direct=$hardcode_direct
18355
 
18356
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18357
# DIR into the resulting binary and the resulting library dependency is
18358
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18359
# library is relocated.
18360
hardcode_direct_absolute=$hardcode_direct_absolute
18361
 
18362
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18363
# into the resulting binary.
18364
hardcode_minus_L=$hardcode_minus_L
18365
 
18366
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18367
# into the resulting binary.
18368
hardcode_shlibpath_var=$hardcode_shlibpath_var
18369
 
18370
# Set to "yes" if building a shared library automatically hardcodes DIR
18371
# into the library and all subsequent libraries and executables linked
18372
# against it.
18373
hardcode_automatic=$hardcode_automatic
18374
 
18375
# Set to yes if linker adds runtime paths of dependent libraries
18376
# to runtime path list.
18377
inherit_rpath=$inherit_rpath
18378
 
18379
# Whether libtool must link a program against all its dependency libraries.
18380
link_all_deplibs=$link_all_deplibs
18381
 
18382
# Fix the shell variable \$srcfile for the compiler.
18383
fix_srcfile_path=$lt_fix_srcfile_path
18384
 
18385
# Set to "yes" if exported symbols are required.
18386
always_export_symbols=$always_export_symbols
18387
 
18388
# The commands to list exported symbols.
18389
export_symbols_cmds=$lt_export_symbols_cmds
18390
 
18391
# Symbols that should not be listed in the preloaded symbols.
18392
exclude_expsyms=$lt_exclude_expsyms
18393
 
18394
# Symbols that must always be exported.
18395
include_expsyms=$lt_include_expsyms
18396
 
18397
# Commands necessary for linking programs (against libraries) with templates.
18398
prelink_cmds=$lt_prelink_cmds
18399
 
18400
# Specify filename containing input files.
18401
file_list_spec=$lt_file_list_spec
18402
 
18403
# How to hardcode a shared library path into an executable.
18404
hardcode_action=$hardcode_action
18405
 
18406
# The directories searched by this compiler when creating a shared library.
18407
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18408
 
18409
# Dependencies to place before and after the objects being linked to
18410
# create a shared library.
18411
predep_objects=$lt_predep_objects
18412
postdep_objects=$lt_postdep_objects
18413
predeps=$lt_predeps
18414
postdeps=$lt_postdeps
18415
 
18416
# The library search path used internally by the compiler when linking
18417
# a shared library.
18418
compiler_lib_search_path=$lt_compiler_lib_search_path
18419
 
18420
# ### END LIBTOOL CONFIG
18421
 
18422
_LT_EOF
18423
 
18424
  case $host_os in
18425
  aix3*)
18426
    cat <<\_LT_EOF >> "$cfgfile"
18427
# AIX sometimes has problems with the GCC collect2 program.  For some
18428
# reason, if we set the COLLECT_NAMES environment variable, the problems
18429
# vanish in a puff of smoke.
18430
if test "X${COLLECT_NAMES+set}" != Xset; then
18431
  COLLECT_NAMES=
18432
  export COLLECT_NAMES
18433
fi
18434
_LT_EOF
18435
    ;;
18436
  esac
18437
 
18438
 
18439
ltmain="$ac_aux_dir/ltmain.sh"
18440
 
18441
 
18442
  # We use sed instead of cat because bash on DJGPP gets confused if
18443
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18444
  # text mode, it properly converts lines to CR/LF.  This bash problem
18445
  # is reportedly fixed, but why not run on old versions too?
18446
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18447
    || (rm -f "$cfgfile"; exit 1)
18448
 
18449
  case $xsi_shell in
18450
  yes)
18451
    cat << \_LT_EOF >> "$cfgfile"
18452
 
18453
# func_dirname file append nondir_replacement
18454
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18455
# otherwise set result to NONDIR_REPLACEMENT.
18456
func_dirname ()
18457
{
18458
  case ${1} in
18459
    */*) func_dirname_result="${1%/*}${2}" ;;
18460
    *  ) func_dirname_result="${3}" ;;
18461
  esac
18462
}
18463
 
18464
# func_basename file
18465
func_basename ()
18466
{
18467
  func_basename_result="${1##*/}"
18468
}
18469
 
18470
# func_dirname_and_basename file append nondir_replacement
18471
# perform func_basename and func_dirname in a single function
18472
# call:
18473
#   dirname:  Compute the dirname of FILE.  If nonempty,
18474
#             add APPEND to the result, otherwise set result
18475
#             to NONDIR_REPLACEMENT.
18476
#             value returned in "$func_dirname_result"
18477
#   basename: Compute filename of FILE.
18478
#             value retuned in "$func_basename_result"
18479
# Implementation must be kept synchronized with func_dirname
18480
# and func_basename. For efficiency, we do not delegate to
18481
# those functions but instead duplicate the functionality here.
18482
func_dirname_and_basename ()
18483
{
18484
  case ${1} in
18485
    */*) func_dirname_result="${1%/*}${2}" ;;
18486
    *  ) func_dirname_result="${3}" ;;
18487
  esac
18488
  func_basename_result="${1##*/}"
18489
}
18490
 
18491
# func_stripname prefix suffix name
18492
# strip PREFIX and SUFFIX off of NAME.
18493
# PREFIX and SUFFIX must not contain globbing or regex special
18494
# characters, hashes, percent signs, but SUFFIX may contain a leading
18495
# dot (in which case that matches only a dot).
18496
func_stripname ()
18497
{
18498
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18499
  # positional parameters, so assign one to ordinary parameter first.
18500
  func_stripname_result=${3}
18501
  func_stripname_result=${func_stripname_result#"${1}"}
18502
  func_stripname_result=${func_stripname_result%"${2}"}
18503
}
18504
 
18505
# func_opt_split
18506
func_opt_split ()
18507
{
18508
  func_opt_split_opt=${1%%=*}
18509
  func_opt_split_arg=${1#*=}
18510
}
18511
 
18512
# func_lo2o object
18513
func_lo2o ()
18514
{
18515
  case ${1} in
18516
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18517
    *)    func_lo2o_result=${1} ;;
18518
  esac
18519
}
18520
 
18521
# func_xform libobj-or-source
18522
func_xform ()
18523
{
18524
  func_xform_result=${1%.*}.lo
18525
}
18526
 
18527
# func_arith arithmetic-term...
18528
func_arith ()
18529
{
18530
  func_arith_result=$(( $* ))
18531
}
18532
 
18533
# func_len string
18534
# STRING may not start with a hyphen.
18535
func_len ()
18536
{
18537
  func_len_result=${#1}
18538
}
18539
 
18540
_LT_EOF
18541
    ;;
18542
  *) # Bourne compatible functions.
18543
    cat << \_LT_EOF >> "$cfgfile"
18544
 
18545
# func_dirname file append nondir_replacement
18546
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18547
# otherwise set result to NONDIR_REPLACEMENT.
18548
func_dirname ()
18549
{
18550
  # Extract subdirectory from the argument.
18551
  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18552
  if test "X$func_dirname_result" = "X${1}"; then
18553
    func_dirname_result="${3}"
18554
  else
18555
    func_dirname_result="$func_dirname_result${2}"
18556
  fi
18557
}
18558
 
18559
# func_basename file
18560
func_basename ()
18561
{
18562
  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18563
}
18564
 
18565
 
18566
# func_stripname prefix suffix name
18567
# strip PREFIX and SUFFIX off of NAME.
18568
# PREFIX and SUFFIX must not contain globbing or regex special
18569
# characters, hashes, percent signs, but SUFFIX may contain a leading
18570
# dot (in which case that matches only a dot).
18571
# func_strip_suffix prefix name
18572
func_stripname ()
18573
{
18574
  case ${2} in
18575
    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18576
    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18577
  esac
18578
}
18579
 
18580
# sed scripts:
18581
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18582
my_sed_long_arg='1s/^-[^=]*=//'
18583
 
18584
# func_opt_split
18585
func_opt_split ()
18586
{
18587
  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18588
  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18589
}
18590
 
18591
# func_lo2o object
18592
func_lo2o ()
18593
{
18594
  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18595
}
18596
 
18597
# func_xform libobj-or-source
18598
func_xform ()
18599
{
18600
  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18601
}
18602
 
18603
# func_arith arithmetic-term...
18604
func_arith ()
18605
{
18606
  func_arith_result=`expr "$@"`
18607
}
18608
 
18609
# func_len string
18610
# STRING may not start with a hyphen.
18611
func_len ()
18612
{
18613
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18614
}
18615
 
18616
_LT_EOF
18617
esac
18618
 
18619
case $lt_shell_append in
18620
  yes)
18621
    cat << \_LT_EOF >> "$cfgfile"
18622
 
18623
# func_append var value
18624
# Append VALUE to the end of shell variable VAR.
18625
func_append ()
18626
{
18627
  eval "$1+=\$2"
18628
}
18629
_LT_EOF
18630
    ;;
18631
  *)
18632
    cat << \_LT_EOF >> "$cfgfile"
18633
 
18634
# func_append var value
18635
# Append VALUE to the end of shell variable VAR.
18636
func_append ()
18637
{
18638
  eval "$1=\$$1\$2"
18639
}
18640
 
18641
_LT_EOF
18642
    ;;
18643
  esac
18644
 
18645
 
18646
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18647
    || (rm -f "$cfgfile"; exit 1)
18648
 
18649
  mv -f "$cfgfile" "$ofile" ||
18650
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18651
  chmod +x "$ofile"
18652
 
18653
 
18654
    cat <<_LT_EOF >> "$ofile"
18655
 
18656
# ### BEGIN LIBTOOL TAG CONFIG: FC
18657
 
18658
# The linker used to build libraries.
18659
LD=$lt_LD_FC
18660
 
18661
# How to create reloadable object files.
18662
reload_flag=$lt_reload_flag_FC
18663
reload_cmds=$lt_reload_cmds_FC
18664
 
18665
# Commands used to build an old-style archive.
18666
old_archive_cmds=$lt_old_archive_cmds_FC
18667
 
18668
# A language specific compiler.
18669
CC=$lt_compiler_FC
18670
 
18671
# Is the compiler the GNU compiler?
18672
with_gcc=$GCC_FC
18673
 
18674
# Compiler flag to turn off builtin functions.
18675
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
18676
 
18677
# How to pass a linker flag through the compiler.
18678
wl=$lt_lt_prog_compiler_wl_FC
18679
 
18680
# Additional compiler flags for building library objects.
18681
pic_flag=$lt_lt_prog_compiler_pic_FC
18682
 
18683
# Compiler flag to prevent dynamic linking.
18684
link_static_flag=$lt_lt_prog_compiler_static_FC
18685
 
18686
# Does compiler simultaneously support -c and -o options?
18687
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
18688
 
18689
# Whether or not to add -lc for building shared libraries.
18690
build_libtool_need_lc=$archive_cmds_need_lc_FC
18691
 
18692
# Whether or not to disallow shared libs when runtime libs are static.
18693
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
18694
 
18695
# Compiler flag to allow reflexive dlopens.
18696
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
18697
 
18698
# Compiler flag to generate shared objects directly from archives.
18699
whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
18700
 
18701
# Whether the compiler copes with passing no objects directly.
18702
compiler_needs_object=$lt_compiler_needs_object_FC
18703
 
18704
# Create an old-style archive from a shared archive.
18705
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
18706
 
18707
# Create a temporary old-style archive to link instead of a shared archive.
18708
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
18709
 
18710
# Commands used to build a shared archive.
18711
archive_cmds=$lt_archive_cmds_FC
18712
archive_expsym_cmds=$lt_archive_expsym_cmds_FC
18713
 
18714
# Commands used to build a loadable module if different from building
18715
# a shared archive.
18716
module_cmds=$lt_module_cmds_FC
18717
module_expsym_cmds=$lt_module_expsym_cmds_FC
18718
 
18719
# Whether we are building with GNU ld or not.
18720
with_gnu_ld=$lt_with_gnu_ld_FC
18721
 
18722
# Flag that allows shared libraries with undefined symbols to be built.
18723
allow_undefined_flag=$lt_allow_undefined_flag_FC
18724
 
18725
# Flag that enforces no undefined symbols.
18726
no_undefined_flag=$lt_no_undefined_flag_FC
18727
 
18728
# Flag to hardcode \$libdir into a binary during linking.
18729
# This must work even if \$libdir does not exist
18730
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
18731
 
18732
# If ld is used when linking, flag to hardcode \$libdir into a binary
18733
# during linking.  This must work even if \$libdir does not exist.
18734
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
18735
 
18736
# Whether we need a single "-rpath" flag with a separated argument.
18737
hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
18738
 
18739
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18740
# DIR into the resulting binary.
18741
hardcode_direct=$hardcode_direct_FC
18742
 
18743
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18744
# DIR into the resulting binary and the resulting library dependency is
18745
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18746
# library is relocated.
18747
hardcode_direct_absolute=$hardcode_direct_absolute_FC
18748
 
18749
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18750
# into the resulting binary.
18751
hardcode_minus_L=$hardcode_minus_L_FC
18752
 
18753
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18754
# into the resulting binary.
18755
hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
18756
 
18757
# Set to "yes" if building a shared library automatically hardcodes DIR
18758
# into the library and all subsequent libraries and executables linked
18759
# against it.
18760
hardcode_automatic=$hardcode_automatic_FC
18761
 
18762
# Set to yes if linker adds runtime paths of dependent libraries
18763
# to runtime path list.
18764
inherit_rpath=$inherit_rpath_FC
18765
 
18766
# Whether libtool must link a program against all its dependency libraries.
18767
link_all_deplibs=$link_all_deplibs_FC
18768
 
18769
# Fix the shell variable \$srcfile for the compiler.
18770
fix_srcfile_path=$lt_fix_srcfile_path_FC
18771
 
18772
# Set to "yes" if exported symbols are required.
18773
always_export_symbols=$always_export_symbols_FC
18774
 
18775
# The commands to list exported symbols.
18776
export_symbols_cmds=$lt_export_symbols_cmds_FC
18777
 
18778
# Symbols that should not be listed in the preloaded symbols.
18779
exclude_expsyms=$lt_exclude_expsyms_FC
18780
 
18781
# Symbols that must always be exported.
18782
include_expsyms=$lt_include_expsyms_FC
18783
 
18784
# Commands necessary for linking programs (against libraries) with templates.
18785
prelink_cmds=$lt_prelink_cmds_FC
18786
 
18787
# Specify filename containing input files.
18788
file_list_spec=$lt_file_list_spec_FC
18789
 
18790
# How to hardcode a shared library path into an executable.
18791
hardcode_action=$hardcode_action_FC
18792
 
18793
# The directories searched by this compiler when creating a shared library.
18794
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
18795
 
18796
# Dependencies to place before and after the objects being linked to
18797
# create a shared library.
18798
predep_objects=$lt_predep_objects_FC
18799
postdep_objects=$lt_postdep_objects_FC
18800
predeps=$lt_predeps_FC
18801
postdeps=$lt_postdeps_FC
18802
 
18803
# The library search path used internally by the compiler when linking
18804
# a shared library.
18805
compiler_lib_search_path=$lt_compiler_lib_search_path_FC
18806
 
18807
# ### END LIBTOOL TAG CONFIG: FC
18808
_LT_EOF
18809
 
18810
 ;;
18811
    "gstdint.h":C)
18812
if test "$GCC" = yes; then
18813
  echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18814
else
18815
  echo "/* generated for $CC */" > tmp-stdint.h
18816
fi
18817
 
18818
sed 's/^ *//' >> tmp-stdint.h <
18819
 
18820
  #ifndef GCC_GENERATED_STDINT_H
18821
  #define GCC_GENERATED_STDINT_H 1
18822
 
18823
  #include 
18824
EOF
18825
 
18826
if test "$acx_cv_header_stdint" != stdint.h; then
18827
  echo "#include " >> tmp-stdint.h
18828
fi
18829
if test "$acx_cv_header_stdint" != stddef.h; then
18830
  echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18831
fi
18832
 
18833
sed 's/^ *//' >> tmp-stdint.h <
18834
  /* glibc uses these symbols as guards to prevent redefinitions.  */
18835
  #ifdef __int8_t_defined
18836
  #define _INT8_T
18837
  #define _INT16_T
18838
  #define _INT32_T
18839
  #endif
18840
  #ifdef __uint32_t_defined
18841
  #define _UINT32_T
18842
  #endif
18843
 
18844
EOF
18845
 
18846
# ----------------- done header, emit basic int types -------------
18847
if test "$acx_cv_header_stdint" = stddef.h; then
18848
  sed 's/^ *//' >> tmp-stdint.h <
18849
 
18850
    #ifndef _UINT8_T
18851
    #define _UINT8_T
18852
    #ifndef __uint8_t_defined
18853
    #define __uint8_t_defined
18854
    #ifndef uint8_t
18855
    typedef unsigned $acx_cv_type_int8_t uint8_t;
18856
    #endif
18857
    #endif
18858
    #endif
18859
 
18860
    #ifndef _UINT16_T
18861
    #define _UINT16_T
18862
    #ifndef __uint16_t_defined
18863
    #define __uint16_t_defined
18864
    #ifndef uint16_t
18865
    typedef unsigned $acx_cv_type_int16_t uint16_t;
18866
    #endif
18867
    #endif
18868
    #endif
18869
 
18870
    #ifndef _UINT32_T
18871
    #define _UINT32_T
18872
    #ifndef __uint32_t_defined
18873
    #define __uint32_t_defined
18874
    #ifndef uint32_t
18875
    typedef unsigned $acx_cv_type_int32_t uint32_t;
18876
    #endif
18877
    #endif
18878
    #endif
18879
 
18880
    #ifndef _INT8_T
18881
    #define _INT8_T
18882
    #ifndef __int8_t_defined
18883
    #define __int8_t_defined
18884
    #ifndef int8_t
18885
    typedef $acx_cv_type_int8_t int8_t;
18886
    #endif
18887
    #endif
18888
    #endif
18889
 
18890
    #ifndef _INT16_T
18891
    #define _INT16_T
18892
    #ifndef __int16_t_defined
18893
    #define __int16_t_defined
18894
    #ifndef int16_t
18895
    typedef $acx_cv_type_int16_t int16_t;
18896
    #endif
18897
    #endif
18898
    #endif
18899
 
18900
    #ifndef _INT32_T
18901
    #define _INT32_T
18902
    #ifndef __int32_t_defined
18903
    #define __int32_t_defined
18904
    #ifndef int32_t
18905
    typedef $acx_cv_type_int32_t int32_t;
18906
    #endif
18907
    #endif
18908
    #endif
18909
EOF
18910
elif test "$ac_cv_type_u_int32_t" = yes; then
18911
  sed 's/^ *//' >> tmp-stdint.h <
18912
 
18913
    /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18914
    #ifndef _INT8_T
18915
    #define _INT8_T
18916
    #endif
18917
    #ifndef _INT16_T
18918
    #define _INT16_T
18919
    #endif
18920
    #ifndef _INT32_T
18921
    #define _INT32_T
18922
    #endif
18923
 
18924
    #ifndef _UINT8_T
18925
    #define _UINT8_T
18926
    #ifndef __uint8_t_defined
18927
    #define __uint8_t_defined
18928
    #ifndef uint8_t
18929
    typedef u_int8_t uint8_t;
18930
    #endif
18931
    #endif
18932
    #endif
18933
 
18934
    #ifndef _UINT16_T
18935
    #define _UINT16_T
18936
    #ifndef __uint16_t_defined
18937
    #define __uint16_t_defined
18938
    #ifndef uint16_t
18939
    typedef u_int16_t uint16_t;
18940
    #endif
18941
    #endif
18942
    #endif
18943
 
18944
    #ifndef _UINT32_T
18945
    #define _UINT32_T
18946
    #ifndef __uint32_t_defined
18947
    #define __uint32_t_defined
18948
    #ifndef uint32_t
18949
    typedef u_int32_t uint32_t;
18950
    #endif
18951
    #endif
18952
    #endif
18953
EOF
18954
else
18955
  sed 's/^ *//' >> tmp-stdint.h <
18956
 
18957
    /* Some systems have guard macros to prevent redefinitions, define them.  */
18958
    #ifndef _INT8_T
18959
    #define _INT8_T
18960
    #endif
18961
    #ifndef _INT16_T
18962
    #define _INT16_T
18963
    #endif
18964
    #ifndef _INT32_T
18965
    #define _INT32_T
18966
    #endif
18967
    #ifndef _UINT8_T
18968
    #define _UINT8_T
18969
    #endif
18970
    #ifndef _UINT16_T
18971
    #define _UINT16_T
18972
    #endif
18973
    #ifndef _UINT32_T
18974
    #define _UINT32_T
18975
    #endif
18976
EOF
18977
fi
18978
 
18979
# ------------- done basic int types, emit int64_t types ------------
18980
if test "$ac_cv_type_uint64_t" = yes; then
18981
  sed 's/^ *//' >> tmp-stdint.h <
18982
 
18983
    /* system headers have good uint64_t and int64_t */
18984
    #ifndef _INT64_T
18985
    #define _INT64_T
18986
    #endif
18987
    #ifndef _UINT64_T
18988
    #define _UINT64_T
18989
    #endif
18990
EOF
18991
elif test "$ac_cv_type_u_int64_t" = yes; then
18992
  sed 's/^ *//' >> tmp-stdint.h <
18993
 
18994
    /* system headers have an u_int64_t (and int64_t) */
18995
    #ifndef _INT64_T
18996
    #define _INT64_T
18997
    #endif
18998
    #ifndef _UINT64_T
18999
    #define _UINT64_T
19000
    #ifndef __uint64_t_defined
19001
    #define __uint64_t_defined
19002
    #ifndef uint64_t
19003
    typedef u_int64_t uint64_t;
19004
    #endif
19005
    #endif
19006
    #endif
19007
EOF
19008
elif test -n "$acx_cv_type_int64_t"; then
19009
  sed 's/^ *//' >> tmp-stdint.h <
19010
 
19011
    /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19012
    #ifndef _INT64_T
19013
    #define _INT64_T
19014
    #ifndef int64_t
19015
    typedef $acx_cv_type_int64_t int64_t;
19016
    #endif
19017
    #endif
19018
    #ifndef _UINT64_T
19019
    #define _UINT64_T
19020
    #ifndef __uint64_t_defined
19021
    #define __uint64_t_defined
19022
    #ifndef uint64_t
19023
    typedef unsigned $acx_cv_type_int64_t uint64_t;
19024
    #endif
19025
    #endif
19026
    #endif
19027
EOF
19028
else
19029
  sed 's/^ *//' >> tmp-stdint.h <
19030
 
19031
    /* some common heuristics for int64_t, using compiler-specific tests */
19032
    #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19033
    #ifndef _INT64_T
19034
    #define _INT64_T
19035
    #ifndef __int64_t_defined
19036
    #ifndef int64_t
19037
    typedef long long int64_t;
19038
    #endif
19039
    #endif
19040
    #endif
19041
    #ifndef _UINT64_T
19042
    #define _UINT64_T
19043
    #ifndef uint64_t
19044
    typedef unsigned long long uint64_t;
19045
    #endif
19046
    #endif
19047
 
19048
    #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19049
    /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19050
       does not implement __extension__.  But that compiler doesn't define
19051
       __GNUC_MINOR__.  */
19052
    # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19053
    # define __extension__
19054
    # endif
19055
 
19056
    # ifndef _INT64_T
19057
    # define _INT64_T
19058
    # ifndef int64_t
19059
    __extension__ typedef long long int64_t;
19060
    # endif
19061
    # endif
19062
    # ifndef _UINT64_T
19063
    # define _UINT64_T
19064
    # ifndef uint64_t
19065
    __extension__ typedef unsigned long long uint64_t;
19066
    # endif
19067
    # endif
19068
 
19069
    #elif !defined __STRICT_ANSI__
19070
    # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19071
 
19072
    #  ifndef _INT64_T
19073
    #  define _INT64_T
19074
    #  ifndef int64_t
19075
    typedef __int64 int64_t;
19076
    #  endif
19077
    #  endif
19078
    #  ifndef _UINT64_T
19079
    #  define _UINT64_T
19080
    #  ifndef uint64_t
19081
    typedef unsigned __int64 uint64_t;
19082
    #  endif
19083
    #  endif
19084
    # endif /* compiler */
19085
 
19086
    #endif /* ANSI version */
19087
EOF
19088
fi
19089
 
19090
# ------------- done int64_t types, emit intptr types ------------
19091
if test "$ac_cv_type_uintptr_t" != yes; then
19092
  sed 's/^ *//' >> tmp-stdint.h <
19093
 
19094
    /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19095
    #ifndef __uintptr_t_defined
19096
    #ifndef uintptr_t
19097
    typedef u$acx_cv_type_intptr_t uintptr_t;
19098
    #endif
19099
    #endif
19100
    #ifndef __intptr_t_defined
19101
    #ifndef intptr_t
19102
    typedef $acx_cv_type_intptr_t  intptr_t;
19103
    #endif
19104
    #endif
19105
EOF
19106
fi
19107
 
19108
# ------------- done intptr types, emit int_least types ------------
19109
if test "$ac_cv_type_int_least32_t" != yes; then
19110
  sed 's/^ *//' >> tmp-stdint.h <
19111
 
19112
    /* Define int_least types */
19113
    typedef int8_t     int_least8_t;
19114
    typedef int16_t    int_least16_t;
19115
    typedef int32_t    int_least32_t;
19116
    #ifdef _INT64_T
19117
    typedef int64_t    int_least64_t;
19118
    #endif
19119
 
19120
    typedef uint8_t    uint_least8_t;
19121
    typedef uint16_t   uint_least16_t;
19122
    typedef uint32_t   uint_least32_t;
19123
    #ifdef _UINT64_T
19124
    typedef uint64_t   uint_least64_t;
19125
    #endif
19126
EOF
19127
fi
19128
 
19129
# ------------- done intptr types, emit int_fast types ------------
19130
if test "$ac_cv_type_int_fast32_t" != yes; then
19131
      sed 's/^ *//' >> tmp-stdint.h <
19132
 
19133
    /* Define int_fast types.  short is often slow */
19134
    typedef int8_t       int_fast8_t;
19135
    typedef int          int_fast16_t;
19136
    typedef int32_t      int_fast32_t;
19137
    #ifdef _INT64_T
19138
    typedef int64_t      int_fast64_t;
19139
    #endif
19140
 
19141
    typedef uint8_t      uint_fast8_t;
19142
    typedef unsigned int uint_fast16_t;
19143
    typedef uint32_t     uint_fast32_t;
19144
    #ifdef _UINT64_T
19145
    typedef uint64_t     uint_fast64_t;
19146
    #endif
19147
EOF
19148
fi
19149
 
19150
if test "$ac_cv_type_uintmax_t" != yes; then
19151
  sed 's/^ *//' >> tmp-stdint.h <
19152
 
19153
    /* Define intmax based on what we found */
19154
    #ifndef intmax_t
19155
    #ifdef _INT64_T
19156
    typedef int64_t       intmax_t;
19157
    #else
19158
    typedef long          intmax_t;
19159
    #endif
19160
    #endif
19161
    #ifndef uintmax_t
19162
    #ifdef _UINT64_T
19163
    typedef uint64_t      uintmax_t;
19164
    #else
19165
    typedef unsigned long uintmax_t;
19166
    #endif
19167
    #endif
19168
EOF
19169
fi
19170
 
19171
sed 's/^ *//' >> tmp-stdint.h <
19172
 
19173
  #endif /* GCC_GENERATED_STDINT_H */
19174
EOF
19175
 
19176
if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19177
  rm -f tmp-stdint.h
19178
else
19179
  mv -f tmp-stdint.h gstdint.h
19180
fi
19181
 
19182
 ;;
19183
 
19184
  esac
19185
done # for ac_tag
19186
 
19187
 
19188
as_fn_exit 0
19189
_ACEOF
19190
ac_clean_files=$ac_clean_files_save
19191
 
19192
test $ac_write_fail = 0 ||
19193
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19194
 
19195
 
19196
# configure is writing to config.log, and then calls config.status.
19197
# config.status does its own redirection, appending to config.log.
19198
# Unfortunately, on DOS this fails, as config.log is still kept open
19199
# by configure, so config.status won't be able to write to it; its
19200
# output is simply discarded.  So we exec the FD to /dev/null,
19201
# effectively closing config.log, so it can be properly (re)opened and
19202
# appended to by config.status.  When coming back to configure, we
19203
# need to make the FD available again.
19204
if test "$no_create" != yes; then
19205
  ac_cs_success=:
19206
  ac_config_status_args=
19207
  test "$silent" = yes &&
19208
    ac_config_status_args="$ac_config_status_args --quiet"
19209
  exec 5>/dev/null
19210
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19211
  exec 5>>config.log
19212
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19213
  # would make configure fail if this is the last instruction.
19214
  $ac_cs_success || as_fn_exit $?
19215
fi
19216
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19217
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19218
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19219
fi
19220
 

powered by: WebSVN 2.1.0

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