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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [configure] - Blame information for rev 89

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

Line No. Rev Author Line
1 19 jeremybenn
#! /bin/sh
2 89 jeremybenn
# From configure.ac Id: configure.ac 948 2010-04-21 10:27:25Z jeremy  using automake version AC_ACVERSION.
3 19 jeremybenn
# Guess values for system-dependent variables and create Makefiles.
4 89 jeremybenn
# Generated by GNU Autoconf 2.63 for or1ksim 2010-04-21.
5 19 jeremybenn
#
6
# Report bugs to .
7
#
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 82 jeremybenn
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
10 19 jeremybenn
# This configure script is free software; the Free Software Foundation
11
# gives unlimited permission to copy, distribute and modify it.
12 82 jeremybenn
#
13
# Copyright (C) 1999-2008 OpenCores
14
# Copyright (C) 2008, 2010 Embecosm Limited
15
#
16
# Contributor Jeremy Bennett 
17
#
18
# This file is part of OpenRISC 1000 Architectural Simulator.
19
#
20
# This program is free software; you can redistribute it and/or modify it
21
# under the terms of the GNU General Public License as published by the Free
22
# Software Foundation; either version 3 of the License, or (at your option)
23
# any later version.
24
#
25
# This program is distributed in the hope that it will be useful, but WITHOUT
26
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
27
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
28
# more details.
29
#
30
# You should have received a copy of the GNU General Public License along
31
# with this program.  If not, see .
32 19 jeremybenn
## --------------------- ##
33
## M4sh Initialization.  ##
34
## --------------------- ##
35
 
36
# Be more Bourne compatible
37
DUALCASE=1; export DUALCASE # for MKS sh
38
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39
  emulate sh
40
  NULLCMD=:
41 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
43
  alias -g '${1+"$@"}'='"$@"'
44
  setopt NO_GLOB_SUBST
45
else
46
  case `(set -o) 2>/dev/null` in
47
  *posix*) set -o posix ;;
48
esac
49
 
50
fi
51
 
52
 
53
 
54
 
55
# PATH needs CR
56
# Avoid depending upon Character Ranges.
57
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
58
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
59
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
60
as_cr_digits='0123456789'
61
as_cr_alnum=$as_cr_Letters$as_cr_digits
62
 
63 82 jeremybenn
as_nl='
64
'
65
export as_nl
66
# Printing a long string crashes Solaris 7 /usr/bin/printf.
67
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
68
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
69
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
70
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
71
  as_echo='printf %s\n'
72
  as_echo_n='printf %s'
73
else
74
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
75
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
76
    as_echo_n='/usr/ucb/echo -n'
77 19 jeremybenn
  else
78 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
79
    as_echo_n_body='eval
80
      arg=$1;
81
      case $arg in
82
      *"$as_nl"*)
83
        expr "X$arg" : "X\\(.*\\)$as_nl";
84
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
85
      esac;
86
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
87
    '
88
    export as_echo_n_body
89
    as_echo_n='sh -c $as_echo_n_body as_echo'
90 19 jeremybenn
  fi
91 82 jeremybenn
  export as_echo_body
92
  as_echo='sh -c $as_echo_body as_echo'
93 19 jeremybenn
fi
94
 
95 82 jeremybenn
# The user is always right.
96
if test "${PATH_SEPARATOR+set}" != set; then
97
  PATH_SEPARATOR=:
98
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
99
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
100
      PATH_SEPARATOR=';'
101
  }
102
fi
103
 
104 19 jeremybenn
# Support unset when possible.
105
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
106
  as_unset=unset
107
else
108
  as_unset=false
109
fi
110
 
111
 
112
# IFS
113
# We need space, tab and new line, in precisely that order.  Quoting is
114
# there to prevent editors from complaining about space-tab.
115
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
116
# splitting by setting IFS to empty value.)
117
IFS=" ""        $as_nl"
118
 
119
# Find who we are.  Look in the path if we contain no directory separator.
120
case $0 in
121
  *[\\/]* ) as_myself=$0 ;;
122
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
123
for as_dir in $PATH
124
do
125
  IFS=$as_save_IFS
126
  test -z "$as_dir" && as_dir=.
127
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
128
done
129
IFS=$as_save_IFS
130
 
131
     ;;
132
esac
133
# We did not find ourselves, most probably we were run as `sh COMMAND'
134
# in which case we are not to be found in the path.
135
if test "x$as_myself" = x; then
136
  as_myself=$0
137
fi
138
if test ! -f "$as_myself"; then
139 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
140 19 jeremybenn
  { (exit 1); exit 1; }
141
fi
142
 
143
# Work around bugs in pre-3.0 UWIN ksh.
144
for as_var in ENV MAIL MAILPATH
145
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
146
done
147
PS1='$ '
148
PS2='> '
149
PS4='+ '
150
 
151
# NLS nuisances.
152 82 jeremybenn
LC_ALL=C
153
export LC_ALL
154
LANGUAGE=C
155
export LANGUAGE
156 19 jeremybenn
 
157
# Required to use basename.
158
if expr a : '\(a\)' >/dev/null 2>&1 &&
159
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
160
  as_expr=expr
161
else
162
  as_expr=false
163
fi
164
 
165
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
166
  as_basename=basename
167
else
168
  as_basename=false
169
fi
170
 
171
 
172
# Name of the executable.
173
as_me=`$as_basename -- "$0" ||
174
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
175
         X"$0" : 'X\(//\)$' \| \
176
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
177 82 jeremybenn
$as_echo X/"$0" |
178 19 jeremybenn
    sed '/^.*\/\([^/][^/]*\)\/*$/{
179
            s//\1/
180
            q
181
          }
182
          /^X\/\(\/\/\)$/{
183
            s//\1/
184
            q
185
          }
186
          /^X\/\(\/\).*/{
187
            s//\1/
188
            q
189
          }
190
          s/.*/./; q'`
191
 
192
# CDPATH.
193
$as_unset CDPATH
194
 
195
 
196
if test "x$CONFIG_SHELL" = x; then
197
  if (eval ":") 2>/dev/null; then
198
  as_have_required=yes
199
else
200
  as_have_required=no
201
fi
202
 
203 82 jeremybenn
  if test $as_have_required = yes &&     (eval ":
204 19 jeremybenn
(as_func_return () {
205
  (exit \$1)
206
}
207
as_func_success () {
208
  as_func_return 0
209
}
210
as_func_failure () {
211
  as_func_return 1
212
}
213
as_func_ret_success () {
214
  return 0
215
}
216
as_func_ret_failure () {
217
  return 1
218
}
219
 
220
exitcode=0
221
if as_func_success; then
222
  :
223
else
224
  exitcode=1
225
  echo as_func_success failed.
226
fi
227
 
228
if as_func_failure; then
229
  exitcode=1
230
  echo as_func_failure succeeded.
231
fi
232
 
233
if as_func_ret_success; then
234
  :
235
else
236
  exitcode=1
237
  echo as_func_ret_success failed.
238
fi
239
 
240
if as_func_ret_failure; then
241
  exitcode=1
242
  echo as_func_ret_failure succeeded.
243
fi
244
 
245
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
246
  :
247
else
248
  exitcode=1
249
  echo positional parameters were not saved.
250
fi
251
 
252
test \$exitcode = 0) || { (exit 1); exit 1; }
253
 
254
(
255
  as_lineno_1=\$LINENO
256
  as_lineno_2=\$LINENO
257
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
258
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
259
") 2> /dev/null; then
260
  :
261
else
262
  as_candidate_shells=
263
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
264
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
265
do
266
  IFS=$as_save_IFS
267
  test -z "$as_dir" && as_dir=.
268
  case $as_dir in
269
         /*)
270
           for as_base in sh bash ksh sh5; do
271
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
272
           done;;
273
       esac
274
done
275
IFS=$as_save_IFS
276
 
277
 
278
      for as_shell in $as_candidate_shells $SHELL; do
279
         # Try only shells that exist, to save several forks.
280
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
281
                { ("$as_shell") 2> /dev/null <<\_ASEOF
282
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283
  emulate sh
284
  NULLCMD=:
285 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
287
  alias -g '${1+"$@"}'='"$@"'
288
  setopt NO_GLOB_SUBST
289
else
290
  case `(set -o) 2>/dev/null` in
291
  *posix*) set -o posix ;;
292
esac
293
 
294
fi
295
 
296
 
297
:
298
_ASEOF
299
}; then
300
  CONFIG_SHELL=$as_shell
301
               as_have_required=yes
302
               if { "$as_shell" 2> /dev/null <<\_ASEOF
303
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
304
  emulate sh
305
  NULLCMD=:
306 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
307 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
308
  alias -g '${1+"$@"}'='"$@"'
309
  setopt NO_GLOB_SUBST
310
else
311
  case `(set -o) 2>/dev/null` in
312
  *posix*) set -o posix ;;
313
esac
314
 
315
fi
316
 
317
 
318
:
319
(as_func_return () {
320
  (exit $1)
321
}
322
as_func_success () {
323
  as_func_return 0
324
}
325
as_func_failure () {
326
  as_func_return 1
327
}
328
as_func_ret_success () {
329
  return 0
330
}
331
as_func_ret_failure () {
332
  return 1
333
}
334
 
335
exitcode=0
336
if as_func_success; then
337
  :
338
else
339
  exitcode=1
340
  echo as_func_success failed.
341
fi
342
 
343
if as_func_failure; then
344
  exitcode=1
345
  echo as_func_failure succeeded.
346
fi
347
 
348
if as_func_ret_success; then
349
  :
350
else
351
  exitcode=1
352
  echo as_func_ret_success failed.
353
fi
354
 
355
if as_func_ret_failure; then
356
  exitcode=1
357
  echo as_func_ret_failure succeeded.
358
fi
359
 
360
if ( set x; as_func_ret_success y && test x = "$1" ); then
361
  :
362
else
363
  exitcode=1
364
  echo positional parameters were not saved.
365
fi
366
 
367
test $exitcode = 0) || { (exit 1); exit 1; }
368
 
369
(
370
  as_lineno_1=$LINENO
371
  as_lineno_2=$LINENO
372
  test "x$as_lineno_1" != "x$as_lineno_2" &&
373
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
374
 
375
_ASEOF
376
}; then
377
  break
378
fi
379
 
380
fi
381
 
382
      done
383
 
384
      if test "x$CONFIG_SHELL" != x; then
385
  for as_var in BASH_ENV ENV
386 82 jeremybenn
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
387
        done
388
        export CONFIG_SHELL
389
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
390 19 jeremybenn
fi
391
 
392
 
393
    if test $as_have_required = no; then
394
  echo This script requires a shell more modern than all the
395
      echo shells that I found on your system.  Please install a
396
      echo modern shell, or manually run the script under such a
397
      echo shell if you do have one.
398
      { (exit 1); exit 1; }
399
fi
400
 
401
 
402
fi
403
 
404
fi
405
 
406
 
407
 
408
(eval "as_func_return () {
409
  (exit \$1)
410
}
411
as_func_success () {
412
  as_func_return 0
413
}
414
as_func_failure () {
415
  as_func_return 1
416
}
417
as_func_ret_success () {
418
  return 0
419
}
420
as_func_ret_failure () {
421
  return 1
422
}
423
 
424
exitcode=0
425
if as_func_success; then
426
  :
427
else
428
  exitcode=1
429
  echo as_func_success failed.
430
fi
431
 
432
if as_func_failure; then
433
  exitcode=1
434
  echo as_func_failure succeeded.
435
fi
436
 
437
if as_func_ret_success; then
438
  :
439
else
440
  exitcode=1
441
  echo as_func_ret_success failed.
442
fi
443
 
444
if as_func_ret_failure; then
445
  exitcode=1
446
  echo as_func_ret_failure succeeded.
447
fi
448
 
449
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
450
  :
451
else
452
  exitcode=1
453
  echo positional parameters were not saved.
454
fi
455
 
456
test \$exitcode = 0") || {
457
  echo No shell found that supports shell functions.
458 82 jeremybenn
  echo Please tell bug-autoconf@gnu.org about your system,
459
  echo including any error possibly output before this message.
460
  echo This can help us improve future autoconf versions.
461
  echo Configuration will now proceed without shell functions.
462 19 jeremybenn
}
463
 
464
 
465
 
466
  as_lineno_1=$LINENO
467
  as_lineno_2=$LINENO
468
  test "x$as_lineno_1" != "x$as_lineno_2" &&
469
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
470
 
471
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
472
  # uniformly replaced by the line number.  The first 'sed' inserts a
473
  # line-number line after each line using $LINENO; the second 'sed'
474
  # does the real work.  The second script uses 'N' to pair each
475
  # line-number line with the line containing $LINENO, and appends
476
  # trailing '-' during substitution so that $LINENO is not a special
477
  # case at line end.
478
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
479
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
480
  # E. McMahon (1931-1989) for sed's syntax.  :-)
481
  sed -n '
482
    p
483
    /[$]LINENO/=
484
  ' <$as_myself |
485
    sed '
486
      s/[$]LINENO.*/&-/
487
      t lineno
488
      b
489
      :lineno
490
      N
491
      :loop
492
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493
      t loop
494
      s/-\n.*//
495
    ' >$as_me.lineno &&
496
  chmod +x "$as_me.lineno" ||
497 82 jeremybenn
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
498 19 jeremybenn
   { (exit 1); exit 1; }; }
499
 
500
  # Don't try to exec as it changes $[0], causing all sort of problems
501
  # (the dirname of $[0] is not the place where we might find the
502
  # original and so on.  Autoconf is especially sensitive to this).
503
  . "./$as_me.lineno"
504
  # Exit status is that of the last command.
505
  exit
506
}
507
 
508
 
509
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
510
  as_dirname=dirname
511
else
512
  as_dirname=false
513
fi
514
 
515
ECHO_C= ECHO_N= ECHO_T=
516
case `echo -n x` in
517
-n*)
518
  case `echo 'x\c'` in
519
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
520
  *)   ECHO_C='\c';;
521
  esac;;
522
*)
523
  ECHO_N='-n';;
524
esac
525
if expr a : '\(a\)' >/dev/null 2>&1 &&
526
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
527
  as_expr=expr
528
else
529
  as_expr=false
530
fi
531
 
532
rm -f conf$$ conf$$.exe conf$$.file
533
if test -d conf$$.dir; then
534
  rm -f conf$$.dir/conf$$.file
535
else
536
  rm -f conf$$.dir
537 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
538 19 jeremybenn
fi
539 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
540
  if ln -s conf$$.file conf$$ 2>/dev/null; then
541
    as_ln_s='ln -s'
542
    # ... but there are two gotchas:
543
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
544
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
545
    # In both cases, we have to default to `cp -p'.
546
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
547
      as_ln_s='cp -p'
548
  elif ln conf$$.file conf$$ 2>/dev/null; then
549
    as_ln_s=ln
550
  else
551 19 jeremybenn
    as_ln_s='cp -p'
552 82 jeremybenn
  fi
553 19 jeremybenn
else
554
  as_ln_s='cp -p'
555
fi
556
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
557
rmdir conf$$.dir 2>/dev/null
558
 
559
if mkdir -p . 2>/dev/null; then
560
  as_mkdir_p=:
561
else
562
  test -d ./-p && rmdir ./-p
563
  as_mkdir_p=false
564
fi
565
 
566
if test -x / >/dev/null 2>&1; then
567
  as_test_x='test -x'
568
else
569
  if ls -dL / >/dev/null 2>&1; then
570
    as_ls_L_option=L
571
  else
572
    as_ls_L_option=
573
  fi
574
  as_test_x='
575
    eval sh -c '\''
576
      if test -d "$1"; then
577 82 jeremybenn
        test -d "$1/.";
578 19 jeremybenn
      else
579
        case $1 in
580 82 jeremybenn
        -*)set "./$1";;
581 19 jeremybenn
        esac;
582
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
583
        ???[sx]*):;;*)false;;esac;fi
584
    '\'' sh
585
  '
586
fi
587
as_executable_p=$as_test_x
588
 
589
# Sed expression to map a string onto a valid CPP name.
590
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591
 
592
# Sed expression to map a string onto a valid variable name.
593
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594
 
595
 
596
 
597
 
598
# Check that we are running under the correct shell.
599
SHELL=${CONFIG_SHELL-/bin/sh}
600
 
601 82 jeremybenn
case X$lt_ECHO in
602 19 jeremybenn
X*--fallback-echo)
603
  # Remove one level of quotation (which was required for Make).
604 82 jeremybenn
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
605 19 jeremybenn
  ;;
606
esac
607
 
608 82 jeremybenn
ECHO=${lt_ECHO-echo}
609 19 jeremybenn
if test "X$1" = X--no-reexec; then
610
  # Discard the --no-reexec flag, and continue.
611
  shift
612
elif test "X$1" = X--fallback-echo; then
613
  # Avoid inline document here, it may be left over
614
  :
615 82 jeremybenn
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
616
  # Yippee, $ECHO works!
617 19 jeremybenn
  :
618
else
619
  # Restart under the correct shell.
620
  exec $SHELL "$0" --no-reexec ${1+"$@"}
621
fi
622
 
623
if test "X$1" = X--fallback-echo; then
624
  # used as fallback echo
625
  shift
626 82 jeremybenn
  cat <<_LT_EOF
627 19 jeremybenn
$*
628 82 jeremybenn
_LT_EOF
629 19 jeremybenn
  exit 0
630
fi
631
 
632
# The HP-UX ksh and POSIX shell print the target directory to stdout
633
# if CDPATH is set.
634
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
635
 
636 82 jeremybenn
if test -z "$lt_ECHO"; then
637
  if test "X${echo_test_string+set}" != Xset; then
638
    # find a string as large as possible, as long as the shell can cope with it
639
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
640
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
641
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
642
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
643
      then
644
        break
645
      fi
646
    done
647
  fi
648 19 jeremybenn
 
649 82 jeremybenn
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
650
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
651
     test "X$echo_testing_string" = "X$echo_test_string"; then
652
    :
653
  else
654
    # The Solaris, AIX, and Digital Unix default echo programs unquote
655
    # backslashes.  This makes it impossible to quote backslashes using
656
    #   echo "$something" | sed 's/\\/\\\\/g'
657
    #
658
    # So, first we look for a working echo in the user's PATH.
659 19 jeremybenn
 
660 82 jeremybenn
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
661
    for dir in $PATH /usr/ucb; do
662
      IFS="$lt_save_ifs"
663
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
664
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
665
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
666
         test "X$echo_testing_string" = "X$echo_test_string"; then
667
        ECHO="$dir/echo"
668
        break
669
      fi
670
    done
671 19 jeremybenn
    IFS="$lt_save_ifs"
672
 
673 82 jeremybenn
    if test "X$ECHO" = Xecho; then
674
      # We didn't find a better echo, so look for alternatives.
675
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
676
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
677
         test "X$echo_testing_string" = "X$echo_test_string"; then
678
        # This shell has a builtin print -r that does the trick.
679
        ECHO='print -r'
680
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
681
           test "X$CONFIG_SHELL" != X/bin/ksh; then
682
        # If we have ksh, try running configure again with it.
683
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
684
        export ORIGINAL_CONFIG_SHELL
685
        CONFIG_SHELL=/bin/ksh
686
        export CONFIG_SHELL
687
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
688
      else
689
        # Try using printf.
690
        ECHO='printf %s\n'
691
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
692
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
693 19 jeremybenn
           test "X$echo_testing_string" = "X$echo_test_string"; then
694 82 jeremybenn
          # Cool, printf works
695
          :
696
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
697
             test "X$echo_testing_string" = 'X\t' &&
698
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
699
             test "X$echo_testing_string" = "X$echo_test_string"; then
700
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
701
          export CONFIG_SHELL
702
          SHELL="$CONFIG_SHELL"
703
          export SHELL
704
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
705
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
706
             test "X$echo_testing_string" = 'X\t' &&
707
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
708
             test "X$echo_testing_string" = "X$echo_test_string"; then
709
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
710
        else
711
          # maybe with a smaller string...
712
          prev=:
713 19 jeremybenn
 
714 82 jeremybenn
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
715
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
716
            then
717
              break
718
            fi
719
            prev="$cmd"
720
          done
721
 
722
          if test "$prev" != 'sed 50q "$0"'; then
723
            echo_test_string=`eval $prev`
724
            export echo_test_string
725
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
726
          else
727
            # Oops.  We lost completely, so just stick with echo.
728
            ECHO=echo
729 19 jeremybenn
          fi
730 82 jeremybenn
        fi
731 19 jeremybenn
      fi
732
    fi
733
  fi
734
fi
735
 
736
# Copy echo and quote the copy suitably for passing to libtool from
737
# the Makefile, instead of quoting the original, which is used later.
738 82 jeremybenn
lt_ECHO=$ECHO
739
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
740
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
741 19 jeremybenn
fi
742
 
743
 
744
 
745
 
746
exec 7<&0 &1
747
 
748
# Name of the host.
749
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
750
# so uname gets run too.
751
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
752
 
753
#
754
# Initializations.
755
#
756
ac_default_prefix=/usr/local
757
ac_clean_files=
758
ac_config_libobj_dir=.
759
LIBOBJS=
760
cross_compiling=no
761
subdirs=
762
MFLAGS=
763
MAKEFLAGS=
764
SHELL=${CONFIG_SHELL-/bin/sh}
765
 
766
# Identity of this package.
767
PACKAGE_NAME='or1ksim'
768
PACKAGE_TARNAME='or1ksim'
769 89 jeremybenn
PACKAGE_VERSION='2010-04-21'
770
PACKAGE_STRING='or1ksim 2010-04-21'
771 19 jeremybenn
PACKAGE_BUGREPORT='openrisc@opencores.org'
772
 
773
ac_unique_file="cpu/or32/execute.c"
774 82 jeremybenn
enable_option_checking=no
775 19 jeremybenn
# Factoring default headers for most tests.
776
ac_includes_default="\
777
#include 
778
#ifdef HAVE_SYS_TYPES_H
779
# include 
780
#endif
781
#ifdef HAVE_SYS_STAT_H
782
# include 
783
#endif
784
#ifdef STDC_HEADERS
785
# include 
786
# include 
787
#else
788
# ifdef HAVE_STDLIB_H
789
#  include 
790
# endif
791
#endif
792
#ifdef HAVE_STRING_H
793
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
794
#  include 
795
# endif
796
# include 
797
#endif
798
#ifdef HAVE_STRINGS_H
799
# include 
800
#endif
801
#ifdef HAVE_INTTYPES_H
802
# include 
803
#endif
804
#ifdef HAVE_STDINT_H
805
# include 
806
#endif
807
#ifdef HAVE_UNISTD_H
808
# include 
809
#endif"
810
 
811 82 jeremybenn
ac_subst_vars='am__EXEEXT_FALSE
812
am__EXEEXT_TRUE
813
LTLIBOBJS
814
INCLUDES
815
TERMCAP_LIB
816
SUMVERSION
817
ARFLAGS
818
LOCAL_DEFS
819
LOCAL_LDFLAGS
820
LOCAL_CFLAGS
821
BUILD_DIR
822
DYNAMIC_EXECUTION_FALSE
823
DYNAMIC_EXECUTION_TRUE
824
GENERATE_NEEDED_FALSE
825
GENERATE_NEEDED_TRUE
826
DEBUGFLAGS
827
USE_ARGDATE_FALSE
828
USE_ARGDATE_TRUE
829
USE_ARGREX_FALSE
830
USE_ARGREX_TRUE
831
USE_SYS_GETOPTLONG_FALSE
832
USE_SYS_GETOPTLONG_TRUE
833
POW_LIB
834
LIBOBJS
835
MAKE_SHELL
836
_GNU_SOURCE
837
am__fastdepCCAS_FALSE
838
am__fastdepCCAS_TRUE
839
CCASDEPMODE
840
CCASFLAGS
841
CCAS
842
CPU_ARCH
843
am__fastdepCC_FALSE
844
am__fastdepCC_TRUE
845
CCDEPMODE
846
AMDEPBACKSLASH
847
AMDEP_FALSE
848
AMDEP_TRUE
849
am__quote
850
am__include
851
DEPDIR
852
am__untar
853
am__tar
854
AMTAR
855
am__leading_dot
856
SET_MAKE
857
AWK
858
mkdir_p
859
MKDIR_P
860
INSTALL_STRIP_PROGRAM
861
install_sh
862
MAKEINFO
863
AUTOHEADER
864
AUTOMAKE
865
AUTOCONF
866
ACLOCAL
867
VERSION
868
PACKAGE
869
CYGPATH_W
870
am__isrc
871
INSTALL_DATA
872
INSTALL_SCRIPT
873
INSTALL_PROGRAM
874
CPP
875
OTOOL64
876
OTOOL
877
LIPO
878
NMEDIT
879
DSYMUTIL
880
lt_ECHO
881 19 jeremybenn
RANLIB
882
STRIP
883 82 jeremybenn
AR
884
OBJDUMP
885
LN_S
886
NM
887
ac_ct_DUMPBIN
888
DUMPBIN
889
LD
890
FGREP
891
EGREP
892
GREP
893
SED
894
OBJEXT
895
EXEEXT
896
ac_ct_CC
897
CPPFLAGS
898
LDFLAGS
899
CFLAGS
900
CC
901 19 jeremybenn
LIBTOOL
902 82 jeremybenn
target_os
903
target_vendor
904
target_cpu
905
target
906
host_os
907
host_vendor
908
host_cpu
909
host
910
build_os
911
build_vendor
912
build_cpu
913
build
914
subdirs
915
target_alias
916
host_alias
917
build_alias
918
LIBS
919
ECHO_T
920
ECHO_N
921
ECHO_C
922
DEFS
923
mandir
924
localedir
925
libdir
926
psdir
927
pdfdir
928
dvidir
929
htmldir
930
infodir
931
docdir
932
oldincludedir
933
includedir
934
localstatedir
935
sharedstatedir
936
sysconfdir
937
datadir
938
datarootdir
939
libexecdir
940
sbindir
941
bindir
942
program_transform_name
943
prefix
944
exec_prefix
945
PACKAGE_BUGREPORT
946
PACKAGE_STRING
947
PACKAGE_VERSION
948
PACKAGE_TARNAME
949
PACKAGE_NAME
950
PATH_SEPARATOR
951
SHELL'
952 19 jeremybenn
ac_subst_files=''
953 82 jeremybenn
ac_user_opts='
954
enable_option_checking
955
enable_shared
956
enable_static
957
with_pic
958
enable_fast_install
959
with_gnu_ld
960
enable_libtool_lock
961
enable_dependency_tracking
962
enable_profiling
963
enable_execution
964
enable_ethphy
965
enable_range_stats
966
enable_ov_flag
967
enable_arith_flag
968
enable_debug
969
'
970 19 jeremybenn
      ac_precious_vars='build_alias
971
host_alias
972
target_alias
973
CC
974
CFLAGS
975
LDFLAGS
976
LIBS
977
CPPFLAGS
978
CPP
979 82 jeremybenn
CCAS
980
CCASFLAGS'
981
ac_subdirs_all='testsuite'
982 19 jeremybenn
 
983
# Initialize some variables set by options.
984
ac_init_help=
985
ac_init_version=false
986 82 jeremybenn
ac_unrecognized_opts=
987
ac_unrecognized_sep=
988 19 jeremybenn
# The variables have the same names as the options, with
989
# dashes changed to underlines.
990
cache_file=/dev/null
991
exec_prefix=NONE
992
no_create=
993
no_recursion=
994
prefix=NONE
995
program_prefix=NONE
996
program_suffix=NONE
997
program_transform_name=s,x,x,
998
silent=
999
site=
1000
srcdir=
1001
verbose=
1002
x_includes=NONE
1003
x_libraries=NONE
1004
 
1005
# Installation directory options.
1006
# These are left unexpanded so users can "make install exec_prefix=/foo"
1007
# and all the variables that are supposed to be based on exec_prefix
1008
# by default will actually change.
1009
# Use braces instead of parens because sh, perl, etc. also accept them.
1010
# (The list follows the same order as the GNU Coding Standards.)
1011
bindir='${exec_prefix}/bin'
1012
sbindir='${exec_prefix}/sbin'
1013
libexecdir='${exec_prefix}/libexec'
1014
datarootdir='${prefix}/share'
1015
datadir='${datarootdir}'
1016
sysconfdir='${prefix}/etc'
1017
sharedstatedir='${prefix}/com'
1018
localstatedir='${prefix}/var'
1019
includedir='${prefix}/include'
1020
oldincludedir='/usr/include'
1021
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1022
infodir='${datarootdir}/info'
1023
htmldir='${docdir}'
1024
dvidir='${docdir}'
1025
pdfdir='${docdir}'
1026
psdir='${docdir}'
1027
libdir='${exec_prefix}/lib'
1028
localedir='${datarootdir}/locale'
1029
mandir='${datarootdir}/man'
1030
 
1031
ac_prev=
1032
ac_dashdash=
1033
for ac_option
1034
do
1035
  # If the previous option needs an argument, assign it.
1036
  if test -n "$ac_prev"; then
1037
    eval $ac_prev=\$ac_option
1038
    ac_prev=
1039
    continue
1040
  fi
1041
 
1042
  case $ac_option in
1043
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1044
  *)    ac_optarg=yes ;;
1045
  esac
1046
 
1047
  # Accept the important Cygnus configure options, so we can diagnose typos.
1048
 
1049
  case $ac_dashdash$ac_option in
1050
  --)
1051
    ac_dashdash=yes ;;
1052
 
1053
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1054
    ac_prev=bindir ;;
1055
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1056
    bindir=$ac_optarg ;;
1057
 
1058
  -build | --build | --buil | --bui | --bu)
1059
    ac_prev=build_alias ;;
1060
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1061
    build_alias=$ac_optarg ;;
1062
 
1063
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1064
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1065
    ac_prev=cache_file ;;
1066
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1067
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1068
    cache_file=$ac_optarg ;;
1069
 
1070
  --config-cache | -C)
1071
    cache_file=config.cache ;;
1072
 
1073
  -datadir | --datadir | --datadi | --datad)
1074
    ac_prev=datadir ;;
1075
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1076
    datadir=$ac_optarg ;;
1077
 
1078
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1079
  | --dataroo | --dataro | --datar)
1080
    ac_prev=datarootdir ;;
1081
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1082
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1083
    datarootdir=$ac_optarg ;;
1084
 
1085
  -disable-* | --disable-*)
1086 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1087 19 jeremybenn
    # Reject names that are not valid shell variable names.
1088 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1090 19 jeremybenn
   { (exit 1); exit 1; }; }
1091 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1092
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093
    case $ac_user_opts in
1094
      *"
1095
"enable_$ac_useropt"
1096
"*) ;;
1097
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1098
         ac_unrecognized_sep=', ';;
1099
    esac
1100
    eval enable_$ac_useropt=no ;;
1101 19 jeremybenn
 
1102
  -docdir | --docdir | --docdi | --doc | --do)
1103
    ac_prev=docdir ;;
1104
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1105
    docdir=$ac_optarg ;;
1106
 
1107
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1108
    ac_prev=dvidir ;;
1109
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1110
    dvidir=$ac_optarg ;;
1111
 
1112
  -enable-* | --enable-*)
1113 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1114 19 jeremybenn
    # Reject names that are not valid shell variable names.
1115 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1117 19 jeremybenn
   { (exit 1); exit 1; }; }
1118 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1119
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120
    case $ac_user_opts in
1121
      *"
1122
"enable_$ac_useropt"
1123
"*) ;;
1124
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1125
         ac_unrecognized_sep=', ';;
1126
    esac
1127
    eval enable_$ac_useropt=\$ac_optarg ;;
1128 19 jeremybenn
 
1129
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1130
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1131
  | --exec | --exe | --ex)
1132
    ac_prev=exec_prefix ;;
1133
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1134
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1135
  | --exec=* | --exe=* | --ex=*)
1136
    exec_prefix=$ac_optarg ;;
1137
 
1138
  -gas | --gas | --ga | --g)
1139
    # Obsolete; use --with-gas.
1140
    with_gas=yes ;;
1141
 
1142
  -help | --help | --hel | --he | -h)
1143
    ac_init_help=long ;;
1144
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1145
    ac_init_help=recursive ;;
1146
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1147
    ac_init_help=short ;;
1148
 
1149
  -host | --host | --hos | --ho)
1150
    ac_prev=host_alias ;;
1151
  -host=* | --host=* | --hos=* | --ho=*)
1152
    host_alias=$ac_optarg ;;
1153
 
1154
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1155
    ac_prev=htmldir ;;
1156
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1157
  | --ht=*)
1158
    htmldir=$ac_optarg ;;
1159
 
1160
  -includedir | --includedir | --includedi | --included | --include \
1161
  | --includ | --inclu | --incl | --inc)
1162
    ac_prev=includedir ;;
1163
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1164
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1165
    includedir=$ac_optarg ;;
1166
 
1167
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1168
    ac_prev=infodir ;;
1169
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1170
    infodir=$ac_optarg ;;
1171
 
1172
  -libdir | --libdir | --libdi | --libd)
1173
    ac_prev=libdir ;;
1174
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1175
    libdir=$ac_optarg ;;
1176
 
1177
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1178
  | --libexe | --libex | --libe)
1179
    ac_prev=libexecdir ;;
1180
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1181
  | --libexe=* | --libex=* | --libe=*)
1182
    libexecdir=$ac_optarg ;;
1183
 
1184
  -localedir | --localedir | --localedi | --localed | --locale)
1185
    ac_prev=localedir ;;
1186
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1187
    localedir=$ac_optarg ;;
1188
 
1189
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1190
  | --localstate | --localstat | --localsta | --localst | --locals)
1191
    ac_prev=localstatedir ;;
1192
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1193
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1194
    localstatedir=$ac_optarg ;;
1195
 
1196
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1197
    ac_prev=mandir ;;
1198
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1199
    mandir=$ac_optarg ;;
1200
 
1201
  -nfp | --nfp | --nf)
1202
    # Obsolete; use --without-fp.
1203
    with_fp=no ;;
1204
 
1205
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1206
  | --no-cr | --no-c | -n)
1207
    no_create=yes ;;
1208
 
1209
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1210
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1211
    no_recursion=yes ;;
1212
 
1213
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1214
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1215
  | --oldin | --oldi | --old | --ol | --o)
1216
    ac_prev=oldincludedir ;;
1217
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1218
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1219
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1220
    oldincludedir=$ac_optarg ;;
1221
 
1222
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1223
    ac_prev=prefix ;;
1224
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1225
    prefix=$ac_optarg ;;
1226
 
1227
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1228
  | --program-pre | --program-pr | --program-p)
1229
    ac_prev=program_prefix ;;
1230
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1231
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1232
    program_prefix=$ac_optarg ;;
1233
 
1234
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1235
  | --program-suf | --program-su | --program-s)
1236
    ac_prev=program_suffix ;;
1237
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1238
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1239
    program_suffix=$ac_optarg ;;
1240
 
1241
  -program-transform-name | --program-transform-name \
1242
  | --program-transform-nam | --program-transform-na \
1243
  | --program-transform-n | --program-transform- \
1244
  | --program-transform | --program-transfor \
1245
  | --program-transfo | --program-transf \
1246
  | --program-trans | --program-tran \
1247
  | --progr-tra | --program-tr | --program-t)
1248
    ac_prev=program_transform_name ;;
1249
  -program-transform-name=* | --program-transform-name=* \
1250
  | --program-transform-nam=* | --program-transform-na=* \
1251
  | --program-transform-n=* | --program-transform-=* \
1252
  | --program-transform=* | --program-transfor=* \
1253
  | --program-transfo=* | --program-transf=* \
1254
  | --program-trans=* | --program-tran=* \
1255
  | --progr-tra=* | --program-tr=* | --program-t=*)
1256
    program_transform_name=$ac_optarg ;;
1257
 
1258
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1259
    ac_prev=pdfdir ;;
1260
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1261
    pdfdir=$ac_optarg ;;
1262
 
1263
  -psdir | --psdir | --psdi | --psd | --ps)
1264
    ac_prev=psdir ;;
1265
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1266
    psdir=$ac_optarg ;;
1267
 
1268
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1269
  | -silent | --silent | --silen | --sile | --sil)
1270
    silent=yes ;;
1271
 
1272
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1273
    ac_prev=sbindir ;;
1274
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1275
  | --sbi=* | --sb=*)
1276
    sbindir=$ac_optarg ;;
1277
 
1278
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1279
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1280
  | --sharedst | --shareds | --shared | --share | --shar \
1281
  | --sha | --sh)
1282
    ac_prev=sharedstatedir ;;
1283
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1284
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1285
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1286
  | --sha=* | --sh=*)
1287
    sharedstatedir=$ac_optarg ;;
1288
 
1289
  -site | --site | --sit)
1290
    ac_prev=site ;;
1291
  -site=* | --site=* | --sit=*)
1292
    site=$ac_optarg ;;
1293
 
1294
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1295
    ac_prev=srcdir ;;
1296
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1297
    srcdir=$ac_optarg ;;
1298
 
1299
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1300
  | --syscon | --sysco | --sysc | --sys | --sy)
1301
    ac_prev=sysconfdir ;;
1302
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1303
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1304
    sysconfdir=$ac_optarg ;;
1305
 
1306
  -target | --target | --targe | --targ | --tar | --ta | --t)
1307
    ac_prev=target_alias ;;
1308
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1309
    target_alias=$ac_optarg ;;
1310
 
1311
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1312
    verbose=yes ;;
1313
 
1314
  -version | --version | --versio | --versi | --vers | -V)
1315
    ac_init_version=: ;;
1316
 
1317
  -with-* | --with-*)
1318 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1319 19 jeremybenn
    # Reject names that are not valid shell variable names.
1320 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1322 19 jeremybenn
   { (exit 1); exit 1; }; }
1323 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1324
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1325
    case $ac_user_opts in
1326
      *"
1327
"with_$ac_useropt"
1328
"*) ;;
1329
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1330
         ac_unrecognized_sep=', ';;
1331
    esac
1332
    eval with_$ac_useropt=\$ac_optarg ;;
1333 19 jeremybenn
 
1334
  -without-* | --without-*)
1335 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1336 19 jeremybenn
    # Reject names that are not valid shell variable names.
1337 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1338
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1339 19 jeremybenn
   { (exit 1); exit 1; }; }
1340 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1341
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342
    case $ac_user_opts in
1343
      *"
1344
"with_$ac_useropt"
1345
"*) ;;
1346
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1347
         ac_unrecognized_sep=', ';;
1348
    esac
1349
    eval with_$ac_useropt=no ;;
1350 19 jeremybenn
 
1351
  --x)
1352
    # Obsolete; use --with-x.
1353
    with_x=yes ;;
1354
 
1355
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1356
  | --x-incl | --x-inc | --x-in | --x-i)
1357
    ac_prev=x_includes ;;
1358
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1359
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1360
    x_includes=$ac_optarg ;;
1361
 
1362
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1363
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1364
    ac_prev=x_libraries ;;
1365
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1366
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1367
    x_libraries=$ac_optarg ;;
1368
 
1369 82 jeremybenn
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1370 19 jeremybenn
Try \`$0 --help' for more information." >&2
1371
   { (exit 1); exit 1; }; }
1372
    ;;
1373
 
1374
  *=*)
1375
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1376
    # Reject names that are not valid shell variable names.
1377
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1378 82 jeremybenn
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1379 19 jeremybenn
   { (exit 1); exit 1; }; }
1380
    eval $ac_envvar=\$ac_optarg
1381
    export $ac_envvar ;;
1382
 
1383
  *)
1384
    # FIXME: should be removed in autoconf 3.0.
1385 82 jeremybenn
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1386 19 jeremybenn
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1387 82 jeremybenn
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1388 19 jeremybenn
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1389
    ;;
1390
 
1391
  esac
1392
done
1393
 
1394
if test -n "$ac_prev"; then
1395
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1396 82 jeremybenn
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1397 19 jeremybenn
   { (exit 1); exit 1; }; }
1398
fi
1399
 
1400 82 jeremybenn
if test -n "$ac_unrecognized_opts"; then
1401
  case $enable_option_checking in
1402
    no) ;;
1403
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1404
   { (exit 1); exit 1; }; } ;;
1405
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1406
  esac
1407
fi
1408
 
1409
# Check all directory arguments for consistency.
1410 19 jeremybenn
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1411
                datadir sysconfdir sharedstatedir localstatedir includedir \
1412
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1413
                libdir localedir mandir
1414
do
1415
  eval ac_val=\$$ac_var
1416 82 jeremybenn
  # Remove trailing slashes.
1417 19 jeremybenn
  case $ac_val in
1418 82 jeremybenn
    */ )
1419
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1420
      eval $ac_var=\$ac_val;;
1421
  esac
1422
  # Be sure to have absolute directory names.
1423
  case $ac_val in
1424 19 jeremybenn
    [\\/$]* | ?:[\\/]* )  continue;;
1425
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1426
  esac
1427 82 jeremybenn
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1428 19 jeremybenn
   { (exit 1); exit 1; }; }
1429
done
1430
 
1431
# There might be people who depend on the old broken behavior: `$host'
1432
# used to hold the argument of --host etc.
1433
# FIXME: To remove some day.
1434
build=$build_alias
1435
host=$host_alias
1436
target=$target_alias
1437
 
1438
# FIXME: To remove some day.
1439
if test "x$host_alias" != x; then
1440
  if test "x$build_alias" = x; then
1441
    cross_compiling=maybe
1442 82 jeremybenn
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1443 19 jeremybenn
    If a cross compiler is detected then cross compile mode will be used." >&2
1444
  elif test "x$build_alias" != "x$host_alias"; then
1445
    cross_compiling=yes
1446
  fi
1447
fi
1448
 
1449
ac_tool_prefix=
1450
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1451
 
1452
test "$silent" = yes && exec 6>/dev/null
1453
 
1454
 
1455
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1456
ac_ls_di=`ls -di .` &&
1457
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1458 82 jeremybenn
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1459 19 jeremybenn
   { (exit 1); exit 1; }; }
1460
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1461 82 jeremybenn
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1462 19 jeremybenn
   { (exit 1); exit 1; }; }
1463
 
1464
 
1465
# Find the source files, if location was not specified.
1466
if test -z "$srcdir"; then
1467
  ac_srcdir_defaulted=yes
1468
  # Try the directory containing this script, then the parent directory.
1469 82 jeremybenn
  ac_confdir=`$as_dirname -- "$as_myself" ||
1470
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1471
         X"$as_myself" : 'X\(//\)[^/]' \| \
1472
         X"$as_myself" : 'X\(//\)$' \| \
1473
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1474
$as_echo X"$as_myself" |
1475 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1476
            s//\1/
1477
            q
1478
          }
1479
          /^X\(\/\/\)[^/].*/{
1480
            s//\1/
1481
            q
1482
          }
1483
          /^X\(\/\/\)$/{
1484
            s//\1/
1485
            q
1486
          }
1487
          /^X\(\/\).*/{
1488
            s//\1/
1489
            q
1490
          }
1491
          s/.*/./; q'`
1492
  srcdir=$ac_confdir
1493
  if test ! -r "$srcdir/$ac_unique_file"; then
1494
    srcdir=..
1495
  fi
1496
else
1497
  ac_srcdir_defaulted=no
1498
fi
1499
if test ! -r "$srcdir/$ac_unique_file"; then
1500
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1501 82 jeremybenn
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1502 19 jeremybenn
   { (exit 1); exit 1; }; }
1503
fi
1504
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1505
ac_abs_confdir=`(
1506 82 jeremybenn
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1507 19 jeremybenn
   { (exit 1); exit 1; }; }
1508
        pwd)`
1509
# When building in place, set srcdir=.
1510
if test "$ac_abs_confdir" = "$ac_pwd"; then
1511
  srcdir=.
1512
fi
1513
# Remove unnecessary trailing slashes from srcdir.
1514
# Double slashes in file names in object file debugging info
1515
# mess up M-x gdb in Emacs.
1516
case $srcdir in
1517
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1518
esac
1519
for ac_var in $ac_precious_vars; do
1520
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1521
  eval ac_env_${ac_var}_value=\$${ac_var}
1522
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1523
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1524
done
1525
 
1526
#
1527
# Report the --help message.
1528
#
1529
if test "$ac_init_help" = "long"; then
1530
  # Omit some internal or obsolete options to make the list less imposing.
1531
  # This message is too long to be a string in the A/UX 3.1 sh.
1532
  cat <<_ACEOF
1533 89 jeremybenn
\`configure' configures or1ksim 2010-04-21 to adapt to many kinds of systems.
1534 19 jeremybenn
 
1535
Usage: $0 [OPTION]... [VAR=VALUE]...
1536
 
1537
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1538
VAR=VALUE.  See below for descriptions of some of the useful variables.
1539
 
1540
Defaults for the options are specified in brackets.
1541
 
1542
Configuration:
1543
  -h, --help              display this help and exit
1544
      --help=short        display options specific to this package
1545
      --help=recursive    display the short help of all the included packages
1546
  -V, --version           display version information and exit
1547
  -q, --quiet, --silent   do not print \`checking...' messages
1548
      --cache-file=FILE   cache test results in FILE [disabled]
1549
  -C, --config-cache      alias for \`--cache-file=config.cache'
1550
  -n, --no-create         do not create output files
1551
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1552
 
1553
Installation directories:
1554
  --prefix=PREFIX         install architecture-independent files in PREFIX
1555 82 jeremybenn
                          [$ac_default_prefix]
1556 19 jeremybenn
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1557 82 jeremybenn
                          [PREFIX]
1558 19 jeremybenn
 
1559
By default, \`make install' will install all the files in
1560
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1561
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1562
for instance \`--prefix=\$HOME'.
1563
 
1564
For better control, use the options below.
1565
 
1566
Fine tuning of the installation directories:
1567 82 jeremybenn
  --bindir=DIR            user executables [EPREFIX/bin]
1568
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1569
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1570
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1571
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1572
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1573
  --libdir=DIR            object code libraries [EPREFIX/lib]
1574
  --includedir=DIR        C header files [PREFIX/include]
1575
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1576
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1577
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1578
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1579
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1580
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1581
  --docdir=DIR            documentation root [DATAROOTDIR/doc/or1ksim]
1582
  --htmldir=DIR           html documentation [DOCDIR]
1583
  --dvidir=DIR            dvi documentation [DOCDIR]
1584
  --pdfdir=DIR            pdf documentation [DOCDIR]
1585
  --psdir=DIR             ps documentation [DOCDIR]
1586 19 jeremybenn
_ACEOF
1587
 
1588
  cat <<\_ACEOF
1589
 
1590
Program names:
1591
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1592
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1593
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1594
 
1595
System types:
1596
  --build=BUILD     configure for building on BUILD [guessed]
1597
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1598
  --target=TARGET   configure for building compilers for TARGET [HOST]
1599
_ACEOF
1600
fi
1601
 
1602
if test -n "$ac_init_help"; then
1603
  case $ac_init_help in
1604 89 jeremybenn
     short | recursive ) echo "Configuration of or1ksim 2010-04-21:";;
1605 19 jeremybenn
   esac
1606
  cat <<\_ACEOF
1607
 
1608
Optional Features:
1609 82 jeremybenn
  --disable-option-checking  ignore unrecognized --enable/--with options
1610 19 jeremybenn
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1611
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1612
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1613
  --enable-static[=PKGS]  build static libraries [default=yes]
1614
  --enable-fast-install[=PKGS]
1615
                          optimize for fast installation [default=yes]
1616
  --disable-libtool-lock  avoid locking (might break parallel builds)
1617
  --disable-dependency-tracking  speeds up one-time build
1618
  --enable-dependency-tracking   do not reject slow dependency extractors
1619
  --enable-profiling      generate profiling code
1620
  --enable-execution Execution style to use (simple/complex/dynamic)
1621
  --enable-ethphy    compiles sim with ethernet phy support
1622
  --enable-range-stats      Specifies, whether we should do register accesses over time analysis.
1623
  --enable-ov-flag      Whether instructions set overflow flag.
1624
  --enable-arith-flag      Whether arithmethic instructions setflag.
1625
  --enable-debug          enable library debugging symbols
1626
 
1627
Optional Packages:
1628
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1629
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1630
  --with-pic              try to use only PIC/non-PIC objects [default=use
1631
                          both]
1632 82 jeremybenn
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1633 19 jeremybenn
 
1634
Some influential environment variables:
1635
  CC          C compiler command
1636
  CFLAGS      C compiler flags
1637
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1638
              nonstandard directory 
1639
  LIBS        libraries to pass to the linker, e.g. -l
1640
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1641
              you have headers in a nonstandard directory 
1642
  CPP         C preprocessor
1643 82 jeremybenn
  CCAS        assembler compiler command (defaults to CC)
1644
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1645 19 jeremybenn
 
1646
Use these variables to override the choices made by `configure' or to help
1647
it to find libraries and programs with nonstandard names/locations.
1648
 
1649
Report bugs to .
1650
_ACEOF
1651
ac_status=$?
1652
fi
1653
 
1654
if test "$ac_init_help" = "recursive"; then
1655
  # If there are subdirs, report their specific --help.
1656
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1657 82 jeremybenn
    test -d "$ac_dir" ||
1658
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1659
      continue
1660 19 jeremybenn
    ac_builddir=.
1661
 
1662
case "$ac_dir" in
1663
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664
*)
1665 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1666 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
1667 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1668 19 jeremybenn
  case $ac_top_builddir_sub in
1669
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1671
  esac ;;
1672
esac
1673
ac_abs_top_builddir=$ac_pwd
1674
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1675
# for backward compatibility:
1676
ac_top_builddir=$ac_top_build_prefix
1677
 
1678
case $srcdir in
1679
  .)  # We are building in place.
1680
    ac_srcdir=.
1681
    ac_top_srcdir=$ac_top_builddir_sub
1682
    ac_abs_top_srcdir=$ac_pwd ;;
1683
  [\\/]* | ?:[\\/]* )  # Absolute name.
1684
    ac_srcdir=$srcdir$ac_dir_suffix;
1685
    ac_top_srcdir=$srcdir
1686
    ac_abs_top_srcdir=$srcdir ;;
1687
  *) # Relative name.
1688
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1689
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1690
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1691
esac
1692
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1693
 
1694
    cd "$ac_dir" || { ac_status=$?; continue; }
1695
    # Check for guested configure.
1696
    if test -f "$ac_srcdir/configure.gnu"; then
1697
      echo &&
1698
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1699
    elif test -f "$ac_srcdir/configure"; then
1700
      echo &&
1701
      $SHELL "$ac_srcdir/configure" --help=recursive
1702
    else
1703 82 jeremybenn
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1704 19 jeremybenn
    fi || ac_status=$?
1705
    cd "$ac_pwd" || { ac_status=$?; break; }
1706
  done
1707
fi
1708
 
1709
test -n "$ac_init_help" && exit $ac_status
1710
if $ac_init_version; then
1711
  cat <<\_ACEOF
1712 89 jeremybenn
or1ksim configure 2010-04-21
1713 82 jeremybenn
generated by GNU Autoconf 2.63
1714 19 jeremybenn
 
1715
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1716 82 jeremybenn
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1717 19 jeremybenn
This configure script is free software; the Free Software Foundation
1718
gives unlimited permission to copy, distribute and modify it.
1719 82 jeremybenn
 
1720
Copyright (C) 1999-2008 OpenCores
1721
Copyright (C) 2008, 2010 Embecosm Limited
1722
 
1723
Contributor Jeremy Bennett 
1724
 
1725
This file is part of OpenRISC 1000 Architectural Simulator.
1726
 
1727
This program is free software; you can redistribute it and/or modify it
1728
under the terms of the GNU General Public License as published by the Free
1729
Software Foundation; either version 3 of the License, or (at your option)
1730
any later version.
1731
 
1732
This program is distributed in the hope that it will be useful, but WITHOUT
1733
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1734
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
1735
more details.
1736
 
1737
You should have received a copy of the GNU General Public License along
1738
with this program.  If not, see .
1739 19 jeremybenn
_ACEOF
1740
  exit
1741
fi
1742
cat >config.log <<_ACEOF
1743
This file contains any messages produced by compilers while
1744
running configure, to aid debugging if configure makes a mistake.
1745
 
1746 89 jeremybenn
It was created by or1ksim $as_me 2010-04-21, which was
1747 82 jeremybenn
generated by GNU Autoconf 2.63.  Invocation command line was
1748 19 jeremybenn
 
1749
  $ $0 $@
1750
 
1751
_ACEOF
1752
exec 5>>config.log
1753
{
1754
cat <<_ASUNAME
1755
## --------- ##
1756
## Platform. ##
1757
## --------- ##
1758
 
1759
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1760
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1761
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1762
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1763
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1764
 
1765
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1766
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1767
 
1768
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1769
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1770
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1771
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1772
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1773
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1774
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1775
 
1776
_ASUNAME
1777
 
1778
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779
for as_dir in $PATH
1780
do
1781
  IFS=$as_save_IFS
1782
  test -z "$as_dir" && as_dir=.
1783 82 jeremybenn
  $as_echo "PATH: $as_dir"
1784 19 jeremybenn
done
1785
IFS=$as_save_IFS
1786
 
1787
} >&5
1788
 
1789
cat >&5 <<_ACEOF
1790
 
1791
 
1792
## ----------- ##
1793
## Core tests. ##
1794
## ----------- ##
1795
 
1796
_ACEOF
1797
 
1798
 
1799
# Keep a trace of the command line.
1800
# Strip out --no-create and --no-recursion so they do not pile up.
1801
# Strip out --silent because we don't want to record it for future runs.
1802
# Also quote any args containing shell meta-characters.
1803
# Make two passes to allow for proper duplicate-argument suppression.
1804
ac_configure_args=
1805
ac_configure_args0=
1806
ac_configure_args1=
1807
ac_must_keep_next=false
1808
for ac_pass in 1 2
1809
do
1810
  for ac_arg
1811
  do
1812
    case $ac_arg in
1813
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1814
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1815
    | -silent | --silent | --silen | --sile | --sil)
1816
      continue ;;
1817
    *\'*)
1818 82 jeremybenn
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1819 19 jeremybenn
    esac
1820
    case $ac_pass in
1821
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1822
    2)
1823
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1824
      if test $ac_must_keep_next = true; then
1825
        ac_must_keep_next=false # Got value, back to normal.
1826
      else
1827
        case $ac_arg in
1828
          *=* | --config-cache | -C | -disable-* | --disable-* \
1829
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1830
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1831
          | -with-* | --with-* | -without-* | --without-* | --x)
1832
            case "$ac_configure_args0 " in
1833
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1834
            esac
1835
            ;;
1836
          -* ) ac_must_keep_next=true ;;
1837
        esac
1838
      fi
1839
      ac_configure_args="$ac_configure_args '$ac_arg'"
1840
      ;;
1841
    esac
1842
  done
1843
done
1844
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1845
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1846
 
1847
# When interrupted or exit'd, cleanup temporary files, and complete
1848
# config.log.  We remove comments because anyway the quotes in there
1849
# would cause problems or look ugly.
1850
# WARNING: Use '\'' to represent an apostrophe within the trap.
1851
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1852
trap 'exit_status=$?
1853
  # Save into config.log some information that might help in debugging.
1854
  {
1855
    echo
1856
 
1857
    cat <<\_ASBOX
1858
## ---------------- ##
1859
## Cache variables. ##
1860
## ---------------- ##
1861
_ASBOX
1862
    echo
1863
    # The following way of writing the cache mishandles newlines in values,
1864
(
1865
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1866
    eval ac_val=\$$ac_var
1867
    case $ac_val in #(
1868
    *${as_nl}*)
1869
      case $ac_var in #(
1870 82 jeremybenn
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1871
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1872 19 jeremybenn
      esac
1873
      case $ac_var in #(
1874
      _ | IFS | as_nl) ;; #(
1875 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1876 19 jeremybenn
      *) $as_unset $ac_var ;;
1877
      esac ;;
1878
    esac
1879
  done
1880
  (set) 2>&1 |
1881
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1882
    *${as_nl}ac_space=\ *)
1883
      sed -n \
1884
        "s/'\''/'\''\\\\'\'''\''/g;
1885
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1886
      ;; #(
1887
    *)
1888
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1889
      ;;
1890
    esac |
1891
    sort
1892
)
1893
    echo
1894
 
1895
    cat <<\_ASBOX
1896
## ----------------- ##
1897
## Output variables. ##
1898
## ----------------- ##
1899
_ASBOX
1900
    echo
1901
    for ac_var in $ac_subst_vars
1902
    do
1903
      eval ac_val=\$$ac_var
1904
      case $ac_val in
1905 82 jeremybenn
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1906 19 jeremybenn
      esac
1907 82 jeremybenn
      $as_echo "$ac_var='\''$ac_val'\''"
1908 19 jeremybenn
    done | sort
1909
    echo
1910
 
1911
    if test -n "$ac_subst_files"; then
1912
      cat <<\_ASBOX
1913
## ------------------- ##
1914
## File substitutions. ##
1915
## ------------------- ##
1916
_ASBOX
1917
      echo
1918
      for ac_var in $ac_subst_files
1919
      do
1920
        eval ac_val=\$$ac_var
1921
        case $ac_val in
1922 82 jeremybenn
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1923 19 jeremybenn
        esac
1924 82 jeremybenn
        $as_echo "$ac_var='\''$ac_val'\''"
1925 19 jeremybenn
      done | sort
1926
      echo
1927
    fi
1928
 
1929
    if test -s confdefs.h; then
1930
      cat <<\_ASBOX
1931
## ----------- ##
1932
## confdefs.h. ##
1933
## ----------- ##
1934
_ASBOX
1935
      echo
1936
      cat confdefs.h
1937
      echo
1938
    fi
1939
    test "$ac_signal" != 0 &&
1940 82 jeremybenn
      $as_echo "$as_me: caught signal $ac_signal"
1941
    $as_echo "$as_me: exit $exit_status"
1942 19 jeremybenn
  } >&5
1943
  rm -f core *.core core.conftest.* &&
1944
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1945
    exit $exit_status
1946
' 0
1947
for ac_signal in 1 2 13 15; do
1948
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1949
done
1950
ac_signal=0
1951
 
1952
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1953
rm -f -r conftest* confdefs.h
1954
 
1955
# Predefined preprocessor variables.
1956
 
1957
cat >>confdefs.h <<_ACEOF
1958
#define PACKAGE_NAME "$PACKAGE_NAME"
1959
_ACEOF
1960
 
1961
 
1962
cat >>confdefs.h <<_ACEOF
1963
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1964
_ACEOF
1965
 
1966
 
1967
cat >>confdefs.h <<_ACEOF
1968
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1969
_ACEOF
1970
 
1971
 
1972
cat >>confdefs.h <<_ACEOF
1973
#define PACKAGE_STRING "$PACKAGE_STRING"
1974
_ACEOF
1975
 
1976
 
1977
cat >>confdefs.h <<_ACEOF
1978
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1979
_ACEOF
1980
 
1981
 
1982
# Let the site file select an alternate cache file if it wants to.
1983 82 jeremybenn
# Prefer an explicitly selected file to automatically selected ones.
1984
ac_site_file1=NONE
1985
ac_site_file2=NONE
1986 19 jeremybenn
if test -n "$CONFIG_SITE"; then
1987 82 jeremybenn
  ac_site_file1=$CONFIG_SITE
1988 19 jeremybenn
elif test "x$prefix" != xNONE; then
1989 82 jeremybenn
  ac_site_file1=$prefix/share/config.site
1990
  ac_site_file2=$prefix/etc/config.site
1991 19 jeremybenn
else
1992 82 jeremybenn
  ac_site_file1=$ac_default_prefix/share/config.site
1993
  ac_site_file2=$ac_default_prefix/etc/config.site
1994 19 jeremybenn
fi
1995 82 jeremybenn
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1996 19 jeremybenn
do
1997 82 jeremybenn
  test "x$ac_site_file" = xNONE && continue
1998 19 jeremybenn
  if test -r "$ac_site_file"; then
1999 82 jeremybenn
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2000
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2001 19 jeremybenn
    sed 's/^/| /' "$ac_site_file" >&5
2002
    . "$ac_site_file"
2003
  fi
2004
done
2005
 
2006
if test -r "$cache_file"; then
2007
  # Some versions of bash will fail to source /dev/null (special
2008
  # files actually), so we avoid doing that.
2009
  if test -f "$cache_file"; then
2010 82 jeremybenn
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2011
$as_echo "$as_me: loading cache $cache_file" >&6;}
2012 19 jeremybenn
    case $cache_file in
2013
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2014
      *)                      . "./$cache_file";;
2015
    esac
2016
  fi
2017
else
2018 82 jeremybenn
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2019
$as_echo "$as_me: creating cache $cache_file" >&6;}
2020 19 jeremybenn
  >$cache_file
2021
fi
2022
 
2023
# Check that the precious variables saved in the cache have kept the same
2024
# value.
2025
ac_cache_corrupted=false
2026
for ac_var in $ac_precious_vars; do
2027
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2028
  eval ac_new_set=\$ac_env_${ac_var}_set
2029
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2030
  eval ac_new_val=\$ac_env_${ac_var}_value
2031
  case $ac_old_set,$ac_new_set in
2032
    set,)
2033 82 jeremybenn
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2034
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2035 19 jeremybenn
      ac_cache_corrupted=: ;;
2036
    ,set)
2037 82 jeremybenn
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2038
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2039 19 jeremybenn
      ac_cache_corrupted=: ;;
2040
    ,);;
2041
    *)
2042
      if test "x$ac_old_val" != "x$ac_new_val"; then
2043 82 jeremybenn
        # differences in whitespace do not lead to failure.
2044
        ac_old_val_w=`echo x $ac_old_val`
2045
        ac_new_val_w=`echo x $ac_new_val`
2046
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2047
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2048
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2049
          ac_cache_corrupted=:
2050
        else
2051
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2052
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2053
          eval $ac_var=\$ac_old_val
2054
        fi
2055
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2056
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2057
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2058
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2059 19 jeremybenn
      fi;;
2060
  esac
2061
  # Pass precious variables to config.status.
2062
  if test "$ac_new_set" = set; then
2063
    case $ac_new_val in
2064 82 jeremybenn
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2065 19 jeremybenn
    *) ac_arg=$ac_var=$ac_new_val ;;
2066
    esac
2067
    case " $ac_configure_args " in
2068
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2069
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2070
    esac
2071
  fi
2072
done
2073
if $ac_cache_corrupted; then
2074 82 jeremybenn
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2075
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2076
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2077
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2078
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2079
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2080 19 jeremybenn
   { (exit 1); exit 1; }; }
2081
fi
2082
 
2083
 
2084
 
2085
 
2086
 
2087
 
2088
 
2089
 
2090
 
2091
 
2092
 
2093
 
2094
 
2095
 
2096
 
2097
 
2098
 
2099
 
2100
 
2101
 
2102
 
2103
 
2104
 
2105
 
2106
 
2107
ac_ext=c
2108
ac_cpp='$CPP $CPPFLAGS'
2109
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2110
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2111
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2112
 
2113
 
2114
 
2115 82 jeremybenn
 
2116
# Check we have the execute source file present for sanity. Specify a separate
2117
# config for the testsuite, since we'll need different tool chain there (the
2118
# OpenRISC one, rather than the native one).
2119
 
2120 19 jeremybenn
ac_aux_dir=
2121
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2122
  if test -f "$ac_dir/install-sh"; then
2123
    ac_aux_dir=$ac_dir
2124
    ac_install_sh="$ac_aux_dir/install-sh -c"
2125
    break
2126
  elif test -f "$ac_dir/install.sh"; then
2127
    ac_aux_dir=$ac_dir
2128
    ac_install_sh="$ac_aux_dir/install.sh -c"
2129
    break
2130
  elif test -f "$ac_dir/shtool"; then
2131
    ac_aux_dir=$ac_dir
2132
    ac_install_sh="$ac_aux_dir/shtool install -c"
2133
    break
2134
  fi
2135
done
2136
if test -z "$ac_aux_dir"; then
2137 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2138
$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2139 19 jeremybenn
   { (exit 1); exit 1; }; }
2140
fi
2141
 
2142
# These three variables are undocumented and unsupported,
2143
# and are intended to be withdrawn in a future Autoconf release.
2144
# They can cause serious problems if a builder's source tree is in a directory
2145
# whose full name contains unusual characters.
2146
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2147
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2148
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2149
 
2150
 
2151 82 jeremybenn
 
2152
 
2153
subdirs="$subdirs testsuite"
2154
 
2155
 
2156 19 jeremybenn
# Make sure we can run config.sub.
2157
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2158 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2159
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2160 19 jeremybenn
   { (exit 1); exit 1; }; }
2161
 
2162 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2163
$as_echo_n "checking build system type... " >&6; }
2164 19 jeremybenn
if test "${ac_cv_build+set}" = set; then
2165 82 jeremybenn
  $as_echo_n "(cached) " >&6
2166 19 jeremybenn
else
2167
  ac_build_alias=$build_alias
2168
test "x$ac_build_alias" = x &&
2169
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2170
test "x$ac_build_alias" = x &&
2171 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2172
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2173 19 jeremybenn
   { (exit 1); exit 1; }; }
2174
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2175 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2176
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2177 19 jeremybenn
   { (exit 1); exit 1; }; }
2178
 
2179
fi
2180 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2181
$as_echo "$ac_cv_build" >&6; }
2182 19 jeremybenn
case $ac_cv_build in
2183
*-*-*) ;;
2184 82 jeremybenn
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2185
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2186 19 jeremybenn
   { (exit 1); exit 1; }; };;
2187
esac
2188
build=$ac_cv_build
2189
ac_save_IFS=$IFS; IFS='-'
2190
set x $ac_cv_build
2191
shift
2192
build_cpu=$1
2193
build_vendor=$2
2194
shift; shift
2195
# Remember, the first character of IFS is used to create $*,
2196
# except with old shells:
2197
build_os=$*
2198
IFS=$ac_save_IFS
2199
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2200
 
2201
 
2202 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2203
$as_echo_n "checking host system type... " >&6; }
2204 19 jeremybenn
if test "${ac_cv_host+set}" = set; then
2205 82 jeremybenn
  $as_echo_n "(cached) " >&6
2206 19 jeremybenn
else
2207
  if test "x$host_alias" = x; then
2208
  ac_cv_host=$ac_cv_build
2209
else
2210
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2211 82 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2212
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2213 19 jeremybenn
   { (exit 1); exit 1; }; }
2214
fi
2215
 
2216
fi
2217 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2218
$as_echo "$ac_cv_host" >&6; }
2219 19 jeremybenn
case $ac_cv_host in
2220
*-*-*) ;;
2221 82 jeremybenn
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2222
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2223 19 jeremybenn
   { (exit 1); exit 1; }; };;
2224
esac
2225
host=$ac_cv_host
2226
ac_save_IFS=$IFS; IFS='-'
2227
set x $ac_cv_host
2228
shift
2229
host_cpu=$1
2230
host_vendor=$2
2231
shift; shift
2232
# Remember, the first character of IFS is used to create $*,
2233
# except with old shells:
2234
host_os=$*
2235
IFS=$ac_save_IFS
2236
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2237
 
2238
 
2239 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2240
$as_echo_n "checking target system type... " >&6; }
2241 19 jeremybenn
if test "${ac_cv_target+set}" = set; then
2242 82 jeremybenn
  $as_echo_n "(cached) " >&6
2243 19 jeremybenn
else
2244
  if test "x$target_alias" = x; then
2245
  ac_cv_target=$ac_cv_host
2246
else
2247
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2248 82 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2249
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2250 19 jeremybenn
   { (exit 1); exit 1; }; }
2251
fi
2252
 
2253
fi
2254 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2255
$as_echo "$ac_cv_target" >&6; }
2256 19 jeremybenn
case $ac_cv_target in
2257
*-*-*) ;;
2258 82 jeremybenn
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2259
$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2260 19 jeremybenn
   { (exit 1); exit 1; }; };;
2261
esac
2262
target=$ac_cv_target
2263
ac_save_IFS=$IFS; IFS='-'
2264
set x $ac_cv_target
2265
shift
2266
target_cpu=$1
2267
target_vendor=$2
2268
shift; shift
2269
# Remember, the first character of IFS is used to create $*,
2270
# except with old shells:
2271
target_os=$*
2272
IFS=$ac_save_IFS
2273
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2274
 
2275
 
2276
# The aliases save the names the user supplied, while $host etc.
2277
# will get canonicalized.
2278
test -n "$target_alias" &&
2279
  test "$program_prefix$program_suffix$program_transform_name" = \
2280
    NONENONEs,x,x, &&
2281
  program_prefix=${target_alias}-
2282 82 jeremybenn
case `pwd` in
2283
  *\ * | *\     *)
2284
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2285
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2286
esac
2287 19 jeremybenn
 
2288
 
2289
 
2290 82 jeremybenn
macro_version='2.2.6'
2291
macro_revision='1.3012'
2292 19 jeremybenn
 
2293
 
2294
 
2295 82 jeremybenn
 
2296
 
2297
 
2298
 
2299
 
2300
 
2301
 
2302
 
2303
 
2304
 
2305
ltmain="$ac_aux_dir/ltmain.sh"
2306
 
2307 19 jeremybenn
ac_ext=c
2308
ac_cpp='$CPP $CPPFLAGS'
2309
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2312
if test -n "$ac_tool_prefix"; then
2313
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2314
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2315 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2316
$as_echo_n "checking for $ac_word... " >&6; }
2317 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2318 82 jeremybenn
  $as_echo_n "(cached) " >&6
2319 19 jeremybenn
else
2320
  if test -n "$CC"; then
2321
  ac_cv_prog_CC="$CC" # Let the user override the test.
2322
else
2323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324
for as_dir in $PATH
2325
do
2326
  IFS=$as_save_IFS
2327
  test -z "$as_dir" && as_dir=.
2328
  for ac_exec_ext in '' $ac_executable_extensions; do
2329
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2330
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2331 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 19 jeremybenn
    break 2
2333
  fi
2334
done
2335
done
2336
IFS=$as_save_IFS
2337
 
2338
fi
2339
fi
2340
CC=$ac_cv_prog_CC
2341
if test -n "$CC"; then
2342 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2343
$as_echo "$CC" >&6; }
2344 19 jeremybenn
else
2345 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2346
$as_echo "no" >&6; }
2347 19 jeremybenn
fi
2348
 
2349
 
2350
fi
2351
if test -z "$ac_cv_prog_CC"; then
2352
  ac_ct_CC=$CC
2353
  # Extract the first word of "gcc", so it can be a program name with args.
2354
set dummy gcc; ac_word=$2
2355 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2356
$as_echo_n "checking for $ac_word... " >&6; }
2357 19 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2358 82 jeremybenn
  $as_echo_n "(cached) " >&6
2359 19 jeremybenn
else
2360
  if test -n "$ac_ct_CC"; then
2361
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2362
else
2363
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364
for as_dir in $PATH
2365
do
2366
  IFS=$as_save_IFS
2367
  test -z "$as_dir" && as_dir=.
2368
  for ac_exec_ext in '' $ac_executable_extensions; do
2369
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370
    ac_cv_prog_ac_ct_CC="gcc"
2371 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 19 jeremybenn
    break 2
2373
  fi
2374
done
2375
done
2376
IFS=$as_save_IFS
2377
 
2378
fi
2379
fi
2380
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2381
if test -n "$ac_ct_CC"; then
2382 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2383
$as_echo "$ac_ct_CC" >&6; }
2384 19 jeremybenn
else
2385 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2386
$as_echo "no" >&6; }
2387 19 jeremybenn
fi
2388
 
2389
  if test "x$ac_ct_CC" = x; then
2390
    CC=""
2391
  else
2392
    case $cross_compiling:$ac_tool_warned in
2393
yes:)
2394 82 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2395
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2396 19 jeremybenn
ac_tool_warned=yes ;;
2397
esac
2398
    CC=$ac_ct_CC
2399
  fi
2400
else
2401
  CC="$ac_cv_prog_CC"
2402
fi
2403
 
2404
if test -z "$CC"; then
2405
          if test -n "$ac_tool_prefix"; then
2406
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2407
set dummy ${ac_tool_prefix}cc; ac_word=$2
2408 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2409
$as_echo_n "checking for $ac_word... " >&6; }
2410 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2411 82 jeremybenn
  $as_echo_n "(cached) " >&6
2412 19 jeremybenn
else
2413
  if test -n "$CC"; then
2414
  ac_cv_prog_CC="$CC" # Let the user override the test.
2415
else
2416
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417
for as_dir in $PATH
2418
do
2419
  IFS=$as_save_IFS
2420
  test -z "$as_dir" && as_dir=.
2421
  for ac_exec_ext in '' $ac_executable_extensions; do
2422
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2423
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2424 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 19 jeremybenn
    break 2
2426
  fi
2427
done
2428
done
2429
IFS=$as_save_IFS
2430
 
2431
fi
2432
fi
2433
CC=$ac_cv_prog_CC
2434
if test -n "$CC"; then
2435 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2436
$as_echo "$CC" >&6; }
2437 19 jeremybenn
else
2438 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2439
$as_echo "no" >&6; }
2440 19 jeremybenn
fi
2441
 
2442
 
2443
  fi
2444
fi
2445
if test -z "$CC"; then
2446
  # Extract the first word of "cc", so it can be a program name with args.
2447
set dummy cc; ac_word=$2
2448 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2449
$as_echo_n "checking for $ac_word... " >&6; }
2450 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2451 82 jeremybenn
  $as_echo_n "(cached) " >&6
2452 19 jeremybenn
else
2453
  if test -n "$CC"; then
2454
  ac_cv_prog_CC="$CC" # Let the user override the test.
2455
else
2456
  ac_prog_rejected=no
2457
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458
for as_dir in $PATH
2459
do
2460
  IFS=$as_save_IFS
2461
  test -z "$as_dir" && as_dir=.
2462
  for ac_exec_ext in '' $ac_executable_extensions; do
2463
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2464
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2465
       ac_prog_rejected=yes
2466
       continue
2467
     fi
2468
    ac_cv_prog_CC="cc"
2469 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 19 jeremybenn
    break 2
2471
  fi
2472
done
2473
done
2474
IFS=$as_save_IFS
2475
 
2476
if test $ac_prog_rejected = yes; then
2477
  # We found a bogon in the path, so make sure we never use it.
2478
  set dummy $ac_cv_prog_CC
2479
  shift
2480
  if test $# != 0; then
2481
    # We chose a different compiler from the bogus one.
2482
    # However, it has the same basename, so the bogon will be chosen
2483
    # first if we set CC to just the basename; use the full file name.
2484
    shift
2485
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2486
  fi
2487
fi
2488
fi
2489
fi
2490
CC=$ac_cv_prog_CC
2491
if test -n "$CC"; then
2492 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2493
$as_echo "$CC" >&6; }
2494 19 jeremybenn
else
2495 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2496
$as_echo "no" >&6; }
2497 19 jeremybenn
fi
2498
 
2499
 
2500
fi
2501
if test -z "$CC"; then
2502
  if test -n "$ac_tool_prefix"; then
2503
  for ac_prog in cl.exe
2504
  do
2505
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2506
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2507 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2508
$as_echo_n "checking for $ac_word... " >&6; }
2509 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
2510 82 jeremybenn
  $as_echo_n "(cached) " >&6
2511 19 jeremybenn
else
2512
  if test -n "$CC"; then
2513
  ac_cv_prog_CC="$CC" # Let the user override the test.
2514
else
2515
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516
for as_dir in $PATH
2517
do
2518
  IFS=$as_save_IFS
2519
  test -z "$as_dir" && as_dir=.
2520
  for ac_exec_ext in '' $ac_executable_extensions; do
2521
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2522
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2523 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 19 jeremybenn
    break 2
2525
  fi
2526
done
2527
done
2528
IFS=$as_save_IFS
2529
 
2530
fi
2531
fi
2532
CC=$ac_cv_prog_CC
2533
if test -n "$CC"; then
2534 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2535
$as_echo "$CC" >&6; }
2536 19 jeremybenn
else
2537 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2538
$as_echo "no" >&6; }
2539 19 jeremybenn
fi
2540
 
2541
 
2542
    test -n "$CC" && break
2543
  done
2544
fi
2545
if test -z "$CC"; then
2546
  ac_ct_CC=$CC
2547
  for ac_prog in cl.exe
2548
do
2549
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2550
set dummy $ac_prog; ac_word=$2
2551 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2552
$as_echo_n "checking for $ac_word... " >&6; }
2553 19 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2554 82 jeremybenn
  $as_echo_n "(cached) " >&6
2555 19 jeremybenn
else
2556
  if test -n "$ac_ct_CC"; then
2557
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2558
else
2559
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560
for as_dir in $PATH
2561
do
2562
  IFS=$as_save_IFS
2563
  test -z "$as_dir" && as_dir=.
2564
  for ac_exec_ext in '' $ac_executable_extensions; do
2565
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566
    ac_cv_prog_ac_ct_CC="$ac_prog"
2567 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 19 jeremybenn
    break 2
2569
  fi
2570
done
2571
done
2572
IFS=$as_save_IFS
2573
 
2574
fi
2575
fi
2576
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2577
if test -n "$ac_ct_CC"; then
2578 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2579
$as_echo "$ac_ct_CC" >&6; }
2580 19 jeremybenn
else
2581 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
2582
$as_echo "no" >&6; }
2583 19 jeremybenn
fi
2584
 
2585
 
2586
  test -n "$ac_ct_CC" && break
2587
done
2588
 
2589
  if test "x$ac_ct_CC" = x; then
2590
    CC=""
2591
  else
2592
    case $cross_compiling:$ac_tool_warned in
2593
yes:)
2594 82 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2595
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2596 19 jeremybenn
ac_tool_warned=yes ;;
2597
esac
2598
    CC=$ac_ct_CC
2599
  fi
2600
fi
2601
 
2602
fi
2603
 
2604
 
2605 82 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2606
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2607
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2608 19 jeremybenn
See \`config.log' for more details." >&5
2609 82 jeremybenn
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2610 19 jeremybenn
See \`config.log' for more details." >&2;}
2611 82 jeremybenn
   { (exit 1); exit 1; }; }; }
2612 19 jeremybenn
 
2613
# Provide some information about the compiler.
2614 82 jeremybenn
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2615
set X $ac_compile
2616
ac_compiler=$2
2617 19 jeremybenn
{ (ac_try="$ac_compiler --version >&5"
2618
case "(($ac_try" in
2619
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620
  *) ac_try_echo=$ac_try;;
2621
esac
2622 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2623
$as_echo "$ac_try_echo") >&5
2624 19 jeremybenn
  (eval "$ac_compiler --version >&5") 2>&5
2625
  ac_status=$?
2626 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 19 jeremybenn
  (exit $ac_status); }
2628
{ (ac_try="$ac_compiler -v >&5"
2629
case "(($ac_try" in
2630
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631
  *) ac_try_echo=$ac_try;;
2632
esac
2633 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2634
$as_echo "$ac_try_echo") >&5
2635 19 jeremybenn
  (eval "$ac_compiler -v >&5") 2>&5
2636
  ac_status=$?
2637 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 19 jeremybenn
  (exit $ac_status); }
2639
{ (ac_try="$ac_compiler -V >&5"
2640
case "(($ac_try" in
2641
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642
  *) ac_try_echo=$ac_try;;
2643
esac
2644 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2645
$as_echo "$ac_try_echo") >&5
2646 19 jeremybenn
  (eval "$ac_compiler -V >&5") 2>&5
2647
  ac_status=$?
2648 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 19 jeremybenn
  (exit $ac_status); }
2650
 
2651
cat >conftest.$ac_ext <<_ACEOF
2652
/* confdefs.h.  */
2653
_ACEOF
2654
cat confdefs.h >>conftest.$ac_ext
2655
cat >>conftest.$ac_ext <<_ACEOF
2656
/* end confdefs.h.  */
2657
 
2658
int
2659
main ()
2660
{
2661
 
2662
  ;
2663
  return 0;
2664
}
2665
_ACEOF
2666
ac_clean_files_save=$ac_clean_files
2667 82 jeremybenn
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2668 19 jeremybenn
# Try to create an executable without -o first, disregard a.out.
2669
# It will help us diagnose broken compilers, and finding out an intuition
2670
# of exeext.
2671 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2672
$as_echo_n "checking for C compiler default output file name... " >&6; }
2673
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2674
 
2675
# The possible output files:
2676
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2677
 
2678 19 jeremybenn
ac_rmfiles=
2679
for ac_file in $ac_files
2680
do
2681
  case $ac_file in
2682 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2683 19 jeremybenn
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2684
  esac
2685
done
2686
rm -f $ac_rmfiles
2687
 
2688
if { (ac_try="$ac_link_default"
2689
case "(($ac_try" in
2690
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691
  *) ac_try_echo=$ac_try;;
2692
esac
2693 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2694
$as_echo "$ac_try_echo") >&5
2695 19 jeremybenn
  (eval "$ac_link_default") 2>&5
2696
  ac_status=$?
2697 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 19 jeremybenn
  (exit $ac_status); }; then
2699
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2700
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2701
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2702
# so that the user can short-circuit this test for compilers unknown to
2703
# Autoconf.
2704
for ac_file in $ac_files ''
2705
do
2706
  test -f "$ac_file" || continue
2707
  case $ac_file in
2708 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2709 19 jeremybenn
        ;;
2710
    [ab].out )
2711
        # We found the default executable, but exeext='' is most
2712
        # certainly right.
2713
        break;;
2714
    *.* )
2715
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2716
        then :; else
2717
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2718
        fi
2719
        # We set ac_cv_exeext here because the later test for it is not
2720
        # safe: cross compilers may not add the suffix if given an `-o'
2721
        # argument, so we may need to know it at that point already.
2722
        # Even if this section looks crufty: it has the advantage of
2723
        # actually working.
2724
        break;;
2725
    * )
2726
        break;;
2727
  esac
2728
done
2729
test "$ac_cv_exeext" = no && ac_cv_exeext=
2730
 
2731
else
2732
  ac_file=''
2733
fi
2734
 
2735 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2736
$as_echo "$ac_file" >&6; }
2737 19 jeremybenn
if test -z "$ac_file"; then
2738 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2739 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2740
 
2741 82 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2742
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2743
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2744 19 jeremybenn
See \`config.log' for more details." >&5
2745 82 jeremybenn
$as_echo "$as_me: error: C compiler cannot create executables
2746 19 jeremybenn
See \`config.log' for more details." >&2;}
2747 82 jeremybenn
   { (exit 77); exit 77; }; }; }
2748 19 jeremybenn
fi
2749
 
2750
ac_exeext=$ac_cv_exeext
2751
 
2752
# Check that the compiler produces executables we can run.  If not, either
2753
# the compiler is broken, or we cross compile.
2754 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2755
$as_echo_n "checking whether the C compiler works... " >&6; }
2756 19 jeremybenn
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2757
# If not cross compiling, check that we can run a simple program.
2758
if test "$cross_compiling" != yes; then
2759
  if { ac_try='./$ac_file'
2760
  { (case "(($ac_try" in
2761
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762
  *) ac_try_echo=$ac_try;;
2763
esac
2764 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2765
$as_echo "$ac_try_echo") >&5
2766 19 jeremybenn
  (eval "$ac_try") 2>&5
2767
  ac_status=$?
2768 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 19 jeremybenn
  (exit $ac_status); }; }; then
2770
    cross_compiling=no
2771
  else
2772
    if test "$cross_compiling" = maybe; then
2773
        cross_compiling=yes
2774
    else
2775 82 jeremybenn
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2776
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2777
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2778 19 jeremybenn
If you meant to cross compile, use \`--host'.
2779
See \`config.log' for more details." >&5
2780 82 jeremybenn
$as_echo "$as_me: error: cannot run C compiled programs.
2781 19 jeremybenn
If you meant to cross compile, use \`--host'.
2782
See \`config.log' for more details." >&2;}
2783 82 jeremybenn
   { (exit 1); exit 1; }; }; }
2784 19 jeremybenn
    fi
2785
  fi
2786
fi
2787 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2788
$as_echo "yes" >&6; }
2789 19 jeremybenn
 
2790 82 jeremybenn
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2791 19 jeremybenn
ac_clean_files=$ac_clean_files_save
2792
# Check that the compiler produces executables we can run.  If not, either
2793
# the compiler is broken, or we cross compile.
2794 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2795
$as_echo_n "checking whether we are cross compiling... " >&6; }
2796
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2797
$as_echo "$cross_compiling" >&6; }
2798 19 jeremybenn
 
2799 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2800
$as_echo_n "checking for suffix of executables... " >&6; }
2801 19 jeremybenn
if { (ac_try="$ac_link"
2802
case "(($ac_try" in
2803
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804
  *) ac_try_echo=$ac_try;;
2805
esac
2806 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2807
$as_echo "$ac_try_echo") >&5
2808 19 jeremybenn
  (eval "$ac_link") 2>&5
2809
  ac_status=$?
2810 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 19 jeremybenn
  (exit $ac_status); }; then
2812
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2813
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2814
# work properly (i.e., refer to `conftest.exe'), while it won't with
2815
# `rm'.
2816
for ac_file in conftest.exe conftest conftest.*; do
2817
  test -f "$ac_file" || continue
2818
  case $ac_file in
2819 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2820 19 jeremybenn
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2821
          break;;
2822
    * ) break;;
2823
  esac
2824
done
2825
else
2826 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2827
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2828
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2829 19 jeremybenn
See \`config.log' for more details." >&5
2830 82 jeremybenn
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2831 19 jeremybenn
See \`config.log' for more details." >&2;}
2832 82 jeremybenn
   { (exit 1); exit 1; }; }; }
2833 19 jeremybenn
fi
2834
 
2835
rm -f conftest$ac_cv_exeext
2836 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2837
$as_echo "$ac_cv_exeext" >&6; }
2838 19 jeremybenn
 
2839
rm -f conftest.$ac_ext
2840
EXEEXT=$ac_cv_exeext
2841
ac_exeext=$EXEEXT
2842 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2843
$as_echo_n "checking for suffix of object files... " >&6; }
2844 19 jeremybenn
if test "${ac_cv_objext+set}" = set; then
2845 82 jeremybenn
  $as_echo_n "(cached) " >&6
2846 19 jeremybenn
else
2847
  cat >conftest.$ac_ext <<_ACEOF
2848
/* confdefs.h.  */
2849
_ACEOF
2850
cat confdefs.h >>conftest.$ac_ext
2851
cat >>conftest.$ac_ext <<_ACEOF
2852
/* end confdefs.h.  */
2853
 
2854
int
2855
main ()
2856
{
2857
 
2858
  ;
2859
  return 0;
2860
}
2861
_ACEOF
2862
rm -f conftest.o conftest.obj
2863
if { (ac_try="$ac_compile"
2864
case "(($ac_try" in
2865
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866
  *) ac_try_echo=$ac_try;;
2867
esac
2868 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2869
$as_echo "$ac_try_echo") >&5
2870 19 jeremybenn
  (eval "$ac_compile") 2>&5
2871
  ac_status=$?
2872 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 19 jeremybenn
  (exit $ac_status); }; then
2874
  for ac_file in conftest.o conftest.obj conftest.*; do
2875
  test -f "$ac_file" || continue;
2876
  case $ac_file in
2877 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2878 19 jeremybenn
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2879
       break;;
2880
  esac
2881
done
2882
else
2883 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2884 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2885
 
2886 82 jeremybenn
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2887
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2888
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2889 19 jeremybenn
See \`config.log' for more details." >&5
2890 82 jeremybenn
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2891 19 jeremybenn
See \`config.log' for more details." >&2;}
2892 82 jeremybenn
   { (exit 1); exit 1; }; }; }
2893 19 jeremybenn
fi
2894
 
2895
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2896
fi
2897 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2898
$as_echo "$ac_cv_objext" >&6; }
2899 19 jeremybenn
OBJEXT=$ac_cv_objext
2900
ac_objext=$OBJEXT
2901 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2902
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2903 19 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2904 82 jeremybenn
  $as_echo_n "(cached) " >&6
2905 19 jeremybenn
else
2906
  cat >conftest.$ac_ext <<_ACEOF
2907
/* confdefs.h.  */
2908
_ACEOF
2909
cat confdefs.h >>conftest.$ac_ext
2910
cat >>conftest.$ac_ext <<_ACEOF
2911
/* end confdefs.h.  */
2912
 
2913
int
2914
main ()
2915
{
2916
#ifndef __GNUC__
2917
       choke me
2918
#endif
2919
 
2920
  ;
2921
  return 0;
2922
}
2923
_ACEOF
2924
rm -f conftest.$ac_objext
2925
if { (ac_try="$ac_compile"
2926
case "(($ac_try" in
2927
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928
  *) ac_try_echo=$ac_try;;
2929
esac
2930 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2931
$as_echo "$ac_try_echo") >&5
2932 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
2933
  ac_status=$?
2934
  grep -v '^ *+' conftest.er1 >conftest.err
2935
  rm -f conftest.er1
2936
  cat conftest.err >&5
2937 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 19 jeremybenn
  (exit $ac_status); } && {
2939
         test -z "$ac_c_werror_flag" ||
2940
         test ! -s conftest.err
2941
       } && test -s conftest.$ac_objext; then
2942
  ac_compiler_gnu=yes
2943
else
2944 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
2945 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
2946
 
2947
        ac_compiler_gnu=no
2948
fi
2949
 
2950
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2951
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2952
 
2953
fi
2954 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2955
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2956
if test $ac_compiler_gnu = yes; then
2957
  GCC=yes
2958
else
2959
  GCC=
2960
fi
2961 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
2962
ac_save_CFLAGS=$CFLAGS
2963 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2964
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2965 19 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then
2966 82 jeremybenn
  $as_echo_n "(cached) " >&6
2967 19 jeremybenn
else
2968
  ac_save_c_werror_flag=$ac_c_werror_flag
2969
   ac_c_werror_flag=yes
2970
   ac_cv_prog_cc_g=no
2971
   CFLAGS="-g"
2972
   cat >conftest.$ac_ext <<_ACEOF
2973
/* confdefs.h.  */
2974
_ACEOF
2975
cat confdefs.h >>conftest.$ac_ext
2976
cat >>conftest.$ac_ext <<_ACEOF
2977
/* end confdefs.h.  */
2978
 
2979
int
2980
main ()
2981
{
2982
 
2983
  ;
2984
  return 0;
2985
}
2986
_ACEOF
2987
rm -f conftest.$ac_objext
2988
if { (ac_try="$ac_compile"
2989
case "(($ac_try" in
2990
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991
  *) ac_try_echo=$ac_try;;
2992
esac
2993 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2994
$as_echo "$ac_try_echo") >&5
2995 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
2996
  ac_status=$?
2997
  grep -v '^ *+' conftest.er1 >conftest.err
2998
  rm -f conftest.er1
2999
  cat conftest.err >&5
3000 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 19 jeremybenn
  (exit $ac_status); } && {
3002
         test -z "$ac_c_werror_flag" ||
3003
         test ! -s conftest.err
3004
       } && test -s conftest.$ac_objext; then
3005
  ac_cv_prog_cc_g=yes
3006
else
3007 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3008 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3009
 
3010
        CFLAGS=""
3011
      cat >conftest.$ac_ext <<_ACEOF
3012
/* confdefs.h.  */
3013
_ACEOF
3014
cat confdefs.h >>conftest.$ac_ext
3015
cat >>conftest.$ac_ext <<_ACEOF
3016
/* end confdefs.h.  */
3017
 
3018
int
3019
main ()
3020
{
3021
 
3022
  ;
3023
  return 0;
3024
}
3025
_ACEOF
3026
rm -f conftest.$ac_objext
3027
if { (ac_try="$ac_compile"
3028
case "(($ac_try" in
3029
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030
  *) ac_try_echo=$ac_try;;
3031
esac
3032 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3033
$as_echo "$ac_try_echo") >&5
3034 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
3035
  ac_status=$?
3036
  grep -v '^ *+' conftest.er1 >conftest.err
3037
  rm -f conftest.er1
3038
  cat conftest.err >&5
3039 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 19 jeremybenn
  (exit $ac_status); } && {
3041
         test -z "$ac_c_werror_flag" ||
3042
         test ! -s conftest.err
3043
       } && test -s conftest.$ac_objext; then
3044
  :
3045
else
3046 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3047 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3048
 
3049
        ac_c_werror_flag=$ac_save_c_werror_flag
3050
         CFLAGS="-g"
3051
         cat >conftest.$ac_ext <<_ACEOF
3052
/* confdefs.h.  */
3053
_ACEOF
3054
cat confdefs.h >>conftest.$ac_ext
3055
cat >>conftest.$ac_ext <<_ACEOF
3056
/* end confdefs.h.  */
3057
 
3058
int
3059
main ()
3060
{
3061
 
3062
  ;
3063
  return 0;
3064
}
3065
_ACEOF
3066
rm -f conftest.$ac_objext
3067
if { (ac_try="$ac_compile"
3068
case "(($ac_try" in
3069
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070
  *) ac_try_echo=$ac_try;;
3071
esac
3072 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3073
$as_echo "$ac_try_echo") >&5
3074 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
3075
  ac_status=$?
3076
  grep -v '^ *+' conftest.er1 >conftest.err
3077
  rm -f conftest.er1
3078
  cat conftest.err >&5
3079 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 19 jeremybenn
  (exit $ac_status); } && {
3081
         test -z "$ac_c_werror_flag" ||
3082
         test ! -s conftest.err
3083
       } && test -s conftest.$ac_objext; then
3084
  ac_cv_prog_cc_g=yes
3085
else
3086 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3087 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3088
 
3089
 
3090
fi
3091
 
3092
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3093
fi
3094
 
3095
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3096
fi
3097
 
3098
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3099
   ac_c_werror_flag=$ac_save_c_werror_flag
3100
fi
3101 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3102
$as_echo "$ac_cv_prog_cc_g" >&6; }
3103 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
3104
  CFLAGS=$ac_save_CFLAGS
3105
elif test $ac_cv_prog_cc_g = yes; then
3106
  if test "$GCC" = yes; then
3107
    CFLAGS="-g -O2"
3108
  else
3109
    CFLAGS="-g"
3110
  fi
3111
else
3112
  if test "$GCC" = yes; then
3113
    CFLAGS="-O2"
3114
  else
3115
    CFLAGS=
3116
  fi
3117
fi
3118 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3119
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3120 19 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then
3121 82 jeremybenn
  $as_echo_n "(cached) " >&6
3122 19 jeremybenn
else
3123
  ac_cv_prog_cc_c89=no
3124
ac_save_CC=$CC
3125
cat >conftest.$ac_ext <<_ACEOF
3126
/* confdefs.h.  */
3127
_ACEOF
3128
cat confdefs.h >>conftest.$ac_ext
3129
cat >>conftest.$ac_ext <<_ACEOF
3130
/* end confdefs.h.  */
3131
#include 
3132
#include 
3133
#include 
3134
#include 
3135
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3136
struct buf { int x; };
3137
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3138
static char *e (p, i)
3139
     char **p;
3140
     int i;
3141
{
3142
  return p[i];
3143
}
3144
static char *f (char * (*g) (char **, int), char **p, ...)
3145
{
3146
  char *s;
3147
  va_list v;
3148
  va_start (v,p);
3149
  s = g (p, va_arg (v,int));
3150
  va_end (v);
3151
  return s;
3152
}
3153
 
3154
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3155
   function prototypes and stuff, but not '\xHH' hex character constants.
3156
   These don't provoke an error unfortunately, instead are silently treated
3157
   as 'x'.  The following induces an error, until -std is added to get
3158
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3159
   array size at least.  It's necessary to write '\x00'==0 to get something
3160
   that's true only with -std.  */
3161
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3162
 
3163
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3164
   inside strings and character constants.  */
3165
#define FOO(x) 'x'
3166
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3167
 
3168
int test (int i, double x);
3169
struct s1 {int (*f) (int a);};
3170
struct s2 {int (*f) (double a);};
3171
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3172
int argc;
3173
char **argv;
3174
int
3175
main ()
3176
{
3177
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3178
  ;
3179
  return 0;
3180
}
3181
_ACEOF
3182
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3183
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3184
do
3185
  CC="$ac_save_CC $ac_arg"
3186
  rm -f conftest.$ac_objext
3187
if { (ac_try="$ac_compile"
3188
case "(($ac_try" in
3189
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190
  *) ac_try_echo=$ac_try;;
3191
esac
3192 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3193
$as_echo "$ac_try_echo") >&5
3194 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
3195
  ac_status=$?
3196
  grep -v '^ *+' conftest.er1 >conftest.err
3197
  rm -f conftest.er1
3198
  cat conftest.err >&5
3199 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 19 jeremybenn
  (exit $ac_status); } && {
3201
         test -z "$ac_c_werror_flag" ||
3202
         test ! -s conftest.err
3203
       } && test -s conftest.$ac_objext; then
3204
  ac_cv_prog_cc_c89=$ac_arg
3205
else
3206 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3207 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3208
 
3209
 
3210
fi
3211
 
3212
rm -f core conftest.err conftest.$ac_objext
3213
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3214
done
3215
rm -f conftest.$ac_ext
3216
CC=$ac_save_CC
3217
 
3218
fi
3219
# AC_CACHE_VAL
3220
case "x$ac_cv_prog_cc_c89" in
3221
  x)
3222 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3223
$as_echo "none needed" >&6; } ;;
3224 19 jeremybenn
  xno)
3225 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3226
$as_echo "unsupported" >&6; } ;;
3227 19 jeremybenn
  *)
3228
    CC="$CC $ac_cv_prog_cc_c89"
3229 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3230
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3231 19 jeremybenn
esac
3232
 
3233
 
3234
ac_ext=c
3235
ac_cpp='$CPP $CPPFLAGS'
3236
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239
 
3240 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3241
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3242
if test "${ac_cv_path_SED+set}" = set; then
3243
  $as_echo_n "(cached) " >&6
3244 19 jeremybenn
else
3245 82 jeremybenn
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3246
     for ac_i in 1 2 3 4 5 6 7; do
3247
       ac_script="$ac_script$as_nl$ac_script"
3248
     done
3249
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3250
     $as_unset ac_script || ac_script=
3251
     if test -z "$SED"; then
3252
  ac_path_SED_found=false
3253
  # Loop through the user's path and test for each of PROGNAME-LIST
3254
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 19 jeremybenn
for as_dir in $PATH
3256
do
3257
  IFS=$as_save_IFS
3258
  test -z "$as_dir" && as_dir=.
3259 82 jeremybenn
  for ac_prog in sed gsed; do
3260 19 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3261 82 jeremybenn
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3262
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3263
# Check for GNU ac_path_SED and select it if it is found.
3264
  # Check for GNU $ac_path_SED
3265
case `"$ac_path_SED" --version 2>&1` in
3266
*GNU*)
3267
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3268
*)
3269
  ac_count=0
3270
  $as_echo_n 0123456789 >"conftest.in"
3271
  while :
3272
  do
3273
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3274
    mv "conftest.tmp" "conftest.in"
3275
    cp "conftest.in" "conftest.nl"
3276
    $as_echo '' >> "conftest.nl"
3277
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3278
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3279
    ac_count=`expr $ac_count + 1`
3280
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3281
      # Best one so far, save it but keep looking for a better one
3282
      ac_cv_path_SED="$ac_path_SED"
3283
      ac_path_SED_max=$ac_count
3284
    fi
3285
    # 10*(2^10) chars as input seems more than enough
3286
    test $ac_count -gt 10 && break
3287
  done
3288
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3289
esac
3290
 
3291
      $ac_path_SED_found && break 3
3292 19 jeremybenn
    done
3293
  done
3294
done
3295
IFS=$as_save_IFS
3296 82 jeremybenn
  if test -z "$ac_cv_path_SED"; then
3297
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3298
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3299
   { (exit 1); exit 1; }; }
3300 19 jeremybenn
  fi
3301 82 jeremybenn
else
3302
  ac_cv_path_SED=$SED
3303
fi
3304 19 jeremybenn
 
3305
fi
3306 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3307
$as_echo "$ac_cv_path_SED" >&6; }
3308
 SED="$ac_cv_path_SED"
3309
  rm -f conftest.sed
3310 19 jeremybenn
 
3311 82 jeremybenn
test -z "$SED" && SED=sed
3312
Xsed="$SED -e 1s/^X//"
3313 19 jeremybenn
 
3314
 
3315 82 jeremybenn
 
3316
 
3317
 
3318
 
3319
 
3320
 
3321
 
3322
 
3323
 
3324
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3325
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3326 19 jeremybenn
if test "${ac_cv_path_GREP+set}" = set; then
3327 82 jeremybenn
  $as_echo_n "(cached) " >&6
3328 19 jeremybenn
else
3329 82 jeremybenn
  if test -z "$GREP"; then
3330 19 jeremybenn
  ac_path_GREP_found=false
3331 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3332
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3334
do
3335
  IFS=$as_save_IFS
3336
  test -z "$as_dir" && as_dir=.
3337
  for ac_prog in grep ggrep; do
3338 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3339
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3340
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3341
# Check for GNU ac_path_GREP and select it if it is found.
3342 19 jeremybenn
  # Check for GNU $ac_path_GREP
3343
case `"$ac_path_GREP" --version 2>&1` in
3344
*GNU*)
3345
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3346
*)
3347
  ac_count=0
3348 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3349 19 jeremybenn
  while :
3350
  do
3351
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3352
    mv "conftest.tmp" "conftest.in"
3353
    cp "conftest.in" "conftest.nl"
3354 82 jeremybenn
    $as_echo 'GREP' >> "conftest.nl"
3355 19 jeremybenn
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3356
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3357
    ac_count=`expr $ac_count + 1`
3358
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3359
      # Best one so far, save it but keep looking for a better one
3360
      ac_cv_path_GREP="$ac_path_GREP"
3361
      ac_path_GREP_max=$ac_count
3362
    fi
3363
    # 10*(2^10) chars as input seems more than enough
3364
    test $ac_count -gt 10 && break
3365
  done
3366
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3367
esac
3368
 
3369 82 jeremybenn
      $ac_path_GREP_found && break 3
3370
    done
3371 19 jeremybenn
  done
3372
done
3373
IFS=$as_save_IFS
3374 82 jeremybenn
  if test -z "$ac_cv_path_GREP"; then
3375
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3376
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3377 19 jeremybenn
   { (exit 1); exit 1; }; }
3378 82 jeremybenn
  fi
3379 19 jeremybenn
else
3380
  ac_cv_path_GREP=$GREP
3381
fi
3382
 
3383
fi
3384 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3385
$as_echo "$ac_cv_path_GREP" >&6; }
3386 19 jeremybenn
 GREP="$ac_cv_path_GREP"
3387
 
3388
 
3389 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3390
$as_echo_n "checking for egrep... " >&6; }
3391 19 jeremybenn
if test "${ac_cv_path_EGREP+set}" = set; then
3392 82 jeremybenn
  $as_echo_n "(cached) " >&6
3393 19 jeremybenn
else
3394
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3395
   then ac_cv_path_EGREP="$GREP -E"
3396
   else
3397 82 jeremybenn
     if test -z "$EGREP"; then
3398 19 jeremybenn
  ac_path_EGREP_found=false
3399 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3400
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3402
do
3403
  IFS=$as_save_IFS
3404
  test -z "$as_dir" && as_dir=.
3405
  for ac_prog in egrep; do
3406 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3407
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3408
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3409
# Check for GNU ac_path_EGREP and select it if it is found.
3410 19 jeremybenn
  # Check for GNU $ac_path_EGREP
3411
case `"$ac_path_EGREP" --version 2>&1` in
3412
*GNU*)
3413
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3414
*)
3415
  ac_count=0
3416 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3417 19 jeremybenn
  while :
3418
  do
3419
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3420
    mv "conftest.tmp" "conftest.in"
3421
    cp "conftest.in" "conftest.nl"
3422 82 jeremybenn
    $as_echo 'EGREP' >> "conftest.nl"
3423 19 jeremybenn
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3424
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3425
    ac_count=`expr $ac_count + 1`
3426
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3427
      # Best one so far, save it but keep looking for a better one
3428
      ac_cv_path_EGREP="$ac_path_EGREP"
3429
      ac_path_EGREP_max=$ac_count
3430
    fi
3431
    # 10*(2^10) chars as input seems more than enough
3432
    test $ac_count -gt 10 && break
3433
  done
3434
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3435
esac
3436
 
3437 82 jeremybenn
      $ac_path_EGREP_found && break 3
3438
    done
3439 19 jeremybenn
  done
3440
done
3441
IFS=$as_save_IFS
3442 82 jeremybenn
  if test -z "$ac_cv_path_EGREP"; then
3443
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3444
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3445
   { (exit 1); exit 1; }; }
3446
  fi
3447
else
3448
  ac_cv_path_EGREP=$EGREP
3449 19 jeremybenn
fi
3450
 
3451 82 jeremybenn
   fi
3452 19 jeremybenn
fi
3453 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3454
$as_echo "$ac_cv_path_EGREP" >&6; }
3455
 EGREP="$ac_cv_path_EGREP"
3456 19 jeremybenn
 
3457 82 jeremybenn
 
3458
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3459
$as_echo_n "checking for fgrep... " >&6; }
3460
if test "${ac_cv_path_FGREP+set}" = set; then
3461
  $as_echo_n "(cached) " >&6
3462 19 jeremybenn
else
3463 82 jeremybenn
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3464
   then ac_cv_path_FGREP="$GREP -F"
3465
   else
3466
     if test -z "$FGREP"; then
3467
  ac_path_FGREP_found=false
3468
  # Loop through the user's path and test for each of PROGNAME-LIST
3469
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3471
do
3472
  IFS=$as_save_IFS
3473
  test -z "$as_dir" && as_dir=.
3474
  for ac_prog in fgrep; do
3475
    for ac_exec_ext in '' $ac_executable_extensions; do
3476
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3477
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3478
# Check for GNU ac_path_FGREP and select it if it is found.
3479
  # Check for GNU $ac_path_FGREP
3480
case `"$ac_path_FGREP" --version 2>&1` in
3481
*GNU*)
3482
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3483
*)
3484
  ac_count=0
3485
  $as_echo_n 0123456789 >"conftest.in"
3486
  while :
3487
  do
3488
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3489
    mv "conftest.tmp" "conftest.in"
3490
    cp "conftest.in" "conftest.nl"
3491
    $as_echo 'FGREP' >> "conftest.nl"
3492
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3493
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3494
    ac_count=`expr $ac_count + 1`
3495
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3496
      # Best one so far, save it but keep looking for a better one
3497
      ac_cv_path_FGREP="$ac_path_FGREP"
3498
      ac_path_FGREP_max=$ac_count
3499
    fi
3500
    # 10*(2^10) chars as input seems more than enough
3501
    test $ac_count -gt 10 && break
3502
  done
3503
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3504
esac
3505
 
3506
      $ac_path_FGREP_found && break 3
3507
    done
3508
  done
3509
done
3510
IFS=$as_save_IFS
3511
  if test -z "$ac_cv_path_FGREP"; then
3512
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3513
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3514
   { (exit 1); exit 1; }; }
3515
  fi
3516
else
3517
  ac_cv_path_FGREP=$FGREP
3518 19 jeremybenn
fi
3519
 
3520
   fi
3521
fi
3522 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3523
$as_echo "$ac_cv_path_FGREP" >&6; }
3524
 FGREP="$ac_cv_path_FGREP"
3525 19 jeremybenn
 
3526
 
3527 82 jeremybenn
test -z "$GREP" && GREP=grep
3528 19 jeremybenn
 
3529 82 jeremybenn
 
3530
 
3531
 
3532
 
3533
 
3534
 
3535
 
3536
 
3537
 
3538
 
3539
 
3540
 
3541
 
3542
 
3543
 
3544
 
3545
 
3546
 
3547 19 jeremybenn
# Check whether --with-gnu-ld was given.
3548
if test "${with_gnu_ld+set}" = set; then
3549
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3550
else
3551
  with_gnu_ld=no
3552
fi
3553
 
3554
ac_prog=ld
3555
if test "$GCC" = yes; then
3556
  # Check if gcc -print-prog-name=ld gives a path.
3557 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3558
$as_echo_n "checking for ld used by $CC... " >&6; }
3559 19 jeremybenn
  case $host in
3560
  *-*-mingw*)
3561
    # gcc leaves a trailing carriage return which upsets mingw
3562
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3563
  *)
3564
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3565
  esac
3566
  case $ac_prog in
3567
    # Accept absolute paths.
3568
    [\\/]* | ?:[\\/]*)
3569
      re_direlt='/[^/][^/]*/\.\./'
3570
      # Canonicalize the pathname of ld
3571 82 jeremybenn
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3572
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3573
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3574 19 jeremybenn
      done
3575
      test -z "$LD" && LD="$ac_prog"
3576
      ;;
3577
  "")
3578
    # If it fails, then pretend we aren't using GCC.
3579
    ac_prog=ld
3580
    ;;
3581
  *)
3582
    # If it is relative, then search for the first ld in PATH.
3583
    with_gnu_ld=unknown
3584
    ;;
3585
  esac
3586
elif test "$with_gnu_ld" = yes; then
3587 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3588
$as_echo_n "checking for GNU ld... " >&6; }
3589 19 jeremybenn
else
3590 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3591
$as_echo_n "checking for non-GNU ld... " >&6; }
3592 19 jeremybenn
fi
3593
if test "${lt_cv_path_LD+set}" = set; then
3594 82 jeremybenn
  $as_echo_n "(cached) " >&6
3595 19 jeremybenn
else
3596
  if test -z "$LD"; then
3597
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3598
  for ac_dir in $PATH; do
3599
    IFS="$lt_save_ifs"
3600
    test -z "$ac_dir" && ac_dir=.
3601
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3602
      lt_cv_path_LD="$ac_dir/$ac_prog"
3603
      # Check to see if the program is GNU ld.  I'd rather use --version,
3604
      # but apparently some variants of GNU ld only accept -v.
3605
      # Break only if it was the GNU/non-GNU ld that we prefer.
3606
      case `"$lt_cv_path_LD" -v 2>&1 
3607
      *GNU* | *'with BFD'*)
3608
        test "$with_gnu_ld" != no && break
3609
        ;;
3610
      *)
3611
        test "$with_gnu_ld" != yes && break
3612
        ;;
3613
      esac
3614
    fi
3615
  done
3616
  IFS="$lt_save_ifs"
3617
else
3618
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3619
fi
3620
fi
3621
 
3622
LD="$lt_cv_path_LD"
3623
if test -n "$LD"; then
3624 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
3625
$as_echo "$LD" >&6; }
3626 19 jeremybenn
else
3627 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
3628
$as_echo "no" >&6; }
3629 19 jeremybenn
fi
3630 82 jeremybenn
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3631
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3632 19 jeremybenn
   { (exit 1); exit 1; }; }
3633 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3634
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3635 19 jeremybenn
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3636 82 jeremybenn
  $as_echo_n "(cached) " >&6
3637 19 jeremybenn
else
3638
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3639
case `$LD -v 2>&1 
3640
*GNU* | *'with BFD'*)
3641
  lt_cv_prog_gnu_ld=yes
3642
  ;;
3643
*)
3644
  lt_cv_prog_gnu_ld=no
3645
  ;;
3646
esac
3647
fi
3648 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3649
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3650 19 jeremybenn
with_gnu_ld=$lt_cv_prog_gnu_ld
3651
 
3652
 
3653
 
3654 82 jeremybenn
 
3655
 
3656
 
3657
 
3658
 
3659
 
3660
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3661
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3662 19 jeremybenn
if test "${lt_cv_path_NM+set}" = set; then
3663 82 jeremybenn
  $as_echo_n "(cached) " >&6
3664 19 jeremybenn
else
3665
  if test -n "$NM"; then
3666
  # Let the user override the test.
3667
  lt_cv_path_NM="$NM"
3668
else
3669
  lt_nm_to_check="${ac_tool_prefix}nm"
3670
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3671
    lt_nm_to_check="$lt_nm_to_check nm"
3672
  fi
3673
  for lt_tmp_nm in $lt_nm_to_check; do
3674
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3675
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3676
      IFS="$lt_save_ifs"
3677
      test -z "$ac_dir" && ac_dir=.
3678
      tmp_nm="$ac_dir/$lt_tmp_nm"
3679
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3680
        # Check to see if the nm accepts a BSD-compat flag.
3681
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3682
        #   nm: unknown option "B" ignored
3683
        # Tru64's nm complains that /dev/null is an invalid object file
3684
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3685
        */dev/null* | *'Invalid file or object type'*)
3686
          lt_cv_path_NM="$tmp_nm -B"
3687
          break
3688
          ;;
3689
        *)
3690
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3691
          */dev/null*)
3692
            lt_cv_path_NM="$tmp_nm -p"
3693
            break
3694
            ;;
3695
          *)
3696
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3697
            continue # so that we can try to find one that supports BSD flags
3698
            ;;
3699
          esac
3700
          ;;
3701
        esac
3702
      fi
3703
    done
3704
    IFS="$lt_save_ifs"
3705
  done
3706 82 jeremybenn
  : ${lt_cv_path_NM=no}
3707 19 jeremybenn
fi
3708
fi
3709 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3710
$as_echo "$lt_cv_path_NM" >&6; }
3711
if test "$lt_cv_path_NM" != "no"; then
3712
  NM="$lt_cv_path_NM"
3713
else
3714
  # Didn't find any BSD compatible name lister, look for dumpbin.
3715
  if test -n "$ac_tool_prefix"; then
3716
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3717
  do
3718
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3719
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3720
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3721
$as_echo_n "checking for $ac_word... " >&6; }
3722
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3723
  $as_echo_n "(cached) " >&6
3724
else
3725
  if test -n "$DUMPBIN"; then
3726
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3727
else
3728
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729
for as_dir in $PATH
3730
do
3731
  IFS=$as_save_IFS
3732
  test -z "$as_dir" && as_dir=.
3733
  for ac_exec_ext in '' $ac_executable_extensions; do
3734
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3735
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3736
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3737
    break 2
3738
  fi
3739
done
3740
done
3741
IFS=$as_save_IFS
3742 19 jeremybenn
 
3743 82 jeremybenn
fi
3744
fi
3745
DUMPBIN=$ac_cv_prog_DUMPBIN
3746
if test -n "$DUMPBIN"; then
3747
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3748
$as_echo "$DUMPBIN" >&6; }
3749
else
3750
  { $as_echo "$as_me:$LINENO: result: no" >&5
3751
$as_echo "no" >&6; }
3752
fi
3753
 
3754
 
3755
    test -n "$DUMPBIN" && break
3756
  done
3757
fi
3758
if test -z "$DUMPBIN"; then
3759
  ac_ct_DUMPBIN=$DUMPBIN
3760
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3761
do
3762
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3763
set dummy $ac_prog; ac_word=$2
3764
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3765
$as_echo_n "checking for $ac_word... " >&6; }
3766
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3767
  $as_echo_n "(cached) " >&6
3768
else
3769
  if test -n "$ac_ct_DUMPBIN"; then
3770
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3771
else
3772
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773
for as_dir in $PATH
3774
do
3775
  IFS=$as_save_IFS
3776
  test -z "$as_dir" && as_dir=.
3777
  for ac_exec_ext in '' $ac_executable_extensions; do
3778
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3780
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3781
    break 2
3782
  fi
3783
done
3784
done
3785
IFS=$as_save_IFS
3786
 
3787
fi
3788
fi
3789
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3790
if test -n "$ac_ct_DUMPBIN"; then
3791
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3792
$as_echo "$ac_ct_DUMPBIN" >&6; }
3793
else
3794
  { $as_echo "$as_me:$LINENO: result: no" >&5
3795
$as_echo "no" >&6; }
3796
fi
3797
 
3798
 
3799
  test -n "$ac_ct_DUMPBIN" && break
3800
done
3801
 
3802
  if test "x$ac_ct_DUMPBIN" = x; then
3803
    DUMPBIN=":"
3804
  else
3805
    case $cross_compiling:$ac_tool_warned in
3806
yes:)
3807
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3808
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3809
ac_tool_warned=yes ;;
3810
esac
3811
    DUMPBIN=$ac_ct_DUMPBIN
3812
  fi
3813
fi
3814
 
3815
 
3816
  if test "$DUMPBIN" != ":"; then
3817
    NM="$DUMPBIN"
3818
  fi
3819
fi
3820
test -z "$NM" && NM=nm
3821
 
3822
 
3823
 
3824
 
3825
 
3826
 
3827
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3828
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
3829
if test "${lt_cv_nm_interface+set}" = set; then
3830
  $as_echo_n "(cached) " >&6
3831
else
3832
  lt_cv_nm_interface="BSD nm"
3833
  echo "int some_variable = 0;" > conftest.$ac_ext
3834
  (eval echo "\"\$as_me:3834: $ac_compile\"" >&5)
3835
  (eval "$ac_compile" 2>conftest.err)
3836
  cat conftest.err >&5
3837
  (eval echo "\"\$as_me:3837: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3838
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3839
  cat conftest.err >&5
3840
  (eval echo "\"\$as_me:3840: output\"" >&5)
3841
  cat conftest.out >&5
3842
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3843
    lt_cv_nm_interface="MS dumpbin"
3844
  fi
3845
  rm -f conftest*
3846
fi
3847
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3848
$as_echo "$lt_cv_nm_interface" >&6; }
3849
 
3850
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3851
$as_echo_n "checking whether ln -s works... " >&6; }
3852 19 jeremybenn
LN_S=$as_ln_s
3853
if test "$LN_S" = "ln -s"; then
3854 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
3855
$as_echo "yes" >&6; }
3856 19 jeremybenn
else
3857 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3858
$as_echo "no, using $LN_S" >&6; }
3859 19 jeremybenn
fi
3860
 
3861 82 jeremybenn
# find the maximum length of command line arguments
3862
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3863
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
3864
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3865
  $as_echo_n "(cached) " >&6
3866
else
3867
    i=0
3868
  teststring="ABCD"
3869
 
3870
  case $build_os in
3871
  msdosdjgpp*)
3872
    # On DJGPP, this test can blow up pretty badly due to problems in libc
3873
    # (any single argument exceeding 2000 bytes causes a buffer overrun
3874
    # during glob expansion).  Even if it were fixed, the result of this
3875
    # check would be larger than it should be.
3876
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3877
    ;;
3878
 
3879
  gnu*)
3880
    # Under GNU Hurd, this test is not required because there is
3881
    # no limit to the length of command line arguments.
3882
    # Libtool will interpret -1 as no limit whatsoever
3883
    lt_cv_sys_max_cmd_len=-1;
3884
    ;;
3885
 
3886
  cygwin* | mingw* | cegcc*)
3887
    # On Win9x/ME, this test blows up -- it succeeds, but takes
3888
    # about 5 minutes as the teststring grows exponentially.
3889
    # Worse, since 9x/ME are not pre-emptively multitasking,
3890
    # you end up with a "frozen" computer, even though with patience
3891
    # the test eventually succeeds (with a max line length of 256k).
3892
    # Instead, let's just punt: use the minimum linelength reported by
3893
    # all of the supported platforms: 8192 (on NT/2K/XP).
3894
    lt_cv_sys_max_cmd_len=8192;
3895
    ;;
3896
 
3897
  amigaos*)
3898
    # On AmigaOS with pdksh, this test takes hours, literally.
3899
    # So we just punt and use a minimum line length of 8192.
3900
    lt_cv_sys_max_cmd_len=8192;
3901
    ;;
3902
 
3903
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3904
    # This has been around since 386BSD, at least.  Likely further.
3905
    if test -x /sbin/sysctl; then
3906
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3907
    elif test -x /usr/sbin/sysctl; then
3908
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3909
    else
3910
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
3911
    fi
3912
    # And add a safety zone
3913
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3914
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3915
    ;;
3916
 
3917
  interix*)
3918
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
3919
    lt_cv_sys_max_cmd_len=196608
3920
    ;;
3921
 
3922
  osf*)
3923
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3924
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3925
    # nice to cause kernel panics so lets avoid the loop below.
3926
    # First set a reasonable default.
3927
    lt_cv_sys_max_cmd_len=16384
3928
    #
3929
    if test -x /sbin/sysconfig; then
3930
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3931
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
3932
      esac
3933
    fi
3934
    ;;
3935
  sco3.2v5*)
3936
    lt_cv_sys_max_cmd_len=102400
3937
    ;;
3938
  sysv5* | sco5v6* | sysv4.2uw2*)
3939
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3940
    if test -n "$kargmax"; then
3941
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
3942
    else
3943
      lt_cv_sys_max_cmd_len=32768
3944
    fi
3945
    ;;
3946
  *)
3947
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3948
    if test -n "$lt_cv_sys_max_cmd_len"; then
3949
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3950
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3951
    else
3952
      # Make teststring a little bigger before we do anything with it.
3953
      # a 1K string should be a reasonable start.
3954
      for i in 1 2 3 4 5 6 7 8 ; do
3955
        teststring=$teststring$teststring
3956
      done
3957
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3958
      # If test is not a shell built-in, we'll probably end up computing a
3959
      # maximum length that is only half of the actual maximum length, but
3960
      # we can't tell.
3961
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3962
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3963
              test $i != 17 # 1/2 MB should be enough
3964
      do
3965
        i=`expr $i + 1`
3966
        teststring=$teststring$teststring
3967
      done
3968
      # Only check the string length outside the loop.
3969
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3970
      teststring=
3971
      # Add a significant safety factor because C++ compilers can tack on
3972
      # massive amounts of additional arguments before passing them to the
3973
      # linker.  It appears as though 1/2 is a usable value.
3974
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3975
    fi
3976
    ;;
3977
  esac
3978
 
3979
fi
3980
 
3981
if test -n $lt_cv_sys_max_cmd_len ; then
3982
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3983
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3984
else
3985
  { $as_echo "$as_me:$LINENO: result: none" >&5
3986
$as_echo "none" >&6; }
3987
fi
3988
max_cmd_len=$lt_cv_sys_max_cmd_len
3989
 
3990
 
3991
 
3992
 
3993
 
3994
 
3995
: ${CP="cp -f"}
3996
: ${MV="mv -f"}
3997
: ${RM="rm -f"}
3998
 
3999
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4000
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4001
# Try some XSI features
4002
xsi_shell=no
4003
( _lt_dummy="a/b/c"
4004
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4005
      = c,a/b,, \
4006
    && eval 'test $(( 1 + 1 )) -eq 2 \
4007
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4008
  && xsi_shell=yes
4009
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4010
$as_echo "$xsi_shell" >&6; }
4011
 
4012
 
4013
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4014
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4015
lt_shell_append=no
4016
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4017
    >/dev/null 2>&1 \
4018
  && lt_shell_append=yes
4019
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4020
$as_echo "$lt_shell_append" >&6; }
4021
 
4022
 
4023
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4024
  lt_unset=unset
4025
else
4026
  lt_unset=false
4027
fi
4028
 
4029
 
4030
 
4031
 
4032
 
4033
# test EBCDIC or ASCII
4034
case `echo X|tr X '\101'` in
4035
 A) # ASCII based system
4036
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4037
  lt_SP2NL='tr \040 \012'
4038
  lt_NL2SP='tr \015\012 \040\040'
4039
  ;;
4040
 *) # EBCDIC based system
4041
  lt_SP2NL='tr \100 \n'
4042
  lt_NL2SP='tr \r\n \100\100'
4043
  ;;
4044
esac
4045
 
4046
 
4047
 
4048
 
4049
 
4050
 
4051
 
4052
 
4053
 
4054
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4055
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4056
if test "${lt_cv_ld_reload_flag+set}" = set; then
4057
  $as_echo_n "(cached) " >&6
4058
else
4059
  lt_cv_ld_reload_flag='-r'
4060
fi
4061
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4062
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4063
reload_flag=$lt_cv_ld_reload_flag
4064
case $reload_flag in
4065
"" | " "*) ;;
4066
*) reload_flag=" $reload_flag" ;;
4067
esac
4068
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4069
case $host_os in
4070
  darwin*)
4071
    if test "$GCC" = yes; then
4072
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4073
    else
4074
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4075
    fi
4076
    ;;
4077
esac
4078
 
4079
 
4080
 
4081
 
4082
 
4083
 
4084
 
4085
 
4086
 
4087
if test -n "$ac_tool_prefix"; then
4088
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4089
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4090
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4091
$as_echo_n "checking for $ac_word... " >&6; }
4092
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4093
  $as_echo_n "(cached) " >&6
4094
else
4095
  if test -n "$OBJDUMP"; then
4096
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4097
else
4098
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099
for as_dir in $PATH
4100
do
4101
  IFS=$as_save_IFS
4102
  test -z "$as_dir" && as_dir=.
4103
  for ac_exec_ext in '' $ac_executable_extensions; do
4104
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4105
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4106
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107
    break 2
4108
  fi
4109
done
4110
done
4111
IFS=$as_save_IFS
4112
 
4113
fi
4114
fi
4115
OBJDUMP=$ac_cv_prog_OBJDUMP
4116
if test -n "$OBJDUMP"; then
4117
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4118
$as_echo "$OBJDUMP" >&6; }
4119
else
4120
  { $as_echo "$as_me:$LINENO: result: no" >&5
4121
$as_echo "no" >&6; }
4122
fi
4123
 
4124
 
4125
fi
4126
if test -z "$ac_cv_prog_OBJDUMP"; then
4127
  ac_ct_OBJDUMP=$OBJDUMP
4128
  # Extract the first word of "objdump", so it can be a program name with args.
4129
set dummy objdump; ac_word=$2
4130
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4131
$as_echo_n "checking for $ac_word... " >&6; }
4132
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4133
  $as_echo_n "(cached) " >&6
4134
else
4135
  if test -n "$ac_ct_OBJDUMP"; then
4136
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4137
else
4138
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139
for as_dir in $PATH
4140
do
4141
  IFS=$as_save_IFS
4142
  test -z "$as_dir" && as_dir=.
4143
  for ac_exec_ext in '' $ac_executable_extensions; do
4144
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4145
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4146
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4147
    break 2
4148
  fi
4149
done
4150
done
4151
IFS=$as_save_IFS
4152
 
4153
fi
4154
fi
4155
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4156
if test -n "$ac_ct_OBJDUMP"; then
4157
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4158
$as_echo "$ac_ct_OBJDUMP" >&6; }
4159
else
4160
  { $as_echo "$as_me:$LINENO: result: no" >&5
4161
$as_echo "no" >&6; }
4162
fi
4163
 
4164
  if test "x$ac_ct_OBJDUMP" = x; then
4165
    OBJDUMP="false"
4166
  else
4167
    case $cross_compiling:$ac_tool_warned in
4168
yes:)
4169
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4170
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4171
ac_tool_warned=yes ;;
4172
esac
4173
    OBJDUMP=$ac_ct_OBJDUMP
4174
  fi
4175
else
4176
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4177
fi
4178
 
4179
test -z "$OBJDUMP" && OBJDUMP=objdump
4180
 
4181
 
4182
 
4183
 
4184
 
4185
 
4186
 
4187
 
4188
 
4189
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4190
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4191 19 jeremybenn
if test "${lt_cv_deplibs_check_method+set}" = set; then
4192 82 jeremybenn
  $as_echo_n "(cached) " >&6
4193 19 jeremybenn
else
4194
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4195
lt_cv_file_magic_test_file=
4196
lt_cv_deplibs_check_method='unknown'
4197
# Need to set the preceding variable on all platforms that support
4198
# interlibrary dependencies.
4199
# 'none' -- dependencies not supported.
4200
# `unknown' -- same as none, but documents that we really don't know.
4201
# 'pass_all' -- all dependencies passed with no checks.
4202
# 'test_compile' -- check by making test program.
4203
# 'file_magic [[regex]]' -- check by looking for files in library path
4204
# which responds to the $file_magic_cmd with a given extended regex.
4205
# If you have `file' or equivalent on your system and you're not sure
4206
# whether `pass_all' will *always* work, you probably want this one.
4207
 
4208
case $host_os in
4209 82 jeremybenn
aix[4-9]*)
4210 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
4211
  ;;
4212
 
4213
beos*)
4214
  lt_cv_deplibs_check_method=pass_all
4215
  ;;
4216
 
4217
bsdi[45]*)
4218
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4219
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4220
  lt_cv_file_magic_test_file=/shlib/libc.so
4221
  ;;
4222
 
4223
cygwin*)
4224
  # func_win32_libid is a shell function defined in ltmain.sh
4225
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4226
  lt_cv_file_magic_cmd='func_win32_libid'
4227
  ;;
4228
 
4229
mingw* | pw32*)
4230
  # Base MSYS/MinGW do not provide the 'file' command needed by
4231
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4232
  # unless we find 'file', for example because we are cross-compiling.
4233
  if ( file / ) >/dev/null 2>&1; then
4234
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4235
    lt_cv_file_magic_cmd='func_win32_libid'
4236
  else
4237
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4238
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4239
  fi
4240
  ;;
4241
 
4242 82 jeremybenn
cegcc)
4243
  # use the weaker test based on 'objdump'. See mingw*.
4244
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4245
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4246
  ;;
4247
 
4248 19 jeremybenn
darwin* | rhapsody*)
4249
  lt_cv_deplibs_check_method=pass_all
4250
  ;;
4251
 
4252
freebsd* | dragonfly*)
4253 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4254 19 jeremybenn
    case $host_cpu in
4255
    i*86 )
4256
      # Not sure whether the presence of OpenBSD here was a mistake.
4257
      # Let's accept both of them until this is cleared up.
4258
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4259
      lt_cv_file_magic_cmd=/usr/bin/file
4260
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4261
      ;;
4262
    esac
4263
  else
4264
    lt_cv_deplibs_check_method=pass_all
4265
  fi
4266
  ;;
4267
 
4268
gnu*)
4269
  lt_cv_deplibs_check_method=pass_all
4270
  ;;
4271
 
4272
hpux10.20* | hpux11*)
4273
  lt_cv_file_magic_cmd=/usr/bin/file
4274
  case $host_cpu in
4275
  ia64*)
4276
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4277
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4278
    ;;
4279
  hppa*64*)
4280
    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]'
4281
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4282
    ;;
4283
  *)
4284
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4285
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4286
    ;;
4287
  esac
4288
  ;;
4289
 
4290
interix[3-9]*)
4291
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4292
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4293
  ;;
4294
 
4295
irix5* | irix6* | nonstopux*)
4296
  case $LD in
4297
  *-32|*"-32 ") libmagic=32-bit;;
4298
  *-n32|*"-n32 ") libmagic=N32;;
4299
  *-64|*"-64 ") libmagic=64-bit;;
4300
  *) libmagic=never-match;;
4301
  esac
4302
  lt_cv_deplibs_check_method=pass_all
4303
  ;;
4304
 
4305
# This must be Linux ELF.
4306
linux* | k*bsd*-gnu)
4307
  lt_cv_deplibs_check_method=pass_all
4308
  ;;
4309
 
4310 82 jeremybenn
netbsd* | netbsdelf*-gnu)
4311
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4312 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4313
  else
4314
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4315
  fi
4316
  ;;
4317
 
4318
newos6*)
4319
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4320
  lt_cv_file_magic_cmd=/usr/bin/file
4321
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4322
  ;;
4323
 
4324 82 jeremybenn
*nto* | *qnx*)
4325
  lt_cv_deplibs_check_method=pass_all
4326 19 jeremybenn
  ;;
4327
 
4328
openbsd*)
4329 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4330 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4331
  else
4332
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4333
  fi
4334
  ;;
4335
 
4336
osf3* | osf4* | osf5*)
4337
  lt_cv_deplibs_check_method=pass_all
4338
  ;;
4339
 
4340
rdos*)
4341
  lt_cv_deplibs_check_method=pass_all
4342
  ;;
4343
 
4344
solaris*)
4345
  lt_cv_deplibs_check_method=pass_all
4346
  ;;
4347
 
4348 82 jeremybenn
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4349
  lt_cv_deplibs_check_method=pass_all
4350
  ;;
4351
 
4352 19 jeremybenn
sysv4 | sysv4.3*)
4353
  case $host_vendor in
4354
  motorola)
4355
    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]'
4356
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4357
    ;;
4358
  ncr)
4359
    lt_cv_deplibs_check_method=pass_all
4360
    ;;
4361
  sequent)
4362
    lt_cv_file_magic_cmd='/bin/file'
4363
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4364
    ;;
4365
  sni)
4366
    lt_cv_file_magic_cmd='/bin/file'
4367
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4368
    lt_cv_file_magic_test_file=/lib/libc.so
4369
    ;;
4370
  siemens)
4371
    lt_cv_deplibs_check_method=pass_all
4372
    ;;
4373
  pc)
4374
    lt_cv_deplibs_check_method=pass_all
4375
    ;;
4376
  esac
4377
  ;;
4378
 
4379 82 jeremybenn
tpf*)
4380 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
4381
  ;;
4382
esac
4383
 
4384
fi
4385 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4386
$as_echo "$lt_cv_deplibs_check_method" >&6; }
4387 19 jeremybenn
file_magic_cmd=$lt_cv_file_magic_cmd
4388
deplibs_check_method=$lt_cv_deplibs_check_method
4389
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4390
 
4391
 
4392
 
4393
 
4394 82 jeremybenn
 
4395
 
4396
 
4397
 
4398
 
4399
 
4400
 
4401
 
4402
if test -n "$ac_tool_prefix"; then
4403
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4404
set dummy ${ac_tool_prefix}ar; ac_word=$2
4405
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4406
$as_echo_n "checking for $ac_word... " >&6; }
4407
if test "${ac_cv_prog_AR+set}" = set; then
4408
  $as_echo_n "(cached) " >&6
4409
else
4410
  if test -n "$AR"; then
4411
  ac_cv_prog_AR="$AR" # Let the user override the test.
4412
else
4413
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414
for as_dir in $PATH
4415
do
4416
  IFS=$as_save_IFS
4417
  test -z "$as_dir" && as_dir=.
4418
  for ac_exec_ext in '' $ac_executable_extensions; do
4419
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420
    ac_cv_prog_AR="${ac_tool_prefix}ar"
4421
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422
    break 2
4423
  fi
4424
done
4425
done
4426
IFS=$as_save_IFS
4427
 
4428
fi
4429
fi
4430
AR=$ac_cv_prog_AR
4431
if test -n "$AR"; then
4432
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
4433
$as_echo "$AR" >&6; }
4434
else
4435
  { $as_echo "$as_me:$LINENO: result: no" >&5
4436
$as_echo "no" >&6; }
4437
fi
4438
 
4439
 
4440
fi
4441
if test -z "$ac_cv_prog_AR"; then
4442
  ac_ct_AR=$AR
4443
  # Extract the first word of "ar", so it can be a program name with args.
4444
set dummy ar; ac_word=$2
4445
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4446
$as_echo_n "checking for $ac_word... " >&6; }
4447
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4448
  $as_echo_n "(cached) " >&6
4449
else
4450
  if test -n "$ac_ct_AR"; then
4451
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4452
else
4453
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454
for as_dir in $PATH
4455
do
4456
  IFS=$as_save_IFS
4457
  test -z "$as_dir" && as_dir=.
4458
  for ac_exec_ext in '' $ac_executable_extensions; do
4459
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460
    ac_cv_prog_ac_ct_AR="ar"
4461
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4462
    break 2
4463
  fi
4464
done
4465
done
4466
IFS=$as_save_IFS
4467
 
4468
fi
4469
fi
4470
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4471
if test -n "$ac_ct_AR"; then
4472
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4473
$as_echo "$ac_ct_AR" >&6; }
4474
else
4475
  { $as_echo "$as_me:$LINENO: result: no" >&5
4476
$as_echo "no" >&6; }
4477
fi
4478
 
4479
  if test "x$ac_ct_AR" = x; then
4480
    AR="false"
4481
  else
4482
    case $cross_compiling:$ac_tool_warned in
4483
yes:)
4484
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4485
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4486
ac_tool_warned=yes ;;
4487
esac
4488
    AR=$ac_ct_AR
4489
  fi
4490
else
4491
  AR="$ac_cv_prog_AR"
4492
fi
4493
 
4494
test -z "$AR" && AR=ar
4495
test -z "$AR_FLAGS" && AR_FLAGS=cru
4496
 
4497
 
4498
 
4499
 
4500
 
4501
 
4502
 
4503
 
4504
 
4505
 
4506
 
4507
if test -n "$ac_tool_prefix"; then
4508
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4509
set dummy ${ac_tool_prefix}strip; ac_word=$2
4510
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4511
$as_echo_n "checking for $ac_word... " >&6; }
4512
if test "${ac_cv_prog_STRIP+set}" = set; then
4513
  $as_echo_n "(cached) " >&6
4514
else
4515
  if test -n "$STRIP"; then
4516
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4517
else
4518
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519
for as_dir in $PATH
4520
do
4521
  IFS=$as_save_IFS
4522
  test -z "$as_dir" && as_dir=.
4523
  for ac_exec_ext in '' $ac_executable_extensions; do
4524
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4526
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527
    break 2
4528
  fi
4529
done
4530
done
4531
IFS=$as_save_IFS
4532
 
4533
fi
4534
fi
4535
STRIP=$ac_cv_prog_STRIP
4536
if test -n "$STRIP"; then
4537
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4538
$as_echo "$STRIP" >&6; }
4539
else
4540
  { $as_echo "$as_me:$LINENO: result: no" >&5
4541
$as_echo "no" >&6; }
4542
fi
4543
 
4544
 
4545
fi
4546
if test -z "$ac_cv_prog_STRIP"; then
4547
  ac_ct_STRIP=$STRIP
4548
  # Extract the first word of "strip", so it can be a program name with args.
4549
set dummy strip; ac_word=$2
4550
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4551
$as_echo_n "checking for $ac_word... " >&6; }
4552
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4553
  $as_echo_n "(cached) " >&6
4554
else
4555
  if test -n "$ac_ct_STRIP"; then
4556
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4557
else
4558
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559
for as_dir in $PATH
4560
do
4561
  IFS=$as_save_IFS
4562
  test -z "$as_dir" && as_dir=.
4563
  for ac_exec_ext in '' $ac_executable_extensions; do
4564
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4565
    ac_cv_prog_ac_ct_STRIP="strip"
4566
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4567
    break 2
4568
  fi
4569
done
4570
done
4571
IFS=$as_save_IFS
4572
 
4573
fi
4574
fi
4575
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4576
if test -n "$ac_ct_STRIP"; then
4577
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4578
$as_echo "$ac_ct_STRIP" >&6; }
4579
else
4580
  { $as_echo "$as_me:$LINENO: result: no" >&5
4581
$as_echo "no" >&6; }
4582
fi
4583
 
4584
  if test "x$ac_ct_STRIP" = x; then
4585
    STRIP=":"
4586
  else
4587
    case $cross_compiling:$ac_tool_warned in
4588
yes:)
4589
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4590
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4591
ac_tool_warned=yes ;;
4592
esac
4593
    STRIP=$ac_ct_STRIP
4594
  fi
4595
else
4596
  STRIP="$ac_cv_prog_STRIP"
4597
fi
4598
 
4599
test -z "$STRIP" && STRIP=:
4600
 
4601
 
4602
 
4603
 
4604
 
4605
 
4606
if test -n "$ac_tool_prefix"; then
4607
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4608
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4609
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4610
$as_echo_n "checking for $ac_word... " >&6; }
4611
if test "${ac_cv_prog_RANLIB+set}" = set; then
4612
  $as_echo_n "(cached) " >&6
4613
else
4614
  if test -n "$RANLIB"; then
4615
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4616
else
4617
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618
for as_dir in $PATH
4619
do
4620
  IFS=$as_save_IFS
4621
  test -z "$as_dir" && as_dir=.
4622
  for ac_exec_ext in '' $ac_executable_extensions; do
4623
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4625
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626
    break 2
4627
  fi
4628
done
4629
done
4630
IFS=$as_save_IFS
4631
 
4632
fi
4633
fi
4634
RANLIB=$ac_cv_prog_RANLIB
4635
if test -n "$RANLIB"; then
4636
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4637
$as_echo "$RANLIB" >&6; }
4638
else
4639
  { $as_echo "$as_me:$LINENO: result: no" >&5
4640
$as_echo "no" >&6; }
4641
fi
4642
 
4643
 
4644
fi
4645
if test -z "$ac_cv_prog_RANLIB"; then
4646
  ac_ct_RANLIB=$RANLIB
4647
  # Extract the first word of "ranlib", so it can be a program name with args.
4648
set dummy ranlib; ac_word=$2
4649
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4650
$as_echo_n "checking for $ac_word... " >&6; }
4651
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4652
  $as_echo_n "(cached) " >&6
4653
else
4654
  if test -n "$ac_ct_RANLIB"; then
4655
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4656
else
4657
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658
for as_dir in $PATH
4659
do
4660
  IFS=$as_save_IFS
4661
  test -z "$as_dir" && as_dir=.
4662
  for ac_exec_ext in '' $ac_executable_extensions; do
4663
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664
    ac_cv_prog_ac_ct_RANLIB="ranlib"
4665
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666
    break 2
4667
  fi
4668
done
4669
done
4670
IFS=$as_save_IFS
4671
 
4672
fi
4673
fi
4674
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4675
if test -n "$ac_ct_RANLIB"; then
4676
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4677
$as_echo "$ac_ct_RANLIB" >&6; }
4678
else
4679
  { $as_echo "$as_me:$LINENO: result: no" >&5
4680
$as_echo "no" >&6; }
4681
fi
4682
 
4683
  if test "x$ac_ct_RANLIB" = x; then
4684
    RANLIB=":"
4685
  else
4686
    case $cross_compiling:$ac_tool_warned in
4687
yes:)
4688
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4689
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4690
ac_tool_warned=yes ;;
4691
esac
4692
    RANLIB=$ac_ct_RANLIB
4693
  fi
4694
else
4695
  RANLIB="$ac_cv_prog_RANLIB"
4696
fi
4697
 
4698
test -z "$RANLIB" && RANLIB=:
4699
 
4700
 
4701
 
4702
 
4703
 
4704
 
4705
# Determine commands to create old-style static archives.
4706
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4707
old_postinstall_cmds='chmod 644 $oldlib'
4708
old_postuninstall_cmds=
4709
 
4710
if test -n "$RANLIB"; then
4711
  case $host_os in
4712
  openbsd*)
4713
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4714
    ;;
4715
  *)
4716
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4717
    ;;
4718
  esac
4719
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4720
fi
4721
 
4722
 
4723
 
4724
 
4725
 
4726
 
4727
 
4728
 
4729
 
4730
 
4731
 
4732
 
4733
 
4734
 
4735
 
4736
 
4737
 
4738
 
4739
 
4740
 
4741
 
4742
 
4743
 
4744
 
4745
 
4746
 
4747
 
4748
 
4749
 
4750
 
4751
 
4752
 
4753
 
4754
 
4755 19 jeremybenn
# If no C compiler was specified, use CC.
4756
LTCC=${LTCC-"$CC"}
4757
 
4758
# If no C compiler flags were specified, use CFLAGS.
4759
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4760
 
4761
# Allow CC to be a program name with arguments.
4762
compiler=$CC
4763
 
4764
 
4765 82 jeremybenn
# Check for command to grab the raw symbol name followed by C symbol from nm.
4766
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4767
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4768
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4769
  $as_echo_n "(cached) " >&6
4770
else
4771
 
4772
# These are sane defaults that work on at least a few old systems.
4773
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4774
 
4775
# Character class describing NM global symbol codes.
4776
symcode='[BCDEGRST]'
4777
 
4778
# Regexp to match symbols that can be accessed directly from C.
4779
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4780
 
4781
# Define system-specific variables.
4782
case $host_os in
4783
aix*)
4784
  symcode='[BCDT]'
4785
  ;;
4786
cygwin* | mingw* | pw32* | cegcc*)
4787
  symcode='[ABCDGISTW]'
4788
  ;;
4789
hpux*)
4790
  if test "$host_cpu" = ia64; then
4791
    symcode='[ABCDEGRST]'
4792
  fi
4793
  ;;
4794
irix* | nonstopux*)
4795
  symcode='[BCDEGRST]'
4796
  ;;
4797
osf*)
4798
  symcode='[BCDEGQRST]'
4799
  ;;
4800
solaris*)
4801
  symcode='[BDRT]'
4802
  ;;
4803
sco3.2v5*)
4804
  symcode='[DT]'
4805
  ;;
4806
sysv4.2uw2*)
4807
  symcode='[DT]'
4808
  ;;
4809
sysv5* | sco5v6* | unixware* | OpenUNIX*)
4810
  symcode='[ABDT]'
4811
  ;;
4812
sysv4)
4813
  symcode='[DFNSTU]'
4814
  ;;
4815
esac
4816
 
4817
# If we're using GNU nm, then use its standard symbol codes.
4818
case `$NM -V 2>&1` in
4819
*GNU* | *'with BFD'*)
4820
  symcode='[ABCDGIRSTW]' ;;
4821
esac
4822
 
4823
# Transform an extracted symbol line into a proper C declaration.
4824
# Some systems (esp. on ia64) link data and code symbols differently,
4825
# so use this general approach.
4826
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4827
 
4828
# Transform an extracted symbol line into symbol name and symbol address
4829
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4830
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'"
4831
 
4832
# Handle CRLF in mingw tool chain
4833
opt_cr=
4834
case $build_os in
4835
mingw*)
4836
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4837
  ;;
4838
esac
4839
 
4840
# Try without a prefix underscore, then with it.
4841
for ac_symprfx in "" "_"; do
4842
 
4843
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4844
  symxfrm="\\1 $ac_symprfx\\2 \\2"
4845
 
4846
  # Write the raw and C identifiers.
4847
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4848
    # Fake it for dumpbin and say T for any non-static function
4849
    # and D for any global variable.
4850
    # Also find C++ and __fastcall symbols from MSVC++,
4851
    # which start with @ or ?.
4852
    lt_cv_sys_global_symbol_pipe="$AWK '"\
4853
"     {last_section=section; section=\$ 3};"\
4854
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4855
"     \$ 0!~/External *\|/{next};"\
4856
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4857
"     {if(hide[section]) next};"\
4858
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4859
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4860
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4861
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4862
"     ' prfx=^$ac_symprfx"
4863
  else
4864
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4865
  fi
4866
 
4867
  # Check to see that the pipe works correctly.
4868
  pipe_works=no
4869
 
4870
  rm -f conftest*
4871
  cat > conftest.$ac_ext <<_LT_EOF
4872
#ifdef __cplusplus
4873
extern "C" {
4874
#endif
4875
char nm_test_var;
4876
void nm_test_func(void);
4877
void nm_test_func(void){}
4878
#ifdef __cplusplus
4879
}
4880
#endif
4881
int main(){nm_test_var='a';nm_test_func();return(0);}
4882
_LT_EOF
4883
 
4884
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4885
  (eval $ac_compile) 2>&5
4886
  ac_status=$?
4887
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888
  (exit $ac_status); }; then
4889
    # Now try to grab the symbols.
4890
    nlist=conftest.nm
4891
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4892
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4893
  ac_status=$?
4894
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895
  (exit $ac_status); } && test -s "$nlist"; then
4896
      # Try sorting and uniquifying the output.
4897
      if sort "$nlist" | uniq > "$nlist"T; then
4898
        mv -f "$nlist"T "$nlist"
4899
      else
4900
        rm -f "$nlist"T
4901
      fi
4902
 
4903
      # Make sure that we snagged all the symbols we need.
4904
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4905
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4906
          cat <<_LT_EOF > conftest.$ac_ext
4907
#ifdef __cplusplus
4908
extern "C" {
4909
#endif
4910
 
4911
_LT_EOF
4912
          # Now generate the symbol file.
4913
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4914
 
4915
          cat <<_LT_EOF >> conftest.$ac_ext
4916
 
4917
/* The mapping between symbol names and symbols.  */
4918
const struct {
4919
  const char *name;
4920
  void       *address;
4921
}
4922
lt__PROGRAM__LTX_preloaded_symbols[] =
4923
{
4924
  { "@PROGRAM@", (void *) 0 },
4925
_LT_EOF
4926
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4927
          cat <<\_LT_EOF >> conftest.$ac_ext
4928
  {0, (void *) 0}
4929
};
4930
 
4931
/* This works around a problem in FreeBSD linker */
4932
#ifdef FREEBSD_WORKAROUND
4933
static const void *lt_preloaded_setup() {
4934
  return lt__PROGRAM__LTX_preloaded_symbols;
4935
}
4936
#endif
4937
 
4938
#ifdef __cplusplus
4939
}
4940
#endif
4941
_LT_EOF
4942
          # Now try linking the two files.
4943
          mv conftest.$ac_objext conftstm.$ac_objext
4944
          lt_save_LIBS="$LIBS"
4945
          lt_save_CFLAGS="$CFLAGS"
4946
          LIBS="conftstm.$ac_objext"
4947
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4948
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4949
  (eval $ac_link) 2>&5
4950
  ac_status=$?
4951
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
4953
            pipe_works=yes
4954
          fi
4955
          LIBS="$lt_save_LIBS"
4956
          CFLAGS="$lt_save_CFLAGS"
4957
        else
4958
          echo "cannot find nm_test_func in $nlist" >&5
4959
        fi
4960
      else
4961
        echo "cannot find nm_test_var in $nlist" >&5
4962
      fi
4963
    else
4964
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4965
    fi
4966
  else
4967
    echo "$progname: failed program was:" >&5
4968
    cat conftest.$ac_ext >&5
4969
  fi
4970
  rm -rf conftest* conftst*
4971
 
4972
  # Do not use the global_symbol_pipe unless it works.
4973
  if test "$pipe_works" = yes; then
4974
    break
4975
  else
4976
    lt_cv_sys_global_symbol_pipe=
4977
  fi
4978
done
4979
 
4980
fi
4981
 
4982
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4983
  lt_cv_sys_global_symbol_to_cdecl=
4984
fi
4985
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4986
  { $as_echo "$as_me:$LINENO: result: failed" >&5
4987
$as_echo "failed" >&6; }
4988
else
4989
  { $as_echo "$as_me:$LINENO: result: ok" >&5
4990
$as_echo "ok" >&6; }
4991
fi
4992
 
4993
 
4994
 
4995
 
4996
 
4997
 
4998
 
4999
 
5000
 
5001
 
5002
 
5003
 
5004
 
5005
 
5006
 
5007
 
5008
 
5009
 
5010
 
5011
 
5012
 
5013
 
5014
 
5015 19 jeremybenn
# Check whether --enable-libtool-lock was given.
5016
if test "${enable_libtool_lock+set}" = set; then
5017
  enableval=$enable_libtool_lock;
5018
fi
5019
 
5020
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5021
 
5022
# Some flags need to be propagated to the compiler or linker for good
5023
# libtool support.
5024
case $host in
5025
ia64-*-hpux*)
5026
  # Find out which ABI we are using.
5027
  echo 'int i;' > conftest.$ac_ext
5028
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5029
  (eval $ac_compile) 2>&5
5030
  ac_status=$?
5031 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 19 jeremybenn
  (exit $ac_status); }; then
5033
    case `/usr/bin/file conftest.$ac_objext` in
5034 82 jeremybenn
      *ELF-32*)
5035
        HPUX_IA64_MODE="32"
5036
        ;;
5037
      *ELF-64*)
5038
        HPUX_IA64_MODE="64"
5039
        ;;
5040 19 jeremybenn
    esac
5041
  fi
5042
  rm -rf conftest*
5043
  ;;
5044
*-*-irix6*)
5045
  # Find out which ABI we are using.
5046 82 jeremybenn
  echo '#line 5046 "configure"' > conftest.$ac_ext
5047 19 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5048
  (eval $ac_compile) 2>&5
5049
  ac_status=$?
5050 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 19 jeremybenn
  (exit $ac_status); }; then
5052 82 jeremybenn
    if test "$lt_cv_prog_gnu_ld" = yes; then
5053
      case `/usr/bin/file conftest.$ac_objext` in
5054
        *32-bit*)
5055
          LD="${LD-ld} -melf32bsmip"
5056
          ;;
5057
        *N32*)
5058
          LD="${LD-ld} -melf32bmipn32"
5059
          ;;
5060
        *64-bit*)
5061
          LD="${LD-ld} -melf64bmip"
5062
        ;;
5063
      esac
5064
    else
5065
      case `/usr/bin/file conftest.$ac_objext` in
5066
        *32-bit*)
5067
          LD="${LD-ld} -32"
5068
          ;;
5069
        *N32*)
5070
          LD="${LD-ld} -n32"
5071
          ;;
5072
        *64-bit*)
5073
          LD="${LD-ld} -64"
5074
          ;;
5075
      esac
5076
    fi
5077 19 jeremybenn
  fi
5078
  rm -rf conftest*
5079
  ;;
5080
 
5081
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5082 82 jeremybenn
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5083 19 jeremybenn
  # Find out which ABI we are using.
5084
  echo 'int i;' > conftest.$ac_ext
5085
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5086
  (eval $ac_compile) 2>&5
5087
  ac_status=$?
5088 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 19 jeremybenn
  (exit $ac_status); }; then
5090
    case `/usr/bin/file conftest.o` in
5091 82 jeremybenn
      *32-bit*)
5092
        case $host in
5093
          x86_64-*kfreebsd*-gnu)
5094
            LD="${LD-ld} -m elf_i386_fbsd"
5095
            ;;
5096
          x86_64-*linux*)
5097
            LD="${LD-ld} -m elf_i386"
5098
            ;;
5099
          ppc64-*linux*|powerpc64-*linux*)
5100
            LD="${LD-ld} -m elf32ppclinux"
5101
            ;;
5102
          s390x-*linux*)
5103
            LD="${LD-ld} -m elf_s390"
5104
            ;;
5105
          sparc64-*linux*)
5106
            LD="${LD-ld} -m elf32_sparc"
5107
            ;;
5108
        esac
5109
        ;;
5110
      *64-bit*)
5111
        case $host in
5112
          x86_64-*kfreebsd*-gnu)
5113
            LD="${LD-ld} -m elf_x86_64_fbsd"
5114
            ;;
5115
          x86_64-*linux*)
5116
            LD="${LD-ld} -m elf_x86_64"
5117
            ;;
5118
          ppc*-*linux*|powerpc*-*linux*)
5119
            LD="${LD-ld} -m elf64ppc"
5120
            ;;
5121
          s390*-*linux*|s390*-*tpf*)
5122
            LD="${LD-ld} -m elf64_s390"
5123
            ;;
5124
          sparc*-*linux*)
5125
            LD="${LD-ld} -m elf64_sparc"
5126
            ;;
5127
        esac
5128
        ;;
5129 19 jeremybenn
    esac
5130
  fi
5131
  rm -rf conftest*
5132
  ;;
5133
 
5134
*-*-sco3.2v5*)
5135
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5136
  SAVE_CFLAGS="$CFLAGS"
5137
  CFLAGS="$CFLAGS -belf"
5138 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5139
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5140 19 jeremybenn
if test "${lt_cv_cc_needs_belf+set}" = set; then
5141 82 jeremybenn
  $as_echo_n "(cached) " >&6
5142 19 jeremybenn
else
5143
  ac_ext=c
5144
ac_cpp='$CPP $CPPFLAGS'
5145
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5146
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5148
 
5149
     cat >conftest.$ac_ext <<_ACEOF
5150
/* confdefs.h.  */
5151
_ACEOF
5152
cat confdefs.h >>conftest.$ac_ext
5153
cat >>conftest.$ac_ext <<_ACEOF
5154
/* end confdefs.h.  */
5155
 
5156
int
5157
main ()
5158
{
5159
 
5160
  ;
5161
  return 0;
5162
}
5163
_ACEOF
5164
rm -f conftest.$ac_objext conftest$ac_exeext
5165
if { (ac_try="$ac_link"
5166
case "(($ac_try" in
5167
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168
  *) ac_try_echo=$ac_try;;
5169
esac
5170 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5171
$as_echo "$ac_try_echo") >&5
5172 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
5173
  ac_status=$?
5174
  grep -v '^ *+' conftest.er1 >conftest.err
5175
  rm -f conftest.er1
5176
  cat conftest.err >&5
5177 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 19 jeremybenn
  (exit $ac_status); } && {
5179
         test -z "$ac_c_werror_flag" ||
5180
         test ! -s conftest.err
5181 82 jeremybenn
       } && test -s conftest$ac_exeext && {
5182
         test "$cross_compiling" = yes ||
5183
         $as_test_x conftest$ac_exeext
5184
       }; then
5185 19 jeremybenn
  lt_cv_cc_needs_belf=yes
5186
else
5187 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
5188 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5189
 
5190
        lt_cv_cc_needs_belf=no
5191
fi
5192
 
5193 82 jeremybenn
rm -rf conftest.dSYM
5194 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5195
      conftest$ac_exeext conftest.$ac_ext
5196
     ac_ext=c
5197
ac_cpp='$CPP $CPPFLAGS'
5198
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5199
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5200
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5201
 
5202
fi
5203 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5204
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5205 19 jeremybenn
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5206
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5207
    CFLAGS="$SAVE_CFLAGS"
5208
  fi
5209
  ;;
5210
sparc*-*solaris*)
5211
  # Find out which ABI we are using.
5212
  echo 'int i;' > conftest.$ac_ext
5213
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5214
  (eval $ac_compile) 2>&5
5215
  ac_status=$?
5216 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 19 jeremybenn
  (exit $ac_status); }; then
5218
    case `/usr/bin/file conftest.o` in
5219
    *64-bit*)
5220
      case $lt_cv_prog_gnu_ld in
5221
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5222 82 jeremybenn
      *)
5223
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5224
          LD="${LD-ld} -64"
5225
        fi
5226
        ;;
5227 19 jeremybenn
      esac
5228
      ;;
5229
    esac
5230
  fi
5231
  rm -rf conftest*
5232
  ;;
5233 82 jeremybenn
esac
5234 19 jeremybenn
 
5235 82 jeremybenn
need_locks="$enable_libtool_lock"
5236 19 jeremybenn
 
5237 82 jeremybenn
 
5238
  case $host_os in
5239
    rhapsody* | darwin*)
5240
    if test -n "$ac_tool_prefix"; then
5241
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5242
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5243
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5244
$as_echo_n "checking for $ac_word... " >&6; }
5245
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5246
  $as_echo_n "(cached) " >&6
5247
else
5248
  if test -n "$DSYMUTIL"; then
5249
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5250
else
5251
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252
for as_dir in $PATH
5253
do
5254
  IFS=$as_save_IFS
5255
  test -z "$as_dir" && as_dir=.
5256
  for ac_exec_ext in '' $ac_executable_extensions; do
5257
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5259
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260
    break 2
5261
  fi
5262
done
5263
done
5264
IFS=$as_save_IFS
5265
 
5266
fi
5267
fi
5268
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5269
if test -n "$DSYMUTIL"; then
5270
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5271
$as_echo "$DSYMUTIL" >&6; }
5272
else
5273
  { $as_echo "$as_me:$LINENO: result: no" >&5
5274
$as_echo "no" >&6; }
5275
fi
5276
 
5277
 
5278
fi
5279
if test -z "$ac_cv_prog_DSYMUTIL"; then
5280
  ac_ct_DSYMUTIL=$DSYMUTIL
5281
  # Extract the first word of "dsymutil", so it can be a program name with args.
5282
set dummy dsymutil; ac_word=$2
5283
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5284
$as_echo_n "checking for $ac_word... " >&6; }
5285
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5286
  $as_echo_n "(cached) " >&6
5287
else
5288
  if test -n "$ac_ct_DSYMUTIL"; then
5289
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5290
else
5291
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292
for as_dir in $PATH
5293
do
5294
  IFS=$as_save_IFS
5295
  test -z "$as_dir" && as_dir=.
5296
  for ac_exec_ext in '' $ac_executable_extensions; do
5297
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5299
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5300
    break 2
5301
  fi
5302
done
5303
done
5304
IFS=$as_save_IFS
5305
 
5306
fi
5307
fi
5308
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5309
if test -n "$ac_ct_DSYMUTIL"; then
5310
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5311
$as_echo "$ac_ct_DSYMUTIL" >&6; }
5312
else
5313
  { $as_echo "$as_me:$LINENO: result: no" >&5
5314
$as_echo "no" >&6; }
5315
fi
5316
 
5317
  if test "x$ac_ct_DSYMUTIL" = x; then
5318
    DSYMUTIL=":"
5319
  else
5320
    case $cross_compiling:$ac_tool_warned in
5321
yes:)
5322
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5323
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5324
ac_tool_warned=yes ;;
5325 19 jeremybenn
esac
5326 82 jeremybenn
    DSYMUTIL=$ac_ct_DSYMUTIL
5327
  fi
5328
else
5329
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5330
fi
5331 19 jeremybenn
 
5332 82 jeremybenn
    if test -n "$ac_tool_prefix"; then
5333
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5334
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5335
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5336
$as_echo_n "checking for $ac_word... " >&6; }
5337
if test "${ac_cv_prog_NMEDIT+set}" = set; then
5338
  $as_echo_n "(cached) " >&6
5339
else
5340
  if test -n "$NMEDIT"; then
5341
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5342
else
5343
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344
for as_dir in $PATH
5345
do
5346
  IFS=$as_save_IFS
5347
  test -z "$as_dir" && as_dir=.
5348
  for ac_exec_ext in '' $ac_executable_extensions; do
5349
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5351
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352
    break 2
5353
  fi
5354
done
5355
done
5356
IFS=$as_save_IFS
5357 19 jeremybenn
 
5358 82 jeremybenn
fi
5359
fi
5360
NMEDIT=$ac_cv_prog_NMEDIT
5361
if test -n "$NMEDIT"; then
5362
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5363
$as_echo "$NMEDIT" >&6; }
5364
else
5365
  { $as_echo "$as_me:$LINENO: result: no" >&5
5366
$as_echo "no" >&6; }
5367
fi
5368 19 jeremybenn
 
5369 82 jeremybenn
 
5370
fi
5371
if test -z "$ac_cv_prog_NMEDIT"; then
5372
  ac_ct_NMEDIT=$NMEDIT
5373
  # Extract the first word of "nmedit", so it can be a program name with args.
5374
set dummy nmedit; ac_word=$2
5375
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5376
$as_echo_n "checking for $ac_word... " >&6; }
5377
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5378
  $as_echo_n "(cached) " >&6
5379
else
5380
  if test -n "$ac_ct_NMEDIT"; then
5381
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5382
else
5383
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384
for as_dir in $PATH
5385
do
5386
  IFS=$as_save_IFS
5387
  test -z "$as_dir" && as_dir=.
5388
  for ac_exec_ext in '' $ac_executable_extensions; do
5389
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5390
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5391
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5392
    break 2
5393
  fi
5394
done
5395
done
5396
IFS=$as_save_IFS
5397
 
5398
fi
5399
fi
5400
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5401
if test -n "$ac_ct_NMEDIT"; then
5402
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5403
$as_echo "$ac_ct_NMEDIT" >&6; }
5404
else
5405
  { $as_echo "$as_me:$LINENO: result: no" >&5
5406
$as_echo "no" >&6; }
5407
fi
5408
 
5409
  if test "x$ac_ct_NMEDIT" = x; then
5410
    NMEDIT=":"
5411
  else
5412
    case $cross_compiling:$ac_tool_warned in
5413
yes:)
5414
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5415
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5416
ac_tool_warned=yes ;;
5417
esac
5418
    NMEDIT=$ac_ct_NMEDIT
5419
  fi
5420
else
5421
  NMEDIT="$ac_cv_prog_NMEDIT"
5422
fi
5423
 
5424
    if test -n "$ac_tool_prefix"; then
5425
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5426
set dummy ${ac_tool_prefix}lipo; ac_word=$2
5427
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5428
$as_echo_n "checking for $ac_word... " >&6; }
5429
if test "${ac_cv_prog_LIPO+set}" = set; then
5430
  $as_echo_n "(cached) " >&6
5431
else
5432
  if test -n "$LIPO"; then
5433
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5434
else
5435
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436
for as_dir in $PATH
5437
do
5438
  IFS=$as_save_IFS
5439
  test -z "$as_dir" && as_dir=.
5440
  for ac_exec_ext in '' $ac_executable_extensions; do
5441
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5442
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5443
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444
    break 2
5445
  fi
5446
done
5447
done
5448
IFS=$as_save_IFS
5449
 
5450
fi
5451
fi
5452
LIPO=$ac_cv_prog_LIPO
5453
if test -n "$LIPO"; then
5454
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5455
$as_echo "$LIPO" >&6; }
5456
else
5457
  { $as_echo "$as_me:$LINENO: result: no" >&5
5458
$as_echo "no" >&6; }
5459
fi
5460
 
5461
 
5462
fi
5463
if test -z "$ac_cv_prog_LIPO"; then
5464
  ac_ct_LIPO=$LIPO
5465
  # Extract the first word of "lipo", so it can be a program name with args.
5466
set dummy lipo; ac_word=$2
5467
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5468
$as_echo_n "checking for $ac_word... " >&6; }
5469
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5470
  $as_echo_n "(cached) " >&6
5471
else
5472
  if test -n "$ac_ct_LIPO"; then
5473
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5474
else
5475
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476
for as_dir in $PATH
5477
do
5478
  IFS=$as_save_IFS
5479
  test -z "$as_dir" && as_dir=.
5480
  for ac_exec_ext in '' $ac_executable_extensions; do
5481
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5482
    ac_cv_prog_ac_ct_LIPO="lipo"
5483
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5484
    break 2
5485
  fi
5486
done
5487
done
5488
IFS=$as_save_IFS
5489
 
5490
fi
5491
fi
5492
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5493
if test -n "$ac_ct_LIPO"; then
5494
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5495
$as_echo "$ac_ct_LIPO" >&6; }
5496
else
5497
  { $as_echo "$as_me:$LINENO: result: no" >&5
5498
$as_echo "no" >&6; }
5499
fi
5500
 
5501
  if test "x$ac_ct_LIPO" = x; then
5502
    LIPO=":"
5503
  else
5504
    case $cross_compiling:$ac_tool_warned in
5505
yes:)
5506
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5507
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5508
ac_tool_warned=yes ;;
5509
esac
5510
    LIPO=$ac_ct_LIPO
5511
  fi
5512
else
5513
  LIPO="$ac_cv_prog_LIPO"
5514
fi
5515
 
5516
    if test -n "$ac_tool_prefix"; then
5517
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5518
set dummy ${ac_tool_prefix}otool; ac_word=$2
5519
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5520
$as_echo_n "checking for $ac_word... " >&6; }
5521
if test "${ac_cv_prog_OTOOL+set}" = set; then
5522
  $as_echo_n "(cached) " >&6
5523
else
5524
  if test -n "$OTOOL"; then
5525
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5526
else
5527
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528
for as_dir in $PATH
5529
do
5530
  IFS=$as_save_IFS
5531
  test -z "$as_dir" && as_dir=.
5532
  for ac_exec_ext in '' $ac_executable_extensions; do
5533
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5534
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5535
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5536
    break 2
5537
  fi
5538
done
5539
done
5540
IFS=$as_save_IFS
5541
 
5542
fi
5543
fi
5544
OTOOL=$ac_cv_prog_OTOOL
5545
if test -n "$OTOOL"; then
5546
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
5547
$as_echo "$OTOOL" >&6; }
5548
else
5549
  { $as_echo "$as_me:$LINENO: result: no" >&5
5550
$as_echo "no" >&6; }
5551
fi
5552
 
5553
 
5554
fi
5555
if test -z "$ac_cv_prog_OTOOL"; then
5556
  ac_ct_OTOOL=$OTOOL
5557
  # Extract the first word of "otool", so it can be a program name with args.
5558
set dummy otool; ac_word=$2
5559
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5560
$as_echo_n "checking for $ac_word... " >&6; }
5561
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5562
  $as_echo_n "(cached) " >&6
5563
else
5564
  if test -n "$ac_ct_OTOOL"; then
5565
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5566
else
5567
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568
for as_dir in $PATH
5569
do
5570
  IFS=$as_save_IFS
5571
  test -z "$as_dir" && as_dir=.
5572
  for ac_exec_ext in '' $ac_executable_extensions; do
5573
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5574
    ac_cv_prog_ac_ct_OTOOL="otool"
5575
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5576
    break 2
5577
  fi
5578
done
5579
done
5580
IFS=$as_save_IFS
5581
 
5582
fi
5583
fi
5584
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5585
if test -n "$ac_ct_OTOOL"; then
5586
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5587
$as_echo "$ac_ct_OTOOL" >&6; }
5588
else
5589
  { $as_echo "$as_me:$LINENO: result: no" >&5
5590
$as_echo "no" >&6; }
5591
fi
5592
 
5593
  if test "x$ac_ct_OTOOL" = x; then
5594
    OTOOL=":"
5595
  else
5596
    case $cross_compiling:$ac_tool_warned in
5597
yes:)
5598
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5599
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5600
ac_tool_warned=yes ;;
5601
esac
5602
    OTOOL=$ac_ct_OTOOL
5603
  fi
5604
else
5605
  OTOOL="$ac_cv_prog_OTOOL"
5606
fi
5607
 
5608
    if test -n "$ac_tool_prefix"; then
5609
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5610
set dummy ${ac_tool_prefix}otool64; ac_word=$2
5611
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5612
$as_echo_n "checking for $ac_word... " >&6; }
5613
if test "${ac_cv_prog_OTOOL64+set}" = set; then
5614
  $as_echo_n "(cached) " >&6
5615
else
5616
  if test -n "$OTOOL64"; then
5617
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5618
else
5619
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620
for as_dir in $PATH
5621
do
5622
  IFS=$as_save_IFS
5623
  test -z "$as_dir" && as_dir=.
5624
  for ac_exec_ext in '' $ac_executable_extensions; do
5625
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5626
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5627
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5628
    break 2
5629
  fi
5630
done
5631
done
5632
IFS=$as_save_IFS
5633
 
5634
fi
5635
fi
5636
OTOOL64=$ac_cv_prog_OTOOL64
5637
if test -n "$OTOOL64"; then
5638
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
5639
$as_echo "$OTOOL64" >&6; }
5640
else
5641
  { $as_echo "$as_me:$LINENO: result: no" >&5
5642
$as_echo "no" >&6; }
5643
fi
5644
 
5645
 
5646
fi
5647
if test -z "$ac_cv_prog_OTOOL64"; then
5648
  ac_ct_OTOOL64=$OTOOL64
5649
  # Extract the first word of "otool64", so it can be a program name with args.
5650
set dummy otool64; ac_word=$2
5651
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5652
$as_echo_n "checking for $ac_word... " >&6; }
5653
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5654
  $as_echo_n "(cached) " >&6
5655
else
5656
  if test -n "$ac_ct_OTOOL64"; then
5657
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5658
else
5659
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660
for as_dir in $PATH
5661
do
5662
  IFS=$as_save_IFS
5663
  test -z "$as_dir" && as_dir=.
5664
  for ac_exec_ext in '' $ac_executable_extensions; do
5665
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5666
    ac_cv_prog_ac_ct_OTOOL64="otool64"
5667
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5668
    break 2
5669
  fi
5670
done
5671
done
5672
IFS=$as_save_IFS
5673
 
5674
fi
5675
fi
5676
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5677
if test -n "$ac_ct_OTOOL64"; then
5678
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5679
$as_echo "$ac_ct_OTOOL64" >&6; }
5680
else
5681
  { $as_echo "$as_me:$LINENO: result: no" >&5
5682
$as_echo "no" >&6; }
5683
fi
5684
 
5685
  if test "x$ac_ct_OTOOL64" = x; then
5686
    OTOOL64=":"
5687
  else
5688
    case $cross_compiling:$ac_tool_warned in
5689
yes:)
5690
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5691
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5692
ac_tool_warned=yes ;;
5693
esac
5694
    OTOOL64=$ac_ct_OTOOL64
5695
  fi
5696
else
5697
  OTOOL64="$ac_cv_prog_OTOOL64"
5698
fi
5699
 
5700
 
5701
 
5702
 
5703
 
5704
 
5705
 
5706
 
5707
 
5708
 
5709
 
5710
 
5711
 
5712
 
5713
 
5714
 
5715
 
5716
 
5717
 
5718
 
5719
 
5720
 
5721
 
5722
 
5723
 
5724
 
5725
 
5726
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5727
$as_echo_n "checking for -single_module linker flag... " >&6; }
5728
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5729
  $as_echo_n "(cached) " >&6
5730
else
5731
  lt_cv_apple_cc_single_mod=no
5732
      if test -z "${LT_MULTI_MODULE}"; then
5733
        # By default we will add the -single_module flag. You can override
5734
        # by either setting the environment variable LT_MULTI_MODULE
5735
        # non-empty at configure time, or by adding -multi_module to the
5736
        # link flags.
5737
        rm -rf libconftest.dylib*
5738
        echo "int foo(void){return 1;}" > conftest.c
5739
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5740
-dynamiclib -Wl,-single_module conftest.c" >&5
5741
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5742
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5743
        _lt_result=$?
5744
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5745
          lt_cv_apple_cc_single_mod=yes
5746
        else
5747
          cat conftest.err >&5
5748
        fi
5749
        rm -rf libconftest.dylib*
5750
        rm -f conftest.*
5751
      fi
5752
fi
5753
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5754
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5755
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5756
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5757
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5758
  $as_echo_n "(cached) " >&6
5759
else
5760
  lt_cv_ld_exported_symbols_list=no
5761
      save_LDFLAGS=$LDFLAGS
5762
      echo "_main" > conftest.sym
5763
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5764
      cat >conftest.$ac_ext <<_ACEOF
5765
/* confdefs.h.  */
5766
_ACEOF
5767
cat confdefs.h >>conftest.$ac_ext
5768
cat >>conftest.$ac_ext <<_ACEOF
5769
/* end confdefs.h.  */
5770
 
5771
int
5772
main ()
5773
{
5774
 
5775
  ;
5776
  return 0;
5777
}
5778
_ACEOF
5779
rm -f conftest.$ac_objext conftest$ac_exeext
5780
if { (ac_try="$ac_link"
5781
case "(($ac_try" in
5782
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783
  *) ac_try_echo=$ac_try;;
5784
esac
5785
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5786
$as_echo "$ac_try_echo") >&5
5787
  (eval "$ac_link") 2>conftest.er1
5788
  ac_status=$?
5789
  grep -v '^ *+' conftest.er1 >conftest.err
5790
  rm -f conftest.er1
5791
  cat conftest.err >&5
5792
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793
  (exit $ac_status); } && {
5794
         test -z "$ac_c_werror_flag" ||
5795
         test ! -s conftest.err
5796
       } && test -s conftest$ac_exeext && {
5797
         test "$cross_compiling" = yes ||
5798
         $as_test_x conftest$ac_exeext
5799
       }; then
5800
  lt_cv_ld_exported_symbols_list=yes
5801
else
5802
  $as_echo "$as_me: failed program was:" >&5
5803
sed 's/^/| /' conftest.$ac_ext >&5
5804
 
5805
        lt_cv_ld_exported_symbols_list=no
5806
fi
5807
 
5808
rm -rf conftest.dSYM
5809
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5810
      conftest$ac_exeext conftest.$ac_ext
5811
        LDFLAGS="$save_LDFLAGS"
5812
 
5813
fi
5814
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5815
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5816
    case $host_os in
5817
    rhapsody* | darwin1.[012])
5818
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5819
    darwin1.*)
5820
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5821
    darwin*) # darwin 5.x on
5822
      # if running on 10.5 or later, the deployment target defaults
5823
      # to the OS version, if on x86, and 10.4, the deployment
5824
      # target defaults to 10.4. Don't you love it?
5825
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5826
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5827
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5828
        10.[012]*)
5829
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5830
        10.*)
5831
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5832
      esac
5833
    ;;
5834
  esac
5835
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5836
      _lt_dar_single_mod='$single_module'
5837
    fi
5838
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5839
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5840
    else
5841
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5842
    fi
5843
    if test "$DSYMUTIL" != ":"; then
5844
      _lt_dsymutil='~$DSYMUTIL $lib || :'
5845
    else
5846
      _lt_dsymutil=
5847
    fi
5848
    ;;
5849
  esac
5850
 
5851 19 jeremybenn
ac_ext=c
5852
ac_cpp='$CPP $CPPFLAGS'
5853
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5854
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5855
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5856 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5857
$as_echo_n "checking how to run the C preprocessor... " >&6; }
5858 19 jeremybenn
# On Suns, sometimes $CPP names a directory.
5859
if test -n "$CPP" && test -d "$CPP"; then
5860
  CPP=
5861
fi
5862
if test -z "$CPP"; then
5863
  if test "${ac_cv_prog_CPP+set}" = set; then
5864 82 jeremybenn
  $as_echo_n "(cached) " >&6
5865 19 jeremybenn
else
5866
      # Double quotes because CPP needs to be expanded
5867
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5868
    do
5869
      ac_preproc_ok=false
5870
for ac_c_preproc_warn_flag in '' yes
5871
do
5872
  # Use a header file that comes with gcc, so configuring glibc
5873
  # with a fresh cross-compiler works.
5874
  # Prefer  to  if __STDC__ is defined, since
5875
  #  exists even on freestanding compilers.
5876
  # On the NeXT, cc -E runs the code through the compiler's parser,
5877
  # not just through cpp. "Syntax error" is here to catch this case.
5878
  cat >conftest.$ac_ext <<_ACEOF
5879
/* confdefs.h.  */
5880
_ACEOF
5881
cat confdefs.h >>conftest.$ac_ext
5882
cat >>conftest.$ac_ext <<_ACEOF
5883
/* end confdefs.h.  */
5884
#ifdef __STDC__
5885
# include 
5886
#else
5887
# include 
5888
#endif
5889
                     Syntax error
5890
_ACEOF
5891
if { (ac_try="$ac_cpp conftest.$ac_ext"
5892
case "(($ac_try" in
5893
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894
  *) ac_try_echo=$ac_try;;
5895
esac
5896 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5897
$as_echo "$ac_try_echo") >&5
5898 19 jeremybenn
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5899
  ac_status=$?
5900
  grep -v '^ *+' conftest.er1 >conftest.err
5901
  rm -f conftest.er1
5902
  cat conftest.err >&5
5903 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 19 jeremybenn
  (exit $ac_status); } >/dev/null && {
5905
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5906
         test ! -s conftest.err
5907
       }; then
5908
  :
5909
else
5910 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
5911 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5912
 
5913
  # Broken: fails on valid input.
5914
continue
5915
fi
5916
 
5917
rm -f conftest.err conftest.$ac_ext
5918
 
5919
  # OK, works on sane cases.  Now check whether nonexistent headers
5920
  # can be detected and how.
5921
  cat >conftest.$ac_ext <<_ACEOF
5922
/* confdefs.h.  */
5923
_ACEOF
5924
cat confdefs.h >>conftest.$ac_ext
5925
cat >>conftest.$ac_ext <<_ACEOF
5926
/* end confdefs.h.  */
5927
#include 
5928
_ACEOF
5929
if { (ac_try="$ac_cpp conftest.$ac_ext"
5930
case "(($ac_try" in
5931
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932
  *) ac_try_echo=$ac_try;;
5933
esac
5934 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5935
$as_echo "$ac_try_echo") >&5
5936 19 jeremybenn
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5937
  ac_status=$?
5938
  grep -v '^ *+' conftest.er1 >conftest.err
5939
  rm -f conftest.er1
5940
  cat conftest.err >&5
5941 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 19 jeremybenn
  (exit $ac_status); } >/dev/null && {
5943
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5944
         test ! -s conftest.err
5945
       }; then
5946
  # Broken: success on invalid input.
5947
continue
5948
else
5949 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
5950 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
5951
 
5952
  # Passes both tests.
5953
ac_preproc_ok=:
5954
break
5955
fi
5956
 
5957
rm -f conftest.err conftest.$ac_ext
5958
 
5959
done
5960
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5961
rm -f conftest.err conftest.$ac_ext
5962
if $ac_preproc_ok; then
5963
  break
5964
fi
5965
 
5966
    done
5967
    ac_cv_prog_CPP=$CPP
5968
 
5969
fi
5970
  CPP=$ac_cv_prog_CPP
5971
else
5972
  ac_cv_prog_CPP=$CPP
5973
fi
5974 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5975
$as_echo "$CPP" >&6; }
5976 19 jeremybenn
ac_preproc_ok=false
5977
for ac_c_preproc_warn_flag in '' yes
5978
do
5979
  # Use a header file that comes with gcc, so configuring glibc
5980
  # with a fresh cross-compiler works.
5981
  # Prefer  to  if __STDC__ is defined, since
5982
  #  exists even on freestanding compilers.
5983
  # On the NeXT, cc -E runs the code through the compiler's parser,
5984
  # not just through cpp. "Syntax error" is here to catch this case.
5985
  cat >conftest.$ac_ext <<_ACEOF
5986
/* confdefs.h.  */
5987
_ACEOF
5988
cat confdefs.h >>conftest.$ac_ext
5989
cat >>conftest.$ac_ext <<_ACEOF
5990
/* end confdefs.h.  */
5991
#ifdef __STDC__
5992
# include 
5993
#else
5994
# include 
5995
#endif
5996
                     Syntax error
5997
_ACEOF
5998
if { (ac_try="$ac_cpp conftest.$ac_ext"
5999
case "(($ac_try" in
6000
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6001
  *) ac_try_echo=$ac_try;;
6002
esac
6003 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6004
$as_echo "$ac_try_echo") >&5
6005 19 jeremybenn
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6006
  ac_status=$?
6007
  grep -v '^ *+' conftest.er1 >conftest.err
6008
  rm -f conftest.er1
6009
  cat conftest.err >&5
6010 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 19 jeremybenn
  (exit $ac_status); } >/dev/null && {
6012
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6013
         test ! -s conftest.err
6014
       }; then
6015
  :
6016
else
6017 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
6018 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
6019
 
6020
  # Broken: fails on valid input.
6021
continue
6022
fi
6023
 
6024
rm -f conftest.err conftest.$ac_ext
6025
 
6026
  # OK, works on sane cases.  Now check whether nonexistent headers
6027
  # can be detected and how.
6028
  cat >conftest.$ac_ext <<_ACEOF
6029
/* confdefs.h.  */
6030
_ACEOF
6031
cat confdefs.h >>conftest.$ac_ext
6032
cat >>conftest.$ac_ext <<_ACEOF
6033
/* end confdefs.h.  */
6034
#include 
6035
_ACEOF
6036
if { (ac_try="$ac_cpp conftest.$ac_ext"
6037
case "(($ac_try" in
6038
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039
  *) ac_try_echo=$ac_try;;
6040
esac
6041 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6042
$as_echo "$ac_try_echo") >&5
6043 19 jeremybenn
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6044
  ac_status=$?
6045
  grep -v '^ *+' conftest.er1 >conftest.err
6046
  rm -f conftest.er1
6047
  cat conftest.err >&5
6048 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 19 jeremybenn
  (exit $ac_status); } >/dev/null && {
6050
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6051
         test ! -s conftest.err
6052
       }; then
6053
  # Broken: success on invalid input.
6054
continue
6055
else
6056 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
6057 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
6058
 
6059
  # Passes both tests.
6060
ac_preproc_ok=:
6061
break
6062
fi
6063
 
6064
rm -f conftest.err conftest.$ac_ext
6065
 
6066
done
6067
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6068
rm -f conftest.err conftest.$ac_ext
6069
if $ac_preproc_ok; then
6070
  :
6071
else
6072 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6073
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6074
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6075 19 jeremybenn
See \`config.log' for more details." >&5
6076 82 jeremybenn
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6077 19 jeremybenn
See \`config.log' for more details." >&2;}
6078 82 jeremybenn
   { (exit 1); exit 1; }; }; }
6079 19 jeremybenn
fi
6080
 
6081
ac_ext=c
6082
ac_cpp='$CPP $CPPFLAGS'
6083
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6084
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6085
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6086
 
6087
 
6088 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6089
$as_echo_n "checking for ANSI C header files... " >&6; }
6090 19 jeremybenn
if test "${ac_cv_header_stdc+set}" = set; then
6091 82 jeremybenn
  $as_echo_n "(cached) " >&6
6092 19 jeremybenn
else
6093
  cat >conftest.$ac_ext <<_ACEOF
6094
/* confdefs.h.  */
6095
_ACEOF
6096
cat confdefs.h >>conftest.$ac_ext
6097
cat >>conftest.$ac_ext <<_ACEOF
6098
/* end confdefs.h.  */
6099
#include 
6100
#include 
6101
#include 
6102
#include 
6103
 
6104
int
6105
main ()
6106
{
6107
 
6108
  ;
6109
  return 0;
6110
}
6111
_ACEOF
6112
rm -f conftest.$ac_objext
6113
if { (ac_try="$ac_compile"
6114
case "(($ac_try" in
6115
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116
  *) ac_try_echo=$ac_try;;
6117
esac
6118 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6119
$as_echo "$ac_try_echo") >&5
6120 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
6121
  ac_status=$?
6122
  grep -v '^ *+' conftest.er1 >conftest.err
6123
  rm -f conftest.er1
6124
  cat conftest.err >&5
6125 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 19 jeremybenn
  (exit $ac_status); } && {
6127
         test -z "$ac_c_werror_flag" ||
6128
         test ! -s conftest.err
6129
       } && test -s conftest.$ac_objext; then
6130
  ac_cv_header_stdc=yes
6131
else
6132 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
6133 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
6134
 
6135
        ac_cv_header_stdc=no
6136
fi
6137
 
6138
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139
 
6140
if test $ac_cv_header_stdc = yes; then
6141
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6142
  cat >conftest.$ac_ext <<_ACEOF
6143
/* confdefs.h.  */
6144
_ACEOF
6145
cat confdefs.h >>conftest.$ac_ext
6146
cat >>conftest.$ac_ext <<_ACEOF
6147
/* end confdefs.h.  */
6148
#include 
6149
 
6150
_ACEOF
6151
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6152
  $EGREP "memchr" >/dev/null 2>&1; then
6153
  :
6154
else
6155
  ac_cv_header_stdc=no
6156
fi
6157
rm -f conftest*
6158
 
6159
fi
6160
 
6161
if test $ac_cv_header_stdc = yes; then
6162
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6163
  cat >conftest.$ac_ext <<_ACEOF
6164
/* confdefs.h.  */
6165
_ACEOF
6166
cat confdefs.h >>conftest.$ac_ext
6167
cat >>conftest.$ac_ext <<_ACEOF
6168
/* end confdefs.h.  */
6169
#include 
6170
 
6171
_ACEOF
6172
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6173
  $EGREP "free" >/dev/null 2>&1; then
6174
  :
6175
else
6176
  ac_cv_header_stdc=no
6177
fi
6178
rm -f conftest*
6179
 
6180
fi
6181
 
6182
if test $ac_cv_header_stdc = yes; then
6183
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6184
  if test "$cross_compiling" = yes; then
6185
  :
6186
else
6187
  cat >conftest.$ac_ext <<_ACEOF
6188
/* confdefs.h.  */
6189
_ACEOF
6190
cat confdefs.h >>conftest.$ac_ext
6191
cat >>conftest.$ac_ext <<_ACEOF
6192
/* end confdefs.h.  */
6193
#include 
6194
#include 
6195
#if ((' ' & 0x0FF) == 0x020)
6196
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6197
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6198
#else
6199
# define ISLOWER(c) \
6200
                   (('a' <= (c) && (c) <= 'i') \
6201
                     || ('j' <= (c) && (c) <= 'r') \
6202
                     || ('s' <= (c) && (c) <= 'z'))
6203
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6204
#endif
6205
 
6206
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6207
int
6208
main ()
6209
{
6210
  int i;
6211
  for (i = 0; i < 256; i++)
6212
    if (XOR (islower (i), ISLOWER (i))
6213
        || toupper (i) != TOUPPER (i))
6214
      return 2;
6215
  return 0;
6216
}
6217
_ACEOF
6218
rm -f conftest$ac_exeext
6219
if { (ac_try="$ac_link"
6220
case "(($ac_try" in
6221
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6222
  *) ac_try_echo=$ac_try;;
6223
esac
6224 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6225
$as_echo "$ac_try_echo") >&5
6226 19 jeremybenn
  (eval "$ac_link") 2>&5
6227
  ac_status=$?
6228 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6230
  { (case "(($ac_try" in
6231
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232
  *) ac_try_echo=$ac_try;;
6233
esac
6234 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6235
$as_echo "$ac_try_echo") >&5
6236 19 jeremybenn
  (eval "$ac_try") 2>&5
6237
  ac_status=$?
6238 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 19 jeremybenn
  (exit $ac_status); }; }; then
6240
  :
6241
else
6242 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
6243
$as_echo "$as_me: failed program was:" >&5
6244 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
6245
 
6246
( exit $ac_status )
6247
ac_cv_header_stdc=no
6248
fi
6249 82 jeremybenn
rm -rf conftest.dSYM
6250 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6251
fi
6252
 
6253
 
6254
fi
6255
fi
6256 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6257
$as_echo "$ac_cv_header_stdc" >&6; }
6258 19 jeremybenn
if test $ac_cv_header_stdc = yes; then
6259
 
6260
cat >>confdefs.h <<\_ACEOF
6261
#define STDC_HEADERS 1
6262
_ACEOF
6263
 
6264
fi
6265
 
6266
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6267
 
6268
 
6269
 
6270
 
6271
 
6272
 
6273
 
6274
 
6275
 
6276
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6277
                  inttypes.h stdint.h unistd.h
6278
do
6279 82 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6280
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6281
$as_echo_n "checking for $ac_header... " >&6; }
6282 19 jeremybenn
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6283 82 jeremybenn
  $as_echo_n "(cached) " >&6
6284 19 jeremybenn
else
6285
  cat >conftest.$ac_ext <<_ACEOF
6286
/* confdefs.h.  */
6287
_ACEOF
6288
cat confdefs.h >>conftest.$ac_ext
6289
cat >>conftest.$ac_ext <<_ACEOF
6290
/* end confdefs.h.  */
6291
$ac_includes_default
6292
 
6293
#include <$ac_header>
6294
_ACEOF
6295
rm -f conftest.$ac_objext
6296
if { (ac_try="$ac_compile"
6297
case "(($ac_try" in
6298
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299
  *) ac_try_echo=$ac_try;;
6300
esac
6301 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6302
$as_echo "$ac_try_echo") >&5
6303 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
6304
  ac_status=$?
6305
  grep -v '^ *+' conftest.er1 >conftest.err
6306
  rm -f conftest.er1
6307
  cat conftest.err >&5
6308 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 19 jeremybenn
  (exit $ac_status); } && {
6310
         test -z "$ac_c_werror_flag" ||
6311
         test ! -s conftest.err
6312
       } && test -s conftest.$ac_objext; then
6313
  eval "$as_ac_Header=yes"
6314
else
6315 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
6316 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
6317
 
6318
        eval "$as_ac_Header=no"
6319
fi
6320
 
6321
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322
fi
6323 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
6324
                 $as_echo "$as_val"'`
6325
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6326
$as_echo "$ac_res" >&6; }
6327
as_val=`eval 'as_val=${'$as_ac_Header'}
6328
                 $as_echo "$as_val"'`
6329
   if test "x$as_val" = x""yes; then
6330 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
6331 82 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6332 19 jeremybenn
_ACEOF
6333
 
6334
fi
6335
 
6336
done
6337
 
6338
 
6339
 
6340
for ac_header in dlfcn.h
6341
do
6342 82 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6343
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6344
$as_echo_n "checking for $ac_header... " >&6; }
6345 19 jeremybenn
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6346 82 jeremybenn
  $as_echo_n "(cached) " >&6
6347 19 jeremybenn
else
6348 82 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
6349 19 jeremybenn
/* confdefs.h.  */
6350
_ACEOF
6351
cat confdefs.h >>conftest.$ac_ext
6352
cat >>conftest.$ac_ext <<_ACEOF
6353
/* end confdefs.h.  */
6354
$ac_includes_default
6355 82 jeremybenn
 
6356 19 jeremybenn
#include <$ac_header>
6357
_ACEOF
6358
rm -f conftest.$ac_objext
6359
if { (ac_try="$ac_compile"
6360
case "(($ac_try" in
6361
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362
  *) ac_try_echo=$ac_try;;
6363
esac
6364 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6365
$as_echo "$ac_try_echo") >&5
6366 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
6367
  ac_status=$?
6368
  grep -v '^ *+' conftest.er1 >conftest.err
6369
  rm -f conftest.er1
6370
  cat conftest.err >&5
6371 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 19 jeremybenn
  (exit $ac_status); } && {
6373
         test -z "$ac_c_werror_flag" ||
6374
         test ! -s conftest.err
6375
       } && test -s conftest.$ac_objext; then
6376 82 jeremybenn
  eval "$as_ac_Header=yes"
6377 19 jeremybenn
else
6378 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
6379 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
6380
 
6381 82 jeremybenn
        eval "$as_ac_Header=no"
6382 19 jeremybenn
fi
6383
 
6384
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385
fi
6386 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
6387
                 $as_echo "$as_val"'`
6388
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6389
$as_echo "$ac_res" >&6; }
6390
as_val=`eval 'as_val=${'$as_ac_Header'}
6391
                 $as_echo "$as_val"'`
6392
   if test "x$as_val" = x""yes; then
6393 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
6394 82 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6395 19 jeremybenn
_ACEOF
6396
 
6397
fi
6398
 
6399
done
6400
 
6401
 
6402
 
6403 82 jeremybenn
# Set options
6404 19 jeremybenn
 
6405
 
6406
 
6407 82 jeremybenn
        enable_dlopen=no
6408 19 jeremybenn
 
6409
 
6410 82 jeremybenn
  enable_win32_dll=no
6411 19 jeremybenn
 
6412
 
6413 82 jeremybenn
            # Check whether --enable-shared was given.
6414
if test "${enable_shared+set}" = set; then
6415
  enableval=$enable_shared; p=${PACKAGE-default}
6416
    case $enableval in
6417
    yes) enable_shared=yes ;;
6418
    no) enable_shared=no ;;
6419
    *)
6420
      enable_shared=no
6421
      # Look at the argument we got.  We use all the common list separators.
6422
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6423
      for pkg in $enableval; do
6424
        IFS="$lt_save_ifs"
6425
        if test "X$pkg" = "X$p"; then
6426
          enable_shared=yes
6427
        fi
6428
      done
6429
      IFS="$lt_save_ifs"
6430
      ;;
6431
    esac
6432 19 jeremybenn
else
6433 82 jeremybenn
  enable_shared=yes
6434 19 jeremybenn
fi
6435
 
6436
 
6437
 
6438
 
6439
 
6440
 
6441
 
6442
 
6443
 
6444 82 jeremybenn
  # Check whether --enable-static was given.
6445
if test "${enable_static+set}" = set; then
6446
  enableval=$enable_static; p=${PACKAGE-default}
6447
    case $enableval in
6448
    yes) enable_static=yes ;;
6449
    no) enable_static=no ;;
6450
    *)
6451
     enable_static=no
6452
      # Look at the argument we got.  We use all the common list separators.
6453
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6454
      for pkg in $enableval; do
6455
        IFS="$lt_save_ifs"
6456
        if test "X$pkg" = "X$p"; then
6457
          enable_static=yes
6458
        fi
6459
      done
6460
      IFS="$lt_save_ifs"
6461
      ;;
6462
    esac
6463 19 jeremybenn
else
6464 82 jeremybenn
  enable_static=yes
6465 19 jeremybenn
fi
6466
 
6467
 
6468
 
6469
 
6470
 
6471
 
6472
 
6473
 
6474
 
6475
 
6476 82 jeremybenn
# Check whether --with-pic was given.
6477
if test "${with_pic+set}" = set; then
6478
  withval=$with_pic; pic_mode="$withval"
6479 19 jeremybenn
else
6480 82 jeremybenn
  pic_mode=default
6481 19 jeremybenn
fi
6482
 
6483
 
6484 82 jeremybenn
test -z "$pic_mode" && pic_mode=default
6485 19 jeremybenn
 
6486
 
6487
 
6488
 
6489
 
6490
 
6491
 
6492 82 jeremybenn
  # Check whether --enable-fast-install was given.
6493
if test "${enable_fast_install+set}" = set; then
6494
  enableval=$enable_fast_install; p=${PACKAGE-default}
6495
    case $enableval in
6496
    yes) enable_fast_install=yes ;;
6497
    no) enable_fast_install=no ;;
6498
    *)
6499
      enable_fast_install=no
6500
      # Look at the argument we got.  We use all the common list separators.
6501
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6502
      for pkg in $enableval; do
6503
        IFS="$lt_save_ifs"
6504
        if test "X$pkg" = "X$p"; then
6505
          enable_fast_install=yes
6506
        fi
6507
      done
6508
      IFS="$lt_save_ifs"
6509
      ;;
6510
    esac
6511 19 jeremybenn
else
6512 82 jeremybenn
  enable_fast_install=yes
6513 19 jeremybenn
fi
6514
 
6515
 
6516
 
6517
 
6518
 
6519
 
6520
 
6521
 
6522
 
6523
 
6524
 
6525 82 jeremybenn
# This can be used to rebuild libtool when needed
6526
LIBTOOL_DEPS="$ltmain"
6527 19 jeremybenn
 
6528 82 jeremybenn
# Always use our own libtool.
6529
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6530 19 jeremybenn
 
6531
 
6532
 
6533
 
6534
 
6535
 
6536
 
6537
 
6538
 
6539
 
6540
 
6541
 
6542
 
6543
 
6544
 
6545
 
6546
 
6547
 
6548
 
6549
 
6550
 
6551
 
6552
 
6553
 
6554
 
6555 82 jeremybenn
test -z "$LN_S" && LN_S="ln -s"
6556 19 jeremybenn
 
6557
 
6558
 
6559
 
6560
 
6561
 
6562
 
6563
 
6564
 
6565
 
6566
 
6567
 
6568
 
6569
 
6570 82 jeremybenn
if test -n "${ZSH_VERSION+set}" ; then
6571
   setopt NO_GLOB_SUBST
6572 19 jeremybenn
fi
6573
 
6574 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6575
$as_echo_n "checking for objdir... " >&6; }
6576 19 jeremybenn
if test "${lt_cv_objdir+set}" = set; then
6577 82 jeremybenn
  $as_echo_n "(cached) " >&6
6578 19 jeremybenn
else
6579
  rm -f .libs 2>/dev/null
6580
mkdir .libs 2>/dev/null
6581
if test -d .libs; then
6582
  lt_cv_objdir=.libs
6583
else
6584
  # MS-DOS does not allow filenames that begin with a dot.
6585
  lt_cv_objdir=_libs
6586
fi
6587
rmdir .libs 2>/dev/null
6588
fi
6589 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6590
$as_echo "$lt_cv_objdir" >&6; }
6591 19 jeremybenn
objdir=$lt_cv_objdir
6592
 
6593
 
6594
 
6595
 
6596
 
6597 82 jeremybenn
cat >>confdefs.h <<_ACEOF
6598
#define LT_OBJDIR "$lt_cv_objdir/"
6599
_ACEOF
6600
 
6601
 
6602
 
6603
 
6604
 
6605
 
6606
 
6607
 
6608
 
6609
 
6610
 
6611
 
6612
 
6613
 
6614
 
6615
 
6616
 
6617 19 jeremybenn
case $host_os in
6618
aix3*)
6619
  # AIX sometimes has problems with the GCC collect2 program.  For some
6620
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6621
  # vanish in a puff of smoke.
6622
  if test "X${COLLECT_NAMES+set}" != Xset; then
6623
    COLLECT_NAMES=
6624
    export COLLECT_NAMES
6625
  fi
6626
  ;;
6627
esac
6628
 
6629
# Sed substitution that helps us do robust quoting.  It backslashifies
6630
# metacharacters that are still active within double-quoted strings.
6631 82 jeremybenn
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6632 19 jeremybenn
 
6633
# Same as above, but do not quote variable references.
6634 82 jeremybenn
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6635 19 jeremybenn
 
6636
# Sed substitution to delay expansion of an escaped shell variable in a
6637
# double_quote_subst'ed string.
6638
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6639
 
6640 82 jeremybenn
# Sed substitution to delay expansion of an escaped single quote.
6641
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6642
 
6643 19 jeremybenn
# Sed substitution to avoid accidental globbing in evaled expressions
6644
no_glob_subst='s/\*/\\\*/g'
6645
 
6646
# Global variables:
6647 82 jeremybenn
ofile=libtool
6648 19 jeremybenn
can_build_shared=yes
6649
 
6650
# All known linkers require a `.a' archive for static linking (except MSVC,
6651
# which needs '.lib').
6652
libext=a
6653 82 jeremybenn
 
6654 19 jeremybenn
with_gnu_ld="$lt_cv_prog_gnu_ld"
6655
 
6656
old_CC="$CC"
6657
old_CFLAGS="$CFLAGS"
6658
 
6659
# Set sane defaults for various variables
6660
test -z "$CC" && CC=cc
6661
test -z "$LTCC" && LTCC=$CC
6662
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6663
test -z "$LD" && LD=ld
6664
test -z "$ac_objext" && ac_objext=o
6665
 
6666
for cc_temp in $compiler""; do
6667
  case $cc_temp in
6668
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6669
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6670
    \-*) ;;
6671
    *) break;;
6672
  esac
6673
done
6674 82 jeremybenn
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6675 19 jeremybenn
 
6676
 
6677
# Only perform the check for file, if the check method requires it
6678 82 jeremybenn
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6679 19 jeremybenn
case $deplibs_check_method in
6680
file_magic*)
6681
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6682 82 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6683
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6684 19 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6685 82 jeremybenn
  $as_echo_n "(cached) " >&6
6686 19 jeremybenn
else
6687
  case $MAGIC_CMD in
6688
[\\/*] |  ?:[\\/]*)
6689
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6690
  ;;
6691
*)
6692
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6693
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6694
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6695
  for ac_dir in $ac_dummy; do
6696
    IFS="$lt_save_ifs"
6697
    test -z "$ac_dir" && ac_dir=.
6698
    if test -f $ac_dir/${ac_tool_prefix}file; then
6699
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6700
      if test -n "$file_magic_test_file"; then
6701
        case $deplibs_check_method in
6702
        "file_magic "*)
6703
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6704
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6705
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6706
            $EGREP "$file_magic_regex" > /dev/null; then
6707
            :
6708
          else
6709 82 jeremybenn
            cat <<_LT_EOF 1>&2
6710 19 jeremybenn
 
6711
*** Warning: the command libtool uses to detect shared libraries,
6712
*** $file_magic_cmd, produces output that libtool cannot recognize.
6713
*** The result is that libtool may fail to recognize shared libraries
6714
*** as such.  This will affect the creation of libtool libraries that
6715
*** depend on shared libraries, but programs linked with such libtool
6716
*** libraries will work regardless of this problem.  Nevertheless, you
6717
*** may want to report the problem to your system manager and/or to
6718
*** bug-libtool@gnu.org
6719
 
6720 82 jeremybenn
_LT_EOF
6721 19 jeremybenn
          fi ;;
6722
        esac
6723
      fi
6724
      break
6725
    fi
6726
  done
6727
  IFS="$lt_save_ifs"
6728
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6729
  ;;
6730
esac
6731
fi
6732
 
6733
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6734
if test -n "$MAGIC_CMD"; then
6735 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6736
$as_echo "$MAGIC_CMD" >&6; }
6737 19 jeremybenn
else
6738 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6739
$as_echo "no" >&6; }
6740 19 jeremybenn
fi
6741
 
6742 82 jeremybenn
 
6743
 
6744
 
6745
 
6746 19 jeremybenn
if test -z "$lt_cv_path_MAGIC_CMD"; then
6747
  if test -n "$ac_tool_prefix"; then
6748 82 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for file" >&5
6749
$as_echo_n "checking for file... " >&6; }
6750 19 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6751 82 jeremybenn
  $as_echo_n "(cached) " >&6
6752 19 jeremybenn
else
6753
  case $MAGIC_CMD in
6754
[\\/*] |  ?:[\\/]*)
6755
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6756
  ;;
6757
*)
6758
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6759
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6760
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6761
  for ac_dir in $ac_dummy; do
6762
    IFS="$lt_save_ifs"
6763
    test -z "$ac_dir" && ac_dir=.
6764
    if test -f $ac_dir/file; then
6765
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6766
      if test -n "$file_magic_test_file"; then
6767
        case $deplibs_check_method in
6768
        "file_magic "*)
6769
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6770
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6771
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6772
            $EGREP "$file_magic_regex" > /dev/null; then
6773
            :
6774
          else
6775 82 jeremybenn
            cat <<_LT_EOF 1>&2
6776 19 jeremybenn
 
6777
*** Warning: the command libtool uses to detect shared libraries,
6778
*** $file_magic_cmd, produces output that libtool cannot recognize.
6779
*** The result is that libtool may fail to recognize shared libraries
6780
*** as such.  This will affect the creation of libtool libraries that
6781
*** depend on shared libraries, but programs linked with such libtool
6782
*** libraries will work regardless of this problem.  Nevertheless, you
6783
*** may want to report the problem to your system manager and/or to
6784
*** bug-libtool@gnu.org
6785
 
6786 82 jeremybenn
_LT_EOF
6787 19 jeremybenn
          fi ;;
6788
        esac
6789
      fi
6790
      break
6791
    fi
6792
  done
6793
  IFS="$lt_save_ifs"
6794
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6795
  ;;
6796
esac
6797
fi
6798
 
6799
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6800
if test -n "$MAGIC_CMD"; then
6801 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6802
$as_echo "$MAGIC_CMD" >&6; }
6803 19 jeremybenn
else
6804 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
6805
$as_echo "no" >&6; }
6806 19 jeremybenn
fi
6807
 
6808 82 jeremybenn
 
6809 19 jeremybenn
  else
6810
    MAGIC_CMD=:
6811
  fi
6812
fi
6813
 
6814
  fi
6815
  ;;
6816
esac
6817
 
6818 82 jeremybenn
# Use C for the default configuration in the libtool script
6819 19 jeremybenn
 
6820
lt_save_CC="$CC"
6821
ac_ext=c
6822
ac_cpp='$CPP $CPPFLAGS'
6823
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6824
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6825
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6826
 
6827
 
6828
# Source file extension for C test sources.
6829
ac_ext=c
6830
 
6831
# Object file extension for compiled C test sources.
6832
objext=o
6833
objext=$objext
6834
 
6835
# Code to be used in simple compile tests
6836
lt_simple_compile_test_code="int some_variable = 0;"
6837
 
6838
# Code to be used in simple link tests
6839
lt_simple_link_test_code='int main(){return(0);}'
6840
 
6841
 
6842 82 jeremybenn
 
6843
 
6844
 
6845
 
6846
 
6847 19 jeremybenn
# If no C compiler was specified, use CC.
6848
LTCC=${LTCC-"$CC"}
6849
 
6850
# If no C compiler flags were specified, use CFLAGS.
6851
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6852
 
6853
# Allow CC to be a program name with arguments.
6854
compiler=$CC
6855
 
6856 82 jeremybenn
# Save the default compiler, since it gets overwritten when the other
6857
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6858
compiler_DEFAULT=$CC
6859 19 jeremybenn
 
6860
# save warnings/boilerplate of simple test code
6861
ac_outfile=conftest.$ac_objext
6862
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6863
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6864
_lt_compiler_boilerplate=`cat conftest.err`
6865 82 jeremybenn
$RM conftest*
6866 19 jeremybenn
 
6867
ac_outfile=conftest.$ac_objext
6868
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6869
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6870
_lt_linker_boilerplate=`cat conftest.err`
6871 82 jeremybenn
$RM -r conftest*
6872 19 jeremybenn
 
6873
 
6874 82 jeremybenn
## CAVEAT EMPTOR:
6875
## There is no encapsulation within the following macros, do not change
6876
## the running order or otherwise move them around unless you know exactly
6877
## what you are doing...
6878
if test -n "$compiler"; then
6879 19 jeremybenn
 
6880
lt_prog_compiler_no_builtin_flag=
6881
 
6882
if test "$GCC" = yes; then
6883
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6884
 
6885 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6886
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6887 19 jeremybenn
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6888 82 jeremybenn
  $as_echo_n "(cached) " >&6
6889 19 jeremybenn
else
6890
  lt_cv_prog_compiler_rtti_exceptions=no
6891 82 jeremybenn
   ac_outfile=conftest.$ac_objext
6892 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6893
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6894
   # Insert the option either (1) after the last *FLAGS variable, or
6895
   # (2) before a word containing "conftest.", or (3) at the end.
6896
   # Note that $ac_compile itself does not contain backslashes and begins
6897
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6898
   # The option is referenced via a variable to avoid confusing sed.
6899
   lt_compile=`echo "$ac_compile" | $SED \
6900
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6901
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6902
   -e 's:$: $lt_compiler_flag:'`
6903 82 jeremybenn
   (eval echo "\"\$as_me:6903: $lt_compile\"" >&5)
6904 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
6905
   ac_status=$?
6906
   cat conftest.err >&5
6907 82 jeremybenn
   echo "$as_me:6907: \$? = $ac_status" >&5
6908 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
6909
     # The compiler can only warn and ignore the option if not recognized
6910
     # So say no if there are warnings other than the usual output.
6911 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6912 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6913
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6914
       lt_cv_prog_compiler_rtti_exceptions=yes
6915
     fi
6916
   fi
6917 82 jeremybenn
   $RM conftest*
6918 19 jeremybenn
 
6919
fi
6920 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6921
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6922 19 jeremybenn
 
6923
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6924
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6925
else
6926
    :
6927
fi
6928
 
6929
fi
6930
 
6931 82 jeremybenn
 
6932
 
6933
 
6934
 
6935
 
6936
  lt_prog_compiler_wl=
6937 19 jeremybenn
lt_prog_compiler_pic=
6938
lt_prog_compiler_static=
6939
 
6940 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6941
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6942 19 jeremybenn
 
6943
  if test "$GCC" = yes; then
6944
    lt_prog_compiler_wl='-Wl,'
6945
    lt_prog_compiler_static='-static'
6946
 
6947
    case $host_os in
6948
      aix*)
6949
      # All AIX code is PIC.
6950
      if test "$host_cpu" = ia64; then
6951
        # AIX 5 now supports IA64 processor
6952
        lt_prog_compiler_static='-Bstatic'
6953
      fi
6954
      ;;
6955
 
6956
    amigaos*)
6957 82 jeremybenn
      case $host_cpu in
6958
      powerpc)
6959
            # see comment about AmigaOS4 .so support
6960
            lt_prog_compiler_pic='-fPIC'
6961
        ;;
6962
      m68k)
6963
            # FIXME: we need at least 68020 code to build shared libraries, but
6964
            # adding the `-m68020' flag to GCC prevents building anything better,
6965
            # like `-m68040'.
6966
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6967
        ;;
6968
      esac
6969 19 jeremybenn
      ;;
6970
 
6971
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6972
      # PIC is the default for these OSes.
6973
      ;;
6974
 
6975 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6976 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
6977
      # built for inclusion in a dll (and should export symbols for example).
6978
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6979
      # (--disable-auto-import) libraries
6980
      lt_prog_compiler_pic='-DDLL_EXPORT'
6981
      ;;
6982
 
6983
    darwin* | rhapsody*)
6984
      # PIC is the default on this platform
6985
      # Common symbols not allowed in MH_DYLIB files
6986
      lt_prog_compiler_pic='-fno-common'
6987
      ;;
6988
 
6989 82 jeremybenn
    hpux*)
6990
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6991
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
6992
      # sets the default TLS model and affects inlining.
6993
      case $host_cpu in
6994
      hppa*64*)
6995
        # +Z the default
6996
        ;;
6997
      *)
6998
        lt_prog_compiler_pic='-fPIC'
6999
        ;;
7000
      esac
7001
      ;;
7002
 
7003 19 jeremybenn
    interix[3-9]*)
7004
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7005
      # Instead, we relocate shared libraries at runtime.
7006
      ;;
7007
 
7008
    msdosdjgpp*)
7009
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7010
      # on systems that don't support them.
7011
      lt_prog_compiler_can_build_shared=no
7012
      enable_shared=no
7013
      ;;
7014
 
7015 82 jeremybenn
    *nto* | *qnx*)
7016
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7017
      # it will coredump.
7018
      lt_prog_compiler_pic='-fPIC -shared'
7019
      ;;
7020
 
7021 19 jeremybenn
    sysv4*MP*)
7022
      if test -d /usr/nec; then
7023
        lt_prog_compiler_pic=-Kconform_pic
7024
      fi
7025
      ;;
7026
 
7027
    *)
7028
      lt_prog_compiler_pic='-fPIC'
7029
      ;;
7030
    esac
7031
  else
7032
    # PORTME Check for flag to pass linker flags through the system compiler.
7033
    case $host_os in
7034
    aix*)
7035
      lt_prog_compiler_wl='-Wl,'
7036
      if test "$host_cpu" = ia64; then
7037
        # AIX 5 now supports IA64 processor
7038
        lt_prog_compiler_static='-Bstatic'
7039
      else
7040
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7041
      fi
7042
      ;;
7043
 
7044 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7045 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7046
      # built for inclusion in a dll (and should export symbols for example).
7047
      lt_prog_compiler_pic='-DDLL_EXPORT'
7048
      ;;
7049
 
7050
    hpux9* | hpux10* | hpux11*)
7051
      lt_prog_compiler_wl='-Wl,'
7052
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7053
      # not for PA HP-UX.
7054
      case $host_cpu in
7055
      hppa*64*|ia64*)
7056
        # +Z the default
7057
        ;;
7058
      *)
7059
        lt_prog_compiler_pic='+Z'
7060
        ;;
7061
      esac
7062
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7063
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7064
      ;;
7065
 
7066
    irix5* | irix6* | nonstopux*)
7067
      lt_prog_compiler_wl='-Wl,'
7068
      # PIC (with -KPIC) is the default.
7069
      lt_prog_compiler_static='-non_shared'
7070
      ;;
7071
 
7072
    linux* | k*bsd*-gnu)
7073
      case $cc_basename in
7074 82 jeremybenn
      # old Intel for x86_64 which still supported -KPIC.
7075
      ecc*)
7076 19 jeremybenn
        lt_prog_compiler_wl='-Wl,'
7077
        lt_prog_compiler_pic='-KPIC'
7078
        lt_prog_compiler_static='-static'
7079
        ;;
7080 82 jeremybenn
      # icc used to be incompatible with GCC.
7081
      # ICC 10 doesn't accept -KPIC any more.
7082
      icc* | ifort*)
7083
        lt_prog_compiler_wl='-Wl,'
7084
        lt_prog_compiler_pic='-fPIC'
7085
        lt_prog_compiler_static='-static'
7086
        ;;
7087
      # Lahey Fortran 8.1.
7088
      lf95*)
7089
        lt_prog_compiler_wl='-Wl,'
7090
        lt_prog_compiler_pic='--shared'
7091
        lt_prog_compiler_static='--static'
7092
        ;;
7093 19 jeremybenn
      pgcc* | pgf77* | pgf90* | pgf95*)
7094
        # Portland Group compilers (*not* the Pentium gcc compiler,
7095
        # which looks to be a dead project)
7096
        lt_prog_compiler_wl='-Wl,'
7097
        lt_prog_compiler_pic='-fpic'
7098
        lt_prog_compiler_static='-Bstatic'
7099
        ;;
7100
      ccc*)
7101
        lt_prog_compiler_wl='-Wl,'
7102
        # All Alpha code is PIC.
7103
        lt_prog_compiler_static='-non_shared'
7104
        ;;
7105 82 jeremybenn
      xl*)
7106
        # IBM XL C 8.0/Fortran 10.1 on PPC
7107
        lt_prog_compiler_wl='-Wl,'
7108
        lt_prog_compiler_pic='-qpic'
7109
        lt_prog_compiler_static='-qstaticlink'
7110
        ;;
7111 19 jeremybenn
      *)
7112 82 jeremybenn
        case `$CC -V 2>&1 | sed 5q` in
7113 19 jeremybenn
        *Sun\ C*)
7114
          # Sun C 5.9
7115
          lt_prog_compiler_pic='-KPIC'
7116
          lt_prog_compiler_static='-Bstatic'
7117
          lt_prog_compiler_wl='-Wl,'
7118
          ;;
7119
        *Sun\ F*)
7120
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7121
          lt_prog_compiler_pic='-KPIC'
7122
          lt_prog_compiler_static='-Bstatic'
7123
          lt_prog_compiler_wl=''
7124
          ;;
7125
        esac
7126
        ;;
7127
      esac
7128
      ;;
7129
 
7130 82 jeremybenn
    newsos6)
7131
      lt_prog_compiler_pic='-KPIC'
7132
      lt_prog_compiler_static='-Bstatic'
7133
      ;;
7134
 
7135
    *nto* | *qnx*)
7136
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7137
      # it will coredump.
7138
      lt_prog_compiler_pic='-fPIC -shared'
7139
      ;;
7140
 
7141 19 jeremybenn
    osf3* | osf4* | osf5*)
7142
      lt_prog_compiler_wl='-Wl,'
7143
      # All OSF/1 code is PIC.
7144
      lt_prog_compiler_static='-non_shared'
7145
      ;;
7146
 
7147
    rdos*)
7148
      lt_prog_compiler_static='-non_shared'
7149
      ;;
7150
 
7151
    solaris*)
7152
      lt_prog_compiler_pic='-KPIC'
7153
      lt_prog_compiler_static='-Bstatic'
7154
      case $cc_basename in
7155
      f77* | f90* | f95*)
7156
        lt_prog_compiler_wl='-Qoption ld ';;
7157
      *)
7158
        lt_prog_compiler_wl='-Wl,';;
7159
      esac
7160
      ;;
7161
 
7162
    sunos4*)
7163
      lt_prog_compiler_wl='-Qoption ld '
7164
      lt_prog_compiler_pic='-PIC'
7165
      lt_prog_compiler_static='-Bstatic'
7166
      ;;
7167
 
7168
    sysv4 | sysv4.2uw2* | sysv4.3*)
7169
      lt_prog_compiler_wl='-Wl,'
7170
      lt_prog_compiler_pic='-KPIC'
7171
      lt_prog_compiler_static='-Bstatic'
7172
      ;;
7173
 
7174
    sysv4*MP*)
7175
      if test -d /usr/nec ;then
7176
        lt_prog_compiler_pic='-Kconform_pic'
7177
        lt_prog_compiler_static='-Bstatic'
7178
      fi
7179
      ;;
7180
 
7181
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7182
      lt_prog_compiler_wl='-Wl,'
7183
      lt_prog_compiler_pic='-KPIC'
7184
      lt_prog_compiler_static='-Bstatic'
7185
      ;;
7186
 
7187
    unicos*)
7188
      lt_prog_compiler_wl='-Wl,'
7189
      lt_prog_compiler_can_build_shared=no
7190
      ;;
7191
 
7192
    uts4*)
7193
      lt_prog_compiler_pic='-pic'
7194
      lt_prog_compiler_static='-Bstatic'
7195
      ;;
7196
 
7197
    *)
7198
      lt_prog_compiler_can_build_shared=no
7199
      ;;
7200
    esac
7201
  fi
7202
 
7203 82 jeremybenn
case $host_os in
7204
  # For platforms which do not support PIC, -DPIC is meaningless:
7205
  *djgpp*)
7206
    lt_prog_compiler_pic=
7207
    ;;
7208
  *)
7209
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7210
    ;;
7211
esac
7212
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7213
$as_echo "$lt_prog_compiler_pic" >&6; }
7214 19 jeremybenn
 
7215 82 jeremybenn
 
7216
 
7217
 
7218
 
7219
 
7220 19 jeremybenn
#
7221
# Check to make sure the PIC flag actually works.
7222
#
7223
if test -n "$lt_prog_compiler_pic"; then
7224 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7225
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7226
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7227
  $as_echo_n "(cached) " >&6
7228 19 jeremybenn
else
7229 82 jeremybenn
  lt_cv_prog_compiler_pic_works=no
7230
   ac_outfile=conftest.$ac_objext
7231 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7232
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7233
   # Insert the option either (1) after the last *FLAGS variable, or
7234
   # (2) before a word containing "conftest.", or (3) at the end.
7235
   # Note that $ac_compile itself does not contain backslashes and begins
7236
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7237
   # The option is referenced via a variable to avoid confusing sed.
7238
   lt_compile=`echo "$ac_compile" | $SED \
7239
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7240
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7241
   -e 's:$: $lt_compiler_flag:'`
7242 82 jeremybenn
   (eval echo "\"\$as_me:7242: $lt_compile\"" >&5)
7243 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7244
   ac_status=$?
7245
   cat conftest.err >&5
7246 82 jeremybenn
   echo "$as_me:7246: \$? = $ac_status" >&5
7247 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7248
     # The compiler can only warn and ignore the option if not recognized
7249
     # So say no if there are warnings other than the usual output.
7250 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7251 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7252
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7253 82 jeremybenn
       lt_cv_prog_compiler_pic_works=yes
7254 19 jeremybenn
     fi
7255
   fi
7256 82 jeremybenn
   $RM conftest*
7257 19 jeremybenn
 
7258
fi
7259 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7260
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7261 19 jeremybenn
 
7262 82 jeremybenn
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7263 19 jeremybenn
    case $lt_prog_compiler_pic in
7264
     "" | " "*) ;;
7265
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7266
     esac
7267
else
7268
    lt_prog_compiler_pic=
7269
     lt_prog_compiler_can_build_shared=no
7270
fi
7271
 
7272
fi
7273
 
7274 82 jeremybenn
 
7275
 
7276
 
7277
 
7278
 
7279 19 jeremybenn
#
7280
# Check to make sure the static flag actually works.
7281
#
7282
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7283 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7284
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7285
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7286
  $as_echo_n "(cached) " >&6
7287 19 jeremybenn
else
7288 82 jeremybenn
  lt_cv_prog_compiler_static_works=no
7289 19 jeremybenn
   save_LDFLAGS="$LDFLAGS"
7290
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7291
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7292
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7293
     # The linker can only warn and ignore the option if not recognized
7294
     # So say no if there are warnings
7295
     if test -s conftest.err; then
7296
       # Append any errors to the config.log.
7297
       cat conftest.err 1>&5
7298 82 jeremybenn
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7299 19 jeremybenn
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7300
       if diff conftest.exp conftest.er2 >/dev/null; then
7301 82 jeremybenn
         lt_cv_prog_compiler_static_works=yes
7302 19 jeremybenn
       fi
7303
     else
7304 82 jeremybenn
       lt_cv_prog_compiler_static_works=yes
7305 19 jeremybenn
     fi
7306
   fi
7307 82 jeremybenn
   $RM -r conftest*
7308 19 jeremybenn
   LDFLAGS="$save_LDFLAGS"
7309
 
7310
fi
7311 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7312
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7313 19 jeremybenn
 
7314 82 jeremybenn
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7315 19 jeremybenn
    :
7316
else
7317
    lt_prog_compiler_static=
7318
fi
7319
 
7320
 
7321 82 jeremybenn
 
7322
 
7323
 
7324
 
7325
 
7326
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7327
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7328 19 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7329 82 jeremybenn
  $as_echo_n "(cached) " >&6
7330 19 jeremybenn
else
7331
  lt_cv_prog_compiler_c_o=no
7332 82 jeremybenn
   $RM -r conftest 2>/dev/null
7333 19 jeremybenn
   mkdir conftest
7334
   cd conftest
7335
   mkdir out
7336
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7337
 
7338
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7339
   # Insert the option either (1) after the last *FLAGS variable, or
7340
   # (2) before a word containing "conftest.", or (3) at the end.
7341
   # Note that $ac_compile itself does not contain backslashes and begins
7342
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7343
   lt_compile=`echo "$ac_compile" | $SED \
7344
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7345
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7346
   -e 's:$: $lt_compiler_flag:'`
7347 82 jeremybenn
   (eval echo "\"\$as_me:7347: $lt_compile\"" >&5)
7348 19 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7349
   ac_status=$?
7350
   cat out/conftest.err >&5
7351 82 jeremybenn
   echo "$as_me:7351: \$? = $ac_status" >&5
7352 19 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7353
   then
7354
     # The compiler can only warn and ignore the option if not recognized
7355
     # So say no if there are warnings
7356 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7357 19 jeremybenn
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7358
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7359
       lt_cv_prog_compiler_c_o=yes
7360
     fi
7361
   fi
7362
   chmod u+w . 2>&5
7363 82 jeremybenn
   $RM conftest*
7364 19 jeremybenn
   # SGI C++ compiler will create directory out/ii_files/ for
7365
   # template instantiation
7366 82 jeremybenn
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7367
   $RM out/* && rmdir out
7368 19 jeremybenn
   cd ..
7369 82 jeremybenn
   $RM -r conftest
7370
   $RM conftest*
7371 19 jeremybenn
 
7372
fi
7373 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7374
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7375 19 jeremybenn
 
7376
 
7377 82 jeremybenn
 
7378
 
7379
 
7380
 
7381
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7382
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7383
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7384
  $as_echo_n "(cached) " >&6
7385
else
7386
  lt_cv_prog_compiler_c_o=no
7387
   $RM -r conftest 2>/dev/null
7388
   mkdir conftest
7389
   cd conftest
7390
   mkdir out
7391
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7392
 
7393
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7394
   # Insert the option either (1) after the last *FLAGS variable, or
7395
   # (2) before a word containing "conftest.", or (3) at the end.
7396
   # Note that $ac_compile itself does not contain backslashes and begins
7397
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7398
   lt_compile=`echo "$ac_compile" | $SED \
7399
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7400
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7401
   -e 's:$: $lt_compiler_flag:'`
7402
   (eval echo "\"\$as_me:7402: $lt_compile\"" >&5)
7403
   (eval "$lt_compile" 2>out/conftest.err)
7404
   ac_status=$?
7405
   cat out/conftest.err >&5
7406
   echo "$as_me:7406: \$? = $ac_status" >&5
7407
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7408
   then
7409
     # The compiler can only warn and ignore the option if not recognized
7410
     # So say no if there are warnings
7411
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7412
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7413
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7414
       lt_cv_prog_compiler_c_o=yes
7415
     fi
7416
   fi
7417
   chmod u+w . 2>&5
7418
   $RM conftest*
7419
   # SGI C++ compiler will create directory out/ii_files/ for
7420
   # template instantiation
7421
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7422
   $RM out/* && rmdir out
7423
   cd ..
7424
   $RM -r conftest
7425
   $RM conftest*
7426
 
7427
fi
7428
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7429
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7430
 
7431
 
7432
 
7433
 
7434 19 jeremybenn
hard_links="nottested"
7435
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7436
  # do not overwrite the value of need_locks provided by the user
7437 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7438
$as_echo_n "checking if we can lock with hard links... " >&6; }
7439 19 jeremybenn
  hard_links=yes
7440 82 jeremybenn
  $RM conftest*
7441 19 jeremybenn
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7442
  touch conftest.a
7443
  ln conftest.a conftest.b 2>&5 || hard_links=no
7444
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7445 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7446
$as_echo "$hard_links" >&6; }
7447 19 jeremybenn
  if test "$hard_links" = no; then
7448 82 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7449
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7450 19 jeremybenn
    need_locks=warn
7451
  fi
7452
else
7453
  need_locks=no
7454
fi
7455
 
7456
 
7457 82 jeremybenn
 
7458
 
7459
 
7460
 
7461
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7462
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7463
 
7464 19 jeremybenn
  runpath_var=
7465
  allow_undefined_flag=
7466 82 jeremybenn
  always_export_symbols=no
7467 19 jeremybenn
  archive_cmds=
7468
  archive_expsym_cmds=
7469 82 jeremybenn
  compiler_needs_object=no
7470
  enable_shared_with_static_runtimes=no
7471 19 jeremybenn
  export_dynamic_flag_spec=
7472 82 jeremybenn
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7473
  hardcode_automatic=no
7474
  hardcode_direct=no
7475
  hardcode_direct_absolute=no
7476 19 jeremybenn
  hardcode_libdir_flag_spec=
7477
  hardcode_libdir_flag_spec_ld=
7478
  hardcode_libdir_separator=
7479
  hardcode_minus_L=no
7480
  hardcode_shlibpath_var=unsupported
7481 82 jeremybenn
  inherit_rpath=no
7482 19 jeremybenn
  link_all_deplibs=unknown
7483
  module_cmds=
7484
  module_expsym_cmds=
7485 82 jeremybenn
  old_archive_from_new_cmds=
7486
  old_archive_from_expsyms_cmds=
7487
  thread_safe_flag_spec=
7488
  whole_archive_flag_spec=
7489 19 jeremybenn
  # include_expsyms should be a list of space-separated symbols to be *always*
7490
  # included in the symbol list
7491
  include_expsyms=
7492
  # exclude_expsyms can be an extended regexp of symbols to exclude
7493
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7494
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7495
  # as well as any symbol that contains `d'.
7496 82 jeremybenn
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7497 19 jeremybenn
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7498
  # platforms (ab)use it in PIC code, but their linkers get confused if
7499
  # the symbol is explicitly referenced.  Since portable code cannot
7500
  # rely on this symbol name, it's probably fine to never include it in
7501
  # preloaded symbol tables.
7502 82 jeremybenn
  # Exclude shared library initialization/finalization symbols.
7503 19 jeremybenn
  extract_expsyms_cmds=
7504
 
7505
  case $host_os in
7506 82 jeremybenn
  cygwin* | mingw* | pw32* | cegcc*)
7507 19 jeremybenn
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7508
    # When not using gcc, we currently assume that we are using
7509
    # Microsoft Visual C++.
7510
    if test "$GCC" != yes; then
7511
      with_gnu_ld=no
7512
    fi
7513
    ;;
7514
  interix*)
7515
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7516
    with_gnu_ld=yes
7517
    ;;
7518
  openbsd*)
7519
    with_gnu_ld=no
7520
    ;;
7521 82 jeremybenn
  linux* | k*bsd*-gnu)
7522
    link_all_deplibs=no
7523
    ;;
7524 19 jeremybenn
  esac
7525
 
7526
  ld_shlibs=yes
7527
  if test "$with_gnu_ld" = yes; then
7528
    # If archive_cmds runs LD, not CC, wlarc should be empty
7529
    wlarc='${wl}'
7530
 
7531
    # Set some defaults for GNU ld with shared library support. These
7532
    # are reset later if shared libraries are not supported. Putting them
7533
    # here allows them to be overridden if necessary.
7534
    runpath_var=LD_RUN_PATH
7535 82 jeremybenn
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7536 19 jeremybenn
    export_dynamic_flag_spec='${wl}--export-dynamic'
7537
    # ancient GNU ld didn't support --whole-archive et. al.
7538 82 jeremybenn
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7539
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7540
    else
7541
      whole_archive_flag_spec=
7542 19 jeremybenn
    fi
7543
    supports_anon_versioning=no
7544 82 jeremybenn
    case `$LD -v 2>&1` in
7545 19 jeremybenn
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7546
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7547
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7548
      *\ 2.11.*) ;; # other 2.11 versions
7549
      *) supports_anon_versioning=yes ;;
7550
    esac
7551
 
7552
    # See if GNU ld supports shared libraries.
7553
    case $host_os in
7554 82 jeremybenn
    aix[3-9]*)
7555 19 jeremybenn
      # On AIX/PPC, the GNU linker is very broken
7556
      if test "$host_cpu" != ia64; then
7557
        ld_shlibs=no
7558 82 jeremybenn
        cat <<_LT_EOF 1>&2
7559 19 jeremybenn
 
7560
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7561
*** to be unable to reliably create shared libraries on AIX.
7562
*** Therefore, libtool is disabling shared libraries support.  If you
7563
*** really care for shared libraries, you may want to modify your PATH
7564
*** so that a non-GNU linker is found, and then restart.
7565
 
7566 82 jeremybenn
_LT_EOF
7567 19 jeremybenn
      fi
7568
      ;;
7569
 
7570
    amigaos*)
7571 82 jeremybenn
      case $host_cpu in
7572
      powerpc)
7573
            # see comment about AmigaOS4 .so support
7574
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7575
            archive_expsym_cmds=''
7576
        ;;
7577
      m68k)
7578
            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)'
7579
            hardcode_libdir_flag_spec='-L$libdir'
7580
            hardcode_minus_L=yes
7581
        ;;
7582
      esac
7583 19 jeremybenn
      ;;
7584
 
7585
    beos*)
7586 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7587 19 jeremybenn
        allow_undefined_flag=unsupported
7588
        # Joseph Beckenbach  says some releases of gcc
7589
        # support --undefined.  This deserves some investigation.  FIXME
7590
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7591
      else
7592
        ld_shlibs=no
7593
      fi
7594
      ;;
7595
 
7596 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
7597
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7598 19 jeremybenn
      # as there is no search path for DLLs.
7599
      hardcode_libdir_flag_spec='-L$libdir'
7600
      allow_undefined_flag=unsupported
7601
      always_export_symbols=no
7602
      enable_shared_with_static_runtimes=yes
7603 82 jeremybenn
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7604 19 jeremybenn
 
7605 82 jeremybenn
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7606 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7607
        # If the export-symbols file already is a .def file (1st line
7608
        # is EXPORTS), use it as is; otherwise, prepend...
7609
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7610
          cp $export_symbols $output_objdir/$soname.def;
7611
        else
7612
          echo EXPORTS > $output_objdir/$soname.def;
7613
          cat $export_symbols >> $output_objdir/$soname.def;
7614
        fi~
7615
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7616
      else
7617
        ld_shlibs=no
7618
      fi
7619
      ;;
7620
 
7621
    interix[3-9]*)
7622
      hardcode_direct=no
7623
      hardcode_shlibpath_var=no
7624
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7625
      export_dynamic_flag_spec='${wl}-E'
7626
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7627
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7628
      # default) and relocated if they conflict, which is a slow very memory
7629
      # consuming and fragmenting process.  To avoid this, we pick a random,
7630
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7631
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7632
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7633
      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'
7634
      ;;
7635
 
7636 82 jeremybenn
    gnu* | linux* | tpf* | k*bsd*-gnu)
7637
      tmp_diet=no
7638
      if test "$host_os" = linux-dietlibc; then
7639
        case $cc_basename in
7640
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7641
        esac
7642
      fi
7643
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7644
         && test "$tmp_diet" = no
7645
      then
7646 19 jeremybenn
        tmp_addflag=
7647 82 jeremybenn
        tmp_sharedflag='-shared'
7648 19 jeremybenn
        case $cc_basename,$host_cpu in
7649 82 jeremybenn
        pgcc*)                          # Portland Group C compiler
7650
          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'
7651 19 jeremybenn
          tmp_addflag=' $pic_flag'
7652
          ;;
7653
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7654 82 jeremybenn
          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'
7655 19 jeremybenn
          tmp_addflag=' $pic_flag -Mnomain' ;;
7656 82 jeremybenn
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7657 19 jeremybenn
          tmp_addflag=' -i_dynamic' ;;
7658
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7659
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7660
        ifc* | ifort*)                  # Intel Fortran compiler
7661
          tmp_addflag=' -nofor_main' ;;
7662 82 jeremybenn
        lf95*)                          # Lahey Fortran 8.1
7663
          whole_archive_flag_spec=
7664
          tmp_sharedflag='--shared' ;;
7665
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7666
          tmp_sharedflag='-qmkshrobj'
7667
          tmp_addflag= ;;
7668 19 jeremybenn
        esac
7669
        case `$CC -V 2>&1 | sed 5q` in
7670
        *Sun\ C*)                       # Sun C 5.9
7671 82 jeremybenn
          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'
7672
          compiler_needs_object=yes
7673 19 jeremybenn
          tmp_sharedflag='-G' ;;
7674
        *Sun\ F*)                       # Sun Fortran 8.3
7675
          tmp_sharedflag='-G' ;;
7676
        esac
7677
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7678
 
7679 82 jeremybenn
        if test "x$supports_anon_versioning" = xyes; then
7680
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7681
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7682
            echo "local: *; };" >> $output_objdir/$libname.ver~
7683
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7684
        fi
7685
 
7686
        case $cc_basename in
7687
        xlf*)
7688
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7689
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7690
          hardcode_libdir_flag_spec=
7691
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
7692
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7693
          if test "x$supports_anon_versioning" = xyes; then
7694
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7695
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7696
              echo "local: *; };" >> $output_objdir/$libname.ver~
7697
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7698
          fi
7699
          ;;
7700
        esac
7701 19 jeremybenn
      else
7702 82 jeremybenn
        ld_shlibs=no
7703 19 jeremybenn
      fi
7704
      ;;
7705
 
7706 82 jeremybenn
    netbsd* | netbsdelf*-gnu)
7707
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7708 19 jeremybenn
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7709
        wlarc=
7710
      else
7711
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7712
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7713
      fi
7714
      ;;
7715
 
7716
    solaris*)
7717 82 jeremybenn
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7718 19 jeremybenn
        ld_shlibs=no
7719 82 jeremybenn
        cat <<_LT_EOF 1>&2
7720 19 jeremybenn
 
7721
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7722
*** create shared libraries on Solaris systems.  Therefore, libtool
7723
*** is disabling shared libraries support.  We urge you to upgrade GNU
7724
*** binutils to release 2.9.1 or newer.  Another option is to modify
7725
*** your PATH or compiler configuration so that the native linker is
7726
*** used, and then restart.
7727
 
7728 82 jeremybenn
_LT_EOF
7729
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7730 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7731
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7732
      else
7733
        ld_shlibs=no
7734
      fi
7735
      ;;
7736
 
7737
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7738
      case `$LD -v 2>&1` in
7739
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7740
        ld_shlibs=no
7741
        cat <<_LT_EOF 1>&2
7742
 
7743
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7744
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7745
*** is disabling shared libraries support.  We urge you to upgrade GNU
7746
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7747
*** your PATH or compiler configuration so that the native linker is
7748
*** used, and then restart.
7749
 
7750
_LT_EOF
7751
        ;;
7752
        *)
7753 82 jeremybenn
          # For security reasons, it is highly recommended that you always
7754
          # use absolute paths for naming shared libraries, and exclude the
7755
          # DT_RUNPATH tag from executables and libraries.  But doing so
7756
          # requires that you compile everything twice, which is a pain.
7757
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7758
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7759
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7760
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7761 19 jeremybenn
          else
7762
            ld_shlibs=no
7763
          fi
7764
        ;;
7765
      esac
7766
      ;;
7767
 
7768
    sunos4*)
7769
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7770
      wlarc=
7771
      hardcode_direct=yes
7772
      hardcode_shlibpath_var=no
7773
      ;;
7774
 
7775
    *)
7776 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7777 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7778
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7779
      else
7780
        ld_shlibs=no
7781
      fi
7782
      ;;
7783
    esac
7784
 
7785
    if test "$ld_shlibs" = no; then
7786
      runpath_var=
7787
      hardcode_libdir_flag_spec=
7788
      export_dynamic_flag_spec=
7789
      whole_archive_flag_spec=
7790
    fi
7791
  else
7792
    # PORTME fill in a description of your system's linker (not GNU ld)
7793
    case $host_os in
7794
    aix3*)
7795
      allow_undefined_flag=unsupported
7796
      always_export_symbols=yes
7797
      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'
7798
      # Note: this linker hardcodes the directories in LIBPATH if there
7799
      # are no directories specified by -L.
7800
      hardcode_minus_L=yes
7801
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7802
        # Neither direct hardcoding nor static linking is supported with a
7803
        # broken collect2.
7804
        hardcode_direct=unsupported
7805
      fi
7806
      ;;
7807
 
7808 82 jeremybenn
    aix[4-9]*)
7809 19 jeremybenn
      if test "$host_cpu" = ia64; then
7810
        # On IA64, the linker does run time linking by default, so we don't
7811
        # have to do anything special.
7812
        aix_use_runtimelinking=no
7813
        exp_sym_flag='-Bexport'
7814
        no_entry_flag=""
7815
      else
7816
        # If we're using GNU nm, then we don't want the "-C" option.
7817
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7818 82 jeremybenn
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7819
          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'
7820 19 jeremybenn
        else
7821 82 jeremybenn
          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'
7822 19 jeremybenn
        fi
7823
        aix_use_runtimelinking=no
7824
 
7825
        # Test if we are trying to use run time linking or normal
7826
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7827
        # need to do runtime linking.
7828 82 jeremybenn
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7829 19 jeremybenn
          for ld_flag in $LDFLAGS; do
7830 82 jeremybenn
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7831
            aix_use_runtimelinking=yes
7832
            break
7833
          fi
7834 19 jeremybenn
          done
7835
          ;;
7836
        esac
7837
 
7838
        exp_sym_flag='-bexport'
7839
        no_entry_flag='-bnoentry'
7840
      fi
7841
 
7842
      # When large executables or shared objects are built, AIX ld can
7843
      # have problems creating the table of contents.  If linking a library
7844
      # or program results in "error TOC overflow" add -mminimal-toc to
7845
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7846
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7847
 
7848
      archive_cmds=''
7849
      hardcode_direct=yes
7850 82 jeremybenn
      hardcode_direct_absolute=yes
7851 19 jeremybenn
      hardcode_libdir_separator=':'
7852
      link_all_deplibs=yes
7853 82 jeremybenn
      file_list_spec='${wl}-f,'
7854 19 jeremybenn
 
7855
      if test "$GCC" = yes; then
7856
        case $host_os in aix4.[012]|aix4.[012].*)
7857
        # We only want to do this on AIX 4.2 and lower, the check
7858
        # below for broken collect2 doesn't work under 4.3+
7859
          collect2name=`${CC} -print-prog-name=collect2`
7860 82 jeremybenn
          if test -f "$collect2name" &&
7861
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7862 19 jeremybenn
          then
7863 82 jeremybenn
          # We have reworked collect2
7864
          :
7865 19 jeremybenn
          else
7866 82 jeremybenn
          # We have old collect2
7867
          hardcode_direct=unsupported
7868
          # It fails to find uninstalled libraries when the uninstalled
7869
          # path is not listed in the libpath.  Setting hardcode_minus_L
7870
          # to unsupported forces relinking
7871
          hardcode_minus_L=yes
7872
          hardcode_libdir_flag_spec='-L$libdir'
7873
          hardcode_libdir_separator=
7874 19 jeremybenn
          fi
7875
          ;;
7876
        esac
7877
        shared_flag='-shared'
7878
        if test "$aix_use_runtimelinking" = yes; then
7879
          shared_flag="$shared_flag "'${wl}-G'
7880
        fi
7881 82 jeremybenn
        link_all_deplibs=no
7882 19 jeremybenn
      else
7883
        # not using gcc
7884
        if test "$host_cpu" = ia64; then
7885 82 jeremybenn
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7886
        # chokes on -Wl,-G. The following line is correct:
7887 19 jeremybenn
          shared_flag='-G'
7888
        else
7889
          if test "$aix_use_runtimelinking" = yes; then
7890
            shared_flag='${wl}-G'
7891
          else
7892
            shared_flag='${wl}-bM:SRE'
7893
          fi
7894
        fi
7895
      fi
7896
 
7897 82 jeremybenn
      export_dynamic_flag_spec='${wl}-bexpall'
7898 19 jeremybenn
      # It seems that -bexpall does not export symbols beginning with
7899
      # underscore (_), so it is better to generate a list of symbols to export.
7900
      always_export_symbols=yes
7901
      if test "$aix_use_runtimelinking" = yes; then
7902
        # Warning - without using the other runtime loading flags (-brtl),
7903
        # -berok will link without error, but may produce a broken library.
7904
        allow_undefined_flag='-berok'
7905 82 jeremybenn
        # Determine the default libpath from the value encoded in an
7906
        # empty executable.
7907
        cat >conftest.$ac_ext <<_ACEOF
7908 19 jeremybenn
/* confdefs.h.  */
7909
_ACEOF
7910
cat confdefs.h >>conftest.$ac_ext
7911
cat >>conftest.$ac_ext <<_ACEOF
7912
/* end confdefs.h.  */
7913
 
7914
int
7915
main ()
7916
{
7917
 
7918
  ;
7919
  return 0;
7920
}
7921
_ACEOF
7922
rm -f conftest.$ac_objext conftest$ac_exeext
7923
if { (ac_try="$ac_link"
7924
case "(($ac_try" in
7925
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926
  *) ac_try_echo=$ac_try;;
7927
esac
7928 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7929
$as_echo "$ac_try_echo") >&5
7930 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
7931
  ac_status=$?
7932
  grep -v '^ *+' conftest.er1 >conftest.err
7933
  rm -f conftest.er1
7934
  cat conftest.err >&5
7935 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 19 jeremybenn
  (exit $ac_status); } && {
7937
         test -z "$ac_c_werror_flag" ||
7938
         test ! -s conftest.err
7939 82 jeremybenn
       } && test -s conftest$ac_exeext && {
7940
         test "$cross_compiling" = yes ||
7941
         $as_test_x conftest$ac_exeext
7942
       }; then
7943 19 jeremybenn
 
7944
lt_aix_libpath_sed='
7945
    /Import File Strings/,/^$/ {
7946
        /^0/ {
7947
            s/^0  *\(.*\)$/\1/
7948
            p
7949
        }
7950
    }'
7951
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7952
# Check for a 64-bit object if we didn't find anything.
7953
if test -z "$aix_libpath"; then
7954
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7955
fi
7956
else
7957 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
7958 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
7959
 
7960
 
7961
fi
7962
 
7963 82 jeremybenn
rm -rf conftest.dSYM
7964 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7965
      conftest$ac_exeext conftest.$ac_ext
7966
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7967
 
7968 82 jeremybenn
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7969
        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"
7970
      else
7971 19 jeremybenn
        if test "$host_cpu" = ia64; then
7972
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7973
          allow_undefined_flag="-z nodefs"
7974
          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"
7975
        else
7976 82 jeremybenn
         # Determine the default libpath from the value encoded in an
7977
         # empty executable.
7978 19 jeremybenn
         cat >conftest.$ac_ext <<_ACEOF
7979
/* confdefs.h.  */
7980
_ACEOF
7981
cat confdefs.h >>conftest.$ac_ext
7982
cat >>conftest.$ac_ext <<_ACEOF
7983
/* end confdefs.h.  */
7984
 
7985
int
7986
main ()
7987
{
7988
 
7989
  ;
7990
  return 0;
7991
}
7992
_ACEOF
7993
rm -f conftest.$ac_objext conftest$ac_exeext
7994
if { (ac_try="$ac_link"
7995
case "(($ac_try" in
7996
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997
  *) ac_try_echo=$ac_try;;
7998
esac
7999 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8000
$as_echo "$ac_try_echo") >&5
8001 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
8002
  ac_status=$?
8003
  grep -v '^ *+' conftest.er1 >conftest.err
8004
  rm -f conftest.er1
8005
  cat conftest.err >&5
8006 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 19 jeremybenn
  (exit $ac_status); } && {
8008
         test -z "$ac_c_werror_flag" ||
8009
         test ! -s conftest.err
8010 82 jeremybenn
       } && test -s conftest$ac_exeext && {
8011
         test "$cross_compiling" = yes ||
8012
         $as_test_x conftest$ac_exeext
8013
       }; then
8014 19 jeremybenn
 
8015
lt_aix_libpath_sed='
8016
    /Import File Strings/,/^$/ {
8017
        /^0/ {
8018
            s/^0  *\(.*\)$/\1/
8019
            p
8020
        }
8021
    }'
8022
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8023
# Check for a 64-bit object if we didn't find anything.
8024
if test -z "$aix_libpath"; then
8025
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8026
fi
8027
else
8028 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
8029 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
8030
 
8031
 
8032
fi
8033
 
8034 82 jeremybenn
rm -rf conftest.dSYM
8035 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8036
      conftest$ac_exeext conftest.$ac_ext
8037
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8038
 
8039
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8040
          # Warning - without using the other run time loading flags,
8041
          # -berok will link without error, but may produce a broken library.
8042
          no_undefined_flag=' ${wl}-bernotok'
8043
          allow_undefined_flag=' ${wl}-berok'
8044
          # Exported symbols can be pulled into shared objects from archives
8045
          whole_archive_flag_spec='$convenience'
8046
          archive_cmds_need_lc=yes
8047
          # This is similar to how AIX traditionally builds its shared libraries.
8048
          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'
8049
        fi
8050
      fi
8051
      ;;
8052
 
8053
    amigaos*)
8054 82 jeremybenn
      case $host_cpu in
8055
      powerpc)
8056
            # see comment about AmigaOS4 .so support
8057
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8058
            archive_expsym_cmds=''
8059
        ;;
8060
      m68k)
8061
            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)'
8062
            hardcode_libdir_flag_spec='-L$libdir'
8063
            hardcode_minus_L=yes
8064
        ;;
8065
      esac
8066 19 jeremybenn
      ;;
8067
 
8068
    bsdi[45]*)
8069
      export_dynamic_flag_spec=-rdynamic
8070
      ;;
8071
 
8072 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
8073 19 jeremybenn
      # When not using gcc, we currently assume that we are using
8074
      # Microsoft Visual C++.
8075
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8076
      # no search path for DLLs.
8077
      hardcode_libdir_flag_spec=' '
8078
      allow_undefined_flag=unsupported
8079
      # Tell ltmain to make .lib files, not .a files.
8080
      libext=lib
8081
      # Tell ltmain to make .dll files, not .so files.
8082
      shrext_cmds=".dll"
8083
      # FIXME: Setting linknames here is a bad hack.
8084 82 jeremybenn
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8085 19 jeremybenn
      # The linker will automatically build a .lib file if we build a DLL.
8086 82 jeremybenn
      old_archive_from_new_cmds='true'
8087 19 jeremybenn
      # FIXME: Should let the user specify the lib program.
8088
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8089
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8090
      enable_shared_with_static_runtimes=yes
8091
      ;;
8092
 
8093
    darwin* | rhapsody*)
8094 82 jeremybenn
 
8095
 
8096
  archive_cmds_need_lc=no
8097
  hardcode_direct=no
8098
  hardcode_automatic=yes
8099
  hardcode_shlibpath_var=unsupported
8100
  whole_archive_flag_spec=''
8101
  link_all_deplibs=yes
8102
  allow_undefined_flag="$_lt_dar_allow_undefined"
8103
  case $cc_basename in
8104
     ifort*) _lt_dar_can_shared=yes ;;
8105
     *) _lt_dar_can_shared=$GCC ;;
8106
  esac
8107
  if test "$_lt_dar_can_shared" = "yes"; then
8108
    output_verbose_link_cmd=echo
8109
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8110
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8111
    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}"
8112
    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}"
8113
 
8114
  else
8115
  ld_shlibs=no
8116
  fi
8117
 
8118 19 jeremybenn
      ;;
8119
 
8120
    dgux*)
8121
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8122
      hardcode_libdir_flag_spec='-L$libdir'
8123
      hardcode_shlibpath_var=no
8124
      ;;
8125
 
8126
    freebsd1*)
8127
      ld_shlibs=no
8128
      ;;
8129
 
8130
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8131
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8132
    # does not break anything, and helps significantly (at the cost of a little
8133
    # extra space).
8134
    freebsd2.2*)
8135
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8136
      hardcode_libdir_flag_spec='-R$libdir'
8137
      hardcode_direct=yes
8138
      hardcode_shlibpath_var=no
8139
      ;;
8140
 
8141
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8142
    freebsd2*)
8143
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8144
      hardcode_direct=yes
8145
      hardcode_minus_L=yes
8146
      hardcode_shlibpath_var=no
8147
      ;;
8148
 
8149
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8150
    freebsd* | dragonfly*)
8151
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8152
      hardcode_libdir_flag_spec='-R$libdir'
8153
      hardcode_direct=yes
8154
      hardcode_shlibpath_var=no
8155
      ;;
8156
 
8157
    hpux9*)
8158
      if test "$GCC" = yes; then
8159 82 jeremybenn
        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'
8160 19 jeremybenn
      else
8161 82 jeremybenn
        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'
8162 19 jeremybenn
      fi
8163
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8164
      hardcode_libdir_separator=:
8165
      hardcode_direct=yes
8166
 
8167
      # hardcode_minus_L: Not really in the search PATH,
8168
      # but as the default location of the library.
8169
      hardcode_minus_L=yes
8170
      export_dynamic_flag_spec='${wl}-E'
8171
      ;;
8172
 
8173
    hpux10*)
8174
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8175
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8176
      else
8177
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8178
      fi
8179
      if test "$with_gnu_ld" = no; then
8180
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8181 82 jeremybenn
        hardcode_libdir_flag_spec_ld='+b $libdir'
8182 19 jeremybenn
        hardcode_libdir_separator=:
8183
        hardcode_direct=yes
8184 82 jeremybenn
        hardcode_direct_absolute=yes
8185 19 jeremybenn
        export_dynamic_flag_spec='${wl}-E'
8186
        # hardcode_minus_L: Not really in the search PATH,
8187
        # but as the default location of the library.
8188
        hardcode_minus_L=yes
8189
      fi
8190
      ;;
8191
 
8192
    hpux11*)
8193
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8194
        case $host_cpu in
8195
        hppa*64*)
8196
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8197
          ;;
8198
        ia64*)
8199 82 jeremybenn
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8200 19 jeremybenn
          ;;
8201
        *)
8202
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8203
          ;;
8204
        esac
8205
      else
8206
        case $host_cpu in
8207
        hppa*64*)
8208
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8209
          ;;
8210
        ia64*)
8211
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8212
          ;;
8213
        *)
8214
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8215
          ;;
8216
        esac
8217
      fi
8218
      if test "$with_gnu_ld" = no; then
8219
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8220
        hardcode_libdir_separator=:
8221
 
8222
        case $host_cpu in
8223
        hppa*64*|ia64*)
8224
          hardcode_direct=no
8225
          hardcode_shlibpath_var=no
8226
          ;;
8227
        *)
8228
          hardcode_direct=yes
8229 82 jeremybenn
          hardcode_direct_absolute=yes
8230 19 jeremybenn
          export_dynamic_flag_spec='${wl}-E'
8231
 
8232
          # hardcode_minus_L: Not really in the search PATH,
8233
          # but as the default location of the library.
8234
          hardcode_minus_L=yes
8235
          ;;
8236
        esac
8237
      fi
8238
      ;;
8239
 
8240
    irix5* | irix6* | nonstopux*)
8241
      if test "$GCC" = yes; then
8242 82 jeremybenn
        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'
8243
        # Try to use the -exported_symbol ld option, if it does not
8244
        # work, assume that -exports_file does not work either and
8245
        # implicitly export all symbols.
8246
        save_LDFLAGS="$LDFLAGS"
8247
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8248
        cat >conftest.$ac_ext <<_ACEOF
8249
int foo(void) {}
8250
_ACEOF
8251
rm -f conftest.$ac_objext conftest$ac_exeext
8252
if { (ac_try="$ac_link"
8253
case "(($ac_try" in
8254
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255
  *) ac_try_echo=$ac_try;;
8256
esac
8257
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8258
$as_echo "$ac_try_echo") >&5
8259
  (eval "$ac_link") 2>conftest.er1
8260
  ac_status=$?
8261
  grep -v '^ *+' conftest.er1 >conftest.err
8262
  rm -f conftest.er1
8263
  cat conftest.err >&5
8264
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265
  (exit $ac_status); } && {
8266
         test -z "$ac_c_werror_flag" ||
8267
         test ! -s conftest.err
8268
       } && test -s conftest$ac_exeext && {
8269
         test "$cross_compiling" = yes ||
8270
         $as_test_x conftest$ac_exeext
8271
       }; then
8272
  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'
8273
 
8274
else
8275
  $as_echo "$as_me: failed program was:" >&5
8276
sed 's/^/| /' conftest.$ac_ext >&5
8277
 
8278
 
8279
fi
8280
 
8281
rm -rf conftest.dSYM
8282
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8283
      conftest$ac_exeext conftest.$ac_ext
8284
        LDFLAGS="$save_LDFLAGS"
8285 19 jeremybenn
      else
8286 82 jeremybenn
        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'
8287
        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'
8288 19 jeremybenn
      fi
8289 82 jeremybenn
      archive_cmds_need_lc='no'
8290 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8291
      hardcode_libdir_separator=:
8292 82 jeremybenn
      inherit_rpath=yes
8293 19 jeremybenn
      link_all_deplibs=yes
8294
      ;;
8295
 
8296 82 jeremybenn
    netbsd* | netbsdelf*-gnu)
8297
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8298 19 jeremybenn
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8299
      else
8300
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8301
      fi
8302
      hardcode_libdir_flag_spec='-R$libdir'
8303
      hardcode_direct=yes
8304
      hardcode_shlibpath_var=no
8305
      ;;
8306
 
8307
    newsos6)
8308
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8309
      hardcode_direct=yes
8310
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8311
      hardcode_libdir_separator=:
8312
      hardcode_shlibpath_var=no
8313
      ;;
8314
 
8315 82 jeremybenn
    *nto* | *qnx*)
8316
      ;;
8317
 
8318 19 jeremybenn
    openbsd*)
8319
      if test -f /usr/libexec/ld.so; then
8320
        hardcode_direct=yes
8321
        hardcode_shlibpath_var=no
8322 82 jeremybenn
        hardcode_direct_absolute=yes
8323
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8324 19 jeremybenn
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8325
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8326
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8327
          export_dynamic_flag_spec='${wl}-E'
8328
        else
8329
          case $host_os in
8330
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8331
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8332
             hardcode_libdir_flag_spec='-R$libdir'
8333
             ;;
8334
           *)
8335
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8336
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8337
             ;;
8338
          esac
8339 82 jeremybenn
        fi
8340 19 jeremybenn
      else
8341
        ld_shlibs=no
8342
      fi
8343
      ;;
8344
 
8345
    os2*)
8346
      hardcode_libdir_flag_spec='-L$libdir'
8347
      hardcode_minus_L=yes
8348
      allow_undefined_flag=unsupported
8349 82 jeremybenn
      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'
8350
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8351 19 jeremybenn
      ;;
8352
 
8353
    osf3*)
8354
      if test "$GCC" = yes; then
8355
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8356 82 jeremybenn
        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'
8357 19 jeremybenn
      else
8358
        allow_undefined_flag=' -expect_unresolved \*'
8359 82 jeremybenn
        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'
8360 19 jeremybenn
      fi
8361 82 jeremybenn
      archive_cmds_need_lc='no'
8362 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8363
      hardcode_libdir_separator=:
8364
      ;;
8365
 
8366
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8367
      if test "$GCC" = yes; then
8368
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8369 82 jeremybenn
        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'
8370 19 jeremybenn
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8371
      else
8372
        allow_undefined_flag=' -expect_unresolved \*'
8373 82 jeremybenn
        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'
8374
        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~
8375
        $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'
8376 19 jeremybenn
 
8377
        # Both c and cxx compiler support -rpath directly
8378
        hardcode_libdir_flag_spec='-rpath $libdir'
8379
      fi
8380 82 jeremybenn
      archive_cmds_need_lc='no'
8381 19 jeremybenn
      hardcode_libdir_separator=:
8382
      ;;
8383
 
8384
    solaris*)
8385 82 jeremybenn
      no_undefined_flag=' -z defs'
8386 19 jeremybenn
      if test "$GCC" = yes; then
8387
        wlarc='${wl}'
8388 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8389
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8390
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8391 19 jeremybenn
      else
8392 82 jeremybenn
        case `$CC -V 2>&1` in
8393
        *"Compilers 5.0"*)
8394
          wlarc=''
8395
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8396
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8397
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8398
          ;;
8399
        *)
8400
          wlarc='${wl}'
8401
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8402
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8403
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8404
          ;;
8405
        esac
8406 19 jeremybenn
      fi
8407
      hardcode_libdir_flag_spec='-R$libdir'
8408
      hardcode_shlibpath_var=no
8409
      case $host_os in
8410
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8411
      *)
8412
        # The compiler driver will combine and reorder linker options,
8413
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8414
        # but is careful enough not to reorder.
8415 82 jeremybenn
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8416 19 jeremybenn
        if test "$GCC" = yes; then
8417
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8418
        else
8419
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8420
        fi
8421
        ;;
8422
      esac
8423
      link_all_deplibs=yes
8424
      ;;
8425
 
8426
    sunos4*)
8427
      if test "x$host_vendor" = xsequent; then
8428
        # Use $CC to link under sequent, because it throws in some extra .o
8429
        # files that make .init and .fini sections work.
8430
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8431
      else
8432
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8433
      fi
8434
      hardcode_libdir_flag_spec='-L$libdir'
8435
      hardcode_direct=yes
8436
      hardcode_minus_L=yes
8437
      hardcode_shlibpath_var=no
8438
      ;;
8439
 
8440
    sysv4)
8441
      case $host_vendor in
8442
        sni)
8443
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8444
          hardcode_direct=yes # is this really true???
8445
        ;;
8446
        siemens)
8447
          ## LD is ld it makes a PLAMLIB
8448
          ## CC just makes a GrossModule.
8449
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8450
          reload_cmds='$CC -r -o $output$reload_objs'
8451
          hardcode_direct=no
8452
        ;;
8453
        motorola)
8454
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8455
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8456
        ;;
8457
      esac
8458
      runpath_var='LD_RUN_PATH'
8459
      hardcode_shlibpath_var=no
8460
      ;;
8461
 
8462
    sysv4.3*)
8463
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8464
      hardcode_shlibpath_var=no
8465
      export_dynamic_flag_spec='-Bexport'
8466
      ;;
8467
 
8468
    sysv4*MP*)
8469
      if test -d /usr/nec; then
8470
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8471
        hardcode_shlibpath_var=no
8472
        runpath_var=LD_RUN_PATH
8473
        hardcode_runpath_var=yes
8474
        ld_shlibs=yes
8475
      fi
8476
      ;;
8477
 
8478
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8479
      no_undefined_flag='${wl}-z,text'
8480
      archive_cmds_need_lc=no
8481
      hardcode_shlibpath_var=no
8482
      runpath_var='LD_RUN_PATH'
8483
 
8484
      if test "$GCC" = yes; then
8485
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8486
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8487
      else
8488
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8489
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8490
      fi
8491
      ;;
8492
 
8493
    sysv5* | sco3.2v5* | sco5v6*)
8494
      # Note: We can NOT use -z defs as we might desire, because we do not
8495
      # link with -lc, and that would cause any symbols used from libc to
8496
      # always be unresolved, which means just about no library would
8497
      # ever link correctly.  If we're not using GNU ld we use -z text
8498
      # though, which does catch some bad symbols but isn't as heavy-handed
8499
      # as -z defs.
8500
      no_undefined_flag='${wl}-z,text'
8501
      allow_undefined_flag='${wl}-z,nodefs'
8502
      archive_cmds_need_lc=no
8503
      hardcode_shlibpath_var=no
8504 82 jeremybenn
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8505 19 jeremybenn
      hardcode_libdir_separator=':'
8506
      link_all_deplibs=yes
8507
      export_dynamic_flag_spec='${wl}-Bexport'
8508
      runpath_var='LD_RUN_PATH'
8509
 
8510
      if test "$GCC" = yes; then
8511 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8512
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8513 19 jeremybenn
      else
8514 82 jeremybenn
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8515
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8516 19 jeremybenn
      fi
8517
      ;;
8518
 
8519
    uts4*)
8520
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8521
      hardcode_libdir_flag_spec='-L$libdir'
8522
      hardcode_shlibpath_var=no
8523
      ;;
8524
 
8525
    *)
8526
      ld_shlibs=no
8527
      ;;
8528
    esac
8529 82 jeremybenn
 
8530
    if test x$host_vendor = xsni; then
8531
      case $host in
8532
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8533
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8534
        ;;
8535
      esac
8536
    fi
8537 19 jeremybenn
  fi
8538
 
8539 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8540
$as_echo "$ld_shlibs" >&6; }
8541 19 jeremybenn
test "$ld_shlibs" = no && can_build_shared=no
8542
 
8543 82 jeremybenn
with_gnu_ld=$with_gnu_ld
8544
 
8545
 
8546
 
8547
 
8548
 
8549
 
8550
 
8551
 
8552
 
8553
 
8554
 
8555
 
8556
 
8557
 
8558
 
8559 19 jeremybenn
#
8560
# Do we need to explicitly link libc?
8561
#
8562
case "x$archive_cmds_need_lc" in
8563
x|xyes)
8564
  # Assume -lc should be added
8565
  archive_cmds_need_lc=yes
8566
 
8567
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8568
    case $archive_cmds in
8569
    *'~'*)
8570
      # FIXME: we may have to deal with multi-command sequences.
8571
      ;;
8572
    '$CC '*)
8573
      # Test whether the compiler implicitly links with -lc since on some
8574
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8575
      # to ld, don't add -lc before -lgcc.
8576 82 jeremybenn
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8577
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8578
      $RM conftest*
8579 19 jeremybenn
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8580
 
8581
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8582
  (eval $ac_compile) 2>&5
8583
  ac_status=$?
8584 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 19 jeremybenn
  (exit $ac_status); } 2>conftest.err; then
8586
        soname=conftest
8587
        lib=conftest
8588
        libobjs=conftest.$ac_objext
8589
        deplibs=
8590
        wl=$lt_prog_compiler_wl
8591
        pic_flag=$lt_prog_compiler_pic
8592
        compiler_flags=-v
8593
        linker_flags=-v
8594
        verstring=
8595
        output_objdir=.
8596
        libname=conftest
8597
        lt_save_allow_undefined_flag=$allow_undefined_flag
8598
        allow_undefined_flag=
8599 82 jeremybenn
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8600
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8601 19 jeremybenn
  ac_status=$?
8602 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 19 jeremybenn
  (exit $ac_status); }
8604
        then
8605
          archive_cmds_need_lc=no
8606
        else
8607
          archive_cmds_need_lc=yes
8608
        fi
8609
        allow_undefined_flag=$lt_save_allow_undefined_flag
8610
      else
8611
        cat conftest.err 1>&5
8612
      fi
8613 82 jeremybenn
      $RM conftest*
8614
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8615
$as_echo "$archive_cmds_need_lc" >&6; }
8616 19 jeremybenn
      ;;
8617
    esac
8618
  fi
8619
  ;;
8620
esac
8621
 
8622
 
8623 82 jeremybenn
 
8624
 
8625
 
8626
 
8627
 
8628
 
8629
 
8630
 
8631
 
8632
 
8633
 
8634
 
8635
 
8636
 
8637
 
8638
 
8639
 
8640
 
8641
 
8642
 
8643
 
8644
 
8645
 
8646
 
8647
 
8648
 
8649
 
8650
 
8651
 
8652
 
8653
 
8654
 
8655
 
8656
 
8657
 
8658
 
8659
 
8660
 
8661
 
8662
 
8663
 
8664
 
8665
 
8666
 
8667
 
8668
 
8669
 
8670
 
8671
 
8672
 
8673
 
8674
 
8675
 
8676
 
8677
 
8678
 
8679
 
8680
 
8681
 
8682
 
8683
 
8684
 
8685
 
8686
 
8687
 
8688
 
8689
 
8690
 
8691
 
8692
 
8693
 
8694
 
8695
 
8696
 
8697
 
8698
 
8699
 
8700
 
8701
 
8702
 
8703
 
8704
 
8705
 
8706
 
8707
 
8708
 
8709
 
8710
 
8711
 
8712
 
8713
 
8714
 
8715
 
8716
 
8717
 
8718
 
8719
 
8720
 
8721
 
8722
 
8723
 
8724
 
8725
 
8726
 
8727
 
8728
 
8729
 
8730
 
8731
 
8732
 
8733
 
8734
 
8735
 
8736
 
8737
 
8738
 
8739
 
8740
 
8741
 
8742
 
8743
 
8744
 
8745
 
8746
 
8747
 
8748
 
8749
 
8750
 
8751
 
8752
 
8753
 
8754
 
8755
 
8756
 
8757
 
8758
 
8759
 
8760
 
8761
 
8762
 
8763
 
8764
 
8765
 
8766
 
8767
 
8768
 
8769
 
8770
 
8771
 
8772
 
8773
 
8774
 
8775
 
8776
 
8777
 
8778
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8779
$as_echo_n "checking dynamic linker characteristics... " >&6; }
8780
 
8781 19 jeremybenn
if test "$GCC" = yes; then
8782
  case $host_os in
8783
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8784
    *) lt_awk_arg="/^libraries:/" ;;
8785
  esac
8786
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8787 82 jeremybenn
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8788 19 jeremybenn
    # if the path contains ";" then we assume it to be the separator
8789
    # otherwise default to the standard path separator (i.e. ":") - it is
8790
    # assumed that no part of a normal pathname contains ";" but that should
8791
    # okay in the real world where ";" in dirpaths is itself problematic.
8792 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8793 19 jeremybenn
  else
8794 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8795 19 jeremybenn
  fi
8796
  # Ok, now we have the path, separated by spaces, we can step through it
8797
  # and add multilib dir if necessary.
8798
  lt_tmp_lt_search_path_spec=
8799
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8800
  for lt_sys_path in $lt_search_path_spec; do
8801
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8802
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8803
    else
8804
      test -d "$lt_sys_path" && \
8805
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8806
    fi
8807
  done
8808 82 jeremybenn
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8809 19 jeremybenn
BEGIN {RS=" "; FS="/|\n";} {
8810
  lt_foo="";
8811
  lt_count=0;
8812
  for (lt_i = NF; lt_i > 0; lt_i--) {
8813
    if ($lt_i != "" && $lt_i != ".") {
8814
      if ($lt_i == "..") {
8815
        lt_count++;
8816
      } else {
8817
        if (lt_count == 0) {
8818
          lt_foo="/" $lt_i lt_foo;
8819
        } else {
8820
          lt_count--;
8821
        }
8822
      }
8823
    }
8824
  }
8825
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8826
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8827
}'`
8828 82 jeremybenn
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8829 19 jeremybenn
else
8830
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8831
fi
8832 82 jeremybenn
library_names_spec=
8833
libname_spec='lib$name'
8834
soname_spec=
8835
shrext_cmds=".so"
8836
postinstall_cmds=
8837
postuninstall_cmds=
8838
finish_cmds=
8839
finish_eval=
8840
shlibpath_var=
8841
shlibpath_overrides_runpath=unknown
8842
version_type=none
8843
dynamic_linker="$host_os ld.so"
8844
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8845 19 jeremybenn
need_lib_prefix=unknown
8846
hardcode_into_libs=no
8847
 
8848
# when you set need_version to no, make sure it does not cause -set_version
8849
# flags to be left without arguments
8850
need_version=unknown
8851
 
8852
case $host_os in
8853
aix3*)
8854
  version_type=linux
8855
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8856
  shlibpath_var=LIBPATH
8857
 
8858
  # AIX 3 has no versioning support, so we append a major version to the name.
8859
  soname_spec='${libname}${release}${shared_ext}$major'
8860
  ;;
8861
 
8862 82 jeremybenn
aix[4-9]*)
8863 19 jeremybenn
  version_type=linux
8864
  need_lib_prefix=no
8865
  need_version=no
8866
  hardcode_into_libs=yes
8867
  if test "$host_cpu" = ia64; then
8868
    # AIX 5 supports IA64
8869
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8870
    shlibpath_var=LD_LIBRARY_PATH
8871
  else
8872
    # With GCC up to 2.95.x, collect2 would create an import file
8873
    # for dependence libraries.  The import file would start with
8874
    # the line `#! .'.  This would cause the generated library to
8875
    # depend on `.', always an invalid library.  This was fixed in
8876
    # development snapshots of GCC prior to 3.0.
8877
    case $host_os in
8878
      aix4 | aix4.[01] | aix4.[01].*)
8879
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8880
           echo ' yes '
8881 82 jeremybenn
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8882 19 jeremybenn
        :
8883
      else
8884
        can_build_shared=no
8885
      fi
8886
      ;;
8887
    esac
8888
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8889
    # soname into executable. Probably we can add versioning support to
8890
    # collect2, so additional links can be useful in future.
8891
    if test "$aix_use_runtimelinking" = yes; then
8892
      # If using run time linking (on AIX 4.2 or later) use lib.so
8893
      # instead of lib.a to let people know that these are not
8894
      # typical AIX shared libraries.
8895
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8896
    else
8897
      # We preserve .a as extension for shared libraries through AIX4.2
8898
      # and later when we are not doing run time linking.
8899
      library_names_spec='${libname}${release}.a $libname.a'
8900
      soname_spec='${libname}${release}${shared_ext}$major'
8901
    fi
8902
    shlibpath_var=LIBPATH
8903
  fi
8904
  ;;
8905
 
8906
amigaos*)
8907 82 jeremybenn
  case $host_cpu in
8908
  powerpc)
8909
    # Since July 2007 AmigaOS4 officially supports .so libraries.
8910
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8911
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8912
    ;;
8913
  m68k)
8914
    library_names_spec='$libname.ixlibrary $libname.a'
8915
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8916
    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'
8917
    ;;
8918
  esac
8919 19 jeremybenn
  ;;
8920
 
8921
beos*)
8922
  library_names_spec='${libname}${shared_ext}'
8923
  dynamic_linker="$host_os ld.so"
8924
  shlibpath_var=LIBRARY_PATH
8925
  ;;
8926
 
8927
bsdi[45]*)
8928
  version_type=linux
8929
  need_version=no
8930
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8931
  soname_spec='${libname}${release}${shared_ext}$major'
8932
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8933
  shlibpath_var=LD_LIBRARY_PATH
8934
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8935
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8936
  # the default ld.so.conf also contains /usr/contrib/lib and
8937
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8938
  # libtool to hard-code these into programs
8939
  ;;
8940
 
8941 82 jeremybenn
cygwin* | mingw* | pw32* | cegcc*)
8942 19 jeremybenn
  version_type=windows
8943
  shrext_cmds=".dll"
8944
  need_version=no
8945
  need_lib_prefix=no
8946
 
8947
  case $GCC,$host_os in
8948 82 jeremybenn
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8949 19 jeremybenn
    library_names_spec='$libname.dll.a'
8950
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8951
    postinstall_cmds='base_file=`basename \${file}`~
8952 82 jeremybenn
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8953 19 jeremybenn
      dldir=$destdir/`dirname \$dlpath`~
8954
      test -d \$dldir || mkdir -p \$dldir~
8955
      $install_prog $dir/$dlname \$dldir/$dlname~
8956 82 jeremybenn
      chmod a+x \$dldir/$dlname~
8957
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8958
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8959
      fi'
8960 19 jeremybenn
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8961
      dlpath=$dir/\$dldll~
8962 82 jeremybenn
       $RM \$dlpath'
8963 19 jeremybenn
    shlibpath_overrides_runpath=yes
8964
 
8965
    case $host_os in
8966
    cygwin*)
8967
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8968
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8969
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8970
      ;;
8971 82 jeremybenn
    mingw* | cegcc*)
8972 19 jeremybenn
      # MinGW DLLs use traditional 'lib' prefix
8973
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8974 82 jeremybenn
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8975
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8976 19 jeremybenn
        # It is most probably a Windows format PATH printed by
8977
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8978
        # path with ; separators, and with drive letters. We can handle the
8979
        # drive letters (cygwin fileutils understands them), so leave them,
8980
        # especially as we might pass files found there to a mingw objdump,
8981
        # which wouldn't understand a cygwinified path. Ahh.
8982 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8983 19 jeremybenn
      else
8984 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8985 19 jeremybenn
      fi
8986
      ;;
8987
    pw32*)
8988
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8989
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8990
      ;;
8991
    esac
8992
    ;;
8993
 
8994
  *)
8995
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8996
    ;;
8997
  esac
8998
  dynamic_linker='Win32 ld.exe'
8999
  # FIXME: first we should search . and the directory the executable is in
9000
  shlibpath_var=PATH
9001
  ;;
9002
 
9003
darwin* | rhapsody*)
9004
  dynamic_linker="$host_os dyld"
9005
  version_type=darwin
9006
  need_lib_prefix=no
9007
  need_version=no
9008 82 jeremybenn
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9009 19 jeremybenn
  soname_spec='${libname}${release}${major}$shared_ext'
9010
  shlibpath_overrides_runpath=yes
9011
  shlibpath_var=DYLD_LIBRARY_PATH
9012
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9013
 
9014
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9015
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9016
  ;;
9017
 
9018
dgux*)
9019
  version_type=linux
9020
  need_lib_prefix=no
9021
  need_version=no
9022
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9023
  soname_spec='${libname}${release}${shared_ext}$major'
9024
  shlibpath_var=LD_LIBRARY_PATH
9025
  ;;
9026
 
9027
freebsd1*)
9028
  dynamic_linker=no
9029
  ;;
9030
 
9031
freebsd* | dragonfly*)
9032
  # DragonFly does not have aout.  When/if they implement a new
9033
  # versioning mechanism, adjust this.
9034
  if test -x /usr/bin/objformat; then
9035
    objformat=`/usr/bin/objformat`
9036
  else
9037
    case $host_os in
9038
    freebsd[123]*) objformat=aout ;;
9039
    *) objformat=elf ;;
9040
    esac
9041
  fi
9042
  version_type=freebsd-$objformat
9043
  case $version_type in
9044
    freebsd-elf*)
9045
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9046
      need_version=no
9047
      need_lib_prefix=no
9048
      ;;
9049
    freebsd-*)
9050
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9051
      need_version=yes
9052
      ;;
9053
  esac
9054
  shlibpath_var=LD_LIBRARY_PATH
9055
  case $host_os in
9056
  freebsd2*)
9057
    shlibpath_overrides_runpath=yes
9058
    ;;
9059
  freebsd3.[01]* | freebsdelf3.[01]*)
9060
    shlibpath_overrides_runpath=yes
9061
    hardcode_into_libs=yes
9062
    ;;
9063
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9064
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9065
    shlibpath_overrides_runpath=no
9066
    hardcode_into_libs=yes
9067
    ;;
9068
  *) # from 4.6 on, and DragonFly
9069
    shlibpath_overrides_runpath=yes
9070
    hardcode_into_libs=yes
9071
    ;;
9072
  esac
9073
  ;;
9074
 
9075
gnu*)
9076
  version_type=linux
9077
  need_lib_prefix=no
9078
  need_version=no
9079
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9080
  soname_spec='${libname}${release}${shared_ext}$major'
9081
  shlibpath_var=LD_LIBRARY_PATH
9082
  hardcode_into_libs=yes
9083
  ;;
9084
 
9085
hpux9* | hpux10* | hpux11*)
9086
  # Give a soname corresponding to the major version so that dld.sl refuses to
9087
  # link against other versions.
9088
  version_type=sunos
9089
  need_lib_prefix=no
9090
  need_version=no
9091
  case $host_cpu in
9092
  ia64*)
9093
    shrext_cmds='.so'
9094
    hardcode_into_libs=yes
9095
    dynamic_linker="$host_os dld.so"
9096
    shlibpath_var=LD_LIBRARY_PATH
9097
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9098
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9099
    soname_spec='${libname}${release}${shared_ext}$major'
9100
    if test "X$HPUX_IA64_MODE" = X32; then
9101
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9102
    else
9103
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9104
    fi
9105
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9106
    ;;
9107 82 jeremybenn
  hppa*64*)
9108 19 jeremybenn
    shrext_cmds='.sl'
9109 82 jeremybenn
    hardcode_into_libs=yes
9110 19 jeremybenn
    dynamic_linker="$host_os dld.sl"
9111 82 jeremybenn
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9112
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9113
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9114
    soname_spec='${libname}${release}${shared_ext}$major'
9115
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9116
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9117
    ;;
9118
  *)
9119
    shrext_cmds='.sl'
9120
    dynamic_linker="$host_os dld.sl"
9121 19 jeremybenn
    shlibpath_var=SHLIB_PATH
9122
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9123
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9124
    soname_spec='${libname}${release}${shared_ext}$major'
9125
    ;;
9126
  esac
9127
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9128
  postinstall_cmds='chmod 555 $lib'
9129
  ;;
9130
 
9131
interix[3-9]*)
9132
  version_type=linux
9133
  need_lib_prefix=no
9134
  need_version=no
9135
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9136
  soname_spec='${libname}${release}${shared_ext}$major'
9137
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9138
  shlibpath_var=LD_LIBRARY_PATH
9139
  shlibpath_overrides_runpath=no
9140
  hardcode_into_libs=yes
9141
  ;;
9142
 
9143
irix5* | irix6* | nonstopux*)
9144
  case $host_os in
9145
    nonstopux*) version_type=nonstopux ;;
9146
    *)
9147
        if test "$lt_cv_prog_gnu_ld" = yes; then
9148
                version_type=linux
9149
        else
9150
                version_type=irix
9151
        fi ;;
9152
  esac
9153
  need_lib_prefix=no
9154
  need_version=no
9155
  soname_spec='${libname}${release}${shared_ext}$major'
9156
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9157
  case $host_os in
9158
  irix5* | nonstopux*)
9159
    libsuff= shlibsuff=
9160
    ;;
9161
  *)
9162
    case $LD in # libtool.m4 will add one of these switches to LD
9163
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9164
      libsuff= shlibsuff= libmagic=32-bit;;
9165
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9166
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9167
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9168
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9169
    *) libsuff= shlibsuff= libmagic=never-match;;
9170
    esac
9171
    ;;
9172
  esac
9173
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9174
  shlibpath_overrides_runpath=no
9175
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9176
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9177
  hardcode_into_libs=yes
9178
  ;;
9179
 
9180
# No shared lib support for Linux oldld, aout, or coff.
9181
linux*oldld* | linux*aout* | linux*coff*)
9182
  dynamic_linker=no
9183
  ;;
9184
 
9185
# This must be Linux ELF.
9186
linux* | k*bsd*-gnu)
9187
  version_type=linux
9188
  need_lib_prefix=no
9189
  need_version=no
9190
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9191
  soname_spec='${libname}${release}${shared_ext}$major'
9192
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9193
  shlibpath_var=LD_LIBRARY_PATH
9194
  shlibpath_overrides_runpath=no
9195 82 jeremybenn
  # Some binutils ld are patched to set DT_RUNPATH
9196
  save_LDFLAGS=$LDFLAGS
9197
  save_libdir=$libdir
9198
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9199
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9200
  cat >conftest.$ac_ext <<_ACEOF
9201
/* confdefs.h.  */
9202
_ACEOF
9203
cat confdefs.h >>conftest.$ac_ext
9204
cat >>conftest.$ac_ext <<_ACEOF
9205
/* end confdefs.h.  */
9206
 
9207
int
9208
main ()
9209
{
9210
 
9211
  ;
9212
  return 0;
9213
}
9214
_ACEOF
9215
rm -f conftest.$ac_objext conftest$ac_exeext
9216
if { (ac_try="$ac_link"
9217
case "(($ac_try" in
9218
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9219
  *) ac_try_echo=$ac_try;;
9220
esac
9221
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9222
$as_echo "$ac_try_echo") >&5
9223
  (eval "$ac_link") 2>conftest.er1
9224
  ac_status=$?
9225
  grep -v '^ *+' conftest.er1 >conftest.err
9226
  rm -f conftest.er1
9227
  cat conftest.err >&5
9228
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229
  (exit $ac_status); } && {
9230
         test -z "$ac_c_werror_flag" ||
9231
         test ! -s conftest.err
9232
       } && test -s conftest$ac_exeext && {
9233
         test "$cross_compiling" = yes ||
9234
         $as_test_x conftest$ac_exeext
9235
       }; then
9236
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9237
  shlibpath_overrides_runpath=yes
9238
fi
9239
 
9240
else
9241
  $as_echo "$as_me: failed program was:" >&5
9242
sed 's/^/| /' conftest.$ac_ext >&5
9243
 
9244
 
9245
fi
9246
 
9247
rm -rf conftest.dSYM
9248
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9249
      conftest$ac_exeext conftest.$ac_ext
9250
  LDFLAGS=$save_LDFLAGS
9251
  libdir=$save_libdir
9252
 
9253 19 jeremybenn
  # This implies no fast_install, which is unacceptable.
9254
  # Some rework will be needed to allow for fast_install
9255
  # before this can be enabled.
9256
  hardcode_into_libs=yes
9257
 
9258
  # Append ld.so.conf contents to the search path
9259
  if test -f /etc/ld.so.conf; then
9260 82 jeremybenn
    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' ' '`
9261 60 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9262 19 jeremybenn
  fi
9263
 
9264
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9265
  # powerpc, because MkLinux only supported shared libraries with the
9266
  # GNU dynamic linker.  Since this was broken with cross compilers,
9267
  # most powerpc-linux boxes support dynamic linking these days and
9268
  # people can always --disable-shared, the test was removed, and we
9269
  # assume the GNU/Linux dynamic linker is in use.
9270
  dynamic_linker='GNU/Linux ld.so'
9271
  ;;
9272
 
9273 82 jeremybenn
netbsdelf*-gnu)
9274
  version_type=linux
9275
  need_lib_prefix=no
9276
  need_version=no
9277
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9278
  soname_spec='${libname}${release}${shared_ext}$major'
9279
  shlibpath_var=LD_LIBRARY_PATH
9280
  shlibpath_overrides_runpath=no
9281
  hardcode_into_libs=yes
9282
  dynamic_linker='NetBSD ld.elf_so'
9283
  ;;
9284
 
9285 19 jeremybenn
netbsd*)
9286
  version_type=sunos
9287
  need_lib_prefix=no
9288
  need_version=no
9289 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9290 19 jeremybenn
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9291
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9292
    dynamic_linker='NetBSD (a.out) ld.so'
9293
  else
9294
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9295
    soname_spec='${libname}${release}${shared_ext}$major'
9296
    dynamic_linker='NetBSD ld.elf_so'
9297
  fi
9298
  shlibpath_var=LD_LIBRARY_PATH
9299
  shlibpath_overrides_runpath=yes
9300
  hardcode_into_libs=yes
9301
  ;;
9302
 
9303
newsos6)
9304
  version_type=linux
9305
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9306
  shlibpath_var=LD_LIBRARY_PATH
9307
  shlibpath_overrides_runpath=yes
9308
  ;;
9309
 
9310 82 jeremybenn
*nto* | *qnx*)
9311
  version_type=qnx
9312 19 jeremybenn
  need_lib_prefix=no
9313
  need_version=no
9314
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9315
  soname_spec='${libname}${release}${shared_ext}$major'
9316
  shlibpath_var=LD_LIBRARY_PATH
9317 82 jeremybenn
  shlibpath_overrides_runpath=no
9318
  hardcode_into_libs=yes
9319
  dynamic_linker='ldqnx.so'
9320 19 jeremybenn
  ;;
9321
 
9322
openbsd*)
9323
  version_type=sunos
9324
  sys_lib_dlsearch_path_spec="/usr/lib"
9325
  need_lib_prefix=no
9326
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9327
  case $host_os in
9328 82 jeremybenn
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9329
    *)                          need_version=no  ;;
9330 19 jeremybenn
  esac
9331
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9332
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9333
  shlibpath_var=LD_LIBRARY_PATH
9334 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9335 19 jeremybenn
    case $host_os in
9336
      openbsd2.[89] | openbsd2.[89].*)
9337
        shlibpath_overrides_runpath=no
9338
        ;;
9339
      *)
9340
        shlibpath_overrides_runpath=yes
9341
        ;;
9342
      esac
9343
  else
9344
    shlibpath_overrides_runpath=yes
9345
  fi
9346
  ;;
9347
 
9348
os2*)
9349
  libname_spec='$name'
9350
  shrext_cmds=".dll"
9351
  need_lib_prefix=no
9352
  library_names_spec='$libname${shared_ext} $libname.a'
9353
  dynamic_linker='OS/2 ld.exe'
9354
  shlibpath_var=LIBPATH
9355
  ;;
9356
 
9357
osf3* | osf4* | osf5*)
9358
  version_type=osf
9359
  need_lib_prefix=no
9360
  need_version=no
9361
  soname_spec='${libname}${release}${shared_ext}$major'
9362
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9363
  shlibpath_var=LD_LIBRARY_PATH
9364
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9365
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9366
  ;;
9367
 
9368
rdos*)
9369
  dynamic_linker=no
9370
  ;;
9371
 
9372
solaris*)
9373
  version_type=linux
9374
  need_lib_prefix=no
9375
  need_version=no
9376
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377
  soname_spec='${libname}${release}${shared_ext}$major'
9378
  shlibpath_var=LD_LIBRARY_PATH
9379
  shlibpath_overrides_runpath=yes
9380
  hardcode_into_libs=yes
9381
  # ldd complains unless libraries are executable
9382
  postinstall_cmds='chmod +x $lib'
9383
  ;;
9384
 
9385
sunos4*)
9386
  version_type=sunos
9387
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9388
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9389
  shlibpath_var=LD_LIBRARY_PATH
9390
  shlibpath_overrides_runpath=yes
9391
  if test "$with_gnu_ld" = yes; then
9392
    need_lib_prefix=no
9393
  fi
9394
  need_version=yes
9395
  ;;
9396
 
9397
sysv4 | sysv4.3*)
9398
  version_type=linux
9399
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9400
  soname_spec='${libname}${release}${shared_ext}$major'
9401
  shlibpath_var=LD_LIBRARY_PATH
9402
  case $host_vendor in
9403
    sni)
9404
      shlibpath_overrides_runpath=no
9405
      need_lib_prefix=no
9406
      runpath_var=LD_RUN_PATH
9407
      ;;
9408
    siemens)
9409
      need_lib_prefix=no
9410
      ;;
9411
    motorola)
9412
      need_lib_prefix=no
9413
      need_version=no
9414
      shlibpath_overrides_runpath=no
9415
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9416
      ;;
9417
  esac
9418
  ;;
9419
 
9420
sysv4*MP*)
9421
  if test -d /usr/nec ;then
9422
    version_type=linux
9423
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9424
    soname_spec='$libname${shared_ext}.$major'
9425
    shlibpath_var=LD_LIBRARY_PATH
9426
  fi
9427
  ;;
9428
 
9429
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9430
  version_type=freebsd-elf
9431
  need_lib_prefix=no
9432
  need_version=no
9433
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9434
  soname_spec='${libname}${release}${shared_ext}$major'
9435
  shlibpath_var=LD_LIBRARY_PATH
9436 82 jeremybenn
  shlibpath_overrides_runpath=yes
9437 19 jeremybenn
  hardcode_into_libs=yes
9438
  if test "$with_gnu_ld" = yes; then
9439
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9440
  else
9441
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9442
    case $host_os in
9443
      sco3.2v5*)
9444
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9445
        ;;
9446
    esac
9447
  fi
9448
  sys_lib_dlsearch_path_spec='/usr/lib'
9449
  ;;
9450
 
9451 82 jeremybenn
tpf*)
9452
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9453
  version_type=linux
9454
  need_lib_prefix=no
9455
  need_version=no
9456
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9457
  shlibpath_var=LD_LIBRARY_PATH
9458
  shlibpath_overrides_runpath=no
9459
  hardcode_into_libs=yes
9460
  ;;
9461
 
9462 19 jeremybenn
uts4*)
9463
  version_type=linux
9464
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465
  soname_spec='${libname}${release}${shared_ext}$major'
9466
  shlibpath_var=LD_LIBRARY_PATH
9467
  ;;
9468
 
9469
*)
9470
  dynamic_linker=no
9471
  ;;
9472
esac
9473 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9474
$as_echo "$dynamic_linker" >&6; }
9475 19 jeremybenn
test "$dynamic_linker" = no && can_build_shared=no
9476
 
9477
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9478
if test "$GCC" = yes; then
9479
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9480
fi
9481
 
9482 82 jeremybenn
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9483
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9484
fi
9485
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9486
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9487
fi
9488
 
9489
 
9490
 
9491
 
9492
 
9493
 
9494
 
9495
 
9496
 
9497
 
9498
 
9499
 
9500
 
9501
 
9502
 
9503
 
9504
 
9505
 
9506
 
9507
 
9508
 
9509
 
9510
 
9511
 
9512
 
9513
 
9514
 
9515
 
9516
 
9517
 
9518
 
9519
 
9520
 
9521
 
9522
 
9523
 
9524
 
9525
 
9526
 
9527
 
9528
 
9529
 
9530
 
9531
 
9532
 
9533
 
9534
 
9535
 
9536
 
9537
 
9538
 
9539
 
9540
 
9541
 
9542
 
9543
 
9544
 
9545
 
9546
 
9547
 
9548
 
9549
 
9550
 
9551
 
9552
 
9553
 
9554
 
9555
 
9556
 
9557
 
9558
 
9559
 
9560
 
9561
 
9562
 
9563
 
9564
 
9565
 
9566
 
9567
 
9568
 
9569
 
9570
 
9571
 
9572
 
9573
 
9574
 
9575
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9576
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9577 19 jeremybenn
hardcode_action=
9578 82 jeremybenn
if test -n "$hardcode_libdir_flag_spec" ||
9579
   test -n "$runpath_var" ||
9580 19 jeremybenn
   test "X$hardcode_automatic" = "Xyes" ; then
9581
 
9582 82 jeremybenn
  # We can hardcode non-existent directories.
9583 19 jeremybenn
  if test "$hardcode_direct" != no &&
9584
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9585
     # have to relink, otherwise we might link with an installed library
9586
     # when we should be linking with a yet-to-be-installed one
9587 82 jeremybenn
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9588 19 jeremybenn
     test "$hardcode_minus_L" != no; then
9589
    # Linking always hardcodes the temporary library directory.
9590
    hardcode_action=relink
9591
  else
9592
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9593
    hardcode_action=immediate
9594
  fi
9595
else
9596
  # We cannot hardcode anything, or else we can only hardcode existing
9597
  # directories.
9598
  hardcode_action=unsupported
9599
fi
9600 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9601
$as_echo "$hardcode_action" >&6; }
9602 19 jeremybenn
 
9603 82 jeremybenn
if test "$hardcode_action" = relink ||
9604
   test "$inherit_rpath" = yes; then
9605 19 jeremybenn
  # Fast installation is not supported
9606
  enable_fast_install=no
9607
elif test "$shlibpath_overrides_runpath" = yes ||
9608
     test "$enable_shared" = no; then
9609
  # Fast installation is not necessary
9610
  enable_fast_install=needless
9611
fi
9612
 
9613
 
9614 82 jeremybenn
 
9615
 
9616
 
9617
 
9618
  if test "x$enable_dlopen" != xyes; then
9619 19 jeremybenn
  enable_dlopen=unknown
9620
  enable_dlopen_self=unknown
9621
  enable_dlopen_self_static=unknown
9622
else
9623
  lt_cv_dlopen=no
9624
  lt_cv_dlopen_libs=
9625
 
9626
  case $host_os in
9627
  beos*)
9628
    lt_cv_dlopen="load_add_on"
9629
    lt_cv_dlopen_libs=
9630
    lt_cv_dlopen_self=yes
9631
    ;;
9632
 
9633 82 jeremybenn
  mingw* | pw32* | cegcc*)
9634 19 jeremybenn
    lt_cv_dlopen="LoadLibrary"
9635
    lt_cv_dlopen_libs=
9636 82 jeremybenn
    ;;
9637 19 jeremybenn
 
9638
  cygwin*)
9639
    lt_cv_dlopen="dlopen"
9640
    lt_cv_dlopen_libs=
9641 82 jeremybenn
    ;;
9642 19 jeremybenn
 
9643
  darwin*)
9644
  # if libdl is installed we need to link against it
9645 82 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9646
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9647 19 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9648 82 jeremybenn
  $as_echo_n "(cached) " >&6
9649 19 jeremybenn
else
9650
  ac_check_lib_save_LIBS=$LIBS
9651
LIBS="-ldl  $LIBS"
9652
cat >conftest.$ac_ext <<_ACEOF
9653
/* confdefs.h.  */
9654
_ACEOF
9655
cat confdefs.h >>conftest.$ac_ext
9656
cat >>conftest.$ac_ext <<_ACEOF
9657
/* end confdefs.h.  */
9658
 
9659
/* Override any GCC internal prototype to avoid an error.
9660
   Use char because int might match the return type of a GCC
9661
   builtin and then its argument prototype would still apply.  */
9662
#ifdef __cplusplus
9663
extern "C"
9664
#endif
9665
char dlopen ();
9666
int
9667
main ()
9668
{
9669
return dlopen ();
9670
  ;
9671
  return 0;
9672
}
9673
_ACEOF
9674
rm -f conftest.$ac_objext conftest$ac_exeext
9675
if { (ac_try="$ac_link"
9676
case "(($ac_try" in
9677
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678
  *) ac_try_echo=$ac_try;;
9679
esac
9680 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9681
$as_echo "$ac_try_echo") >&5
9682 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
9683
  ac_status=$?
9684
  grep -v '^ *+' conftest.er1 >conftest.err
9685
  rm -f conftest.er1
9686
  cat conftest.err >&5
9687 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 19 jeremybenn
  (exit $ac_status); } && {
9689
         test -z "$ac_c_werror_flag" ||
9690
         test ! -s conftest.err
9691 82 jeremybenn
       } && test -s conftest$ac_exeext && {
9692
         test "$cross_compiling" = yes ||
9693
         $as_test_x conftest$ac_exeext
9694
       }; then
9695 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9696
else
9697 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9698 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9699
 
9700
        ac_cv_lib_dl_dlopen=no
9701
fi
9702
 
9703 82 jeremybenn
rm -rf conftest.dSYM
9704 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9705
      conftest$ac_exeext conftest.$ac_ext
9706
LIBS=$ac_check_lib_save_LIBS
9707
fi
9708 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9709
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9710
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9711 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9712
else
9713
 
9714
    lt_cv_dlopen="dyld"
9715
    lt_cv_dlopen_libs=
9716
    lt_cv_dlopen_self=yes
9717
 
9718
fi
9719
 
9720 82 jeremybenn
    ;;
9721 19 jeremybenn
 
9722
  *)
9723 82 jeremybenn
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9724
$as_echo_n "checking for shl_load... " >&6; }
9725 19 jeremybenn
if test "${ac_cv_func_shl_load+set}" = set; then
9726 82 jeremybenn
  $as_echo_n "(cached) " >&6
9727 19 jeremybenn
else
9728
  cat >conftest.$ac_ext <<_ACEOF
9729
/* confdefs.h.  */
9730
_ACEOF
9731
cat confdefs.h >>conftest.$ac_ext
9732
cat >>conftest.$ac_ext <<_ACEOF
9733
/* end confdefs.h.  */
9734
/* Define shl_load to an innocuous variant, in case  declares shl_load.
9735
   For example, HP-UX 11i  declares gettimeofday.  */
9736
#define shl_load innocuous_shl_load
9737
 
9738
/* System header to define __stub macros and hopefully few prototypes,
9739
    which can conflict with char shl_load (); below.
9740
    Prefer  to  if __STDC__ is defined, since
9741
     exists even on freestanding compilers.  */
9742
 
9743
#ifdef __STDC__
9744
# include 
9745
#else
9746
# include 
9747
#endif
9748
 
9749
#undef shl_load
9750
 
9751
/* Override any GCC internal prototype to avoid an error.
9752
   Use char because int might match the return type of a GCC
9753
   builtin and then its argument prototype would still apply.  */
9754
#ifdef __cplusplus
9755
extern "C"
9756
#endif
9757
char shl_load ();
9758
/* The GNU C library defines this for functions which it implements
9759
    to always fail with ENOSYS.  Some functions are actually named
9760
    something starting with __ and the normal name is an alias.  */
9761
#if defined __stub_shl_load || defined __stub___shl_load
9762
choke me
9763
#endif
9764
 
9765
int
9766
main ()
9767
{
9768
return shl_load ();
9769
  ;
9770
  return 0;
9771
}
9772
_ACEOF
9773
rm -f conftest.$ac_objext conftest$ac_exeext
9774
if { (ac_try="$ac_link"
9775
case "(($ac_try" in
9776
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777
  *) ac_try_echo=$ac_try;;
9778
esac
9779 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9780
$as_echo "$ac_try_echo") >&5
9781 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
9782
  ac_status=$?
9783
  grep -v '^ *+' conftest.er1 >conftest.err
9784
  rm -f conftest.er1
9785
  cat conftest.err >&5
9786 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 19 jeremybenn
  (exit $ac_status); } && {
9788
         test -z "$ac_c_werror_flag" ||
9789
         test ! -s conftest.err
9790 82 jeremybenn
       } && test -s conftest$ac_exeext && {
9791
         test "$cross_compiling" = yes ||
9792
         $as_test_x conftest$ac_exeext
9793
       }; then
9794 19 jeremybenn
  ac_cv_func_shl_load=yes
9795
else
9796 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9797 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9798
 
9799
        ac_cv_func_shl_load=no
9800
fi
9801
 
9802 82 jeremybenn
rm -rf conftest.dSYM
9803 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9804
      conftest$ac_exeext conftest.$ac_ext
9805
fi
9806 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9807
$as_echo "$ac_cv_func_shl_load" >&6; }
9808
if test "x$ac_cv_func_shl_load" = x""yes; then
9809 19 jeremybenn
  lt_cv_dlopen="shl_load"
9810
else
9811 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9812
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9813 19 jeremybenn
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9814 82 jeremybenn
  $as_echo_n "(cached) " >&6
9815 19 jeremybenn
else
9816
  ac_check_lib_save_LIBS=$LIBS
9817
LIBS="-ldld  $LIBS"
9818
cat >conftest.$ac_ext <<_ACEOF
9819
/* confdefs.h.  */
9820
_ACEOF
9821
cat confdefs.h >>conftest.$ac_ext
9822
cat >>conftest.$ac_ext <<_ACEOF
9823
/* end confdefs.h.  */
9824
 
9825
/* Override any GCC internal prototype to avoid an error.
9826
   Use char because int might match the return type of a GCC
9827
   builtin and then its argument prototype would still apply.  */
9828
#ifdef __cplusplus
9829
extern "C"
9830
#endif
9831
char shl_load ();
9832
int
9833
main ()
9834
{
9835
return shl_load ();
9836
  ;
9837
  return 0;
9838
}
9839
_ACEOF
9840
rm -f conftest.$ac_objext conftest$ac_exeext
9841
if { (ac_try="$ac_link"
9842
case "(($ac_try" in
9843
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844
  *) ac_try_echo=$ac_try;;
9845
esac
9846 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9847
$as_echo "$ac_try_echo") >&5
9848 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
9849
  ac_status=$?
9850
  grep -v '^ *+' conftest.er1 >conftest.err
9851
  rm -f conftest.er1
9852
  cat conftest.err >&5
9853 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 19 jeremybenn
  (exit $ac_status); } && {
9855
         test -z "$ac_c_werror_flag" ||
9856
         test ! -s conftest.err
9857 82 jeremybenn
       } && test -s conftest$ac_exeext && {
9858
         test "$cross_compiling" = yes ||
9859
         $as_test_x conftest$ac_exeext
9860
       }; then
9861 19 jeremybenn
  ac_cv_lib_dld_shl_load=yes
9862
else
9863 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9864 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9865
 
9866
        ac_cv_lib_dld_shl_load=no
9867
fi
9868
 
9869 82 jeremybenn
rm -rf conftest.dSYM
9870 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9871
      conftest$ac_exeext conftest.$ac_ext
9872
LIBS=$ac_check_lib_save_LIBS
9873
fi
9874 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9875
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9876
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
9877
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9878 19 jeremybenn
else
9879 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9880
$as_echo_n "checking for dlopen... " >&6; }
9881 19 jeremybenn
if test "${ac_cv_func_dlopen+set}" = set; then
9882 82 jeremybenn
  $as_echo_n "(cached) " >&6
9883 19 jeremybenn
else
9884
  cat >conftest.$ac_ext <<_ACEOF
9885
/* confdefs.h.  */
9886
_ACEOF
9887
cat confdefs.h >>conftest.$ac_ext
9888
cat >>conftest.$ac_ext <<_ACEOF
9889
/* end confdefs.h.  */
9890
/* Define dlopen to an innocuous variant, in case  declares dlopen.
9891
   For example, HP-UX 11i  declares gettimeofday.  */
9892
#define dlopen innocuous_dlopen
9893
 
9894
/* System header to define __stub macros and hopefully few prototypes,
9895
    which can conflict with char dlopen (); below.
9896
    Prefer  to  if __STDC__ is defined, since
9897
     exists even on freestanding compilers.  */
9898
 
9899
#ifdef __STDC__
9900
# include 
9901
#else
9902
# include 
9903
#endif
9904
 
9905
#undef dlopen
9906
 
9907
/* Override any GCC internal prototype to avoid an error.
9908
   Use char because int might match the return type of a GCC
9909
   builtin and then its argument prototype would still apply.  */
9910
#ifdef __cplusplus
9911
extern "C"
9912
#endif
9913
char dlopen ();
9914
/* The GNU C library defines this for functions which it implements
9915
    to always fail with ENOSYS.  Some functions are actually named
9916
    something starting with __ and the normal name is an alias.  */
9917
#if defined __stub_dlopen || defined __stub___dlopen
9918
choke me
9919
#endif
9920
 
9921
int
9922
main ()
9923
{
9924
return dlopen ();
9925
  ;
9926
  return 0;
9927
}
9928
_ACEOF
9929
rm -f conftest.$ac_objext conftest$ac_exeext
9930
if { (ac_try="$ac_link"
9931
case "(($ac_try" in
9932
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933
  *) ac_try_echo=$ac_try;;
9934
esac
9935 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9936
$as_echo "$ac_try_echo") >&5
9937 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
9938
  ac_status=$?
9939
  grep -v '^ *+' conftest.er1 >conftest.err
9940
  rm -f conftest.er1
9941
  cat conftest.err >&5
9942 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 19 jeremybenn
  (exit $ac_status); } && {
9944
         test -z "$ac_c_werror_flag" ||
9945
         test ! -s conftest.err
9946 82 jeremybenn
       } && test -s conftest$ac_exeext && {
9947
         test "$cross_compiling" = yes ||
9948
         $as_test_x conftest$ac_exeext
9949
       }; then
9950 19 jeremybenn
  ac_cv_func_dlopen=yes
9951
else
9952 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
9953 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
9954
 
9955
        ac_cv_func_dlopen=no
9956
fi
9957
 
9958 82 jeremybenn
rm -rf conftest.dSYM
9959 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9960
      conftest$ac_exeext conftest.$ac_ext
9961
fi
9962 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9963
$as_echo "$ac_cv_func_dlopen" >&6; }
9964
if test "x$ac_cv_func_dlopen" = x""yes; then
9965 19 jeremybenn
  lt_cv_dlopen="dlopen"
9966
else
9967 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9968
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9969 19 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9970 82 jeremybenn
  $as_echo_n "(cached) " >&6
9971 19 jeremybenn
else
9972
  ac_check_lib_save_LIBS=$LIBS
9973
LIBS="-ldl  $LIBS"
9974
cat >conftest.$ac_ext <<_ACEOF
9975
/* confdefs.h.  */
9976
_ACEOF
9977
cat confdefs.h >>conftest.$ac_ext
9978
cat >>conftest.$ac_ext <<_ACEOF
9979
/* end confdefs.h.  */
9980
 
9981
/* Override any GCC internal prototype to avoid an error.
9982
   Use char because int might match the return type of a GCC
9983
   builtin and then its argument prototype would still apply.  */
9984
#ifdef __cplusplus
9985
extern "C"
9986
#endif
9987
char dlopen ();
9988
int
9989
main ()
9990
{
9991
return dlopen ();
9992
  ;
9993
  return 0;
9994
}
9995
_ACEOF
9996
rm -f conftest.$ac_objext conftest$ac_exeext
9997
if { (ac_try="$ac_link"
9998
case "(($ac_try" in
9999
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000
  *) ac_try_echo=$ac_try;;
10001
esac
10002 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10003
$as_echo "$ac_try_echo") >&5
10004 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
10005
  ac_status=$?
10006
  grep -v '^ *+' conftest.er1 >conftest.err
10007
  rm -f conftest.er1
10008
  cat conftest.err >&5
10009 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 19 jeremybenn
  (exit $ac_status); } && {
10011
         test -z "$ac_c_werror_flag" ||
10012
         test ! -s conftest.err
10013 82 jeremybenn
       } && test -s conftest$ac_exeext && {
10014
         test "$cross_compiling" = yes ||
10015
         $as_test_x conftest$ac_exeext
10016
       }; then
10017 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
10018
else
10019 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10020 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10021
 
10022
        ac_cv_lib_dl_dlopen=no
10023
fi
10024
 
10025 82 jeremybenn
rm -rf conftest.dSYM
10026 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10027
      conftest$ac_exeext conftest.$ac_ext
10028
LIBS=$ac_check_lib_save_LIBS
10029
fi
10030 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10031
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10032
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10033 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10034
else
10035 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10036
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10037 19 jeremybenn
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10038 82 jeremybenn
  $as_echo_n "(cached) " >&6
10039 19 jeremybenn
else
10040
  ac_check_lib_save_LIBS=$LIBS
10041
LIBS="-lsvld  $LIBS"
10042
cat >conftest.$ac_ext <<_ACEOF
10043
/* confdefs.h.  */
10044
_ACEOF
10045
cat confdefs.h >>conftest.$ac_ext
10046
cat >>conftest.$ac_ext <<_ACEOF
10047
/* end confdefs.h.  */
10048
 
10049
/* Override any GCC internal prototype to avoid an error.
10050
   Use char because int might match the return type of a GCC
10051
   builtin and then its argument prototype would still apply.  */
10052
#ifdef __cplusplus
10053
extern "C"
10054
#endif
10055
char dlopen ();
10056
int
10057
main ()
10058
{
10059
return dlopen ();
10060
  ;
10061
  return 0;
10062
}
10063
_ACEOF
10064
rm -f conftest.$ac_objext conftest$ac_exeext
10065
if { (ac_try="$ac_link"
10066
case "(($ac_try" in
10067
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068
  *) ac_try_echo=$ac_try;;
10069
esac
10070 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10071
$as_echo "$ac_try_echo") >&5
10072 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
10073
  ac_status=$?
10074
  grep -v '^ *+' conftest.er1 >conftest.err
10075
  rm -f conftest.er1
10076
  cat conftest.err >&5
10077 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 19 jeremybenn
  (exit $ac_status); } && {
10079
         test -z "$ac_c_werror_flag" ||
10080
         test ! -s conftest.err
10081 82 jeremybenn
       } && test -s conftest$ac_exeext && {
10082
         test "$cross_compiling" = yes ||
10083
         $as_test_x conftest$ac_exeext
10084
       }; then
10085 19 jeremybenn
  ac_cv_lib_svld_dlopen=yes
10086
else
10087 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10088 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10089
 
10090
        ac_cv_lib_svld_dlopen=no
10091
fi
10092
 
10093 82 jeremybenn
rm -rf conftest.dSYM
10094 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10095
      conftest$ac_exeext conftest.$ac_ext
10096
LIBS=$ac_check_lib_save_LIBS
10097
fi
10098 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10099
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10100
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10101 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10102
else
10103 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10104
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10105 19 jeremybenn
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10106 82 jeremybenn
  $as_echo_n "(cached) " >&6
10107 19 jeremybenn
else
10108
  ac_check_lib_save_LIBS=$LIBS
10109
LIBS="-ldld  $LIBS"
10110
cat >conftest.$ac_ext <<_ACEOF
10111
/* confdefs.h.  */
10112
_ACEOF
10113
cat confdefs.h >>conftest.$ac_ext
10114
cat >>conftest.$ac_ext <<_ACEOF
10115
/* end confdefs.h.  */
10116
 
10117
/* Override any GCC internal prototype to avoid an error.
10118
   Use char because int might match the return type of a GCC
10119
   builtin and then its argument prototype would still apply.  */
10120
#ifdef __cplusplus
10121
extern "C"
10122
#endif
10123
char dld_link ();
10124
int
10125
main ()
10126
{
10127
return dld_link ();
10128
  ;
10129
  return 0;
10130
}
10131
_ACEOF
10132
rm -f conftest.$ac_objext conftest$ac_exeext
10133
if { (ac_try="$ac_link"
10134
case "(($ac_try" in
10135
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136
  *) ac_try_echo=$ac_try;;
10137
esac
10138 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10139
$as_echo "$ac_try_echo") >&5
10140 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
10141
  ac_status=$?
10142
  grep -v '^ *+' conftest.er1 >conftest.err
10143
  rm -f conftest.er1
10144
  cat conftest.err >&5
10145 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 19 jeremybenn
  (exit $ac_status); } && {
10147
         test -z "$ac_c_werror_flag" ||
10148
         test ! -s conftest.err
10149 82 jeremybenn
       } && test -s conftest$ac_exeext && {
10150
         test "$cross_compiling" = yes ||
10151
         $as_test_x conftest$ac_exeext
10152
       }; then
10153 19 jeremybenn
  ac_cv_lib_dld_dld_link=yes
10154
else
10155 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
10156 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
10157
 
10158
        ac_cv_lib_dld_dld_link=no
10159
fi
10160
 
10161 82 jeremybenn
rm -rf conftest.dSYM
10162 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10163
      conftest$ac_exeext conftest.$ac_ext
10164
LIBS=$ac_check_lib_save_LIBS
10165
fi
10166 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10167
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10168
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10169
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10170 19 jeremybenn
fi
10171
 
10172
 
10173
fi
10174
 
10175
 
10176
fi
10177
 
10178
 
10179
fi
10180
 
10181
 
10182
fi
10183
 
10184
 
10185
fi
10186
 
10187
    ;;
10188
  esac
10189
 
10190
  if test "x$lt_cv_dlopen" != xno; then
10191
    enable_dlopen=yes
10192
  else
10193
    enable_dlopen=no
10194
  fi
10195
 
10196
  case $lt_cv_dlopen in
10197
  dlopen)
10198
    save_CPPFLAGS="$CPPFLAGS"
10199
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10200
 
10201
    save_LDFLAGS="$LDFLAGS"
10202
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10203
 
10204
    save_LIBS="$LIBS"
10205
    LIBS="$lt_cv_dlopen_libs $LIBS"
10206
 
10207 82 jeremybenn
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10208
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10209 19 jeremybenn
if test "${lt_cv_dlopen_self+set}" = set; then
10210 82 jeremybenn
  $as_echo_n "(cached) " >&6
10211 19 jeremybenn
else
10212
          if test "$cross_compiling" = yes; then :
10213
  lt_cv_dlopen_self=cross
10214
else
10215
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10216
  lt_status=$lt_dlunknown
10217 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
10218
#line 10218 "configure"
10219 19 jeremybenn
#include "confdefs.h"
10220
 
10221
#if HAVE_DLFCN_H
10222
#include 
10223
#endif
10224
 
10225
#include 
10226
 
10227
#ifdef RTLD_GLOBAL
10228
#  define LT_DLGLOBAL           RTLD_GLOBAL
10229
#else
10230
#  ifdef DL_GLOBAL
10231
#    define LT_DLGLOBAL         DL_GLOBAL
10232
#  else
10233
#    define LT_DLGLOBAL         0
10234
#  endif
10235
#endif
10236
 
10237
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10238
   find out it does not work in some platform. */
10239
#ifndef LT_DLLAZY_OR_NOW
10240
#  ifdef RTLD_LAZY
10241
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10242
#  else
10243
#    ifdef DL_LAZY
10244
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10245
#    else
10246
#      ifdef RTLD_NOW
10247
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10248
#      else
10249
#        ifdef DL_NOW
10250
#          define LT_DLLAZY_OR_NOW      DL_NOW
10251
#        else
10252
#          define LT_DLLAZY_OR_NOW      0
10253
#        endif
10254
#      endif
10255
#    endif
10256
#  endif
10257
#endif
10258
 
10259
void fnord() { int i=42;}
10260
int main ()
10261
{
10262
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10263
  int status = $lt_dlunknown;
10264
 
10265
  if (self)
10266
    {
10267
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10268
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10269
      /* dlclose (self); */
10270
    }
10271
  else
10272
    puts (dlerror ());
10273
 
10274 82 jeremybenn
  return status;
10275 19 jeremybenn
}
10276 82 jeremybenn
_LT_EOF
10277 19 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10278
  (eval $ac_link) 2>&5
10279
  ac_status=$?
10280 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 19 jeremybenn
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10282
    (./conftest; exit; ) >&5 2>/dev/null
10283
    lt_status=$?
10284
    case x$lt_status in
10285
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10286
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10287
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10288
    esac
10289
  else :
10290
    # compilation failed
10291
    lt_cv_dlopen_self=no
10292
  fi
10293
fi
10294
rm -fr conftest*
10295
 
10296
 
10297
fi
10298 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10299
$as_echo "$lt_cv_dlopen_self" >&6; }
10300 19 jeremybenn
 
10301
    if test "x$lt_cv_dlopen_self" = xyes; then
10302
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10303 82 jeremybenn
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10304
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10305 19 jeremybenn
if test "${lt_cv_dlopen_self_static+set}" = set; then
10306 82 jeremybenn
  $as_echo_n "(cached) " >&6
10307 19 jeremybenn
else
10308
          if test "$cross_compiling" = yes; then :
10309
  lt_cv_dlopen_self_static=cross
10310
else
10311
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10312
  lt_status=$lt_dlunknown
10313 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
10314
#line 10314 "configure"
10315 19 jeremybenn
#include "confdefs.h"
10316
 
10317
#if HAVE_DLFCN_H
10318
#include 
10319
#endif
10320
 
10321
#include 
10322
 
10323
#ifdef RTLD_GLOBAL
10324
#  define LT_DLGLOBAL           RTLD_GLOBAL
10325
#else
10326
#  ifdef DL_GLOBAL
10327
#    define LT_DLGLOBAL         DL_GLOBAL
10328
#  else
10329
#    define LT_DLGLOBAL         0
10330
#  endif
10331
#endif
10332
 
10333
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10334
   find out it does not work in some platform. */
10335
#ifndef LT_DLLAZY_OR_NOW
10336
#  ifdef RTLD_LAZY
10337
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10338
#  else
10339
#    ifdef DL_LAZY
10340
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10341
#    else
10342
#      ifdef RTLD_NOW
10343
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10344
#      else
10345
#        ifdef DL_NOW
10346
#          define LT_DLLAZY_OR_NOW      DL_NOW
10347
#        else
10348
#          define LT_DLLAZY_OR_NOW      0
10349
#        endif
10350
#      endif
10351
#    endif
10352
#  endif
10353
#endif
10354
 
10355
void fnord() { int i=42;}
10356
int main ()
10357
{
10358
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10359
  int status = $lt_dlunknown;
10360
 
10361
  if (self)
10362
    {
10363
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10364
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10365
      /* dlclose (self); */
10366
    }
10367
  else
10368
    puts (dlerror ());
10369
 
10370 82 jeremybenn
  return status;
10371 19 jeremybenn
}
10372 82 jeremybenn
_LT_EOF
10373 19 jeremybenn
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10374
  (eval $ac_link) 2>&5
10375
  ac_status=$?
10376 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 19 jeremybenn
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10378
    (./conftest; exit; ) >&5 2>/dev/null
10379
    lt_status=$?
10380
    case x$lt_status in
10381
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10382
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10383
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10384
    esac
10385
  else :
10386
    # compilation failed
10387
    lt_cv_dlopen_self_static=no
10388
  fi
10389
fi
10390
rm -fr conftest*
10391
 
10392
 
10393
fi
10394 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10395
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10396 19 jeremybenn
    fi
10397
 
10398
    CPPFLAGS="$save_CPPFLAGS"
10399
    LDFLAGS="$save_LDFLAGS"
10400
    LIBS="$save_LIBS"
10401
    ;;
10402
  esac
10403
 
10404
  case $lt_cv_dlopen_self in
10405
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10406
  *) enable_dlopen_self=unknown ;;
10407
  esac
10408
 
10409
  case $lt_cv_dlopen_self_static in
10410
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10411
  *) enable_dlopen_self_static=unknown ;;
10412
  esac
10413
fi
10414
 
10415
 
10416
 
10417
 
10418
 
10419
 
10420
 
10421
 
10422
 
10423
 
10424
 
10425
 
10426
 
10427
 
10428
 
10429
 
10430
 
10431 82 jeremybenn
striplib=
10432
old_striplib=
10433
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10434
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10435
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10436
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10437
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10438
  { $as_echo "$as_me:$LINENO: result: yes" >&5
10439
$as_echo "yes" >&6; }
10440
else
10441
# FIXME - insert some real tests, host_os isn't really good enough
10442 19 jeremybenn
  case $host_os in
10443 82 jeremybenn
  darwin*)
10444
    if test -n "$STRIP" ; then
10445
      striplib="$STRIP -x"
10446
      old_striplib="$STRIP -S"
10447
      { $as_echo "$as_me:$LINENO: result: yes" >&5
10448
$as_echo "yes" >&6; }
10449 19 jeremybenn
    else
10450 82 jeremybenn
      { $as_echo "$as_me:$LINENO: result: no" >&5
10451
$as_echo "no" >&6; }
10452 19 jeremybenn
    fi
10453
    ;;
10454
  *)
10455 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: no" >&5
10456
$as_echo "no" >&6; }
10457 19 jeremybenn
    ;;
10458
  esac
10459
fi
10460
 
10461
 
10462
 
10463
 
10464
 
10465
 
10466
 
10467
 
10468
 
10469
 
10470
 
10471
 
10472 82 jeremybenn
  # Report which library types will actually be built
10473
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10474
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10475
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10476
$as_echo "$can_build_shared" >&6; }
10477 19 jeremybenn
 
10478 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10479
$as_echo_n "checking whether to build shared libraries... " >&6; }
10480
  test "$can_build_shared" = "no" && enable_shared=no
10481 19 jeremybenn
 
10482 82 jeremybenn
  # On AIX, shared libraries and static libraries use the same namespace, and
10483
  # are all built from PIC.
10484 19 jeremybenn
  case $host_os in
10485 82 jeremybenn
  aix3*)
10486 19 jeremybenn
    test "$enable_shared" = yes && enable_static=no
10487 82 jeremybenn
    if test -n "$RANLIB"; then
10488
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10489
      postinstall_cmds='$RANLIB $lib'
10490 19 jeremybenn
    fi
10491
    ;;
10492
 
10493 82 jeremybenn
  aix[4-9]*)
10494
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10495
      test "$enable_shared" = yes && enable_static=no
10496 19 jeremybenn
    fi
10497
    ;;
10498
  esac
10499 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10500
$as_echo "$enable_shared" >&6; }
10501 19 jeremybenn
 
10502 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10503
$as_echo_n "checking whether to build static libraries... " >&6; }
10504
  # Make sure either enable_shared or enable_static is yes.
10505
  test "$enable_shared" = yes || enable_static=yes
10506
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10507
$as_echo "$enable_static" >&6; }
10508 19 jeremybenn
 
10509
 
10510
 
10511
 
10512
fi
10513
ac_ext=c
10514
ac_cpp='$CPP $CPPFLAGS'
10515
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10516
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10517
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10518
 
10519
CC="$lt_save_CC"
10520
 
10521
 
10522
 
10523
 
10524
 
10525
 
10526
 
10527
 
10528
 
10529
 
10530
 
10531
 
10532
 
10533 82 jeremybenn
        ac_config_commands="$ac_config_commands libtool"
10534 19 jeremybenn
 
10535
 
10536
 
10537
 
10538 82 jeremybenn
# Only expand once:
10539 19 jeremybenn
 
10540
 
10541 82 jeremybenn
am__api_version='1.11'
10542 19 jeremybenn
 
10543
# Find a good install program.  We prefer a C program (faster),
10544
# so one script is as good as another.  But avoid the broken or
10545
# incompatible versions:
10546
# SysV /etc/install, /usr/sbin/install
10547
# SunOS /usr/etc/install
10548
# IRIX /sbin/install
10549
# AIX /bin/install
10550
# AmigaOS /C/install, which installs bootblocks on floppy discs
10551
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10552
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10553
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10554
# OS/2's system install, which has a completely different semantic
10555
# ./install, which can be erroneously created by make from ./install.sh.
10556 82 jeremybenn
# Reject install programs that cannot install multiple files.
10557
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10558
$as_echo_n "checking for a BSD-compatible install... " >&6; }
10559 19 jeremybenn
if test -z "$INSTALL"; then
10560
if test "${ac_cv_path_install+set}" = set; then
10561 82 jeremybenn
  $as_echo_n "(cached) " >&6
10562 19 jeremybenn
else
10563
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10564
for as_dir in $PATH
10565
do
10566
  IFS=$as_save_IFS
10567
  test -z "$as_dir" && as_dir=.
10568
  # Account for people who put trailing slashes in PATH elements.
10569
case $as_dir/ in
10570
  ./ | .// | /cC/* | \
10571
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10572
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10573
  /usr/ucb/* ) ;;
10574
  *)
10575
    # OSF1 and SCO ODT 3.0 have their own names for install.
10576
    # Don't use installbsd from OSF since it installs stuff as root
10577
    # by default.
10578
    for ac_prog in ginstall scoinst install; do
10579
      for ac_exec_ext in '' $ac_executable_extensions; do
10580
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10581
          if test $ac_prog = install &&
10582
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10583
            # AIX install.  It has an incompatible calling convention.
10584
            :
10585
          elif test $ac_prog = install &&
10586
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10587
            # program-specific install script used by HP pwplus--don't use.
10588
            :
10589
          else
10590 82 jeremybenn
            rm -rf conftest.one conftest.two conftest.dir
10591
            echo one > conftest.one
10592
            echo two > conftest.two
10593
            mkdir conftest.dir
10594
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10595
              test -s conftest.one && test -s conftest.two &&
10596
              test -s conftest.dir/conftest.one &&
10597
              test -s conftest.dir/conftest.two
10598
            then
10599
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10600
              break 3
10601
            fi
10602 19 jeremybenn
          fi
10603
        fi
10604
      done
10605
    done
10606
    ;;
10607
esac
10608 82 jeremybenn
 
10609 19 jeremybenn
done
10610
IFS=$as_save_IFS
10611
 
10612 82 jeremybenn
rm -rf conftest.one conftest.two conftest.dir
10613 19 jeremybenn
 
10614
fi
10615
  if test "${ac_cv_path_install+set}" = set; then
10616
    INSTALL=$ac_cv_path_install
10617
  else
10618
    # As a last resort, use the slow shell script.  Don't cache a
10619
    # value for INSTALL within a source directory, because that will
10620
    # break other packages using the cache if that directory is
10621
    # removed, or if the value is a relative name.
10622
    INSTALL=$ac_install_sh
10623
  fi
10624
fi
10625 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10626
$as_echo "$INSTALL" >&6; }
10627 19 jeremybenn
 
10628
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10629
# It thinks the first close brace ends the variable substitution.
10630
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10631
 
10632
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10633
 
10634
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10635
 
10636 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
10637
$as_echo_n "checking whether build environment is sane... " >&6; }
10638 19 jeremybenn
# Just in case
10639
sleep 1
10640
echo timestamp > conftest.file
10641 82 jeremybenn
# Reject unsafe characters in $srcdir or the absolute working directory
10642
# name.  Accept space and tab only in the latter.
10643
am_lf='
10644
'
10645
case `pwd` in
10646
  *[\\\"\#\$\&\'\`$am_lf]*)
10647
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
10648
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
10649
   { (exit 1); exit 1; }; };;
10650
esac
10651
case $srcdir in
10652
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
10653
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
10654
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
10655
   { (exit 1); exit 1; }; };;
10656
esac
10657
 
10658 19 jeremybenn
# Do `set' in a subshell so we don't clobber the current shell's
10659
# arguments.  Must try -L first in case configure is actually a
10660
# symlink; some systems play weird games with the mod time of symlinks
10661
# (eg FreeBSD returns the mod time of the symlink's containing
10662
# directory).
10663
if (
10664 82 jeremybenn
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10665 19 jeremybenn
   if test "$*" = "X"; then
10666
      # -L didn't work.
10667 82 jeremybenn
      set X `ls -t "$srcdir/configure" conftest.file`
10668 19 jeremybenn
   fi
10669
   rm -f conftest.file
10670
   if test "$*" != "X $srcdir/configure conftest.file" \
10671
      && test "$*" != "X conftest.file $srcdir/configure"; then
10672
 
10673
      # If neither matched, then we have a broken ls.  This can happen
10674
      # if, for instance, CONFIG_SHELL is bash and it inherits a
10675
      # broken ls alias from the environment.  This has actually
10676
      # happened.  Such a system could not be considered "sane".
10677 82 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
10678 19 jeremybenn
alias in your environment" >&5
10679 82 jeremybenn
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
10680 19 jeremybenn
alias in your environment" >&2;}
10681
   { (exit 1); exit 1; }; }
10682
   fi
10683
 
10684
   test "$2" = conftest.file
10685
   )
10686
then
10687
   # Ok.
10688
   :
10689
else
10690 82 jeremybenn
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
10691 19 jeremybenn
Check your system clock" >&5
10692 82 jeremybenn
$as_echo "$as_me: error: newly created file is older than distributed files!
10693 19 jeremybenn
Check your system clock" >&2;}
10694
   { (exit 1); exit 1; }; }
10695
fi
10696 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: yes" >&5
10697
$as_echo "yes" >&6; }
10698 19 jeremybenn
test "$program_prefix" != NONE &&
10699
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10700
# Use a double $ so make ignores it.
10701
test "$program_suffix" != NONE &&
10702
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10703 82 jeremybenn
# Double any \ or $.
10704 19 jeremybenn
# By default was `s,x,x', remove it if useless.
10705 82 jeremybenn
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10706
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10707 19 jeremybenn
 
10708
# expand $ac_aux_dir to an absolute path
10709
am_aux_dir=`cd $ac_aux_dir && pwd`
10710
 
10711 82 jeremybenn
if test x"${MISSING+set}" != xset; then
10712
  case $am_aux_dir in
10713
  *\ * | *\     *)
10714
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10715
  *)
10716
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10717
  esac
10718
fi
10719 19 jeremybenn
# Use eval to expand $SHELL
10720
if eval "$MISSING --run true"; then
10721
  am_missing_run="$MISSING --run "
10722
else
10723
  am_missing_run=
10724 82 jeremybenn
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
10725
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10726 19 jeremybenn
fi
10727
 
10728 82 jeremybenn
if test x"${install_sh}" != xset; then
10729
  case $am_aux_dir in
10730
  *\ * | *\     *)
10731
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10732
  *)
10733
    install_sh="\${SHELL} $am_aux_dir/install-sh"
10734
  esac
10735
fi
10736
 
10737
# Installed binaries are usually stripped using `strip' when the user
10738
# run `make install-strip'.  However `strip' might not be the right
10739
# tool to use in cross-compilation environments, therefore Automake
10740
# will honor the `STRIP' environment variable to overrule this program.
10741
if test "$cross_compiling" != no; then
10742
  if test -n "$ac_tool_prefix"; then
10743
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10744
set dummy ${ac_tool_prefix}strip; ac_word=$2
10745
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10746
$as_echo_n "checking for $ac_word... " >&6; }
10747
if test "${ac_cv_prog_STRIP+set}" = set; then
10748
  $as_echo_n "(cached) " >&6
10749
else
10750
  if test -n "$STRIP"; then
10751
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10752
else
10753
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10754
for as_dir in $PATH
10755
do
10756
  IFS=$as_save_IFS
10757
  test -z "$as_dir" && as_dir=.
10758
  for ac_exec_ext in '' $ac_executable_extensions; do
10759
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10760
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10761
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10762
    break 2
10763
  fi
10764
done
10765
done
10766
IFS=$as_save_IFS
10767
 
10768
fi
10769
fi
10770
STRIP=$ac_cv_prog_STRIP
10771
if test -n "$STRIP"; then
10772
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
10773
$as_echo "$STRIP" >&6; }
10774
else
10775
  { $as_echo "$as_me:$LINENO: result: no" >&5
10776
$as_echo "no" >&6; }
10777
fi
10778
 
10779
 
10780
fi
10781
if test -z "$ac_cv_prog_STRIP"; then
10782
  ac_ct_STRIP=$STRIP
10783
  # Extract the first word of "strip", so it can be a program name with args.
10784
set dummy strip; ac_word=$2
10785
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10786
$as_echo_n "checking for $ac_word... " >&6; }
10787
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10788
  $as_echo_n "(cached) " >&6
10789
else
10790
  if test -n "$ac_ct_STRIP"; then
10791
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10792
else
10793
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10794
for as_dir in $PATH
10795
do
10796
  IFS=$as_save_IFS
10797
  test -z "$as_dir" && as_dir=.
10798
  for ac_exec_ext in '' $ac_executable_extensions; do
10799
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10800
    ac_cv_prog_ac_ct_STRIP="strip"
10801
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10802
    break 2
10803
  fi
10804
done
10805
done
10806
IFS=$as_save_IFS
10807
 
10808
fi
10809
fi
10810
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10811
if test -n "$ac_ct_STRIP"; then
10812
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10813
$as_echo "$ac_ct_STRIP" >&6; }
10814
else
10815
  { $as_echo "$as_me:$LINENO: result: no" >&5
10816
$as_echo "no" >&6; }
10817
fi
10818
 
10819
  if test "x$ac_ct_STRIP" = x; then
10820
    STRIP=":"
10821
  else
10822
    case $cross_compiling:$ac_tool_warned in
10823
yes:)
10824
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10825
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10826
ac_tool_warned=yes ;;
10827
esac
10828
    STRIP=$ac_ct_STRIP
10829
  fi
10830
else
10831
  STRIP="$ac_cv_prog_STRIP"
10832
fi
10833
 
10834
fi
10835
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10836
 
10837
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
10838
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10839 19 jeremybenn
if test -z "$MKDIR_P"; then
10840
  if test "${ac_cv_path_mkdir+set}" = set; then
10841 82 jeremybenn
  $as_echo_n "(cached) " >&6
10842 19 jeremybenn
else
10843
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10845
do
10846
  IFS=$as_save_IFS
10847
  test -z "$as_dir" && as_dir=.
10848
  for ac_prog in mkdir gmkdir; do
10849
         for ac_exec_ext in '' $ac_executable_extensions; do
10850
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10851
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10852
             'mkdir (GNU coreutils) '* | \
10853
             'mkdir (coreutils) '* | \
10854
             'mkdir (fileutils) '4.1*)
10855
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10856
               break 3;;
10857
           esac
10858
         done
10859
       done
10860
done
10861
IFS=$as_save_IFS
10862
 
10863
fi
10864
 
10865
  if test "${ac_cv_path_mkdir+set}" = set; then
10866
    MKDIR_P="$ac_cv_path_mkdir -p"
10867
  else
10868
    # As a last resort, use the slow shell script.  Don't cache a
10869
    # value for MKDIR_P within a source directory, because that will
10870
    # break other packages using the cache if that directory is
10871
    # removed, or if the value is a relative name.
10872
    test -d ./--version && rmdir ./--version
10873
    MKDIR_P="$ac_install_sh -d"
10874
  fi
10875
fi
10876 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
10877
$as_echo "$MKDIR_P" >&6; }
10878 19 jeremybenn
 
10879
mkdir_p="$MKDIR_P"
10880
case $mkdir_p in
10881
  [\\/$]* | ?:[\\/]*) ;;
10882
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10883
esac
10884
 
10885
for ac_prog in gawk mawk nawk awk
10886
do
10887
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10888
set dummy $ac_prog; ac_word=$2
10889 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10890
$as_echo_n "checking for $ac_word... " >&6; }
10891 19 jeremybenn
if test "${ac_cv_prog_AWK+set}" = set; then
10892 82 jeremybenn
  $as_echo_n "(cached) " >&6
10893 19 jeremybenn
else
10894
  if test -n "$AWK"; then
10895
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10896
else
10897
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10898
for as_dir in $PATH
10899
do
10900
  IFS=$as_save_IFS
10901
  test -z "$as_dir" && as_dir=.
10902
  for ac_exec_ext in '' $ac_executable_extensions; do
10903
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10904
    ac_cv_prog_AWK="$ac_prog"
10905 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10906 19 jeremybenn
    break 2
10907
  fi
10908
done
10909
done
10910
IFS=$as_save_IFS
10911
 
10912
fi
10913
fi
10914
AWK=$ac_cv_prog_AWK
10915
if test -n "$AWK"; then
10916 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
10917
$as_echo "$AWK" >&6; }
10918 19 jeremybenn
else
10919 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
10920
$as_echo "no" >&6; }
10921 19 jeremybenn
fi
10922
 
10923
 
10924
  test -n "$AWK" && break
10925
done
10926
 
10927 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10928
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10929
set x ${MAKE-make}
10930
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10931 19 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10932 82 jeremybenn
  $as_echo_n "(cached) " >&6
10933 19 jeremybenn
else
10934
  cat >conftest.make <<\_ACEOF
10935
SHELL = /bin/sh
10936
all:
10937
        @echo '@@@%%%=$(MAKE)=@@@%%%'
10938
_ACEOF
10939
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10940
case `${MAKE-make} -f conftest.make 2>/dev/null` in
10941
  *@@@%%%=?*=@@@%%%*)
10942
    eval ac_cv_prog_make_${ac_make}_set=yes;;
10943
  *)
10944
    eval ac_cv_prog_make_${ac_make}_set=no;;
10945
esac
10946
rm -f conftest.make
10947
fi
10948
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10949 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
10950
$as_echo "yes" >&6; }
10951 19 jeremybenn
  SET_MAKE=
10952
else
10953 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
10954
$as_echo "no" >&6; }
10955 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
10956
fi
10957
 
10958
rm -rf .tst 2>/dev/null
10959
mkdir .tst 2>/dev/null
10960
if test -d .tst; then
10961
  am__leading_dot=.
10962
else
10963
  am__leading_dot=_
10964
fi
10965
rmdir .tst 2>/dev/null
10966
 
10967
DEPDIR="${am__leading_dot}deps"
10968
 
10969
ac_config_commands="$ac_config_commands depfiles"
10970
 
10971
 
10972
am_make=${MAKE-make}
10973
cat > confinc << 'END'
10974
am__doit:
10975 82 jeremybenn
        @echo this is the am__doit target
10976 19 jeremybenn
.PHONY: am__doit
10977
END
10978
# If we don't find an include directive, just comment out the code.
10979 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
10980
$as_echo_n "checking for style of include used by $am_make... " >&6; }
10981 19 jeremybenn
am__include="#"
10982
am__quote=
10983
_am_result=none
10984
# First try GNU make style include.
10985
echo "include confinc" > confmf
10986 82 jeremybenn
# Ignore all kinds of additional output from `make'.
10987
case `$am_make -s -f confmf 2> /dev/null` in #(
10988
*the\ am__doit\ target*)
10989
  am__include=include
10990
  am__quote=
10991
  _am_result=GNU
10992
  ;;
10993
esac
10994 19 jeremybenn
# Now try BSD make style include.
10995
if test "$am__include" = "#"; then
10996
   echo '.include "confinc"' > confmf
10997 82 jeremybenn
   case `$am_make -s -f confmf 2> /dev/null` in #(
10998
   *the\ am__doit\ target*)
10999
     am__include=.include
11000
     am__quote="\""
11001
     _am_result=BSD
11002
     ;;
11003
   esac
11004 19 jeremybenn
fi
11005
 
11006
 
11007 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
11008
$as_echo "$_am_result" >&6; }
11009 19 jeremybenn
rm -f confinc confmf
11010
 
11011
# Check whether --enable-dependency-tracking was given.
11012
if test "${enable_dependency_tracking+set}" = set; then
11013
  enableval=$enable_dependency_tracking;
11014
fi
11015
 
11016
if test "x$enable_dependency_tracking" != xno; then
11017
  am_depcomp="$ac_aux_dir/depcomp"
11018
  AMDEPBACKSLASH='\'
11019
fi
11020
 if test "x$enable_dependency_tracking" != xno; then
11021
  AMDEP_TRUE=
11022
  AMDEP_FALSE='#'
11023
else
11024
  AMDEP_TRUE='#'
11025
  AMDEP_FALSE=
11026
fi
11027
 
11028
 
11029
if test "`cd $srcdir && pwd`" != "`pwd`"; then
11030
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11031
  # is not polluted with repeated "-I."
11032
  am__isrc=' -I$(srcdir)'
11033
  # test to see if srcdir already configured
11034
  if test -f $srcdir/config.status; then
11035 82 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
11036
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
11037 19 jeremybenn
   { (exit 1); exit 1; }; }
11038
  fi
11039
fi
11040
 
11041
# test whether we have cygpath
11042
if test -z "$CYGPATH_W"; then
11043
  if (cygpath --version) >/dev/null 2>/dev/null; then
11044
    CYGPATH_W='cygpath -w'
11045
  else
11046
    CYGPATH_W=echo
11047
  fi
11048
fi
11049
 
11050
 
11051
# Define the identity of the package.
11052
 PACKAGE='or1ksim'
11053 89 jeremybenn
 VERSION='2010-04-21'
11054 19 jeremybenn
 
11055
 
11056
cat >>confdefs.h <<_ACEOF
11057
#define PACKAGE "$PACKAGE"
11058
_ACEOF
11059
 
11060
 
11061
cat >>confdefs.h <<_ACEOF
11062
#define VERSION "$VERSION"
11063
_ACEOF
11064
 
11065
# Some tools Automake needs.
11066
 
11067
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11068
 
11069
 
11070
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11071
 
11072
 
11073
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11074
 
11075
 
11076
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11077
 
11078
 
11079
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11080
 
11081
# We need awk for the "check" target.  The system "awk" is bad on
11082
# some platforms.
11083
# Always define AMTAR for backward compatibility.
11084
 
11085
AMTAR=${AMTAR-"${am_missing_run}tar"}
11086
 
11087
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
11088
 
11089
 
11090
 
11091
 
11092
depcc="$CC"   am_compiler_list=
11093
 
11094 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11095
$as_echo_n "checking dependency style of $depcc... " >&6; }
11096 19 jeremybenn
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11097 82 jeremybenn
  $as_echo_n "(cached) " >&6
11098 19 jeremybenn
else
11099
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11100
  # We make a subdir and do the tests there.  Otherwise we can end up
11101
  # making bogus files that we don't know about and never remove.  For
11102
  # instance it was reported that on HP-UX the gcc test will end up
11103
  # making a dummy file named `D' -- because `-MD' means `put the output
11104
  # in D'.
11105
  mkdir conftest.dir
11106
  # Copy depcomp to subdir because otherwise we won't find it if we're
11107
  # using a relative directory.
11108
  cp "$am_depcomp" conftest.dir
11109
  cd conftest.dir
11110
  # We will build objects and dependencies in a subdirectory because
11111
  # it helps to detect inapplicable dependency modes.  For instance
11112
  # both Tru64's cc and ICC support -MD to output dependencies as a
11113
  # side effect of compilation, but ICC will put the dependencies in
11114
  # the current directory while Tru64 will put them in the object
11115
  # directory.
11116
  mkdir sub
11117
 
11118
  am_cv_CC_dependencies_compiler_type=none
11119
  if test "$am_compiler_list" = ""; then
11120
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11121
  fi
11122 82 jeremybenn
  am__universal=false
11123
  case " $depcc " in #(
11124
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11125
     esac
11126
 
11127 19 jeremybenn
  for depmode in $am_compiler_list; do
11128
    # Setup a source with many dependencies, because some compilers
11129
    # like to wrap large dependency lists on column 80 (with \), and
11130
    # we should not choose a depcomp mode which is confused by this.
11131
    #
11132
    # We need to recreate these files for each test, as the compiler may
11133
    # overwrite some of them when testing with obscure command lines.
11134
    # This happens at least with the AIX C compiler.
11135
    : > sub/conftest.c
11136
    for i in 1 2 3 4 5 6; do
11137
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11138
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11139
      # Solaris 8's {/usr,}/bin/sh.
11140
      touch sub/conftst$i.h
11141
    done
11142
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11143
 
11144 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11145
    # mode.  It turns out that the SunPro C++ compiler does not properly
11146
    # handle `-M -o', and we need to detect this.  Also, some Intel
11147
    # versions had trouble with output in subdirs
11148
    am__obj=sub/conftest.${OBJEXT-o}
11149
    am__minus_obj="-o $am__obj"
11150 19 jeremybenn
    case $depmode in
11151 82 jeremybenn
    gcc)
11152
      # This depmode causes a compiler race in universal mode.
11153
      test "$am__universal" = false || continue
11154
      ;;
11155 19 jeremybenn
    nosideeffect)
11156
      # after this tag, mechanisms are not by side-effect, so they'll
11157
      # only be used when explicitly requested
11158
      if test "x$enable_dependency_tracking" = xyes; then
11159
        continue
11160
      else
11161
        break
11162
      fi
11163
      ;;
11164 82 jeremybenn
    msvisualcpp | msvcmsys)
11165
      # This compiler won't grok `-c -o', but also, the minuso test has
11166
      # not run yet.  These depmodes are late enough in the game, and
11167
      # so weak that their functioning should not be impacted.
11168
      am__obj=conftest.${OBJEXT-o}
11169
      am__minus_obj=
11170
      ;;
11171 19 jeremybenn
    none) break ;;
11172
    esac
11173
    if depmode=$depmode \
11174 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
11175 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11176 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11177 19 jeremybenn
         >/dev/null 2>conftest.err &&
11178
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11179
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11180 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11181 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11182
      # icc doesn't choke on unknown options, it will just issue warnings
11183
      # or remarks (even with -Werror).  So we grep stderr for any message
11184
      # that says an option was ignored or not supported.
11185
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11186
      #   icc: Command line warning: ignoring option '-M'; no argument required
11187
      # The diagnosis changed in icc 8.0:
11188
      #   icc: Command line remark: option '-MP' not supported
11189
      if (grep 'ignoring option' conftest.err ||
11190
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11191
        am_cv_CC_dependencies_compiler_type=$depmode
11192
        break
11193
      fi
11194
    fi
11195
  done
11196
 
11197
  cd ..
11198
  rm -rf conftest.dir
11199
else
11200
  am_cv_CC_dependencies_compiler_type=none
11201
fi
11202
 
11203
fi
11204 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11205
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11206 19 jeremybenn
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11207
 
11208
 if
11209
  test "x$enable_dependency_tracking" != xno \
11210
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11211
  am__fastdepCC_TRUE=
11212
  am__fastdepCC_FALSE='#'
11213
else
11214
  am__fastdepCC_TRUE='#'
11215
  am__fastdepCC_FALSE=
11216
fi
11217
 
11218
 
11219
 
11220 82 jeremybenn
ac_config_headers="$ac_config_headers config.h"
11221
 
11222
 
11223
 
11224
 
11225
# make sure we are using a recent autoconf version
11226
 
11227
 
11228
# yuck.
11229
case "$target_cpu" in
11230
or32*)  CPU_ARCH=or32;
11231
        ARCH_ISA=OR32;
11232
 
11233
cat >>confdefs.h <<\_ACEOF
11234
#define OR32_TYPES 1
11235
_ACEOF
11236
;;
11237
dlx*)   CPU_ARCH=dlx;
11238
        ARCH_ISA=DLX;;
11239
*)      { $as_echo "$as_me:$LINENO: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&5
11240
$as_echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&2;};
11241
        CPU_ARCH=or32;
11242
        ARCH_ISA=OR32;
11243
 
11244
cat >>confdefs.h <<\_ACEOF
11245
#define OR32_TYPES 1
11246
_ACEOF
11247
;;
11248
esac
11249
 
11250
# determine endianism from target CPU name. If it has "little" in the name,
11251
# then its litte endian, otherwise its big endian (default for OR1K)
11252
case "$target_cpu" in
11253
*little*)
11254
cat >>confdefs.h <<\_ACEOF
11255
#define OR32_LITTLE_ENDIAN 1
11256
_ACEOF
11257
;;
11258
       *)
11259
cat >>confdefs.h <<\_ACEOF
11260
#define OR32_BIG_ENDIAN 1
11261
_ACEOF
11262
;;
11263
esac
11264
 
11265
 
11266
 
11267
# Set the CFLAGS we want
11268
CFLAGS="$CFLAGS -g -Wall -Werror -O2 -D$ARCH_ISA"
11269
 
11270
# By default we simply use the C compiler to build assembly code.
11271
 
11272
test "${CCAS+set}" = set || CCAS=$CC
11273
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11274
 
11275
 
11276
 
11277
depcc="$CCAS"   am_compiler_list=
11278
 
11279
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11280
$as_echo_n "checking dependency style of $depcc... " >&6; }
11281
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11282
  $as_echo_n "(cached) " >&6
11283 19 jeremybenn
else
11284
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11285
  # We make a subdir and do the tests there.  Otherwise we can end up
11286
  # making bogus files that we don't know about and never remove.  For
11287
  # instance it was reported that on HP-UX the gcc test will end up
11288
  # making a dummy file named `D' -- because `-MD' means `put the output
11289
  # in D'.
11290
  mkdir conftest.dir
11291
  # Copy depcomp to subdir because otherwise we won't find it if we're
11292
  # using a relative directory.
11293
  cp "$am_depcomp" conftest.dir
11294
  cd conftest.dir
11295
  # We will build objects and dependencies in a subdirectory because
11296
  # it helps to detect inapplicable dependency modes.  For instance
11297
  # both Tru64's cc and ICC support -MD to output dependencies as a
11298
  # side effect of compilation, but ICC will put the dependencies in
11299
  # the current directory while Tru64 will put them in the object
11300
  # directory.
11301
  mkdir sub
11302
 
11303 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11304 19 jeremybenn
  if test "$am_compiler_list" = ""; then
11305
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11306
  fi
11307 82 jeremybenn
  am__universal=false
11308
 
11309
 
11310 19 jeremybenn
  for depmode in $am_compiler_list; do
11311
    # Setup a source with many dependencies, because some compilers
11312
    # like to wrap large dependency lists on column 80 (with \), and
11313
    # we should not choose a depcomp mode which is confused by this.
11314
    #
11315
    # We need to recreate these files for each test, as the compiler may
11316
    # overwrite some of them when testing with obscure command lines.
11317
    # This happens at least with the AIX C compiler.
11318
    : > sub/conftest.c
11319
    for i in 1 2 3 4 5 6; do
11320
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11321
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11322
      # Solaris 8's {/usr,}/bin/sh.
11323
      touch sub/conftst$i.h
11324
    done
11325
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11326
 
11327 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11328
    # mode.  It turns out that the SunPro C++ compiler does not properly
11329
    # handle `-M -o', and we need to detect this.  Also, some Intel
11330
    # versions had trouble with output in subdirs
11331
    am__obj=sub/conftest.${OBJEXT-o}
11332
    am__minus_obj="-o $am__obj"
11333 19 jeremybenn
    case $depmode in
11334 82 jeremybenn
    gcc)
11335
      # This depmode causes a compiler race in universal mode.
11336
      test "$am__universal" = false || continue
11337
      ;;
11338 19 jeremybenn
    nosideeffect)
11339
      # after this tag, mechanisms are not by side-effect, so they'll
11340
      # only be used when explicitly requested
11341
      if test "x$enable_dependency_tracking" = xyes; then
11342
        continue
11343
      else
11344
        break
11345
      fi
11346
      ;;
11347 82 jeremybenn
    msvisualcpp | msvcmsys)
11348
      # This compiler won't grok `-c -o', but also, the minuso test has
11349
      # not run yet.  These depmodes are late enough in the game, and
11350
      # so weak that their functioning should not be impacted.
11351
      am__obj=conftest.${OBJEXT-o}
11352
      am__minus_obj=
11353
      ;;
11354 19 jeremybenn
    none) break ;;
11355
    esac
11356
    if depmode=$depmode \
11357 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
11358 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11359 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11360 19 jeremybenn
         >/dev/null 2>conftest.err &&
11361
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11362
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11363 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11364 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11365
      # icc doesn't choke on unknown options, it will just issue warnings
11366
      # or remarks (even with -Werror).  So we grep stderr for any message
11367
      # that says an option was ignored or not supported.
11368
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11369
      #   icc: Command line warning: ignoring option '-M'; no argument required
11370
      # The diagnosis changed in icc 8.0:
11371
      #   icc: Command line remark: option '-MP' not supported
11372
      if (grep 'ignoring option' conftest.err ||
11373
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11374 82 jeremybenn
        am_cv_CCAS_dependencies_compiler_type=$depmode
11375 19 jeremybenn
        break
11376
      fi
11377
    fi
11378
  done
11379
 
11380
  cd ..
11381
  rm -rf conftest.dir
11382
else
11383 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11384 19 jeremybenn
fi
11385
 
11386
fi
11387 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11388
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11389
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11390 19 jeremybenn
 
11391
 if
11392
  test "x$enable_dependency_tracking" != xno \
11393 82 jeremybenn
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11394
  am__fastdepCCAS_TRUE=
11395
  am__fastdepCCAS_FALSE='#'
11396 19 jeremybenn
else
11397 82 jeremybenn
  am__fastdepCCAS_TRUE='#'
11398
  am__fastdepCCAS_FALSE=
11399 19 jeremybenn
fi
11400
 
11401
 
11402
 
11403
ac_ext=c
11404
ac_cpp='$CPP $CPPFLAGS'
11405
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11406
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11407
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11408
if test -n "$ac_tool_prefix"; then
11409
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11410
set dummy ${ac_tool_prefix}gcc; ac_word=$2
11411 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11412
$as_echo_n "checking for $ac_word... " >&6; }
11413 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11414 82 jeremybenn
  $as_echo_n "(cached) " >&6
11415 19 jeremybenn
else
11416
  if test -n "$CC"; then
11417
  ac_cv_prog_CC="$CC" # Let the user override the test.
11418
else
11419
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420
for as_dir in $PATH
11421
do
11422
  IFS=$as_save_IFS
11423
  test -z "$as_dir" && as_dir=.
11424
  for ac_exec_ext in '' $ac_executable_extensions; do
11425
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11426
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11427 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11428 19 jeremybenn
    break 2
11429
  fi
11430
done
11431
done
11432
IFS=$as_save_IFS
11433
 
11434
fi
11435
fi
11436
CC=$ac_cv_prog_CC
11437
if test -n "$CC"; then
11438 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11439
$as_echo "$CC" >&6; }
11440 19 jeremybenn
else
11441 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11442
$as_echo "no" >&6; }
11443 19 jeremybenn
fi
11444
 
11445
 
11446
fi
11447
if test -z "$ac_cv_prog_CC"; then
11448
  ac_ct_CC=$CC
11449
  # Extract the first word of "gcc", so it can be a program name with args.
11450
set dummy gcc; ac_word=$2
11451 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11452
$as_echo_n "checking for $ac_word... " >&6; }
11453 19 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11454 82 jeremybenn
  $as_echo_n "(cached) " >&6
11455 19 jeremybenn
else
11456
  if test -n "$ac_ct_CC"; then
11457
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11458
else
11459
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11460
for as_dir in $PATH
11461
do
11462
  IFS=$as_save_IFS
11463
  test -z "$as_dir" && as_dir=.
11464
  for ac_exec_ext in '' $ac_executable_extensions; do
11465
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11466
    ac_cv_prog_ac_ct_CC="gcc"
11467 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11468 19 jeremybenn
    break 2
11469
  fi
11470
done
11471
done
11472
IFS=$as_save_IFS
11473
 
11474
fi
11475
fi
11476
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11477
if test -n "$ac_ct_CC"; then
11478 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11479
$as_echo "$ac_ct_CC" >&6; }
11480 19 jeremybenn
else
11481 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11482
$as_echo "no" >&6; }
11483 19 jeremybenn
fi
11484
 
11485
  if test "x$ac_ct_CC" = x; then
11486
    CC=""
11487
  else
11488
    case $cross_compiling:$ac_tool_warned in
11489
yes:)
11490 82 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11491
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11492 19 jeremybenn
ac_tool_warned=yes ;;
11493
esac
11494
    CC=$ac_ct_CC
11495
  fi
11496
else
11497
  CC="$ac_cv_prog_CC"
11498
fi
11499
 
11500
if test -z "$CC"; then
11501
          if test -n "$ac_tool_prefix"; then
11502
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11503
set dummy ${ac_tool_prefix}cc; ac_word=$2
11504 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11505
$as_echo_n "checking for $ac_word... " >&6; }
11506 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11507 82 jeremybenn
  $as_echo_n "(cached) " >&6
11508 19 jeremybenn
else
11509
  if test -n "$CC"; then
11510
  ac_cv_prog_CC="$CC" # Let the user override the test.
11511
else
11512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513
for as_dir in $PATH
11514
do
11515
  IFS=$as_save_IFS
11516
  test -z "$as_dir" && as_dir=.
11517
  for ac_exec_ext in '' $ac_executable_extensions; do
11518
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11519
    ac_cv_prog_CC="${ac_tool_prefix}cc"
11520 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11521 19 jeremybenn
    break 2
11522
  fi
11523
done
11524
done
11525
IFS=$as_save_IFS
11526
 
11527
fi
11528
fi
11529
CC=$ac_cv_prog_CC
11530
if test -n "$CC"; then
11531 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11532
$as_echo "$CC" >&6; }
11533 19 jeremybenn
else
11534 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11535
$as_echo "no" >&6; }
11536 19 jeremybenn
fi
11537
 
11538
 
11539
  fi
11540
fi
11541
if test -z "$CC"; then
11542
  # Extract the first word of "cc", so it can be a program name with args.
11543
set dummy cc; ac_word=$2
11544 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11545
$as_echo_n "checking for $ac_word... " >&6; }
11546 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11547 82 jeremybenn
  $as_echo_n "(cached) " >&6
11548 19 jeremybenn
else
11549
  if test -n "$CC"; then
11550
  ac_cv_prog_CC="$CC" # Let the user override the test.
11551
else
11552
  ac_prog_rejected=no
11553
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554
for as_dir in $PATH
11555
do
11556
  IFS=$as_save_IFS
11557
  test -z "$as_dir" && as_dir=.
11558
  for ac_exec_ext in '' $ac_executable_extensions; do
11559
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11560
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11561
       ac_prog_rejected=yes
11562
       continue
11563
     fi
11564
    ac_cv_prog_CC="cc"
11565 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11566 19 jeremybenn
    break 2
11567
  fi
11568
done
11569
done
11570
IFS=$as_save_IFS
11571
 
11572
if test $ac_prog_rejected = yes; then
11573
  # We found a bogon in the path, so make sure we never use it.
11574
  set dummy $ac_cv_prog_CC
11575
  shift
11576
  if test $# != 0; then
11577
    # We chose a different compiler from the bogus one.
11578
    # However, it has the same basename, so the bogon will be chosen
11579
    # first if we set CC to just the basename; use the full file name.
11580
    shift
11581
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11582
  fi
11583
fi
11584
fi
11585
fi
11586
CC=$ac_cv_prog_CC
11587
if test -n "$CC"; then
11588 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11589
$as_echo "$CC" >&6; }
11590 19 jeremybenn
else
11591 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11592
$as_echo "no" >&6; }
11593 19 jeremybenn
fi
11594
 
11595
 
11596
fi
11597
if test -z "$CC"; then
11598
  if test -n "$ac_tool_prefix"; then
11599
  for ac_prog in cl.exe
11600
  do
11601
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11602
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11603 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11604
$as_echo_n "checking for $ac_word... " >&6; }
11605 19 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then
11606 82 jeremybenn
  $as_echo_n "(cached) " >&6
11607 19 jeremybenn
else
11608
  if test -n "$CC"; then
11609
  ac_cv_prog_CC="$CC" # Let the user override the test.
11610
else
11611
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11612
for as_dir in $PATH
11613
do
11614
  IFS=$as_save_IFS
11615
  test -z "$as_dir" && as_dir=.
11616
  for ac_exec_ext in '' $ac_executable_extensions; do
11617
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11618
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11619 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11620 19 jeremybenn
    break 2
11621
  fi
11622
done
11623
done
11624
IFS=$as_save_IFS
11625
 
11626
fi
11627
fi
11628
CC=$ac_cv_prog_CC
11629
if test -n "$CC"; then
11630 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
11631
$as_echo "$CC" >&6; }
11632 19 jeremybenn
else
11633 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11634
$as_echo "no" >&6; }
11635 19 jeremybenn
fi
11636
 
11637
 
11638
    test -n "$CC" && break
11639
  done
11640
fi
11641
if test -z "$CC"; then
11642
  ac_ct_CC=$CC
11643
  for ac_prog in cl.exe
11644
do
11645
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11646
set dummy $ac_prog; ac_word=$2
11647 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11648
$as_echo_n "checking for $ac_word... " >&6; }
11649 19 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11650 82 jeremybenn
  $as_echo_n "(cached) " >&6
11651 19 jeremybenn
else
11652
  if test -n "$ac_ct_CC"; then
11653
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11654
else
11655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11656
for as_dir in $PATH
11657
do
11658
  IFS=$as_save_IFS
11659
  test -z "$as_dir" && as_dir=.
11660
  for ac_exec_ext in '' $ac_executable_extensions; do
11661
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11662
    ac_cv_prog_ac_ct_CC="$ac_prog"
11663 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11664 19 jeremybenn
    break 2
11665
  fi
11666
done
11667
done
11668
IFS=$as_save_IFS
11669
 
11670
fi
11671
fi
11672
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11673
if test -n "$ac_ct_CC"; then
11674 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11675
$as_echo "$ac_ct_CC" >&6; }
11676 19 jeremybenn
else
11677 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
11678
$as_echo "no" >&6; }
11679 19 jeremybenn
fi
11680
 
11681
 
11682
  test -n "$ac_ct_CC" && break
11683
done
11684
 
11685
  if test "x$ac_ct_CC" = x; then
11686
    CC=""
11687
  else
11688
    case $cross_compiling:$ac_tool_warned in
11689
yes:)
11690 82 jeremybenn
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11691
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11692 19 jeremybenn
ac_tool_warned=yes ;;
11693
esac
11694
    CC=$ac_ct_CC
11695
  fi
11696
fi
11697
 
11698
fi
11699
 
11700
 
11701 82 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11702
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11703
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11704 19 jeremybenn
See \`config.log' for more details." >&5
11705 82 jeremybenn
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11706 19 jeremybenn
See \`config.log' for more details." >&2;}
11707 82 jeremybenn
   { (exit 1); exit 1; }; }; }
11708 19 jeremybenn
 
11709
# Provide some information about the compiler.
11710 82 jeremybenn
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11711
set X $ac_compile
11712
ac_compiler=$2
11713 19 jeremybenn
{ (ac_try="$ac_compiler --version >&5"
11714
case "(($ac_try" in
11715
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716
  *) ac_try_echo=$ac_try;;
11717
esac
11718 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11719
$as_echo "$ac_try_echo") >&5
11720 19 jeremybenn
  (eval "$ac_compiler --version >&5") 2>&5
11721
  ac_status=$?
11722 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 19 jeremybenn
  (exit $ac_status); }
11724
{ (ac_try="$ac_compiler -v >&5"
11725
case "(($ac_try" in
11726
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11727
  *) ac_try_echo=$ac_try;;
11728
esac
11729 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11730
$as_echo "$ac_try_echo") >&5
11731 19 jeremybenn
  (eval "$ac_compiler -v >&5") 2>&5
11732
  ac_status=$?
11733 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 19 jeremybenn
  (exit $ac_status); }
11735
{ (ac_try="$ac_compiler -V >&5"
11736
case "(($ac_try" in
11737
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738
  *) ac_try_echo=$ac_try;;
11739
esac
11740 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11741
$as_echo "$ac_try_echo") >&5
11742 19 jeremybenn
  (eval "$ac_compiler -V >&5") 2>&5
11743
  ac_status=$?
11744 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 19 jeremybenn
  (exit $ac_status); }
11746
 
11747 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11748
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11749 19 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then
11750 82 jeremybenn
  $as_echo_n "(cached) " >&6
11751 19 jeremybenn
else
11752
  cat >conftest.$ac_ext <<_ACEOF
11753
/* confdefs.h.  */
11754
_ACEOF
11755
cat confdefs.h >>conftest.$ac_ext
11756
cat >>conftest.$ac_ext <<_ACEOF
11757
/* end confdefs.h.  */
11758
 
11759
int
11760
main ()
11761
{
11762
#ifndef __GNUC__
11763
       choke me
11764
#endif
11765
 
11766
  ;
11767
  return 0;
11768
}
11769
_ACEOF
11770
rm -f conftest.$ac_objext
11771
if { (ac_try="$ac_compile"
11772
case "(($ac_try" in
11773
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774
  *) ac_try_echo=$ac_try;;
11775
esac
11776 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11777
$as_echo "$ac_try_echo") >&5
11778 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
11779
  ac_status=$?
11780
  grep -v '^ *+' conftest.er1 >conftest.err
11781
  rm -f conftest.er1
11782
  cat conftest.err >&5
11783 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 19 jeremybenn
  (exit $ac_status); } && {
11785
         test -z "$ac_c_werror_flag" ||
11786
         test ! -s conftest.err
11787
       } && test -s conftest.$ac_objext; then
11788
  ac_compiler_gnu=yes
11789
else
11790 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11791 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11792
 
11793
        ac_compiler_gnu=no
11794
fi
11795
 
11796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11797
ac_cv_c_compiler_gnu=$ac_compiler_gnu
11798
 
11799
fi
11800 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11801
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11802
if test $ac_compiler_gnu = yes; then
11803
  GCC=yes
11804
else
11805
  GCC=
11806
fi
11807 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
11808
ac_save_CFLAGS=$CFLAGS
11809 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11810
$as_echo_n "checking whether $CC accepts -g... " >&6; }
11811 19 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then
11812 82 jeremybenn
  $as_echo_n "(cached) " >&6
11813 19 jeremybenn
else
11814
  ac_save_c_werror_flag=$ac_c_werror_flag
11815
   ac_c_werror_flag=yes
11816
   ac_cv_prog_cc_g=no
11817
   CFLAGS="-g"
11818
   cat >conftest.$ac_ext <<_ACEOF
11819
/* confdefs.h.  */
11820
_ACEOF
11821
cat confdefs.h >>conftest.$ac_ext
11822
cat >>conftest.$ac_ext <<_ACEOF
11823
/* end confdefs.h.  */
11824
 
11825
int
11826
main ()
11827
{
11828
 
11829
  ;
11830
  return 0;
11831
}
11832
_ACEOF
11833
rm -f conftest.$ac_objext
11834
if { (ac_try="$ac_compile"
11835
case "(($ac_try" in
11836
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837
  *) ac_try_echo=$ac_try;;
11838
esac
11839 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11840
$as_echo "$ac_try_echo") >&5
11841 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
11842
  ac_status=$?
11843
  grep -v '^ *+' conftest.er1 >conftest.err
11844
  rm -f conftest.er1
11845
  cat conftest.err >&5
11846 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 19 jeremybenn
  (exit $ac_status); } && {
11848
         test -z "$ac_c_werror_flag" ||
11849
         test ! -s conftest.err
11850
       } && test -s conftest.$ac_objext; then
11851
  ac_cv_prog_cc_g=yes
11852
else
11853 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11854 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11855
 
11856
        CFLAGS=""
11857
      cat >conftest.$ac_ext <<_ACEOF
11858
/* confdefs.h.  */
11859
_ACEOF
11860
cat confdefs.h >>conftest.$ac_ext
11861
cat >>conftest.$ac_ext <<_ACEOF
11862
/* end confdefs.h.  */
11863
 
11864
int
11865
main ()
11866
{
11867
 
11868
  ;
11869
  return 0;
11870
}
11871
_ACEOF
11872
rm -f conftest.$ac_objext
11873
if { (ac_try="$ac_compile"
11874
case "(($ac_try" in
11875
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876
  *) ac_try_echo=$ac_try;;
11877
esac
11878 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11879
$as_echo "$ac_try_echo") >&5
11880 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
11881
  ac_status=$?
11882
  grep -v '^ *+' conftest.er1 >conftest.err
11883
  rm -f conftest.er1
11884
  cat conftest.err >&5
11885 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 19 jeremybenn
  (exit $ac_status); } && {
11887
         test -z "$ac_c_werror_flag" ||
11888
         test ! -s conftest.err
11889
       } && test -s conftest.$ac_objext; then
11890
  :
11891
else
11892 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11893 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11894
 
11895
        ac_c_werror_flag=$ac_save_c_werror_flag
11896
         CFLAGS="-g"
11897
         cat >conftest.$ac_ext <<_ACEOF
11898
/* confdefs.h.  */
11899
_ACEOF
11900
cat confdefs.h >>conftest.$ac_ext
11901
cat >>conftest.$ac_ext <<_ACEOF
11902
/* end confdefs.h.  */
11903
 
11904
int
11905
main ()
11906
{
11907
 
11908
  ;
11909
  return 0;
11910
}
11911
_ACEOF
11912
rm -f conftest.$ac_objext
11913
if { (ac_try="$ac_compile"
11914
case "(($ac_try" in
11915
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916
  *) ac_try_echo=$ac_try;;
11917
esac
11918 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11919
$as_echo "$ac_try_echo") >&5
11920 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
11921
  ac_status=$?
11922
  grep -v '^ *+' conftest.er1 >conftest.err
11923
  rm -f conftest.er1
11924
  cat conftest.err >&5
11925 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 19 jeremybenn
  (exit $ac_status); } && {
11927
         test -z "$ac_c_werror_flag" ||
11928
         test ! -s conftest.err
11929
       } && test -s conftest.$ac_objext; then
11930
  ac_cv_prog_cc_g=yes
11931
else
11932 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
11933 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
11934
 
11935
 
11936
fi
11937
 
11938
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11939
fi
11940
 
11941
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942
fi
11943
 
11944
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11945
   ac_c_werror_flag=$ac_save_c_werror_flag
11946
fi
11947 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11948
$as_echo "$ac_cv_prog_cc_g" >&6; }
11949 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
11950
  CFLAGS=$ac_save_CFLAGS
11951
elif test $ac_cv_prog_cc_g = yes; then
11952
  if test "$GCC" = yes; then
11953
    CFLAGS="-g -O2"
11954
  else
11955
    CFLAGS="-g"
11956
  fi
11957
else
11958
  if test "$GCC" = yes; then
11959
    CFLAGS="-O2"
11960
  else
11961
    CFLAGS=
11962
  fi
11963
fi
11964 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11965
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11966 19 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then
11967 82 jeremybenn
  $as_echo_n "(cached) " >&6
11968 19 jeremybenn
else
11969
  ac_cv_prog_cc_c89=no
11970
ac_save_CC=$CC
11971
cat >conftest.$ac_ext <<_ACEOF
11972
/* confdefs.h.  */
11973
_ACEOF
11974
cat confdefs.h >>conftest.$ac_ext
11975
cat >>conftest.$ac_ext <<_ACEOF
11976
/* end confdefs.h.  */
11977
#include 
11978
#include 
11979
#include 
11980
#include 
11981
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11982
struct buf { int x; };
11983
FILE * (*rcsopen) (struct buf *, struct stat *, int);
11984
static char *e (p, i)
11985
     char **p;
11986
     int i;
11987
{
11988
  return p[i];
11989
}
11990
static char *f (char * (*g) (char **, int), char **p, ...)
11991
{
11992
  char *s;
11993
  va_list v;
11994
  va_start (v,p);
11995
  s = g (p, va_arg (v,int));
11996
  va_end (v);
11997
  return s;
11998
}
11999
 
12000
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12001
   function prototypes and stuff, but not '\xHH' hex character constants.
12002
   These don't provoke an error unfortunately, instead are silently treated
12003
   as 'x'.  The following induces an error, until -std is added to get
12004
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12005
   array size at least.  It's necessary to write '\x00'==0 to get something
12006
   that's true only with -std.  */
12007
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12008
 
12009
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12010
   inside strings and character constants.  */
12011
#define FOO(x) 'x'
12012
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12013
 
12014
int test (int i, double x);
12015
struct s1 {int (*f) (int a);};
12016
struct s2 {int (*f) (double a);};
12017
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12018
int argc;
12019
char **argv;
12020
int
12021
main ()
12022
{
12023
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12024
  ;
12025
  return 0;
12026
}
12027
_ACEOF
12028
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12029
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12030
do
12031
  CC="$ac_save_CC $ac_arg"
12032
  rm -f conftest.$ac_objext
12033
if { (ac_try="$ac_compile"
12034
case "(($ac_try" in
12035
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036
  *) ac_try_echo=$ac_try;;
12037
esac
12038 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12039
$as_echo "$ac_try_echo") >&5
12040 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
12041
  ac_status=$?
12042
  grep -v '^ *+' conftest.er1 >conftest.err
12043
  rm -f conftest.er1
12044
  cat conftest.err >&5
12045 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 19 jeremybenn
  (exit $ac_status); } && {
12047
         test -z "$ac_c_werror_flag" ||
12048
         test ! -s conftest.err
12049
       } && test -s conftest.$ac_objext; then
12050
  ac_cv_prog_cc_c89=$ac_arg
12051
else
12052 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12053 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12054
 
12055
 
12056
fi
12057
 
12058
rm -f core conftest.err conftest.$ac_objext
12059
  test "x$ac_cv_prog_cc_c89" != "xno" && break
12060
done
12061
rm -f conftest.$ac_ext
12062
CC=$ac_save_CC
12063
 
12064
fi
12065
# AC_CACHE_VAL
12066
case "x$ac_cv_prog_cc_c89" in
12067
  x)
12068 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
12069
$as_echo "none needed" >&6; } ;;
12070 19 jeremybenn
  xno)
12071 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
12072
$as_echo "unsupported" >&6; } ;;
12073 19 jeremybenn
  *)
12074
    CC="$CC $ac_cv_prog_cc_c89"
12075 82 jeremybenn
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12076
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12077 19 jeremybenn
esac
12078
 
12079
 
12080
ac_ext=c
12081
ac_cpp='$CPP $CPPFLAGS'
12082
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12083
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12084
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12085
 
12086
if test "x$CC" != xcc; then
12087 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
12088
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12089 19 jeremybenn
else
12090 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
12091
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12092 19 jeremybenn
fi
12093 82 jeremybenn
set dummy $CC; ac_cc=`$as_echo "$2" |
12094 19 jeremybenn
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12095
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
12096 82 jeremybenn
  $as_echo_n "(cached) " >&6
12097 19 jeremybenn
else
12098
  cat >conftest.$ac_ext <<_ACEOF
12099
/* confdefs.h.  */
12100
_ACEOF
12101
cat confdefs.h >>conftest.$ac_ext
12102
cat >>conftest.$ac_ext <<_ACEOF
12103
/* end confdefs.h.  */
12104
 
12105
int
12106
main ()
12107
{
12108
 
12109
  ;
12110
  return 0;
12111
}
12112
_ACEOF
12113
# Make sure it works both with $CC and with simple cc.
12114
# We do the test twice because some compilers refuse to overwrite an
12115
# existing .o file with -o, though they will create one.
12116
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12117
rm -f conftest2.*
12118
if { (case "(($ac_try" in
12119
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120
  *) ac_try_echo=$ac_try;;
12121
esac
12122 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12123
$as_echo "$ac_try_echo") >&5
12124 19 jeremybenn
  (eval "$ac_try") 2>&5
12125
  ac_status=$?
12126 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 19 jeremybenn
  (exit $ac_status); } &&
12128
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
12129
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130
  *) ac_try_echo=$ac_try;;
12131
esac
12132 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12133
$as_echo "$ac_try_echo") >&5
12134 19 jeremybenn
  (eval "$ac_try") 2>&5
12135
  ac_status=$?
12136 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 19 jeremybenn
  (exit $ac_status); };
12138
then
12139
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12140
  if test "x$CC" != xcc; then
12141
    # Test first that cc exists at all.
12142
    if { ac_try='cc -c conftest.$ac_ext >&5'
12143
  { (case "(($ac_try" in
12144
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145
  *) ac_try_echo=$ac_try;;
12146
esac
12147 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12148
$as_echo "$ac_try_echo") >&5
12149 19 jeremybenn
  (eval "$ac_try") 2>&5
12150
  ac_status=$?
12151 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 19 jeremybenn
  (exit $ac_status); }; }; then
12153
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12154
      rm -f conftest2.*
12155
      if { (case "(($ac_try" in
12156
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12157
  *) ac_try_echo=$ac_try;;
12158
esac
12159 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12160
$as_echo "$ac_try_echo") >&5
12161 19 jeremybenn
  (eval "$ac_try") 2>&5
12162
  ac_status=$?
12163 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 19 jeremybenn
  (exit $ac_status); } &&
12165
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
12166
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167
  *) ac_try_echo=$ac_try;;
12168
esac
12169 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12170
$as_echo "$ac_try_echo") >&5
12171 19 jeremybenn
  (eval "$ac_try") 2>&5
12172
  ac_status=$?
12173 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 19 jeremybenn
  (exit $ac_status); };
12175
      then
12176
        # cc works too.
12177
        :
12178
      else
12179
        # cc exists but doesn't like -o.
12180
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
12181
      fi
12182
    fi
12183
  fi
12184
else
12185
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
12186
fi
12187
rm -f core conftest*
12188
 
12189
fi
12190
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12191 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12192
$as_echo "yes" >&6; }
12193 19 jeremybenn
else
12194 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12195
$as_echo "no" >&6; }
12196 19 jeremybenn
 
12197
cat >>confdefs.h <<\_ACEOF
12198
#define NO_MINUS_C_MINUS_O 1
12199
_ACEOF
12200
 
12201
fi
12202
 
12203
# FIXME: we rely on the cache variable name because
12204
# there is no other way.
12205
set dummy $CC
12206 82 jeremybenn
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12207
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12208
if test "$am_t" != yes; then
12209 19 jeremybenn
   # Losing compiler, so override with the script.
12210
   # FIXME: It is wrong to rewrite CC.
12211
   # But if we don't then we get into trouble of one sort or another.
12212
   # A longer-term fix would be to have automake use am__CC in this case,
12213
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12214
   CC="$am_aux_dir/compile $CC"
12215
fi
12216
 
12217
 
12218
 
12219 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12220
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12221
set x ${MAKE-make}
12222
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12223 19 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
12224 82 jeremybenn
  $as_echo_n "(cached) " >&6
12225 19 jeremybenn
else
12226
  cat >conftest.make <<\_ACEOF
12227
SHELL = /bin/sh
12228
all:
12229
        @echo '@@@%%%=$(MAKE)=@@@%%%'
12230
_ACEOF
12231
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12232
case `${MAKE-make} -f conftest.make 2>/dev/null` in
12233
  *@@@%%%=?*=@@@%%%*)
12234
    eval ac_cv_prog_make_${ac_make}_set=yes;;
12235
  *)
12236
    eval ac_cv_prog_make_${ac_make}_set=no;;
12237
esac
12238
rm -f conftest.make
12239
fi
12240
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12241 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: yes" >&5
12242
$as_echo "yes" >&6; }
12243 19 jeremybenn
  SET_MAKE=
12244
else
12245 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12246
$as_echo "no" >&6; }
12247 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
12248
fi
12249
 
12250
 
12251
# Find a good install program.  We prefer a C program (faster),
12252
# so one script is as good as another.  But avoid the broken or
12253
# incompatible versions:
12254
# SysV /etc/install, /usr/sbin/install
12255
# SunOS /usr/etc/install
12256
# IRIX /sbin/install
12257
# AIX /bin/install
12258
# AmigaOS /C/install, which installs bootblocks on floppy discs
12259
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12260
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12261
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12262
# OS/2's system install, which has a completely different semantic
12263
# ./install, which can be erroneously created by make from ./install.sh.
12264 82 jeremybenn
# Reject install programs that cannot install multiple files.
12265
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12266
$as_echo_n "checking for a BSD-compatible install... " >&6; }
12267 19 jeremybenn
if test -z "$INSTALL"; then
12268
if test "${ac_cv_path_install+set}" = set; then
12269 82 jeremybenn
  $as_echo_n "(cached) " >&6
12270 19 jeremybenn
else
12271
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12272
for as_dir in $PATH
12273
do
12274
  IFS=$as_save_IFS
12275
  test -z "$as_dir" && as_dir=.
12276
  # Account for people who put trailing slashes in PATH elements.
12277
case $as_dir/ in
12278
  ./ | .// | /cC/* | \
12279
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12280
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12281
  /usr/ucb/* ) ;;
12282
  *)
12283
    # OSF1 and SCO ODT 3.0 have their own names for install.
12284
    # Don't use installbsd from OSF since it installs stuff as root
12285
    # by default.
12286
    for ac_prog in ginstall scoinst install; do
12287
      for ac_exec_ext in '' $ac_executable_extensions; do
12288
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12289
          if test $ac_prog = install &&
12290
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12291
            # AIX install.  It has an incompatible calling convention.
12292
            :
12293
          elif test $ac_prog = install &&
12294
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12295
            # program-specific install script used by HP pwplus--don't use.
12296
            :
12297
          else
12298 82 jeremybenn
            rm -rf conftest.one conftest.two conftest.dir
12299
            echo one > conftest.one
12300
            echo two > conftest.two
12301
            mkdir conftest.dir
12302
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12303
              test -s conftest.one && test -s conftest.two &&
12304
              test -s conftest.dir/conftest.one &&
12305
              test -s conftest.dir/conftest.two
12306
            then
12307
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12308
              break 3
12309
            fi
12310 19 jeremybenn
          fi
12311
        fi
12312
      done
12313
    done
12314
    ;;
12315
esac
12316 82 jeremybenn
 
12317 19 jeremybenn
done
12318
IFS=$as_save_IFS
12319
 
12320 82 jeremybenn
rm -rf conftest.one conftest.two conftest.dir
12321 19 jeremybenn
 
12322
fi
12323
  if test "${ac_cv_path_install+set}" = set; then
12324
    INSTALL=$ac_cv_path_install
12325
  else
12326
    # As a last resort, use the slow shell script.  Don't cache a
12327
    # value for INSTALL within a source directory, because that will
12328
    # break other packages using the cache if that directory is
12329
    # removed, or if the value is a relative name.
12330
    INSTALL=$ac_install_sh
12331
  fi
12332
fi
12333 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
12334
$as_echo "$INSTALL" >&6; }
12335 19 jeremybenn
 
12336
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12337
# It thinks the first close brace ends the variable substitution.
12338
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12339
 
12340
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12341
 
12342
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12343
 
12344
# Extract the first word of "ar", so it can be a program name with args.
12345
set dummy ar; ac_word=$2
12346 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12347
$as_echo_n "checking for $ac_word... " >&6; }
12348 19 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then
12349 82 jeremybenn
  $as_echo_n "(cached) " >&6
12350 19 jeremybenn
else
12351
  if test -n "$AR"; then
12352
  ac_cv_prog_AR="$AR" # Let the user override the test.
12353
else
12354
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355
for as_dir in $PATH
12356
do
12357
  IFS=$as_save_IFS
12358
  test -z "$as_dir" && as_dir=.
12359
  for ac_exec_ext in '' $ac_executable_extensions; do
12360
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12361
    ac_cv_prog_AR="ar"
12362 82 jeremybenn
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12363 19 jeremybenn
    break 2
12364
  fi
12365
done
12366
done
12367
IFS=$as_save_IFS
12368
 
12369
fi
12370
fi
12371
AR=$ac_cv_prog_AR
12372
if test -n "$AR"; then
12373 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
12374
$as_echo "$AR" >&6; }
12375 19 jeremybenn
else
12376 82 jeremybenn
  { $as_echo "$as_me:$LINENO: result: no" >&5
12377
$as_echo "no" >&6; }
12378 19 jeremybenn
fi
12379
 
12380
 
12381
 
12382
# This is GNU compliant source and uses GNU libraries
12383
 
12384
cat >>confdefs.h <<\_ACEOF
12385
#define _GNU_SOURCE 1
12386
_ACEOF
12387
 
12388
 
12389 82 jeremybenn
 
12390 19 jeremybenn
# Set default for ARFLAGS, since autoconf does not have a macro for it.
12391
# This allows people to set it when running configure or make
12392
test -n "$ARFLAGS" || ARFLAGS="cr"
12393
 
12394
MAKE_SHELL=/bin/sh
12395
 
12396
 
12397
 
12398 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12399
$as_echo_n "checking return type of signal handlers... " >&6; }
12400 19 jeremybenn
if test "${ac_cv_type_signal+set}" = set; then
12401 82 jeremybenn
  $as_echo_n "(cached) " >&6
12402 19 jeremybenn
else
12403
  cat >conftest.$ac_ext <<_ACEOF
12404
/* confdefs.h.  */
12405
_ACEOF
12406
cat confdefs.h >>conftest.$ac_ext
12407
cat >>conftest.$ac_ext <<_ACEOF
12408
/* end confdefs.h.  */
12409
#include 
12410
#include 
12411
 
12412
int
12413
main ()
12414
{
12415
return *(signal (0, 0)) (0) == 1;
12416
  ;
12417
  return 0;
12418
}
12419
_ACEOF
12420
rm -f conftest.$ac_objext
12421
if { (ac_try="$ac_compile"
12422
case "(($ac_try" in
12423
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424
  *) ac_try_echo=$ac_try;;
12425
esac
12426 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12427
$as_echo "$ac_try_echo") >&5
12428 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
12429
  ac_status=$?
12430
  grep -v '^ *+' conftest.er1 >conftest.err
12431
  rm -f conftest.er1
12432
  cat conftest.err >&5
12433 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 19 jeremybenn
  (exit $ac_status); } && {
12435
         test -z "$ac_c_werror_flag" ||
12436
         test ! -s conftest.err
12437
       } && test -s conftest.$ac_objext; then
12438
  ac_cv_type_signal=int
12439
else
12440 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12441 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12442
 
12443
        ac_cv_type_signal=void
12444
fi
12445
 
12446
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12447
fi
12448 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12449
$as_echo "$ac_cv_type_signal" >&6; }
12450 19 jeremybenn
 
12451
cat >>confdefs.h <<_ACEOF
12452
#define RETSIGTYPE $ac_cv_type_signal
12453
_ACEOF
12454
 
12455
 
12456
 
12457
 
12458
 
12459
 
12460
 
12461
 
12462
 
12463
 
12464
 
12465
 
12466
 
12467
 
12468
 
12469
 
12470
 
12471 82 jeremybenn
 
12472
 
12473
 
12474
 
12475
 
12476
 
12477
 
12478
for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h      \
12479
                 sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
12480
                 termcap.h termios.h termio.h sys/file.h locale.h getopt.h    \
12481
                 net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h
12482
do
12483
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12484 19 jeremybenn
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12485 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12486
$as_echo_n "checking for $ac_header... " >&6; }
12487
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12488
  $as_echo_n "(cached) " >&6
12489
fi
12490
ac_res=`eval 'as_val=${'$as_ac_Header'}
12491
                 $as_echo "$as_val"'`
12492
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12493
$as_echo "$ac_res" >&6; }
12494 19 jeremybenn
else
12495 82 jeremybenn
  # Is the header compilable?
12496
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12497
$as_echo_n "checking $ac_header usability... " >&6; }
12498
cat >conftest.$ac_ext <<_ACEOF
12499 19 jeremybenn
/* confdefs.h.  */
12500
_ACEOF
12501
cat confdefs.h >>conftest.$ac_ext
12502
cat >>conftest.$ac_ext <<_ACEOF
12503
/* end confdefs.h.  */
12504 82 jeremybenn
$ac_includes_default
12505
#include <$ac_header>
12506 19 jeremybenn
_ACEOF
12507
rm -f conftest.$ac_objext
12508
if { (ac_try="$ac_compile"
12509
case "(($ac_try" in
12510
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511
  *) ac_try_echo=$ac_try;;
12512
esac
12513 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12514
$as_echo "$ac_try_echo") >&5
12515 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
12516
  ac_status=$?
12517
  grep -v '^ *+' conftest.er1 >conftest.err
12518
  rm -f conftest.er1
12519
  cat conftest.err >&5
12520 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 19 jeremybenn
  (exit $ac_status); } && {
12522
         test -z "$ac_c_werror_flag" ||
12523
         test ! -s conftest.err
12524
       } && test -s conftest.$ac_objext; then
12525 82 jeremybenn
  ac_header_compiler=yes
12526 19 jeremybenn
else
12527 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12528 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12529
 
12530 82 jeremybenn
        ac_header_compiler=no
12531 19 jeremybenn
fi
12532
 
12533
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12534 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12535
$as_echo "$ac_header_compiler" >&6; }
12536 19 jeremybenn
 
12537 82 jeremybenn
# Is the header present?
12538
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12539
$as_echo_n "checking $ac_header presence... " >&6; }
12540 19 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
12541
/* confdefs.h.  */
12542
_ACEOF
12543
cat confdefs.h >>conftest.$ac_ext
12544
cat >>conftest.$ac_ext <<_ACEOF
12545
/* end confdefs.h.  */
12546 82 jeremybenn
#include <$ac_header>
12547 19 jeremybenn
_ACEOF
12548 82 jeremybenn
if { (ac_try="$ac_cpp conftest.$ac_ext"
12549 19 jeremybenn
case "(($ac_try" in
12550
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551
  *) ac_try_echo=$ac_try;;
12552
esac
12553 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12554
$as_echo "$ac_try_echo") >&5
12555
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12556 19 jeremybenn
  ac_status=$?
12557
  grep -v '^ *+' conftest.er1 >conftest.err
12558
  rm -f conftest.er1
12559
  cat conftest.err >&5
12560 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561
  (exit $ac_status); } >/dev/null && {
12562
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12563 19 jeremybenn
         test ! -s conftest.err
12564 82 jeremybenn
       }; then
12565
  ac_header_preproc=yes
12566 19 jeremybenn
else
12567 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12568 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12569
 
12570 82 jeremybenn
  ac_header_preproc=no
12571 19 jeremybenn
fi
12572
 
12573 82 jeremybenn
rm -f conftest.err conftest.$ac_ext
12574
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12575
$as_echo "$ac_header_preproc" >&6; }
12576
 
12577
# So?  What about this header?
12578
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12579
  yes:no: )
12580
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12581
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12582
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12583
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12584
    ac_header_preproc=yes
12585
    ;;
12586
  no:yes:* )
12587
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12588
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12589
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12590
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12591
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12592
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12593
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12594
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12595
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12596
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12597
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12598
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12599
    ( cat <<\_ASBOX
12600
## ------------------------------------- ##
12601
## Report this to openrisc@opencores.org ##
12602
## ------------------------------------- ##
12603
_ASBOX
12604
     ) | sed "s/^/$as_me: WARNING:     /" >&2
12605
    ;;
12606
esac
12607
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12608
$as_echo_n "checking for $ac_header... " >&6; }
12609
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12610
  $as_echo_n "(cached) " >&6
12611 19 jeremybenn
else
12612 82 jeremybenn
  eval "$as_ac_Header=\$ac_header_preproc"
12613 19 jeremybenn
fi
12614 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
12615
                 $as_echo "$as_val"'`
12616
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12617
$as_echo "$ac_res" >&6; }
12618 19 jeremybenn
 
12619
fi
12620 82 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
12621
                 $as_echo "$as_val"'`
12622
   if test "x$as_val" = x""yes; then
12623
  cat >>confdefs.h <<_ACEOF
12624
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12625 19 jeremybenn
_ACEOF
12626
 
12627
fi
12628
 
12629
done
12630
 
12631
 
12632
 
12633
 
12634
 
12635
 
12636
 
12637
 
12638
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
12639
do
12640 82 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12641
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12642
$as_echo_n "checking for $ac_func... " >&6; }
12643 19 jeremybenn
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12644 82 jeremybenn
  $as_echo_n "(cached) " >&6
12645 19 jeremybenn
else
12646
  cat >conftest.$ac_ext <<_ACEOF
12647
/* confdefs.h.  */
12648
_ACEOF
12649
cat confdefs.h >>conftest.$ac_ext
12650
cat >>conftest.$ac_ext <<_ACEOF
12651
/* end confdefs.h.  */
12652
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12653
   For example, HP-UX 11i  declares gettimeofday.  */
12654
#define $ac_func innocuous_$ac_func
12655
 
12656
/* System header to define __stub macros and hopefully few prototypes,
12657
    which can conflict with char $ac_func (); below.
12658
    Prefer  to  if __STDC__ is defined, since
12659
     exists even on freestanding compilers.  */
12660
 
12661
#ifdef __STDC__
12662
# include 
12663
#else
12664
# include 
12665
#endif
12666
 
12667
#undef $ac_func
12668
 
12669
/* Override any GCC internal prototype to avoid an error.
12670
   Use char because int might match the return type of a GCC
12671
   builtin and then its argument prototype would still apply.  */
12672
#ifdef __cplusplus
12673
extern "C"
12674
#endif
12675
char $ac_func ();
12676
/* The GNU C library defines this for functions which it implements
12677
    to always fail with ENOSYS.  Some functions are actually named
12678
    something starting with __ and the normal name is an alias.  */
12679
#if defined __stub_$ac_func || defined __stub___$ac_func
12680
choke me
12681
#endif
12682
 
12683
int
12684
main ()
12685
{
12686
return $ac_func ();
12687
  ;
12688
  return 0;
12689
}
12690
_ACEOF
12691
rm -f conftest.$ac_objext conftest$ac_exeext
12692
if { (ac_try="$ac_link"
12693
case "(($ac_try" in
12694
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695
  *) ac_try_echo=$ac_try;;
12696
esac
12697 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12698
$as_echo "$ac_try_echo") >&5
12699 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
12700
  ac_status=$?
12701
  grep -v '^ *+' conftest.er1 >conftest.err
12702
  rm -f conftest.er1
12703
  cat conftest.err >&5
12704 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 19 jeremybenn
  (exit $ac_status); } && {
12706
         test -z "$ac_c_werror_flag" ||
12707
         test ! -s conftest.err
12708 82 jeremybenn
       } && test -s conftest$ac_exeext && {
12709
         test "$cross_compiling" = yes ||
12710
         $as_test_x conftest$ac_exeext
12711
       }; then
12712 19 jeremybenn
  eval "$as_ac_var=yes"
12713
else
12714 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12715 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12716
 
12717
        eval "$as_ac_var=no"
12718
fi
12719
 
12720 82 jeremybenn
rm -rf conftest.dSYM
12721 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12722
      conftest$ac_exeext conftest.$ac_ext
12723
fi
12724 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
12725
                 $as_echo "$as_val"'`
12726
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12727
$as_echo "$ac_res" >&6; }
12728
as_val=`eval 'as_val=${'$as_ac_var'}
12729
                 $as_echo "$as_val"'`
12730
   if test "x$as_val" = x""yes; then
12731 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12732 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12733 19 jeremybenn
_ACEOF
12734
 
12735
fi
12736
done
12737
 
12738
 
12739
 
12740
 
12741
 
12742 82 jeremybenn
for ac_func in grantpt unlockpt ptsname on_exit
12743 19 jeremybenn
do
12744 82 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12745
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12746
$as_echo_n "checking for $ac_func... " >&6; }
12747 19 jeremybenn
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12748 82 jeremybenn
  $as_echo_n "(cached) " >&6
12749 19 jeremybenn
else
12750
  cat >conftest.$ac_ext <<_ACEOF
12751
/* confdefs.h.  */
12752
_ACEOF
12753
cat confdefs.h >>conftest.$ac_ext
12754
cat >>conftest.$ac_ext <<_ACEOF
12755
/* end confdefs.h.  */
12756
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12757
   For example, HP-UX 11i  declares gettimeofday.  */
12758
#define $ac_func innocuous_$ac_func
12759
 
12760
/* System header to define __stub macros and hopefully few prototypes,
12761
    which can conflict with char $ac_func (); below.
12762
    Prefer  to  if __STDC__ is defined, since
12763
     exists even on freestanding compilers.  */
12764
 
12765
#ifdef __STDC__
12766
# include 
12767
#else
12768
# include 
12769
#endif
12770
 
12771
#undef $ac_func
12772
 
12773
/* Override any GCC internal prototype to avoid an error.
12774
   Use char because int might match the return type of a GCC
12775
   builtin and then its argument prototype would still apply.  */
12776
#ifdef __cplusplus
12777
extern "C"
12778
#endif
12779
char $ac_func ();
12780
/* The GNU C library defines this for functions which it implements
12781
    to always fail with ENOSYS.  Some functions are actually named
12782
    something starting with __ and the normal name is an alias.  */
12783
#if defined __stub_$ac_func || defined __stub___$ac_func
12784
choke me
12785
#endif
12786
 
12787
int
12788
main ()
12789
{
12790
return $ac_func ();
12791
  ;
12792
  return 0;
12793
}
12794
_ACEOF
12795
rm -f conftest.$ac_objext conftest$ac_exeext
12796
if { (ac_try="$ac_link"
12797
case "(($ac_try" in
12798
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799
  *) ac_try_echo=$ac_try;;
12800
esac
12801 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12802
$as_echo "$ac_try_echo") >&5
12803 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
12804
  ac_status=$?
12805
  grep -v '^ *+' conftest.er1 >conftest.err
12806
  rm -f conftest.er1
12807
  cat conftest.err >&5
12808 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 19 jeremybenn
  (exit $ac_status); } && {
12810
         test -z "$ac_c_werror_flag" ||
12811
         test ! -s conftest.err
12812 82 jeremybenn
       } && test -s conftest$ac_exeext && {
12813
         test "$cross_compiling" = yes ||
12814
         $as_test_x conftest$ac_exeext
12815
       }; then
12816 19 jeremybenn
  eval "$as_ac_var=yes"
12817
else
12818 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12819 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12820
 
12821
        eval "$as_ac_var=no"
12822
fi
12823
 
12824 82 jeremybenn
rm -rf conftest.dSYM
12825 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12826
      conftest$ac_exeext conftest.$ac_ext
12827
fi
12828 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
12829
                 $as_echo "$as_val"'`
12830
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12831
$as_echo "$ac_res" >&6; }
12832
as_val=`eval 'as_val=${'$as_ac_var'}
12833
                 $as_echo "$as_val"'`
12834
   if test "x$as_val" = x""yes; then
12835 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12836 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12837 19 jeremybenn
_ACEOF
12838
 
12839
fi
12840
done
12841
 
12842
 
12843
for ac_func in basename
12844
do
12845 82 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12846
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12847
$as_echo_n "checking for $ac_func... " >&6; }
12848 19 jeremybenn
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12849 82 jeremybenn
  $as_echo_n "(cached) " >&6
12850 19 jeremybenn
else
12851
  cat >conftest.$ac_ext <<_ACEOF
12852
/* confdefs.h.  */
12853
_ACEOF
12854
cat confdefs.h >>conftest.$ac_ext
12855
cat >>conftest.$ac_ext <<_ACEOF
12856
/* end confdefs.h.  */
12857
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12858
   For example, HP-UX 11i  declares gettimeofday.  */
12859
#define $ac_func innocuous_$ac_func
12860
 
12861
/* System header to define __stub macros and hopefully few prototypes,
12862
    which can conflict with char $ac_func (); below.
12863
    Prefer  to  if __STDC__ is defined, since
12864
     exists even on freestanding compilers.  */
12865
 
12866
#ifdef __STDC__
12867
# include 
12868
#else
12869
# include 
12870
#endif
12871
 
12872
#undef $ac_func
12873
 
12874
/* Override any GCC internal prototype to avoid an error.
12875
   Use char because int might match the return type of a GCC
12876
   builtin and then its argument prototype would still apply.  */
12877
#ifdef __cplusplus
12878
extern "C"
12879
#endif
12880
char $ac_func ();
12881
/* The GNU C library defines this for functions which it implements
12882
    to always fail with ENOSYS.  Some functions are actually named
12883
    something starting with __ and the normal name is an alias.  */
12884
#if defined __stub_$ac_func || defined __stub___$ac_func
12885
choke me
12886
#endif
12887
 
12888
int
12889
main ()
12890
{
12891
return $ac_func ();
12892
  ;
12893
  return 0;
12894
}
12895
_ACEOF
12896
rm -f conftest.$ac_objext conftest$ac_exeext
12897
if { (ac_try="$ac_link"
12898
case "(($ac_try" in
12899
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900
  *) ac_try_echo=$ac_try;;
12901
esac
12902 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12903
$as_echo "$ac_try_echo") >&5
12904 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
12905
  ac_status=$?
12906
  grep -v '^ *+' conftest.er1 >conftest.err
12907
  rm -f conftest.er1
12908
  cat conftest.err >&5
12909 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 19 jeremybenn
  (exit $ac_status); } && {
12911
         test -z "$ac_c_werror_flag" ||
12912
         test ! -s conftest.err
12913 82 jeremybenn
       } && test -s conftest$ac_exeext && {
12914
         test "$cross_compiling" = yes ||
12915
         $as_test_x conftest$ac_exeext
12916
       }; then
12917 19 jeremybenn
  eval "$as_ac_var=yes"
12918
else
12919 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
12920 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12921
 
12922
        eval "$as_ac_var=no"
12923
fi
12924
 
12925 82 jeremybenn
rm -rf conftest.dSYM
12926 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12927
      conftest$ac_exeext conftest.$ac_ext
12928
fi
12929 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
12930
                 $as_echo "$as_val"'`
12931
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12932
$as_echo "$ac_res" >&6; }
12933
as_val=`eval 'as_val=${'$as_ac_var'}
12934
                 $as_echo "$as_val"'`
12935
   if test "x$as_val" = x""yes; then
12936 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12937 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12938 19 jeremybenn
_ACEOF
12939
 
12940
fi
12941
done
12942
 
12943 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for working strcoll" >&5
12944
$as_echo_n "checking for working strcoll... " >&6; }
12945 19 jeremybenn
if test "${ac_cv_func_strcoll_works+set}" = set; then
12946 82 jeremybenn
  $as_echo_n "(cached) " >&6
12947 19 jeremybenn
else
12948
  if test "$cross_compiling" = yes; then
12949
  ac_cv_func_strcoll_works=no
12950
else
12951
  cat >conftest.$ac_ext <<_ACEOF
12952
/* confdefs.h.  */
12953
_ACEOF
12954
cat confdefs.h >>conftest.$ac_ext
12955
cat >>conftest.$ac_ext <<_ACEOF
12956
/* end confdefs.h.  */
12957
$ac_includes_default
12958
int
12959
main ()
12960
{
12961
return (strcoll ("abc", "def") >= 0 ||
12962
         strcoll ("ABC", "DEF") >= 0 ||
12963
         strcoll ("123", "456") >= 0)
12964
  ;
12965
  return 0;
12966
}
12967
_ACEOF
12968
rm -f conftest$ac_exeext
12969
if { (ac_try="$ac_link"
12970
case "(($ac_try" in
12971
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12972
  *) ac_try_echo=$ac_try;;
12973
esac
12974 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12975
$as_echo "$ac_try_echo") >&5
12976 19 jeremybenn
  (eval "$ac_link") 2>&5
12977
  ac_status=$?
12978 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12980
  { (case "(($ac_try" in
12981
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12982
  *) ac_try_echo=$ac_try;;
12983
esac
12984 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12985
$as_echo "$ac_try_echo") >&5
12986 19 jeremybenn
  (eval "$ac_try") 2>&5
12987
  ac_status=$?
12988 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 19 jeremybenn
  (exit $ac_status); }; }; then
12990
  ac_cv_func_strcoll_works=yes
12991
else
12992 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
12993
$as_echo "$as_me: failed program was:" >&5
12994 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
12995
 
12996
( exit $ac_status )
12997
ac_cv_func_strcoll_works=no
12998
fi
12999 82 jeremybenn
rm -rf conftest.dSYM
13000 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13001
fi
13002
 
13003
 
13004
fi
13005 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13006
$as_echo "$ac_cv_func_strcoll_works" >&6; }
13007 19 jeremybenn
if test $ac_cv_func_strcoll_works = yes; then
13008
 
13009
cat >>confdefs.h <<\_ACEOF
13010
#define HAVE_STRCOLL 1
13011
_ACEOF
13012
 
13013
fi
13014
 
13015 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether I_PUSH is declared" >&5
13016
$as_echo_n "checking whether I_PUSH is declared... " >&6; }
13017
if test "${ac_cv_have_decl_I_PUSH+set}" = set; then
13018
  $as_echo_n "(cached) " >&6
13019 19 jeremybenn
else
13020
  cat >conftest.$ac_ext <<_ACEOF
13021
/* confdefs.h.  */
13022
_ACEOF
13023
cat confdefs.h >>conftest.$ac_ext
13024
cat >>conftest.$ac_ext <<_ACEOF
13025
/* end confdefs.h.  */
13026 82 jeremybenn
\
13027
               #include 
13028 19 jeremybenn
 
13029
int
13030
main ()
13031
{
13032 82 jeremybenn
#ifndef I_PUSH
13033
  (void) I_PUSH;
13034
#endif
13035 19 jeremybenn
 
13036
  ;
13037
  return 0;
13038
}
13039
_ACEOF
13040
rm -f conftest.$ac_objext
13041
if { (ac_try="$ac_compile"
13042
case "(($ac_try" in
13043
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13044
  *) ac_try_echo=$ac_try;;
13045
esac
13046 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13047
$as_echo "$ac_try_echo") >&5
13048 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13049
  ac_status=$?
13050
  grep -v '^ *+' conftest.er1 >conftest.err
13051
  rm -f conftest.er1
13052
  cat conftest.err >&5
13053 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 19 jeremybenn
  (exit $ac_status); } && {
13055
         test -z "$ac_c_werror_flag" ||
13056
         test ! -s conftest.err
13057
       } && test -s conftest.$ac_objext; then
13058 82 jeremybenn
  ac_cv_have_decl_I_PUSH=yes
13059 19 jeremybenn
else
13060 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13061 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13062
 
13063 82 jeremybenn
        ac_cv_have_decl_I_PUSH=no
13064 19 jeremybenn
fi
13065
 
13066
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13067 82 jeremybenn
fi
13068
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_I_PUSH" >&5
13069
$as_echo "$ac_cv_have_decl_I_PUSH" >&6; }
13070
if test "x$ac_cv_have_decl_I_PUSH" = x""yes; then
13071 19 jeremybenn
 
13072 82 jeremybenn
cat >>confdefs.h <<_ACEOF
13073
#define HAVE_DECL_I_PUSH 1
13074 19 jeremybenn
_ACEOF
13075
 
13076 82 jeremybenn
 
13077 19 jeremybenn
else
13078 82 jeremybenn
  cat >>confdefs.h <<_ACEOF
13079
#define HAVE_DECL_I_PUSH 0
13080 19 jeremybenn
_ACEOF
13081
 
13082
 
13083
fi
13084 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether rl_event_hook is declared" >&5
13085
$as_echo_n "checking whether rl_event_hook is declared... " >&6; }
13086
if test "${ac_cv_have_decl_rl_event_hook+set}" = set; then
13087
  $as_echo_n "(cached) " >&6
13088 19 jeremybenn
else
13089
  cat >conftest.$ac_ext <<_ACEOF
13090
/* confdefs.h.  */
13091
_ACEOF
13092
cat confdefs.h >>conftest.$ac_ext
13093
cat >>conftest.$ac_ext <<_ACEOF
13094
/* end confdefs.h.  */
13095 82 jeremybenn
\
13096
               #include 
13097 19 jeremybenn
 
13098
int
13099
main ()
13100
{
13101 82 jeremybenn
#ifndef rl_event_hook
13102
  (void) rl_event_hook;
13103
#endif
13104
 
13105
  ;
13106 19 jeremybenn
  return 0;
13107
}
13108
_ACEOF
13109 82 jeremybenn
rm -f conftest.$ac_objext
13110
if { (ac_try="$ac_compile"
13111 19 jeremybenn
case "(($ac_try" in
13112
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113
  *) ac_try_echo=$ac_try;;
13114
esac
13115 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13116
$as_echo "$ac_try_echo") >&5
13117
  (eval "$ac_compile") 2>conftest.er1
13118 19 jeremybenn
  ac_status=$?
13119 82 jeremybenn
  grep -v '^ *+' conftest.er1 >conftest.err
13120
  rm -f conftest.er1
13121
  cat conftest.err >&5
13122
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123
  (exit $ac_status); } && {
13124
         test -z "$ac_c_werror_flag" ||
13125
         test ! -s conftest.err
13126
       } && test -s conftest.$ac_objext; then
13127
  ac_cv_have_decl_rl_event_hook=yes
13128 19 jeremybenn
else
13129 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13130 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13131
 
13132 82 jeremybenn
        ac_cv_have_decl_rl_event_hook=no
13133 19 jeremybenn
fi
13134
 
13135 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13136 19 jeremybenn
fi
13137 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_rl_event_hook" >&5
13138
$as_echo "$ac_cv_have_decl_rl_event_hook" >&6; }
13139
if test "x$ac_cv_have_decl_rl_event_hook" = x""yes; then
13140 19 jeremybenn
 
13141 82 jeremybenn
cat >>confdefs.h <<_ACEOF
13142
#define HAVE_DECL_RL_EVENT_HOOK 1
13143 19 jeremybenn
_ACEOF
13144
 
13145
 
13146 82 jeremybenn
else
13147
  cat >>confdefs.h <<_ACEOF
13148
#define HAVE_DECL_RL_EVENT_HOOK 0
13149
_ACEOF
13150 19 jeremybenn
 
13151
 
13152 82 jeremybenn
fi
13153 19 jeremybenn
 
13154
 
13155
 
13156 82 jeremybenn
 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13157
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13158
if test "${ac_cv_c_bigendian+set}" = set; then
13159
  $as_echo_n "(cached) " >&6
13160 19 jeremybenn
else
13161 82 jeremybenn
  ac_cv_c_bigendian=unknown
13162
    # See if we're dealing with a universal compiler.
13163
    cat >conftest.$ac_ext <<_ACEOF
13164 19 jeremybenn
/* confdefs.h.  */
13165
_ACEOF
13166
cat confdefs.h >>conftest.$ac_ext
13167
cat >>conftest.$ac_ext <<_ACEOF
13168
/* end confdefs.h.  */
13169 82 jeremybenn
#ifndef __APPLE_CC__
13170
               not a universal capable compiler
13171
             #endif
13172
             typedef int dummy;
13173
 
13174 19 jeremybenn
_ACEOF
13175
rm -f conftest.$ac_objext
13176
if { (ac_try="$ac_compile"
13177
case "(($ac_try" in
13178
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179
  *) ac_try_echo=$ac_try;;
13180
esac
13181 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13182
$as_echo "$ac_try_echo") >&5
13183 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13184
  ac_status=$?
13185
  grep -v '^ *+' conftest.er1 >conftest.err
13186
  rm -f conftest.er1
13187
  cat conftest.err >&5
13188 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 19 jeremybenn
  (exit $ac_status); } && {
13190
         test -z "$ac_c_werror_flag" ||
13191
         test ! -s conftest.err
13192
       } && test -s conftest.$ac_objext; then
13193 82 jeremybenn
 
13194
        # Check for potential -arch flags.  It is not universal unless
13195
        # there are some -arch flags.  Note that *ppc* also matches
13196
        # ppc64.  This check is also rather less than ideal.
13197
        case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
13198
          *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13199
        esac
13200 19 jeremybenn
else
13201 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13202 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13203
 
13204 82 jeremybenn
 
13205 19 jeremybenn
fi
13206
 
13207
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13208 82 jeremybenn
    if test $ac_cv_c_bigendian = unknown; then
13209
      # See if sys/param.h defines the BYTE_ORDER macro.
13210
      cat >conftest.$ac_ext <<_ACEOF
13211 19 jeremybenn
/* confdefs.h.  */
13212
_ACEOF
13213
cat confdefs.h >>conftest.$ac_ext
13214
cat >>conftest.$ac_ext <<_ACEOF
13215
/* end confdefs.h.  */
13216 82 jeremybenn
#include 
13217
             #include 
13218
 
13219
int
13220
main ()
13221
{
13222
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13223
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13224
                     && LITTLE_ENDIAN)
13225
              bogus endian macros
13226
             #endif
13227
 
13228
  ;
13229
  return 0;
13230
}
13231 19 jeremybenn
_ACEOF
13232 82 jeremybenn
rm -f conftest.$ac_objext
13233
if { (ac_try="$ac_compile"
13234 19 jeremybenn
case "(($ac_try" in
13235
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236
  *) ac_try_echo=$ac_try;;
13237
esac
13238 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13239
$as_echo "$ac_try_echo") >&5
13240
  (eval "$ac_compile") 2>conftest.er1
13241 19 jeremybenn
  ac_status=$?
13242
  grep -v '^ *+' conftest.er1 >conftest.err
13243
  rm -f conftest.er1
13244
  cat conftest.err >&5
13245 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246
  (exit $ac_status); } && {
13247
         test -z "$ac_c_werror_flag" ||
13248 19 jeremybenn
         test ! -s conftest.err
13249 82 jeremybenn
       } && test -s conftest.$ac_objext; then
13250
  # It does; now see whether it defined to BIG_ENDIAN or not.
13251
         cat >conftest.$ac_ext <<_ACEOF
13252 19 jeremybenn
/* confdefs.h.  */
13253
_ACEOF
13254
cat confdefs.h >>conftest.$ac_ext
13255
cat >>conftest.$ac_ext <<_ACEOF
13256
/* end confdefs.h.  */
13257 82 jeremybenn
#include 
13258
                #include 
13259
 
13260 19 jeremybenn
int
13261
main ()
13262
{
13263 82 jeremybenn
#if BYTE_ORDER != BIG_ENDIAN
13264
                 not big endian
13265
                #endif
13266 19 jeremybenn
 
13267
  ;
13268
  return 0;
13269
}
13270
_ACEOF
13271
rm -f conftest.$ac_objext
13272
if { (ac_try="$ac_compile"
13273
case "(($ac_try" in
13274
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275
  *) ac_try_echo=$ac_try;;
13276
esac
13277 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13278
$as_echo "$ac_try_echo") >&5
13279 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13280
  ac_status=$?
13281
  grep -v '^ *+' conftest.er1 >conftest.err
13282
  rm -f conftest.er1
13283
  cat conftest.err >&5
13284 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 19 jeremybenn
  (exit $ac_status); } && {
13286
         test -z "$ac_c_werror_flag" ||
13287
         test ! -s conftest.err
13288
       } && test -s conftest.$ac_objext; then
13289 82 jeremybenn
  ac_cv_c_bigendian=yes
13290 19 jeremybenn
else
13291 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13292 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13293
 
13294 82 jeremybenn
        ac_cv_c_bigendian=no
13295 19 jeremybenn
fi
13296
 
13297
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13298
else
13299 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13300
sed 's/^/| /' conftest.$ac_ext >&5
13301 19 jeremybenn
 
13302
 
13303
fi
13304
 
13305 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13306
    fi
13307
    if test $ac_cv_c_bigendian = unknown; then
13308
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13309
      cat >conftest.$ac_ext <<_ACEOF
13310 19 jeremybenn
/* confdefs.h.  */
13311
_ACEOF
13312
cat confdefs.h >>conftest.$ac_ext
13313
cat >>conftest.$ac_ext <<_ACEOF
13314
/* end confdefs.h.  */
13315 82 jeremybenn
#include 
13316 19 jeremybenn
 
13317
int
13318
main ()
13319
{
13320 82 jeremybenn
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13321
              bogus endian macros
13322
             #endif
13323 19 jeremybenn
 
13324
  ;
13325
  return 0;
13326
}
13327
_ACEOF
13328
rm -f conftest.$ac_objext
13329
if { (ac_try="$ac_compile"
13330
case "(($ac_try" in
13331
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332
  *) ac_try_echo=$ac_try;;
13333
esac
13334 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13335
$as_echo "$ac_try_echo") >&5
13336 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13337
  ac_status=$?
13338
  grep -v '^ *+' conftest.er1 >conftest.err
13339
  rm -f conftest.er1
13340
  cat conftest.err >&5
13341 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 19 jeremybenn
  (exit $ac_status); } && {
13343
         test -z "$ac_c_werror_flag" ||
13344
         test ! -s conftest.err
13345
       } && test -s conftest.$ac_objext; then
13346 82 jeremybenn
  # It does; now see whether it defined to _BIG_ENDIAN or not.
13347
         cat >conftest.$ac_ext <<_ACEOF
13348 19 jeremybenn
/* confdefs.h.  */
13349
_ACEOF
13350
cat confdefs.h >>conftest.$ac_ext
13351
cat >>conftest.$ac_ext <<_ACEOF
13352
/* end confdefs.h.  */
13353 82 jeremybenn
#include 
13354 19 jeremybenn
 
13355
int
13356
main ()
13357
{
13358 82 jeremybenn
#ifndef _BIG_ENDIAN
13359
                 not big endian
13360
                #endif
13361 19 jeremybenn
 
13362
  ;
13363
  return 0;
13364
}
13365
_ACEOF
13366
rm -f conftest.$ac_objext
13367
if { (ac_try="$ac_compile"
13368
case "(($ac_try" in
13369
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370
  *) ac_try_echo=$ac_try;;
13371
esac
13372 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13373
$as_echo "$ac_try_echo") >&5
13374 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13375
  ac_status=$?
13376
  grep -v '^ *+' conftest.er1 >conftest.err
13377
  rm -f conftest.er1
13378
  cat conftest.err >&5
13379 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 19 jeremybenn
  (exit $ac_status); } && {
13381
         test -z "$ac_c_werror_flag" ||
13382
         test ! -s conftest.err
13383
       } && test -s conftest.$ac_objext; then
13384
  ac_cv_c_bigendian=yes
13385
else
13386 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13387 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13388
 
13389
        ac_cv_c_bigendian=no
13390
fi
13391
 
13392
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13393
else
13394 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13395 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13396
 
13397 82 jeremybenn
 
13398
fi
13399
 
13400
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13401
    fi
13402
    if test $ac_cv_c_bigendian = unknown; then
13403
      # Compile a test program.
13404
      if test "$cross_compiling" = yes; then
13405
  # Try to guess by grepping values from an object file.
13406
         cat >conftest.$ac_ext <<_ACEOF
13407 19 jeremybenn
/* confdefs.h.  */
13408
_ACEOF
13409
cat confdefs.h >>conftest.$ac_ext
13410
cat >>conftest.$ac_ext <<_ACEOF
13411
/* end confdefs.h.  */
13412 82 jeremybenn
short int ascii_mm[] =
13413
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13414
                short int ascii_ii[] =
13415
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13416
                int use_ascii (int i) {
13417
                  return ascii_mm[i] + ascii_ii[i];
13418
                }
13419
                short int ebcdic_ii[] =
13420
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13421
                short int ebcdic_mm[] =
13422
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13423
                int use_ebcdic (int i) {
13424
                  return ebcdic_mm[i] + ebcdic_ii[i];
13425
                }
13426
                extern int foo;
13427
 
13428 19 jeremybenn
int
13429
main ()
13430
{
13431 82 jeremybenn
return use_ascii (foo) == use_ebcdic (foo);
13432 19 jeremybenn
  ;
13433
  return 0;
13434
}
13435
_ACEOF
13436
rm -f conftest.$ac_objext
13437
if { (ac_try="$ac_compile"
13438
case "(($ac_try" in
13439
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440
  *) ac_try_echo=$ac_try;;
13441
esac
13442 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13443
$as_echo "$ac_try_echo") >&5
13444 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13445
  ac_status=$?
13446
  grep -v '^ *+' conftest.er1 >conftest.err
13447
  rm -f conftest.er1
13448
  cat conftest.err >&5
13449 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 19 jeremybenn
  (exit $ac_status); } && {
13451
         test -z "$ac_c_werror_flag" ||
13452
         test ! -s conftest.err
13453
       } && test -s conftest.$ac_objext; then
13454 82 jeremybenn
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13455
              ac_cv_c_bigendian=yes
13456
            fi
13457
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13458
              if test "$ac_cv_c_bigendian" = unknown; then
13459
                ac_cv_c_bigendian=no
13460
              else
13461
                # finding both strings is unlikely to happen, but who knows?
13462
                ac_cv_c_bigendian=unknown
13463
              fi
13464
            fi
13465 19 jeremybenn
else
13466 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13467 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13468
 
13469
 
13470
fi
13471
 
13472
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13473
else
13474
  cat >conftest.$ac_ext <<_ACEOF
13475
/* confdefs.h.  */
13476
_ACEOF
13477
cat confdefs.h >>conftest.$ac_ext
13478
cat >>conftest.$ac_ext <<_ACEOF
13479
/* end confdefs.h.  */
13480
$ac_includes_default
13481
int
13482
main ()
13483
{
13484
 
13485 82 jeremybenn
             /* Are we little or big endian?  From Harbison&Steele.  */
13486
             union
13487
             {
13488
               long int l;
13489
               char c[sizeof (long int)];
13490
             } u;
13491
             u.l = 1;
13492
             return u.c[sizeof (long int) - 1] == 1;
13493 19 jeremybenn
 
13494
  ;
13495
  return 0;
13496
}
13497
_ACEOF
13498
rm -f conftest$ac_exeext
13499
if { (ac_try="$ac_link"
13500
case "(($ac_try" in
13501
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502
  *) ac_try_echo=$ac_try;;
13503
esac
13504 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13505
$as_echo "$ac_try_echo") >&5
13506 19 jeremybenn
  (eval "$ac_link") 2>&5
13507
  ac_status=$?
13508 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13510
  { (case "(($ac_try" in
13511
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13512
  *) ac_try_echo=$ac_try;;
13513
esac
13514 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13515
$as_echo "$ac_try_echo") >&5
13516 19 jeremybenn
  (eval "$ac_try") 2>&5
13517
  ac_status=$?
13518 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 19 jeremybenn
  (exit $ac_status); }; }; then
13520
  ac_cv_c_bigendian=no
13521
else
13522 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
13523
$as_echo "$as_me: failed program was:" >&5
13524 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13525
 
13526
( exit $ac_status )
13527
ac_cv_c_bigendian=yes
13528
fi
13529 82 jeremybenn
rm -rf conftest.dSYM
13530 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13531
fi
13532
 
13533
 
13534 82 jeremybenn
    fi
13535 19 jeremybenn
fi
13536 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13537
$as_echo "$ac_cv_c_bigendian" >&6; }
13538
 case $ac_cv_c_bigendian in #(
13539
   yes)
13540
     cat >>confdefs.h <<\_ACEOF
13541
#define WORDS_BIGENDIAN 1
13542
_ACEOF
13543
;; #(
13544
   no)
13545
      ;; #(
13546
   universal)
13547 19 jeremybenn
 
13548 82 jeremybenn
cat >>confdefs.h <<\_ACEOF
13549
#define AC_APPLE_UNIVERSAL_BUILD 1
13550
_ACEOF
13551
 
13552
     ;; #(
13553
   *)
13554
     { { $as_echo "$as_me:$LINENO: error: unknown endianness
13555
 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13556
$as_echo "$as_me: error: unknown endianness
13557
 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13558
   { (exit 1); exit 1; }; } ;;
13559
 esac
13560
 
13561
 
13562
# The test for strndup, strcasecmp and isblank fails on modern machines. I
13563
# think it's because GCC 4 does not like the way autoconf overrides the built
13564
# in type declaration. So we must check for them by steam.
13565
{ $as_echo "$as_me:$LINENO: checking for strndup" >&5
13566
$as_echo_n "checking for strndup... " >&6; }
13567
cat >conftest.$ac_ext <<_ACEOF
13568
/* confdefs.h.  */
13569
_ACEOF
13570
cat confdefs.h >>conftest.$ac_ext
13571
cat >>conftest.$ac_ext <<_ACEOF
13572
/* end confdefs.h.  */
13573
#ifdef HAVE_STRING_H
13574
                                  #include 
13575
                                  #else
13576
                                  char *strndup (const char *s,
13577
                                                 size_t      n);
13578
                                  #endif
13579
int
13580
main ()
13581
{
13582
\
13583
                                const char *s = "test";
13584
                                  char       *t;
13585
                                  t = strndup (s, 3);
13586
  ;
13587
  return 0;
13588
}
13589
_ACEOF
13590
rm -f conftest.$ac_objext conftest$ac_exeext
13591
if { (ac_try="$ac_link"
13592
case "(($ac_try" in
13593
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13594
  *) ac_try_echo=$ac_try;;
13595
esac
13596
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13597
$as_echo "$ac_try_echo") >&5
13598
  (eval "$ac_link") 2>conftest.er1
13599
  ac_status=$?
13600
  grep -v '^ *+' conftest.er1 >conftest.err
13601
  rm -f conftest.er1
13602
  cat conftest.err >&5
13603
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604
  (exit $ac_status); } && {
13605
         test -z "$ac_c_werror_flag" ||
13606
         test ! -s conftest.err
13607
       } && test -s conftest$ac_exeext && {
13608
         test "$cross_compiling" = yes ||
13609
         $as_test_x conftest$ac_exeext
13610
       }; then
13611
  \
13612
 
13613
cat >>confdefs.h <<\_ACEOF
13614
#define HAVE_STRNDUP 1
13615
_ACEOF
13616
 \
13617
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13618
$as_echo "yes" >&6; }
13619
else
13620
  $as_echo "$as_me: failed program was:" >&5
13621
sed 's/^/| /' conftest.$ac_ext >&5
13622
 
13623
        { $as_echo "$as_me:$LINENO: result: no" >&5
13624
$as_echo "no" >&6; }
13625 19 jeremybenn
fi
13626
 
13627 82 jeremybenn
rm -rf conftest.dSYM
13628
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13629
      conftest$ac_exeext conftest.$ac_ext
13630
 
13631
{ $as_echo "$as_me:$LINENO: checking for strcasecmp" >&5
13632
$as_echo_n "checking for strcasecmp... " >&6; }
13633
cat >conftest.$ac_ext <<_ACEOF
13634
/* confdefs.h.  */
13635
_ACEOF
13636
cat confdefs.h >>conftest.$ac_ext
13637
cat >>conftest.$ac_ext <<_ACEOF
13638
/* end confdefs.h.  */
13639
#ifdef HAVE_STRINGS_H
13640
                                  #include 
13641
                                  #else
13642
                                  int strcasecmp (const char *s1,
13643
                                                  const char *s2);
13644
                                  #endif
13645
int
13646
main ()
13647
{
13648
\
13649
                                const char *s = "test";
13650
                                  const char *t = "TEST";
13651
                                  int         res;
13652
                                  res = strcasecmp (s, t);
13653
  ;
13654
  return 0;
13655
}
13656
_ACEOF
13657
rm -f conftest.$ac_objext conftest$ac_exeext
13658
if { (ac_try="$ac_link"
13659
case "(($ac_try" in
13660
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13661
  *) ac_try_echo=$ac_try;;
13662
esac
13663
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13664
$as_echo "$ac_try_echo") >&5
13665
  (eval "$ac_link") 2>conftest.er1
13666
  ac_status=$?
13667
  grep -v '^ *+' conftest.er1 >conftest.err
13668
  rm -f conftest.er1
13669
  cat conftest.err >&5
13670
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671
  (exit $ac_status); } && {
13672
         test -z "$ac_c_werror_flag" ||
13673
         test ! -s conftest.err
13674
       } && test -s conftest$ac_exeext && {
13675
         test "$cross_compiling" = yes ||
13676
         $as_test_x conftest$ac_exeext
13677
       }; then
13678
  \
13679
 
13680 19 jeremybenn
cat >>confdefs.h <<\_ACEOF
13681 82 jeremybenn
#define HAVE_STRCASECMP 1
13682 19 jeremybenn
_ACEOF
13683 82 jeremybenn
 \
13684
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13685
$as_echo "yes" >&6; }
13686
else
13687
  $as_echo "$as_me: failed program was:" >&5
13688
sed 's/^/| /' conftest.$ac_ext >&5
13689
 
13690
        { $as_echo "$as_me:$LINENO: result: no" >&5
13691
$as_echo "no" >&6; }
13692
fi
13693
 
13694
rm -rf conftest.dSYM
13695
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13696
      conftest$ac_exeext conftest.$ac_ext
13697
 
13698
{ $as_echo "$as_me:$LINENO: checking for isblank" >&5
13699
$as_echo_n "checking for isblank... " >&6; }
13700
cat >conftest.$ac_ext <<_ACEOF
13701
/* confdefs.h.  */
13702
_ACEOF
13703
cat confdefs.h >>conftest.$ac_ext
13704
cat >>conftest.$ac_ext <<_ACEOF
13705
/* end confdefs.h.  */
13706
#ifdef HAVE_CTYPE_H
13707
                                  #include 
13708
                                  #else
13709
                                  int isblank (int  c);
13710
                                  #endif
13711
int
13712
main ()
13713
{
13714
\
13715
                                return isblank ('x');
13716
  ;
13717
  return 0;
13718
}
13719
_ACEOF
13720
rm -f conftest.$ac_objext conftest$ac_exeext
13721
if { (ac_try="$ac_link"
13722
case "(($ac_try" in
13723
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724
  *) ac_try_echo=$ac_try;;
13725 19 jeremybenn
esac
13726 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13727
$as_echo "$ac_try_echo") >&5
13728
  (eval "$ac_link") 2>conftest.er1
13729
  ac_status=$?
13730
  grep -v '^ *+' conftest.er1 >conftest.err
13731
  rm -f conftest.er1
13732
  cat conftest.err >&5
13733
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734
  (exit $ac_status); } && {
13735
         test -z "$ac_c_werror_flag" ||
13736
         test ! -s conftest.err
13737
       } && test -s conftest$ac_exeext && {
13738
         test "$cross_compiling" = yes ||
13739
         $as_test_x conftest$ac_exeext
13740
       }; then
13741
  \
13742 19 jeremybenn
 
13743 82 jeremybenn
cat >>confdefs.h <<\_ACEOF
13744
#define HAVE_ISBLANK 1
13745
_ACEOF
13746
 \
13747
                { $as_echo "$as_me:$LINENO: result: yes" >&5
13748
$as_echo "yes" >&6; }
13749
else
13750
  $as_echo "$as_me: failed program was:" >&5
13751
sed 's/^/| /' conftest.$ac_ext >&5
13752 19 jeremybenn
 
13753 82 jeremybenn
        { $as_echo "$as_me:$LINENO: result: no" >&5
13754
$as_echo "no" >&6; }
13755
fi
13756
 
13757
rm -rf conftest.dSYM
13758
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13759
      conftest$ac_exeext conftest.$ac_ext
13760
 
13761 19 jeremybenn
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
13762 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13763
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13764 19 jeremybenn
if test "${ac_cv_c_const+set}" = set; then
13765 82 jeremybenn
  $as_echo_n "(cached) " >&6
13766 19 jeremybenn
else
13767
  cat >conftest.$ac_ext <<_ACEOF
13768
/* confdefs.h.  */
13769
_ACEOF
13770
cat confdefs.h >>conftest.$ac_ext
13771
cat >>conftest.$ac_ext <<_ACEOF
13772
/* end confdefs.h.  */
13773
 
13774
int
13775
main ()
13776
{
13777
/* FIXME: Include the comments suggested by Paul. */
13778
#ifndef __cplusplus
13779
  /* Ultrix mips cc rejects this.  */
13780
  typedef int charset[2];
13781
  const charset cs;
13782
  /* SunOS 4.1.1 cc rejects this.  */
13783
  char const *const *pcpcc;
13784
  char **ppc;
13785
  /* NEC SVR4.0.2 mips cc rejects this.  */
13786
  struct point {int x, y;};
13787
  static struct point const zero = {0,0};
13788
  /* AIX XL C 1.02.0.0 rejects this.
13789
     It does not let you subtract one const X* pointer from another in
13790
     an arm of an if-expression whose if-part is not a constant
13791
     expression */
13792
  const char *g = "string";
13793
  pcpcc = &g + (g ? g-g : 0);
13794
  /* HPUX 7.0 cc rejects these. */
13795
  ++pcpcc;
13796
  ppc = (char**) pcpcc;
13797
  pcpcc = (char const *const *) ppc;
13798
  { /* SCO 3.2v4 cc rejects this.  */
13799
    char *t;
13800
    char const *s = 0 ? (char *) 0 : (char const *) 0;
13801
 
13802
    *t++ = 0;
13803
    if (s) return 0;
13804
  }
13805
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13806
    int x[] = {25, 17};
13807
    const int *foo = &x[0];
13808
    ++foo;
13809
  }
13810
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13811
    typedef const int *iptr;
13812
    iptr p = 0;
13813
    ++p;
13814
  }
13815
  { /* AIX XL C 1.02.0.0 rejects this saying
13816
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13817
    struct s { int j; const int *ap[3]; };
13818
    struct s *b; b->j = 5;
13819
  }
13820
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13821
    const int foo = 10;
13822
    if (!foo) return 0;
13823
  }
13824
  return !cs[0] && !zero.x;
13825
#endif
13826
 
13827
  ;
13828
  return 0;
13829
}
13830
_ACEOF
13831
rm -f conftest.$ac_objext
13832
if { (ac_try="$ac_compile"
13833
case "(($ac_try" in
13834
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13835
  *) ac_try_echo=$ac_try;;
13836
esac
13837 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13838
$as_echo "$ac_try_echo") >&5
13839 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13840
  ac_status=$?
13841
  grep -v '^ *+' conftest.er1 >conftest.err
13842
  rm -f conftest.er1
13843
  cat conftest.err >&5
13844 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 19 jeremybenn
  (exit $ac_status); } && {
13846
         test -z "$ac_c_werror_flag" ||
13847
         test ! -s conftest.err
13848
       } && test -s conftest.$ac_objext; then
13849
  ac_cv_c_const=yes
13850
else
13851 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13852 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13853
 
13854
        ac_cv_c_const=no
13855
fi
13856
 
13857
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13858
fi
13859 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13860
$as_echo "$ac_cv_c_const" >&6; }
13861 19 jeremybenn
if test $ac_cv_c_const = no; then
13862
 
13863
cat >>confdefs.h <<\_ACEOF
13864 82 jeremybenn
#define const /**/
13865 19 jeremybenn
_ACEOF
13866
 
13867
fi
13868
 
13869 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
13870
$as_echo_n "checking for size_t... " >&6; }
13871 19 jeremybenn
if test "${ac_cv_type_size_t+set}" = set; then
13872 82 jeremybenn
  $as_echo_n "(cached) " >&6
13873 19 jeremybenn
else
13874 82 jeremybenn
  ac_cv_type_size_t=no
13875
cat >conftest.$ac_ext <<_ACEOF
13876
/* confdefs.h.  */
13877
_ACEOF
13878
cat confdefs.h >>conftest.$ac_ext
13879
cat >>conftest.$ac_ext <<_ACEOF
13880
/* end confdefs.h.  */
13881
$ac_includes_default
13882
int
13883
main ()
13884
{
13885
if (sizeof (size_t))
13886
       return 0;
13887
  ;
13888
  return 0;
13889
}
13890
_ACEOF
13891
rm -f conftest.$ac_objext
13892
if { (ac_try="$ac_compile"
13893
case "(($ac_try" in
13894
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895
  *) ac_try_echo=$ac_try;;
13896
esac
13897
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13898
$as_echo "$ac_try_echo") >&5
13899
  (eval "$ac_compile") 2>conftest.er1
13900
  ac_status=$?
13901
  grep -v '^ *+' conftest.er1 >conftest.err
13902
  rm -f conftest.er1
13903
  cat conftest.err >&5
13904
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905
  (exit $ac_status); } && {
13906
         test -z "$ac_c_werror_flag" ||
13907
         test ! -s conftest.err
13908
       } && test -s conftest.$ac_objext; then
13909 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
13910
/* confdefs.h.  */
13911
_ACEOF
13912
cat confdefs.h >>conftest.$ac_ext
13913
cat >>conftest.$ac_ext <<_ACEOF
13914
/* end confdefs.h.  */
13915
$ac_includes_default
13916
int
13917
main ()
13918
{
13919 82 jeremybenn
if (sizeof ((size_t)))
13920
          return 0;
13921 19 jeremybenn
  ;
13922
  return 0;
13923
}
13924
_ACEOF
13925
rm -f conftest.$ac_objext
13926
if { (ac_try="$ac_compile"
13927
case "(($ac_try" in
13928
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13929
  *) ac_try_echo=$ac_try;;
13930
esac
13931 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13932
$as_echo "$ac_try_echo") >&5
13933 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
13934
  ac_status=$?
13935
  grep -v '^ *+' conftest.er1 >conftest.err
13936
  rm -f conftest.er1
13937
  cat conftest.err >&5
13938 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 19 jeremybenn
  (exit $ac_status); } && {
13940
         test -z "$ac_c_werror_flag" ||
13941
         test ! -s conftest.err
13942
       } && test -s conftest.$ac_objext; then
13943 82 jeremybenn
  :
13944 19 jeremybenn
else
13945 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
13946 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
13947
 
13948 82 jeremybenn
        ac_cv_type_size_t=yes
13949 19 jeremybenn
fi
13950
 
13951
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13952 82 jeremybenn
else
13953
  $as_echo "$as_me: failed program was:" >&5
13954
sed 's/^/| /' conftest.$ac_ext >&5
13955
 
13956
 
13957 19 jeremybenn
fi
13958 82 jeremybenn
 
13959
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13960
fi
13961
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13962
$as_echo "$ac_cv_type_size_t" >&6; }
13963
if test "x$ac_cv_type_size_t" = x""yes; then
13964 19 jeremybenn
  :
13965
else
13966
 
13967
cat >>confdefs.h <<_ACEOF
13968
#define size_t unsigned int
13969
_ACEOF
13970
 
13971
fi
13972
 
13973 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13974
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13975 19 jeremybenn
if test "${ac_cv_struct_tm+set}" = set; then
13976 82 jeremybenn
  $as_echo_n "(cached) " >&6
13977 19 jeremybenn
else
13978
  cat >conftest.$ac_ext <<_ACEOF
13979
/* confdefs.h.  */
13980
_ACEOF
13981
cat confdefs.h >>conftest.$ac_ext
13982
cat >>conftest.$ac_ext <<_ACEOF
13983
/* end confdefs.h.  */
13984
#include 
13985
#include 
13986
 
13987
int
13988
main ()
13989
{
13990
struct tm tm;
13991
                                     int *p = &tm.tm_sec;
13992 82 jeremybenn
                                     return !p;
13993 19 jeremybenn
  ;
13994
  return 0;
13995
}
13996
_ACEOF
13997
rm -f conftest.$ac_objext
13998
if { (ac_try="$ac_compile"
13999
case "(($ac_try" in
14000
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001
  *) ac_try_echo=$ac_try;;
14002
esac
14003 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14004
$as_echo "$ac_try_echo") >&5
14005 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
14006
  ac_status=$?
14007
  grep -v '^ *+' conftest.er1 >conftest.err
14008
  rm -f conftest.er1
14009
  cat conftest.err >&5
14010 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 19 jeremybenn
  (exit $ac_status); } && {
14012
         test -z "$ac_c_werror_flag" ||
14013
         test ! -s conftest.err
14014
       } && test -s conftest.$ac_objext; then
14015
  ac_cv_struct_tm=time.h
14016
else
14017 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14018 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14019
 
14020
        ac_cv_struct_tm=sys/time.h
14021
fi
14022
 
14023
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14024
fi
14025 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14026
$as_echo "$ac_cv_struct_tm" >&6; }
14027 19 jeremybenn
if test $ac_cv_struct_tm = sys/time.h; then
14028
 
14029
cat >>confdefs.h <<\_ACEOF
14030
#define TM_IN_SYS_TIME 1
14031
_ACEOF
14032
 
14033
fi
14034
 
14035
 
14036
# Checks for library functions (for argtable2).
14037
 
14038
for ac_header in stdlib.h
14039
do
14040 82 jeremybenn
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14041 19 jeremybenn
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14042 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14043
$as_echo_n "checking for $ac_header... " >&6; }
14044 19 jeremybenn
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14045 82 jeremybenn
  $as_echo_n "(cached) " >&6
14046 19 jeremybenn
fi
14047 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
14048
                 $as_echo "$as_val"'`
14049
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14050
$as_echo "$ac_res" >&6; }
14051 19 jeremybenn
else
14052
  # Is the header compilable?
14053 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14054
$as_echo_n "checking $ac_header usability... " >&6; }
14055 19 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
14056
/* confdefs.h.  */
14057
_ACEOF
14058
cat confdefs.h >>conftest.$ac_ext
14059
cat >>conftest.$ac_ext <<_ACEOF
14060
/* end confdefs.h.  */
14061
$ac_includes_default
14062
#include <$ac_header>
14063
_ACEOF
14064
rm -f conftest.$ac_objext
14065
if { (ac_try="$ac_compile"
14066
case "(($ac_try" in
14067
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14068
  *) ac_try_echo=$ac_try;;
14069
esac
14070 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14071
$as_echo "$ac_try_echo") >&5
14072 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
14073
  ac_status=$?
14074
  grep -v '^ *+' conftest.er1 >conftest.err
14075
  rm -f conftest.er1
14076
  cat conftest.err >&5
14077 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 19 jeremybenn
  (exit $ac_status); } && {
14079
         test -z "$ac_c_werror_flag" ||
14080
         test ! -s conftest.err
14081
       } && test -s conftest.$ac_objext; then
14082
  ac_header_compiler=yes
14083
else
14084 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14085 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14086
 
14087
        ac_header_compiler=no
14088
fi
14089
 
14090
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14091 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14092
$as_echo "$ac_header_compiler" >&6; }
14093 19 jeremybenn
 
14094
# Is the header present?
14095 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14096
$as_echo_n "checking $ac_header presence... " >&6; }
14097 19 jeremybenn
cat >conftest.$ac_ext <<_ACEOF
14098
/* confdefs.h.  */
14099
_ACEOF
14100
cat confdefs.h >>conftest.$ac_ext
14101
cat >>conftest.$ac_ext <<_ACEOF
14102
/* end confdefs.h.  */
14103
#include <$ac_header>
14104
_ACEOF
14105
if { (ac_try="$ac_cpp conftest.$ac_ext"
14106
case "(($ac_try" in
14107
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108
  *) ac_try_echo=$ac_try;;
14109
esac
14110 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14111
$as_echo "$ac_try_echo") >&5
14112 19 jeremybenn
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14113
  ac_status=$?
14114
  grep -v '^ *+' conftest.er1 >conftest.err
14115
  rm -f conftest.er1
14116
  cat conftest.err >&5
14117 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 19 jeremybenn
  (exit $ac_status); } >/dev/null && {
14119
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14120
         test ! -s conftest.err
14121
       }; then
14122
  ac_header_preproc=yes
14123
else
14124 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14125 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14126
 
14127
  ac_header_preproc=no
14128
fi
14129
 
14130
rm -f conftest.err conftest.$ac_ext
14131 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14132
$as_echo "$ac_header_preproc" >&6; }
14133 19 jeremybenn
 
14134
# So?  What about this header?
14135
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14136
  yes:no: )
14137 82 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14138
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14139
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14140
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14141 19 jeremybenn
    ac_header_preproc=yes
14142
    ;;
14143
  no:yes:* )
14144 82 jeremybenn
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14145
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14146
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14147
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14148
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14149
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14150
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14151
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14152
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14153
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14154
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14155
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14156 19 jeremybenn
    ( cat <<\_ASBOX
14157
## ------------------------------------- ##
14158
## Report this to openrisc@opencores.org ##
14159
## ------------------------------------- ##
14160
_ASBOX
14161
     ) | sed "s/^/$as_me: WARNING:     /" >&2
14162
    ;;
14163
esac
14164 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14165
$as_echo_n "checking for $ac_header... " >&6; }
14166 19 jeremybenn
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14167 82 jeremybenn
  $as_echo_n "(cached) " >&6
14168 19 jeremybenn
else
14169
  eval "$as_ac_Header=\$ac_header_preproc"
14170
fi
14171 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_Header'}
14172
                 $as_echo "$as_val"'`
14173
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14174
$as_echo "$ac_res" >&6; }
14175 19 jeremybenn
 
14176
fi
14177 82 jeremybenn
as_val=`eval 'as_val=${'$as_ac_Header'}
14178
                 $as_echo "$as_val"'`
14179
   if test "x$as_val" = x""yes; then
14180 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
14181 82 jeremybenn
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14182 19 jeremybenn
_ACEOF
14183
 
14184
fi
14185
 
14186
done
14187
 
14188 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
14189
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14190 19 jeremybenn
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
14191 82 jeremybenn
  $as_echo_n "(cached) " >&6
14192 19 jeremybenn
else
14193
  if test "$cross_compiling" = yes; then
14194
  ac_cv_func_malloc_0_nonnull=no
14195
else
14196
  cat >conftest.$ac_ext <<_ACEOF
14197
/* confdefs.h.  */
14198
_ACEOF
14199
cat confdefs.h >>conftest.$ac_ext
14200
cat >>conftest.$ac_ext <<_ACEOF
14201
/* end confdefs.h.  */
14202
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
14203
# include 
14204
#else
14205
char *malloc ();
14206
#endif
14207
 
14208
int
14209
main ()
14210
{
14211
return ! malloc (0);
14212
  ;
14213
  return 0;
14214
}
14215
_ACEOF
14216
rm -f conftest$ac_exeext
14217
if { (ac_try="$ac_link"
14218
case "(($ac_try" in
14219
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220
  *) ac_try_echo=$ac_try;;
14221
esac
14222 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14223
$as_echo "$ac_try_echo") >&5
14224 19 jeremybenn
  (eval "$ac_link") 2>&5
14225
  ac_status=$?
14226 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14228
  { (case "(($ac_try" in
14229
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230
  *) ac_try_echo=$ac_try;;
14231
esac
14232 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14233
$as_echo "$ac_try_echo") >&5
14234 19 jeremybenn
  (eval "$ac_try") 2>&5
14235
  ac_status=$?
14236 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 19 jeremybenn
  (exit $ac_status); }; }; then
14238
  ac_cv_func_malloc_0_nonnull=yes
14239
else
14240 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
14241
$as_echo "$as_me: failed program was:" >&5
14242 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14243
 
14244
( exit $ac_status )
14245
ac_cv_func_malloc_0_nonnull=no
14246
fi
14247 82 jeremybenn
rm -rf conftest.dSYM
14248 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14249
fi
14250
 
14251
 
14252
fi
14253 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
14254
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14255 19 jeremybenn
if test $ac_cv_func_malloc_0_nonnull = yes; then
14256
 
14257
cat >>confdefs.h <<\_ACEOF
14258
#define HAVE_MALLOC 1
14259
_ACEOF
14260
 
14261
else
14262
  cat >>confdefs.h <<\_ACEOF
14263
#define HAVE_MALLOC 0
14264
_ACEOF
14265
 
14266
   case " $LIBOBJS " in
14267
  *" malloc.$ac_objext "* ) ;;
14268
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14269
 ;;
14270
esac
14271
 
14272
 
14273
cat >>confdefs.h <<\_ACEOF
14274
#define malloc rpl_malloc
14275
_ACEOF
14276
 
14277
fi
14278
 
14279
 
14280
 
14281
 
14282
for ac_func in strftime
14283
do
14284 82 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14285
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14286
$as_echo_n "checking for $ac_func... " >&6; }
14287 19 jeremybenn
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14288 82 jeremybenn
  $as_echo_n "(cached) " >&6
14289 19 jeremybenn
else
14290
  cat >conftest.$ac_ext <<_ACEOF
14291
/* confdefs.h.  */
14292
_ACEOF
14293
cat confdefs.h >>conftest.$ac_ext
14294
cat >>conftest.$ac_ext <<_ACEOF
14295
/* end confdefs.h.  */
14296
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
14297
   For example, HP-UX 11i  declares gettimeofday.  */
14298
#define $ac_func innocuous_$ac_func
14299
 
14300
/* System header to define __stub macros and hopefully few prototypes,
14301
    which can conflict with char $ac_func (); below.
14302
    Prefer  to  if __STDC__ is defined, since
14303
     exists even on freestanding compilers.  */
14304
 
14305
#ifdef __STDC__
14306
# include 
14307
#else
14308
# include 
14309
#endif
14310
 
14311
#undef $ac_func
14312
 
14313
/* Override any GCC internal prototype to avoid an error.
14314
   Use char because int might match the return type of a GCC
14315
   builtin and then its argument prototype would still apply.  */
14316
#ifdef __cplusplus
14317
extern "C"
14318
#endif
14319
char $ac_func ();
14320
/* The GNU C library defines this for functions which it implements
14321
    to always fail with ENOSYS.  Some functions are actually named
14322
    something starting with __ and the normal name is an alias.  */
14323
#if defined __stub_$ac_func || defined __stub___$ac_func
14324
choke me
14325
#endif
14326
 
14327
int
14328
main ()
14329
{
14330
return $ac_func ();
14331
  ;
14332
  return 0;
14333
}
14334
_ACEOF
14335
rm -f conftest.$ac_objext conftest$ac_exeext
14336
if { (ac_try="$ac_link"
14337
case "(($ac_try" in
14338
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339
  *) ac_try_echo=$ac_try;;
14340
esac
14341 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14342
$as_echo "$ac_try_echo") >&5
14343 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14344
  ac_status=$?
14345
  grep -v '^ *+' conftest.er1 >conftest.err
14346
  rm -f conftest.er1
14347
  cat conftest.err >&5
14348 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 19 jeremybenn
  (exit $ac_status); } && {
14350
         test -z "$ac_c_werror_flag" ||
14351
         test ! -s conftest.err
14352 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14353
         test "$cross_compiling" = yes ||
14354
         $as_test_x conftest$ac_exeext
14355
       }; then
14356 19 jeremybenn
  eval "$as_ac_var=yes"
14357
else
14358 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14359 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14360
 
14361
        eval "$as_ac_var=no"
14362
fi
14363
 
14364 82 jeremybenn
rm -rf conftest.dSYM
14365 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14366
      conftest$ac_exeext conftest.$ac_ext
14367
fi
14368 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
14369
                 $as_echo "$as_val"'`
14370
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14371
$as_echo "$ac_res" >&6; }
14372
as_val=`eval 'as_val=${'$as_ac_var'}
14373
                 $as_echo "$as_val"'`
14374
   if test "x$as_val" = x""yes; then
14375 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
14376 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14377 19 jeremybenn
_ACEOF
14378
 
14379
else
14380
  # strftime is in -lintl on SCO UNIX.
14381 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14382
$as_echo_n "checking for strftime in -lintl... " >&6; }
14383 19 jeremybenn
if test "${ac_cv_lib_intl_strftime+set}" = set; then
14384 82 jeremybenn
  $as_echo_n "(cached) " >&6
14385 19 jeremybenn
else
14386
  ac_check_lib_save_LIBS=$LIBS
14387
LIBS="-lintl  $LIBS"
14388
cat >conftest.$ac_ext <<_ACEOF
14389
/* confdefs.h.  */
14390
_ACEOF
14391
cat confdefs.h >>conftest.$ac_ext
14392
cat >>conftest.$ac_ext <<_ACEOF
14393
/* end confdefs.h.  */
14394
 
14395
/* Override any GCC internal prototype to avoid an error.
14396
   Use char because int might match the return type of a GCC
14397
   builtin and then its argument prototype would still apply.  */
14398
#ifdef __cplusplus
14399
extern "C"
14400
#endif
14401
char strftime ();
14402
int
14403
main ()
14404
{
14405
return strftime ();
14406
  ;
14407
  return 0;
14408
}
14409
_ACEOF
14410
rm -f conftest.$ac_objext conftest$ac_exeext
14411
if { (ac_try="$ac_link"
14412
case "(($ac_try" in
14413
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14414
  *) ac_try_echo=$ac_try;;
14415
esac
14416 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14417
$as_echo "$ac_try_echo") >&5
14418 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14419
  ac_status=$?
14420
  grep -v '^ *+' conftest.er1 >conftest.err
14421
  rm -f conftest.er1
14422
  cat conftest.err >&5
14423 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 19 jeremybenn
  (exit $ac_status); } && {
14425
         test -z "$ac_c_werror_flag" ||
14426
         test ! -s conftest.err
14427 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14428
         test "$cross_compiling" = yes ||
14429
         $as_test_x conftest$ac_exeext
14430
       }; then
14431 19 jeremybenn
  ac_cv_lib_intl_strftime=yes
14432
else
14433 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14434 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14435
 
14436
        ac_cv_lib_intl_strftime=no
14437
fi
14438
 
14439 82 jeremybenn
rm -rf conftest.dSYM
14440 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14441
      conftest$ac_exeext conftest.$ac_ext
14442
LIBS=$ac_check_lib_save_LIBS
14443
fi
14444 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14445
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
14446
if test "x$ac_cv_lib_intl_strftime" = x""yes; then
14447 19 jeremybenn
  cat >>confdefs.h <<\_ACEOF
14448
#define HAVE_STRFTIME 1
14449
_ACEOF
14450
 
14451
LIBS="-lintl $LIBS"
14452
fi
14453
 
14454
fi
14455
done
14456
 
14457 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
14458
$as_echo_n "checking for working strtod... " >&6; }
14459 19 jeremybenn
if test "${ac_cv_func_strtod+set}" = set; then
14460 82 jeremybenn
  $as_echo_n "(cached) " >&6
14461 19 jeremybenn
else
14462
  if test "$cross_compiling" = yes; then
14463
  ac_cv_func_strtod=no
14464
else
14465
  cat >conftest.$ac_ext <<_ACEOF
14466
/* confdefs.h.  */
14467
_ACEOF
14468
cat confdefs.h >>conftest.$ac_ext
14469
cat >>conftest.$ac_ext <<_ACEOF
14470
/* end confdefs.h.  */
14471
 
14472
$ac_includes_default
14473
#ifndef strtod
14474
double strtod ();
14475
#endif
14476
int
14477
main()
14478
{
14479
  {
14480
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
14481
    char *string = " +69";
14482
    char *term;
14483
    double value;
14484
    value = strtod (string, &term);
14485
    if (value != 69 || term != (string + 4))
14486
      return 1;
14487
  }
14488
 
14489
  {
14490
    /* Under Solaris 2.4, strtod returns the wrong value for the
14491
       terminating character under some conditions.  */
14492
    char *string = "NaN";
14493
    char *term;
14494
    strtod (string, &term);
14495
    if (term != string && *(term - 1) == 0)
14496
      return 1;
14497
  }
14498
  return 0;
14499
}
14500
 
14501
_ACEOF
14502
rm -f conftest$ac_exeext
14503
if { (ac_try="$ac_link"
14504
case "(($ac_try" in
14505
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14506
  *) ac_try_echo=$ac_try;;
14507
esac
14508 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14509
$as_echo "$ac_try_echo") >&5
14510 19 jeremybenn
  (eval "$ac_link") 2>&5
14511
  ac_status=$?
14512 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14514
  { (case "(($ac_try" in
14515
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516
  *) ac_try_echo=$ac_try;;
14517
esac
14518 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14519
$as_echo "$ac_try_echo") >&5
14520 19 jeremybenn
  (eval "$ac_try") 2>&5
14521
  ac_status=$?
14522 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 19 jeremybenn
  (exit $ac_status); }; }; then
14524
  ac_cv_func_strtod=yes
14525
else
14526 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
14527
$as_echo "$as_me: failed program was:" >&5
14528 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14529
 
14530
( exit $ac_status )
14531
ac_cv_func_strtod=no
14532
fi
14533 82 jeremybenn
rm -rf conftest.dSYM
14534 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14535
fi
14536
 
14537
 
14538
fi
14539 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
14540
$as_echo "$ac_cv_func_strtod" >&6; }
14541 19 jeremybenn
if test $ac_cv_func_strtod = no; then
14542
  case " $LIBOBJS " in
14543
  *" strtod.$ac_objext "* ) ;;
14544
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14545
 ;;
14546
esac
14547
 
14548 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for pow" >&5
14549
$as_echo_n "checking for pow... " >&6; }
14550 19 jeremybenn
if test "${ac_cv_func_pow+set}" = set; then
14551 82 jeremybenn
  $as_echo_n "(cached) " >&6
14552 19 jeremybenn
else
14553
  cat >conftest.$ac_ext <<_ACEOF
14554
/* confdefs.h.  */
14555
_ACEOF
14556
cat confdefs.h >>conftest.$ac_ext
14557
cat >>conftest.$ac_ext <<_ACEOF
14558
/* end confdefs.h.  */
14559
/* Define pow to an innocuous variant, in case  declares pow.
14560
   For example, HP-UX 11i  declares gettimeofday.  */
14561
#define pow innocuous_pow
14562
 
14563
/* System header to define __stub macros and hopefully few prototypes,
14564
    which can conflict with char pow (); below.
14565
    Prefer  to  if __STDC__ is defined, since
14566
     exists even on freestanding compilers.  */
14567
 
14568
#ifdef __STDC__
14569
# include 
14570
#else
14571
# include 
14572
#endif
14573
 
14574
#undef pow
14575
 
14576
/* Override any GCC internal prototype to avoid an error.
14577
   Use char because int might match the return type of a GCC
14578
   builtin and then its argument prototype would still apply.  */
14579
#ifdef __cplusplus
14580
extern "C"
14581
#endif
14582
char pow ();
14583
/* The GNU C library defines this for functions which it implements
14584
    to always fail with ENOSYS.  Some functions are actually named
14585
    something starting with __ and the normal name is an alias.  */
14586
#if defined __stub_pow || defined __stub___pow
14587
choke me
14588
#endif
14589
 
14590
int
14591
main ()
14592
{
14593
return pow ();
14594
  ;
14595
  return 0;
14596
}
14597
_ACEOF
14598
rm -f conftest.$ac_objext conftest$ac_exeext
14599
if { (ac_try="$ac_link"
14600
case "(($ac_try" in
14601
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14602
  *) ac_try_echo=$ac_try;;
14603
esac
14604 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14605
$as_echo "$ac_try_echo") >&5
14606 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14607
  ac_status=$?
14608
  grep -v '^ *+' conftest.er1 >conftest.err
14609
  rm -f conftest.er1
14610
  cat conftest.err >&5
14611 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 19 jeremybenn
  (exit $ac_status); } && {
14613
         test -z "$ac_c_werror_flag" ||
14614
         test ! -s conftest.err
14615 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14616
         test "$cross_compiling" = yes ||
14617
         $as_test_x conftest$ac_exeext
14618
       }; then
14619 19 jeremybenn
  ac_cv_func_pow=yes
14620
else
14621 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14622 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14623
 
14624
        ac_cv_func_pow=no
14625
fi
14626
 
14627 82 jeremybenn
rm -rf conftest.dSYM
14628 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14629
      conftest$ac_exeext conftest.$ac_ext
14630
fi
14631 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
14632
$as_echo "$ac_cv_func_pow" >&6; }
14633 19 jeremybenn
 
14634
if test $ac_cv_func_pow = no; then
14635 82 jeremybenn
  { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
14636
$as_echo_n "checking for pow in -lm... " >&6; }
14637 19 jeremybenn
if test "${ac_cv_lib_m_pow+set}" = set; then
14638 82 jeremybenn
  $as_echo_n "(cached) " >&6
14639 19 jeremybenn
else
14640
  ac_check_lib_save_LIBS=$LIBS
14641
LIBS="-lm  $LIBS"
14642
cat >conftest.$ac_ext <<_ACEOF
14643
/* confdefs.h.  */
14644
_ACEOF
14645
cat confdefs.h >>conftest.$ac_ext
14646
cat >>conftest.$ac_ext <<_ACEOF
14647
/* end confdefs.h.  */
14648
 
14649
/* Override any GCC internal prototype to avoid an error.
14650
   Use char because int might match the return type of a GCC
14651
   builtin and then its argument prototype would still apply.  */
14652
#ifdef __cplusplus
14653
extern "C"
14654
#endif
14655
char pow ();
14656
int
14657
main ()
14658
{
14659
return pow ();
14660
  ;
14661
  return 0;
14662
}
14663
_ACEOF
14664
rm -f conftest.$ac_objext conftest$ac_exeext
14665
if { (ac_try="$ac_link"
14666
case "(($ac_try" in
14667
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668
  *) ac_try_echo=$ac_try;;
14669
esac
14670 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14671
$as_echo "$ac_try_echo") >&5
14672 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14673
  ac_status=$?
14674
  grep -v '^ *+' conftest.er1 >conftest.err
14675
  rm -f conftest.er1
14676
  cat conftest.err >&5
14677 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 19 jeremybenn
  (exit $ac_status); } && {
14679
         test -z "$ac_c_werror_flag" ||
14680
         test ! -s conftest.err
14681 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14682
         test "$cross_compiling" = yes ||
14683
         $as_test_x conftest$ac_exeext
14684
       }; then
14685 19 jeremybenn
  ac_cv_lib_m_pow=yes
14686
else
14687 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14688 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14689
 
14690
        ac_cv_lib_m_pow=no
14691
fi
14692
 
14693 82 jeremybenn
rm -rf conftest.dSYM
14694 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14695
      conftest$ac_exeext conftest.$ac_ext
14696
LIBS=$ac_check_lib_save_LIBS
14697
fi
14698 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
14699
$as_echo "$ac_cv_lib_m_pow" >&6; }
14700
if test "x$ac_cv_lib_m_pow" = x""yes; then
14701 19 jeremybenn
  POW_LIB=-lm
14702
else
14703 82 jeremybenn
  { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
14704
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14705 19 jeremybenn
fi
14706
 
14707
fi
14708
 
14709
fi
14710
 
14711
 
14712
 
14713
 
14714
 
14715
 
14716
for ac_func in bzero strchr strcspn strrchr strtol
14717
do
14718 82 jeremybenn
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14719
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14720
$as_echo_n "checking for $ac_func... " >&6; }
14721 19 jeremybenn
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14722 82 jeremybenn
  $as_echo_n "(cached) " >&6
14723 19 jeremybenn
else
14724
  cat >conftest.$ac_ext <<_ACEOF
14725
/* confdefs.h.  */
14726
_ACEOF
14727
cat confdefs.h >>conftest.$ac_ext
14728
cat >>conftest.$ac_ext <<_ACEOF
14729
/* end confdefs.h.  */
14730
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
14731
   For example, HP-UX 11i  declares gettimeofday.  */
14732
#define $ac_func innocuous_$ac_func
14733
 
14734
/* System header to define __stub macros and hopefully few prototypes,
14735
    which can conflict with char $ac_func (); below.
14736
    Prefer  to  if __STDC__ is defined, since
14737
     exists even on freestanding compilers.  */
14738
 
14739
#ifdef __STDC__
14740
# include 
14741
#else
14742
# include 
14743
#endif
14744
 
14745
#undef $ac_func
14746
 
14747
/* Override any GCC internal prototype to avoid an error.
14748
   Use char because int might match the return type of a GCC
14749
   builtin and then its argument prototype would still apply.  */
14750
#ifdef __cplusplus
14751
extern "C"
14752
#endif
14753
char $ac_func ();
14754
/* The GNU C library defines this for functions which it implements
14755
    to always fail with ENOSYS.  Some functions are actually named
14756
    something starting with __ and the normal name is an alias.  */
14757
#if defined __stub_$ac_func || defined __stub___$ac_func
14758
choke me
14759
#endif
14760
 
14761
int
14762
main ()
14763
{
14764
return $ac_func ();
14765
  ;
14766
  return 0;
14767
}
14768
_ACEOF
14769
rm -f conftest.$ac_objext conftest$ac_exeext
14770
if { (ac_try="$ac_link"
14771
case "(($ac_try" in
14772
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14773
  *) ac_try_echo=$ac_try;;
14774
esac
14775 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14776
$as_echo "$ac_try_echo") >&5
14777 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14778
  ac_status=$?
14779
  grep -v '^ *+' conftest.er1 >conftest.err
14780
  rm -f conftest.er1
14781
  cat conftest.err >&5
14782 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 19 jeremybenn
  (exit $ac_status); } && {
14784
         test -z "$ac_c_werror_flag" ||
14785
         test ! -s conftest.err
14786 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14787
         test "$cross_compiling" = yes ||
14788
         $as_test_x conftest$ac_exeext
14789
       }; then
14790 19 jeremybenn
  eval "$as_ac_var=yes"
14791
else
14792 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14793 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14794
 
14795
        eval "$as_ac_var=no"
14796
fi
14797
 
14798 82 jeremybenn
rm -rf conftest.dSYM
14799 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14800
      conftest$ac_exeext conftest.$ac_ext
14801
fi
14802 82 jeremybenn
ac_res=`eval 'as_val=${'$as_ac_var'}
14803
                 $as_echo "$as_val"'`
14804
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14805
$as_echo "$ac_res" >&6; }
14806
as_val=`eval 'as_val=${'$as_ac_var'}
14807
                 $as_echo "$as_val"'`
14808
   if test "x$as_val" = x""yes; then
14809 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
14810 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14811 19 jeremybenn
_ACEOF
14812
 
14813
fi
14814
done
14815
 
14816 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for getopt_long" >&5
14817
$as_echo_n "checking for getopt_long... " >&6; }
14818 19 jeremybenn
if test "${ac_cv_func_getopt_long+set}" = set; then
14819 82 jeremybenn
  $as_echo_n "(cached) " >&6
14820 19 jeremybenn
else
14821
  cat >conftest.$ac_ext <<_ACEOF
14822
/* confdefs.h.  */
14823
_ACEOF
14824
cat confdefs.h >>conftest.$ac_ext
14825
cat >>conftest.$ac_ext <<_ACEOF
14826
/* end confdefs.h.  */
14827
/* Define getopt_long to an innocuous variant, in case  declares getopt_long.
14828
   For example, HP-UX 11i  declares gettimeofday.  */
14829
#define getopt_long innocuous_getopt_long
14830
 
14831
/* System header to define __stub macros and hopefully few prototypes,
14832
    which can conflict with char getopt_long (); below.
14833
    Prefer  to  if __STDC__ is defined, since
14834
     exists even on freestanding compilers.  */
14835
 
14836
#ifdef __STDC__
14837
# include 
14838
#else
14839
# include 
14840
#endif
14841
 
14842
#undef getopt_long
14843
 
14844
/* Override any GCC internal prototype to avoid an error.
14845
   Use char because int might match the return type of a GCC
14846
   builtin and then its argument prototype would still apply.  */
14847
#ifdef __cplusplus
14848
extern "C"
14849
#endif
14850
char getopt_long ();
14851
/* The GNU C library defines this for functions which it implements
14852
    to always fail with ENOSYS.  Some functions are actually named
14853
    something starting with __ and the normal name is an alias.  */
14854
#if defined __stub_getopt_long || defined __stub___getopt_long
14855
choke me
14856
#endif
14857
 
14858
int
14859
main ()
14860
{
14861
return getopt_long ();
14862
  ;
14863
  return 0;
14864
}
14865
_ACEOF
14866
rm -f conftest.$ac_objext conftest$ac_exeext
14867
if { (ac_try="$ac_link"
14868
case "(($ac_try" in
14869
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14870
  *) ac_try_echo=$ac_try;;
14871
esac
14872 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14873
$as_echo "$ac_try_echo") >&5
14874 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14875
  ac_status=$?
14876
  grep -v '^ *+' conftest.er1 >conftest.err
14877
  rm -f conftest.er1
14878
  cat conftest.err >&5
14879 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 19 jeremybenn
  (exit $ac_status); } && {
14881
         test -z "$ac_c_werror_flag" ||
14882
         test ! -s conftest.err
14883 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14884
         test "$cross_compiling" = yes ||
14885
         $as_test_x conftest$ac_exeext
14886
       }; then
14887 19 jeremybenn
  ac_cv_func_getopt_long=yes
14888
else
14889 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14890 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14891
 
14892
        ac_cv_func_getopt_long=no
14893
fi
14894
 
14895 82 jeremybenn
rm -rf conftest.dSYM
14896 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14897
      conftest$ac_exeext conftest.$ac_ext
14898
fi
14899 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
14900
$as_echo "$ac_cv_func_getopt_long" >&6; }
14901
if test "x$ac_cv_func_getopt_long" = x""yes; then
14902 19 jeremybenn
  SYS_GETOPTLONG=1
14903
else
14904
  SYS_GETOPTLONG=0
14905
fi
14906
 
14907 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for regcomp" >&5
14908
$as_echo_n "checking for regcomp... " >&6; }
14909 19 jeremybenn
if test "${ac_cv_func_regcomp+set}" = set; then
14910 82 jeremybenn
  $as_echo_n "(cached) " >&6
14911 19 jeremybenn
else
14912
  cat >conftest.$ac_ext <<_ACEOF
14913
/* confdefs.h.  */
14914
_ACEOF
14915
cat confdefs.h >>conftest.$ac_ext
14916
cat >>conftest.$ac_ext <<_ACEOF
14917
/* end confdefs.h.  */
14918
/* Define regcomp to an innocuous variant, in case  declares regcomp.
14919
   For example, HP-UX 11i  declares gettimeofday.  */
14920
#define regcomp innocuous_regcomp
14921
 
14922
/* System header to define __stub macros and hopefully few prototypes,
14923
    which can conflict with char regcomp (); below.
14924
    Prefer  to  if __STDC__ is defined, since
14925
     exists even on freestanding compilers.  */
14926
 
14927
#ifdef __STDC__
14928
# include 
14929
#else
14930
# include 
14931
#endif
14932
 
14933
#undef regcomp
14934
 
14935
/* Override any GCC internal prototype to avoid an error.
14936
   Use char because int might match the return type of a GCC
14937
   builtin and then its argument prototype would still apply.  */
14938
#ifdef __cplusplus
14939
extern "C"
14940
#endif
14941
char regcomp ();
14942
/* The GNU C library defines this for functions which it implements
14943
    to always fail with ENOSYS.  Some functions are actually named
14944
    something starting with __ and the normal name is an alias.  */
14945
#if defined __stub_regcomp || defined __stub___regcomp
14946
choke me
14947
#endif
14948
 
14949
int
14950
main ()
14951
{
14952
return regcomp ();
14953
  ;
14954
  return 0;
14955
}
14956
_ACEOF
14957
rm -f conftest.$ac_objext conftest$ac_exeext
14958
if { (ac_try="$ac_link"
14959
case "(($ac_try" in
14960
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961
  *) ac_try_echo=$ac_try;;
14962
esac
14963 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14964
$as_echo "$ac_try_echo") >&5
14965 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
14966
  ac_status=$?
14967
  grep -v '^ *+' conftest.er1 >conftest.err
14968
  rm -f conftest.er1
14969
  cat conftest.err >&5
14970 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 19 jeremybenn
  (exit $ac_status); } && {
14972
         test -z "$ac_c_werror_flag" ||
14973
         test ! -s conftest.err
14974 82 jeremybenn
       } && test -s conftest$ac_exeext && {
14975
         test "$cross_compiling" = yes ||
14976
         $as_test_x conftest$ac_exeext
14977
       }; then
14978 19 jeremybenn
  ac_cv_func_regcomp=yes
14979
else
14980 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
14981 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
14982
 
14983
        ac_cv_func_regcomp=no
14984
fi
14985
 
14986 82 jeremybenn
rm -rf conftest.dSYM
14987 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14988
      conftest$ac_exeext conftest.$ac_ext
14989
fi
14990 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
14991
$as_echo "$ac_cv_func_regcomp" >&6; }
14992
if test "x$ac_cv_func_regcomp" = x""yes; then
14993 19 jeremybenn
  SYS_REGEX=1
14994
else
14995
  SYS_REGEX=0
14996
fi
14997
 
14998 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for strptime" >&5
14999
$as_echo_n "checking for strptime... " >&6; }
15000 19 jeremybenn
if test "${ac_cv_func_strptime+set}" = set; then
15001 82 jeremybenn
  $as_echo_n "(cached) " >&6
15002 19 jeremybenn
else
15003
  cat >conftest.$ac_ext <<_ACEOF
15004
/* confdefs.h.  */
15005
_ACEOF
15006
cat confdefs.h >>conftest.$ac_ext
15007
cat >>conftest.$ac_ext <<_ACEOF
15008
/* end confdefs.h.  */
15009
/* Define strptime to an innocuous variant, in case  declares strptime.
15010
   For example, HP-UX 11i  declares gettimeofday.  */
15011
#define strptime innocuous_strptime
15012
 
15013
/* System header to define __stub macros and hopefully few prototypes,
15014
    which can conflict with char strptime (); below.
15015
    Prefer  to  if __STDC__ is defined, since
15016
     exists even on freestanding compilers.  */
15017
 
15018
#ifdef __STDC__
15019
# include 
15020
#else
15021
# include 
15022
#endif
15023
 
15024
#undef strptime
15025
 
15026
/* Override any GCC internal prototype to avoid an error.
15027
   Use char because int might match the return type of a GCC
15028
   builtin and then its argument prototype would still apply.  */
15029
#ifdef __cplusplus
15030
extern "C"
15031
#endif
15032
char strptime ();
15033
/* The GNU C library defines this for functions which it implements
15034
    to always fail with ENOSYS.  Some functions are actually named
15035
    something starting with __ and the normal name is an alias.  */
15036
#if defined __stub_strptime || defined __stub___strptime
15037
choke me
15038
#endif
15039
 
15040
int
15041
main ()
15042
{
15043
return strptime ();
15044
  ;
15045
  return 0;
15046
}
15047
_ACEOF
15048
rm -f conftest.$ac_objext conftest$ac_exeext
15049
if { (ac_try="$ac_link"
15050
case "(($ac_try" in
15051
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052
  *) ac_try_echo=$ac_try;;
15053
esac
15054 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15055
$as_echo "$ac_try_echo") >&5
15056 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
15057
  ac_status=$?
15058
  grep -v '^ *+' conftest.er1 >conftest.err
15059
  rm -f conftest.er1
15060
  cat conftest.err >&5
15061 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 19 jeremybenn
  (exit $ac_status); } && {
15063
         test -z "$ac_c_werror_flag" ||
15064
         test ! -s conftest.err
15065 82 jeremybenn
       } && test -s conftest$ac_exeext && {
15066
         test "$cross_compiling" = yes ||
15067
         $as_test_x conftest$ac_exeext
15068
       }; then
15069 19 jeremybenn
  ac_cv_func_strptime=yes
15070
else
15071 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15072 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15073
 
15074
        ac_cv_func_strptime=no
15075
fi
15076
 
15077 82 jeremybenn
rm -rf conftest.dSYM
15078 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15079
      conftest$ac_exeext conftest.$ac_ext
15080
fi
15081 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
15082
$as_echo "$ac_cv_func_strptime" >&6; }
15083
if test "x$ac_cv_func_strptime" = x""yes; then
15084 19 jeremybenn
  SYS_STRPTIME=1
15085
else
15086
  SYS_STRPTIME=0
15087
fi
15088
 
15089
 
15090
# Define automake conditionals (for argtable2)
15091
 if test "$SYS_GETOPTLONG" = "1"; then
15092
  USE_SYS_GETOPTLONG_TRUE=
15093
  USE_SYS_GETOPTLONG_FALSE='#'
15094
else
15095
  USE_SYS_GETOPTLONG_TRUE='#'
15096
  USE_SYS_GETOPTLONG_FALSE=
15097
fi
15098
 
15099
 if test "$SYS_REGEX" = "1"; then
15100
  USE_ARGREX_TRUE=
15101
  USE_ARGREX_FALSE='#'
15102
else
15103
  USE_ARGREX_TRUE='#'
15104
  USE_ARGREX_FALSE=
15105
fi
15106
 
15107
 if test "$SYS_STRPTIME" = "1"; then
15108
  USE_ARGDATE_TRUE=
15109
  USE_ARGDATE_FALSE='#'
15110
else
15111
  USE_ARGDATE_TRUE='#'
15112
  USE_ARGDATE_FALSE=
15113
fi
15114
 
15115
 
15116
# check for "long long" (added by Erez)
15117
cat >conftest.$ac_ext <<_ACEOF
15118
/* confdefs.h.  */
15119
_ACEOF
15120
cat confdefs.h >>conftest.$ac_ext
15121
cat >>conftest.$ac_ext <<_ACEOF
15122
/* end confdefs.h.  */
15123
 
15124
int
15125
main ()
15126
{
15127
long long ll; unsigned long long ull;
15128
  ;
15129
  return 0;
15130
}
15131
_ACEOF
15132
rm -f conftest.$ac_objext
15133
if { (ac_try="$ac_compile"
15134
case "(($ac_try" in
15135
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136
  *) ac_try_echo=$ac_try;;
15137
esac
15138 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15139
$as_echo "$ac_try_echo") >&5
15140 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15141
  ac_status=$?
15142
  grep -v '^ *+' conftest.er1 >conftest.err
15143
  rm -f conftest.er1
15144
  cat conftest.err >&5
15145 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 19 jeremybenn
  (exit $ac_status); } && {
15147
         test -z "$ac_c_werror_flag" ||
15148
         test ! -s conftest.err
15149
       } && test -s conftest.$ac_objext; then
15150
 
15151
cat >>confdefs.h <<\_ACEOF
15152
#define CC_HAS_LONG_LONG 1
15153
_ACEOF
15154
 
15155
else
15156 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15157 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15158
 
15159
 
15160
fi
15161
 
15162
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15163
 
15164
# check for {u,}int{8,16,32}_t in inttypes.h.
15165 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
15166
$as_echo_n "checking for uint8_t... " >&6; }
15167 19 jeremybenn
if test "${ac_cv_type_uint8_t+set}" = set; then
15168 82 jeremybenn
  $as_echo_n "(cached) " >&6
15169 19 jeremybenn
else
15170 82 jeremybenn
  ac_cv_type_uint8_t=no
15171
cat >conftest.$ac_ext <<_ACEOF
15172
/* confdefs.h.  */
15173
_ACEOF
15174
cat confdefs.h >>conftest.$ac_ext
15175
cat >>conftest.$ac_ext <<_ACEOF
15176
/* end confdefs.h.  */
15177
#include 
15178
 
15179
int
15180
main ()
15181
{
15182
if (sizeof (uint8_t))
15183
       return 0;
15184
  ;
15185
  return 0;
15186
}
15187
_ACEOF
15188
rm -f conftest.$ac_objext
15189
if { (ac_try="$ac_compile"
15190
case "(($ac_try" in
15191
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15192
  *) ac_try_echo=$ac_try;;
15193
esac
15194
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15195
$as_echo "$ac_try_echo") >&5
15196
  (eval "$ac_compile") 2>conftest.er1
15197
  ac_status=$?
15198
  grep -v '^ *+' conftest.er1 >conftest.err
15199
  rm -f conftest.er1
15200
  cat conftest.err >&5
15201
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202
  (exit $ac_status); } && {
15203
         test -z "$ac_c_werror_flag" ||
15204
         test ! -s conftest.err
15205
       } && test -s conftest.$ac_objext; then
15206 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
15207
/* confdefs.h.  */
15208
_ACEOF
15209
cat confdefs.h >>conftest.$ac_ext
15210
cat >>conftest.$ac_ext <<_ACEOF
15211
/* end confdefs.h.  */
15212
#include 
15213
 
15214
int
15215
main ()
15216
{
15217 82 jeremybenn
if (sizeof ((uint8_t)))
15218
          return 0;
15219 19 jeremybenn
  ;
15220
  return 0;
15221
}
15222
_ACEOF
15223
rm -f conftest.$ac_objext
15224
if { (ac_try="$ac_compile"
15225
case "(($ac_try" in
15226
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227
  *) ac_try_echo=$ac_try;;
15228
esac
15229 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15230
$as_echo "$ac_try_echo") >&5
15231 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15232
  ac_status=$?
15233
  grep -v '^ *+' conftest.er1 >conftest.err
15234
  rm -f conftest.er1
15235
  cat conftest.err >&5
15236 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 19 jeremybenn
  (exit $ac_status); } && {
15238
         test -z "$ac_c_werror_flag" ||
15239
         test ! -s conftest.err
15240
       } && test -s conftest.$ac_objext; then
15241 82 jeremybenn
  :
15242 19 jeremybenn
else
15243 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15244 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15245
 
15246 82 jeremybenn
        ac_cv_type_uint8_t=yes
15247 19 jeremybenn
fi
15248
 
15249
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15250 82 jeremybenn
else
15251
  $as_echo "$as_me: failed program was:" >&5
15252
sed 's/^/| /' conftest.$ac_ext >&5
15253
 
15254
 
15255 19 jeremybenn
fi
15256
 
15257 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15258
fi
15259
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
15260
$as_echo "$ac_cv_type_uint8_t" >&6; }
15261
if test "x$ac_cv_type_uint8_t" = x""yes; then
15262
 
15263 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15264
#define HAVE_UINT8_T 1
15265
_ACEOF
15266
 
15267
 
15268
fi
15269 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
15270
$as_echo_n "checking for uint16_t... " >&6; }
15271 19 jeremybenn
if test "${ac_cv_type_uint16_t+set}" = set; then
15272 82 jeremybenn
  $as_echo_n "(cached) " >&6
15273 19 jeremybenn
else
15274 82 jeremybenn
  ac_cv_type_uint16_t=no
15275
cat >conftest.$ac_ext <<_ACEOF
15276
/* confdefs.h.  */
15277
_ACEOF
15278
cat confdefs.h >>conftest.$ac_ext
15279
cat >>conftest.$ac_ext <<_ACEOF
15280
/* end confdefs.h.  */
15281
#include 
15282
 
15283
int
15284
main ()
15285
{
15286
if (sizeof (uint16_t))
15287
       return 0;
15288
  ;
15289
  return 0;
15290
}
15291
_ACEOF
15292
rm -f conftest.$ac_objext
15293
if { (ac_try="$ac_compile"
15294
case "(($ac_try" in
15295
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296
  *) ac_try_echo=$ac_try;;
15297
esac
15298
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15299
$as_echo "$ac_try_echo") >&5
15300
  (eval "$ac_compile") 2>conftest.er1
15301
  ac_status=$?
15302
  grep -v '^ *+' conftest.er1 >conftest.err
15303
  rm -f conftest.er1
15304
  cat conftest.err >&5
15305
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306
  (exit $ac_status); } && {
15307
         test -z "$ac_c_werror_flag" ||
15308
         test ! -s conftest.err
15309
       } && test -s conftest.$ac_objext; then
15310 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
15311
/* confdefs.h.  */
15312
_ACEOF
15313
cat confdefs.h >>conftest.$ac_ext
15314
cat >>conftest.$ac_ext <<_ACEOF
15315
/* end confdefs.h.  */
15316
#include 
15317
 
15318
int
15319
main ()
15320
{
15321 82 jeremybenn
if (sizeof ((uint16_t)))
15322
          return 0;
15323 19 jeremybenn
  ;
15324
  return 0;
15325
}
15326
_ACEOF
15327
rm -f conftest.$ac_objext
15328
if { (ac_try="$ac_compile"
15329
case "(($ac_try" in
15330
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331
  *) ac_try_echo=$ac_try;;
15332
esac
15333 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15334
$as_echo "$ac_try_echo") >&5
15335 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15336
  ac_status=$?
15337
  grep -v '^ *+' conftest.er1 >conftest.err
15338
  rm -f conftest.er1
15339
  cat conftest.err >&5
15340 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 19 jeremybenn
  (exit $ac_status); } && {
15342
         test -z "$ac_c_werror_flag" ||
15343
         test ! -s conftest.err
15344
       } && test -s conftest.$ac_objext; then
15345 82 jeremybenn
  :
15346 19 jeremybenn
else
15347 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15348 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15349
 
15350 82 jeremybenn
        ac_cv_type_uint16_t=yes
15351 19 jeremybenn
fi
15352
 
15353
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15354 82 jeremybenn
else
15355
  $as_echo "$as_me: failed program was:" >&5
15356
sed 's/^/| /' conftest.$ac_ext >&5
15357
 
15358
 
15359 19 jeremybenn
fi
15360
 
15361 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15362
fi
15363
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
15364
$as_echo "$ac_cv_type_uint16_t" >&6; }
15365
if test "x$ac_cv_type_uint16_t" = x""yes; then
15366
 
15367 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15368
#define HAVE_UINT16_T 1
15369
_ACEOF
15370
 
15371
 
15372
fi
15373 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
15374
$as_echo_n "checking for uint32_t... " >&6; }
15375 19 jeremybenn
if test "${ac_cv_type_uint32_t+set}" = set; then
15376 82 jeremybenn
  $as_echo_n "(cached) " >&6
15377 19 jeremybenn
else
15378 82 jeremybenn
  ac_cv_type_uint32_t=no
15379
cat >conftest.$ac_ext <<_ACEOF
15380
/* confdefs.h.  */
15381
_ACEOF
15382
cat confdefs.h >>conftest.$ac_ext
15383
cat >>conftest.$ac_ext <<_ACEOF
15384
/* end confdefs.h.  */
15385
#include 
15386
 
15387
int
15388
main ()
15389
{
15390
if (sizeof (uint32_t))
15391
       return 0;
15392
  ;
15393
  return 0;
15394
}
15395
_ACEOF
15396
rm -f conftest.$ac_objext
15397
if { (ac_try="$ac_compile"
15398
case "(($ac_try" in
15399
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400
  *) ac_try_echo=$ac_try;;
15401
esac
15402
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15403
$as_echo "$ac_try_echo") >&5
15404
  (eval "$ac_compile") 2>conftest.er1
15405
  ac_status=$?
15406
  grep -v '^ *+' conftest.er1 >conftest.err
15407
  rm -f conftest.er1
15408
  cat conftest.err >&5
15409
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410
  (exit $ac_status); } && {
15411
         test -z "$ac_c_werror_flag" ||
15412
         test ! -s conftest.err
15413
       } && test -s conftest.$ac_objext; then
15414 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
15415
/* confdefs.h.  */
15416
_ACEOF
15417
cat confdefs.h >>conftest.$ac_ext
15418
cat >>conftest.$ac_ext <<_ACEOF
15419
/* end confdefs.h.  */
15420
#include 
15421
 
15422
int
15423
main ()
15424
{
15425 82 jeremybenn
if (sizeof ((uint32_t)))
15426
          return 0;
15427 19 jeremybenn
  ;
15428
  return 0;
15429
}
15430
_ACEOF
15431
rm -f conftest.$ac_objext
15432
if { (ac_try="$ac_compile"
15433
case "(($ac_try" in
15434
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15435
  *) ac_try_echo=$ac_try;;
15436
esac
15437 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15438
$as_echo "$ac_try_echo") >&5
15439 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15440
  ac_status=$?
15441
  grep -v '^ *+' conftest.er1 >conftest.err
15442
  rm -f conftest.er1
15443
  cat conftest.err >&5
15444 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 19 jeremybenn
  (exit $ac_status); } && {
15446
         test -z "$ac_c_werror_flag" ||
15447
         test ! -s conftest.err
15448
       } && test -s conftest.$ac_objext; then
15449 82 jeremybenn
  :
15450 19 jeremybenn
else
15451 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15452 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15453
 
15454 82 jeremybenn
        ac_cv_type_uint32_t=yes
15455 19 jeremybenn
fi
15456
 
15457
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15458 82 jeremybenn
else
15459
  $as_echo "$as_me: failed program was:" >&5
15460
sed 's/^/| /' conftest.$ac_ext >&5
15461
 
15462
 
15463 19 jeremybenn
fi
15464
 
15465 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15466
fi
15467
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
15468
$as_echo "$ac_cv_type_uint32_t" >&6; }
15469
if test "x$ac_cv_type_uint32_t" = x""yes; then
15470
 
15471 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15472
#define HAVE_UINT32_T 1
15473
_ACEOF
15474
 
15475
 
15476
fi
15477
 
15478 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
15479
$as_echo_n "checking for int8_t... " >&6; }
15480 19 jeremybenn
if test "${ac_cv_type_int8_t+set}" = set; then
15481 82 jeremybenn
  $as_echo_n "(cached) " >&6
15482 19 jeremybenn
else
15483 82 jeremybenn
  ac_cv_type_int8_t=no
15484
cat >conftest.$ac_ext <<_ACEOF
15485
/* confdefs.h.  */
15486
_ACEOF
15487
cat confdefs.h >>conftest.$ac_ext
15488
cat >>conftest.$ac_ext <<_ACEOF
15489
/* end confdefs.h.  */
15490
#include 
15491
 
15492
int
15493
main ()
15494
{
15495
if (sizeof (int8_t))
15496
       return 0;
15497
  ;
15498
  return 0;
15499
}
15500
_ACEOF
15501
rm -f conftest.$ac_objext
15502
if { (ac_try="$ac_compile"
15503
case "(($ac_try" in
15504
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15505
  *) ac_try_echo=$ac_try;;
15506
esac
15507
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15508
$as_echo "$ac_try_echo") >&5
15509
  (eval "$ac_compile") 2>conftest.er1
15510
  ac_status=$?
15511
  grep -v '^ *+' conftest.er1 >conftest.err
15512
  rm -f conftest.er1
15513
  cat conftest.err >&5
15514
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515
  (exit $ac_status); } && {
15516
         test -z "$ac_c_werror_flag" ||
15517
         test ! -s conftest.err
15518
       } && test -s conftest.$ac_objext; then
15519 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
15520
/* confdefs.h.  */
15521
_ACEOF
15522
cat confdefs.h >>conftest.$ac_ext
15523
cat >>conftest.$ac_ext <<_ACEOF
15524
/* end confdefs.h.  */
15525
#include 
15526
 
15527
int
15528
main ()
15529
{
15530 82 jeremybenn
if (sizeof ((int8_t)))
15531
          return 0;
15532 19 jeremybenn
  ;
15533
  return 0;
15534
}
15535
_ACEOF
15536
rm -f conftest.$ac_objext
15537
if { (ac_try="$ac_compile"
15538
case "(($ac_try" in
15539
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540
  *) ac_try_echo=$ac_try;;
15541
esac
15542 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15543
$as_echo "$ac_try_echo") >&5
15544 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15545
  ac_status=$?
15546
  grep -v '^ *+' conftest.er1 >conftest.err
15547
  rm -f conftest.er1
15548
  cat conftest.err >&5
15549 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 19 jeremybenn
  (exit $ac_status); } && {
15551
         test -z "$ac_c_werror_flag" ||
15552
         test ! -s conftest.err
15553
       } && test -s conftest.$ac_objext; then
15554 82 jeremybenn
  :
15555 19 jeremybenn
else
15556 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15557 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15558
 
15559 82 jeremybenn
        ac_cv_type_int8_t=yes
15560 19 jeremybenn
fi
15561
 
15562
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15563 82 jeremybenn
else
15564
  $as_echo "$as_me: failed program was:" >&5
15565
sed 's/^/| /' conftest.$ac_ext >&5
15566
 
15567
 
15568 19 jeremybenn
fi
15569
 
15570 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15571
fi
15572
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
15573
$as_echo "$ac_cv_type_int8_t" >&6; }
15574
if test "x$ac_cv_type_int8_t" = x""yes; then
15575
 
15576 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15577
#define HAVE_INT8_T 1
15578
_ACEOF
15579
 
15580
 
15581
fi
15582 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
15583
$as_echo_n "checking for int16_t... " >&6; }
15584 19 jeremybenn
if test "${ac_cv_type_int16_t+set}" = set; then
15585 82 jeremybenn
  $as_echo_n "(cached) " >&6
15586 19 jeremybenn
else
15587 82 jeremybenn
  ac_cv_type_int16_t=no
15588
cat >conftest.$ac_ext <<_ACEOF
15589
/* confdefs.h.  */
15590
_ACEOF
15591
cat confdefs.h >>conftest.$ac_ext
15592
cat >>conftest.$ac_ext <<_ACEOF
15593
/* end confdefs.h.  */
15594
#include 
15595
 
15596
int
15597
main ()
15598
{
15599
if (sizeof (int16_t))
15600
       return 0;
15601
  ;
15602
  return 0;
15603
}
15604
_ACEOF
15605
rm -f conftest.$ac_objext
15606
if { (ac_try="$ac_compile"
15607
case "(($ac_try" in
15608
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15609
  *) ac_try_echo=$ac_try;;
15610
esac
15611
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15612
$as_echo "$ac_try_echo") >&5
15613
  (eval "$ac_compile") 2>conftest.er1
15614
  ac_status=$?
15615
  grep -v '^ *+' conftest.er1 >conftest.err
15616
  rm -f conftest.er1
15617
  cat conftest.err >&5
15618
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619
  (exit $ac_status); } && {
15620
         test -z "$ac_c_werror_flag" ||
15621
         test ! -s conftest.err
15622
       } && test -s conftest.$ac_objext; then
15623 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
15624
/* confdefs.h.  */
15625
_ACEOF
15626
cat confdefs.h >>conftest.$ac_ext
15627
cat >>conftest.$ac_ext <<_ACEOF
15628
/* end confdefs.h.  */
15629
#include 
15630
 
15631
int
15632
main ()
15633
{
15634 82 jeremybenn
if (sizeof ((int16_t)))
15635
          return 0;
15636 19 jeremybenn
  ;
15637
  return 0;
15638
}
15639
_ACEOF
15640
rm -f conftest.$ac_objext
15641
if { (ac_try="$ac_compile"
15642
case "(($ac_try" in
15643
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644
  *) ac_try_echo=$ac_try;;
15645
esac
15646 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15647
$as_echo "$ac_try_echo") >&5
15648 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15649
  ac_status=$?
15650
  grep -v '^ *+' conftest.er1 >conftest.err
15651
  rm -f conftest.er1
15652
  cat conftest.err >&5
15653 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 19 jeremybenn
  (exit $ac_status); } && {
15655
         test -z "$ac_c_werror_flag" ||
15656
         test ! -s conftest.err
15657
       } && test -s conftest.$ac_objext; then
15658 82 jeremybenn
  :
15659 19 jeremybenn
else
15660 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15661 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15662
 
15663 82 jeremybenn
        ac_cv_type_int16_t=yes
15664 19 jeremybenn
fi
15665
 
15666
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15667 82 jeremybenn
else
15668
  $as_echo "$as_me: failed program was:" >&5
15669
sed 's/^/| /' conftest.$ac_ext >&5
15670
 
15671
 
15672 19 jeremybenn
fi
15673
 
15674 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15675
fi
15676
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
15677
$as_echo "$ac_cv_type_int16_t" >&6; }
15678
if test "x$ac_cv_type_int16_t" = x""yes; then
15679
 
15680 19 jeremybenn
cat >>confdefs.h <<_ACEOF
15681
#define HAVE_INT16_T 1
15682
_ACEOF
15683
 
15684
 
15685
fi
15686 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
15687
$as_echo_n "checking for int32_t... " >&6; }
15688 19 jeremybenn
if test "${ac_cv_type_int32_t+set}" = set; then
15689 82 jeremybenn
  $as_echo_n "(cached) " >&6
15690 19 jeremybenn
else
15691 82 jeremybenn
  ac_cv_type_int32_t=no
15692
cat >conftest.$ac_ext <<_ACEOF
15693 19 jeremybenn
/* confdefs.h.  */
15694
_ACEOF
15695
cat confdefs.h >>conftest.$ac_ext
15696
cat >>conftest.$ac_ext <<_ACEOF
15697
/* end confdefs.h.  */
15698
#include 
15699
 
15700
int
15701
main ()
15702
{
15703 82 jeremybenn
if (sizeof (int32_t))
15704
       return 0;
15705 19 jeremybenn
  ;
15706
  return 0;
15707
}
15708
_ACEOF
15709
rm -f conftest.$ac_objext
15710
if { (ac_try="$ac_compile"
15711
case "(($ac_try" in
15712
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713
  *) ac_try_echo=$ac_try;;
15714
esac
15715 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15716
$as_echo "$ac_try_echo") >&5
15717 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15718
  ac_status=$?
15719
  grep -v '^ *+' conftest.er1 >conftest.err
15720
  rm -f conftest.er1
15721
  cat conftest.err >&5
15722 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 19 jeremybenn
  (exit $ac_status); } && {
15724
         test -z "$ac_c_werror_flag" ||
15725
         test ! -s conftest.err
15726
       } && test -s conftest.$ac_objext; then
15727
  cat >conftest.$ac_ext <<_ACEOF
15728
/* confdefs.h.  */
15729
_ACEOF
15730
cat confdefs.h >>conftest.$ac_ext
15731
cat >>conftest.$ac_ext <<_ACEOF
15732
/* end confdefs.h.  */
15733 82 jeremybenn
#include 
15734
 
15735 19 jeremybenn
int
15736
main ()
15737
{
15738 82 jeremybenn
if (sizeof ((int32_t)))
15739
          return 0;
15740 19 jeremybenn
  ;
15741
  return 0;
15742
}
15743
_ACEOF
15744
rm -f conftest.$ac_objext
15745
if { (ac_try="$ac_compile"
15746
case "(($ac_try" in
15747
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748
  *) ac_try_echo=$ac_try;;
15749
esac
15750 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15751
$as_echo "$ac_try_echo") >&5
15752 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15753
  ac_status=$?
15754
  grep -v '^ *+' conftest.er1 >conftest.err
15755
  rm -f conftest.er1
15756
  cat conftest.err >&5
15757 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 19 jeremybenn
  (exit $ac_status); } && {
15759
         test -z "$ac_c_werror_flag" ||
15760
         test ! -s conftest.err
15761
       } && test -s conftest.$ac_objext; then
15762 82 jeremybenn
  :
15763 19 jeremybenn
else
15764 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15765 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15766
 
15767 82 jeremybenn
        ac_cv_type_int32_t=yes
15768 19 jeremybenn
fi
15769
 
15770
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15771 82 jeremybenn
else
15772
  $as_echo "$as_me: failed program was:" >&5
15773
sed 's/^/| /' conftest.$ac_ext >&5
15774
 
15775
 
15776 19 jeremybenn
fi
15777
 
15778 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15779
fi
15780
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
15781
$as_echo "$ac_cv_type_int32_t" >&6; }
15782
if test "x$ac_cv_type_int32_t" = x""yes; then
15783
 
15784
cat >>confdefs.h <<_ACEOF
15785
#define HAVE_INT32_T 1
15786
_ACEOF
15787
 
15788
 
15789
fi
15790
 
15791
 
15792 19 jeremybenn
# The cast to long int works around a bug in the HP C Compiler
15793
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15794
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15795
# This bug is HP SR number 8606223364.
15796 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of char" >&5
15797
$as_echo_n "checking size of char... " >&6; }
15798 19 jeremybenn
if test "${ac_cv_sizeof_char+set}" = set; then
15799 82 jeremybenn
  $as_echo_n "(cached) " >&6
15800 19 jeremybenn
else
15801
  if test "$cross_compiling" = yes; then
15802
  # Depending upon the size, compute the lo and hi bounds.
15803
cat >conftest.$ac_ext <<_ACEOF
15804
/* confdefs.h.  */
15805
_ACEOF
15806
cat confdefs.h >>conftest.$ac_ext
15807
cat >>conftest.$ac_ext <<_ACEOF
15808
/* end confdefs.h.  */
15809
$ac_includes_default
15810
int
15811
main ()
15812
{
15813 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
15814 19 jeremybenn
test_array [0] = 0
15815
 
15816
  ;
15817
  return 0;
15818
}
15819
_ACEOF
15820
rm -f conftest.$ac_objext
15821
if { (ac_try="$ac_compile"
15822
case "(($ac_try" in
15823
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824
  *) ac_try_echo=$ac_try;;
15825
esac
15826 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15827
$as_echo "$ac_try_echo") >&5
15828 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15829
  ac_status=$?
15830
  grep -v '^ *+' conftest.er1 >conftest.err
15831
  rm -f conftest.er1
15832
  cat conftest.err >&5
15833 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 19 jeremybenn
  (exit $ac_status); } && {
15835
         test -z "$ac_c_werror_flag" ||
15836
         test ! -s conftest.err
15837
       } && test -s conftest.$ac_objext; then
15838
  ac_lo=0 ac_mid=0
15839
  while :; do
15840
    cat >conftest.$ac_ext <<_ACEOF
15841
/* confdefs.h.  */
15842
_ACEOF
15843
cat confdefs.h >>conftest.$ac_ext
15844
cat >>conftest.$ac_ext <<_ACEOF
15845
/* end confdefs.h.  */
15846
$ac_includes_default
15847
int
15848
main ()
15849
{
15850 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
15851 19 jeremybenn
test_array [0] = 0
15852
 
15853
  ;
15854
  return 0;
15855
}
15856
_ACEOF
15857
rm -f conftest.$ac_objext
15858
if { (ac_try="$ac_compile"
15859
case "(($ac_try" in
15860
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15861
  *) ac_try_echo=$ac_try;;
15862
esac
15863 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15864
$as_echo "$ac_try_echo") >&5
15865 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15866
  ac_status=$?
15867
  grep -v '^ *+' conftest.er1 >conftest.err
15868
  rm -f conftest.er1
15869
  cat conftest.err >&5
15870 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 19 jeremybenn
  (exit $ac_status); } && {
15872
         test -z "$ac_c_werror_flag" ||
15873
         test ! -s conftest.err
15874
       } && test -s conftest.$ac_objext; then
15875
  ac_hi=$ac_mid; break
15876
else
15877 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15878 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15879
 
15880
        ac_lo=`expr $ac_mid + 1`
15881
                        if test $ac_lo -le $ac_mid; then
15882
                          ac_lo= ac_hi=
15883
                          break
15884
                        fi
15885
                        ac_mid=`expr 2 '*' $ac_mid + 1`
15886
fi
15887
 
15888
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15889
  done
15890
else
15891 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15892 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15893
 
15894
        cat >conftest.$ac_ext <<_ACEOF
15895
/* confdefs.h.  */
15896
_ACEOF
15897
cat confdefs.h >>conftest.$ac_ext
15898
cat >>conftest.$ac_ext <<_ACEOF
15899
/* end confdefs.h.  */
15900
$ac_includes_default
15901
int
15902
main ()
15903
{
15904 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
15905 19 jeremybenn
test_array [0] = 0
15906
 
15907
  ;
15908
  return 0;
15909
}
15910
_ACEOF
15911
rm -f conftest.$ac_objext
15912
if { (ac_try="$ac_compile"
15913
case "(($ac_try" in
15914
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15915
  *) ac_try_echo=$ac_try;;
15916
esac
15917 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15918
$as_echo "$ac_try_echo") >&5
15919 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15920
  ac_status=$?
15921
  grep -v '^ *+' conftest.er1 >conftest.err
15922
  rm -f conftest.er1
15923
  cat conftest.err >&5
15924 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 19 jeremybenn
  (exit $ac_status); } && {
15926
         test -z "$ac_c_werror_flag" ||
15927
         test ! -s conftest.err
15928
       } && test -s conftest.$ac_objext; then
15929
  ac_hi=-1 ac_mid=-1
15930
  while :; do
15931
    cat >conftest.$ac_ext <<_ACEOF
15932
/* confdefs.h.  */
15933
_ACEOF
15934
cat confdefs.h >>conftest.$ac_ext
15935
cat >>conftest.$ac_ext <<_ACEOF
15936
/* end confdefs.h.  */
15937
$ac_includes_default
15938
int
15939
main ()
15940
{
15941 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
15942 19 jeremybenn
test_array [0] = 0
15943
 
15944
  ;
15945
  return 0;
15946
}
15947
_ACEOF
15948
rm -f conftest.$ac_objext
15949
if { (ac_try="$ac_compile"
15950
case "(($ac_try" in
15951
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952
  *) ac_try_echo=$ac_try;;
15953
esac
15954 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15955
$as_echo "$ac_try_echo") >&5
15956 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
15957
  ac_status=$?
15958
  grep -v '^ *+' conftest.er1 >conftest.err
15959
  rm -f conftest.er1
15960
  cat conftest.err >&5
15961 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 19 jeremybenn
  (exit $ac_status); } && {
15963
         test -z "$ac_c_werror_flag" ||
15964
         test ! -s conftest.err
15965
       } && test -s conftest.$ac_objext; then
15966
  ac_lo=$ac_mid; break
15967
else
15968 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15969 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15970
 
15971
        ac_hi=`expr '(' $ac_mid ')' - 1`
15972
                        if test $ac_mid -le $ac_hi; then
15973
                          ac_lo= ac_hi=
15974
                          break
15975
                        fi
15976
                        ac_mid=`expr 2 '*' $ac_mid`
15977
fi
15978
 
15979
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15980
  done
15981
else
15982 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
15983 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
15984
 
15985
        ac_lo= ac_hi=
15986
fi
15987
 
15988
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15989
fi
15990
 
15991
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15992
# Binary search between lo and hi bounds.
15993
while test "x$ac_lo" != "x$ac_hi"; do
15994
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15995
  cat >conftest.$ac_ext <<_ACEOF
15996
/* confdefs.h.  */
15997
_ACEOF
15998
cat confdefs.h >>conftest.$ac_ext
15999
cat >>conftest.$ac_ext <<_ACEOF
16000
/* end confdefs.h.  */
16001
$ac_includes_default
16002
int
16003
main ()
16004
{
16005 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
16006 19 jeremybenn
test_array [0] = 0
16007
 
16008
  ;
16009
  return 0;
16010
}
16011
_ACEOF
16012
rm -f conftest.$ac_objext
16013
if { (ac_try="$ac_compile"
16014
case "(($ac_try" in
16015
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16016
  *) ac_try_echo=$ac_try;;
16017
esac
16018 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16019
$as_echo "$ac_try_echo") >&5
16020 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16021
  ac_status=$?
16022
  grep -v '^ *+' conftest.er1 >conftest.err
16023
  rm -f conftest.er1
16024
  cat conftest.err >&5
16025 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 19 jeremybenn
  (exit $ac_status); } && {
16027
         test -z "$ac_c_werror_flag" ||
16028
         test ! -s conftest.err
16029
       } && test -s conftest.$ac_objext; then
16030
  ac_hi=$ac_mid
16031
else
16032 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16033 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16034
 
16035
        ac_lo=`expr '(' $ac_mid ')' + 1`
16036
fi
16037
 
16038
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16039
done
16040
case $ac_lo in
16041
?*) ac_cv_sizeof_char=$ac_lo;;
16042
'') if test "$ac_cv_type_char" = yes; then
16043 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16044
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16045
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
16046 19 jeremybenn
See \`config.log' for more details." >&5
16047 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (char)
16048 19 jeremybenn
See \`config.log' for more details." >&2;}
16049 82 jeremybenn
   { (exit 77); exit 77; }; }; }
16050 19 jeremybenn
   else
16051
     ac_cv_sizeof_char=0
16052
   fi ;;
16053
esac
16054
else
16055
  cat >conftest.$ac_ext <<_ACEOF
16056
/* confdefs.h.  */
16057
_ACEOF
16058
cat confdefs.h >>conftest.$ac_ext
16059
cat >>conftest.$ac_ext <<_ACEOF
16060
/* end confdefs.h.  */
16061
$ac_includes_default
16062 82 jeremybenn
static long int longval () { return (long int) (sizeof (char)); }
16063
static unsigned long int ulongval () { return (long int) (sizeof (char)); }
16064 19 jeremybenn
#include 
16065
#include 
16066
int
16067
main ()
16068
{
16069
 
16070
  FILE *f = fopen ("conftest.val", "w");
16071
  if (! f)
16072
    return 1;
16073 82 jeremybenn
  if (((long int) (sizeof (char))) < 0)
16074 19 jeremybenn
    {
16075
      long int i = longval ();
16076 82 jeremybenn
      if (i != ((long int) (sizeof (char))))
16077 19 jeremybenn
        return 1;
16078 82 jeremybenn
      fprintf (f, "%ld", i);
16079 19 jeremybenn
    }
16080
  else
16081
    {
16082
      unsigned long int i = ulongval ();
16083 82 jeremybenn
      if (i != ((long int) (sizeof (char))))
16084 19 jeremybenn
        return 1;
16085 82 jeremybenn
      fprintf (f, "%lu", i);
16086 19 jeremybenn
    }
16087 82 jeremybenn
  /* Do not output a trailing newline, as this causes \r\n confusion
16088
     on some platforms.  */
16089 19 jeremybenn
  return ferror (f) || fclose (f) != 0;
16090
 
16091
  ;
16092
  return 0;
16093
}
16094
_ACEOF
16095
rm -f conftest$ac_exeext
16096
if { (ac_try="$ac_link"
16097
case "(($ac_try" in
16098
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16099
  *) ac_try_echo=$ac_try;;
16100
esac
16101 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16102
$as_echo "$ac_try_echo") >&5
16103 19 jeremybenn
  (eval "$ac_link") 2>&5
16104
  ac_status=$?
16105 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16107
  { (case "(($ac_try" in
16108
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109
  *) ac_try_echo=$ac_try;;
16110
esac
16111 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16112
$as_echo "$ac_try_echo") >&5
16113 19 jeremybenn
  (eval "$ac_try") 2>&5
16114
  ac_status=$?
16115 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 19 jeremybenn
  (exit $ac_status); }; }; then
16117
  ac_cv_sizeof_char=`cat conftest.val`
16118
else
16119 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
16120
$as_echo "$as_me: failed program was:" >&5
16121 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16122
 
16123
( exit $ac_status )
16124
if test "$ac_cv_type_char" = yes; then
16125 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16126
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16127
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
16128 19 jeremybenn
See \`config.log' for more details." >&5
16129 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (char)
16130 19 jeremybenn
See \`config.log' for more details." >&2;}
16131 82 jeremybenn
   { (exit 77); exit 77; }; }; }
16132 19 jeremybenn
   else
16133
     ac_cv_sizeof_char=0
16134
   fi
16135
fi
16136 82 jeremybenn
rm -rf conftest.dSYM
16137 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16138
fi
16139
rm -f conftest.val
16140
fi
16141 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16142
$as_echo "$ac_cv_sizeof_char" >&6; }
16143 19 jeremybenn
 
16144
 
16145
 
16146
cat >>confdefs.h <<_ACEOF
16147
#define SIZEOF_CHAR $ac_cv_sizeof_char
16148
_ACEOF
16149
 
16150
 
16151
# The cast to long int works around a bug in the HP C Compiler
16152
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16153
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16154
# This bug is HP SR number 8606223364.
16155 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of short" >&5
16156
$as_echo_n "checking size of short... " >&6; }
16157 19 jeremybenn
if test "${ac_cv_sizeof_short+set}" = set; then
16158 82 jeremybenn
  $as_echo_n "(cached) " >&6
16159 19 jeremybenn
else
16160
  if test "$cross_compiling" = yes; then
16161
  # Depending upon the size, compute the lo and hi bounds.
16162
cat >conftest.$ac_ext <<_ACEOF
16163
/* confdefs.h.  */
16164
_ACEOF
16165
cat confdefs.h >>conftest.$ac_ext
16166
cat >>conftest.$ac_ext <<_ACEOF
16167
/* end confdefs.h.  */
16168
$ac_includes_default
16169
int
16170
main ()
16171
{
16172 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
16173 19 jeremybenn
test_array [0] = 0
16174
 
16175
  ;
16176
  return 0;
16177
}
16178
_ACEOF
16179
rm -f conftest.$ac_objext
16180
if { (ac_try="$ac_compile"
16181
case "(($ac_try" in
16182
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183
  *) ac_try_echo=$ac_try;;
16184
esac
16185 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16186
$as_echo "$ac_try_echo") >&5
16187 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16188
  ac_status=$?
16189
  grep -v '^ *+' conftest.er1 >conftest.err
16190
  rm -f conftest.er1
16191
  cat conftest.err >&5
16192 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 19 jeremybenn
  (exit $ac_status); } && {
16194
         test -z "$ac_c_werror_flag" ||
16195
         test ! -s conftest.err
16196
       } && test -s conftest.$ac_objext; then
16197
  ac_lo=0 ac_mid=0
16198
  while :; do
16199
    cat >conftest.$ac_ext <<_ACEOF
16200
/* confdefs.h.  */
16201
_ACEOF
16202
cat confdefs.h >>conftest.$ac_ext
16203
cat >>conftest.$ac_ext <<_ACEOF
16204
/* end confdefs.h.  */
16205
$ac_includes_default
16206
int
16207
main ()
16208
{
16209 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
16210 19 jeremybenn
test_array [0] = 0
16211
 
16212
  ;
16213
  return 0;
16214
}
16215
_ACEOF
16216
rm -f conftest.$ac_objext
16217
if { (ac_try="$ac_compile"
16218
case "(($ac_try" in
16219
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220
  *) ac_try_echo=$ac_try;;
16221
esac
16222 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16223
$as_echo "$ac_try_echo") >&5
16224 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16225
  ac_status=$?
16226
  grep -v '^ *+' conftest.er1 >conftest.err
16227
  rm -f conftest.er1
16228
  cat conftest.err >&5
16229 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 19 jeremybenn
  (exit $ac_status); } && {
16231
         test -z "$ac_c_werror_flag" ||
16232
         test ! -s conftest.err
16233
       } && test -s conftest.$ac_objext; then
16234
  ac_hi=$ac_mid; break
16235
else
16236 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16237 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16238
 
16239
        ac_lo=`expr $ac_mid + 1`
16240
                        if test $ac_lo -le $ac_mid; then
16241
                          ac_lo= ac_hi=
16242
                          break
16243
                        fi
16244
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16245
fi
16246
 
16247
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16248
  done
16249
else
16250 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16251 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16252
 
16253
        cat >conftest.$ac_ext <<_ACEOF
16254
/* confdefs.h.  */
16255
_ACEOF
16256
cat confdefs.h >>conftest.$ac_ext
16257
cat >>conftest.$ac_ext <<_ACEOF
16258
/* end confdefs.h.  */
16259
$ac_includes_default
16260
int
16261
main ()
16262
{
16263 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
16264 19 jeremybenn
test_array [0] = 0
16265
 
16266
  ;
16267
  return 0;
16268
}
16269
_ACEOF
16270
rm -f conftest.$ac_objext
16271
if { (ac_try="$ac_compile"
16272
case "(($ac_try" in
16273
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274
  *) ac_try_echo=$ac_try;;
16275
esac
16276 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16277
$as_echo "$ac_try_echo") >&5
16278 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16279
  ac_status=$?
16280
  grep -v '^ *+' conftest.er1 >conftest.err
16281
  rm -f conftest.er1
16282
  cat conftest.err >&5
16283 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 19 jeremybenn
  (exit $ac_status); } && {
16285
         test -z "$ac_c_werror_flag" ||
16286
         test ! -s conftest.err
16287
       } && test -s conftest.$ac_objext; then
16288
  ac_hi=-1 ac_mid=-1
16289
  while :; do
16290
    cat >conftest.$ac_ext <<_ACEOF
16291
/* confdefs.h.  */
16292
_ACEOF
16293
cat confdefs.h >>conftest.$ac_ext
16294
cat >>conftest.$ac_ext <<_ACEOF
16295
/* end confdefs.h.  */
16296
$ac_includes_default
16297
int
16298
main ()
16299
{
16300 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
16301 19 jeremybenn
test_array [0] = 0
16302
 
16303
  ;
16304
  return 0;
16305
}
16306
_ACEOF
16307
rm -f conftest.$ac_objext
16308
if { (ac_try="$ac_compile"
16309
case "(($ac_try" in
16310
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16311
  *) ac_try_echo=$ac_try;;
16312
esac
16313 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16314
$as_echo "$ac_try_echo") >&5
16315 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16316
  ac_status=$?
16317
  grep -v '^ *+' conftest.er1 >conftest.err
16318
  rm -f conftest.er1
16319
  cat conftest.err >&5
16320 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 19 jeremybenn
  (exit $ac_status); } && {
16322
         test -z "$ac_c_werror_flag" ||
16323
         test ! -s conftest.err
16324
       } && test -s conftest.$ac_objext; then
16325
  ac_lo=$ac_mid; break
16326
else
16327 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16328 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16329
 
16330
        ac_hi=`expr '(' $ac_mid ')' - 1`
16331
                        if test $ac_mid -le $ac_hi; then
16332
                          ac_lo= ac_hi=
16333
                          break
16334
                        fi
16335
                        ac_mid=`expr 2 '*' $ac_mid`
16336
fi
16337
 
16338
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339
  done
16340
else
16341 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16342 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16343
 
16344
        ac_lo= ac_hi=
16345
fi
16346
 
16347
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16348
fi
16349
 
16350
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16351
# Binary search between lo and hi bounds.
16352
while test "x$ac_lo" != "x$ac_hi"; do
16353
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16354
  cat >conftest.$ac_ext <<_ACEOF
16355
/* confdefs.h.  */
16356
_ACEOF
16357
cat confdefs.h >>conftest.$ac_ext
16358
cat >>conftest.$ac_ext <<_ACEOF
16359
/* end confdefs.h.  */
16360
$ac_includes_default
16361
int
16362
main ()
16363
{
16364 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
16365 19 jeremybenn
test_array [0] = 0
16366
 
16367
  ;
16368
  return 0;
16369
}
16370
_ACEOF
16371
rm -f conftest.$ac_objext
16372
if { (ac_try="$ac_compile"
16373
case "(($ac_try" in
16374
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16375
  *) ac_try_echo=$ac_try;;
16376
esac
16377 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16378
$as_echo "$ac_try_echo") >&5
16379 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16380
  ac_status=$?
16381
  grep -v '^ *+' conftest.er1 >conftest.err
16382
  rm -f conftest.er1
16383
  cat conftest.err >&5
16384 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 19 jeremybenn
  (exit $ac_status); } && {
16386
         test -z "$ac_c_werror_flag" ||
16387
         test ! -s conftest.err
16388
       } && test -s conftest.$ac_objext; then
16389
  ac_hi=$ac_mid
16390
else
16391 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16392 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16393
 
16394
        ac_lo=`expr '(' $ac_mid ')' + 1`
16395
fi
16396
 
16397
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16398
done
16399
case $ac_lo in
16400
?*) ac_cv_sizeof_short=$ac_lo;;
16401
'') if test "$ac_cv_type_short" = yes; then
16402 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16403
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16404
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
16405 19 jeremybenn
See \`config.log' for more details." >&5
16406 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (short)
16407 19 jeremybenn
See \`config.log' for more details." >&2;}
16408 82 jeremybenn
   { (exit 77); exit 77; }; }; }
16409 19 jeremybenn
   else
16410
     ac_cv_sizeof_short=0
16411
   fi ;;
16412
esac
16413
else
16414
  cat >conftest.$ac_ext <<_ACEOF
16415
/* confdefs.h.  */
16416
_ACEOF
16417
cat confdefs.h >>conftest.$ac_ext
16418
cat >>conftest.$ac_ext <<_ACEOF
16419
/* end confdefs.h.  */
16420
$ac_includes_default
16421 82 jeremybenn
static long int longval () { return (long int) (sizeof (short)); }
16422
static unsigned long int ulongval () { return (long int) (sizeof (short)); }
16423 19 jeremybenn
#include 
16424
#include 
16425
int
16426
main ()
16427
{
16428
 
16429
  FILE *f = fopen ("conftest.val", "w");
16430
  if (! f)
16431
    return 1;
16432 82 jeremybenn
  if (((long int) (sizeof (short))) < 0)
16433 19 jeremybenn
    {
16434
      long int i = longval ();
16435 82 jeremybenn
      if (i != ((long int) (sizeof (short))))
16436 19 jeremybenn
        return 1;
16437 82 jeremybenn
      fprintf (f, "%ld", i);
16438 19 jeremybenn
    }
16439
  else
16440
    {
16441
      unsigned long int i = ulongval ();
16442 82 jeremybenn
      if (i != ((long int) (sizeof (short))))
16443 19 jeremybenn
        return 1;
16444 82 jeremybenn
      fprintf (f, "%lu", i);
16445 19 jeremybenn
    }
16446 82 jeremybenn
  /* Do not output a trailing newline, as this causes \r\n confusion
16447
     on some platforms.  */
16448 19 jeremybenn
  return ferror (f) || fclose (f) != 0;
16449
 
16450
  ;
16451
  return 0;
16452
}
16453
_ACEOF
16454
rm -f conftest$ac_exeext
16455
if { (ac_try="$ac_link"
16456
case "(($ac_try" in
16457
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458
  *) ac_try_echo=$ac_try;;
16459
esac
16460 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16461
$as_echo "$ac_try_echo") >&5
16462 19 jeremybenn
  (eval "$ac_link") 2>&5
16463
  ac_status=$?
16464 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16466
  { (case "(($ac_try" in
16467
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468
  *) ac_try_echo=$ac_try;;
16469
esac
16470 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16471
$as_echo "$ac_try_echo") >&5
16472 19 jeremybenn
  (eval "$ac_try") 2>&5
16473
  ac_status=$?
16474 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 19 jeremybenn
  (exit $ac_status); }; }; then
16476
  ac_cv_sizeof_short=`cat conftest.val`
16477
else
16478 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
16479
$as_echo "$as_me: failed program was:" >&5
16480 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16481
 
16482
( exit $ac_status )
16483
if test "$ac_cv_type_short" = yes; then
16484 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16485
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16486
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
16487 19 jeremybenn
See \`config.log' for more details." >&5
16488 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (short)
16489 19 jeremybenn
See \`config.log' for more details." >&2;}
16490 82 jeremybenn
   { (exit 77); exit 77; }; }; }
16491 19 jeremybenn
   else
16492
     ac_cv_sizeof_short=0
16493
   fi
16494
fi
16495 82 jeremybenn
rm -rf conftest.dSYM
16496 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16497
fi
16498
rm -f conftest.val
16499
fi
16500 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16501
$as_echo "$ac_cv_sizeof_short" >&6; }
16502 19 jeremybenn
 
16503
 
16504
 
16505
cat >>confdefs.h <<_ACEOF
16506
#define SIZEOF_SHORT $ac_cv_sizeof_short
16507
_ACEOF
16508
 
16509
 
16510
# The cast to long int works around a bug in the HP C Compiler
16511
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16512
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16513
# This bug is HP SR number 8606223364.
16514 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of int" >&5
16515
$as_echo_n "checking size of int... " >&6; }
16516 19 jeremybenn
if test "${ac_cv_sizeof_int+set}" = set; then
16517 82 jeremybenn
  $as_echo_n "(cached) " >&6
16518 19 jeremybenn
else
16519
  if test "$cross_compiling" = yes; then
16520
  # Depending upon the size, compute the lo and hi bounds.
16521
cat >conftest.$ac_ext <<_ACEOF
16522
/* confdefs.h.  */
16523
_ACEOF
16524
cat confdefs.h >>conftest.$ac_ext
16525
cat >>conftest.$ac_ext <<_ACEOF
16526
/* end confdefs.h.  */
16527
$ac_includes_default
16528
int
16529
main ()
16530
{
16531 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
16532 19 jeremybenn
test_array [0] = 0
16533
 
16534
  ;
16535
  return 0;
16536
}
16537
_ACEOF
16538
rm -f conftest.$ac_objext
16539
if { (ac_try="$ac_compile"
16540
case "(($ac_try" in
16541
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542
  *) ac_try_echo=$ac_try;;
16543
esac
16544 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16545
$as_echo "$ac_try_echo") >&5
16546 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16547
  ac_status=$?
16548
  grep -v '^ *+' conftest.er1 >conftest.err
16549
  rm -f conftest.er1
16550
  cat conftest.err >&5
16551 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 19 jeremybenn
  (exit $ac_status); } && {
16553
         test -z "$ac_c_werror_flag" ||
16554
         test ! -s conftest.err
16555
       } && test -s conftest.$ac_objext; then
16556
  ac_lo=0 ac_mid=0
16557
  while :; do
16558
    cat >conftest.$ac_ext <<_ACEOF
16559
/* confdefs.h.  */
16560
_ACEOF
16561
cat confdefs.h >>conftest.$ac_ext
16562
cat >>conftest.$ac_ext <<_ACEOF
16563
/* end confdefs.h.  */
16564
$ac_includes_default
16565
int
16566
main ()
16567
{
16568 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
16569 19 jeremybenn
test_array [0] = 0
16570
 
16571
  ;
16572
  return 0;
16573
}
16574
_ACEOF
16575
rm -f conftest.$ac_objext
16576
if { (ac_try="$ac_compile"
16577
case "(($ac_try" in
16578
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579
  *) ac_try_echo=$ac_try;;
16580
esac
16581 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16582
$as_echo "$ac_try_echo") >&5
16583 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16584
  ac_status=$?
16585
  grep -v '^ *+' conftest.er1 >conftest.err
16586
  rm -f conftest.er1
16587
  cat conftest.err >&5
16588 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 19 jeremybenn
  (exit $ac_status); } && {
16590
         test -z "$ac_c_werror_flag" ||
16591
         test ! -s conftest.err
16592
       } && test -s conftest.$ac_objext; then
16593
  ac_hi=$ac_mid; break
16594
else
16595 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16596 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16597
 
16598
        ac_lo=`expr $ac_mid + 1`
16599
                        if test $ac_lo -le $ac_mid; then
16600
                          ac_lo= ac_hi=
16601
                          break
16602
                        fi
16603
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16604
fi
16605
 
16606
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16607
  done
16608
else
16609 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16610 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16611
 
16612
        cat >conftest.$ac_ext <<_ACEOF
16613
/* confdefs.h.  */
16614
_ACEOF
16615
cat confdefs.h >>conftest.$ac_ext
16616
cat >>conftest.$ac_ext <<_ACEOF
16617
/* end confdefs.h.  */
16618
$ac_includes_default
16619
int
16620
main ()
16621
{
16622 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
16623 19 jeremybenn
test_array [0] = 0
16624
 
16625
  ;
16626
  return 0;
16627
}
16628
_ACEOF
16629
rm -f conftest.$ac_objext
16630
if { (ac_try="$ac_compile"
16631
case "(($ac_try" in
16632
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633
  *) ac_try_echo=$ac_try;;
16634
esac
16635 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16636
$as_echo "$ac_try_echo") >&5
16637 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16638
  ac_status=$?
16639
  grep -v '^ *+' conftest.er1 >conftest.err
16640
  rm -f conftest.er1
16641
  cat conftest.err >&5
16642 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 19 jeremybenn
  (exit $ac_status); } && {
16644
         test -z "$ac_c_werror_flag" ||
16645
         test ! -s conftest.err
16646
       } && test -s conftest.$ac_objext; then
16647
  ac_hi=-1 ac_mid=-1
16648
  while :; do
16649
    cat >conftest.$ac_ext <<_ACEOF
16650
/* confdefs.h.  */
16651
_ACEOF
16652
cat confdefs.h >>conftest.$ac_ext
16653
cat >>conftest.$ac_ext <<_ACEOF
16654
/* end confdefs.h.  */
16655
$ac_includes_default
16656
int
16657
main ()
16658
{
16659 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
16660 19 jeremybenn
test_array [0] = 0
16661
 
16662
  ;
16663
  return 0;
16664
}
16665
_ACEOF
16666
rm -f conftest.$ac_objext
16667
if { (ac_try="$ac_compile"
16668
case "(($ac_try" in
16669
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670
  *) ac_try_echo=$ac_try;;
16671
esac
16672 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16673
$as_echo "$ac_try_echo") >&5
16674 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16675
  ac_status=$?
16676
  grep -v '^ *+' conftest.er1 >conftest.err
16677
  rm -f conftest.er1
16678
  cat conftest.err >&5
16679 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 19 jeremybenn
  (exit $ac_status); } && {
16681
         test -z "$ac_c_werror_flag" ||
16682
         test ! -s conftest.err
16683
       } && test -s conftest.$ac_objext; then
16684
  ac_lo=$ac_mid; break
16685
else
16686 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16687 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16688
 
16689
        ac_hi=`expr '(' $ac_mid ')' - 1`
16690
                        if test $ac_mid -le $ac_hi; then
16691
                          ac_lo= ac_hi=
16692
                          break
16693
                        fi
16694
                        ac_mid=`expr 2 '*' $ac_mid`
16695
fi
16696
 
16697
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16698
  done
16699
else
16700 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16701 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16702
 
16703
        ac_lo= ac_hi=
16704
fi
16705
 
16706
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16707
fi
16708
 
16709
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16710
# Binary search between lo and hi bounds.
16711
while test "x$ac_lo" != "x$ac_hi"; do
16712
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16713
  cat >conftest.$ac_ext <<_ACEOF
16714
/* confdefs.h.  */
16715
_ACEOF
16716
cat confdefs.h >>conftest.$ac_ext
16717
cat >>conftest.$ac_ext <<_ACEOF
16718
/* end confdefs.h.  */
16719
$ac_includes_default
16720
int
16721
main ()
16722
{
16723 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
16724 19 jeremybenn
test_array [0] = 0
16725
 
16726
  ;
16727
  return 0;
16728
}
16729
_ACEOF
16730
rm -f conftest.$ac_objext
16731
if { (ac_try="$ac_compile"
16732
case "(($ac_try" in
16733
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734
  *) ac_try_echo=$ac_try;;
16735
esac
16736 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16737
$as_echo "$ac_try_echo") >&5
16738 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16739
  ac_status=$?
16740
  grep -v '^ *+' conftest.er1 >conftest.err
16741
  rm -f conftest.er1
16742
  cat conftest.err >&5
16743 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 19 jeremybenn
  (exit $ac_status); } && {
16745
         test -z "$ac_c_werror_flag" ||
16746
         test ! -s conftest.err
16747
       } && test -s conftest.$ac_objext; then
16748
  ac_hi=$ac_mid
16749
else
16750 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16751 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16752
 
16753
        ac_lo=`expr '(' $ac_mid ')' + 1`
16754
fi
16755
 
16756
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16757
done
16758
case $ac_lo in
16759
?*) ac_cv_sizeof_int=$ac_lo;;
16760
'') if test "$ac_cv_type_int" = yes; then
16761 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16762
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16763
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16764 19 jeremybenn
See \`config.log' for more details." >&5
16765 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (int)
16766 19 jeremybenn
See \`config.log' for more details." >&2;}
16767 82 jeremybenn
   { (exit 77); exit 77; }; }; }
16768 19 jeremybenn
   else
16769
     ac_cv_sizeof_int=0
16770
   fi ;;
16771
esac
16772
else
16773
  cat >conftest.$ac_ext <<_ACEOF
16774
/* confdefs.h.  */
16775
_ACEOF
16776
cat confdefs.h >>conftest.$ac_ext
16777
cat >>conftest.$ac_ext <<_ACEOF
16778
/* end confdefs.h.  */
16779
$ac_includes_default
16780 82 jeremybenn
static long int longval () { return (long int) (sizeof (int)); }
16781
static unsigned long int ulongval () { return (long int) (sizeof (int)); }
16782 19 jeremybenn
#include 
16783
#include 
16784
int
16785
main ()
16786
{
16787
 
16788
  FILE *f = fopen ("conftest.val", "w");
16789
  if (! f)
16790
    return 1;
16791 82 jeremybenn
  if (((long int) (sizeof (int))) < 0)
16792 19 jeremybenn
    {
16793
      long int i = longval ();
16794 82 jeremybenn
      if (i != ((long int) (sizeof (int))))
16795 19 jeremybenn
        return 1;
16796 82 jeremybenn
      fprintf (f, "%ld", i);
16797 19 jeremybenn
    }
16798
  else
16799
    {
16800
      unsigned long int i = ulongval ();
16801 82 jeremybenn
      if (i != ((long int) (sizeof (int))))
16802 19 jeremybenn
        return 1;
16803 82 jeremybenn
      fprintf (f, "%lu", i);
16804 19 jeremybenn
    }
16805 82 jeremybenn
  /* Do not output a trailing newline, as this causes \r\n confusion
16806
     on some platforms.  */
16807 19 jeremybenn
  return ferror (f) || fclose (f) != 0;
16808
 
16809
  ;
16810
  return 0;
16811
}
16812
_ACEOF
16813
rm -f conftest$ac_exeext
16814
if { (ac_try="$ac_link"
16815
case "(($ac_try" in
16816
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817
  *) ac_try_echo=$ac_try;;
16818
esac
16819 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16820
$as_echo "$ac_try_echo") >&5
16821 19 jeremybenn
  (eval "$ac_link") 2>&5
16822
  ac_status=$?
16823 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16825
  { (case "(($ac_try" in
16826
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827
  *) ac_try_echo=$ac_try;;
16828
esac
16829 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16830
$as_echo "$ac_try_echo") >&5
16831 19 jeremybenn
  (eval "$ac_try") 2>&5
16832
  ac_status=$?
16833 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 19 jeremybenn
  (exit $ac_status); }; }; then
16835
  ac_cv_sizeof_int=`cat conftest.val`
16836
else
16837 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
16838
$as_echo "$as_me: failed program was:" >&5
16839 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16840
 
16841
( exit $ac_status )
16842
if test "$ac_cv_type_int" = yes; then
16843 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16844
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16845
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16846 19 jeremybenn
See \`config.log' for more details." >&5
16847 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (int)
16848 19 jeremybenn
See \`config.log' for more details." >&2;}
16849 82 jeremybenn
   { (exit 77); exit 77; }; }; }
16850 19 jeremybenn
   else
16851
     ac_cv_sizeof_int=0
16852
   fi
16853
fi
16854 82 jeremybenn
rm -rf conftest.dSYM
16855 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16856
fi
16857
rm -f conftest.val
16858
fi
16859 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16860
$as_echo "$ac_cv_sizeof_int" >&6; }
16861 19 jeremybenn
 
16862
 
16863
 
16864
cat >>confdefs.h <<_ACEOF
16865
#define SIZEOF_INT $ac_cv_sizeof_int
16866
_ACEOF
16867
 
16868
 
16869
# The cast to long int works around a bug in the HP C Compiler
16870
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16871
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16872
# This bug is HP SR number 8606223364.
16873 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
16874
$as_echo_n "checking size of long... " >&6; }
16875 19 jeremybenn
if test "${ac_cv_sizeof_long+set}" = set; then
16876 82 jeremybenn
  $as_echo_n "(cached) " >&6
16877 19 jeremybenn
else
16878
  if test "$cross_compiling" = yes; then
16879
  # Depending upon the size, compute the lo and hi bounds.
16880
cat >conftest.$ac_ext <<_ACEOF
16881
/* confdefs.h.  */
16882
_ACEOF
16883
cat confdefs.h >>conftest.$ac_ext
16884
cat >>conftest.$ac_ext <<_ACEOF
16885
/* end confdefs.h.  */
16886
$ac_includes_default
16887
int
16888
main ()
16889
{
16890 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
16891 19 jeremybenn
test_array [0] = 0
16892
 
16893
  ;
16894
  return 0;
16895
}
16896
_ACEOF
16897
rm -f conftest.$ac_objext
16898
if { (ac_try="$ac_compile"
16899
case "(($ac_try" in
16900
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901
  *) ac_try_echo=$ac_try;;
16902
esac
16903 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16904
$as_echo "$ac_try_echo") >&5
16905 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16906
  ac_status=$?
16907
  grep -v '^ *+' conftest.er1 >conftest.err
16908
  rm -f conftest.er1
16909
  cat conftest.err >&5
16910 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 19 jeremybenn
  (exit $ac_status); } && {
16912
         test -z "$ac_c_werror_flag" ||
16913
         test ! -s conftest.err
16914
       } && test -s conftest.$ac_objext; then
16915
  ac_lo=0 ac_mid=0
16916
  while :; do
16917
    cat >conftest.$ac_ext <<_ACEOF
16918
/* confdefs.h.  */
16919
_ACEOF
16920
cat confdefs.h >>conftest.$ac_ext
16921
cat >>conftest.$ac_ext <<_ACEOF
16922
/* end confdefs.h.  */
16923
$ac_includes_default
16924
int
16925
main ()
16926
{
16927 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
16928 19 jeremybenn
test_array [0] = 0
16929
 
16930
  ;
16931
  return 0;
16932
}
16933
_ACEOF
16934
rm -f conftest.$ac_objext
16935
if { (ac_try="$ac_compile"
16936
case "(($ac_try" in
16937
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16938
  *) ac_try_echo=$ac_try;;
16939
esac
16940 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16941
$as_echo "$ac_try_echo") >&5
16942 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16943
  ac_status=$?
16944
  grep -v '^ *+' conftest.er1 >conftest.err
16945
  rm -f conftest.er1
16946
  cat conftest.err >&5
16947 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 19 jeremybenn
  (exit $ac_status); } && {
16949
         test -z "$ac_c_werror_flag" ||
16950
         test ! -s conftest.err
16951
       } && test -s conftest.$ac_objext; then
16952
  ac_hi=$ac_mid; break
16953
else
16954 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16955 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16956
 
16957
        ac_lo=`expr $ac_mid + 1`
16958
                        if test $ac_lo -le $ac_mid; then
16959
                          ac_lo= ac_hi=
16960
                          break
16961
                        fi
16962
                        ac_mid=`expr 2 '*' $ac_mid + 1`
16963
fi
16964
 
16965
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16966
  done
16967
else
16968 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
16969 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
16970
 
16971
        cat >conftest.$ac_ext <<_ACEOF
16972
/* confdefs.h.  */
16973
_ACEOF
16974
cat confdefs.h >>conftest.$ac_ext
16975
cat >>conftest.$ac_ext <<_ACEOF
16976
/* end confdefs.h.  */
16977
$ac_includes_default
16978
int
16979
main ()
16980
{
16981 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
16982 19 jeremybenn
test_array [0] = 0
16983
 
16984
  ;
16985
  return 0;
16986
}
16987
_ACEOF
16988
rm -f conftest.$ac_objext
16989
if { (ac_try="$ac_compile"
16990
case "(($ac_try" in
16991
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992
  *) ac_try_echo=$ac_try;;
16993
esac
16994 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16995
$as_echo "$ac_try_echo") >&5
16996 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
16997
  ac_status=$?
16998
  grep -v '^ *+' conftest.er1 >conftest.err
16999
  rm -f conftest.er1
17000
  cat conftest.err >&5
17001 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 19 jeremybenn
  (exit $ac_status); } && {
17003
         test -z "$ac_c_werror_flag" ||
17004
         test ! -s conftest.err
17005
       } && test -s conftest.$ac_objext; then
17006
  ac_hi=-1 ac_mid=-1
17007
  while :; do
17008
    cat >conftest.$ac_ext <<_ACEOF
17009
/* confdefs.h.  */
17010
_ACEOF
17011
cat confdefs.h >>conftest.$ac_ext
17012
cat >>conftest.$ac_ext <<_ACEOF
17013
/* end confdefs.h.  */
17014
$ac_includes_default
17015
int
17016
main ()
17017
{
17018 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
17019 19 jeremybenn
test_array [0] = 0
17020
 
17021
  ;
17022
  return 0;
17023
}
17024
_ACEOF
17025
rm -f conftest.$ac_objext
17026
if { (ac_try="$ac_compile"
17027
case "(($ac_try" in
17028
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029
  *) ac_try_echo=$ac_try;;
17030
esac
17031 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17032
$as_echo "$ac_try_echo") >&5
17033 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
17034
  ac_status=$?
17035
  grep -v '^ *+' conftest.er1 >conftest.err
17036
  rm -f conftest.er1
17037
  cat conftest.err >&5
17038 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 19 jeremybenn
  (exit $ac_status); } && {
17040
         test -z "$ac_c_werror_flag" ||
17041
         test ! -s conftest.err
17042
       } && test -s conftest.$ac_objext; then
17043
  ac_lo=$ac_mid; break
17044
else
17045 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17046 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17047
 
17048
        ac_hi=`expr '(' $ac_mid ')' - 1`
17049
                        if test $ac_mid -le $ac_hi; then
17050
                          ac_lo= ac_hi=
17051
                          break
17052
                        fi
17053
                        ac_mid=`expr 2 '*' $ac_mid`
17054
fi
17055
 
17056
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17057
  done
17058
else
17059 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17060 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17061
 
17062
        ac_lo= ac_hi=
17063
fi
17064
 
17065
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17066
fi
17067
 
17068
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17069
# Binary search between lo and hi bounds.
17070
while test "x$ac_lo" != "x$ac_hi"; do
17071
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17072
  cat >conftest.$ac_ext <<_ACEOF
17073
/* confdefs.h.  */
17074
_ACEOF
17075
cat confdefs.h >>conftest.$ac_ext
17076
cat >>conftest.$ac_ext <<_ACEOF
17077
/* end confdefs.h.  */
17078
$ac_includes_default
17079
int
17080
main ()
17081
{
17082 82 jeremybenn
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
17083 19 jeremybenn
test_array [0] = 0
17084
 
17085
  ;
17086
  return 0;
17087
}
17088
_ACEOF
17089
rm -f conftest.$ac_objext
17090
if { (ac_try="$ac_compile"
17091
case "(($ac_try" in
17092
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093
  *) ac_try_echo=$ac_try;;
17094
esac
17095 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17096
$as_echo "$ac_try_echo") >&5
17097 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
17098
  ac_status=$?
17099
  grep -v '^ *+' conftest.er1 >conftest.err
17100
  rm -f conftest.er1
17101
  cat conftest.err >&5
17102 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 19 jeremybenn
  (exit $ac_status); } && {
17104
         test -z "$ac_c_werror_flag" ||
17105
         test ! -s conftest.err
17106
       } && test -s conftest.$ac_objext; then
17107
  ac_hi=$ac_mid
17108
else
17109 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17110 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17111
 
17112
        ac_lo=`expr '(' $ac_mid ')' + 1`
17113
fi
17114
 
17115
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17116
done
17117
case $ac_lo in
17118
?*) ac_cv_sizeof_long=$ac_lo;;
17119
'') if test "$ac_cv_type_long" = yes; then
17120 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17121
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17122
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
17123 19 jeremybenn
See \`config.log' for more details." >&5
17124 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (long)
17125 19 jeremybenn
See \`config.log' for more details." >&2;}
17126 82 jeremybenn
   { (exit 77); exit 77; }; }; }
17127 19 jeremybenn
   else
17128
     ac_cv_sizeof_long=0
17129
   fi ;;
17130
esac
17131
else
17132
  cat >conftest.$ac_ext <<_ACEOF
17133
/* confdefs.h.  */
17134
_ACEOF
17135
cat confdefs.h >>conftest.$ac_ext
17136
cat >>conftest.$ac_ext <<_ACEOF
17137
/* end confdefs.h.  */
17138
$ac_includes_default
17139 82 jeremybenn
static long int longval () { return (long int) (sizeof (long)); }
17140
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
17141 19 jeremybenn
#include 
17142
#include 
17143
int
17144
main ()
17145
{
17146
 
17147
  FILE *f = fopen ("conftest.val", "w");
17148
  if (! f)
17149
    return 1;
17150 82 jeremybenn
  if (((long int) (sizeof (long))) < 0)
17151 19 jeremybenn
    {
17152
      long int i = longval ();
17153 82 jeremybenn
      if (i != ((long int) (sizeof (long))))
17154 19 jeremybenn
        return 1;
17155 82 jeremybenn
      fprintf (f, "%ld", i);
17156 19 jeremybenn
    }
17157
  else
17158
    {
17159
      unsigned long int i = ulongval ();
17160 82 jeremybenn
      if (i != ((long int) (sizeof (long))))
17161 19 jeremybenn
        return 1;
17162 82 jeremybenn
      fprintf (f, "%lu", i);
17163 19 jeremybenn
    }
17164 82 jeremybenn
  /* Do not output a trailing newline, as this causes \r\n confusion
17165
     on some platforms.  */
17166 19 jeremybenn
  return ferror (f) || fclose (f) != 0;
17167
 
17168
  ;
17169
  return 0;
17170
}
17171
_ACEOF
17172
rm -f conftest$ac_exeext
17173
if { (ac_try="$ac_link"
17174
case "(($ac_try" in
17175
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176
  *) ac_try_echo=$ac_try;;
17177
esac
17178 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17179
$as_echo "$ac_try_echo") >&5
17180 19 jeremybenn
  (eval "$ac_link") 2>&5
17181
  ac_status=$?
17182 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 19 jeremybenn
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17184
  { (case "(($ac_try" in
17185
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17186
  *) ac_try_echo=$ac_try;;
17187
esac
17188 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17189
$as_echo "$ac_try_echo") >&5
17190 19 jeremybenn
  (eval "$ac_try") 2>&5
17191
  ac_status=$?
17192 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 19 jeremybenn
  (exit $ac_status); }; }; then
17194
  ac_cv_sizeof_long=`cat conftest.val`
17195
else
17196 82 jeremybenn
  $as_echo "$as_me: program exited with status $ac_status" >&5
17197
$as_echo "$as_me: failed program was:" >&5
17198 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17199
 
17200
( exit $ac_status )
17201
if test "$ac_cv_type_long" = yes; then
17202 82 jeremybenn
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17203
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17204
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
17205 19 jeremybenn
See \`config.log' for more details." >&5
17206 82 jeremybenn
$as_echo "$as_me: error: cannot compute sizeof (long)
17207 19 jeremybenn
See \`config.log' for more details." >&2;}
17208 82 jeremybenn
   { (exit 77); exit 77; }; }; }
17209 19 jeremybenn
   else
17210
     ac_cv_sizeof_long=0
17211
   fi
17212
fi
17213 82 jeremybenn
rm -rf conftest.dSYM
17214 19 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17215
fi
17216
rm -f conftest.val
17217
fi
17218 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17219
$as_echo "$ac_cv_sizeof_long" >&6; }
17220 19 jeremybenn
 
17221
 
17222
 
17223
cat >>confdefs.h <<_ACEOF
17224
#define SIZEOF_LONG $ac_cv_sizeof_long
17225
_ACEOF
17226
 
17227
 
17228
 
17229
#Check for compare function type for qsort (needed by some Linuxes)
17230 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for __compar_fn_t" >&5
17231
$as_echo_n "checking for __compar_fn_t... " >&6; }
17232 19 jeremybenn
if test "${ac_cv_type___compar_fn_t+set}" = set; then
17233 82 jeremybenn
  $as_echo_n "(cached) " >&6
17234 19 jeremybenn
else
17235 82 jeremybenn
  ac_cv_type___compar_fn_t=no
17236
cat >conftest.$ac_ext <<_ACEOF
17237
/* confdefs.h.  */
17238
_ACEOF
17239
cat confdefs.h >>conftest.$ac_ext
17240
cat >>conftest.$ac_ext <<_ACEOF
17241
/* end confdefs.h.  */
17242
$ac_includes_default
17243
int
17244
main ()
17245
{
17246
if (sizeof (__compar_fn_t))
17247
       return 0;
17248
  ;
17249
  return 0;
17250
}
17251
_ACEOF
17252
rm -f conftest.$ac_objext
17253
if { (ac_try="$ac_compile"
17254
case "(($ac_try" in
17255
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256
  *) ac_try_echo=$ac_try;;
17257
esac
17258
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17259
$as_echo "$ac_try_echo") >&5
17260
  (eval "$ac_compile") 2>conftest.er1
17261
  ac_status=$?
17262
  grep -v '^ *+' conftest.er1 >conftest.err
17263
  rm -f conftest.er1
17264
  cat conftest.err >&5
17265
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266
  (exit $ac_status); } && {
17267
         test -z "$ac_c_werror_flag" ||
17268
         test ! -s conftest.err
17269
       } && test -s conftest.$ac_objext; then
17270 19 jeremybenn
  cat >conftest.$ac_ext <<_ACEOF
17271
/* confdefs.h.  */
17272
_ACEOF
17273
cat confdefs.h >>conftest.$ac_ext
17274
cat >>conftest.$ac_ext <<_ACEOF
17275
/* end confdefs.h.  */
17276
$ac_includes_default
17277
int
17278
main ()
17279
{
17280 82 jeremybenn
if (sizeof ((__compar_fn_t)))
17281
          return 0;
17282 19 jeremybenn
  ;
17283
  return 0;
17284
}
17285
_ACEOF
17286
rm -f conftest.$ac_objext
17287
if { (ac_try="$ac_compile"
17288
case "(($ac_try" in
17289
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290
  *) ac_try_echo=$ac_try;;
17291
esac
17292 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17293
$as_echo "$ac_try_echo") >&5
17294 19 jeremybenn
  (eval "$ac_compile") 2>conftest.er1
17295
  ac_status=$?
17296
  grep -v '^ *+' conftest.er1 >conftest.err
17297
  rm -f conftest.er1
17298
  cat conftest.err >&5
17299 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 19 jeremybenn
  (exit $ac_status); } && {
17301
         test -z "$ac_c_werror_flag" ||
17302
         test ! -s conftest.err
17303
       } && test -s conftest.$ac_objext; then
17304 82 jeremybenn
  :
17305 19 jeremybenn
else
17306 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17307 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17308
 
17309 82 jeremybenn
        ac_cv_type___compar_fn_t=yes
17310 19 jeremybenn
fi
17311
 
17312
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17313 82 jeremybenn
else
17314
  $as_echo "$as_me: failed program was:" >&5
17315
sed 's/^/| /' conftest.$ac_ext >&5
17316
 
17317
 
17318 19 jeremybenn
fi
17319
 
17320 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17321
fi
17322
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type___compar_fn_t" >&5
17323
$as_echo "$ac_cv_type___compar_fn_t" >&6; }
17324
if test "x$ac_cv_type___compar_fn_t" = x""yes; then
17325
 
17326 19 jeremybenn
cat >>confdefs.h <<_ACEOF
17327
#define HAVE___COMPAR_FN_T 1
17328
_ACEOF
17329
 
17330
 
17331
fi
17332
 
17333
 
17334
# check for GNU readline
17335
 
17336 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking for add_history in -lreadline" >&5
17337
$as_echo_n "checking for add_history in -lreadline... " >&6; }
17338 19 jeremybenn
if test "${ac_cv_lib_readline_add_history+set}" = set; then
17339 82 jeremybenn
  $as_echo_n "(cached) " >&6
17340 19 jeremybenn
else
17341
  ac_check_lib_save_LIBS=$LIBS
17342
LIBS="-lreadline  $LIBS"
17343
cat >conftest.$ac_ext <<_ACEOF
17344
/* confdefs.h.  */
17345
_ACEOF
17346
cat confdefs.h >>conftest.$ac_ext
17347
cat >>conftest.$ac_ext <<_ACEOF
17348
/* end confdefs.h.  */
17349
 
17350
/* Override any GCC internal prototype to avoid an error.
17351
   Use char because int might match the return type of a GCC
17352
   builtin and then its argument prototype would still apply.  */
17353
#ifdef __cplusplus
17354
extern "C"
17355
#endif
17356
char add_history ();
17357
int
17358
main ()
17359
{
17360
return add_history ();
17361
  ;
17362
  return 0;
17363
}
17364
_ACEOF
17365
rm -f conftest.$ac_objext conftest$ac_exeext
17366
if { (ac_try="$ac_link"
17367
case "(($ac_try" in
17368
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369
  *) ac_try_echo=$ac_try;;
17370
esac
17371 82 jeremybenn
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17372
$as_echo "$ac_try_echo") >&5
17373 19 jeremybenn
  (eval "$ac_link") 2>conftest.er1
17374
  ac_status=$?
17375
  grep -v '^ *+' conftest.er1 >conftest.err
17376
  rm -f conftest.er1
17377
  cat conftest.err >&5
17378 82 jeremybenn
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 19 jeremybenn
  (exit $ac_status); } && {
17380
         test -z "$ac_c_werror_flag" ||
17381
         test ! -s conftest.err
17382 82 jeremybenn
       } && test -s conftest$ac_exeext && {
17383
         test "$cross_compiling" = yes ||
17384
         $as_test_x conftest$ac_exeext
17385
       }; then
17386 19 jeremybenn
  ac_cv_lib_readline_add_history=yes
17387
else
17388 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
17389 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
17390
 
17391
        ac_cv_lib_readline_add_history=no
17392
fi
17393
 
17394 82 jeremybenn
rm -rf conftest.dSYM
17395 19 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17396
      conftest$ac_exeext conftest.$ac_ext
17397
LIBS=$ac_check_lib_save_LIBS
17398
fi
17399 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_add_history" >&5
17400
$as_echo "$ac_cv_lib_readline_add_history" >&6; }
17401
if test "x$ac_cv_lib_readline_add_history" = x""yes; then
17402 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
17403
#define HAVE_LIBREADLINE 1
17404
_ACEOF
17405
 
17406
  LIBS="-lreadline $LIBS"
17407
 
17408
fi
17409
 
17410
 
17411
# yuck
17412
case "$host_os" in
17413
aix*)   prefer_curses=yes ;;
17414
esac
17415
 
17416
case "$host_cpu" in
17417
*cray*) LOCAL_CFLAGS=-DCRAY ;;
17418
esac
17419
 
17420
case "$host_os" in
17421
isc*)   LOCAL_CFLAGS=-Disc386 ;;
17422
esac
17423
 
17424
case "$host_os" in
17425
solaris*) LIBS="-lsocket -lnsl" ;;
17426
esac
17427
 
17428
# define options
17429
 
17430 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to enable profiling" >&5
17431
$as_echo_n "checking whether to enable profiling... " >&6; }
17432 19 jeremybenn
# Check whether --enable-profiling was given.
17433
if test "${enable_profiling+set}" = set; then
17434
  enableval=$enable_profiling;
17435
    case "$enableval" in
17436
        yes) profile="-pg" ;;
17437
    esac
17438
 
17439
fi
17440
 
17441 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
17442
$as_echo "${enable_profiling-no}" >&6; }
17443 19 jeremybenn
 
17444
execution="1"
17445
 
17446
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
17447 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking which execution style to use" >&5
17448
$as_echo_n "checking which execution style to use... " >&6; }
17449 19 jeremybenn
# Check whether --enable-execution was given.
17450
if test "${enable_execution+set}" = set; then
17451
  enableval=$enable_execution;
17452
    case "$enableval" in
17453
    simple)
17454
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
17455
      execution="0"
17456 82 jeremybenn
      { $as_echo "$as_me:$LINENO: result: simple" >&5
17457
$as_echo "simple" >&6; }
17458 19 jeremybenn
      ;;
17459
    complex)
17460
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
17461
      execution="1"
17462 82 jeremybenn
      { $as_echo "$as_me:$LINENO: result: complex" >&5
17463
$as_echo "complex" >&6; }
17464 19 jeremybenn
      ;;
17465
    dynamic)
17466
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
17467
      execution="2"
17468 82 jeremybenn
      { $as_echo "$as_me:$LINENO: result: dynamic" >&5
17469
$as_echo "dynamic" >&6; }
17470 19 jeremybenn
      ;;
17471
    *)
17472 82 jeremybenn
      { { $as_echo "$as_me:$LINENO: error: \"excecution must one of simple/complex/dynamic\"" >&5
17473
$as_echo "$as_me: error: \"excecution must one of simple/complex/dynamic\"" >&2;}
17474 19 jeremybenn
   { (exit 1); exit 1; }; }
17475
      ;;
17476
    esac
17477
 
17478
else
17479
 
17480 82 jeremybenn
      { $as_echo "$as_me:$LINENO: result: complex" >&5
17481
$as_echo "complex" >&6; }
17482 19 jeremybenn
 
17483
fi
17484
 
17485
 
17486
eth_phy="0"
17487 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to enable ethernet phy emulation" >&5
17488
$as_echo_n "checking whether to enable ethernet phy emulation... " >&6; }
17489 19 jeremybenn
# Check whether --enable-ethphy was given.
17490
if test "${enable_ethphy+set}" = set; then
17491
  enableval=$enable_ethphy;
17492
    case "$enableval" in
17493
  no)  eth_phy="0" ;;
17494
        yes) eth_phy="1" ;;
17495
    esac
17496
 
17497
fi
17498
 
17499 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_eth_phy-no}" >&5
17500
$as_echo "${enable_eth_phy-no}" >&6; }
17501 19 jeremybenn
 
17502
 
17503
raw_range_stats="0"
17504 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether to use raw range stats" >&5
17505
$as_echo_n "checking whether to use raw range stats... " >&6; }
17506 19 jeremybenn
# Check whether --enable-range_stats was given.
17507
if test "${enable_range_stats+set}" = set; then
17508
  enableval=$enable_range_stats;
17509
    case "$enableval" in
17510
  no)  raw_range_stats="0" ;;
17511
        yes) raw_range_stats="1" simple_execution="1" ;;
17512
    esac
17513
 
17514
fi
17515
 
17516 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_range_stats-no}" >&5
17517
$as_echo "${enable_range_stats-no}" >&6; }
17518 19 jeremybenn
 
17519
set_ov_flag="0"
17520 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether instructions set overflow flag" >&5
17521
$as_echo_n "checking whether instructions set overflow flag... " >&6; }
17522 19 jeremybenn
# Check whether --enable-ov_flag was given.
17523
if test "${enable_ov_flag+set}" = set; then
17524
  enableval=$enable_ov_flag;
17525
    case "$enableval" in
17526
    no)  set_ov_flag="0" ;;
17527
    yes) set_ov_flag="1" ;;
17528
    esac
17529
 
17530
fi
17531
 
17532 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_ov_flag-no}" >&5
17533
$as_echo "${enable_ov_flag-no}" >&6; }
17534 19 jeremybenn
 
17535
set_arith_flag="0"
17536 82 jeremybenn
{ $as_echo "$as_me:$LINENO: checking whether arithmethic instructions set flag" >&5
17537
$as_echo_n "checking whether arithmethic instructions set flag... " >&6; }
17538 19 jeremybenn
# Check whether --enable-arith_flag was given.
17539
if test "${enable_arith_flag+set}" = set; then
17540
  enableval=$enable_arith_flag;
17541
    case "$enableval" in
17542
  no)  set_arith_flag="0" ;;
17543
        yes) set_arith_flag="1" ;;
17544
    esac
17545
 
17546
fi
17547
 
17548 82 jeremybenn
{ $as_echo "$as_me:$LINENO: result: ${enable_arith_flag-no}" >&5
17549
$as_echo "${enable_arith_flag-no}" >&6; }
17550 19 jeremybenn
 
17551
# check for --enable-debug argument (for argtable2)
17552
# Check whether --enable-debug was given.
17553
if test "${enable_debug+set}" = set; then
17554
  enableval=$enable_debug;
17555
       case $enableval in
17556
          yes) echo "enabling argtable2 debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
17557
          no)  echo "disabling argtable2 debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
17558
          *)   echo "illegal argument to --enable-debug" & exit 1;;
17559
       esac
17560
 
17561
else
17562
  DEBUGFLAGS="-DNDEBUG"
17563
 
17564
fi
17565
 
17566
 
17567
 
17568
 
17569
cat >>confdefs.h <<_ACEOF
17570
#define RAW_RANGE_STATS $raw_range_stats
17571
_ACEOF
17572
 
17573
 
17574
cat >>confdefs.h <<_ACEOF
17575
#define SET_OV_FLAG $set_ov_flag
17576
_ACEOF
17577
 
17578
 
17579
cat >>confdefs.h <<_ACEOF
17580
#define ARITH_SET_FLAG $set_arith_flag
17581
_ACEOF
17582
 
17583
 
17584
cat >>confdefs.h <<_ACEOF
17585
#define HAVE_ETH_PHY $eth_phy
17586
_ACEOF
17587
 
17588
 
17589
cat >>confdefs.h <<_ACEOF
17590
#define SIMPLE_EXECUTION $execution == 0
17591
_ACEOF
17592
 
17593
 
17594
cat >>confdefs.h <<_ACEOF
17595
#define COMPLEX_EXECUTION $execution == 1
17596
_ACEOF
17597
 
17598
 
17599
cat >>confdefs.h <<_ACEOF
17600
#define DYNAMIC_EXECUTION $execution == 2
17601
_ACEOF
17602
 
17603
 if test x$execution = x1; then
17604
  GENERATE_NEEDED_TRUE=
17605
  GENERATE_NEEDED_FALSE='#'
17606
else
17607
  GENERATE_NEEDED_TRUE='#'
17608
  GENERATE_NEEDED_FALSE=
17609
fi
17610
 
17611
 if test x$execution = x2; then
17612
  DYNAMIC_EXECUTION_TRUE=
17613
  DYNAMIC_EXECUTION_FALSE='#'
17614
else
17615
  DYNAMIC_EXECUTION_TRUE='#'
17616
  DYNAMIC_EXECUTION_FALSE=
17617
fi
17618
 
17619
 
17620
 
17621
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
17622
# CFLAGS="$CFLAGS -O4"
17623
 
17624
BUILD_DIR=`pwd`
17625
 
17626
 
17627
 
17628
 
17629
 
17630
 
17631
 
17632
 
17633
 
17634
 
17635
 
17636
 
17637
 
17638
 
17639
 
17640
 
17641
 
17642
 
17643
cat >>confdefs.h <<\_ACEOF
17644
#define HAVE_EXECUTION 1
17645
_ACEOF
17646
 
17647
 
17648
# yuck
17649
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
17650
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
17651
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
17652
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
17653
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
17654
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2"
17655
 
17656
 
17657
ac_config_files="$ac_config_files Makefile argtable2/Makefile bpb/Makefile cache/Makefile cpu/Makefile cpu/common/Makefile cpu/or1k/Makefile cuc/Makefile debug/Makefile doc/Makefile support/Makefile mmu/Makefile peripheral/Makefile tick/Makefile peripheral/channels/Makefile pm/Makefile pic/Makefile vapi/Makefile port/Makefile"
17658
 
17659
 
17660
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
17661
case "$CPU_ARCH" in
17662
dlx)    ac_config_files="$ac_config_files cpu/dlx/Makefile"
17663
;;
17664
*)      ac_config_files="$ac_config_files cpu/or32/Makefile"
17665
;;
17666
esac
17667
 
17668 82 jeremybenn
# Generate the output
17669
 
17670
 
17671 19 jeremybenn
cat >confcache <<\_ACEOF
17672
# This file is a shell script that caches the results of configure
17673
# tests run on this system so they can be shared between configure
17674
# scripts and configure runs, see configure's option --config-cache.
17675
# It is not useful on other systems.  If it contains results you don't
17676
# want to keep, you may remove or edit it.
17677
#
17678
# config.status only pays attention to the cache file if you give it
17679
# the --recheck option to rerun configure.
17680
#
17681
# `ac_cv_env_foo' variables (set or unset) will be overridden when
17682
# loading this file, other *unset* `ac_cv_foo' will be assigned the
17683
# following values.
17684
 
17685
_ACEOF
17686
 
17687
# The following way of writing the cache mishandles newlines in values,
17688
# but we know of no workaround that is simple, portable, and efficient.
17689
# So, we kill variables containing newlines.
17690
# Ultrix sh set writes to stderr and can't be redirected directly,
17691
# and sets the high bit in the cache file unless we assign to the vars.
17692
(
17693
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17694
    eval ac_val=\$$ac_var
17695
    case $ac_val in #(
17696
    *${as_nl}*)
17697
      case $ac_var in #(
17698 82 jeremybenn
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17699
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17700 19 jeremybenn
      esac
17701
      case $ac_var in #(
17702
      _ | IFS | as_nl) ;; #(
17703 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17704 19 jeremybenn
      *) $as_unset $ac_var ;;
17705
      esac ;;
17706
    esac
17707
  done
17708
 
17709
  (set) 2>&1 |
17710
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17711
    *${as_nl}ac_space=\ *)
17712
      # `set' does not quote correctly, so add quotes (double-quote
17713
      # substitution turns \\\\ into \\, and sed turns \\ into \).
17714
      sed -n \
17715
        "s/'/'\\\\''/g;
17716
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17717
      ;; #(
17718
    *)
17719
      # `set' quotes correctly as required by POSIX, so do not add quotes.
17720
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17721
      ;;
17722
    esac |
17723
    sort
17724
) |
17725
  sed '
17726
     /^ac_cv_env_/b end
17727
     t clear
17728
     :clear
17729
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17730
     t end
17731
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17732
     :end' >>confcache
17733
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17734
  if test -w "$cache_file"; then
17735
    test "x$cache_file" != "x/dev/null" &&
17736 82 jeremybenn
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17737
$as_echo "$as_me: updating cache $cache_file" >&6;}
17738 19 jeremybenn
    cat confcache >$cache_file
17739
  else
17740 82 jeremybenn
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17741
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17742 19 jeremybenn
  fi
17743
fi
17744
rm -f confcache
17745
 
17746
test "x$prefix" = xNONE && prefix=$ac_default_prefix
17747
# Let make expand exec_prefix.
17748
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17749
 
17750
DEFS=-DHAVE_CONFIG_H
17751
 
17752
ac_libobjs=
17753
ac_ltlibobjs=
17754
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17755
  # 1. Remove the extension, and $U if already installed.
17756
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17757 82 jeremybenn
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17758 19 jeremybenn
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17759
  #    will be set to the directory where LIBOBJS objects are built.
17760
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17761
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17762
done
17763
LIBOBJS=$ac_libobjs
17764
 
17765
LTLIBOBJS=$ac_ltlibobjs
17766
 
17767
 
17768
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17769 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17770 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
17771 82 jeremybenn
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
17772 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
17773
   { (exit 1); exit 1; }; }
17774
fi
17775
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17776 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17777 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
17778 82 jeremybenn
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17779 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
17780
   { (exit 1); exit 1; }; }
17781
fi
17782 82 jeremybenn
 if test -n "$EXEEXT"; then
17783
  am__EXEEXT_TRUE=
17784
  am__EXEEXT_FALSE='#'
17785
else
17786
  am__EXEEXT_TRUE='#'
17787
  am__EXEEXT_FALSE=
17788
fi
17789
 
17790
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17791
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
17792 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
17793 82 jeremybenn
$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
17794 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
17795
   { (exit 1); exit 1; }; }
17796
fi
17797 82 jeremybenn
 
17798 19 jeremybenn
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
17799 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
17800 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
17801 82 jeremybenn
$as_echo "$as_me: error: conditional \"USE_SYS_GETOPTLONG\" was never defined.
17802 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
17803
   { (exit 1); exit 1; }; }
17804
fi
17805
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
17806 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ARGREX\" was never defined.
17807 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
17808 82 jeremybenn
$as_echo "$as_me: error: conditional \"USE_ARGREX\" was never defined.
17809 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
17810
   { (exit 1); exit 1; }; }
17811
fi
17812
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
17813 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ARGDATE\" was never defined.
17814 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
17815 82 jeremybenn
$as_echo "$as_me: error: conditional \"USE_ARGDATE\" was never defined.
17816 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
17817
   { (exit 1); exit 1; }; }
17818
fi
17819
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
17820 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"GENERATE_NEEDED\" was never defined.
17821 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
17822 82 jeremybenn
$as_echo "$as_me: error: conditional \"GENERATE_NEEDED\" was never defined.
17823 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
17824
   { (exit 1); exit 1; }; }
17825
fi
17826
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
17827 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
17828 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&5
17829 82 jeremybenn
$as_echo "$as_me: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
17830 19 jeremybenn
Usually this means the macro was only invoked conditionally." >&2;}
17831
   { (exit 1); exit 1; }; }
17832
fi
17833
 
17834
: ${CONFIG_STATUS=./config.status}
17835 82 jeremybenn
ac_write_fail=0
17836 19 jeremybenn
ac_clean_files_save=$ac_clean_files
17837
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17838 82 jeremybenn
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17839
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17840
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17841 19 jeremybenn
#! $SHELL
17842
# Generated by $as_me.
17843
# Run this file to recreate the current configuration.
17844
# Compiler output produced by configure, useful for debugging
17845
# configure, is in config.log if it exists.
17846
 
17847
debug=false
17848
ac_cs_recheck=false
17849
ac_cs_silent=false
17850
SHELL=\${CONFIG_SHELL-$SHELL}
17851
_ACEOF
17852
 
17853 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17854 19 jeremybenn
## --------------------- ##
17855
## M4sh Initialization.  ##
17856
## --------------------- ##
17857
 
17858
# Be more Bourne compatible
17859
DUALCASE=1; export DUALCASE # for MKS sh
17860
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17861
  emulate sh
17862
  NULLCMD=:
17863 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17864 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
17865
  alias -g '${1+"$@"}'='"$@"'
17866
  setopt NO_GLOB_SUBST
17867
else
17868
  case `(set -o) 2>/dev/null` in
17869
  *posix*) set -o posix ;;
17870
esac
17871
 
17872
fi
17873
 
17874
 
17875
 
17876
 
17877
# PATH needs CR
17878
# Avoid depending upon Character Ranges.
17879
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17880
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17881
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17882
as_cr_digits='0123456789'
17883
as_cr_alnum=$as_cr_Letters$as_cr_digits
17884
 
17885 82 jeremybenn
as_nl='
17886
'
17887
export as_nl
17888
# Printing a long string crashes Solaris 7 /usr/bin/printf.
17889
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17890
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17891
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17892
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17893
  as_echo='printf %s\n'
17894
  as_echo_n='printf %s'
17895
else
17896
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17897
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17898
    as_echo_n='/usr/ucb/echo -n'
17899 19 jeremybenn
  else
17900 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17901
    as_echo_n_body='eval
17902
      arg=$1;
17903
      case $arg in
17904
      *"$as_nl"*)
17905
        expr "X$arg" : "X\\(.*\\)$as_nl";
17906
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17907
      esac;
17908
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17909
    '
17910
    export as_echo_n_body
17911
    as_echo_n='sh -c $as_echo_n_body as_echo'
17912 19 jeremybenn
  fi
17913 82 jeremybenn
  export as_echo_body
17914
  as_echo='sh -c $as_echo_body as_echo'
17915 19 jeremybenn
fi
17916
 
17917 82 jeremybenn
# The user is always right.
17918
if test "${PATH_SEPARATOR+set}" != set; then
17919
  PATH_SEPARATOR=:
17920
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17921
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17922
      PATH_SEPARATOR=';'
17923
  }
17924
fi
17925
 
17926 19 jeremybenn
# Support unset when possible.
17927
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17928
  as_unset=unset
17929
else
17930
  as_unset=false
17931
fi
17932
 
17933
 
17934
# IFS
17935
# We need space, tab and new line, in precisely that order.  Quoting is
17936
# there to prevent editors from complaining about space-tab.
17937
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17938
# splitting by setting IFS to empty value.)
17939
IFS=" ""        $as_nl"
17940
 
17941
# Find who we are.  Look in the path if we contain no directory separator.
17942
case $0 in
17943
  *[\\/]* ) as_myself=$0 ;;
17944
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17945
for as_dir in $PATH
17946
do
17947
  IFS=$as_save_IFS
17948
  test -z "$as_dir" && as_dir=.
17949
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17950
done
17951
IFS=$as_save_IFS
17952
 
17953
     ;;
17954
esac
17955
# We did not find ourselves, most probably we were run as `sh COMMAND'
17956
# in which case we are not to be found in the path.
17957
if test "x$as_myself" = x; then
17958
  as_myself=$0
17959
fi
17960
if test ! -f "$as_myself"; then
17961 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17962 19 jeremybenn
  { (exit 1); exit 1; }
17963
fi
17964
 
17965
# Work around bugs in pre-3.0 UWIN ksh.
17966
for as_var in ENV MAIL MAILPATH
17967
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17968
done
17969
PS1='$ '
17970
PS2='> '
17971
PS4='+ '
17972
 
17973
# NLS nuisances.
17974 82 jeremybenn
LC_ALL=C
17975
export LC_ALL
17976
LANGUAGE=C
17977
export LANGUAGE
17978 19 jeremybenn
 
17979
# Required to use basename.
17980
if expr a : '\(a\)' >/dev/null 2>&1 &&
17981
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17982
  as_expr=expr
17983
else
17984
  as_expr=false
17985
fi
17986
 
17987
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17988
  as_basename=basename
17989
else
17990
  as_basename=false
17991
fi
17992
 
17993
 
17994
# Name of the executable.
17995
as_me=`$as_basename -- "$0" ||
17996
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17997
         X"$0" : 'X\(//\)$' \| \
17998
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17999 82 jeremybenn
$as_echo X/"$0" |
18000 19 jeremybenn
    sed '/^.*\/\([^/][^/]*\)\/*$/{
18001
            s//\1/
18002
            q
18003
          }
18004
          /^X\/\(\/\/\)$/{
18005
            s//\1/
18006
            q
18007
          }
18008
          /^X\/\(\/\).*/{
18009
            s//\1/
18010
            q
18011
          }
18012
          s/.*/./; q'`
18013
 
18014
# CDPATH.
18015
$as_unset CDPATH
18016
 
18017
 
18018
 
18019
  as_lineno_1=$LINENO
18020
  as_lineno_2=$LINENO
18021
  test "x$as_lineno_1" != "x$as_lineno_2" &&
18022
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18023
 
18024
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18025
  # uniformly replaced by the line number.  The first 'sed' inserts a
18026
  # line-number line after each line using $LINENO; the second 'sed'
18027
  # does the real work.  The second script uses 'N' to pair each
18028
  # line-number line with the line containing $LINENO, and appends
18029
  # trailing '-' during substitution so that $LINENO is not a special
18030
  # case at line end.
18031
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18032
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
18033
  # E. McMahon (1931-1989) for sed's syntax.  :-)
18034
  sed -n '
18035
    p
18036
    /[$]LINENO/=
18037
  ' <$as_myself |
18038
    sed '
18039
      s/[$]LINENO.*/&-/
18040
      t lineno
18041
      b
18042
      :lineno
18043
      N
18044
      :loop
18045
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18046
      t loop
18047
      s/-\n.*//
18048
    ' >$as_me.lineno &&
18049
  chmod +x "$as_me.lineno" ||
18050 82 jeremybenn
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18051 19 jeremybenn
   { (exit 1); exit 1; }; }
18052
 
18053
  # Don't try to exec as it changes $[0], causing all sort of problems
18054
  # (the dirname of $[0] is not the place where we might find the
18055
  # original and so on.  Autoconf is especially sensitive to this).
18056
  . "./$as_me.lineno"
18057
  # Exit status is that of the last command.
18058
  exit
18059
}
18060
 
18061
 
18062
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18063
  as_dirname=dirname
18064
else
18065
  as_dirname=false
18066
fi
18067
 
18068
ECHO_C= ECHO_N= ECHO_T=
18069
case `echo -n x` in
18070
-n*)
18071
  case `echo 'x\c'` in
18072
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18073
  *)   ECHO_C='\c';;
18074
  esac;;
18075
*)
18076
  ECHO_N='-n';;
18077
esac
18078
if expr a : '\(a\)' >/dev/null 2>&1 &&
18079
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18080
  as_expr=expr
18081
else
18082
  as_expr=false
18083
fi
18084
 
18085
rm -f conf$$ conf$$.exe conf$$.file
18086
if test -d conf$$.dir; then
18087
  rm -f conf$$.dir/conf$$.file
18088
else
18089
  rm -f conf$$.dir
18090 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
18091 19 jeremybenn
fi
18092 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
18093
  if ln -s conf$$.file conf$$ 2>/dev/null; then
18094
    as_ln_s='ln -s'
18095
    # ... but there are two gotchas:
18096
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18097
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18098
    # In both cases, we have to default to `cp -p'.
18099
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18100
      as_ln_s='cp -p'
18101
  elif ln conf$$.file conf$$ 2>/dev/null; then
18102
    as_ln_s=ln
18103
  else
18104 19 jeremybenn
    as_ln_s='cp -p'
18105 82 jeremybenn
  fi
18106 19 jeremybenn
else
18107
  as_ln_s='cp -p'
18108
fi
18109
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18110
rmdir conf$$.dir 2>/dev/null
18111
 
18112
if mkdir -p . 2>/dev/null; then
18113
  as_mkdir_p=:
18114
else
18115
  test -d ./-p && rmdir ./-p
18116
  as_mkdir_p=false
18117
fi
18118
 
18119
if test -x / >/dev/null 2>&1; then
18120
  as_test_x='test -x'
18121
else
18122
  if ls -dL / >/dev/null 2>&1; then
18123
    as_ls_L_option=L
18124
  else
18125
    as_ls_L_option=
18126
  fi
18127
  as_test_x='
18128
    eval sh -c '\''
18129
      if test -d "$1"; then
18130 82 jeremybenn
        test -d "$1/.";
18131 19 jeremybenn
      else
18132
        case $1 in
18133 82 jeremybenn
        -*)set "./$1";;
18134 19 jeremybenn
        esac;
18135
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18136
        ???[sx]*):;;*)false;;esac;fi
18137
    '\'' sh
18138
  '
18139
fi
18140
as_executable_p=$as_test_x
18141
 
18142
# Sed expression to map a string onto a valid CPP name.
18143
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18144
 
18145
# Sed expression to map a string onto a valid variable name.
18146
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18147
 
18148
 
18149
exec 6>&1
18150
 
18151
# Save the log message, to keep $[0] and so on meaningful, and to
18152
# report actual input values of CONFIG_FILES etc. instead of their
18153
# values after options handling.
18154
ac_log="
18155 89 jeremybenn
This file was extended by or1ksim $as_me 2010-04-21, which was
18156 82 jeremybenn
generated by GNU Autoconf 2.63.  Invocation command line was
18157 19 jeremybenn
 
18158
  CONFIG_FILES    = $CONFIG_FILES
18159
  CONFIG_HEADERS  = $CONFIG_HEADERS
18160
  CONFIG_LINKS    = $CONFIG_LINKS
18161
  CONFIG_COMMANDS = $CONFIG_COMMANDS
18162
  $ $0 $@
18163
 
18164
on `(hostname || uname -n) 2>/dev/null | sed 1q`
18165
"
18166
 
18167
_ACEOF
18168
 
18169 82 jeremybenn
case $ac_config_files in *"
18170
"*) set x $ac_config_files; shift; ac_config_files=$*;;
18171
esac
18172
 
18173
case $ac_config_headers in *"
18174
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18175
esac
18176
 
18177
 
18178
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18179 19 jeremybenn
# Files that config.status was made for.
18180
config_files="$ac_config_files"
18181
config_headers="$ac_config_headers"
18182
config_commands="$ac_config_commands"
18183
 
18184
_ACEOF
18185
 
18186 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18187 19 jeremybenn
ac_cs_usage="\
18188
\`$as_me' instantiates files from templates according to the
18189
current configuration.
18190
 
18191 82 jeremybenn
Usage: $0 [OPTION]... [FILE]...
18192 19 jeremybenn
 
18193
  -h, --help       print this help, then exit
18194
  -V, --version    print version number and configuration settings, then exit
18195 82 jeremybenn
  -q, --quiet, --silent
18196
                   do not print progress messages
18197 19 jeremybenn
  -d, --debug      don't remove temporary files
18198
      --recheck    update $as_me by reconfiguring in the same conditions
18199 82 jeremybenn
      --file=FILE[:TEMPLATE]
18200
                   instantiate the configuration file FILE
18201
      --header=FILE[:TEMPLATE]
18202
                   instantiate the configuration header FILE
18203 19 jeremybenn
 
18204
Configuration files:
18205
$config_files
18206
 
18207
Configuration headers:
18208
$config_headers
18209
 
18210
Configuration commands:
18211
$config_commands
18212
 
18213
Report bugs to ."
18214
 
18215
_ACEOF
18216 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18217 19 jeremybenn
ac_cs_version="\\
18218 89 jeremybenn
or1ksim config.status 2010-04-21
18219 82 jeremybenn
configured by $0, generated by GNU Autoconf 2.63,
18220
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18221 19 jeremybenn
 
18222 82 jeremybenn
Copyright (C) 2008 Free Software Foundation, Inc.
18223 19 jeremybenn
This config.status script is free software; the Free Software Foundation
18224
gives unlimited permission to copy, distribute and modify it."
18225
 
18226
ac_pwd='$ac_pwd'
18227
srcdir='$srcdir'
18228
INSTALL='$INSTALL'
18229
MKDIR_P='$MKDIR_P'
18230 82 jeremybenn
AWK='$AWK'
18231
test -n "\$AWK" || AWK=awk
18232 19 jeremybenn
_ACEOF
18233
 
18234 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18235
# The default lists apply if the user does not specify any file.
18236 19 jeremybenn
ac_need_defaults=:
18237
while test $# != 0
18238
do
18239
  case $1 in
18240
  --*=*)
18241
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18242
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18243
    ac_shift=:
18244
    ;;
18245
  *)
18246
    ac_option=$1
18247
    ac_optarg=$2
18248
    ac_shift=shift
18249
    ;;
18250
  esac
18251
 
18252
  case $ac_option in
18253
  # Handling of the options.
18254
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18255
    ac_cs_recheck=: ;;
18256
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18257 82 jeremybenn
    $as_echo "$ac_cs_version"; exit ;;
18258 19 jeremybenn
  --debug | --debu | --deb | --de | --d | -d )
18259
    debug=: ;;
18260
  --file | --fil | --fi | --f )
18261
    $ac_shift
18262 82 jeremybenn
    case $ac_optarg in
18263
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18264
    esac
18265
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18266 19 jeremybenn
    ac_need_defaults=false;;
18267
  --header | --heade | --head | --hea )
18268
    $ac_shift
18269 82 jeremybenn
    case $ac_optarg in
18270
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18271
    esac
18272
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18273 19 jeremybenn
    ac_need_defaults=false;;
18274
  --he | --h)
18275
    # Conflict between --help and --header
18276 82 jeremybenn
    { $as_echo "$as_me: error: ambiguous option: $1
18277 19 jeremybenn
Try \`$0 --help' for more information." >&2
18278
   { (exit 1); exit 1; }; };;
18279
  --help | --hel | -h )
18280 82 jeremybenn
    $as_echo "$ac_cs_usage"; exit ;;
18281 19 jeremybenn
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18282
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18283
    ac_cs_silent=: ;;
18284
 
18285
  # This is an error.
18286 82 jeremybenn
  -*) { $as_echo "$as_me: error: unrecognized option: $1
18287 19 jeremybenn
Try \`$0 --help' for more information." >&2
18288
   { (exit 1); exit 1; }; } ;;
18289
 
18290
  *) ac_config_targets="$ac_config_targets $1"
18291
     ac_need_defaults=false ;;
18292
 
18293
  esac
18294
  shift
18295
done
18296
 
18297
ac_configure_extra_args=
18298
 
18299
if $ac_cs_silent; then
18300
  exec 6>/dev/null
18301
  ac_configure_extra_args="$ac_configure_extra_args --silent"
18302
fi
18303
 
18304
_ACEOF
18305 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18306 19 jeremybenn
if \$ac_cs_recheck; then
18307 82 jeremybenn
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18308
  shift
18309
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18310
  CONFIG_SHELL='$SHELL'
18311 19 jeremybenn
  export CONFIG_SHELL
18312 82 jeremybenn
  exec "\$@"
18313 19 jeremybenn
fi
18314
 
18315
_ACEOF
18316 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18317 19 jeremybenn
exec 5>>config.log
18318
{
18319
  echo
18320
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18321
## Running $as_me. ##
18322
_ASBOX
18323 82 jeremybenn
  $as_echo "$ac_log"
18324 19 jeremybenn
} >&5
18325
 
18326
_ACEOF
18327 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18328 19 jeremybenn
#
18329
# INIT-COMMANDS
18330
#
18331 82 jeremybenn
 
18332
 
18333
# The HP-UX ksh and POSIX shell print the target directory to stdout
18334
# if CDPATH is set.
18335
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18336
 
18337
sed_quote_subst='$sed_quote_subst'
18338
double_quote_subst='$double_quote_subst'
18339
delay_variable_subst='$delay_variable_subst'
18340
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18341
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18342
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18343
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18344
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18345
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18346
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18347
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18348
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18349
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18350
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18351
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18352
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18353
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18354
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18355
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18356
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18357
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18358
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18359
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18360
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18361
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18362
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18363
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18364
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18365
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18366
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18367
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18368
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18369
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18370
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18371
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18372
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18373
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18374
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18375
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18376
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18377
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18378
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18379
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18380
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18381
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18382
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18383
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18384
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"`'
18385
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"`'
18386
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18387
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18388
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18389
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18390
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18391
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18392
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18393
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18394
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18395
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18396
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18397
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18398
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18399
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18400
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18401
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18402
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18403
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18404
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18405
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18406
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18407
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18408
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18409
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18410
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18411
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18412
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18413
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18414
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18415
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18416
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18417
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18418
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18419
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18420
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18421
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18422
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18423
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18424
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18425
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18426
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18427
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18428
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18429
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18430
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18431
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18432
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18433
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18434
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18435
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18436
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18437
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18438
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18439
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18440
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18441
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18442
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18443
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18444
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18445
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18446
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18447
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18448
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18449
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18450
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18451
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18452
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18453
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18454
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18455
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18456
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18457
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18458
 
18459
LTCC='$LTCC'
18460
LTCFLAGS='$LTCFLAGS'
18461
compiler='$compiler_DEFAULT'
18462
 
18463
# Quote evaled strings.
18464
for var in SED \
18465
GREP \
18466
EGREP \
18467
FGREP \
18468
LD \
18469
NM \
18470
LN_S \
18471
lt_SP2NL \
18472
lt_NL2SP \
18473
reload_flag \
18474
OBJDUMP \
18475
deplibs_check_method \
18476
file_magic_cmd \
18477
AR \
18478
AR_FLAGS \
18479
STRIP \
18480
RANLIB \
18481
CC \
18482
CFLAGS \
18483
compiler \
18484
lt_cv_sys_global_symbol_pipe \
18485
lt_cv_sys_global_symbol_to_cdecl \
18486
lt_cv_sys_global_symbol_to_c_name_address \
18487
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18488
SHELL \
18489
ECHO \
18490
lt_prog_compiler_no_builtin_flag \
18491
lt_prog_compiler_wl \
18492
lt_prog_compiler_pic \
18493
lt_prog_compiler_static \
18494
lt_cv_prog_compiler_c_o \
18495
need_locks \
18496
DSYMUTIL \
18497
NMEDIT \
18498
LIPO \
18499
OTOOL \
18500
OTOOL64 \
18501
shrext_cmds \
18502
export_dynamic_flag_spec \
18503
whole_archive_flag_spec \
18504
compiler_needs_object \
18505
with_gnu_ld \
18506
allow_undefined_flag \
18507
no_undefined_flag \
18508
hardcode_libdir_flag_spec \
18509
hardcode_libdir_flag_spec_ld \
18510
hardcode_libdir_separator \
18511
fix_srcfile_path \
18512
exclude_expsyms \
18513
include_expsyms \
18514
file_list_spec \
18515
variables_saved_for_relink \
18516
libname_spec \
18517
library_names_spec \
18518
soname_spec \
18519
finish_eval \
18520
old_striplib \
18521
striplib; do
18522
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18523
    *[\\\\\\\`\\"\\\$]*)
18524
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18525
      ;;
18526
    *)
18527
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18528
      ;;
18529
    esac
18530
done
18531
 
18532
# Double-quote double-evaled strings.
18533
for var in reload_cmds \
18534
old_postinstall_cmds \
18535
old_postuninstall_cmds \
18536
old_archive_cmds \
18537
extract_expsyms_cmds \
18538
old_archive_from_new_cmds \
18539
old_archive_from_expsyms_cmds \
18540
archive_cmds \
18541
archive_expsym_cmds \
18542
module_cmds \
18543
module_expsym_cmds \
18544
export_symbols_cmds \
18545
prelink_cmds \
18546
postinstall_cmds \
18547
postuninstall_cmds \
18548
finish_cmds \
18549
sys_lib_search_path_spec \
18550
sys_lib_dlsearch_path_spec; do
18551
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18552
    *[\\\\\\\`\\"\\\$]*)
18553
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18554
      ;;
18555
    *)
18556
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18557
      ;;
18558
    esac
18559
done
18560
 
18561
# Fix-up fallback echo if it was mangled by the above quoting rules.
18562
case \$lt_ECHO in
18563
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18564
  ;;
18565
esac
18566
 
18567
ac_aux_dir='$ac_aux_dir'
18568
xsi_shell='$xsi_shell'
18569
lt_shell_append='$lt_shell_append'
18570
 
18571
# See if we are running on zsh, and set the options which allow our
18572
# commands through without removal of \ escapes INIT.
18573
if test -n "\${ZSH_VERSION+set}" ; then
18574
   setopt NO_GLOB_SUBST
18575
fi
18576
 
18577
 
18578
    PACKAGE='$PACKAGE'
18579
    VERSION='$VERSION'
18580
    TIMESTAMP='$TIMESTAMP'
18581
    RM='$RM'
18582
    ofile='$ofile'
18583
 
18584
 
18585
 
18586 19 jeremybenn
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18587
 
18588
_ACEOF
18589
 
18590 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18591 19 jeremybenn
 
18592
# Handling of arguments.
18593
for ac_config_target in $ac_config_targets
18594
do
18595
  case $ac_config_target in
18596 82 jeremybenn
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18597 19 jeremybenn
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18598
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18599
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18600
    "argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
18601
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
18602
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
18603
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
18604
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
18605
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
18606
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
18607
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
18608
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18609
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
18610
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
18611
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
18612
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
18613
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
18614
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
18615
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
18616
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
18617
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
18618
    "cpu/dlx/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
18619
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
18620
 
18621 82 jeremybenn
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18622
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18623 19 jeremybenn
   { (exit 1); exit 1; }; };;
18624
  esac
18625
done
18626
 
18627
 
18628
# If the user did not use the arguments to specify the items to instantiate,
18629
# then the envvar interface is used.  Set only those that are not.
18630
# We use the long form for the default assignment because of an extremely
18631
# bizarre bug on SunOS 4.1.3.
18632
if $ac_need_defaults; then
18633
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18634
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18635
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18636
fi
18637
 
18638
# Have a temporary directory for convenience.  Make it in the build tree
18639
# simply because there is no reason against having it here, and in addition,
18640
# creating and moving files from /tmp can sometimes cause problems.
18641
# Hook for its removal unless debugging.
18642
# Note that there is a small window in which the directory will not be cleaned:
18643
# after its creation but before its name has been assigned to `$tmp'.
18644
$debug ||
18645
{
18646
  tmp=
18647
  trap 'exit_status=$?
18648
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18649
' 0
18650
  trap '{ (exit 1); exit 1; }' 1 2 13 15
18651
}
18652
# Create a (secure) tmp directory for tmp files.
18653
 
18654
{
18655
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18656
  test -n "$tmp" && test -d "$tmp"
18657
}  ||
18658
{
18659
  tmp=./conf$$-$RANDOM
18660
  (umask 077 && mkdir "$tmp")
18661
} ||
18662
{
18663 82 jeremybenn
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
18664 19 jeremybenn
   { (exit 1); exit 1; }
18665
}
18666
 
18667 82 jeremybenn
# Set up the scripts for CONFIG_FILES section.
18668
# No need to generate them if there are no CONFIG_FILES.
18669
# This happens for instance with `./config.status config.h'.
18670 19 jeremybenn
if test -n "$CONFIG_FILES"; then
18671
 
18672 82 jeremybenn
 
18673
ac_cr='
'
18674
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
18675
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18676
  ac_cs_awk_cr='\\r'
18677
else
18678
  ac_cs_awk_cr=$ac_cr
18679
fi
18680
18681
 
18682
_ACEOF
18683 19 jeremybenn
18684
 
18685
 
18686 82 jeremybenn
  echo "cat >conf$$subs.awk <<_ACEOF" &&
18687
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18688
  echo "_ACEOF"
18689
} >conf$$subs.sh ||
18690
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18691
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18692
   { (exit 1); exit 1; }; }
18693
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18694
ac_delim='%!_!# '
18695 19 jeremybenn
for ac_last_try in false false false false false :; do
18696
  . ./conf$$subs.sh ||
18697 82 jeremybenn
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18698
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18699
   { (exit 1); exit 1; }; }
18700
18701 19 jeremybenn
 
18702 82 jeremybenn
  if test $ac_delim_n = $ac_delim_num; then
18703
    break
18704 19 jeremybenn
  elif $ac_last_try; then
18705
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18706 82 jeremybenn
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18707
   { (exit 1); exit 1; }; }
18708 19 jeremybenn
  else
18709
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18710
  fi
18711
done
18712
rm -f conf$$subs.sh
18713 82 jeremybenn
18714 19 jeremybenn
 
18715 82 jeremybenn
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18716
_ACEOF
18717 19 jeremybenn
sed -n '
18718 82 jeremybenn
h
18719
s/^/S["/; s/!.*/"]=/
18720
p
18721
g
18722
s/^[^!]*!//
18723
:repl
18724
t repl
18725
s/'"$ac_delim"'$//
18726
t delim
18727
:nl
18728
h
18729
s/\(.\{148\}\).*/\1/
18730
t more1
18731
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18732
p
18733
n
18734
b repl
18735
:more1
18736
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18737
p
18738
g
18739
s/.\{148\}//
18740
t nl
18741
:delim
18742
h
18743
s/\(.\{148\}\).*/\1/
18744
t more2
18745
s/["\\]/\\&/g; s/^/"/; s/$/"/
18746
p
18747
b
18748
:more2
18749
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18750
p
18751
g
18752
s/.\{148\}//
18753
t delim
18754
' 
18755
/^[^""]/{
18756
  N
18757
  s/\n//
18758
}
18759
' >>$CONFIG_STATUS || ac_write_fail=1
18760
rm -f conf$$subs.awk
18761
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18762
_ACAWK
18763
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18764
  for (key in S) S_is_set[key] = 1
18765
  FS = ""
18766
18767 19 jeremybenn
 
18768 82 jeremybenn
{
18769
  line = $ 0
18770
  nfields = split(line, field, "@")
18771
  substed = 0
18772
  len = length(field[1])
18773
  for (i = 2; i < nfields; i++) {
18774
    key = field[i]
18775
    keylen = length(key)
18776
    if (S_is_set[key]) {
18777
      value = S[key]
18778
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18779
      len += length(value) + length(field[++i])
18780
      substed = 1
18781
    } else
18782
      len += 1 + keylen
18783
  }
18784
18785 19 jeremybenn
 
18786 82 jeremybenn
}
18787
18788
 
18789
_ACEOF
18790 19 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18791 82 jeremybenn
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18792
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18793
else
18794
  cat
18795
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18796
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18797
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
18798
   { (exit 1); exit 1; }; }
18799 19 jeremybenn
_ACEOF
18800
18801
 
18802
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18803
# trailing colons and then remove the whole line if VPATH becomes empty
18804
# (actually we leave an empty line to preserve line numbers).
18805
if test "x$srcdir" = x.; then
18806
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
18807
s/:*\$(srcdir):*/:/
18808
s/:*\${srcdir}:*/:/
18809
s/:*@srcdir@:*/:/
18810
s/^\([^=]*=[     ]*\):*/\1/
18811
s/:*$//
18812
s/^[^=]*=[       ]*$//
18813
}'
18814
fi
18815
18816
 
18817 82 jeremybenn
fi # test -n "$CONFIG_FILES"
18818 19 jeremybenn
18819
 
18820 82 jeremybenn
# No need to generate them if there are no CONFIG_HEADERS.
18821
# This happens for instance with `./config.status Makefile'.
18822
if test -n "$CONFIG_HEADERS"; then
18823
cat >"$tmp/defines.awk" <<\_ACAWK ||
18824
BEGIN {
18825
_ACEOF
18826
18827 19 jeremybenn
 
18828 82 jeremybenn
# here-document in config.status, that substitutes the proper values into
18829
# config.h.in to produce config.h.
18830
18831
 
18832
# handling of long lines.
18833
ac_delim='%!_!# '
18834
for ac_last_try in false false :; do
18835
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18836
  if test -z "$ac_t"; then
18837
    break
18838
  elif $ac_last_try; then
18839
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18840
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18841
   { (exit 1); exit 1; }; }
18842
  else
18843
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18844
  fi
18845
done
18846
18847
 
18848
# likewise P contains macro parameters if any.  Preserve backslash
18849
# newline sequences.
18850
18851
 
18852
sed -n '
18853
s/.\{148\}/&'"$ac_delim"'/g
18854
t rset
18855
:rset
18856
s/^[     ]*#[    ]*define[       ][      ]*/ /
18857
t def
18858
d
18859
:def
18860
s/\\$//
18861
t bsnl
18862
s/["\\]/\\&/g
18863
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18864
D["\1"]=" \3"/p
18865
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18866
d
18867
:bsnl
18868
s/["\\]/\\&/g
18869
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18870
D["\1"]=" \3\\\\\\n"\\/p
18871
t cont
18872
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18873
t cont
18874
d
18875
:cont
18876
n
18877
s/.\{148\}/&'"$ac_delim"'/g
18878
t clear
18879
:clear
18880
s/\\$//
18881
t bsnlc
18882
s/["\\]/\\&/g; s/^/"/; s/$/"/p
18883
d
18884
:bsnlc
18885
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18886
b cont
18887
' 
18888
s/'"$ac_delim"'/"\\\
18889
"/g' >>$CONFIG_STATUS || ac_write_fail=1
18890
18891
 
18892
  for (key in D) D_is_set[key] = 1
18893
  FS = ""
18894
}
18895
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18896
  line = \$ 0
18897
  split(line, arg, " ")
18898
  if (arg[1] == "#") {
18899
    defundef = arg[2]
18900
    mac1 = arg[3]
18901
  } else {
18902
    defundef = substr(arg[1], 2)
18903
    mac1 = arg[2]
18904
  }
18905
  split(mac1, mac2, "(") #)
18906
  macro = mac2[1]
18907
  prefix = substr(line, 1, index(line, defundef) - 1)
18908
  if (D_is_set[macro]) {
18909
    # Preserve the white space surrounding the "#".
18910
    print prefix "define", macro P[macro] D[macro]
18911
    next
18912
  } else {
18913
    # Replace #undef with comments.  This is necessary, for example,
18914
    # in the case of _POSIX_SOURCE, which is predefined and required
18915
    # on some systems where configure will not decide to define it.
18916
    if (defundef == "undef") {
18917
      print "/*", prefix defundef, macro, "*/"
18918
      next
18919
    }
18920
  }
18921
}
18922
{ print }
18923
_ACAWK
18924
_ACEOF
18925
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18926
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18927
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18928
   { (exit 1); exit 1; }; }
18929
fi # test -n "$CONFIG_HEADERS"
18930
18931
 
18932
 
18933
shift
18934
for ac_tag
18935
do
18936 19 jeremybenn
  case $ac_tag in
18937
  :[FHLC]) ac_mode=$ac_tag; continue;;
18938
  esac
18939
  case $ac_mode$ac_tag in
18940
  :[FHL]*:*);;
18941
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18942 82 jeremybenn
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18943
   { (exit 1); exit 1; }; };;
18944 19 jeremybenn
  :[FH]-) ac_tag=-:-;;
18945
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18946
  esac
18947
  ac_save_IFS=$IFS
18948
  IFS=:
18949
  set x $ac_tag
18950
  IFS=$ac_save_IFS
18951
  shift
18952
  ac_file=$1
18953
  shift
18954
18955
 
18956
  :L) ac_source=$1;;
18957
  :[FH])
18958
    ac_file_inputs=
18959
    for ac_f
18960
    do
18961
      case $ac_f in
18962
      -) ac_f="$tmp/stdin";;
18963
      *) # Look for the file first in the build tree, then in the source tree
18964
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
18965
         # because $ac_f cannot contain `:'.
18966
         test -f "$ac_f" ||
18967
           case $ac_f in
18968
           [\\/$]*) false;;
18969
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18970
           esac ||
18971
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18972 82 jeremybenn
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18973
   { (exit 1); exit 1; }; };;
18974 19 jeremybenn
      esac
18975
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18976 82 jeremybenn
      ac_file_inputs="$ac_file_inputs '$ac_f'"
18977
    done
18978 19 jeremybenn
18979
 
18980
    # use $as_me), people would be surprised to read:
18981
    #    /* config.h.  Generated by config.status.  */
18982
    configure_input='Generated from '`
18983 82 jeremybenn
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18984
        `' by configure.'
18985
    if test x"$ac_file" != x-; then
18986 19 jeremybenn
      configure_input="$ac_file.  $configure_input"
18987
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18988 82 jeremybenn
$as_echo "$as_me: creating $ac_file" >&6;}
18989
    fi
18990 19 jeremybenn
    # Neutralize special characters interpreted by sed in replacement strings.
18991 82 jeremybenn
    case $configure_input in #(
18992
    *\&* | *\|* | *\\* )
18993
       ac_sed_conf_input=`$as_echo "$configure_input" |
18994
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18995
    *) ac_sed_conf_input=$configure_input;;
18996
    esac
18997
18998 19 jeremybenn
 
18999
    *:-:* | *:-) cat >"$tmp/stdin" \
19000 82 jeremybenn
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19001
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19002
   { (exit 1); exit 1; }; } ;;
19003
    esac
19004 19 jeremybenn
    ;;
19005
  esac
19006
19007
 
19008
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19009
         X"$ac_file" : 'X\(//\)[^/]' \| \
19010
         X"$ac_file" : 'X\(//\)$' \| \
19011
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19012
$as_echo X"$ac_file" |
19013 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19014 19 jeremybenn
            s//\1/
19015
            q
19016
          }
19017
          /^X\(\/\/\)[^/].*/{
19018
            s//\1/
19019
            q
19020
          }
19021
          /^X\(\/\/\)$/{
19022
            s//\1/
19023
            q
19024
          }
19025
          /^X\(\/\).*/{
19026
            s//\1/
19027
            q
19028
          }
19029
          s/.*/./; q'`
19030
  { as_dir="$ac_dir"
19031
  case $as_dir in #(
19032
  -*) as_dir=./$as_dir;;
19033
  esac
19034
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19035
    as_dirs=
19036
    while :; do
19037
      case $as_dir in #(
19038
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19039 82 jeremybenn
      *) as_qdir=$as_dir;;
19040 19 jeremybenn
      esac
19041
      as_dirs="'$as_qdir' $as_dirs"
19042
      as_dir=`$as_dirname -- "$as_dir" ||
19043
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19044
         X"$as_dir" : 'X\(//\)[^/]' \| \
19045
         X"$as_dir" : 'X\(//\)$' \| \
19046
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19047
$as_echo X"$as_dir" |
19048 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19049 19 jeremybenn
            s//\1/
19050
            q
19051
          }
19052
          /^X\(\/\/\)[^/].*/{
19053
            s//\1/
19054
            q
19055
          }
19056
          /^X\(\/\/\)$/{
19057
            s//\1/
19058
            q
19059
          }
19060
          /^X\(\/\).*/{
19061
            s//\1/
19062
            q
19063
          }
19064
          s/.*/./; q'`
19065
      test -d "$as_dir" && break
19066
    done
19067
    test -z "$as_dirs" || eval "mkdir $as_dirs"
19068
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19069 82 jeremybenn
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19070
   { (exit 1); exit 1; }; }; }
19071 19 jeremybenn
  ac_builddir=.
19072
19073
 
19074
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19075
*)
19076
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19077 82 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
19078 19 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19079 82 jeremybenn
  case $ac_top_builddir_sub in
19080 19 jeremybenn
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19081
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19082
  esac ;;
19083
esac
19084
ac_abs_top_builddir=$ac_pwd
19085
ac_abs_builddir=$ac_pwd$ac_dir_suffix
19086
# for backward compatibility:
19087
ac_top_builddir=$ac_top_build_prefix
19088
19089
 
19090
  .)  # We are building in place.
19091
    ac_srcdir=.
19092
    ac_top_srcdir=$ac_top_builddir_sub
19093
    ac_abs_top_srcdir=$ac_pwd ;;
19094
  [\\/]* | ?:[\\/]* )  # Absolute name.
19095
    ac_srcdir=$srcdir$ac_dir_suffix;
19096
    ac_top_srcdir=$srcdir
19097
    ac_abs_top_srcdir=$srcdir ;;
19098
  *) # Relative name.
19099
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19100
    ac_top_srcdir=$ac_top_build_prefix$srcdir
19101
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19102
esac
19103
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19104
19105
 
19106
 
19107
  :F)
19108
  #
19109
  # CONFIG_FILE
19110
  #
19111
19112
 
19113
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19114
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19115
  esac
19116
  ac_MKDIR_P=$MKDIR_P
19117
  case $MKDIR_P in
19118
  [\\/$]* | ?:[\\/]* ) ;;
19119
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19120
  esac
19121
_ACEOF
19122
19123
 
19124 82 jeremybenn
# If the template does not know about datarootdir, expand it.
19125 19 jeremybenn
# FIXME: This hack should be removed a few years after 2.60.
19126
ac_datarootdir_hack=; ac_datarootdir_seen=
19127
19128
 
19129 82 jeremybenn
/datarootdir/ {
19130
  p
19131 19 jeremybenn
  q
19132
}
19133
/@datadir@/p
19134
/@docdir@/p
19135
/@infodir@/p
19136
/@localedir@/p
19137
/@mandir@/p
19138
'
19139 82 jeremybenn
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19140
*datarootdir*) ac_datarootdir_seen=yes;;
19141 19 jeremybenn
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19142
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19143 82 jeremybenn
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19144
_ACEOF
19145 19 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19146 82 jeremybenn
  ac_datarootdir_hack='
19147 19 jeremybenn
  s&@datadir@&$datadir&g
19148
  s&@docdir@&$docdir&g
19149
  s&@infodir@&$infodir&g
19150
  s&@localedir@&$localedir&g
19151
  s&@mandir@&$mandir&g
19152
    s&\\\${datarootdir}&$datarootdir&g' ;;
19153
esac
19154
_ACEOF
19155
19156
 
19157
# Shell code in configure.ac might set extrasub.
19158
# FIXME: do we really want to maintain this feature?
19159
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19160 82 jeremybenn
ac_sed_extra="$ac_vpsub
19161
$extrasub
19162 19 jeremybenn
_ACEOF
19163
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19164 82 jeremybenn
:t
19165 19 jeremybenn
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19166
s|@configure_input@|$ac_sed_conf_input|;t t
19167 82 jeremybenn
s&@top_builddir@&$ac_top_builddir_sub&;t t
19168 19 jeremybenn
s&@top_build_prefix@&$ac_top_build_prefix&;t t
19169 82 jeremybenn
s&@srcdir@&$ac_srcdir&;t t
19170 19 jeremybenn
s&@abs_srcdir@&$ac_abs_srcdir&;t t
19171
s&@top_srcdir@&$ac_top_srcdir&;t t
19172
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19173
s&@builddir@&$ac_builddir&;t t
19174
s&@abs_builddir@&$ac_abs_builddir&;t t
19175
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19176
s&@INSTALL@&$ac_INSTALL&;t t
19177
s&@MKDIR_P@&$ac_MKDIR_P&;t t
19178
$ac_datarootdir_hack
19179
"
19180 82 jeremybenn
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19181
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19182
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19183
   { (exit 1); exit 1; }; }
19184
19185 19 jeremybenn
 
19186
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19187
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19188
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19189 82 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&5
19190 19 jeremybenn
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19191 82 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&2;}
19192 19 jeremybenn
19193
 
19194
  case $ac_file in
19195
  -) cat "$tmp/out" && rm -f "$tmp/out";;
19196 82 jeremybenn
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19197
  esac \
19198
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19199
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19200
   { (exit 1); exit 1; }; }
19201
 ;;
19202 19 jeremybenn
  :H)
19203
  #
19204
  # CONFIG_HEADER
19205
  #
19206
  if test x"$ac_file" != x-; then
19207
    {
19208 82 jeremybenn
      $as_echo "/* $configure_input  */" \
19209
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19210
    } >"$tmp/config.h" \
19211
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19212
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19213
   { (exit 1); exit 1; }; }
19214
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19215
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19216
$as_echo "$as_me: $ac_file is unchanged" >&6;}
19217
    else
19218 19 jeremybenn
      rm -f "$ac_file"
19219 82 jeremybenn
      mv "$tmp/config.h" "$ac_file" \
19220
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19221
$as_echo "$as_me: error: could not create $ac_file" >&2;}
19222
   { (exit 1); exit 1; }; }
19223
    fi
19224 19 jeremybenn
  else
19225
    $as_echo "/* $configure_input  */" \
19226 82 jeremybenn
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19227
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19228
$as_echo "$as_me: error: could not create -" >&2;}
19229
   { (exit 1); exit 1; }; }
19230
  fi
19231 19 jeremybenn
# Compute "$ac_file"'s index in $config_headers.
19232 82 jeremybenn
_am_arg="$ac_file"
19233
_am_stamp_count=1
19234 19 jeremybenn
for _am_header in $config_headers :; do
19235
  case $_am_header in
19236
    $_am_arg | $_am_arg:* )
19237
      break ;;
19238
    * )
19239
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19240
  esac
19241
done
19242
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19243
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19244
         X"$_am_arg" : 'X\(//\)[^/]' \| \
19245
         X"$_am_arg" : 'X\(//\)$' \| \
19246
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19247
$as_echo X"$_am_arg" |
19248 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19249 19 jeremybenn
            s//\1/
19250
            q
19251
          }
19252
          /^X\(\/\/\)[^/].*/{
19253
            s//\1/
19254
            q
19255
          }
19256
          /^X\(\/\/\)$/{
19257
            s//\1/
19258
            q
19259
          }
19260
          /^X\(\/\).*/{
19261
            s//\1/
19262
            q
19263
          }
19264
          s/.*/./; q'`/stamp-h$_am_stamp_count
19265
 ;;
19266
19267
 
19268 82 jeremybenn
$as_echo "$as_me: executing $ac_file commands" >&6;}
19269
 ;;
19270 19 jeremybenn
  esac
19271
19272
 
19273
 
19274
    "libtool":C)
19275 82 jeremybenn
19276
 
19277
    # commands through without removal of \ escapes.
19278
    if test -n "${ZSH_VERSION+set}" ; then
19279
      setopt NO_GLOB_SUBST
19280
    fi
19281
19282
 
19283
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19284
    $RM "$cfgfile"
19285
19286
 
19287
#! $SHELL
19288
19289
 
19290
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19291
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19292
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19293
#
19294
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19295
#                 2006, 2007, 2008 Free Software Foundation, Inc.
19296
#   Written by Gordon Matzigkeit, 1996
19297
#
19298
#   This file is part of GNU Libtool.
19299
#
19300
# GNU Libtool is free software; you can redistribute it and/or
19301
# modify it under the terms of the GNU General Public License as
19302
# published by the Free Software Foundation; either version 2 of
19303
# the License, or (at your option) any later version.
19304
#
19305
# As a special exception to the GNU General Public License,
19306
# if you distribute this file as part of a program or library that
19307
# is built using GNU Libtool, you may include this file under the
19308
# same distribution terms that you use for the rest of that program.
19309
#
19310
# GNU Libtool is distributed in the hope that it will be useful,
19311
# but WITHOUT ANY WARRANTY; without even the implied warranty of
19312
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19313
# GNU General Public License for more details.
19314
#
19315
# You should have received a copy of the GNU General Public License
19316
# along with GNU Libtool; see the file COPYING.  If not, a copy
19317
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19318
# obtained by writing to the Free Software Foundation, Inc.,
19319
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19320
19321
 
19322
 
19323
available_tags=""
19324
19325
 
19326
19327
 
19328
macro_version=$macro_version
19329
macro_revision=$macro_revision
19330
19331
 
19332
build_libtool_libs=$enable_shared
19333
19334
 
19335
build_old_libs=$enable_static
19336
19337
 
19338
pic_mode=$pic_mode
19339
19340
 
19341
fast_install=$enable_fast_install
19342
19343
 
19344
host_alias=$host_alias
19345
host=$host
19346
host_os=$host_os
19347
19348
 
19349
build_alias=$build_alias
19350
build=$build
19351
build_os=$build_os
19352
19353
 
19354
SED=$lt_SED
19355
19356
 
19357
Xsed="\$SED -e 1s/^X//"
19358
19359
 
19360
GREP=$lt_GREP
19361
19362
 
19363
EGREP=$lt_EGREP
19364
19365
 
19366
FGREP=$lt_FGREP
19367
19368
 
19369
NM=$lt_NM
19370
19371
 
19372
LN_S=$lt_LN_S
19373
19374
 
19375
max_cmd_len=$max_cmd_len
19376
19377
 
19378
objext=$ac_objext
19379
19380
 
19381
exeext=$exeext
19382
19383
 
19384
lt_unset=$lt_unset
19385
19386
 
19387
SP2NL=$lt_lt_SP2NL
19388
19389
 
19390
NL2SP=$lt_lt_NL2SP
19391
19392
 
19393
reload_flag=$lt_reload_flag
19394
reload_cmds=$lt_reload_cmds
19395
19396
 
19397
OBJDUMP=$lt_OBJDUMP
19398
19399
 
19400
deplibs_check_method=$lt_deplibs_check_method
19401
19402
 
19403
file_magic_cmd=$lt_file_magic_cmd
19404
19405
 
19406
AR=$lt_AR
19407
AR_FLAGS=$lt_AR_FLAGS
19408
19409
 
19410
STRIP=$lt_STRIP
19411
19412
 
19413
RANLIB=$lt_RANLIB
19414
old_postinstall_cmds=$lt_old_postinstall_cmds
19415
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19416
19417
 
19418
LTCC=$lt_CC
19419
19420
 
19421
LTCFLAGS=$lt_CFLAGS
19422
19423
 
19424
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19425
19426
 
19427
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19428
19429
 
19430
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19431
19432
 
19433
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19434
19435
 
19436
objdir=$objdir
19437
19438
 
19439
SHELL=$lt_SHELL
19440
19441
 
19442
ECHO=$lt_ECHO
19443
19444
 
19445
MAGIC_CMD=$MAGIC_CMD
19446
19447
 
19448
need_locks=$lt_need_locks
19449
19450
 
19451
DSYMUTIL=$lt_DSYMUTIL
19452
19453
 
19454
NMEDIT=$lt_NMEDIT
19455
19456
 
19457
LIPO=$lt_LIPO
19458
19459
 
19460
OTOOL=$lt_OTOOL
19461
19462
 
19463
OTOOL64=$lt_OTOOL64
19464
19465
 
19466
libext=$libext
19467
19468
 
19469
shrext_cmds=$lt_shrext_cmds
19470
19471
 
19472
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19473
19474
 
19475
# restored at link time.
19476
variables_saved_for_relink=$lt_variables_saved_for_relink
19477
19478
 
19479
need_lib_prefix=$need_lib_prefix
19480
19481
 
19482
need_version=$need_version
19483
19484
 
19485
version_type=$version_type
19486
19487
 
19488
runpath_var=$runpath_var
19489
19490
 
19491
shlibpath_var=$shlibpath_var
19492
19493
 
19494
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19495
19496
 
19497
libname_spec=$lt_libname_spec
19498
19499
 
19500
# The last name is the one that the linker finds with -lNAME
19501
library_names_spec=$lt_library_names_spec
19502
19503
 
19504
soname_spec=$lt_soname_spec
19505
19506
 
19507
postinstall_cmds=$lt_postinstall_cmds
19508
19509
 
19510
postuninstall_cmds=$lt_postuninstall_cmds
19511
19512
 
19513
finish_cmds=$lt_finish_cmds
19514
19515
 
19516
# not shown.
19517
finish_eval=$lt_finish_eval
19518
19519
 
19520
hardcode_into_libs=$hardcode_into_libs
19521
19522
 
19523
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19524
19525
 
19526
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19527
19528
 
19529
dlopen_support=$enable_dlopen
19530
19531
 
19532
dlopen_self=$enable_dlopen_self
19533
19534
 
19535
dlopen_self_static=$enable_dlopen_self_static
19536
19537
 
19538
old_striplib=$lt_old_striplib
19539
striplib=$lt_striplib
19540
19541
 
19542
 
19543
LD=$lt_LD
19544
19545
 
19546
old_archive_cmds=$lt_old_archive_cmds
19547
19548
 
19549
CC=$lt_compiler
19550
19551
 
19552
with_gcc=$GCC
19553
19554
 
19555
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19556
19557
 
19558
wl=$lt_lt_prog_compiler_wl
19559
19560
 
19561
pic_flag=$lt_lt_prog_compiler_pic
19562
19563
 
19564
link_static_flag=$lt_lt_prog_compiler_static
19565
19566
 
19567
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19568
19569
 
19570
build_libtool_need_lc=$archive_cmds_need_lc
19571
19572
 
19573
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19574
19575
 
19576
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19577
19578
 
19579
whole_archive_flag_spec=$lt_whole_archive_flag_spec
19580
19581
 
19582
compiler_needs_object=$lt_compiler_needs_object
19583
19584
 
19585
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19586
19587
 
19588
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19589
19590
 
19591
archive_cmds=$lt_archive_cmds
19592
archive_expsym_cmds=$lt_archive_expsym_cmds
19593
19594
 
19595
# a shared archive.
19596
module_cmds=$lt_module_cmds
19597
module_expsym_cmds=$lt_module_expsym_cmds
19598
19599
 
19600
with_gnu_ld=$lt_with_gnu_ld
19601
19602
 
19603
allow_undefined_flag=$lt_allow_undefined_flag
19604
19605
 
19606
no_undefined_flag=$lt_no_undefined_flag
19607
19608
 
19609
# This must work even if \$libdir does not exist
19610
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19611
19612
 
19613
# during linking.  This must work even if \$libdir does not exist.
19614
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19615
19616
 
19617
hardcode_libdir_separator=$lt_hardcode_libdir_separator
19618
19619
 
19620
# DIR into the resulting binary.
19621
hardcode_direct=$hardcode_direct
19622
19623
 
19624
# DIR into the resulting binary and the resulting library dependency is
19625
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19626
# library is relocated.
19627
hardcode_direct_absolute=$hardcode_direct_absolute
19628
19629
 
19630
# into the resulting binary.
19631
hardcode_minus_L=$hardcode_minus_L
19632
19633
 
19634
# into the resulting binary.
19635
hardcode_shlibpath_var=$hardcode_shlibpath_var
19636
19637
 
19638
# into the library and all subsequent libraries and executables linked
19639
# against it.
19640
hardcode_automatic=$hardcode_automatic
19641
19642
 
19643
# to runtime path list.
19644
inherit_rpath=$inherit_rpath
19645
19646
 
19647
link_all_deplibs=$link_all_deplibs
19648
19649
 
19650
fix_srcfile_path=$lt_fix_srcfile_path
19651
19652
 
19653
always_export_symbols=$always_export_symbols
19654
19655
 
19656
export_symbols_cmds=$lt_export_symbols_cmds
19657
19658
 
19659
exclude_expsyms=$lt_exclude_expsyms
19660
19661
 
19662
include_expsyms=$lt_include_expsyms
19663
19664
 
19665
prelink_cmds=$lt_prelink_cmds
19666
19667
 
19668
file_list_spec=$lt_file_list_spec
19669
19670
 
19671
hardcode_action=$hardcode_action
19672
19673
 
19674
19675
 
19676
19677
 
19678
  aix3*)
19679
    cat <<\_LT_EOF >> "$cfgfile"
19680
# AIX sometimes has problems with the GCC collect2 program.  For some
19681
# reason, if we set the COLLECT_NAMES environment variable, the problems
19682
# vanish in a puff of smoke.
19683
if test "X${COLLECT_NAMES+set}" != Xset; then
19684
  COLLECT_NAMES=
19685
  export COLLECT_NAMES
19686
fi
19687
_LT_EOF
19688
    ;;
19689
  esac
19690
19691
 
19692
 
19693
19694
 
19695
 
19696
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19697
  # text mode, it properly converts lines to CR/LF.  This bash problem
19698
  # is reportedly fixed, but why not run on old versions too?
19699
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19700
    || (rm -f "$cfgfile"; exit 1)
19701
19702
 
19703
  yes)
19704
    cat << \_LT_EOF >> "$cfgfile"
19705
19706
 
19707
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19708
# otherwise set result to NONDIR_REPLACEMENT.
19709
func_dirname ()
19710
{
19711
  case ${1} in
19712
    */*) func_dirname_result="${1%/*}${2}" ;;
19713
    *  ) func_dirname_result="${3}" ;;
19714
  esac
19715
}
19716
19717
 
19718
func_basename ()
19719
{
19720
  func_basename_result="${1##*/}"
19721
}
19722
19723
 
19724
# perform func_basename and func_dirname in a single function
19725
# call:
19726
#   dirname:  Compute the dirname of FILE.  If nonempty,
19727
#             add APPEND to the result, otherwise set result
19728
#             to NONDIR_REPLACEMENT.
19729
#             value returned in "$func_dirname_result"
19730
#   basename: Compute filename of FILE.
19731
#             value retuned in "$func_basename_result"
19732
# Implementation must be kept synchronized with func_dirname
19733
# and func_basename. For efficiency, we do not delegate to
19734
# those functions but instead duplicate the functionality here.
19735
func_dirname_and_basename ()
19736
{
19737
  case ${1} in
19738
    */*) func_dirname_result="${1%/*}${2}" ;;
19739
    *  ) func_dirname_result="${3}" ;;
19740
  esac
19741
  func_basename_result="${1##*/}"
19742
}
19743
19744
 
19745
# strip PREFIX and SUFFIX off of NAME.
19746
# PREFIX and SUFFIX must not contain globbing or regex special
19747
# characters, hashes, percent signs, but SUFFIX may contain a leading
19748
# dot (in which case that matches only a dot).
19749
func_stripname ()
19750
{
19751
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19752
  # positional parameters, so assign one to ordinary parameter first.
19753
  func_stripname_result=${3}
19754
  func_stripname_result=${func_stripname_result#"${1}"}
19755
  func_stripname_result=${func_stripname_result%"${2}"}
19756
}
19757
19758
 
19759
func_opt_split ()
19760
{
19761
  func_opt_split_opt=${1%%=*}
19762
  func_opt_split_arg=${1#*=}
19763
}
19764
19765
 
19766
func_lo2o ()
19767
{
19768
  case ${1} in
19769
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19770
    *)    func_lo2o_result=${1} ;;
19771
  esac
19772
}
19773
19774
 
19775
func_xform ()
19776
{
19777
  func_xform_result=${1%.*}.lo
19778
}
19779
19780
 
19781
func_arith ()
19782
{
19783
  func_arith_result=$(( $* ))
19784
}
19785
19786
 
19787
# STRING may not start with a hyphen.
19788
func_len ()
19789
{
19790
  func_len_result=${#1}
19791
}
19792
19793
 
19794
    ;;
19795
  *) # Bourne compatible functions.
19796
    cat << \_LT_EOF >> "$cfgfile"
19797
19798
 
19799
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19800
# otherwise set result to NONDIR_REPLACEMENT.
19801
func_dirname ()
19802
{
19803
  # Extract subdirectory from the argument.
19804
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19805
  if test "X$func_dirname_result" = "X${1}"; then
19806
    func_dirname_result="${3}"
19807
  else
19808
    func_dirname_result="$func_dirname_result${2}"
19809
  fi
19810
}
19811
19812
 
19813
func_basename ()
19814
{
19815
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19816
}
19817
19818
 
19819
 
19820
# strip PREFIX and SUFFIX off of NAME.
19821
# PREFIX and SUFFIX must not contain globbing or regex special
19822
# characters, hashes, percent signs, but SUFFIX may contain a leading
19823
# dot (in which case that matches only a dot).
19824
# func_strip_suffix prefix name
19825
func_stripname ()
19826
{
19827
  case ${2} in
19828
    .*) func_stripname_result=`$ECHO "X${3}" \
19829
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19830
    *)  func_stripname_result=`$ECHO "X${3}" \
19831
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19832
  esac
19833
}
19834
19835
 
19836
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19837
my_sed_long_arg='1s/^-[^=]*=//'
19838
19839
 
19840
func_opt_split ()
19841
{
19842
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19843
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19844
}
19845
19846
 
19847
func_lo2o ()
19848
{
19849
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19850
}
19851
19852
 
19853
func_xform ()
19854
{
19855
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19856
}
19857
19858
 
19859
func_arith ()
19860
{
19861
  func_arith_result=`expr "$@"`
19862
}
19863
19864
 
19865
# STRING may not start with a hyphen.
19866
func_len ()
19867
{
19868
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19869
}
19870
19871
 
19872
esac
19873
19874
 
19875
  yes)
19876
    cat << \_LT_EOF >> "$cfgfile"
19877
19878
 
19879
# Append VALUE to the end of shell variable VAR.
19880
func_append ()
19881
{
19882
  eval "$1+=\$2"
19883
}
19884
_LT_EOF
19885
    ;;
19886
  *)
19887
    cat << \_LT_EOF >> "$cfgfile"
19888
19889
 
19890
# Append VALUE to the end of shell variable VAR.
19891
func_append ()
19892
{
19893
  eval "$1=\$$1\$2"
19894
}
19895
19896
 
19897
    ;;
19898
  esac
19899
19900
 
19901
 
19902
    || (rm -f "$cfgfile"; exit 1)
19903
19904
 
19905
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19906
  chmod +x "$ofile"
19907
19908
 
19909
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19910
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19911
  # are listed without --file.  Let's play safe and only enable the eval
19912
  # if we detect the quoting.
19913
  case $CONFIG_FILES in
19914
  *\'*) eval set x "$CONFIG_FILES" ;;
19915
  *)   set x $CONFIG_FILES ;;
19916
  esac
19917
  shift
19918
  for mf
19919
  do
19920
    # Strip MF so we end up with the name of the file.
19921
    mf=`echo "$mf" | sed -e 's/:.*$//'`
19922
    # Check whether this is an Automake generated Makefile or not.
19923
    # We used to match only the files named `Makefile.in', but
19924
    # some people rename them; so instead we look at the file content.
19925
    # Grep'ing the first line is not enough: some people post-process
19926
    # each Makefile.in and add a new line on top of each file to say so.
19927
    # Grep'ing the whole file is not good either: AIX grep has a line
19928
    # limit of 2048, but all sed's we know have understand at least 4000.
19929
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19930
      dirpart=`$as_dirname -- "$mf" ||
19931
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19932 19 jeremybenn
         X"$mf" : 'X\(//\)[^/]' \| \
19933
         X"$mf" : 'X\(//\)$' \| \
19934
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19935
$as_echo X"$mf" |
19936 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19937 19 jeremybenn
            s//\1/
19938
            q
19939
          }
19940
          /^X\(\/\/\)[^/].*/{
19941
            s//\1/
19942
            q
19943
          }
19944
          /^X\(\/\/\)$/{
19945
            s//\1/
19946
            q
19947
          }
19948
          /^X\(\/\).*/{
19949
            s//\1/
19950
            q
19951
          }
19952
          s/.*/./; q'`
19953
    else
19954 82 jeremybenn
      continue
19955
    fi
19956
    # Extract the definition of DEPDIR, am__include, and am__quote
19957
    # from the Makefile without running `make'.
19958
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19959
    test -z "$DEPDIR" && continue
19960
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19961
    test -z "am__include" && continue
19962
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19963
    # When using ansi2knr, U may be empty or an underscore; expand it
19964
    U=`sed -n 's/^U = //p' < "$mf"`
19965
    # Find all dependency output files, they are included files with
19966
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19967
    # simplest approach to changing $(DEPDIR) to its actual value in the
19968
    # expansion.
19969
    for file in `sed -n "
19970
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19971
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19972
      # Make sure the directory exists.
19973
      test -f "$dirpart/$file" && continue
19974
      fdir=`$as_dirname -- "$file" ||
19975
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19976 19 jeremybenn
         X"$file" : 'X\(//\)[^/]' \| \
19977
         X"$file" : 'X\(//\)$' \| \
19978
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19979
$as_echo X"$file" |
19980 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19981 19 jeremybenn
            s//\1/
19982
            q
19983
          }
19984
          /^X\(\/\/\)[^/].*/{
19985
            s//\1/
19986
            q
19987
          }
19988
          /^X\(\/\/\)$/{
19989
            s//\1/
19990
            q
19991
          }
19992
          /^X\(\/\).*/{
19993
            s//\1/
19994
            q
19995
          }
19996
          s/.*/./; q'`
19997
      { as_dir=$dirpart/$fdir
19998 82 jeremybenn
  case $as_dir in #(
19999 19 jeremybenn
  -*) as_dir=./$as_dir;;
20000
  esac
20001
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20002
    as_dirs=
20003
    while :; do
20004
      case $as_dir in #(
20005
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20006 82 jeremybenn
      *) as_qdir=$as_dir;;
20007 19 jeremybenn
      esac
20008
      as_dirs="'$as_qdir' $as_dirs"
20009
      as_dir=`$as_dirname -- "$as_dir" ||
20010
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20011
         X"$as_dir" : 'X\(//\)[^/]' \| \
20012
         X"$as_dir" : 'X\(//\)$' \| \
20013
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20014
$as_echo X"$as_dir" |
20015 82 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20016 19 jeremybenn
            s//\1/
20017
            q
20018
          }
20019
          /^X\(\/\/\)[^/].*/{
20020
            s//\1/
20021
            q
20022
          }
20023
          /^X\(\/\/\)$/{
20024
            s//\1/
20025
            q
20026
          }
20027
          /^X\(\/\).*/{
20028
            s//\1/
20029
            q
20030
          }
20031
          s/.*/./; q'`
20032
      test -d "$as_dir" && break
20033
    done
20034
    test -z "$as_dirs" || eval "mkdir $as_dirs"
20035
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20036 82 jeremybenn
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20037
   { (exit 1); exit 1; }; }; }
20038 19 jeremybenn
      # echo "creating $dirpart/$file"
20039 82 jeremybenn
      echo '# dummy' > "$dirpart/$file"
20040
    done
20041
  done
20042 19 jeremybenn
}
20043 82 jeremybenn
 ;;
20044 19 jeremybenn
20045
 
20046
done # for ac_tag
20047
20048
 
20049
 
20050
_ACEOF
20051
chmod +x $CONFIG_STATUS
20052
ac_clean_files=$ac_clean_files_save
20053
20054
 
20055 82 jeremybenn
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20056
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20057
   { (exit 1); exit 1; }; }
20058
20059 19 jeremybenn
 
20060 82 jeremybenn
 
20061 19 jeremybenn
# config.status does its own redirection, appending to config.log.
20062
# Unfortunately, on DOS this fails, as config.log is still kept open
20063
# by configure, so config.status won't be able to write to it; its
20064
# output is simply discarded.  So we exec the FD to /dev/null,
20065
# effectively closing config.log, so it can be properly (re)opened and
20066
# appended to by config.status.  When coming back to configure, we
20067
# need to make the FD available again.
20068
if test "$no_create" != yes; then
20069
  ac_cs_success=:
20070
  ac_config_status_args=
20071
  test "$silent" = yes &&
20072
    ac_config_status_args="$ac_config_status_args --quiet"
20073
  exec 5>/dev/null
20074
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20075
  exec 5>>config.log
20076
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20077
  # would make configure fail if this is the last instruction.
20078
  $ac_cs_success || { (exit 1); exit 1; }
20079
fi
20080
20081
 
20082 82 jeremybenn
# CONFIG_SUBDIRS section.
20083
#
20084
if test "$no_recursion" != yes; then
20085
20086
 
20087
  # so they do not pile up.
20088
  ac_sub_configure_args=
20089
  ac_prev=
20090
  eval "set x $ac_configure_args"
20091
  shift
20092
  for ac_arg
20093
  do
20094
    if test -n "$ac_prev"; then
20095
      ac_prev=
20096
      continue
20097
    fi
20098
    case $ac_arg in
20099
    -cache-file | --cache-file | --cache-fil | --cache-fi \
20100
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20101
      ac_prev=cache_file ;;
20102
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20103
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20104
    | --c=*)
20105
      ;;
20106
    --config-cache | -C)
20107
      ;;
20108
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20109
      ac_prev=srcdir ;;
20110
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20111
      ;;
20112
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20113
      ac_prev=prefix ;;
20114
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20115
      ;;
20116
    --disable-option-checking)
20117
      ;;
20118
    *)
20119
      case $ac_arg in
20120
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20121
      esac
20122
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20123
    esac
20124
  done
20125
20126
 
20127
  # in subdir configurations.
20128
  ac_arg="--prefix=$prefix"
20129
  case $ac_arg in
20130
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20131
  esac
20132
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
20133
20134
 
20135
  if test "$silent" = yes; then
20136
    ac_sub_configure_args="--silent $ac_sub_configure_args"
20137
  fi
20138
20139
 
20140
  # different subdirs can have different --enable and --with options.
20141
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
20142
20143
 
20144
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20145
20146
 
20147
    # parts of a large source tree are present.
20148
    test -d "$srcdir/$ac_dir" || continue
20149
20150
 
20151
    $as_echo "$as_me:$LINENO: $ac_msg" >&5
20152
    $as_echo "$ac_msg" >&6
20153
    { as_dir="$ac_dir"
20154
  case $as_dir in #(
20155
  -*) as_dir=./$as_dir;;
20156
  esac
20157
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20158
    as_dirs=
20159
    while :; do
20160
      case $as_dir in #(
20161
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20162
      *) as_qdir=$as_dir;;
20163
      esac
20164
      as_dirs="'$as_qdir' $as_dirs"
20165
      as_dir=`$as_dirname -- "$as_dir" ||
20166
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20167
         X"$as_dir" : 'X\(//\)[^/]' \| \
20168
         X"$as_dir" : 'X\(//\)$' \| \
20169
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20170
$as_echo X"$as_dir" |
20171
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20172
            s//\1/
20173
            q
20174
          }
20175
          /^X\(\/\/\)[^/].*/{
20176
            s//\1/
20177
            q
20178
          }
20179
          /^X\(\/\/\)$/{
20180
            s//\1/
20181
            q
20182
          }
20183
          /^X\(\/\).*/{
20184
            s//\1/
20185
            q
20186
          }
20187
          s/.*/./; q'`
20188
      test -d "$as_dir" && break
20189
    done
20190
    test -z "$as_dirs" || eval "mkdir $as_dirs"
20191
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20192
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20193
   { (exit 1); exit 1; }; }; }
20194
    ac_builddir=.
20195
20196
 
20197
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20198
*)
20199
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20200
  # A ".." for each directory in $ac_dir_suffix.
20201
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20202
  case $ac_top_builddir_sub in
20203
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20204
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20205
  esac ;;
20206
esac
20207
ac_abs_top_builddir=$ac_pwd
20208
ac_abs_builddir=$ac_pwd$ac_dir_suffix
20209
# for backward compatibility:
20210
ac_top_builddir=$ac_top_build_prefix
20211
20212
 
20213
  .)  # We are building in place.
20214
    ac_srcdir=.
20215
    ac_top_srcdir=$ac_top_builddir_sub
20216
    ac_abs_top_srcdir=$ac_pwd ;;
20217
  [\\/]* | ?:[\\/]* )  # Absolute name.
20218
    ac_srcdir=$srcdir$ac_dir_suffix;
20219
    ac_top_srcdir=$srcdir
20220
    ac_abs_top_srcdir=$srcdir ;;
20221
  *) # Relative name.
20222
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20223
    ac_top_srcdir=$ac_top_build_prefix$srcdir
20224
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20225
esac
20226
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20227
20228
 
20229
 
20230
20231
 
20232
    if test -f "$ac_srcdir/configure.gnu"; then
20233
      ac_sub_configure=$ac_srcdir/configure.gnu
20234
    elif test -f "$ac_srcdir/configure"; then
20235
      ac_sub_configure=$ac_srcdir/configure
20236
    elif test -f "$ac_srcdir/configure.in"; then
20237
      # This should be Cygnus configure.
20238
      ac_sub_configure=$ac_aux_dir/configure
20239
    else
20240
      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20241
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20242
      ac_sub_configure=
20243
    fi
20244
20245
 
20246
    if test -n "$ac_sub_configure"; then
20247
      # Make the cache file name correct relative to the subdirectory.
20248
      case $cache_file in
20249
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20250
      *) # Relative name.
20251
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20252
      esac
20253
20254
 
20255
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20256
      # The eval makes quoting arguments work.
20257
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20258
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20259
        { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20260
$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20261
   { (exit 1); exit 1; }; }
20262
    fi
20263
20264
 
20265
  done
20266
fi
20267
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20268
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20269
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20270
fi
20271
20272
 

powered by: WebSVN 2.1.0

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