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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [sys/] [linux/] [configure] - Blame information for rev 207

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.63 for newlib 1.18.0.
4
#
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization.  ##
11
## --------------------- ##
12
 
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
  emulate sh
17
  NULLCMD=:
18
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19
  # is contrary to our usage.  Disable this feature.
20
  alias -g '${1+"$@"}'='"$@"'
21
  setopt NO_GLOB_SUBST
22
else
23
  case `(set -o) 2>/dev/null` in
24
  *posix*) set -o posix ;;
25
esac
26
 
27
fi
28
 
29
 
30
 
31
 
32
# PATH needs CR
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
39
 
40
as_nl='
41
'
42
export as_nl
43
# Printing a long string crashes Solaris 7 /usr/bin/printf.
44
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47
if (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
# Support unset when possible.
82
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83
  as_unset=unset
84
else
85
  as_unset=false
86
fi
87
 
88
 
89
# IFS
90
# We need space, tab and new line, in precisely that order.  Quoting is
91
# there to prevent editors from complaining about space-tab.
92
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93
# splitting by setting IFS to empty value.)
94
IFS=" ""        $as_nl"
95
 
96
# Find who we are.  Look in the path if we contain no directory separator.
97
case $0 in
98
  *[\\/]* ) as_myself=$0 ;;
99
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
for as_dir in $PATH
101
do
102
  IFS=$as_save_IFS
103
  test -z "$as_dir" && as_dir=.
104
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
done
106
IFS=$as_save_IFS
107
 
108
     ;;
109
esac
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
111
# in which case we are not to be found in the path.
112
if test "x$as_myself" = x; then
113
  as_myself=$0
114
fi
115
if test ! -f "$as_myself"; then
116
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
  { (exit 1); exit 1; }
118
fi
119
 
120
# Work around bugs in pre-3.0 UWIN ksh.
121
for as_var in ENV MAIL MAILPATH
122
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123
done
124
PS1='$ '
125
PS2='> '
126
PS4='+ '
127
 
128
# NLS nuisances.
129
LC_ALL=C
130
export LC_ALL
131
LANGUAGE=C
132
export LANGUAGE
133
 
134
# Required to use basename.
135
if expr a : '\(a\)' >/dev/null 2>&1 &&
136
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137
  as_expr=expr
138
else
139
  as_expr=false
140
fi
141
 
142
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143
  as_basename=basename
144
else
145
  as_basename=false
146
fi
147
 
148
 
149
# Name of the executable.
150
as_me=`$as_basename -- "$0" ||
151
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152
         X"$0" : 'X\(//\)$' \| \
153
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154
$as_echo X/"$0" |
155
    sed '/^.*\/\([^/][^/]*\)\/*$/{
156
            s//\1/
157
            q
158
          }
159
          /^X\/\(\/\/\)$/{
160
            s//\1/
161
            q
162
          }
163
          /^X\/\(\/\).*/{
164
            s//\1/
165
            q
166
          }
167
          s/.*/./; q'`
168
 
169
# CDPATH.
170
$as_unset CDPATH
171
 
172
 
173
if test "x$CONFIG_SHELL" = x; then
174
  if (eval ":") 2>/dev/null; then
175
  as_have_required=yes
176
else
177
  as_have_required=no
178
fi
179
 
180
  if test $as_have_required = yes &&     (eval ":
181
(as_func_return () {
182
  (exit \$1)
183
}
184
as_func_success () {
185
  as_func_return 0
186
}
187
as_func_failure () {
188
  as_func_return 1
189
}
190
as_func_ret_success () {
191
  return 0
192
}
193
as_func_ret_failure () {
194
  return 1
195
}
196
 
197
exitcode=0
198
if as_func_success; then
199
  :
200
else
201
  exitcode=1
202
  echo as_func_success failed.
203
fi
204
 
205
if as_func_failure; then
206
  exitcode=1
207
  echo as_func_failure succeeded.
208
fi
209
 
210
if as_func_ret_success; then
211
  :
212
else
213
  exitcode=1
214
  echo as_func_ret_success failed.
215
fi
216
 
217
if as_func_ret_failure; then
218
  exitcode=1
219
  echo as_func_ret_failure succeeded.
220
fi
221
 
222
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223
  :
224
else
225
  exitcode=1
226
  echo positional parameters were not saved.
227
fi
228
 
229
test \$exitcode = 0) || { (exit 1); exit 1; }
230
 
231
(
232
  as_lineno_1=\$LINENO
233
  as_lineno_2=\$LINENO
234
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236
") 2> /dev/null; then
237
  :
238
else
239
  as_candidate_shells=
240
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242
do
243
  IFS=$as_save_IFS
244
  test -z "$as_dir" && as_dir=.
245
  case $as_dir in
246
         /*)
247
           for as_base in sh bash ksh sh5; do
248
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249
           done;;
250
       esac
251
done
252
IFS=$as_save_IFS
253
 
254
 
255
      for as_shell in $as_candidate_shells $SHELL; do
256
         # Try only shells that exist, to save several forks.
257
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258
                { ("$as_shell") 2> /dev/null <<\_ASEOF
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260
  emulate sh
261
  NULLCMD=:
262
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263
  # is contrary to our usage.  Disable this feature.
264
  alias -g '${1+"$@"}'='"$@"'
265
  setopt NO_GLOB_SUBST
266
else
267
  case `(set -o) 2>/dev/null` in
268
  *posix*) set -o posix ;;
269
esac
270
 
271
fi
272
 
273
 
274
:
275
_ASEOF
276
}; then
277
  CONFIG_SHELL=$as_shell
278
               as_have_required=yes
279
               if { "$as_shell" 2> /dev/null <<\_ASEOF
280
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281
  emulate sh
282
  NULLCMD=:
283
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284
  # is contrary to our usage.  Disable this feature.
285
  alias -g '${1+"$@"}'='"$@"'
286
  setopt NO_GLOB_SUBST
287
else
288
  case `(set -o) 2>/dev/null` in
289
  *posix*) set -o posix ;;
290
esac
291
 
292
fi
293
 
294
 
295
:
296
(as_func_return () {
297
  (exit $1)
298
}
299
as_func_success () {
300
  as_func_return 0
301
}
302
as_func_failure () {
303
  as_func_return 1
304
}
305
as_func_ret_success () {
306
  return 0
307
}
308
as_func_ret_failure () {
309
  return 1
310
}
311
 
312
exitcode=0
313
if as_func_success; then
314
  :
315
else
316
  exitcode=1
317
  echo as_func_success failed.
318
fi
319
 
320
if as_func_failure; then
321
  exitcode=1
322
  echo as_func_failure succeeded.
323
fi
324
 
325
if as_func_ret_success; then
326
  :
327
else
328
  exitcode=1
329
  echo as_func_ret_success failed.
330
fi
331
 
332
if as_func_ret_failure; then
333
  exitcode=1
334
  echo as_func_ret_failure succeeded.
335
fi
336
 
337
if ( set x; as_func_ret_success y && test x = "$1" ); then
338
  :
339
else
340
  exitcode=1
341
  echo positional parameters were not saved.
342
fi
343
 
344
test $exitcode = 0) || { (exit 1); exit 1; }
345
 
346
(
347
  as_lineno_1=$LINENO
348
  as_lineno_2=$LINENO
349
  test "x$as_lineno_1" != "x$as_lineno_2" &&
350
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
 
352
_ASEOF
353
}; then
354
  break
355
fi
356
 
357
fi
358
 
359
      done
360
 
361
      if test "x$CONFIG_SHELL" != x; then
362
  for as_var in BASH_ENV ENV
363
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364
        done
365
        export CONFIG_SHELL
366
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367
fi
368
 
369
 
370
    if test $as_have_required = no; then
371
  echo This script requires a shell more modern than all the
372
      echo shells that I found on your system.  Please install a
373
      echo modern shell, or manually run the script under such a
374
      echo shell if you do have one.
375
      { (exit 1); exit 1; }
376
fi
377
 
378
 
379
fi
380
 
381
fi
382
 
383
 
384
 
385
(eval "as_func_return () {
386
  (exit \$1)
387
}
388
as_func_success () {
389
  as_func_return 0
390
}
391
as_func_failure () {
392
  as_func_return 1
393
}
394
as_func_ret_success () {
395
  return 0
396
}
397
as_func_ret_failure () {
398
  return 1
399
}
400
 
401
exitcode=0
402
if as_func_success; then
403
  :
404
else
405
  exitcode=1
406
  echo as_func_success failed.
407
fi
408
 
409
if as_func_failure; then
410
  exitcode=1
411
  echo as_func_failure succeeded.
412
fi
413
 
414
if as_func_ret_success; then
415
  :
416
else
417
  exitcode=1
418
  echo as_func_ret_success failed.
419
fi
420
 
421
if as_func_ret_failure; then
422
  exitcode=1
423
  echo as_func_ret_failure succeeded.
424
fi
425
 
426
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427
  :
428
else
429
  exitcode=1
430
  echo positional parameters were not saved.
431
fi
432
 
433
test \$exitcode = 0") || {
434
  echo No shell found that supports shell functions.
435
  echo Please tell bug-autoconf@gnu.org about your system,
436
  echo including any error possibly output before this message.
437
  echo This can help us improve future autoconf versions.
438
  echo Configuration will now proceed without shell functions.
439
}
440
 
441
 
442
 
443
  as_lineno_1=$LINENO
444
  as_lineno_2=$LINENO
445
  test "x$as_lineno_1" != "x$as_lineno_2" &&
446
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
 
448
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449
  # uniformly replaced by the line number.  The first 'sed' inserts a
450
  # line-number line after each line using $LINENO; the second 'sed'
451
  # does the real work.  The second script uses 'N' to pair each
452
  # line-number line with the line containing $LINENO, and appends
453
  # trailing '-' during substitution so that $LINENO is not a special
454
  # case at line end.
455
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457
  # E. McMahon (1931-1989) for sed's syntax.  :-)
458
  sed -n '
459
    p
460
    /[$]LINENO/=
461
  ' <$as_myself |
462
    sed '
463
      s/[$]LINENO.*/&-/
464
      t lineno
465
      b
466
      :lineno
467
      N
468
      :loop
469
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470
      t loop
471
      s/-\n.*//
472
    ' >$as_me.lineno &&
473
  chmod +x "$as_me.lineno" ||
474
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475
   { (exit 1); exit 1; }; }
476
 
477
  # Don't try to exec as it changes $[0], causing all sort of problems
478
  # (the dirname of $[0] is not the place where we might find the
479
  # original and so on.  Autoconf is especially sensitive to this).
480
  . "./$as_me.lineno"
481
  # Exit status is that of the last command.
482
  exit
483
}
484
 
485
 
486
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487
  as_dirname=dirname
488
else
489
  as_dirname=false
490
fi
491
 
492
ECHO_C= ECHO_N= ECHO_T=
493
case `echo -n x` in
494
-n*)
495
  case `echo 'x\c'` in
496
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497
  *)   ECHO_C='\c';;
498
  esac;;
499
*)
500
  ECHO_N='-n';;
501
esac
502
if expr a : '\(a\)' >/dev/null 2>&1 &&
503
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504
  as_expr=expr
505
else
506
  as_expr=false
507
fi
508
 
509
rm -f conf$$ conf$$.exe conf$$.file
510
if test -d conf$$.dir; then
511
  rm -f conf$$.dir/conf$$.file
512
else
513
  rm -f conf$$.dir
514
  mkdir conf$$.dir 2>/dev/null
515
fi
516
if (echo >conf$$.file) 2>/dev/null; then
517
  if ln -s conf$$.file conf$$ 2>/dev/null; then
518
    as_ln_s='ln -s'
519
    # ... but there are two gotchas:
520
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522
    # In both cases, we have to default to `cp -p'.
523
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524
      as_ln_s='cp -p'
525
  elif ln conf$$.file conf$$ 2>/dev/null; then
526
    as_ln_s=ln
527
  else
528
    as_ln_s='cp -p'
529
  fi
530
else
531
  as_ln_s='cp -p'
532
fi
533
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534
rmdir conf$$.dir 2>/dev/null
535
 
536
if mkdir -p . 2>/dev/null; then
537
  as_mkdir_p=:
538
else
539
  test -d ./-p && rmdir ./-p
540
  as_mkdir_p=false
541
fi
542
 
543
if test -x / >/dev/null 2>&1; then
544
  as_test_x='test -x'
545
else
546
  if ls -dL / >/dev/null 2>&1; then
547
    as_ls_L_option=L
548
  else
549
    as_ls_L_option=
550
  fi
551
  as_test_x='
552
    eval sh -c '\''
553
      if test -d "$1"; then
554
        test -d "$1/.";
555
      else
556
        case $1 in
557
        -*)set "./$1";;
558
        esac;
559
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560
        ???[sx]*):;;*)false;;esac;fi
561
    '\'' sh
562
  '
563
fi
564
as_executable_p=$as_test_x
565
 
566
# Sed expression to map a string onto a valid CPP name.
567
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
 
569
# Sed expression to map a string onto a valid variable name.
570
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
 
572
 
573
 
574
 
575
# Check that we are running under the correct shell.
576
SHELL=${CONFIG_SHELL-/bin/sh}
577
 
578
case X$lt_ECHO in
579
X*--fallback-echo)
580
  # Remove one level of quotation (which was required for Make).
581
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582
  ;;
583
esac
584
 
585
ECHO=${lt_ECHO-echo}
586
if test "X$1" = X--no-reexec; then
587
  # Discard the --no-reexec flag, and continue.
588
  shift
589
elif test "X$1" = X--fallback-echo; then
590
  # Avoid inline document here, it may be left over
591
  :
592
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593
  # Yippee, $ECHO works!
594
  :
595
else
596
  # Restart under the correct shell.
597
  exec $SHELL "$0" --no-reexec ${1+"$@"}
598
fi
599
 
600
if test "X$1" = X--fallback-echo; then
601
  # used as fallback echo
602
  shift
603
  cat <<_LT_EOF
604
$*
605
_LT_EOF
606
  exit 0
607
fi
608
 
609
# The HP-UX ksh and POSIX shell print the target directory to stdout
610
# if CDPATH is set.
611
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
 
613
if test -z "$lt_ECHO"; then
614
  if test "X${echo_test_string+set}" != Xset; then
615
    # find a string as large as possible, as long as the shell can cope with it
616
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620
      then
621
        break
622
      fi
623
    done
624
  fi
625
 
626
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628
     test "X$echo_testing_string" = "X$echo_test_string"; then
629
    :
630
  else
631
    # The Solaris, AIX, and Digital Unix default echo programs unquote
632
    # backslashes.  This makes it impossible to quote backslashes using
633
    #   echo "$something" | sed 's/\\/\\\\/g'
634
    #
635
    # So, first we look for a working echo in the user's PATH.
636
 
637
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638
    for dir in $PATH /usr/ucb; do
639
      IFS="$lt_save_ifs"
640
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643
         test "X$echo_testing_string" = "X$echo_test_string"; then
644
        ECHO="$dir/echo"
645
        break
646
      fi
647
    done
648
    IFS="$lt_save_ifs"
649
 
650
    if test "X$ECHO" = Xecho; then
651
      # We didn't find a better echo, so look for alternatives.
652
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654
         test "X$echo_testing_string" = "X$echo_test_string"; then
655
        # This shell has a builtin print -r that does the trick.
656
        ECHO='print -r'
657
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658
           test "X$CONFIG_SHELL" != X/bin/ksh; then
659
        # If we have ksh, try running configure again with it.
660
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661
        export ORIGINAL_CONFIG_SHELL
662
        CONFIG_SHELL=/bin/ksh
663
        export CONFIG_SHELL
664
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665
      else
666
        # Try using printf.
667
        ECHO='printf %s\n'
668
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670
           test "X$echo_testing_string" = "X$echo_test_string"; then
671
          # Cool, printf works
672
          :
673
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674
             test "X$echo_testing_string" = 'X\t' &&
675
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676
             test "X$echo_testing_string" = "X$echo_test_string"; then
677
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678
          export CONFIG_SHELL
679
          SHELL="$CONFIG_SHELL"
680
          export SHELL
681
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
682
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683
             test "X$echo_testing_string" = 'X\t' &&
684
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685
             test "X$echo_testing_string" = "X$echo_test_string"; then
686
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
687
        else
688
          # maybe with a smaller string...
689
          prev=:
690
 
691
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693
            then
694
              break
695
            fi
696
            prev="$cmd"
697
          done
698
 
699
          if test "$prev" != 'sed 50q "$0"'; then
700
            echo_test_string=`eval $prev`
701
            export echo_test_string
702
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703
          else
704
            # Oops.  We lost completely, so just stick with echo.
705
            ECHO=echo
706
          fi
707
        fi
708
      fi
709
    fi
710
  fi
711
fi
712
 
713
# Copy echo and quote the copy suitably for passing to libtool from
714
# the Makefile, instead of quoting the original, which is used later.
715
lt_ECHO=$ECHO
716
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718
fi
719
 
720
 
721
 
722
 
723
exec 7<&0 &1
724
 
725
# Name of the host.
726
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727
# so uname gets run too.
728
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
 
730
#
731
# Initializations.
732
#
733
ac_default_prefix=/usr/local
734
ac_clean_files=
735
ac_config_libobj_dir=.
736
LIBOBJS=
737
cross_compiling=no
738
subdirs=
739
MFLAGS=
740
MAKEFLAGS=
741
SHELL=${CONFIG_SHELL-/bin/sh}
742
 
743
# Identity of this package.
744
PACKAGE_NAME='newlib'
745
PACKAGE_TARNAME='newlib'
746
PACKAGE_VERSION='1.18.0'
747
PACKAGE_STRING='newlib 1.18.0'
748
PACKAGE_BUGREPORT=''
749
 
750
ac_unique_file="linux.c"
751
# Factoring default headers for most tests.
752
ac_includes_default="\
753
#include 
754
#ifdef HAVE_SYS_TYPES_H
755
# include 
756
#endif
757
#ifdef HAVE_SYS_STAT_H
758
# include 
759
#endif
760
#ifdef STDC_HEADERS
761
# include 
762
# include 
763
#else
764
# ifdef HAVE_STDLIB_H
765
#  include 
766
# endif
767
#endif
768
#ifdef HAVE_STRING_H
769
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770
#  include 
771
# endif
772
# include 
773
#endif
774
#ifdef HAVE_STRINGS_H
775
# include 
776
#endif
777
#ifdef HAVE_INTTYPES_H
778
# include 
779
#endif
780
#ifdef HAVE_STDINT_H
781
# include 
782
#endif
783
#ifdef HAVE_UNISTD_H
784
# include 
785
#endif"
786
 
787
enable_option_checking=no
788
ac_subst_vars='am__EXEEXT_FALSE
789
am__EXEEXT_TRUE
790
LTLIBOBJS
791
LIBOBJS
792
EXTRA_SUBLIBS
793
EXTRA_SUBDIRS
794
LINUX_MACH_LIB
795
subdirs
796
CPP
797
OTOOL64
798
OTOOL
799
LIPO
800
NMEDIT
801
DSYMUTIL
802
lt_ECHO
803
LN_S
804
NM
805
ac_ct_DUMPBIN
806
DUMPBIN
807
LD
808
FGREP
809
EGREP
810
GREP
811
EXEEXT
812
ac_ct_CC
813
CPPFLAGS
814
CFLAGS
815
LIBTOOL
816
OBJDUMP
817
DLLTOOL
818
SED
819
sys_dir
820
machine_dir
821
libm_machine_dir
822
lpfx
823
aext
824
oext
825
OBJEXT
826
USE_LIBTOOL_FALSE
827
USE_LIBTOOL_TRUE
828
ELIX_LEVEL_4_FALSE
829
ELIX_LEVEL_4_TRUE
830
ELIX_LEVEL_3_FALSE
831
ELIX_LEVEL_3_TRUE
832
ELIX_LEVEL_2_FALSE
833
ELIX_LEVEL_2_TRUE
834
ELIX_LEVEL_1_FALSE
835
ELIX_LEVEL_1_TRUE
836
ELIX_LEVEL_0_FALSE
837
ELIX_LEVEL_0_TRUE
838
LDFLAGS
839
NEWLIB_CFLAGS
840
CCASFLAGS
841
CCAS
842
MAINT
843
MAINTAINER_MODE_FALSE
844
MAINTAINER_MODE_TRUE
845
READELF
846
RANLIB
847
AR
848
AS
849
am__fastdepCC_FALSE
850
am__fastdepCC_TRUE
851
CCDEPMODE
852
AMDEPBACKSLASH
853
AMDEP_FALSE
854
AMDEP_TRUE
855
am__quote
856
am__include
857
DEPDIR
858
CC
859
am__untar
860
am__tar
861
AMTAR
862
am__leading_dot
863
SET_MAKE
864
AWK
865
mkdir_p
866
MKDIR_P
867
INSTALL_STRIP_PROGRAM
868
STRIP
869
install_sh
870
MAKEINFO
871
AUTOHEADER
872
AUTOMAKE
873
AUTOCONF
874
ACLOCAL
875
VERSION
876
PACKAGE
877
CYGPATH_W
878
am__isrc
879
INSTALL_DATA
880
INSTALL_SCRIPT
881
INSTALL_PROGRAM
882
host_os
883
host_vendor
884
host_cpu
885
host
886
build_os
887
build_vendor
888
build_cpu
889
build
890
newlib_basedir
891
MAY_SUPPLY_SYSCALLS_FALSE
892
MAY_SUPPLY_SYSCALLS_TRUE
893
target_alias
894
host_alias
895
build_alias
896
LIBS
897
ECHO_T
898
ECHO_N
899
ECHO_C
900
DEFS
901
mandir
902
localedir
903
libdir
904
psdir
905
pdfdir
906
dvidir
907
htmldir
908
infodir
909
docdir
910
oldincludedir
911
includedir
912
localstatedir
913
sharedstatedir
914
sysconfdir
915
datadir
916
datarootdir
917
libexecdir
918
sbindir
919
bindir
920
program_transform_name
921
prefix
922
exec_prefix
923
PACKAGE_BUGREPORT
924
PACKAGE_STRING
925
PACKAGE_VERSION
926
PACKAGE_TARNAME
927
PACKAGE_NAME
928
PATH_SEPARATOR
929
SHELL'
930
ac_subst_files=''
931
ac_user_opts='
932
enable_option_checking
933
enable_multilib
934
enable_target_optspace
935
enable_malloc_debugging
936
enable_newlib_multithread
937
enable_newlib_iconv
938
enable_newlib_elix_level
939
enable_newlib_io_float
940
enable_newlib_supplied_syscalls
941
enable_dependency_tracking
942
enable_maintainer_mode
943
enable_shared
944
enable_static
945
with_pic
946
enable_fast_install
947
with_gnu_ld
948
enable_libtool_lock
949
'
950
      ac_precious_vars='build_alias
951
host_alias
952
target_alias
953
CCAS
954
CCASFLAGS
955
CC
956
CFLAGS
957
LDFLAGS
958
LIBS
959
CPPFLAGS
960
CPP'
961
ac_subdirs_all='machine
962
linuxthreads'
963
 
964
# Initialize some variables set by options.
965
ac_init_help=
966
ac_init_version=false
967
ac_unrecognized_opts=
968
ac_unrecognized_sep=
969
# The variables have the same names as the options, with
970
# dashes changed to underlines.
971
cache_file=/dev/null
972
exec_prefix=NONE
973
no_create=
974
no_recursion=
975
prefix=NONE
976
program_prefix=NONE
977
program_suffix=NONE
978
program_transform_name=s,x,x,
979
silent=
980
site=
981
srcdir=
982
verbose=
983
x_includes=NONE
984
x_libraries=NONE
985
 
986
# Installation directory options.
987
# These are left unexpanded so users can "make install exec_prefix=/foo"
988
# and all the variables that are supposed to be based on exec_prefix
989
# by default will actually change.
990
# Use braces instead of parens because sh, perl, etc. also accept them.
991
# (The list follows the same order as the GNU Coding Standards.)
992
bindir='${exec_prefix}/bin'
993
sbindir='${exec_prefix}/sbin'
994
libexecdir='${exec_prefix}/libexec'
995
datarootdir='${prefix}/share'
996
datadir='${datarootdir}'
997
sysconfdir='${prefix}/etc'
998
sharedstatedir='${prefix}/com'
999
localstatedir='${prefix}/var'
1000
includedir='${prefix}/include'
1001
oldincludedir='/usr/include'
1002
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1003
infodir='${datarootdir}/info'
1004
htmldir='${docdir}'
1005
dvidir='${docdir}'
1006
pdfdir='${docdir}'
1007
psdir='${docdir}'
1008
libdir='${exec_prefix}/lib'
1009
localedir='${datarootdir}/locale'
1010
mandir='${datarootdir}/man'
1011
 
1012
ac_prev=
1013
ac_dashdash=
1014
for ac_option
1015
do
1016
  # If the previous option needs an argument, assign it.
1017
  if test -n "$ac_prev"; then
1018
    eval $ac_prev=\$ac_option
1019
    ac_prev=
1020
    continue
1021
  fi
1022
 
1023
  case $ac_option in
1024
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025
  *)    ac_optarg=yes ;;
1026
  esac
1027
 
1028
  # Accept the important Cygnus configure options, so we can diagnose typos.
1029
 
1030
  case $ac_dashdash$ac_option in
1031
  --)
1032
    ac_dashdash=yes ;;
1033
 
1034
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1035
    ac_prev=bindir ;;
1036
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1037
    bindir=$ac_optarg ;;
1038
 
1039
  -build | --build | --buil | --bui | --bu)
1040
    ac_prev=build_alias ;;
1041
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1042
    build_alias=$ac_optarg ;;
1043
 
1044
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1045
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1046
    ac_prev=cache_file ;;
1047
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1048
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1049
    cache_file=$ac_optarg ;;
1050
 
1051
  --config-cache | -C)
1052
    cache_file=config.cache ;;
1053
 
1054
  -datadir | --datadir | --datadi | --datad)
1055
    ac_prev=datadir ;;
1056
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1057
    datadir=$ac_optarg ;;
1058
 
1059
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1060
  | --dataroo | --dataro | --datar)
1061
    ac_prev=datarootdir ;;
1062
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1063
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1064
    datarootdir=$ac_optarg ;;
1065
 
1066
  -disable-* | --disable-*)
1067
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1068
    # Reject names that are not valid shell variable names.
1069
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1071
   { (exit 1); exit 1; }; }
1072
    ac_useropt_orig=$ac_useropt
1073
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074
    case $ac_user_opts in
1075
      *"
1076
"enable_$ac_useropt"
1077
"*) ;;
1078
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1079
         ac_unrecognized_sep=', ';;
1080
    esac
1081
    eval enable_$ac_useropt=no ;;
1082
 
1083
  -docdir | --docdir | --docdi | --doc | --do)
1084
    ac_prev=docdir ;;
1085
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086
    docdir=$ac_optarg ;;
1087
 
1088
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089
    ac_prev=dvidir ;;
1090
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091
    dvidir=$ac_optarg ;;
1092
 
1093
  -enable-* | --enable-*)
1094
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095
    # Reject names that are not valid shell variable names.
1096
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1098
   { (exit 1); exit 1; }; }
1099
    ac_useropt_orig=$ac_useropt
1100
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101
    case $ac_user_opts in
1102
      *"
1103
"enable_$ac_useropt"
1104
"*) ;;
1105
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1106
         ac_unrecognized_sep=', ';;
1107
    esac
1108
    eval enable_$ac_useropt=\$ac_optarg ;;
1109
 
1110
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1111
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1112
  | --exec | --exe | --ex)
1113
    ac_prev=exec_prefix ;;
1114
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1115
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1116
  | --exec=* | --exe=* | --ex=*)
1117
    exec_prefix=$ac_optarg ;;
1118
 
1119
  -gas | --gas | --ga | --g)
1120
    # Obsolete; use --with-gas.
1121
    with_gas=yes ;;
1122
 
1123
  -help | --help | --hel | --he | -h)
1124
    ac_init_help=long ;;
1125
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1126
    ac_init_help=recursive ;;
1127
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1128
    ac_init_help=short ;;
1129
 
1130
  -host | --host | --hos | --ho)
1131
    ac_prev=host_alias ;;
1132
  -host=* | --host=* | --hos=* | --ho=*)
1133
    host_alias=$ac_optarg ;;
1134
 
1135
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1136
    ac_prev=htmldir ;;
1137
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1138
  | --ht=*)
1139
    htmldir=$ac_optarg ;;
1140
 
1141
  -includedir | --includedir | --includedi | --included | --include \
1142
  | --includ | --inclu | --incl | --inc)
1143
    ac_prev=includedir ;;
1144
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1145
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1146
    includedir=$ac_optarg ;;
1147
 
1148
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1149
    ac_prev=infodir ;;
1150
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1151
    infodir=$ac_optarg ;;
1152
 
1153
  -libdir | --libdir | --libdi | --libd)
1154
    ac_prev=libdir ;;
1155
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1156
    libdir=$ac_optarg ;;
1157
 
1158
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1159
  | --libexe | --libex | --libe)
1160
    ac_prev=libexecdir ;;
1161
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1162
  | --libexe=* | --libex=* | --libe=*)
1163
    libexecdir=$ac_optarg ;;
1164
 
1165
  -localedir | --localedir | --localedi | --localed | --locale)
1166
    ac_prev=localedir ;;
1167
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1168
    localedir=$ac_optarg ;;
1169
 
1170
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1171
  | --localstate | --localstat | --localsta | --localst | --locals)
1172
    ac_prev=localstatedir ;;
1173
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1174
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1175
    localstatedir=$ac_optarg ;;
1176
 
1177
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1178
    ac_prev=mandir ;;
1179
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1180
    mandir=$ac_optarg ;;
1181
 
1182
  -nfp | --nfp | --nf)
1183
    # Obsolete; use --without-fp.
1184
    with_fp=no ;;
1185
 
1186
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1187
  | --no-cr | --no-c | -n)
1188
    no_create=yes ;;
1189
 
1190
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1191
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1192
    no_recursion=yes ;;
1193
 
1194
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1195
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1196
  | --oldin | --oldi | --old | --ol | --o)
1197
    ac_prev=oldincludedir ;;
1198
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1199
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1200
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1201
    oldincludedir=$ac_optarg ;;
1202
 
1203
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1204
    ac_prev=prefix ;;
1205
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1206
    prefix=$ac_optarg ;;
1207
 
1208
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1209
  | --program-pre | --program-pr | --program-p)
1210
    ac_prev=program_prefix ;;
1211
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1212
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1213
    program_prefix=$ac_optarg ;;
1214
 
1215
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1216
  | --program-suf | --program-su | --program-s)
1217
    ac_prev=program_suffix ;;
1218
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1219
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1220
    program_suffix=$ac_optarg ;;
1221
 
1222
  -program-transform-name | --program-transform-name \
1223
  | --program-transform-nam | --program-transform-na \
1224
  | --program-transform-n | --program-transform- \
1225
  | --program-transform | --program-transfor \
1226
  | --program-transfo | --program-transf \
1227
  | --program-trans | --program-tran \
1228
  | --progr-tra | --program-tr | --program-t)
1229
    ac_prev=program_transform_name ;;
1230
  -program-transform-name=* | --program-transform-name=* \
1231
  | --program-transform-nam=* | --program-transform-na=* \
1232
  | --program-transform-n=* | --program-transform-=* \
1233
  | --program-transform=* | --program-transfor=* \
1234
  | --program-transfo=* | --program-transf=* \
1235
  | --program-trans=* | --program-tran=* \
1236
  | --progr-tra=* | --program-tr=* | --program-t=*)
1237
    program_transform_name=$ac_optarg ;;
1238
 
1239
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1240
    ac_prev=pdfdir ;;
1241
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1242
    pdfdir=$ac_optarg ;;
1243
 
1244
  -psdir | --psdir | --psdi | --psd | --ps)
1245
    ac_prev=psdir ;;
1246
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1247
    psdir=$ac_optarg ;;
1248
 
1249
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250
  | -silent | --silent | --silen | --sile | --sil)
1251
    silent=yes ;;
1252
 
1253
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1254
    ac_prev=sbindir ;;
1255
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1256
  | --sbi=* | --sb=*)
1257
    sbindir=$ac_optarg ;;
1258
 
1259
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1260
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1261
  | --sharedst | --shareds | --shared | --share | --shar \
1262
  | --sha | --sh)
1263
    ac_prev=sharedstatedir ;;
1264
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1265
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1266
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1267
  | --sha=* | --sh=*)
1268
    sharedstatedir=$ac_optarg ;;
1269
 
1270
  -site | --site | --sit)
1271
    ac_prev=site ;;
1272
  -site=* | --site=* | --sit=*)
1273
    site=$ac_optarg ;;
1274
 
1275
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1276
    ac_prev=srcdir ;;
1277
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1278
    srcdir=$ac_optarg ;;
1279
 
1280
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1281
  | --syscon | --sysco | --sysc | --sys | --sy)
1282
    ac_prev=sysconfdir ;;
1283
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1284
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1285
    sysconfdir=$ac_optarg ;;
1286
 
1287
  -target | --target | --targe | --targ | --tar | --ta | --t)
1288
    ac_prev=target_alias ;;
1289
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1290
    target_alias=$ac_optarg ;;
1291
 
1292
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1293
    verbose=yes ;;
1294
 
1295
  -version | --version | --versio | --versi | --vers | -V)
1296
    ac_init_version=: ;;
1297
 
1298
  -with-* | --with-*)
1299
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1300
    # Reject names that are not valid shell variable names.
1301
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1303
   { (exit 1); exit 1; }; }
1304
    ac_useropt_orig=$ac_useropt
1305
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306
    case $ac_user_opts in
1307
      *"
1308
"with_$ac_useropt"
1309
"*) ;;
1310
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1311
         ac_unrecognized_sep=', ';;
1312
    esac
1313
    eval with_$ac_useropt=\$ac_optarg ;;
1314
 
1315
  -without-* | --without-*)
1316
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1317
    # Reject names that are not valid shell variable names.
1318
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1320
   { (exit 1); exit 1; }; }
1321
    ac_useropt_orig=$ac_useropt
1322
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1323
    case $ac_user_opts in
1324
      *"
1325
"with_$ac_useropt"
1326
"*) ;;
1327
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1328
         ac_unrecognized_sep=', ';;
1329
    esac
1330
    eval with_$ac_useropt=no ;;
1331
 
1332
  --x)
1333
    # Obsolete; use --with-x.
1334
    with_x=yes ;;
1335
 
1336
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1337
  | --x-incl | --x-inc | --x-in | --x-i)
1338
    ac_prev=x_includes ;;
1339
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1340
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1341
    x_includes=$ac_optarg ;;
1342
 
1343
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1344
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1345
    ac_prev=x_libraries ;;
1346
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1347
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1348
    x_libraries=$ac_optarg ;;
1349
 
1350
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1351
Try \`$0 --help' for more information." >&2
1352
   { (exit 1); exit 1; }; }
1353
    ;;
1354
 
1355
  *=*)
1356
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1357
    # Reject names that are not valid shell variable names.
1358
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1359
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1360
   { (exit 1); exit 1; }; }
1361
    eval $ac_envvar=\$ac_optarg
1362
    export $ac_envvar ;;
1363
 
1364
  *)
1365
    # FIXME: should be removed in autoconf 3.0.
1366
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1367
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1368
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1369
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1370
    ;;
1371
 
1372
  esac
1373
done
1374
 
1375
if test -n "$ac_prev"; then
1376
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1377
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1378
   { (exit 1); exit 1; }; }
1379
fi
1380
 
1381
if test -n "$ac_unrecognized_opts"; then
1382
  case $enable_option_checking in
1383
    no) ;;
1384
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1385
   { (exit 1); exit 1; }; } ;;
1386
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1387
  esac
1388
fi
1389
 
1390
# Check all directory arguments for consistency.
1391
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1392
                datadir sysconfdir sharedstatedir localstatedir includedir \
1393
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1394
                libdir localedir mandir
1395
do
1396
  eval ac_val=\$$ac_var
1397
  # Remove trailing slashes.
1398
  case $ac_val in
1399
    */ )
1400
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1401
      eval $ac_var=\$ac_val;;
1402
  esac
1403
  # Be sure to have absolute directory names.
1404
  case $ac_val in
1405
    [\\/$]* | ?:[\\/]* )  continue;;
1406
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1407
  esac
1408
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1409
   { (exit 1); exit 1; }; }
1410
done
1411
 
1412
# There might be people who depend on the old broken behavior: `$host'
1413
# used to hold the argument of --host etc.
1414
# FIXME: To remove some day.
1415
build=$build_alias
1416
host=$host_alias
1417
target=$target_alias
1418
 
1419
# FIXME: To remove some day.
1420
if test "x$host_alias" != x; then
1421
  if test "x$build_alias" = x; then
1422
    cross_compiling=maybe
1423
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1424
    If a cross compiler is detected then cross compile mode will be used." >&2
1425
  elif test "x$build_alias" != "x$host_alias"; then
1426
    cross_compiling=yes
1427
  fi
1428
fi
1429
 
1430
ac_tool_prefix=
1431
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1432
 
1433
test "$silent" = yes && exec 6>/dev/null
1434
 
1435
 
1436
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1437
ac_ls_di=`ls -di .` &&
1438
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1439
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1440
   { (exit 1); exit 1; }; }
1441
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1442
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1443
   { (exit 1); exit 1; }; }
1444
 
1445
 
1446
# Find the source files, if location was not specified.
1447
if test -z "$srcdir"; then
1448
  ac_srcdir_defaulted=yes
1449
  # Try the directory containing this script, then the parent directory.
1450
  ac_confdir=`$as_dirname -- "$as_myself" ||
1451
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1452
         X"$as_myself" : 'X\(//\)[^/]' \| \
1453
         X"$as_myself" : 'X\(//\)$' \| \
1454
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1455
$as_echo X"$as_myself" |
1456
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1457
            s//\1/
1458
            q
1459
          }
1460
          /^X\(\/\/\)[^/].*/{
1461
            s//\1/
1462
            q
1463
          }
1464
          /^X\(\/\/\)$/{
1465
            s//\1/
1466
            q
1467
          }
1468
          /^X\(\/\).*/{
1469
            s//\1/
1470
            q
1471
          }
1472
          s/.*/./; q'`
1473
  srcdir=$ac_confdir
1474
  if test ! -r "$srcdir/$ac_unique_file"; then
1475
    srcdir=..
1476
  fi
1477
else
1478
  ac_srcdir_defaulted=no
1479
fi
1480
if test ! -r "$srcdir/$ac_unique_file"; then
1481
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1482
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1483
   { (exit 1); exit 1; }; }
1484
fi
1485
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1486
ac_abs_confdir=`(
1487
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1488
   { (exit 1); exit 1; }; }
1489
        pwd)`
1490
# When building in place, set srcdir=.
1491
if test "$ac_abs_confdir" = "$ac_pwd"; then
1492
  srcdir=.
1493
fi
1494
# Remove unnecessary trailing slashes from srcdir.
1495
# Double slashes in file names in object file debugging info
1496
# mess up M-x gdb in Emacs.
1497
case $srcdir in
1498
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1499
esac
1500
for ac_var in $ac_precious_vars; do
1501
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1502
  eval ac_env_${ac_var}_value=\$${ac_var}
1503
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1504
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1505
done
1506
 
1507
#
1508
# Report the --help message.
1509
#
1510
if test "$ac_init_help" = "long"; then
1511
  # Omit some internal or obsolete options to make the list less imposing.
1512
  # This message is too long to be a string in the A/UX 3.1 sh.
1513
  cat <<_ACEOF
1514
\`configure' configures newlib 1.18.0 to adapt to many kinds of systems.
1515
 
1516
Usage: $0 [OPTION]... [VAR=VALUE]...
1517
 
1518
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1519
VAR=VALUE.  See below for descriptions of some of the useful variables.
1520
 
1521
Defaults for the options are specified in brackets.
1522
 
1523
Configuration:
1524
  -h, --help              display this help and exit
1525
      --help=short        display options specific to this package
1526
      --help=recursive    display the short help of all the included packages
1527
  -V, --version           display version information and exit
1528
  -q, --quiet, --silent   do not print \`checking...' messages
1529
      --cache-file=FILE   cache test results in FILE [disabled]
1530
  -C, --config-cache      alias for \`--cache-file=config.cache'
1531
  -n, --no-create         do not create output files
1532
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1533
 
1534
Installation directories:
1535
  --prefix=PREFIX         install architecture-independent files in PREFIX
1536
                          [$ac_default_prefix]
1537
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1538
                          [PREFIX]
1539
 
1540
By default, \`make install' will install all the files in
1541
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1542
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1543
for instance \`--prefix=\$HOME'.
1544
 
1545
For better control, use the options below.
1546
 
1547
Fine tuning of the installation directories:
1548
  --bindir=DIR            user executables [EPREFIX/bin]
1549
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1550
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1551
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1552
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1553
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1554
  --libdir=DIR            object code libraries [EPREFIX/lib]
1555
  --includedir=DIR        C header files [PREFIX/include]
1556
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1557
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1558
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1559
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1560
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1561
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1562
  --docdir=DIR            documentation root [DATAROOTDIR/doc/newlib]
1563
  --htmldir=DIR           html documentation [DOCDIR]
1564
  --dvidir=DIR            dvi documentation [DOCDIR]
1565
  --pdfdir=DIR            pdf documentation [DOCDIR]
1566
  --psdir=DIR             ps documentation [DOCDIR]
1567
_ACEOF
1568
 
1569
  cat <<\_ACEOF
1570
 
1571
Program names:
1572
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1573
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1574
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1575
 
1576
System types:
1577
  --build=BUILD     configure for building on BUILD [guessed]
1578
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1579
_ACEOF
1580
fi
1581
 
1582
if test -n "$ac_init_help"; then
1583
  case $ac_init_help in
1584
     short | recursive ) echo "Configuration of newlib 1.18.0:";;
1585
   esac
1586
  cat <<\_ACEOF
1587
 
1588
Optional Features:
1589
  --disable-option-checking  ignore unrecognized --enable/--with options
1590
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1591
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1592
  --enable-multilib         build many library versions (default)
1593
  --enable-target-optspace  optimize for space
1594
  --enable-malloc-debugging indicate malloc debugging requested
1595
  --enable-newlib-multithread        enable support for multiple threads
1596
  --enable-newlib-iconv     enable iconv library support
1597
  --enable-newlib-elix-level         supply desired elix library level (1-4)
1598
  --disable-newlib-io-float disable printf/scanf family float support
1599
  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1600
  --disable-dependency-tracking  speeds up one-time build
1601
  --enable-dependency-tracking   do not reject slow dependency extractors
1602
  --enable-maintainer-mode  enable make rules and dependencies not useful
1603
                          (and sometimes confusing) to the casual installer
1604
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1605
  --enable-static[=PKGS]  build static libraries [default=yes]
1606
  --enable-fast-install[=PKGS]
1607
                          optimize for fast installation [default=yes]
1608
  --disable-libtool-lock  avoid locking (might break parallel builds)
1609
 
1610
Optional Packages:
1611
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1612
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1613
  --with-pic              try to use only PIC/non-PIC objects [default=use
1614
                          both]
1615
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1616
 
1617
Some influential environment variables:
1618
  CCAS        assembler compiler command (defaults to CC)
1619
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1620
  CC          C compiler command
1621
  CFLAGS      C compiler flags
1622
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1623
              nonstandard directory 
1624
  LIBS        libraries to pass to the linker, e.g. -l
1625
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1626
              you have headers in a nonstandard directory 
1627
  CPP         C preprocessor
1628
 
1629
Use these variables to override the choices made by `configure' or to help
1630
it to find libraries and programs with nonstandard names/locations.
1631
 
1632
_ACEOF
1633
ac_status=$?
1634
fi
1635
 
1636
if test "$ac_init_help" = "recursive"; then
1637
  # If there are subdirs, report their specific --help.
1638
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1639
    test -d "$ac_dir" ||
1640
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1641
      continue
1642
    ac_builddir=.
1643
 
1644
case "$ac_dir" in
1645
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646
*)
1647
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1648
  # A ".." for each directory in $ac_dir_suffix.
1649
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1650
  case $ac_top_builddir_sub in
1651
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1653
  esac ;;
1654
esac
1655
ac_abs_top_builddir=$ac_pwd
1656
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1657
# for backward compatibility:
1658
ac_top_builddir=$ac_top_build_prefix
1659
 
1660
case $srcdir in
1661
  .)  # We are building in place.
1662
    ac_srcdir=.
1663
    ac_top_srcdir=$ac_top_builddir_sub
1664
    ac_abs_top_srcdir=$ac_pwd ;;
1665
  [\\/]* | ?:[\\/]* )  # Absolute name.
1666
    ac_srcdir=$srcdir$ac_dir_suffix;
1667
    ac_top_srcdir=$srcdir
1668
    ac_abs_top_srcdir=$srcdir ;;
1669
  *) # Relative name.
1670
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1671
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1672
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1673
esac
1674
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1675
 
1676
    cd "$ac_dir" || { ac_status=$?; continue; }
1677
    # Check for guested configure.
1678
    if test -f "$ac_srcdir/configure.gnu"; then
1679
      echo &&
1680
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1681
    elif test -f "$ac_srcdir/configure"; then
1682
      echo &&
1683
      $SHELL "$ac_srcdir/configure" --help=recursive
1684
    else
1685
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1686
    fi || ac_status=$?
1687
    cd "$ac_pwd" || { ac_status=$?; break; }
1688
  done
1689
fi
1690
 
1691
test -n "$ac_init_help" && exit $ac_status
1692
if $ac_init_version; then
1693
  cat <<\_ACEOF
1694
newlib configure 1.18.0
1695
generated by GNU Autoconf 2.63
1696
 
1697
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1698
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1699
This configure script is free software; the Free Software Foundation
1700
gives unlimited permission to copy, distribute and modify it.
1701
_ACEOF
1702
  exit
1703
fi
1704
cat >config.log <<_ACEOF
1705
This file contains any messages produced by compilers while
1706
running configure, to aid debugging if configure makes a mistake.
1707
 
1708
It was created by newlib $as_me 1.18.0, which was
1709
generated by GNU Autoconf 2.63.  Invocation command line was
1710
 
1711
  $ $0 $@
1712
 
1713
_ACEOF
1714
exec 5>>config.log
1715
{
1716
cat <<_ASUNAME
1717
## --------- ##
1718
## Platform. ##
1719
## --------- ##
1720
 
1721
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1722
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1723
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1724
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1725
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1726
 
1727
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1728
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1729
 
1730
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1731
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1732
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1733
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1734
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1735
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1736
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1737
 
1738
_ASUNAME
1739
 
1740
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741
for as_dir in $PATH
1742
do
1743
  IFS=$as_save_IFS
1744
  test -z "$as_dir" && as_dir=.
1745
  $as_echo "PATH: $as_dir"
1746
done
1747
IFS=$as_save_IFS
1748
 
1749
} >&5
1750
 
1751
cat >&5 <<_ACEOF
1752
 
1753
 
1754
## ----------- ##
1755
## Core tests. ##
1756
## ----------- ##
1757
 
1758
_ACEOF
1759
 
1760
 
1761
# Keep a trace of the command line.
1762
# Strip out --no-create and --no-recursion so they do not pile up.
1763
# Strip out --silent because we don't want to record it for future runs.
1764
# Also quote any args containing shell meta-characters.
1765
# Make two passes to allow for proper duplicate-argument suppression.
1766
ac_configure_args=
1767
ac_configure_args0=
1768
ac_configure_args1=
1769
ac_must_keep_next=false
1770
for ac_pass in 1 2
1771
do
1772
  for ac_arg
1773
  do
1774
    case $ac_arg in
1775
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1776
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1777
    | -silent | --silent | --silen | --sile | --sil)
1778
      continue ;;
1779
    *\'*)
1780
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1781
    esac
1782
    case $ac_pass in
1783
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1784
    2)
1785
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1786
      if test $ac_must_keep_next = true; then
1787
        ac_must_keep_next=false # Got value, back to normal.
1788
      else
1789
        case $ac_arg in
1790
          *=* | --config-cache | -C | -disable-* | --disable-* \
1791
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1792
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1793
          | -with-* | --with-* | -without-* | --without-* | --x)
1794
            case "$ac_configure_args0 " in
1795
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1796
            esac
1797
            ;;
1798
          -* ) ac_must_keep_next=true ;;
1799
        esac
1800
      fi
1801
      ac_configure_args="$ac_configure_args '$ac_arg'"
1802
      ;;
1803
    esac
1804
  done
1805
done
1806
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1807
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1808
 
1809
# When interrupted or exit'd, cleanup temporary files, and complete
1810
# config.log.  We remove comments because anyway the quotes in there
1811
# would cause problems or look ugly.
1812
# WARNING: Use '\'' to represent an apostrophe within the trap.
1813
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1814
trap 'exit_status=$?
1815
  # Save into config.log some information that might help in debugging.
1816
  {
1817
    echo
1818
 
1819
    cat <<\_ASBOX
1820
## ---------------- ##
1821
## Cache variables. ##
1822
## ---------------- ##
1823
_ASBOX
1824
    echo
1825
    # The following way of writing the cache mishandles newlines in values,
1826
(
1827
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1828
    eval ac_val=\$$ac_var
1829
    case $ac_val in #(
1830
    *${as_nl}*)
1831
      case $ac_var in #(
1832
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1833
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1834
      esac
1835
      case $ac_var in #(
1836
      _ | IFS | as_nl) ;; #(
1837
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1838
      *) $as_unset $ac_var ;;
1839
      esac ;;
1840
    esac
1841
  done
1842
  (set) 2>&1 |
1843
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1844
    *${as_nl}ac_space=\ *)
1845
      sed -n \
1846
        "s/'\''/'\''\\\\'\'''\''/g;
1847
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1848
      ;; #(
1849
    *)
1850
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1851
      ;;
1852
    esac |
1853
    sort
1854
)
1855
    echo
1856
 
1857
    cat <<\_ASBOX
1858
## ----------------- ##
1859
## Output variables. ##
1860
## ----------------- ##
1861
_ASBOX
1862
    echo
1863
    for ac_var in $ac_subst_vars
1864
    do
1865
      eval ac_val=\$$ac_var
1866
      case $ac_val in
1867
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1868
      esac
1869
      $as_echo "$ac_var='\''$ac_val'\''"
1870
    done | sort
1871
    echo
1872
 
1873
    if test -n "$ac_subst_files"; then
1874
      cat <<\_ASBOX
1875
## ------------------- ##
1876
## File substitutions. ##
1877
## ------------------- ##
1878
_ASBOX
1879
      echo
1880
      for ac_var in $ac_subst_files
1881
      do
1882
        eval ac_val=\$$ac_var
1883
        case $ac_val in
1884
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1885
        esac
1886
        $as_echo "$ac_var='\''$ac_val'\''"
1887
      done | sort
1888
      echo
1889
    fi
1890
 
1891
    if test -s confdefs.h; then
1892
      cat <<\_ASBOX
1893
## ----------- ##
1894
## confdefs.h. ##
1895
## ----------- ##
1896
_ASBOX
1897
      echo
1898
      cat confdefs.h
1899
      echo
1900
    fi
1901
    test "$ac_signal" != 0 &&
1902
      $as_echo "$as_me: caught signal $ac_signal"
1903
    $as_echo "$as_me: exit $exit_status"
1904
  } >&5
1905
  rm -f core *.core core.conftest.* &&
1906
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1907
    exit $exit_status
1908
' 0
1909
for ac_signal in 1 2 13 15; do
1910
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1911
done
1912
ac_signal=0
1913
 
1914
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1915
rm -f -r conftest* confdefs.h
1916
 
1917
# Predefined preprocessor variables.
1918
 
1919
cat >>confdefs.h <<_ACEOF
1920
#define PACKAGE_NAME "$PACKAGE_NAME"
1921
_ACEOF
1922
 
1923
 
1924
cat >>confdefs.h <<_ACEOF
1925
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1926
_ACEOF
1927
 
1928
 
1929
cat >>confdefs.h <<_ACEOF
1930
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1931
_ACEOF
1932
 
1933
 
1934
cat >>confdefs.h <<_ACEOF
1935
#define PACKAGE_STRING "$PACKAGE_STRING"
1936
_ACEOF
1937
 
1938
 
1939
cat >>confdefs.h <<_ACEOF
1940
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1941
_ACEOF
1942
 
1943
 
1944
# Let the site file select an alternate cache file if it wants to.
1945
# Prefer an explicitly selected file to automatically selected ones.
1946
ac_site_file1=NONE
1947
ac_site_file2=NONE
1948
if test -n "$CONFIG_SITE"; then
1949
  ac_site_file1=$CONFIG_SITE
1950
elif test "x$prefix" != xNONE; then
1951
  ac_site_file1=$prefix/share/config.site
1952
  ac_site_file2=$prefix/etc/config.site
1953
else
1954
  ac_site_file1=$ac_default_prefix/share/config.site
1955
  ac_site_file2=$ac_default_prefix/etc/config.site
1956
fi
1957
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1958
do
1959
  test "x$ac_site_file" = xNONE && continue
1960
  if test -r "$ac_site_file"; then
1961
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1962
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1963
    sed 's/^/| /' "$ac_site_file" >&5
1964
    . "$ac_site_file"
1965
  fi
1966
done
1967
 
1968
if test -r "$cache_file"; then
1969
  # Some versions of bash will fail to source /dev/null (special
1970
  # files actually), so we avoid doing that.
1971
  if test -f "$cache_file"; then
1972
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1973
$as_echo "$as_me: loading cache $cache_file" >&6;}
1974
    case $cache_file in
1975
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1976
      *)                      . "./$cache_file";;
1977
    esac
1978
  fi
1979
else
1980
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1981
$as_echo "$as_me: creating cache $cache_file" >&6;}
1982
  >$cache_file
1983
fi
1984
 
1985
# Check that the precious variables saved in the cache have kept the same
1986
# value.
1987
ac_cache_corrupted=false
1988
for ac_var in $ac_precious_vars; do
1989
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1990
  eval ac_new_set=\$ac_env_${ac_var}_set
1991
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1992
  eval ac_new_val=\$ac_env_${ac_var}_value
1993
  case $ac_old_set,$ac_new_set in
1994
    set,)
1995
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1996
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1997
      ac_cache_corrupted=: ;;
1998
    ,set)
1999
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2000
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2001
      ac_cache_corrupted=: ;;
2002
    ,);;
2003
    *)
2004
      if test "x$ac_old_val" != "x$ac_new_val"; then
2005
        # differences in whitespace do not lead to failure.
2006
        ac_old_val_w=`echo x $ac_old_val`
2007
        ac_new_val_w=`echo x $ac_new_val`
2008
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2009
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2010
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2011
          ac_cache_corrupted=:
2012
        else
2013
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2014
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2015
          eval $ac_var=\$ac_old_val
2016
        fi
2017
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2018
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2019
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2020
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2021
      fi;;
2022
  esac
2023
  # Pass precious variables to config.status.
2024
  if test "$ac_new_set" = set; then
2025
    case $ac_new_val in
2026
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2027
    *) ac_arg=$ac_var=$ac_new_val ;;
2028
    esac
2029
    case " $ac_configure_args " in
2030
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2031
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2032
    esac
2033
  fi
2034
done
2035
if $ac_cache_corrupted; then
2036
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2037
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2038
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2039
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2040
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2041
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2042
   { (exit 1); exit 1; }; }
2043
fi
2044
 
2045
 
2046
 
2047
 
2048
 
2049
 
2050
 
2051
 
2052
 
2053
 
2054
 
2055
 
2056
 
2057
 
2058
 
2059
 
2060
 
2061
 
2062
 
2063
 
2064
 
2065
 
2066
 
2067
 
2068
 
2069
ac_ext=c
2070
ac_cpp='$CPP $CPPFLAGS'
2071
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2072
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2073
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2074
 
2075
 
2076
 
2077
 
2078
ac_aux_dir=
2079
for ac_dir in ../../../.. "$srcdir"/../../../..; do
2080
  if test -f "$ac_dir/install-sh"; then
2081
    ac_aux_dir=$ac_dir
2082
    ac_install_sh="$ac_aux_dir/install-sh -c"
2083
    break
2084
  elif test -f "$ac_dir/install.sh"; then
2085
    ac_aux_dir=$ac_dir
2086
    ac_install_sh="$ac_aux_dir/install.sh -c"
2087
    break
2088
  elif test -f "$ac_dir/shtool"; then
2089
    ac_aux_dir=$ac_dir
2090
    ac_install_sh="$ac_aux_dir/shtool install -c"
2091
    break
2092
  fi
2093
done
2094
if test -z "$ac_aux_dir"; then
2095
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../.. \"$srcdir\"/../../../.." >&5
2096
$as_echo "$as_me: error: cannot find install-sh or install.sh in ../../../.. \"$srcdir\"/../../../.." >&2;}
2097
   { (exit 1); exit 1; }; }
2098
fi
2099
 
2100
# These three variables are undocumented and unsupported,
2101
# and are intended to be withdrawn in a future Autoconf release.
2102
# They can cause serious problems if a builder's source tree is in a directory
2103
# whose full name contains unusual characters.
2104
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2105
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2106
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2107
 
2108
 
2109
 
2110
 
2111
# Make sure we can run config.sub.
2112
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2113
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2114
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2115
   { (exit 1); exit 1; }; }
2116
 
2117
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2118
$as_echo_n "checking build system type... " >&6; }
2119
if test "${ac_cv_build+set}" = set; then
2120
  $as_echo_n "(cached) " >&6
2121
else
2122
  ac_build_alias=$build_alias
2123
test "x$ac_build_alias" = x &&
2124
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2125
test "x$ac_build_alias" = x &&
2126
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2127
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2128
   { (exit 1); exit 1; }; }
2129
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2130
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2131
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2132
   { (exit 1); exit 1; }; }
2133
 
2134
fi
2135
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2136
$as_echo "$ac_cv_build" >&6; }
2137
case $ac_cv_build in
2138
*-*-*) ;;
2139
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2140
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2141
   { (exit 1); exit 1; }; };;
2142
esac
2143
build=$ac_cv_build
2144
ac_save_IFS=$IFS; IFS='-'
2145
set x $ac_cv_build
2146
shift
2147
build_cpu=$1
2148
build_vendor=$2
2149
shift; shift
2150
# Remember, the first character of IFS is used to create $*,
2151
# except with old shells:
2152
build_os=$*
2153
IFS=$ac_save_IFS
2154
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2155
 
2156
 
2157
am__api_version='1.11'
2158
 
2159
# Find a good install program.  We prefer a C program (faster),
2160
# so one script is as good as another.  But avoid the broken or
2161
# incompatible versions:
2162
# SysV /etc/install, /usr/sbin/install
2163
# SunOS /usr/etc/install
2164
# IRIX /sbin/install
2165
# AIX /bin/install
2166
# AmigaOS /C/install, which installs bootblocks on floppy discs
2167
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2168
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2169
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2170
# OS/2's system install, which has a completely different semantic
2171
# ./install, which can be erroneously created by make from ./install.sh.
2172
# Reject install programs that cannot install multiple files.
2173
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2174
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2175
if test -z "$INSTALL"; then
2176
if test "${ac_cv_path_install+set}" = set; then
2177
  $as_echo_n "(cached) " >&6
2178
else
2179
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180
for as_dir in $PATH
2181
do
2182
  IFS=$as_save_IFS
2183
  test -z "$as_dir" && as_dir=.
2184
  # Account for people who put trailing slashes in PATH elements.
2185
case $as_dir/ in
2186
  ./ | .// | /cC/* | \
2187
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2188
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2189
  /usr/ucb/* ) ;;
2190
  *)
2191
    # OSF1 and SCO ODT 3.0 have their own names for install.
2192
    # Don't use installbsd from OSF since it installs stuff as root
2193
    # by default.
2194
    for ac_prog in ginstall scoinst install; do
2195
      for ac_exec_ext in '' $ac_executable_extensions; do
2196
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2197
          if test $ac_prog = install &&
2198
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2199
            # AIX install.  It has an incompatible calling convention.
2200
            :
2201
          elif test $ac_prog = install &&
2202
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2203
            # program-specific install script used by HP pwplus--don't use.
2204
            :
2205
          else
2206
            rm -rf conftest.one conftest.two conftest.dir
2207
            echo one > conftest.one
2208
            echo two > conftest.two
2209
            mkdir conftest.dir
2210
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2211
              test -s conftest.one && test -s conftest.two &&
2212
              test -s conftest.dir/conftest.one &&
2213
              test -s conftest.dir/conftest.two
2214
            then
2215
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2216
              break 3
2217
            fi
2218
          fi
2219
        fi
2220
      done
2221
    done
2222
    ;;
2223
esac
2224
 
2225
done
2226
IFS=$as_save_IFS
2227
 
2228
rm -rf conftest.one conftest.two conftest.dir
2229
 
2230
fi
2231
  if test "${ac_cv_path_install+set}" = set; then
2232
    INSTALL=$ac_cv_path_install
2233
  else
2234
    # As a last resort, use the slow shell script.  Don't cache a
2235
    # value for INSTALL within a source directory, because that will
2236
    # break other packages using the cache if that directory is
2237
    # removed, or if the value is a relative name.
2238
    INSTALL=$ac_install_sh
2239
  fi
2240
fi
2241
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2242
$as_echo "$INSTALL" >&6; }
2243
 
2244
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2245
# It thinks the first close brace ends the variable substitution.
2246
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2247
 
2248
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2249
 
2250
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2251
 
2252
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2253
$as_echo_n "checking whether build environment is sane... " >&6; }
2254
# Just in case
2255
sleep 1
2256
echo timestamp > conftest.file
2257
# Reject unsafe characters in $srcdir or the absolute working directory
2258
# name.  Accept space and tab only in the latter.
2259
am_lf='
2260
'
2261
case `pwd` in
2262
  *[\\\"\#\$\&\'\`$am_lf]*)
2263
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2264
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2265
   { (exit 1); exit 1; }; };;
2266
esac
2267
case $srcdir in
2268
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2269
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2270
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2271
   { (exit 1); exit 1; }; };;
2272
esac
2273
 
2274
# Do `set' in a subshell so we don't clobber the current shell's
2275
# arguments.  Must try -L first in case configure is actually a
2276
# symlink; some systems play weird games with the mod time of symlinks
2277
# (eg FreeBSD returns the mod time of the symlink's containing
2278
# directory).
2279
if (
2280
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2281
   if test "$*" = "X"; then
2282
      # -L didn't work.
2283
      set X `ls -t "$srcdir/configure" conftest.file`
2284
   fi
2285
   rm -f conftest.file
2286
   if test "$*" != "X $srcdir/configure conftest.file" \
2287
      && test "$*" != "X conftest.file $srcdir/configure"; then
2288
 
2289
      # If neither matched, then we have a broken ls.  This can happen
2290
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2291
      # broken ls alias from the environment.  This has actually
2292
      # happened.  Such a system could not be considered "sane".
2293
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2294
alias in your environment" >&5
2295
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2296
alias in your environment" >&2;}
2297
   { (exit 1); exit 1; }; }
2298
   fi
2299
 
2300
   test "$2" = conftest.file
2301
   )
2302
then
2303
   # Ok.
2304
   :
2305
else
2306
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2307
Check your system clock" >&5
2308
$as_echo "$as_me: error: newly created file is older than distributed files!
2309
Check your system clock" >&2;}
2310
   { (exit 1); exit 1; }; }
2311
fi
2312
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2313
$as_echo "yes" >&6; }
2314
test "$program_prefix" != NONE &&
2315
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2316
# Use a double $ so make ignores it.
2317
test "$program_suffix" != NONE &&
2318
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2319
# Double any \ or $.
2320
# By default was `s,x,x', remove it if useless.
2321
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2322
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2323
 
2324
# expand $ac_aux_dir to an absolute path
2325
am_aux_dir=`cd $ac_aux_dir && pwd`
2326
 
2327
if test x"${MISSING+set}" != xset; then
2328
  case $am_aux_dir in
2329
  *\ * | *\     *)
2330
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2331
  *)
2332
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2333
  esac
2334
fi
2335
# Use eval to expand $SHELL
2336
if eval "$MISSING --run true"; then
2337
  am_missing_run="$MISSING --run "
2338
else
2339
  am_missing_run=
2340
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2341
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2342
fi
2343
 
2344
if test x"${install_sh}" != xset; then
2345
  case $am_aux_dir in
2346
  *\ * | *\     *)
2347
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2348
  *)
2349
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2350
  esac
2351
fi
2352
 
2353
# Installed binaries are usually stripped using `strip' when the user
2354
# run `make install-strip'.  However `strip' might not be the right
2355
# tool to use in cross-compilation environments, therefore Automake
2356
# will honor the `STRIP' environment variable to overrule this program.
2357
if test "$cross_compiling" != no; then
2358
  if test -n "$ac_tool_prefix"; then
2359
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2360
set dummy ${ac_tool_prefix}strip; ac_word=$2
2361
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2362
$as_echo_n "checking for $ac_word... " >&6; }
2363
if test "${ac_cv_prog_STRIP+set}" = set; then
2364
  $as_echo_n "(cached) " >&6
2365
else
2366
  if test -n "$STRIP"; then
2367
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2368
else
2369
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370
for as_dir in $PATH
2371
do
2372
  IFS=$as_save_IFS
2373
  test -z "$as_dir" && as_dir=.
2374
  for ac_exec_ext in '' $ac_executable_extensions; do
2375
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2377
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378
    break 2
2379
  fi
2380
done
2381
done
2382
IFS=$as_save_IFS
2383
 
2384
fi
2385
fi
2386
STRIP=$ac_cv_prog_STRIP
2387
if test -n "$STRIP"; then
2388
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2389
$as_echo "$STRIP" >&6; }
2390
else
2391
  { $as_echo "$as_me:$LINENO: result: no" >&5
2392
$as_echo "no" >&6; }
2393
fi
2394
 
2395
 
2396
fi
2397
if test -z "$ac_cv_prog_STRIP"; then
2398
  ac_ct_STRIP=$STRIP
2399
  # Extract the first word of "strip", so it can be a program name with args.
2400
set dummy strip; ac_word=$2
2401
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2402
$as_echo_n "checking for $ac_word... " >&6; }
2403
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2404
  $as_echo_n "(cached) " >&6
2405
else
2406
  if test -n "$ac_ct_STRIP"; then
2407
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2408
else
2409
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410
for as_dir in $PATH
2411
do
2412
  IFS=$as_save_IFS
2413
  test -z "$as_dir" && as_dir=.
2414
  for ac_exec_ext in '' $ac_executable_extensions; do
2415
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2416
    ac_cv_prog_ac_ct_STRIP="strip"
2417
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418
    break 2
2419
  fi
2420
done
2421
done
2422
IFS=$as_save_IFS
2423
 
2424
fi
2425
fi
2426
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2427
if test -n "$ac_ct_STRIP"; then
2428
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2429
$as_echo "$ac_ct_STRIP" >&6; }
2430
else
2431
  { $as_echo "$as_me:$LINENO: result: no" >&5
2432
$as_echo "no" >&6; }
2433
fi
2434
 
2435
  if test "x$ac_ct_STRIP" = x; then
2436
    STRIP=":"
2437
  else
2438
    case $cross_compiling:$ac_tool_warned in
2439
yes:)
2440
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2441
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2442
ac_tool_warned=yes ;;
2443
esac
2444
    STRIP=$ac_ct_STRIP
2445
  fi
2446
else
2447
  STRIP="$ac_cv_prog_STRIP"
2448
fi
2449
 
2450
fi
2451
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2452
 
2453
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2454
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2455
if test -z "$MKDIR_P"; then
2456
  if test "${ac_cv_path_mkdir+set}" = set; then
2457
  $as_echo_n "(cached) " >&6
2458
else
2459
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2461
do
2462
  IFS=$as_save_IFS
2463
  test -z "$as_dir" && as_dir=.
2464
  for ac_prog in mkdir gmkdir; do
2465
         for ac_exec_ext in '' $ac_executable_extensions; do
2466
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2467
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2468
             'mkdir (GNU coreutils) '* | \
2469
             'mkdir (coreutils) '* | \
2470
             'mkdir (fileutils) '4.1*)
2471
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2472
               break 3;;
2473
           esac
2474
         done
2475
       done
2476
done
2477
IFS=$as_save_IFS
2478
 
2479
fi
2480
 
2481
  if test "${ac_cv_path_mkdir+set}" = set; then
2482
    MKDIR_P="$ac_cv_path_mkdir -p"
2483
  else
2484
    # As a last resort, use the slow shell script.  Don't cache a
2485
    # value for MKDIR_P within a source directory, because that will
2486
    # break other packages using the cache if that directory is
2487
    # removed, or if the value is a relative name.
2488
    test -d ./--version && rmdir ./--version
2489
    MKDIR_P="$ac_install_sh -d"
2490
  fi
2491
fi
2492
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2493
$as_echo "$MKDIR_P" >&6; }
2494
 
2495
mkdir_p="$MKDIR_P"
2496
case $mkdir_p in
2497
  [\\/$]* | ?:[\\/]*) ;;
2498
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2499
esac
2500
 
2501
for ac_prog in gawk mawk nawk awk
2502
do
2503
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2504
set dummy $ac_prog; ac_word=$2
2505
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2506
$as_echo_n "checking for $ac_word... " >&6; }
2507
if test "${ac_cv_prog_AWK+set}" = set; then
2508
  $as_echo_n "(cached) " >&6
2509
else
2510
  if test -n "$AWK"; then
2511
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2512
else
2513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514
for as_dir in $PATH
2515
do
2516
  IFS=$as_save_IFS
2517
  test -z "$as_dir" && as_dir=.
2518
  for ac_exec_ext in '' $ac_executable_extensions; do
2519
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520
    ac_cv_prog_AWK="$ac_prog"
2521
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522
    break 2
2523
  fi
2524
done
2525
done
2526
IFS=$as_save_IFS
2527
 
2528
fi
2529
fi
2530
AWK=$ac_cv_prog_AWK
2531
if test -n "$AWK"; then
2532
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2533
$as_echo "$AWK" >&6; }
2534
else
2535
  { $as_echo "$as_me:$LINENO: result: no" >&5
2536
$as_echo "no" >&6; }
2537
fi
2538
 
2539
 
2540
  test -n "$AWK" && break
2541
done
2542
 
2543
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2544
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2545
set x ${MAKE-make}
2546
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2547
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2548
  $as_echo_n "(cached) " >&6
2549
else
2550
  cat >conftest.make <<\_ACEOF
2551
SHELL = /bin/sh
2552
all:
2553
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2554
_ACEOF
2555
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2556
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2557
  *@@@%%%=?*=@@@%%%*)
2558
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2559
  *)
2560
    eval ac_cv_prog_make_${ac_make}_set=no;;
2561
esac
2562
rm -f conftest.make
2563
fi
2564
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2565
  { $as_echo "$as_me:$LINENO: result: yes" >&5
2566
$as_echo "yes" >&6; }
2567
  SET_MAKE=
2568
else
2569
  { $as_echo "$as_me:$LINENO: result: no" >&5
2570
$as_echo "no" >&6; }
2571
  SET_MAKE="MAKE=${MAKE-make}"
2572
fi
2573
 
2574
rm -rf .tst 2>/dev/null
2575
mkdir .tst 2>/dev/null
2576
if test -d .tst; then
2577
  am__leading_dot=.
2578
else
2579
  am__leading_dot=_
2580
fi
2581
rmdir .tst 2>/dev/null
2582
 
2583
DEPDIR="${am__leading_dot}deps"
2584
 
2585
ac_config_commands="$ac_config_commands depfiles"
2586
 
2587
 
2588
am_make=${MAKE-make}
2589
cat > confinc << 'END'
2590
am__doit:
2591
        @echo this is the am__doit target
2592
.PHONY: am__doit
2593
END
2594
# If we don't find an include directive, just comment out the code.
2595
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2596
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2597
am__include="#"
2598
am__quote=
2599
_am_result=none
2600
# First try GNU make style include.
2601
echo "include confinc" > confmf
2602
# Ignore all kinds of additional output from `make'.
2603
case `$am_make -s -f confmf 2> /dev/null` in #(
2604
*the\ am__doit\ target*)
2605
  am__include=include
2606
  am__quote=
2607
  _am_result=GNU
2608
  ;;
2609
esac
2610
# Now try BSD make style include.
2611
if test "$am__include" = "#"; then
2612
   echo '.include "confinc"' > confmf
2613
   case `$am_make -s -f confmf 2> /dev/null` in #(
2614
   *the\ am__doit\ target*)
2615
     am__include=.include
2616
     am__quote="\""
2617
     _am_result=BSD
2618
     ;;
2619
   esac
2620
fi
2621
 
2622
 
2623
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2624
$as_echo "$_am_result" >&6; }
2625
rm -f confinc confmf
2626
 
2627
# Check whether --enable-dependency-tracking was given.
2628
if test "${enable_dependency_tracking+set}" = set; then
2629
  enableval=$enable_dependency_tracking;
2630
fi
2631
 
2632
if test "x$enable_dependency_tracking" != xno; then
2633
  am_depcomp="$ac_aux_dir/depcomp"
2634
  AMDEPBACKSLASH='\'
2635
fi
2636
 if test "x$enable_dependency_tracking" != xno; then
2637
  AMDEP_TRUE=
2638
  AMDEP_FALSE='#'
2639
else
2640
  AMDEP_TRUE='#'
2641
  AMDEP_FALSE=
2642
fi
2643
 
2644
 
2645
 
2646
# Check whether --enable-multilib was given.
2647
if test "${enable_multilib+set}" = set; then
2648
  enableval=$enable_multilib; case "${enableval}" in
2649
  yes) multilib=yes ;;
2650
  no)  multilib=no ;;
2651
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2652
$as_echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2653
   { (exit 1); exit 1; }; } ;;
2654
 esac
2655
else
2656
  multilib=yes
2657
fi
2658
 
2659
# Check whether --enable-target-optspace was given.
2660
if test "${enable_target_optspace+set}" = set; then
2661
  enableval=$enable_target_optspace; case "${enableval}" in
2662
  yes) target_optspace=yes ;;
2663
  no)  target_optspace=no ;;
2664
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
2665
$as_echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
2666
   { (exit 1); exit 1; }; } ;;
2667
 esac
2668
else
2669
  target_optspace=
2670
fi
2671
 
2672
# Check whether --enable-malloc-debugging was given.
2673
if test "${enable_malloc_debugging+set}" = set; then
2674
  enableval=$enable_malloc_debugging; case "${enableval}" in
2675
  yes) malloc_debugging=yes ;;
2676
  no)  malloc_debugging=no ;;
2677
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
2678
$as_echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
2679
   { (exit 1); exit 1; }; } ;;
2680
 esac
2681
else
2682
  malloc_debugging=
2683
fi
2684
 
2685
# Check whether --enable-newlib-multithread was given.
2686
if test "${enable_newlib_multithread+set}" = set; then
2687
  enableval=$enable_newlib_multithread; case "${enableval}" in
2688
  yes) newlib_multithread=yes ;;
2689
  no)  newlib_multithread=no ;;
2690
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
2691
$as_echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
2692
   { (exit 1); exit 1; }; } ;;
2693
 esac
2694
else
2695
  newlib_multithread=yes
2696
fi
2697
 
2698
# Check whether --enable-newlib-iconv was given.
2699
if test "${enable_newlib_iconv+set}" = set; then
2700
  enableval=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then
2701
   case "${enableval}" in
2702
     yes) newlib_iconv=yes ;;
2703
     no)  newlib_iconv=no ;;
2704
     *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
2705
$as_echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
2706
   { (exit 1); exit 1; }; } ;;
2707
   esac
2708
 fi
2709
else
2710
  newlib_iconv=${newlib_iconv}
2711
fi
2712
 
2713
# Check whether --enable-newlib-elix-level was given.
2714
if test "${enable_newlib_elix_level+set}" = set; then
2715
  enableval=$enable_newlib_elix_level; case "${enableval}" in
2716
  0)   newlib_elix_level=0 ;;
2717
  1)   newlib_elix_level=1 ;;
2718
  2)   newlib_elix_level=2 ;;
2719
  3)   newlib_elix_level=3 ;;
2720
  4)   newlib_elix_level=4 ;;
2721
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
2722
$as_echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
2723
   { (exit 1); exit 1; }; } ;;
2724
 esac
2725
else
2726
  newlib_elix_level=0
2727
fi
2728
 
2729
# Check whether --enable-newlib-io-float was given.
2730
if test "${enable_newlib_io_float+set}" = set; then
2731
  enableval=$enable_newlib_io_float; case "${enableval}" in
2732
  yes) newlib_io_float=yes ;;
2733
  no)  newlib_io_float=no ;;
2734
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
2735
$as_echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
2736
   { (exit 1); exit 1; }; } ;;
2737
 esac
2738
else
2739
  newlib_io_float=yes
2740
fi
2741
 
2742
# Check whether --enable-newlib-supplied-syscalls was given.
2743
if test "${enable_newlib_supplied_syscalls+set}" = set; then
2744
  enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
2745
  yes) newlib_may_supply_syscalls=yes ;;
2746
  no)  newlib_may_supply_syscalls=no ;;
2747
  *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
2748
$as_echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
2749
   { (exit 1); exit 1; }; } ;;
2750
 esac
2751
else
2752
  newlib_may_supply_syscalls=yes
2753
fi
2754
 
2755
 if test x${newlib_may_supply_syscalls} = xyes; then
2756
  MAY_SUPPLY_SYSCALLS_TRUE=
2757
  MAY_SUPPLY_SYSCALLS_FALSE='#'
2758
else
2759
  MAY_SUPPLY_SYSCALLS_TRUE='#'
2760
  MAY_SUPPLY_SYSCALLS_FALSE=
2761
fi
2762
 
2763
 
2764
 
2765
test -z "${with_target_subdir}" && with_target_subdir=.
2766
 
2767
if test "${srcdir}" = "."; then
2768
  if test "${with_target_subdir}" != "."; then
2769
    newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
2770
  else
2771
    newlib_basedir="${srcdir}/${with_multisrctop}../../.."
2772
  fi
2773
else
2774
  newlib_basedir="${srcdir}/../../.."
2775
fi
2776
 
2777
 
2778
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2779
$as_echo_n "checking host system type... " >&6; }
2780
if test "${ac_cv_host+set}" = set; then
2781
  $as_echo_n "(cached) " >&6
2782
else
2783
  if test "x$host_alias" = x; then
2784
  ac_cv_host=$ac_cv_build
2785
else
2786
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2787
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2788
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2789
   { (exit 1); exit 1; }; }
2790
fi
2791
 
2792
fi
2793
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2794
$as_echo "$ac_cv_host" >&6; }
2795
case $ac_cv_host in
2796
*-*-*) ;;
2797
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2798
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2799
   { (exit 1); exit 1; }; };;
2800
esac
2801
host=$ac_cv_host
2802
ac_save_IFS=$IFS; IFS='-'
2803
set x $ac_cv_host
2804
shift
2805
host_cpu=$1
2806
host_vendor=$2
2807
shift; shift
2808
# Remember, the first character of IFS is used to create $*,
2809
# except with old shells:
2810
host_os=$*
2811
IFS=$ac_save_IFS
2812
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2813
 
2814
 
2815
 
2816
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2817
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2818
  # is not polluted with repeated "-I."
2819
  am__isrc=' -I$(srcdir)'
2820
  # test to see if srcdir already configured
2821
  if test -f $srcdir/config.status; then
2822
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2823
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2824
   { (exit 1); exit 1; }; }
2825
  fi
2826
fi
2827
 
2828
# test whether we have cygpath
2829
if test -z "$CYGPATH_W"; then
2830
  if (cygpath --version) >/dev/null 2>/dev/null; then
2831
    CYGPATH_W='cygpath -w'
2832
  else
2833
    CYGPATH_W=echo
2834
  fi
2835
fi
2836
 
2837
 
2838
# Define the identity of the package.
2839
 PACKAGE='newlib'
2840
 VERSION='1.18.0'
2841
 
2842
 
2843
# Some tools Automake needs.
2844
 
2845
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2846
 
2847
 
2848
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2849
 
2850
 
2851
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2852
 
2853
 
2854
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2855
 
2856
 
2857
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2858
 
2859
# We need awk for the "check" target.  The system "awk" is bad on
2860
# some platforms.
2861
# Always define AMTAR for backward compatibility.
2862
 
2863
AMTAR=${AMTAR-"${am_missing_run}tar"}
2864
 
2865
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2866
 
2867
 
2868
 
2869
 
2870
 
2871
 
2872
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2873
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2874
# are probably using a cross compiler, which will not be able to fully
2875
# link an executable.  This should really be fixed in autoconf
2876
# itself.
2877
 
2878
 
2879
 
2880
 
2881
 
2882
 
2883
 
2884
# Extract the first word of "gcc", so it can be a program name with args.
2885
set dummy gcc; ac_word=$2
2886
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2887
$as_echo_n "checking for $ac_word... " >&6; }
2888
if test "${ac_cv_prog_CC+set}" = set; then
2889
  $as_echo_n "(cached) " >&6
2890
else
2891
  if test -n "$CC"; then
2892
  ac_cv_prog_CC="$CC" # Let the user override the test.
2893
else
2894
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895
for as_dir in $PATH
2896
do
2897
  IFS=$as_save_IFS
2898
  test -z "$as_dir" && as_dir=.
2899
  for ac_exec_ext in '' $ac_executable_extensions; do
2900
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901
    ac_cv_prog_CC="gcc"
2902
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903
    break 2
2904
  fi
2905
done
2906
done
2907
IFS=$as_save_IFS
2908
 
2909
fi
2910
fi
2911
CC=$ac_cv_prog_CC
2912
if test -n "$CC"; then
2913
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2914
$as_echo "$CC" >&6; }
2915
else
2916
  { $as_echo "$as_me:$LINENO: result: no" >&5
2917
$as_echo "no" >&6; }
2918
fi
2919
 
2920
 
2921
 
2922
depcc="$CC"   am_compiler_list=
2923
 
2924
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2925
$as_echo_n "checking dependency style of $depcc... " >&6; }
2926
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2927
  $as_echo_n "(cached) " >&6
2928
else
2929
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2930
  # We make a subdir and do the tests there.  Otherwise we can end up
2931
  # making bogus files that we don't know about and never remove.  For
2932
  # instance it was reported that on HP-UX the gcc test will end up
2933
  # making a dummy file named `D' -- because `-MD' means `put the output
2934
  # in D'.
2935
  mkdir conftest.dir
2936
  # Copy depcomp to subdir because otherwise we won't find it if we're
2937
  # using a relative directory.
2938
  cp "$am_depcomp" conftest.dir
2939
  cd conftest.dir
2940
  # We will build objects and dependencies in a subdirectory because
2941
  # it helps to detect inapplicable dependency modes.  For instance
2942
  # both Tru64's cc and ICC support -MD to output dependencies as a
2943
  # side effect of compilation, but ICC will put the dependencies in
2944
  # the current directory while Tru64 will put them in the object
2945
  # directory.
2946
  mkdir sub
2947
 
2948
  am_cv_CC_dependencies_compiler_type=none
2949
  if test "$am_compiler_list" = ""; then
2950
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2951
  fi
2952
  am__universal=false
2953
  case " $depcc " in #(
2954
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
2955
     esac
2956
 
2957
  for depmode in $am_compiler_list; do
2958
    # Setup a source with many dependencies, because some compilers
2959
    # like to wrap large dependency lists on column 80 (with \), and
2960
    # we should not choose a depcomp mode which is confused by this.
2961
    #
2962
    # We need to recreate these files for each test, as the compiler may
2963
    # overwrite some of them when testing with obscure command lines.
2964
    # This happens at least with the AIX C compiler.
2965
    : > sub/conftest.c
2966
    for i in 1 2 3 4 5 6; do
2967
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2968
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2969
      # Solaris 8's {/usr,}/bin/sh.
2970
      touch sub/conftst$i.h
2971
    done
2972
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2973
 
2974
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2975
    # mode.  It turns out that the SunPro C++ compiler does not properly
2976
    # handle `-M -o', and we need to detect this.  Also, some Intel
2977
    # versions had trouble with output in subdirs
2978
    am__obj=sub/conftest.${OBJEXT-o}
2979
    am__minus_obj="-o $am__obj"
2980
    case $depmode in
2981
    gcc)
2982
      # This depmode causes a compiler race in universal mode.
2983
      test "$am__universal" = false || continue
2984
      ;;
2985
    nosideeffect)
2986
      # after this tag, mechanisms are not by side-effect, so they'll
2987
      # only be used when explicitly requested
2988
      if test "x$enable_dependency_tracking" = xyes; then
2989
        continue
2990
      else
2991
        break
2992
      fi
2993
      ;;
2994
    msvisualcpp | msvcmsys)
2995
      # This compiler won't grok `-c -o', but also, the minuso test has
2996
      # not run yet.  These depmodes are late enough in the game, and
2997
      # so weak that their functioning should not be impacted.
2998
      am__obj=conftest.${OBJEXT-o}
2999
      am__minus_obj=
3000
      ;;
3001
    none) break ;;
3002
    esac
3003
    if depmode=$depmode \
3004
       source=sub/conftest.c object=$am__obj \
3005
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3006
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3007
         >/dev/null 2>conftest.err &&
3008
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3009
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3010
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3011
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3012
      # icc doesn't choke on unknown options, it will just issue warnings
3013
      # or remarks (even with -Werror).  So we grep stderr for any message
3014
      # that says an option was ignored or not supported.
3015
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3016
      #   icc: Command line warning: ignoring option '-M'; no argument required
3017
      # The diagnosis changed in icc 8.0:
3018
      #   icc: Command line remark: option '-MP' not supported
3019
      if (grep 'ignoring option' conftest.err ||
3020
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3021
        am_cv_CC_dependencies_compiler_type=$depmode
3022
        break
3023
      fi
3024
    fi
3025
  done
3026
 
3027
  cd ..
3028
  rm -rf conftest.dir
3029
else
3030
  am_cv_CC_dependencies_compiler_type=none
3031
fi
3032
 
3033
fi
3034
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3035
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3036
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3037
 
3038
 if
3039
  test "x$enable_dependency_tracking" != xno \
3040
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3041
  am__fastdepCC_TRUE=
3042
  am__fastdepCC_FALSE='#'
3043
else
3044
  am__fastdepCC_TRUE='#'
3045
  am__fastdepCC_FALSE=
3046
fi
3047
 
3048
 
3049
if test -z "$CC"; then
3050
  # Extract the first word of "cc", so it can be a program name with args.
3051
set dummy cc; ac_word=$2
3052
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3053
$as_echo_n "checking for $ac_word... " >&6; }
3054
if test "${ac_cv_prog_CC+set}" = set; then
3055
  $as_echo_n "(cached) " >&6
3056
else
3057
  if test -n "$CC"; then
3058
  ac_cv_prog_CC="$CC" # Let the user override the test.
3059
else
3060
  ac_prog_rejected=no
3061
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062
for as_dir in $PATH
3063
do
3064
  IFS=$as_save_IFS
3065
  test -z "$as_dir" && as_dir=.
3066
  for ac_exec_ext in '' $ac_executable_extensions; do
3067
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3069
       ac_prog_rejected=yes
3070
       continue
3071
     fi
3072
    ac_cv_prog_CC="cc"
3073
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3074
    break 2
3075
  fi
3076
done
3077
done
3078
IFS=$as_save_IFS
3079
 
3080
if test $ac_prog_rejected = yes; then
3081
  # We found a bogon in the path, so make sure we never use it.
3082
  set dummy $ac_cv_prog_CC
3083
  shift
3084
  if test $# != 0; then
3085
    # We chose a different compiler from the bogus one.
3086
    # However, it has the same basename, so the bogon will be chosen
3087
    # first if we set CC to just the basename; use the full file name.
3088
    shift
3089
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3090
  fi
3091
fi
3092
fi
3093
fi
3094
CC=$ac_cv_prog_CC
3095
if test -n "$CC"; then
3096
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3097
$as_echo "$CC" >&6; }
3098
else
3099
  { $as_echo "$as_me:$LINENO: result: no" >&5
3100
$as_echo "no" >&6; }
3101
fi
3102
 
3103
 
3104
  test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
3105
$as_echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3106
   { (exit 1); exit 1; }; }
3107
fi
3108
 
3109
{ $as_echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
3110
$as_echo_n "checking whether we are using GNU C... " >&6; }
3111
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3112
  $as_echo_n "(cached) " >&6
3113
else
3114
  cat > conftest.c <
3115
#ifdef __GNUC__
3116
  yes;
3117
#endif
3118
EOF
3119
if { ac_try='${CC-cc} -E conftest.c'
3120
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121
  (eval $ac_try) 2>&5
3122
  ac_status=$?
3123
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124
  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3125
  ac_cv_c_compiler_gnu=yes
3126
else
3127
  ac_cv_c_compiler_gnu=no
3128
fi
3129
fi
3130
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3131
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3132
 
3133
if test $ac_cv_c_compiler_gnu = yes; then
3134
  GCC=yes
3135
  ac_test_CFLAGS="${CFLAGS+set}"
3136
  ac_save_CFLAGS="$CFLAGS"
3137
  ac_test_CFLAGS=${CFLAGS+set}
3138
ac_save_CFLAGS=$CFLAGS
3139
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3140
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3141
if test "${ac_cv_prog_cc_g+set}" = set; then
3142
  $as_echo_n "(cached) " >&6
3143
else
3144
  ac_save_c_werror_flag=$ac_c_werror_flag
3145
   ac_c_werror_flag=yes
3146
   ac_cv_prog_cc_g=no
3147
   CFLAGS="-g"
3148
   cat >conftest.$ac_ext <<_ACEOF
3149
/* confdefs.h.  */
3150
_ACEOF
3151
cat confdefs.h >>conftest.$ac_ext
3152
cat >>conftest.$ac_ext <<_ACEOF
3153
/* end confdefs.h.  */
3154
 
3155
int
3156
main ()
3157
{
3158
 
3159
  ;
3160
  return 0;
3161
}
3162
_ACEOF
3163
rm -f conftest.$ac_objext
3164
if { (ac_try="$ac_compile"
3165
case "(($ac_try" in
3166
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167
  *) ac_try_echo=$ac_try;;
3168
esac
3169
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3170
$as_echo "$ac_try_echo") >&5
3171
  (eval "$ac_compile") 2>conftest.er1
3172
  ac_status=$?
3173
  grep -v '^ *+' conftest.er1 >conftest.err
3174
  rm -f conftest.er1
3175
  cat conftest.err >&5
3176
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177
  (exit $ac_status); } && {
3178
         test -z "$ac_c_werror_flag" ||
3179
         test ! -s conftest.err
3180
       } && test -s conftest.$ac_objext; then
3181
  ac_cv_prog_cc_g=yes
3182
else
3183
  $as_echo "$as_me: failed program was:" >&5
3184
sed 's/^/| /' conftest.$ac_ext >&5
3185
 
3186
        CFLAGS=""
3187
      cat >conftest.$ac_ext <<_ACEOF
3188
/* confdefs.h.  */
3189
_ACEOF
3190
cat confdefs.h >>conftest.$ac_ext
3191
cat >>conftest.$ac_ext <<_ACEOF
3192
/* end confdefs.h.  */
3193
 
3194
int
3195
main ()
3196
{
3197
 
3198
  ;
3199
  return 0;
3200
}
3201
_ACEOF
3202
rm -f conftest.$ac_objext
3203
if { (ac_try="$ac_compile"
3204
case "(($ac_try" in
3205
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206
  *) ac_try_echo=$ac_try;;
3207
esac
3208
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3209
$as_echo "$ac_try_echo") >&5
3210
  (eval "$ac_compile") 2>conftest.er1
3211
  ac_status=$?
3212
  grep -v '^ *+' conftest.er1 >conftest.err
3213
  rm -f conftest.er1
3214
  cat conftest.err >&5
3215
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216
  (exit $ac_status); } && {
3217
         test -z "$ac_c_werror_flag" ||
3218
         test ! -s conftest.err
3219
       } && test -s conftest.$ac_objext; then
3220
  :
3221
else
3222
  $as_echo "$as_me: failed program was:" >&5
3223
sed 's/^/| /' conftest.$ac_ext >&5
3224
 
3225
        ac_c_werror_flag=$ac_save_c_werror_flag
3226
         CFLAGS="-g"
3227
         cat >conftest.$ac_ext <<_ACEOF
3228
/* confdefs.h.  */
3229
_ACEOF
3230
cat confdefs.h >>conftest.$ac_ext
3231
cat >>conftest.$ac_ext <<_ACEOF
3232
/* end confdefs.h.  */
3233
 
3234
int
3235
main ()
3236
{
3237
 
3238
  ;
3239
  return 0;
3240
}
3241
_ACEOF
3242
rm -f conftest.$ac_objext
3243
if { (ac_try="$ac_compile"
3244
case "(($ac_try" in
3245
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246
  *) ac_try_echo=$ac_try;;
3247
esac
3248
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3249
$as_echo "$ac_try_echo") >&5
3250
  (eval "$ac_compile") 2>conftest.er1
3251
  ac_status=$?
3252
  grep -v '^ *+' conftest.er1 >conftest.err
3253
  rm -f conftest.er1
3254
  cat conftest.err >&5
3255
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256
  (exit $ac_status); } && {
3257
         test -z "$ac_c_werror_flag" ||
3258
         test ! -s conftest.err
3259
       } && test -s conftest.$ac_objext; then
3260
  ac_cv_prog_cc_g=yes
3261
else
3262
  $as_echo "$as_me: failed program was:" >&5
3263
sed 's/^/| /' conftest.$ac_ext >&5
3264
 
3265
 
3266
fi
3267
 
3268
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269
fi
3270
 
3271
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272
fi
3273
 
3274
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275
   ac_c_werror_flag=$ac_save_c_werror_flag
3276
fi
3277
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3278
$as_echo "$ac_cv_prog_cc_g" >&6; }
3279
if test "$ac_test_CFLAGS" = set; then
3280
  CFLAGS=$ac_save_CFLAGS
3281
elif test $ac_cv_prog_cc_g = yes; then
3282
  if test "$GCC" = yes; then
3283
    CFLAGS="-g -O2"
3284
  else
3285
    CFLAGS="-g"
3286
  fi
3287
else
3288
  if test "$GCC" = yes; then
3289
    CFLAGS="-O2"
3290
  else
3291
    CFLAGS=
3292
  fi
3293
fi
3294
  if test "$ac_test_CFLAGS" = set; then
3295
    CFLAGS="$ac_save_CFLAGS"
3296
  elif test $ac_cv_prog_cc_g = yes; then
3297
    CFLAGS="-g -O2"
3298
  else
3299
    CFLAGS="-O2"
3300
  fi
3301
else
3302
  GCC=
3303
  test "${CFLAGS+set}" = set || CFLAGS="-g"
3304
fi
3305
 
3306
 
3307
if test -n "$ac_tool_prefix"; then
3308
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3309
set dummy ${ac_tool_prefix}as; ac_word=$2
3310
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3311
$as_echo_n "checking for $ac_word... " >&6; }
3312
if test "${ac_cv_prog_AS+set}" = set; then
3313
  $as_echo_n "(cached) " >&6
3314
else
3315
  if test -n "$AS"; then
3316
  ac_cv_prog_AS="$AS" # Let the user override the test.
3317
else
3318
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319
for as_dir in $PATH
3320
do
3321
  IFS=$as_save_IFS
3322
  test -z "$as_dir" && as_dir=.
3323
  for ac_exec_ext in '' $ac_executable_extensions; do
3324
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3325
    ac_cv_prog_AS="${ac_tool_prefix}as"
3326
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327
    break 2
3328
  fi
3329
done
3330
done
3331
IFS=$as_save_IFS
3332
 
3333
fi
3334
fi
3335
AS=$ac_cv_prog_AS
3336
if test -n "$AS"; then
3337
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
3338
$as_echo "$AS" >&6; }
3339
else
3340
  { $as_echo "$as_me:$LINENO: result: no" >&5
3341
$as_echo "no" >&6; }
3342
fi
3343
 
3344
 
3345
fi
3346
if test -z "$ac_cv_prog_AS"; then
3347
  ac_ct_AS=$AS
3348
  # Extract the first word of "as", so it can be a program name with args.
3349
set dummy as; ac_word=$2
3350
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3351
$as_echo_n "checking for $ac_word... " >&6; }
3352
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3353
  $as_echo_n "(cached) " >&6
3354
else
3355
  if test -n "$ac_ct_AS"; then
3356
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3357
else
3358
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359
for as_dir in $PATH
3360
do
3361
  IFS=$as_save_IFS
3362
  test -z "$as_dir" && as_dir=.
3363
  for ac_exec_ext in '' $ac_executable_extensions; do
3364
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3365
    ac_cv_prog_ac_ct_AS="as"
3366
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3367
    break 2
3368
  fi
3369
done
3370
done
3371
IFS=$as_save_IFS
3372
 
3373
fi
3374
fi
3375
ac_ct_AS=$ac_cv_prog_ac_ct_AS
3376
if test -n "$ac_ct_AS"; then
3377
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3378
$as_echo "$ac_ct_AS" >&6; }
3379
else
3380
  { $as_echo "$as_me:$LINENO: result: no" >&5
3381
$as_echo "no" >&6; }
3382
fi
3383
 
3384
  if test "x$ac_ct_AS" = x; then
3385
    AS=""
3386
  else
3387
    case $cross_compiling:$ac_tool_warned in
3388
yes:)
3389
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3390
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3391
ac_tool_warned=yes ;;
3392
esac
3393
    AS=$ac_ct_AS
3394
  fi
3395
else
3396
  AS="$ac_cv_prog_AS"
3397
fi
3398
 
3399
if test -n "$ac_tool_prefix"; then
3400
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3401
set dummy ${ac_tool_prefix}ar; ac_word=$2
3402
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3403
$as_echo_n "checking for $ac_word... " >&6; }
3404
if test "${ac_cv_prog_AR+set}" = set; then
3405
  $as_echo_n "(cached) " >&6
3406
else
3407
  if test -n "$AR"; then
3408
  ac_cv_prog_AR="$AR" # Let the user override the test.
3409
else
3410
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411
for as_dir in $PATH
3412
do
3413
  IFS=$as_save_IFS
3414
  test -z "$as_dir" && as_dir=.
3415
  for ac_exec_ext in '' $ac_executable_extensions; do
3416
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3417
    ac_cv_prog_AR="${ac_tool_prefix}ar"
3418
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3419
    break 2
3420
  fi
3421
done
3422
done
3423
IFS=$as_save_IFS
3424
 
3425
fi
3426
fi
3427
AR=$ac_cv_prog_AR
3428
if test -n "$AR"; then
3429
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
3430
$as_echo "$AR" >&6; }
3431
else
3432
  { $as_echo "$as_me:$LINENO: result: no" >&5
3433
$as_echo "no" >&6; }
3434
fi
3435
 
3436
 
3437
fi
3438
if test -z "$ac_cv_prog_AR"; then
3439
  ac_ct_AR=$AR
3440
  # Extract the first word of "ar", so it can be a program name with args.
3441
set dummy ar; ac_word=$2
3442
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3443
$as_echo_n "checking for $ac_word... " >&6; }
3444
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3445
  $as_echo_n "(cached) " >&6
3446
else
3447
  if test -n "$ac_ct_AR"; then
3448
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3449
else
3450
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451
for as_dir in $PATH
3452
do
3453
  IFS=$as_save_IFS
3454
  test -z "$as_dir" && as_dir=.
3455
  for ac_exec_ext in '' $ac_executable_extensions; do
3456
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3457
    ac_cv_prog_ac_ct_AR="ar"
3458
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3459
    break 2
3460
  fi
3461
done
3462
done
3463
IFS=$as_save_IFS
3464
 
3465
fi
3466
fi
3467
ac_ct_AR=$ac_cv_prog_ac_ct_AR
3468
if test -n "$ac_ct_AR"; then
3469
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3470
$as_echo "$ac_ct_AR" >&6; }
3471
else
3472
  { $as_echo "$as_me:$LINENO: result: no" >&5
3473
$as_echo "no" >&6; }
3474
fi
3475
 
3476
  if test "x$ac_ct_AR" = x; then
3477
    AR=""
3478
  else
3479
    case $cross_compiling:$ac_tool_warned in
3480
yes:)
3481
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3482
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3483
ac_tool_warned=yes ;;
3484
esac
3485
    AR=$ac_ct_AR
3486
  fi
3487
else
3488
  AR="$ac_cv_prog_AR"
3489
fi
3490
 
3491
if test -n "$ac_tool_prefix"; then
3492
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3493
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3494
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3495
$as_echo_n "checking for $ac_word... " >&6; }
3496
if test "${ac_cv_prog_RANLIB+set}" = set; then
3497
  $as_echo_n "(cached) " >&6
3498
else
3499
  if test -n "$RANLIB"; then
3500
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3501
else
3502
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503
for as_dir in $PATH
3504
do
3505
  IFS=$as_save_IFS
3506
  test -z "$as_dir" && as_dir=.
3507
  for ac_exec_ext in '' $ac_executable_extensions; do
3508
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3510
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3511
    break 2
3512
  fi
3513
done
3514
done
3515
IFS=$as_save_IFS
3516
 
3517
fi
3518
fi
3519
RANLIB=$ac_cv_prog_RANLIB
3520
if test -n "$RANLIB"; then
3521
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3522
$as_echo "$RANLIB" >&6; }
3523
else
3524
  { $as_echo "$as_me:$LINENO: result: no" >&5
3525
$as_echo "no" >&6; }
3526
fi
3527
 
3528
 
3529
fi
3530
if test -z "$ac_cv_prog_RANLIB"; then
3531
  ac_ct_RANLIB=$RANLIB
3532
  # Extract the first word of "ranlib", so it can be a program name with args.
3533
set dummy ranlib; ac_word=$2
3534
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3535
$as_echo_n "checking for $ac_word... " >&6; }
3536
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3537
  $as_echo_n "(cached) " >&6
3538
else
3539
  if test -n "$ac_ct_RANLIB"; then
3540
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3541
else
3542
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543
for as_dir in $PATH
3544
do
3545
  IFS=$as_save_IFS
3546
  test -z "$as_dir" && as_dir=.
3547
  for ac_exec_ext in '' $ac_executable_extensions; do
3548
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3550
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3551
    break 2
3552
  fi
3553
done
3554
done
3555
IFS=$as_save_IFS
3556
 
3557
fi
3558
fi
3559
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3560
if test -n "$ac_ct_RANLIB"; then
3561
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3562
$as_echo "$ac_ct_RANLIB" >&6; }
3563
else
3564
  { $as_echo "$as_me:$LINENO: result: no" >&5
3565
$as_echo "no" >&6; }
3566
fi
3567
 
3568
  if test "x$ac_ct_RANLIB" = x; then
3569
    RANLIB=":"
3570
  else
3571
    case $cross_compiling:$ac_tool_warned in
3572
yes:)
3573
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3574
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3575
ac_tool_warned=yes ;;
3576
esac
3577
    RANLIB=$ac_ct_RANLIB
3578
  fi
3579
else
3580
  RANLIB="$ac_cv_prog_RANLIB"
3581
fi
3582
 
3583
if test -n "$ac_tool_prefix"; then
3584
  # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3585
set dummy ${ac_tool_prefix}readelf; ac_word=$2
3586
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3587
$as_echo_n "checking for $ac_word... " >&6; }
3588
if test "${ac_cv_prog_READELF+set}" = set; then
3589
  $as_echo_n "(cached) " >&6
3590
else
3591
  if test -n "$READELF"; then
3592
  ac_cv_prog_READELF="$READELF" # Let the user override the test.
3593
else
3594
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595
for as_dir in $PATH
3596
do
3597
  IFS=$as_save_IFS
3598
  test -z "$as_dir" && as_dir=.
3599
  for ac_exec_ext in '' $ac_executable_extensions; do
3600
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601
    ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3602
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3603
    break 2
3604
  fi
3605
done
3606
done
3607
IFS=$as_save_IFS
3608
 
3609
fi
3610
fi
3611
READELF=$ac_cv_prog_READELF
3612
if test -n "$READELF"; then
3613
  { $as_echo "$as_me:$LINENO: result: $READELF" >&5
3614
$as_echo "$READELF" >&6; }
3615
else
3616
  { $as_echo "$as_me:$LINENO: result: no" >&5
3617
$as_echo "no" >&6; }
3618
fi
3619
 
3620
 
3621
fi
3622
if test -z "$ac_cv_prog_READELF"; then
3623
  ac_ct_READELF=$READELF
3624
  # Extract the first word of "readelf", so it can be a program name with args.
3625
set dummy readelf; ac_word=$2
3626
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3627
$as_echo_n "checking for $ac_word... " >&6; }
3628
if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
3629
  $as_echo_n "(cached) " >&6
3630
else
3631
  if test -n "$ac_ct_READELF"; then
3632
  ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3633
else
3634
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635
for as_dir in $PATH
3636
do
3637
  IFS=$as_save_IFS
3638
  test -z "$as_dir" && as_dir=.
3639
  for ac_exec_ext in '' $ac_executable_extensions; do
3640
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641
    ac_cv_prog_ac_ct_READELF="readelf"
3642
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3643
    break 2
3644
  fi
3645
done
3646
done
3647
IFS=$as_save_IFS
3648
 
3649
fi
3650
fi
3651
ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3652
if test -n "$ac_ct_READELF"; then
3653
  { $as_echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
3654
$as_echo "$ac_ct_READELF" >&6; }
3655
else
3656
  { $as_echo "$as_me:$LINENO: result: no" >&5
3657
$as_echo "no" >&6; }
3658
fi
3659
 
3660
  if test "x$ac_ct_READELF" = x; then
3661
    READELF=":"
3662
  else
3663
    case $cross_compiling:$ac_tool_warned in
3664
yes:)
3665
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3666
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3667
ac_tool_warned=yes ;;
3668
esac
3669
    READELF=$ac_ct_READELF
3670
  fi
3671
else
3672
  READELF="$ac_cv_prog_READELF"
3673
fi
3674
 
3675
 
3676
# Find a good install program.  We prefer a C program (faster),
3677
# so one script is as good as another.  But avoid the broken or
3678
# incompatible versions:
3679
# SysV /etc/install, /usr/sbin/install
3680
# SunOS /usr/etc/install
3681
# IRIX /sbin/install
3682
# AIX /bin/install
3683
# AmigaOS /C/install, which installs bootblocks on floppy discs
3684
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3685
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3686
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3687
# OS/2's system install, which has a completely different semantic
3688
# ./install, which can be erroneously created by make from ./install.sh.
3689
# Reject install programs that cannot install multiple files.
3690
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3691
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3692
if test -z "$INSTALL"; then
3693
if test "${ac_cv_path_install+set}" = set; then
3694
  $as_echo_n "(cached) " >&6
3695
else
3696
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697
for as_dir in $PATH
3698
do
3699
  IFS=$as_save_IFS
3700
  test -z "$as_dir" && as_dir=.
3701
  # Account for people who put trailing slashes in PATH elements.
3702
case $as_dir/ in
3703
  ./ | .// | /cC/* | \
3704
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3705
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3706
  /usr/ucb/* ) ;;
3707
  *)
3708
    # OSF1 and SCO ODT 3.0 have their own names for install.
3709
    # Don't use installbsd from OSF since it installs stuff as root
3710
    # by default.
3711
    for ac_prog in ginstall scoinst install; do
3712
      for ac_exec_ext in '' $ac_executable_extensions; do
3713
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3714
          if test $ac_prog = install &&
3715
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3716
            # AIX install.  It has an incompatible calling convention.
3717
            :
3718
          elif test $ac_prog = install &&
3719
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3720
            # program-specific install script used by HP pwplus--don't use.
3721
            :
3722
          else
3723
            rm -rf conftest.one conftest.two conftest.dir
3724
            echo one > conftest.one
3725
            echo two > conftest.two
3726
            mkdir conftest.dir
3727
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3728
              test -s conftest.one && test -s conftest.two &&
3729
              test -s conftest.dir/conftest.one &&
3730
              test -s conftest.dir/conftest.two
3731
            then
3732
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3733
              break 3
3734
            fi
3735
          fi
3736
        fi
3737
      done
3738
    done
3739
    ;;
3740
esac
3741
 
3742
done
3743
IFS=$as_save_IFS
3744
 
3745
rm -rf conftest.one conftest.two conftest.dir
3746
 
3747
fi
3748
  if test "${ac_cv_path_install+set}" = set; then
3749
    INSTALL=$ac_cv_path_install
3750
  else
3751
    # As a last resort, use the slow shell script.  Don't cache a
3752
    # value for INSTALL within a source directory, because that will
3753
    # break other packages using the cache if that directory is
3754
    # removed, or if the value is a relative name.
3755
    INSTALL=$ac_install_sh
3756
  fi
3757
fi
3758
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3759
$as_echo "$INSTALL" >&6; }
3760
 
3761
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3762
# It thinks the first close brace ends the variable substitution.
3763
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3764
 
3765
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3766
 
3767
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3768
 
3769
 
3770
# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
3771
ac_given_INSTALL=$INSTALL
3772
 
3773
 
3774
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3775
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3776
    # Check whether --enable-maintainer-mode was given.
3777
if test "${enable_maintainer_mode+set}" = set; then
3778
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3779
else
3780
  USE_MAINTAINER_MODE=no
3781
fi
3782
 
3783
  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3784
$as_echo "$USE_MAINTAINER_MODE" >&6; }
3785
   if test $USE_MAINTAINER_MODE = yes; then
3786
  MAINTAINER_MODE_TRUE=
3787
  MAINTAINER_MODE_FALSE='#'
3788
else
3789
  MAINTAINER_MODE_TRUE='#'
3790
  MAINTAINER_MODE_FALSE=
3791
fi
3792
 
3793
  MAINT=$MAINTAINER_MODE_TRUE
3794
 
3795
 
3796
# By default we simply use the C compiler to build assembly code.
3797
 
3798
test "${CCAS+set}" = set || CCAS=$CC
3799
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3800
 
3801
 
3802
 
3803
 
3804
# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
3805
# at least currently, we never actually build a program, so we never
3806
# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
3807
# fails, because we are probably configuring with a cross compiler
3808
# which can't create executables.  So we include AC_EXEEXT to keep
3809
# automake happy, but we don't execute it, since we don't care about
3810
# the result.
3811
if false; then
3812
 
3813
  dummy_var=1
3814
fi
3815
 
3816
. ${newlib_basedir}/configure.host
3817
 
3818
newlib_cflags="${newlib_cflags} -fno-builtin"
3819
 
3820
NEWLIB_CFLAGS=${newlib_cflags}
3821
 
3822
 
3823
LDFLAGS=${ldflags}
3824
 
3825
 
3826
 if test x${newlib_elix_level} = x0; then
3827
  ELIX_LEVEL_0_TRUE=
3828
  ELIX_LEVEL_0_FALSE='#'
3829
else
3830
  ELIX_LEVEL_0_TRUE='#'
3831
  ELIX_LEVEL_0_FALSE=
3832
fi
3833
 
3834
 if test x${newlib_elix_level} = x1; then
3835
  ELIX_LEVEL_1_TRUE=
3836
  ELIX_LEVEL_1_FALSE='#'
3837
else
3838
  ELIX_LEVEL_1_TRUE='#'
3839
  ELIX_LEVEL_1_FALSE=
3840
fi
3841
 
3842
 if test x${newlib_elix_level} = x2; then
3843
  ELIX_LEVEL_2_TRUE=
3844
  ELIX_LEVEL_2_FALSE='#'
3845
else
3846
  ELIX_LEVEL_2_TRUE='#'
3847
  ELIX_LEVEL_2_FALSE=
3848
fi
3849
 
3850
 if test x${newlib_elix_level} = x3; then
3851
  ELIX_LEVEL_3_TRUE=
3852
  ELIX_LEVEL_3_FALSE='#'
3853
else
3854
  ELIX_LEVEL_3_TRUE='#'
3855
  ELIX_LEVEL_3_FALSE=
3856
fi
3857
 
3858
 if test x${newlib_elix_level} = x4; then
3859
  ELIX_LEVEL_4_TRUE=
3860
  ELIX_LEVEL_4_FALSE='#'
3861
else
3862
  ELIX_LEVEL_4_TRUE='#'
3863
  ELIX_LEVEL_4_FALSE=
3864
fi
3865
 
3866
 
3867
 if test x${use_libtool} = xyes; then
3868
  USE_LIBTOOL_TRUE=
3869
  USE_LIBTOOL_FALSE='#'
3870
else
3871
  USE_LIBTOOL_TRUE='#'
3872
  USE_LIBTOOL_FALSE=
3873
fi
3874
 
3875
 
3876
# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3877
# use oext, which is set in configure.host based on the target platform.
3878
OBJEXT=${oext}
3879
 
3880
 
3881
 
3882
 
3883
 
3884
 
3885
 
3886
 
3887
 
3888
 
3889
 
3890
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3891
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3892
if test "${ac_cv_path_SED+set}" = set; then
3893
  $as_echo_n "(cached) " >&6
3894
else
3895
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3896
     for ac_i in 1 2 3 4 5 6 7; do
3897
       ac_script="$ac_script$as_nl$ac_script"
3898
     done
3899
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3900
     $as_unset ac_script || ac_script=
3901
     if test -z "$SED"; then
3902
  ac_path_SED_found=false
3903
  # Loop through the user's path and test for each of PROGNAME-LIST
3904
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905
for as_dir in $PATH
3906
do
3907
  IFS=$as_save_IFS
3908
  test -z "$as_dir" && as_dir=.
3909
  for ac_prog in sed gsed; do
3910
    for ac_exec_ext in '' $ac_executable_extensions; do
3911
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3912
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3913
# Check for GNU ac_path_SED and select it if it is found.
3914
  # Check for GNU $ac_path_SED
3915
case `"$ac_path_SED" --version 2>&1` in
3916
*GNU*)
3917
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3918
*)
3919
  ac_count=0
3920
  $as_echo_n 0123456789 >"conftest.in"
3921
  while :
3922
  do
3923
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3924
    mv "conftest.tmp" "conftest.in"
3925
    cp "conftest.in" "conftest.nl"
3926
    $as_echo '' >> "conftest.nl"
3927
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3928
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3929
    ac_count=`expr $ac_count + 1`
3930
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3931
      # Best one so far, save it but keep looking for a better one
3932
      ac_cv_path_SED="$ac_path_SED"
3933
      ac_path_SED_max=$ac_count
3934
    fi
3935
    # 10*(2^10) chars as input seems more than enough
3936
    test $ac_count -gt 10 && break
3937
  done
3938
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3939
esac
3940
 
3941
      $ac_path_SED_found && break 3
3942
    done
3943
  done
3944
done
3945
IFS=$as_save_IFS
3946
  if test -z "$ac_cv_path_SED"; then
3947
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3948
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3949
   { (exit 1); exit 1; }; }
3950
  fi
3951
else
3952
  ac_cv_path_SED=$SED
3953
fi
3954
 
3955
fi
3956
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3957
$as_echo "$ac_cv_path_SED" >&6; }
3958
 SED="$ac_cv_path_SED"
3959
  rm -f conftest.sed
3960
 
3961
test -z "$SED" && SED=sed
3962
Xsed="$SED -e 1s/^X//"
3963
 
3964
 
3965
 
3966
 
3967
 
3968
 
3969
 
3970
 
3971
 
3972
 
3973
 
3974
for ac_prog in gawk mawk nawk awk
3975
do
3976
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3977
set dummy $ac_prog; ac_word=$2
3978
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3979
$as_echo_n "checking for $ac_word... " >&6; }
3980
if test "${ac_cv_prog_AWK+set}" = set; then
3981
  $as_echo_n "(cached) " >&6
3982
else
3983
  if test -n "$AWK"; then
3984
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3985
else
3986
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987
for as_dir in $PATH
3988
do
3989
  IFS=$as_save_IFS
3990
  test -z "$as_dir" && as_dir=.
3991
  for ac_exec_ext in '' $ac_executable_extensions; do
3992
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3993
    ac_cv_prog_AWK="$ac_prog"
3994
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995
    break 2
3996
  fi
3997
done
3998
done
3999
IFS=$as_save_IFS
4000
 
4001
fi
4002
fi
4003
AWK=$ac_cv_prog_AWK
4004
if test -n "$AWK"; then
4005
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4006
$as_echo "$AWK" >&6; }
4007
else
4008
  { $as_echo "$as_me:$LINENO: result: no" >&5
4009
$as_echo "no" >&6; }
4010
fi
4011
 
4012
 
4013
  test -n "$AWK" && break
4014
done
4015
 
4016
if test "${use_libtool}" = "yes"; then
4017
enable_win32_dll=yes
4018
 
4019
case $host in
4020
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4021
  if test -n "$ac_tool_prefix"; then
4022
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4023
set dummy ${ac_tool_prefix}as; ac_word=$2
4024
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4025
$as_echo_n "checking for $ac_word... " >&6; }
4026
if test "${ac_cv_prog_AS+set}" = set; then
4027
  $as_echo_n "(cached) " >&6
4028
else
4029
  if test -n "$AS"; then
4030
  ac_cv_prog_AS="$AS" # Let the user override the test.
4031
else
4032
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033
for as_dir in $PATH
4034
do
4035
  IFS=$as_save_IFS
4036
  test -z "$as_dir" && as_dir=.
4037
  for ac_exec_ext in '' $ac_executable_extensions; do
4038
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4039
    ac_cv_prog_AS="${ac_tool_prefix}as"
4040
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4041
    break 2
4042
  fi
4043
done
4044
done
4045
IFS=$as_save_IFS
4046
 
4047
fi
4048
fi
4049
AS=$ac_cv_prog_AS
4050
if test -n "$AS"; then
4051
  { $as_echo "$as_me:$LINENO: result: $AS" >&5
4052
$as_echo "$AS" >&6; }
4053
else
4054
  { $as_echo "$as_me:$LINENO: result: no" >&5
4055
$as_echo "no" >&6; }
4056
fi
4057
 
4058
 
4059
fi
4060
if test -z "$ac_cv_prog_AS"; then
4061
  ac_ct_AS=$AS
4062
  # Extract the first word of "as", so it can be a program name with args.
4063
set dummy as; ac_word=$2
4064
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4065
$as_echo_n "checking for $ac_word... " >&6; }
4066
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4067
  $as_echo_n "(cached) " >&6
4068
else
4069
  if test -n "$ac_ct_AS"; then
4070
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4071
else
4072
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073
for as_dir in $PATH
4074
do
4075
  IFS=$as_save_IFS
4076
  test -z "$as_dir" && as_dir=.
4077
  for ac_exec_ext in '' $ac_executable_extensions; do
4078
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4079
    ac_cv_prog_ac_ct_AS="as"
4080
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4081
    break 2
4082
  fi
4083
done
4084
done
4085
IFS=$as_save_IFS
4086
 
4087
fi
4088
fi
4089
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4090
if test -n "$ac_ct_AS"; then
4091
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4092
$as_echo "$ac_ct_AS" >&6; }
4093
else
4094
  { $as_echo "$as_me:$LINENO: result: no" >&5
4095
$as_echo "no" >&6; }
4096
fi
4097
 
4098
  if test "x$ac_ct_AS" = x; then
4099
    AS="false"
4100
  else
4101
    case $cross_compiling:$ac_tool_warned in
4102
yes:)
4103
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4104
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4105
ac_tool_warned=yes ;;
4106
esac
4107
    AS=$ac_ct_AS
4108
  fi
4109
else
4110
  AS="$ac_cv_prog_AS"
4111
fi
4112
 
4113
  if test -n "$ac_tool_prefix"; then
4114
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4115
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4116
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4117
$as_echo_n "checking for $ac_word... " >&6; }
4118
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4119
  $as_echo_n "(cached) " >&6
4120
else
4121
  if test -n "$DLLTOOL"; then
4122
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4123
else
4124
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125
for as_dir in $PATH
4126
do
4127
  IFS=$as_save_IFS
4128
  test -z "$as_dir" && as_dir=.
4129
  for ac_exec_ext in '' $ac_executable_extensions; do
4130
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4131
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4132
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133
    break 2
4134
  fi
4135
done
4136
done
4137
IFS=$as_save_IFS
4138
 
4139
fi
4140
fi
4141
DLLTOOL=$ac_cv_prog_DLLTOOL
4142
if test -n "$DLLTOOL"; then
4143
  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4144
$as_echo "$DLLTOOL" >&6; }
4145
else
4146
  { $as_echo "$as_me:$LINENO: result: no" >&5
4147
$as_echo "no" >&6; }
4148
fi
4149
 
4150
 
4151
fi
4152
if test -z "$ac_cv_prog_DLLTOOL"; then
4153
  ac_ct_DLLTOOL=$DLLTOOL
4154
  # Extract the first word of "dlltool", so it can be a program name with args.
4155
set dummy dlltool; ac_word=$2
4156
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4157
$as_echo_n "checking for $ac_word... " >&6; }
4158
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4159
  $as_echo_n "(cached) " >&6
4160
else
4161
  if test -n "$ac_ct_DLLTOOL"; then
4162
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4163
else
4164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165
for as_dir in $PATH
4166
do
4167
  IFS=$as_save_IFS
4168
  test -z "$as_dir" && as_dir=.
4169
  for ac_exec_ext in '' $ac_executable_extensions; do
4170
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4171
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4172
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173
    break 2
4174
  fi
4175
done
4176
done
4177
IFS=$as_save_IFS
4178
 
4179
fi
4180
fi
4181
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4182
if test -n "$ac_ct_DLLTOOL"; then
4183
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4184
$as_echo "$ac_ct_DLLTOOL" >&6; }
4185
else
4186
  { $as_echo "$as_me:$LINENO: result: no" >&5
4187
$as_echo "no" >&6; }
4188
fi
4189
 
4190
  if test "x$ac_ct_DLLTOOL" = x; then
4191
    DLLTOOL="false"
4192
  else
4193
    case $cross_compiling:$ac_tool_warned in
4194
yes:)
4195
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4196
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4197
ac_tool_warned=yes ;;
4198
esac
4199
    DLLTOOL=$ac_ct_DLLTOOL
4200
  fi
4201
else
4202
  DLLTOOL="$ac_cv_prog_DLLTOOL"
4203
fi
4204
 
4205
  if test -n "$ac_tool_prefix"; then
4206
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4207
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4208
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4209
$as_echo_n "checking for $ac_word... " >&6; }
4210
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4211
  $as_echo_n "(cached) " >&6
4212
else
4213
  if test -n "$OBJDUMP"; then
4214
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4215
else
4216
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217
for as_dir in $PATH
4218
do
4219
  IFS=$as_save_IFS
4220
  test -z "$as_dir" && as_dir=.
4221
  for ac_exec_ext in '' $ac_executable_extensions; do
4222
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4223
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4224
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225
    break 2
4226
  fi
4227
done
4228
done
4229
IFS=$as_save_IFS
4230
 
4231
fi
4232
fi
4233
OBJDUMP=$ac_cv_prog_OBJDUMP
4234
if test -n "$OBJDUMP"; then
4235
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4236
$as_echo "$OBJDUMP" >&6; }
4237
else
4238
  { $as_echo "$as_me:$LINENO: result: no" >&5
4239
$as_echo "no" >&6; }
4240
fi
4241
 
4242
 
4243
fi
4244
if test -z "$ac_cv_prog_OBJDUMP"; then
4245
  ac_ct_OBJDUMP=$OBJDUMP
4246
  # Extract the first word of "objdump", so it can be a program name with args.
4247
set dummy objdump; ac_word=$2
4248
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4249
$as_echo_n "checking for $ac_word... " >&6; }
4250
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4251
  $as_echo_n "(cached) " >&6
4252
else
4253
  if test -n "$ac_ct_OBJDUMP"; then
4254
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4255
else
4256
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257
for as_dir in $PATH
4258
do
4259
  IFS=$as_save_IFS
4260
  test -z "$as_dir" && as_dir=.
4261
  for ac_exec_ext in '' $ac_executable_extensions; do
4262
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4263
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4264
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4265
    break 2
4266
  fi
4267
done
4268
done
4269
IFS=$as_save_IFS
4270
 
4271
fi
4272
fi
4273
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4274
if test -n "$ac_ct_OBJDUMP"; then
4275
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4276
$as_echo "$ac_ct_OBJDUMP" >&6; }
4277
else
4278
  { $as_echo "$as_me:$LINENO: result: no" >&5
4279
$as_echo "no" >&6; }
4280
fi
4281
 
4282
  if test "x$ac_ct_OBJDUMP" = x; then
4283
    OBJDUMP="false"
4284
  else
4285
    case $cross_compiling:$ac_tool_warned in
4286
yes:)
4287
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4288
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4289
ac_tool_warned=yes ;;
4290
esac
4291
    OBJDUMP=$ac_ct_OBJDUMP
4292
  fi
4293
else
4294
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4295
fi
4296
 
4297
  ;;
4298
esac
4299
 
4300
test -z "$AS" && AS=as
4301
 
4302
 
4303
 
4304
 
4305
 
4306
test -z "$DLLTOOL" && DLLTOOL=dlltool
4307
 
4308
 
4309
 
4310
 
4311
 
4312
test -z "$OBJDUMP" && OBJDUMP=objdump
4313
 
4314
 
4315
 
4316
 
4317
 
4318
 
4319
 
4320
case `pwd` in
4321
  *\ * | *\     *)
4322
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4323
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4324
esac
4325
 
4326
 
4327
 
4328
macro_version='2.2.6'
4329
macro_revision='1.3012'
4330
 
4331
 
4332
 
4333
 
4334
 
4335
 
4336
 
4337
 
4338
 
4339
 
4340
 
4341
 
4342
 
4343
ltmain="$ac_aux_dir/ltmain.sh"
4344
 
4345
ac_ext=c
4346
ac_cpp='$CPP $CPPFLAGS'
4347
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350
if test -n "$ac_tool_prefix"; then
4351
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4352
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4353
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4354
$as_echo_n "checking for $ac_word... " >&6; }
4355
if test "${ac_cv_prog_CC+set}" = set; then
4356
  $as_echo_n "(cached) " >&6
4357
else
4358
  if test -n "$CC"; then
4359
  ac_cv_prog_CC="$CC" # Let the user override the test.
4360
else
4361
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362
for as_dir in $PATH
4363
do
4364
  IFS=$as_save_IFS
4365
  test -z "$as_dir" && as_dir=.
4366
  for ac_exec_ext in '' $ac_executable_extensions; do
4367
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4368
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4369
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4370
    break 2
4371
  fi
4372
done
4373
done
4374
IFS=$as_save_IFS
4375
 
4376
fi
4377
fi
4378
CC=$ac_cv_prog_CC
4379
if test -n "$CC"; then
4380
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4381
$as_echo "$CC" >&6; }
4382
else
4383
  { $as_echo "$as_me:$LINENO: result: no" >&5
4384
$as_echo "no" >&6; }
4385
fi
4386
 
4387
 
4388
fi
4389
if test -z "$ac_cv_prog_CC"; then
4390
  ac_ct_CC=$CC
4391
  # Extract the first word of "gcc", so it can be a program name with args.
4392
set dummy gcc; ac_word=$2
4393
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4394
$as_echo_n "checking for $ac_word... " >&6; }
4395
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4396
  $as_echo_n "(cached) " >&6
4397
else
4398
  if test -n "$ac_ct_CC"; then
4399
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4400
else
4401
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402
for as_dir in $PATH
4403
do
4404
  IFS=$as_save_IFS
4405
  test -z "$as_dir" && as_dir=.
4406
  for ac_exec_ext in '' $ac_executable_extensions; do
4407
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408
    ac_cv_prog_ac_ct_CC="gcc"
4409
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4410
    break 2
4411
  fi
4412
done
4413
done
4414
IFS=$as_save_IFS
4415
 
4416
fi
4417
fi
4418
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4419
if test -n "$ac_ct_CC"; then
4420
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4421
$as_echo "$ac_ct_CC" >&6; }
4422
else
4423
  { $as_echo "$as_me:$LINENO: result: no" >&5
4424
$as_echo "no" >&6; }
4425
fi
4426
 
4427
  if test "x$ac_ct_CC" = x; then
4428
    CC=""
4429
  else
4430
    case $cross_compiling:$ac_tool_warned in
4431
yes:)
4432
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4433
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4434
ac_tool_warned=yes ;;
4435
esac
4436
    CC=$ac_ct_CC
4437
  fi
4438
else
4439
  CC="$ac_cv_prog_CC"
4440
fi
4441
 
4442
if test -z "$CC"; then
4443
          if test -n "$ac_tool_prefix"; then
4444
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4445
set dummy ${ac_tool_prefix}cc; ac_word=$2
4446
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4447
$as_echo_n "checking for $ac_word... " >&6; }
4448
if test "${ac_cv_prog_CC+set}" = set; then
4449
  $as_echo_n "(cached) " >&6
4450
else
4451
  if test -n "$CC"; then
4452
  ac_cv_prog_CC="$CC" # Let the user override the test.
4453
else
4454
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455
for as_dir in $PATH
4456
do
4457
  IFS=$as_save_IFS
4458
  test -z "$as_dir" && as_dir=.
4459
  for ac_exec_ext in '' $ac_executable_extensions; do
4460
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4461
    ac_cv_prog_CC="${ac_tool_prefix}cc"
4462
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4463
    break 2
4464
  fi
4465
done
4466
done
4467
IFS=$as_save_IFS
4468
 
4469
fi
4470
fi
4471
CC=$ac_cv_prog_CC
4472
if test -n "$CC"; then
4473
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4474
$as_echo "$CC" >&6; }
4475
else
4476
  { $as_echo "$as_me:$LINENO: result: no" >&5
4477
$as_echo "no" >&6; }
4478
fi
4479
 
4480
 
4481
  fi
4482
fi
4483
if test -z "$CC"; then
4484
  # Extract the first word of "cc", so it can be a program name with args.
4485
set dummy cc; ac_word=$2
4486
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4487
$as_echo_n "checking for $ac_word... " >&6; }
4488
if test "${ac_cv_prog_CC+set}" = set; then
4489
  $as_echo_n "(cached) " >&6
4490
else
4491
  if test -n "$CC"; then
4492
  ac_cv_prog_CC="$CC" # Let the user override the test.
4493
else
4494
  ac_prog_rejected=no
4495
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496
for as_dir in $PATH
4497
do
4498
  IFS=$as_save_IFS
4499
  test -z "$as_dir" && as_dir=.
4500
  for ac_exec_ext in '' $ac_executable_extensions; do
4501
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4503
       ac_prog_rejected=yes
4504
       continue
4505
     fi
4506
    ac_cv_prog_CC="cc"
4507
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508
    break 2
4509
  fi
4510
done
4511
done
4512
IFS=$as_save_IFS
4513
 
4514
if test $ac_prog_rejected = yes; then
4515
  # We found a bogon in the path, so make sure we never use it.
4516
  set dummy $ac_cv_prog_CC
4517
  shift
4518
  if test $# != 0; then
4519
    # We chose a different compiler from the bogus one.
4520
    # However, it has the same basename, so the bogon will be chosen
4521
    # first if we set CC to just the basename; use the full file name.
4522
    shift
4523
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4524
  fi
4525
fi
4526
fi
4527
fi
4528
CC=$ac_cv_prog_CC
4529
if test -n "$CC"; then
4530
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4531
$as_echo "$CC" >&6; }
4532
else
4533
  { $as_echo "$as_me:$LINENO: result: no" >&5
4534
$as_echo "no" >&6; }
4535
fi
4536
 
4537
 
4538
fi
4539
if test -z "$CC"; then
4540
  if test -n "$ac_tool_prefix"; then
4541
  for ac_prog in cl.exe
4542
  do
4543
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4544
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4545
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4546
$as_echo_n "checking for $ac_word... " >&6; }
4547
if test "${ac_cv_prog_CC+set}" = set; then
4548
  $as_echo_n "(cached) " >&6
4549
else
4550
  if test -n "$CC"; then
4551
  ac_cv_prog_CC="$CC" # Let the user override the test.
4552
else
4553
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554
for as_dir in $PATH
4555
do
4556
  IFS=$as_save_IFS
4557
  test -z "$as_dir" && as_dir=.
4558
  for ac_exec_ext in '' $ac_executable_extensions; do
4559
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4561
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4562
    break 2
4563
  fi
4564
done
4565
done
4566
IFS=$as_save_IFS
4567
 
4568
fi
4569
fi
4570
CC=$ac_cv_prog_CC
4571
if test -n "$CC"; then
4572
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
4573
$as_echo "$CC" >&6; }
4574
else
4575
  { $as_echo "$as_me:$LINENO: result: no" >&5
4576
$as_echo "no" >&6; }
4577
fi
4578
 
4579
 
4580
    test -n "$CC" && break
4581
  done
4582
fi
4583
if test -z "$CC"; then
4584
  ac_ct_CC=$CC
4585
  for ac_prog in cl.exe
4586
do
4587
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4588
set dummy $ac_prog; ac_word=$2
4589
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4590
$as_echo_n "checking for $ac_word... " >&6; }
4591
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4592
  $as_echo_n "(cached) " >&6
4593
else
4594
  if test -n "$ac_ct_CC"; then
4595
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4596
else
4597
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598
for as_dir in $PATH
4599
do
4600
  IFS=$as_save_IFS
4601
  test -z "$as_dir" && as_dir=.
4602
  for ac_exec_ext in '' $ac_executable_extensions; do
4603
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4604
    ac_cv_prog_ac_ct_CC="$ac_prog"
4605
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4606
    break 2
4607
  fi
4608
done
4609
done
4610
IFS=$as_save_IFS
4611
 
4612
fi
4613
fi
4614
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4615
if test -n "$ac_ct_CC"; then
4616
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4617
$as_echo "$ac_ct_CC" >&6; }
4618
else
4619
  { $as_echo "$as_me:$LINENO: result: no" >&5
4620
$as_echo "no" >&6; }
4621
fi
4622
 
4623
 
4624
  test -n "$ac_ct_CC" && break
4625
done
4626
 
4627
  if test "x$ac_ct_CC" = x; then
4628
    CC=""
4629
  else
4630
    case $cross_compiling:$ac_tool_warned in
4631
yes:)
4632
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4633
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4634
ac_tool_warned=yes ;;
4635
esac
4636
    CC=$ac_ct_CC
4637
  fi
4638
fi
4639
 
4640
fi
4641
 
4642
 
4643
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4644
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4645
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4646
See \`config.log' for more details." >&5
4647
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4648
See \`config.log' for more details." >&2;}
4649
   { (exit 1); exit 1; }; }; }
4650
 
4651
# Provide some information about the compiler.
4652
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4653
set X $ac_compile
4654
ac_compiler=$2
4655
{ (ac_try="$ac_compiler --version >&5"
4656
case "(($ac_try" in
4657
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658
  *) ac_try_echo=$ac_try;;
4659
esac
4660
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4661
$as_echo "$ac_try_echo") >&5
4662
  (eval "$ac_compiler --version >&5") 2>&5
4663
  ac_status=$?
4664
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665
  (exit $ac_status); }
4666
{ (ac_try="$ac_compiler -v >&5"
4667
case "(($ac_try" in
4668
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669
  *) ac_try_echo=$ac_try;;
4670
esac
4671
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4672
$as_echo "$ac_try_echo") >&5
4673
  (eval "$ac_compiler -v >&5") 2>&5
4674
  ac_status=$?
4675
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676
  (exit $ac_status); }
4677
{ (ac_try="$ac_compiler -V >&5"
4678
case "(($ac_try" in
4679
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680
  *) ac_try_echo=$ac_try;;
4681
esac
4682
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4683
$as_echo "$ac_try_echo") >&5
4684
  (eval "$ac_compiler -V >&5") 2>&5
4685
  ac_status=$?
4686
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687
  (exit $ac_status); }
4688
 
4689
cat >conftest.$ac_ext <<_ACEOF
4690
/* confdefs.h.  */
4691
_ACEOF
4692
cat confdefs.h >>conftest.$ac_ext
4693
cat >>conftest.$ac_ext <<_ACEOF
4694
/* end confdefs.h.  */
4695
 
4696
int
4697
main ()
4698
{
4699
 
4700
  ;
4701
  return 0;
4702
}
4703
_ACEOF
4704
ac_clean_files_save=$ac_clean_files
4705
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4706
# Try to create an executable without -o first, disregard a.out.
4707
# It will help us diagnose broken compilers, and finding out an intuition
4708
# of exeext.
4709
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4710
$as_echo_n "checking for C compiler default output file name... " >&6; }
4711
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4712
 
4713
# The possible output files:
4714
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4715
 
4716
ac_rmfiles=
4717
for ac_file in $ac_files
4718
do
4719
  case $ac_file in
4720
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4721
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4722
  esac
4723
done
4724
rm -f $ac_rmfiles
4725
 
4726
if { (ac_try="$ac_link_default"
4727
case "(($ac_try" in
4728
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729
  *) ac_try_echo=$ac_try;;
4730
esac
4731
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4732
$as_echo "$ac_try_echo") >&5
4733
  (eval "$ac_link_default") 2>&5
4734
  ac_status=$?
4735
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736
  (exit $ac_status); }; then
4737
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4738
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4739
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4740
# so that the user can short-circuit this test for compilers unknown to
4741
# Autoconf.
4742
for ac_file in $ac_files ''
4743
do
4744
  test -f "$ac_file" || continue
4745
  case $ac_file in
4746
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4747
        ;;
4748
    [ab].out )
4749
        # We found the default executable, but exeext='' is most
4750
        # certainly right.
4751
        break;;
4752
    *.* )
4753
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4754
        then :; else
4755
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4756
        fi
4757
        # We set ac_cv_exeext here because the later test for it is not
4758
        # safe: cross compilers may not add the suffix if given an `-o'
4759
        # argument, so we may need to know it at that point already.
4760
        # Even if this section looks crufty: it has the advantage of
4761
        # actually working.
4762
        break;;
4763
    * )
4764
        break;;
4765
  esac
4766
done
4767
test "$ac_cv_exeext" = no && ac_cv_exeext=
4768
 
4769
else
4770
  ac_file=''
4771
fi
4772
 
4773
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
4774
$as_echo "$ac_file" >&6; }
4775
if test -z "$ac_file"; then
4776
  $as_echo "$as_me: failed program was:" >&5
4777
sed 's/^/| /' conftest.$ac_ext >&5
4778
 
4779
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4780
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4781
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
4782
See \`config.log' for more details." >&5
4783
$as_echo "$as_me: error: C compiler cannot create executables
4784
See \`config.log' for more details." >&2;}
4785
   { (exit 77); exit 77; }; }; }
4786
fi
4787
 
4788
ac_exeext=$ac_cv_exeext
4789
 
4790
# Check that the compiler produces executables we can run.  If not, either
4791
# the compiler is broken, or we cross compile.
4792
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4793
$as_echo_n "checking whether the C compiler works... " >&6; }
4794
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4795
# If not cross compiling, check that we can run a simple program.
4796
if test "$cross_compiling" != yes; then
4797
  if { ac_try='./$ac_file'
4798
  { (case "(($ac_try" in
4799
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800
  *) ac_try_echo=$ac_try;;
4801
esac
4802
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4803
$as_echo "$ac_try_echo") >&5
4804
  (eval "$ac_try") 2>&5
4805
  ac_status=$?
4806
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807
  (exit $ac_status); }; }; then
4808
    cross_compiling=no
4809
  else
4810
    if test "$cross_compiling" = maybe; then
4811
        cross_compiling=yes
4812
    else
4813
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4814
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4815
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
4816
If you meant to cross compile, use \`--host'.
4817
See \`config.log' for more details." >&5
4818
$as_echo "$as_me: error: cannot run C compiled programs.
4819
If you meant to cross compile, use \`--host'.
4820
See \`config.log' for more details." >&2;}
4821
   { (exit 1); exit 1; }; }; }
4822
    fi
4823
  fi
4824
fi
4825
{ $as_echo "$as_me:$LINENO: result: yes" >&5
4826
$as_echo "yes" >&6; }
4827
 
4828
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4829
ac_clean_files=$ac_clean_files_save
4830
# Check that the compiler produces executables we can run.  If not, either
4831
# the compiler is broken, or we cross compile.
4832
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4833
$as_echo_n "checking whether we are cross compiling... " >&6; }
4834
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
4835
$as_echo "$cross_compiling" >&6; }
4836
 
4837
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
4838
$as_echo_n "checking for suffix of executables... " >&6; }
4839
if { (ac_try="$ac_link"
4840
case "(($ac_try" in
4841
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842
  *) ac_try_echo=$ac_try;;
4843
esac
4844
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4845
$as_echo "$ac_try_echo") >&5
4846
  (eval "$ac_link") 2>&5
4847
  ac_status=$?
4848
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849
  (exit $ac_status); }; then
4850
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4851
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4852
# work properly (i.e., refer to `conftest.exe'), while it won't with
4853
# `rm'.
4854
for ac_file in conftest.exe conftest conftest.*; do
4855
  test -f "$ac_file" || continue
4856
  case $ac_file in
4857
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4858
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4859
          break;;
4860
    * ) break;;
4861
  esac
4862
done
4863
else
4864
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4865
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4866
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4867
See \`config.log' for more details." >&5
4868
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4869
See \`config.log' for more details." >&2;}
4870
   { (exit 1); exit 1; }; }; }
4871
fi
4872
 
4873
rm -f conftest$ac_cv_exeext
4874
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4875
$as_echo "$ac_cv_exeext" >&6; }
4876
 
4877
rm -f conftest.$ac_ext
4878
EXEEXT=$ac_cv_exeext
4879
ac_exeext=$EXEEXT
4880
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
4881
$as_echo_n "checking for suffix of object files... " >&6; }
4882
if test "${ac_cv_objext+set}" = set; then
4883
  $as_echo_n "(cached) " >&6
4884
else
4885
  cat >conftest.$ac_ext <<_ACEOF
4886
/* confdefs.h.  */
4887
_ACEOF
4888
cat confdefs.h >>conftest.$ac_ext
4889
cat >>conftest.$ac_ext <<_ACEOF
4890
/* end confdefs.h.  */
4891
 
4892
int
4893
main ()
4894
{
4895
 
4896
  ;
4897
  return 0;
4898
}
4899
_ACEOF
4900
rm -f conftest.o conftest.obj
4901
if { (ac_try="$ac_compile"
4902
case "(($ac_try" in
4903
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904
  *) ac_try_echo=$ac_try;;
4905
esac
4906
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4907
$as_echo "$ac_try_echo") >&5
4908
  (eval "$ac_compile") 2>&5
4909
  ac_status=$?
4910
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911
  (exit $ac_status); }; then
4912
  for ac_file in conftest.o conftest.obj conftest.*; do
4913
  test -f "$ac_file" || continue;
4914
  case $ac_file in
4915
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4916
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4917
       break;;
4918
  esac
4919
done
4920
else
4921
  $as_echo "$as_me: failed program was:" >&5
4922
sed 's/^/| /' conftest.$ac_ext >&5
4923
 
4924
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4925
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4926
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4927
See \`config.log' for more details." >&5
4928
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4929
See \`config.log' for more details." >&2;}
4930
   { (exit 1); exit 1; }; }; }
4931
fi
4932
 
4933
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4934
fi
4935
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4936
$as_echo "$ac_cv_objext" >&6; }
4937
OBJEXT=$ac_cv_objext
4938
ac_objext=$OBJEXT
4939
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4940
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4941
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4942
  $as_echo_n "(cached) " >&6
4943
else
4944
  cat >conftest.$ac_ext <<_ACEOF
4945
/* confdefs.h.  */
4946
_ACEOF
4947
cat confdefs.h >>conftest.$ac_ext
4948
cat >>conftest.$ac_ext <<_ACEOF
4949
/* end confdefs.h.  */
4950
 
4951
int
4952
main ()
4953
{
4954
#ifndef __GNUC__
4955
       choke me
4956
#endif
4957
 
4958
  ;
4959
  return 0;
4960
}
4961
_ACEOF
4962
rm -f conftest.$ac_objext
4963
if { (ac_try="$ac_compile"
4964
case "(($ac_try" in
4965
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966
  *) ac_try_echo=$ac_try;;
4967
esac
4968
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4969
$as_echo "$ac_try_echo") >&5
4970
  (eval "$ac_compile") 2>conftest.er1
4971
  ac_status=$?
4972
  grep -v '^ *+' conftest.er1 >conftest.err
4973
  rm -f conftest.er1
4974
  cat conftest.err >&5
4975
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976
  (exit $ac_status); } && {
4977
         test -z "$ac_c_werror_flag" ||
4978
         test ! -s conftest.err
4979
       } && test -s conftest.$ac_objext; then
4980
  ac_compiler_gnu=yes
4981
else
4982
  $as_echo "$as_me: failed program was:" >&5
4983
sed 's/^/| /' conftest.$ac_ext >&5
4984
 
4985
        ac_compiler_gnu=no
4986
fi
4987
 
4988
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4990
 
4991
fi
4992
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4993
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4994
if test $ac_compiler_gnu = yes; then
4995
  GCC=yes
4996
else
4997
  GCC=
4998
fi
4999
ac_test_CFLAGS=${CFLAGS+set}
5000
ac_save_CFLAGS=$CFLAGS
5001
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5002
$as_echo_n "checking whether $CC accepts -g... " >&6; }
5003
if test "${ac_cv_prog_cc_g+set}" = set; then
5004
  $as_echo_n "(cached) " >&6
5005
else
5006
  ac_save_c_werror_flag=$ac_c_werror_flag
5007
   ac_c_werror_flag=yes
5008
   ac_cv_prog_cc_g=no
5009
   CFLAGS="-g"
5010
   cat >conftest.$ac_ext <<_ACEOF
5011
/* confdefs.h.  */
5012
_ACEOF
5013
cat confdefs.h >>conftest.$ac_ext
5014
cat >>conftest.$ac_ext <<_ACEOF
5015
/* end confdefs.h.  */
5016
 
5017
int
5018
main ()
5019
{
5020
 
5021
  ;
5022
  return 0;
5023
}
5024
_ACEOF
5025
rm -f conftest.$ac_objext
5026
if { (ac_try="$ac_compile"
5027
case "(($ac_try" in
5028
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029
  *) ac_try_echo=$ac_try;;
5030
esac
5031
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5032
$as_echo "$ac_try_echo") >&5
5033
  (eval "$ac_compile") 2>conftest.er1
5034
  ac_status=$?
5035
  grep -v '^ *+' conftest.er1 >conftest.err
5036
  rm -f conftest.er1
5037
  cat conftest.err >&5
5038
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039
  (exit $ac_status); } && {
5040
         test -z "$ac_c_werror_flag" ||
5041
         test ! -s conftest.err
5042
       } && test -s conftest.$ac_objext; then
5043
  ac_cv_prog_cc_g=yes
5044
else
5045
  $as_echo "$as_me: failed program was:" >&5
5046
sed 's/^/| /' conftest.$ac_ext >&5
5047
 
5048
        CFLAGS=""
5049
      cat >conftest.$ac_ext <<_ACEOF
5050
/* confdefs.h.  */
5051
_ACEOF
5052
cat confdefs.h >>conftest.$ac_ext
5053
cat >>conftest.$ac_ext <<_ACEOF
5054
/* end confdefs.h.  */
5055
 
5056
int
5057
main ()
5058
{
5059
 
5060
  ;
5061
  return 0;
5062
}
5063
_ACEOF
5064
rm -f conftest.$ac_objext
5065
if { (ac_try="$ac_compile"
5066
case "(($ac_try" in
5067
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5068
  *) ac_try_echo=$ac_try;;
5069
esac
5070
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5071
$as_echo "$ac_try_echo") >&5
5072
  (eval "$ac_compile") 2>conftest.er1
5073
  ac_status=$?
5074
  grep -v '^ *+' conftest.er1 >conftest.err
5075
  rm -f conftest.er1
5076
  cat conftest.err >&5
5077
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078
  (exit $ac_status); } && {
5079
         test -z "$ac_c_werror_flag" ||
5080
         test ! -s conftest.err
5081
       } && test -s conftest.$ac_objext; then
5082
  :
5083
else
5084
  $as_echo "$as_me: failed program was:" >&5
5085
sed 's/^/| /' conftest.$ac_ext >&5
5086
 
5087
        ac_c_werror_flag=$ac_save_c_werror_flag
5088
         CFLAGS="-g"
5089
         cat >conftest.$ac_ext <<_ACEOF
5090
/* confdefs.h.  */
5091
_ACEOF
5092
cat confdefs.h >>conftest.$ac_ext
5093
cat >>conftest.$ac_ext <<_ACEOF
5094
/* end confdefs.h.  */
5095
 
5096
int
5097
main ()
5098
{
5099
 
5100
  ;
5101
  return 0;
5102
}
5103
_ACEOF
5104
rm -f conftest.$ac_objext
5105
if { (ac_try="$ac_compile"
5106
case "(($ac_try" in
5107
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108
  *) ac_try_echo=$ac_try;;
5109
esac
5110
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5111
$as_echo "$ac_try_echo") >&5
5112
  (eval "$ac_compile") 2>conftest.er1
5113
  ac_status=$?
5114
  grep -v '^ *+' conftest.er1 >conftest.err
5115
  rm -f conftest.er1
5116
  cat conftest.err >&5
5117
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118
  (exit $ac_status); } && {
5119
         test -z "$ac_c_werror_flag" ||
5120
         test ! -s conftest.err
5121
       } && test -s conftest.$ac_objext; then
5122
  ac_cv_prog_cc_g=yes
5123
else
5124
  $as_echo "$as_me: failed program was:" >&5
5125
sed 's/^/| /' conftest.$ac_ext >&5
5126
 
5127
 
5128
fi
5129
 
5130
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5131
fi
5132
 
5133
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134
fi
5135
 
5136
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137
   ac_c_werror_flag=$ac_save_c_werror_flag
5138
fi
5139
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5140
$as_echo "$ac_cv_prog_cc_g" >&6; }
5141
if test "$ac_test_CFLAGS" = set; then
5142
  CFLAGS=$ac_save_CFLAGS
5143
elif test $ac_cv_prog_cc_g = yes; then
5144
  if test "$GCC" = yes; then
5145
    CFLAGS="-g -O2"
5146
  else
5147
    CFLAGS="-g"
5148
  fi
5149
else
5150
  if test "$GCC" = yes; then
5151
    CFLAGS="-O2"
5152
  else
5153
    CFLAGS=
5154
  fi
5155
fi
5156
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5157
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5158
if test "${ac_cv_prog_cc_c89+set}" = set; then
5159
  $as_echo_n "(cached) " >&6
5160
else
5161
  ac_cv_prog_cc_c89=no
5162
ac_save_CC=$CC
5163
cat >conftest.$ac_ext <<_ACEOF
5164
/* confdefs.h.  */
5165
_ACEOF
5166
cat confdefs.h >>conftest.$ac_ext
5167
cat >>conftest.$ac_ext <<_ACEOF
5168
/* end confdefs.h.  */
5169
#include 
5170
#include 
5171
#include 
5172
#include 
5173
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5174
struct buf { int x; };
5175
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5176
static char *e (p, i)
5177
     char **p;
5178
     int i;
5179
{
5180
  return p[i];
5181
}
5182
static char *f (char * (*g) (char **, int), char **p, ...)
5183
{
5184
  char *s;
5185
  va_list v;
5186
  va_start (v,p);
5187
  s = g (p, va_arg (v,int));
5188
  va_end (v);
5189
  return s;
5190
}
5191
 
5192
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5193
   function prototypes and stuff, but not '\xHH' hex character constants.
5194
   These don't provoke an error unfortunately, instead are silently treated
5195
   as 'x'.  The following induces an error, until -std is added to get
5196
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5197
   array size at least.  It's necessary to write '\x00'==0 to get something
5198
   that's true only with -std.  */
5199
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5200
 
5201
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5202
   inside strings and character constants.  */
5203
#define FOO(x) 'x'
5204
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5205
 
5206
int test (int i, double x);
5207
struct s1 {int (*f) (int a);};
5208
struct s2 {int (*f) (double a);};
5209
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5210
int argc;
5211
char **argv;
5212
int
5213
main ()
5214
{
5215
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5216
  ;
5217
  return 0;
5218
}
5219
_ACEOF
5220
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5221
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5222
do
5223
  CC="$ac_save_CC $ac_arg"
5224
  rm -f conftest.$ac_objext
5225
if { (ac_try="$ac_compile"
5226
case "(($ac_try" in
5227
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228
  *) ac_try_echo=$ac_try;;
5229
esac
5230
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5231
$as_echo "$ac_try_echo") >&5
5232
  (eval "$ac_compile") 2>conftest.er1
5233
  ac_status=$?
5234
  grep -v '^ *+' conftest.er1 >conftest.err
5235
  rm -f conftest.er1
5236
  cat conftest.err >&5
5237
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238
  (exit $ac_status); } && {
5239
         test -z "$ac_c_werror_flag" ||
5240
         test ! -s conftest.err
5241
       } && test -s conftest.$ac_objext; then
5242
  ac_cv_prog_cc_c89=$ac_arg
5243
else
5244
  $as_echo "$as_me: failed program was:" >&5
5245
sed 's/^/| /' conftest.$ac_ext >&5
5246
 
5247
 
5248
fi
5249
 
5250
rm -f core conftest.err conftest.$ac_objext
5251
  test "x$ac_cv_prog_cc_c89" != "xno" && break
5252
done
5253
rm -f conftest.$ac_ext
5254
CC=$ac_save_CC
5255
 
5256
fi
5257
# AC_CACHE_VAL
5258
case "x$ac_cv_prog_cc_c89" in
5259
  x)
5260
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
5261
$as_echo "none needed" >&6; } ;;
5262
  xno)
5263
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5264
$as_echo "unsupported" >&6; } ;;
5265
  *)
5266
    CC="$CC $ac_cv_prog_cc_c89"
5267
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5268
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5269
esac
5270
 
5271
 
5272
ac_ext=c
5273
ac_cpp='$CPP $CPPFLAGS'
5274
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5275
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5276
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5277
 
5278
depcc="$CC"   am_compiler_list=
5279
 
5280
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5281
$as_echo_n "checking dependency style of $depcc... " >&6; }
5282
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5283
  $as_echo_n "(cached) " >&6
5284
else
5285
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5286
  # We make a subdir and do the tests there.  Otherwise we can end up
5287
  # making bogus files that we don't know about and never remove.  For
5288
  # instance it was reported that on HP-UX the gcc test will end up
5289
  # making a dummy file named `D' -- because `-MD' means `put the output
5290
  # in D'.
5291
  mkdir conftest.dir
5292
  # Copy depcomp to subdir because otherwise we won't find it if we're
5293
  # using a relative directory.
5294
  cp "$am_depcomp" conftest.dir
5295
  cd conftest.dir
5296
  # We will build objects and dependencies in a subdirectory because
5297
  # it helps to detect inapplicable dependency modes.  For instance
5298
  # both Tru64's cc and ICC support -MD to output dependencies as a
5299
  # side effect of compilation, but ICC will put the dependencies in
5300
  # the current directory while Tru64 will put them in the object
5301
  # directory.
5302
  mkdir sub
5303
 
5304
  am_cv_CC_dependencies_compiler_type=none
5305
  if test "$am_compiler_list" = ""; then
5306
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5307
  fi
5308
  am__universal=false
5309
  case " $depcc " in #(
5310
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5311
     esac
5312
 
5313
  for depmode in $am_compiler_list; do
5314
    # Setup a source with many dependencies, because some compilers
5315
    # like to wrap large dependency lists on column 80 (with \), and
5316
    # we should not choose a depcomp mode which is confused by this.
5317
    #
5318
    # We need to recreate these files for each test, as the compiler may
5319
    # overwrite some of them when testing with obscure command lines.
5320
    # This happens at least with the AIX C compiler.
5321
    : > sub/conftest.c
5322
    for i in 1 2 3 4 5 6; do
5323
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5324
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5325
      # Solaris 8's {/usr,}/bin/sh.
5326
      touch sub/conftst$i.h
5327
    done
5328
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5329
 
5330
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5331
    # mode.  It turns out that the SunPro C++ compiler does not properly
5332
    # handle `-M -o', and we need to detect this.  Also, some Intel
5333
    # versions had trouble with output in subdirs
5334
    am__obj=sub/conftest.${OBJEXT-o}
5335
    am__minus_obj="-o $am__obj"
5336
    case $depmode in
5337
    gcc)
5338
      # This depmode causes a compiler race in universal mode.
5339
      test "$am__universal" = false || continue
5340
      ;;
5341
    nosideeffect)
5342
      # after this tag, mechanisms are not by side-effect, so they'll
5343
      # only be used when explicitly requested
5344
      if test "x$enable_dependency_tracking" = xyes; then
5345
        continue
5346
      else
5347
        break
5348
      fi
5349
      ;;
5350
    msvisualcpp | msvcmsys)
5351
      # This compiler won't grok `-c -o', but also, the minuso test has
5352
      # not run yet.  These depmodes are late enough in the game, and
5353
      # so weak that their functioning should not be impacted.
5354
      am__obj=conftest.${OBJEXT-o}
5355
      am__minus_obj=
5356
      ;;
5357
    none) break ;;
5358
    esac
5359
    if depmode=$depmode \
5360
       source=sub/conftest.c object=$am__obj \
5361
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5362
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5363
         >/dev/null 2>conftest.err &&
5364
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5365
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5366
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5367
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5368
      # icc doesn't choke on unknown options, it will just issue warnings
5369
      # or remarks (even with -Werror).  So we grep stderr for any message
5370
      # that says an option was ignored or not supported.
5371
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5372
      #   icc: Command line warning: ignoring option '-M'; no argument required
5373
      # The diagnosis changed in icc 8.0:
5374
      #   icc: Command line remark: option '-MP' not supported
5375
      if (grep 'ignoring option' conftest.err ||
5376
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5377
        am_cv_CC_dependencies_compiler_type=$depmode
5378
        break
5379
      fi
5380
    fi
5381
  done
5382
 
5383
  cd ..
5384
  rm -rf conftest.dir
5385
else
5386
  am_cv_CC_dependencies_compiler_type=none
5387
fi
5388
 
5389
fi
5390
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5391
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5392
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5393
 
5394
 if
5395
  test "x$enable_dependency_tracking" != xno \
5396
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5397
  am__fastdepCC_TRUE=
5398
  am__fastdepCC_FALSE='#'
5399
else
5400
  am__fastdepCC_TRUE='#'
5401
  am__fastdepCC_FALSE=
5402
fi
5403
 
5404
 
5405
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5406
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5407
if test "${ac_cv_path_GREP+set}" = set; then
5408
  $as_echo_n "(cached) " >&6
5409
else
5410
  if test -z "$GREP"; then
5411
  ac_path_GREP_found=false
5412
  # Loop through the user's path and test for each of PROGNAME-LIST
5413
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5415
do
5416
  IFS=$as_save_IFS
5417
  test -z "$as_dir" && as_dir=.
5418
  for ac_prog in grep ggrep; do
5419
    for ac_exec_ext in '' $ac_executable_extensions; do
5420
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5421
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5422
# Check for GNU ac_path_GREP and select it if it is found.
5423
  # Check for GNU $ac_path_GREP
5424
case `"$ac_path_GREP" --version 2>&1` in
5425
*GNU*)
5426
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5427
*)
5428
  ac_count=0
5429
  $as_echo_n 0123456789 >"conftest.in"
5430
  while :
5431
  do
5432
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5433
    mv "conftest.tmp" "conftest.in"
5434
    cp "conftest.in" "conftest.nl"
5435
    $as_echo 'GREP' >> "conftest.nl"
5436
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5437
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5438
    ac_count=`expr $ac_count + 1`
5439
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5440
      # Best one so far, save it but keep looking for a better one
5441
      ac_cv_path_GREP="$ac_path_GREP"
5442
      ac_path_GREP_max=$ac_count
5443
    fi
5444
    # 10*(2^10) chars as input seems more than enough
5445
    test $ac_count -gt 10 && break
5446
  done
5447
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5448
esac
5449
 
5450
      $ac_path_GREP_found && break 3
5451
    done
5452
  done
5453
done
5454
IFS=$as_save_IFS
5455
  if test -z "$ac_cv_path_GREP"; then
5456
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5457
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5458
   { (exit 1); exit 1; }; }
5459
  fi
5460
else
5461
  ac_cv_path_GREP=$GREP
5462
fi
5463
 
5464
fi
5465
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5466
$as_echo "$ac_cv_path_GREP" >&6; }
5467
 GREP="$ac_cv_path_GREP"
5468
 
5469
 
5470
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5471
$as_echo_n "checking for egrep... " >&6; }
5472
if test "${ac_cv_path_EGREP+set}" = set; then
5473
  $as_echo_n "(cached) " >&6
5474
else
5475
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5476
   then ac_cv_path_EGREP="$GREP -E"
5477
   else
5478
     if test -z "$EGREP"; then
5479
  ac_path_EGREP_found=false
5480
  # Loop through the user's path and test for each of PROGNAME-LIST
5481
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5483
do
5484
  IFS=$as_save_IFS
5485
  test -z "$as_dir" && as_dir=.
5486
  for ac_prog in egrep; do
5487
    for ac_exec_ext in '' $ac_executable_extensions; do
5488
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5489
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5490
# Check for GNU ac_path_EGREP and select it if it is found.
5491
  # Check for GNU $ac_path_EGREP
5492
case `"$ac_path_EGREP" --version 2>&1` in
5493
*GNU*)
5494
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5495
*)
5496
  ac_count=0
5497
  $as_echo_n 0123456789 >"conftest.in"
5498
  while :
5499
  do
5500
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5501
    mv "conftest.tmp" "conftest.in"
5502
    cp "conftest.in" "conftest.nl"
5503
    $as_echo 'EGREP' >> "conftest.nl"
5504
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5505
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5506
    ac_count=`expr $ac_count + 1`
5507
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5508
      # Best one so far, save it but keep looking for a better one
5509
      ac_cv_path_EGREP="$ac_path_EGREP"
5510
      ac_path_EGREP_max=$ac_count
5511
    fi
5512
    # 10*(2^10) chars as input seems more than enough
5513
    test $ac_count -gt 10 && break
5514
  done
5515
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5516
esac
5517
 
5518
      $ac_path_EGREP_found && break 3
5519
    done
5520
  done
5521
done
5522
IFS=$as_save_IFS
5523
  if test -z "$ac_cv_path_EGREP"; then
5524
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5525
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5526
   { (exit 1); exit 1; }; }
5527
  fi
5528
else
5529
  ac_cv_path_EGREP=$EGREP
5530
fi
5531
 
5532
   fi
5533
fi
5534
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5535
$as_echo "$ac_cv_path_EGREP" >&6; }
5536
 EGREP="$ac_cv_path_EGREP"
5537
 
5538
 
5539
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5540
$as_echo_n "checking for fgrep... " >&6; }
5541
if test "${ac_cv_path_FGREP+set}" = set; then
5542
  $as_echo_n "(cached) " >&6
5543
else
5544
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5545
   then ac_cv_path_FGREP="$GREP -F"
5546
   else
5547
     if test -z "$FGREP"; then
5548
  ac_path_FGREP_found=false
5549
  # Loop through the user's path and test for each of PROGNAME-LIST
5550
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5552
do
5553
  IFS=$as_save_IFS
5554
  test -z "$as_dir" && as_dir=.
5555
  for ac_prog in fgrep; do
5556
    for ac_exec_ext in '' $ac_executable_extensions; do
5557
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5558
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5559
# Check for GNU ac_path_FGREP and select it if it is found.
5560
  # Check for GNU $ac_path_FGREP
5561
case `"$ac_path_FGREP" --version 2>&1` in
5562
*GNU*)
5563
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5564
*)
5565
  ac_count=0
5566
  $as_echo_n 0123456789 >"conftest.in"
5567
  while :
5568
  do
5569
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5570
    mv "conftest.tmp" "conftest.in"
5571
    cp "conftest.in" "conftest.nl"
5572
    $as_echo 'FGREP' >> "conftest.nl"
5573
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5574
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5575
    ac_count=`expr $ac_count + 1`
5576
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5577
      # Best one so far, save it but keep looking for a better one
5578
      ac_cv_path_FGREP="$ac_path_FGREP"
5579
      ac_path_FGREP_max=$ac_count
5580
    fi
5581
    # 10*(2^10) chars as input seems more than enough
5582
    test $ac_count -gt 10 && break
5583
  done
5584
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5585
esac
5586
 
5587
      $ac_path_FGREP_found && break 3
5588
    done
5589
  done
5590
done
5591
IFS=$as_save_IFS
5592
  if test -z "$ac_cv_path_FGREP"; then
5593
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5594
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5595
   { (exit 1); exit 1; }; }
5596
  fi
5597
else
5598
  ac_cv_path_FGREP=$FGREP
5599
fi
5600
 
5601
   fi
5602
fi
5603
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5604
$as_echo "$ac_cv_path_FGREP" >&6; }
5605
 FGREP="$ac_cv_path_FGREP"
5606
 
5607
 
5608
test -z "$GREP" && GREP=grep
5609
 
5610
 
5611
 
5612
 
5613
 
5614
 
5615
 
5616
 
5617
 
5618
 
5619
 
5620
 
5621
 
5622
 
5623
 
5624
 
5625
 
5626
 
5627
 
5628
# Check whether --with-gnu-ld was given.
5629
if test "${with_gnu_ld+set}" = set; then
5630
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5631
else
5632
  with_gnu_ld=no
5633
fi
5634
 
5635
ac_prog=ld
5636
if test "$GCC" = yes; then
5637
  # Check if gcc -print-prog-name=ld gives a path.
5638
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5639
$as_echo_n "checking for ld used by $CC... " >&6; }
5640
  case $host in
5641
  *-*-mingw*)
5642
    # gcc leaves a trailing carriage return which upsets mingw
5643
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5644
  *)
5645
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5646
  esac
5647
  case $ac_prog in
5648
    # Accept absolute paths.
5649
    [\\/]* | ?:[\\/]*)
5650
      re_direlt='/[^/][^/]*/\.\./'
5651
      # Canonicalize the pathname of ld
5652
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5653
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5654
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5655
      done
5656
      test -z "$LD" && LD="$ac_prog"
5657
      ;;
5658
  "")
5659
    # If it fails, then pretend we aren't using GCC.
5660
    ac_prog=ld
5661
    ;;
5662
  *)
5663
    # If it is relative, then search for the first ld in PATH.
5664
    with_gnu_ld=unknown
5665
    ;;
5666
  esac
5667
elif test "$with_gnu_ld" = yes; then
5668
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5669
$as_echo_n "checking for GNU ld... " >&6; }
5670
else
5671
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5672
$as_echo_n "checking for non-GNU ld... " >&6; }
5673
fi
5674
if test "${lt_cv_path_LD+set}" = set; then
5675
  $as_echo_n "(cached) " >&6
5676
else
5677
  if test -z "$LD"; then
5678
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5679
  for ac_dir in $PATH; do
5680
    IFS="$lt_save_ifs"
5681
    test -z "$ac_dir" && ac_dir=.
5682
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5683
      lt_cv_path_LD="$ac_dir/$ac_prog"
5684
      # Check to see if the program is GNU ld.  I'd rather use --version,
5685
      # but apparently some variants of GNU ld only accept -v.
5686
      # Break only if it was the GNU/non-GNU ld that we prefer.
5687
      case `"$lt_cv_path_LD" -v 2>&1 
5688
      *GNU* | *'with BFD'*)
5689
        test "$with_gnu_ld" != no && break
5690
        ;;
5691
      *)
5692
        test "$with_gnu_ld" != yes && break
5693
        ;;
5694
      esac
5695
    fi
5696
  done
5697
  IFS="$lt_save_ifs"
5698
else
5699
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5700
fi
5701
fi
5702
 
5703
LD="$lt_cv_path_LD"
5704
if test -n "$LD"; then
5705
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
5706
$as_echo "$LD" >&6; }
5707
else
5708
  { $as_echo "$as_me:$LINENO: result: no" >&5
5709
$as_echo "no" >&6; }
5710
fi
5711
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5712
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5713
   { (exit 1); exit 1; }; }
5714
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5715
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5716
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5717
  $as_echo_n "(cached) " >&6
5718
else
5719
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5720
case `$LD -v 2>&1 
5721
*GNU* | *'with BFD'*)
5722
  lt_cv_prog_gnu_ld=yes
5723
  ;;
5724
*)
5725
  lt_cv_prog_gnu_ld=no
5726
  ;;
5727
esac
5728
fi
5729
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5730
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5731
with_gnu_ld=$lt_cv_prog_gnu_ld
5732
 
5733
 
5734
 
5735
 
5736
 
5737
 
5738
 
5739
 
5740
 
5741
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5742
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5743
if test "${lt_cv_path_NM+set}" = set; then
5744
  $as_echo_n "(cached) " >&6
5745
else
5746
  if test -n "$NM"; then
5747
  # Let the user override the test.
5748
  lt_cv_path_NM="$NM"
5749
else
5750
  lt_nm_to_check="${ac_tool_prefix}nm"
5751
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5752
    lt_nm_to_check="$lt_nm_to_check nm"
5753
  fi
5754
  for lt_tmp_nm in $lt_nm_to_check; do
5755
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5756
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5757
      IFS="$lt_save_ifs"
5758
      test -z "$ac_dir" && ac_dir=.
5759
      tmp_nm="$ac_dir/$lt_tmp_nm"
5760
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5761
        # Check to see if the nm accepts a BSD-compat flag.
5762
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5763
        #   nm: unknown option "B" ignored
5764
        # Tru64's nm complains that /dev/null is an invalid object file
5765
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5766
        */dev/null* | *'Invalid file or object type'*)
5767
          lt_cv_path_NM="$tmp_nm -B"
5768
          break
5769
          ;;
5770
        *)
5771
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5772
          */dev/null*)
5773
            lt_cv_path_NM="$tmp_nm -p"
5774
            break
5775
            ;;
5776
          *)
5777
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5778
            continue # so that we can try to find one that supports BSD flags
5779
            ;;
5780
          esac
5781
          ;;
5782
        esac
5783
      fi
5784
    done
5785
    IFS="$lt_save_ifs"
5786
  done
5787
  : ${lt_cv_path_NM=no}
5788
fi
5789
fi
5790
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5791
$as_echo "$lt_cv_path_NM" >&6; }
5792
if test "$lt_cv_path_NM" != "no"; then
5793
  NM="$lt_cv_path_NM"
5794
else
5795
  # Didn't find any BSD compatible name lister, look for dumpbin.
5796
  if test -n "$ac_tool_prefix"; then
5797
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5798
  do
5799
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5800
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5801
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5802
$as_echo_n "checking for $ac_word... " >&6; }
5803
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5804
  $as_echo_n "(cached) " >&6
5805
else
5806
  if test -n "$DUMPBIN"; then
5807
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5808
else
5809
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810
for as_dir in $PATH
5811
do
5812
  IFS=$as_save_IFS
5813
  test -z "$as_dir" && as_dir=.
5814
  for ac_exec_ext in '' $ac_executable_extensions; do
5815
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5816
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5817
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5818
    break 2
5819
  fi
5820
done
5821
done
5822
IFS=$as_save_IFS
5823
 
5824
fi
5825
fi
5826
DUMPBIN=$ac_cv_prog_DUMPBIN
5827
if test -n "$DUMPBIN"; then
5828
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5829
$as_echo "$DUMPBIN" >&6; }
5830
else
5831
  { $as_echo "$as_me:$LINENO: result: no" >&5
5832
$as_echo "no" >&6; }
5833
fi
5834
 
5835
 
5836
    test -n "$DUMPBIN" && break
5837
  done
5838
fi
5839
if test -z "$DUMPBIN"; then
5840
  ac_ct_DUMPBIN=$DUMPBIN
5841
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5842
do
5843
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5844
set dummy $ac_prog; ac_word=$2
5845
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5846
$as_echo_n "checking for $ac_word... " >&6; }
5847
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5848
  $as_echo_n "(cached) " >&6
5849
else
5850
  if test -n "$ac_ct_DUMPBIN"; then
5851
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5852
else
5853
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854
for as_dir in $PATH
5855
do
5856
  IFS=$as_save_IFS
5857
  test -z "$as_dir" && as_dir=.
5858
  for ac_exec_ext in '' $ac_executable_extensions; do
5859
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5861
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5862
    break 2
5863
  fi
5864
done
5865
done
5866
IFS=$as_save_IFS
5867
 
5868
fi
5869
fi
5870
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5871
if test -n "$ac_ct_DUMPBIN"; then
5872
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5873
$as_echo "$ac_ct_DUMPBIN" >&6; }
5874
else
5875
  { $as_echo "$as_me:$LINENO: result: no" >&5
5876
$as_echo "no" >&6; }
5877
fi
5878
 
5879
 
5880
  test -n "$ac_ct_DUMPBIN" && break
5881
done
5882
 
5883
  if test "x$ac_ct_DUMPBIN" = x; then
5884
    DUMPBIN=":"
5885
  else
5886
    case $cross_compiling:$ac_tool_warned in
5887
yes:)
5888
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5889
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5890
ac_tool_warned=yes ;;
5891
esac
5892
    DUMPBIN=$ac_ct_DUMPBIN
5893
  fi
5894
fi
5895
 
5896
 
5897
  if test "$DUMPBIN" != ":"; then
5898
    NM="$DUMPBIN"
5899
  fi
5900
fi
5901
test -z "$NM" && NM=nm
5902
 
5903
 
5904
 
5905
 
5906
 
5907
 
5908
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5909
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5910
if test "${lt_cv_nm_interface+set}" = set; then
5911
  $as_echo_n "(cached) " >&6
5912
else
5913
  lt_cv_nm_interface="BSD nm"
5914
  echo "int some_variable = 0;" > conftest.$ac_ext
5915
  (eval echo "\"\$as_me:5915: $ac_compile\"" >&5)
5916
  (eval "$ac_compile" 2>conftest.err)
5917
  cat conftest.err >&5
5918
  (eval echo "\"\$as_me:5918: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5919
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5920
  cat conftest.err >&5
5921
  (eval echo "\"\$as_me:5921: output\"" >&5)
5922
  cat conftest.out >&5
5923
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5924
    lt_cv_nm_interface="MS dumpbin"
5925
  fi
5926
  rm -f conftest*
5927
fi
5928
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5929
$as_echo "$lt_cv_nm_interface" >&6; }
5930
 
5931
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5932
$as_echo_n "checking whether ln -s works... " >&6; }
5933
LN_S=$as_ln_s
5934
if test "$LN_S" = "ln -s"; then
5935
  { $as_echo "$as_me:$LINENO: result: yes" >&5
5936
$as_echo "yes" >&6; }
5937
else
5938
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5939
$as_echo "no, using $LN_S" >&6; }
5940
fi
5941
 
5942
# find the maximum length of command line arguments
5943
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5944
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5945
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5946
  $as_echo_n "(cached) " >&6
5947
else
5948
    i=0
5949
  teststring="ABCD"
5950
 
5951
  case $build_os in
5952
  msdosdjgpp*)
5953
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5954
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5955
    # during glob expansion).  Even if it were fixed, the result of this
5956
    # check would be larger than it should be.
5957
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5958
    ;;
5959
 
5960
  gnu*)
5961
    # Under GNU Hurd, this test is not required because there is
5962
    # no limit to the length of command line arguments.
5963
    # Libtool will interpret -1 as no limit whatsoever
5964
    lt_cv_sys_max_cmd_len=-1;
5965
    ;;
5966
 
5967
  cygwin* | mingw* | cegcc*)
5968
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5969
    # about 5 minutes as the teststring grows exponentially.
5970
    # Worse, since 9x/ME are not pre-emptively multitasking,
5971
    # you end up with a "frozen" computer, even though with patience
5972
    # the test eventually succeeds (with a max line length of 256k).
5973
    # Instead, let's just punt: use the minimum linelength reported by
5974
    # all of the supported platforms: 8192 (on NT/2K/XP).
5975
    lt_cv_sys_max_cmd_len=8192;
5976
    ;;
5977
 
5978
  amigaos*)
5979
    # On AmigaOS with pdksh, this test takes hours, literally.
5980
    # So we just punt and use a minimum line length of 8192.
5981
    lt_cv_sys_max_cmd_len=8192;
5982
    ;;
5983
 
5984
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5985
    # This has been around since 386BSD, at least.  Likely further.
5986
    if test -x /sbin/sysctl; then
5987
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5988
    elif test -x /usr/sbin/sysctl; then
5989
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5990
    else
5991
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5992
    fi
5993
    # And add a safety zone
5994
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5995
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5996
    ;;
5997
 
5998
  interix*)
5999
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6000
    lt_cv_sys_max_cmd_len=196608
6001
    ;;
6002
 
6003
  osf*)
6004
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6005
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6006
    # nice to cause kernel panics so lets avoid the loop below.
6007
    # First set a reasonable default.
6008
    lt_cv_sys_max_cmd_len=16384
6009
    #
6010
    if test -x /sbin/sysconfig; then
6011
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6012
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6013
      esac
6014
    fi
6015
    ;;
6016
  sco3.2v5*)
6017
    lt_cv_sys_max_cmd_len=102400
6018
    ;;
6019
  sysv5* | sco5v6* | sysv4.2uw2*)
6020
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6021
    if test -n "$kargmax"; then
6022
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6023
    else
6024
      lt_cv_sys_max_cmd_len=32768
6025
    fi
6026
    ;;
6027
  *)
6028
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6029
    if test -n "$lt_cv_sys_max_cmd_len"; then
6030
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6031
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6032
    else
6033
      # Make teststring a little bigger before we do anything with it.
6034
      # a 1K string should be a reasonable start.
6035
      for i in 1 2 3 4 5 6 7 8 ; do
6036
        teststring=$teststring$teststring
6037
      done
6038
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6039
      # If test is not a shell built-in, we'll probably end up computing a
6040
      # maximum length that is only half of the actual maximum length, but
6041
      # we can't tell.
6042
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6043
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6044
              test $i != 17 # 1/2 MB should be enough
6045
      do
6046
        i=`expr $i + 1`
6047
        teststring=$teststring$teststring
6048
      done
6049
      # Only check the string length outside the loop.
6050
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6051
      teststring=
6052
      # Add a significant safety factor because C++ compilers can tack on
6053
      # massive amounts of additional arguments before passing them to the
6054
      # linker.  It appears as though 1/2 is a usable value.
6055
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6056
    fi
6057
    ;;
6058
  esac
6059
 
6060
fi
6061
 
6062
if test -n $lt_cv_sys_max_cmd_len ; then
6063
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6064
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6065
else
6066
  { $as_echo "$as_me:$LINENO: result: none" >&5
6067
$as_echo "none" >&6; }
6068
fi
6069
max_cmd_len=$lt_cv_sys_max_cmd_len
6070
 
6071
 
6072
 
6073
 
6074
 
6075
 
6076
: ${CP="cp -f"}
6077
: ${MV="mv -f"}
6078
: ${RM="rm -f"}
6079
 
6080
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6081
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6082
# Try some XSI features
6083
xsi_shell=no
6084
( _lt_dummy="a/b/c"
6085
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6086
      = c,a/b,, \
6087
    && eval 'test $(( 1 + 1 )) -eq 2 \
6088
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6089
  && xsi_shell=yes
6090
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6091
$as_echo "$xsi_shell" >&6; }
6092
 
6093
 
6094
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6095
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6096
lt_shell_append=no
6097
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6098
    >/dev/null 2>&1 \
6099
  && lt_shell_append=yes
6100
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6101
$as_echo "$lt_shell_append" >&6; }
6102
 
6103
 
6104
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6105
  lt_unset=unset
6106
else
6107
  lt_unset=false
6108
fi
6109
 
6110
 
6111
 
6112
 
6113
 
6114
# test EBCDIC or ASCII
6115
case `echo X|tr X '\101'` in
6116
 A) # ASCII based system
6117
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6118
  lt_SP2NL='tr \040 \012'
6119
  lt_NL2SP='tr \015\012 \040\040'
6120
  ;;
6121
 *) # EBCDIC based system
6122
  lt_SP2NL='tr \100 \n'
6123
  lt_NL2SP='tr \r\n \100\100'
6124
  ;;
6125
esac
6126
 
6127
 
6128
 
6129
 
6130
 
6131
 
6132
 
6133
 
6134
 
6135
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6136
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6137
if test "${lt_cv_ld_reload_flag+set}" = set; then
6138
  $as_echo_n "(cached) " >&6
6139
else
6140
  lt_cv_ld_reload_flag='-r'
6141
fi
6142
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6143
$as_echo "$lt_cv_ld_reload_flag" >&6; }
6144
reload_flag=$lt_cv_ld_reload_flag
6145
case $reload_flag in
6146
"" | " "*) ;;
6147
*) reload_flag=" $reload_flag" ;;
6148
esac
6149
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6150
case $host_os in
6151
  darwin*)
6152
    if test "$GCC" = yes; then
6153
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6154
    else
6155
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6156
    fi
6157
    ;;
6158
esac
6159
 
6160
 
6161
 
6162
 
6163
 
6164
 
6165
 
6166
 
6167
 
6168
if test -n "$ac_tool_prefix"; then
6169
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6170
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6171
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6172
$as_echo_n "checking for $ac_word... " >&6; }
6173
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6174
  $as_echo_n "(cached) " >&6
6175
else
6176
  if test -n "$OBJDUMP"; then
6177
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6178
else
6179
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180
for as_dir in $PATH
6181
do
6182
  IFS=$as_save_IFS
6183
  test -z "$as_dir" && as_dir=.
6184
  for ac_exec_ext in '' $ac_executable_extensions; do
6185
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6187
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188
    break 2
6189
  fi
6190
done
6191
done
6192
IFS=$as_save_IFS
6193
 
6194
fi
6195
fi
6196
OBJDUMP=$ac_cv_prog_OBJDUMP
6197
if test -n "$OBJDUMP"; then
6198
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6199
$as_echo "$OBJDUMP" >&6; }
6200
else
6201
  { $as_echo "$as_me:$LINENO: result: no" >&5
6202
$as_echo "no" >&6; }
6203
fi
6204
 
6205
 
6206
fi
6207
if test -z "$ac_cv_prog_OBJDUMP"; then
6208
  ac_ct_OBJDUMP=$OBJDUMP
6209
  # Extract the first word of "objdump", so it can be a program name with args.
6210
set dummy objdump; ac_word=$2
6211
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6212
$as_echo_n "checking for $ac_word... " >&6; }
6213
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6214
  $as_echo_n "(cached) " >&6
6215
else
6216
  if test -n "$ac_ct_OBJDUMP"; then
6217
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6218
else
6219
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220
for as_dir in $PATH
6221
do
6222
  IFS=$as_save_IFS
6223
  test -z "$as_dir" && as_dir=.
6224
  for ac_exec_ext in '' $ac_executable_extensions; do
6225
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6227
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228
    break 2
6229
  fi
6230
done
6231
done
6232
IFS=$as_save_IFS
6233
 
6234
fi
6235
fi
6236
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6237
if test -n "$ac_ct_OBJDUMP"; then
6238
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6239
$as_echo "$ac_ct_OBJDUMP" >&6; }
6240
else
6241
  { $as_echo "$as_me:$LINENO: result: no" >&5
6242
$as_echo "no" >&6; }
6243
fi
6244
 
6245
  if test "x$ac_ct_OBJDUMP" = x; then
6246
    OBJDUMP="false"
6247
  else
6248
    case $cross_compiling:$ac_tool_warned in
6249
yes:)
6250
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6251
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6252
ac_tool_warned=yes ;;
6253
esac
6254
    OBJDUMP=$ac_ct_OBJDUMP
6255
  fi
6256
else
6257
  OBJDUMP="$ac_cv_prog_OBJDUMP"
6258
fi
6259
 
6260
test -z "$OBJDUMP" && OBJDUMP=objdump
6261
 
6262
 
6263
 
6264
 
6265
 
6266
 
6267
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6268
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6269
if test "${lt_cv_deplibs_check_method+set}" = set; then
6270
  $as_echo_n "(cached) " >&6
6271
else
6272
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6273
lt_cv_file_magic_test_file=
6274
lt_cv_deplibs_check_method='unknown'
6275
# Need to set the preceding variable on all platforms that support
6276
# interlibrary dependencies.
6277
# 'none' -- dependencies not supported.
6278
# `unknown' -- same as none, but documents that we really don't know.
6279
# 'pass_all' -- all dependencies passed with no checks.
6280
# 'test_compile' -- check by making test program.
6281
# 'file_magic [[regex]]' -- check by looking for files in library path
6282
# which responds to the $file_magic_cmd with a given extended regex.
6283
# If you have `file' or equivalent on your system and you're not sure
6284
# whether `pass_all' will *always* work, you probably want this one.
6285
 
6286
case $host_os in
6287
aix[4-9]*)
6288
  lt_cv_deplibs_check_method=pass_all
6289
  ;;
6290
 
6291
beos*)
6292
  lt_cv_deplibs_check_method=pass_all
6293
  ;;
6294
 
6295
bsdi[45]*)
6296
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6297
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6298
  lt_cv_file_magic_test_file=/shlib/libc.so
6299
  ;;
6300
 
6301
cygwin*)
6302
  # func_win32_libid is a shell function defined in ltmain.sh
6303
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6304
  lt_cv_file_magic_cmd='func_win32_libid'
6305
  ;;
6306
 
6307
mingw* | pw32*)
6308
  # Base MSYS/MinGW do not provide the 'file' command needed by
6309
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6310
  # unless we find 'file', for example because we are cross-compiling.
6311
  if ( file / ) >/dev/null 2>&1; then
6312
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6313
    lt_cv_file_magic_cmd='func_win32_libid'
6314
  else
6315
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6316
    lt_cv_file_magic_cmd='$OBJDUMP -f'
6317
  fi
6318
  ;;
6319
 
6320
cegcc)
6321
  # use the weaker test based on 'objdump'. See mingw*.
6322
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6323
  lt_cv_file_magic_cmd='$OBJDUMP -f'
6324
  ;;
6325
 
6326
darwin* | rhapsody*)
6327
  lt_cv_deplibs_check_method=pass_all
6328
  ;;
6329
 
6330
freebsd* | dragonfly*)
6331
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6332
    case $host_cpu in
6333
    i*86 )
6334
      # Not sure whether the presence of OpenBSD here was a mistake.
6335
      # Let's accept both of them until this is cleared up.
6336
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6337
      lt_cv_file_magic_cmd=/usr/bin/file
6338
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6339
      ;;
6340
    esac
6341
  else
6342
    lt_cv_deplibs_check_method=pass_all
6343
  fi
6344
  ;;
6345
 
6346
gnu*)
6347
  lt_cv_deplibs_check_method=pass_all
6348
  ;;
6349
 
6350
hpux10.20* | hpux11*)
6351
  lt_cv_file_magic_cmd=/usr/bin/file
6352
  case $host_cpu in
6353
  ia64*)
6354
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6355
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6356
    ;;
6357
  hppa*64*)
6358
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6359
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6360
    ;;
6361
  *)
6362
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6363
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6364
    ;;
6365
  esac
6366
  ;;
6367
 
6368
interix[3-9]*)
6369
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6370
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6371
  ;;
6372
 
6373
irix5* | irix6* | nonstopux*)
6374
  case $LD in
6375
  *-32|*"-32 ") libmagic=32-bit;;
6376
  *-n32|*"-n32 ") libmagic=N32;;
6377
  *-64|*"-64 ") libmagic=64-bit;;
6378
  *) libmagic=never-match;;
6379
  esac
6380
  lt_cv_deplibs_check_method=pass_all
6381
  ;;
6382
 
6383
# This must be Linux ELF.
6384
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6385
  lt_cv_deplibs_check_method=pass_all
6386
  ;;
6387
 
6388
netbsd*)
6389
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6390
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6391
  else
6392
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6393
  fi
6394
  ;;
6395
 
6396
newos6*)
6397
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6398
  lt_cv_file_magic_cmd=/usr/bin/file
6399
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6400
  ;;
6401
 
6402
*nto* | *qnx*)
6403
  lt_cv_deplibs_check_method=pass_all
6404
  ;;
6405
 
6406
openbsd*)
6407
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6408
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6409
  else
6410
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6411
  fi
6412
  ;;
6413
 
6414
osf3* | osf4* | osf5*)
6415
  lt_cv_deplibs_check_method=pass_all
6416
  ;;
6417
 
6418
rdos*)
6419
  lt_cv_deplibs_check_method=pass_all
6420
  ;;
6421
 
6422
solaris*)
6423
  lt_cv_deplibs_check_method=pass_all
6424
  ;;
6425
 
6426
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6427
  lt_cv_deplibs_check_method=pass_all
6428
  ;;
6429
 
6430
sysv4 | sysv4.3*)
6431
  case $host_vendor in
6432
  motorola)
6433
    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]'
6434
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6435
    ;;
6436
  ncr)
6437
    lt_cv_deplibs_check_method=pass_all
6438
    ;;
6439
  sequent)
6440
    lt_cv_file_magic_cmd='/bin/file'
6441
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6442
    ;;
6443
  sni)
6444
    lt_cv_file_magic_cmd='/bin/file'
6445
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6446
    lt_cv_file_magic_test_file=/lib/libc.so
6447
    ;;
6448
  siemens)
6449
    lt_cv_deplibs_check_method=pass_all
6450
    ;;
6451
  pc)
6452
    lt_cv_deplibs_check_method=pass_all
6453
    ;;
6454
  esac
6455
  ;;
6456
 
6457
tpf*)
6458
  lt_cv_deplibs_check_method=pass_all
6459
  ;;
6460
esac
6461
 
6462
fi
6463
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6464
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6465
file_magic_cmd=$lt_cv_file_magic_cmd
6466
deplibs_check_method=$lt_cv_deplibs_check_method
6467
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6468
 
6469
 
6470
 
6471
 
6472
 
6473
 
6474
 
6475
 
6476
 
6477
 
6478
 
6479
 
6480
if test -n "$ac_tool_prefix"; then
6481
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6482
set dummy ${ac_tool_prefix}ar; ac_word=$2
6483
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6484
$as_echo_n "checking for $ac_word... " >&6; }
6485
if test "${ac_cv_prog_AR+set}" = set; then
6486
  $as_echo_n "(cached) " >&6
6487
else
6488
  if test -n "$AR"; then
6489
  ac_cv_prog_AR="$AR" # Let the user override the test.
6490
else
6491
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492
for as_dir in $PATH
6493
do
6494
  IFS=$as_save_IFS
6495
  test -z "$as_dir" && as_dir=.
6496
  for ac_exec_ext in '' $ac_executable_extensions; do
6497
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6499
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6500
    break 2
6501
  fi
6502
done
6503
done
6504
IFS=$as_save_IFS
6505
 
6506
fi
6507
fi
6508
AR=$ac_cv_prog_AR
6509
if test -n "$AR"; then
6510
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6511
$as_echo "$AR" >&6; }
6512
else
6513
  { $as_echo "$as_me:$LINENO: result: no" >&5
6514
$as_echo "no" >&6; }
6515
fi
6516
 
6517
 
6518
fi
6519
if test -z "$ac_cv_prog_AR"; then
6520
  ac_ct_AR=$AR
6521
  # Extract the first word of "ar", so it can be a program name with args.
6522
set dummy ar; ac_word=$2
6523
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6524
$as_echo_n "checking for $ac_word... " >&6; }
6525
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6526
  $as_echo_n "(cached) " >&6
6527
else
6528
  if test -n "$ac_ct_AR"; then
6529
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6530
else
6531
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532
for as_dir in $PATH
6533
do
6534
  IFS=$as_save_IFS
6535
  test -z "$as_dir" && as_dir=.
6536
  for ac_exec_ext in '' $ac_executable_extensions; do
6537
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538
    ac_cv_prog_ac_ct_AR="ar"
6539
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540
    break 2
6541
  fi
6542
done
6543
done
6544
IFS=$as_save_IFS
6545
 
6546
fi
6547
fi
6548
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6549
if test -n "$ac_ct_AR"; then
6550
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6551
$as_echo "$ac_ct_AR" >&6; }
6552
else
6553
  { $as_echo "$as_me:$LINENO: result: no" >&5
6554
$as_echo "no" >&6; }
6555
fi
6556
 
6557
  if test "x$ac_ct_AR" = x; then
6558
    AR="false"
6559
  else
6560
    case $cross_compiling:$ac_tool_warned in
6561
yes:)
6562
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6563
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6564
ac_tool_warned=yes ;;
6565
esac
6566
    AR=$ac_ct_AR
6567
  fi
6568
else
6569
  AR="$ac_cv_prog_AR"
6570
fi
6571
 
6572
test -z "$AR" && AR=ar
6573
test -z "$AR_FLAGS" && AR_FLAGS=cru
6574
 
6575
 
6576
 
6577
 
6578
 
6579
 
6580
 
6581
 
6582
 
6583
 
6584
 
6585
if test -n "$ac_tool_prefix"; then
6586
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6587
set dummy ${ac_tool_prefix}strip; ac_word=$2
6588
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6589
$as_echo_n "checking for $ac_word... " >&6; }
6590
if test "${ac_cv_prog_STRIP+set}" = set; then
6591
  $as_echo_n "(cached) " >&6
6592
else
6593
  if test -n "$STRIP"; then
6594
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6595
else
6596
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597
for as_dir in $PATH
6598
do
6599
  IFS=$as_save_IFS
6600
  test -z "$as_dir" && as_dir=.
6601
  for ac_exec_ext in '' $ac_executable_extensions; do
6602
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6604
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6605
    break 2
6606
  fi
6607
done
6608
done
6609
IFS=$as_save_IFS
6610
 
6611
fi
6612
fi
6613
STRIP=$ac_cv_prog_STRIP
6614
if test -n "$STRIP"; then
6615
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6616
$as_echo "$STRIP" >&6; }
6617
else
6618
  { $as_echo "$as_me:$LINENO: result: no" >&5
6619
$as_echo "no" >&6; }
6620
fi
6621
 
6622
 
6623
fi
6624
if test -z "$ac_cv_prog_STRIP"; then
6625
  ac_ct_STRIP=$STRIP
6626
  # Extract the first word of "strip", so it can be a program name with args.
6627
set dummy strip; ac_word=$2
6628
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6629
$as_echo_n "checking for $ac_word... " >&6; }
6630
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6631
  $as_echo_n "(cached) " >&6
6632
else
6633
  if test -n "$ac_ct_STRIP"; then
6634
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6635
else
6636
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637
for as_dir in $PATH
6638
do
6639
  IFS=$as_save_IFS
6640
  test -z "$as_dir" && as_dir=.
6641
  for ac_exec_ext in '' $ac_executable_extensions; do
6642
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643
    ac_cv_prog_ac_ct_STRIP="strip"
6644
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645
    break 2
6646
  fi
6647
done
6648
done
6649
IFS=$as_save_IFS
6650
 
6651
fi
6652
fi
6653
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6654
if test -n "$ac_ct_STRIP"; then
6655
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6656
$as_echo "$ac_ct_STRIP" >&6; }
6657
else
6658
  { $as_echo "$as_me:$LINENO: result: no" >&5
6659
$as_echo "no" >&6; }
6660
fi
6661
 
6662
  if test "x$ac_ct_STRIP" = x; then
6663
    STRIP=":"
6664
  else
6665
    case $cross_compiling:$ac_tool_warned in
6666
yes:)
6667
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6668
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6669
ac_tool_warned=yes ;;
6670
esac
6671
    STRIP=$ac_ct_STRIP
6672
  fi
6673
else
6674
  STRIP="$ac_cv_prog_STRIP"
6675
fi
6676
 
6677
test -z "$STRIP" && STRIP=:
6678
 
6679
 
6680
 
6681
 
6682
 
6683
 
6684
if test -n "$ac_tool_prefix"; then
6685
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6686
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6687
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6688
$as_echo_n "checking for $ac_word... " >&6; }
6689
if test "${ac_cv_prog_RANLIB+set}" = set; then
6690
  $as_echo_n "(cached) " >&6
6691
else
6692
  if test -n "$RANLIB"; then
6693
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6694
else
6695
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696
for as_dir in $PATH
6697
do
6698
  IFS=$as_save_IFS
6699
  test -z "$as_dir" && as_dir=.
6700
  for ac_exec_ext in '' $ac_executable_extensions; do
6701
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6702
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6703
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704
    break 2
6705
  fi
6706
done
6707
done
6708
IFS=$as_save_IFS
6709
 
6710
fi
6711
fi
6712
RANLIB=$ac_cv_prog_RANLIB
6713
if test -n "$RANLIB"; then
6714
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6715
$as_echo "$RANLIB" >&6; }
6716
else
6717
  { $as_echo "$as_me:$LINENO: result: no" >&5
6718
$as_echo "no" >&6; }
6719
fi
6720
 
6721
 
6722
fi
6723
if test -z "$ac_cv_prog_RANLIB"; then
6724
  ac_ct_RANLIB=$RANLIB
6725
  # Extract the first word of "ranlib", so it can be a program name with args.
6726
set dummy ranlib; ac_word=$2
6727
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6728
$as_echo_n "checking for $ac_word... " >&6; }
6729
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6730
  $as_echo_n "(cached) " >&6
6731
else
6732
  if test -n "$ac_ct_RANLIB"; then
6733
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6734
else
6735
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736
for as_dir in $PATH
6737
do
6738
  IFS=$as_save_IFS
6739
  test -z "$as_dir" && as_dir=.
6740
  for ac_exec_ext in '' $ac_executable_extensions; do
6741
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6743
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744
    break 2
6745
  fi
6746
done
6747
done
6748
IFS=$as_save_IFS
6749
 
6750
fi
6751
fi
6752
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6753
if test -n "$ac_ct_RANLIB"; then
6754
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6755
$as_echo "$ac_ct_RANLIB" >&6; }
6756
else
6757
  { $as_echo "$as_me:$LINENO: result: no" >&5
6758
$as_echo "no" >&6; }
6759
fi
6760
 
6761
  if test "x$ac_ct_RANLIB" = x; then
6762
    RANLIB=":"
6763
  else
6764
    case $cross_compiling:$ac_tool_warned in
6765
yes:)
6766
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6767
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6768
ac_tool_warned=yes ;;
6769
esac
6770
    RANLIB=$ac_ct_RANLIB
6771
  fi
6772
else
6773
  RANLIB="$ac_cv_prog_RANLIB"
6774
fi
6775
 
6776
test -z "$RANLIB" && RANLIB=:
6777
 
6778
 
6779
 
6780
 
6781
 
6782
 
6783
# Determine commands to create old-style static archives.
6784
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6785
old_postinstall_cmds='chmod 644 $oldlib'
6786
old_postuninstall_cmds=
6787
 
6788
if test -n "$RANLIB"; then
6789
  case $host_os in
6790
  openbsd*)
6791
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6792
    ;;
6793
  *)
6794
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6795
    ;;
6796
  esac
6797
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6798
fi
6799
 
6800
 
6801
 
6802
 
6803
 
6804
 
6805
 
6806
 
6807
 
6808
 
6809
 
6810
 
6811
 
6812
 
6813
 
6814
 
6815
 
6816
 
6817
 
6818
 
6819
 
6820
 
6821
 
6822
 
6823
 
6824
 
6825
 
6826
 
6827
 
6828
 
6829
 
6830
 
6831
 
6832
 
6833
# If no C compiler was specified, use CC.
6834
LTCC=${LTCC-"$CC"}
6835
 
6836
# If no C compiler flags were specified, use CFLAGS.
6837
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6838
 
6839
# Allow CC to be a program name with arguments.
6840
compiler=$CC
6841
 
6842
 
6843
# Check for command to grab the raw symbol name followed by C symbol from nm.
6844
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6845
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6846
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6847
  $as_echo_n "(cached) " >&6
6848
else
6849
 
6850
# These are sane defaults that work on at least a few old systems.
6851
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6852
 
6853
# Character class describing NM global symbol codes.
6854
symcode='[BCDEGRST]'
6855
 
6856
# Regexp to match symbols that can be accessed directly from C.
6857
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6858
 
6859
# Define system-specific variables.
6860
case $host_os in
6861
aix*)
6862
  symcode='[BCDT]'
6863
  ;;
6864
cygwin* | mingw* | pw32* | cegcc*)
6865
  symcode='[ABCDGISTW]'
6866
  ;;
6867
hpux*)
6868
  if test "$host_cpu" = ia64; then
6869
    symcode='[ABCDEGRST]'
6870
  fi
6871
  ;;
6872
irix* | nonstopux*)
6873
  symcode='[BCDEGRST]'
6874
  ;;
6875
osf*)
6876
  symcode='[BCDEGQRST]'
6877
  ;;
6878
solaris*)
6879
  symcode='[BDRT]'
6880
  ;;
6881
sco3.2v5*)
6882
  symcode='[DT]'
6883
  ;;
6884
sysv4.2uw2*)
6885
  symcode='[DT]'
6886
  ;;
6887
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6888
  symcode='[ABDT]'
6889
  ;;
6890
sysv4)
6891
  symcode='[DFNSTU]'
6892
  ;;
6893
esac
6894
 
6895
# If we're using GNU nm, then use its standard symbol codes.
6896
case `$NM -V 2>&1` in
6897
*GNU* | *'with BFD'*)
6898
  symcode='[ABCDGIRSTW]' ;;
6899
esac
6900
 
6901
# Transform an extracted symbol line into a proper C declaration.
6902
# Some systems (esp. on ia64) link data and code symbols differently,
6903
# so use this general approach.
6904
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6905
 
6906
# Transform an extracted symbol line into symbol name and symbol address
6907
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6908
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'"
6909
 
6910
# Handle CRLF in mingw tool chain
6911
opt_cr=
6912
case $build_os in
6913
mingw*)
6914
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6915
  ;;
6916
esac
6917
 
6918
# Try without a prefix underscore, then with it.
6919
for ac_symprfx in "" "_"; do
6920
 
6921
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6922
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6923
 
6924
  # Write the raw and C identifiers.
6925
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6926
    # Fake it for dumpbin and say T for any non-static function
6927
    # and D for any global variable.
6928
    # Also find C++ and __fastcall symbols from MSVC++,
6929
    # which start with @ or ?.
6930
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6931
"     {last_section=section; section=\$ 3};"\
6932
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6933
"     \$ 0!~/External *\|/{next};"\
6934
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6935
"     {if(hide[section]) next};"\
6936
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6937
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6938
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6939
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6940
"     ' prfx=^$ac_symprfx"
6941
  else
6942
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6943
  fi
6944
 
6945
  # Check to see that the pipe works correctly.
6946
  pipe_works=no
6947
 
6948
  rm -f conftest*
6949
  cat > conftest.$ac_ext <<_LT_EOF
6950
#ifdef __cplusplus
6951
extern "C" {
6952
#endif
6953
char nm_test_var;
6954
void nm_test_func(void);
6955
void nm_test_func(void){}
6956
#ifdef __cplusplus
6957
}
6958
#endif
6959
int main(){nm_test_var='a';nm_test_func();return(0);}
6960
_LT_EOF
6961
 
6962
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6963
  (eval $ac_compile) 2>&5
6964
  ac_status=$?
6965
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966
  (exit $ac_status); }; then
6967
    # Now try to grab the symbols.
6968
    nlist=conftest.nm
6969
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6970
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6971
  ac_status=$?
6972
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973
  (exit $ac_status); } && test -s "$nlist"; then
6974
      # Try sorting and uniquifying the output.
6975
      if sort "$nlist" | uniq > "$nlist"T; then
6976
        mv -f "$nlist"T "$nlist"
6977
      else
6978
        rm -f "$nlist"T
6979
      fi
6980
 
6981
      # Make sure that we snagged all the symbols we need.
6982
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6983
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6984
          cat <<_LT_EOF > conftest.$ac_ext
6985
#ifdef __cplusplus
6986
extern "C" {
6987
#endif
6988
 
6989
_LT_EOF
6990
          # Now generate the symbol file.
6991
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6992
 
6993
          cat <<_LT_EOF >> conftest.$ac_ext
6994
 
6995
/* The mapping between symbol names and symbols.  */
6996
const struct {
6997
  const char *name;
6998
  void       *address;
6999
}
7000
lt__PROGRAM__LTX_preloaded_symbols[] =
7001
{
7002
  { "@PROGRAM@", (void *) 0 },
7003
_LT_EOF
7004
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7005
          cat <<\_LT_EOF >> conftest.$ac_ext
7006
  {0, (void *) 0}
7007
};
7008
 
7009
/* This works around a problem in FreeBSD linker */
7010
#ifdef FREEBSD_WORKAROUND
7011
static const void *lt_preloaded_setup() {
7012
  return lt__PROGRAM__LTX_preloaded_symbols;
7013
}
7014
#endif
7015
 
7016
#ifdef __cplusplus
7017
}
7018
#endif
7019
_LT_EOF
7020
          # Now try linking the two files.
7021
          mv conftest.$ac_objext conftstm.$ac_objext
7022
          lt_save_LIBS="$LIBS"
7023
          lt_save_CFLAGS="$CFLAGS"
7024
          LIBS="conftstm.$ac_objext"
7025
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7026
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7027
  (eval $ac_link) 2>&5
7028
  ac_status=$?
7029
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7031
            pipe_works=yes
7032
          fi
7033
          LIBS="$lt_save_LIBS"
7034
          CFLAGS="$lt_save_CFLAGS"
7035
        else
7036
          echo "cannot find nm_test_func in $nlist" >&5
7037
        fi
7038
      else
7039
        echo "cannot find nm_test_var in $nlist" >&5
7040
      fi
7041
    else
7042
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7043
    fi
7044
  else
7045
    echo "$progname: failed program was:" >&5
7046
    cat conftest.$ac_ext >&5
7047
  fi
7048
  rm -rf conftest* conftst*
7049
 
7050
  # Do not use the global_symbol_pipe unless it works.
7051
  if test "$pipe_works" = yes; then
7052
    break
7053
  else
7054
    lt_cv_sys_global_symbol_pipe=
7055
  fi
7056
done
7057
 
7058
fi
7059
 
7060
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7061
  lt_cv_sys_global_symbol_to_cdecl=
7062
fi
7063
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7064
  { $as_echo "$as_me:$LINENO: result: failed" >&5
7065
$as_echo "failed" >&6; }
7066
else
7067
  { $as_echo "$as_me:$LINENO: result: ok" >&5
7068
$as_echo "ok" >&6; }
7069
fi
7070
 
7071
 
7072
 
7073
 
7074
 
7075
 
7076
 
7077
 
7078
 
7079
 
7080
 
7081
 
7082
 
7083
 
7084
 
7085
 
7086
 
7087
 
7088
 
7089
 
7090
 
7091
 
7092
 
7093
# Check whether --enable-libtool-lock was given.
7094
if test "${enable_libtool_lock+set}" = set; then
7095
  enableval=$enable_libtool_lock;
7096
fi
7097
 
7098
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7099
 
7100
# Some flags need to be propagated to the compiler or linker for good
7101
# libtool support.
7102
case $host in
7103
ia64-*-hpux*)
7104
  # Find out which ABI we are using.
7105
  echo 'int i;' > conftest.$ac_ext
7106
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7107
  (eval $ac_compile) 2>&5
7108
  ac_status=$?
7109
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110
  (exit $ac_status); }; then
7111
    case `/usr/bin/file conftest.$ac_objext` in
7112
      *ELF-32*)
7113
        HPUX_IA64_MODE="32"
7114
        ;;
7115
      *ELF-64*)
7116
        HPUX_IA64_MODE="64"
7117
        ;;
7118
    esac
7119
  fi
7120
  rm -rf conftest*
7121
  ;;
7122
*-*-irix6*)
7123
  # Find out which ABI we are using.
7124
  echo '#line 7124 "configure"' > conftest.$ac_ext
7125
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7126
  (eval $ac_compile) 2>&5
7127
  ac_status=$?
7128
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129
  (exit $ac_status); }; then
7130
    if test "$lt_cv_prog_gnu_ld" = yes; then
7131
      case `/usr/bin/file conftest.$ac_objext` in
7132
        *32-bit*)
7133
          LD="${LD-ld} -melf32bsmip"
7134
          ;;
7135
        *N32*)
7136
          LD="${LD-ld} -melf32bmipn32"
7137
          ;;
7138
        *64-bit*)
7139
          LD="${LD-ld} -melf64bmip"
7140
        ;;
7141
      esac
7142
    else
7143
      case `/usr/bin/file conftest.$ac_objext` in
7144
        *32-bit*)
7145
          LD="${LD-ld} -32"
7146
          ;;
7147
        *N32*)
7148
          LD="${LD-ld} -n32"
7149
          ;;
7150
        *64-bit*)
7151
          LD="${LD-ld} -64"
7152
          ;;
7153
      esac
7154
    fi
7155
  fi
7156
  rm -rf conftest*
7157
  ;;
7158
 
7159
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7160
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7161
  # Find out which ABI we are using.
7162
  echo 'int i;' > conftest.$ac_ext
7163
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7164
  (eval $ac_compile) 2>&5
7165
  ac_status=$?
7166
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167
  (exit $ac_status); }; then
7168
    case `/usr/bin/file conftest.o` in
7169
      *32-bit*)
7170
        case $host in
7171
          x86_64-*kfreebsd*-gnu)
7172
            LD="${LD-ld} -m elf_i386_fbsd"
7173
            ;;
7174
          x86_64-*linux*)
7175
            LD="${LD-ld} -m elf_i386"
7176
            ;;
7177
          ppc64-*linux*|powerpc64-*linux*)
7178
            LD="${LD-ld} -m elf32ppclinux"
7179
            ;;
7180
          s390x-*linux*)
7181
            LD="${LD-ld} -m elf_s390"
7182
            ;;
7183
          sparc64-*linux*)
7184
            LD="${LD-ld} -m elf32_sparc"
7185
            ;;
7186
        esac
7187
        ;;
7188
      *64-bit*)
7189
        case $host in
7190
          x86_64-*kfreebsd*-gnu)
7191
            LD="${LD-ld} -m elf_x86_64_fbsd"
7192
            ;;
7193
          x86_64-*linux*)
7194
            LD="${LD-ld} -m elf_x86_64"
7195
            ;;
7196
          ppc*-*linux*|powerpc*-*linux*)
7197
            LD="${LD-ld} -m elf64ppc"
7198
            ;;
7199
          s390*-*linux*|s390*-*tpf*)
7200
            LD="${LD-ld} -m elf64_s390"
7201
            ;;
7202
          sparc*-*linux*)
7203
            LD="${LD-ld} -m elf64_sparc"
7204
            ;;
7205
        esac
7206
        ;;
7207
    esac
7208
  fi
7209
  rm -rf conftest*
7210
  ;;
7211
 
7212
*-*-sco3.2v5*)
7213
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7214
  SAVE_CFLAGS="$CFLAGS"
7215
  CFLAGS="$CFLAGS -belf"
7216
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7217
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7218
if test "${lt_cv_cc_needs_belf+set}" = set; then
7219
  $as_echo_n "(cached) " >&6
7220
else
7221
  ac_ext=c
7222
ac_cpp='$CPP $CPPFLAGS'
7223
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7224
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7225
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7226
 
7227
     cat >conftest.$ac_ext <<_ACEOF
7228
/* confdefs.h.  */
7229
_ACEOF
7230
cat confdefs.h >>conftest.$ac_ext
7231
cat >>conftest.$ac_ext <<_ACEOF
7232
/* end confdefs.h.  */
7233
 
7234
int
7235
main ()
7236
{
7237
 
7238
  ;
7239
  return 0;
7240
}
7241
_ACEOF
7242
rm -f conftest.$ac_objext conftest$ac_exeext
7243
if { (ac_try="$ac_link"
7244
case "(($ac_try" in
7245
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246
  *) ac_try_echo=$ac_try;;
7247
esac
7248
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7249
$as_echo "$ac_try_echo") >&5
7250
  (eval "$ac_link") 2>conftest.er1
7251
  ac_status=$?
7252
  grep -v '^ *+' conftest.er1 >conftest.err
7253
  rm -f conftest.er1
7254
  cat conftest.err >&5
7255
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256
  (exit $ac_status); } && {
7257
         test -z "$ac_c_werror_flag" ||
7258
         test ! -s conftest.err
7259
       } && test -s conftest$ac_exeext && {
7260
         test "$cross_compiling" = yes ||
7261
         $as_test_x conftest$ac_exeext
7262
       }; then
7263
  lt_cv_cc_needs_belf=yes
7264
else
7265
  $as_echo "$as_me: failed program was:" >&5
7266
sed 's/^/| /' conftest.$ac_ext >&5
7267
 
7268
        lt_cv_cc_needs_belf=no
7269
fi
7270
 
7271
rm -rf conftest.dSYM
7272
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7273
      conftest$ac_exeext conftest.$ac_ext
7274
     ac_ext=c
7275
ac_cpp='$CPP $CPPFLAGS'
7276
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7277
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7278
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7279
 
7280
fi
7281
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7282
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7283
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7284
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7285
    CFLAGS="$SAVE_CFLAGS"
7286
  fi
7287
  ;;
7288
sparc*-*solaris*)
7289
  # Find out which ABI we are using.
7290
  echo 'int i;' > conftest.$ac_ext
7291
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7292
  (eval $ac_compile) 2>&5
7293
  ac_status=$?
7294
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295
  (exit $ac_status); }; then
7296
    case `/usr/bin/file conftest.o` in
7297
    *64-bit*)
7298
      case $lt_cv_prog_gnu_ld in
7299
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7300
      *)
7301
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7302
          LD="${LD-ld} -64"
7303
        fi
7304
        ;;
7305
      esac
7306
      ;;
7307
    esac
7308
  fi
7309
  rm -rf conftest*
7310
  ;;
7311
esac
7312
 
7313
need_locks="$enable_libtool_lock"
7314
 
7315
 
7316
  case $host_os in
7317
    rhapsody* | darwin*)
7318
    if test -n "$ac_tool_prefix"; then
7319
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7320
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7321
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7322
$as_echo_n "checking for $ac_word... " >&6; }
7323
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7324
  $as_echo_n "(cached) " >&6
7325
else
7326
  if test -n "$DSYMUTIL"; then
7327
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7328
else
7329
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330
for as_dir in $PATH
7331
do
7332
  IFS=$as_save_IFS
7333
  test -z "$as_dir" && as_dir=.
7334
  for ac_exec_ext in '' $ac_executable_extensions; do
7335
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7336
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7337
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7338
    break 2
7339
  fi
7340
done
7341
done
7342
IFS=$as_save_IFS
7343
 
7344
fi
7345
fi
7346
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7347
if test -n "$DSYMUTIL"; then
7348
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7349
$as_echo "$DSYMUTIL" >&6; }
7350
else
7351
  { $as_echo "$as_me:$LINENO: result: no" >&5
7352
$as_echo "no" >&6; }
7353
fi
7354
 
7355
 
7356
fi
7357
if test -z "$ac_cv_prog_DSYMUTIL"; then
7358
  ac_ct_DSYMUTIL=$DSYMUTIL
7359
  # Extract the first word of "dsymutil", so it can be a program name with args.
7360
set dummy dsymutil; ac_word=$2
7361
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7362
$as_echo_n "checking for $ac_word... " >&6; }
7363
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7364
  $as_echo_n "(cached) " >&6
7365
else
7366
  if test -n "$ac_ct_DSYMUTIL"; then
7367
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7368
else
7369
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370
for as_dir in $PATH
7371
do
7372
  IFS=$as_save_IFS
7373
  test -z "$as_dir" && as_dir=.
7374
  for ac_exec_ext in '' $ac_executable_extensions; do
7375
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7376
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7377
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378
    break 2
7379
  fi
7380
done
7381
done
7382
IFS=$as_save_IFS
7383
 
7384
fi
7385
fi
7386
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7387
if test -n "$ac_ct_DSYMUTIL"; then
7388
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7389
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7390
else
7391
  { $as_echo "$as_me:$LINENO: result: no" >&5
7392
$as_echo "no" >&6; }
7393
fi
7394
 
7395
  if test "x$ac_ct_DSYMUTIL" = x; then
7396
    DSYMUTIL=":"
7397
  else
7398
    case $cross_compiling:$ac_tool_warned in
7399
yes:)
7400
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7401
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7402
ac_tool_warned=yes ;;
7403
esac
7404
    DSYMUTIL=$ac_ct_DSYMUTIL
7405
  fi
7406
else
7407
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7408
fi
7409
 
7410
    if test -n "$ac_tool_prefix"; then
7411
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7412
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7413
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7414
$as_echo_n "checking for $ac_word... " >&6; }
7415
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7416
  $as_echo_n "(cached) " >&6
7417
else
7418
  if test -n "$NMEDIT"; then
7419
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7420
else
7421
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422
for as_dir in $PATH
7423
do
7424
  IFS=$as_save_IFS
7425
  test -z "$as_dir" && as_dir=.
7426
  for ac_exec_ext in '' $ac_executable_extensions; do
7427
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7428
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7429
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7430
    break 2
7431
  fi
7432
done
7433
done
7434
IFS=$as_save_IFS
7435
 
7436
fi
7437
fi
7438
NMEDIT=$ac_cv_prog_NMEDIT
7439
if test -n "$NMEDIT"; then
7440
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7441
$as_echo "$NMEDIT" >&6; }
7442
else
7443
  { $as_echo "$as_me:$LINENO: result: no" >&5
7444
$as_echo "no" >&6; }
7445
fi
7446
 
7447
 
7448
fi
7449
if test -z "$ac_cv_prog_NMEDIT"; then
7450
  ac_ct_NMEDIT=$NMEDIT
7451
  # Extract the first word of "nmedit", so it can be a program name with args.
7452
set dummy nmedit; ac_word=$2
7453
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7454
$as_echo_n "checking for $ac_word... " >&6; }
7455
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7456
  $as_echo_n "(cached) " >&6
7457
else
7458
  if test -n "$ac_ct_NMEDIT"; then
7459
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7460
else
7461
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462
for as_dir in $PATH
7463
do
7464
  IFS=$as_save_IFS
7465
  test -z "$as_dir" && as_dir=.
7466
  for ac_exec_ext in '' $ac_executable_extensions; do
7467
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7468
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7469
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7470
    break 2
7471
  fi
7472
done
7473
done
7474
IFS=$as_save_IFS
7475
 
7476
fi
7477
fi
7478
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7479
if test -n "$ac_ct_NMEDIT"; then
7480
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7481
$as_echo "$ac_ct_NMEDIT" >&6; }
7482
else
7483
  { $as_echo "$as_me:$LINENO: result: no" >&5
7484
$as_echo "no" >&6; }
7485
fi
7486
 
7487
  if test "x$ac_ct_NMEDIT" = x; then
7488
    NMEDIT=":"
7489
  else
7490
    case $cross_compiling:$ac_tool_warned in
7491
yes:)
7492
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7493
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7494
ac_tool_warned=yes ;;
7495
esac
7496
    NMEDIT=$ac_ct_NMEDIT
7497
  fi
7498
else
7499
  NMEDIT="$ac_cv_prog_NMEDIT"
7500
fi
7501
 
7502
    if test -n "$ac_tool_prefix"; then
7503
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7504
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7505
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7506
$as_echo_n "checking for $ac_word... " >&6; }
7507
if test "${ac_cv_prog_LIPO+set}" = set; then
7508
  $as_echo_n "(cached) " >&6
7509
else
7510
  if test -n "$LIPO"; then
7511
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7512
else
7513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514
for as_dir in $PATH
7515
do
7516
  IFS=$as_save_IFS
7517
  test -z "$as_dir" && as_dir=.
7518
  for ac_exec_ext in '' $ac_executable_extensions; do
7519
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7520
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7521
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7522
    break 2
7523
  fi
7524
done
7525
done
7526
IFS=$as_save_IFS
7527
 
7528
fi
7529
fi
7530
LIPO=$ac_cv_prog_LIPO
7531
if test -n "$LIPO"; then
7532
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7533
$as_echo "$LIPO" >&6; }
7534
else
7535
  { $as_echo "$as_me:$LINENO: result: no" >&5
7536
$as_echo "no" >&6; }
7537
fi
7538
 
7539
 
7540
fi
7541
if test -z "$ac_cv_prog_LIPO"; then
7542
  ac_ct_LIPO=$LIPO
7543
  # Extract the first word of "lipo", so it can be a program name with args.
7544
set dummy lipo; ac_word=$2
7545
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7546
$as_echo_n "checking for $ac_word... " >&6; }
7547
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7548
  $as_echo_n "(cached) " >&6
7549
else
7550
  if test -n "$ac_ct_LIPO"; then
7551
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7552
else
7553
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554
for as_dir in $PATH
7555
do
7556
  IFS=$as_save_IFS
7557
  test -z "$as_dir" && as_dir=.
7558
  for ac_exec_ext in '' $ac_executable_extensions; do
7559
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7560
    ac_cv_prog_ac_ct_LIPO="lipo"
7561
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562
    break 2
7563
  fi
7564
done
7565
done
7566
IFS=$as_save_IFS
7567
 
7568
fi
7569
fi
7570
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7571
if test -n "$ac_ct_LIPO"; then
7572
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7573
$as_echo "$ac_ct_LIPO" >&6; }
7574
else
7575
  { $as_echo "$as_me:$LINENO: result: no" >&5
7576
$as_echo "no" >&6; }
7577
fi
7578
 
7579
  if test "x$ac_ct_LIPO" = x; then
7580
    LIPO=":"
7581
  else
7582
    case $cross_compiling:$ac_tool_warned in
7583
yes:)
7584
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7585
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7586
ac_tool_warned=yes ;;
7587
esac
7588
    LIPO=$ac_ct_LIPO
7589
  fi
7590
else
7591
  LIPO="$ac_cv_prog_LIPO"
7592
fi
7593
 
7594
    if test -n "$ac_tool_prefix"; then
7595
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7596
set dummy ${ac_tool_prefix}otool; ac_word=$2
7597
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7598
$as_echo_n "checking for $ac_word... " >&6; }
7599
if test "${ac_cv_prog_OTOOL+set}" = set; then
7600
  $as_echo_n "(cached) " >&6
7601
else
7602
  if test -n "$OTOOL"; then
7603
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7604
else
7605
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606
for as_dir in $PATH
7607
do
7608
  IFS=$as_save_IFS
7609
  test -z "$as_dir" && as_dir=.
7610
  for ac_exec_ext in '' $ac_executable_extensions; do
7611
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7612
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7613
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7614
    break 2
7615
  fi
7616
done
7617
done
7618
IFS=$as_save_IFS
7619
 
7620
fi
7621
fi
7622
OTOOL=$ac_cv_prog_OTOOL
7623
if test -n "$OTOOL"; then
7624
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7625
$as_echo "$OTOOL" >&6; }
7626
else
7627
  { $as_echo "$as_me:$LINENO: result: no" >&5
7628
$as_echo "no" >&6; }
7629
fi
7630
 
7631
 
7632
fi
7633
if test -z "$ac_cv_prog_OTOOL"; then
7634
  ac_ct_OTOOL=$OTOOL
7635
  # Extract the first word of "otool", so it can be a program name with args.
7636
set dummy otool; ac_word=$2
7637
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7638
$as_echo_n "checking for $ac_word... " >&6; }
7639
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7640
  $as_echo_n "(cached) " >&6
7641
else
7642
  if test -n "$ac_ct_OTOOL"; then
7643
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7644
else
7645
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646
for as_dir in $PATH
7647
do
7648
  IFS=$as_save_IFS
7649
  test -z "$as_dir" && as_dir=.
7650
  for ac_exec_ext in '' $ac_executable_extensions; do
7651
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7652
    ac_cv_prog_ac_ct_OTOOL="otool"
7653
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654
    break 2
7655
  fi
7656
done
7657
done
7658
IFS=$as_save_IFS
7659
 
7660
fi
7661
fi
7662
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7663
if test -n "$ac_ct_OTOOL"; then
7664
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7665
$as_echo "$ac_ct_OTOOL" >&6; }
7666
else
7667
  { $as_echo "$as_me:$LINENO: result: no" >&5
7668
$as_echo "no" >&6; }
7669
fi
7670
 
7671
  if test "x$ac_ct_OTOOL" = x; then
7672
    OTOOL=":"
7673
  else
7674
    case $cross_compiling:$ac_tool_warned in
7675
yes:)
7676
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7677
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7678
ac_tool_warned=yes ;;
7679
esac
7680
    OTOOL=$ac_ct_OTOOL
7681
  fi
7682
else
7683
  OTOOL="$ac_cv_prog_OTOOL"
7684
fi
7685
 
7686
    if test -n "$ac_tool_prefix"; then
7687
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7688
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7689
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7690
$as_echo_n "checking for $ac_word... " >&6; }
7691
if test "${ac_cv_prog_OTOOL64+set}" = set; then
7692
  $as_echo_n "(cached) " >&6
7693
else
7694
  if test -n "$OTOOL64"; then
7695
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7696
else
7697
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698
for as_dir in $PATH
7699
do
7700
  IFS=$as_save_IFS
7701
  test -z "$as_dir" && as_dir=.
7702
  for ac_exec_ext in '' $ac_executable_extensions; do
7703
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7704
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7705
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7706
    break 2
7707
  fi
7708
done
7709
done
7710
IFS=$as_save_IFS
7711
 
7712
fi
7713
fi
7714
OTOOL64=$ac_cv_prog_OTOOL64
7715
if test -n "$OTOOL64"; then
7716
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7717
$as_echo "$OTOOL64" >&6; }
7718
else
7719
  { $as_echo "$as_me:$LINENO: result: no" >&5
7720
$as_echo "no" >&6; }
7721
fi
7722
 
7723
 
7724
fi
7725
if test -z "$ac_cv_prog_OTOOL64"; then
7726
  ac_ct_OTOOL64=$OTOOL64
7727
  # Extract the first word of "otool64", so it can be a program name with args.
7728
set dummy otool64; ac_word=$2
7729
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7730
$as_echo_n "checking for $ac_word... " >&6; }
7731
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7732
  $as_echo_n "(cached) " >&6
7733
else
7734
  if test -n "$ac_ct_OTOOL64"; then
7735
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7736
else
7737
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738
for as_dir in $PATH
7739
do
7740
  IFS=$as_save_IFS
7741
  test -z "$as_dir" && as_dir=.
7742
  for ac_exec_ext in '' $ac_executable_extensions; do
7743
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7744
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7745
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7746
    break 2
7747
  fi
7748
done
7749
done
7750
IFS=$as_save_IFS
7751
 
7752
fi
7753
fi
7754
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7755
if test -n "$ac_ct_OTOOL64"; then
7756
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7757
$as_echo "$ac_ct_OTOOL64" >&6; }
7758
else
7759
  { $as_echo "$as_me:$LINENO: result: no" >&5
7760
$as_echo "no" >&6; }
7761
fi
7762
 
7763
  if test "x$ac_ct_OTOOL64" = x; then
7764
    OTOOL64=":"
7765
  else
7766
    case $cross_compiling:$ac_tool_warned in
7767
yes:)
7768
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7769
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7770
ac_tool_warned=yes ;;
7771
esac
7772
    OTOOL64=$ac_ct_OTOOL64
7773
  fi
7774
else
7775
  OTOOL64="$ac_cv_prog_OTOOL64"
7776
fi
7777
 
7778
 
7779
 
7780
 
7781
 
7782
 
7783
 
7784
 
7785
 
7786
 
7787
 
7788
 
7789
 
7790
 
7791
 
7792
 
7793
 
7794
 
7795
 
7796
 
7797
 
7798
 
7799
 
7800
 
7801
 
7802
 
7803
 
7804
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7805
$as_echo_n "checking for -single_module linker flag... " >&6; }
7806
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7807
  $as_echo_n "(cached) " >&6
7808
else
7809
  lt_cv_apple_cc_single_mod=no
7810
      if test -z "${LT_MULTI_MODULE}"; then
7811
        # By default we will add the -single_module flag. You can override
7812
        # by either setting the environment variable LT_MULTI_MODULE
7813
        # non-empty at configure time, or by adding -multi_module to the
7814
        # link flags.
7815
        rm -rf libconftest.dylib*
7816
        echo "int foo(void){return 1;}" > conftest.c
7817
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7818
-dynamiclib -Wl,-single_module conftest.c" >&5
7819
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7820
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7821
        _lt_result=$?
7822
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7823
          lt_cv_apple_cc_single_mod=yes
7824
        else
7825
          cat conftest.err >&5
7826
        fi
7827
        rm -rf libconftest.dylib*
7828
        rm -f conftest.*
7829
      fi
7830
fi
7831
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7832
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7833
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7834
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7835
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7836
  $as_echo_n "(cached) " >&6
7837
else
7838
  lt_cv_ld_exported_symbols_list=no
7839
      save_LDFLAGS=$LDFLAGS
7840
      echo "_main" > conftest.sym
7841
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7842
      cat >conftest.$ac_ext <<_ACEOF
7843
/* confdefs.h.  */
7844
_ACEOF
7845
cat confdefs.h >>conftest.$ac_ext
7846
cat >>conftest.$ac_ext <<_ACEOF
7847
/* end confdefs.h.  */
7848
 
7849
int
7850
main ()
7851
{
7852
 
7853
  ;
7854
  return 0;
7855
}
7856
_ACEOF
7857
rm -f conftest.$ac_objext conftest$ac_exeext
7858
if { (ac_try="$ac_link"
7859
case "(($ac_try" in
7860
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861
  *) ac_try_echo=$ac_try;;
7862
esac
7863
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7864
$as_echo "$ac_try_echo") >&5
7865
  (eval "$ac_link") 2>conftest.er1
7866
  ac_status=$?
7867
  grep -v '^ *+' conftest.er1 >conftest.err
7868
  rm -f conftest.er1
7869
  cat conftest.err >&5
7870
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871
  (exit $ac_status); } && {
7872
         test -z "$ac_c_werror_flag" ||
7873
         test ! -s conftest.err
7874
       } && test -s conftest$ac_exeext && {
7875
         test "$cross_compiling" = yes ||
7876
         $as_test_x conftest$ac_exeext
7877
       }; then
7878
  lt_cv_ld_exported_symbols_list=yes
7879
else
7880
  $as_echo "$as_me: failed program was:" >&5
7881
sed 's/^/| /' conftest.$ac_ext >&5
7882
 
7883
        lt_cv_ld_exported_symbols_list=no
7884
fi
7885
 
7886
rm -rf conftest.dSYM
7887
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7888
      conftest$ac_exeext conftest.$ac_ext
7889
        LDFLAGS="$save_LDFLAGS"
7890
 
7891
fi
7892
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7893
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7894
    case $host_os in
7895
    rhapsody* | darwin1.[012])
7896
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7897
    darwin1.*)
7898
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7899
    darwin*) # darwin 5.x on
7900
      # if running on 10.5 or later, the deployment target defaults
7901
      # to the OS version, if on x86, and 10.4, the deployment
7902
      # target defaults to 10.4. Don't you love it?
7903
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7904
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7905
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7906
        10.[012]*)
7907
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7908
        10.*)
7909
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7910
      esac
7911
    ;;
7912
  esac
7913
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7914
      _lt_dar_single_mod='$single_module'
7915
    fi
7916
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7917
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7918
    else
7919
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7920
    fi
7921
    if test "$DSYMUTIL" != ":"; then
7922
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7923
    else
7924
      _lt_dsymutil=
7925
    fi
7926
    ;;
7927
  esac
7928
 
7929
ac_ext=c
7930
ac_cpp='$CPP $CPPFLAGS'
7931
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7932
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7933
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7935
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7936
# On Suns, sometimes $CPP names a directory.
7937
if test -n "$CPP" && test -d "$CPP"; then
7938
  CPP=
7939
fi
7940
if test -z "$CPP"; then
7941
  if test "${ac_cv_prog_CPP+set}" = set; then
7942
  $as_echo_n "(cached) " >&6
7943
else
7944
      # Double quotes because CPP needs to be expanded
7945
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7946
    do
7947
      ac_preproc_ok=false
7948
for ac_c_preproc_warn_flag in '' yes
7949
do
7950
  # Use a header file that comes with gcc, so configuring glibc
7951
  # with a fresh cross-compiler works.
7952
  # Prefer  to  if __STDC__ is defined, since
7953
  #  exists even on freestanding compilers.
7954
  # On the NeXT, cc -E runs the code through the compiler's parser,
7955
  # not just through cpp. "Syntax error" is here to catch this case.
7956
  cat >conftest.$ac_ext <<_ACEOF
7957
/* confdefs.h.  */
7958
_ACEOF
7959
cat confdefs.h >>conftest.$ac_ext
7960
cat >>conftest.$ac_ext <<_ACEOF
7961
/* end confdefs.h.  */
7962
#ifdef __STDC__
7963
# include 
7964
#else
7965
# include 
7966
#endif
7967
                     Syntax error
7968
_ACEOF
7969
if { (ac_try="$ac_cpp conftest.$ac_ext"
7970
case "(($ac_try" in
7971
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972
  *) ac_try_echo=$ac_try;;
7973
esac
7974
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7975
$as_echo "$ac_try_echo") >&5
7976
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7977
  ac_status=$?
7978
  grep -v '^ *+' conftest.er1 >conftest.err
7979
  rm -f conftest.er1
7980
  cat conftest.err >&5
7981
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982
  (exit $ac_status); } >/dev/null && {
7983
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7984
         test ! -s conftest.err
7985
       }; then
7986
  :
7987
else
7988
  $as_echo "$as_me: failed program was:" >&5
7989
sed 's/^/| /' conftest.$ac_ext >&5
7990
 
7991
  # Broken: fails on valid input.
7992
continue
7993
fi
7994
 
7995
rm -f conftest.err conftest.$ac_ext
7996
 
7997
  # OK, works on sane cases.  Now check whether nonexistent headers
7998
  # can be detected and how.
7999
  cat >conftest.$ac_ext <<_ACEOF
8000
/* confdefs.h.  */
8001
_ACEOF
8002
cat confdefs.h >>conftest.$ac_ext
8003
cat >>conftest.$ac_ext <<_ACEOF
8004
/* end confdefs.h.  */
8005
#include 
8006
_ACEOF
8007
if { (ac_try="$ac_cpp conftest.$ac_ext"
8008
case "(($ac_try" in
8009
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010
  *) ac_try_echo=$ac_try;;
8011
esac
8012
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8013
$as_echo "$ac_try_echo") >&5
8014
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8015
  ac_status=$?
8016
  grep -v '^ *+' conftest.er1 >conftest.err
8017
  rm -f conftest.er1
8018
  cat conftest.err >&5
8019
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020
  (exit $ac_status); } >/dev/null && {
8021
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8022
         test ! -s conftest.err
8023
       }; then
8024
  # Broken: success on invalid input.
8025
continue
8026
else
8027
  $as_echo "$as_me: failed program was:" >&5
8028
sed 's/^/| /' conftest.$ac_ext >&5
8029
 
8030
  # Passes both tests.
8031
ac_preproc_ok=:
8032
break
8033
fi
8034
 
8035
rm -f conftest.err conftest.$ac_ext
8036
 
8037
done
8038
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8039
rm -f conftest.err conftest.$ac_ext
8040
if $ac_preproc_ok; then
8041
  break
8042
fi
8043
 
8044
    done
8045
    ac_cv_prog_CPP=$CPP
8046
 
8047
fi
8048
  CPP=$ac_cv_prog_CPP
8049
else
8050
  ac_cv_prog_CPP=$CPP
8051
fi
8052
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
8053
$as_echo "$CPP" >&6; }
8054
ac_preproc_ok=false
8055
for ac_c_preproc_warn_flag in '' yes
8056
do
8057
  # Use a header file that comes with gcc, so configuring glibc
8058
  # with a fresh cross-compiler works.
8059
  # Prefer  to  if __STDC__ is defined, since
8060
  #  exists even on freestanding compilers.
8061
  # On the NeXT, cc -E runs the code through the compiler's parser,
8062
  # not just through cpp. "Syntax error" is here to catch this case.
8063
  cat >conftest.$ac_ext <<_ACEOF
8064
/* confdefs.h.  */
8065
_ACEOF
8066
cat confdefs.h >>conftest.$ac_ext
8067
cat >>conftest.$ac_ext <<_ACEOF
8068
/* end confdefs.h.  */
8069
#ifdef __STDC__
8070
# include 
8071
#else
8072
# include 
8073
#endif
8074
                     Syntax error
8075
_ACEOF
8076
if { (ac_try="$ac_cpp conftest.$ac_ext"
8077
case "(($ac_try" in
8078
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079
  *) ac_try_echo=$ac_try;;
8080
esac
8081
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8082
$as_echo "$ac_try_echo") >&5
8083
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8084
  ac_status=$?
8085
  grep -v '^ *+' conftest.er1 >conftest.err
8086
  rm -f conftest.er1
8087
  cat conftest.err >&5
8088
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089
  (exit $ac_status); } >/dev/null && {
8090
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8091
         test ! -s conftest.err
8092
       }; then
8093
  :
8094
else
8095
  $as_echo "$as_me: failed program was:" >&5
8096
sed 's/^/| /' conftest.$ac_ext >&5
8097
 
8098
  # Broken: fails on valid input.
8099
continue
8100
fi
8101
 
8102
rm -f conftest.err conftest.$ac_ext
8103
 
8104
  # OK, works on sane cases.  Now check whether nonexistent headers
8105
  # can be detected and how.
8106
  cat >conftest.$ac_ext <<_ACEOF
8107
/* confdefs.h.  */
8108
_ACEOF
8109
cat confdefs.h >>conftest.$ac_ext
8110
cat >>conftest.$ac_ext <<_ACEOF
8111
/* end confdefs.h.  */
8112
#include 
8113
_ACEOF
8114
if { (ac_try="$ac_cpp conftest.$ac_ext"
8115
case "(($ac_try" in
8116
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117
  *) ac_try_echo=$ac_try;;
8118
esac
8119
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8120
$as_echo "$ac_try_echo") >&5
8121
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8122
  ac_status=$?
8123
  grep -v '^ *+' conftest.er1 >conftest.err
8124
  rm -f conftest.er1
8125
  cat conftest.err >&5
8126
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127
  (exit $ac_status); } >/dev/null && {
8128
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8129
         test ! -s conftest.err
8130
       }; then
8131
  # Broken: success on invalid input.
8132
continue
8133
else
8134
  $as_echo "$as_me: failed program was:" >&5
8135
sed 's/^/| /' conftest.$ac_ext >&5
8136
 
8137
  # Passes both tests.
8138
ac_preproc_ok=:
8139
break
8140
fi
8141
 
8142
rm -f conftest.err conftest.$ac_ext
8143
 
8144
done
8145
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8146
rm -f conftest.err conftest.$ac_ext
8147
if $ac_preproc_ok; then
8148
  :
8149
else
8150
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8151
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8152
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8153
See \`config.log' for more details." >&5
8154
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8155
See \`config.log' for more details." >&2;}
8156
   { (exit 1); exit 1; }; }; }
8157
fi
8158
 
8159
ac_ext=c
8160
ac_cpp='$CPP $CPPFLAGS'
8161
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8162
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8163
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8164
 
8165
 
8166
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8167
$as_echo_n "checking for ANSI C header files... " >&6; }
8168
if test "${ac_cv_header_stdc+set}" = set; then
8169
  $as_echo_n "(cached) " >&6
8170
else
8171
  cat >conftest.$ac_ext <<_ACEOF
8172
/* confdefs.h.  */
8173
_ACEOF
8174
cat confdefs.h >>conftest.$ac_ext
8175
cat >>conftest.$ac_ext <<_ACEOF
8176
/* end confdefs.h.  */
8177
#include 
8178
#include 
8179
#include 
8180
#include 
8181
 
8182
int
8183
main ()
8184
{
8185
 
8186
  ;
8187
  return 0;
8188
}
8189
_ACEOF
8190
rm -f conftest.$ac_objext
8191
if { (ac_try="$ac_compile"
8192
case "(($ac_try" in
8193
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194
  *) ac_try_echo=$ac_try;;
8195
esac
8196
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8197
$as_echo "$ac_try_echo") >&5
8198
  (eval "$ac_compile") 2>conftest.er1
8199
  ac_status=$?
8200
  grep -v '^ *+' conftest.er1 >conftest.err
8201
  rm -f conftest.er1
8202
  cat conftest.err >&5
8203
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204
  (exit $ac_status); } && {
8205
         test -z "$ac_c_werror_flag" ||
8206
         test ! -s conftest.err
8207
       } && test -s conftest.$ac_objext; then
8208
  ac_cv_header_stdc=yes
8209
else
8210
  $as_echo "$as_me: failed program was:" >&5
8211
sed 's/^/| /' conftest.$ac_ext >&5
8212
 
8213
        ac_cv_header_stdc=no
8214
fi
8215
 
8216
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217
 
8218
if test $ac_cv_header_stdc = yes; then
8219
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8220
  cat >conftest.$ac_ext <<_ACEOF
8221
/* confdefs.h.  */
8222
_ACEOF
8223
cat confdefs.h >>conftest.$ac_ext
8224
cat >>conftest.$ac_ext <<_ACEOF
8225
/* end confdefs.h.  */
8226
#include 
8227
 
8228
_ACEOF
8229
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8230
  $EGREP "memchr" >/dev/null 2>&1; then
8231
  :
8232
else
8233
  ac_cv_header_stdc=no
8234
fi
8235
rm -f conftest*
8236
 
8237
fi
8238
 
8239
if test $ac_cv_header_stdc = yes; then
8240
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8241
  cat >conftest.$ac_ext <<_ACEOF
8242
/* confdefs.h.  */
8243
_ACEOF
8244
cat confdefs.h >>conftest.$ac_ext
8245
cat >>conftest.$ac_ext <<_ACEOF
8246
/* end confdefs.h.  */
8247
#include 
8248
 
8249
_ACEOF
8250
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8251
  $EGREP "free" >/dev/null 2>&1; then
8252
  :
8253
else
8254
  ac_cv_header_stdc=no
8255
fi
8256
rm -f conftest*
8257
 
8258
fi
8259
 
8260
if test $ac_cv_header_stdc = yes; then
8261
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8262
  if test "$cross_compiling" = yes; then
8263
  :
8264
else
8265
  cat >conftest.$ac_ext <<_ACEOF
8266
/* confdefs.h.  */
8267
_ACEOF
8268
cat confdefs.h >>conftest.$ac_ext
8269
cat >>conftest.$ac_ext <<_ACEOF
8270
/* end confdefs.h.  */
8271
#include 
8272
#include 
8273
#if ((' ' & 0x0FF) == 0x020)
8274
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8275
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8276
#else
8277
# define ISLOWER(c) \
8278
                   (('a' <= (c) && (c) <= 'i') \
8279
                     || ('j' <= (c) && (c) <= 'r') \
8280
                     || ('s' <= (c) && (c) <= 'z'))
8281
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8282
#endif
8283
 
8284
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8285
int
8286
main ()
8287
{
8288
  int i;
8289
  for (i = 0; i < 256; i++)
8290
    if (XOR (islower (i), ISLOWER (i))
8291
        || toupper (i) != TOUPPER (i))
8292
      return 2;
8293
  return 0;
8294
}
8295
_ACEOF
8296
rm -f conftest$ac_exeext
8297
if { (ac_try="$ac_link"
8298
case "(($ac_try" in
8299
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300
  *) ac_try_echo=$ac_try;;
8301
esac
8302
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8303
$as_echo "$ac_try_echo") >&5
8304
  (eval "$ac_link") 2>&5
8305
  ac_status=$?
8306
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8308
  { (case "(($ac_try" in
8309
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310
  *) ac_try_echo=$ac_try;;
8311
esac
8312
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8313
$as_echo "$ac_try_echo") >&5
8314
  (eval "$ac_try") 2>&5
8315
  ac_status=$?
8316
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317
  (exit $ac_status); }; }; then
8318
  :
8319
else
8320
  $as_echo "$as_me: program exited with status $ac_status" >&5
8321
$as_echo "$as_me: failed program was:" >&5
8322
sed 's/^/| /' conftest.$ac_ext >&5
8323
 
8324
( exit $ac_status )
8325
ac_cv_header_stdc=no
8326
fi
8327
rm -rf conftest.dSYM
8328
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8329
fi
8330
 
8331
 
8332
fi
8333
fi
8334
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8335
$as_echo "$ac_cv_header_stdc" >&6; }
8336
if test $ac_cv_header_stdc = yes; then
8337
 
8338
cat >>confdefs.h <<\_ACEOF
8339
#define STDC_HEADERS 1
8340
_ACEOF
8341
 
8342
fi
8343
 
8344
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8345
 
8346
 
8347
 
8348
 
8349
 
8350
 
8351
 
8352
 
8353
 
8354
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8355
                  inttypes.h stdint.h unistd.h
8356
do
8357
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8358
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8359
$as_echo_n "checking for $ac_header... " >&6; }
8360
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8361
  $as_echo_n "(cached) " >&6
8362
else
8363
  cat >conftest.$ac_ext <<_ACEOF
8364
/* confdefs.h.  */
8365
_ACEOF
8366
cat confdefs.h >>conftest.$ac_ext
8367
cat >>conftest.$ac_ext <<_ACEOF
8368
/* end confdefs.h.  */
8369
$ac_includes_default
8370
 
8371
#include <$ac_header>
8372
_ACEOF
8373
rm -f conftest.$ac_objext
8374
if { (ac_try="$ac_compile"
8375
case "(($ac_try" in
8376
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377
  *) ac_try_echo=$ac_try;;
8378
esac
8379
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8380
$as_echo "$ac_try_echo") >&5
8381
  (eval "$ac_compile") 2>conftest.er1
8382
  ac_status=$?
8383
  grep -v '^ *+' conftest.er1 >conftest.err
8384
  rm -f conftest.er1
8385
  cat conftest.err >&5
8386
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387
  (exit $ac_status); } && {
8388
         test -z "$ac_c_werror_flag" ||
8389
         test ! -s conftest.err
8390
       } && test -s conftest.$ac_objext; then
8391
  eval "$as_ac_Header=yes"
8392
else
8393
  $as_echo "$as_me: failed program was:" >&5
8394
sed 's/^/| /' conftest.$ac_ext >&5
8395
 
8396
        eval "$as_ac_Header=no"
8397
fi
8398
 
8399
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8400
fi
8401
ac_res=`eval 'as_val=${'$as_ac_Header'}
8402
                 $as_echo "$as_val"'`
8403
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8404
$as_echo "$ac_res" >&6; }
8405
as_val=`eval 'as_val=${'$as_ac_Header'}
8406
                 $as_echo "$as_val"'`
8407
   if test "x$as_val" = x""yes; then
8408
  cat >>confdefs.h <<_ACEOF
8409
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8410
_ACEOF
8411
 
8412
fi
8413
 
8414
done
8415
 
8416
 
8417
 
8418
for ac_header in dlfcn.h
8419
do
8420
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8421
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8422
$as_echo_n "checking for $ac_header... " >&6; }
8423
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8424
  $as_echo_n "(cached) " >&6
8425
else
8426
  cat >conftest.$ac_ext <<_ACEOF
8427
/* confdefs.h.  */
8428
_ACEOF
8429
cat confdefs.h >>conftest.$ac_ext
8430
cat >>conftest.$ac_ext <<_ACEOF
8431
/* end confdefs.h.  */
8432
$ac_includes_default
8433
 
8434
#include <$ac_header>
8435
_ACEOF
8436
rm -f conftest.$ac_objext
8437
if { (ac_try="$ac_compile"
8438
case "(($ac_try" in
8439
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440
  *) ac_try_echo=$ac_try;;
8441
esac
8442
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8443
$as_echo "$ac_try_echo") >&5
8444
  (eval "$ac_compile") 2>conftest.er1
8445
  ac_status=$?
8446
  grep -v '^ *+' conftest.er1 >conftest.err
8447
  rm -f conftest.er1
8448
  cat conftest.err >&5
8449
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450
  (exit $ac_status); } && {
8451
         test -z "$ac_c_werror_flag" ||
8452
         test ! -s conftest.err
8453
       } && test -s conftest.$ac_objext; then
8454
  eval "$as_ac_Header=yes"
8455
else
8456
  $as_echo "$as_me: failed program was:" >&5
8457
sed 's/^/| /' conftest.$ac_ext >&5
8458
 
8459
        eval "$as_ac_Header=no"
8460
fi
8461
 
8462
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463
fi
8464
ac_res=`eval 'as_val=${'$as_ac_Header'}
8465
                 $as_echo "$as_val"'`
8466
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8467
$as_echo "$ac_res" >&6; }
8468
as_val=`eval 'as_val=${'$as_ac_Header'}
8469
                 $as_echo "$as_val"'`
8470
   if test "x$as_val" = x""yes; then
8471
  cat >>confdefs.h <<_ACEOF
8472
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8473
_ACEOF
8474
 
8475
fi
8476
 
8477
done
8478
 
8479
 
8480
 
8481
# Set options
8482
 
8483
 
8484
 
8485
        enable_dlopen=no
8486
 
8487
 
8488
 
8489
            # Check whether --enable-shared was given.
8490
if test "${enable_shared+set}" = set; then
8491
  enableval=$enable_shared; p=${PACKAGE-default}
8492
    case $enableval in
8493
    yes) enable_shared=yes ;;
8494
    no) enable_shared=no ;;
8495
    *)
8496
      enable_shared=no
8497
      # Look at the argument we got.  We use all the common list separators.
8498
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8499
      for pkg in $enableval; do
8500
        IFS="$lt_save_ifs"
8501
        if test "X$pkg" = "X$p"; then
8502
          enable_shared=yes
8503
        fi
8504
      done
8505
      IFS="$lt_save_ifs"
8506
      ;;
8507
    esac
8508
else
8509
  enable_shared=yes
8510
fi
8511
 
8512
 
8513
 
8514
 
8515
 
8516
 
8517
 
8518
 
8519
 
8520
  # Check whether --enable-static was given.
8521
if test "${enable_static+set}" = set; then
8522
  enableval=$enable_static; p=${PACKAGE-default}
8523
    case $enableval in
8524
    yes) enable_static=yes ;;
8525
    no) enable_static=no ;;
8526
    *)
8527
     enable_static=no
8528
      # Look at the argument we got.  We use all the common list separators.
8529
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8530
      for pkg in $enableval; do
8531
        IFS="$lt_save_ifs"
8532
        if test "X$pkg" = "X$p"; then
8533
          enable_static=yes
8534
        fi
8535
      done
8536
      IFS="$lt_save_ifs"
8537
      ;;
8538
    esac
8539
else
8540
  enable_static=yes
8541
fi
8542
 
8543
 
8544
 
8545
 
8546
 
8547
 
8548
 
8549
 
8550
 
8551
 
8552
# Check whether --with-pic was given.
8553
if test "${with_pic+set}" = set; then
8554
  withval=$with_pic; pic_mode="$withval"
8555
else
8556
  pic_mode=default
8557
fi
8558
 
8559
 
8560
test -z "$pic_mode" && pic_mode=default
8561
 
8562
 
8563
 
8564
 
8565
 
8566
 
8567
 
8568
  # Check whether --enable-fast-install was given.
8569
if test "${enable_fast_install+set}" = set; then
8570
  enableval=$enable_fast_install; p=${PACKAGE-default}
8571
    case $enableval in
8572
    yes) enable_fast_install=yes ;;
8573
    no) enable_fast_install=no ;;
8574
    *)
8575
      enable_fast_install=no
8576
      # Look at the argument we got.  We use all the common list separators.
8577
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8578
      for pkg in $enableval; do
8579
        IFS="$lt_save_ifs"
8580
        if test "X$pkg" = "X$p"; then
8581
          enable_fast_install=yes
8582
        fi
8583
      done
8584
      IFS="$lt_save_ifs"
8585
      ;;
8586
    esac
8587
else
8588
  enable_fast_install=yes
8589
fi
8590
 
8591
 
8592
 
8593
 
8594
 
8595
 
8596
 
8597
 
8598
 
8599
 
8600
 
8601
# This can be used to rebuild libtool when needed
8602
LIBTOOL_DEPS="$ltmain"
8603
 
8604
# Always use our own libtool.
8605
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8606
 
8607
 
8608
 
8609
 
8610
 
8611
 
8612
 
8613
 
8614
 
8615
 
8616
 
8617
 
8618
 
8619
 
8620
 
8621
 
8622
 
8623
 
8624
 
8625
 
8626
 
8627
 
8628
 
8629
 
8630
 
8631
test -z "$LN_S" && LN_S="ln -s"
8632
 
8633
 
8634
 
8635
 
8636
 
8637
 
8638
 
8639
 
8640
 
8641
 
8642
 
8643
 
8644
 
8645
 
8646
if test -n "${ZSH_VERSION+set}" ; then
8647
   setopt NO_GLOB_SUBST
8648
fi
8649
 
8650
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
8651
$as_echo_n "checking for objdir... " >&6; }
8652
if test "${lt_cv_objdir+set}" = set; then
8653
  $as_echo_n "(cached) " >&6
8654
else
8655
  rm -f .libs 2>/dev/null
8656
mkdir .libs 2>/dev/null
8657
if test -d .libs; then
8658
  lt_cv_objdir=.libs
8659
else
8660
  # MS-DOS does not allow filenames that begin with a dot.
8661
  lt_cv_objdir=_libs
8662
fi
8663
rmdir .libs 2>/dev/null
8664
fi
8665
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8666
$as_echo "$lt_cv_objdir" >&6; }
8667
objdir=$lt_cv_objdir
8668
 
8669
 
8670
 
8671
 
8672
 
8673
cat >>confdefs.h <<_ACEOF
8674
#define LT_OBJDIR "$lt_cv_objdir/"
8675
_ACEOF
8676
 
8677
 
8678
 
8679
 
8680
 
8681
 
8682
 
8683
 
8684
 
8685
 
8686
 
8687
 
8688
 
8689
 
8690
 
8691
 
8692
 
8693
case $host_os in
8694
aix3*)
8695
  # AIX sometimes has problems with the GCC collect2 program.  For some
8696
  # reason, if we set the COLLECT_NAMES environment variable, the problems
8697
  # vanish in a puff of smoke.
8698
  if test "X${COLLECT_NAMES+set}" != Xset; then
8699
    COLLECT_NAMES=
8700
    export COLLECT_NAMES
8701
  fi
8702
  ;;
8703
esac
8704
 
8705
# Sed substitution that helps us do robust quoting.  It backslashifies
8706
# metacharacters that are still active within double-quoted strings.
8707
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8708
 
8709
# Same as above, but do not quote variable references.
8710
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8711
 
8712
# Sed substitution to delay expansion of an escaped shell variable in a
8713
# double_quote_subst'ed string.
8714
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8715
 
8716
# Sed substitution to delay expansion of an escaped single quote.
8717
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8718
 
8719
# Sed substitution to avoid accidental globbing in evaled expressions
8720
no_glob_subst='s/\*/\\\*/g'
8721
 
8722
# Global variables:
8723
ofile=libtool
8724
can_build_shared=yes
8725
 
8726
# All known linkers require a `.a' archive for static linking (except MSVC,
8727
# which needs '.lib').
8728
libext=a
8729
 
8730
with_gnu_ld="$lt_cv_prog_gnu_ld"
8731
 
8732
old_CC="$CC"
8733
old_CFLAGS="$CFLAGS"
8734
 
8735
# Set sane defaults for various variables
8736
test -z "$CC" && CC=cc
8737
test -z "$LTCC" && LTCC=$CC
8738
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8739
test -z "$LD" && LD=ld
8740
test -z "$ac_objext" && ac_objext=o
8741
 
8742
for cc_temp in $compiler""; do
8743
  case $cc_temp in
8744
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8745
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8746
    \-*) ;;
8747
    *) break;;
8748
  esac
8749
done
8750
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8751
 
8752
 
8753
# Only perform the check for file, if the check method requires it
8754
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8755
case $deplibs_check_method in
8756
file_magic*)
8757
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8758
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8759
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8760
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8761
  $as_echo_n "(cached) " >&6
8762
else
8763
  case $MAGIC_CMD in
8764
[\\/*] |  ?:[\\/]*)
8765
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8766
  ;;
8767
*)
8768
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8769
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8770
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8771
  for ac_dir in $ac_dummy; do
8772
    IFS="$lt_save_ifs"
8773
    test -z "$ac_dir" && ac_dir=.
8774
    if test -f $ac_dir/${ac_tool_prefix}file; then
8775
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8776
      if test -n "$file_magic_test_file"; then
8777
        case $deplibs_check_method in
8778
        "file_magic "*)
8779
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8780
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8781
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8782
            $EGREP "$file_magic_regex" > /dev/null; then
8783
            :
8784
          else
8785
            cat <<_LT_EOF 1>&2
8786
 
8787
*** Warning: the command libtool uses to detect shared libraries,
8788
*** $file_magic_cmd, produces output that libtool cannot recognize.
8789
*** The result is that libtool may fail to recognize shared libraries
8790
*** as such.  This will affect the creation of libtool libraries that
8791
*** depend on shared libraries, but programs linked with such libtool
8792
*** libraries will work regardless of this problem.  Nevertheless, you
8793
*** may want to report the problem to your system manager and/or to
8794
*** bug-libtool@gnu.org
8795
 
8796
_LT_EOF
8797
          fi ;;
8798
        esac
8799
      fi
8800
      break
8801
    fi
8802
  done
8803
  IFS="$lt_save_ifs"
8804
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8805
  ;;
8806
esac
8807
fi
8808
 
8809
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8810
if test -n "$MAGIC_CMD"; then
8811
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8812
$as_echo "$MAGIC_CMD" >&6; }
8813
else
8814
  { $as_echo "$as_me:$LINENO: result: no" >&5
8815
$as_echo "no" >&6; }
8816
fi
8817
 
8818
 
8819
 
8820
 
8821
 
8822
if test -z "$lt_cv_path_MAGIC_CMD"; then
8823
  if test -n "$ac_tool_prefix"; then
8824
    { $as_echo "$as_me:$LINENO: checking for file" >&5
8825
$as_echo_n "checking for file... " >&6; }
8826
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8827
  $as_echo_n "(cached) " >&6
8828
else
8829
  case $MAGIC_CMD in
8830
[\\/*] |  ?:[\\/]*)
8831
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8832
  ;;
8833
*)
8834
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8835
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8836
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8837
  for ac_dir in $ac_dummy; do
8838
    IFS="$lt_save_ifs"
8839
    test -z "$ac_dir" && ac_dir=.
8840
    if test -f $ac_dir/file; then
8841
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8842
      if test -n "$file_magic_test_file"; then
8843
        case $deplibs_check_method in
8844
        "file_magic "*)
8845
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8846
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8847
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8848
            $EGREP "$file_magic_regex" > /dev/null; then
8849
            :
8850
          else
8851
            cat <<_LT_EOF 1>&2
8852
 
8853
*** Warning: the command libtool uses to detect shared libraries,
8854
*** $file_magic_cmd, produces output that libtool cannot recognize.
8855
*** The result is that libtool may fail to recognize shared libraries
8856
*** as such.  This will affect the creation of libtool libraries that
8857
*** depend on shared libraries, but programs linked with such libtool
8858
*** libraries will work regardless of this problem.  Nevertheless, you
8859
*** may want to report the problem to your system manager and/or to
8860
*** bug-libtool@gnu.org
8861
 
8862
_LT_EOF
8863
          fi ;;
8864
        esac
8865
      fi
8866
      break
8867
    fi
8868
  done
8869
  IFS="$lt_save_ifs"
8870
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8871
  ;;
8872
esac
8873
fi
8874
 
8875
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8876
if test -n "$MAGIC_CMD"; then
8877
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8878
$as_echo "$MAGIC_CMD" >&6; }
8879
else
8880
  { $as_echo "$as_me:$LINENO: result: no" >&5
8881
$as_echo "no" >&6; }
8882
fi
8883
 
8884
 
8885
  else
8886
    MAGIC_CMD=:
8887
  fi
8888
fi
8889
 
8890
  fi
8891
  ;;
8892
esac
8893
 
8894
# Use C for the default configuration in the libtool script
8895
 
8896
lt_save_CC="$CC"
8897
ac_ext=c
8898
ac_cpp='$CPP $CPPFLAGS'
8899
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8900
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8901
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8902
 
8903
 
8904
# Source file extension for C test sources.
8905
ac_ext=c
8906
 
8907
# Object file extension for compiled C test sources.
8908
objext=o
8909
objext=$objext
8910
 
8911
# Code to be used in simple compile tests
8912
lt_simple_compile_test_code="int some_variable = 0;"
8913
 
8914
# Code to be used in simple link tests
8915
lt_simple_link_test_code='int main(){return(0);}'
8916
 
8917
 
8918
 
8919
 
8920
 
8921
 
8922
 
8923
# If no C compiler was specified, use CC.
8924
LTCC=${LTCC-"$CC"}
8925
 
8926
# If no C compiler flags were specified, use CFLAGS.
8927
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8928
 
8929
# Allow CC to be a program name with arguments.
8930
compiler=$CC
8931
 
8932
# Save the default compiler, since it gets overwritten when the other
8933
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8934
compiler_DEFAULT=$CC
8935
 
8936
# save warnings/boilerplate of simple test code
8937
ac_outfile=conftest.$ac_objext
8938
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8939
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8940
_lt_compiler_boilerplate=`cat conftest.err`
8941
$RM conftest*
8942
 
8943
ac_outfile=conftest.$ac_objext
8944
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8945
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8946
_lt_linker_boilerplate=`cat conftest.err`
8947
$RM -r conftest*
8948
 
8949
 
8950
## CAVEAT EMPTOR:
8951
## There is no encapsulation within the following macros, do not change
8952
## the running order or otherwise move them around unless you know exactly
8953
## what you are doing...
8954
if test -n "$compiler"; then
8955
 
8956
lt_prog_compiler_no_builtin_flag=
8957
 
8958
if test "$GCC" = yes; then
8959
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8960
 
8961
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8962
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8963
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8964
  $as_echo_n "(cached) " >&6
8965
else
8966
  lt_cv_prog_compiler_rtti_exceptions=no
8967
   ac_outfile=conftest.$ac_objext
8968
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8969
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8970
   # Insert the option either (1) after the last *FLAGS variable, or
8971
   # (2) before a word containing "conftest.", or (3) at the end.
8972
   # Note that $ac_compile itself does not contain backslashes and begins
8973
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8974
   # The option is referenced via a variable to avoid confusing sed.
8975
   lt_compile=`echo "$ac_compile" | $SED \
8976
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8977
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8978
   -e 's:$: $lt_compiler_flag:'`
8979
   (eval echo "\"\$as_me:8979: $lt_compile\"" >&5)
8980
   (eval "$lt_compile" 2>conftest.err)
8981
   ac_status=$?
8982
   cat conftest.err >&5
8983
   echo "$as_me:8983: \$? = $ac_status" >&5
8984
   if (exit $ac_status) && test -s "$ac_outfile"; then
8985
     # The compiler can only warn and ignore the option if not recognized
8986
     # So say no if there are warnings other than the usual output.
8987
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8988
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8989
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8990
       lt_cv_prog_compiler_rtti_exceptions=yes
8991
     fi
8992
   fi
8993
   $RM conftest*
8994
 
8995
fi
8996
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8997
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8998
 
8999
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9000
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9001
else
9002
    :
9003
fi
9004
 
9005
fi
9006
 
9007
 
9008
 
9009
 
9010
 
9011
 
9012
  lt_prog_compiler_wl=
9013
lt_prog_compiler_pic=
9014
lt_prog_compiler_static=
9015
 
9016
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9017
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9018
 
9019
  if test "$GCC" = yes; then
9020
    lt_prog_compiler_wl='-Wl,'
9021
    lt_prog_compiler_static='-static'
9022
 
9023
    case $host_os in
9024
      aix*)
9025
      # All AIX code is PIC.
9026
      if test "$host_cpu" = ia64; then
9027
        # AIX 5 now supports IA64 processor
9028
        lt_prog_compiler_static='-Bstatic'
9029
      fi
9030
      ;;
9031
 
9032
    amigaos*)
9033
      case $host_cpu in
9034
      powerpc)
9035
            # see comment about AmigaOS4 .so support
9036
            lt_prog_compiler_pic='-fPIC'
9037
        ;;
9038
      m68k)
9039
            # FIXME: we need at least 68020 code to build shared libraries, but
9040
            # adding the `-m68020' flag to GCC prevents building anything better,
9041
            # like `-m68040'.
9042
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9043
        ;;
9044
      esac
9045
      ;;
9046
 
9047
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9048
      # PIC is the default for these OSes.
9049
      ;;
9050
 
9051
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9052
      # This hack is so that the source file can tell whether it is being
9053
      # built for inclusion in a dll (and should export symbols for example).
9054
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9055
      # (--disable-auto-import) libraries
9056
      lt_prog_compiler_pic='-DDLL_EXPORT'
9057
      ;;
9058
 
9059
    darwin* | rhapsody*)
9060
      # PIC is the default on this platform
9061
      # Common symbols not allowed in MH_DYLIB files
9062
      lt_prog_compiler_pic='-fno-common'
9063
      ;;
9064
 
9065
    hpux*)
9066
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9067
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9068
      # sets the default TLS model and affects inlining.
9069
      case $host_cpu in
9070
      hppa*64*)
9071
        # +Z the default
9072
        ;;
9073
      *)
9074
        lt_prog_compiler_pic='-fPIC'
9075
        ;;
9076
      esac
9077
      ;;
9078
 
9079
    interix[3-9]*)
9080
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9081
      # Instead, we relocate shared libraries at runtime.
9082
      ;;
9083
 
9084
    msdosdjgpp*)
9085
      # Just because we use GCC doesn't mean we suddenly get shared libraries
9086
      # on systems that don't support them.
9087
      lt_prog_compiler_can_build_shared=no
9088
      enable_shared=no
9089
      ;;
9090
 
9091
    *nto* | *qnx*)
9092
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9093
      # it will coredump.
9094
      lt_prog_compiler_pic='-fPIC -shared'
9095
      ;;
9096
 
9097
    sysv4*MP*)
9098
      if test -d /usr/nec; then
9099
        lt_prog_compiler_pic=-Kconform_pic
9100
      fi
9101
      ;;
9102
 
9103
    *)
9104
      lt_prog_compiler_pic='-fPIC'
9105
      ;;
9106
    esac
9107
  else
9108
    # PORTME Check for flag to pass linker flags through the system compiler.
9109
    case $host_os in
9110
    aix*)
9111
      lt_prog_compiler_wl='-Wl,'
9112
      if test "$host_cpu" = ia64; then
9113
        # AIX 5 now supports IA64 processor
9114
        lt_prog_compiler_static='-Bstatic'
9115
      else
9116
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9117
      fi
9118
      ;;
9119
 
9120
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9121
      # This hack is so that the source file can tell whether it is being
9122
      # built for inclusion in a dll (and should export symbols for example).
9123
      lt_prog_compiler_pic='-DDLL_EXPORT'
9124
      ;;
9125
 
9126
    hpux9* | hpux10* | hpux11*)
9127
      lt_prog_compiler_wl='-Wl,'
9128
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9129
      # not for PA HP-UX.
9130
      case $host_cpu in
9131
      hppa*64*|ia64*)
9132
        # +Z the default
9133
        ;;
9134
      *)
9135
        lt_prog_compiler_pic='+Z'
9136
        ;;
9137
      esac
9138
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9139
      lt_prog_compiler_static='${wl}-a ${wl}archive'
9140
      ;;
9141
 
9142
    irix5* | irix6* | nonstopux*)
9143
      lt_prog_compiler_wl='-Wl,'
9144
      # PIC (with -KPIC) is the default.
9145
      lt_prog_compiler_static='-non_shared'
9146
      ;;
9147
 
9148
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9149
      case $cc_basename in
9150
      # old Intel for x86_64 which still supported -KPIC.
9151
      ecc*)
9152
        lt_prog_compiler_wl='-Wl,'
9153
        lt_prog_compiler_pic='-KPIC'
9154
        lt_prog_compiler_static='-static'
9155
        ;;
9156
      # icc used to be incompatible with GCC.
9157
      # ICC 10 doesn't accept -KPIC any more.
9158
      icc* | ifort*)
9159
        lt_prog_compiler_wl='-Wl,'
9160
        lt_prog_compiler_pic='-fPIC'
9161
        lt_prog_compiler_static='-static'
9162
        ;;
9163
      # Lahey Fortran 8.1.
9164
      lf95*)
9165
        lt_prog_compiler_wl='-Wl,'
9166
        lt_prog_compiler_pic='--shared'
9167
        lt_prog_compiler_static='--static'
9168
        ;;
9169
      pgcc* | pgf77* | pgf90* | pgf95*)
9170
        # Portland Group compilers (*not* the Pentium gcc compiler,
9171
        # which looks to be a dead project)
9172
        lt_prog_compiler_wl='-Wl,'
9173
        lt_prog_compiler_pic='-fpic'
9174
        lt_prog_compiler_static='-Bstatic'
9175
        ;;
9176
      ccc*)
9177
        lt_prog_compiler_wl='-Wl,'
9178
        # All Alpha code is PIC.
9179
        lt_prog_compiler_static='-non_shared'
9180
        ;;
9181
      xl*)
9182
        # IBM XL C 8.0/Fortran 10.1 on PPC
9183
        lt_prog_compiler_wl='-Wl,'
9184
        lt_prog_compiler_pic='-qpic'
9185
        lt_prog_compiler_static='-qstaticlink'
9186
        ;;
9187
      *)
9188
        case `$CC -V 2>&1 | sed 5q` in
9189
        *Sun\ C*)
9190
          # Sun C 5.9
9191
          lt_prog_compiler_pic='-KPIC'
9192
          lt_prog_compiler_static='-Bstatic'
9193
          lt_prog_compiler_wl='-Wl,'
9194
          ;;
9195
        *Sun\ F*)
9196
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
9197
          lt_prog_compiler_pic='-KPIC'
9198
          lt_prog_compiler_static='-Bstatic'
9199
          lt_prog_compiler_wl=''
9200
          ;;
9201
        esac
9202
        ;;
9203
      esac
9204
      ;;
9205
 
9206
    newsos6)
9207
      lt_prog_compiler_pic='-KPIC'
9208
      lt_prog_compiler_static='-Bstatic'
9209
      ;;
9210
 
9211
    *nto* | *qnx*)
9212
      # QNX uses GNU C++, but need to define -shared option too, otherwise
9213
      # it will coredump.
9214
      lt_prog_compiler_pic='-fPIC -shared'
9215
      ;;
9216
 
9217
    osf3* | osf4* | osf5*)
9218
      lt_prog_compiler_wl='-Wl,'
9219
      # All OSF/1 code is PIC.
9220
      lt_prog_compiler_static='-non_shared'
9221
      ;;
9222
 
9223
    rdos*)
9224
      lt_prog_compiler_static='-non_shared'
9225
      ;;
9226
 
9227
    solaris*)
9228
      lt_prog_compiler_pic='-KPIC'
9229
      lt_prog_compiler_static='-Bstatic'
9230
      case $cc_basename in
9231
      f77* | f90* | f95*)
9232
        lt_prog_compiler_wl='-Qoption ld ';;
9233
      *)
9234
        lt_prog_compiler_wl='-Wl,';;
9235
      esac
9236
      ;;
9237
 
9238
    sunos4*)
9239
      lt_prog_compiler_wl='-Qoption ld '
9240
      lt_prog_compiler_pic='-PIC'
9241
      lt_prog_compiler_static='-Bstatic'
9242
      ;;
9243
 
9244
    sysv4 | sysv4.2uw2* | sysv4.3*)
9245
      lt_prog_compiler_wl='-Wl,'
9246
      lt_prog_compiler_pic='-KPIC'
9247
      lt_prog_compiler_static='-Bstatic'
9248
      ;;
9249
 
9250
    sysv4*MP*)
9251
      if test -d /usr/nec ;then
9252
        lt_prog_compiler_pic='-Kconform_pic'
9253
        lt_prog_compiler_static='-Bstatic'
9254
      fi
9255
      ;;
9256
 
9257
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9258
      lt_prog_compiler_wl='-Wl,'
9259
      lt_prog_compiler_pic='-KPIC'
9260
      lt_prog_compiler_static='-Bstatic'
9261
      ;;
9262
 
9263
    unicos*)
9264
      lt_prog_compiler_wl='-Wl,'
9265
      lt_prog_compiler_can_build_shared=no
9266
      ;;
9267
 
9268
    uts4*)
9269
      lt_prog_compiler_pic='-pic'
9270
      lt_prog_compiler_static='-Bstatic'
9271
      ;;
9272
 
9273
    *)
9274
      lt_prog_compiler_can_build_shared=no
9275
      ;;
9276
    esac
9277
  fi
9278
 
9279
case $host_os in
9280
  # For platforms which do not support PIC, -DPIC is meaningless:
9281
  *djgpp*)
9282
    lt_prog_compiler_pic=
9283
    ;;
9284
  *)
9285
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9286
    ;;
9287
esac
9288
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9289
$as_echo "$lt_prog_compiler_pic" >&6; }
9290
 
9291
 
9292
 
9293
 
9294
 
9295
 
9296
#
9297
# Check to make sure the PIC flag actually works.
9298
#
9299
if test -n "$lt_prog_compiler_pic"; then
9300
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9301
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9302
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9303
  $as_echo_n "(cached) " >&6
9304
else
9305
  lt_cv_prog_compiler_pic_works=no
9306
   ac_outfile=conftest.$ac_objext
9307
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9308
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9309
   # Insert the option either (1) after the last *FLAGS variable, or
9310
   # (2) before a word containing "conftest.", or (3) at the end.
9311
   # Note that $ac_compile itself does not contain backslashes and begins
9312
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9313
   # The option is referenced via a variable to avoid confusing sed.
9314
   lt_compile=`echo "$ac_compile" | $SED \
9315
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9316
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9317
   -e 's:$: $lt_compiler_flag:'`
9318
   (eval echo "\"\$as_me:9318: $lt_compile\"" >&5)
9319
   (eval "$lt_compile" 2>conftest.err)
9320
   ac_status=$?
9321
   cat conftest.err >&5
9322
   echo "$as_me:9322: \$? = $ac_status" >&5
9323
   if (exit $ac_status) && test -s "$ac_outfile"; then
9324
     # The compiler can only warn and ignore the option if not recognized
9325
     # So say no if there are warnings other than the usual output.
9326
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9327
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9328
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9329
       lt_cv_prog_compiler_pic_works=yes
9330
     fi
9331
   fi
9332
   $RM conftest*
9333
 
9334
fi
9335
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9336
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9337
 
9338
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9339
    case $lt_prog_compiler_pic in
9340
     "" | " "*) ;;
9341
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9342
     esac
9343
else
9344
    lt_prog_compiler_pic=
9345
     lt_prog_compiler_can_build_shared=no
9346
fi
9347
 
9348
fi
9349
 
9350
 
9351
 
9352
 
9353
 
9354
 
9355
#
9356
# Check to make sure the static flag actually works.
9357
#
9358
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9359
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9360
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9361
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9362
  $as_echo_n "(cached) " >&6
9363
else
9364
  lt_cv_prog_compiler_static_works=no
9365
   save_LDFLAGS="$LDFLAGS"
9366
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9367
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9368
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9369
     # The linker can only warn and ignore the option if not recognized
9370
     # So say no if there are warnings
9371
     if test -s conftest.err; then
9372
       # Append any errors to the config.log.
9373
       cat conftest.err 1>&5
9374
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9375
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9376
       if diff conftest.exp conftest.er2 >/dev/null; then
9377
         lt_cv_prog_compiler_static_works=yes
9378
       fi
9379
     else
9380
       lt_cv_prog_compiler_static_works=yes
9381
     fi
9382
   fi
9383
   $RM -r conftest*
9384
   LDFLAGS="$save_LDFLAGS"
9385
 
9386
fi
9387
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9388
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9389
 
9390
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9391
    :
9392
else
9393
    lt_prog_compiler_static=
9394
fi
9395
 
9396
 
9397
 
9398
 
9399
 
9400
 
9401
 
9402
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9403
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9404
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9405
  $as_echo_n "(cached) " >&6
9406
else
9407
  lt_cv_prog_compiler_c_o=no
9408
   $RM -r conftest 2>/dev/null
9409
   mkdir conftest
9410
   cd conftest
9411
   mkdir out
9412
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9413
 
9414
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9415
   # Insert the option either (1) after the last *FLAGS variable, or
9416
   # (2) before a word containing "conftest.", or (3) at the end.
9417
   # Note that $ac_compile itself does not contain backslashes and begins
9418
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9419
   lt_compile=`echo "$ac_compile" | $SED \
9420
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9421
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9422
   -e 's:$: $lt_compiler_flag:'`
9423
   (eval echo "\"\$as_me:9423: $lt_compile\"" >&5)
9424
   (eval "$lt_compile" 2>out/conftest.err)
9425
   ac_status=$?
9426
   cat out/conftest.err >&5
9427
   echo "$as_me:9427: \$? = $ac_status" >&5
9428
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9429
   then
9430
     # The compiler can only warn and ignore the option if not recognized
9431
     # So say no if there are warnings
9432
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9433
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9434
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9435
       lt_cv_prog_compiler_c_o=yes
9436
     fi
9437
   fi
9438
   chmod u+w . 2>&5
9439
   $RM conftest*
9440
   # SGI C++ compiler will create directory out/ii_files/ for
9441
   # template instantiation
9442
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9443
   $RM out/* && rmdir out
9444
   cd ..
9445
   $RM -r conftest
9446
   $RM conftest*
9447
 
9448
fi
9449
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9450
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9451
 
9452
 
9453
 
9454
 
9455
 
9456
 
9457
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9458
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9459
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9460
  $as_echo_n "(cached) " >&6
9461
else
9462
  lt_cv_prog_compiler_c_o=no
9463
   $RM -r conftest 2>/dev/null
9464
   mkdir conftest
9465
   cd conftest
9466
   mkdir out
9467
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9468
 
9469
   lt_compiler_flag="-o out/conftest2.$ac_objext"
9470
   # Insert the option either (1) after the last *FLAGS variable, or
9471
   # (2) before a word containing "conftest.", or (3) at the end.
9472
   # Note that $ac_compile itself does not contain backslashes and begins
9473
   # with a dollar sign (not a hyphen), so the echo should work correctly.
9474
   lt_compile=`echo "$ac_compile" | $SED \
9475
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9476
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9477
   -e 's:$: $lt_compiler_flag:'`
9478
   (eval echo "\"\$as_me:9478: $lt_compile\"" >&5)
9479
   (eval "$lt_compile" 2>out/conftest.err)
9480
   ac_status=$?
9481
   cat out/conftest.err >&5
9482
   echo "$as_me:9482: \$? = $ac_status" >&5
9483
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9484
   then
9485
     # The compiler can only warn and ignore the option if not recognized
9486
     # So say no if there are warnings
9487
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9488
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9489
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9490
       lt_cv_prog_compiler_c_o=yes
9491
     fi
9492
   fi
9493
   chmod u+w . 2>&5
9494
   $RM conftest*
9495
   # SGI C++ compiler will create directory out/ii_files/ for
9496
   # template instantiation
9497
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9498
   $RM out/* && rmdir out
9499
   cd ..
9500
   $RM -r conftest
9501
   $RM conftest*
9502
 
9503
fi
9504
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9505
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9506
 
9507
 
9508
 
9509
 
9510
hard_links="nottested"
9511
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9512
  # do not overwrite the value of need_locks provided by the user
9513
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9514
$as_echo_n "checking if we can lock with hard links... " >&6; }
9515
  hard_links=yes
9516
  $RM conftest*
9517
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9518
  touch conftest.a
9519
  ln conftest.a conftest.b 2>&5 || hard_links=no
9520
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9521
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9522
$as_echo "$hard_links" >&6; }
9523
  if test "$hard_links" = no; then
9524
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9525
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9526
    need_locks=warn
9527
  fi
9528
else
9529
  need_locks=no
9530
fi
9531
 
9532
 
9533
 
9534
 
9535
 
9536
 
9537
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9538
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9539
 
9540
  runpath_var=
9541
  allow_undefined_flag=
9542
  always_export_symbols=no
9543
  archive_cmds=
9544
  archive_expsym_cmds=
9545
  compiler_needs_object=no
9546
  enable_shared_with_static_runtimes=no
9547
  export_dynamic_flag_spec=
9548
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9549
  hardcode_automatic=no
9550
  hardcode_direct=no
9551
  hardcode_direct_absolute=no
9552
  hardcode_libdir_flag_spec=
9553
  hardcode_libdir_flag_spec_ld=
9554
  hardcode_libdir_separator=
9555
  hardcode_minus_L=no
9556
  hardcode_shlibpath_var=unsupported
9557
  inherit_rpath=no
9558
  link_all_deplibs=unknown
9559
  module_cmds=
9560
  module_expsym_cmds=
9561
  old_archive_from_new_cmds=
9562
  old_archive_from_expsyms_cmds=
9563
  thread_safe_flag_spec=
9564
  whole_archive_flag_spec=
9565
  # include_expsyms should be a list of space-separated symbols to be *always*
9566
  # included in the symbol list
9567
  include_expsyms=
9568
  # exclude_expsyms can be an extended regexp of symbols to exclude
9569
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9570
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9571
  # as well as any symbol that contains `d'.
9572
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9573
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9574
  # platforms (ab)use it in PIC code, but their linkers get confused if
9575
  # the symbol is explicitly referenced.  Since portable code cannot
9576
  # rely on this symbol name, it's probably fine to never include it in
9577
  # preloaded symbol tables.
9578
  # Exclude shared library initialization/finalization symbols.
9579
  extract_expsyms_cmds=
9580
 
9581
  case $host_os in
9582
  cygwin* | mingw* | pw32* | cegcc*)
9583
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9584
    # When not using gcc, we currently assume that we are using
9585
    # Microsoft Visual C++.
9586
    if test "$GCC" != yes; then
9587
      with_gnu_ld=no
9588
    fi
9589
    ;;
9590
  interix*)
9591
    # we just hope/assume this is gcc and not c89 (= MSVC++)
9592
    with_gnu_ld=yes
9593
    ;;
9594
  openbsd*)
9595
    with_gnu_ld=no
9596
    ;;
9597
  esac
9598
 
9599
  ld_shlibs=yes
9600
  if test "$with_gnu_ld" = yes; then
9601
    # If archive_cmds runs LD, not CC, wlarc should be empty
9602
    wlarc='${wl}'
9603
 
9604
    # Set some defaults for GNU ld with shared library support. These
9605
    # are reset later if shared libraries are not supported. Putting them
9606
    # here allows them to be overridden if necessary.
9607
    runpath_var=LD_RUN_PATH
9608
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9609
    export_dynamic_flag_spec='${wl}--export-dynamic'
9610
    # ancient GNU ld didn't support --whole-archive et. al.
9611
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9612
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9613
    else
9614
      whole_archive_flag_spec=
9615
    fi
9616
    supports_anon_versioning=no
9617
    case `$LD -v 2>&1` in
9618
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9619
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9620
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9621
      *\ 2.11.*) ;; # other 2.11 versions
9622
      *) supports_anon_versioning=yes ;;
9623
    esac
9624
 
9625
    # See if GNU ld supports shared libraries.
9626
    case $host_os in
9627
    aix[3-9]*)
9628
      # On AIX/PPC, the GNU linker is very broken
9629
      if test "$host_cpu" != ia64; then
9630
        ld_shlibs=no
9631
        cat <<_LT_EOF 1>&2
9632
 
9633
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9634
*** to be unable to reliably create shared libraries on AIX.
9635
*** Therefore, libtool is disabling shared libraries support.  If you
9636
*** really care for shared libraries, you may want to modify your PATH
9637
*** so that a non-GNU linker is found, and then restart.
9638
 
9639
_LT_EOF
9640
      fi
9641
      ;;
9642
 
9643
    amigaos*)
9644
      case $host_cpu in
9645
      powerpc)
9646
            # see comment about AmigaOS4 .so support
9647
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9648
            archive_expsym_cmds=''
9649
        ;;
9650
      m68k)
9651
            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)'
9652
            hardcode_libdir_flag_spec='-L$libdir'
9653
            hardcode_minus_L=yes
9654
        ;;
9655
      esac
9656
      ;;
9657
 
9658
    beos*)
9659
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9660
        allow_undefined_flag=unsupported
9661
        # Joseph Beckenbach  says some releases of gcc
9662
        # support --undefined.  This deserves some investigation.  FIXME
9663
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9664
      else
9665
        ld_shlibs=no
9666
      fi
9667
      ;;
9668
 
9669
    cygwin* | mingw* | pw32* | cegcc*)
9670
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9671
      # as there is no search path for DLLs.
9672
      hardcode_libdir_flag_spec='-L$libdir'
9673
      allow_undefined_flag=unsupported
9674
      always_export_symbols=no
9675
      enable_shared_with_static_runtimes=yes
9676
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9677
 
9678
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9679
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9680
        # If the export-symbols file already is a .def file (1st line
9681
        # is EXPORTS), use it as is; otherwise, prepend...
9682
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9683
          cp $export_symbols $output_objdir/$soname.def;
9684
        else
9685
          echo EXPORTS > $output_objdir/$soname.def;
9686
          cat $export_symbols >> $output_objdir/$soname.def;
9687
        fi~
9688
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9689
      else
9690
        ld_shlibs=no
9691
      fi
9692
      ;;
9693
 
9694
    interix[3-9]*)
9695
      hardcode_direct=no
9696
      hardcode_shlibpath_var=no
9697
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9698
      export_dynamic_flag_spec='${wl}-E'
9699
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9700
      # Instead, shared libraries are loaded at an image base (0x10000000 by
9701
      # default) and relocated if they conflict, which is a slow very memory
9702
      # consuming and fragmenting process.  To avoid this, we pick a random,
9703
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9704
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9705
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9706
      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'
9707
      ;;
9708
 
9709
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9710
      tmp_diet=no
9711
      if test "$host_os" = linux-dietlibc; then
9712
        case $cc_basename in
9713
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9714
        esac
9715
      fi
9716
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9717
         && test "$tmp_diet" = no
9718
      then
9719
        tmp_addflag=
9720
        tmp_sharedflag='-shared'
9721
        case $cc_basename,$host_cpu in
9722
        pgcc*)                          # Portland Group C compiler
9723
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9724
          tmp_addflag=' $pic_flag'
9725
          ;;
9726
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9727
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9728
          tmp_addflag=' $pic_flag -Mnomain' ;;
9729
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9730
          tmp_addflag=' -i_dynamic' ;;
9731
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9732
          tmp_addflag=' -i_dynamic -nofor_main' ;;
9733
        ifc* | ifort*)                  # Intel Fortran compiler
9734
          tmp_addflag=' -nofor_main' ;;
9735
        lf95*)                          # Lahey Fortran 8.1
9736
          whole_archive_flag_spec=
9737
          tmp_sharedflag='--shared' ;;
9738
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9739
          tmp_sharedflag='-qmkshrobj'
9740
          tmp_addflag= ;;
9741
        esac
9742
        case `$CC -V 2>&1 | sed 5q` in
9743
        *Sun\ C*)                       # Sun C 5.9
9744
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9745
          compiler_needs_object=yes
9746
          tmp_sharedflag='-G' ;;
9747
        *Sun\ F*)                       # Sun Fortran 8.3
9748
          tmp_sharedflag='-G' ;;
9749
        esac
9750
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9751
 
9752
        if test "x$supports_anon_versioning" = xyes; then
9753
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9754
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9755
            echo "local: *; };" >> $output_objdir/$libname.ver~
9756
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9757
        fi
9758
 
9759
        case $cc_basename in
9760
        xlf*)
9761
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9762
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9763
          hardcode_libdir_flag_spec=
9764
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9765
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9766
          if test "x$supports_anon_versioning" = xyes; then
9767
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9768
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9769
              echo "local: *; };" >> $output_objdir/$libname.ver~
9770
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9771
          fi
9772
          ;;
9773
        esac
9774
      else
9775
        ld_shlibs=no
9776
      fi
9777
      ;;
9778
 
9779
    netbsd*)
9780
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9781
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9782
        wlarc=
9783
      else
9784
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9785
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9786
      fi
9787
      ;;
9788
 
9789
    solaris*)
9790
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9791
        ld_shlibs=no
9792
        cat <<_LT_EOF 1>&2
9793
 
9794
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9795
*** create shared libraries on Solaris systems.  Therefore, libtool
9796
*** is disabling shared libraries support.  We urge you to upgrade GNU
9797
*** binutils to release 2.9.1 or newer.  Another option is to modify
9798
*** your PATH or compiler configuration so that the native linker is
9799
*** used, and then restart.
9800
 
9801
_LT_EOF
9802
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9803
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9804
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9805
      else
9806
        ld_shlibs=no
9807
      fi
9808
      ;;
9809
 
9810
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9811
      case `$LD -v 2>&1` in
9812
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9813
        ld_shlibs=no
9814
        cat <<_LT_EOF 1>&2
9815
 
9816
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9817
*** reliably create shared libraries on SCO systems.  Therefore, libtool
9818
*** is disabling shared libraries support.  We urge you to upgrade GNU
9819
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9820
*** your PATH or compiler configuration so that the native linker is
9821
*** used, and then restart.
9822
 
9823
_LT_EOF
9824
        ;;
9825
        *)
9826
          # For security reasons, it is highly recommended that you always
9827
          # use absolute paths for naming shared libraries, and exclude the
9828
          # DT_RUNPATH tag from executables and libraries.  But doing so
9829
          # requires that you compile everything twice, which is a pain.
9830
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9831
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9832
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9833
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9834
          else
9835
            ld_shlibs=no
9836
          fi
9837
        ;;
9838
      esac
9839
      ;;
9840
 
9841
    sunos4*)
9842
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9843
      wlarc=
9844
      hardcode_direct=yes
9845
      hardcode_shlibpath_var=no
9846
      ;;
9847
 
9848
    *)
9849
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9850
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9851
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9852
      else
9853
        ld_shlibs=no
9854
      fi
9855
      ;;
9856
    esac
9857
 
9858
    if test "$ld_shlibs" = no; then
9859
      runpath_var=
9860
      hardcode_libdir_flag_spec=
9861
      export_dynamic_flag_spec=
9862
      whole_archive_flag_spec=
9863
    fi
9864
  else
9865
    # PORTME fill in a description of your system's linker (not GNU ld)
9866
    case $host_os in
9867
    aix3*)
9868
      allow_undefined_flag=unsupported
9869
      always_export_symbols=yes
9870
      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'
9871
      # Note: this linker hardcodes the directories in LIBPATH if there
9872
      # are no directories specified by -L.
9873
      hardcode_minus_L=yes
9874
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9875
        # Neither direct hardcoding nor static linking is supported with a
9876
        # broken collect2.
9877
        hardcode_direct=unsupported
9878
      fi
9879
      ;;
9880
 
9881
    aix[4-9]*)
9882
      if test "$host_cpu" = ia64; then
9883
        # On IA64, the linker does run time linking by default, so we don't
9884
        # have to do anything special.
9885
        aix_use_runtimelinking=no
9886
        exp_sym_flag='-Bexport'
9887
        no_entry_flag=""
9888
      else
9889
        # If we're using GNU nm, then we don't want the "-C" option.
9890
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9891
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9892
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9893
        else
9894
          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'
9895
        fi
9896
        aix_use_runtimelinking=no
9897
 
9898
        # Test if we are trying to use run time linking or normal
9899
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9900
        # need to do runtime linking.
9901
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9902
          for ld_flag in $LDFLAGS; do
9903
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9904
            aix_use_runtimelinking=yes
9905
            break
9906
          fi
9907
          done
9908
          ;;
9909
        esac
9910
 
9911
        exp_sym_flag='-bexport'
9912
        no_entry_flag='-bnoentry'
9913
      fi
9914
 
9915
      # When large executables or shared objects are built, AIX ld can
9916
      # have problems creating the table of contents.  If linking a library
9917
      # or program results in "error TOC overflow" add -mminimal-toc to
9918
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9919
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9920
 
9921
      archive_cmds=''
9922
      hardcode_direct=yes
9923
      hardcode_direct_absolute=yes
9924
      hardcode_libdir_separator=':'
9925
      link_all_deplibs=yes
9926
      file_list_spec='${wl}-f,'
9927
 
9928
      if test "$GCC" = yes; then
9929
        case $host_os in aix4.[012]|aix4.[012].*)
9930
        # We only want to do this on AIX 4.2 and lower, the check
9931
        # below for broken collect2 doesn't work under 4.3+
9932
          collect2name=`${CC} -print-prog-name=collect2`
9933
          if test -f "$collect2name" &&
9934
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9935
          then
9936
          # We have reworked collect2
9937
          :
9938
          else
9939
          # We have old collect2
9940
          hardcode_direct=unsupported
9941
          # It fails to find uninstalled libraries when the uninstalled
9942
          # path is not listed in the libpath.  Setting hardcode_minus_L
9943
          # to unsupported forces relinking
9944
          hardcode_minus_L=yes
9945
          hardcode_libdir_flag_spec='-L$libdir'
9946
          hardcode_libdir_separator=
9947
          fi
9948
          ;;
9949
        esac
9950
        shared_flag='-shared'
9951
        if test "$aix_use_runtimelinking" = yes; then
9952
          shared_flag="$shared_flag "'${wl}-G'
9953
        fi
9954
      else
9955
        # not using gcc
9956
        if test "$host_cpu" = ia64; then
9957
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9958
        # chokes on -Wl,-G. The following line is correct:
9959
          shared_flag='-G'
9960
        else
9961
          if test "$aix_use_runtimelinking" = yes; then
9962
            shared_flag='${wl}-G'
9963
          else
9964
            shared_flag='${wl}-bM:SRE'
9965
          fi
9966
        fi
9967
      fi
9968
 
9969
      export_dynamic_flag_spec='${wl}-bexpall'
9970
      # It seems that -bexpall does not export symbols beginning with
9971
      # underscore (_), so it is better to generate a list of symbols to export.
9972
      always_export_symbols=yes
9973
      if test "$aix_use_runtimelinking" = yes; then
9974
        # Warning - without using the other runtime loading flags (-brtl),
9975
        # -berok will link without error, but may produce a broken library.
9976
        allow_undefined_flag='-berok'
9977
        # Determine the default libpath from the value encoded in an
9978
        # empty executable.
9979
        cat >conftest.$ac_ext <<_ACEOF
9980
/* confdefs.h.  */
9981
_ACEOF
9982
cat confdefs.h >>conftest.$ac_ext
9983
cat >>conftest.$ac_ext <<_ACEOF
9984
/* end confdefs.h.  */
9985
 
9986
int
9987
main ()
9988
{
9989
 
9990
  ;
9991
  return 0;
9992
}
9993
_ACEOF
9994
rm -f conftest.$ac_objext conftest$ac_exeext
9995
if { (ac_try="$ac_link"
9996
case "(($ac_try" in
9997
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998
  *) ac_try_echo=$ac_try;;
9999
esac
10000
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10001
$as_echo "$ac_try_echo") >&5
10002
  (eval "$ac_link") 2>conftest.er1
10003
  ac_status=$?
10004
  grep -v '^ *+' conftest.er1 >conftest.err
10005
  rm -f conftest.er1
10006
  cat conftest.err >&5
10007
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008
  (exit $ac_status); } && {
10009
         test -z "$ac_c_werror_flag" ||
10010
         test ! -s conftest.err
10011
       } && test -s conftest$ac_exeext && {
10012
         test "$cross_compiling" = yes ||
10013
         $as_test_x conftest$ac_exeext
10014
       }; then
10015
 
10016
lt_aix_libpath_sed='
10017
    /Import File Strings/,/^$/ {
10018
        /^0/ {
10019
            s/^0  *\(.*\)$/\1/
10020
            p
10021
        }
10022
    }'
10023
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10024
# Check for a 64-bit object if we didn't find anything.
10025
if test -z "$aix_libpath"; then
10026
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10027
fi
10028
else
10029
  $as_echo "$as_me: failed program was:" >&5
10030
sed 's/^/| /' conftest.$ac_ext >&5
10031
 
10032
 
10033
fi
10034
 
10035
rm -rf conftest.dSYM
10036
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10037
      conftest$ac_exeext conftest.$ac_ext
10038
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10039
 
10040
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10041
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10042
      else
10043
        if test "$host_cpu" = ia64; then
10044
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10045
          allow_undefined_flag="-z nodefs"
10046
          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"
10047
        else
10048
         # Determine the default libpath from the value encoded in an
10049
         # empty executable.
10050
         cat >conftest.$ac_ext <<_ACEOF
10051
/* confdefs.h.  */
10052
_ACEOF
10053
cat confdefs.h >>conftest.$ac_ext
10054
cat >>conftest.$ac_ext <<_ACEOF
10055
/* end confdefs.h.  */
10056
 
10057
int
10058
main ()
10059
{
10060
 
10061
  ;
10062
  return 0;
10063
}
10064
_ACEOF
10065
rm -f conftest.$ac_objext conftest$ac_exeext
10066
if { (ac_try="$ac_link"
10067
case "(($ac_try" in
10068
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069
  *) ac_try_echo=$ac_try;;
10070
esac
10071
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10072
$as_echo "$ac_try_echo") >&5
10073
  (eval "$ac_link") 2>conftest.er1
10074
  ac_status=$?
10075
  grep -v '^ *+' conftest.er1 >conftest.err
10076
  rm -f conftest.er1
10077
  cat conftest.err >&5
10078
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079
  (exit $ac_status); } && {
10080
         test -z "$ac_c_werror_flag" ||
10081
         test ! -s conftest.err
10082
       } && test -s conftest$ac_exeext && {
10083
         test "$cross_compiling" = yes ||
10084
         $as_test_x conftest$ac_exeext
10085
       }; then
10086
 
10087
lt_aix_libpath_sed='
10088
    /Import File Strings/,/^$/ {
10089
        /^0/ {
10090
            s/^0  *\(.*\)$/\1/
10091
            p
10092
        }
10093
    }'
10094
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10095
# Check for a 64-bit object if we didn't find anything.
10096
if test -z "$aix_libpath"; then
10097
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10098
fi
10099
else
10100
  $as_echo "$as_me: failed program was:" >&5
10101
sed 's/^/| /' conftest.$ac_ext >&5
10102
 
10103
 
10104
fi
10105
 
10106
rm -rf conftest.dSYM
10107
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10108
      conftest$ac_exeext conftest.$ac_ext
10109
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10110
 
10111
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10112
          # Warning - without using the other run time loading flags,
10113
          # -berok will link without error, but may produce a broken library.
10114
          no_undefined_flag=' ${wl}-bernotok'
10115
          allow_undefined_flag=' ${wl}-berok'
10116
          # Exported symbols can be pulled into shared objects from archives
10117
          whole_archive_flag_spec='$convenience'
10118
          archive_cmds_need_lc=yes
10119
          # This is similar to how AIX traditionally builds its shared libraries.
10120
          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'
10121
        fi
10122
      fi
10123
      ;;
10124
 
10125
    amigaos*)
10126
      case $host_cpu in
10127
      powerpc)
10128
            # see comment about AmigaOS4 .so support
10129
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10130
            archive_expsym_cmds=''
10131
        ;;
10132
      m68k)
10133
            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)'
10134
            hardcode_libdir_flag_spec='-L$libdir'
10135
            hardcode_minus_L=yes
10136
        ;;
10137
      esac
10138
      ;;
10139
 
10140
    bsdi[45]*)
10141
      export_dynamic_flag_spec=-rdynamic
10142
      ;;
10143
 
10144
    cygwin* | mingw* | pw32* | cegcc*)
10145
      # When not using gcc, we currently assume that we are using
10146
      # Microsoft Visual C++.
10147
      # hardcode_libdir_flag_spec is actually meaningless, as there is
10148
      # no search path for DLLs.
10149
      hardcode_libdir_flag_spec=' '
10150
      allow_undefined_flag=unsupported
10151
      # Tell ltmain to make .lib files, not .a files.
10152
      libext=lib
10153
      # Tell ltmain to make .dll files, not .so files.
10154
      shrext_cmds=".dll"
10155
      # FIXME: Setting linknames here is a bad hack.
10156
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10157
      # The linker will automatically build a .lib file if we build a DLL.
10158
      old_archive_from_new_cmds='true'
10159
      # FIXME: Should let the user specify the lib program.
10160
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10161
      fix_srcfile_path='`cygpath -w "$srcfile"`'
10162
      enable_shared_with_static_runtimes=yes
10163
      ;;
10164
 
10165
    darwin* | rhapsody*)
10166
 
10167
 
10168
  archive_cmds_need_lc=no
10169
  hardcode_direct=no
10170
  hardcode_automatic=yes
10171
  hardcode_shlibpath_var=unsupported
10172
  whole_archive_flag_spec=''
10173
  link_all_deplibs=yes
10174
  allow_undefined_flag="$_lt_dar_allow_undefined"
10175
  case $cc_basename in
10176
     ifort*) _lt_dar_can_shared=yes ;;
10177
     *) _lt_dar_can_shared=$GCC ;;
10178
  esac
10179
  if test "$_lt_dar_can_shared" = "yes"; then
10180
    output_verbose_link_cmd=echo
10181
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10182
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10183
    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}"
10184
    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}"
10185
 
10186
  else
10187
  ld_shlibs=no
10188
  fi
10189
 
10190
      ;;
10191
 
10192
    dgux*)
10193
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10194
      hardcode_libdir_flag_spec='-L$libdir'
10195
      hardcode_shlibpath_var=no
10196
      ;;
10197
 
10198
    freebsd1*)
10199
      ld_shlibs=no
10200
      ;;
10201
 
10202
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10203
    # support.  Future versions do this automatically, but an explicit c++rt0.o
10204
    # does not break anything, and helps significantly (at the cost of a little
10205
    # extra space).
10206
    freebsd2.2*)
10207
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10208
      hardcode_libdir_flag_spec='-R$libdir'
10209
      hardcode_direct=yes
10210
      hardcode_shlibpath_var=no
10211
      ;;
10212
 
10213
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10214
    freebsd2*)
10215
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10216
      hardcode_direct=yes
10217
      hardcode_minus_L=yes
10218
      hardcode_shlibpath_var=no
10219
      ;;
10220
 
10221
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10222
    freebsd* | dragonfly*)
10223
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10224
      hardcode_libdir_flag_spec='-R$libdir'
10225
      hardcode_direct=yes
10226
      hardcode_shlibpath_var=no
10227
      ;;
10228
 
10229
    hpux9*)
10230
      if test "$GCC" = yes; then
10231
        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'
10232
      else
10233
        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'
10234
      fi
10235
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10236
      hardcode_libdir_separator=:
10237
      hardcode_direct=yes
10238
 
10239
      # hardcode_minus_L: Not really in the search PATH,
10240
      # but as the default location of the library.
10241
      hardcode_minus_L=yes
10242
      export_dynamic_flag_spec='${wl}-E'
10243
      ;;
10244
 
10245
    hpux10*)
10246
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10247
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10248
      else
10249
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10250
      fi
10251
      if test "$with_gnu_ld" = no; then
10252
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10253
        hardcode_libdir_flag_spec_ld='+b $libdir'
10254
        hardcode_libdir_separator=:
10255
        hardcode_direct=yes
10256
        hardcode_direct_absolute=yes
10257
        export_dynamic_flag_spec='${wl}-E'
10258
        # hardcode_minus_L: Not really in the search PATH,
10259
        # but as the default location of the library.
10260
        hardcode_minus_L=yes
10261
      fi
10262
      ;;
10263
 
10264
    hpux11*)
10265
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10266
        case $host_cpu in
10267
        hppa*64*)
10268
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10269
          ;;
10270
        ia64*)
10271
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10272
          ;;
10273
        *)
10274
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10275
          ;;
10276
        esac
10277
      else
10278
        case $host_cpu in
10279
        hppa*64*)
10280
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10281
          ;;
10282
        ia64*)
10283
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10284
          ;;
10285
        *)
10286
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10287
          ;;
10288
        esac
10289
      fi
10290
      if test "$with_gnu_ld" = no; then
10291
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10292
        hardcode_libdir_separator=:
10293
 
10294
        case $host_cpu in
10295
        hppa*64*|ia64*)
10296
          hardcode_direct=no
10297
          hardcode_shlibpath_var=no
10298
          ;;
10299
        *)
10300
          hardcode_direct=yes
10301
          hardcode_direct_absolute=yes
10302
          export_dynamic_flag_spec='${wl}-E'
10303
 
10304
          # hardcode_minus_L: Not really in the search PATH,
10305
          # but as the default location of the library.
10306
          hardcode_minus_L=yes
10307
          ;;
10308
        esac
10309
      fi
10310
      ;;
10311
 
10312
    irix5* | irix6* | nonstopux*)
10313
      if test "$GCC" = yes; then
10314
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10315
        # Try to use the -exported_symbol ld option, if it does not
10316
        # work, assume that -exports_file does not work either and
10317
        # implicitly export all symbols.
10318
        save_LDFLAGS="$LDFLAGS"
10319
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10320
        cat >conftest.$ac_ext <<_ACEOF
10321
int foo(void) {}
10322
_ACEOF
10323
rm -f conftest.$ac_objext conftest$ac_exeext
10324
if { (ac_try="$ac_link"
10325
case "(($ac_try" in
10326
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327
  *) ac_try_echo=$ac_try;;
10328
esac
10329
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10330
$as_echo "$ac_try_echo") >&5
10331
  (eval "$ac_link") 2>conftest.er1
10332
  ac_status=$?
10333
  grep -v '^ *+' conftest.er1 >conftest.err
10334
  rm -f conftest.er1
10335
  cat conftest.err >&5
10336
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337
  (exit $ac_status); } && {
10338
         test -z "$ac_c_werror_flag" ||
10339
         test ! -s conftest.err
10340
       } && test -s conftest$ac_exeext && {
10341
         test "$cross_compiling" = yes ||
10342
         $as_test_x conftest$ac_exeext
10343
       }; then
10344
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10345
 
10346
else
10347
  $as_echo "$as_me: failed program was:" >&5
10348
sed 's/^/| /' conftest.$ac_ext >&5
10349
 
10350
 
10351
fi
10352
 
10353
rm -rf conftest.dSYM
10354
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10355
      conftest$ac_exeext conftest.$ac_ext
10356
        LDFLAGS="$save_LDFLAGS"
10357
      else
10358
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10359
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10360
      fi
10361
      archive_cmds_need_lc='no'
10362
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10363
      hardcode_libdir_separator=:
10364
      inherit_rpath=yes
10365
      link_all_deplibs=yes
10366
      ;;
10367
 
10368
    netbsd*)
10369
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10370
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10371
      else
10372
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10373
      fi
10374
      hardcode_libdir_flag_spec='-R$libdir'
10375
      hardcode_direct=yes
10376
      hardcode_shlibpath_var=no
10377
      ;;
10378
 
10379
    newsos6)
10380
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10381
      hardcode_direct=yes
10382
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10383
      hardcode_libdir_separator=:
10384
      hardcode_shlibpath_var=no
10385
      ;;
10386
 
10387
    *nto* | *qnx*)
10388
      ;;
10389
 
10390
    openbsd*)
10391
      if test -f /usr/libexec/ld.so; then
10392
        hardcode_direct=yes
10393
        hardcode_shlibpath_var=no
10394
        hardcode_direct_absolute=yes
10395
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10396
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10397
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10398
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10399
          export_dynamic_flag_spec='${wl}-E'
10400
        else
10401
          case $host_os in
10402
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10403
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10404
             hardcode_libdir_flag_spec='-R$libdir'
10405
             ;;
10406
           *)
10407
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10408
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10409
             ;;
10410
          esac
10411
        fi
10412
      else
10413
        ld_shlibs=no
10414
      fi
10415
      ;;
10416
 
10417
    os2*)
10418
      hardcode_libdir_flag_spec='-L$libdir'
10419
      hardcode_minus_L=yes
10420
      allow_undefined_flag=unsupported
10421
      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'
10422
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10423
      ;;
10424
 
10425
    osf3*)
10426
      if test "$GCC" = yes; then
10427
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10428
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10429
      else
10430
        allow_undefined_flag=' -expect_unresolved \*'
10431
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10432
      fi
10433
      archive_cmds_need_lc='no'
10434
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10435
      hardcode_libdir_separator=:
10436
      ;;
10437
 
10438
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10439
      if test "$GCC" = yes; then
10440
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10441
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10442
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10443
      else
10444
        allow_undefined_flag=' -expect_unresolved \*'
10445
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10446
        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~
10447
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10448
 
10449
        # Both c and cxx compiler support -rpath directly
10450
        hardcode_libdir_flag_spec='-rpath $libdir'
10451
      fi
10452
      archive_cmds_need_lc='no'
10453
      hardcode_libdir_separator=:
10454
      ;;
10455
 
10456
    solaris*)
10457
      no_undefined_flag=' -z defs'
10458
      if test "$GCC" = yes; then
10459
        wlarc='${wl}'
10460
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10461
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10462
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10463
      else
10464
        case `$CC -V 2>&1` in
10465
        *"Compilers 5.0"*)
10466
          wlarc=''
10467
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10468
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10469
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10470
          ;;
10471
        *)
10472
          wlarc='${wl}'
10473
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10474
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10475
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10476
          ;;
10477
        esac
10478
      fi
10479
      hardcode_libdir_flag_spec='-R$libdir'
10480
      hardcode_shlibpath_var=no
10481
      case $host_os in
10482
      solaris2.[0-5] | solaris2.[0-5].*) ;;
10483
      *)
10484
        # The compiler driver will combine and reorder linker options,
10485
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
10486
        # but is careful enough not to reorder.
10487
        # Supported since Solaris 2.6 (maybe 2.5.1?)
10488
        if test "$GCC" = yes; then
10489
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10490
        else
10491
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10492
        fi
10493
        ;;
10494
      esac
10495
      link_all_deplibs=yes
10496
      ;;
10497
 
10498
    sunos4*)
10499
      if test "x$host_vendor" = xsequent; then
10500
        # Use $CC to link under sequent, because it throws in some extra .o
10501
        # files that make .init and .fini sections work.
10502
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10503
      else
10504
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10505
      fi
10506
      hardcode_libdir_flag_spec='-L$libdir'
10507
      hardcode_direct=yes
10508
      hardcode_minus_L=yes
10509
      hardcode_shlibpath_var=no
10510
      ;;
10511
 
10512
    sysv4)
10513
      case $host_vendor in
10514
        sni)
10515
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10516
          hardcode_direct=yes # is this really true???
10517
        ;;
10518
        siemens)
10519
          ## LD is ld it makes a PLAMLIB
10520
          ## CC just makes a GrossModule.
10521
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10522
          reload_cmds='$CC -r -o $output$reload_objs'
10523
          hardcode_direct=no
10524
        ;;
10525
        motorola)
10526
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10527
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10528
        ;;
10529
      esac
10530
      runpath_var='LD_RUN_PATH'
10531
      hardcode_shlibpath_var=no
10532
      ;;
10533
 
10534
    sysv4.3*)
10535
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10536
      hardcode_shlibpath_var=no
10537
      export_dynamic_flag_spec='-Bexport'
10538
      ;;
10539
 
10540
    sysv4*MP*)
10541
      if test -d /usr/nec; then
10542
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10543
        hardcode_shlibpath_var=no
10544
        runpath_var=LD_RUN_PATH
10545
        hardcode_runpath_var=yes
10546
        ld_shlibs=yes
10547
      fi
10548
      ;;
10549
 
10550
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10551
      no_undefined_flag='${wl}-z,text'
10552
      archive_cmds_need_lc=no
10553
      hardcode_shlibpath_var=no
10554
      runpath_var='LD_RUN_PATH'
10555
 
10556
      if test "$GCC" = yes; then
10557
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10558
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10559
      else
10560
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10561
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10562
      fi
10563
      ;;
10564
 
10565
    sysv5* | sco3.2v5* | sco5v6*)
10566
      # Note: We can NOT use -z defs as we might desire, because we do not
10567
      # link with -lc, and that would cause any symbols used from libc to
10568
      # always be unresolved, which means just about no library would
10569
      # ever link correctly.  If we're not using GNU ld we use -z text
10570
      # though, which does catch some bad symbols but isn't as heavy-handed
10571
      # as -z defs.
10572
      no_undefined_flag='${wl}-z,text'
10573
      allow_undefined_flag='${wl}-z,nodefs'
10574
      archive_cmds_need_lc=no
10575
      hardcode_shlibpath_var=no
10576
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10577
      hardcode_libdir_separator=':'
10578
      link_all_deplibs=yes
10579
      export_dynamic_flag_spec='${wl}-Bexport'
10580
      runpath_var='LD_RUN_PATH'
10581
 
10582
      if test "$GCC" = yes; then
10583
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10584
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10585
      else
10586
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10587
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10588
      fi
10589
      ;;
10590
 
10591
    uts4*)
10592
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10593
      hardcode_libdir_flag_spec='-L$libdir'
10594
      hardcode_shlibpath_var=no
10595
      ;;
10596
 
10597
    *)
10598
      ld_shlibs=no
10599
      ;;
10600
    esac
10601
 
10602
    if test x$host_vendor = xsni; then
10603
      case $host in
10604
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10605
        export_dynamic_flag_spec='${wl}-Blargedynsym'
10606
        ;;
10607
      esac
10608
    fi
10609
  fi
10610
 
10611
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10612
$as_echo "$ld_shlibs" >&6; }
10613
test "$ld_shlibs" = no && can_build_shared=no
10614
 
10615
with_gnu_ld=$with_gnu_ld
10616
 
10617
 
10618
 
10619
 
10620
 
10621
 
10622
 
10623
 
10624
 
10625
 
10626
 
10627
 
10628
 
10629
 
10630
 
10631
#
10632
# Do we need to explicitly link libc?
10633
#
10634
case "x$archive_cmds_need_lc" in
10635
x|xyes)
10636
  # Assume -lc should be added
10637
  archive_cmds_need_lc=yes
10638
 
10639
  if test "$enable_shared" = yes && test "$GCC" = yes; then
10640
    case $archive_cmds in
10641
    *'~'*)
10642
      # FIXME: we may have to deal with multi-command sequences.
10643
      ;;
10644
    '$CC '*)
10645
      # Test whether the compiler implicitly links with -lc since on some
10646
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10647
      # to ld, don't add -lc before -lgcc.
10648
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10649
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10650
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
10651
  $as_echo_n "(cached) " >&6
10652
else
10653
  $RM conftest*
10654
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10655
 
10656
        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10657
  (eval $ac_compile) 2>&5
10658
  ac_status=$?
10659
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660
  (exit $ac_status); } 2>conftest.err; then
10661
          soname=conftest
10662
          lib=conftest
10663
          libobjs=conftest.$ac_objext
10664
          deplibs=
10665
          wl=$lt_prog_compiler_wl
10666
          pic_flag=$lt_prog_compiler_pic
10667
          compiler_flags=-v
10668
          linker_flags=-v
10669
          verstring=
10670
          output_objdir=.
10671
          libname=conftest
10672
          lt_save_allow_undefined_flag=$allow_undefined_flag
10673
          allow_undefined_flag=
10674
          if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10675
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10676
  ac_status=$?
10677
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678
  (exit $ac_status); }
10679
          then
10680
            lt_cv_archive_cmds_need_lc=no
10681
          else
10682
            lt_cv_archive_cmds_need_lc=yes
10683
          fi
10684
          allow_undefined_flag=$lt_save_allow_undefined_flag
10685
        else
10686
          cat conftest.err 1>&5
10687
        fi
10688
        $RM conftest*
10689
 
10690
fi
10691
{ $as_echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10692
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10693
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10694
      ;;
10695
    esac
10696
  fi
10697
  ;;
10698
esac
10699
 
10700
 
10701
 
10702
 
10703
 
10704
 
10705
 
10706
 
10707
 
10708
 
10709
 
10710
 
10711
 
10712
 
10713
 
10714
 
10715
 
10716
 
10717
 
10718
 
10719
 
10720
 
10721
 
10722
 
10723
 
10724
 
10725
 
10726
 
10727
 
10728
 
10729
 
10730
 
10731
 
10732
 
10733
 
10734
 
10735
 
10736
 
10737
 
10738
 
10739
 
10740
 
10741
 
10742
 
10743
 
10744
 
10745
 
10746
 
10747
 
10748
 
10749
 
10750
 
10751
 
10752
 
10753
 
10754
 
10755
 
10756
 
10757
 
10758
 
10759
 
10760
 
10761
 
10762
 
10763
 
10764
 
10765
 
10766
 
10767
 
10768
 
10769
 
10770
 
10771
 
10772
 
10773
 
10774
 
10775
 
10776
 
10777
 
10778
 
10779
 
10780
 
10781
 
10782
 
10783
 
10784
 
10785
 
10786
 
10787
 
10788
 
10789
 
10790
 
10791
 
10792
 
10793
 
10794
 
10795
 
10796
 
10797
 
10798
 
10799
 
10800
 
10801
 
10802
 
10803
 
10804
 
10805
 
10806
 
10807
 
10808
 
10809
 
10810
 
10811
 
10812
 
10813
 
10814
 
10815
 
10816
 
10817
 
10818
 
10819
 
10820
 
10821
 
10822
 
10823
 
10824
 
10825
 
10826
 
10827
 
10828
 
10829
 
10830
 
10831
 
10832
 
10833
 
10834
 
10835
 
10836
 
10837
 
10838
 
10839
 
10840
 
10841
 
10842
 
10843
 
10844
 
10845
 
10846
 
10847
 
10848
 
10849
 
10850
 
10851
 
10852
 
10853
 
10854
 
10855
 
10856
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10857
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10858
 
10859
if test "$GCC" = yes; then
10860
  case $host_os in
10861
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10862
    *) lt_awk_arg="/^libraries:/" ;;
10863
  esac
10864
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10865
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10866
    # if the path contains ";" then we assume it to be the separator
10867
    # otherwise default to the standard path separator (i.e. ":") - it is
10868
    # assumed that no part of a normal pathname contains ";" but that should
10869
    # okay in the real world where ";" in dirpaths is itself problematic.
10870
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10871
  else
10872
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10873
  fi
10874
  # Ok, now we have the path, separated by spaces, we can step through it
10875
  # and add multilib dir if necessary.
10876
  lt_tmp_lt_search_path_spec=
10877
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10878
  for lt_sys_path in $lt_search_path_spec; do
10879
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10880
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10881
    else
10882
      test -d "$lt_sys_path" && \
10883
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10884
    fi
10885
  done
10886
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10887
BEGIN {RS=" "; FS="/|\n";} {
10888
  lt_foo="";
10889
  lt_count=0;
10890
  for (lt_i = NF; lt_i > 0; lt_i--) {
10891
    if ($lt_i != "" && $lt_i != ".") {
10892
      if ($lt_i == "..") {
10893
        lt_count++;
10894
      } else {
10895
        if (lt_count == 0) {
10896
          lt_foo="/" $lt_i lt_foo;
10897
        } else {
10898
          lt_count--;
10899
        }
10900
      }
10901
    }
10902
  }
10903
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10904
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10905
}'`
10906
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10907
else
10908
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10909
fi
10910
library_names_spec=
10911
libname_spec='lib$name'
10912
soname_spec=
10913
shrext_cmds=".so"
10914
postinstall_cmds=
10915
postuninstall_cmds=
10916
finish_cmds=
10917
finish_eval=
10918
shlibpath_var=
10919
shlibpath_overrides_runpath=unknown
10920
version_type=none
10921
dynamic_linker="$host_os ld.so"
10922
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10923
need_lib_prefix=unknown
10924
hardcode_into_libs=no
10925
 
10926
# when you set need_version to no, make sure it does not cause -set_version
10927
# flags to be left without arguments
10928
need_version=unknown
10929
 
10930
case $host_os in
10931
aix3*)
10932
  version_type=linux
10933
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10934
  shlibpath_var=LIBPATH
10935
 
10936
  # AIX 3 has no versioning support, so we append a major version to the name.
10937
  soname_spec='${libname}${release}${shared_ext}$major'
10938
  ;;
10939
 
10940
aix[4-9]*)
10941
  version_type=linux
10942
  need_lib_prefix=no
10943
  need_version=no
10944
  hardcode_into_libs=yes
10945
  if test "$host_cpu" = ia64; then
10946
    # AIX 5 supports IA64
10947
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10948
    shlibpath_var=LD_LIBRARY_PATH
10949
  else
10950
    # With GCC up to 2.95.x, collect2 would create an import file
10951
    # for dependence libraries.  The import file would start with
10952
    # the line `#! .'.  This would cause the generated library to
10953
    # depend on `.', always an invalid library.  This was fixed in
10954
    # development snapshots of GCC prior to 3.0.
10955
    case $host_os in
10956
      aix4 | aix4.[01] | aix4.[01].*)
10957
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10958
           echo ' yes '
10959
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10960
        :
10961
      else
10962
        can_build_shared=no
10963
      fi
10964
      ;;
10965
    esac
10966
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10967
    # soname into executable. Probably we can add versioning support to
10968
    # collect2, so additional links can be useful in future.
10969
    if test "$aix_use_runtimelinking" = yes; then
10970
      # If using run time linking (on AIX 4.2 or later) use lib.so
10971
      # instead of lib.a to let people know that these are not
10972
      # typical AIX shared libraries.
10973
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974
    else
10975
      # We preserve .a as extension for shared libraries through AIX4.2
10976
      # and later when we are not doing run time linking.
10977
      library_names_spec='${libname}${release}.a $libname.a'
10978
      soname_spec='${libname}${release}${shared_ext}$major'
10979
    fi
10980
    shlibpath_var=LIBPATH
10981
  fi
10982
  ;;
10983
 
10984
amigaos*)
10985
  case $host_cpu in
10986
  powerpc)
10987
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10988
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10989
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990
    ;;
10991
  m68k)
10992
    library_names_spec='$libname.ixlibrary $libname.a'
10993
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10994
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10995
    ;;
10996
  esac
10997
  ;;
10998
 
10999
beos*)
11000
  library_names_spec='${libname}${shared_ext}'
11001
  dynamic_linker="$host_os ld.so"
11002
  shlibpath_var=LIBRARY_PATH
11003
  ;;
11004
 
11005
bsdi[45]*)
11006
  version_type=linux
11007
  need_version=no
11008
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009
  soname_spec='${libname}${release}${shared_ext}$major'
11010
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11011
  shlibpath_var=LD_LIBRARY_PATH
11012
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11013
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11014
  # the default ld.so.conf also contains /usr/contrib/lib and
11015
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11016
  # libtool to hard-code these into programs
11017
  ;;
11018
 
11019
cygwin* | mingw* | pw32* | cegcc*)
11020
  version_type=windows
11021
  shrext_cmds=".dll"
11022
  need_version=no
11023
  need_lib_prefix=no
11024
 
11025
  case $GCC,$host_os in
11026
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11027
    library_names_spec='$libname.dll.a'
11028
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11029
    postinstall_cmds='base_file=`basename \${file}`~
11030
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11031
      dldir=$destdir/`dirname \$dlpath`~
11032
      test -d \$dldir || mkdir -p \$dldir~
11033
      $install_prog $dir/$dlname \$dldir/$dlname~
11034
      chmod a+x \$dldir/$dlname~
11035
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11036
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11037
      fi'
11038
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11039
      dlpath=$dir/\$dldll~
11040
       $RM \$dlpath'
11041
    shlibpath_overrides_runpath=yes
11042
 
11043
    case $host_os in
11044
    cygwin*)
11045
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11046
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11047
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11048
      ;;
11049
    mingw* | cegcc*)
11050
      # MinGW DLLs use traditional 'lib' prefix
11051
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11052
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11053
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11054
        # It is most probably a Windows format PATH printed by
11055
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11056
        # path with ; separators, and with drive letters. We can handle the
11057
        # drive letters (cygwin fileutils understands them), so leave them,
11058
        # especially as we might pass files found there to a mingw objdump,
11059
        # which wouldn't understand a cygwinified path. Ahh.
11060
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11061
      else
11062
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11063
      fi
11064
      ;;
11065
    pw32*)
11066
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11067
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11068
      ;;
11069
    esac
11070
    ;;
11071
 
11072
  *)
11073
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11074
    ;;
11075
  esac
11076
  dynamic_linker='Win32 ld.exe'
11077
  # FIXME: first we should search . and the directory the executable is in
11078
  shlibpath_var=PATH
11079
  ;;
11080
 
11081
darwin* | rhapsody*)
11082
  dynamic_linker="$host_os dyld"
11083
  version_type=darwin
11084
  need_lib_prefix=no
11085
  need_version=no
11086
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11087
  soname_spec='${libname}${release}${major}$shared_ext'
11088
  shlibpath_overrides_runpath=yes
11089
  shlibpath_var=DYLD_LIBRARY_PATH
11090
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11091
 
11092
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11093
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11094
  ;;
11095
 
11096
dgux*)
11097
  version_type=linux
11098
  need_lib_prefix=no
11099
  need_version=no
11100
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11101
  soname_spec='${libname}${release}${shared_ext}$major'
11102
  shlibpath_var=LD_LIBRARY_PATH
11103
  ;;
11104
 
11105
freebsd1*)
11106
  dynamic_linker=no
11107
  ;;
11108
 
11109
freebsd* | dragonfly*)
11110
  # DragonFly does not have aout.  When/if they implement a new
11111
  # versioning mechanism, adjust this.
11112
  if test -x /usr/bin/objformat; then
11113
    objformat=`/usr/bin/objformat`
11114
  else
11115
    case $host_os in
11116
    freebsd[123]*) objformat=aout ;;
11117
    *) objformat=elf ;;
11118
    esac
11119
  fi
11120
  version_type=freebsd-$objformat
11121
  case $version_type in
11122
    freebsd-elf*)
11123
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11124
      need_version=no
11125
      need_lib_prefix=no
11126
      ;;
11127
    freebsd-*)
11128
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11129
      need_version=yes
11130
      ;;
11131
  esac
11132
  shlibpath_var=LD_LIBRARY_PATH
11133
  case $host_os in
11134
  freebsd2*)
11135
    shlibpath_overrides_runpath=yes
11136
    ;;
11137
  freebsd3.[01]* | freebsdelf3.[01]*)
11138
    shlibpath_overrides_runpath=yes
11139
    hardcode_into_libs=yes
11140
    ;;
11141
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11142
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11143
    shlibpath_overrides_runpath=no
11144
    hardcode_into_libs=yes
11145
    ;;
11146
  *) # from 4.6 on, and DragonFly
11147
    shlibpath_overrides_runpath=yes
11148
    hardcode_into_libs=yes
11149
    ;;
11150
  esac
11151
  ;;
11152
 
11153
gnu*)
11154
  version_type=linux
11155
  need_lib_prefix=no
11156
  need_version=no
11157
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11158
  soname_spec='${libname}${release}${shared_ext}$major'
11159
  shlibpath_var=LD_LIBRARY_PATH
11160
  hardcode_into_libs=yes
11161
  ;;
11162
 
11163
hpux9* | hpux10* | hpux11*)
11164
  # Give a soname corresponding to the major version so that dld.sl refuses to
11165
  # link against other versions.
11166
  version_type=sunos
11167
  need_lib_prefix=no
11168
  need_version=no
11169
  case $host_cpu in
11170
  ia64*)
11171
    shrext_cmds='.so'
11172
    hardcode_into_libs=yes
11173
    dynamic_linker="$host_os dld.so"
11174
    shlibpath_var=LD_LIBRARY_PATH
11175
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11176
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177
    soname_spec='${libname}${release}${shared_ext}$major'
11178
    if test "X$HPUX_IA64_MODE" = X32; then
11179
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11180
    else
11181
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11182
    fi
11183
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11184
    ;;
11185
  hppa*64*)
11186
    shrext_cmds='.sl'
11187
    hardcode_into_libs=yes
11188
    dynamic_linker="$host_os dld.sl"
11189
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11190
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11191
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192
    soname_spec='${libname}${release}${shared_ext}$major'
11193
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11194
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11195
    ;;
11196
  *)
11197
    shrext_cmds='.sl'
11198
    dynamic_linker="$host_os dld.sl"
11199
    shlibpath_var=SHLIB_PATH
11200
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11201
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202
    soname_spec='${libname}${release}${shared_ext}$major'
11203
    ;;
11204
  esac
11205
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11206
  postinstall_cmds='chmod 555 $lib'
11207
  ;;
11208
 
11209
interix[3-9]*)
11210
  version_type=linux
11211
  need_lib_prefix=no
11212
  need_version=no
11213
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11214
  soname_spec='${libname}${release}${shared_ext}$major'
11215
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11216
  shlibpath_var=LD_LIBRARY_PATH
11217
  shlibpath_overrides_runpath=no
11218
  hardcode_into_libs=yes
11219
  ;;
11220
 
11221
irix5* | irix6* | nonstopux*)
11222
  case $host_os in
11223
    nonstopux*) version_type=nonstopux ;;
11224
    *)
11225
        if test "$lt_cv_prog_gnu_ld" = yes; then
11226
                version_type=linux
11227
        else
11228
                version_type=irix
11229
        fi ;;
11230
  esac
11231
  need_lib_prefix=no
11232
  need_version=no
11233
  soname_spec='${libname}${release}${shared_ext}$major'
11234
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11235
  case $host_os in
11236
  irix5* | nonstopux*)
11237
    libsuff= shlibsuff=
11238
    ;;
11239
  *)
11240
    case $LD in # libtool.m4 will add one of these switches to LD
11241
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11242
      libsuff= shlibsuff= libmagic=32-bit;;
11243
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11244
      libsuff=32 shlibsuff=N32 libmagic=N32;;
11245
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11246
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11247
    *) libsuff= shlibsuff= libmagic=never-match;;
11248
    esac
11249
    ;;
11250
  esac
11251
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11252
  shlibpath_overrides_runpath=no
11253
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11254
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11255
  hardcode_into_libs=yes
11256
  ;;
11257
 
11258
# No shared lib support for Linux oldld, aout, or coff.
11259
linux*oldld* | linux*aout* | linux*coff*)
11260
  dynamic_linker=no
11261
  ;;
11262
 
11263
# This must be Linux ELF.
11264
linux* | k*bsd*-gnu | kopensolaris*-gnu)
11265
  version_type=linux
11266
  need_lib_prefix=no
11267
  need_version=no
11268
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11269
  soname_spec='${libname}${release}${shared_ext}$major'
11270
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11271
  shlibpath_var=LD_LIBRARY_PATH
11272
  shlibpath_overrides_runpath=no
11273
 
11274
  # Some binutils ld are patched to set DT_RUNPATH
11275
  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
11276
  $as_echo_n "(cached) " >&6
11277
else
11278
  lt_cv_shlibpath_overrides_runpath=no
11279
    save_LDFLAGS=$LDFLAGS
11280
    save_libdir=$libdir
11281
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11282
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11283
    cat >conftest.$ac_ext <<_ACEOF
11284
/* confdefs.h.  */
11285
_ACEOF
11286
cat confdefs.h >>conftest.$ac_ext
11287
cat >>conftest.$ac_ext <<_ACEOF
11288
/* end confdefs.h.  */
11289
 
11290
int
11291
main ()
11292
{
11293
 
11294
  ;
11295
  return 0;
11296
}
11297
_ACEOF
11298
rm -f conftest.$ac_objext conftest$ac_exeext
11299
if { (ac_try="$ac_link"
11300
case "(($ac_try" in
11301
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302
  *) ac_try_echo=$ac_try;;
11303
esac
11304
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11305
$as_echo "$ac_try_echo") >&5
11306
  (eval "$ac_link") 2>conftest.er1
11307
  ac_status=$?
11308
  grep -v '^ *+' conftest.er1 >conftest.err
11309
  rm -f conftest.er1
11310
  cat conftest.err >&5
11311
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312
  (exit $ac_status); } && {
11313
         test -z "$ac_c_werror_flag" ||
11314
         test ! -s conftest.err
11315
       } && test -s conftest$ac_exeext && {
11316
         test "$cross_compiling" = yes ||
11317
         $as_test_x conftest$ac_exeext
11318
       }; then
11319
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11320
  lt_cv_shlibpath_overrides_runpath=yes
11321
fi
11322
 
11323
else
11324
  $as_echo "$as_me: failed program was:" >&5
11325
sed 's/^/| /' conftest.$ac_ext >&5
11326
 
11327
 
11328
fi
11329
 
11330
rm -rf conftest.dSYM
11331
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11332
      conftest$ac_exeext conftest.$ac_ext
11333
    LDFLAGS=$save_LDFLAGS
11334
    libdir=$save_libdir
11335
 
11336
fi
11337
 
11338
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11339
 
11340
  # This implies no fast_install, which is unacceptable.
11341
  # Some rework will be needed to allow for fast_install
11342
  # before this can be enabled.
11343
  hardcode_into_libs=yes
11344
 
11345
  # Append ld.so.conf contents to the search path
11346
  if test -f /etc/ld.so.conf; then
11347
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11348
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11349
  fi
11350
 
11351
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11352
  # powerpc, because MkLinux only supported shared libraries with the
11353
  # GNU dynamic linker.  Since this was broken with cross compilers,
11354
  # most powerpc-linux boxes support dynamic linking these days and
11355
  # people can always --disable-shared, the test was removed, and we
11356
  # assume the GNU/Linux dynamic linker is in use.
11357
  dynamic_linker='GNU/Linux ld.so'
11358
  ;;
11359
 
11360
netbsd*)
11361
  version_type=sunos
11362
  need_lib_prefix=no
11363
  need_version=no
11364
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11365
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11366
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11367
    dynamic_linker='NetBSD (a.out) ld.so'
11368
  else
11369
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11370
    soname_spec='${libname}${release}${shared_ext}$major'
11371
    dynamic_linker='NetBSD ld.elf_so'
11372
  fi
11373
  shlibpath_var=LD_LIBRARY_PATH
11374
  shlibpath_overrides_runpath=yes
11375
  hardcode_into_libs=yes
11376
  ;;
11377
 
11378
newsos6)
11379
  version_type=linux
11380
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11381
  shlibpath_var=LD_LIBRARY_PATH
11382
  shlibpath_overrides_runpath=yes
11383
  ;;
11384
 
11385
*nto* | *qnx*)
11386
  version_type=qnx
11387
  need_lib_prefix=no
11388
  need_version=no
11389
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11390
  soname_spec='${libname}${release}${shared_ext}$major'
11391
  shlibpath_var=LD_LIBRARY_PATH
11392
  shlibpath_overrides_runpath=no
11393
  hardcode_into_libs=yes
11394
  dynamic_linker='ldqnx.so'
11395
  ;;
11396
 
11397
openbsd*)
11398
  version_type=sunos
11399
  sys_lib_dlsearch_path_spec="/usr/lib"
11400
  need_lib_prefix=no
11401
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11402
  case $host_os in
11403
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11404
    *)                          need_version=no  ;;
11405
  esac
11406
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11407
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11408
  shlibpath_var=LD_LIBRARY_PATH
11409
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11410
    case $host_os in
11411
      openbsd2.[89] | openbsd2.[89].*)
11412
        shlibpath_overrides_runpath=no
11413
        ;;
11414
      *)
11415
        shlibpath_overrides_runpath=yes
11416
        ;;
11417
      esac
11418
  else
11419
    shlibpath_overrides_runpath=yes
11420
  fi
11421
  ;;
11422
 
11423
os2*)
11424
  libname_spec='$name'
11425
  shrext_cmds=".dll"
11426
  need_lib_prefix=no
11427
  library_names_spec='$libname${shared_ext} $libname.a'
11428
  dynamic_linker='OS/2 ld.exe'
11429
  shlibpath_var=LIBPATH
11430
  ;;
11431
 
11432
osf3* | osf4* | osf5*)
11433
  version_type=osf
11434
  need_lib_prefix=no
11435
  need_version=no
11436
  soname_spec='${libname}${release}${shared_ext}$major'
11437
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11438
  shlibpath_var=LD_LIBRARY_PATH
11439
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11440
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11441
  ;;
11442
 
11443
rdos*)
11444
  dynamic_linker=no
11445
  ;;
11446
 
11447
solaris*)
11448
  version_type=linux
11449
  need_lib_prefix=no
11450
  need_version=no
11451
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11452
  soname_spec='${libname}${release}${shared_ext}$major'
11453
  shlibpath_var=LD_LIBRARY_PATH
11454
  shlibpath_overrides_runpath=yes
11455
  hardcode_into_libs=yes
11456
  # ldd complains unless libraries are executable
11457
  postinstall_cmds='chmod +x $lib'
11458
  ;;
11459
 
11460
sunos4*)
11461
  version_type=sunos
11462
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11463
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11464
  shlibpath_var=LD_LIBRARY_PATH
11465
  shlibpath_overrides_runpath=yes
11466
  if test "$with_gnu_ld" = yes; then
11467
    need_lib_prefix=no
11468
  fi
11469
  need_version=yes
11470
  ;;
11471
 
11472
sysv4 | sysv4.3*)
11473
  version_type=linux
11474
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11475
  soname_spec='${libname}${release}${shared_ext}$major'
11476
  shlibpath_var=LD_LIBRARY_PATH
11477
  case $host_vendor in
11478
    sni)
11479
      shlibpath_overrides_runpath=no
11480
      need_lib_prefix=no
11481
      runpath_var=LD_RUN_PATH
11482
      ;;
11483
    siemens)
11484
      need_lib_prefix=no
11485
      ;;
11486
    motorola)
11487
      need_lib_prefix=no
11488
      need_version=no
11489
      shlibpath_overrides_runpath=no
11490
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11491
      ;;
11492
  esac
11493
  ;;
11494
 
11495
sysv4*MP*)
11496
  if test -d /usr/nec ;then
11497
    version_type=linux
11498
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11499
    soname_spec='$libname${shared_ext}.$major'
11500
    shlibpath_var=LD_LIBRARY_PATH
11501
  fi
11502
  ;;
11503
 
11504
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11505
  version_type=freebsd-elf
11506
  need_lib_prefix=no
11507
  need_version=no
11508
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11509
  soname_spec='${libname}${release}${shared_ext}$major'
11510
  shlibpath_var=LD_LIBRARY_PATH
11511
  shlibpath_overrides_runpath=yes
11512
  hardcode_into_libs=yes
11513
  if test "$with_gnu_ld" = yes; then
11514
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11515
  else
11516
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11517
    case $host_os in
11518
      sco3.2v5*)
11519
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11520
        ;;
11521
    esac
11522
  fi
11523
  sys_lib_dlsearch_path_spec='/usr/lib'
11524
  ;;
11525
 
11526
tpf*)
11527
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11528
  version_type=linux
11529
  need_lib_prefix=no
11530
  need_version=no
11531
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11532
  shlibpath_var=LD_LIBRARY_PATH
11533
  shlibpath_overrides_runpath=no
11534
  hardcode_into_libs=yes
11535
  ;;
11536
 
11537
uts4*)
11538
  version_type=linux
11539
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540
  soname_spec='${libname}${release}${shared_ext}$major'
11541
  shlibpath_var=LD_LIBRARY_PATH
11542
  ;;
11543
 
11544
*)
11545
  dynamic_linker=no
11546
  ;;
11547
esac
11548
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11549
$as_echo "$dynamic_linker" >&6; }
11550
test "$dynamic_linker" = no && can_build_shared=no
11551
 
11552
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11553
if test "$GCC" = yes; then
11554
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11555
fi
11556
 
11557
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11558
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11559
fi
11560
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11561
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11562
fi
11563
 
11564
 
11565
 
11566
 
11567
 
11568
 
11569
 
11570
 
11571
 
11572
 
11573
 
11574
 
11575
 
11576
 
11577
 
11578
 
11579
 
11580
 
11581
 
11582
 
11583
 
11584
 
11585
 
11586
 
11587
 
11588
 
11589
 
11590
 
11591
 
11592
 
11593
 
11594
 
11595
 
11596
 
11597
 
11598
 
11599
 
11600
 
11601
 
11602
 
11603
 
11604
 
11605
 
11606
 
11607
 
11608
 
11609
 
11610
 
11611
 
11612
 
11613
 
11614
 
11615
 
11616
 
11617
 
11618
 
11619
 
11620
 
11621
 
11622
 
11623
 
11624
 
11625
 
11626
 
11627
 
11628
 
11629
 
11630
 
11631
 
11632
 
11633
 
11634
 
11635
 
11636
 
11637
 
11638
 
11639
 
11640
 
11641
 
11642
 
11643
 
11644
 
11645
 
11646
 
11647
 
11648
 
11649
 
11650
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11651
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11652
hardcode_action=
11653
if test -n "$hardcode_libdir_flag_spec" ||
11654
   test -n "$runpath_var" ||
11655
   test "X$hardcode_automatic" = "Xyes" ; then
11656
 
11657
  # We can hardcode non-existent directories.
11658
  if test "$hardcode_direct" != no &&
11659
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11660
     # have to relink, otherwise we might link with an installed library
11661
     # when we should be linking with a yet-to-be-installed one
11662
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11663
     test "$hardcode_minus_L" != no; then
11664
    # Linking always hardcodes the temporary library directory.
11665
    hardcode_action=relink
11666
  else
11667
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11668
    hardcode_action=immediate
11669
  fi
11670
else
11671
  # We cannot hardcode anything, or else we can only hardcode existing
11672
  # directories.
11673
  hardcode_action=unsupported
11674
fi
11675
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11676
$as_echo "$hardcode_action" >&6; }
11677
 
11678
if test "$hardcode_action" = relink ||
11679
   test "$inherit_rpath" = yes; then
11680
  # Fast installation is not supported
11681
  enable_fast_install=no
11682
elif test "$shlibpath_overrides_runpath" = yes ||
11683
     test "$enable_shared" = no; then
11684
  # Fast installation is not necessary
11685
  enable_fast_install=needless
11686
fi
11687
 
11688
 
11689
 
11690
 
11691
 
11692
 
11693
  if test "x$enable_dlopen" != xyes; then
11694
  enable_dlopen=unknown
11695
  enable_dlopen_self=unknown
11696
  enable_dlopen_self_static=unknown
11697
else
11698
  lt_cv_dlopen=no
11699
  lt_cv_dlopen_libs=
11700
 
11701
  case $host_os in
11702
  beos*)
11703
    lt_cv_dlopen="load_add_on"
11704
    lt_cv_dlopen_libs=
11705
    lt_cv_dlopen_self=yes
11706
    ;;
11707
 
11708
  mingw* | pw32* | cegcc*)
11709
    lt_cv_dlopen="LoadLibrary"
11710
    lt_cv_dlopen_libs=
11711
    ;;
11712
 
11713
  cygwin*)
11714
    lt_cv_dlopen="dlopen"
11715
    lt_cv_dlopen_libs=
11716
    ;;
11717
 
11718
  darwin*)
11719
  # if libdl is installed we need to link against it
11720
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11721
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11722
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11723
  $as_echo_n "(cached) " >&6
11724
else
11725
  ac_check_lib_save_LIBS=$LIBS
11726
LIBS="-ldl  $LIBS"
11727
cat >conftest.$ac_ext <<_ACEOF
11728
/* confdefs.h.  */
11729
_ACEOF
11730
cat confdefs.h >>conftest.$ac_ext
11731
cat >>conftest.$ac_ext <<_ACEOF
11732
/* end confdefs.h.  */
11733
 
11734
/* Override any GCC internal prototype to avoid an error.
11735
   Use char because int might match the return type of a GCC
11736
   builtin and then its argument prototype would still apply.  */
11737
#ifdef __cplusplus
11738
extern "C"
11739
#endif
11740
char dlopen ();
11741
int
11742
main ()
11743
{
11744
return dlopen ();
11745
  ;
11746
  return 0;
11747
}
11748
_ACEOF
11749
rm -f conftest.$ac_objext conftest$ac_exeext
11750
if { (ac_try="$ac_link"
11751
case "(($ac_try" in
11752
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753
  *) ac_try_echo=$ac_try;;
11754
esac
11755
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11756
$as_echo "$ac_try_echo") >&5
11757
  (eval "$ac_link") 2>conftest.er1
11758
  ac_status=$?
11759
  grep -v '^ *+' conftest.er1 >conftest.err
11760
  rm -f conftest.er1
11761
  cat conftest.err >&5
11762
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763
  (exit $ac_status); } && {
11764
         test -z "$ac_c_werror_flag" ||
11765
         test ! -s conftest.err
11766
       } && test -s conftest$ac_exeext && {
11767
         test "$cross_compiling" = yes ||
11768
         $as_test_x conftest$ac_exeext
11769
       }; then
11770
  ac_cv_lib_dl_dlopen=yes
11771
else
11772
  $as_echo "$as_me: failed program was:" >&5
11773
sed 's/^/| /' conftest.$ac_ext >&5
11774
 
11775
        ac_cv_lib_dl_dlopen=no
11776
fi
11777
 
11778
rm -rf conftest.dSYM
11779
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11780
      conftest$ac_exeext conftest.$ac_ext
11781
LIBS=$ac_check_lib_save_LIBS
11782
fi
11783
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11784
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11785
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11786
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11787
else
11788
 
11789
    lt_cv_dlopen="dyld"
11790
    lt_cv_dlopen_libs=
11791
    lt_cv_dlopen_self=yes
11792
 
11793
fi
11794
 
11795
    ;;
11796
 
11797
  *)
11798
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11799
$as_echo_n "checking for shl_load... " >&6; }
11800
if test "${ac_cv_func_shl_load+set}" = set; then
11801
  $as_echo_n "(cached) " >&6
11802
else
11803
  cat >conftest.$ac_ext <<_ACEOF
11804
/* confdefs.h.  */
11805
_ACEOF
11806
cat confdefs.h >>conftest.$ac_ext
11807
cat >>conftest.$ac_ext <<_ACEOF
11808
/* end confdefs.h.  */
11809
/* Define shl_load to an innocuous variant, in case  declares shl_load.
11810
   For example, HP-UX 11i  declares gettimeofday.  */
11811
#define shl_load innocuous_shl_load
11812
 
11813
/* System header to define __stub macros and hopefully few prototypes,
11814
    which can conflict with char shl_load (); below.
11815
    Prefer  to  if __STDC__ is defined, since
11816
     exists even on freestanding compilers.  */
11817
 
11818
#ifdef __STDC__
11819
# include 
11820
#else
11821
# include 
11822
#endif
11823
 
11824
#undef shl_load
11825
 
11826
/* Override any GCC internal prototype to avoid an error.
11827
   Use char because int might match the return type of a GCC
11828
   builtin and then its argument prototype would still apply.  */
11829
#ifdef __cplusplus
11830
extern "C"
11831
#endif
11832
char shl_load ();
11833
/* The GNU C library defines this for functions which it implements
11834
    to always fail with ENOSYS.  Some functions are actually named
11835
    something starting with __ and the normal name is an alias.  */
11836
#if defined __stub_shl_load || defined __stub___shl_load
11837
choke me
11838
#endif
11839
 
11840
int
11841
main ()
11842
{
11843
return shl_load ();
11844
  ;
11845
  return 0;
11846
}
11847
_ACEOF
11848
rm -f conftest.$ac_objext conftest$ac_exeext
11849
if { (ac_try="$ac_link"
11850
case "(($ac_try" in
11851
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852
  *) ac_try_echo=$ac_try;;
11853
esac
11854
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11855
$as_echo "$ac_try_echo") >&5
11856
  (eval "$ac_link") 2>conftest.er1
11857
  ac_status=$?
11858
  grep -v '^ *+' conftest.er1 >conftest.err
11859
  rm -f conftest.er1
11860
  cat conftest.err >&5
11861
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862
  (exit $ac_status); } && {
11863
         test -z "$ac_c_werror_flag" ||
11864
         test ! -s conftest.err
11865
       } && test -s conftest$ac_exeext && {
11866
         test "$cross_compiling" = yes ||
11867
         $as_test_x conftest$ac_exeext
11868
       }; then
11869
  ac_cv_func_shl_load=yes
11870
else
11871
  $as_echo "$as_me: failed program was:" >&5
11872
sed 's/^/| /' conftest.$ac_ext >&5
11873
 
11874
        ac_cv_func_shl_load=no
11875
fi
11876
 
11877
rm -rf conftest.dSYM
11878
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11879
      conftest$ac_exeext conftest.$ac_ext
11880
fi
11881
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11882
$as_echo "$ac_cv_func_shl_load" >&6; }
11883
if test "x$ac_cv_func_shl_load" = x""yes; then
11884
  lt_cv_dlopen="shl_load"
11885
else
11886
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11887
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11888
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11889
  $as_echo_n "(cached) " >&6
11890
else
11891
  ac_check_lib_save_LIBS=$LIBS
11892
LIBS="-ldld  $LIBS"
11893
cat >conftest.$ac_ext <<_ACEOF
11894
/* confdefs.h.  */
11895
_ACEOF
11896
cat confdefs.h >>conftest.$ac_ext
11897
cat >>conftest.$ac_ext <<_ACEOF
11898
/* end confdefs.h.  */
11899
 
11900
/* Override any GCC internal prototype to avoid an error.
11901
   Use char because int might match the return type of a GCC
11902
   builtin and then its argument prototype would still apply.  */
11903
#ifdef __cplusplus
11904
extern "C"
11905
#endif
11906
char shl_load ();
11907
int
11908
main ()
11909
{
11910
return shl_load ();
11911
  ;
11912
  return 0;
11913
}
11914
_ACEOF
11915
rm -f conftest.$ac_objext conftest$ac_exeext
11916
if { (ac_try="$ac_link"
11917
case "(($ac_try" in
11918
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919
  *) ac_try_echo=$ac_try;;
11920
esac
11921
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11922
$as_echo "$ac_try_echo") >&5
11923
  (eval "$ac_link") 2>conftest.er1
11924
  ac_status=$?
11925
  grep -v '^ *+' conftest.er1 >conftest.err
11926
  rm -f conftest.er1
11927
  cat conftest.err >&5
11928
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929
  (exit $ac_status); } && {
11930
         test -z "$ac_c_werror_flag" ||
11931
         test ! -s conftest.err
11932
       } && test -s conftest$ac_exeext && {
11933
         test "$cross_compiling" = yes ||
11934
         $as_test_x conftest$ac_exeext
11935
       }; then
11936
  ac_cv_lib_dld_shl_load=yes
11937
else
11938
  $as_echo "$as_me: failed program was:" >&5
11939
sed 's/^/| /' conftest.$ac_ext >&5
11940
 
11941
        ac_cv_lib_dld_shl_load=no
11942
fi
11943
 
11944
rm -rf conftest.dSYM
11945
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11946
      conftest$ac_exeext conftest.$ac_ext
11947
LIBS=$ac_check_lib_save_LIBS
11948
fi
11949
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11950
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11951
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11952
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11953
else
11954
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11955
$as_echo_n "checking for dlopen... " >&6; }
11956
if test "${ac_cv_func_dlopen+set}" = set; then
11957
  $as_echo_n "(cached) " >&6
11958
else
11959
  cat >conftest.$ac_ext <<_ACEOF
11960
/* confdefs.h.  */
11961
_ACEOF
11962
cat confdefs.h >>conftest.$ac_ext
11963
cat >>conftest.$ac_ext <<_ACEOF
11964
/* end confdefs.h.  */
11965
/* Define dlopen to an innocuous variant, in case  declares dlopen.
11966
   For example, HP-UX 11i  declares gettimeofday.  */
11967
#define dlopen innocuous_dlopen
11968
 
11969
/* System header to define __stub macros and hopefully few prototypes,
11970
    which can conflict with char dlopen (); below.
11971
    Prefer  to  if __STDC__ is defined, since
11972
     exists even on freestanding compilers.  */
11973
 
11974
#ifdef __STDC__
11975
# include 
11976
#else
11977
# include 
11978
#endif
11979
 
11980
#undef dlopen
11981
 
11982
/* Override any GCC internal prototype to avoid an error.
11983
   Use char because int might match the return type of a GCC
11984
   builtin and then its argument prototype would still apply.  */
11985
#ifdef __cplusplus
11986
extern "C"
11987
#endif
11988
char dlopen ();
11989
/* The GNU C library defines this for functions which it implements
11990
    to always fail with ENOSYS.  Some functions are actually named
11991
    something starting with __ and the normal name is an alias.  */
11992
#if defined __stub_dlopen || defined __stub___dlopen
11993
choke me
11994
#endif
11995
 
11996
int
11997
main ()
11998
{
11999
return dlopen ();
12000
  ;
12001
  return 0;
12002
}
12003
_ACEOF
12004
rm -f conftest.$ac_objext conftest$ac_exeext
12005
if { (ac_try="$ac_link"
12006
case "(($ac_try" in
12007
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008
  *) ac_try_echo=$ac_try;;
12009
esac
12010
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12011
$as_echo "$ac_try_echo") >&5
12012
  (eval "$ac_link") 2>conftest.er1
12013
  ac_status=$?
12014
  grep -v '^ *+' conftest.er1 >conftest.err
12015
  rm -f conftest.er1
12016
  cat conftest.err >&5
12017
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018
  (exit $ac_status); } && {
12019
         test -z "$ac_c_werror_flag" ||
12020
         test ! -s conftest.err
12021
       } && test -s conftest$ac_exeext && {
12022
         test "$cross_compiling" = yes ||
12023
         $as_test_x conftest$ac_exeext
12024
       }; then
12025
  ac_cv_func_dlopen=yes
12026
else
12027
  $as_echo "$as_me: failed program was:" >&5
12028
sed 's/^/| /' conftest.$ac_ext >&5
12029
 
12030
        ac_cv_func_dlopen=no
12031
fi
12032
 
12033
rm -rf conftest.dSYM
12034
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12035
      conftest$ac_exeext conftest.$ac_ext
12036
fi
12037
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12038
$as_echo "$ac_cv_func_dlopen" >&6; }
12039
if test "x$ac_cv_func_dlopen" = x""yes; then
12040
  lt_cv_dlopen="dlopen"
12041
else
12042
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12043
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12044
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12045
  $as_echo_n "(cached) " >&6
12046
else
12047
  ac_check_lib_save_LIBS=$LIBS
12048
LIBS="-ldl  $LIBS"
12049
cat >conftest.$ac_ext <<_ACEOF
12050
/* confdefs.h.  */
12051
_ACEOF
12052
cat confdefs.h >>conftest.$ac_ext
12053
cat >>conftest.$ac_ext <<_ACEOF
12054
/* end confdefs.h.  */
12055
 
12056
/* Override any GCC internal prototype to avoid an error.
12057
   Use char because int might match the return type of a GCC
12058
   builtin and then its argument prototype would still apply.  */
12059
#ifdef __cplusplus
12060
extern "C"
12061
#endif
12062
char dlopen ();
12063
int
12064
main ()
12065
{
12066
return dlopen ();
12067
  ;
12068
  return 0;
12069
}
12070
_ACEOF
12071
rm -f conftest.$ac_objext conftest$ac_exeext
12072
if { (ac_try="$ac_link"
12073
case "(($ac_try" in
12074
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075
  *) ac_try_echo=$ac_try;;
12076
esac
12077
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12078
$as_echo "$ac_try_echo") >&5
12079
  (eval "$ac_link") 2>conftest.er1
12080
  ac_status=$?
12081
  grep -v '^ *+' conftest.er1 >conftest.err
12082
  rm -f conftest.er1
12083
  cat conftest.err >&5
12084
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085
  (exit $ac_status); } && {
12086
         test -z "$ac_c_werror_flag" ||
12087
         test ! -s conftest.err
12088
       } && test -s conftest$ac_exeext && {
12089
         test "$cross_compiling" = yes ||
12090
         $as_test_x conftest$ac_exeext
12091
       }; then
12092
  ac_cv_lib_dl_dlopen=yes
12093
else
12094
  $as_echo "$as_me: failed program was:" >&5
12095
sed 's/^/| /' conftest.$ac_ext >&5
12096
 
12097
        ac_cv_lib_dl_dlopen=no
12098
fi
12099
 
12100
rm -rf conftest.dSYM
12101
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12102
      conftest$ac_exeext conftest.$ac_ext
12103
LIBS=$ac_check_lib_save_LIBS
12104
fi
12105
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12106
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12107
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12108
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12109
else
12110
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12111
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12112
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12113
  $as_echo_n "(cached) " >&6
12114
else
12115
  ac_check_lib_save_LIBS=$LIBS
12116
LIBS="-lsvld  $LIBS"
12117
cat >conftest.$ac_ext <<_ACEOF
12118
/* confdefs.h.  */
12119
_ACEOF
12120
cat confdefs.h >>conftest.$ac_ext
12121
cat >>conftest.$ac_ext <<_ACEOF
12122
/* end confdefs.h.  */
12123
 
12124
/* Override any GCC internal prototype to avoid an error.
12125
   Use char because int might match the return type of a GCC
12126
   builtin and then its argument prototype would still apply.  */
12127
#ifdef __cplusplus
12128
extern "C"
12129
#endif
12130
char dlopen ();
12131
int
12132
main ()
12133
{
12134
return dlopen ();
12135
  ;
12136
  return 0;
12137
}
12138
_ACEOF
12139
rm -f conftest.$ac_objext conftest$ac_exeext
12140
if { (ac_try="$ac_link"
12141
case "(($ac_try" in
12142
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143
  *) ac_try_echo=$ac_try;;
12144
esac
12145
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12146
$as_echo "$ac_try_echo") >&5
12147
  (eval "$ac_link") 2>conftest.er1
12148
  ac_status=$?
12149
  grep -v '^ *+' conftest.er1 >conftest.err
12150
  rm -f conftest.er1
12151
  cat conftest.err >&5
12152
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153
  (exit $ac_status); } && {
12154
         test -z "$ac_c_werror_flag" ||
12155
         test ! -s conftest.err
12156
       } && test -s conftest$ac_exeext && {
12157
         test "$cross_compiling" = yes ||
12158
         $as_test_x conftest$ac_exeext
12159
       }; then
12160
  ac_cv_lib_svld_dlopen=yes
12161
else
12162
  $as_echo "$as_me: failed program was:" >&5
12163
sed 's/^/| /' conftest.$ac_ext >&5
12164
 
12165
        ac_cv_lib_svld_dlopen=no
12166
fi
12167
 
12168
rm -rf conftest.dSYM
12169
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12170
      conftest$ac_exeext conftest.$ac_ext
12171
LIBS=$ac_check_lib_save_LIBS
12172
fi
12173
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12174
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12175
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12176
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12177
else
12178
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12179
$as_echo_n "checking for dld_link in -ldld... " >&6; }
12180
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12181
  $as_echo_n "(cached) " >&6
12182
else
12183
  ac_check_lib_save_LIBS=$LIBS
12184
LIBS="-ldld  $LIBS"
12185
cat >conftest.$ac_ext <<_ACEOF
12186
/* confdefs.h.  */
12187
_ACEOF
12188
cat confdefs.h >>conftest.$ac_ext
12189
cat >>conftest.$ac_ext <<_ACEOF
12190
/* end confdefs.h.  */
12191
 
12192
/* Override any GCC internal prototype to avoid an error.
12193
   Use char because int might match the return type of a GCC
12194
   builtin and then its argument prototype would still apply.  */
12195
#ifdef __cplusplus
12196
extern "C"
12197
#endif
12198
char dld_link ();
12199
int
12200
main ()
12201
{
12202
return dld_link ();
12203
  ;
12204
  return 0;
12205
}
12206
_ACEOF
12207
rm -f conftest.$ac_objext conftest$ac_exeext
12208
if { (ac_try="$ac_link"
12209
case "(($ac_try" in
12210
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211
  *) ac_try_echo=$ac_try;;
12212
esac
12213
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12214
$as_echo "$ac_try_echo") >&5
12215
  (eval "$ac_link") 2>conftest.er1
12216
  ac_status=$?
12217
  grep -v '^ *+' conftest.er1 >conftest.err
12218
  rm -f conftest.er1
12219
  cat conftest.err >&5
12220
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221
  (exit $ac_status); } && {
12222
         test -z "$ac_c_werror_flag" ||
12223
         test ! -s conftest.err
12224
       } && test -s conftest$ac_exeext && {
12225
         test "$cross_compiling" = yes ||
12226
         $as_test_x conftest$ac_exeext
12227
       }; then
12228
  ac_cv_lib_dld_dld_link=yes
12229
else
12230
  $as_echo "$as_me: failed program was:" >&5
12231
sed 's/^/| /' conftest.$ac_ext >&5
12232
 
12233
        ac_cv_lib_dld_dld_link=no
12234
fi
12235
 
12236
rm -rf conftest.dSYM
12237
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12238
      conftest$ac_exeext conftest.$ac_ext
12239
LIBS=$ac_check_lib_save_LIBS
12240
fi
12241
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12242
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12243
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12244
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12245
fi
12246
 
12247
 
12248
fi
12249
 
12250
 
12251
fi
12252
 
12253
 
12254
fi
12255
 
12256
 
12257
fi
12258
 
12259
 
12260
fi
12261
 
12262
    ;;
12263
  esac
12264
 
12265
  if test "x$lt_cv_dlopen" != xno; then
12266
    enable_dlopen=yes
12267
  else
12268
    enable_dlopen=no
12269
  fi
12270
 
12271
  case $lt_cv_dlopen in
12272
  dlopen)
12273
    save_CPPFLAGS="$CPPFLAGS"
12274
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12275
 
12276
    save_LDFLAGS="$LDFLAGS"
12277
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12278
 
12279
    save_LIBS="$LIBS"
12280
    LIBS="$lt_cv_dlopen_libs $LIBS"
12281
 
12282
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12283
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12284
if test "${lt_cv_dlopen_self+set}" = set; then
12285
  $as_echo_n "(cached) " >&6
12286
else
12287
          if test "$cross_compiling" = yes; then :
12288
  lt_cv_dlopen_self=cross
12289
else
12290
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12291
  lt_status=$lt_dlunknown
12292
  cat > conftest.$ac_ext <<_LT_EOF
12293
#line 12293 "configure"
12294
#include "confdefs.h"
12295
 
12296
#if HAVE_DLFCN_H
12297
#include 
12298
#endif
12299
 
12300
#include 
12301
 
12302
#ifdef RTLD_GLOBAL
12303
#  define LT_DLGLOBAL           RTLD_GLOBAL
12304
#else
12305
#  ifdef DL_GLOBAL
12306
#    define LT_DLGLOBAL         DL_GLOBAL
12307
#  else
12308
#    define LT_DLGLOBAL         0
12309
#  endif
12310
#endif
12311
 
12312
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12313
   find out it does not work in some platform. */
12314
#ifndef LT_DLLAZY_OR_NOW
12315
#  ifdef RTLD_LAZY
12316
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12317
#  else
12318
#    ifdef DL_LAZY
12319
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12320
#    else
12321
#      ifdef RTLD_NOW
12322
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12323
#      else
12324
#        ifdef DL_NOW
12325
#          define LT_DLLAZY_OR_NOW      DL_NOW
12326
#        else
12327
#          define LT_DLLAZY_OR_NOW      0
12328
#        endif
12329
#      endif
12330
#    endif
12331
#  endif
12332
#endif
12333
 
12334
void fnord() { int i=42;}
12335
int main ()
12336
{
12337
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12338
  int status = $lt_dlunknown;
12339
 
12340
  if (self)
12341
    {
12342
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12343
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12344
      /* dlclose (self); */
12345
    }
12346
  else
12347
    puts (dlerror ());
12348
 
12349
  return status;
12350
}
12351
_LT_EOF
12352
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12353
  (eval $ac_link) 2>&5
12354
  ac_status=$?
12355
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12357
    (./conftest; exit; ) >&5 2>/dev/null
12358
    lt_status=$?
12359
    case x$lt_status in
12360
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12361
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12362
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12363
    esac
12364
  else :
12365
    # compilation failed
12366
    lt_cv_dlopen_self=no
12367
  fi
12368
fi
12369
rm -fr conftest*
12370
 
12371
 
12372
fi
12373
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12374
$as_echo "$lt_cv_dlopen_self" >&6; }
12375
 
12376
    if test "x$lt_cv_dlopen_self" = xyes; then
12377
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12378
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12379
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12380
if test "${lt_cv_dlopen_self_static+set}" = set; then
12381
  $as_echo_n "(cached) " >&6
12382
else
12383
          if test "$cross_compiling" = yes; then :
12384
  lt_cv_dlopen_self_static=cross
12385
else
12386
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12387
  lt_status=$lt_dlunknown
12388
  cat > conftest.$ac_ext <<_LT_EOF
12389
#line 12389 "configure"
12390
#include "confdefs.h"
12391
 
12392
#if HAVE_DLFCN_H
12393
#include 
12394
#endif
12395
 
12396
#include 
12397
 
12398
#ifdef RTLD_GLOBAL
12399
#  define LT_DLGLOBAL           RTLD_GLOBAL
12400
#else
12401
#  ifdef DL_GLOBAL
12402
#    define LT_DLGLOBAL         DL_GLOBAL
12403
#  else
12404
#    define LT_DLGLOBAL         0
12405
#  endif
12406
#endif
12407
 
12408
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12409
   find out it does not work in some platform. */
12410
#ifndef LT_DLLAZY_OR_NOW
12411
#  ifdef RTLD_LAZY
12412
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12413
#  else
12414
#    ifdef DL_LAZY
12415
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12416
#    else
12417
#      ifdef RTLD_NOW
12418
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12419
#      else
12420
#        ifdef DL_NOW
12421
#          define LT_DLLAZY_OR_NOW      DL_NOW
12422
#        else
12423
#          define LT_DLLAZY_OR_NOW      0
12424
#        endif
12425
#      endif
12426
#    endif
12427
#  endif
12428
#endif
12429
 
12430
void fnord() { int i=42;}
12431
int main ()
12432
{
12433
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12434
  int status = $lt_dlunknown;
12435
 
12436
  if (self)
12437
    {
12438
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12439
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12440
      /* dlclose (self); */
12441
    }
12442
  else
12443
    puts (dlerror ());
12444
 
12445
  return status;
12446
}
12447
_LT_EOF
12448
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12449
  (eval $ac_link) 2>&5
12450
  ac_status=$?
12451
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12453
    (./conftest; exit; ) >&5 2>/dev/null
12454
    lt_status=$?
12455
    case x$lt_status in
12456
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12457
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12458
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12459
    esac
12460
  else :
12461
    # compilation failed
12462
    lt_cv_dlopen_self_static=no
12463
  fi
12464
fi
12465
rm -fr conftest*
12466
 
12467
 
12468
fi
12469
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12470
$as_echo "$lt_cv_dlopen_self_static" >&6; }
12471
    fi
12472
 
12473
    CPPFLAGS="$save_CPPFLAGS"
12474
    LDFLAGS="$save_LDFLAGS"
12475
    LIBS="$save_LIBS"
12476
    ;;
12477
  esac
12478
 
12479
  case $lt_cv_dlopen_self in
12480
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12481
  *) enable_dlopen_self=unknown ;;
12482
  esac
12483
 
12484
  case $lt_cv_dlopen_self_static in
12485
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12486
  *) enable_dlopen_self_static=unknown ;;
12487
  esac
12488
fi
12489
 
12490
 
12491
 
12492
 
12493
 
12494
 
12495
 
12496
 
12497
 
12498
 
12499
 
12500
 
12501
 
12502
 
12503
 
12504
 
12505
 
12506
striplib=
12507
old_striplib=
12508
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12509
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12510
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12511
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12512
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12513
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12514
$as_echo "yes" >&6; }
12515
else
12516
# FIXME - insert some real tests, host_os isn't really good enough
12517
  case $host_os in
12518
  darwin*)
12519
    if test -n "$STRIP" ; then
12520
      striplib="$STRIP -x"
12521
      old_striplib="$STRIP -S"
12522
      { $as_echo "$as_me:$LINENO: result: yes" >&5
12523
$as_echo "yes" >&6; }
12524
    else
12525
      { $as_echo "$as_me:$LINENO: result: no" >&5
12526
$as_echo "no" >&6; }
12527
    fi
12528
    ;;
12529
  *)
12530
    { $as_echo "$as_me:$LINENO: result: no" >&5
12531
$as_echo "no" >&6; }
12532
    ;;
12533
  esac
12534
fi
12535
 
12536
 
12537
 
12538
 
12539
 
12540
 
12541
 
12542
 
12543
 
12544
 
12545
 
12546
 
12547
  # Report which library types will actually be built
12548
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12549
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12550
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12551
$as_echo "$can_build_shared" >&6; }
12552
 
12553
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12554
$as_echo_n "checking whether to build shared libraries... " >&6; }
12555
  test "$can_build_shared" = "no" && enable_shared=no
12556
 
12557
  # On AIX, shared libraries and static libraries use the same namespace, and
12558
  # are all built from PIC.
12559
  case $host_os in
12560
  aix3*)
12561
    test "$enable_shared" = yes && enable_static=no
12562
    if test -n "$RANLIB"; then
12563
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12564
      postinstall_cmds='$RANLIB $lib'
12565
    fi
12566
    ;;
12567
 
12568
  aix[4-9]*)
12569
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12570
      test "$enable_shared" = yes && enable_static=no
12571
    fi
12572
    ;;
12573
  esac
12574
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12575
$as_echo "$enable_shared" >&6; }
12576
 
12577
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12578
$as_echo_n "checking whether to build static libraries... " >&6; }
12579
  # Make sure either enable_shared or enable_static is yes.
12580
  test "$enable_shared" = yes || enable_static=yes
12581
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12582
$as_echo "$enable_static" >&6; }
12583
 
12584
 
12585
 
12586
 
12587
fi
12588
ac_ext=c
12589
ac_cpp='$CPP $CPPFLAGS'
12590
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12591
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12592
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12593
 
12594
CC="$lt_save_CC"
12595
 
12596
 
12597
 
12598
 
12599
 
12600
 
12601
 
12602
 
12603
 
12604
 
12605
 
12606
 
12607
 
12608
        ac_config_commands="$ac_config_commands libtool"
12609
 
12610
 
12611
 
12612
 
12613
# Only expand once:
12614
 
12615
 
12616
fi
12617
 
12618
 
12619
 
12620
subdirs="$subdirs machine"
12621
 
12622
 
12623
if test "${newlib_multithread}" = "yes"; then
12624
subdirs="$subdirs linuxthreads"
12625
 
12626
fi
12627
 
12628
LINUX_MACH_LIB=
12629
if test -n "${machine_dir}"; then
12630
  if test "${use_libtool}" = "yes"; then
12631
    LINUX_MACH_LIB=machine/${machine_dir}/liblinux${machine_dir}.${aext}
12632
  else
12633
    LINUX_MACH_LIB=machine/lib.${aext}
12634
  fi
12635
fi
12636
 
12637
 
12638
EXTRA_SUBDIRS=
12639
EXTRA_SUBLIBS=
12640
 
12641
if test "x${newlib_elix_level}" = "x1"; then
12642
EXTRA_SUBDIRS=linuxthreads net
12643
else
12644
EXTRA_SUBDIRS="linuxthreads net intl iconv dl"
12645
EXTRA_SUBLIBS="net/libnet.la intl/libintl.la iconv/libiconv.la dl/libdl.la"
12646
fi
12647
 
12648
 
12649
 
12650
 
12651
ac_config_files="$ac_config_files Makefile intl/Makefile net/Makefile iconv/Makefile dl/Makefile cmath/Makefile argp/Makefile"
12652
 
12653
cat >confcache <<\_ACEOF
12654
# This file is a shell script that caches the results of configure
12655
# tests run on this system so they can be shared between configure
12656
# scripts and configure runs, see configure's option --config-cache.
12657
# It is not useful on other systems.  If it contains results you don't
12658
# want to keep, you may remove or edit it.
12659
#
12660
# config.status only pays attention to the cache file if you give it
12661
# the --recheck option to rerun configure.
12662
#
12663
# `ac_cv_env_foo' variables (set or unset) will be overridden when
12664
# loading this file, other *unset* `ac_cv_foo' will be assigned the
12665
# following values.
12666
 
12667
_ACEOF
12668
 
12669
# The following way of writing the cache mishandles newlines in values,
12670
# but we know of no workaround that is simple, portable, and efficient.
12671
# So, we kill variables containing newlines.
12672
# Ultrix sh set writes to stderr and can't be redirected directly,
12673
# and sets the high bit in the cache file unless we assign to the vars.
12674
(
12675
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12676
    eval ac_val=\$$ac_var
12677
    case $ac_val in #(
12678
    *${as_nl}*)
12679
      case $ac_var in #(
12680
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12681
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12682
      esac
12683
      case $ac_var in #(
12684
      _ | IFS | as_nl) ;; #(
12685
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12686
      *) $as_unset $ac_var ;;
12687
      esac ;;
12688
    esac
12689
  done
12690
 
12691
  (set) 2>&1 |
12692
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12693
    *${as_nl}ac_space=\ *)
12694
      # `set' does not quote correctly, so add quotes (double-quote
12695
      # substitution turns \\\\ into \\, and sed turns \\ into \).
12696
      sed -n \
12697
        "s/'/'\\\\''/g;
12698
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12699
      ;; #(
12700
    *)
12701
      # `set' quotes correctly as required by POSIX, so do not add quotes.
12702
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12703
      ;;
12704
    esac |
12705
    sort
12706
) |
12707
  sed '
12708
     /^ac_cv_env_/b end
12709
     t clear
12710
     :clear
12711
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12712
     t end
12713
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12714
     :end' >>confcache
12715
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12716
  if test -w "$cache_file"; then
12717
    test "x$cache_file" != "x/dev/null" &&
12718
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12719
$as_echo "$as_me: updating cache $cache_file" >&6;}
12720
    cat confcache >$cache_file
12721
  else
12722
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12723
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12724
  fi
12725
fi
12726
rm -f confcache
12727
 
12728
test "x$prefix" = xNONE && prefix=$ac_default_prefix
12729
# Let make expand exec_prefix.
12730
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12731
 
12732
# Transform confdefs.h into DEFS.
12733
# Protect against shell expansion while executing Makefile rules.
12734
# Protect against Makefile macro expansion.
12735
#
12736
# If the first sed substitution is executed (which looks for macros that
12737
# take arguments), then branch to the quote section.  Otherwise,
12738
# look for a macro that doesn't take arguments.
12739
ac_script='
12740
:mline
12741
/\\$/{
12742
 N
12743
 s,\\\n,,
12744
 b mline
12745
}
12746
t clear
12747
:clear
12748
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
12749
t quote
12750
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
12751
t quote
12752
b any
12753
:quote
12754
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12755
s/\[/\\&/g
12756
s/\]/\\&/g
12757
s/\$/$$/g
12758
H
12759
:any
12760
${
12761
        g
12762
        s/^\n//
12763
        s/\n/ /g
12764
        p
12765
}
12766
'
12767
DEFS=`sed -n "$ac_script" confdefs.h`
12768
 
12769
 
12770
ac_libobjs=
12771
ac_ltlibobjs=
12772
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12773
  # 1. Remove the extension, and $U if already installed.
12774
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12775
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12776
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12777
  #    will be set to the directory where LIBOBJS objects are built.
12778
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12779
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12780
done
12781
LIBOBJS=$ac_libobjs
12782
 
12783
LTLIBOBJS=$ac_ltlibobjs
12784
 
12785
 
12786
if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
12787
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12788
Usually this means the macro was only invoked conditionally." >&5
12789
$as_echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12790
Usually this means the macro was only invoked conditionally." >&2;}
12791
   { (exit 1); exit 1; }; }
12792
fi
12793
 if test -n "$EXEEXT"; then
12794
  am__EXEEXT_TRUE=
12795
  am__EXEEXT_FALSE='#'
12796
else
12797
  am__EXEEXT_TRUE='#'
12798
  am__EXEEXT_FALSE=
12799
fi
12800
 
12801
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12802
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12803
Usually this means the macro was only invoked conditionally." >&5
12804
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12805
Usually this means the macro was only invoked conditionally." >&2;}
12806
   { (exit 1); exit 1; }; }
12807
fi
12808
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12809
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12810
Usually this means the macro was only invoked conditionally." >&5
12811
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12812
Usually this means the macro was only invoked conditionally." >&2;}
12813
   { (exit 1); exit 1; }; }
12814
fi
12815
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12816
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12817
Usually this means the macro was only invoked conditionally." >&5
12818
$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12819
Usually this means the macro was only invoked conditionally." >&2;}
12820
   { (exit 1); exit 1; }; }
12821
fi
12822
if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
12823
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
12824
Usually this means the macro was only invoked conditionally." >&5
12825
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
12826
Usually this means the macro was only invoked conditionally." >&2;}
12827
   { (exit 1); exit 1; }; }
12828
fi
12829
if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
12830
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
12831
Usually this means the macro was only invoked conditionally." >&5
12832
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
12833
Usually this means the macro was only invoked conditionally." >&2;}
12834
   { (exit 1); exit 1; }; }
12835
fi
12836
if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
12837
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
12838
Usually this means the macro was only invoked conditionally." >&5
12839
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
12840
Usually this means the macro was only invoked conditionally." >&2;}
12841
   { (exit 1); exit 1; }; }
12842
fi
12843
if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
12844
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
12845
Usually this means the macro was only invoked conditionally." >&5
12846
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
12847
Usually this means the macro was only invoked conditionally." >&2;}
12848
   { (exit 1); exit 1; }; }
12849
fi
12850
if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
12851
  { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
12852
Usually this means the macro was only invoked conditionally." >&5
12853
$as_echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
12854
Usually this means the macro was only invoked conditionally." >&2;}
12855
   { (exit 1); exit 1; }; }
12856
fi
12857
if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
12858
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
12859
Usually this means the macro was only invoked conditionally." >&5
12860
$as_echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
12861
Usually this means the macro was only invoked conditionally." >&2;}
12862
   { (exit 1); exit 1; }; }
12863
fi
12864
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12865
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12866
Usually this means the macro was only invoked conditionally." >&5
12867
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12868
Usually this means the macro was only invoked conditionally." >&2;}
12869
   { (exit 1); exit 1; }; }
12870
fi
12871
 
12872
: ${CONFIG_STATUS=./config.status}
12873
ac_write_fail=0
12874
ac_clean_files_save=$ac_clean_files
12875
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12876
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12877
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12878
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12879
#! $SHELL
12880
# Generated by $as_me.
12881
# Run this file to recreate the current configuration.
12882
# Compiler output produced by configure, useful for debugging
12883
# configure, is in config.log if it exists.
12884
 
12885
debug=false
12886
ac_cs_recheck=false
12887
ac_cs_silent=false
12888
SHELL=\${CONFIG_SHELL-$SHELL}
12889
_ACEOF
12890
 
12891
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12892
## --------------------- ##
12893
## M4sh Initialization.  ##
12894
## --------------------- ##
12895
 
12896
# Be more Bourne compatible
12897
DUALCASE=1; export DUALCASE # for MKS sh
12898
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12899
  emulate sh
12900
  NULLCMD=:
12901
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12902
  # is contrary to our usage.  Disable this feature.
12903
  alias -g '${1+"$@"}'='"$@"'
12904
  setopt NO_GLOB_SUBST
12905
else
12906
  case `(set -o) 2>/dev/null` in
12907
  *posix*) set -o posix ;;
12908
esac
12909
 
12910
fi
12911
 
12912
 
12913
 
12914
 
12915
# PATH needs CR
12916
# Avoid depending upon Character Ranges.
12917
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12918
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12919
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12920
as_cr_digits='0123456789'
12921
as_cr_alnum=$as_cr_Letters$as_cr_digits
12922
 
12923
as_nl='
12924
'
12925
export as_nl
12926
# Printing a long string crashes Solaris 7 /usr/bin/printf.
12927
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12928
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12929
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12930
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12931
  as_echo='printf %s\n'
12932
  as_echo_n='printf %s'
12933
else
12934
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12935
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12936
    as_echo_n='/usr/ucb/echo -n'
12937
  else
12938
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12939
    as_echo_n_body='eval
12940
      arg=$1;
12941
      case $arg in
12942
      *"$as_nl"*)
12943
        expr "X$arg" : "X\\(.*\\)$as_nl";
12944
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12945
      esac;
12946
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12947
    '
12948
    export as_echo_n_body
12949
    as_echo_n='sh -c $as_echo_n_body as_echo'
12950
  fi
12951
  export as_echo_body
12952
  as_echo='sh -c $as_echo_body as_echo'
12953
fi
12954
 
12955
# The user is always right.
12956
if test "${PATH_SEPARATOR+set}" != set; then
12957
  PATH_SEPARATOR=:
12958
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12959
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12960
      PATH_SEPARATOR=';'
12961
  }
12962
fi
12963
 
12964
# Support unset when possible.
12965
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12966
  as_unset=unset
12967
else
12968
  as_unset=false
12969
fi
12970
 
12971
 
12972
# IFS
12973
# We need space, tab and new line, in precisely that order.  Quoting is
12974
# there to prevent editors from complaining about space-tab.
12975
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12976
# splitting by setting IFS to empty value.)
12977
IFS=" ""        $as_nl"
12978
 
12979
# Find who we are.  Look in the path if we contain no directory separator.
12980
case $0 in
12981
  *[\\/]* ) as_myself=$0 ;;
12982
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12983
for as_dir in $PATH
12984
do
12985
  IFS=$as_save_IFS
12986
  test -z "$as_dir" && as_dir=.
12987
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12988
done
12989
IFS=$as_save_IFS
12990
 
12991
     ;;
12992
esac
12993
# We did not find ourselves, most probably we were run as `sh COMMAND'
12994
# in which case we are not to be found in the path.
12995
if test "x$as_myself" = x; then
12996
  as_myself=$0
12997
fi
12998
if test ! -f "$as_myself"; then
12999
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13000
  { (exit 1); exit 1; }
13001
fi
13002
 
13003
# Work around bugs in pre-3.0 UWIN ksh.
13004
for as_var in ENV MAIL MAILPATH
13005
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13006
done
13007
PS1='$ '
13008
PS2='> '
13009
PS4='+ '
13010
 
13011
# NLS nuisances.
13012
LC_ALL=C
13013
export LC_ALL
13014
LANGUAGE=C
13015
export LANGUAGE
13016
 
13017
# Required to use basename.
13018
if expr a : '\(a\)' >/dev/null 2>&1 &&
13019
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13020
  as_expr=expr
13021
else
13022
  as_expr=false
13023
fi
13024
 
13025
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13026
  as_basename=basename
13027
else
13028
  as_basename=false
13029
fi
13030
 
13031
 
13032
# Name of the executable.
13033
as_me=`$as_basename -- "$0" ||
13034
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13035
         X"$0" : 'X\(//\)$' \| \
13036
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13037
$as_echo X/"$0" |
13038
    sed '/^.*\/\([^/][^/]*\)\/*$/{
13039
            s//\1/
13040
            q
13041
          }
13042
          /^X\/\(\/\/\)$/{
13043
            s//\1/
13044
            q
13045
          }
13046
          /^X\/\(\/\).*/{
13047
            s//\1/
13048
            q
13049
          }
13050
          s/.*/./; q'`
13051
 
13052
# CDPATH.
13053
$as_unset CDPATH
13054
 
13055
 
13056
 
13057
  as_lineno_1=$LINENO
13058
  as_lineno_2=$LINENO
13059
  test "x$as_lineno_1" != "x$as_lineno_2" &&
13060
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13061
 
13062
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13063
  # uniformly replaced by the line number.  The first 'sed' inserts a
13064
  # line-number line after each line using $LINENO; the second 'sed'
13065
  # does the real work.  The second script uses 'N' to pair each
13066
  # line-number line with the line containing $LINENO, and appends
13067
  # trailing '-' during substitution so that $LINENO is not a special
13068
  # case at line end.
13069
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13070
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
13071
  # E. McMahon (1931-1989) for sed's syntax.  :-)
13072
  sed -n '
13073
    p
13074
    /[$]LINENO/=
13075
  ' <$as_myself |
13076
    sed '
13077
      s/[$]LINENO.*/&-/
13078
      t lineno
13079
      b
13080
      :lineno
13081
      N
13082
      :loop
13083
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13084
      t loop
13085
      s/-\n.*//
13086
    ' >$as_me.lineno &&
13087
  chmod +x "$as_me.lineno" ||
13088
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13089
   { (exit 1); exit 1; }; }
13090
 
13091
  # Don't try to exec as it changes $[0], causing all sort of problems
13092
  # (the dirname of $[0] is not the place where we might find the
13093
  # original and so on.  Autoconf is especially sensitive to this).
13094
  . "./$as_me.lineno"
13095
  # Exit status is that of the last command.
13096
  exit
13097
}
13098
 
13099
 
13100
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13101
  as_dirname=dirname
13102
else
13103
  as_dirname=false
13104
fi
13105
 
13106
ECHO_C= ECHO_N= ECHO_T=
13107
case `echo -n x` in
13108
-n*)
13109
  case `echo 'x\c'` in
13110
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13111
  *)   ECHO_C='\c';;
13112
  esac;;
13113
*)
13114
  ECHO_N='-n';;
13115
esac
13116
if expr a : '\(a\)' >/dev/null 2>&1 &&
13117
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13118
  as_expr=expr
13119
else
13120
  as_expr=false
13121
fi
13122
 
13123
rm -f conf$$ conf$$.exe conf$$.file
13124
if test -d conf$$.dir; then
13125
  rm -f conf$$.dir/conf$$.file
13126
else
13127
  rm -f conf$$.dir
13128
  mkdir conf$$.dir 2>/dev/null
13129
fi
13130
if (echo >conf$$.file) 2>/dev/null; then
13131
  if ln -s conf$$.file conf$$ 2>/dev/null; then
13132
    as_ln_s='ln -s'
13133
    # ... but there are two gotchas:
13134
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13135
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13136
    # In both cases, we have to default to `cp -p'.
13137
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13138
      as_ln_s='cp -p'
13139
  elif ln conf$$.file conf$$ 2>/dev/null; then
13140
    as_ln_s=ln
13141
  else
13142
    as_ln_s='cp -p'
13143
  fi
13144
else
13145
  as_ln_s='cp -p'
13146
fi
13147
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13148
rmdir conf$$.dir 2>/dev/null
13149
 
13150
if mkdir -p . 2>/dev/null; then
13151
  as_mkdir_p=:
13152
else
13153
  test -d ./-p && rmdir ./-p
13154
  as_mkdir_p=false
13155
fi
13156
 
13157
if test -x / >/dev/null 2>&1; then
13158
  as_test_x='test -x'
13159
else
13160
  if ls -dL / >/dev/null 2>&1; then
13161
    as_ls_L_option=L
13162
  else
13163
    as_ls_L_option=
13164
  fi
13165
  as_test_x='
13166
    eval sh -c '\''
13167
      if test -d "$1"; then
13168
        test -d "$1/.";
13169
      else
13170
        case $1 in
13171
        -*)set "./$1";;
13172
        esac;
13173
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13174
        ???[sx]*):;;*)false;;esac;fi
13175
    '\'' sh
13176
  '
13177
fi
13178
as_executable_p=$as_test_x
13179
 
13180
# Sed expression to map a string onto a valid CPP name.
13181
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13182
 
13183
# Sed expression to map a string onto a valid variable name.
13184
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13185
 
13186
 
13187
exec 6>&1
13188
 
13189
# Save the log message, to keep $[0] and so on meaningful, and to
13190
# report actual input values of CONFIG_FILES etc. instead of their
13191
# values after options handling.
13192
ac_log="
13193
This file was extended by newlib $as_me 1.18.0, which was
13194
generated by GNU Autoconf 2.63.  Invocation command line was
13195
 
13196
  CONFIG_FILES    = $CONFIG_FILES
13197
  CONFIG_HEADERS  = $CONFIG_HEADERS
13198
  CONFIG_LINKS    = $CONFIG_LINKS
13199
  CONFIG_COMMANDS = $CONFIG_COMMANDS
13200
  $ $0 $@
13201
 
13202
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13203
"
13204
 
13205
_ACEOF
13206
 
13207
case $ac_config_files in *"
13208
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13209
esac
13210
 
13211
 
13212
 
13213
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13214
# Files that config.status was made for.
13215
config_files="$ac_config_files"
13216
config_commands="$ac_config_commands"
13217
 
13218
_ACEOF
13219
 
13220
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13221
ac_cs_usage="\
13222
\`$as_me' instantiates files from templates according to the
13223
current configuration.
13224
 
13225
Usage: $0 [OPTION]... [FILE]...
13226
 
13227
  -h, --help       print this help, then exit
13228
  -V, --version    print version number and configuration settings, then exit
13229
  -q, --quiet, --silent
13230
                   do not print progress messages
13231
  -d, --debug      don't remove temporary files
13232
      --recheck    update $as_me by reconfiguring in the same conditions
13233
      --file=FILE[:TEMPLATE]
13234
                   instantiate the configuration file FILE
13235
 
13236
Configuration files:
13237
$config_files
13238
 
13239
Configuration commands:
13240
$config_commands
13241
 
13242
Report bugs to ."
13243
 
13244
_ACEOF
13245
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13246
ac_cs_version="\\
13247
newlib config.status 1.18.0
13248
configured by $0, generated by GNU Autoconf 2.63,
13249
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13250
 
13251
Copyright (C) 2008 Free Software Foundation, Inc.
13252
This config.status script is free software; the Free Software Foundation
13253
gives unlimited permission to copy, distribute and modify it."
13254
 
13255
ac_pwd='$ac_pwd'
13256
srcdir='$srcdir'
13257
INSTALL='$INSTALL'
13258
MKDIR_P='$MKDIR_P'
13259
AWK='$AWK'
13260
test -n "\$AWK" || AWK=awk
13261
_ACEOF
13262
 
13263
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13264
# The default lists apply if the user does not specify any file.
13265
ac_need_defaults=:
13266
while test $# != 0
13267
do
13268
  case $1 in
13269
  --*=*)
13270
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13271
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13272
    ac_shift=:
13273
    ;;
13274
  *)
13275
    ac_option=$1
13276
    ac_optarg=$2
13277
    ac_shift=shift
13278
    ;;
13279
  esac
13280
 
13281
  case $ac_option in
13282
  # Handling of the options.
13283
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13284
    ac_cs_recheck=: ;;
13285
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13286
    $as_echo "$ac_cs_version"; exit ;;
13287
  --debug | --debu | --deb | --de | --d | -d )
13288
    debug=: ;;
13289
  --file | --fil | --fi | --f )
13290
    $ac_shift
13291
    case $ac_optarg in
13292
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13293
    esac
13294
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13295
    ac_need_defaults=false;;
13296
  --he | --h |  --help | --hel | -h )
13297
    $as_echo "$ac_cs_usage"; exit ;;
13298
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13299
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13300
    ac_cs_silent=: ;;
13301
 
13302
  # This is an error.
13303
  -*) { $as_echo "$as_me: error: unrecognized option: $1
13304
Try \`$0 --help' for more information." >&2
13305
   { (exit 1); exit 1; }; } ;;
13306
 
13307
  *) ac_config_targets="$ac_config_targets $1"
13308
     ac_need_defaults=false ;;
13309
 
13310
  esac
13311
  shift
13312
done
13313
 
13314
ac_configure_extra_args=
13315
 
13316
if $ac_cs_silent; then
13317
  exec 6>/dev/null
13318
  ac_configure_extra_args="$ac_configure_extra_args --silent"
13319
fi
13320
 
13321
_ACEOF
13322
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13323
if \$ac_cs_recheck; then
13324
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13325
  shift
13326
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13327
  CONFIG_SHELL='$SHELL'
13328
  export CONFIG_SHELL
13329
  exec "\$@"
13330
fi
13331
 
13332
_ACEOF
13333
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13334
exec 5>>config.log
13335
{
13336
  echo
13337
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13338
## Running $as_me. ##
13339
_ASBOX
13340
  $as_echo "$ac_log"
13341
} >&5
13342
 
13343
_ACEOF
13344
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13345
#
13346
# INIT-COMMANDS
13347
#
13348
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13349
 
13350
 
13351
# The HP-UX ksh and POSIX shell print the target directory to stdout
13352
# if CDPATH is set.
13353
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13354
 
13355
sed_quote_subst='$sed_quote_subst'
13356
double_quote_subst='$double_quote_subst'
13357
delay_variable_subst='$delay_variable_subst'
13358
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13359
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13360
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13361
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13362
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13363
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13364
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13365
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13366
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13367
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13368
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13369
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13370
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13371
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13372
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13373
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13374
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13375
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13376
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13377
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13378
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13379
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13380
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13381
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13382
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13383
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13384
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13385
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13386
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13387
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13388
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13389
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13390
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13391
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13392
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13393
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13394
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13395
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13396
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13397
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13398
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13399
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13400
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13401
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13402
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13403
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13404
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13405
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13406
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13407
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13408
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13409
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13410
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13411
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13412
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13413
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13414
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13415
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13416
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13417
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13418
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13419
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13420
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13421
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13422
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13423
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13424
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13425
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13426
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13427
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13428
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13429
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13430
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13431
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13432
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13433
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13434
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13435
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13436
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13437
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13438
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13439
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13440
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13441
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13442
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13443
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13444
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13445
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13446
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13447
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13448
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13449
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13450
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13451
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13452
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13453
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13454
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13455
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13456
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13457
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13458
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13459
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13460
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13461
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13462
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13463
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13464
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13465
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13466
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13467
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13468
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13469
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13470
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13471
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13472
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13473
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13474
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13475
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13476
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13477
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13478
 
13479
LTCC='$LTCC'
13480
LTCFLAGS='$LTCFLAGS'
13481
compiler='$compiler_DEFAULT'
13482
 
13483
# Quote evaled strings.
13484
for var in SED \
13485
GREP \
13486
EGREP \
13487
FGREP \
13488
LD \
13489
NM \
13490
LN_S \
13491
lt_SP2NL \
13492
lt_NL2SP \
13493
reload_flag \
13494
deplibs_check_method \
13495
file_magic_cmd \
13496
AR \
13497
AR_FLAGS \
13498
STRIP \
13499
RANLIB \
13500
CC \
13501
CFLAGS \
13502
compiler \
13503
lt_cv_sys_global_symbol_pipe \
13504
lt_cv_sys_global_symbol_to_cdecl \
13505
lt_cv_sys_global_symbol_to_c_name_address \
13506
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13507
SHELL \
13508
ECHO \
13509
lt_prog_compiler_no_builtin_flag \
13510
lt_prog_compiler_wl \
13511
lt_prog_compiler_pic \
13512
lt_prog_compiler_static \
13513
lt_cv_prog_compiler_c_o \
13514
need_locks \
13515
DSYMUTIL \
13516
NMEDIT \
13517
LIPO \
13518
OTOOL \
13519
OTOOL64 \
13520
shrext_cmds \
13521
export_dynamic_flag_spec \
13522
whole_archive_flag_spec \
13523
compiler_needs_object \
13524
with_gnu_ld \
13525
allow_undefined_flag \
13526
no_undefined_flag \
13527
hardcode_libdir_flag_spec \
13528
hardcode_libdir_flag_spec_ld \
13529
hardcode_libdir_separator \
13530
fix_srcfile_path \
13531
exclude_expsyms \
13532
include_expsyms \
13533
file_list_spec \
13534
variables_saved_for_relink \
13535
libname_spec \
13536
library_names_spec \
13537
soname_spec \
13538
finish_eval \
13539
old_striplib \
13540
striplib; do
13541
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13542
    *[\\\\\\\`\\"\\\$]*)
13543
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13544
      ;;
13545
    *)
13546
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13547
      ;;
13548
    esac
13549
done
13550
 
13551
# Double-quote double-evaled strings.
13552
for var in reload_cmds \
13553
old_postinstall_cmds \
13554
old_postuninstall_cmds \
13555
old_archive_cmds \
13556
extract_expsyms_cmds \
13557
old_archive_from_new_cmds \
13558
old_archive_from_expsyms_cmds \
13559
archive_cmds \
13560
archive_expsym_cmds \
13561
module_cmds \
13562
module_expsym_cmds \
13563
export_symbols_cmds \
13564
prelink_cmds \
13565
postinstall_cmds \
13566
postuninstall_cmds \
13567
finish_cmds \
13568
sys_lib_search_path_spec \
13569
sys_lib_dlsearch_path_spec; do
13570
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13571
    *[\\\\\\\`\\"\\\$]*)
13572
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13573
      ;;
13574
    *)
13575
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13576
      ;;
13577
    esac
13578
done
13579
 
13580
# Fix-up fallback echo if it was mangled by the above quoting rules.
13581
case \$lt_ECHO in
13582
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13583
  ;;
13584
esac
13585
 
13586
ac_aux_dir='$ac_aux_dir'
13587
xsi_shell='$xsi_shell'
13588
lt_shell_append='$lt_shell_append'
13589
 
13590
# See if we are running on zsh, and set the options which allow our
13591
# commands through without removal of \ escapes INIT.
13592
if test -n "\${ZSH_VERSION+set}" ; then
13593
   setopt NO_GLOB_SUBST
13594
fi
13595
 
13596
 
13597
    PACKAGE='$PACKAGE'
13598
    VERSION='$VERSION'
13599
    TIMESTAMP='$TIMESTAMP'
13600
    RM='$RM'
13601
    ofile='$ofile'
13602
 
13603
 
13604
 
13605
 
13606
_ACEOF
13607
 
13608
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13609
 
13610
# Handling of arguments.
13611
for ac_config_target in $ac_config_targets
13612
do
13613
  case $ac_config_target in
13614
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13615
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13616
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13617
    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
13618
    "net/Makefile") CONFIG_FILES="$CONFIG_FILES net/Makefile" ;;
13619
    "iconv/Makefile") CONFIG_FILES="$CONFIG_FILES iconv/Makefile" ;;
13620
    "dl/Makefile") CONFIG_FILES="$CONFIG_FILES dl/Makefile" ;;
13621
    "cmath/Makefile") CONFIG_FILES="$CONFIG_FILES cmath/Makefile" ;;
13622
    "argp/Makefile") CONFIG_FILES="$CONFIG_FILES argp/Makefile" ;;
13623
 
13624
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13625
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13626
   { (exit 1); exit 1; }; };;
13627
  esac
13628
done
13629
 
13630
 
13631
# If the user did not use the arguments to specify the items to instantiate,
13632
# then the envvar interface is used.  Set only those that are not.
13633
# We use the long form for the default assignment because of an extremely
13634
# bizarre bug on SunOS 4.1.3.
13635
if $ac_need_defaults; then
13636
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13637
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13638
fi
13639
 
13640
# Have a temporary directory for convenience.  Make it in the build tree
13641
# simply because there is no reason against having it here, and in addition,
13642
# creating and moving files from /tmp can sometimes cause problems.
13643
# Hook for its removal unless debugging.
13644
# Note that there is a small window in which the directory will not be cleaned:
13645
# after its creation but before its name has been assigned to `$tmp'.
13646
$debug ||
13647
{
13648
  tmp=
13649
  trap 'exit_status=$?
13650
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13651
' 0
13652
  trap '{ (exit 1); exit 1; }' 1 2 13 15
13653
}
13654
# Create a (secure) tmp directory for tmp files.
13655
 
13656
{
13657
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13658
  test -n "$tmp" && test -d "$tmp"
13659
}  ||
13660
{
13661
  tmp=./conf$$-$RANDOM
13662
  (umask 077 && mkdir "$tmp")
13663
} ||
13664
{
13665
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
13666
   { (exit 1); exit 1; }
13667
}
13668
 
13669
# Set up the scripts for CONFIG_FILES section.
13670
# No need to generate them if there are no CONFIG_FILES.
13671
# This happens for instance with `./config.status config.h'.
13672
if test -n "$CONFIG_FILES"; then
13673
 
13674
 
13675
ac_cr='
'
13676
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
13677
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13678
  ac_cs_awk_cr='\\r'
13679
else
13680
  ac_cs_awk_cr=$ac_cr
13681
fi
13682
13683
 
13684
_ACEOF
13685
13686
 
13687
 
13688
  echo "cat >conf$$subs.awk <<_ACEOF" &&
13689
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13690
  echo "_ACEOF"
13691
} >conf$$subs.sh ||
13692
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13693
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13694
   { (exit 1); exit 1; }; }
13695
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13696
ac_delim='%!_!# '
13697
for ac_last_try in false false false false false :; do
13698
  . ./conf$$subs.sh ||
13699
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13700
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13701
   { (exit 1); exit 1; }; }
13702
13703
 
13704
  if test $ac_delim_n = $ac_delim_num; then
13705
    break
13706
  elif $ac_last_try; then
13707
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13708
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13709
   { (exit 1); exit 1; }; }
13710
  else
13711
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13712
  fi
13713
done
13714
rm -f conf$$subs.sh
13715
13716
 
13717
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13718
_ACEOF
13719
sed -n '
13720
h
13721
s/^/S["/; s/!.*/"]=/
13722
p
13723
g
13724
s/^[^!]*!//
13725
:repl
13726
t repl
13727
s/'"$ac_delim"'$//
13728
t delim
13729
:nl
13730
h
13731
s/\(.\{148\}\).*/\1/
13732
t more1
13733
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13734
p
13735
n
13736
b repl
13737
:more1
13738
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13739
p
13740
g
13741
s/.\{148\}//
13742
t nl
13743
:delim
13744
h
13745
s/\(.\{148\}\).*/\1/
13746
t more2
13747
s/["\\]/\\&/g; s/^/"/; s/$/"/
13748
p
13749
b
13750
:more2
13751
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13752
p
13753
g
13754
s/.\{148\}//
13755
t delim
13756
' 
13757
/^[^""]/{
13758
  N
13759
  s/\n//
13760
}
13761
' >>$CONFIG_STATUS || ac_write_fail=1
13762
rm -f conf$$subs.awk
13763
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13764
_ACAWK
13765
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13766
  for (key in S) S_is_set[key] = 1
13767
  FS = ""
13768
13769
 
13770
{
13771
  line = $ 0
13772
  nfields = split(line, field, "@")
13773
  substed = 0
13774
  len = length(field[1])
13775
  for (i = 2; i < nfields; i++) {
13776
    key = field[i]
13777
    keylen = length(key)
13778
    if (S_is_set[key]) {
13779
      value = S[key]
13780
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13781
      len += length(value) + length(field[++i])
13782
      substed = 1
13783
    } else
13784
      len += 1 + keylen
13785
  }
13786
13787
 
13788
}
13789
13790
 
13791
_ACEOF
13792
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13793
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13794
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13795
else
13796
  cat
13797
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13798
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13799
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
13800
   { (exit 1); exit 1; }; }
13801
_ACEOF
13802
13803
 
13804
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13805
# trailing colons and then remove the whole line if VPATH becomes empty
13806
# (actually we leave an empty line to preserve line numbers).
13807
if test "x$srcdir" = x.; then
13808
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
13809
s/:*\$(srcdir):*/:/
13810
s/:*\${srcdir}:*/:/
13811
s/:*@srcdir@:*/:/
13812
s/^\([^=]*=[     ]*\):*/\1/
13813
s/:*$//
13814
s/^[^=]*=[       ]*$//
13815
}'
13816
fi
13817
13818
 
13819
fi # test -n "$CONFIG_FILES"
13820
13821
 
13822
 
13823
shift
13824
for ac_tag
13825
do
13826
  case $ac_tag in
13827
  :[FHLC]) ac_mode=$ac_tag; continue;;
13828
  esac
13829
  case $ac_mode$ac_tag in
13830
  :[FHL]*:*);;
13831
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13832
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13833
   { (exit 1); exit 1; }; };;
13834
  :[FH]-) ac_tag=-:-;;
13835
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13836
  esac
13837
  ac_save_IFS=$IFS
13838
  IFS=:
13839
  set x $ac_tag
13840
  IFS=$ac_save_IFS
13841
  shift
13842
  ac_file=$1
13843
  shift
13844
13845
 
13846
  :L) ac_source=$1;;
13847
  :[FH])
13848
    ac_file_inputs=
13849
    for ac_f
13850
    do
13851
      case $ac_f in
13852
      -) ac_f="$tmp/stdin";;
13853
      *) # Look for the file first in the build tree, then in the source tree
13854
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
13855
         # because $ac_f cannot contain `:'.
13856
         test -f "$ac_f" ||
13857
           case $ac_f in
13858
           [\\/$]*) false;;
13859
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13860
           esac ||
13861
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13862
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13863
   { (exit 1); exit 1; }; };;
13864
      esac
13865
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13866
      ac_file_inputs="$ac_file_inputs '$ac_f'"
13867
    done
13868
13869
 
13870
    # use $as_me), people would be surprised to read:
13871
    #    /* config.h.  Generated by config.status.  */
13872
    configure_input='Generated from '`
13873
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13874
        `' by configure.'
13875
    if test x"$ac_file" != x-; then
13876
      configure_input="$ac_file.  $configure_input"
13877
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13878
$as_echo "$as_me: creating $ac_file" >&6;}
13879
    fi
13880
    # Neutralize special characters interpreted by sed in replacement strings.
13881
    case $configure_input in #(
13882
    *\&* | *\|* | *\\* )
13883
       ac_sed_conf_input=`$as_echo "$configure_input" |
13884
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13885
    *) ac_sed_conf_input=$configure_input;;
13886
    esac
13887
13888
 
13889
    *:-:* | *:-) cat >"$tmp/stdin" \
13890
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13891
$as_echo "$as_me: error: could not create $ac_file" >&2;}
13892
   { (exit 1); exit 1; }; } ;;
13893
    esac
13894
    ;;
13895
  esac
13896
13897
 
13898
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13899
         X"$ac_file" : 'X\(//\)[^/]' \| \
13900
         X"$ac_file" : 'X\(//\)$' \| \
13901
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13902
$as_echo X"$ac_file" |
13903
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13904
            s//\1/
13905
            q
13906
          }
13907
          /^X\(\/\/\)[^/].*/{
13908
            s//\1/
13909
            q
13910
          }
13911
          /^X\(\/\/\)$/{
13912
            s//\1/
13913
            q
13914
          }
13915
          /^X\(\/\).*/{
13916
            s//\1/
13917
            q
13918
          }
13919
          s/.*/./; q'`
13920
  { as_dir="$ac_dir"
13921
  case $as_dir in #(
13922
  -*) as_dir=./$as_dir;;
13923
  esac
13924
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13925
    as_dirs=
13926
    while :; do
13927
      case $as_dir in #(
13928
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13929
      *) as_qdir=$as_dir;;
13930
      esac
13931
      as_dirs="'$as_qdir' $as_dirs"
13932
      as_dir=`$as_dirname -- "$as_dir" ||
13933
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13934
         X"$as_dir" : 'X\(//\)[^/]' \| \
13935
         X"$as_dir" : 'X\(//\)$' \| \
13936
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13937
$as_echo X"$as_dir" |
13938
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13939
            s//\1/
13940
            q
13941
          }
13942
          /^X\(\/\/\)[^/].*/{
13943
            s//\1/
13944
            q
13945
          }
13946
          /^X\(\/\/\)$/{
13947
            s//\1/
13948
            q
13949
          }
13950
          /^X\(\/\).*/{
13951
            s//\1/
13952
            q
13953
          }
13954
          s/.*/./; q'`
13955
      test -d "$as_dir" && break
13956
    done
13957
    test -z "$as_dirs" || eval "mkdir $as_dirs"
13958
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13959
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13960
   { (exit 1); exit 1; }; }; }
13961
  ac_builddir=.
13962
13963
 
13964
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13965
*)
13966
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13967
  # A ".." for each directory in $ac_dir_suffix.
13968
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13969
  case $ac_top_builddir_sub in
13970
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13971
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13972
  esac ;;
13973
esac
13974
ac_abs_top_builddir=$ac_pwd
13975
ac_abs_builddir=$ac_pwd$ac_dir_suffix
13976
# for backward compatibility:
13977
ac_top_builddir=$ac_top_build_prefix
13978
13979
 
13980
  .)  # We are building in place.
13981
    ac_srcdir=.
13982
    ac_top_srcdir=$ac_top_builddir_sub
13983
    ac_abs_top_srcdir=$ac_pwd ;;
13984
  [\\/]* | ?:[\\/]* )  # Absolute name.
13985
    ac_srcdir=$srcdir$ac_dir_suffix;
13986
    ac_top_srcdir=$srcdir
13987
    ac_abs_top_srcdir=$srcdir ;;
13988
  *) # Relative name.
13989
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13990
    ac_top_srcdir=$ac_top_build_prefix$srcdir
13991
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13992
esac
13993
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13994
13995
 
13996
 
13997
  :F)
13998
  #
13999
  # CONFIG_FILE
14000
  #
14001
14002
 
14003
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14004
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14005
  esac
14006
  ac_MKDIR_P=$MKDIR_P
14007
  case $MKDIR_P in
14008
  [\\/$]* | ?:[\\/]* ) ;;
14009
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14010
  esac
14011
_ACEOF
14012
14013
 
14014
# If the template does not know about datarootdir, expand it.
14015
# FIXME: This hack should be removed a few years after 2.60.
14016
ac_datarootdir_hack=; ac_datarootdir_seen=
14017
14018
 
14019
/datarootdir/ {
14020
  p
14021
  q
14022
}
14023
/@datadir@/p
14024
/@docdir@/p
14025
/@infodir@/p
14026
/@localedir@/p
14027
/@mandir@/p
14028
'
14029
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14030
*datarootdir*) ac_datarootdir_seen=yes;;
14031
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14032
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14033
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14034
_ACEOF
14035
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14036
  ac_datarootdir_hack='
14037
  s&@datadir@&$datadir&g
14038
  s&@docdir@&$docdir&g
14039
  s&@infodir@&$infodir&g
14040
  s&@localedir@&$localedir&g
14041
  s&@mandir@&$mandir&g
14042
    s&\\\${datarootdir}&$datarootdir&g' ;;
14043
esac
14044
_ACEOF
14045
14046
 
14047
# Shell code in configure.ac might set extrasub.
14048
# FIXME: do we really want to maintain this feature?
14049
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14050
ac_sed_extra="$ac_vpsub
14051
$extrasub
14052
_ACEOF
14053
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14054
:t
14055
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14056
s|@configure_input@|$ac_sed_conf_input|;t t
14057
s&@top_builddir@&$ac_top_builddir_sub&;t t
14058
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14059
s&@srcdir@&$ac_srcdir&;t t
14060
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14061
s&@top_srcdir@&$ac_top_srcdir&;t t
14062
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14063
s&@builddir@&$ac_builddir&;t t
14064
s&@abs_builddir@&$ac_abs_builddir&;t t
14065
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14066
s&@INSTALL@&$ac_INSTALL&;t t
14067
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14068
$ac_datarootdir_hack
14069
"
14070
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14071
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14072
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14073
   { (exit 1); exit 1; }; }
14074
14075
 
14076
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14077
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14078
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14079
which seems to be undefined.  Please make sure it is defined." >&5
14080
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14081
which seems to be undefined.  Please make sure it is defined." >&2;}
14082
14083
 
14084
  case $ac_file in
14085
  -) cat "$tmp/out" && rm -f "$tmp/out";;
14086
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14087
  esac \
14088
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14089
$as_echo "$as_me: error: could not create $ac_file" >&2;}
14090
   { (exit 1); exit 1; }; }
14091
 ;;
14092
14093
 
14094
 
14095
$as_echo "$as_me: executing $ac_file commands" >&6;}
14096
 ;;
14097
  esac
14098
14099
 
14100
 
14101
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14102
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14103
  # are listed without --file.  Let's play safe and only enable the eval
14104
  # if we detect the quoting.
14105
  case $CONFIG_FILES in
14106
  *\'*) eval set x "$CONFIG_FILES" ;;
14107
  *)   set x $CONFIG_FILES ;;
14108
  esac
14109
  shift
14110
  for mf
14111
  do
14112
    # Strip MF so we end up with the name of the file.
14113
    mf=`echo "$mf" | sed -e 's/:.*$//'`
14114
    # Check whether this is an Automake generated Makefile or not.
14115
    # We used to match only the files named `Makefile.in', but
14116
    # some people rename them; so instead we look at the file content.
14117
    # Grep'ing the first line is not enough: some people post-process
14118
    # each Makefile.in and add a new line on top of each file to say so.
14119
    # Grep'ing the whole file is not good either: AIX grep has a line
14120
    # limit of 2048, but all sed's we know have understand at least 4000.
14121
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14122
      dirpart=`$as_dirname -- "$mf" ||
14123
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14124
         X"$mf" : 'X\(//\)[^/]' \| \
14125
         X"$mf" : 'X\(//\)$' \| \
14126
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14127
$as_echo X"$mf" |
14128
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14129
            s//\1/
14130
            q
14131
          }
14132
          /^X\(\/\/\)[^/].*/{
14133
            s//\1/
14134
            q
14135
          }
14136
          /^X\(\/\/\)$/{
14137
            s//\1/
14138
            q
14139
          }
14140
          /^X\(\/\).*/{
14141
            s//\1/
14142
            q
14143
          }
14144
          s/.*/./; q'`
14145
    else
14146
      continue
14147
    fi
14148
    # Extract the definition of DEPDIR, am__include, and am__quote
14149
    # from the Makefile without running `make'.
14150
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14151
    test -z "$DEPDIR" && continue
14152
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14153
    test -z "am__include" && continue
14154
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14155
    # When using ansi2knr, U may be empty or an underscore; expand it
14156
    U=`sed -n 's/^U = //p' < "$mf"`
14157
    # Find all dependency output files, they are included files with
14158
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14159
    # simplest approach to changing $(DEPDIR) to its actual value in the
14160
    # expansion.
14161
    for file in `sed -n "
14162
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14163
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14164
      # Make sure the directory exists.
14165
      test -f "$dirpart/$file" && continue
14166
      fdir=`$as_dirname -- "$file" ||
14167
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14168
         X"$file" : 'X\(//\)[^/]' \| \
14169
         X"$file" : 'X\(//\)$' \| \
14170
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14171
$as_echo X"$file" |
14172
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14173
            s//\1/
14174
            q
14175
          }
14176
          /^X\(\/\/\)[^/].*/{
14177
            s//\1/
14178
            q
14179
          }
14180
          /^X\(\/\/\)$/{
14181
            s//\1/
14182
            q
14183
          }
14184
          /^X\(\/\).*/{
14185
            s//\1/
14186
            q
14187
          }
14188
          s/.*/./; q'`
14189
      { as_dir=$dirpart/$fdir
14190
  case $as_dir in #(
14191
  -*) as_dir=./$as_dir;;
14192
  esac
14193
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14194
    as_dirs=
14195
    while :; do
14196
      case $as_dir in #(
14197
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14198
      *) as_qdir=$as_dir;;
14199
      esac
14200
      as_dirs="'$as_qdir' $as_dirs"
14201
      as_dir=`$as_dirname -- "$as_dir" ||
14202
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14203
         X"$as_dir" : 'X\(//\)[^/]' \| \
14204
         X"$as_dir" : 'X\(//\)$' \| \
14205
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14206
$as_echo X"$as_dir" |
14207
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14208
            s//\1/
14209
            q
14210
          }
14211
          /^X\(\/\/\)[^/].*/{
14212
            s//\1/
14213
            q
14214
          }
14215
          /^X\(\/\/\)$/{
14216
            s//\1/
14217
            q
14218
          }
14219
          /^X\(\/\).*/{
14220
            s//\1/
14221
            q
14222
          }
14223
          s/.*/./; q'`
14224
      test -d "$as_dir" && break
14225
    done
14226
    test -z "$as_dirs" || eval "mkdir $as_dirs"
14227
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14228
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14229
   { (exit 1); exit 1; }; }; }
14230
      # echo "creating $dirpart/$file"
14231
      echo '# dummy' > "$dirpart/$file"
14232
    done
14233
  done
14234
}
14235
 ;;
14236
    "libtool":C)
14237
14238
 
14239
    # commands through without removal of \ escapes.
14240
    if test -n "${ZSH_VERSION+set}" ; then
14241
      setopt NO_GLOB_SUBST
14242
    fi
14243
14244
 
14245
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14246
    $RM "$cfgfile"
14247
14248
 
14249
#! $SHELL
14250
14251
 
14252
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14253
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14254
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14255
#
14256
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14257
#                 2006, 2007, 2008 Free Software Foundation, Inc.
14258
#   Written by Gordon Matzigkeit, 1996
14259
#
14260
#   This file is part of GNU Libtool.
14261
#
14262
# GNU Libtool is free software; you can redistribute it and/or
14263
# modify it under the terms of the GNU General Public License as
14264
# published by the Free Software Foundation; either version 2 of
14265
# the License, or (at your option) any later version.
14266
#
14267
# As a special exception to the GNU General Public License,
14268
# if you distribute this file as part of a program or library that
14269
# is built using GNU Libtool, you may include this file under the
14270
# same distribution terms that you use for the rest of that program.
14271
#
14272
# GNU Libtool is distributed in the hope that it will be useful,
14273
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14274
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14275
# GNU General Public License for more details.
14276
#
14277
# You should have received a copy of the GNU General Public License
14278
# along with GNU Libtool; see the file COPYING.  If not, a copy
14279
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14280
# obtained by writing to the Free Software Foundation, Inc.,
14281
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14282
14283
 
14284
 
14285
available_tags=""
14286
14287
 
14288
14289
 
14290
SED=$lt_SED
14291
14292
 
14293
Xsed="\$SED -e 1s/^X//"
14294
14295
 
14296
AS=$AS
14297
14298
 
14299
DLLTOOL=$DLLTOOL
14300
14301
 
14302
OBJDUMP=$OBJDUMP
14303
14304
 
14305
macro_version=$macro_version
14306
macro_revision=$macro_revision
14307
14308
 
14309
build_libtool_libs=$enable_shared
14310
14311
 
14312
build_old_libs=$enable_static
14313
14314
 
14315
pic_mode=$pic_mode
14316
14317
 
14318
fast_install=$enable_fast_install
14319
14320
 
14321
host_alias=$host_alias
14322
host=$host
14323
host_os=$host_os
14324
14325
 
14326
build_alias=$build_alias
14327
build=$build
14328
build_os=$build_os
14329
14330
 
14331
GREP=$lt_GREP
14332
14333
 
14334
EGREP=$lt_EGREP
14335
14336
 
14337
FGREP=$lt_FGREP
14338
14339
 
14340
NM=$lt_NM
14341
14342
 
14343
LN_S=$lt_LN_S
14344
14345
 
14346
max_cmd_len=$max_cmd_len
14347
14348
 
14349
objext=$ac_objext
14350
14351
 
14352
exeext=$exeext
14353
14354
 
14355
lt_unset=$lt_unset
14356
14357
 
14358
SP2NL=$lt_lt_SP2NL
14359
14360
 
14361
NL2SP=$lt_lt_NL2SP
14362
14363
 
14364
reload_flag=$lt_reload_flag
14365
reload_cmds=$lt_reload_cmds
14366
14367
 
14368
deplibs_check_method=$lt_deplibs_check_method
14369
14370
 
14371
file_magic_cmd=$lt_file_magic_cmd
14372
14373
 
14374
AR=$lt_AR
14375
AR_FLAGS=$lt_AR_FLAGS
14376
14377
 
14378
STRIP=$lt_STRIP
14379
14380
 
14381
RANLIB=$lt_RANLIB
14382
old_postinstall_cmds=$lt_old_postinstall_cmds
14383
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14384
14385
 
14386
LTCC=$lt_CC
14387
14388
 
14389
LTCFLAGS=$lt_CFLAGS
14390
14391
 
14392
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14393
14394
 
14395
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14396
14397
 
14398
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14399
14400
 
14401
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14402
14403
 
14404
objdir=$objdir
14405
14406
 
14407
SHELL=$lt_SHELL
14408
14409
 
14410
ECHO=$lt_ECHO
14411
14412
 
14413
MAGIC_CMD=$MAGIC_CMD
14414
14415
 
14416
need_locks=$lt_need_locks
14417
14418
 
14419
DSYMUTIL=$lt_DSYMUTIL
14420
14421
 
14422
NMEDIT=$lt_NMEDIT
14423
14424
 
14425
LIPO=$lt_LIPO
14426
14427
 
14428
OTOOL=$lt_OTOOL
14429
14430
 
14431
OTOOL64=$lt_OTOOL64
14432
14433
 
14434
libext=$libext
14435
14436
 
14437
shrext_cmds=$lt_shrext_cmds
14438
14439
 
14440
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14441
14442
 
14443
# restored at link time.
14444
variables_saved_for_relink=$lt_variables_saved_for_relink
14445
14446
 
14447
need_lib_prefix=$need_lib_prefix
14448
14449
 
14450
need_version=$need_version
14451
14452
 
14453
version_type=$version_type
14454
14455
 
14456
runpath_var=$runpath_var
14457
14458
 
14459
shlibpath_var=$shlibpath_var
14460
14461
 
14462
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14463
14464
 
14465
libname_spec=$lt_libname_spec
14466
14467
 
14468
# The last name is the one that the linker finds with -lNAME
14469
library_names_spec=$lt_library_names_spec
14470
14471
 
14472
soname_spec=$lt_soname_spec
14473
14474
 
14475
postinstall_cmds=$lt_postinstall_cmds
14476
14477
 
14478
postuninstall_cmds=$lt_postuninstall_cmds
14479
14480
 
14481
finish_cmds=$lt_finish_cmds
14482
14483
 
14484
# not shown.
14485
finish_eval=$lt_finish_eval
14486
14487
 
14488
hardcode_into_libs=$hardcode_into_libs
14489
14490
 
14491
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14492
14493
 
14494
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14495
14496
 
14497
dlopen_support=$enable_dlopen
14498
14499
 
14500
dlopen_self=$enable_dlopen_self
14501
14502
 
14503
dlopen_self_static=$enable_dlopen_self_static
14504
14505
 
14506
old_striplib=$lt_old_striplib
14507
striplib=$lt_striplib
14508
14509
 
14510
 
14511
LD=$lt_LD
14512
14513
 
14514
old_archive_cmds=$lt_old_archive_cmds
14515
14516
 
14517
CC=$lt_compiler
14518
14519
 
14520
with_gcc=$GCC
14521
14522
 
14523
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14524
14525
 
14526
wl=$lt_lt_prog_compiler_wl
14527
14528
 
14529
pic_flag=$lt_lt_prog_compiler_pic
14530
14531
 
14532
link_static_flag=$lt_lt_prog_compiler_static
14533
14534
 
14535
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14536
14537
 
14538
build_libtool_need_lc=$archive_cmds_need_lc
14539
14540
 
14541
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14542
14543
 
14544
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14545
14546
 
14547
whole_archive_flag_spec=$lt_whole_archive_flag_spec
14548
14549
 
14550
compiler_needs_object=$lt_compiler_needs_object
14551
14552
 
14553
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14554
14555
 
14556
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14557
14558
 
14559
archive_cmds=$lt_archive_cmds
14560
archive_expsym_cmds=$lt_archive_expsym_cmds
14561
14562
 
14563
# a shared archive.
14564
module_cmds=$lt_module_cmds
14565
module_expsym_cmds=$lt_module_expsym_cmds
14566
14567
 
14568
with_gnu_ld=$lt_with_gnu_ld
14569
14570
 
14571
allow_undefined_flag=$lt_allow_undefined_flag
14572
14573
 
14574
no_undefined_flag=$lt_no_undefined_flag
14575
14576
 
14577
# This must work even if \$libdir does not exist
14578
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14579
14580
 
14581
# during linking.  This must work even if \$libdir does not exist.
14582
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14583
14584
 
14585
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14586
14587
 
14588
# DIR into the resulting binary.
14589
hardcode_direct=$hardcode_direct
14590
14591
 
14592
# DIR into the resulting binary and the resulting library dependency is
14593
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14594
# library is relocated.
14595
hardcode_direct_absolute=$hardcode_direct_absolute
14596
14597
 
14598
# into the resulting binary.
14599
hardcode_minus_L=$hardcode_minus_L
14600
14601
 
14602
# into the resulting binary.
14603
hardcode_shlibpath_var=$hardcode_shlibpath_var
14604
14605
 
14606
# into the library and all subsequent libraries and executables linked
14607
# against it.
14608
hardcode_automatic=$hardcode_automatic
14609
14610
 
14611
# to runtime path list.
14612
inherit_rpath=$inherit_rpath
14613
14614
 
14615
link_all_deplibs=$link_all_deplibs
14616
14617
 
14618
fix_srcfile_path=$lt_fix_srcfile_path
14619
14620
 
14621
always_export_symbols=$always_export_symbols
14622
14623
 
14624
export_symbols_cmds=$lt_export_symbols_cmds
14625
14626
 
14627
exclude_expsyms=$lt_exclude_expsyms
14628
14629
 
14630
include_expsyms=$lt_include_expsyms
14631
14632
 
14633
prelink_cmds=$lt_prelink_cmds
14634
14635
 
14636
file_list_spec=$lt_file_list_spec
14637
14638
 
14639
hardcode_action=$hardcode_action
14640
14641
 
14642
14643
 
14644
14645
 
14646
  aix3*)
14647
    cat <<\_LT_EOF >> "$cfgfile"
14648
# AIX sometimes has problems with the GCC collect2 program.  For some
14649
# reason, if we set the COLLECT_NAMES environment variable, the problems
14650
# vanish in a puff of smoke.
14651
if test "X${COLLECT_NAMES+set}" != Xset; then
14652
  COLLECT_NAMES=
14653
  export COLLECT_NAMES
14654
fi
14655
_LT_EOF
14656
    ;;
14657
  esac
14658
14659
 
14660
 
14661
14662
 
14663
 
14664
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14665
  # text mode, it properly converts lines to CR/LF.  This bash problem
14666
  # is reportedly fixed, but why not run on old versions too?
14667
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14668
    || (rm -f "$cfgfile"; exit 1)
14669
14670
 
14671
  yes)
14672
    cat << \_LT_EOF >> "$cfgfile"
14673
14674
 
14675
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14676
# otherwise set result to NONDIR_REPLACEMENT.
14677
func_dirname ()
14678
{
14679
  case ${1} in
14680
    */*) func_dirname_result="${1%/*}${2}" ;;
14681
    *  ) func_dirname_result="${3}" ;;
14682
  esac
14683
}
14684
14685
 
14686
func_basename ()
14687
{
14688
  func_basename_result="${1##*/}"
14689
}
14690
14691
 
14692
# perform func_basename and func_dirname in a single function
14693
# call:
14694
#   dirname:  Compute the dirname of FILE.  If nonempty,
14695
#             add APPEND to the result, otherwise set result
14696
#             to NONDIR_REPLACEMENT.
14697
#             value returned in "$func_dirname_result"
14698
#   basename: Compute filename of FILE.
14699
#             value retuned in "$func_basename_result"
14700
# Implementation must be kept synchronized with func_dirname
14701
# and func_basename. For efficiency, we do not delegate to
14702
# those functions but instead duplicate the functionality here.
14703
func_dirname_and_basename ()
14704
{
14705
  case ${1} in
14706
    */*) func_dirname_result="${1%/*}${2}" ;;
14707
    *  ) func_dirname_result="${3}" ;;
14708
  esac
14709
  func_basename_result="${1##*/}"
14710
}
14711
14712
 
14713
# strip PREFIX and SUFFIX off of NAME.
14714
# PREFIX and SUFFIX must not contain globbing or regex special
14715
# characters, hashes, percent signs, but SUFFIX may contain a leading
14716
# dot (in which case that matches only a dot).
14717
func_stripname ()
14718
{
14719
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14720
  # positional parameters, so assign one to ordinary parameter first.
14721
  func_stripname_result=${3}
14722
  func_stripname_result=${func_stripname_result#"${1}"}
14723
  func_stripname_result=${func_stripname_result%"${2}"}
14724
}
14725
14726
 
14727
func_opt_split ()
14728
{
14729
  func_opt_split_opt=${1%%=*}
14730
  func_opt_split_arg=${1#*=}
14731
}
14732
14733
 
14734
func_lo2o ()
14735
{
14736
  case ${1} in
14737
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14738
    *)    func_lo2o_result=${1} ;;
14739
  esac
14740
}
14741
14742
 
14743
func_xform ()
14744
{
14745
  func_xform_result=${1%.*}.lo
14746
}
14747
14748
 
14749
func_arith ()
14750
{
14751
  func_arith_result=$(( $* ))
14752
}
14753
14754
 
14755
# STRING may not start with a hyphen.
14756
func_len ()
14757
{
14758
  func_len_result=${#1}
14759
}
14760
14761
 
14762
    ;;
14763
  *) # Bourne compatible functions.
14764
    cat << \_LT_EOF >> "$cfgfile"
14765
14766
 
14767
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14768
# otherwise set result to NONDIR_REPLACEMENT.
14769
func_dirname ()
14770
{
14771
  # Extract subdirectory from the argument.
14772
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14773
  if test "X$func_dirname_result" = "X${1}"; then
14774
    func_dirname_result="${3}"
14775
  else
14776
    func_dirname_result="$func_dirname_result${2}"
14777
  fi
14778
}
14779
14780
 
14781
func_basename ()
14782
{
14783
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14784
}
14785
14786
 
14787
 
14788
# strip PREFIX and SUFFIX off of NAME.
14789
# PREFIX and SUFFIX must not contain globbing or regex special
14790
# characters, hashes, percent signs, but SUFFIX may contain a leading
14791
# dot (in which case that matches only a dot).
14792
# func_strip_suffix prefix name
14793
func_stripname ()
14794
{
14795
  case ${2} in
14796
    .*) func_stripname_result=`$ECHO "X${3}" \
14797
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14798
    *)  func_stripname_result=`$ECHO "X${3}" \
14799
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14800
  esac
14801
}
14802
14803
 
14804
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14805
my_sed_long_arg='1s/^-[^=]*=//'
14806
14807
 
14808
func_opt_split ()
14809
{
14810
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14811
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14812
}
14813
14814
 
14815
func_lo2o ()
14816
{
14817
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14818
}
14819
14820
 
14821
func_xform ()
14822
{
14823
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14824
}
14825
14826
 
14827
func_arith ()
14828
{
14829
  func_arith_result=`expr "$@"`
14830
}
14831
14832
 
14833
# STRING may not start with a hyphen.
14834
func_len ()
14835
{
14836
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14837
}
14838
14839
 
14840
esac
14841
14842
 
14843
  yes)
14844
    cat << \_LT_EOF >> "$cfgfile"
14845
14846
 
14847
# Append VALUE to the end of shell variable VAR.
14848
func_append ()
14849
{
14850
  eval "$1+=\$2"
14851
}
14852
_LT_EOF
14853
    ;;
14854
  *)
14855
    cat << \_LT_EOF >> "$cfgfile"
14856
14857
 
14858
# Append VALUE to the end of shell variable VAR.
14859
func_append ()
14860
{
14861
  eval "$1=\$$1\$2"
14862
}
14863
14864
 
14865
    ;;
14866
  esac
14867
14868
 
14869
 
14870
    || (rm -f "$cfgfile"; exit 1)
14871
14872
 
14873
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14874
  chmod +x "$ofile"
14875
14876
 
14877
14878
 
14879
done # for ac_tag
14880
14881
 
14882
 
14883
_ACEOF
14884
chmod +x $CONFIG_STATUS
14885
ac_clean_files=$ac_clean_files_save
14886
14887
 
14888
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14889
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14890
   { (exit 1); exit 1; }; }
14891
14892
 
14893
 
14894
# config.status does its own redirection, appending to config.log.
14895
# Unfortunately, on DOS this fails, as config.log is still kept open
14896
# by configure, so config.status won't be able to write to it; its
14897
# output is simply discarded.  So we exec the FD to /dev/null,
14898
# effectively closing config.log, so it can be properly (re)opened and
14899
# appended to by config.status.  When coming back to configure, we
14900
# need to make the FD available again.
14901
if test "$no_create" != yes; then
14902
  ac_cs_success=:
14903
  ac_config_status_args=
14904
  test "$silent" = yes &&
14905
    ac_config_status_args="$ac_config_status_args --quiet"
14906
  exec 5>/dev/null
14907
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14908
  exec 5>>config.log
14909
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14910
  # would make configure fail if this is the last instruction.
14911
  $ac_cs_success || { (exit 1); exit 1; }
14912
fi
14913
14914
 
14915
# CONFIG_SUBDIRS section.
14916
#
14917
if test "$no_recursion" != yes; then
14918
14919
 
14920
  # so they do not pile up.
14921
  ac_sub_configure_args=
14922
  ac_prev=
14923
  eval "set x $ac_configure_args"
14924
  shift
14925
  for ac_arg
14926
  do
14927
    if test -n "$ac_prev"; then
14928
      ac_prev=
14929
      continue
14930
    fi
14931
    case $ac_arg in
14932
    -cache-file | --cache-file | --cache-fil | --cache-fi \
14933
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14934
      ac_prev=cache_file ;;
14935
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14936
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14937
    | --c=*)
14938
      ;;
14939
    --config-cache | -C)
14940
      ;;
14941
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14942
      ac_prev=srcdir ;;
14943
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14944
      ;;
14945
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14946
      ac_prev=prefix ;;
14947
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14948
      ;;
14949
    --disable-option-checking)
14950
      ;;
14951
    *)
14952
      case $ac_arg in
14953
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14954
      esac
14955
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
14956
    esac
14957
  done
14958
14959
 
14960
  # in subdir configurations.
14961
  ac_arg="--prefix=$prefix"
14962
  case $ac_arg in
14963
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14964
  esac
14965
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14966
14967
 
14968
  if test "$silent" = yes; then
14969
    ac_sub_configure_args="--silent $ac_sub_configure_args"
14970
  fi
14971
14972
 
14973
  # different subdirs can have different --enable and --with options.
14974
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14975
14976
 
14977
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14978
14979
 
14980
    # parts of a large source tree are present.
14981
    test -d "$srcdir/$ac_dir" || continue
14982
14983
 
14984
    $as_echo "$as_me:$LINENO: $ac_msg" >&5
14985
    $as_echo "$ac_msg" >&6
14986
    { as_dir="$ac_dir"
14987
  case $as_dir in #(
14988
  -*) as_dir=./$as_dir;;
14989
  esac
14990
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14991
    as_dirs=
14992
    while :; do
14993
      case $as_dir in #(
14994
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14995
      *) as_qdir=$as_dir;;
14996
      esac
14997
      as_dirs="'$as_qdir' $as_dirs"
14998
      as_dir=`$as_dirname -- "$as_dir" ||
14999
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15000
         X"$as_dir" : 'X\(//\)[^/]' \| \
15001
         X"$as_dir" : 'X\(//\)$' \| \
15002
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15003
$as_echo X"$as_dir" |
15004
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15005
            s//\1/
15006
            q
15007
          }
15008
          /^X\(\/\/\)[^/].*/{
15009
            s//\1/
15010
            q
15011
          }
15012
          /^X\(\/\/\)$/{
15013
            s//\1/
15014
            q
15015
          }
15016
          /^X\(\/\).*/{
15017
            s//\1/
15018
            q
15019
          }
15020
          s/.*/./; q'`
15021
      test -d "$as_dir" && break
15022
    done
15023
    test -z "$as_dirs" || eval "mkdir $as_dirs"
15024
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15025
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15026
   { (exit 1); exit 1; }; }; }
15027
    ac_builddir=.
15028
15029
 
15030
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15031
*)
15032
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15033
  # A ".." for each directory in $ac_dir_suffix.
15034
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15035
  case $ac_top_builddir_sub in
15036
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15037
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15038
  esac ;;
15039
esac
15040
ac_abs_top_builddir=$ac_pwd
15041
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15042
# for backward compatibility:
15043
ac_top_builddir=$ac_top_build_prefix
15044
15045
 
15046
  .)  # We are building in place.
15047
    ac_srcdir=.
15048
    ac_top_srcdir=$ac_top_builddir_sub
15049
    ac_abs_top_srcdir=$ac_pwd ;;
15050
  [\\/]* | ?:[\\/]* )  # Absolute name.
15051
    ac_srcdir=$srcdir$ac_dir_suffix;
15052
    ac_top_srcdir=$srcdir
15053
    ac_abs_top_srcdir=$srcdir ;;
15054
  *) # Relative name.
15055
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15056
    ac_top_srcdir=$ac_top_build_prefix$srcdir
15057
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15058
esac
15059
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15060
15061
 
15062
 
15063
15064
 
15065
    if test -f "$ac_srcdir/configure.gnu"; then
15066
      ac_sub_configure=$ac_srcdir/configure.gnu
15067
    elif test -f "$ac_srcdir/configure"; then
15068
      ac_sub_configure=$ac_srcdir/configure
15069
    elif test -f "$ac_srcdir/configure.in"; then
15070
      # This should be Cygnus configure.
15071
      ac_sub_configure=$ac_aux_dir/configure
15072
    else
15073
      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
15074
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15075
      ac_sub_configure=
15076
    fi
15077
15078
 
15079
    if test -n "$ac_sub_configure"; then
15080
      # Make the cache file name correct relative to the subdirectory.
15081
      case $cache_file in
15082
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15083
      *) # Relative name.
15084
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15085
      esac
15086
15087
 
15088
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15089
      # The eval makes quoting arguments work.
15090
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15091
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15092
        { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
15093
$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
15094
   { (exit 1); exit 1; }; }
15095
    fi
15096
15097
 
15098
  done
15099
fi
15100
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15101
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15102
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15103
fi
15104
15105
 

powered by: WebSVN 2.1.0

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