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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [autom4te.cache/] [output.0] - Blame information for rev 337

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

Line No. Rev Author Line
1 19 jeremybenn
@%:@! /bin/sh
2 233 julius
@%:@ From configure.ac Id: configure.ac 230 2010-08-01 18:29:47Z jeremybennett  using automake version AC_ACVERSION.
3 19 jeremybenn
@%:@ Guess values for system-dependent variables and create Makefiles.
4 233 julius
@%:@ Generated by GNU Autoconf 2.64 for or1ksim 2010-08-01.
5 19 jeremybenn
@%:@
6
@%:@ Report bugs to .
7
@%:@
8
@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 202 julius
@%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
10
@%:@ Foundation, Inc.
11
@%:@
12 19 jeremybenn
@%:@ This configure script is free software; the Free Software Foundation
13
@%:@ gives unlimited permission to copy, distribute and modify it.
14 202 julius
@%:@
15
@%:@ Copyright (C) 1999-2008 OpenCores
16
@%:@ Copyright (C) 2008, 2010 Embecosm Limited
17
@%:@
18
@%:@ Contributor Jeremy Bennett 
19
@%:@
20
@%:@ This file is part of OpenRISC 1000 Architectural Simulator.
21
@%:@
22
@%:@ This program is free software; you can redistribute it and/or modify it
23
@%:@ under the terms of the GNU General Public License as published by the Free
24
@%:@ Software Foundation; either version 3 of the License, or (at your option)
25
@%:@ any later version.
26
@%:@
27
@%:@ This program is distributed in the hope that it will be useful, but WITHOUT
28
@%:@ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
29
@%:@ FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
30
@%:@ more details.
31
@%:@
32
@%:@ You should have received a copy of the GNU General Public License along
33
@%:@ with this program.  If not, see .
34
## -------------------- ##
35
## M4sh Initialization. ##
36
## -------------------- ##
37 19 jeremybenn
 
38
# Be more Bourne compatible
39
DUALCASE=1; export DUALCASE # for MKS sh
40 202 julius
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41 19 jeremybenn
  emulate sh
42
  NULLCMD=:
43 202 julius
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
44 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
45
  alias -g '${1+"$@"}'='"$@"'
46
  setopt NO_GLOB_SUBST
47
else
48 202 julius
  case `(set -o) 2>/dev/null` in @%:@(
49
  *posix*) :
50
    set -o posix ;; @%:@(
51
  *) :
52
     ;;
53 19 jeremybenn
esac
54
fi
55
 
56
 
57 202 julius
as_nl='
58
'
59
export as_nl
60
# Printing a long string crashes Solaris 7 /usr/bin/printf.
61
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
62
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
63
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
64
# Prefer a ksh shell builtin over an external printf program on Solaris,
65
# but without wasting forks for bash or zsh.
66
if test -z "$BASH_VERSION$ZSH_VERSION" \
67
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
68
  as_echo='print -r --'
69
  as_echo_n='print -rn --'
70
elif (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 202 julius
    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 202 julius
  export as_echo_body
92
  as_echo='sh -c $as_echo_body as_echo'
93 19 jeremybenn
fi
94
 
95 202 julius
# 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 19 jeremybenn
fi
103
 
104
 
105
# IFS
106
# We need space, tab and new line, in precisely that order.  Quoting is
107
# there to prevent editors from complaining about space-tab.
108
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
109
# splitting by setting IFS to empty value.)
110
IFS=" ""        $as_nl"
111
 
112
# Find who we are.  Look in the path if we contain no directory separator.
113 202 julius
case $0 in @%:@((
114 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
115
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116
for as_dir in $PATH
117
do
118
  IFS=$as_save_IFS
119
  test -z "$as_dir" && as_dir=.
120 202 julius
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
  done
122 19 jeremybenn
IFS=$as_save_IFS
123
 
124
     ;;
125
esac
126
# We did not find ourselves, most probably we were run as `sh COMMAND'
127
# in which case we are not to be found in the path.
128
if test "x$as_myself" = x; then
129
  as_myself=$0
130
fi
131
if test ! -f "$as_myself"; then
132 202 julius
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
133
  exit 1
134 19 jeremybenn
fi
135
 
136 202 julius
# Unset variables that we do not need and which cause bugs (e.g. in
137
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
138
# suppresses any "Segmentation fault" message there.  '((' could
139
# trigger a bug in pdksh 5.2.14.
140
for as_var in BASH_ENV ENV MAIL MAILPATH
141
do eval test x\${$as_var+set} = xset \
142
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
143 19 jeremybenn
done
144
PS1='$ '
145
PS2='> '
146
PS4='+ '
147
 
148
# NLS nuisances.
149 202 julius
LC_ALL=C
150
export LC_ALL
151
LANGUAGE=C
152
export LANGUAGE
153 19 jeremybenn
 
154
# CDPATH.
155 202 julius
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
156 19 jeremybenn
 
157
if test "x$CONFIG_SHELL" = x; then
158 202 julius
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
159
  emulate sh
160
  NULLCMD=:
161
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
162
  # is contrary to our usage.  Disable this feature.
163
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
164
  setopt NO_GLOB_SUBST
165 19 jeremybenn
else
166 202 julius
  case \`(set -o) 2>/dev/null\` in @%:@(
167
  *posix*) :
168
    set -o posix ;; @%:@(
169
  *) :
170
     ;;
171
esac
172 19 jeremybenn
fi
173 202 julius
"
174
  as_required="as_fn_return () { (exit \$1); }
175
as_fn_success () { as_fn_return 0; }
176
as_fn_failure () { as_fn_return 1; }
177
as_fn_ret_success () { return 0; }
178
as_fn_ret_failure () { return 1; }
179 19 jeremybenn
 
180
exitcode=0
181 202 julius
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
182
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
183
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
184
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
185
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
186
 
187 19 jeremybenn
else
188 202 julius
  exitcode=1; echo positional parameters were not saved.
189 19 jeremybenn
fi
190 202 julius
test x\$exitcode = x0 || exit 1"
191
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
192
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
193
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
194
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
195
test \$(( 1 + 1 )) = 2 || exit 1"
196
  if (eval "$as_required") 2>/dev/null; then :
197
  as_have_required=yes
198 19 jeremybenn
else
199 202 julius
  as_have_required=no
200 19 jeremybenn
fi
201 202 julius
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
202
 
203 19 jeremybenn
else
204 202 julius
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
205
as_found=false
206 19 jeremybenn
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
207
do
208
  IFS=$as_save_IFS
209
  test -z "$as_dir" && as_dir=.
210 202 julius
  as_found=:
211
  case $as_dir in @%:@(
212 19 jeremybenn
         /*)
213
           for as_base in sh bash ksh sh5; do
214 202 julius
             # Try only shells that exist, to save several forks.
215
             as_shell=$as_dir/$as_base
216
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
217
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
218
  CONFIG_SHELL=$as_shell as_have_required=yes
219
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
220
  break 2
221
fi
222
fi
223 19 jeremybenn
           done;;
224
       esac
225 202 julius
  as_found=false
226 19 jeremybenn
done
227 202 julius
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
228
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
229
  CONFIG_SHELL=$SHELL as_have_required=yes
230
fi; }
231 19 jeremybenn
IFS=$as_save_IFS
232
 
233
 
234 202 julius
      if test "x$CONFIG_SHELL" != x; then :
235
  # We cannot yet assume a decent shell, so we have to provide a
236
        # neutralization value for shells without unset; and this also
237
        # works around shells that cannot unset nonexistent variables.
238
        BASH_ENV=/dev/null
239
        ENV=/dev/null
240
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
241
        export CONFIG_SHELL
242
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
243 19 jeremybenn
fi
244
 
245 202 julius
    if test x$as_have_required = xno; then :
246
  $as_echo "$0: This script requires a shell more modern than all"
247
  $as_echo "$0: the shells that I found on your system."
248
  if test x${ZSH_VERSION+set} = xset ; then
249
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
250
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
251
  else
252
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
253
$0: openrisc@opencores.org about your system, including any
254
$0: error possibly output before this message. Then install
255
$0: a modern shell, or manually run the script under such a
256
$0: shell if you do have one."
257
  fi
258
  exit 1
259 19 jeremybenn
fi
260
fi
261
fi
262 202 julius
SHELL=${CONFIG_SHELL-/bin/sh}
263
export SHELL
264
# Unset more variables known to interfere with behavior of common tools.
265
CLICOLOR_FORCE= GREP_OPTIONS=
266
unset CLICOLOR_FORCE GREP_OPTIONS
267 19 jeremybenn
 
268 202 julius
## --------------------- ##
269
## M4sh Shell Functions. ##
270
## --------------------- ##
271
@%:@ as_fn_unset VAR
272
@%:@ ---------------
273
@%:@ Portably unset VAR.
274
as_fn_unset ()
275
{
276
  { eval $1=; unset $1;}
277
}
278
as_unset=as_fn_unset
279 19 jeremybenn
 
280 202 julius
@%:@ as_fn_set_status STATUS
281
@%:@ -----------------------
282
@%:@ Set $? to STATUS, without forking.
283
as_fn_set_status ()
284
{
285
  return $1
286
} @%:@ as_fn_set_status
287 19 jeremybenn
 
288 202 julius
@%:@ as_fn_exit STATUS
289
@%:@ -----------------
290
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
291
as_fn_exit ()
292
{
293
  set +e
294
  as_fn_set_status $1
295
  exit $1
296
} @%:@ as_fn_exit
297 19 jeremybenn
 
298 202 julius
@%:@ as_fn_mkdir_p
299
@%:@ -------------
300
@%:@ Create "$as_dir" as a directory, including parents if necessary.
301
as_fn_mkdir_p ()
302
{
303 19 jeremybenn
 
304 202 julius
  case $as_dir in #(
305
  -*) as_dir=./$as_dir;;
306
  esac
307
  test -d "$as_dir" || eval $as_mkdir_p || {
308
    as_dirs=
309
    while :; do
310
      case $as_dir in #(
311
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312
      *) as_qdir=$as_dir;;
313
      esac
314
      as_dirs="'$as_qdir' $as_dirs"
315
      as_dir=`$as_dirname -- "$as_dir" ||
316
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
317
         X"$as_dir" : 'X\(//\)[^/]' \| \
318
         X"$as_dir" : 'X\(//\)$' \| \
319
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
320
$as_echo X"$as_dir" |
321
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322
            s//\1/
323
            q
324
          }
325
          /^X\(\/\/\)[^/].*/{
326
            s//\1/
327
            q
328
          }
329
          /^X\(\/\/\)$/{
330
            s//\1/
331
            q
332
          }
333
          /^X\(\/\).*/{
334
            s//\1/
335
            q
336
          }
337
          s/.*/./; q'`
338
      test -d "$as_dir" && break
339
    done
340
    test -z "$as_dirs" || eval "mkdir $as_dirs"
341
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
342 19 jeremybenn
 
343
 
344 202 julius
} @%:@ as_fn_mkdir_p
345
@%:@ as_fn_append VAR VALUE
346
@%:@ ----------------------
347
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
348
@%:@ advantage of any shell optimizations that allow amortized linear growth over
349
@%:@ repeated appends, instead of the typical quadratic growth present in naive
350
@%:@ implementations.
351
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
352
  eval 'as_fn_append ()
353
  {
354
    eval $1+=\$2
355
  }'
356
else
357
  as_fn_append ()
358
  {
359
    eval $1=\$$1\$2
360
  }
361
fi # as_fn_append
362 19 jeremybenn
 
363 202 julius
@%:@ as_fn_arith ARG...
364
@%:@ ------------------
365
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
366
@%:@ global $as_val. Take advantage of shells that can avoid forks. The arguments
367
@%:@ must be portable across $(()) and expr.
368
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
369
  eval 'as_fn_arith ()
370
  {
371
    as_val=$(( $* ))
372
  }'
373
else
374
  as_fn_arith ()
375
  {
376
    as_val=`expr "$@" || test $? -eq 1`
377
  }
378
fi # as_fn_arith
379 19 jeremybenn
 
380
 
381 202 julius
@%:@ as_fn_error ERROR [LINENO LOG_FD]
382
@%:@ ---------------------------------
383
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
384
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
385
@%:@ script with status $?, using 1 if that was 0.
386
as_fn_error ()
387
{
388
  as_status=$?; test $as_status -eq 0 && as_status=1
389
  if test "$3"; then
390
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
391
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
392
  fi
393
  $as_echo "$as_me: error: $1" >&2
394
  as_fn_exit $as_status
395
} @%:@ as_fn_error
396 19 jeremybenn
 
397 202 julius
if expr a : '\(a\)' >/dev/null 2>&1 &&
398
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
399
  as_expr=expr
400 19 jeremybenn
else
401 202 julius
  as_expr=false
402 19 jeremybenn
fi
403
 
404 202 julius
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
405
  as_basename=basename
406 19 jeremybenn
else
407 202 julius
  as_basename=false
408 19 jeremybenn
fi
409
 
410 202 julius
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
411
  as_dirname=dirname
412 19 jeremybenn
else
413 202 julius
  as_dirname=false
414 19 jeremybenn
fi
415
 
416 202 julius
as_me=`$as_basename -- "$0" ||
417
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
418
         X"$0" : 'X\(//\)$' \| \
419
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
420
$as_echo X/"$0" |
421
    sed '/^.*\/\([^/][^/]*\)\/*$/{
422
            s//\1/
423
            q
424
          }
425
          /^X\/\(\/\/\)$/{
426
            s//\1/
427
            q
428
          }
429
          /^X\/\(\/\).*/{
430
            s//\1/
431
            q
432
          }
433
          s/.*/./; q'`
434 19 jeremybenn
 
435 202 julius
# Avoid depending upon Character Ranges.
436
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
437
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
438
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
439
as_cr_digits='0123456789'
440
as_cr_alnum=$as_cr_Letters$as_cr_digits
441 19 jeremybenn
 
442
 
443 202 julius
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
444
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
445
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
446
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
447
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
448 19 jeremybenn
  sed -n '
449
    p
450
    /[$]LINENO/=
451
  ' <$as_myself |
452
    sed '
453
      s/[$]LINENO.*/&-/
454
      t lineno
455
      b
456
      :lineno
457
      N
458
      :loop
459
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460
      t loop
461
      s/-\n.*//
462
    ' >$as_me.lineno &&
463
  chmod +x "$as_me.lineno" ||
464 202 julius
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
465 19 jeremybenn
 
466
  # Don't try to exec as it changes $[0], causing all sort of problems
467
  # (the dirname of $[0] is not the place where we might find the
468
  # original and so on.  Autoconf is especially sensitive to this).
469
  . "./$as_me.lineno"
470
  # Exit status is that of the last command.
471
  exit
472
}
473
 
474
ECHO_C= ECHO_N= ECHO_T=
475 202 julius
case `echo -n x` in @%:@(((((
476 19 jeremybenn
-n*)
477 202 julius
  case `echo 'xy\c'` in
478 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479 202 julius
  xy)  ECHO_C='\c';;
480
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
481
       ECHO_T=' ';;
482 19 jeremybenn
  esac;;
483
*)
484
  ECHO_N='-n';;
485
esac
486
 
487
rm -f conf$$ conf$$.exe conf$$.file
488
if test -d conf$$.dir; then
489
  rm -f conf$$.dir/conf$$.file
490
else
491
  rm -f conf$$.dir
492 202 julius
  mkdir conf$$.dir 2>/dev/null
493 19 jeremybenn
fi
494 202 julius
if (echo >conf$$.file) 2>/dev/null; then
495
  if ln -s conf$$.file conf$$ 2>/dev/null; then
496
    as_ln_s='ln -s'
497
    # ... but there are two gotchas:
498
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500
    # In both cases, we have to default to `cp -p'.
501
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502
      as_ln_s='cp -p'
503
  elif ln conf$$.file conf$$ 2>/dev/null; then
504
    as_ln_s=ln
505
  else
506 19 jeremybenn
    as_ln_s='cp -p'
507 202 julius
  fi
508 19 jeremybenn
else
509
  as_ln_s='cp -p'
510
fi
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512
rmdir conf$$.dir 2>/dev/null
513
 
514
if mkdir -p . 2>/dev/null; then
515 202 julius
  as_mkdir_p='mkdir -p "$as_dir"'
516 19 jeremybenn
else
517
  test -d ./-p && rmdir ./-p
518
  as_mkdir_p=false
519
fi
520
 
521
if test -x / >/dev/null 2>&1; then
522
  as_test_x='test -x'
523
else
524
  if ls -dL / >/dev/null 2>&1; then
525
    as_ls_L_option=L
526
  else
527
    as_ls_L_option=
528
  fi
529
  as_test_x='
530
    eval sh -c '\''
531
      if test -d "$1"; then
532 202 julius
        test -d "$1/.";
533 19 jeremybenn
      else
534 202 julius
        case $1 in @%:@(
535
        -*)set "./$1";;
536 19 jeremybenn
        esac;
537 202 julius
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
538 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
539
    '\'' sh
540
  '
541
fi
542
as_executable_p=$as_test_x
543
 
544
# Sed expression to map a string onto a valid CPP name.
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
 
547
# Sed expression to map a string onto a valid variable name.
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
 
550
 
551
 
552
# Check that we are running under the correct shell.
553
SHELL=${CONFIG_SHELL-/bin/sh}
554
 
555 202 julius
case X$lt_ECHO in
556 19 jeremybenn
X*--fallback-echo)
557
  # Remove one level of quotation (which was required for Make).
558 202 julius
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
559 19 jeremybenn
  ;;
560
esac
561
 
562 202 julius
ECHO=${lt_ECHO-echo}
563 19 jeremybenn
if test "X$1" = X--no-reexec; then
564
  # Discard the --no-reexec flag, and continue.
565
  shift
566
elif test "X$1" = X--fallback-echo; then
567
  # Avoid inline document here, it may be left over
568
  :
569 202 julius
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
570
  # Yippee, $ECHO works!
571 19 jeremybenn
  :
572
else
573
  # Restart under the correct shell.
574
  exec $SHELL "$0" --no-reexec ${1+"$@"}
575
fi
576
 
577
if test "X$1" = X--fallback-echo; then
578
  # used as fallback echo
579
  shift
580 202 julius
  cat <<_LT_EOF
581 19 jeremybenn
$*
582 202 julius
_LT_EOF
583 19 jeremybenn
  exit 0
584
fi
585
 
586
# The HP-UX ksh and POSIX shell print the target directory to stdout
587
# if CDPATH is set.
588
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
589
 
590 202 julius
if test -z "$lt_ECHO"; then
591
  if test "X${echo_test_string+set}" != Xset; then
592
    # find a string as large as possible, as long as the shell can cope with it
593
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
594
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
595
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
596
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
597
      then
598
        break
599
      fi
600
    done
601
  fi
602 19 jeremybenn
 
603 202 julius
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
604
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
605
     test "X$echo_testing_string" = "X$echo_test_string"; then
606
    :
607
  else
608
    # The Solaris, AIX, and Digital Unix default echo programs unquote
609
    # backslashes.  This makes it impossible to quote backslashes using
610
    #   echo "$something" | sed 's/\\/\\\\/g'
611
    #
612
    # So, first we look for a working echo in the user's PATH.
613 19 jeremybenn
 
614 202 julius
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
615
    for dir in $PATH /usr/ucb; do
616
      IFS="$lt_save_ifs"
617
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
618
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
619
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
620
         test "X$echo_testing_string" = "X$echo_test_string"; then
621
        ECHO="$dir/echo"
622
        break
623
      fi
624
    done
625 19 jeremybenn
    IFS="$lt_save_ifs"
626
 
627 202 julius
    if test "X$ECHO" = Xecho; then
628
      # We didn't find a better echo, so look for alternatives.
629
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
630
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
631
         test "X$echo_testing_string" = "X$echo_test_string"; then
632
        # This shell has a builtin print -r that does the trick.
633
        ECHO='print -r'
634
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
635
           test "X$CONFIG_SHELL" != X/bin/ksh; then
636
        # If we have ksh, try running configure again with it.
637
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
638
        export ORIGINAL_CONFIG_SHELL
639
        CONFIG_SHELL=/bin/ksh
640
        export CONFIG_SHELL
641
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
642
      else
643
        # Try using printf.
644
        ECHO='printf %s\n'
645
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
646
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
647 19 jeremybenn
           test "X$echo_testing_string" = "X$echo_test_string"; then
648 202 julius
          # Cool, printf works
649
          :
650
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651
             test "X$echo_testing_string" = 'X\t' &&
652
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653
             test "X$echo_testing_string" = "X$echo_test_string"; then
654
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
655
          export CONFIG_SHELL
656
          SHELL="$CONFIG_SHELL"
657
          export SHELL
658
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
659
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
660
             test "X$echo_testing_string" = 'X\t' &&
661
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
662
             test "X$echo_testing_string" = "X$echo_test_string"; then
663
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
664
        else
665
          # maybe with a smaller string...
666
          prev=:
667 19 jeremybenn
 
668 202 julius
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
669
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
670
            then
671
              break
672
            fi
673
            prev="$cmd"
674
          done
675
 
676
          if test "$prev" != 'sed 50q "$0"'; then
677
            echo_test_string=`eval $prev`
678
            export echo_test_string
679
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
680
          else
681
            # Oops.  We lost completely, so just stick with echo.
682
            ECHO=echo
683 19 jeremybenn
          fi
684 202 julius
        fi
685 19 jeremybenn
      fi
686
    fi
687
  fi
688
fi
689
 
690
# Copy echo and quote the copy suitably for passing to libtool from
691
# the Makefile, instead of quoting the original, which is used later.
692 202 julius
lt_ECHO=$ECHO
693
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
694
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
695 19 jeremybenn
fi
696
 
697
 
698
 
699
 
700
exec 7<&0 &1
701
 
702
# Name of the host.
703
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
704
# so uname gets run too.
705
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
706
 
707
#
708
# Initializations.
709
#
710
ac_default_prefix=/usr/local
711
ac_clean_files=
712
ac_config_libobj_dir=.
713
LIB@&t@OBJS=
714
cross_compiling=no
715
subdirs=
716
MFLAGS=
717
MAKEFLAGS=
718
 
719
# Identity of this package.
720
PACKAGE_NAME='or1ksim'
721
PACKAGE_TARNAME='or1ksim'
722 233 julius
PACKAGE_VERSION='2010-08-01'
723
PACKAGE_STRING='or1ksim 2010-08-01'
724 19 jeremybenn
PACKAGE_BUGREPORT='openrisc@opencores.org'
725 202 julius
PACKAGE_URL=''
726 19 jeremybenn
 
727
# Factoring default headers for most tests.
728
ac_includes_default="\
729
#include 
730
#ifdef HAVE_SYS_TYPES_H
731
# include 
732
#endif
733
#ifdef HAVE_SYS_STAT_H
734
# include 
735
#endif
736
#ifdef STDC_HEADERS
737
# include 
738
# include 
739
#else
740
# ifdef HAVE_STDLIB_H
741
#  include 
742
# endif
743
#endif
744
#ifdef HAVE_STRING_H
745
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
746
#  include 
747
# endif
748
# include 
749
#endif
750
#ifdef HAVE_STRINGS_H
751
# include 
752
#endif
753
#ifdef HAVE_INTTYPES_H
754
# include 
755
#endif
756
#ifdef HAVE_STDINT_H
757
# include 
758
#endif
759
#ifdef HAVE_UNISTD_H
760
# include 
761
#endif"
762
 
763 202 julius
ac_unique_file="cpu/or32/execute.c"
764
enable_option_checking=no
765
ac_subst_vars='am__EXEEXT_FALSE
766
am__EXEEXT_TRUE
767
LTLIBOBJS
768
INCLUDES
769
TERMCAP_LIB
770
SUMVERSION
771
ARFLAGS
772
LOCAL_DEFS
773
LOCAL_LDFLAGS
774
LOCAL_CFLAGS
775
BUILD_DIR
776
RUNTESTDEFAULTFLAGS
777
DEJAGNU
778
DYNAMIC_EXECUTION_FALSE
779
DYNAMIC_EXECUTION_TRUE
780
GENERATE_NEEDED_FALSE
781
GENERATE_NEEDED_TRUE
782
DEBUGFLAGS
783
USE_ARGDATE_FALSE
784
USE_ARGDATE_TRUE
785
USE_ARGREX_FALSE
786
USE_ARGREX_TRUE
787
USE_SYS_GETOPTLONG_FALSE
788
USE_SYS_GETOPTLONG_TRUE
789
POW_LIB
790
LIB@&t@OBJS
791
am__fastdepCCAS_FALSE
792
am__fastdepCCAS_TRUE
793
CCASDEPMODE
794
CCASFLAGS
795
CCAS
796
CPU_ARCH
797
am__fastdepCC_FALSE
798
am__fastdepCC_TRUE
799
CCDEPMODE
800
AMDEPBACKSLASH
801
AMDEP_FALSE
802
AMDEP_TRUE
803
am__quote
804
am__include
805
DEPDIR
806
am__untar
807
am__tar
808
AMTAR
809
am__leading_dot
810
SET_MAKE
811
AWK
812
mkdir_p
813
MKDIR_P
814
INSTALL_STRIP_PROGRAM
815
install_sh
816
MAKEINFO
817
AUTOHEADER
818
AUTOMAKE
819
AUTOCONF
820
ACLOCAL
821
VERSION
822
PACKAGE
823
CYGPATH_W
824
am__isrc
825
INSTALL_DATA
826
INSTALL_SCRIPT
827
INSTALL_PROGRAM
828
OTOOL64
829
OTOOL
830
LIPO
831
NMEDIT
832
DSYMUTIL
833
lt_ECHO
834
RANLIB
835
STRIP
836
AR
837
OBJDUMP
838
LN_S
839
NM
840
ac_ct_DUMPBIN
841
DUMPBIN
842
LD
843
FGREP
844
SED
845
LIBTOOL
846
target_os
847
target_vendor
848
target_cpu
849
target
850
host_os
851
host_vendor
852
host_cpu
853
host
854
build_os
855
build_vendor
856
build_cpu
857 19 jeremybenn
build
858 202 julius
subdirs
859
EGREP
860 19 jeremybenn
GREP
861
CPP
862 202 julius
OBJEXT
863
EXEEXT
864
ac_ct_CC
865
CPPFLAGS
866
LDFLAGS
867
CFLAGS
868
CC
869
target_alias
870
host_alias
871
build_alias
872
LIBS
873
ECHO_T
874
ECHO_N
875
ECHO_C
876
DEFS
877
mandir
878
localedir
879
libdir
880
psdir
881
pdfdir
882
dvidir
883
htmldir
884
infodir
885
docdir
886
oldincludedir
887
includedir
888
localstatedir
889
sharedstatedir
890
sysconfdir
891
datadir
892
datarootdir
893
libexecdir
894
sbindir
895
bindir
896
program_transform_name
897
prefix
898
exec_prefix
899
PACKAGE_URL
900
PACKAGE_BUGREPORT
901
PACKAGE_STRING
902
PACKAGE_VERSION
903
PACKAGE_TARNAME
904
PACKAGE_NAME
905
PATH_SEPARATOR
906
SHELL'
907 19 jeremybenn
ac_subst_files=''
908 202 julius
ac_user_opts='
909
enable_option_checking
910
enable_shared
911
enable_static
912
with_pic
913
enable_fast_install
914
with_gnu_ld
915
enable_libtool_lock
916
enable_dependency_tracking
917
enable_profiling
918
enable_execution
919
enable_ethphy
920
enable_unsigned_xori
921
enable_range_stats
922
enable_debug
923
'
924 19 jeremybenn
      ac_precious_vars='build_alias
925
host_alias
926
target_alias
927
CC
928
CFLAGS
929
LDFLAGS
930
LIBS
931
CPPFLAGS
932
CPP
933 202 julius
CCAS
934
CCASFLAGS'
935
ac_subdirs_all='testsuite/test-code-or1k'
936 19 jeremybenn
 
937
# Initialize some variables set by options.
938
ac_init_help=
939
ac_init_version=false
940 202 julius
ac_unrecognized_opts=
941
ac_unrecognized_sep=
942 19 jeremybenn
# The variables have the same names as the options, with
943
# dashes changed to underlines.
944
cache_file=/dev/null
945
exec_prefix=NONE
946
no_create=
947
no_recursion=
948
prefix=NONE
949
program_prefix=NONE
950
program_suffix=NONE
951
program_transform_name=s,x,x,
952
silent=
953
site=
954
srcdir=
955
verbose=
956
x_includes=NONE
957
x_libraries=NONE
958
 
959
# Installation directory options.
960
# These are left unexpanded so users can "make install exec_prefix=/foo"
961
# and all the variables that are supposed to be based on exec_prefix
962
# by default will actually change.
963
# Use braces instead of parens because sh, perl, etc. also accept them.
964
# (The list follows the same order as the GNU Coding Standards.)
965
bindir='${exec_prefix}/bin'
966
sbindir='${exec_prefix}/sbin'
967
libexecdir='${exec_prefix}/libexec'
968
datarootdir='${prefix}/share'
969
datadir='${datarootdir}'
970
sysconfdir='${prefix}/etc'
971
sharedstatedir='${prefix}/com'
972
localstatedir='${prefix}/var'
973
includedir='${prefix}/include'
974
oldincludedir='/usr/include'
975
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976
infodir='${datarootdir}/info'
977
htmldir='${docdir}'
978
dvidir='${docdir}'
979
pdfdir='${docdir}'
980
psdir='${docdir}'
981
libdir='${exec_prefix}/lib'
982
localedir='${datarootdir}/locale'
983
mandir='${datarootdir}/man'
984
 
985
ac_prev=
986
ac_dashdash=
987
for ac_option
988
do
989
  # If the previous option needs an argument, assign it.
990
  if test -n "$ac_prev"; then
991
    eval $ac_prev=\$ac_option
992
    ac_prev=
993
    continue
994
  fi
995
 
996
  case $ac_option in
997
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998
  *)    ac_optarg=yes ;;
999
  esac
1000
 
1001
  # Accept the important Cygnus configure options, so we can diagnose typos.
1002
 
1003
  case $ac_dashdash$ac_option in
1004
  --)
1005
    ac_dashdash=yes ;;
1006
 
1007
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008
    ac_prev=bindir ;;
1009
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010
    bindir=$ac_optarg ;;
1011
 
1012
  -build | --build | --buil | --bui | --bu)
1013
    ac_prev=build_alias ;;
1014
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015
    build_alias=$ac_optarg ;;
1016
 
1017
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1018
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019
    ac_prev=cache_file ;;
1020
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022
    cache_file=$ac_optarg ;;
1023
 
1024
  --config-cache | -C)
1025
    cache_file=config.cache ;;
1026
 
1027
  -datadir | --datadir | --datadi | --datad)
1028
    ac_prev=datadir ;;
1029
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030
    datadir=$ac_optarg ;;
1031
 
1032
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033
  | --dataroo | --dataro | --datar)
1034
    ac_prev=datarootdir ;;
1035
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037
    datarootdir=$ac_optarg ;;
1038
 
1039
  -disable-* | --disable-*)
1040 202 julius
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 19 jeremybenn
    # Reject names that are not valid shell variable names.
1042 202 julius
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043
      as_fn_error "invalid feature name: $ac_useropt"
1044
    ac_useropt_orig=$ac_useropt
1045
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046
    case $ac_user_opts in
1047
      *"
1048
"enable_$ac_useropt"
1049
"*) ;;
1050
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051
         ac_unrecognized_sep=', ';;
1052
    esac
1053
    eval enable_$ac_useropt=no ;;
1054 19 jeremybenn
 
1055
  -docdir | --docdir | --docdi | --doc | --do)
1056
    ac_prev=docdir ;;
1057
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058
    docdir=$ac_optarg ;;
1059
 
1060
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061
    ac_prev=dvidir ;;
1062
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063
    dvidir=$ac_optarg ;;
1064
 
1065
  -enable-* | --enable-*)
1066 202 julius
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 19 jeremybenn
    # Reject names that are not valid shell variable names.
1068 202 julius
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069
      as_fn_error "invalid feature name: $ac_useropt"
1070
    ac_useropt_orig=$ac_useropt
1071
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072
    case $ac_user_opts in
1073
      *"
1074
"enable_$ac_useropt"
1075
"*) ;;
1076
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077
         ac_unrecognized_sep=', ';;
1078
    esac
1079
    eval enable_$ac_useropt=\$ac_optarg ;;
1080 19 jeremybenn
 
1081
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083
  | --exec | --exe | --ex)
1084
    ac_prev=exec_prefix ;;
1085
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087
  | --exec=* | --exe=* | --ex=*)
1088
    exec_prefix=$ac_optarg ;;
1089
 
1090
  -gas | --gas | --ga | --g)
1091
    # Obsolete; use --with-gas.
1092
    with_gas=yes ;;
1093
 
1094
  -help | --help | --hel | --he | -h)
1095
    ac_init_help=long ;;
1096
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097
    ac_init_help=recursive ;;
1098
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099
    ac_init_help=short ;;
1100
 
1101
  -host | --host | --hos | --ho)
1102
    ac_prev=host_alias ;;
1103
  -host=* | --host=* | --hos=* | --ho=*)
1104
    host_alias=$ac_optarg ;;
1105
 
1106
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107
    ac_prev=htmldir ;;
1108
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109
  | --ht=*)
1110
    htmldir=$ac_optarg ;;
1111
 
1112
  -includedir | --includedir | --includedi | --included | --include \
1113
  | --includ | --inclu | --incl | --inc)
1114
    ac_prev=includedir ;;
1115
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1117
    includedir=$ac_optarg ;;
1118
 
1119
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1120
    ac_prev=infodir ;;
1121
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122
    infodir=$ac_optarg ;;
1123
 
1124
  -libdir | --libdir | --libdi | --libd)
1125
    ac_prev=libdir ;;
1126
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127
    libdir=$ac_optarg ;;
1128
 
1129
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130
  | --libexe | --libex | --libe)
1131
    ac_prev=libexecdir ;;
1132
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133
  | --libexe=* | --libex=* | --libe=*)
1134
    libexecdir=$ac_optarg ;;
1135
 
1136
  -localedir | --localedir | --localedi | --localed | --locale)
1137
    ac_prev=localedir ;;
1138
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139
    localedir=$ac_optarg ;;
1140
 
1141
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1142
  | --localstate | --localstat | --localsta | --localst | --locals)
1143
    ac_prev=localstatedir ;;
1144
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146
    localstatedir=$ac_optarg ;;
1147
 
1148
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149
    ac_prev=mandir ;;
1150
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151
    mandir=$ac_optarg ;;
1152
 
1153
  -nfp | --nfp | --nf)
1154
    # Obsolete; use --without-fp.
1155
    with_fp=no ;;
1156
 
1157
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158
  | --no-cr | --no-c | -n)
1159
    no_create=yes ;;
1160
 
1161
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163
    no_recursion=yes ;;
1164
 
1165
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167
  | --oldin | --oldi | --old | --ol | --o)
1168
    ac_prev=oldincludedir ;;
1169
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172
    oldincludedir=$ac_optarg ;;
1173
 
1174
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175
    ac_prev=prefix ;;
1176
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177
    prefix=$ac_optarg ;;
1178
 
1179
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180
  | --program-pre | --program-pr | --program-p)
1181
    ac_prev=program_prefix ;;
1182
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184
    program_prefix=$ac_optarg ;;
1185
 
1186
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187
  | --program-suf | --program-su | --program-s)
1188
    ac_prev=program_suffix ;;
1189
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191
    program_suffix=$ac_optarg ;;
1192
 
1193
  -program-transform-name | --program-transform-name \
1194
  | --program-transform-nam | --program-transform-na \
1195
  | --program-transform-n | --program-transform- \
1196
  | --program-transform | --program-transfor \
1197
  | --program-transfo | --program-transf \
1198
  | --program-trans | --program-tran \
1199
  | --progr-tra | --program-tr | --program-t)
1200
    ac_prev=program_transform_name ;;
1201
  -program-transform-name=* | --program-transform-name=* \
1202
  | --program-transform-nam=* | --program-transform-na=* \
1203
  | --program-transform-n=* | --program-transform-=* \
1204
  | --program-transform=* | --program-transfor=* \
1205
  | --program-transfo=* | --program-transf=* \
1206
  | --program-trans=* | --program-tran=* \
1207
  | --progr-tra=* | --program-tr=* | --program-t=*)
1208
    program_transform_name=$ac_optarg ;;
1209
 
1210
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211
    ac_prev=pdfdir ;;
1212
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213
    pdfdir=$ac_optarg ;;
1214
 
1215
  -psdir | --psdir | --psdi | --psd | --ps)
1216
    ac_prev=psdir ;;
1217
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218
    psdir=$ac_optarg ;;
1219
 
1220
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221
  | -silent | --silent | --silen | --sile | --sil)
1222
    silent=yes ;;
1223
 
1224
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225
    ac_prev=sbindir ;;
1226
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227
  | --sbi=* | --sb=*)
1228
    sbindir=$ac_optarg ;;
1229
 
1230
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232
  | --sharedst | --shareds | --shared | --share | --shar \
1233
  | --sha | --sh)
1234
    ac_prev=sharedstatedir ;;
1235
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238
  | --sha=* | --sh=*)
1239
    sharedstatedir=$ac_optarg ;;
1240
 
1241
  -site | --site | --sit)
1242
    ac_prev=site ;;
1243
  -site=* | --site=* | --sit=*)
1244
    site=$ac_optarg ;;
1245
 
1246
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247
    ac_prev=srcdir ;;
1248
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249
    srcdir=$ac_optarg ;;
1250
 
1251
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252
  | --syscon | --sysco | --sysc | --sys | --sy)
1253
    ac_prev=sysconfdir ;;
1254
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256
    sysconfdir=$ac_optarg ;;
1257
 
1258
  -target | --target | --targe | --targ | --tar | --ta | --t)
1259
    ac_prev=target_alias ;;
1260
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261
    target_alias=$ac_optarg ;;
1262
 
1263
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264
    verbose=yes ;;
1265
 
1266
  -version | --version | --versio | --versi | --vers | -V)
1267
    ac_init_version=: ;;
1268
 
1269
  -with-* | --with-*)
1270 202 julius
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 19 jeremybenn
    # Reject names that are not valid shell variable names.
1272 202 julius
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273
      as_fn_error "invalid package name: $ac_useropt"
1274
    ac_useropt_orig=$ac_useropt
1275
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276
    case $ac_user_opts in
1277
      *"
1278
"with_$ac_useropt"
1279
"*) ;;
1280
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281
         ac_unrecognized_sep=', ';;
1282
    esac
1283
    eval with_$ac_useropt=\$ac_optarg ;;
1284 19 jeremybenn
 
1285
  -without-* | --without-*)
1286 202 julius
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 19 jeremybenn
    # Reject names that are not valid shell variable names.
1288 202 julius
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289
      as_fn_error "invalid package name: $ac_useropt"
1290
    ac_useropt_orig=$ac_useropt
1291
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292
    case $ac_user_opts in
1293
      *"
1294
"with_$ac_useropt"
1295
"*) ;;
1296
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297
         ac_unrecognized_sep=', ';;
1298
    esac
1299
    eval with_$ac_useropt=no ;;
1300 19 jeremybenn
 
1301
  --x)
1302
    # Obsolete; use --with-x.
1303
    with_x=yes ;;
1304
 
1305
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306
  | --x-incl | --x-inc | --x-in | --x-i)
1307
    ac_prev=x_includes ;;
1308
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310
    x_includes=$ac_optarg ;;
1311
 
1312
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314
    ac_prev=x_libraries ;;
1315
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317
    x_libraries=$ac_optarg ;;
1318
 
1319 202 julius
  -*) as_fn_error "unrecognized option: \`$ac_option'
1320
Try \`$0 --help' for more information."
1321 19 jeremybenn
    ;;
1322
 
1323
  *=*)
1324
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325
    # Reject names that are not valid shell variable names.
1326 202 julius
    case $ac_envvar in #(
1327
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1328
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1329
    esac
1330 19 jeremybenn
    eval $ac_envvar=\$ac_optarg
1331
    export $ac_envvar ;;
1332
 
1333
  *)
1334
    # FIXME: should be removed in autoconf 3.0.
1335 202 julius
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 19 jeremybenn
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337 202 julius
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 19 jeremybenn
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339
    ;;
1340
 
1341
  esac
1342
done
1343
 
1344
if test -n "$ac_prev"; then
1345
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346 202 julius
  as_fn_error "missing argument to $ac_option"
1347 19 jeremybenn
fi
1348
 
1349 202 julius
if test -n "$ac_unrecognized_opts"; then
1350
  case $enable_option_checking in
1351
    no) ;;
1352
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1353
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1354
  esac
1355
fi
1356
 
1357
# Check all directory arguments for consistency.
1358 19 jeremybenn
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359
                datadir sysconfdir sharedstatedir localstatedir includedir \
1360
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361
                libdir localedir mandir
1362
do
1363
  eval ac_val=\$$ac_var
1364 202 julius
  # Remove trailing slashes.
1365 19 jeremybenn
  case $ac_val in
1366 202 julius
    */ )
1367
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368
      eval $ac_var=\$ac_val;;
1369
  esac
1370
  # Be sure to have absolute directory names.
1371
  case $ac_val in
1372 19 jeremybenn
    [\\/$]* | ?:[\\/]* )  continue;;
1373
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1374
  esac
1375 202 julius
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1376 19 jeremybenn
done
1377
 
1378
# There might be people who depend on the old broken behavior: `$host'
1379
# used to hold the argument of --host etc.
1380
# FIXME: To remove some day.
1381
build=$build_alias
1382
host=$host_alias
1383
target=$target_alias
1384
 
1385
# FIXME: To remove some day.
1386
if test "x$host_alias" != x; then
1387
  if test "x$build_alias" = x; then
1388
    cross_compiling=maybe
1389 202 julius
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390 19 jeremybenn
    If a cross compiler is detected then cross compile mode will be used." >&2
1391
  elif test "x$build_alias" != "x$host_alias"; then
1392
    cross_compiling=yes
1393
  fi
1394
fi
1395
 
1396
ac_tool_prefix=
1397
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1398
 
1399
test "$silent" = yes && exec 6>/dev/null
1400
 
1401
 
1402
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1403
ac_ls_di=`ls -di .` &&
1404
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1405 202 julius
  as_fn_error "working directory cannot be determined"
1406 19 jeremybenn
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407 202 julius
  as_fn_error "pwd does not report name of working directory"
1408 19 jeremybenn
 
1409
 
1410
# Find the source files, if location was not specified.
1411
if test -z "$srcdir"; then
1412
  ac_srcdir_defaulted=yes
1413
  # Try the directory containing this script, then the parent directory.
1414 202 julius
  ac_confdir=`$as_dirname -- "$as_myself" ||
1415
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416
         X"$as_myself" : 'X\(//\)[^/]' \| \
1417
         X"$as_myself" : 'X\(//\)$' \| \
1418
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1419
$as_echo X"$as_myself" |
1420 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421
            s//\1/
1422
            q
1423
          }
1424
          /^X\(\/\/\)[^/].*/{
1425
            s//\1/
1426
            q
1427
          }
1428
          /^X\(\/\/\)$/{
1429
            s//\1/
1430
            q
1431
          }
1432
          /^X\(\/\).*/{
1433
            s//\1/
1434
            q
1435
          }
1436
          s/.*/./; q'`
1437
  srcdir=$ac_confdir
1438
  if test ! -r "$srcdir/$ac_unique_file"; then
1439
    srcdir=..
1440
  fi
1441
else
1442
  ac_srcdir_defaulted=no
1443
fi
1444
if test ! -r "$srcdir/$ac_unique_file"; then
1445
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1446 202 julius
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1447 19 jeremybenn
fi
1448
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449
ac_abs_confdir=`(
1450 202 julius
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1451 19 jeremybenn
        pwd)`
1452
# When building in place, set srcdir=.
1453
if test "$ac_abs_confdir" = "$ac_pwd"; then
1454
  srcdir=.
1455
fi
1456
# Remove unnecessary trailing slashes from srcdir.
1457
# Double slashes in file names in object file debugging info
1458
# mess up M-x gdb in Emacs.
1459
case $srcdir in
1460
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461
esac
1462
for ac_var in $ac_precious_vars; do
1463
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464
  eval ac_env_${ac_var}_value=\$${ac_var}
1465
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467
done
1468
 
1469
#
1470
# Report the --help message.
1471
#
1472
if test "$ac_init_help" = "long"; then
1473
  # Omit some internal or obsolete options to make the list less imposing.
1474
  # This message is too long to be a string in the A/UX 3.1 sh.
1475
  cat <<_ACEOF
1476 233 julius
\`configure' configures or1ksim 2010-08-01 to adapt to many kinds of systems.
1477 19 jeremybenn
 
1478
Usage: $0 [OPTION]... [VAR=VALUE]...
1479
 
1480
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481
VAR=VALUE.  See below for descriptions of some of the useful variables.
1482
 
1483
Defaults for the options are specified in brackets.
1484
 
1485
Configuration:
1486
  -h, --help              display this help and exit
1487
      --help=short        display options specific to this package
1488
      --help=recursive    display the short help of all the included packages
1489
  -V, --version           display version information and exit
1490
  -q, --quiet, --silent   do not print \`checking...' messages
1491
      --cache-file=FILE   cache test results in FILE [disabled]
1492
  -C, --config-cache      alias for \`--cache-file=config.cache'
1493
  -n, --no-create         do not create output files
1494
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1495
 
1496
Installation directories:
1497
  --prefix=PREFIX         install architecture-independent files in PREFIX
1498 202 julius
                          [$ac_default_prefix]
1499 19 jeremybenn
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1500 202 julius
                          [PREFIX]
1501 19 jeremybenn
 
1502
By default, \`make install' will install all the files in
1503
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1504
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505
for instance \`--prefix=\$HOME'.
1506
 
1507
For better control, use the options below.
1508
 
1509
Fine tuning of the installation directories:
1510 202 julius
  --bindir=DIR            user executables [EPREFIX/bin]
1511
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1512
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1513
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1514
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1515
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1516
  --libdir=DIR            object code libraries [EPREFIX/lib]
1517
  --includedir=DIR        C header files [PREFIX/include]
1518
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1519
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1520
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1521
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1522
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1523
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1524
  --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/or1ksim@:>@
1525
  --htmldir=DIR           html documentation [DOCDIR]
1526
  --dvidir=DIR            dvi documentation [DOCDIR]
1527
  --pdfdir=DIR            pdf documentation [DOCDIR]
1528
  --psdir=DIR             ps documentation [DOCDIR]
1529 19 jeremybenn
_ACEOF
1530
 
1531
  cat <<\_ACEOF
1532
 
1533
Program names:
1534
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1535
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1536
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1537
 
1538
System types:
1539
  --build=BUILD     configure for building on BUILD [guessed]
1540
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1541
  --target=TARGET   configure for building compilers for TARGET [HOST]
1542
_ACEOF
1543
fi
1544
 
1545
if test -n "$ac_init_help"; then
1546
  case $ac_init_help in
1547 233 julius
     short | recursive ) echo "Configuration of or1ksim 2010-08-01:";;
1548 19 jeremybenn
   esac
1549
  cat <<\_ACEOF
1550
 
1551
Optional Features:
1552 202 julius
  --disable-option-checking  ignore unrecognized --enable/--with options
1553 19 jeremybenn
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1554
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1555
  --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1556
  --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1557
  --enable-fast-install@<:@=PKGS@:>@
1558
                          optimize for fast installation @<:@default=yes@:>@
1559
  --disable-libtool-lock  avoid locking (might break parallel builds)
1560
  --disable-dependency-tracking  speeds up one-time build
1561
  --enable-dependency-tracking   do not reject slow dependency extractors
1562
  --enable-profiling      generate profiling code
1563
  --enable-execution Execution style to use (simple/complex/dynamic)
1564
  --enable-ethphy    compiles sim with ethernet phy support
1565 202 julius
  --enable-unsigned-xori    l.xori immediate operand treated as unsigned
1566 19 jeremybenn
  --enable-range-stats      Specifies, whether we should do register accesses over time analysis.
1567 60 jeremybenn
  --enable-debug          enable library debugging symbols
1568 19 jeremybenn
 
1569
Optional Packages:
1570
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1571
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1572
  --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1573
                          both@:>@
1574 202 julius
  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1575 19 jeremybenn
 
1576
Some influential environment variables:
1577
  CC          C compiler command
1578
  CFLAGS      C compiler flags
1579
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1580
              nonstandard directory 
1581
  LIBS        libraries to pass to the linker, e.g. -l
1582
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
1583
              you have headers in a nonstandard directory 
1584
  CPP         C preprocessor
1585 202 julius
  CCAS        assembler compiler command (defaults to CC)
1586
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1587 19 jeremybenn
 
1588
Use these variables to override the choices made by `configure' or to help
1589
it to find libraries and programs with nonstandard names/locations.
1590
 
1591
Report bugs to .
1592
_ACEOF
1593
ac_status=$?
1594
fi
1595
 
1596
if test "$ac_init_help" = "recursive"; then
1597
  # If there are subdirs, report their specific --help.
1598
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1599 202 julius
    test -d "$ac_dir" ||
1600
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1601
      continue
1602 19 jeremybenn
    ac_builddir=.
1603
 
1604
case "$ac_dir" in
1605
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606
*)
1607 202 julius
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1608 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
1609 202 julius
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1610 19 jeremybenn
  case $ac_top_builddir_sub in
1611
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1613
  esac ;;
1614
esac
1615
ac_abs_top_builddir=$ac_pwd
1616
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617
# for backward compatibility:
1618
ac_top_builddir=$ac_top_build_prefix
1619
 
1620
case $srcdir in
1621
  .)  # We are building in place.
1622
    ac_srcdir=.
1623
    ac_top_srcdir=$ac_top_builddir_sub
1624
    ac_abs_top_srcdir=$ac_pwd ;;
1625
  [\\/]* | ?:[\\/]* )  # Absolute name.
1626
    ac_srcdir=$srcdir$ac_dir_suffix;
1627
    ac_top_srcdir=$srcdir
1628
    ac_abs_top_srcdir=$srcdir ;;
1629
  *) # Relative name.
1630
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1632
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633
esac
1634
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1635
 
1636
    cd "$ac_dir" || { ac_status=$?; continue; }
1637
    # Check for guested configure.
1638
    if test -f "$ac_srcdir/configure.gnu"; then
1639
      echo &&
1640
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641
    elif test -f "$ac_srcdir/configure"; then
1642
      echo &&
1643
      $SHELL "$ac_srcdir/configure" --help=recursive
1644
    else
1645 202 julius
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646 19 jeremybenn
    fi || ac_status=$?
1647
    cd "$ac_pwd" || { ac_status=$?; break; }
1648
  done
1649
fi
1650
 
1651
test -n "$ac_init_help" && exit $ac_status
1652
if $ac_init_version; then
1653
  cat <<\_ACEOF
1654 233 julius
or1ksim configure 2010-08-01
1655 202 julius
generated by GNU Autoconf 2.64
1656 19 jeremybenn
 
1657 202 julius
Copyright (C) 2009 Free Software Foundation, Inc.
1658 19 jeremybenn
This configure script is free software; the Free Software Foundation
1659
gives unlimited permission to copy, distribute and modify it.
1660 202 julius
 
1661
Copyright (C) 1999-2008 OpenCores
1662
Copyright (C) 2008, 2010 Embecosm Limited
1663
 
1664
Contributor Jeremy Bennett 
1665
 
1666
This file is part of OpenRISC 1000 Architectural Simulator.
1667
 
1668
This program is free software; you can redistribute it and/or modify it
1669
under the terms of the GNU General Public License as published by the Free
1670
Software Foundation; either version 3 of the License, or (at your option)
1671
any later version.
1672
 
1673
This program is distributed in the hope that it will be useful, but WITHOUT
1674
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1675
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
1676
more details.
1677
 
1678
You should have received a copy of the GNU General Public License along
1679
with this program.  If not, see .
1680 19 jeremybenn
_ACEOF
1681
  exit
1682
fi
1683 202 julius
 
1684
## ------------------------ ##
1685
## Autoconf initialization. ##
1686
## ------------------------ ##
1687
 
1688
@%:@ ac_fn_c_try_compile LINENO
1689
@%:@ --------------------------
1690
@%:@ Try to compile conftest.$ac_ext, and return whether this succeeded.
1691
ac_fn_c_try_compile ()
1692
{
1693
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694
  rm -f conftest.$ac_objext
1695
  if { { ac_try="$ac_compile"
1696
case "(($ac_try" in
1697
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698
  *) ac_try_echo=$ac_try;;
1699
esac
1700
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701
$as_echo "$ac_try_echo"; } >&5
1702
  (eval "$ac_compile") 2>conftest.err
1703
  ac_status=$?
1704
  if test -s conftest.err; then
1705
    grep -v '^ *+' conftest.err >conftest.er1
1706
    cat conftest.er1 >&5
1707
    mv -f conftest.er1 conftest.err
1708
  fi
1709
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710
  test $ac_status = 0; } && {
1711
         test -z "$ac_c_werror_flag" ||
1712
         test ! -s conftest.err
1713
       } && test -s conftest.$ac_objext; then :
1714
  ac_retval=0
1715
else
1716
  $as_echo "$as_me: failed program was:" >&5
1717
sed 's/^/| /' conftest.$ac_ext >&5
1718
 
1719
        ac_retval=1
1720
fi
1721
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722
  return $ac_retval
1723
 
1724
} @%:@ ac_fn_c_try_compile
1725
 
1726
@%:@ ac_fn_c_try_cpp LINENO
1727
@%:@ ----------------------
1728
@%:@ Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1729
ac_fn_c_try_cpp ()
1730
{
1731
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1733
case "(($ac_try" in
1734
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735
  *) ac_try_echo=$ac_try;;
1736
esac
1737
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738
$as_echo "$ac_try_echo"; } >&5
1739
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740
  ac_status=$?
1741
  if test -s conftest.err; then
1742
    grep -v '^ *+' conftest.err >conftest.er1
1743
    cat conftest.er1 >&5
1744
    mv -f conftest.er1 conftest.err
1745
  fi
1746
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747
  test $ac_status = 0; } >/dev/null && {
1748
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1749
         test ! -s conftest.err
1750
       }; then :
1751
  ac_retval=0
1752
else
1753
  $as_echo "$as_me: failed program was:" >&5
1754
sed 's/^/| /' conftest.$ac_ext >&5
1755
 
1756
    ac_retval=1
1757
fi
1758
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759
  return $ac_retval
1760
 
1761
} @%:@ ac_fn_c_try_cpp
1762
 
1763
@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1764
@%:@ -------------------------------------------------------
1765
@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1766
@%:@ the include files in INCLUDES and setting the cache variable VAR
1767
@%:@ accordingly.
1768
ac_fn_c_check_header_mongrel ()
1769
{
1770
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1772
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773
$as_echo_n "checking for $2... " >&6; }
1774
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1775
  $as_echo_n "(cached) " >&6
1776
fi
1777
eval ac_res=\$$3
1778
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779
$as_echo "$ac_res" >&6; }
1780
else
1781
  # Is the header compilable?
1782
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1783
$as_echo_n "checking $2 usability... " >&6; }
1784
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785
/* end confdefs.h.  */
1786
$4
1787
@%:@include <$2>
1788
_ACEOF
1789
if ac_fn_c_try_compile "$LINENO"; then :
1790
  ac_header_compiler=yes
1791
else
1792
  ac_header_compiler=no
1793
fi
1794
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1796
$as_echo "$ac_header_compiler" >&6; }
1797
 
1798
# Is the header present?
1799
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1800
$as_echo_n "checking $2 presence... " >&6; }
1801
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802
/* end confdefs.h.  */
1803
@%:@include <$2>
1804
_ACEOF
1805
if ac_fn_c_try_cpp "$LINENO"; then :
1806
  ac_header_preproc=yes
1807
else
1808
  ac_header_preproc=no
1809
fi
1810
rm -f conftest.err conftest.$ac_ext
1811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1812
$as_echo "$ac_header_preproc" >&6; }
1813
 
1814
# So?  What about this header?
1815
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1816
  yes:no: )
1817
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1818
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1819
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1820
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1821
    ;;
1822
  no:yes:* )
1823
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1824
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1825
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1826
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1827
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1828
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1829
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1830
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1831
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833
( cat <<\_ASBOX
1834
## ------------------------------------- ##
1835
## Report this to openrisc@opencores.org ##
1836
## ------------------------------------- ##
1837
_ASBOX
1838
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1839
    ;;
1840
esac
1841
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842
$as_echo_n "checking for $2... " >&6; }
1843
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1844
  $as_echo_n "(cached) " >&6
1845
else
1846
  eval "$3=\$ac_header_compiler"
1847
fi
1848
eval ac_res=\$$3
1849
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850
$as_echo "$ac_res" >&6; }
1851
fi
1852
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853
 
1854
} @%:@ ac_fn_c_check_header_mongrel
1855
 
1856
@%:@ ac_fn_c_try_run LINENO
1857
@%:@ ----------------------
1858
@%:@ Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1859
@%:@ that executables *can* be run.
1860
ac_fn_c_try_run ()
1861
{
1862
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863
  if { { ac_try="$ac_link"
1864
case "(($ac_try" in
1865
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866
  *) ac_try_echo=$ac_try;;
1867
esac
1868
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869
$as_echo "$ac_try_echo"; } >&5
1870
  (eval "$ac_link") 2>&5
1871
  ac_status=$?
1872
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1874
  { { case "(($ac_try" in
1875
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876
  *) ac_try_echo=$ac_try;;
1877
esac
1878
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879
$as_echo "$ac_try_echo"; } >&5
1880
  (eval "$ac_try") 2>&5
1881
  ac_status=$?
1882
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883
  test $ac_status = 0; }; }; then :
1884
  ac_retval=0
1885
else
1886
  $as_echo "$as_me: program exited with status $ac_status" >&5
1887
       $as_echo "$as_me: failed program was:" >&5
1888
sed 's/^/| /' conftest.$ac_ext >&5
1889
 
1890
       ac_retval=$ac_status
1891
fi
1892
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1893
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894
  return $ac_retval
1895
 
1896
} @%:@ ac_fn_c_try_run
1897
 
1898
@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1899
@%:@ -------------------------------------------------------
1900
@%:@ Tests whether HEADER exists and can be compiled using the include files in
1901
@%:@ INCLUDES, setting the cache variable VAR accordingly.
1902
ac_fn_c_check_header_compile ()
1903
{
1904
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906
$as_echo_n "checking for $2... " >&6; }
1907
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1908
  $as_echo_n "(cached) " >&6
1909
else
1910
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911
/* end confdefs.h.  */
1912
$4
1913
@%:@include <$2>
1914
_ACEOF
1915
if ac_fn_c_try_compile "$LINENO"; then :
1916
  eval "$3=yes"
1917
else
1918
  eval "$3=no"
1919
fi
1920
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921
fi
1922
eval ac_res=\$$3
1923
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924
$as_echo "$ac_res" >&6; }
1925
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1926
 
1927
} @%:@ ac_fn_c_check_header_compile
1928
 
1929
@%:@ ac_fn_c_try_link LINENO
1930
@%:@ -----------------------
1931
@%:@ Try to link conftest.$ac_ext, and return whether this succeeded.
1932
ac_fn_c_try_link ()
1933
{
1934
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935
  rm -f conftest.$ac_objext conftest$ac_exeext
1936
  if { { ac_try="$ac_link"
1937
case "(($ac_try" in
1938
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939
  *) ac_try_echo=$ac_try;;
1940
esac
1941
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942
$as_echo "$ac_try_echo"; } >&5
1943
  (eval "$ac_link") 2>conftest.err
1944
  ac_status=$?
1945
  if test -s conftest.err; then
1946
    grep -v '^ *+' conftest.err >conftest.er1
1947
    cat conftest.er1 >&5
1948
    mv -f conftest.er1 conftest.err
1949
  fi
1950
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951
  test $ac_status = 0; } && {
1952
         test -z "$ac_c_werror_flag" ||
1953
         test ! -s conftest.err
1954
       } && test -s conftest$ac_exeext && {
1955
         test "$cross_compiling" = yes ||
1956
         $as_test_x conftest$ac_exeext
1957
       }; then :
1958
  ac_retval=0
1959
else
1960
  $as_echo "$as_me: failed program was:" >&5
1961
sed 's/^/| /' conftest.$ac_ext >&5
1962
 
1963
        ac_retval=1
1964
fi
1965
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1966
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1967
  # interfere with the next link command; also delete a directory that is
1968
  # left behind by Apple's compiler.  We do this before executing the actions.
1969
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971
  return $ac_retval
1972
 
1973
} @%:@ ac_fn_c_try_link
1974
 
1975
@%:@ ac_fn_c_check_func LINENO FUNC VAR
1976
@%:@ ----------------------------------
1977
@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1978
ac_fn_c_check_func ()
1979
{
1980
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982
$as_echo_n "checking for $2... " >&6; }
1983
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1984
  $as_echo_n "(cached) " >&6
1985
else
1986
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987
/* end confdefs.h.  */
1988
/* Define $2 to an innocuous variant, in case  declares $2.
1989
   For example, HP-UX 11i  declares gettimeofday.  */
1990
#define $2 innocuous_$2
1991
 
1992
/* System header to define __stub macros and hopefully few prototypes,
1993
    which can conflict with char $2 (); below.
1994
    Prefer  to  if __STDC__ is defined, since
1995
     exists even on freestanding compilers.  */
1996
 
1997
#ifdef __STDC__
1998
# include 
1999
#else
2000
# include 
2001
#endif
2002
 
2003
#undef $2
2004
 
2005
/* Override any GCC internal prototype to avoid an error.
2006
   Use char because int might match the return type of a GCC
2007
   builtin and then its argument prototype would still apply.  */
2008
#ifdef __cplusplus
2009
extern "C"
2010
#endif
2011
char $2 ();
2012
/* The GNU C library defines this for functions which it implements
2013
    to always fail with ENOSYS.  Some functions are actually named
2014
    something starting with __ and the normal name is an alias.  */
2015
#if defined __stub_$2 || defined __stub___$2
2016
choke me
2017
#endif
2018
 
2019
int
2020
main ()
2021
{
2022
return $2 ();
2023
  ;
2024
  return 0;
2025
}
2026
_ACEOF
2027
if ac_fn_c_try_link "$LINENO"; then :
2028
  eval "$3=yes"
2029
else
2030
  eval "$3=no"
2031
fi
2032
rm -f core conftest.err conftest.$ac_objext \
2033
    conftest$ac_exeext conftest.$ac_ext
2034
fi
2035
eval ac_res=\$$3
2036
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037
$as_echo "$ac_res" >&6; }
2038
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2039
 
2040
} @%:@ ac_fn_c_check_func
2041
 
2042
@%:@ ac_fn_c_check_decl LINENO SYMBOL VAR
2043
@%:@ ------------------------------------
2044
@%:@ Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2045
ac_fn_c_check_decl ()
2046
{
2047
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2049
$as_echo_n "checking whether $2 is declared... " >&6; }
2050
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2051
  $as_echo_n "(cached) " >&6
2052
else
2053
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054
/* end confdefs.h.  */
2055
$4
2056
int
2057
main ()
2058
{
2059
@%:@ifndef $2
2060
  (void) $2;
2061
@%:@endif
2062
 
2063
  ;
2064
  return 0;
2065
}
2066
_ACEOF
2067
if ac_fn_c_try_compile "$LINENO"; then :
2068
  eval "$3=yes"
2069
else
2070
  eval "$3=no"
2071
fi
2072
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073
fi
2074
eval ac_res=\$$3
2075
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076
$as_echo "$ac_res" >&6; }
2077
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2078
 
2079
} @%:@ ac_fn_c_check_decl
2080
 
2081
@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2082
@%:@ -------------------------------------------
2083
@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
2084
@%:@ variable VAR accordingly.
2085
ac_fn_c_check_type ()
2086
{
2087
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089
$as_echo_n "checking for $2... " >&6; }
2090
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2091
  $as_echo_n "(cached) " >&6
2092
else
2093
  eval "$3=no"
2094
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095
/* end confdefs.h.  */
2096
$4
2097
int
2098
main ()
2099
{
2100
if (sizeof ($2))
2101
         return 0;
2102
  ;
2103
  return 0;
2104
}
2105
_ACEOF
2106
if ac_fn_c_try_compile "$LINENO"; then :
2107
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108
/* end confdefs.h.  */
2109
$4
2110
int
2111
main ()
2112
{
2113
if (sizeof (($2)))
2114
            return 0;
2115
  ;
2116
  return 0;
2117
}
2118
_ACEOF
2119
if ac_fn_c_try_compile "$LINENO"; then :
2120
 
2121
else
2122
  eval "$3=yes"
2123
fi
2124
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125
fi
2126
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127
fi
2128
eval ac_res=\$$3
2129
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130
$as_echo "$ac_res" >&6; }
2131
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2132
 
2133
} @%:@ ac_fn_c_check_type
2134
 
2135
@%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2136
@%:@ --------------------------------------------
2137
@%:@ Tries to find the compile-time value of EXPR in a program that includes
2138
@%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
2139
@%:@ computed
2140
ac_fn_c_compute_int ()
2141
{
2142
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143
  if test "$cross_compiling" = yes; then
2144
    # Depending upon the size, compute the lo and hi bounds.
2145
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146
/* end confdefs.h.  */
2147
$4
2148
int
2149
main ()
2150
{
2151
static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
2152
test_array @<:@0@:>@ = 0
2153
 
2154
  ;
2155
  return 0;
2156
}
2157
_ACEOF
2158
if ac_fn_c_try_compile "$LINENO"; then :
2159
  ac_lo=0 ac_mid=0
2160
  while :; do
2161
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162
/* end confdefs.h.  */
2163
$4
2164
int
2165
main ()
2166
{
2167
static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2168
test_array @<:@0@:>@ = 0
2169
 
2170
  ;
2171
  return 0;
2172
}
2173
_ACEOF
2174
if ac_fn_c_try_compile "$LINENO"; then :
2175
  ac_hi=$ac_mid; break
2176
else
2177
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2178
                        if test $ac_lo -le $ac_mid; then
2179
                          ac_lo= ac_hi=
2180
                          break
2181
                        fi
2182
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2183
fi
2184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185
  done
2186
else
2187
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188
/* end confdefs.h.  */
2189
$4
2190
int
2191
main ()
2192
{
2193
static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
2194
test_array @<:@0@:>@ = 0
2195
 
2196
  ;
2197
  return 0;
2198
}
2199
_ACEOF
2200
if ac_fn_c_try_compile "$LINENO"; then :
2201
  ac_hi=-1 ac_mid=-1
2202
  while :; do
2203
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204
/* end confdefs.h.  */
2205
$4
2206
int
2207
main ()
2208
{
2209
static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
2210
test_array @<:@0@:>@ = 0
2211
 
2212
  ;
2213
  return 0;
2214
}
2215
_ACEOF
2216
if ac_fn_c_try_compile "$LINENO"; then :
2217
  ac_lo=$ac_mid; break
2218
else
2219
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2220
                        if test $ac_mid -le $ac_hi; then
2221
                          ac_lo= ac_hi=
2222
                          break
2223
                        fi
2224
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2225
fi
2226
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227
  done
2228
else
2229
  ac_lo= ac_hi=
2230
fi
2231
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232
fi
2233
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234
# Binary search between lo and hi bounds.
2235
while test "x$ac_lo" != "x$ac_hi"; do
2236
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2237
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238
/* end confdefs.h.  */
2239
$4
2240
int
2241
main ()
2242
{
2243
static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2244
test_array @<:@0@:>@ = 0
2245
 
2246
  ;
2247
  return 0;
2248
}
2249
_ACEOF
2250
if ac_fn_c_try_compile "$LINENO"; then :
2251
  ac_hi=$ac_mid
2252
else
2253
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2254
fi
2255
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256
done
2257
case $ac_lo in @%:@((
2258
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2259
'') ac_retval=1 ;;
2260
esac
2261
  else
2262
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263
/* end confdefs.h.  */
2264
$4
2265
static long int longval () { return $2; }
2266
static unsigned long int ulongval () { return $2; }
2267
@%:@include 
2268
@%:@include 
2269
int
2270
main ()
2271
{
2272
 
2273
  FILE *f = fopen ("conftest.val", "w");
2274
  if (! f)
2275
    return 1;
2276
  if (($2) < 0)
2277
    {
2278
      long int i = longval ();
2279
      if (i != ($2))
2280
        return 1;
2281
      fprintf (f, "%ld", i);
2282
    }
2283
  else
2284
    {
2285
      unsigned long int i = ulongval ();
2286
      if (i != ($2))
2287
        return 1;
2288
      fprintf (f, "%lu", i);
2289
    }
2290
  /* Do not output a trailing newline, as this causes \r\n confusion
2291
     on some platforms.  */
2292
  return ferror (f) || fclose (f) != 0;
2293
 
2294
  ;
2295
  return 0;
2296
}
2297
_ACEOF
2298
if ac_fn_c_try_run "$LINENO"; then :
2299
  echo >>conftest.val; read $3 
2300
else
2301
  ac_retval=1
2302
fi
2303
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2304
  conftest.$ac_objext conftest.beam conftest.$ac_ext
2305
rm -f conftest.val
2306
 
2307
  fi
2308
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2309
  return $ac_retval
2310
 
2311
} @%:@ ac_fn_c_compute_int
2312 19 jeremybenn
cat >config.log <<_ACEOF
2313
This file contains any messages produced by compilers while
2314
running configure, to aid debugging if configure makes a mistake.
2315
 
2316 233 julius
It was created by or1ksim $as_me 2010-08-01, which was
2317 202 julius
generated by GNU Autoconf 2.64.  Invocation command line was
2318 19 jeremybenn
 
2319
  $ $0 $@
2320
 
2321
_ACEOF
2322
exec 5>>config.log
2323
{
2324
cat <<_ASUNAME
2325 202 julius
## --------- ##
2326
## Platform. ##
2327
## --------- ##
2328 19 jeremybenn
 
2329
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2330
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2331
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2332
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2333
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2334
 
2335
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2336
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2337
 
2338
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2339
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2340
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2341
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2342
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2343
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2344
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2345
 
2346
_ASUNAME
2347
 
2348
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349
for as_dir in $PATH
2350
do
2351
  IFS=$as_save_IFS
2352
  test -z "$as_dir" && as_dir=.
2353 202 julius
    $as_echo "PATH: $as_dir"
2354
  done
2355 19 jeremybenn
IFS=$as_save_IFS
2356
 
2357
} >&5
2358
 
2359
cat >&5 <<_ACEOF
2360
 
2361
 
2362 202 julius
## ----------- ##
2363
## Core tests. ##
2364
## ----------- ##
2365 19 jeremybenn
 
2366
_ACEOF
2367
 
2368
 
2369
# Keep a trace of the command line.
2370
# Strip out --no-create and --no-recursion so they do not pile up.
2371
# Strip out --silent because we don't want to record it for future runs.
2372
# Also quote any args containing shell meta-characters.
2373
# Make two passes to allow for proper duplicate-argument suppression.
2374
ac_configure_args=
2375
ac_configure_args0=
2376
ac_configure_args1=
2377
ac_must_keep_next=false
2378
for ac_pass in 1 2
2379
do
2380
  for ac_arg
2381
  do
2382
    case $ac_arg in
2383
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2384
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2385
    | -silent | --silent | --silen | --sile | --sil)
2386
      continue ;;
2387
    *\'*)
2388 202 julius
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2389 19 jeremybenn
    esac
2390
    case $ac_pass in
2391 202 julius
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2392 19 jeremybenn
    2)
2393 202 julius
      as_fn_append ac_configure_args1 " '$ac_arg'"
2394 19 jeremybenn
      if test $ac_must_keep_next = true; then
2395
        ac_must_keep_next=false # Got value, back to normal.
2396
      else
2397
        case $ac_arg in
2398
          *=* | --config-cache | -C | -disable-* | --disable-* \
2399
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2400
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2401
          | -with-* | --with-* | -without-* | --without-* | --x)
2402
            case "$ac_configure_args0 " in
2403
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2404
            esac
2405
            ;;
2406
          -* ) ac_must_keep_next=true ;;
2407
        esac
2408
      fi
2409 202 julius
      as_fn_append ac_configure_args " '$ac_arg'"
2410 19 jeremybenn
      ;;
2411
    esac
2412
  done
2413
done
2414 202 julius
{ ac_configure_args0=; unset ac_configure_args0;}
2415
{ ac_configure_args1=; unset ac_configure_args1;}
2416 19 jeremybenn
 
2417
# When interrupted or exit'd, cleanup temporary files, and complete
2418
# config.log.  We remove comments because anyway the quotes in there
2419
# would cause problems or look ugly.
2420
# WARNING: Use '\'' to represent an apostrophe within the trap.
2421
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2422
trap 'exit_status=$?
2423
  # Save into config.log some information that might help in debugging.
2424
  {
2425
    echo
2426
 
2427
    cat <<\_ASBOX
2428 202 julius
## ---------------- ##
2429
## Cache variables. ##
2430
## ---------------- ##
2431 19 jeremybenn
_ASBOX
2432
    echo
2433
    # The following way of writing the cache mishandles newlines in values,
2434
(
2435
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2436
    eval ac_val=\$$ac_var
2437
    case $ac_val in #(
2438
    *${as_nl}*)
2439
      case $ac_var in #(
2440 202 julius
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2441
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2442 19 jeremybenn
      esac
2443
      case $ac_var in #(
2444
      _ | IFS | as_nl) ;; #(
2445 202 julius
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2446
      *) { eval $ac_var=; unset $ac_var;} ;;
2447 19 jeremybenn
      esac ;;
2448
    esac
2449
  done
2450
  (set) 2>&1 |
2451
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2452
    *${as_nl}ac_space=\ *)
2453
      sed -n \
2454
        "s/'\''/'\''\\\\'\'''\''/g;
2455
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2456
      ;; #(
2457
    *)
2458
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2459
      ;;
2460
    esac |
2461
    sort
2462
)
2463
    echo
2464
 
2465
    cat <<\_ASBOX
2466 202 julius
## ----------------- ##
2467
## Output variables. ##
2468
## ----------------- ##
2469 19 jeremybenn
_ASBOX
2470
    echo
2471
    for ac_var in $ac_subst_vars
2472
    do
2473
      eval ac_val=\$$ac_var
2474
      case $ac_val in
2475 202 julius
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2476 19 jeremybenn
      esac
2477 202 julius
      $as_echo "$ac_var='\''$ac_val'\''"
2478 19 jeremybenn
    done | sort
2479
    echo
2480
 
2481
    if test -n "$ac_subst_files"; then
2482
      cat <<\_ASBOX
2483 202 julius
## ------------------- ##
2484
## File substitutions. ##
2485
## ------------------- ##
2486 19 jeremybenn
_ASBOX
2487
      echo
2488
      for ac_var in $ac_subst_files
2489
      do
2490
        eval ac_val=\$$ac_var
2491
        case $ac_val in
2492 202 julius
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2493 19 jeremybenn
        esac
2494 202 julius
        $as_echo "$ac_var='\''$ac_val'\''"
2495 19 jeremybenn
      done | sort
2496
      echo
2497
    fi
2498
 
2499
    if test -s confdefs.h; then
2500
      cat <<\_ASBOX
2501 202 julius
## ----------- ##
2502
## confdefs.h. ##
2503
## ----------- ##
2504 19 jeremybenn
_ASBOX
2505
      echo
2506
      cat confdefs.h
2507
      echo
2508
    fi
2509
    test "$ac_signal" != 0 &&
2510 202 julius
      $as_echo "$as_me: caught signal $ac_signal"
2511
    $as_echo "$as_me: exit $exit_status"
2512 19 jeremybenn
  } >&5
2513
  rm -f core *.core core.conftest.* &&
2514
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2515
    exit $exit_status
2516
' 0
2517
for ac_signal in 1 2 13 15; do
2518 202 julius
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2519 19 jeremybenn
done
2520
ac_signal=0
2521
 
2522
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2523
rm -f -r conftest* confdefs.h
2524
 
2525 202 julius
$as_echo "/* confdefs.h */" > confdefs.h
2526
 
2527 19 jeremybenn
# Predefined preprocessor variables.
2528
 
2529
cat >>confdefs.h <<_ACEOF
2530
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2531
_ACEOF
2532
 
2533
cat >>confdefs.h <<_ACEOF
2534
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2535
_ACEOF
2536
 
2537
cat >>confdefs.h <<_ACEOF
2538
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2539
_ACEOF
2540
 
2541
cat >>confdefs.h <<_ACEOF
2542
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2543
_ACEOF
2544
 
2545
cat >>confdefs.h <<_ACEOF
2546
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2547
_ACEOF
2548
 
2549 202 julius
cat >>confdefs.h <<_ACEOF
2550
@%:@define PACKAGE_URL "$PACKAGE_URL"
2551
_ACEOF
2552 19 jeremybenn
 
2553 202 julius
 
2554 19 jeremybenn
# Let the site file select an alternate cache file if it wants to.
2555 202 julius
# Prefer an explicitly selected file to automatically selected ones.
2556
ac_site_file1=NONE
2557
ac_site_file2=NONE
2558 19 jeremybenn
if test -n "$CONFIG_SITE"; then
2559 202 julius
  ac_site_file1=$CONFIG_SITE
2560 19 jeremybenn
elif test "x$prefix" != xNONE; then
2561 202 julius
  ac_site_file1=$prefix/share/config.site
2562
  ac_site_file2=$prefix/etc/config.site
2563 19 jeremybenn
else
2564 202 julius
  ac_site_file1=$ac_default_prefix/share/config.site
2565
  ac_site_file2=$ac_default_prefix/etc/config.site
2566 19 jeremybenn
fi
2567 202 julius
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2568 19 jeremybenn
do
2569 202 julius
  test "x$ac_site_file" = xNONE && continue
2570 19 jeremybenn
  if test -r "$ac_site_file"; then
2571 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2572
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2573 19 jeremybenn
    sed 's/^/| /' "$ac_site_file" >&5
2574
    . "$ac_site_file"
2575
  fi
2576
done
2577
 
2578
if test -r "$cache_file"; then
2579
  # Some versions of bash will fail to source /dev/null (special
2580
  # files actually), so we avoid doing that.
2581
  if test -f "$cache_file"; then
2582 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2583
$as_echo "$as_me: loading cache $cache_file" >&6;}
2584 19 jeremybenn
    case $cache_file in
2585
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2586
      *)                      . "./$cache_file";;
2587
    esac
2588
  fi
2589
else
2590 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2591
$as_echo "$as_me: creating cache $cache_file" >&6;}
2592 19 jeremybenn
  >$cache_file
2593
fi
2594
 
2595
# Check that the precious variables saved in the cache have kept the same
2596
# value.
2597
ac_cache_corrupted=false
2598
for ac_var in $ac_precious_vars; do
2599
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2600
  eval ac_new_set=\$ac_env_${ac_var}_set
2601
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2602
  eval ac_new_val=\$ac_env_${ac_var}_value
2603
  case $ac_old_set,$ac_new_set in
2604
    set,)
2605 202 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2606
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2607 19 jeremybenn
      ac_cache_corrupted=: ;;
2608
    ,set)
2609 202 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2610
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2611 19 jeremybenn
      ac_cache_corrupted=: ;;
2612
    ,);;
2613
    *)
2614
      if test "x$ac_old_val" != "x$ac_new_val"; then
2615 202 julius
        # differences in whitespace do not lead to failure.
2616
        ac_old_val_w=`echo x $ac_old_val`
2617
        ac_new_val_w=`echo x $ac_new_val`
2618
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2619
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2620
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2621
          ac_cache_corrupted=:
2622
        else
2623
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2624
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2625
          eval $ac_var=\$ac_old_val
2626
        fi
2627
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2628
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2629
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2630
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2631 19 jeremybenn
      fi;;
2632
  esac
2633
  # Pass precious variables to config.status.
2634
  if test "$ac_new_set" = set; then
2635
    case $ac_new_val in
2636 202 julius
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2637 19 jeremybenn
    *) ac_arg=$ac_var=$ac_new_val ;;
2638
    esac
2639
    case " $ac_configure_args " in
2640
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2641 202 julius
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2642 19 jeremybenn
    esac
2643
  fi
2644
done
2645
if $ac_cache_corrupted; then
2646 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2647
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2648
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2649
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2650
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2651 19 jeremybenn
fi
2652 202 julius
## -------------------- ##
2653
## Main body of script. ##
2654
## -------------------- ##
2655 19 jeremybenn
 
2656
ac_ext=c
2657
ac_cpp='$CPP $CPPFLAGS'
2658
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2661
 
2662
 
2663
 
2664
 
2665 202 julius
# Generically use extensions such as _GNU_SOURCE if available.
2666 19 jeremybenn
ac_ext=c
2667
ac_cpp='$CPP $CPPFLAGS'
2668
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2671
if test -n "$ac_tool_prefix"; then
2672
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2673
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2674 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675
$as_echo_n "checking for $ac_word... " >&6; }
2676
if test "${ac_cv_prog_CC+set}" = set; then :
2677
  $as_echo_n "(cached) " >&6
2678 19 jeremybenn
else
2679
  if test -n "$CC"; then
2680
  ac_cv_prog_CC="$CC" # Let the user override the test.
2681
else
2682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683
for as_dir in $PATH
2684
do
2685
  IFS=$as_save_IFS
2686
  test -z "$as_dir" && as_dir=.
2687 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
2688 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2689
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2690 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 19 jeremybenn
    break 2
2692
  fi
2693
done
2694 202 julius
  done
2695 19 jeremybenn
IFS=$as_save_IFS
2696
 
2697
fi
2698
fi
2699
CC=$ac_cv_prog_CC
2700
if test -n "$CC"; then
2701 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2702
$as_echo "$CC" >&6; }
2703 19 jeremybenn
else
2704 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705
$as_echo "no" >&6; }
2706 19 jeremybenn
fi
2707
 
2708
 
2709
fi
2710
if test -z "$ac_cv_prog_CC"; then
2711
  ac_ct_CC=$CC
2712
  # Extract the first word of "gcc", so it can be a program name with args.
2713
set dummy gcc; ac_word=$2
2714 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715
$as_echo_n "checking for $ac_word... " >&6; }
2716
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2717
  $as_echo_n "(cached) " >&6
2718 19 jeremybenn
else
2719
  if test -n "$ac_ct_CC"; then
2720
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2721
else
2722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723
for as_dir in $PATH
2724
do
2725
  IFS=$as_save_IFS
2726
  test -z "$as_dir" && as_dir=.
2727 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
2728 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729
    ac_cv_prog_ac_ct_CC="gcc"
2730 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 19 jeremybenn
    break 2
2732
  fi
2733
done
2734 202 julius
  done
2735 19 jeremybenn
IFS=$as_save_IFS
2736
 
2737
fi
2738
fi
2739
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2740
if test -n "$ac_ct_CC"; then
2741 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2742
$as_echo "$ac_ct_CC" >&6; }
2743 19 jeremybenn
else
2744 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745
$as_echo "no" >&6; }
2746 19 jeremybenn
fi
2747
 
2748
  if test "x$ac_ct_CC" = x; then
2749
    CC=""
2750
  else
2751
    case $cross_compiling:$ac_tool_warned in
2752
yes:)
2753 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2754
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2755 19 jeremybenn
ac_tool_warned=yes ;;
2756
esac
2757
    CC=$ac_ct_CC
2758
  fi
2759
else
2760
  CC="$ac_cv_prog_CC"
2761
fi
2762
 
2763
if test -z "$CC"; then
2764
          if test -n "$ac_tool_prefix"; then
2765
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2766
set dummy ${ac_tool_prefix}cc; ac_word=$2
2767 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768
$as_echo_n "checking for $ac_word... " >&6; }
2769
if test "${ac_cv_prog_CC+set}" = set; then :
2770
  $as_echo_n "(cached) " >&6
2771 19 jeremybenn
else
2772
  if test -n "$CC"; then
2773
  ac_cv_prog_CC="$CC" # Let the user override the test.
2774
else
2775
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776
for as_dir in $PATH
2777
do
2778
  IFS=$as_save_IFS
2779
  test -z "$as_dir" && as_dir=.
2780 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
2781 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2783 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 19 jeremybenn
    break 2
2785
  fi
2786
done
2787 202 julius
  done
2788 19 jeremybenn
IFS=$as_save_IFS
2789
 
2790
fi
2791
fi
2792
CC=$ac_cv_prog_CC
2793
if test -n "$CC"; then
2794 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2795
$as_echo "$CC" >&6; }
2796 19 jeremybenn
else
2797 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798
$as_echo "no" >&6; }
2799 19 jeremybenn
fi
2800
 
2801
 
2802
  fi
2803
fi
2804
if test -z "$CC"; then
2805
  # Extract the first word of "cc", so it can be a program name with args.
2806
set dummy cc; ac_word=$2
2807 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808
$as_echo_n "checking for $ac_word... " >&6; }
2809
if test "${ac_cv_prog_CC+set}" = set; then :
2810
  $as_echo_n "(cached) " >&6
2811 19 jeremybenn
else
2812
  if test -n "$CC"; then
2813
  ac_cv_prog_CC="$CC" # Let the user override the test.
2814
else
2815
  ac_prog_rejected=no
2816
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817
for as_dir in $PATH
2818
do
2819
  IFS=$as_save_IFS
2820
  test -z "$as_dir" && as_dir=.
2821 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
2822 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2824
       ac_prog_rejected=yes
2825
       continue
2826
     fi
2827
    ac_cv_prog_CC="cc"
2828 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 19 jeremybenn
    break 2
2830
  fi
2831
done
2832 202 julius
  done
2833 19 jeremybenn
IFS=$as_save_IFS
2834
 
2835
if test $ac_prog_rejected = yes; then
2836
  # We found a bogon in the path, so make sure we never use it.
2837
  set dummy $ac_cv_prog_CC
2838
  shift
2839
  if test $@%:@ != 0; then
2840
    # We chose a different compiler from the bogus one.
2841
    # However, it has the same basename, so the bogon will be chosen
2842
    # first if we set CC to just the basename; use the full file name.
2843
    shift
2844
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2845
  fi
2846
fi
2847
fi
2848
fi
2849
CC=$ac_cv_prog_CC
2850
if test -n "$CC"; then
2851 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2852
$as_echo "$CC" >&6; }
2853 19 jeremybenn
else
2854 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855
$as_echo "no" >&6; }
2856 19 jeremybenn
fi
2857
 
2858
 
2859
fi
2860
if test -z "$CC"; then
2861
  if test -n "$ac_tool_prefix"; then
2862
  for ac_prog in cl.exe
2863
  do
2864
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2865
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2866 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867
$as_echo_n "checking for $ac_word... " >&6; }
2868
if test "${ac_cv_prog_CC+set}" = set; then :
2869
  $as_echo_n "(cached) " >&6
2870 19 jeremybenn
else
2871
  if test -n "$CC"; then
2872
  ac_cv_prog_CC="$CC" # Let the user override the test.
2873
else
2874
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875
for as_dir in $PATH
2876
do
2877
  IFS=$as_save_IFS
2878
  test -z "$as_dir" && as_dir=.
2879 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
2880 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2882 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 19 jeremybenn
    break 2
2884
  fi
2885
done
2886 202 julius
  done
2887 19 jeremybenn
IFS=$as_save_IFS
2888
 
2889
fi
2890
fi
2891
CC=$ac_cv_prog_CC
2892
if test -n "$CC"; then
2893 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2894
$as_echo "$CC" >&6; }
2895 19 jeremybenn
else
2896 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897
$as_echo "no" >&6; }
2898 19 jeremybenn
fi
2899
 
2900
 
2901
    test -n "$CC" && break
2902
  done
2903
fi
2904
if test -z "$CC"; then
2905
  ac_ct_CC=$CC
2906
  for ac_prog in cl.exe
2907
do
2908
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2909
set dummy $ac_prog; ac_word=$2
2910 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911
$as_echo_n "checking for $ac_word... " >&6; }
2912
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2913
  $as_echo_n "(cached) " >&6
2914 19 jeremybenn
else
2915
  if test -n "$ac_ct_CC"; then
2916
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2917
else
2918
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919
for as_dir in $PATH
2920
do
2921
  IFS=$as_save_IFS
2922
  test -z "$as_dir" && as_dir=.
2923 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
2924 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925
    ac_cv_prog_ac_ct_CC="$ac_prog"
2926 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 19 jeremybenn
    break 2
2928
  fi
2929
done
2930 202 julius
  done
2931 19 jeremybenn
IFS=$as_save_IFS
2932
 
2933
fi
2934
fi
2935
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2936
if test -n "$ac_ct_CC"; then
2937 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2938
$as_echo "$ac_ct_CC" >&6; }
2939 19 jeremybenn
else
2940 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941
$as_echo "no" >&6; }
2942 19 jeremybenn
fi
2943
 
2944
 
2945
  test -n "$ac_ct_CC" && break
2946
done
2947
 
2948
  if test "x$ac_ct_CC" = x; then
2949
    CC=""
2950
  else
2951
    case $cross_compiling:$ac_tool_warned in
2952
yes:)
2953 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2954
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2955 19 jeremybenn
ac_tool_warned=yes ;;
2956
esac
2957
    CC=$ac_ct_CC
2958
  fi
2959
fi
2960
 
2961
fi
2962
 
2963
 
2964 202 julius
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2965
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2966
as_fn_error "no acceptable C compiler found in \$PATH
2967
See \`config.log' for more details." "$LINENO" 5; }
2968 19 jeremybenn
 
2969
# Provide some information about the compiler.
2970 202 julius
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2971
set X $ac_compile
2972
ac_compiler=$2
2973
for ac_option in --version -v -V -qversion; do
2974
  { { ac_try="$ac_compiler $ac_option >&5"
2975 19 jeremybenn
case "(($ac_try" in
2976
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977
  *) ac_try_echo=$ac_try;;
2978
esac
2979 202 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980
$as_echo "$ac_try_echo"; } >&5
2981
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2982 19 jeremybenn
  ac_status=$?
2983 202 julius
  if test -s conftest.err; then
2984
    sed '10a\
2985
... rest of stderr output deleted ...
2986
         10q' conftest.err >conftest.er1
2987
    cat conftest.er1 >&5
2988
    rm -f conftest.er1 conftest.err
2989
  fi
2990
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2991
  test $ac_status = 0; }
2992
done
2993 19 jeremybenn
 
2994 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2995 19 jeremybenn
/* end confdefs.h.  */
2996 202 julius
@%:@include 
2997 19 jeremybenn
int
2998
main ()
2999
{
3000 202 julius
FILE *f = fopen ("conftest.out", "w");
3001
 return ferror (f) || fclose (f) != 0;
3002 19 jeremybenn
 
3003
  ;
3004
  return 0;
3005
}
3006
_ACEOF
3007
ac_clean_files_save=$ac_clean_files
3008 202 julius
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3009 19 jeremybenn
# Try to create an executable without -o first, disregard a.out.
3010
# It will help us diagnose broken compilers, and finding out an intuition
3011
# of exeext.
3012 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3013
$as_echo_n "checking for C compiler default output file name... " >&6; }
3014
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3015
 
3016
# The possible output files:
3017
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3018
 
3019 19 jeremybenn
ac_rmfiles=
3020
for ac_file in $ac_files
3021
do
3022
  case $ac_file in
3023 202 julius
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3024 19 jeremybenn
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3025
  esac
3026
done
3027
rm -f $ac_rmfiles
3028
 
3029 202 julius
if { { ac_try="$ac_link_default"
3030 19 jeremybenn
case "(($ac_try" in
3031
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032
  *) ac_try_echo=$ac_try;;
3033
esac
3034 202 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3035
$as_echo "$ac_try_echo"; } >&5
3036 19 jeremybenn
  (eval "$ac_link_default") 2>&5
3037
  ac_status=$?
3038 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039
  test $ac_status = 0; }; then :
3040 19 jeremybenn
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3041
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3042
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3043
# so that the user can short-circuit this test for compilers unknown to
3044
# Autoconf.
3045
for ac_file in $ac_files ''
3046
do
3047
  test -f "$ac_file" || continue
3048
  case $ac_file in
3049 202 julius
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3050 19 jeremybenn
        ;;
3051
    [ab].out )
3052
        # We found the default executable, but exeext='' is most
3053
        # certainly right.
3054
        break;;
3055
    *.* )
3056 202 julius
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3057 19 jeremybenn
        then :; else
3058
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3059
        fi
3060
        # We set ac_cv_exeext here because the later test for it is not
3061
        # safe: cross compilers may not add the suffix if given an `-o'
3062
        # argument, so we may need to know it at that point already.
3063
        # Even if this section looks crufty: it has the advantage of
3064
        # actually working.
3065
        break;;
3066
    * )
3067
        break;;
3068
  esac
3069
done
3070
test "$ac_cv_exeext" = no && ac_cv_exeext=
3071
 
3072
else
3073
  ac_file=''
3074
fi
3075 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3076
$as_echo "$ac_file" >&6; }
3077
if test -z "$ac_file"; then :
3078
  $as_echo "$as_me: failed program was:" >&5
3079 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3080
 
3081 202 julius
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083
{ as_fn_set_status 77
3084
as_fn_error "C compiler cannot create executables
3085
See \`config.log' for more details." "$LINENO" 5; }; }
3086 19 jeremybenn
fi
3087
ac_exeext=$ac_cv_exeext
3088
 
3089
# Check that the compiler produces executables we can run.  If not, either
3090
# the compiler is broken, or we cross compile.
3091 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3092
$as_echo_n "checking whether the C compiler works... " >&6; }
3093 19 jeremybenn
# If not cross compiling, check that we can run a simple program.
3094
if test "$cross_compiling" != yes; then
3095
  if { ac_try='./$ac_file'
3096 202 julius
  { { case "(($ac_try" in
3097 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098
  *) ac_try_echo=$ac_try;;
3099
esac
3100 202 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101
$as_echo "$ac_try_echo"; } >&5
3102 19 jeremybenn
  (eval "$ac_try") 2>&5
3103
  ac_status=$?
3104 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3105
  test $ac_status = 0; }; }; then
3106 19 jeremybenn
    cross_compiling=no
3107
  else
3108
    if test "$cross_compiling" = maybe; then
3109
        cross_compiling=yes
3110
    else
3111 202 julius
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3112
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3113
as_fn_error "cannot run C compiled programs.
3114 19 jeremybenn
If you meant to cross compile, use \`--host'.
3115 202 julius
See \`config.log' for more details." "$LINENO" 5; }
3116 19 jeremybenn
    fi
3117
  fi
3118
fi
3119 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3120
$as_echo "yes" >&6; }
3121 19 jeremybenn
 
3122 202 julius
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3123 19 jeremybenn
ac_clean_files=$ac_clean_files_save
3124
# Check that the compiler produces executables we can run.  If not, either
3125
# the compiler is broken, or we cross compile.
3126 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3127
$as_echo_n "checking whether we are cross compiling... " >&6; }
3128
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3129
$as_echo "$cross_compiling" >&6; }
3130 19 jeremybenn
 
3131 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3132
$as_echo_n "checking for suffix of executables... " >&6; }
3133
if { { ac_try="$ac_link"
3134 19 jeremybenn
case "(($ac_try" in
3135
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136
  *) ac_try_echo=$ac_try;;
3137
esac
3138 202 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139
$as_echo "$ac_try_echo"; } >&5
3140 19 jeremybenn
  (eval "$ac_link") 2>&5
3141
  ac_status=$?
3142 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143
  test $ac_status = 0; }; then :
3144 19 jeremybenn
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3145
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3146
# work properly (i.e., refer to `conftest.exe'), while it won't with
3147
# `rm'.
3148
for ac_file in conftest.exe conftest conftest.*; do
3149
  test -f "$ac_file" || continue
3150
  case $ac_file in
3151 202 julius
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3152 19 jeremybenn
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3153
          break;;
3154
    * ) break;;
3155
  esac
3156
done
3157
else
3158 202 julius
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160
as_fn_error "cannot compute suffix of executables: cannot compile and link
3161
See \`config.log' for more details." "$LINENO" 5; }
3162 19 jeremybenn
fi
3163
rm -f conftest$ac_cv_exeext
3164 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3165
$as_echo "$ac_cv_exeext" >&6; }
3166 19 jeremybenn
 
3167
rm -f conftest.$ac_ext
3168
EXEEXT=$ac_cv_exeext
3169
ac_exeext=$EXEEXT
3170 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3171
$as_echo_n "checking for suffix of object files... " >&6; }
3172
if test "${ac_cv_objext+set}" = set; then :
3173
  $as_echo_n "(cached) " >&6
3174 19 jeremybenn
else
3175 202 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 19 jeremybenn
/* end confdefs.h.  */
3177
 
3178
int
3179
main ()
3180
{
3181
 
3182
  ;
3183
  return 0;
3184
}
3185
_ACEOF
3186
rm -f conftest.o conftest.obj
3187 202 julius
if { { ac_try="$ac_compile"
3188 19 jeremybenn
case "(($ac_try" in
3189
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190
  *) ac_try_echo=$ac_try;;
3191
esac
3192 202 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193
$as_echo "$ac_try_echo"; } >&5
3194 19 jeremybenn
  (eval "$ac_compile") 2>&5
3195
  ac_status=$?
3196 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3197
  test $ac_status = 0; }; then :
3198 19 jeremybenn
  for ac_file in conftest.o conftest.obj conftest.*; do
3199
  test -f "$ac_file" || continue;
3200
  case $ac_file in
3201 202 julius
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3202 19 jeremybenn
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3203
       break;;
3204
  esac
3205
done
3206
else
3207 202 julius
  $as_echo "$as_me: failed program was:" >&5
3208 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3209
 
3210 202 julius
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3211
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3212
as_fn_error "cannot compute suffix of object files: cannot compile
3213
See \`config.log' for more details." "$LINENO" 5; }
3214 19 jeremybenn
fi
3215
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3216
fi
3217 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3218
$as_echo "$ac_cv_objext" >&6; }
3219 19 jeremybenn
OBJEXT=$ac_cv_objext
3220
ac_objext=$OBJEXT
3221 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3222
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3223
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3224
  $as_echo_n "(cached) " >&6
3225 19 jeremybenn
else
3226 202 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 19 jeremybenn
/* end confdefs.h.  */
3228
 
3229
int
3230
main ()
3231
{
3232
#ifndef __GNUC__
3233
       choke me
3234
#endif
3235
 
3236
  ;
3237
  return 0;
3238
}
3239
_ACEOF
3240 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
3241 19 jeremybenn
  ac_compiler_gnu=yes
3242
else
3243 202 julius
  ac_compiler_gnu=no
3244 19 jeremybenn
fi
3245
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3247
 
3248
fi
3249 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3250
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3251
if test $ac_compiler_gnu = yes; then
3252
  GCC=yes
3253
else
3254
  GCC=
3255
fi
3256 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
3257
ac_save_CFLAGS=$CFLAGS
3258 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3259
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3260
if test "${ac_cv_prog_cc_g+set}" = set; then :
3261
  $as_echo_n "(cached) " >&6
3262 19 jeremybenn
else
3263
  ac_save_c_werror_flag=$ac_c_werror_flag
3264
   ac_c_werror_flag=yes
3265
   ac_cv_prog_cc_g=no
3266
   CFLAGS="-g"
3267 202 julius
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268 19 jeremybenn
/* end confdefs.h.  */
3269
 
3270
int
3271
main ()
3272
{
3273
 
3274
  ;
3275
  return 0;
3276
}
3277
_ACEOF
3278 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
3279 19 jeremybenn
  ac_cv_prog_cc_g=yes
3280
else
3281 202 julius
  CFLAGS=""
3282
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 19 jeremybenn
/* end confdefs.h.  */
3284
 
3285
int
3286
main ()
3287
{
3288
 
3289
  ;
3290
  return 0;
3291
}
3292
_ACEOF
3293 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
3294
 
3295 19 jeremybenn
else
3296 202 julius
  ac_c_werror_flag=$ac_save_c_werror_flag
3297 19 jeremybenn
         CFLAGS="-g"
3298 202 julius
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 19 jeremybenn
/* end confdefs.h.  */
3300
 
3301
int
3302
main ()
3303
{
3304
 
3305
  ;
3306
  return 0;
3307
}
3308
_ACEOF
3309 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
3310 19 jeremybenn
  ac_cv_prog_cc_g=yes
3311
fi
3312
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313
fi
3314
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3315
fi
3316
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3317
   ac_c_werror_flag=$ac_save_c_werror_flag
3318
fi
3319 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3320
$as_echo "$ac_cv_prog_cc_g" >&6; }
3321 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
3322
  CFLAGS=$ac_save_CFLAGS
3323
elif test $ac_cv_prog_cc_g = yes; then
3324
  if test "$GCC" = yes; then
3325
    CFLAGS="-g -O2"
3326
  else
3327
    CFLAGS="-g"
3328
  fi
3329
else
3330
  if test "$GCC" = yes; then
3331
    CFLAGS="-O2"
3332
  else
3333
    CFLAGS=
3334
  fi
3335
fi
3336 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3337
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3338
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3339
  $as_echo_n "(cached) " >&6
3340 19 jeremybenn
else
3341
  ac_cv_prog_cc_c89=no
3342
ac_save_CC=$CC
3343 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 19 jeremybenn
/* end confdefs.h.  */
3345
#include 
3346
#include 
3347
#include 
3348
#include 
3349
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3350
struct buf { int x; };
3351
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3352
static char *e (p, i)
3353
     char **p;
3354
     int i;
3355
{
3356
  return p[i];
3357
}
3358
static char *f (char * (*g) (char **, int), char **p, ...)
3359
{
3360
  char *s;
3361
  va_list v;
3362
  va_start (v,p);
3363
  s = g (p, va_arg (v,int));
3364
  va_end (v);
3365
  return s;
3366
}
3367
 
3368
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3369
   function prototypes and stuff, but not '\xHH' hex character constants.
3370
   These don't provoke an error unfortunately, instead are silently treated
3371
   as 'x'.  The following induces an error, until -std is added to get
3372
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3373
   array size at least.  It's necessary to write '\x00'==0 to get something
3374
   that's true only with -std.  */
3375
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3376
 
3377
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3378
   inside strings and character constants.  */
3379
#define FOO(x) 'x'
3380
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3381
 
3382
int test (int i, double x);
3383
struct s1 {int (*f) (int a);};
3384
struct s2 {int (*f) (double a);};
3385
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3386
int argc;
3387
char **argv;
3388
int
3389
main ()
3390
{
3391
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3392
  ;
3393
  return 0;
3394
}
3395
_ACEOF
3396
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3397
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3398
do
3399
  CC="$ac_save_CC $ac_arg"
3400 202 julius
  if ac_fn_c_try_compile "$LINENO"; then :
3401 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
3402
fi
3403 202 julius
rm -f core conftest.err conftest.$ac_objext
3404 19 jeremybenn
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3405
done
3406
rm -f conftest.$ac_ext
3407
CC=$ac_save_CC
3408
 
3409
fi
3410
# AC_CACHE_VAL
3411
case "x$ac_cv_prog_cc_c89" in
3412
  x)
3413 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3414
$as_echo "none needed" >&6; } ;;
3415 19 jeremybenn
  xno)
3416 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3417
$as_echo "unsupported" >&6; } ;;
3418 19 jeremybenn
  *)
3419
    CC="$CC $ac_cv_prog_cc_c89"
3420 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3421
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3422 19 jeremybenn
esac
3423 202 julius
if test "x$ac_cv_prog_cc_c89" != xno; then :
3424
 
3425
fi
3426 19 jeremybenn
 
3427 202 julius
ac_ext=c
3428
ac_cpp='$CPP $CPPFLAGS'
3429
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432 19 jeremybenn
 
3433 202 julius
 
3434 19 jeremybenn
ac_ext=c
3435
ac_cpp='$CPP $CPPFLAGS'
3436
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3440
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3441
# On Suns, sometimes $CPP names a directory.
3442
if test -n "$CPP" && test -d "$CPP"; then
3443
  CPP=
3444
fi
3445
if test -z "$CPP"; then
3446
  if test "${ac_cv_prog_CPP+set}" = set; then :
3447
  $as_echo_n "(cached) " >&6
3448
else
3449
      # Double quotes because CPP needs to be expanded
3450
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3451
    do
3452
      ac_preproc_ok=false
3453
for ac_c_preproc_warn_flag in '' yes
3454
do
3455
  # Use a header file that comes with gcc, so configuring glibc
3456
  # with a fresh cross-compiler works.
3457
  # Prefer  to  if __STDC__ is defined, since
3458
  #  exists even on freestanding compilers.
3459
  # On the NeXT, cc -E runs the code through the compiler's parser,
3460
  # not just through cpp. "Syntax error" is here to catch this case.
3461
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462
/* end confdefs.h.  */
3463
@%:@ifdef __STDC__
3464
@%:@ include 
3465
@%:@else
3466
@%:@ include 
3467
@%:@endif
3468
                     Syntax error
3469
_ACEOF
3470
if ac_fn_c_try_cpp "$LINENO"; then :
3471
 
3472
else
3473
  # Broken: fails on valid input.
3474
continue
3475
fi
3476
rm -f conftest.err conftest.$ac_ext
3477 19 jeremybenn
 
3478 202 julius
  # OK, works on sane cases.  Now check whether nonexistent headers
3479
  # can be detected and how.
3480
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481
/* end confdefs.h.  */
3482
@%:@include 
3483
_ACEOF
3484
if ac_fn_c_try_cpp "$LINENO"; then :
3485
  # Broken: success on invalid input.
3486
continue
3487 19 jeremybenn
else
3488 202 julius
  # Passes both tests.
3489
ac_preproc_ok=:
3490
break
3491
fi
3492
rm -f conftest.err conftest.$ac_ext
3493
 
3494 19 jeremybenn
done
3495 202 julius
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3496
rm -f conftest.err conftest.$ac_ext
3497
if $ac_preproc_ok; then :
3498
  break
3499
fi
3500 19 jeremybenn
 
3501 202 julius
    done
3502
    ac_cv_prog_CPP=$CPP
3503
 
3504 19 jeremybenn
fi
3505 202 julius
  CPP=$ac_cv_prog_CPP
3506
else
3507
  ac_cv_prog_CPP=$CPP
3508
fi
3509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3510
$as_echo "$CPP" >&6; }
3511
ac_preproc_ok=false
3512
for ac_c_preproc_warn_flag in '' yes
3513
do
3514
  # Use a header file that comes with gcc, so configuring glibc
3515
  # with a fresh cross-compiler works.
3516
  # Prefer  to  if __STDC__ is defined, since
3517
  #  exists even on freestanding compilers.
3518
  # On the NeXT, cc -E runs the code through the compiler's parser,
3519
  # not just through cpp. "Syntax error" is here to catch this case.
3520
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521
/* end confdefs.h.  */
3522
@%:@ifdef __STDC__
3523
@%:@ include 
3524
@%:@else
3525
@%:@ include 
3526
@%:@endif
3527
                     Syntax error
3528
_ACEOF
3529
if ac_fn_c_try_cpp "$LINENO"; then :
3530
 
3531
else
3532
  # Broken: fails on valid input.
3533
continue
3534
fi
3535
rm -f conftest.err conftest.$ac_ext
3536 19 jeremybenn
 
3537 202 julius
  # OK, works on sane cases.  Now check whether nonexistent headers
3538
  # can be detected and how.
3539
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540
/* end confdefs.h.  */
3541
@%:@include 
3542
_ACEOF
3543
if ac_fn_c_try_cpp "$LINENO"; then :
3544
  # Broken: success on invalid input.
3545
continue
3546
else
3547
  # Passes both tests.
3548
ac_preproc_ok=:
3549
break
3550
fi
3551
rm -f conftest.err conftest.$ac_ext
3552 19 jeremybenn
 
3553 202 julius
done
3554
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3555
rm -f conftest.err conftest.$ac_ext
3556
if $ac_preproc_ok; then :
3557
 
3558
else
3559
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3560
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561
as_fn_error "C preprocessor \"$CPP\" fails sanity check
3562
See \`config.log' for more details." "$LINENO" 5; }
3563
fi
3564 19 jeremybenn
 
3565 202 julius
ac_ext=c
3566
ac_cpp='$CPP $CPPFLAGS'
3567
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570
 
3571
 
3572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3573
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3574
if test "${ac_cv_path_GREP+set}" = set; then :
3575
  $as_echo_n "(cached) " >&6
3576 19 jeremybenn
else
3577 202 julius
  if test -z "$GREP"; then
3578 19 jeremybenn
  ac_path_GREP_found=false
3579 202 julius
  # Loop through the user's path and test for each of PROGNAME-LIST
3580
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3582
do
3583
  IFS=$as_save_IFS
3584
  test -z "$as_dir" && as_dir=.
3585 202 julius
    for ac_prog in grep ggrep; do
3586
    for ac_exec_ext in '' $ac_executable_extensions; do
3587
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3588
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3589
# Check for GNU ac_path_GREP and select it if it is found.
3590 19 jeremybenn
  # Check for GNU $ac_path_GREP
3591
case `"$ac_path_GREP" --version 2>&1` in
3592
*GNU*)
3593
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3594
*)
3595
  ac_count=0
3596 202 julius
  $as_echo_n 0123456789 >"conftest.in"
3597 19 jeremybenn
  while :
3598
  do
3599
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3600
    mv "conftest.tmp" "conftest.in"
3601
    cp "conftest.in" "conftest.nl"
3602 202 julius
    $as_echo 'GREP' >> "conftest.nl"
3603 19 jeremybenn
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3604
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3605 202 julius
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3606 19 jeremybenn
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3607
      # Best one so far, save it but keep looking for a better one
3608
      ac_cv_path_GREP="$ac_path_GREP"
3609
      ac_path_GREP_max=$ac_count
3610
    fi
3611
    # 10*(2^10) chars as input seems more than enough
3612
    test $ac_count -gt 10 && break
3613
  done
3614
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3615
esac
3616
 
3617 202 julius
      $ac_path_GREP_found && break 3
3618
    done
3619 19 jeremybenn
  done
3620 202 julius
  done
3621 19 jeremybenn
IFS=$as_save_IFS
3622 202 julius
  if test -z "$ac_cv_path_GREP"; then
3623
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3624
  fi
3625 19 jeremybenn
else
3626
  ac_cv_path_GREP=$GREP
3627
fi
3628
 
3629
fi
3630 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3631
$as_echo "$ac_cv_path_GREP" >&6; }
3632 19 jeremybenn
 GREP="$ac_cv_path_GREP"
3633
 
3634
 
3635 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3636
$as_echo_n "checking for egrep... " >&6; }
3637
if test "${ac_cv_path_EGREP+set}" = set; then :
3638
  $as_echo_n "(cached) " >&6
3639 19 jeremybenn
else
3640
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3641
   then ac_cv_path_EGREP="$GREP -E"
3642
   else
3643 202 julius
     if test -z "$EGREP"; then
3644 19 jeremybenn
  ac_path_EGREP_found=false
3645 202 julius
  # Loop through the user's path and test for each of PROGNAME-LIST
3646
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3648
do
3649
  IFS=$as_save_IFS
3650
  test -z "$as_dir" && as_dir=.
3651 202 julius
    for ac_prog in egrep; do
3652
    for ac_exec_ext in '' $ac_executable_extensions; do
3653
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3654
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3655
# Check for GNU ac_path_EGREP and select it if it is found.
3656 19 jeremybenn
  # Check for GNU $ac_path_EGREP
3657
case `"$ac_path_EGREP" --version 2>&1` in
3658
*GNU*)
3659
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3660
*)
3661
  ac_count=0
3662 202 julius
  $as_echo_n 0123456789 >"conftest.in"
3663 19 jeremybenn
  while :
3664
  do
3665
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3666
    mv "conftest.tmp" "conftest.in"
3667
    cp "conftest.in" "conftest.nl"
3668 202 julius
    $as_echo 'EGREP' >> "conftest.nl"
3669 19 jeremybenn
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3670
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3671 202 julius
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3672 19 jeremybenn
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3673
      # Best one so far, save it but keep looking for a better one
3674
      ac_cv_path_EGREP="$ac_path_EGREP"
3675
      ac_path_EGREP_max=$ac_count
3676
    fi
3677
    # 10*(2^10) chars as input seems more than enough
3678
    test $ac_count -gt 10 && break
3679
  done
3680
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3681
esac
3682
 
3683 202 julius
      $ac_path_EGREP_found && break 3
3684
    done
3685
  done
3686
  done
3687
IFS=$as_save_IFS
3688
  if test -z "$ac_cv_path_EGREP"; then
3689
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3690
  fi
3691
else
3692
  ac_cv_path_EGREP=$EGREP
3693
fi
3694 19 jeremybenn
 
3695 202 julius
   fi
3696
fi
3697
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3698
$as_echo "$ac_cv_path_EGREP" >&6; }
3699
 EGREP="$ac_cv_path_EGREP"
3700
 
3701
 
3702
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3703
$as_echo_n "checking for ANSI C header files... " >&6; }
3704
if test "${ac_cv_header_stdc+set}" = set; then :
3705
  $as_echo_n "(cached) " >&6
3706
else
3707
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708
/* end confdefs.h.  */
3709
#include 
3710
#include 
3711
#include 
3712
#include 
3713
 
3714
int
3715
main ()
3716
{
3717
 
3718
  ;
3719
  return 0;
3720
}
3721
_ACEOF
3722
if ac_fn_c_try_compile "$LINENO"; then :
3723
  ac_cv_header_stdc=yes
3724
else
3725
  ac_cv_header_stdc=no
3726
fi
3727
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728
 
3729
if test $ac_cv_header_stdc = yes; then
3730
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3731
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732
/* end confdefs.h.  */
3733
#include 
3734
 
3735
_ACEOF
3736
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3737
  $EGREP "memchr" >/dev/null 2>&1; then :
3738
 
3739
else
3740
  ac_cv_header_stdc=no
3741
fi
3742
rm -f conftest*
3743
 
3744
fi
3745
 
3746
if test $ac_cv_header_stdc = yes; then
3747
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3748
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749
/* end confdefs.h.  */
3750
#include 
3751
 
3752
_ACEOF
3753
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3754
  $EGREP "free" >/dev/null 2>&1; then :
3755
 
3756
else
3757
  ac_cv_header_stdc=no
3758
fi
3759
rm -f conftest*
3760
 
3761
fi
3762
 
3763
if test $ac_cv_header_stdc = yes; then
3764
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3765
  if test "$cross_compiling" = yes; then :
3766
  :
3767
else
3768
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769
/* end confdefs.h.  */
3770
#include 
3771
#include 
3772
#if ((' ' & 0x0FF) == 0x020)
3773
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3774
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3775
#else
3776
# define ISLOWER(c) \
3777
                   (('a' <= (c) && (c) <= 'i') \
3778
                     || ('j' <= (c) && (c) <= 'r') \
3779
                     || ('s' <= (c) && (c) <= 'z'))
3780
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3781
#endif
3782
 
3783
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3784
int
3785
main ()
3786
{
3787
  int i;
3788
  for (i = 0; i < 256; i++)
3789
    if (XOR (islower (i), ISLOWER (i))
3790
        || toupper (i) != TOUPPER (i))
3791
      return 2;
3792
  return 0;
3793
}
3794
_ACEOF
3795
if ac_fn_c_try_run "$LINENO"; then :
3796
 
3797
else
3798
  ac_cv_header_stdc=no
3799
fi
3800
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3801
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3802
fi
3803
 
3804
fi
3805
fi
3806
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3807
$as_echo "$ac_cv_header_stdc" >&6; }
3808
if test $ac_cv_header_stdc = yes; then
3809
 
3810
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
3811
 
3812
fi
3813
 
3814
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3815
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3816
                  inttypes.h stdint.h unistd.h
3817
do :
3818
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3819
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3820
"
3821
eval as_val=\$$as_ac_Header
3822
   if test "x$as_val" = x""yes; then :
3823
  cat >>confdefs.h <<_ACEOF
3824
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3825
_ACEOF
3826
 
3827
fi
3828
 
3829 19 jeremybenn
done
3830
 
3831 202 julius
 
3832
 
3833
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3834
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3835
  MINIX=yes
3836
else
3837
  MINIX=
3838
fi
3839
 
3840
 
3841
  if test "$MINIX" = yes; then
3842
 
3843
$as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h
3844
 
3845
 
3846
$as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h
3847
 
3848
 
3849
$as_echo "@%:@define _MINIX 1" >>confdefs.h
3850
 
3851
  fi
3852
 
3853
 
3854
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3855
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3856
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3857
  $as_echo_n "(cached) " >&6
3858
else
3859
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860
/* end confdefs.h.  */
3861
 
3862
#         define __EXTENSIONS__ 1
3863
          $ac_includes_default
3864
int
3865
main ()
3866
{
3867
 
3868
  ;
3869
  return 0;
3870
}
3871
_ACEOF
3872
if ac_fn_c_try_compile "$LINENO"; then :
3873
  ac_cv_safe_to_define___extensions__=yes
3874
else
3875
  ac_cv_safe_to_define___extensions__=no
3876
fi
3877
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878
fi
3879
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3880
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3881
  test $ac_cv_safe_to_define___extensions__ = yes &&
3882
    $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h
3883
 
3884
  $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h
3885
 
3886
  $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
3887
 
3888
  $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3889
 
3890
  $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h
3891
 
3892
 
3893
 
3894
# Check we have the execute source file present for sanity. Specify a separate
3895
# config for the testsuite OR1K specific programs, since we'll need different
3896
# tool chain there (the OpenRISC one, rather than the native one).
3897
 
3898
ac_aux_dir=
3899
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3900
  for ac_t in install-sh install.sh shtool; do
3901
    if test -f "$ac_dir/$ac_t"; then
3902
      ac_aux_dir=$ac_dir
3903
      ac_install_sh="$ac_aux_dir/$ac_t -c"
3904
      break 2
3905
    fi
3906
  done
3907 19 jeremybenn
done
3908 202 julius
if test -z "$ac_aux_dir"; then
3909
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3910
fi
3911 19 jeremybenn
 
3912 202 julius
# These three variables are undocumented and unsupported,
3913
# and are intended to be withdrawn in a future Autoconf release.
3914
# They can cause serious problems if a builder's source tree is in a directory
3915
# whose full name contains unusual characters.
3916
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3917
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3918
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3919 19 jeremybenn
 
3920 202 julius
 
3921
 
3922
 
3923
subdirs="$subdirs testsuite/test-code-or1k"
3924
 
3925
 
3926
# Make sure we can run config.sub.
3927
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3928
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3929
 
3930
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3931
$as_echo_n "checking build system type... " >&6; }
3932
if test "${ac_cv_build+set}" = set; then :
3933
  $as_echo_n "(cached) " >&6
3934
else
3935
  ac_build_alias=$build_alias
3936
test "x$ac_build_alias" = x &&
3937
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3938
test "x$ac_build_alias" = x &&
3939
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3940
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3941
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3942
 
3943 19 jeremybenn
fi
3944 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3945
$as_echo "$ac_cv_build" >&6; }
3946
case $ac_cv_build in
3947
*-*-*) ;;
3948
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3949
esac
3950
build=$ac_cv_build
3951
ac_save_IFS=$IFS; IFS='-'
3952
set x $ac_cv_build
3953
shift
3954
build_cpu=$1
3955
build_vendor=$2
3956
shift; shift
3957
# Remember, the first character of IFS is used to create $*,
3958
# except with old shells:
3959
build_os=$*
3960
IFS=$ac_save_IFS
3961
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3962 19 jeremybenn
 
3963 202 julius
 
3964
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3965
$as_echo_n "checking host system type... " >&6; }
3966
if test "${ac_cv_host+set}" = set; then :
3967
  $as_echo_n "(cached) " >&6
3968
else
3969
  if test "x$host_alias" = x; then
3970
  ac_cv_host=$ac_cv_build
3971
else
3972
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3973
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3974 19 jeremybenn
fi
3975
 
3976 202 julius
fi
3977
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3978
$as_echo "$ac_cv_host" >&6; }
3979
case $ac_cv_host in
3980
*-*-*) ;;
3981
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3982
esac
3983
host=$ac_cv_host
3984
ac_save_IFS=$IFS; IFS='-'
3985
set x $ac_cv_host
3986
shift
3987
host_cpu=$1
3988
host_vendor=$2
3989
shift; shift
3990
# Remember, the first character of IFS is used to create $*,
3991
# except with old shells:
3992
host_os=$*
3993
IFS=$ac_save_IFS
3994
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3995
 
3996
 
3997
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3998
$as_echo_n "checking target system type... " >&6; }
3999
if test "${ac_cv_target+set}" = set; then :
4000
  $as_echo_n "(cached) " >&6
4001 19 jeremybenn
else
4002 202 julius
  if test "x$target_alias" = x; then
4003
  ac_cv_target=$ac_cv_host
4004
else
4005
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4006
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4007 19 jeremybenn
fi
4008
 
4009 202 julius
fi
4010
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4011
$as_echo "$ac_cv_target" >&6; }
4012
case $ac_cv_target in
4013
*-*-*) ;;
4014
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4015
esac
4016
target=$ac_cv_target
4017
ac_save_IFS=$IFS; IFS='-'
4018
set x $ac_cv_target
4019
shift
4020
target_cpu=$1
4021
target_vendor=$2
4022
shift; shift
4023
# Remember, the first character of IFS is used to create $*,
4024
# except with old shells:
4025
target_os=$*
4026
IFS=$ac_save_IFS
4027
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4028 19 jeremybenn
 
4029 202 julius
 
4030
# The aliases save the names the user supplied, while $host etc.
4031
# will get canonicalized.
4032
test -n "$target_alias" &&
4033
  test "$program_prefix$program_suffix$program_transform_name" = \
4034
    NONENONEs,x,x, &&
4035
  program_prefix=${target_alias}-
4036
case `pwd` in
4037
  *\ * | *\     *)
4038
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4039
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4040
esac
4041
 
4042
 
4043
 
4044
macro_version='2.2.6b'
4045
macro_revision='1.3017'
4046
 
4047
 
4048
 
4049
 
4050
 
4051
 
4052
 
4053
 
4054
 
4055
 
4056
 
4057
 
4058
 
4059
ltmain="$ac_aux_dir/ltmain.sh"
4060
 
4061
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4062
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4063
if test "${ac_cv_path_SED+set}" = set; then :
4064
  $as_echo_n "(cached) " >&6
4065
else
4066
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4067
     for ac_i in 1 2 3 4 5 6 7; do
4068
       ac_script="$ac_script$as_nl$ac_script"
4069
     done
4070
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4071
     { ac_script=; unset ac_script;}
4072
     if test -z "$SED"; then
4073
  ac_path_SED_found=false
4074
  # Loop through the user's path and test for each of PROGNAME-LIST
4075
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076
for as_dir in $PATH
4077
do
4078
  IFS=$as_save_IFS
4079
  test -z "$as_dir" && as_dir=.
4080
    for ac_prog in sed gsed; do
4081
    for ac_exec_ext in '' $ac_executable_extensions; do
4082
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4083
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4084
# Check for GNU ac_path_SED and select it if it is found.
4085
  # Check for GNU $ac_path_SED
4086
case `"$ac_path_SED" --version 2>&1` in
4087
*GNU*)
4088
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4089
*)
4090
  ac_count=0
4091
  $as_echo_n 0123456789 >"conftest.in"
4092
  while :
4093
  do
4094
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4095
    mv "conftest.tmp" "conftest.in"
4096
    cp "conftest.in" "conftest.nl"
4097
    $as_echo '' >> "conftest.nl"
4098
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4099
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4100
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4101
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4102
      # Best one so far, save it but keep looking for a better one
4103
      ac_cv_path_SED="$ac_path_SED"
4104
      ac_path_SED_max=$ac_count
4105
    fi
4106
    # 10*(2^10) chars as input seems more than enough
4107
    test $ac_count -gt 10 && break
4108
  done
4109
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4110
esac
4111
 
4112
      $ac_path_SED_found && break 3
4113
    done
4114
  done
4115
  done
4116
IFS=$as_save_IFS
4117
  if test -z "$ac_cv_path_SED"; then
4118
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4119
  fi
4120
else
4121
  ac_cv_path_SED=$SED
4122
fi
4123
 
4124
fi
4125
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4126
$as_echo "$ac_cv_path_SED" >&6; }
4127
 SED="$ac_cv_path_SED"
4128
  rm -f conftest.sed
4129
 
4130
test -z "$SED" && SED=sed
4131
Xsed="$SED -e 1s/^X//"
4132
 
4133
 
4134
 
4135
 
4136
 
4137
 
4138
 
4139
 
4140
 
4141
 
4142
 
4143
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4144
$as_echo_n "checking for fgrep... " >&6; }
4145
if test "${ac_cv_path_FGREP+set}" = set; then :
4146
  $as_echo_n "(cached) " >&6
4147
else
4148
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4149
   then ac_cv_path_FGREP="$GREP -F"
4150
   else
4151
     if test -z "$FGREP"; then
4152
  ac_path_FGREP_found=false
4153
  # Loop through the user's path and test for each of PROGNAME-LIST
4154
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4156
do
4157
  IFS=$as_save_IFS
4158
  test -z "$as_dir" && as_dir=.
4159
    for ac_prog in fgrep; do
4160
    for ac_exec_ext in '' $ac_executable_extensions; do
4161
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4162
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4163
# Check for GNU ac_path_FGREP and select it if it is found.
4164
  # Check for GNU $ac_path_FGREP
4165
case `"$ac_path_FGREP" --version 2>&1` in
4166
*GNU*)
4167
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4168
*)
4169
  ac_count=0
4170
  $as_echo_n 0123456789 >"conftest.in"
4171
  while :
4172
  do
4173
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4174
    mv "conftest.tmp" "conftest.in"
4175
    cp "conftest.in" "conftest.nl"
4176
    $as_echo 'FGREP' >> "conftest.nl"
4177
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4178
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4179
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4180
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4181
      # Best one so far, save it but keep looking for a better one
4182
      ac_cv_path_FGREP="$ac_path_FGREP"
4183
      ac_path_FGREP_max=$ac_count
4184
    fi
4185
    # 10*(2^10) chars as input seems more than enough
4186
    test $ac_count -gt 10 && break
4187
  done
4188
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4189
esac
4190
 
4191
      $ac_path_FGREP_found && break 3
4192
    done
4193
  done
4194
  done
4195
IFS=$as_save_IFS
4196
  if test -z "$ac_cv_path_FGREP"; then
4197
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4198
  fi
4199
else
4200
  ac_cv_path_FGREP=$FGREP
4201
fi
4202
 
4203 19 jeremybenn
   fi
4204
fi
4205 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4206
$as_echo "$ac_cv_path_FGREP" >&6; }
4207
 FGREP="$ac_cv_path_FGREP"
4208 19 jeremybenn
 
4209
 
4210 202 julius
test -z "$GREP" && GREP=grep
4211 19 jeremybenn
 
4212 202 julius
 
4213
 
4214
 
4215
 
4216
 
4217
 
4218
 
4219
 
4220
 
4221
 
4222
 
4223
 
4224
 
4225
 
4226
 
4227
 
4228
 
4229
 
4230
@%:@ Check whether --with-gnu-ld was given.
4231
if test "${with_gnu_ld+set}" = set; then :
4232 19 jeremybenn
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4233
else
4234
  with_gnu_ld=no
4235
fi
4236
 
4237
ac_prog=ld
4238
if test "$GCC" = yes; then
4239
  # Check if gcc -print-prog-name=ld gives a path.
4240 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4241
$as_echo_n "checking for ld used by $CC... " >&6; }
4242 19 jeremybenn
  case $host in
4243
  *-*-mingw*)
4244
    # gcc leaves a trailing carriage return which upsets mingw
4245
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4246
  *)
4247
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4248
  esac
4249
  case $ac_prog in
4250
    # Accept absolute paths.
4251
    [\\/]* | ?:[\\/]*)
4252
      re_direlt='/[^/][^/]*/\.\./'
4253
      # Canonicalize the pathname of ld
4254 202 julius
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4255
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4256
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4257 19 jeremybenn
      done
4258
      test -z "$LD" && LD="$ac_prog"
4259
      ;;
4260
  "")
4261
    # If it fails, then pretend we aren't using GCC.
4262
    ac_prog=ld
4263
    ;;
4264
  *)
4265
    # If it is relative, then search for the first ld in PATH.
4266
    with_gnu_ld=unknown
4267
    ;;
4268
  esac
4269
elif test "$with_gnu_ld" = yes; then
4270 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4271
$as_echo_n "checking for GNU ld... " >&6; }
4272 19 jeremybenn
else
4273 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4274
$as_echo_n "checking for non-GNU ld... " >&6; }
4275 19 jeremybenn
fi
4276 202 julius
if test "${lt_cv_path_LD+set}" = set; then :
4277
  $as_echo_n "(cached) " >&6
4278 19 jeremybenn
else
4279
  if test -z "$LD"; then
4280
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4281
  for ac_dir in $PATH; do
4282
    IFS="$lt_save_ifs"
4283
    test -z "$ac_dir" && ac_dir=.
4284
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4285
      lt_cv_path_LD="$ac_dir/$ac_prog"
4286
      # Check to see if the program is GNU ld.  I'd rather use --version,
4287
      # but apparently some variants of GNU ld only accept -v.
4288
      # Break only if it was the GNU/non-GNU ld that we prefer.
4289
      case `"$lt_cv_path_LD" -v 2>&1 
4290
      *GNU* | *'with BFD'*)
4291
        test "$with_gnu_ld" != no && break
4292
        ;;
4293
      *)
4294
        test "$with_gnu_ld" != yes && break
4295
        ;;
4296
      esac
4297
    fi
4298
  done
4299
  IFS="$lt_save_ifs"
4300
else
4301
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4302
fi
4303
fi
4304
 
4305
LD="$lt_cv_path_LD"
4306
if test -n "$LD"; then
4307 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4308
$as_echo "$LD" >&6; }
4309 19 jeremybenn
else
4310 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311
$as_echo "no" >&6; }
4312 19 jeremybenn
fi
4313 202 julius
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4315
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4316
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4317
  $as_echo_n "(cached) " >&6
4318 19 jeremybenn
else
4319
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4320
case `$LD -v 2>&1 
4321
*GNU* | *'with BFD'*)
4322
  lt_cv_prog_gnu_ld=yes
4323
  ;;
4324
*)
4325
  lt_cv_prog_gnu_ld=no
4326
  ;;
4327
esac
4328
fi
4329 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4330
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4331 19 jeremybenn
with_gnu_ld=$lt_cv_prog_gnu_ld
4332
 
4333
 
4334
 
4335 202 julius
 
4336
 
4337
 
4338
 
4339
 
4340
 
4341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4342
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4343
if test "${lt_cv_path_NM+set}" = set; then :
4344
  $as_echo_n "(cached) " >&6
4345 19 jeremybenn
else
4346
  if test -n "$NM"; then
4347
  # Let the user override the test.
4348
  lt_cv_path_NM="$NM"
4349
else
4350
  lt_nm_to_check="${ac_tool_prefix}nm"
4351
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4352
    lt_nm_to_check="$lt_nm_to_check nm"
4353
  fi
4354
  for lt_tmp_nm in $lt_nm_to_check; do
4355
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4356
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4357
      IFS="$lt_save_ifs"
4358
      test -z "$ac_dir" && ac_dir=.
4359
      tmp_nm="$ac_dir/$lt_tmp_nm"
4360
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4361
        # Check to see if the nm accepts a BSD-compat flag.
4362
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4363
        #   nm: unknown option "B" ignored
4364
        # Tru64's nm complains that /dev/null is an invalid object file
4365
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4366
        */dev/null* | *'Invalid file or object type'*)
4367
          lt_cv_path_NM="$tmp_nm -B"
4368
          break
4369
          ;;
4370
        *)
4371
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4372
          */dev/null*)
4373
            lt_cv_path_NM="$tmp_nm -p"
4374
            break
4375
            ;;
4376
          *)
4377
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4378
            continue # so that we can try to find one that supports BSD flags
4379
            ;;
4380
          esac
4381
          ;;
4382
        esac
4383
      fi
4384
    done
4385
    IFS="$lt_save_ifs"
4386
  done
4387 202 julius
  : ${lt_cv_path_NM=no}
4388 19 jeremybenn
fi
4389
fi
4390 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4391
$as_echo "$lt_cv_path_NM" >&6; }
4392
if test "$lt_cv_path_NM" != "no"; then
4393
  NM="$lt_cv_path_NM"
4394
else
4395
  # Didn't find any BSD compatible name lister, look for dumpbin.
4396
  if test -n "$ac_tool_prefix"; then
4397
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4398
  do
4399
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4400
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402
$as_echo_n "checking for $ac_word... " >&6; }
4403
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4404
  $as_echo_n "(cached) " >&6
4405
else
4406
  if test -n "$DUMPBIN"; then
4407
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4408
else
4409
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410
for as_dir in $PATH
4411
do
4412
  IFS=$as_save_IFS
4413
  test -z "$as_dir" && as_dir=.
4414
    for ac_exec_ext in '' $ac_executable_extensions; do
4415
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4416
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4417
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4418
    break 2
4419
  fi
4420
done
4421
  done
4422
IFS=$as_save_IFS
4423 19 jeremybenn
 
4424 202 julius
fi
4425
fi
4426
DUMPBIN=$ac_cv_prog_DUMPBIN
4427
if test -n "$DUMPBIN"; then
4428
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4429
$as_echo "$DUMPBIN" >&6; }
4430
else
4431
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432
$as_echo "no" >&6; }
4433
fi
4434
 
4435
 
4436
    test -n "$DUMPBIN" && break
4437
  done
4438
fi
4439
if test -z "$DUMPBIN"; then
4440
  ac_ct_DUMPBIN=$DUMPBIN
4441
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4442
do
4443
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4444
set dummy $ac_prog; ac_word=$2
4445
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446
$as_echo_n "checking for $ac_word... " >&6; }
4447
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4448
  $as_echo_n "(cached) " >&6
4449
else
4450
  if test -n "$ac_ct_DUMPBIN"; then
4451
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # 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_DUMPBIN="$ac_prog"
4461
    $as_echo "$as_me:${as_lineno-$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_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4471
if test -n "$ac_ct_DUMPBIN"; then
4472
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4473
$as_echo "$ac_ct_DUMPBIN" >&6; }
4474
else
4475
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476
$as_echo "no" >&6; }
4477
fi
4478
 
4479
 
4480
  test -n "$ac_ct_DUMPBIN" && break
4481
done
4482
 
4483
  if test "x$ac_ct_DUMPBIN" = x; then
4484
    DUMPBIN=":"
4485
  else
4486
    case $cross_compiling:$ac_tool_warned in
4487
yes:)
4488
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4489
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4490
ac_tool_warned=yes ;;
4491
esac
4492
    DUMPBIN=$ac_ct_DUMPBIN
4493
  fi
4494
fi
4495
 
4496
 
4497
  if test "$DUMPBIN" != ":"; then
4498
    NM="$DUMPBIN"
4499
  fi
4500
fi
4501
test -z "$NM" && NM=nm
4502
 
4503
 
4504
 
4505
 
4506
 
4507
 
4508
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4509
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4510
if test "${lt_cv_nm_interface+set}" = set; then :
4511
  $as_echo_n "(cached) " >&6
4512
else
4513
  lt_cv_nm_interface="BSD nm"
4514
  echo "int some_variable = 0;" > conftest.$ac_ext
4515
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&5)
4516
  (eval "$ac_compile" 2>conftest.err)
4517
  cat conftest.err >&5
4518
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4519
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4520
  cat conftest.err >&5
4521
  (eval echo "\"\$as_me:__oline__: output\"" >&5)
4522
  cat conftest.out >&5
4523
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4524
    lt_cv_nm_interface="MS dumpbin"
4525
  fi
4526
  rm -f conftest*
4527
fi
4528
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4529
$as_echo "$lt_cv_nm_interface" >&6; }
4530
 
4531
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4532
$as_echo_n "checking whether ln -s works... " >&6; }
4533 19 jeremybenn
LN_S=$as_ln_s
4534
if test "$LN_S" = "ln -s"; then
4535 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4536
$as_echo "yes" >&6; }
4537 19 jeremybenn
else
4538 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4539
$as_echo "no, using $LN_S" >&6; }
4540 19 jeremybenn
fi
4541
 
4542 202 julius
# find the maximum length of command line arguments
4543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4544
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4545
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4546
  $as_echo_n "(cached) " >&6
4547 19 jeremybenn
else
4548 202 julius
    i=0
4549
  teststring="ABCD"
4550
 
4551
  case $build_os in
4552
  msdosdjgpp*)
4553
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4554
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4555
    # during glob expansion).  Even if it were fixed, the result of this
4556
    # check would be larger than it should be.
4557
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4558
    ;;
4559
 
4560
  gnu*)
4561
    # Under GNU Hurd, this test is not required because there is
4562
    # no limit to the length of command line arguments.
4563
    # Libtool will interpret -1 as no limit whatsoever
4564
    lt_cv_sys_max_cmd_len=-1;
4565
    ;;
4566
 
4567
  cygwin* | mingw* | cegcc*)
4568
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4569
    # about 5 minutes as the teststring grows exponentially.
4570
    # Worse, since 9x/ME are not pre-emptively multitasking,
4571
    # you end up with a "frozen" computer, even though with patience
4572
    # the test eventually succeeds (with a max line length of 256k).
4573
    # Instead, let's just punt: use the minimum linelength reported by
4574
    # all of the supported platforms: 8192 (on NT/2K/XP).
4575
    lt_cv_sys_max_cmd_len=8192;
4576
    ;;
4577
 
4578
  amigaos*)
4579
    # On AmigaOS with pdksh, this test takes hours, literally.
4580
    # So we just punt and use a minimum line length of 8192.
4581
    lt_cv_sys_max_cmd_len=8192;
4582
    ;;
4583
 
4584
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4585
    # This has been around since 386BSD, at least.  Likely further.
4586
    if test -x /sbin/sysctl; then
4587
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4588
    elif test -x /usr/sbin/sysctl; then
4589
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4590
    else
4591
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4592
    fi
4593
    # And add a safety zone
4594
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4595
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4596
    ;;
4597
 
4598
  interix*)
4599
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4600
    lt_cv_sys_max_cmd_len=196608
4601
    ;;
4602
 
4603
  osf*)
4604
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4605
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4606
    # nice to cause kernel panics so lets avoid the loop below.
4607
    # First set a reasonable default.
4608
    lt_cv_sys_max_cmd_len=16384
4609
    #
4610
    if test -x /sbin/sysconfig; then
4611
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4612
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4613
      esac
4614
    fi
4615
    ;;
4616
  sco3.2v5*)
4617
    lt_cv_sys_max_cmd_len=102400
4618
    ;;
4619
  sysv5* | sco5v6* | sysv4.2uw2*)
4620
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4621
    if test -n "$kargmax"; then
4622
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4623
    else
4624
      lt_cv_sys_max_cmd_len=32768
4625
    fi
4626
    ;;
4627
  *)
4628
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4629
    if test -n "$lt_cv_sys_max_cmd_len"; then
4630
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4631
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4632
    else
4633
      # Make teststring a little bigger before we do anything with it.
4634
      # a 1K string should be a reasonable start.
4635
      for i in 1 2 3 4 5 6 7 8 ; do
4636
        teststring=$teststring$teststring
4637
      done
4638
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4639
      # If test is not a shell built-in, we'll probably end up computing a
4640
      # maximum length that is only half of the actual maximum length, but
4641
      # we can't tell.
4642
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4643
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4644
              test $i != 17 # 1/2 MB should be enough
4645
      do
4646
        i=`expr $i + 1`
4647
        teststring=$teststring$teststring
4648
      done
4649
      # Only check the string length outside the loop.
4650
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4651
      teststring=
4652
      # Add a significant safety factor because C++ compilers can tack on
4653
      # massive amounts of additional arguments before passing them to the
4654
      # linker.  It appears as though 1/2 is a usable value.
4655
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4656
    fi
4657
    ;;
4658
  esac
4659
 
4660
fi
4661
 
4662
if test -n $lt_cv_sys_max_cmd_len ; then
4663
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4664
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4665
else
4666
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4667
$as_echo "none" >&6; }
4668
fi
4669
max_cmd_len=$lt_cv_sys_max_cmd_len
4670
 
4671
 
4672
 
4673
 
4674
 
4675
 
4676
: ${CP="cp -f"}
4677
: ${MV="mv -f"}
4678
: ${RM="rm -f"}
4679
 
4680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4681
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4682
# Try some XSI features
4683
xsi_shell=no
4684
( _lt_dummy="a/b/c"
4685
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4686
      = c,a/b,, \
4687
    && eval 'test $(( 1 + 1 )) -eq 2 \
4688
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4689
  && xsi_shell=yes
4690
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4691
$as_echo "$xsi_shell" >&6; }
4692
 
4693
 
4694
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4695
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4696
lt_shell_append=no
4697
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4698
    >/dev/null 2>&1 \
4699
  && lt_shell_append=yes
4700
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4701
$as_echo "$lt_shell_append" >&6; }
4702
 
4703
 
4704
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4705
  lt_unset=unset
4706
else
4707
  lt_unset=false
4708
fi
4709
 
4710
 
4711
 
4712
 
4713
 
4714
# test EBCDIC or ASCII
4715
case `echo X|tr X '\101'` in
4716
 A) # ASCII based system
4717
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4718
  lt_SP2NL='tr \040 \012'
4719
  lt_NL2SP='tr \015\012 \040\040'
4720
  ;;
4721
 *) # EBCDIC based system
4722
  lt_SP2NL='tr \100 \n'
4723
  lt_NL2SP='tr \r\n \100\100'
4724
  ;;
4725
esac
4726
 
4727
 
4728
 
4729
 
4730
 
4731
 
4732
 
4733
 
4734
 
4735
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4736
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4737
if test "${lt_cv_ld_reload_flag+set}" = set; then :
4738
  $as_echo_n "(cached) " >&6
4739
else
4740
  lt_cv_ld_reload_flag='-r'
4741
fi
4742
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4743
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4744
reload_flag=$lt_cv_ld_reload_flag
4745
case $reload_flag in
4746
"" | " "*) ;;
4747
*) reload_flag=" $reload_flag" ;;
4748
esac
4749
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4750
case $host_os in
4751
  darwin*)
4752
    if test "$GCC" = yes; then
4753
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4754
    else
4755
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4756
    fi
4757
    ;;
4758
esac
4759
 
4760
 
4761
 
4762
 
4763
 
4764
 
4765
 
4766
 
4767
 
4768
if test -n "$ac_tool_prefix"; then
4769
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4770
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4771
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772
$as_echo_n "checking for $ac_word... " >&6; }
4773
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4774
  $as_echo_n "(cached) " >&6
4775
else
4776
  if test -n "$OBJDUMP"; then
4777
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4778
else
4779
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780
for as_dir in $PATH
4781
do
4782
  IFS=$as_save_IFS
4783
  test -z "$as_dir" && as_dir=.
4784
    for ac_exec_ext in '' $ac_executable_extensions; do
4785
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4787
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788
    break 2
4789
  fi
4790
done
4791
  done
4792
IFS=$as_save_IFS
4793
 
4794
fi
4795
fi
4796
OBJDUMP=$ac_cv_prog_OBJDUMP
4797
if test -n "$OBJDUMP"; then
4798
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4799
$as_echo "$OBJDUMP" >&6; }
4800
else
4801
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802
$as_echo "no" >&6; }
4803
fi
4804
 
4805
 
4806
fi
4807
if test -z "$ac_cv_prog_OBJDUMP"; then
4808
  ac_ct_OBJDUMP=$OBJDUMP
4809
  # Extract the first word of "objdump", so it can be a program name with args.
4810
set dummy objdump; ac_word=$2
4811
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812
$as_echo_n "checking for $ac_word... " >&6; }
4813
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4814
  $as_echo_n "(cached) " >&6
4815
else
4816
  if test -n "$ac_ct_OBJDUMP"; then
4817
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4818
else
4819
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820
for as_dir in $PATH
4821
do
4822
  IFS=$as_save_IFS
4823
  test -z "$as_dir" && as_dir=.
4824
    for ac_exec_ext in '' $ac_executable_extensions; do
4825
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4827
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828
    break 2
4829
  fi
4830
done
4831
  done
4832
IFS=$as_save_IFS
4833
 
4834
fi
4835
fi
4836
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4837
if test -n "$ac_ct_OBJDUMP"; then
4838
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4839
$as_echo "$ac_ct_OBJDUMP" >&6; }
4840
else
4841
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842
$as_echo "no" >&6; }
4843
fi
4844
 
4845
  if test "x$ac_ct_OBJDUMP" = x; then
4846
    OBJDUMP="false"
4847
  else
4848
    case $cross_compiling:$ac_tool_warned in
4849
yes:)
4850
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4851
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4852
ac_tool_warned=yes ;;
4853
esac
4854
    OBJDUMP=$ac_ct_OBJDUMP
4855
  fi
4856
else
4857
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4858
fi
4859
 
4860
test -z "$OBJDUMP" && OBJDUMP=objdump
4861
 
4862
 
4863
 
4864
 
4865
 
4866
 
4867
 
4868
 
4869
 
4870
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4871
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4872
if test "${lt_cv_deplibs_check_method+set}" = set; then :
4873
  $as_echo_n "(cached) " >&6
4874
else
4875 19 jeremybenn
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4876
lt_cv_file_magic_test_file=
4877
lt_cv_deplibs_check_method='unknown'
4878
# Need to set the preceding variable on all platforms that support
4879
# interlibrary dependencies.
4880
# 'none' -- dependencies not supported.
4881
# `unknown' -- same as none, but documents that we really don't know.
4882
# 'pass_all' -- all dependencies passed with no checks.
4883
# 'test_compile' -- check by making test program.
4884
# 'file_magic [[regex]]' -- check by looking for files in library path
4885
# which responds to the $file_magic_cmd with a given extended regex.
4886
# If you have `file' or equivalent on your system and you're not sure
4887
# whether `pass_all' will *always* work, you probably want this one.
4888
 
4889
case $host_os in
4890 202 julius
aix[4-9]*)
4891 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
4892
  ;;
4893
 
4894
beos*)
4895
  lt_cv_deplibs_check_method=pass_all
4896
  ;;
4897
 
4898
bsdi[45]*)
4899
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4900
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4901
  lt_cv_file_magic_test_file=/shlib/libc.so
4902
  ;;
4903
 
4904
cygwin*)
4905
  # func_win32_libid is a shell function defined in ltmain.sh
4906
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4907
  lt_cv_file_magic_cmd='func_win32_libid'
4908
  ;;
4909
 
4910
mingw* | pw32*)
4911
  # Base MSYS/MinGW do not provide the 'file' command needed by
4912
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4913
  # unless we find 'file', for example because we are cross-compiling.
4914
  if ( file / ) >/dev/null 2>&1; then
4915
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4916
    lt_cv_file_magic_cmd='func_win32_libid'
4917
  else
4918
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4919
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4920
  fi
4921
  ;;
4922
 
4923 202 julius
cegcc)
4924
  # use the weaker test based on 'objdump'. See mingw*.
4925
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4926
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4927
  ;;
4928
 
4929 19 jeremybenn
darwin* | rhapsody*)
4930
  lt_cv_deplibs_check_method=pass_all
4931
  ;;
4932
 
4933
freebsd* | dragonfly*)
4934 202 julius
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4935 19 jeremybenn
    case $host_cpu in
4936
    i*86 )
4937
      # Not sure whether the presence of OpenBSD here was a mistake.
4938
      # Let's accept both of them until this is cleared up.
4939
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4940
      lt_cv_file_magic_cmd=/usr/bin/file
4941
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4942
      ;;
4943
    esac
4944
  else
4945
    lt_cv_deplibs_check_method=pass_all
4946
  fi
4947
  ;;
4948
 
4949
gnu*)
4950
  lt_cv_deplibs_check_method=pass_all
4951
  ;;
4952
 
4953
hpux10.20* | hpux11*)
4954
  lt_cv_file_magic_cmd=/usr/bin/file
4955
  case $host_cpu in
4956
  ia64*)
4957
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4958
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4959
    ;;
4960
  hppa*64*)
4961
    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]'
4962
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4963
    ;;
4964
  *)
4965
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4966
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4967
    ;;
4968
  esac
4969
  ;;
4970
 
4971
interix[3-9]*)
4972
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4973
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4974
  ;;
4975
 
4976
irix5* | irix6* | nonstopux*)
4977
  case $LD in
4978
  *-32|*"-32 ") libmagic=32-bit;;
4979
  *-n32|*"-n32 ") libmagic=N32;;
4980
  *-64|*"-64 ") libmagic=64-bit;;
4981
  *) libmagic=never-match;;
4982
  esac
4983
  lt_cv_deplibs_check_method=pass_all
4984
  ;;
4985
 
4986
# This must be Linux ELF.
4987
linux* | k*bsd*-gnu)
4988
  lt_cv_deplibs_check_method=pass_all
4989
  ;;
4990
 
4991 202 julius
netbsd* | netbsdelf*-gnu)
4992
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4993 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4994
  else
4995
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4996
  fi
4997
  ;;
4998
 
4999
newos6*)
5000
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5001
  lt_cv_file_magic_cmd=/usr/bin/file
5002
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5003
  ;;
5004
 
5005 202 julius
*nto* | *qnx*)
5006
  lt_cv_deplibs_check_method=pass_all
5007 19 jeremybenn
  ;;
5008
 
5009
openbsd*)
5010 202 julius
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5011 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5012
  else
5013
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5014
  fi
5015
  ;;
5016
 
5017
osf3* | osf4* | osf5*)
5018
  lt_cv_deplibs_check_method=pass_all
5019
  ;;
5020
 
5021
rdos*)
5022
  lt_cv_deplibs_check_method=pass_all
5023
  ;;
5024
 
5025
solaris*)
5026
  lt_cv_deplibs_check_method=pass_all
5027
  ;;
5028
 
5029 202 julius
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5030
  lt_cv_deplibs_check_method=pass_all
5031
  ;;
5032
 
5033 19 jeremybenn
sysv4 | sysv4.3*)
5034
  case $host_vendor in
5035
  motorola)
5036
    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]'
5037
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5038
    ;;
5039
  ncr)
5040
    lt_cv_deplibs_check_method=pass_all
5041
    ;;
5042
  sequent)
5043
    lt_cv_file_magic_cmd='/bin/file'
5044
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5045
    ;;
5046
  sni)
5047
    lt_cv_file_magic_cmd='/bin/file'
5048
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5049
    lt_cv_file_magic_test_file=/lib/libc.so
5050
    ;;
5051
  siemens)
5052
    lt_cv_deplibs_check_method=pass_all
5053
    ;;
5054
  pc)
5055
    lt_cv_deplibs_check_method=pass_all
5056
    ;;
5057
  esac
5058
  ;;
5059
 
5060 202 julius
tpf*)
5061 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
5062
  ;;
5063
esac
5064
 
5065
fi
5066 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5067
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5068 19 jeremybenn
file_magic_cmd=$lt_cv_file_magic_cmd
5069
deplibs_check_method=$lt_cv_deplibs_check_method
5070
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5071
 
5072
 
5073 202 julius
 
5074
 
5075
 
5076 19 jeremybenn
 
5077
 
5078 202 julius
 
5079
 
5080
 
5081 19 jeremybenn
 
5082
 
5083 202 julius
if test -n "$ac_tool_prefix"; then
5084
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5085
set dummy ${ac_tool_prefix}ar; ac_word=$2
5086
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087
$as_echo_n "checking for $ac_word... " >&6; }
5088
if test "${ac_cv_prog_AR+set}" = set; then :
5089
  $as_echo_n "(cached) " >&6
5090 19 jeremybenn
else
5091 202 julius
  if test -n "$AR"; then
5092
  ac_cv_prog_AR="$AR" # Let the user override the test.
5093 19 jeremybenn
else
5094 202 julius
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095
for as_dir in $PATH
5096
do
5097
  IFS=$as_save_IFS
5098
  test -z "$as_dir" && as_dir=.
5099
    for ac_exec_ext in '' $ac_executable_extensions; do
5100
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5102
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103
    break 2
5104 19 jeremybenn
  fi
5105 202 julius
done
5106
  done
5107
IFS=$as_save_IFS
5108 19 jeremybenn
 
5109
fi
5110
fi
5111 202 julius
AR=$ac_cv_prog_AR
5112
if test -n "$AR"; then
5113
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5114
$as_echo "$AR" >&6; }
5115 19 jeremybenn
else
5116 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117
$as_echo "no" >&6; }
5118 19 jeremybenn
fi
5119
 
5120
 
5121
fi
5122 202 julius
if test -z "$ac_cv_prog_AR"; then
5123
  ac_ct_AR=$AR
5124
  # Extract the first word of "ar", so it can be a program name with args.
5125
set dummy ar; ac_word=$2
5126
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127
$as_echo_n "checking for $ac_word... " >&6; }
5128
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5129
  $as_echo_n "(cached) " >&6
5130 19 jeremybenn
else
5131 202 julius
  if test -n "$ac_ct_AR"; then
5132
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5133
else
5134
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135
for as_dir in $PATH
5136 19 jeremybenn
do
5137 202 julius
  IFS=$as_save_IFS
5138
  test -z "$as_dir" && as_dir=.
5139
    for ac_exec_ext in '' $ac_executable_extensions; do
5140
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141
    ac_cv_prog_ac_ct_AR="ar"
5142
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143
    break 2
5144
  fi
5145 19 jeremybenn
done
5146 202 julius
  done
5147
IFS=$as_save_IFS
5148 19 jeremybenn
 
5149
fi
5150
fi
5151 202 julius
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5152
if test -n "$ac_ct_AR"; then
5153
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5154
$as_echo "$ac_ct_AR" >&6; }
5155 19 jeremybenn
else
5156 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157
$as_echo "no" >&6; }
5158 19 jeremybenn
fi
5159
 
5160 202 julius
  if test "x$ac_ct_AR" = x; then
5161
    AR="false"
5162
  else
5163
    case $cross_compiling:$ac_tool_warned in
5164
yes:)
5165
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5166
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5167
ac_tool_warned=yes ;;
5168 19 jeremybenn
esac
5169 202 julius
    AR=$ac_ct_AR
5170
  fi
5171 19 jeremybenn
else
5172 202 julius
  AR="$ac_cv_prog_AR"
5173 19 jeremybenn
fi
5174
 
5175 202 julius
test -z "$AR" && AR=ar
5176
test -z "$AR_FLAGS" && AR_FLAGS=cru
5177 19 jeremybenn
 
5178 202 julius
 
5179
 
5180
 
5181 19 jeremybenn
 
5182
 
5183 202 julius
 
5184
 
5185
 
5186 19 jeremybenn
 
5187
 
5188 202 julius
if test -n "$ac_tool_prefix"; then
5189
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5190
set dummy ${ac_tool_prefix}strip; ac_word=$2
5191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192
$as_echo_n "checking for $ac_word... " >&6; }
5193
if test "${ac_cv_prog_STRIP+set}" = set; then :
5194
  $as_echo_n "(cached) " >&6
5195 19 jeremybenn
else
5196 202 julius
  if test -n "$STRIP"; then
5197
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5198 19 jeremybenn
else
5199
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200
for as_dir in $PATH
5201
do
5202
  IFS=$as_save_IFS
5203
  test -z "$as_dir" && as_dir=.
5204 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
5205 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206 202 julius
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5207
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 19 jeremybenn
    break 2
5209
  fi
5210
done
5211 202 julius
  done
5212 19 jeremybenn
IFS=$as_save_IFS
5213
 
5214
fi
5215
fi
5216 202 julius
STRIP=$ac_cv_prog_STRIP
5217
if test -n "$STRIP"; then
5218
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5219
$as_echo "$STRIP" >&6; }
5220 19 jeremybenn
else
5221 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222
$as_echo "no" >&6; }
5223 19 jeremybenn
fi
5224
 
5225
 
5226
fi
5227 202 julius
if test -z "$ac_cv_prog_STRIP"; then
5228
  ac_ct_STRIP=$STRIP
5229
  # Extract the first word of "strip", so it can be a program name with args.
5230
set dummy strip; ac_word=$2
5231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232
$as_echo_n "checking for $ac_word... " >&6; }
5233
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5234
  $as_echo_n "(cached) " >&6
5235 19 jeremybenn
else
5236 202 julius
  if test -n "$ac_ct_STRIP"; then
5237
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5238 19 jeremybenn
else
5239
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240
for as_dir in $PATH
5241
do
5242
  IFS=$as_save_IFS
5243
  test -z "$as_dir" && as_dir=.
5244 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
5245 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 202 julius
    ac_cv_prog_ac_ct_STRIP="strip"
5247
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 19 jeremybenn
    break 2
5249
  fi
5250
done
5251 202 julius
  done
5252 19 jeremybenn
IFS=$as_save_IFS
5253
 
5254
fi
5255
fi
5256 202 julius
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5257
if test -n "$ac_ct_STRIP"; then
5258
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5259
$as_echo "$ac_ct_STRIP" >&6; }
5260 19 jeremybenn
else
5261 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262
$as_echo "no" >&6; }
5263 19 jeremybenn
fi
5264
 
5265 202 julius
  if test "x$ac_ct_STRIP" = x; then
5266
    STRIP=":"
5267 19 jeremybenn
  else
5268
    case $cross_compiling:$ac_tool_warned in
5269
yes:)
5270 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5271
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5272 19 jeremybenn
ac_tool_warned=yes ;;
5273
esac
5274 202 julius
    STRIP=$ac_ct_STRIP
5275 19 jeremybenn
  fi
5276
else
5277 202 julius
  STRIP="$ac_cv_prog_STRIP"
5278 19 jeremybenn
fi
5279
 
5280 202 julius
test -z "$STRIP" && STRIP=:
5281 19 jeremybenn
 
5282 202 julius
 
5283
 
5284
 
5285 19 jeremybenn
 
5286
 
5287
if test -n "$ac_tool_prefix"; then
5288 202 julius
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5289
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5290
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291
$as_echo_n "checking for $ac_word... " >&6; }
5292
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5293
  $as_echo_n "(cached) " >&6
5294 19 jeremybenn
else
5295 202 julius
  if test -n "$RANLIB"; then
5296
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5297 19 jeremybenn
else
5298
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299
for as_dir in $PATH
5300
do
5301
  IFS=$as_save_IFS
5302
  test -z "$as_dir" && as_dir=.
5303 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
5304 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305 202 julius
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5306
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 19 jeremybenn
    break 2
5308
  fi
5309
done
5310 202 julius
  done
5311 19 jeremybenn
IFS=$as_save_IFS
5312
 
5313
fi
5314
fi
5315 202 julius
RANLIB=$ac_cv_prog_RANLIB
5316
if test -n "$RANLIB"; then
5317
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5318
$as_echo "$RANLIB" >&6; }
5319 19 jeremybenn
else
5320 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321
$as_echo "no" >&6; }
5322 19 jeremybenn
fi
5323
 
5324
 
5325
fi
5326 202 julius
if test -z "$ac_cv_prog_RANLIB"; then
5327
  ac_ct_RANLIB=$RANLIB
5328
  # Extract the first word of "ranlib", so it can be a program name with args.
5329
set dummy ranlib; ac_word=$2
5330
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5331
$as_echo_n "checking for $ac_word... " >&6; }
5332
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5333
  $as_echo_n "(cached) " >&6
5334 19 jeremybenn
else
5335 202 julius
  if test -n "$ac_ct_RANLIB"; then
5336
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5337 19 jeremybenn
else
5338
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339
for as_dir in $PATH
5340
do
5341
  IFS=$as_save_IFS
5342
  test -z "$as_dir" && as_dir=.
5343 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
5344 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5345 202 julius
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5346
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 19 jeremybenn
    break 2
5348
  fi
5349
done
5350 202 julius
  done
5351 19 jeremybenn
IFS=$as_save_IFS
5352
 
5353
fi
5354
fi
5355 202 julius
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5356
if test -n "$ac_ct_RANLIB"; then
5357
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5358
$as_echo "$ac_ct_RANLIB" >&6; }
5359 19 jeremybenn
else
5360 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361
$as_echo "no" >&6; }
5362 19 jeremybenn
fi
5363
 
5364 202 julius
  if test "x$ac_ct_RANLIB" = x; then
5365
    RANLIB=":"
5366 19 jeremybenn
  else
5367
    case $cross_compiling:$ac_tool_warned in
5368
yes:)
5369 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5370
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5371 19 jeremybenn
ac_tool_warned=yes ;;
5372
esac
5373 202 julius
    RANLIB=$ac_ct_RANLIB
5374 19 jeremybenn
  fi
5375
else
5376 202 julius
  RANLIB="$ac_cv_prog_RANLIB"
5377 19 jeremybenn
fi
5378
 
5379 202 julius
test -z "$RANLIB" && RANLIB=:
5380 19 jeremybenn
 
5381 202 julius
 
5382
 
5383
 
5384 19 jeremybenn
 
5385
 
5386 202 julius
# Determine commands to create old-style static archives.
5387
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5388
old_postinstall_cmds='chmod 644 $oldlib'
5389
old_postuninstall_cmds=
5390 19 jeremybenn
 
5391 202 julius
if test -n "$RANLIB"; then
5392
  case $host_os in
5393
  openbsd*)
5394
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5395
    ;;
5396
  *)
5397
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5398
    ;;
5399
  esac
5400
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5401 19 jeremybenn
fi
5402
 
5403 202 julius
 
5404
 
5405
 
5406 19 jeremybenn
 
5407
 
5408 202 julius
 
5409
 
5410
 
5411 19 jeremybenn
 
5412
 
5413 202 julius
 
5414
 
5415
 
5416 19 jeremybenn
 
5417
 
5418
 
5419
 
5420 202 julius
 
5421
 
5422
 
5423 19 jeremybenn
 
5424 202 julius
 
5425
 
5426
 
5427 19 jeremybenn
 
5428 202 julius
 
5429
 
5430
 
5431 19 jeremybenn
 
5432 202 julius
 
5433
 
5434
 
5435 19 jeremybenn
 
5436 202 julius
# If no C compiler was specified, use CC.
5437
LTCC=${LTCC-"$CC"}
5438 19 jeremybenn
 
5439 202 julius
# If no C compiler flags were specified, use CFLAGS.
5440
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5441 19 jeremybenn
 
5442 202 julius
# Allow CC to be a program name with arguments.
5443
compiler=$CC
5444 19 jeremybenn
 
5445
 
5446
# Check for command to grab the raw symbol name followed by C symbol from nm.
5447 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5448
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5449
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5450
  $as_echo_n "(cached) " >&6
5451 19 jeremybenn
else
5452
 
5453
# These are sane defaults that work on at least a few old systems.
5454
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5455
 
5456
# Character class describing NM global symbol codes.
5457
symcode='[BCDEGRST]'
5458
 
5459
# Regexp to match symbols that can be accessed directly from C.
5460
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5461
 
5462
# Define system-specific variables.
5463
case $host_os in
5464
aix*)
5465
  symcode='[BCDT]'
5466
  ;;
5467 202 julius
cygwin* | mingw* | pw32* | cegcc*)
5468 19 jeremybenn
  symcode='[ABCDGISTW]'
5469
  ;;
5470 202 julius
hpux*)
5471 19 jeremybenn
  if test "$host_cpu" = ia64; then
5472
    symcode='[ABCDEGRST]'
5473
  fi
5474
  ;;
5475
irix* | nonstopux*)
5476
  symcode='[BCDEGRST]'
5477
  ;;
5478
osf*)
5479
  symcode='[BCDEGQRST]'
5480
  ;;
5481
solaris*)
5482
  symcode='[BDRT]'
5483
  ;;
5484
sco3.2v5*)
5485
  symcode='[DT]'
5486
  ;;
5487
sysv4.2uw2*)
5488
  symcode='[DT]'
5489
  ;;
5490
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5491
  symcode='[ABDT]'
5492
  ;;
5493
sysv4)
5494
  symcode='[DFNSTU]'
5495
  ;;
5496
esac
5497
 
5498 202 julius
# If we're using GNU nm, then use its standard symbol codes.
5499
case `$NM -V 2>&1` in
5500
*GNU* | *'with BFD'*)
5501
  symcode='[ABCDGIRSTW]' ;;
5502
esac
5503
 
5504
# Transform an extracted symbol line into a proper C declaration.
5505
# Some systems (esp. on ia64) link data and code symbols differently,
5506
# so use this general approach.
5507
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5508
 
5509
# Transform an extracted symbol line into symbol name and symbol address
5510
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5511
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'"
5512
 
5513 19 jeremybenn
# Handle CRLF in mingw tool chain
5514
opt_cr=
5515
case $build_os in
5516
mingw*)
5517 202 julius
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5518 19 jeremybenn
  ;;
5519
esac
5520
 
5521 202 julius
# Try without a prefix underscore, then with it.
5522 19 jeremybenn
for ac_symprfx in "" "_"; do
5523
 
5524
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5525
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5526
 
5527
  # Write the raw and C identifiers.
5528 202 julius
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5529
    # Fake it for dumpbin and say T for any non-static function
5530
    # and D for any global variable.
5531
    # Also find C++ and __fastcall symbols from MSVC++,
5532
    # which start with @ or ?.
5533
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5534
"     {last_section=section; section=\$ 3};"\
5535
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5536
"     \$ 0!~/External *\|/{next};"\
5537
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5538
"     {if(hide[section]) next};"\
5539
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5540
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5541
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5542
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5543
"     ' prfx=^$ac_symprfx"
5544
  else
5545
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5546
  fi
5547 19 jeremybenn
 
5548
  # Check to see that the pipe works correctly.
5549
  pipe_works=no
5550
 
5551
  rm -f conftest*
5552 202 julius
  cat > conftest.$ac_ext <<_LT_EOF
5553 19 jeremybenn
#ifdef __cplusplus
5554
extern "C" {
5555
#endif
5556
char nm_test_var;
5557 202 julius
void nm_test_func(void);
5558
void nm_test_func(void){}
5559 19 jeremybenn
#ifdef __cplusplus
5560
}
5561
#endif
5562
int main(){nm_test_var='a';nm_test_func();return(0);}
5563 202 julius
_LT_EOF
5564 19 jeremybenn
 
5565 202 julius
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5566 19 jeremybenn
  (eval $ac_compile) 2>&5
5567
  ac_status=$?
5568 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5569
  test $ac_status = 0; }; then
5570 19 jeremybenn
    # Now try to grab the symbols.
5571
    nlist=conftest.nm
5572 202 julius
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5573 19 jeremybenn
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5574
  ac_status=$?
5575 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5576
  test $ac_status = 0; } && test -s "$nlist"; then
5577 19 jeremybenn
      # Try sorting and uniquifying the output.
5578
      if sort "$nlist" | uniq > "$nlist"T; then
5579
        mv -f "$nlist"T "$nlist"
5580
      else
5581
        rm -f "$nlist"T
5582
      fi
5583
 
5584
      # Make sure that we snagged all the symbols we need.
5585 202 julius
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5586
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5587
          cat <<_LT_EOF > conftest.$ac_ext
5588 19 jeremybenn
#ifdef __cplusplus
5589
extern "C" {
5590
#endif
5591
 
5592 202 julius
_LT_EOF
5593 19 jeremybenn
          # Now generate the symbol file.
5594 202 julius
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5595 19 jeremybenn
 
5596 202 julius
          cat <<_LT_EOF >> conftest.$ac_ext
5597 19 jeremybenn
 
5598 202 julius
/* The mapping between symbol names and symbols.  */
5599 19 jeremybenn
const struct {
5600
  const char *name;
5601 202 julius
  void       *address;
5602 19 jeremybenn
}
5603 202 julius
lt__PROGRAM__LTX_preloaded_symbols[] =
5604 19 jeremybenn
{
5605 202 julius
  { "@PROGRAM@", (void *) 0 },
5606
_LT_EOF
5607
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5608
          cat <<\_LT_EOF >> conftest.$ac_ext
5609
  {0, (void *) 0}
5610 19 jeremybenn
};
5611
 
5612 202 julius
/* This works around a problem in FreeBSD linker */
5613
#ifdef FREEBSD_WORKAROUND
5614
static const void *lt_preloaded_setup() {
5615
  return lt__PROGRAM__LTX_preloaded_symbols;
5616
}
5617
#endif
5618
 
5619 19 jeremybenn
#ifdef __cplusplus
5620
}
5621
#endif
5622 202 julius
_LT_EOF
5623 19 jeremybenn
          # Now try linking the two files.
5624
          mv conftest.$ac_objext conftstm.$ac_objext
5625
          lt_save_LIBS="$LIBS"
5626
          lt_save_CFLAGS="$CFLAGS"
5627
          LIBS="conftstm.$ac_objext"
5628
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5629 202 julius
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5630 19 jeremybenn
  (eval $ac_link) 2>&5
5631
  ac_status=$?
5632 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5633
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5634 19 jeremybenn
            pipe_works=yes
5635
          fi
5636
          LIBS="$lt_save_LIBS"
5637
          CFLAGS="$lt_save_CFLAGS"
5638
        else
5639
          echo "cannot find nm_test_func in $nlist" >&5
5640
        fi
5641
      else
5642
        echo "cannot find nm_test_var in $nlist" >&5
5643
      fi
5644
    else
5645
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5646
    fi
5647
  else
5648
    echo "$progname: failed program was:" >&5
5649
    cat conftest.$ac_ext >&5
5650
  fi
5651 202 julius
  rm -rf conftest* conftst*
5652 19 jeremybenn
 
5653
  # Do not use the global_symbol_pipe unless it works.
5654
  if test "$pipe_works" = yes; then
5655
    break
5656
  else
5657
    lt_cv_sys_global_symbol_pipe=
5658
  fi
5659
done
5660
 
5661
fi
5662
 
5663
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5664
  lt_cv_sys_global_symbol_to_cdecl=
5665
fi
5666
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5667 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5668
$as_echo "failed" >&6; }
5669 19 jeremybenn
else
5670 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5671
$as_echo "ok" >&6; }
5672 19 jeremybenn
fi
5673
 
5674 202 julius
 
5675
 
5676
 
5677
 
5678
 
5679
 
5680
 
5681
 
5682
 
5683
 
5684
 
5685
 
5686
 
5687
 
5688
 
5689
 
5690
 
5691
 
5692
 
5693
 
5694
 
5695
@%:@ Check whether --enable-libtool-lock was given.
5696
if test "${enable_libtool_lock+set}" = set; then :
5697
  enableval=$enable_libtool_lock;
5698 19 jeremybenn
fi
5699
 
5700 202 julius
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5701 19 jeremybenn
 
5702 202 julius
# Some flags need to be propagated to the compiler or linker for good
5703
# libtool support.
5704
case $host in
5705
ia64-*-hpux*)
5706
  # Find out which ABI we are using.
5707
  echo 'int i;' > conftest.$ac_ext
5708
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5709
  (eval $ac_compile) 2>&5
5710
  ac_status=$?
5711
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5712
  test $ac_status = 0; }; then
5713
    case `/usr/bin/file conftest.$ac_objext` in
5714
      *ELF-32*)
5715
        HPUX_IA64_MODE="32"
5716
        ;;
5717
      *ELF-64*)
5718
        HPUX_IA64_MODE="64"
5719
        ;;
5720
    esac
5721
  fi
5722
  rm -rf conftest*
5723
  ;;
5724
*-*-irix6*)
5725
  # Find out which ABI we are using.
5726
  echo '#line __oline__ "configure"' > conftest.$ac_ext
5727
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5728
  (eval $ac_compile) 2>&5
5729
  ac_status=$?
5730
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5731
  test $ac_status = 0; }; then
5732
    if test "$lt_cv_prog_gnu_ld" = yes; then
5733
      case `/usr/bin/file conftest.$ac_objext` in
5734
        *32-bit*)
5735
          LD="${LD-ld} -melf32bsmip"
5736
          ;;
5737
        *N32*)
5738
          LD="${LD-ld} -melf32bmipn32"
5739
          ;;
5740
        *64-bit*)
5741
          LD="${LD-ld} -melf64bmip"
5742
        ;;
5743
      esac
5744
    else
5745
      case `/usr/bin/file conftest.$ac_objext` in
5746
        *32-bit*)
5747
          LD="${LD-ld} -32"
5748
          ;;
5749
        *N32*)
5750
          LD="${LD-ld} -n32"
5751
          ;;
5752
        *64-bit*)
5753
          LD="${LD-ld} -64"
5754
          ;;
5755
      esac
5756
    fi
5757
  fi
5758
  rm -rf conftest*
5759
  ;;
5760 19 jeremybenn
 
5761 202 julius
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5762
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5763
  # Find out which ABI we are using.
5764
  echo 'int i;' > conftest.$ac_ext
5765
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5766
  (eval $ac_compile) 2>&5
5767
  ac_status=$?
5768
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5769
  test $ac_status = 0; }; then
5770
    case `/usr/bin/file conftest.o` in
5771
      *32-bit*)
5772
        case $host in
5773
          x86_64-*kfreebsd*-gnu)
5774
            LD="${LD-ld} -m elf_i386_fbsd"
5775
            ;;
5776
          x86_64-*linux*)
5777
            LD="${LD-ld} -m elf_i386"
5778
            ;;
5779
          ppc64-*linux*|powerpc64-*linux*)
5780
            LD="${LD-ld} -m elf32ppclinux"
5781
            ;;
5782
          s390x-*linux*)
5783
            LD="${LD-ld} -m elf_s390"
5784
            ;;
5785
          sparc64-*linux*)
5786
            LD="${LD-ld} -m elf32_sparc"
5787
            ;;
5788
        esac
5789
        ;;
5790
      *64-bit*)
5791
        case $host in
5792
          x86_64-*kfreebsd*-gnu)
5793
            LD="${LD-ld} -m elf_x86_64_fbsd"
5794
            ;;
5795
          x86_64-*linux*)
5796
            LD="${LD-ld} -m elf_x86_64"
5797
            ;;
5798
          ppc*-*linux*|powerpc*-*linux*)
5799
            LD="${LD-ld} -m elf64ppc"
5800
            ;;
5801
          s390*-*linux*|s390*-*tpf*)
5802
            LD="${LD-ld} -m elf64_s390"
5803
            ;;
5804
          sparc*-*linux*)
5805
            LD="${LD-ld} -m elf64_sparc"
5806
            ;;
5807
        esac
5808
        ;;
5809
    esac
5810
  fi
5811
  rm -rf conftest*
5812
  ;;
5813 19 jeremybenn
 
5814 202 julius
*-*-sco3.2v5*)
5815
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5816
  SAVE_CFLAGS="$CFLAGS"
5817
  CFLAGS="$CFLAGS -belf"
5818
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5819
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5820
if test "${lt_cv_cc_needs_belf+set}" = set; then :
5821
  $as_echo_n "(cached) " >&6
5822
else
5823
  ac_ext=c
5824
ac_cpp='$CPP $CPPFLAGS'
5825
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5826
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5827
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5828 19 jeremybenn
 
5829 202 julius
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830
/* end confdefs.h.  */
5831
 
5832
int
5833
main ()
5834
{
5835
 
5836
  ;
5837
  return 0;
5838
}
5839
_ACEOF
5840
if ac_fn_c_try_link "$LINENO"; then :
5841
  lt_cv_cc_needs_belf=yes
5842
else
5843
  lt_cv_cc_needs_belf=no
5844
fi
5845
rm -f core conftest.err conftest.$ac_objext \
5846
    conftest$ac_exeext conftest.$ac_ext
5847
     ac_ext=c
5848
ac_cpp='$CPP $CPPFLAGS'
5849
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5850
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5851
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5852
 
5853
fi
5854
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5855
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5856
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5857
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5858
    CFLAGS="$SAVE_CFLAGS"
5859 19 jeremybenn
  fi
5860
  ;;
5861 202 julius
sparc*-*solaris*)
5862
  # Find out which ABI we are using.
5863
  echo 'int i;' > conftest.$ac_ext
5864
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5865
  (eval $ac_compile) 2>&5
5866
  ac_status=$?
5867
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5868
  test $ac_status = 0; }; then
5869
    case `/usr/bin/file conftest.o` in
5870
    *64-bit*)
5871
      case $lt_cv_prog_gnu_ld in
5872
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5873
      *)
5874
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5875
          LD="${LD-ld} -64"
5876
        fi
5877
        ;;
5878
      esac
5879
      ;;
5880
    esac
5881
  fi
5882
  rm -rf conftest*
5883
  ;;
5884 19 jeremybenn
esac
5885
 
5886 202 julius
need_locks="$enable_libtool_lock"
5887 19 jeremybenn
 
5888
 
5889 202 julius
  case $host_os in
5890
    rhapsody* | darwin*)
5891
    if test -n "$ac_tool_prefix"; then
5892
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5893
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895
$as_echo_n "checking for $ac_word... " >&6; }
5896
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5897
  $as_echo_n "(cached) " >&6
5898
else
5899
  if test -n "$DSYMUTIL"; then
5900
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5901
else
5902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903
for as_dir in $PATH
5904
do
5905
  IFS=$as_save_IFS
5906
  test -z "$as_dir" && as_dir=.
5907
    for ac_exec_ext in '' $ac_executable_extensions; do
5908
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5909
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5910
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911
    break 2
5912
  fi
5913
done
5914
  done
5915
IFS=$as_save_IFS
5916 19 jeremybenn
 
5917 202 julius
fi
5918
fi
5919
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5920
if test -n "$DSYMUTIL"; then
5921
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5922
$as_echo "$DSYMUTIL" >&6; }
5923
else
5924
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925
$as_echo "no" >&6; }
5926
fi
5927 19 jeremybenn
 
5928
 
5929 202 julius
fi
5930
if test -z "$ac_cv_prog_DSYMUTIL"; then
5931
  ac_ct_DSYMUTIL=$DSYMUTIL
5932
  # Extract the first word of "dsymutil", so it can be a program name with args.
5933
set dummy dsymutil; ac_word=$2
5934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935
$as_echo_n "checking for $ac_word... " >&6; }
5936
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5937
  $as_echo_n "(cached) " >&6
5938
else
5939
  if test -n "$ac_ct_DSYMUTIL"; then
5940
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5941
else
5942
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943
for as_dir in $PATH
5944
do
5945
  IFS=$as_save_IFS
5946
  test -z "$as_dir" && as_dir=.
5947
    for ac_exec_ext in '' $ac_executable_extensions; do
5948
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5949
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5950
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951
    break 2
5952
  fi
5953
done
5954
  done
5955
IFS=$as_save_IFS
5956 19 jeremybenn
 
5957 202 julius
fi
5958
fi
5959
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5960
if test -n "$ac_ct_DSYMUTIL"; then
5961
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5962
$as_echo "$ac_ct_DSYMUTIL" >&6; }
5963
else
5964
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965
$as_echo "no" >&6; }
5966
fi
5967 19 jeremybenn
 
5968 202 julius
  if test "x$ac_ct_DSYMUTIL" = x; then
5969
    DSYMUTIL=":"
5970
  else
5971
    case $cross_compiling:$ac_tool_warned in
5972
yes:)
5973
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5974
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5975
ac_tool_warned=yes ;;
5976
esac
5977
    DSYMUTIL=$ac_ct_DSYMUTIL
5978
  fi
5979 19 jeremybenn
else
5980 202 julius
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5981
fi
5982
 
5983
    if test -n "$ac_tool_prefix"; then
5984
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5985
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5986
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987
$as_echo_n "checking for $ac_word... " >&6; }
5988
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5989
  $as_echo_n "(cached) " >&6
5990 19 jeremybenn
else
5991 202 julius
  if test -n "$NMEDIT"; then
5992
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5993
else
5994 19 jeremybenn
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995
for as_dir in $PATH
5996
do
5997
  IFS=$as_save_IFS
5998
  test -z "$as_dir" && as_dir=.
5999 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
6000 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6001 202 julius
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6002
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 19 jeremybenn
    break 2
6004
  fi
6005
done
6006 202 julius
  done
6007 19 jeremybenn
IFS=$as_save_IFS
6008
 
6009
fi
6010
fi
6011 202 julius
NMEDIT=$ac_cv_prog_NMEDIT
6012
if test -n "$NMEDIT"; then
6013
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6014
$as_echo "$NMEDIT" >&6; }
6015 19 jeremybenn
else
6016 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017
$as_echo "no" >&6; }
6018 19 jeremybenn
fi
6019
 
6020
 
6021
fi
6022 202 julius
if test -z "$ac_cv_prog_NMEDIT"; then
6023
  ac_ct_NMEDIT=$NMEDIT
6024
  # Extract the first word of "nmedit", so it can be a program name with args.
6025
set dummy nmedit; ac_word=$2
6026
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027
$as_echo_n "checking for $ac_word... " >&6; }
6028
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6029
  $as_echo_n "(cached) " >&6
6030 19 jeremybenn
else
6031 202 julius
  if test -n "$ac_ct_NMEDIT"; then
6032
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6033 19 jeremybenn
else
6034
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035
for as_dir in $PATH
6036
do
6037
  IFS=$as_save_IFS
6038
  test -z "$as_dir" && as_dir=.
6039 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
6040 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041 202 julius
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6042
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043 19 jeremybenn
    break 2
6044
  fi
6045
done
6046 202 julius
  done
6047 19 jeremybenn
IFS=$as_save_IFS
6048
 
6049
fi
6050
fi
6051 202 julius
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6052
if test -n "$ac_ct_NMEDIT"; then
6053
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6054
$as_echo "$ac_ct_NMEDIT" >&6; }
6055 19 jeremybenn
else
6056 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057
$as_echo "no" >&6; }
6058 19 jeremybenn
fi
6059
 
6060 202 julius
  if test "x$ac_ct_NMEDIT" = x; then
6061
    NMEDIT=":"
6062 19 jeremybenn
  else
6063
    case $cross_compiling:$ac_tool_warned in
6064
yes:)
6065 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6066
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6067 19 jeremybenn
ac_tool_warned=yes ;;
6068
esac
6069 202 julius
    NMEDIT=$ac_ct_NMEDIT
6070 19 jeremybenn
  fi
6071
else
6072 202 julius
  NMEDIT="$ac_cv_prog_NMEDIT"
6073 19 jeremybenn
fi
6074
 
6075 202 julius
    if test -n "$ac_tool_prefix"; then
6076
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6077
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079
$as_echo_n "checking for $ac_word... " >&6; }
6080
if test "${ac_cv_prog_LIPO+set}" = set; then :
6081
  $as_echo_n "(cached) " >&6
6082 19 jeremybenn
else
6083 202 julius
  if test -n "$LIPO"; then
6084
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6085 19 jeremybenn
else
6086
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087
for as_dir in $PATH
6088
do
6089
  IFS=$as_save_IFS
6090
  test -z "$as_dir" && as_dir=.
6091 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
6092 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6093 202 julius
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6094
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 19 jeremybenn
    break 2
6096
  fi
6097
done
6098 202 julius
  done
6099 19 jeremybenn
IFS=$as_save_IFS
6100
 
6101
fi
6102
fi
6103 202 julius
LIPO=$ac_cv_prog_LIPO
6104
if test -n "$LIPO"; then
6105
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6106
$as_echo "$LIPO" >&6; }
6107 19 jeremybenn
else
6108 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109
$as_echo "no" >&6; }
6110 19 jeremybenn
fi
6111
 
6112
 
6113
fi
6114 202 julius
if test -z "$ac_cv_prog_LIPO"; then
6115
  ac_ct_LIPO=$LIPO
6116
  # Extract the first word of "lipo", so it can be a program name with args.
6117
set dummy lipo; ac_word=$2
6118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119
$as_echo_n "checking for $ac_word... " >&6; }
6120
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6121
  $as_echo_n "(cached) " >&6
6122 19 jeremybenn
else
6123 202 julius
  if test -n "$ac_ct_LIPO"; then
6124
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6125 19 jeremybenn
else
6126
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127
for as_dir in $PATH
6128
do
6129
  IFS=$as_save_IFS
6130
  test -z "$as_dir" && as_dir=.
6131 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
6132 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6133 202 julius
    ac_cv_prog_ac_ct_LIPO="lipo"
6134
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 19 jeremybenn
    break 2
6136
  fi
6137
done
6138 202 julius
  done
6139 19 jeremybenn
IFS=$as_save_IFS
6140
 
6141
fi
6142
fi
6143 202 julius
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6144
if test -n "$ac_ct_LIPO"; then
6145
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6146
$as_echo "$ac_ct_LIPO" >&6; }
6147 19 jeremybenn
else
6148 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149
$as_echo "no" >&6; }
6150 19 jeremybenn
fi
6151
 
6152 202 julius
  if test "x$ac_ct_LIPO" = x; then
6153
    LIPO=":"
6154 19 jeremybenn
  else
6155
    case $cross_compiling:$ac_tool_warned in
6156
yes:)
6157 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6158
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6159 19 jeremybenn
ac_tool_warned=yes ;;
6160
esac
6161 202 julius
    LIPO=$ac_ct_LIPO
6162 19 jeremybenn
  fi
6163
else
6164 202 julius
  LIPO="$ac_cv_prog_LIPO"
6165 19 jeremybenn
fi
6166
 
6167 202 julius
    if test -n "$ac_tool_prefix"; then
6168
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6169
set dummy ${ac_tool_prefix}otool; ac_word=$2
6170
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171
$as_echo_n "checking for $ac_word... " >&6; }
6172
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6173
  $as_echo_n "(cached) " >&6
6174 19 jeremybenn
else
6175 202 julius
  if test -n "$OTOOL"; then
6176
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6177 19 jeremybenn
else
6178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179
for as_dir in $PATH
6180
do
6181
  IFS=$as_save_IFS
6182
  test -z "$as_dir" && as_dir=.
6183 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
6184 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185 202 julius
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6186
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 19 jeremybenn
    break 2
6188
  fi
6189
done
6190 202 julius
  done
6191 19 jeremybenn
IFS=$as_save_IFS
6192
 
6193
fi
6194
fi
6195 202 julius
OTOOL=$ac_cv_prog_OTOOL
6196
if test -n "$OTOOL"; then
6197
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6198
$as_echo "$OTOOL" >&6; }
6199 19 jeremybenn
else
6200 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201
$as_echo "no" >&6; }
6202 19 jeremybenn
fi
6203
 
6204
 
6205
fi
6206 202 julius
if test -z "$ac_cv_prog_OTOOL"; then
6207
  ac_ct_OTOOL=$OTOOL
6208
  # Extract the first word of "otool", so it can be a program name with args.
6209
set dummy otool; ac_word=$2
6210
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211
$as_echo_n "checking for $ac_word... " >&6; }
6212
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6213
  $as_echo_n "(cached) " >&6
6214 19 jeremybenn
else
6215 202 julius
  if test -n "$ac_ct_OTOOL"; then
6216
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6217 19 jeremybenn
else
6218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219
for as_dir in $PATH
6220
do
6221
  IFS=$as_save_IFS
6222
  test -z "$as_dir" && as_dir=.
6223 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
6224 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225 202 julius
    ac_cv_prog_ac_ct_OTOOL="otool"
6226
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 19 jeremybenn
    break 2
6228
  fi
6229
done
6230 202 julius
  done
6231
IFS=$as_save_IFS
6232
 
6233
fi
6234
fi
6235
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6236
if test -n "$ac_ct_OTOOL"; then
6237
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6238
$as_echo "$ac_ct_OTOOL" >&6; }
6239
else
6240
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241
$as_echo "no" >&6; }
6242
fi
6243
 
6244
  if test "x$ac_ct_OTOOL" = x; then
6245
    OTOOL=":"
6246
  else
6247
    case $cross_compiling:$ac_tool_warned in
6248
yes:)
6249
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6250
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6251
ac_tool_warned=yes ;;
6252
esac
6253
    OTOOL=$ac_ct_OTOOL
6254
  fi
6255
else
6256
  OTOOL="$ac_cv_prog_OTOOL"
6257
fi
6258
 
6259
    if test -n "$ac_tool_prefix"; then
6260
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6261
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6262
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263
$as_echo_n "checking for $ac_word... " >&6; }
6264
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6265
  $as_echo_n "(cached) " >&6
6266
else
6267
  if test -n "$OTOOL64"; then
6268
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6269
else
6270
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271
for as_dir in $PATH
6272
do
6273
  IFS=$as_save_IFS
6274
  test -z "$as_dir" && as_dir=.
6275
    for ac_exec_ext in '' $ac_executable_extensions; do
6276
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6277
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6278
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279
    break 2
6280
  fi
6281 19 jeremybenn
done
6282 202 julius
  done
6283 19 jeremybenn
IFS=$as_save_IFS
6284
 
6285
fi
6286
fi
6287 202 julius
OTOOL64=$ac_cv_prog_OTOOL64
6288
if test -n "$OTOOL64"; then
6289
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6290
$as_echo "$OTOOL64" >&6; }
6291 19 jeremybenn
else
6292 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293
$as_echo "no" >&6; }
6294 19 jeremybenn
fi
6295
 
6296 202 julius
 
6297
fi
6298
if test -z "$ac_cv_prog_OTOOL64"; then
6299
  ac_ct_OTOOL64=$OTOOL64
6300
  # Extract the first word of "otool64", so it can be a program name with args.
6301
set dummy otool64; ac_word=$2
6302
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303
$as_echo_n "checking for $ac_word... " >&6; }
6304
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6305
  $as_echo_n "(cached) " >&6
6306
else
6307
  if test -n "$ac_ct_OTOOL64"; then
6308
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6309
else
6310
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311
for as_dir in $PATH
6312
do
6313
  IFS=$as_save_IFS
6314
  test -z "$as_dir" && as_dir=.
6315
    for ac_exec_ext in '' $ac_executable_extensions; do
6316
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6317
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6318
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319
    break 2
6320
  fi
6321
done
6322
  done
6323
IFS=$as_save_IFS
6324
 
6325
fi
6326
fi
6327
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6328
if test -n "$ac_ct_OTOOL64"; then
6329
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6330
$as_echo "$ac_ct_OTOOL64" >&6; }
6331
else
6332
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333
$as_echo "no" >&6; }
6334
fi
6335
 
6336
  if test "x$ac_ct_OTOOL64" = x; then
6337
    OTOOL64=":"
6338 19 jeremybenn
  else
6339
    case $cross_compiling:$ac_tool_warned in
6340
yes:)
6341 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6342
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6343 19 jeremybenn
ac_tool_warned=yes ;;
6344
esac
6345 202 julius
    OTOOL64=$ac_ct_OTOOL64
6346 19 jeremybenn
  fi
6347
else
6348 202 julius
  OTOOL64="$ac_cv_prog_OTOOL64"
6349 19 jeremybenn
fi
6350
 
6351 202 julius
 
6352
 
6353
 
6354
 
6355 19 jeremybenn
 
6356 202 julius
 
6357
 
6358
 
6359
 
6360
 
6361
 
6362
 
6363
 
6364
 
6365
 
6366
 
6367
 
6368
 
6369
 
6370
 
6371
 
6372
 
6373
 
6374
 
6375
 
6376
 
6377
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6378
$as_echo_n "checking for -single_module linker flag... " >&6; }
6379
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6380
  $as_echo_n "(cached) " >&6
6381
else
6382
  lt_cv_apple_cc_single_mod=no
6383
      if test -z "${LT_MULTI_MODULE}"; then
6384
        # By default we will add the -single_module flag. You can override
6385
        # by either setting the environment variable LT_MULTI_MODULE
6386
        # non-empty at configure time, or by adding -multi_module to the
6387
        # link flags.
6388
        rm -rf libconftest.dylib*
6389
        echo "int foo(void){return 1;}" > conftest.c
6390
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6391
-dynamiclib -Wl,-single_module conftest.c" >&5
6392
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6393
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6394
        _lt_result=$?
6395
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6396
          lt_cv_apple_cc_single_mod=yes
6397
        else
6398
          cat conftest.err >&5
6399
        fi
6400
        rm -rf libconftest.dylib*
6401
        rm -f conftest.*
6402
      fi
6403
fi
6404
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6405
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6406
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6407
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6408
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6409
  $as_echo_n "(cached) " >&6
6410
else
6411
  lt_cv_ld_exported_symbols_list=no
6412
      save_LDFLAGS=$LDFLAGS
6413
      echo "_main" > conftest.sym
6414
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6415
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416
/* end confdefs.h.  */
6417
 
6418
int
6419
main ()
6420
{
6421
 
6422
  ;
6423
  return 0;
6424
}
6425
_ACEOF
6426
if ac_fn_c_try_link "$LINENO"; then :
6427
  lt_cv_ld_exported_symbols_list=yes
6428
else
6429
  lt_cv_ld_exported_symbols_list=no
6430
fi
6431
rm -f core conftest.err conftest.$ac_objext \
6432
    conftest$ac_exeext conftest.$ac_ext
6433
        LDFLAGS="$save_LDFLAGS"
6434
 
6435
fi
6436
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6437
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6438
    case $host_os in
6439
    rhapsody* | darwin1.[012])
6440
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6441
    darwin1.*)
6442
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6443
    darwin*) # darwin 5.x on
6444
      # if running on 10.5 or later, the deployment target defaults
6445
      # to the OS version, if on x86, and 10.4, the deployment
6446
      # target defaults to 10.4. Don't you love it?
6447
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6448
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6449
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6450
        10.[012]*)
6451
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6452
        10.*)
6453
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6454
      esac
6455
    ;;
6456
  esac
6457
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6458
      _lt_dar_single_mod='$single_module'
6459
    fi
6460
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6461
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6462
    else
6463
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6464
    fi
6465
    if test "$DSYMUTIL" != ":"; then
6466
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6467
    else
6468
      _lt_dsymutil=
6469
    fi
6470
    ;;
6471
  esac
6472
 
6473
for ac_header in dlfcn.h
6474
do :
6475
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6476
"
6477
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6478
  cat >>confdefs.h <<_ACEOF
6479
@%:@define HAVE_DLFCN_H 1
6480
_ACEOF
6481
 
6482
fi
6483
 
6484
done
6485
 
6486
 
6487
 
6488
# Set options
6489
 
6490
 
6491
 
6492
        enable_dlopen=no
6493
 
6494
 
6495
  enable_win32_dll=no
6496
 
6497
 
6498
            @%:@ Check whether --enable-shared was given.
6499
if test "${enable_shared+set}" = set; then :
6500
  enableval=$enable_shared; p=${PACKAGE-default}
6501
    case $enableval in
6502
    yes) enable_shared=yes ;;
6503
    no) enable_shared=no ;;
6504
    *)
6505
      enable_shared=no
6506
      # Look at the argument we got.  We use all the common list separators.
6507
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6508
      for pkg in $enableval; do
6509
        IFS="$lt_save_ifs"
6510
        if test "X$pkg" = "X$p"; then
6511
          enable_shared=yes
6512
        fi
6513
      done
6514
      IFS="$lt_save_ifs"
6515
      ;;
6516
    esac
6517
else
6518
  enable_shared=yes
6519
fi
6520
 
6521
 
6522
 
6523
 
6524
 
6525
 
6526
 
6527
 
6528
 
6529
  @%:@ Check whether --enable-static was given.
6530
if test "${enable_static+set}" = set; then :
6531
  enableval=$enable_static; p=${PACKAGE-default}
6532
    case $enableval in
6533
    yes) enable_static=yes ;;
6534
    no) enable_static=no ;;
6535
    *)
6536
     enable_static=no
6537
      # Look at the argument we got.  We use all the common list separators.
6538
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6539
      for pkg in $enableval; do
6540
        IFS="$lt_save_ifs"
6541
        if test "X$pkg" = "X$p"; then
6542
          enable_static=yes
6543
        fi
6544
      done
6545
      IFS="$lt_save_ifs"
6546
      ;;
6547
    esac
6548
else
6549
  enable_static=yes
6550
fi
6551
 
6552
 
6553
 
6554
 
6555
 
6556
 
6557
 
6558
 
6559
 
6560
 
6561
@%:@ Check whether --with-pic was given.
6562
if test "${with_pic+set}" = set; then :
6563
  withval=$with_pic; pic_mode="$withval"
6564
else
6565
  pic_mode=default
6566
fi
6567
 
6568
 
6569
test -z "$pic_mode" && pic_mode=default
6570
 
6571
 
6572
 
6573
 
6574
 
6575
 
6576
 
6577
  @%:@ Check whether --enable-fast-install was given.
6578
if test "${enable_fast_install+set}" = set; then :
6579
  enableval=$enable_fast_install; p=${PACKAGE-default}
6580
    case $enableval in
6581
    yes) enable_fast_install=yes ;;
6582
    no) enable_fast_install=no ;;
6583
    *)
6584
      enable_fast_install=no
6585
      # Look at the argument we got.  We use all the common list separators.
6586
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6587
      for pkg in $enableval; do
6588
        IFS="$lt_save_ifs"
6589
        if test "X$pkg" = "X$p"; then
6590
          enable_fast_install=yes
6591
        fi
6592
      done
6593
      IFS="$lt_save_ifs"
6594
      ;;
6595
    esac
6596
else
6597
  enable_fast_install=yes
6598
fi
6599
 
6600
 
6601
 
6602
 
6603
 
6604
 
6605
 
6606
 
6607
 
6608
 
6609
 
6610
# This can be used to rebuild libtool when needed
6611
LIBTOOL_DEPS="$ltmain"
6612
 
6613
# Always use our own libtool.
6614
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6615
 
6616
 
6617
 
6618
 
6619
 
6620
 
6621
 
6622
 
6623
 
6624
 
6625
 
6626
 
6627
 
6628
 
6629
 
6630
 
6631
 
6632
 
6633
 
6634
 
6635
 
6636
 
6637
 
6638
 
6639
 
6640
test -z "$LN_S" && LN_S="ln -s"
6641
 
6642
 
6643
 
6644
 
6645
 
6646
 
6647
 
6648
 
6649
 
6650
 
6651
 
6652
 
6653
 
6654
 
6655
if test -n "${ZSH_VERSION+set}" ; then
6656
   setopt NO_GLOB_SUBST
6657
fi
6658
 
6659
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6660
$as_echo_n "checking for objdir... " >&6; }
6661
if test "${lt_cv_objdir+set}" = set; then :
6662
  $as_echo_n "(cached) " >&6
6663
else
6664
  rm -f .libs 2>/dev/null
6665
mkdir .libs 2>/dev/null
6666
if test -d .libs; then
6667
  lt_cv_objdir=.libs
6668
else
6669
  # MS-DOS does not allow filenames that begin with a dot.
6670
  lt_cv_objdir=_libs
6671
fi
6672
rmdir .libs 2>/dev/null
6673
fi
6674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6675
$as_echo "$lt_cv_objdir" >&6; }
6676
objdir=$lt_cv_objdir
6677
 
6678
 
6679
 
6680
 
6681
 
6682
cat >>confdefs.h <<_ACEOF
6683
@%:@define LT_OBJDIR "$lt_cv_objdir/"
6684
_ACEOF
6685
 
6686
 
6687
 
6688
 
6689
 
6690
 
6691
 
6692
 
6693
 
6694
 
6695
 
6696
 
6697
 
6698
 
6699
 
6700
 
6701
 
6702
case $host_os in
6703
aix3*)
6704
  # AIX sometimes has problems with the GCC collect2 program.  For some
6705
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6706
  # vanish in a puff of smoke.
6707
  if test "X${COLLECT_NAMES+set}" != Xset; then
6708
    COLLECT_NAMES=
6709
    export COLLECT_NAMES
6710
  fi
6711
  ;;
6712
esac
6713
 
6714
# Sed substitution that helps us do robust quoting.  It backslashifies
6715
# metacharacters that are still active within double-quoted strings.
6716
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6717
 
6718
# Same as above, but do not quote variable references.
6719
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6720
 
6721
# Sed substitution to delay expansion of an escaped shell variable in a
6722
# double_quote_subst'ed string.
6723
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6724
 
6725
# Sed substitution to delay expansion of an escaped single quote.
6726
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6727
 
6728
# Sed substitution to avoid accidental globbing in evaled expressions
6729
no_glob_subst='s/\*/\\\*/g'
6730
 
6731
# Global variables:
6732
ofile=libtool
6733
can_build_shared=yes
6734
 
6735
# All known linkers require a `.a' archive for static linking (except MSVC,
6736
# which needs '.lib').
6737
libext=a
6738
 
6739
with_gnu_ld="$lt_cv_prog_gnu_ld"
6740
 
6741 19 jeremybenn
old_CC="$CC"
6742
old_CFLAGS="$CFLAGS"
6743
 
6744
# Set sane defaults for various variables
6745
test -z "$CC" && CC=cc
6746
test -z "$LTCC" && LTCC=$CC
6747
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6748
test -z "$LD" && LD=ld
6749
test -z "$ac_objext" && ac_objext=o
6750
 
6751
for cc_temp in $compiler""; do
6752
  case $cc_temp in
6753
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6754
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6755
    \-*) ;;
6756
    *) break;;
6757
  esac
6758
done
6759 202 julius
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6760 19 jeremybenn
 
6761
 
6762
# Only perform the check for file, if the check method requires it
6763 202 julius
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6764 19 jeremybenn
case $deplibs_check_method in
6765
file_magic*)
6766
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6767 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6768
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6769
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6770
  $as_echo_n "(cached) " >&6
6771 19 jeremybenn
else
6772
  case $MAGIC_CMD in
6773
[\\/*] |  ?:[\\/]*)
6774
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6775
  ;;
6776
*)
6777
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6778
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6779
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6780
  for ac_dir in $ac_dummy; do
6781
    IFS="$lt_save_ifs"
6782
    test -z "$ac_dir" && ac_dir=.
6783
    if test -f $ac_dir/${ac_tool_prefix}file; then
6784
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6785
      if test -n "$file_magic_test_file"; then
6786
        case $deplibs_check_method in
6787
        "file_magic "*)
6788
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6789
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6790
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6791
            $EGREP "$file_magic_regex" > /dev/null; then
6792
            :
6793
          else
6794 202 julius
            cat <<_LT_EOF 1>&2
6795 19 jeremybenn
 
6796
*** Warning: the command libtool uses to detect shared libraries,
6797
*** $file_magic_cmd, produces output that libtool cannot recognize.
6798
*** The result is that libtool may fail to recognize shared libraries
6799
*** as such.  This will affect the creation of libtool libraries that
6800
*** depend on shared libraries, but programs linked with such libtool
6801
*** libraries will work regardless of this problem.  Nevertheless, you
6802
*** may want to report the problem to your system manager and/or to
6803
*** bug-libtool@gnu.org
6804
 
6805 202 julius
_LT_EOF
6806 19 jeremybenn
          fi ;;
6807
        esac
6808
      fi
6809
      break
6810
    fi
6811
  done
6812
  IFS="$lt_save_ifs"
6813
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6814
  ;;
6815
esac
6816
fi
6817
 
6818
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6819
if test -n "$MAGIC_CMD"; then
6820 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6821
$as_echo "$MAGIC_CMD" >&6; }
6822 19 jeremybenn
else
6823 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824
$as_echo "no" >&6; }
6825 19 jeremybenn
fi
6826
 
6827 202 julius
 
6828
 
6829
 
6830
 
6831 19 jeremybenn
if test -z "$lt_cv_path_MAGIC_CMD"; then
6832
  if test -n "$ac_tool_prefix"; then
6833 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6834
$as_echo_n "checking for file... " >&6; }
6835
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6836
  $as_echo_n "(cached) " >&6
6837 19 jeremybenn
else
6838
  case $MAGIC_CMD in
6839
[\\/*] |  ?:[\\/]*)
6840
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6841
  ;;
6842
*)
6843
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6844
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6845
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6846
  for ac_dir in $ac_dummy; do
6847
    IFS="$lt_save_ifs"
6848
    test -z "$ac_dir" && ac_dir=.
6849
    if test -f $ac_dir/file; then
6850
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6851
      if test -n "$file_magic_test_file"; then
6852
        case $deplibs_check_method in
6853
        "file_magic "*)
6854
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6855
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6856
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6857
            $EGREP "$file_magic_regex" > /dev/null; then
6858
            :
6859
          else
6860 202 julius
            cat <<_LT_EOF 1>&2
6861 19 jeremybenn
 
6862
*** Warning: the command libtool uses to detect shared libraries,
6863
*** $file_magic_cmd, produces output that libtool cannot recognize.
6864
*** The result is that libtool may fail to recognize shared libraries
6865
*** as such.  This will affect the creation of libtool libraries that
6866
*** depend on shared libraries, but programs linked with such libtool
6867
*** libraries will work regardless of this problem.  Nevertheless, you
6868
*** may want to report the problem to your system manager and/or to
6869
*** bug-libtool@gnu.org
6870
 
6871 202 julius
_LT_EOF
6872 19 jeremybenn
          fi ;;
6873
        esac
6874
      fi
6875
      break
6876
    fi
6877
  done
6878
  IFS="$lt_save_ifs"
6879
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6880
  ;;
6881
esac
6882
fi
6883
 
6884
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6885
if test -n "$MAGIC_CMD"; then
6886 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6887
$as_echo "$MAGIC_CMD" >&6; }
6888 19 jeremybenn
else
6889 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890
$as_echo "no" >&6; }
6891 19 jeremybenn
fi
6892
 
6893 202 julius
 
6894 19 jeremybenn
  else
6895
    MAGIC_CMD=:
6896
  fi
6897
fi
6898
 
6899
  fi
6900
  ;;
6901
esac
6902
 
6903 202 julius
# Use C for the default configuration in the libtool script
6904 19 jeremybenn
 
6905
lt_save_CC="$CC"
6906
ac_ext=c
6907
ac_cpp='$CPP $CPPFLAGS'
6908
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6909
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6910
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6911
 
6912
 
6913
# Source file extension for C test sources.
6914
ac_ext=c
6915
 
6916
# Object file extension for compiled C test sources.
6917
objext=o
6918
objext=$objext
6919
 
6920
# Code to be used in simple compile tests
6921
lt_simple_compile_test_code="int some_variable = 0;"
6922
 
6923
# Code to be used in simple link tests
6924
lt_simple_link_test_code='int main(){return(0);}'
6925
 
6926
 
6927 202 julius
 
6928
 
6929
 
6930
 
6931
 
6932 19 jeremybenn
# If no C compiler was specified, use CC.
6933
LTCC=${LTCC-"$CC"}
6934
 
6935
# If no C compiler flags were specified, use CFLAGS.
6936
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6937
 
6938
# Allow CC to be a program name with arguments.
6939
compiler=$CC
6940
 
6941 202 julius
# Save the default compiler, since it gets overwritten when the other
6942
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6943
compiler_DEFAULT=$CC
6944 19 jeremybenn
 
6945
# save warnings/boilerplate of simple test code
6946
ac_outfile=conftest.$ac_objext
6947
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6948
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6949
_lt_compiler_boilerplate=`cat conftest.err`
6950 202 julius
$RM conftest*
6951 19 jeremybenn
 
6952
ac_outfile=conftest.$ac_objext
6953
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6954
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6955
_lt_linker_boilerplate=`cat conftest.err`
6956 202 julius
$RM -r conftest*
6957 19 jeremybenn
 
6958
 
6959
## CAVEAT EMPTOR:
6960
## There is no encapsulation within the following macros, do not change
6961
## the running order or otherwise move them around unless you know exactly
6962
## what you are doing...
6963 202 julius
if test -n "$compiler"; then
6964
 
6965 19 jeremybenn
lt_prog_compiler_no_builtin_flag=
6966
 
6967
if test "$GCC" = yes; then
6968
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6969
 
6970 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6971
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6972
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6973
  $as_echo_n "(cached) " >&6
6974 19 jeremybenn
else
6975
  lt_cv_prog_compiler_rtti_exceptions=no
6976 202 julius
   ac_outfile=conftest.$ac_objext
6977 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6978
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6979
   # Insert the option either (1) after the last *FLAGS variable, or
6980
   # (2) before a word containing "conftest.", or (3) at the end.
6981
   # Note that $ac_compile itself does not contain backslashes and begins
6982
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6983
   # The option is referenced via a variable to avoid confusing sed.
6984
   lt_compile=`echo "$ac_compile" | $SED \
6985
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6986
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6987
   -e 's:$: $lt_compiler_flag:'`
6988
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6989
   (eval "$lt_compile" 2>conftest.err)
6990
   ac_status=$?
6991
   cat conftest.err >&5
6992
   echo "$as_me:__oline__: \$? = $ac_status" >&5
6993
   if (exit $ac_status) && test -s "$ac_outfile"; then
6994
     # The compiler can only warn and ignore the option if not recognized
6995
     # So say no if there are warnings other than the usual output.
6996 202 julius
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6997 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6998
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6999
       lt_cv_prog_compiler_rtti_exceptions=yes
7000
     fi
7001
   fi
7002 202 julius
   $RM conftest*
7003 19 jeremybenn
 
7004
fi
7005 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7006
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7007 19 jeremybenn
 
7008
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7009
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7010
else
7011
    :
7012
fi
7013
 
7014
fi
7015
 
7016 202 julius
 
7017
 
7018
 
7019
 
7020
 
7021
  lt_prog_compiler_wl=
7022 19 jeremybenn
lt_prog_compiler_pic=
7023
lt_prog_compiler_static=
7024
 
7025 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7026
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7027
 
7028 19 jeremybenn
  if test "$GCC" = yes; then
7029
    lt_prog_compiler_wl='-Wl,'
7030
    lt_prog_compiler_static='-static'
7031
 
7032
    case $host_os in
7033
      aix*)
7034
      # All AIX code is PIC.
7035
      if test "$host_cpu" = ia64; then
7036
        # AIX 5 now supports IA64 processor
7037
        lt_prog_compiler_static='-Bstatic'
7038
      fi
7039
      ;;
7040
 
7041
    amigaos*)
7042 202 julius
      case $host_cpu in
7043
      powerpc)
7044
            # see comment about AmigaOS4 .so support
7045
            lt_prog_compiler_pic='-fPIC'
7046
        ;;
7047
      m68k)
7048
            # FIXME: we need at least 68020 code to build shared libraries, but
7049
            # adding the `-m68020' flag to GCC prevents building anything better,
7050
            # like `-m68040'.
7051
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7052
        ;;
7053
      esac
7054 19 jeremybenn
      ;;
7055
 
7056
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7057
      # PIC is the default for these OSes.
7058
      ;;
7059
 
7060 202 julius
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7061 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7062
      # built for inclusion in a dll (and should export symbols for example).
7063
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7064
      # (--disable-auto-import) libraries
7065
      lt_prog_compiler_pic='-DDLL_EXPORT'
7066
      ;;
7067
 
7068
    darwin* | rhapsody*)
7069
      # PIC is the default on this platform
7070
      # Common symbols not allowed in MH_DYLIB files
7071
      lt_prog_compiler_pic='-fno-common'
7072
      ;;
7073
 
7074 202 julius
    hpux*)
7075
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7076
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7077
      # sets the default TLS model and affects inlining.
7078
      case $host_cpu in
7079
      hppa*64*)
7080
        # +Z the default
7081
        ;;
7082
      *)
7083
        lt_prog_compiler_pic='-fPIC'
7084
        ;;
7085
      esac
7086
      ;;
7087
 
7088 19 jeremybenn
    interix[3-9]*)
7089
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7090
      # Instead, we relocate shared libraries at runtime.
7091
      ;;
7092
 
7093
    msdosdjgpp*)
7094
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7095
      # on systems that don't support them.
7096
      lt_prog_compiler_can_build_shared=no
7097
      enable_shared=no
7098
      ;;
7099
 
7100 202 julius
    *nto* | *qnx*)
7101
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7102
      # it will coredump.
7103
      lt_prog_compiler_pic='-fPIC -shared'
7104
      ;;
7105
 
7106 19 jeremybenn
    sysv4*MP*)
7107
      if test -d /usr/nec; then
7108
        lt_prog_compiler_pic=-Kconform_pic
7109
      fi
7110
      ;;
7111
 
7112
    *)
7113
      lt_prog_compiler_pic='-fPIC'
7114
      ;;
7115
    esac
7116
  else
7117
    # PORTME Check for flag to pass linker flags through the system compiler.
7118
    case $host_os in
7119
    aix*)
7120
      lt_prog_compiler_wl='-Wl,'
7121
      if test "$host_cpu" = ia64; then
7122
        # AIX 5 now supports IA64 processor
7123
        lt_prog_compiler_static='-Bstatic'
7124
      else
7125
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7126
      fi
7127
      ;;
7128
 
7129 202 julius
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7130 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7131
      # built for inclusion in a dll (and should export symbols for example).
7132
      lt_prog_compiler_pic='-DDLL_EXPORT'
7133
      ;;
7134
 
7135
    hpux9* | hpux10* | hpux11*)
7136
      lt_prog_compiler_wl='-Wl,'
7137
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7138
      # not for PA HP-UX.
7139
      case $host_cpu in
7140
      hppa*64*|ia64*)
7141
        # +Z the default
7142
        ;;
7143
      *)
7144
        lt_prog_compiler_pic='+Z'
7145
        ;;
7146
      esac
7147
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7148
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7149
      ;;
7150
 
7151
    irix5* | irix6* | nonstopux*)
7152
      lt_prog_compiler_wl='-Wl,'
7153
      # PIC (with -KPIC) is the default.
7154
      lt_prog_compiler_static='-non_shared'
7155
      ;;
7156
 
7157
    linux* | k*bsd*-gnu)
7158
      case $cc_basename in
7159 202 julius
      # old Intel for x86_64 which still supported -KPIC.
7160
      ecc*)
7161 19 jeremybenn
        lt_prog_compiler_wl='-Wl,'
7162
        lt_prog_compiler_pic='-KPIC'
7163
        lt_prog_compiler_static='-static'
7164
        ;;
7165 202 julius
      # icc used to be incompatible with GCC.
7166
      # ICC 10 doesn't accept -KPIC any more.
7167
      icc* | ifort*)
7168
        lt_prog_compiler_wl='-Wl,'
7169
        lt_prog_compiler_pic='-fPIC'
7170
        lt_prog_compiler_static='-static'
7171
        ;;
7172
      # Lahey Fortran 8.1.
7173
      lf95*)
7174
        lt_prog_compiler_wl='-Wl,'
7175
        lt_prog_compiler_pic='--shared'
7176
        lt_prog_compiler_static='--static'
7177
        ;;
7178 19 jeremybenn
      pgcc* | pgf77* | pgf90* | pgf95*)
7179
        # Portland Group compilers (*not* the Pentium gcc compiler,
7180
        # which looks to be a dead project)
7181
        lt_prog_compiler_wl='-Wl,'
7182
        lt_prog_compiler_pic='-fpic'
7183
        lt_prog_compiler_static='-Bstatic'
7184
        ;;
7185
      ccc*)
7186
        lt_prog_compiler_wl='-Wl,'
7187
        # All Alpha code is PIC.
7188
        lt_prog_compiler_static='-non_shared'
7189
        ;;
7190 202 julius
      xl*)
7191
        # IBM XL C 8.0/Fortran 10.1 on PPC
7192
        lt_prog_compiler_wl='-Wl,'
7193
        lt_prog_compiler_pic='-qpic'
7194
        lt_prog_compiler_static='-qstaticlink'
7195
        ;;
7196 19 jeremybenn
      *)
7197 202 julius
        case `$CC -V 2>&1 | sed 5q` in
7198 19 jeremybenn
        *Sun\ C*)
7199
          # Sun C 5.9
7200
          lt_prog_compiler_pic='-KPIC'
7201
          lt_prog_compiler_static='-Bstatic'
7202
          lt_prog_compiler_wl='-Wl,'
7203
          ;;
7204
        *Sun\ F*)
7205
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7206
          lt_prog_compiler_pic='-KPIC'
7207
          lt_prog_compiler_static='-Bstatic'
7208
          lt_prog_compiler_wl=''
7209
          ;;
7210
        esac
7211
        ;;
7212
      esac
7213
      ;;
7214
 
7215 202 julius
    newsos6)
7216
      lt_prog_compiler_pic='-KPIC'
7217
      lt_prog_compiler_static='-Bstatic'
7218
      ;;
7219
 
7220
    *nto* | *qnx*)
7221
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7222
      # it will coredump.
7223
      lt_prog_compiler_pic='-fPIC -shared'
7224
      ;;
7225
 
7226 19 jeremybenn
    osf3* | osf4* | osf5*)
7227
      lt_prog_compiler_wl='-Wl,'
7228
      # All OSF/1 code is PIC.
7229
      lt_prog_compiler_static='-non_shared'
7230
      ;;
7231
 
7232
    rdos*)
7233
      lt_prog_compiler_static='-non_shared'
7234
      ;;
7235
 
7236
    solaris*)
7237
      lt_prog_compiler_pic='-KPIC'
7238
      lt_prog_compiler_static='-Bstatic'
7239
      case $cc_basename in
7240
      f77* | f90* | f95*)
7241
        lt_prog_compiler_wl='-Qoption ld ';;
7242
      *)
7243
        lt_prog_compiler_wl='-Wl,';;
7244
      esac
7245
      ;;
7246
 
7247
    sunos4*)
7248
      lt_prog_compiler_wl='-Qoption ld '
7249
      lt_prog_compiler_pic='-PIC'
7250
      lt_prog_compiler_static='-Bstatic'
7251
      ;;
7252
 
7253
    sysv4 | sysv4.2uw2* | sysv4.3*)
7254
      lt_prog_compiler_wl='-Wl,'
7255
      lt_prog_compiler_pic='-KPIC'
7256
      lt_prog_compiler_static='-Bstatic'
7257
      ;;
7258
 
7259
    sysv4*MP*)
7260
      if test -d /usr/nec ;then
7261
        lt_prog_compiler_pic='-Kconform_pic'
7262
        lt_prog_compiler_static='-Bstatic'
7263
      fi
7264
      ;;
7265
 
7266
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7267
      lt_prog_compiler_wl='-Wl,'
7268
      lt_prog_compiler_pic='-KPIC'
7269
      lt_prog_compiler_static='-Bstatic'
7270
      ;;
7271
 
7272
    unicos*)
7273
      lt_prog_compiler_wl='-Wl,'
7274
      lt_prog_compiler_can_build_shared=no
7275
      ;;
7276
 
7277
    uts4*)
7278
      lt_prog_compiler_pic='-pic'
7279
      lt_prog_compiler_static='-Bstatic'
7280
      ;;
7281
 
7282
    *)
7283
      lt_prog_compiler_can_build_shared=no
7284
      ;;
7285
    esac
7286
  fi
7287
 
7288 202 julius
case $host_os in
7289
  # For platforms which do not support PIC, -DPIC is meaningless:
7290
  *djgpp*)
7291
    lt_prog_compiler_pic=
7292
    ;;
7293
  *)
7294
    lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
7295
    ;;
7296
esac
7297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7298
$as_echo "$lt_prog_compiler_pic" >&6; }
7299 19 jeremybenn
 
7300 202 julius
 
7301
 
7302
 
7303
 
7304
 
7305 19 jeremybenn
#
7306
# Check to make sure the PIC flag actually works.
7307
#
7308
if test -n "$lt_prog_compiler_pic"; then
7309 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7310
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7311
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7312
  $as_echo_n "(cached) " >&6
7313 19 jeremybenn
else
7314 202 julius
  lt_cv_prog_compiler_pic_works=no
7315
   ac_outfile=conftest.$ac_objext
7316 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7317 202 julius
   lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
7318 19 jeremybenn
   # Insert the option either (1) after the last *FLAGS variable, or
7319
   # (2) before a word containing "conftest.", or (3) at the end.
7320
   # Note that $ac_compile itself does not contain backslashes and begins
7321
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7322
   # The option is referenced via a variable to avoid confusing sed.
7323
   lt_compile=`echo "$ac_compile" | $SED \
7324
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7325
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7326
   -e 's:$: $lt_compiler_flag:'`
7327
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7328
   (eval "$lt_compile" 2>conftest.err)
7329
   ac_status=$?
7330
   cat conftest.err >&5
7331
   echo "$as_me:__oline__: \$? = $ac_status" >&5
7332
   if (exit $ac_status) && test -s "$ac_outfile"; then
7333
     # The compiler can only warn and ignore the option if not recognized
7334
     # So say no if there are warnings other than the usual output.
7335 202 julius
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7336 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7337
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7338 202 julius
       lt_cv_prog_compiler_pic_works=yes
7339 19 jeremybenn
     fi
7340
   fi
7341 202 julius
   $RM conftest*
7342 19 jeremybenn
 
7343
fi
7344 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7345
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7346 19 jeremybenn
 
7347 202 julius
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7348 19 jeremybenn
    case $lt_prog_compiler_pic in
7349
     "" | " "*) ;;
7350
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7351
     esac
7352
else
7353
    lt_prog_compiler_pic=
7354
     lt_prog_compiler_can_build_shared=no
7355
fi
7356
 
7357
fi
7358
 
7359 202 julius
 
7360
 
7361
 
7362
 
7363
 
7364 19 jeremybenn
#
7365
# Check to make sure the static flag actually works.
7366
#
7367
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7368 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7369
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7370
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7371
  $as_echo_n "(cached) " >&6
7372 19 jeremybenn
else
7373 202 julius
  lt_cv_prog_compiler_static_works=no
7374 19 jeremybenn
   save_LDFLAGS="$LDFLAGS"
7375
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7376
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7377
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7378
     # The linker can only warn and ignore the option if not recognized
7379
     # So say no if there are warnings
7380
     if test -s conftest.err; then
7381
       # Append any errors to the config.log.
7382
       cat conftest.err 1>&5
7383 202 julius
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7384 19 jeremybenn
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7385
       if diff conftest.exp conftest.er2 >/dev/null; then
7386 202 julius
         lt_cv_prog_compiler_static_works=yes
7387 19 jeremybenn
       fi
7388
     else
7389 202 julius
       lt_cv_prog_compiler_static_works=yes
7390 19 jeremybenn
     fi
7391
   fi
7392 202 julius
   $RM -r conftest*
7393 19 jeremybenn
   LDFLAGS="$save_LDFLAGS"
7394
 
7395
fi
7396 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7397
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7398 19 jeremybenn
 
7399 202 julius
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7400 19 jeremybenn
    :
7401
else
7402
    lt_prog_compiler_static=
7403
fi
7404
 
7405
 
7406 202 julius
 
7407
 
7408
 
7409
 
7410
 
7411
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7412
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7413
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7414
  $as_echo_n "(cached) " >&6
7415 19 jeremybenn
else
7416
  lt_cv_prog_compiler_c_o=no
7417 202 julius
   $RM -r conftest 2>/dev/null
7418 19 jeremybenn
   mkdir conftest
7419
   cd conftest
7420
   mkdir out
7421
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7422
 
7423
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7424
   # Insert the option either (1) after the last *FLAGS variable, or
7425
   # (2) before a word containing "conftest.", or (3) at the end.
7426
   # Note that $ac_compile itself does not contain backslashes and begins
7427
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7428
   lt_compile=`echo "$ac_compile" | $SED \
7429
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7430
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7431
   -e 's:$: $lt_compiler_flag:'`
7432
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7433
   (eval "$lt_compile" 2>out/conftest.err)
7434
   ac_status=$?
7435
   cat out/conftest.err >&5
7436
   echo "$as_me:__oline__: \$? = $ac_status" >&5
7437
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7438
   then
7439
     # The compiler can only warn and ignore the option if not recognized
7440
     # So say no if there are warnings
7441 202 julius
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7442 19 jeremybenn
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7443
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7444
       lt_cv_prog_compiler_c_o=yes
7445
     fi
7446
   fi
7447
   chmod u+w . 2>&5
7448 202 julius
   $RM conftest*
7449 19 jeremybenn
   # SGI C++ compiler will create directory out/ii_files/ for
7450
   # template instantiation
7451 202 julius
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7452
   $RM out/* && rmdir out
7453 19 jeremybenn
   cd ..
7454 202 julius
   $RM -r conftest
7455
   $RM conftest*
7456 19 jeremybenn
 
7457
fi
7458 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7459
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7460 19 jeremybenn
 
7461 202 julius
 
7462
 
7463
 
7464 19 jeremybenn
 
7465 202 julius
 
7466
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7467
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7468
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7469
  $as_echo_n "(cached) " >&6
7470
else
7471
  lt_cv_prog_compiler_c_o=no
7472
   $RM -r conftest 2>/dev/null
7473
   mkdir conftest
7474
   cd conftest
7475
   mkdir out
7476
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7477
 
7478
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7479
   # Insert the option either (1) after the last *FLAGS variable, or
7480
   # (2) before a word containing "conftest.", or (3) at the end.
7481
   # Note that $ac_compile itself does not contain backslashes and begins
7482
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7483
   lt_compile=`echo "$ac_compile" | $SED \
7484
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7485
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7486
   -e 's:$: $lt_compiler_flag:'`
7487
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7488
   (eval "$lt_compile" 2>out/conftest.err)
7489
   ac_status=$?
7490
   cat out/conftest.err >&5
7491
   echo "$as_me:__oline__: \$? = $ac_status" >&5
7492
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7493
   then
7494
     # The compiler can only warn and ignore the option if not recognized
7495
     # So say no if there are warnings
7496
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7497
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7498
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7499
       lt_cv_prog_compiler_c_o=yes
7500
     fi
7501
   fi
7502
   chmod u+w . 2>&5
7503
   $RM conftest*
7504
   # SGI C++ compiler will create directory out/ii_files/ for
7505
   # template instantiation
7506
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7507
   $RM out/* && rmdir out
7508
   cd ..
7509
   $RM -r conftest
7510
   $RM conftest*
7511
 
7512
fi
7513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7514
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7515
 
7516
 
7517
 
7518
 
7519 19 jeremybenn
hard_links="nottested"
7520
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7521
  # do not overwrite the value of need_locks provided by the user
7522 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7523
$as_echo_n "checking if we can lock with hard links... " >&6; }
7524 19 jeremybenn
  hard_links=yes
7525 202 julius
  $RM conftest*
7526 19 jeremybenn
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7527
  touch conftest.a
7528
  ln conftest.a conftest.b 2>&5 || hard_links=no
7529
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7530 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7531
$as_echo "$hard_links" >&6; }
7532 19 jeremybenn
  if test "$hard_links" = no; then
7533 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7534
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7535 19 jeremybenn
    need_locks=warn
7536
  fi
7537
else
7538
  need_locks=no
7539
fi
7540
 
7541 202 julius
 
7542
 
7543
 
7544 19 jeremybenn
 
7545 202 julius
 
7546
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7547
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7548
 
7549 19 jeremybenn
  runpath_var=
7550
  allow_undefined_flag=
7551 202 julius
  always_export_symbols=no
7552 19 jeremybenn
  archive_cmds=
7553
  archive_expsym_cmds=
7554 202 julius
  compiler_needs_object=no
7555
  enable_shared_with_static_runtimes=no
7556 19 jeremybenn
  export_dynamic_flag_spec=
7557 202 julius
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7558
  hardcode_automatic=no
7559
  hardcode_direct=no
7560
  hardcode_direct_absolute=no
7561 19 jeremybenn
  hardcode_libdir_flag_spec=
7562
  hardcode_libdir_flag_spec_ld=
7563
  hardcode_libdir_separator=
7564
  hardcode_minus_L=no
7565
  hardcode_shlibpath_var=unsupported
7566 202 julius
  inherit_rpath=no
7567 19 jeremybenn
  link_all_deplibs=unknown
7568
  module_cmds=
7569
  module_expsym_cmds=
7570 202 julius
  old_archive_from_new_cmds=
7571
  old_archive_from_expsyms_cmds=
7572
  thread_safe_flag_spec=
7573
  whole_archive_flag_spec=
7574 19 jeremybenn
  # include_expsyms should be a list of space-separated symbols to be *always*
7575
  # included in the symbol list
7576
  include_expsyms=
7577
  # exclude_expsyms can be an extended regexp of symbols to exclude
7578
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7579
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7580
  # as well as any symbol that contains `d'.
7581 202 julius
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7582 19 jeremybenn
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7583
  # platforms (ab)use it in PIC code, but their linkers get confused if
7584
  # the symbol is explicitly referenced.  Since portable code cannot
7585
  # rely on this symbol name, it's probably fine to never include it in
7586
  # preloaded symbol tables.
7587 202 julius
  # Exclude shared library initialization/finalization symbols.
7588 19 jeremybenn
  extract_expsyms_cmds=
7589
 
7590
  case $host_os in
7591 202 julius
  cygwin* | mingw* | pw32* | cegcc*)
7592 19 jeremybenn
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7593
    # When not using gcc, we currently assume that we are using
7594
    # Microsoft Visual C++.
7595
    if test "$GCC" != yes; then
7596
      with_gnu_ld=no
7597
    fi
7598
    ;;
7599
  interix*)
7600
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7601
    with_gnu_ld=yes
7602
    ;;
7603
  openbsd*)
7604
    with_gnu_ld=no
7605
    ;;
7606 202 julius
  linux* | k*bsd*-gnu)
7607
    link_all_deplibs=no
7608
    ;;
7609 19 jeremybenn
  esac
7610
 
7611
  ld_shlibs=yes
7612
  if test "$with_gnu_ld" = yes; then
7613
    # If archive_cmds runs LD, not CC, wlarc should be empty
7614
    wlarc='${wl}'
7615
 
7616
    # Set some defaults for GNU ld with shared library support. These
7617
    # are reset later if shared libraries are not supported. Putting them
7618
    # here allows them to be overridden if necessary.
7619
    runpath_var=LD_RUN_PATH
7620 202 julius
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7621 19 jeremybenn
    export_dynamic_flag_spec='${wl}--export-dynamic'
7622
    # ancient GNU ld didn't support --whole-archive et. al.
7623 202 julius
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7624
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7625
    else
7626
      whole_archive_flag_spec=
7627 19 jeremybenn
    fi
7628
    supports_anon_versioning=no
7629 202 julius
    case `$LD -v 2>&1` in
7630 19 jeremybenn
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7631
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7632
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7633
      *\ 2.11.*) ;; # other 2.11 versions
7634
      *) supports_anon_versioning=yes ;;
7635
    esac
7636
 
7637
    # See if GNU ld supports shared libraries.
7638
    case $host_os in
7639 202 julius
    aix[3-9]*)
7640 19 jeremybenn
      # On AIX/PPC, the GNU linker is very broken
7641
      if test "$host_cpu" != ia64; then
7642
        ld_shlibs=no
7643 202 julius
        cat <<_LT_EOF 1>&2
7644 19 jeremybenn
 
7645
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7646
*** to be unable to reliably create shared libraries on AIX.
7647
*** Therefore, libtool is disabling shared libraries support.  If you
7648
*** really care for shared libraries, you may want to modify your PATH
7649
*** so that a non-GNU linker is found, and then restart.
7650
 
7651 202 julius
_LT_EOF
7652 19 jeremybenn
      fi
7653
      ;;
7654
 
7655
    amigaos*)
7656 202 julius
      case $host_cpu in
7657
      powerpc)
7658
            # see comment about AmigaOS4 .so support
7659
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7660
            archive_expsym_cmds=''
7661
        ;;
7662
      m68k)
7663
            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)'
7664
            hardcode_libdir_flag_spec='-L$libdir'
7665
            hardcode_minus_L=yes
7666
        ;;
7667
      esac
7668 19 jeremybenn
      ;;
7669
 
7670
    beos*)
7671 202 julius
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7672 19 jeremybenn
        allow_undefined_flag=unsupported
7673
        # Joseph Beckenbach  says some releases of gcc
7674
        # support --undefined.  This deserves some investigation.  FIXME
7675
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7676
      else
7677
        ld_shlibs=no
7678
      fi
7679
      ;;
7680
 
7681 202 julius
    cygwin* | mingw* | pw32* | cegcc*)
7682
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7683 19 jeremybenn
      # as there is no search path for DLLs.
7684
      hardcode_libdir_flag_spec='-L$libdir'
7685
      allow_undefined_flag=unsupported
7686
      always_export_symbols=no
7687
      enable_shared_with_static_runtimes=yes
7688 202 julius
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7689 19 jeremybenn
 
7690 202 julius
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7691 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7692
        # If the export-symbols file already is a .def file (1st line
7693
        # is EXPORTS), use it as is; otherwise, prepend...
7694
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7695
          cp $export_symbols $output_objdir/$soname.def;
7696
        else
7697
          echo EXPORTS > $output_objdir/$soname.def;
7698
          cat $export_symbols >> $output_objdir/$soname.def;
7699
        fi~
7700
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7701
      else
7702
        ld_shlibs=no
7703
      fi
7704
      ;;
7705
 
7706
    interix[3-9]*)
7707
      hardcode_direct=no
7708
      hardcode_shlibpath_var=no
7709
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7710
      export_dynamic_flag_spec='${wl}-E'
7711
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7712
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7713
      # default) and relocated if they conflict, which is a slow very memory
7714
      # consuming and fragmenting process.  To avoid this, we pick a random,
7715
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7716
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7717
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7718
      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'
7719
      ;;
7720
 
7721 202 julius
    gnu* | linux* | tpf* | k*bsd*-gnu)
7722
      tmp_diet=no
7723
      if test "$host_os" = linux-dietlibc; then
7724
        case $cc_basename in
7725
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7726
        esac
7727
      fi
7728
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7729
         && test "$tmp_diet" = no
7730
      then
7731 19 jeremybenn
        tmp_addflag=
7732 202 julius
        tmp_sharedflag='-shared'
7733 19 jeremybenn
        case $cc_basename,$host_cpu in
7734 202 julius
        pgcc*)                          # Portland Group C compiler
7735
          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'
7736 19 jeremybenn
          tmp_addflag=' $pic_flag'
7737
          ;;
7738
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7739 202 julius
          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'
7740 19 jeremybenn
          tmp_addflag=' $pic_flag -Mnomain' ;;
7741 202 julius
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7742 19 jeremybenn
          tmp_addflag=' -i_dynamic' ;;
7743
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7744
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7745
        ifc* | ifort*)                  # Intel Fortran compiler
7746
          tmp_addflag=' -nofor_main' ;;
7747 202 julius
        lf95*)                          # Lahey Fortran 8.1
7748
          whole_archive_flag_spec=
7749
          tmp_sharedflag='--shared' ;;
7750
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7751
          tmp_sharedflag='-qmkshrobj'
7752
          tmp_addflag= ;;
7753 19 jeremybenn
        esac
7754
        case `$CC -V 2>&1 | sed 5q` in
7755
        *Sun\ C*)                       # Sun C 5.9
7756 202 julius
          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'
7757
          compiler_needs_object=yes
7758 19 jeremybenn
          tmp_sharedflag='-G' ;;
7759
        *Sun\ F*)                       # Sun Fortran 8.3
7760
          tmp_sharedflag='-G' ;;
7761
        esac
7762
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7763
 
7764 202 julius
        if test "x$supports_anon_versioning" = xyes; then
7765
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7766
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7767
            echo "local: *; };" >> $output_objdir/$libname.ver~
7768
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7769
        fi
7770
 
7771
        case $cc_basename in
7772
        xlf*)
7773
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7774
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7775
          hardcode_libdir_flag_spec=
7776
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
7777
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7778
          if test "x$supports_anon_versioning" = xyes; then
7779
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7780
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7781
              echo "local: *; };" >> $output_objdir/$libname.ver~
7782
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7783
          fi
7784
          ;;
7785
        esac
7786 19 jeremybenn
      else
7787 202 julius
        ld_shlibs=no
7788 19 jeremybenn
      fi
7789
      ;;
7790
 
7791 202 julius
    netbsd* | netbsdelf*-gnu)
7792
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7793 19 jeremybenn
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7794
        wlarc=
7795
      else
7796
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7797
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7798
      fi
7799
      ;;
7800
 
7801
    solaris*)
7802 202 julius
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7803 19 jeremybenn
        ld_shlibs=no
7804 202 julius
        cat <<_LT_EOF 1>&2
7805 19 jeremybenn
 
7806
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7807
*** create shared libraries on Solaris systems.  Therefore, libtool
7808
*** is disabling shared libraries support.  We urge you to upgrade GNU
7809
*** binutils to release 2.9.1 or newer.  Another option is to modify
7810
*** your PATH or compiler configuration so that the native linker is
7811
*** used, and then restart.
7812
 
7813 202 julius
_LT_EOF
7814
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7815 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7816
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7817
      else
7818
        ld_shlibs=no
7819
      fi
7820
      ;;
7821
 
7822
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7823
      case `$LD -v 2>&1` in
7824
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7825
        ld_shlibs=no
7826
        cat <<_LT_EOF 1>&2
7827
 
7828
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7829
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7830
*** is disabling shared libraries support.  We urge you to upgrade GNU
7831
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7832
*** your PATH or compiler configuration so that the native linker is
7833
*** used, and then restart.
7834
 
7835
_LT_EOF
7836
        ;;
7837
        *)
7838 202 julius
          # For security reasons, it is highly recommended that you always
7839
          # use absolute paths for naming shared libraries, and exclude the
7840
          # DT_RUNPATH tag from executables and libraries.  But doing so
7841
          # requires that you compile everything twice, which is a pain.
7842
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7843
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7844
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7845
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7846 19 jeremybenn
          else
7847
            ld_shlibs=no
7848
          fi
7849
        ;;
7850
      esac
7851
      ;;
7852
 
7853
    sunos4*)
7854
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7855
      wlarc=
7856
      hardcode_direct=yes
7857
      hardcode_shlibpath_var=no
7858
      ;;
7859
 
7860
    *)
7861 202 julius
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7862 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7863
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7864
      else
7865
        ld_shlibs=no
7866
      fi
7867
      ;;
7868
    esac
7869
 
7870
    if test "$ld_shlibs" = no; then
7871
      runpath_var=
7872
      hardcode_libdir_flag_spec=
7873
      export_dynamic_flag_spec=
7874
      whole_archive_flag_spec=
7875
    fi
7876
  else
7877
    # PORTME fill in a description of your system's linker (not GNU ld)
7878
    case $host_os in
7879
    aix3*)
7880
      allow_undefined_flag=unsupported
7881
      always_export_symbols=yes
7882
      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'
7883
      # Note: this linker hardcodes the directories in LIBPATH if there
7884
      # are no directories specified by -L.
7885
      hardcode_minus_L=yes
7886
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7887
        # Neither direct hardcoding nor static linking is supported with a
7888
        # broken collect2.
7889
        hardcode_direct=unsupported
7890
      fi
7891
      ;;
7892
 
7893 202 julius
    aix[4-9]*)
7894 19 jeremybenn
      if test "$host_cpu" = ia64; then
7895
        # On IA64, the linker does run time linking by default, so we don't
7896
        # have to do anything special.
7897
        aix_use_runtimelinking=no
7898
        exp_sym_flag='-Bexport'
7899
        no_entry_flag=""
7900
      else
7901
        # If we're using GNU nm, then we don't want the "-C" option.
7902
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7903 202 julius
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7904
          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'
7905 19 jeremybenn
        else
7906 202 julius
          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'
7907 19 jeremybenn
        fi
7908
        aix_use_runtimelinking=no
7909
 
7910
        # Test if we are trying to use run time linking or normal
7911
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7912
        # need to do runtime linking.
7913 202 julius
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7914 19 jeremybenn
          for ld_flag in $LDFLAGS; do
7915 202 julius
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7916
            aix_use_runtimelinking=yes
7917
            break
7918
          fi
7919 19 jeremybenn
          done
7920
          ;;
7921
        esac
7922
 
7923
        exp_sym_flag='-bexport'
7924
        no_entry_flag='-bnoentry'
7925
      fi
7926
 
7927
      # When large executables or shared objects are built, AIX ld can
7928
      # have problems creating the table of contents.  If linking a library
7929
      # or program results in "error TOC overflow" add -mminimal-toc to
7930
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7931
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7932
 
7933
      archive_cmds=''
7934
      hardcode_direct=yes
7935 202 julius
      hardcode_direct_absolute=yes
7936 19 jeremybenn
      hardcode_libdir_separator=':'
7937
      link_all_deplibs=yes
7938 202 julius
      file_list_spec='${wl}-f,'
7939 19 jeremybenn
 
7940
      if test "$GCC" = yes; then
7941
        case $host_os in aix4.[012]|aix4.[012].*)
7942
        # We only want to do this on AIX 4.2 and lower, the check
7943
        # below for broken collect2 doesn't work under 4.3+
7944
          collect2name=`${CC} -print-prog-name=collect2`
7945 202 julius
          if test -f "$collect2name" &&
7946
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7947 19 jeremybenn
          then
7948 202 julius
          # We have reworked collect2
7949
          :
7950 19 jeremybenn
          else
7951 202 julius
          # We have old collect2
7952
          hardcode_direct=unsupported
7953
          # It fails to find uninstalled libraries when the uninstalled
7954
          # path is not listed in the libpath.  Setting hardcode_minus_L
7955
          # to unsupported forces relinking
7956
          hardcode_minus_L=yes
7957
          hardcode_libdir_flag_spec='-L$libdir'
7958
          hardcode_libdir_separator=
7959 19 jeremybenn
          fi
7960
          ;;
7961
        esac
7962
        shared_flag='-shared'
7963
        if test "$aix_use_runtimelinking" = yes; then
7964
          shared_flag="$shared_flag "'${wl}-G'
7965
        fi
7966 202 julius
        link_all_deplibs=no
7967 19 jeremybenn
      else
7968
        # not using gcc
7969
        if test "$host_cpu" = ia64; then
7970 202 julius
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7971
        # chokes on -Wl,-G. The following line is correct:
7972 19 jeremybenn
          shared_flag='-G'
7973
        else
7974
          if test "$aix_use_runtimelinking" = yes; then
7975
            shared_flag='${wl}-G'
7976
          else
7977
            shared_flag='${wl}-bM:SRE'
7978
          fi
7979
        fi
7980
      fi
7981
 
7982 202 julius
      export_dynamic_flag_spec='${wl}-bexpall'
7983 19 jeremybenn
      # It seems that -bexpall does not export symbols beginning with
7984
      # underscore (_), so it is better to generate a list of symbols to export.
7985
      always_export_symbols=yes
7986
      if test "$aix_use_runtimelinking" = yes; then
7987
        # Warning - without using the other runtime loading flags (-brtl),
7988
        # -berok will link without error, but may produce a broken library.
7989
        allow_undefined_flag='-berok'
7990 202 julius
        # Determine the default libpath from the value encoded in an
7991
        # empty executable.
7992
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 19 jeremybenn
/* end confdefs.h.  */
7994
 
7995
int
7996
main ()
7997
{
7998
 
7999
  ;
8000
  return 0;
8001
}
8002
_ACEOF
8003 202 julius
if ac_fn_c_try_link "$LINENO"; then :
8004 19 jeremybenn
 
8005
lt_aix_libpath_sed='
8006
    /Import File Strings/,/^$/ {
8007
        /^0/ {
8008
            s/^0  *\(.*\)$/\1/
8009
            p
8010
        }
8011
    }'
8012
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8013
# Check for a 64-bit object if we didn't find anything.
8014
if test -z "$aix_libpath"; then
8015
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8016
fi
8017
fi
8018 202 julius
rm -f core conftest.err conftest.$ac_objext \
8019
    conftest$ac_exeext conftest.$ac_ext
8020 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8021
 
8022 202 julius
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8023
        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"
8024
      else
8025 19 jeremybenn
        if test "$host_cpu" = ia64; then
8026
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8027
          allow_undefined_flag="-z nodefs"
8028
          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"
8029
        else
8030 202 julius
         # Determine the default libpath from the value encoded in an
8031
         # empty executable.
8032
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 19 jeremybenn
/* end confdefs.h.  */
8034
 
8035
int
8036
main ()
8037
{
8038
 
8039
  ;
8040
  return 0;
8041
}
8042
_ACEOF
8043 202 julius
if ac_fn_c_try_link "$LINENO"; then :
8044 19 jeremybenn
 
8045
lt_aix_libpath_sed='
8046
    /Import File Strings/,/^$/ {
8047
        /^0/ {
8048
            s/^0  *\(.*\)$/\1/
8049
            p
8050
        }
8051
    }'
8052
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8053
# Check for a 64-bit object if we didn't find anything.
8054
if test -z "$aix_libpath"; then
8055
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8056
fi
8057
fi
8058 202 julius
rm -f core conftest.err conftest.$ac_objext \
8059
    conftest$ac_exeext conftest.$ac_ext
8060 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8061
 
8062
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8063
          # Warning - without using the other run time loading flags,
8064
          # -berok will link without error, but may produce a broken library.
8065
          no_undefined_flag=' ${wl}-bernotok'
8066
          allow_undefined_flag=' ${wl}-berok'
8067
          # Exported symbols can be pulled into shared objects from archives
8068
          whole_archive_flag_spec='$convenience'
8069
          archive_cmds_need_lc=yes
8070
          # This is similar to how AIX traditionally builds its shared libraries.
8071
          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'
8072
        fi
8073
      fi
8074
      ;;
8075
 
8076
    amigaos*)
8077 202 julius
      case $host_cpu in
8078
      powerpc)
8079
            # see comment about AmigaOS4 .so support
8080
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8081
            archive_expsym_cmds=''
8082
        ;;
8083
      m68k)
8084
            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)'
8085
            hardcode_libdir_flag_spec='-L$libdir'
8086
            hardcode_minus_L=yes
8087
        ;;
8088
      esac
8089 19 jeremybenn
      ;;
8090
 
8091
    bsdi[45]*)
8092
      export_dynamic_flag_spec=-rdynamic
8093
      ;;
8094
 
8095 202 julius
    cygwin* | mingw* | pw32* | cegcc*)
8096 19 jeremybenn
      # When not using gcc, we currently assume that we are using
8097
      # Microsoft Visual C++.
8098
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8099
      # no search path for DLLs.
8100
      hardcode_libdir_flag_spec=' '
8101
      allow_undefined_flag=unsupported
8102
      # Tell ltmain to make .lib files, not .a files.
8103
      libext=lib
8104
      # Tell ltmain to make .dll files, not .so files.
8105
      shrext_cmds=".dll"
8106
      # FIXME: Setting linknames here is a bad hack.
8107 202 julius
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8108 19 jeremybenn
      # The linker will automatically build a .lib file if we build a DLL.
8109 202 julius
      old_archive_from_new_cmds='true'
8110 19 jeremybenn
      # FIXME: Should let the user specify the lib program.
8111
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8112
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8113
      enable_shared_with_static_runtimes=yes
8114
      ;;
8115
 
8116
    darwin* | rhapsody*)
8117 202 julius
 
8118
 
8119
  archive_cmds_need_lc=no
8120
  hardcode_direct=no
8121
  hardcode_automatic=yes
8122
  hardcode_shlibpath_var=unsupported
8123
  whole_archive_flag_spec=''
8124
  link_all_deplibs=yes
8125
  allow_undefined_flag="$_lt_dar_allow_undefined"
8126
  case $cc_basename in
8127
     ifort*) _lt_dar_can_shared=yes ;;
8128
     *) _lt_dar_can_shared=$GCC ;;
8129
  esac
8130
  if test "$_lt_dar_can_shared" = "yes"; then
8131
    output_verbose_link_cmd=echo
8132
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8133
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8134
    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}"
8135
    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}"
8136
 
8137
  else
8138
  ld_shlibs=no
8139
  fi
8140
 
8141 19 jeremybenn
      ;;
8142
 
8143
    dgux*)
8144
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8145
      hardcode_libdir_flag_spec='-L$libdir'
8146
      hardcode_shlibpath_var=no
8147
      ;;
8148
 
8149
    freebsd1*)
8150
      ld_shlibs=no
8151
      ;;
8152
 
8153
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8154
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8155
    # does not break anything, and helps significantly (at the cost of a little
8156
    # extra space).
8157
    freebsd2.2*)
8158
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8159
      hardcode_libdir_flag_spec='-R$libdir'
8160
      hardcode_direct=yes
8161
      hardcode_shlibpath_var=no
8162
      ;;
8163
 
8164
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8165
    freebsd2*)
8166
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8167
      hardcode_direct=yes
8168
      hardcode_minus_L=yes
8169
      hardcode_shlibpath_var=no
8170
      ;;
8171
 
8172
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8173
    freebsd* | dragonfly*)
8174
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8175
      hardcode_libdir_flag_spec='-R$libdir'
8176
      hardcode_direct=yes
8177
      hardcode_shlibpath_var=no
8178
      ;;
8179
 
8180
    hpux9*)
8181
      if test "$GCC" = yes; then
8182 202 julius
        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'
8183 19 jeremybenn
      else
8184 202 julius
        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'
8185 19 jeremybenn
      fi
8186
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8187
      hardcode_libdir_separator=:
8188
      hardcode_direct=yes
8189
 
8190
      # hardcode_minus_L: Not really in the search PATH,
8191
      # but as the default location of the library.
8192
      hardcode_minus_L=yes
8193
      export_dynamic_flag_spec='${wl}-E'
8194
      ;;
8195
 
8196
    hpux10*)
8197
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8198
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8199
      else
8200
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8201
      fi
8202
      if test "$with_gnu_ld" = no; then
8203
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8204 202 julius
        hardcode_libdir_flag_spec_ld='+b $libdir'
8205 19 jeremybenn
        hardcode_libdir_separator=:
8206
        hardcode_direct=yes
8207 202 julius
        hardcode_direct_absolute=yes
8208 19 jeremybenn
        export_dynamic_flag_spec='${wl}-E'
8209
        # hardcode_minus_L: Not really in the search PATH,
8210
        # but as the default location of the library.
8211
        hardcode_minus_L=yes
8212
      fi
8213
      ;;
8214
 
8215
    hpux11*)
8216
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8217
        case $host_cpu in
8218
        hppa*64*)
8219
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8220
          ;;
8221
        ia64*)
8222 202 julius
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8223 19 jeremybenn
          ;;
8224
        *)
8225
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8226
          ;;
8227
        esac
8228
      else
8229
        case $host_cpu in
8230
        hppa*64*)
8231
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8232
          ;;
8233
        ia64*)
8234
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8235
          ;;
8236
        *)
8237
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8238
          ;;
8239
        esac
8240
      fi
8241
      if test "$with_gnu_ld" = no; then
8242
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8243
        hardcode_libdir_separator=:
8244
 
8245
        case $host_cpu in
8246
        hppa*64*|ia64*)
8247
          hardcode_direct=no
8248
          hardcode_shlibpath_var=no
8249
          ;;
8250
        *)
8251
          hardcode_direct=yes
8252 202 julius
          hardcode_direct_absolute=yes
8253 19 jeremybenn
          export_dynamic_flag_spec='${wl}-E'
8254
 
8255
          # hardcode_minus_L: Not really in the search PATH,
8256
          # but as the default location of the library.
8257
          hardcode_minus_L=yes
8258
          ;;
8259
        esac
8260
      fi
8261
      ;;
8262
 
8263
    irix5* | irix6* | nonstopux*)
8264
      if test "$GCC" = yes; then
8265 202 julius
        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'
8266
        # Try to use the -exported_symbol ld option, if it does not
8267
        # work, assume that -exports_file does not work either and
8268
        # implicitly export all symbols.
8269
        save_LDFLAGS="$LDFLAGS"
8270
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8271
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272
/* end confdefs.h.  */
8273
int foo(void) {}
8274
_ACEOF
8275
if ac_fn_c_try_link "$LINENO"; then :
8276
  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'
8277
 
8278
fi
8279
rm -f core conftest.err conftest.$ac_objext \
8280
    conftest$ac_exeext conftest.$ac_ext
8281
        LDFLAGS="$save_LDFLAGS"
8282 19 jeremybenn
      else
8283 202 julius
        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'
8284
        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'
8285 19 jeremybenn
      fi
8286 202 julius
      archive_cmds_need_lc='no'
8287 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8288
      hardcode_libdir_separator=:
8289 202 julius
      inherit_rpath=yes
8290 19 jeremybenn
      link_all_deplibs=yes
8291
      ;;
8292
 
8293 202 julius
    netbsd* | netbsdelf*-gnu)
8294
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8295 19 jeremybenn
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8296
      else
8297
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8298
      fi
8299
      hardcode_libdir_flag_spec='-R$libdir'
8300
      hardcode_direct=yes
8301
      hardcode_shlibpath_var=no
8302
      ;;
8303
 
8304
    newsos6)
8305
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8306
      hardcode_direct=yes
8307
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8308
      hardcode_libdir_separator=:
8309
      hardcode_shlibpath_var=no
8310
      ;;
8311
 
8312 202 julius
    *nto* | *qnx*)
8313
      ;;
8314
 
8315 19 jeremybenn
    openbsd*)
8316
      if test -f /usr/libexec/ld.so; then
8317
        hardcode_direct=yes
8318
        hardcode_shlibpath_var=no
8319 202 julius
        hardcode_direct_absolute=yes
8320
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8321 19 jeremybenn
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8322
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8323
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8324
          export_dynamic_flag_spec='${wl}-E'
8325
        else
8326
          case $host_os in
8327
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8328
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8329
             hardcode_libdir_flag_spec='-R$libdir'
8330
             ;;
8331
           *)
8332
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8333
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8334
             ;;
8335
          esac
8336 202 julius
        fi
8337 19 jeremybenn
      else
8338
        ld_shlibs=no
8339
      fi
8340
      ;;
8341
 
8342
    os2*)
8343
      hardcode_libdir_flag_spec='-L$libdir'
8344
      hardcode_minus_L=yes
8345
      allow_undefined_flag=unsupported
8346 202 julius
      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'
8347
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8348 19 jeremybenn
      ;;
8349
 
8350
    osf3*)
8351
      if test "$GCC" = yes; then
8352
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8353 202 julius
        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'
8354 19 jeremybenn
      else
8355
        allow_undefined_flag=' -expect_unresolved \*'
8356 202 julius
        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'
8357 19 jeremybenn
      fi
8358 202 julius
      archive_cmds_need_lc='no'
8359 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8360
      hardcode_libdir_separator=:
8361
      ;;
8362
 
8363
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8364
      if test "$GCC" = yes; then
8365
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8366 202 julius
        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'
8367 19 jeremybenn
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8368
      else
8369
        allow_undefined_flag=' -expect_unresolved \*'
8370 202 julius
        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'
8371
        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~
8372
        $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'
8373 19 jeremybenn
 
8374
        # Both c and cxx compiler support -rpath directly
8375
        hardcode_libdir_flag_spec='-rpath $libdir'
8376
      fi
8377 202 julius
      archive_cmds_need_lc='no'
8378 19 jeremybenn
      hardcode_libdir_separator=:
8379
      ;;
8380
 
8381
    solaris*)
8382 202 julius
      no_undefined_flag=' -z defs'
8383 19 jeremybenn
      if test "$GCC" = yes; then
8384
        wlarc='${wl}'
8385 202 julius
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8386
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8387
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8388 19 jeremybenn
      else
8389 202 julius
        case `$CC -V 2>&1` in
8390
        *"Compilers 5.0"*)
8391
          wlarc=''
8392
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8393
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8394
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8395
          ;;
8396
        *)
8397
          wlarc='${wl}'
8398
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8399
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8400
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8401
          ;;
8402
        esac
8403 19 jeremybenn
      fi
8404
      hardcode_libdir_flag_spec='-R$libdir'
8405
      hardcode_shlibpath_var=no
8406
      case $host_os in
8407
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8408
      *)
8409
        # The compiler driver will combine and reorder linker options,
8410
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8411
        # but is careful enough not to reorder.
8412 202 julius
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8413 19 jeremybenn
        if test "$GCC" = yes; then
8414
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8415
        else
8416
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8417
        fi
8418
        ;;
8419
      esac
8420
      link_all_deplibs=yes
8421
      ;;
8422
 
8423
    sunos4*)
8424
      if test "x$host_vendor" = xsequent; then
8425
        # Use $CC to link under sequent, because it throws in some extra .o
8426
        # files that make .init and .fini sections work.
8427
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8428
      else
8429
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8430
      fi
8431
      hardcode_libdir_flag_spec='-L$libdir'
8432
      hardcode_direct=yes
8433
      hardcode_minus_L=yes
8434
      hardcode_shlibpath_var=no
8435
      ;;
8436
 
8437
    sysv4)
8438
      case $host_vendor in
8439
        sni)
8440
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8441
          hardcode_direct=yes # is this really true???
8442
        ;;
8443
        siemens)
8444
          ## LD is ld it makes a PLAMLIB
8445
          ## CC just makes a GrossModule.
8446
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8447
          reload_cmds='$CC -r -o $output$reload_objs'
8448
          hardcode_direct=no
8449
        ;;
8450
        motorola)
8451
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8452
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8453
        ;;
8454
      esac
8455
      runpath_var='LD_RUN_PATH'
8456
      hardcode_shlibpath_var=no
8457
      ;;
8458
 
8459
    sysv4.3*)
8460
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8461
      hardcode_shlibpath_var=no
8462
      export_dynamic_flag_spec='-Bexport'
8463
      ;;
8464
 
8465
    sysv4*MP*)
8466
      if test -d /usr/nec; then
8467
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8468
        hardcode_shlibpath_var=no
8469
        runpath_var=LD_RUN_PATH
8470
        hardcode_runpath_var=yes
8471
        ld_shlibs=yes
8472
      fi
8473
      ;;
8474
 
8475
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8476
      no_undefined_flag='${wl}-z,text'
8477
      archive_cmds_need_lc=no
8478
      hardcode_shlibpath_var=no
8479
      runpath_var='LD_RUN_PATH'
8480
 
8481
      if test "$GCC" = yes; then
8482
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8483
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8484
      else
8485
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8486
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8487
      fi
8488
      ;;
8489
 
8490
    sysv5* | sco3.2v5* | sco5v6*)
8491
      # Note: We can NOT use -z defs as we might desire, because we do not
8492
      # link with -lc, and that would cause any symbols used from libc to
8493
      # always be unresolved, which means just about no library would
8494
      # ever link correctly.  If we're not using GNU ld we use -z text
8495
      # though, which does catch some bad symbols but isn't as heavy-handed
8496
      # as -z defs.
8497
      no_undefined_flag='${wl}-z,text'
8498
      allow_undefined_flag='${wl}-z,nodefs'
8499
      archive_cmds_need_lc=no
8500
      hardcode_shlibpath_var=no
8501 202 julius
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8502 19 jeremybenn
      hardcode_libdir_separator=':'
8503
      link_all_deplibs=yes
8504
      export_dynamic_flag_spec='${wl}-Bexport'
8505
      runpath_var='LD_RUN_PATH'
8506
 
8507
      if test "$GCC" = yes; then
8508 202 julius
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8509
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8510 19 jeremybenn
      else
8511 202 julius
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8512
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8513 19 jeremybenn
      fi
8514
      ;;
8515
 
8516
    uts4*)
8517
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8518
      hardcode_libdir_flag_spec='-L$libdir'
8519
      hardcode_shlibpath_var=no
8520
      ;;
8521
 
8522
    *)
8523
      ld_shlibs=no
8524
      ;;
8525
    esac
8526 202 julius
 
8527
    if test x$host_vendor = xsni; then
8528
      case $host in
8529
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8530
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8531
        ;;
8532
      esac
8533
    fi
8534 19 jeremybenn
  fi
8535
 
8536 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8537
$as_echo "$ld_shlibs" >&6; }
8538 19 jeremybenn
test "$ld_shlibs" = no && can_build_shared=no
8539
 
8540 202 julius
with_gnu_ld=$with_gnu_ld
8541
 
8542
 
8543
 
8544
 
8545
 
8546
 
8547
 
8548
 
8549
 
8550
 
8551
 
8552
 
8553
 
8554
 
8555
 
8556 19 jeremybenn
#
8557
# Do we need to explicitly link libc?
8558
#
8559
case "x$archive_cmds_need_lc" in
8560
x|xyes)
8561
  # Assume -lc should be added
8562
  archive_cmds_need_lc=yes
8563
 
8564
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8565
    case $archive_cmds in
8566
    *'~'*)
8567
      # FIXME: we may have to deal with multi-command sequences.
8568
      ;;
8569
    '$CC '*)
8570
      # Test whether the compiler implicitly links with -lc since on some
8571
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8572
      # to ld, don't add -lc before -lgcc.
8573 202 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8574
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8575
      $RM conftest*
8576 19 jeremybenn
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8577
 
8578 202 julius
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8579 19 jeremybenn
  (eval $ac_compile) 2>&5
8580
  ac_status=$?
8581 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8582
  test $ac_status = 0; } 2>conftest.err; then
8583 19 jeremybenn
        soname=conftest
8584
        lib=conftest
8585
        libobjs=conftest.$ac_objext
8586
        deplibs=
8587
        wl=$lt_prog_compiler_wl
8588
        pic_flag=$lt_prog_compiler_pic
8589
        compiler_flags=-v
8590
        linker_flags=-v
8591
        verstring=
8592
        output_objdir=.
8593
        libname=conftest
8594
        lt_save_allow_undefined_flag=$allow_undefined_flag
8595
        allow_undefined_flag=
8596 202 julius
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8597
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8598 19 jeremybenn
  ac_status=$?
8599 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8600
  test $ac_status = 0; }
8601 19 jeremybenn
        then
8602
          archive_cmds_need_lc=no
8603
        else
8604
          archive_cmds_need_lc=yes
8605
        fi
8606
        allow_undefined_flag=$lt_save_allow_undefined_flag
8607
      else
8608
        cat conftest.err 1>&5
8609
      fi
8610 202 julius
      $RM conftest*
8611
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8612
$as_echo "$archive_cmds_need_lc" >&6; }
8613 19 jeremybenn
      ;;
8614
    esac
8615
  fi
8616
  ;;
8617
esac
8618
 
8619
 
8620 202 julius
 
8621
 
8622
 
8623
 
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
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8776
$as_echo_n "checking dynamic linker characteristics... " >&6; }
8777
 
8778 19 jeremybenn
if test "$GCC" = yes; then
8779
  case $host_os in
8780
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8781
    *) lt_awk_arg="/^libraries:/" ;;
8782
  esac
8783
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8784 202 julius
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8785 19 jeremybenn
    # if the path contains ";" then we assume it to be the separator
8786
    # otherwise default to the standard path separator (i.e. ":") - it is
8787
    # assumed that no part of a normal pathname contains ";" but that should
8788
    # okay in the real world where ";" in dirpaths is itself problematic.
8789 202 julius
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8790 19 jeremybenn
  else
8791 202 julius
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8792 19 jeremybenn
  fi
8793
  # Ok, now we have the path, separated by spaces, we can step through it
8794
  # and add multilib dir if necessary.
8795
  lt_tmp_lt_search_path_spec=
8796
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8797
  for lt_sys_path in $lt_search_path_spec; do
8798
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8799
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8800
    else
8801
      test -d "$lt_sys_path" && \
8802
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8803
    fi
8804
  done
8805 202 julius
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8806 19 jeremybenn
BEGIN {RS=" "; FS="/|\n";} {
8807
  lt_foo="";
8808
  lt_count=0;
8809
  for (lt_i = NF; lt_i > 0; lt_i--) {
8810
    if ($lt_i != "" && $lt_i != ".") {
8811
      if ($lt_i == "..") {
8812
        lt_count++;
8813
      } else {
8814
        if (lt_count == 0) {
8815
          lt_foo="/" $lt_i lt_foo;
8816
        } else {
8817
          lt_count--;
8818
        }
8819
      }
8820
    }
8821
  }
8822
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8823
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8824
}'`
8825 202 julius
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8826 19 jeremybenn
else
8827
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8828
fi
8829 202 julius
library_names_spec=
8830
libname_spec='lib$name'
8831
soname_spec=
8832
shrext_cmds=".so"
8833
postinstall_cmds=
8834
postuninstall_cmds=
8835
finish_cmds=
8836
finish_eval=
8837
shlibpath_var=
8838
shlibpath_overrides_runpath=unknown
8839
version_type=none
8840
dynamic_linker="$host_os ld.so"
8841
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8842 19 jeremybenn
need_lib_prefix=unknown
8843
hardcode_into_libs=no
8844
 
8845
# when you set need_version to no, make sure it does not cause -set_version
8846
# flags to be left without arguments
8847
need_version=unknown
8848
 
8849
case $host_os in
8850
aix3*)
8851
  version_type=linux
8852
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8853
  shlibpath_var=LIBPATH
8854
 
8855
  # AIX 3 has no versioning support, so we append a major version to the name.
8856
  soname_spec='${libname}${release}${shared_ext}$major'
8857
  ;;
8858
 
8859 202 julius
aix[4-9]*)
8860 19 jeremybenn
  version_type=linux
8861
  need_lib_prefix=no
8862
  need_version=no
8863
  hardcode_into_libs=yes
8864
  if test "$host_cpu" = ia64; then
8865
    # AIX 5 supports IA64
8866
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8867
    shlibpath_var=LD_LIBRARY_PATH
8868
  else
8869
    # With GCC up to 2.95.x, collect2 would create an import file
8870
    # for dependence libraries.  The import file would start with
8871
    # the line `#! .'.  This would cause the generated library to
8872
    # depend on `.', always an invalid library.  This was fixed in
8873
    # development snapshots of GCC prior to 3.0.
8874
    case $host_os in
8875
      aix4 | aix4.[01] | aix4.[01].*)
8876
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8877
           echo ' yes '
8878 202 julius
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8879 19 jeremybenn
        :
8880
      else
8881
        can_build_shared=no
8882
      fi
8883
      ;;
8884
    esac
8885
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8886
    # soname into executable. Probably we can add versioning support to
8887
    # collect2, so additional links can be useful in future.
8888
    if test "$aix_use_runtimelinking" = yes; then
8889
      # If using run time linking (on AIX 4.2 or later) use lib.so
8890
      # instead of lib.a to let people know that these are not
8891
      # typical AIX shared libraries.
8892
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8893
    else
8894
      # We preserve .a as extension for shared libraries through AIX4.2
8895
      # and later when we are not doing run time linking.
8896
      library_names_spec='${libname}${release}.a $libname.a'
8897
      soname_spec='${libname}${release}${shared_ext}$major'
8898
    fi
8899
    shlibpath_var=LIBPATH
8900
  fi
8901
  ;;
8902
 
8903
amigaos*)
8904 202 julius
  case $host_cpu in
8905
  powerpc)
8906
    # Since July 2007 AmigaOS4 officially supports .so libraries.
8907
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8908
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8909
    ;;
8910
  m68k)
8911
    library_names_spec='$libname.ixlibrary $libname.a'
8912
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8913
    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'
8914
    ;;
8915
  esac
8916 19 jeremybenn
  ;;
8917
 
8918
beos*)
8919
  library_names_spec='${libname}${shared_ext}'
8920
  dynamic_linker="$host_os ld.so"
8921
  shlibpath_var=LIBRARY_PATH
8922
  ;;
8923
 
8924
bsdi[45]*)
8925
  version_type=linux
8926
  need_version=no
8927
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8928
  soname_spec='${libname}${release}${shared_ext}$major'
8929
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8930
  shlibpath_var=LD_LIBRARY_PATH
8931
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8932
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8933
  # the default ld.so.conf also contains /usr/contrib/lib and
8934
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8935
  # libtool to hard-code these into programs
8936
  ;;
8937
 
8938 202 julius
cygwin* | mingw* | pw32* | cegcc*)
8939 19 jeremybenn
  version_type=windows
8940
  shrext_cmds=".dll"
8941
  need_version=no
8942
  need_lib_prefix=no
8943
 
8944
  case $GCC,$host_os in
8945 202 julius
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8946 19 jeremybenn
    library_names_spec='$libname.dll.a'
8947
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8948
    postinstall_cmds='base_file=`basename \${file}`~
8949 202 julius
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8950 19 jeremybenn
      dldir=$destdir/`dirname \$dlpath`~
8951
      test -d \$dldir || mkdir -p \$dldir~
8952
      $install_prog $dir/$dlname \$dldir/$dlname~
8953 202 julius
      chmod a+x \$dldir/$dlname~
8954
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8955
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8956
      fi'
8957 19 jeremybenn
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8958
      dlpath=$dir/\$dldll~
8959 202 julius
       $RM \$dlpath'
8960 19 jeremybenn
    shlibpath_overrides_runpath=yes
8961
 
8962
    case $host_os in
8963
    cygwin*)
8964
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8965
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8966
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8967
      ;;
8968 202 julius
    mingw* | cegcc*)
8969 19 jeremybenn
      # MinGW DLLs use traditional 'lib' prefix
8970
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8971 202 julius
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8972
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8973 19 jeremybenn
        # It is most probably a Windows format PATH printed by
8974
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8975
        # path with ; separators, and with drive letters. We can handle the
8976
        # drive letters (cygwin fileutils understands them), so leave them,
8977
        # especially as we might pass files found there to a mingw objdump,
8978
        # which wouldn't understand a cygwinified path. Ahh.
8979 202 julius
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8980 19 jeremybenn
      else
8981 202 julius
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8982 19 jeremybenn
      fi
8983
      ;;
8984
    pw32*)
8985
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8986
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8987
      ;;
8988
    esac
8989
    ;;
8990
 
8991
  *)
8992
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8993
    ;;
8994
  esac
8995
  dynamic_linker='Win32 ld.exe'
8996
  # FIXME: first we should search . and the directory the executable is in
8997
  shlibpath_var=PATH
8998
  ;;
8999
 
9000
darwin* | rhapsody*)
9001
  dynamic_linker="$host_os dyld"
9002
  version_type=darwin
9003
  need_lib_prefix=no
9004
  need_version=no
9005 202 julius
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9006 19 jeremybenn
  soname_spec='${libname}${release}${major}$shared_ext'
9007
  shlibpath_overrides_runpath=yes
9008
  shlibpath_var=DYLD_LIBRARY_PATH
9009
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9010 202 julius
 
9011
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9012 19 jeremybenn
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9013
  ;;
9014
 
9015
dgux*)
9016
  version_type=linux
9017
  need_lib_prefix=no
9018
  need_version=no
9019
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9020
  soname_spec='${libname}${release}${shared_ext}$major'
9021
  shlibpath_var=LD_LIBRARY_PATH
9022
  ;;
9023
 
9024
freebsd1*)
9025
  dynamic_linker=no
9026
  ;;
9027
 
9028
freebsd* | dragonfly*)
9029
  # DragonFly does not have aout.  When/if they implement a new
9030
  # versioning mechanism, adjust this.
9031
  if test -x /usr/bin/objformat; then
9032
    objformat=`/usr/bin/objformat`
9033
  else
9034
    case $host_os in
9035
    freebsd[123]*) objformat=aout ;;
9036
    *) objformat=elf ;;
9037
    esac
9038
  fi
9039
  version_type=freebsd-$objformat
9040
  case $version_type in
9041
    freebsd-elf*)
9042
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9043
      need_version=no
9044
      need_lib_prefix=no
9045
      ;;
9046
    freebsd-*)
9047
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9048
      need_version=yes
9049
      ;;
9050
  esac
9051
  shlibpath_var=LD_LIBRARY_PATH
9052
  case $host_os in
9053
  freebsd2*)
9054
    shlibpath_overrides_runpath=yes
9055
    ;;
9056
  freebsd3.[01]* | freebsdelf3.[01]*)
9057
    shlibpath_overrides_runpath=yes
9058
    hardcode_into_libs=yes
9059
    ;;
9060
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9061
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9062
    shlibpath_overrides_runpath=no
9063
    hardcode_into_libs=yes
9064
    ;;
9065
  *) # from 4.6 on, and DragonFly
9066
    shlibpath_overrides_runpath=yes
9067
    hardcode_into_libs=yes
9068
    ;;
9069
  esac
9070
  ;;
9071
 
9072
gnu*)
9073
  version_type=linux
9074
  need_lib_prefix=no
9075
  need_version=no
9076
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9077
  soname_spec='${libname}${release}${shared_ext}$major'
9078
  shlibpath_var=LD_LIBRARY_PATH
9079
  hardcode_into_libs=yes
9080
  ;;
9081
 
9082
hpux9* | hpux10* | hpux11*)
9083
  # Give a soname corresponding to the major version so that dld.sl refuses to
9084
  # link against other versions.
9085
  version_type=sunos
9086
  need_lib_prefix=no
9087
  need_version=no
9088
  case $host_cpu in
9089
  ia64*)
9090
    shrext_cmds='.so'
9091
    hardcode_into_libs=yes
9092
    dynamic_linker="$host_os dld.so"
9093
    shlibpath_var=LD_LIBRARY_PATH
9094
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9095
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096
    soname_spec='${libname}${release}${shared_ext}$major'
9097
    if test "X$HPUX_IA64_MODE" = X32; then
9098
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9099
    else
9100
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9101
    fi
9102
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9103
    ;;
9104 202 julius
  hppa*64*)
9105 19 jeremybenn
    shrext_cmds='.sl'
9106 202 julius
    hardcode_into_libs=yes
9107 19 jeremybenn
    dynamic_linker="$host_os dld.sl"
9108 202 julius
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9109
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9110
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111
    soname_spec='${libname}${release}${shared_ext}$major'
9112
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9113
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9114
    ;;
9115
  *)
9116
    shrext_cmds='.sl'
9117
    dynamic_linker="$host_os dld.sl"
9118 19 jeremybenn
    shlibpath_var=SHLIB_PATH
9119
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9120
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121
    soname_spec='${libname}${release}${shared_ext}$major'
9122
    ;;
9123
  esac
9124
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9125
  postinstall_cmds='chmod 555 $lib'
9126
  ;;
9127
 
9128
interix[3-9]*)
9129
  version_type=linux
9130
  need_lib_prefix=no
9131
  need_version=no
9132
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9133
  soname_spec='${libname}${release}${shared_ext}$major'
9134
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9135
  shlibpath_var=LD_LIBRARY_PATH
9136
  shlibpath_overrides_runpath=no
9137
  hardcode_into_libs=yes
9138
  ;;
9139
 
9140
irix5* | irix6* | nonstopux*)
9141
  case $host_os in
9142
    nonstopux*) version_type=nonstopux ;;
9143
    *)
9144
        if test "$lt_cv_prog_gnu_ld" = yes; then
9145
                version_type=linux
9146
        else
9147
                version_type=irix
9148
        fi ;;
9149
  esac
9150
  need_lib_prefix=no
9151
  need_version=no
9152
  soname_spec='${libname}${release}${shared_ext}$major'
9153
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9154
  case $host_os in
9155
  irix5* | nonstopux*)
9156
    libsuff= shlibsuff=
9157
    ;;
9158
  *)
9159
    case $LD in # libtool.m4 will add one of these switches to LD
9160
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9161
      libsuff= shlibsuff= libmagic=32-bit;;
9162
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9163
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9164
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9165
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9166
    *) libsuff= shlibsuff= libmagic=never-match;;
9167
    esac
9168
    ;;
9169
  esac
9170
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9171
  shlibpath_overrides_runpath=no
9172
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9173
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9174
  hardcode_into_libs=yes
9175
  ;;
9176
 
9177
# No shared lib support for Linux oldld, aout, or coff.
9178
linux*oldld* | linux*aout* | linux*coff*)
9179
  dynamic_linker=no
9180
  ;;
9181
 
9182
# This must be Linux ELF.
9183
linux* | k*bsd*-gnu)
9184
  version_type=linux
9185
  need_lib_prefix=no
9186
  need_version=no
9187
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9188
  soname_spec='${libname}${release}${shared_ext}$major'
9189
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9190
  shlibpath_var=LD_LIBRARY_PATH
9191
  shlibpath_overrides_runpath=no
9192 202 julius
  # Some binutils ld are patched to set DT_RUNPATH
9193
  save_LDFLAGS=$LDFLAGS
9194
  save_libdir=$libdir
9195
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9196
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9197
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198
/* end confdefs.h.  */
9199
 
9200
int
9201
main ()
9202
{
9203
 
9204
  ;
9205
  return 0;
9206
}
9207
_ACEOF
9208
if ac_fn_c_try_link "$LINENO"; then :
9209
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9210
  shlibpath_overrides_runpath=yes
9211
fi
9212
fi
9213
rm -f core conftest.err conftest.$ac_objext \
9214
    conftest$ac_exeext conftest.$ac_ext
9215
  LDFLAGS=$save_LDFLAGS
9216
  libdir=$save_libdir
9217
 
9218 19 jeremybenn
  # This implies no fast_install, which is unacceptable.
9219
  # Some rework will be needed to allow for fast_install
9220
  # before this can be enabled.
9221
  hardcode_into_libs=yes
9222
 
9223
  # Append ld.so.conf contents to the search path
9224
  if test -f /etc/ld.so.conf; then
9225 202 julius
    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' ' '`
9226 60 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9227 19 jeremybenn
  fi
9228
 
9229
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9230
  # powerpc, because MkLinux only supported shared libraries with the
9231
  # GNU dynamic linker.  Since this was broken with cross compilers,
9232
  # most powerpc-linux boxes support dynamic linking these days and
9233
  # people can always --disable-shared, the test was removed, and we
9234
  # assume the GNU/Linux dynamic linker is in use.
9235
  dynamic_linker='GNU/Linux ld.so'
9236
  ;;
9237
 
9238 202 julius
netbsdelf*-gnu)
9239
  version_type=linux
9240
  need_lib_prefix=no
9241
  need_version=no
9242
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9243
  soname_spec='${libname}${release}${shared_ext}$major'
9244
  shlibpath_var=LD_LIBRARY_PATH
9245
  shlibpath_overrides_runpath=no
9246
  hardcode_into_libs=yes
9247
  dynamic_linker='NetBSD ld.elf_so'
9248
  ;;
9249
 
9250 19 jeremybenn
netbsd*)
9251
  version_type=sunos
9252
  need_lib_prefix=no
9253
  need_version=no
9254 202 julius
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9255 19 jeremybenn
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9256
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9257
    dynamic_linker='NetBSD (a.out) ld.so'
9258
  else
9259
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9260
    soname_spec='${libname}${release}${shared_ext}$major'
9261
    dynamic_linker='NetBSD ld.elf_so'
9262
  fi
9263
  shlibpath_var=LD_LIBRARY_PATH
9264
  shlibpath_overrides_runpath=yes
9265
  hardcode_into_libs=yes
9266
  ;;
9267
 
9268
newsos6)
9269
  version_type=linux
9270
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9271
  shlibpath_var=LD_LIBRARY_PATH
9272
  shlibpath_overrides_runpath=yes
9273
  ;;
9274
 
9275 202 julius
*nto* | *qnx*)
9276
  version_type=qnx
9277 19 jeremybenn
  need_lib_prefix=no
9278
  need_version=no
9279
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280
  soname_spec='${libname}${release}${shared_ext}$major'
9281
  shlibpath_var=LD_LIBRARY_PATH
9282 202 julius
  shlibpath_overrides_runpath=no
9283
  hardcode_into_libs=yes
9284
  dynamic_linker='ldqnx.so'
9285 19 jeremybenn
  ;;
9286
 
9287
openbsd*)
9288
  version_type=sunos
9289
  sys_lib_dlsearch_path_spec="/usr/lib"
9290
  need_lib_prefix=no
9291
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9292
  case $host_os in
9293 202 julius
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9294
    *)                          need_version=no  ;;
9295 19 jeremybenn
  esac
9296
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9297
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9298
  shlibpath_var=LD_LIBRARY_PATH
9299 202 julius
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9300 19 jeremybenn
    case $host_os in
9301
      openbsd2.[89] | openbsd2.[89].*)
9302
        shlibpath_overrides_runpath=no
9303
        ;;
9304
      *)
9305
        shlibpath_overrides_runpath=yes
9306
        ;;
9307
      esac
9308
  else
9309
    shlibpath_overrides_runpath=yes
9310
  fi
9311
  ;;
9312
 
9313
os2*)
9314
  libname_spec='$name'
9315
  shrext_cmds=".dll"
9316
  need_lib_prefix=no
9317
  library_names_spec='$libname${shared_ext} $libname.a'
9318
  dynamic_linker='OS/2 ld.exe'
9319
  shlibpath_var=LIBPATH
9320
  ;;
9321
 
9322
osf3* | osf4* | osf5*)
9323
  version_type=osf
9324
  need_lib_prefix=no
9325
  need_version=no
9326
  soname_spec='${libname}${release}${shared_ext}$major'
9327
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9328
  shlibpath_var=LD_LIBRARY_PATH
9329
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9330
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9331
  ;;
9332
 
9333
rdos*)
9334
  dynamic_linker=no
9335
  ;;
9336
 
9337
solaris*)
9338
  version_type=linux
9339
  need_lib_prefix=no
9340
  need_version=no
9341
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9342
  soname_spec='${libname}${release}${shared_ext}$major'
9343
  shlibpath_var=LD_LIBRARY_PATH
9344
  shlibpath_overrides_runpath=yes
9345
  hardcode_into_libs=yes
9346
  # ldd complains unless libraries are executable
9347
  postinstall_cmds='chmod +x $lib'
9348
  ;;
9349
 
9350
sunos4*)
9351
  version_type=sunos
9352
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9353
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9354
  shlibpath_var=LD_LIBRARY_PATH
9355
  shlibpath_overrides_runpath=yes
9356
  if test "$with_gnu_ld" = yes; then
9357
    need_lib_prefix=no
9358
  fi
9359
  need_version=yes
9360
  ;;
9361
 
9362
sysv4 | sysv4.3*)
9363
  version_type=linux
9364
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365
  soname_spec='${libname}${release}${shared_ext}$major'
9366
  shlibpath_var=LD_LIBRARY_PATH
9367
  case $host_vendor in
9368
    sni)
9369
      shlibpath_overrides_runpath=no
9370
      need_lib_prefix=no
9371
      runpath_var=LD_RUN_PATH
9372
      ;;
9373
    siemens)
9374
      need_lib_prefix=no
9375
      ;;
9376
    motorola)
9377
      need_lib_prefix=no
9378
      need_version=no
9379
      shlibpath_overrides_runpath=no
9380
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9381
      ;;
9382
  esac
9383
  ;;
9384
 
9385
sysv4*MP*)
9386
  if test -d /usr/nec ;then
9387
    version_type=linux
9388
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9389
    soname_spec='$libname${shared_ext}.$major'
9390
    shlibpath_var=LD_LIBRARY_PATH
9391
  fi
9392
  ;;
9393
 
9394
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9395
  version_type=freebsd-elf
9396
  need_lib_prefix=no
9397
  need_version=no
9398
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9399
  soname_spec='${libname}${release}${shared_ext}$major'
9400
  shlibpath_var=LD_LIBRARY_PATH
9401 202 julius
  shlibpath_overrides_runpath=yes
9402 19 jeremybenn
  hardcode_into_libs=yes
9403
  if test "$with_gnu_ld" = yes; then
9404
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9405
  else
9406
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9407
    case $host_os in
9408
      sco3.2v5*)
9409
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9410
        ;;
9411
    esac
9412
  fi
9413
  sys_lib_dlsearch_path_spec='/usr/lib'
9414
  ;;
9415
 
9416 202 julius
tpf*)
9417
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9418
  version_type=linux
9419
  need_lib_prefix=no
9420
  need_version=no
9421
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9422
  shlibpath_var=LD_LIBRARY_PATH
9423
  shlibpath_overrides_runpath=no
9424
  hardcode_into_libs=yes
9425
  ;;
9426
 
9427 19 jeremybenn
uts4*)
9428
  version_type=linux
9429
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9430
  soname_spec='${libname}${release}${shared_ext}$major'
9431
  shlibpath_var=LD_LIBRARY_PATH
9432
  ;;
9433
 
9434
*)
9435
  dynamic_linker=no
9436
  ;;
9437
esac
9438 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9439
$as_echo "$dynamic_linker" >&6; }
9440 19 jeremybenn
test "$dynamic_linker" = no && can_build_shared=no
9441
 
9442
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9443
if test "$GCC" = yes; then
9444
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9445
fi
9446
 
9447 202 julius
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9448
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9449
fi
9450
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9451
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9452
fi
9453
 
9454
 
9455
 
9456
 
9457
 
9458
 
9459
 
9460
 
9461
 
9462
 
9463
 
9464
 
9465
 
9466
 
9467
 
9468
 
9469
 
9470
 
9471
 
9472
 
9473
 
9474
 
9475
 
9476
 
9477
 
9478
 
9479
 
9480
 
9481
 
9482
 
9483
 
9484
 
9485
 
9486
 
9487
 
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
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9541
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9542 19 jeremybenn
hardcode_action=
9543 202 julius
if test -n "$hardcode_libdir_flag_spec" ||
9544
   test -n "$runpath_var" ||
9545 19 jeremybenn
   test "X$hardcode_automatic" = "Xyes" ; then
9546
 
9547 202 julius
  # We can hardcode non-existent directories.
9548 19 jeremybenn
  if test "$hardcode_direct" != no &&
9549
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9550
     # have to relink, otherwise we might link with an installed library
9551
     # when we should be linking with a yet-to-be-installed one
9552 202 julius
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9553 19 jeremybenn
     test "$hardcode_minus_L" != no; then
9554
    # Linking always hardcodes the temporary library directory.
9555
    hardcode_action=relink
9556
  else
9557
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9558
    hardcode_action=immediate
9559
  fi
9560
else
9561
  # We cannot hardcode anything, or else we can only hardcode existing
9562
  # directories.
9563
  hardcode_action=unsupported
9564
fi
9565 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9566
$as_echo "$hardcode_action" >&6; }
9567 19 jeremybenn
 
9568 202 julius
if test "$hardcode_action" = relink ||
9569
   test "$inherit_rpath" = yes; then
9570 19 jeremybenn
  # Fast installation is not supported
9571
  enable_fast_install=no
9572
elif test "$shlibpath_overrides_runpath" = yes ||
9573
     test "$enable_shared" = no; then
9574
  # Fast installation is not necessary
9575
  enable_fast_install=needless
9576
fi
9577
 
9578 202 julius
 
9579
 
9580
 
9581 19 jeremybenn
 
9582 202 julius
 
9583
  if test "x$enable_dlopen" != xyes; then
9584 19 jeremybenn
  enable_dlopen=unknown
9585
  enable_dlopen_self=unknown
9586
  enable_dlopen_self_static=unknown
9587
else
9588
  lt_cv_dlopen=no
9589
  lt_cv_dlopen_libs=
9590
 
9591
  case $host_os in
9592
  beos*)
9593
    lt_cv_dlopen="load_add_on"
9594
    lt_cv_dlopen_libs=
9595
    lt_cv_dlopen_self=yes
9596
    ;;
9597
 
9598 202 julius
  mingw* | pw32* | cegcc*)
9599 19 jeremybenn
    lt_cv_dlopen="LoadLibrary"
9600
    lt_cv_dlopen_libs=
9601 202 julius
    ;;
9602 19 jeremybenn
 
9603
  cygwin*)
9604
    lt_cv_dlopen="dlopen"
9605
    lt_cv_dlopen_libs=
9606 202 julius
    ;;
9607 19 jeremybenn
 
9608
  darwin*)
9609
  # if libdl is installed we need to link against it
9610 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9611
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9612
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9613
  $as_echo_n "(cached) " >&6
9614 19 jeremybenn
else
9615
  ac_check_lib_save_LIBS=$LIBS
9616
LIBS="-ldl  $LIBS"
9617 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 19 jeremybenn
/* end confdefs.h.  */
9619
 
9620
/* Override any GCC internal prototype to avoid an error.
9621
   Use char because int might match the return type of a GCC
9622
   builtin and then its argument prototype would still apply.  */
9623
#ifdef __cplusplus
9624
extern "C"
9625
#endif
9626
char dlopen ();
9627
int
9628
main ()
9629
{
9630
return dlopen ();
9631
  ;
9632
  return 0;
9633
}
9634
_ACEOF
9635 202 julius
if ac_fn_c_try_link "$LINENO"; then :
9636 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9637
else
9638 202 julius
  ac_cv_lib_dl_dlopen=no
9639 19 jeremybenn
fi
9640 202 julius
rm -f core conftest.err conftest.$ac_objext \
9641
    conftest$ac_exeext conftest.$ac_ext
9642 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9643
fi
9644 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9645
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9646
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9647 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9648
else
9649
 
9650
    lt_cv_dlopen="dyld"
9651
    lt_cv_dlopen_libs=
9652
    lt_cv_dlopen_self=yes
9653
 
9654
fi
9655
 
9656 202 julius
    ;;
9657 19 jeremybenn
 
9658
  *)
9659 202 julius
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9660
if test "x$ac_cv_func_shl_load" = x""yes; then :
9661 19 jeremybenn
  lt_cv_dlopen="shl_load"
9662
else
9663 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9664
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9665
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9666
  $as_echo_n "(cached) " >&6
9667 19 jeremybenn
else
9668
  ac_check_lib_save_LIBS=$LIBS
9669
LIBS="-ldld  $LIBS"
9670 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9671 19 jeremybenn
/* end confdefs.h.  */
9672
 
9673
/* Override any GCC internal prototype to avoid an error.
9674
   Use char because int might match the return type of a GCC
9675
   builtin and then its argument prototype would still apply.  */
9676
#ifdef __cplusplus
9677
extern "C"
9678
#endif
9679
char shl_load ();
9680
int
9681
main ()
9682
{
9683
return shl_load ();
9684
  ;
9685
  return 0;
9686
}
9687
_ACEOF
9688 202 julius
if ac_fn_c_try_link "$LINENO"; then :
9689 19 jeremybenn
  ac_cv_lib_dld_shl_load=yes
9690
else
9691 202 julius
  ac_cv_lib_dld_shl_load=no
9692 19 jeremybenn
fi
9693 202 julius
rm -f core conftest.err conftest.$ac_objext \
9694
    conftest$ac_exeext conftest.$ac_ext
9695 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9696
fi
9697 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9698
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9699
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9700
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9701 19 jeremybenn
else
9702 202 julius
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9703
if test "x$ac_cv_func_dlopen" = x""yes; then :
9704 19 jeremybenn
  lt_cv_dlopen="dlopen"
9705
else
9706 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9707
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9708
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9709
  $as_echo_n "(cached) " >&6
9710 19 jeremybenn
else
9711
  ac_check_lib_save_LIBS=$LIBS
9712
LIBS="-ldl  $LIBS"
9713 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 19 jeremybenn
/* end confdefs.h.  */
9715
 
9716
/* Override any GCC internal prototype to avoid an error.
9717
   Use char because int might match the return type of a GCC
9718
   builtin and then its argument prototype would still apply.  */
9719
#ifdef __cplusplus
9720
extern "C"
9721
#endif
9722
char dlopen ();
9723
int
9724
main ()
9725
{
9726
return dlopen ();
9727
  ;
9728
  return 0;
9729
}
9730
_ACEOF
9731 202 julius
if ac_fn_c_try_link "$LINENO"; then :
9732 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9733
else
9734 202 julius
  ac_cv_lib_dl_dlopen=no
9735 19 jeremybenn
fi
9736 202 julius
rm -f core conftest.err conftest.$ac_objext \
9737
    conftest$ac_exeext conftest.$ac_ext
9738 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9739
fi
9740 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9741
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9742
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9743 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9744
else
9745 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9746
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9747
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9748
  $as_echo_n "(cached) " >&6
9749 19 jeremybenn
else
9750
  ac_check_lib_save_LIBS=$LIBS
9751
LIBS="-lsvld  $LIBS"
9752 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753 19 jeremybenn
/* end confdefs.h.  */
9754
 
9755
/* Override any GCC internal prototype to avoid an error.
9756
   Use char because int might match the return type of a GCC
9757
   builtin and then its argument prototype would still apply.  */
9758
#ifdef __cplusplus
9759
extern "C"
9760
#endif
9761
char dlopen ();
9762
int
9763
main ()
9764
{
9765
return dlopen ();
9766
  ;
9767
  return 0;
9768
}
9769
_ACEOF
9770 202 julius
if ac_fn_c_try_link "$LINENO"; then :
9771 19 jeremybenn
  ac_cv_lib_svld_dlopen=yes
9772
else
9773 202 julius
  ac_cv_lib_svld_dlopen=no
9774 19 jeremybenn
fi
9775 202 julius
rm -f core conftest.err conftest.$ac_objext \
9776
    conftest$ac_exeext conftest.$ac_ext
9777 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9778
fi
9779 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9780
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9781
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9782 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9783
else
9784 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9785
$as_echo_n "checking for dld_link in -ldld... " >&6; }
9786
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9787
  $as_echo_n "(cached) " >&6
9788 19 jeremybenn
else
9789
  ac_check_lib_save_LIBS=$LIBS
9790
LIBS="-ldld  $LIBS"
9791 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9792 19 jeremybenn
/* end confdefs.h.  */
9793
 
9794
/* Override any GCC internal prototype to avoid an error.
9795
   Use char because int might match the return type of a GCC
9796
   builtin and then its argument prototype would still apply.  */
9797
#ifdef __cplusplus
9798
extern "C"
9799
#endif
9800
char dld_link ();
9801
int
9802
main ()
9803
{
9804
return dld_link ();
9805
  ;
9806
  return 0;
9807
}
9808
_ACEOF
9809 202 julius
if ac_fn_c_try_link "$LINENO"; then :
9810 19 jeremybenn
  ac_cv_lib_dld_dld_link=yes
9811
else
9812 202 julius
  ac_cv_lib_dld_dld_link=no
9813 19 jeremybenn
fi
9814 202 julius
rm -f core conftest.err conftest.$ac_objext \
9815
    conftest$ac_exeext conftest.$ac_ext
9816 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9817
fi
9818 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9819
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9820
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9821
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9822 19 jeremybenn
fi
9823
 
9824
 
9825
fi
9826
 
9827
 
9828
fi
9829
 
9830
 
9831
fi
9832
 
9833
 
9834
fi
9835
 
9836
 
9837
fi
9838
 
9839
    ;;
9840
  esac
9841
 
9842
  if test "x$lt_cv_dlopen" != xno; then
9843
    enable_dlopen=yes
9844
  else
9845
    enable_dlopen=no
9846
  fi
9847
 
9848
  case $lt_cv_dlopen in
9849
  dlopen)
9850
    save_CPPFLAGS="$CPPFLAGS"
9851
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9852
 
9853
    save_LDFLAGS="$LDFLAGS"
9854
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9855
 
9856
    save_LIBS="$LIBS"
9857
    LIBS="$lt_cv_dlopen_libs $LIBS"
9858
 
9859 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9860
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9861
if test "${lt_cv_dlopen_self+set}" = set; then :
9862
  $as_echo_n "(cached) " >&6
9863 19 jeremybenn
else
9864
          if test "$cross_compiling" = yes; then :
9865
  lt_cv_dlopen_self=cross
9866
else
9867
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9868
  lt_status=$lt_dlunknown
9869 202 julius
  cat > conftest.$ac_ext <<_LT_EOF
9870 19 jeremybenn
#line __oline__ "configure"
9871
#include "confdefs.h"
9872
 
9873
#if HAVE_DLFCN_H
9874
#include 
9875
#endif
9876
 
9877
#include 
9878
 
9879
#ifdef RTLD_GLOBAL
9880
#  define LT_DLGLOBAL           RTLD_GLOBAL
9881
#else
9882
#  ifdef DL_GLOBAL
9883
#    define LT_DLGLOBAL         DL_GLOBAL
9884
#  else
9885
#    define LT_DLGLOBAL         0
9886
#  endif
9887
#endif
9888
 
9889
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9890
   find out it does not work in some platform. */
9891
#ifndef LT_DLLAZY_OR_NOW
9892
#  ifdef RTLD_LAZY
9893
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9894
#  else
9895
#    ifdef DL_LAZY
9896
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9897
#    else
9898
#      ifdef RTLD_NOW
9899
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9900
#      else
9901
#        ifdef DL_NOW
9902
#          define LT_DLLAZY_OR_NOW      DL_NOW
9903
#        else
9904
#          define LT_DLLAZY_OR_NOW      0
9905
#        endif
9906
#      endif
9907
#    endif
9908
#  endif
9909
#endif
9910
 
9911
void fnord() { int i=42;}
9912
int main ()
9913
{
9914
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9915
  int status = $lt_dlunknown;
9916
 
9917
  if (self)
9918
    {
9919
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9920
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9921
      /* dlclose (self); */
9922
    }
9923
  else
9924
    puts (dlerror ());
9925
 
9926 202 julius
  return status;
9927 19 jeremybenn
}
9928 202 julius
_LT_EOF
9929
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9930 19 jeremybenn
  (eval $ac_link) 2>&5
9931
  ac_status=$?
9932 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9933
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9934 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
9935
    lt_status=$?
9936
    case x$lt_status in
9937
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9938
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9939
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9940
    esac
9941
  else :
9942
    # compilation failed
9943
    lt_cv_dlopen_self=no
9944
  fi
9945
fi
9946
rm -fr conftest*
9947
 
9948
 
9949
fi
9950 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9951
$as_echo "$lt_cv_dlopen_self" >&6; }
9952 19 jeremybenn
 
9953
    if test "x$lt_cv_dlopen_self" = xyes; then
9954
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9955 202 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9956
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9957
if test "${lt_cv_dlopen_self_static+set}" = set; then :
9958
  $as_echo_n "(cached) " >&6
9959 19 jeremybenn
else
9960
          if test "$cross_compiling" = yes; then :
9961
  lt_cv_dlopen_self_static=cross
9962
else
9963
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9964
  lt_status=$lt_dlunknown
9965 202 julius
  cat > conftest.$ac_ext <<_LT_EOF
9966 19 jeremybenn
#line __oline__ "configure"
9967
#include "confdefs.h"
9968
 
9969
#if HAVE_DLFCN_H
9970
#include 
9971
#endif
9972
 
9973
#include 
9974
 
9975
#ifdef RTLD_GLOBAL
9976
#  define LT_DLGLOBAL           RTLD_GLOBAL
9977
#else
9978
#  ifdef DL_GLOBAL
9979
#    define LT_DLGLOBAL         DL_GLOBAL
9980
#  else
9981
#    define LT_DLGLOBAL         0
9982
#  endif
9983
#endif
9984
 
9985
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9986
   find out it does not work in some platform. */
9987
#ifndef LT_DLLAZY_OR_NOW
9988
#  ifdef RTLD_LAZY
9989
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9990
#  else
9991
#    ifdef DL_LAZY
9992
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9993
#    else
9994
#      ifdef RTLD_NOW
9995
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9996
#      else
9997
#        ifdef DL_NOW
9998
#          define LT_DLLAZY_OR_NOW      DL_NOW
9999
#        else
10000
#          define LT_DLLAZY_OR_NOW      0
10001
#        endif
10002
#      endif
10003
#    endif
10004
#  endif
10005
#endif
10006
 
10007
void fnord() { int i=42;}
10008
int main ()
10009
{
10010
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10011
  int status = $lt_dlunknown;
10012
 
10013
  if (self)
10014
    {
10015
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10016
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10017
      /* dlclose (self); */
10018
    }
10019
  else
10020
    puts (dlerror ());
10021
 
10022 202 julius
  return status;
10023 19 jeremybenn
}
10024 202 julius
_LT_EOF
10025
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10026 19 jeremybenn
  (eval $ac_link) 2>&5
10027
  ac_status=$?
10028 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10029
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10030 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
10031
    lt_status=$?
10032
    case x$lt_status in
10033
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10034
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10035
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10036
    esac
10037
  else :
10038
    # compilation failed
10039
    lt_cv_dlopen_self_static=no
10040
  fi
10041
fi
10042
rm -fr conftest*
10043
 
10044
 
10045
fi
10046 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10047
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10048 19 jeremybenn
    fi
10049
 
10050
    CPPFLAGS="$save_CPPFLAGS"
10051
    LDFLAGS="$save_LDFLAGS"
10052
    LIBS="$save_LIBS"
10053
    ;;
10054
  esac
10055
 
10056
  case $lt_cv_dlopen_self in
10057
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10058
  *) enable_dlopen_self=unknown ;;
10059
  esac
10060
 
10061
  case $lt_cv_dlopen_self_static in
10062
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10063
  *) enable_dlopen_self_static=unknown ;;
10064
  esac
10065
fi
10066
 
10067 202 julius
 
10068
 
10069
 
10070 19 jeremybenn
 
10071
 
10072 202 julius
 
10073
 
10074
 
10075 19 jeremybenn
 
10076
 
10077 202 julius
 
10078
 
10079
 
10080 19 jeremybenn
 
10081
 
10082
 
10083 202 julius
striplib=
10084
old_striplib=
10085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10086
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10087
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10088
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10089
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10090
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10091
$as_echo "yes" >&6; }
10092 19 jeremybenn
else
10093 202 julius
# FIXME - insert some real tests, host_os isn't really good enough
10094
  case $host_os in
10095
  darwin*)
10096
    if test -n "$STRIP" ; then
10097
      striplib="$STRIP -x"
10098
      old_striplib="$STRIP -S"
10099
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10100
$as_echo "yes" >&6; }
10101 19 jeremybenn
    else
10102 202 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10103
$as_echo "no" >&6; }
10104 19 jeremybenn
    fi
10105
    ;;
10106
  *)
10107 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10108
$as_echo "no" >&6; }
10109 19 jeremybenn
    ;;
10110
  esac
10111
fi
10112
 
10113 202 julius
 
10114
 
10115
 
10116 19 jeremybenn
 
10117
 
10118 202 julius
 
10119
 
10120
 
10121 19 jeremybenn
 
10122
 
10123
 
10124 202 julius
  # Report which library types will actually be built
10125
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10126
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10127
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10128
$as_echo "$can_build_shared" >&6; }
10129 19 jeremybenn
 
10130 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10131
$as_echo_n "checking whether to build shared libraries... " >&6; }
10132
  test "$can_build_shared" = "no" && enable_shared=no
10133 19 jeremybenn
 
10134 202 julius
  # On AIX, shared libraries and static libraries use the same namespace, and
10135
  # are all built from PIC.
10136 19 jeremybenn
  case $host_os in
10137 202 julius
  aix3*)
10138 19 jeremybenn
    test "$enable_shared" = yes && enable_static=no
10139 202 julius
    if test -n "$RANLIB"; then
10140
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10141
      postinstall_cmds='$RANLIB $lib'
10142 19 jeremybenn
    fi
10143
    ;;
10144
 
10145 202 julius
  aix[4-9]*)
10146
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10147
      test "$enable_shared" = yes && enable_static=no
10148 19 jeremybenn
    fi
10149
    ;;
10150
  esac
10151 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10152
$as_echo "$enable_shared" >&6; }
10153 19 jeremybenn
 
10154 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10155
$as_echo_n "checking whether to build static libraries... " >&6; }
10156
  # Make sure either enable_shared or enable_static is yes.
10157
  test "$enable_shared" = yes || enable_static=yes
10158
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10159
$as_echo "$enable_static" >&6; }
10160 19 jeremybenn
 
10161
 
10162
 
10163
 
10164
fi
10165
ac_ext=c
10166
ac_cpp='$CPP $CPPFLAGS'
10167
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10168
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10169
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10170
 
10171
CC="$lt_save_CC"
10172
 
10173
 
10174
 
10175
 
10176
 
10177
 
10178
 
10179
 
10180 202 julius
 
10181
 
10182 19 jeremybenn
 
10183
 
10184
 
10185 202 julius
        ac_config_commands="$ac_config_commands libtool"
10186 19 jeremybenn
 
10187
 
10188
 
10189
 
10190 202 julius
# Only expand once:
10191 19 jeremybenn
 
10192
 
10193 202 julius
am__api_version='1.11'
10194 19 jeremybenn
 
10195
# Find a good install program.  We prefer a C program (faster),
10196
# so one script is as good as another.  But avoid the broken or
10197
# incompatible versions:
10198
# SysV /etc/install, /usr/sbin/install
10199
# SunOS /usr/etc/install
10200
# IRIX /sbin/install
10201
# AIX /bin/install
10202
# AmigaOS /C/install, which installs bootblocks on floppy discs
10203
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10204
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10205
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10206
# OS/2's system install, which has a completely different semantic
10207
# ./install, which can be erroneously created by make from ./install.sh.
10208 202 julius
# Reject install programs that cannot install multiple files.
10209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
10210
$as_echo_n "checking for a BSD-compatible install... " >&6; }
10211 19 jeremybenn
if test -z "$INSTALL"; then
10212 202 julius
if test "${ac_cv_path_install+set}" = set; then :
10213
  $as_echo_n "(cached) " >&6
10214 19 jeremybenn
else
10215
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10216
for as_dir in $PATH
10217
do
10218
  IFS=$as_save_IFS
10219
  test -z "$as_dir" && as_dir=.
10220 202 julius
    # Account for people who put trailing slashes in PATH elements.
10221
case $as_dir/ in @%:@((
10222
  ./ | .// | /[cC]/* | \
10223 19 jeremybenn
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10224 202 julius
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
10225 19 jeremybenn
  /usr/ucb/* ) ;;
10226
  *)
10227
    # OSF1 and SCO ODT 3.0 have their own names for install.
10228
    # Don't use installbsd from OSF since it installs stuff as root
10229
    # by default.
10230
    for ac_prog in ginstall scoinst install; do
10231
      for ac_exec_ext in '' $ac_executable_extensions; do
10232
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10233
          if test $ac_prog = install &&
10234
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10235
            # AIX install.  It has an incompatible calling convention.
10236
            :
10237
          elif test $ac_prog = install &&
10238
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10239
            # program-specific install script used by HP pwplus--don't use.
10240
            :
10241
          else
10242 202 julius
            rm -rf conftest.one conftest.two conftest.dir
10243
            echo one > conftest.one
10244
            echo two > conftest.two
10245
            mkdir conftest.dir
10246
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10247
              test -s conftest.one && test -s conftest.two &&
10248
              test -s conftest.dir/conftest.one &&
10249
              test -s conftest.dir/conftest.two
10250
            then
10251
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10252
              break 3
10253
            fi
10254 19 jeremybenn
          fi
10255
        fi
10256
      done
10257
    done
10258
    ;;
10259
esac
10260 202 julius
 
10261
  done
10262 19 jeremybenn
IFS=$as_save_IFS
10263
 
10264 202 julius
rm -rf conftest.one conftest.two conftest.dir
10265 19 jeremybenn
 
10266
fi
10267
  if test "${ac_cv_path_install+set}" = set; then
10268
    INSTALL=$ac_cv_path_install
10269
  else
10270
    # As a last resort, use the slow shell script.  Don't cache a
10271
    # value for INSTALL within a source directory, because that will
10272
    # break other packages using the cache if that directory is
10273
    # removed, or if the value is a relative name.
10274
    INSTALL=$ac_install_sh
10275
  fi
10276
fi
10277 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10278
$as_echo "$INSTALL" >&6; }
10279 19 jeremybenn
 
10280
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10281
# It thinks the first close brace ends the variable substitution.
10282
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10283
 
10284
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10285
 
10286
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10287
 
10288 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10289
$as_echo_n "checking whether build environment is sane... " >&6; }
10290 19 jeremybenn
# Just in case
10291
sleep 1
10292
echo timestamp > conftest.file
10293 202 julius
# Reject unsafe characters in $srcdir or the absolute working directory
10294
# name.  Accept space and tab only in the latter.
10295
am_lf='
10296
'
10297
case `pwd` in
10298
  *[\\\"\#\$\&\'\`$am_lf]*)
10299
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
10300
esac
10301
case $srcdir in
10302
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
10303
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
10304
esac
10305
 
10306 19 jeremybenn
# Do `set' in a subshell so we don't clobber the current shell's
10307
# arguments.  Must try -L first in case configure is actually a
10308
# symlink; some systems play weird games with the mod time of symlinks
10309
# (eg FreeBSD returns the mod time of the symlink's containing
10310
# directory).
10311
if (
10312 202 julius
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10313 19 jeremybenn
   if test "$*" = "X"; then
10314
      # -L didn't work.
10315 202 julius
      set X `ls -t "$srcdir/configure" conftest.file`
10316 19 jeremybenn
   fi
10317
   rm -f conftest.file
10318
   if test "$*" != "X $srcdir/configure conftest.file" \
10319
      && test "$*" != "X conftest.file $srcdir/configure"; then
10320
 
10321
      # If neither matched, then we have a broken ls.  This can happen
10322
      # if, for instance, CONFIG_SHELL is bash and it inherits a
10323
      # broken ls alias from the environment.  This has actually
10324
      # happened.  Such a system could not be considered "sane".
10325 202 julius
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
10326
alias in your environment" "$LINENO" 5
10327 19 jeremybenn
   fi
10328
 
10329
   test "$2" = conftest.file
10330
   )
10331
then
10332
   # Ok.
10333
   :
10334
else
10335 202 julius
   as_fn_error "newly created file is older than distributed files!
10336
Check your system clock" "$LINENO" 5
10337 19 jeremybenn
fi
10338 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10339
$as_echo "yes" >&6; }
10340 19 jeremybenn
test "$program_prefix" != NONE &&
10341
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10342
# Use a double $ so make ignores it.
10343
test "$program_suffix" != NONE &&
10344
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10345 202 julius
# Double any \ or $.
10346 19 jeremybenn
# By default was `s,x,x', remove it if useless.
10347 202 julius
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10348
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10349 19 jeremybenn
 
10350
# expand $ac_aux_dir to an absolute path
10351
am_aux_dir=`cd $ac_aux_dir && pwd`
10352
 
10353 202 julius
if test x"${MISSING+set}" != xset; then
10354
  case $am_aux_dir in
10355
  *\ * | *\     *)
10356
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10357
  *)
10358
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10359
  esac
10360
fi
10361 19 jeremybenn
# Use eval to expand $SHELL
10362
if eval "$MISSING --run true"; then
10363
  am_missing_run="$MISSING --run "
10364
else
10365
  am_missing_run=
10366 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
10367
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10368 19 jeremybenn
fi
10369
 
10370 202 julius
if test x"${install_sh}" != xset; then
10371
  case $am_aux_dir in
10372
  *\ * | *\     *)
10373
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10374
  *)
10375
    install_sh="\${SHELL} $am_aux_dir/install-sh"
10376
  esac
10377
fi
10378
 
10379
# Installed binaries are usually stripped using `strip' when the user
10380
# run `make install-strip'.  However `strip' might not be the right
10381
# tool to use in cross-compilation environments, therefore Automake
10382
# will honor the `STRIP' environment variable to overrule this program.
10383
if test "$cross_compiling" != no; then
10384
  if test -n "$ac_tool_prefix"; then
10385
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10386
set dummy ${ac_tool_prefix}strip; ac_word=$2
10387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10388
$as_echo_n "checking for $ac_word... " >&6; }
10389
if test "${ac_cv_prog_STRIP+set}" = set; then :
10390
  $as_echo_n "(cached) " >&6
10391
else
10392
  if test -n "$STRIP"; then
10393
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10394
else
10395
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396
for as_dir in $PATH
10397
do
10398
  IFS=$as_save_IFS
10399
  test -z "$as_dir" && as_dir=.
10400
    for ac_exec_ext in '' $ac_executable_extensions; do
10401
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10402
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10403
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10404
    break 2
10405
  fi
10406
done
10407
  done
10408
IFS=$as_save_IFS
10409
 
10410
fi
10411
fi
10412
STRIP=$ac_cv_prog_STRIP
10413
if test -n "$STRIP"; then
10414
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10415
$as_echo "$STRIP" >&6; }
10416
else
10417
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10418
$as_echo "no" >&6; }
10419
fi
10420
 
10421
 
10422
fi
10423
if test -z "$ac_cv_prog_STRIP"; then
10424
  ac_ct_STRIP=$STRIP
10425
  # Extract the first word of "strip", so it can be a program name with args.
10426
set dummy strip; ac_word=$2
10427
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10428
$as_echo_n "checking for $ac_word... " >&6; }
10429
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10430
  $as_echo_n "(cached) " >&6
10431
else
10432
  if test -n "$ac_ct_STRIP"; then
10433
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10434
else
10435
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436
for as_dir in $PATH
10437
do
10438
  IFS=$as_save_IFS
10439
  test -z "$as_dir" && as_dir=.
10440
    for ac_exec_ext in '' $ac_executable_extensions; do
10441
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10442
    ac_cv_prog_ac_ct_STRIP="strip"
10443
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10444
    break 2
10445
  fi
10446
done
10447
  done
10448
IFS=$as_save_IFS
10449
 
10450
fi
10451
fi
10452
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10453
if test -n "$ac_ct_STRIP"; then
10454
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10455
$as_echo "$ac_ct_STRIP" >&6; }
10456
else
10457
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458
$as_echo "no" >&6; }
10459
fi
10460
 
10461
  if test "x$ac_ct_STRIP" = x; then
10462
    STRIP=":"
10463
  else
10464
    case $cross_compiling:$ac_tool_warned in
10465
yes:)
10466
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10467
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10468
ac_tool_warned=yes ;;
10469
esac
10470
    STRIP=$ac_ct_STRIP
10471
  fi
10472
else
10473
  STRIP="$ac_cv_prog_STRIP"
10474
fi
10475
 
10476
fi
10477
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10478
 
10479
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10480
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10481 19 jeremybenn
if test -z "$MKDIR_P"; then
10482 202 julius
  if test "${ac_cv_path_mkdir+set}" = set; then :
10483
  $as_echo_n "(cached) " >&6
10484 19 jeremybenn
else
10485
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10486
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10487
do
10488
  IFS=$as_save_IFS
10489
  test -z "$as_dir" && as_dir=.
10490 202 julius
    for ac_prog in mkdir gmkdir; do
10491 19 jeremybenn
         for ac_exec_ext in '' $ac_executable_extensions; do
10492
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10493
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10494
             'mkdir (GNU coreutils) '* | \
10495
             'mkdir (coreutils) '* | \
10496
             'mkdir (fileutils) '4.1*)
10497
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10498
               break 3;;
10499
           esac
10500
         done
10501
       done
10502 202 julius
  done
10503 19 jeremybenn
IFS=$as_save_IFS
10504
 
10505
fi
10506
 
10507
  if test "${ac_cv_path_mkdir+set}" = set; then
10508
    MKDIR_P="$ac_cv_path_mkdir -p"
10509
  else
10510
    # As a last resort, use the slow shell script.  Don't cache a
10511
    # value for MKDIR_P within a source directory, because that will
10512
    # break other packages using the cache if that directory is
10513
    # removed, or if the value is a relative name.
10514
    test -d ./--version && rmdir ./--version
10515
    MKDIR_P="$ac_install_sh -d"
10516
  fi
10517
fi
10518 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10519
$as_echo "$MKDIR_P" >&6; }
10520 19 jeremybenn
 
10521
mkdir_p="$MKDIR_P"
10522
case $mkdir_p in
10523
  [\\/$]* | ?:[\\/]*) ;;
10524
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10525
esac
10526
 
10527
for ac_prog in gawk mawk nawk awk
10528
do
10529
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10530
set dummy $ac_prog; ac_word=$2
10531 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10532
$as_echo_n "checking for $ac_word... " >&6; }
10533
if test "${ac_cv_prog_AWK+set}" = set; then :
10534
  $as_echo_n "(cached) " >&6
10535 19 jeremybenn
else
10536
  if test -n "$AWK"; then
10537
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10538
else
10539
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540
for as_dir in $PATH
10541
do
10542
  IFS=$as_save_IFS
10543
  test -z "$as_dir" && as_dir=.
10544 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
10545 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10546
    ac_cv_prog_AWK="$ac_prog"
10547 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10548 19 jeremybenn
    break 2
10549
  fi
10550
done
10551 202 julius
  done
10552 19 jeremybenn
IFS=$as_save_IFS
10553
 
10554
fi
10555
fi
10556
AWK=$ac_cv_prog_AWK
10557
if test -n "$AWK"; then
10558 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10559
$as_echo "$AWK" >&6; }
10560 19 jeremybenn
else
10561 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562
$as_echo "no" >&6; }
10563 19 jeremybenn
fi
10564
 
10565
 
10566
  test -n "$AWK" && break
10567
done
10568
 
10569 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10570
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10571
set x ${MAKE-make}
10572
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10573
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
10574
  $as_echo_n "(cached) " >&6
10575 19 jeremybenn
else
10576
  cat >conftest.make <<\_ACEOF
10577
SHELL = /bin/sh
10578
all:
10579
        @echo '@@@%%%=$(MAKE)=@@@%%%'
10580
_ACEOF
10581
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10582
case `${MAKE-make} -f conftest.make 2>/dev/null` in
10583
  *@@@%%%=?*=@@@%%%*)
10584
    eval ac_cv_prog_make_${ac_make}_set=yes;;
10585
  *)
10586
    eval ac_cv_prog_make_${ac_make}_set=no;;
10587
esac
10588
rm -f conftest.make
10589
fi
10590
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10591 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10592
$as_echo "yes" >&6; }
10593 19 jeremybenn
  SET_MAKE=
10594
else
10595 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596
$as_echo "no" >&6; }
10597 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
10598
fi
10599
 
10600
rm -rf .tst 2>/dev/null
10601
mkdir .tst 2>/dev/null
10602
if test -d .tst; then
10603
  am__leading_dot=.
10604
else
10605
  am__leading_dot=_
10606
fi
10607
rmdir .tst 2>/dev/null
10608
 
10609
DEPDIR="${am__leading_dot}deps"
10610
 
10611
ac_config_commands="$ac_config_commands depfiles"
10612
 
10613
 
10614
am_make=${MAKE-make}
10615
cat > confinc << 'END'
10616
am__doit:
10617 202 julius
        @echo this is the am__doit target
10618 19 jeremybenn
.PHONY: am__doit
10619
END
10620
# If we don't find an include directive, just comment out the code.
10621 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
10622
$as_echo_n "checking for style of include used by $am_make... " >&6; }
10623 19 jeremybenn
am__include="#"
10624
am__quote=
10625
_am_result=none
10626
# First try GNU make style include.
10627
echo "include confinc" > confmf
10628 202 julius
# Ignore all kinds of additional output from `make'.
10629
case `$am_make -s -f confmf 2> /dev/null` in #(
10630
*the\ am__doit\ target*)
10631
  am__include=include
10632
  am__quote=
10633
  _am_result=GNU
10634
  ;;
10635
esac
10636 19 jeremybenn
# Now try BSD make style include.
10637
if test "$am__include" = "#"; then
10638
   echo '.include "confinc"' > confmf
10639 202 julius
   case `$am_make -s -f confmf 2> /dev/null` in #(
10640
   *the\ am__doit\ target*)
10641
     am__include=.include
10642
     am__quote="\""
10643
     _am_result=BSD
10644
     ;;
10645
   esac
10646 19 jeremybenn
fi
10647
 
10648
 
10649 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
10650
$as_echo "$_am_result" >&6; }
10651 19 jeremybenn
rm -f confinc confmf
10652
 
10653 202 julius
@%:@ Check whether --enable-dependency-tracking was given.
10654
if test "${enable_dependency_tracking+set}" = set; then :
10655 19 jeremybenn
  enableval=$enable_dependency_tracking;
10656
fi
10657
 
10658
if test "x$enable_dependency_tracking" != xno; then
10659
  am_depcomp="$ac_aux_dir/depcomp"
10660
  AMDEPBACKSLASH='\'
10661
fi
10662
 if test "x$enable_dependency_tracking" != xno; then
10663
  AMDEP_TRUE=
10664
  AMDEP_FALSE='#'
10665
else
10666
  AMDEP_TRUE='#'
10667
  AMDEP_FALSE=
10668
fi
10669
 
10670
 
10671
if test "`cd $srcdir && pwd`" != "`pwd`"; then
10672
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10673
  # is not polluted with repeated "-I."
10674
  am__isrc=' -I$(srcdir)'
10675
  # test to see if srcdir already configured
10676
  if test -f $srcdir/config.status; then
10677 202 julius
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10678 19 jeremybenn
  fi
10679
fi
10680
 
10681
# test whether we have cygpath
10682
if test -z "$CYGPATH_W"; then
10683
  if (cygpath --version) >/dev/null 2>/dev/null; then
10684
    CYGPATH_W='cygpath -w'
10685
  else
10686
    CYGPATH_W=echo
10687
  fi
10688
fi
10689
 
10690
 
10691
# Define the identity of the package.
10692
 PACKAGE='or1ksim'
10693 233 julius
 VERSION='2010-08-01'
10694 19 jeremybenn
 
10695
 
10696
cat >>confdefs.h <<_ACEOF
10697
@%:@define PACKAGE "$PACKAGE"
10698
_ACEOF
10699
 
10700
 
10701
cat >>confdefs.h <<_ACEOF
10702
@%:@define VERSION "$VERSION"
10703
_ACEOF
10704
 
10705
# Some tools Automake needs.
10706
 
10707
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10708
 
10709
 
10710
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10711
 
10712
 
10713
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10714
 
10715
 
10716
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10717
 
10718
 
10719
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10720
 
10721
# We need awk for the "check" target.  The system "awk" is bad on
10722
# some platforms.
10723
# Always define AMTAR for backward compatibility.
10724
 
10725
AMTAR=${AMTAR-"${am_missing_run}tar"}
10726
 
10727
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
10728
 
10729
 
10730
 
10731
 
10732
depcc="$CC"   am_compiler_list=
10733
 
10734 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10735
$as_echo_n "checking dependency style of $depcc... " >&6; }
10736
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
10737
  $as_echo_n "(cached) " >&6
10738 19 jeremybenn
else
10739
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10740
  # We make a subdir and do the tests there.  Otherwise we can end up
10741
  # making bogus files that we don't know about and never remove.  For
10742
  # instance it was reported that on HP-UX the gcc test will end up
10743
  # making a dummy file named `D' -- because `-MD' means `put the output
10744
  # in D'.
10745
  mkdir conftest.dir
10746
  # Copy depcomp to subdir because otherwise we won't find it if we're
10747
  # using a relative directory.
10748
  cp "$am_depcomp" conftest.dir
10749
  cd conftest.dir
10750
  # We will build objects and dependencies in a subdirectory because
10751
  # it helps to detect inapplicable dependency modes.  For instance
10752
  # both Tru64's cc and ICC support -MD to output dependencies as a
10753
  # side effect of compilation, but ICC will put the dependencies in
10754
  # the current directory while Tru64 will put them in the object
10755
  # directory.
10756
  mkdir sub
10757
 
10758
  am_cv_CC_dependencies_compiler_type=none
10759
  if test "$am_compiler_list" = ""; then
10760
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10761
  fi
10762 202 julius
  am__universal=false
10763
  case " $depcc " in #(
10764
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10765
     esac
10766
 
10767 19 jeremybenn
  for depmode in $am_compiler_list; do
10768
    # Setup a source with many dependencies, because some compilers
10769
    # like to wrap large dependency lists on column 80 (with \), and
10770
    # we should not choose a depcomp mode which is confused by this.
10771
    #
10772
    # We need to recreate these files for each test, as the compiler may
10773
    # overwrite some of them when testing with obscure command lines.
10774
    # This happens at least with the AIX C compiler.
10775
    : > sub/conftest.c
10776
    for i in 1 2 3 4 5 6; do
10777
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10778
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10779
      # Solaris 8's {/usr,}/bin/sh.
10780
      touch sub/conftst$i.h
10781
    done
10782
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10783
 
10784 202 julius
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10785
    # mode.  It turns out that the SunPro C++ compiler does not properly
10786
    # handle `-M -o', and we need to detect this.  Also, some Intel
10787
    # versions had trouble with output in subdirs
10788
    am__obj=sub/conftest.${OBJEXT-o}
10789
    am__minus_obj="-o $am__obj"
10790 19 jeremybenn
    case $depmode in
10791 202 julius
    gcc)
10792
      # This depmode causes a compiler race in universal mode.
10793
      test "$am__universal" = false || continue
10794
      ;;
10795 19 jeremybenn
    nosideeffect)
10796
      # after this tag, mechanisms are not by side-effect, so they'll
10797
      # only be used when explicitly requested
10798
      if test "x$enable_dependency_tracking" = xyes; then
10799
        continue
10800
      else
10801
        break
10802
      fi
10803
      ;;
10804 202 julius
    msvisualcpp | msvcmsys)
10805
      # This compiler won't grok `-c -o', but also, the minuso test has
10806
      # not run yet.  These depmodes are late enough in the game, and
10807
      # so weak that their functioning should not be impacted.
10808
      am__obj=conftest.${OBJEXT-o}
10809
      am__minus_obj=
10810
      ;;
10811 19 jeremybenn
    none) break ;;
10812
    esac
10813
    if depmode=$depmode \
10814 202 julius
       source=sub/conftest.c object=$am__obj \
10815 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10816 202 julius
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10817 19 jeremybenn
         >/dev/null 2>conftest.err &&
10818
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10819
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10820 202 julius
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10821 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10822
      # icc doesn't choke on unknown options, it will just issue warnings
10823
      # or remarks (even with -Werror).  So we grep stderr for any message
10824
      # that says an option was ignored or not supported.
10825
      # When given -MP, icc 7.0 and 7.1 complain thusly:
10826
      #   icc: Command line warning: ignoring option '-M'; no argument required
10827
      # The diagnosis changed in icc 8.0:
10828
      #   icc: Command line remark: option '-MP' not supported
10829
      if (grep 'ignoring option' conftest.err ||
10830
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10831
        am_cv_CC_dependencies_compiler_type=$depmode
10832
        break
10833
      fi
10834
    fi
10835
  done
10836
 
10837
  cd ..
10838
  rm -rf conftest.dir
10839
else
10840
  am_cv_CC_dependencies_compiler_type=none
10841
fi
10842
 
10843
fi
10844 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10845
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10846 19 jeremybenn
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10847
 
10848
 if
10849
  test "x$enable_dependency_tracking" != xno \
10850
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10851
  am__fastdepCC_TRUE=
10852
  am__fastdepCC_FALSE='#'
10853
else
10854
  am__fastdepCC_TRUE='#'
10855
  am__fastdepCC_FALSE=
10856
fi
10857
 
10858
 
10859
 
10860 202 julius
 
10861
ac_config_headers="$ac_config_headers config.h"
10862
 
10863
 
10864
 
10865
 
10866
# make sure we are using a recent autoconf version
10867
 
10868
 
10869
# yuck.
10870
case "$target_cpu" in
10871
or32*)  CPU_ARCH=or32;
10872
        ARCH_ISA=OR32;
10873
 
10874
$as_echo "@%:@define OR32_TYPES 1" >>confdefs.h
10875
;;
10876
dlx*)   CPU_ARCH=dlx;
10877
        ARCH_ISA=DLX;;
10878
*)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&5
10879
$as_echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&2;};
10880
        CPU_ARCH=or32;
10881
        ARCH_ISA=OR32;
10882
 
10883
$as_echo "@%:@define OR32_TYPES 1" >>confdefs.h
10884
;;
10885
esac
10886
 
10887
# determine endianism from target CPU name. If it has "little" in the name,
10888
# then its litte endian, otherwise its big endian (default for OR1K)
10889
case "$target_cpu" in
10890
*little*)
10891
$as_echo "@%:@define OR32_LITTLE_ENDIAN 1" >>confdefs.h
10892
;;
10893
       *)
10894
$as_echo "@%:@define OR32_BIG_ENDIAN 1" >>confdefs.h
10895
;;
10896
esac
10897
 
10898
 
10899
 
10900
# Set the CFLAGS we want
10901
CFLAGS="$CFLAGS -g -Wall -Werror -O2 -D$ARCH_ISA"
10902
 
10903
# By default we simply use the C compiler to build assembly code.
10904
 
10905
test "${CCAS+set}" = set || CCAS=$CC
10906
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
10907
 
10908
 
10909
 
10910
depcc="$CCAS"   am_compiler_list=
10911
 
10912
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10913
$as_echo_n "checking dependency style of $depcc... " >&6; }
10914
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
10915
  $as_echo_n "(cached) " >&6
10916 19 jeremybenn
else
10917
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10918
  # We make a subdir and do the tests there.  Otherwise we can end up
10919
  # making bogus files that we don't know about and never remove.  For
10920
  # instance it was reported that on HP-UX the gcc test will end up
10921
  # making a dummy file named `D' -- because `-MD' means `put the output
10922
  # in D'.
10923
  mkdir conftest.dir
10924
  # Copy depcomp to subdir because otherwise we won't find it if we're
10925
  # using a relative directory.
10926
  cp "$am_depcomp" conftest.dir
10927
  cd conftest.dir
10928
  # We will build objects and dependencies in a subdirectory because
10929
  # it helps to detect inapplicable dependency modes.  For instance
10930
  # both Tru64's cc and ICC support -MD to output dependencies as a
10931
  # side effect of compilation, but ICC will put the dependencies in
10932
  # the current directory while Tru64 will put them in the object
10933
  # directory.
10934
  mkdir sub
10935
 
10936 202 julius
  am_cv_CCAS_dependencies_compiler_type=none
10937 19 jeremybenn
  if test "$am_compiler_list" = ""; then
10938
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10939
  fi
10940 202 julius
  am__universal=false
10941
 
10942
 
10943 19 jeremybenn
  for depmode in $am_compiler_list; do
10944
    # Setup a source with many dependencies, because some compilers
10945
    # like to wrap large dependency lists on column 80 (with \), and
10946
    # we should not choose a depcomp mode which is confused by this.
10947
    #
10948
    # We need to recreate these files for each test, as the compiler may
10949
    # overwrite some of them when testing with obscure command lines.
10950
    # This happens at least with the AIX C compiler.
10951
    : > sub/conftest.c
10952
    for i in 1 2 3 4 5 6; do
10953
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10954
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10955
      # Solaris 8's {/usr,}/bin/sh.
10956
      touch sub/conftst$i.h
10957
    done
10958
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10959
 
10960 202 julius
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10961
    # mode.  It turns out that the SunPro C++ compiler does not properly
10962
    # handle `-M -o', and we need to detect this.  Also, some Intel
10963
    # versions had trouble with output in subdirs
10964
    am__obj=sub/conftest.${OBJEXT-o}
10965
    am__minus_obj="-o $am__obj"
10966 19 jeremybenn
    case $depmode in
10967 202 julius
    gcc)
10968
      # This depmode causes a compiler race in universal mode.
10969
      test "$am__universal" = false || continue
10970
      ;;
10971 19 jeremybenn
    nosideeffect)
10972
      # after this tag, mechanisms are not by side-effect, so they'll
10973
      # only be used when explicitly requested
10974
      if test "x$enable_dependency_tracking" = xyes; then
10975
        continue
10976
      else
10977
        break
10978
      fi
10979
      ;;
10980 202 julius
    msvisualcpp | msvcmsys)
10981
      # This compiler won't grok `-c -o', but also, the minuso test has
10982
      # not run yet.  These depmodes are late enough in the game, and
10983
      # so weak that their functioning should not be impacted.
10984
      am__obj=conftest.${OBJEXT-o}
10985
      am__minus_obj=
10986
      ;;
10987 19 jeremybenn
    none) break ;;
10988
    esac
10989
    if depmode=$depmode \
10990 202 julius
       source=sub/conftest.c object=$am__obj \
10991 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10992 202 julius
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10993 19 jeremybenn
         >/dev/null 2>conftest.err &&
10994
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10995
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10996 202 julius
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10997 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10998
      # icc doesn't choke on unknown options, it will just issue warnings
10999
      # or remarks (even with -Werror).  So we grep stderr for any message
11000
      # that says an option was ignored or not supported.
11001
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11002
      #   icc: Command line warning: ignoring option '-M'; no argument required
11003
      # The diagnosis changed in icc 8.0:
11004
      #   icc: Command line remark: option '-MP' not supported
11005
      if (grep 'ignoring option' conftest.err ||
11006
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11007 202 julius
        am_cv_CCAS_dependencies_compiler_type=$depmode
11008 19 jeremybenn
        break
11009
      fi
11010
    fi
11011
  done
11012
 
11013
  cd ..
11014
  rm -rf conftest.dir
11015
else
11016 202 julius
  am_cv_CCAS_dependencies_compiler_type=none
11017 19 jeremybenn
fi
11018
 
11019
fi
11020 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11021
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11022
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11023 19 jeremybenn
 
11024
 if
11025
  test "x$enable_dependency_tracking" != xno \
11026 202 julius
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11027
  am__fastdepCCAS_TRUE=
11028
  am__fastdepCCAS_FALSE='#'
11029 19 jeremybenn
else
11030 202 julius
  am__fastdepCCAS_TRUE='#'
11031
  am__fastdepCCAS_FALSE=
11032 19 jeremybenn
fi
11033
 
11034
 
11035
 
11036
ac_ext=c
11037
ac_cpp='$CPP $CPPFLAGS'
11038
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11039
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11040
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11041
if test -n "$ac_tool_prefix"; then
11042
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11043
set dummy ${ac_tool_prefix}gcc; ac_word=$2
11044 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11045
$as_echo_n "checking for $ac_word... " >&6; }
11046
if test "${ac_cv_prog_CC+set}" = set; then :
11047
  $as_echo_n "(cached) " >&6
11048 19 jeremybenn
else
11049
  if test -n "$CC"; then
11050
  ac_cv_prog_CC="$CC" # Let the user override the test.
11051
else
11052
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11053
for as_dir in $PATH
11054
do
11055
  IFS=$as_save_IFS
11056
  test -z "$as_dir" && as_dir=.
11057 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
11058 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11059
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11060 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11061 19 jeremybenn
    break 2
11062
  fi
11063
done
11064 202 julius
  done
11065 19 jeremybenn
IFS=$as_save_IFS
11066
 
11067
fi
11068
fi
11069
CC=$ac_cv_prog_CC
11070
if test -n "$CC"; then
11071 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11072
$as_echo "$CC" >&6; }
11073 19 jeremybenn
else
11074 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11075
$as_echo "no" >&6; }
11076 19 jeremybenn
fi
11077
 
11078
 
11079
fi
11080
if test -z "$ac_cv_prog_CC"; then
11081
  ac_ct_CC=$CC
11082
  # Extract the first word of "gcc", so it can be a program name with args.
11083
set dummy gcc; ac_word=$2
11084 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11085
$as_echo_n "checking for $ac_word... " >&6; }
11086
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11087
  $as_echo_n "(cached) " >&6
11088 19 jeremybenn
else
11089
  if test -n "$ac_ct_CC"; then
11090
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11091
else
11092
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11093
for as_dir in $PATH
11094
do
11095
  IFS=$as_save_IFS
11096
  test -z "$as_dir" && as_dir=.
11097 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
11098 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11099
    ac_cv_prog_ac_ct_CC="gcc"
11100 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11101 19 jeremybenn
    break 2
11102
  fi
11103
done
11104 202 julius
  done
11105 19 jeremybenn
IFS=$as_save_IFS
11106
 
11107
fi
11108
fi
11109
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11110
if test -n "$ac_ct_CC"; then
11111 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11112
$as_echo "$ac_ct_CC" >&6; }
11113 19 jeremybenn
else
11114 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11115
$as_echo "no" >&6; }
11116 19 jeremybenn
fi
11117
 
11118
  if test "x$ac_ct_CC" = x; then
11119
    CC=""
11120
  else
11121
    case $cross_compiling:$ac_tool_warned in
11122
yes:)
11123 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11124
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11125 19 jeremybenn
ac_tool_warned=yes ;;
11126
esac
11127
    CC=$ac_ct_CC
11128
  fi
11129
else
11130
  CC="$ac_cv_prog_CC"
11131
fi
11132
 
11133
if test -z "$CC"; then
11134
          if test -n "$ac_tool_prefix"; then
11135
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11136
set dummy ${ac_tool_prefix}cc; ac_word=$2
11137 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11138
$as_echo_n "checking for $ac_word... " >&6; }
11139
if test "${ac_cv_prog_CC+set}" = set; then :
11140
  $as_echo_n "(cached) " >&6
11141 19 jeremybenn
else
11142
  if test -n "$CC"; then
11143
  ac_cv_prog_CC="$CC" # Let the user override the test.
11144
else
11145
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11146
for as_dir in $PATH
11147
do
11148
  IFS=$as_save_IFS
11149
  test -z "$as_dir" && as_dir=.
11150 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
11151 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11152
    ac_cv_prog_CC="${ac_tool_prefix}cc"
11153 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11154 19 jeremybenn
    break 2
11155
  fi
11156
done
11157 202 julius
  done
11158 19 jeremybenn
IFS=$as_save_IFS
11159
 
11160
fi
11161
fi
11162
CC=$ac_cv_prog_CC
11163
if test -n "$CC"; then
11164 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11165
$as_echo "$CC" >&6; }
11166 19 jeremybenn
else
11167 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168
$as_echo "no" >&6; }
11169 19 jeremybenn
fi
11170
 
11171
 
11172
  fi
11173
fi
11174
if test -z "$CC"; then
11175
  # Extract the first word of "cc", so it can be a program name with args.
11176
set dummy cc; ac_word=$2
11177 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11178
$as_echo_n "checking for $ac_word... " >&6; }
11179
if test "${ac_cv_prog_CC+set}" = set; then :
11180
  $as_echo_n "(cached) " >&6
11181 19 jeremybenn
else
11182
  if test -n "$CC"; then
11183
  ac_cv_prog_CC="$CC" # Let the user override the test.
11184
else
11185
  ac_prog_rejected=no
11186
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187
for as_dir in $PATH
11188
do
11189
  IFS=$as_save_IFS
11190
  test -z "$as_dir" && as_dir=.
11191 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
11192 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11193
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11194
       ac_prog_rejected=yes
11195
       continue
11196
     fi
11197
    ac_cv_prog_CC="cc"
11198 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11199 19 jeremybenn
    break 2
11200
  fi
11201
done
11202 202 julius
  done
11203 19 jeremybenn
IFS=$as_save_IFS
11204
 
11205
if test $ac_prog_rejected = yes; then
11206
  # We found a bogon in the path, so make sure we never use it.
11207
  set dummy $ac_cv_prog_CC
11208
  shift
11209
  if test $@%:@ != 0; then
11210
    # We chose a different compiler from the bogus one.
11211
    # However, it has the same basename, so the bogon will be chosen
11212
    # first if we set CC to just the basename; use the full file name.
11213
    shift
11214
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11215
  fi
11216
fi
11217
fi
11218
fi
11219
CC=$ac_cv_prog_CC
11220
if test -n "$CC"; then
11221 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11222
$as_echo "$CC" >&6; }
11223 19 jeremybenn
else
11224 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225
$as_echo "no" >&6; }
11226 19 jeremybenn
fi
11227
 
11228
 
11229
fi
11230
if test -z "$CC"; then
11231
  if test -n "$ac_tool_prefix"; then
11232
  for ac_prog in cl.exe
11233
  do
11234
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11235
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11236 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11237
$as_echo_n "checking for $ac_word... " >&6; }
11238
if test "${ac_cv_prog_CC+set}" = set; then :
11239
  $as_echo_n "(cached) " >&6
11240 19 jeremybenn
else
11241
  if test -n "$CC"; then
11242
  ac_cv_prog_CC="$CC" # Let the user override the test.
11243
else
11244
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11245
for as_dir in $PATH
11246
do
11247
  IFS=$as_save_IFS
11248
  test -z "$as_dir" && as_dir=.
11249 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
11250 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11251
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11252 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11253 19 jeremybenn
    break 2
11254
  fi
11255
done
11256 202 julius
  done
11257 19 jeremybenn
IFS=$as_save_IFS
11258
 
11259
fi
11260
fi
11261
CC=$ac_cv_prog_CC
11262
if test -n "$CC"; then
11263 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11264
$as_echo "$CC" >&6; }
11265 19 jeremybenn
else
11266 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11267
$as_echo "no" >&6; }
11268 19 jeremybenn
fi
11269
 
11270
 
11271
    test -n "$CC" && break
11272
  done
11273
fi
11274
if test -z "$CC"; then
11275
  ac_ct_CC=$CC
11276
  for ac_prog in cl.exe
11277
do
11278
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11279
set dummy $ac_prog; ac_word=$2
11280 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11281
$as_echo_n "checking for $ac_word... " >&6; }
11282
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11283
  $as_echo_n "(cached) " >&6
11284 19 jeremybenn
else
11285
  if test -n "$ac_ct_CC"; then
11286
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11287
else
11288
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11289
for as_dir in $PATH
11290
do
11291
  IFS=$as_save_IFS
11292
  test -z "$as_dir" && as_dir=.
11293 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
11294 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11295
    ac_cv_prog_ac_ct_CC="$ac_prog"
11296 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11297 19 jeremybenn
    break 2
11298
  fi
11299
done
11300 202 julius
  done
11301 19 jeremybenn
IFS=$as_save_IFS
11302
 
11303
fi
11304
fi
11305
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11306
if test -n "$ac_ct_CC"; then
11307 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11308
$as_echo "$ac_ct_CC" >&6; }
11309 19 jeremybenn
else
11310 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311
$as_echo "no" >&6; }
11312 19 jeremybenn
fi
11313
 
11314
 
11315
  test -n "$ac_ct_CC" && break
11316
done
11317
 
11318
  if test "x$ac_ct_CC" = x; then
11319
    CC=""
11320
  else
11321
    case $cross_compiling:$ac_tool_warned in
11322
yes:)
11323 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11324
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11325 19 jeremybenn
ac_tool_warned=yes ;;
11326
esac
11327
    CC=$ac_ct_CC
11328
  fi
11329
fi
11330
 
11331
fi
11332
 
11333
 
11334 202 julius
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11335
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11336
as_fn_error "no acceptable C compiler found in \$PATH
11337
See \`config.log' for more details." "$LINENO" 5; }
11338 19 jeremybenn
 
11339
# Provide some information about the compiler.
11340 202 julius
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11341
set X $ac_compile
11342
ac_compiler=$2
11343
for ac_option in --version -v -V -qversion; do
11344
  { { ac_try="$ac_compiler $ac_option >&5"
11345 19 jeremybenn
case "(($ac_try" in
11346
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347
  *) ac_try_echo=$ac_try;;
11348
esac
11349 202 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11350
$as_echo "$ac_try_echo"; } >&5
11351
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11352 19 jeremybenn
  ac_status=$?
11353 202 julius
  if test -s conftest.err; then
11354
    sed '10a\
11355
... rest of stderr output deleted ...
11356
         10q' conftest.err >conftest.er1
11357
    cat conftest.er1 >&5
11358
    rm -f conftest.er1 conftest.err
11359
  fi
11360
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11361
  test $ac_status = 0; }
11362
done
11363 19 jeremybenn
 
11364 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11365
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11366
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11367
  $as_echo_n "(cached) " >&6
11368 19 jeremybenn
else
11369 202 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370 19 jeremybenn
/* end confdefs.h.  */
11371
 
11372
int
11373
main ()
11374
{
11375
#ifndef __GNUC__
11376
       choke me
11377
#endif
11378
 
11379
  ;
11380
  return 0;
11381
}
11382
_ACEOF
11383 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
11384 19 jeremybenn
  ac_compiler_gnu=yes
11385
else
11386 202 julius
  ac_compiler_gnu=no
11387 19 jeremybenn
fi
11388
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11389
ac_cv_c_compiler_gnu=$ac_compiler_gnu
11390
 
11391
fi
11392 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11393
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11394
if test $ac_compiler_gnu = yes; then
11395
  GCC=yes
11396
else
11397
  GCC=
11398
fi
11399 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
11400
ac_save_CFLAGS=$CFLAGS
11401 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11402
$as_echo_n "checking whether $CC accepts -g... " >&6; }
11403
if test "${ac_cv_prog_cc_g+set}" = set; then :
11404
  $as_echo_n "(cached) " >&6
11405 19 jeremybenn
else
11406
  ac_save_c_werror_flag=$ac_c_werror_flag
11407
   ac_c_werror_flag=yes
11408
   ac_cv_prog_cc_g=no
11409
   CFLAGS="-g"
11410 202 julius
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411 19 jeremybenn
/* end confdefs.h.  */
11412
 
11413
int
11414
main ()
11415
{
11416
 
11417
  ;
11418
  return 0;
11419
}
11420
_ACEOF
11421 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
11422 19 jeremybenn
  ac_cv_prog_cc_g=yes
11423
else
11424 202 julius
  CFLAGS=""
11425
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 19 jeremybenn
/* end confdefs.h.  */
11427
 
11428
int
11429
main ()
11430
{
11431
 
11432
  ;
11433
  return 0;
11434
}
11435
_ACEOF
11436 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
11437
 
11438 19 jeremybenn
else
11439 202 julius
  ac_c_werror_flag=$ac_save_c_werror_flag
11440 19 jeremybenn
         CFLAGS="-g"
11441 202 julius
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11442 19 jeremybenn
/* end confdefs.h.  */
11443
 
11444
int
11445
main ()
11446
{
11447
 
11448
  ;
11449
  return 0;
11450
}
11451
_ACEOF
11452 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
11453 19 jeremybenn
  ac_cv_prog_cc_g=yes
11454
fi
11455
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11456
fi
11457
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11458
fi
11459
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11460
   ac_c_werror_flag=$ac_save_c_werror_flag
11461
fi
11462 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11463
$as_echo "$ac_cv_prog_cc_g" >&6; }
11464 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
11465
  CFLAGS=$ac_save_CFLAGS
11466
elif test $ac_cv_prog_cc_g = yes; then
11467
  if test "$GCC" = yes; then
11468
    CFLAGS="-g -O2"
11469
  else
11470
    CFLAGS="-g"
11471
  fi
11472
else
11473
  if test "$GCC" = yes; then
11474
    CFLAGS="-O2"
11475
  else
11476
    CFLAGS=
11477
  fi
11478
fi
11479 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11480
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11481
if test "${ac_cv_prog_cc_c89+set}" = set; then :
11482
  $as_echo_n "(cached) " >&6
11483 19 jeremybenn
else
11484
  ac_cv_prog_cc_c89=no
11485
ac_save_CC=$CC
11486 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11487 19 jeremybenn
/* end confdefs.h.  */
11488
#include 
11489
#include 
11490
#include 
11491
#include 
11492
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11493
struct buf { int x; };
11494
FILE * (*rcsopen) (struct buf *, struct stat *, int);
11495
static char *e (p, i)
11496
     char **p;
11497
     int i;
11498
{
11499
  return p[i];
11500
}
11501
static char *f (char * (*g) (char **, int), char **p, ...)
11502
{
11503
  char *s;
11504
  va_list v;
11505
  va_start (v,p);
11506
  s = g (p, va_arg (v,int));
11507
  va_end (v);
11508
  return s;
11509
}
11510
 
11511
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11512
   function prototypes and stuff, but not '\xHH' hex character constants.
11513
   These don't provoke an error unfortunately, instead are silently treated
11514
   as 'x'.  The following induces an error, until -std is added to get
11515
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11516
   array size at least.  It's necessary to write '\x00'==0 to get something
11517
   that's true only with -std.  */
11518
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11519
 
11520
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11521
   inside strings and character constants.  */
11522
#define FOO(x) 'x'
11523
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11524
 
11525
int test (int i, double x);
11526
struct s1 {int (*f) (int a);};
11527
struct s2 {int (*f) (double a);};
11528
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11529
int argc;
11530
char **argv;
11531
int
11532
main ()
11533
{
11534
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11535
  ;
11536
  return 0;
11537
}
11538
_ACEOF
11539
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11540
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11541
do
11542
  CC="$ac_save_CC $ac_arg"
11543 202 julius
  if ac_fn_c_try_compile "$LINENO"; then :
11544 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
11545
fi
11546 202 julius
rm -f core conftest.err conftest.$ac_objext
11547 19 jeremybenn
  test "x$ac_cv_prog_cc_c89" != "xno" && break
11548
done
11549
rm -f conftest.$ac_ext
11550
CC=$ac_save_CC
11551
 
11552
fi
11553
# AC_CACHE_VAL
11554
case "x$ac_cv_prog_cc_c89" in
11555
  x)
11556 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11557
$as_echo "none needed" >&6; } ;;
11558 19 jeremybenn
  xno)
11559 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11560
$as_echo "unsupported" >&6; } ;;
11561 19 jeremybenn
  *)
11562
    CC="$CC $ac_cv_prog_cc_c89"
11563 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11564
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11565 19 jeremybenn
esac
11566 202 julius
if test "x$ac_cv_prog_cc_c89" != xno; then :
11567
 
11568
fi
11569 19 jeremybenn
 
11570
ac_ext=c
11571
ac_cpp='$CPP $CPPFLAGS'
11572
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11573
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11574
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11575
 
11576
if test "x$CC" != xcc; then
11577 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11578
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11579 19 jeremybenn
else
11580 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11581
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11582 19 jeremybenn
fi
11583 202 julius
set dummy $CC; ac_cc=`$as_echo "$2" |
11584 19 jeremybenn
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11585 202 julius
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11586
  $as_echo_n "(cached) " >&6
11587 19 jeremybenn
else
11588 202 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589 19 jeremybenn
/* end confdefs.h.  */
11590
 
11591
int
11592
main ()
11593
{
11594
 
11595
  ;
11596
  return 0;
11597
}
11598
_ACEOF
11599
# Make sure it works both with $CC and with simple cc.
11600
# We do the test twice because some compilers refuse to overwrite an
11601
# existing .o file with -o, though they will create one.
11602
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11603
rm -f conftest2.*
11604 202 julius
if { { case "(($ac_try" in
11605 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11606
  *) ac_try_echo=$ac_try;;
11607
esac
11608 202 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11609
$as_echo "$ac_try_echo"; } >&5
11610 19 jeremybenn
  (eval "$ac_try") 2>&5
11611
  ac_status=$?
11612 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11613
  test $ac_status = 0; } &&
11614
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
11615 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11616
  *) ac_try_echo=$ac_try;;
11617
esac
11618 202 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11619
$as_echo "$ac_try_echo"; } >&5
11620 19 jeremybenn
  (eval "$ac_try") 2>&5
11621
  ac_status=$?
11622 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11623
  test $ac_status = 0; };
11624 19 jeremybenn
then
11625
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11626
  if test "x$CC" != xcc; then
11627
    # Test first that cc exists at all.
11628
    if { ac_try='cc -c conftest.$ac_ext >&5'
11629 202 julius
  { { case "(($ac_try" in
11630 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11631
  *) ac_try_echo=$ac_try;;
11632
esac
11633 202 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11634
$as_echo "$ac_try_echo"; } >&5
11635 19 jeremybenn
  (eval "$ac_try") 2>&5
11636
  ac_status=$?
11637 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11638
  test $ac_status = 0; }; }; then
11639 19 jeremybenn
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11640
      rm -f conftest2.*
11641 202 julius
      if { { case "(($ac_try" in
11642 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11643
  *) ac_try_echo=$ac_try;;
11644
esac
11645 202 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11646
$as_echo "$ac_try_echo"; } >&5
11647 19 jeremybenn
  (eval "$ac_try") 2>&5
11648
  ac_status=$?
11649 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11650
  test $ac_status = 0; } &&
11651
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
11652 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653
  *) ac_try_echo=$ac_try;;
11654
esac
11655 202 julius
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11656
$as_echo "$ac_try_echo"; } >&5
11657 19 jeremybenn
  (eval "$ac_try") 2>&5
11658
  ac_status=$?
11659 202 julius
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11660
  test $ac_status = 0; };
11661 19 jeremybenn
      then
11662
        # cc works too.
11663
        :
11664
      else
11665
        # cc exists but doesn't like -o.
11666
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
11667
      fi
11668
    fi
11669
  fi
11670
else
11671
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
11672
fi
11673
rm -f core conftest*
11674
 
11675
fi
11676
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11677 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11678
$as_echo "yes" >&6; }
11679 19 jeremybenn
else
11680 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11681
$as_echo "no" >&6; }
11682 19 jeremybenn
 
11683 202 julius
$as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11684 19 jeremybenn
 
11685
fi
11686
 
11687
# FIXME: we rely on the cache variable name because
11688
# there is no other way.
11689
set dummy $CC
11690 202 julius
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11691
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11692
if test "$am_t" != yes; then
11693 19 jeremybenn
   # Losing compiler, so override with the script.
11694
   # FIXME: It is wrong to rewrite CC.
11695
   # But if we don't then we get into trouble of one sort or another.
11696
   # A longer-term fix would be to have automake use am__CC in this case,
11697
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11698
   CC="$am_aux_dir/compile $CC"
11699
fi
11700
 
11701
 
11702
 
11703 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11704
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11705
set x ${MAKE-make}
11706
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11707
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11708
  $as_echo_n "(cached) " >&6
11709 19 jeremybenn
else
11710
  cat >conftest.make <<\_ACEOF
11711
SHELL = /bin/sh
11712
all:
11713
        @echo '@@@%%%=$(MAKE)=@@@%%%'
11714
_ACEOF
11715
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11716
case `${MAKE-make} -f conftest.make 2>/dev/null` in
11717
  *@@@%%%=?*=@@@%%%*)
11718
    eval ac_cv_prog_make_${ac_make}_set=yes;;
11719
  *)
11720
    eval ac_cv_prog_make_${ac_make}_set=no;;
11721
esac
11722
rm -f conftest.make
11723
fi
11724
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11725 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11726
$as_echo "yes" >&6; }
11727 19 jeremybenn
  SET_MAKE=
11728
else
11729 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11730
$as_echo "no" >&6; }
11731 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
11732
fi
11733
 
11734
 
11735
 
11736
# Extract the first word of "ar", so it can be a program name with args.
11737
set dummy ar; ac_word=$2
11738 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739
$as_echo_n "checking for $ac_word... " >&6; }
11740
if test "${ac_cv_prog_AR+set}" = set; then :
11741
  $as_echo_n "(cached) " >&6
11742 19 jeremybenn
else
11743
  if test -n "$AR"; then
11744
  ac_cv_prog_AR="$AR" # Let the user override the test.
11745
else
11746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747
for as_dir in $PATH
11748
do
11749
  IFS=$as_save_IFS
11750
  test -z "$as_dir" && as_dir=.
11751 202 julius
    for ac_exec_ext in '' $ac_executable_extensions; do
11752 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11753
    ac_cv_prog_AR="ar"
11754 202 julius
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11755 19 jeremybenn
    break 2
11756
  fi
11757
done
11758 202 julius
  done
11759 19 jeremybenn
IFS=$as_save_IFS
11760
 
11761
fi
11762
fi
11763
AR=$ac_cv_prog_AR
11764
if test -n "$AR"; then
11765 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11766
$as_echo "$AR" >&6; }
11767 19 jeremybenn
else
11768 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769
$as_echo "no" >&6; }
11770 19 jeremybenn
fi
11771
 
11772
 
11773 60 jeremybenn
 
11774 19 jeremybenn
# Set default for ARFLAGS, since autoconf does not have a macro for it.
11775
# This allows people to set it when running configure or make
11776
test -n "$ARFLAGS" || ARFLAGS="cr"
11777
 
11778 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11779
$as_echo_n "checking return type of signal handlers... " >&6; }
11780
if test "${ac_cv_type_signal+set}" = set; then :
11781
  $as_echo_n "(cached) " >&6
11782 19 jeremybenn
else
11783 202 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 19 jeremybenn
/* end confdefs.h.  */
11785
#include 
11786
#include 
11787
 
11788
int
11789
main ()
11790
{
11791
return *(signal (0, 0)) (0) == 1;
11792
  ;
11793
  return 0;
11794
}
11795
_ACEOF
11796 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
11797 19 jeremybenn
  ac_cv_type_signal=int
11798
else
11799 202 julius
  ac_cv_type_signal=void
11800 19 jeremybenn
fi
11801
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11802
fi
11803 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11804
$as_echo "$ac_cv_type_signal" >&6; }
11805 19 jeremybenn
 
11806
cat >>confdefs.h <<_ACEOF
11807
@%:@define RETSIGTYPE $ac_cv_type_signal
11808
_ACEOF
11809
 
11810
 
11811 202 julius
for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h      \
11812
                 sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
11813
                 termcap.h termios.h termio.h sys/file.h locale.h getopt.h    \
11814
                 net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h  \
11815
                 limits.h
11816
do :
11817
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11818
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11819
eval as_val=\$$as_ac_Header
11820
   if test "x$as_val" = x""yes; then :
11821 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11822 202 julius
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11823 19 jeremybenn
_ACEOF
11824 202 julius
 
11825 19 jeremybenn
fi
11826
 
11827
done
11828
 
11829
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
11830 202 julius
do :
11831
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11832
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11833
eval as_val=\$$as_ac_var
11834
   if test "x$as_val" = x""yes; then :
11835 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11836 202 julius
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11837 19 jeremybenn
_ACEOF
11838
 
11839
fi
11840
done
11841
 
11842 202 julius
for ac_func in grantpt unlockpt ptsname on_exit
11843
do :
11844
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11845
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11846
eval as_val=\$$as_ac_var
11847
   if test "x$as_val" = x""yes; then :
11848 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11849 202 julius
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11850 19 jeremybenn
_ACEOF
11851
 
11852
fi
11853
done
11854
 
11855 60 jeremybenn
for ac_func in basename
11856 202 julius
do :
11857
  ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
11858
if test "x$ac_cv_func_basename" = x""yes; then :
11859 60 jeremybenn
  cat >>confdefs.h <<_ACEOF
11860 202 julius
@%:@define HAVE_BASENAME 1
11861 60 jeremybenn
_ACEOF
11862
 
11863
fi
11864
done
11865
 
11866 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
11867
$as_echo_n "checking for working strcoll... " >&6; }
11868
if test "${ac_cv_func_strcoll_works+set}" = set; then :
11869
  $as_echo_n "(cached) " >&6
11870 19 jeremybenn
else
11871 202 julius
  if test "$cross_compiling" = yes; then :
11872 19 jeremybenn
  ac_cv_func_strcoll_works=no
11873
else
11874 202 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875 19 jeremybenn
/* end confdefs.h.  */
11876
$ac_includes_default
11877
int
11878
main ()
11879
{
11880
return (strcoll ("abc", "def") >= 0 ||
11881
         strcoll ("ABC", "DEF") >= 0 ||
11882
         strcoll ("123", "456") >= 0)
11883
  ;
11884
  return 0;
11885
}
11886
_ACEOF
11887 202 julius
if ac_fn_c_try_run "$LINENO"; then :
11888 19 jeremybenn
  ac_cv_func_strcoll_works=yes
11889
else
11890 202 julius
  ac_cv_func_strcoll_works=no
11891 19 jeremybenn
fi
11892 202 julius
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11893
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11894 19 jeremybenn
fi
11895
 
11896
fi
11897 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
11898
$as_echo "$ac_cv_func_strcoll_works" >&6; }
11899 19 jeremybenn
if test $ac_cv_func_strcoll_works = yes; then
11900
 
11901 202 julius
$as_echo "@%:@define HAVE_STRCOLL 1" >>confdefs.h
11902 19 jeremybenn
 
11903
fi
11904
 
11905 202 julius
ac_fn_c_check_decl "$LINENO" "I_PUSH" "ac_cv_have_decl_I_PUSH" "\
11906
               #include 
11907
"
11908
if test "x$ac_cv_have_decl_I_PUSH" = x""yes; then :
11909
  ac_have_decl=1
11910 60 jeremybenn
else
11911 202 julius
  ac_have_decl=0
11912
fi
11913 19 jeremybenn
 
11914 202 julius
cat >>confdefs.h <<_ACEOF
11915
@%:@define HAVE_DECL_I_PUSH $ac_have_decl
11916 60 jeremybenn
_ACEOF
11917 202 julius
ac_fn_c_check_decl "$LINENO" "rl_event_hook" "ac_cv_have_decl_rl_event_hook" "\
11918
               #include 
11919
"
11920
if test "x$ac_cv_have_decl_rl_event_hook" = x""yes; then :
11921
  ac_have_decl=1
11922 60 jeremybenn
else
11923 202 julius
  ac_have_decl=0
11924 60 jeremybenn
fi
11925 19 jeremybenn
 
11926 202 julius
cat >>confdefs.h <<_ACEOF
11927
@%:@define HAVE_DECL_RL_EVENT_HOOK $ac_have_decl
11928 60 jeremybenn
_ACEOF
11929 19 jeremybenn
 
11930 202 julius
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11931
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11932
if test "${ac_cv_c_bigendian+set}" = set; then :
11933
  $as_echo_n "(cached) " >&6
11934 60 jeremybenn
else
11935 202 julius
  ac_cv_c_bigendian=unknown
11936
    # See if we're dealing with a universal compiler.
11937
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 60 jeremybenn
/* end confdefs.h.  */
11939 202 julius
#ifndef __APPLE_CC__
11940
               not a universal capable compiler
11941
             #endif
11942
             typedef int dummy;
11943
 
11944 60 jeremybenn
_ACEOF
11945 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
11946
 
11947
        # Check for potential -arch flags.  It is not universal unless
11948
        # there are at least two -arch flags with different values.
11949
        ac_arch=
11950
        ac_prev=
11951
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11952
         if test -n "$ac_prev"; then
11953
           case $ac_word in
11954
             i?86 | x86_64 | ppc | ppc64)
11955
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11956
                 ac_arch=$ac_word
11957
               else
11958
                 ac_cv_c_bigendian=universal
11959
                 break
11960
               fi
11961
               ;;
11962
           esac
11963
           ac_prev=
11964
         elif test "x$ac_word" = "x-arch"; then
11965
           ac_prev=arch
11966
         fi
11967
       done
11968 60 jeremybenn
fi
11969 202 julius
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11970
    if test $ac_cv_c_bigendian = unknown; then
11971
      # See if sys/param.h defines the BYTE_ORDER macro.
11972
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973 60 jeremybenn
/* end confdefs.h.  */
11974 202 julius
#include 
11975
             #include 
11976
 
11977 60 jeremybenn
int
11978
main ()
11979
{
11980 202 julius
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11981
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11982
                     && LITTLE_ENDIAN)
11983
              bogus endian macros
11984
             #endif
11985
 
11986
  ;
11987 60 jeremybenn
  return 0;
11988
}
11989
_ACEOF
11990 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
11991
  # It does; now see whether it defined to BIG_ENDIAN or not.
11992
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 19 jeremybenn
/* end confdefs.h.  */
11994 202 julius
#include 
11995
                #include 
11996
 
11997 60 jeremybenn
int
11998
main ()
11999
{
12000 202 julius
#if BYTE_ORDER != BIG_ENDIAN
12001
                 not big endian
12002
                #endif
12003
 
12004 60 jeremybenn
  ;
12005
  return 0;
12006
}
12007
_ACEOF
12008 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
12009
  ac_cv_c_bigendian=yes
12010 60 jeremybenn
else
12011 202 julius
  ac_cv_c_bigendian=no
12012 60 jeremybenn
fi
12013
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12014
fi
12015 202 julius
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12016
    fi
12017
    if test $ac_cv_c_bigendian = unknown; then
12018
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12019
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 19 jeremybenn
/* end confdefs.h.  */
12021 202 julius
#include 
12022
 
12023 19 jeremybenn
int
12024
main ()
12025
{
12026 202 julius
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12027
              bogus endian macros
12028
             #endif
12029
 
12030 19 jeremybenn
  ;
12031
  return 0;
12032
}
12033
_ACEOF
12034 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
12035
  # It does; now see whether it defined to _BIG_ENDIAN or not.
12036
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037 19 jeremybenn
/* end confdefs.h.  */
12038 202 julius
#include 
12039
 
12040 19 jeremybenn
int
12041
main ()
12042
{
12043 202 julius
#ifndef _BIG_ENDIAN
12044
                 not big endian
12045
                #endif
12046
 
12047 19 jeremybenn
  ;
12048
  return 0;
12049
}
12050
_ACEOF
12051 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
12052 19 jeremybenn
  ac_cv_c_bigendian=yes
12053
else
12054 202 julius
  ac_cv_c_bigendian=no
12055 19 jeremybenn
fi
12056
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 202 julius
fi
12058
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12059
    fi
12060
    if test $ac_cv_c_bigendian = unknown; then
12061
      # Compile a test program.
12062
      if test "$cross_compiling" = yes; then :
12063
  # Try to guess by grepping values from an object file.
12064
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 19 jeremybenn
/* end confdefs.h.  */
12066 202 julius
short int ascii_mm[] =
12067
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12068
                short int ascii_ii[] =
12069
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12070
                int use_ascii (int i) {
12071
                  return ascii_mm[i] + ascii_ii[i];
12072
                }
12073
                short int ebcdic_ii[] =
12074
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12075
                short int ebcdic_mm[] =
12076
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12077
                int use_ebcdic (int i) {
12078
                  return ebcdic_mm[i] + ebcdic_ii[i];
12079
                }
12080
                extern int foo;
12081
 
12082 19 jeremybenn
int
12083
main ()
12084
{
12085 202 julius
return use_ascii (foo) == use_ebcdic (foo);
12086 19 jeremybenn
  ;
12087
  return 0;
12088
}
12089
_ACEOF
12090 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
12091
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12092
              ac_cv_c_bigendian=yes
12093
            fi
12094
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12095
              if test "$ac_cv_c_bigendian" = unknown; then
12096
                ac_cv_c_bigendian=no
12097
              else
12098
                # finding both strings is unlikely to happen, but who knows?
12099
                ac_cv_c_bigendian=unknown
12100
              fi
12101
            fi
12102 19 jeremybenn
fi
12103
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12104
else
12105 202 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106 19 jeremybenn
/* end confdefs.h.  */
12107
$ac_includes_default
12108
int
12109
main ()
12110
{
12111
 
12112 202 julius
             /* Are we little or big endian?  From Harbison&Steele.  */
12113
             union
12114
             {
12115
               long int l;
12116
               char c[sizeof (long int)];
12117
             } u;
12118
             u.l = 1;
12119
             return u.c[sizeof (long int) - 1] == 1;
12120
 
12121 19 jeremybenn
  ;
12122
  return 0;
12123
}
12124
_ACEOF
12125 202 julius
if ac_fn_c_try_run "$LINENO"; then :
12126 19 jeremybenn
  ac_cv_c_bigendian=no
12127
else
12128 202 julius
  ac_cv_c_bigendian=yes
12129 19 jeremybenn
fi
12130 202 julius
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12131
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12132 19 jeremybenn
fi
12133
 
12134 202 julius
    fi
12135 19 jeremybenn
fi
12136 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12137
$as_echo "$ac_cv_c_bigendian" >&6; }
12138
 case $ac_cv_c_bigendian in #(
12139
   yes)
12140
     $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
12141
;; #(
12142
   no)
12143
      ;; #(
12144
   universal)
12145
 
12146
$as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12147 19 jeremybenn
 
12148 202 julius
     ;; #(
12149
   *)
12150
     as_fn_error "unknown endianness
12151
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12152
 esac
12153 19 jeremybenn
 
12154
 
12155 202 julius
# The test for strndup, strcasecmp and isblank fails on modern machines. I
12156
# think it's because GCC 4 does not like the way autoconf overrides the built
12157
# in type declaration. So we must check for them by steam.
12158
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strndup" >&5
12159
$as_echo_n "checking for strndup... " >&6; }
12160
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 60 jeremybenn
/* end confdefs.h.  */
12162 202 julius
#ifdef HAVE_STRING_H
12163
                                  #include 
12164
                                  #else
12165
                                  char *strndup (const char *s,
12166
                                                 size_t      n);
12167
                                  #endif
12168 60 jeremybenn
int
12169
main ()
12170
{
12171 202 julius
\
12172
                                const char *s = "test";
12173
                                  char       *t;
12174
                                  t = strndup (s, 3);
12175 60 jeremybenn
  ;
12176
  return 0;
12177
}
12178
_ACEOF
12179 202 julius
if ac_fn_c_try_link "$LINENO"; then :
12180
  \
12181
 
12182
$as_echo "@%:@define HAVE_STRNDUP 1" >>confdefs.h
12183
 \
12184
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12185
$as_echo "yes" >&6; }
12186 60 jeremybenn
else
12187 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188
$as_echo "no" >&6; }
12189 60 jeremybenn
fi
12190 202 julius
rm -f core conftest.err conftest.$ac_objext \
12191
    conftest$ac_exeext conftest.$ac_ext
12192 60 jeremybenn
 
12193 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp" >&5
12194
$as_echo_n "checking for strcasecmp... " >&6; }
12195
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196
/* end confdefs.h.  */
12197
#ifdef HAVE_STRINGS_H
12198
                                  #include 
12199
                                  #else
12200
                                  int strcasecmp (const char *s1,
12201
                                                  const char *s2);
12202
                                  #endif
12203
int
12204
main ()
12205
{
12206
\
12207
                                const char *s = "test";
12208
                                  const char *t = "TEST";
12209
                                  int         res;
12210
                                  res = strcasecmp (s, t);
12211
  ;
12212
  return 0;
12213
}
12214 60 jeremybenn
_ACEOF
12215 202 julius
if ac_fn_c_try_link "$LINENO"; then :
12216
  \
12217
 
12218
$as_echo "@%:@define HAVE_STRCASECMP 1" >>confdefs.h
12219
 \
12220
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12221
$as_echo "yes" >&6; }
12222
else
12223
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224
$as_echo "no" >&6; }
12225 60 jeremybenn
fi
12226 202 julius
rm -f core conftest.err conftest.$ac_objext \
12227
    conftest$ac_exeext conftest.$ac_ext
12228 60 jeremybenn
 
12229 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
12230
$as_echo_n "checking for isblank... " >&6; }
12231
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12232 60 jeremybenn
/* end confdefs.h.  */
12233 202 julius
#ifdef HAVE_CTYPE_H
12234
                                  #include 
12235
                                  #else
12236
                                  int isblank (int  c);
12237
                                  #endif
12238 60 jeremybenn
int
12239
main ()
12240
{
12241 202 julius
\
12242
                                return isblank ('x');
12243 60 jeremybenn
  ;
12244
  return 0;
12245
}
12246
_ACEOF
12247 202 julius
if ac_fn_c_try_link "$LINENO"; then :
12248
  \
12249
 
12250
$as_echo "@%:@define HAVE_ISBLANK 1" >>confdefs.h
12251
 \
12252
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12253
$as_echo "yes" >&6; }
12254 60 jeremybenn
else
12255 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256
$as_echo "no" >&6; }
12257 60 jeremybenn
fi
12258 202 julius
rm -f core conftest.err conftest.$ac_objext \
12259
    conftest$ac_exeext conftest.$ac_ext
12260 60 jeremybenn
 
12261 202 julius
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
12262
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12263
if test "x$ac_cv_type_size_t" = x""yes; then :
12264
 
12265 60 jeremybenn
else
12266
 
12267
cat >>confdefs.h <<_ACEOF
12268
@%:@define size_t unsigned int
12269
_ACEOF
12270
 
12271
fi
12272
 
12273 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12274
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12275
if test "${ac_cv_struct_tm+set}" = set; then :
12276
  $as_echo_n "(cached) " >&6
12277 60 jeremybenn
else
12278 202 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 60 jeremybenn
/* end confdefs.h.  */
12280
#include 
12281
#include 
12282
 
12283
int
12284
main ()
12285
{
12286
struct tm tm;
12287
                                     int *p = &tm.tm_sec;
12288 202 julius
                                     return !p;
12289 60 jeremybenn
  ;
12290
  return 0;
12291
}
12292
_ACEOF
12293 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
12294 60 jeremybenn
  ac_cv_struct_tm=time.h
12295
else
12296 202 julius
  ac_cv_struct_tm=sys/time.h
12297 60 jeremybenn
fi
12298
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12299
fi
12300 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12301
$as_echo "$ac_cv_struct_tm" >&6; }
12302 60 jeremybenn
if test $ac_cv_struct_tm = sys/time.h; then
12303
 
12304 202 julius
$as_echo "@%:@define TM_IN_SYS_TIME 1" >>confdefs.h
12305 60 jeremybenn
 
12306
fi
12307
 
12308
 
12309
# Checks for library functions (for argtable2).
12310
for ac_header in stdlib.h
12311 202 julius
do :
12312
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12313
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
12314 60 jeremybenn
  cat >>confdefs.h <<_ACEOF
12315 202 julius
@%:@define HAVE_STDLIB_H 1
12316 60 jeremybenn
_ACEOF
12317
 
12318
fi
12319
 
12320
done
12321
 
12322 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12323
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12324
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
12325
  $as_echo_n "(cached) " >&6
12326 60 jeremybenn
else
12327 202 julius
  if test "$cross_compiling" = yes; then :
12328 60 jeremybenn
  ac_cv_func_malloc_0_nonnull=no
12329
else
12330 202 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331 60 jeremybenn
/* end confdefs.h.  */
12332
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
12333
# include 
12334
#else
12335
char *malloc ();
12336
#endif
12337
 
12338
int
12339
main ()
12340
{
12341
return ! malloc (0);
12342
  ;
12343
  return 0;
12344
}
12345
_ACEOF
12346 202 julius
if ac_fn_c_try_run "$LINENO"; then :
12347 60 jeremybenn
  ac_cv_func_malloc_0_nonnull=yes
12348
else
12349 202 julius
  ac_cv_func_malloc_0_nonnull=no
12350 60 jeremybenn
fi
12351 202 julius
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12352
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12353 60 jeremybenn
fi
12354
 
12355
fi
12356 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12357
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12358
if test $ac_cv_func_malloc_0_nonnull = yes; then :
12359 60 jeremybenn
 
12360 202 julius
$as_echo "@%:@define HAVE_MALLOC 1" >>confdefs.h
12361 60 jeremybenn
 
12362
else
12363 202 julius
  $as_echo "@%:@define HAVE_MALLOC 0" >>confdefs.h
12364 60 jeremybenn
 
12365
   case " $LIB@&t@OBJS " in
12366
  *" malloc.$ac_objext "* ) ;;
12367
  *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext"
12368
 ;;
12369
esac
12370
 
12371
 
12372 202 julius
$as_echo "@%:@define malloc rpl_malloc" >>confdefs.h
12373 60 jeremybenn
 
12374
fi
12375
 
12376
 
12377
for ac_func in strftime
12378 202 julius
do :
12379
  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12380
if test "x$ac_cv_func_strftime" = x""yes; then :
12381 60 jeremybenn
  cat >>confdefs.h <<_ACEOF
12382 202 julius
@%:@define HAVE_STRFTIME 1
12383 60 jeremybenn
_ACEOF
12384
 
12385
else
12386
  # strftime is in -lintl on SCO UNIX.
12387 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12388
$as_echo_n "checking for strftime in -lintl... " >&6; }
12389
if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12390
  $as_echo_n "(cached) " >&6
12391 60 jeremybenn
else
12392
  ac_check_lib_save_LIBS=$LIBS
12393
LIBS="-lintl  $LIBS"
12394 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395 60 jeremybenn
/* end confdefs.h.  */
12396
 
12397
/* Override any GCC internal prototype to avoid an error.
12398
   Use char because int might match the return type of a GCC
12399
   builtin and then its argument prototype would still apply.  */
12400
#ifdef __cplusplus
12401
extern "C"
12402
#endif
12403
char strftime ();
12404
int
12405
main ()
12406
{
12407
return strftime ();
12408
  ;
12409
  return 0;
12410
}
12411
_ACEOF
12412 202 julius
if ac_fn_c_try_link "$LINENO"; then :
12413 60 jeremybenn
  ac_cv_lib_intl_strftime=yes
12414
else
12415 202 julius
  ac_cv_lib_intl_strftime=no
12416 60 jeremybenn
fi
12417 202 julius
rm -f core conftest.err conftest.$ac_objext \
12418
    conftest$ac_exeext conftest.$ac_ext
12419 60 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12420
fi
12421 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12422
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
12423
if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12424
  $as_echo "@%:@define HAVE_STRFTIME 1" >>confdefs.h
12425 60 jeremybenn
 
12426
LIBS="-lintl $LIBS"
12427
fi
12428
 
12429
fi
12430
done
12431
 
12432 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12433
$as_echo_n "checking for working strtod... " >&6; }
12434
if test "${ac_cv_func_strtod+set}" = set; then :
12435
  $as_echo_n "(cached) " >&6
12436 60 jeremybenn
else
12437 202 julius
  if test "$cross_compiling" = yes; then :
12438 60 jeremybenn
  ac_cv_func_strtod=no
12439
else
12440 202 julius
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 60 jeremybenn
/* end confdefs.h.  */
12442
 
12443
$ac_includes_default
12444
#ifndef strtod
12445
double strtod ();
12446
#endif
12447
int
12448
main()
12449
{
12450
  {
12451
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
12452
    char *string = " +69";
12453
    char *term;
12454
    double value;
12455
    value = strtod (string, &term);
12456
    if (value != 69 || term != (string + 4))
12457
      return 1;
12458
  }
12459
 
12460
  {
12461
    /* Under Solaris 2.4, strtod returns the wrong value for the
12462
       terminating character under some conditions.  */
12463
    char *string = "NaN";
12464
    char *term;
12465
    strtod (string, &term);
12466
    if (term != string && *(term - 1) == 0)
12467
      return 1;
12468
  }
12469
  return 0;
12470
}
12471
 
12472
_ACEOF
12473 202 julius
if ac_fn_c_try_run "$LINENO"; then :
12474 60 jeremybenn
  ac_cv_func_strtod=yes
12475
else
12476 202 julius
  ac_cv_func_strtod=no
12477 60 jeremybenn
fi
12478 202 julius
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12479
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12480 60 jeremybenn
fi
12481
 
12482
fi
12483 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12484
$as_echo "$ac_cv_func_strtod" >&6; }
12485 60 jeremybenn
if test $ac_cv_func_strtod = no; then
12486
  case " $LIB@&t@OBJS " in
12487
  *" strtod.$ac_objext "* ) ;;
12488
  *) LIB@&t@OBJS="$LIB@&t@OBJS strtod.$ac_objext"
12489
 ;;
12490
esac
12491
 
12492 202 julius
ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12493
if test "x$ac_cv_func_pow" = x""yes; then :
12494
 
12495 60 jeremybenn
fi
12496
 
12497
if test $ac_cv_func_pow = no; then
12498 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12499
$as_echo_n "checking for pow in -lm... " >&6; }
12500
if test "${ac_cv_lib_m_pow+set}" = set; then :
12501
  $as_echo_n "(cached) " >&6
12502 60 jeremybenn
else
12503
  ac_check_lib_save_LIBS=$LIBS
12504
LIBS="-lm  $LIBS"
12505 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 60 jeremybenn
/* end confdefs.h.  */
12507
 
12508
/* Override any GCC internal prototype to avoid an error.
12509
   Use char because int might match the return type of a GCC
12510
   builtin and then its argument prototype would still apply.  */
12511
#ifdef __cplusplus
12512
extern "C"
12513
#endif
12514
char pow ();
12515
int
12516
main ()
12517
{
12518
return pow ();
12519
  ;
12520
  return 0;
12521
}
12522
_ACEOF
12523 202 julius
if ac_fn_c_try_link "$LINENO"; then :
12524 60 jeremybenn
  ac_cv_lib_m_pow=yes
12525
else
12526 202 julius
  ac_cv_lib_m_pow=no
12527 60 jeremybenn
fi
12528 202 julius
rm -f core conftest.err conftest.$ac_objext \
12529
    conftest$ac_exeext conftest.$ac_ext
12530 60 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12531
fi
12532 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12533
$as_echo "$ac_cv_lib_m_pow" >&6; }
12534
if test "x$ac_cv_lib_m_pow" = x""yes; then :
12535 60 jeremybenn
  POW_LIB=-lm
12536
else
12537 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12538
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12539 60 jeremybenn
fi
12540
 
12541
fi
12542
 
12543
fi
12544
 
12545
for ac_func in bzero strchr strcspn strrchr strtol
12546 202 julius
do :
12547
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12548
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12549
eval as_val=\$$as_ac_var
12550
   if test "x$as_val" = x""yes; then :
12551 60 jeremybenn
  cat >>confdefs.h <<_ACEOF
12552 202 julius
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12553 60 jeremybenn
_ACEOF
12554
 
12555
fi
12556
done
12557
 
12558 202 julius
ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
12559
if test "x$ac_cv_func_getopt_long" = x""yes; then :
12560 60 jeremybenn
  SYS_GETOPTLONG=1
12561
else
12562
  SYS_GETOPTLONG=0
12563
fi
12564
 
12565 202 julius
ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
12566
if test "x$ac_cv_func_regcomp" = x""yes; then :
12567 60 jeremybenn
  SYS_REGEX=1
12568
else
12569
  SYS_REGEX=0
12570
fi
12571
 
12572 202 julius
ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
12573
if test "x$ac_cv_func_strptime" = x""yes; then :
12574 60 jeremybenn
  SYS_STRPTIME=1
12575
else
12576
  SYS_STRPTIME=0
12577
fi
12578
 
12579
 
12580
# Define automake conditionals (for argtable2)
12581
 if test "$SYS_GETOPTLONG" = "1"; then
12582
  USE_SYS_GETOPTLONG_TRUE=
12583
  USE_SYS_GETOPTLONG_FALSE='#'
12584
else
12585
  USE_SYS_GETOPTLONG_TRUE='#'
12586
  USE_SYS_GETOPTLONG_FALSE=
12587
fi
12588
 
12589
 if test "$SYS_REGEX" = "1"; then
12590
  USE_ARGREX_TRUE=
12591
  USE_ARGREX_FALSE='#'
12592
else
12593
  USE_ARGREX_TRUE='#'
12594
  USE_ARGREX_FALSE=
12595
fi
12596
 
12597
 if test "$SYS_STRPTIME" = "1"; then
12598
  USE_ARGDATE_TRUE=
12599
  USE_ARGDATE_FALSE='#'
12600
else
12601
  USE_ARGDATE_TRUE='#'
12602
  USE_ARGDATE_FALSE=
12603
fi
12604
 
12605
 
12606 19 jeremybenn
# check for "long long" (added by Erez)
12607 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 19 jeremybenn
/* end confdefs.h.  */
12609
 
12610
int
12611
main ()
12612
{
12613
long long ll; unsigned long long ull;
12614
  ;
12615
  return 0;
12616
}
12617
_ACEOF
12618 202 julius
if ac_fn_c_try_compile "$LINENO"; then :
12619 19 jeremybenn
 
12620 202 julius
$as_echo "@%:@define CC_HAS_LONG_LONG 1" >>confdefs.h
12621 19 jeremybenn
 
12622
fi
12623
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12624
 
12625 60 jeremybenn
# check for {u,}int{8,16,32}_t in inttypes.h.
12626 202 julius
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#include 
12627
"
12628
if test "x$ac_cv_type_uint8_t" = x""yes; then :
12629 19 jeremybenn
 
12630
cat >>confdefs.h <<_ACEOF
12631
@%:@define HAVE_UINT8_T 1
12632
_ACEOF
12633
 
12634
 
12635
fi
12636 202 julius
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#include 
12637
"
12638
if test "x$ac_cv_type_uint16_t" = x""yes; then :
12639 19 jeremybenn
 
12640
cat >>confdefs.h <<_ACEOF
12641
@%:@define HAVE_UINT16_T 1
12642
_ACEOF
12643
 
12644
 
12645
fi
12646 202 julius
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include 
12647
"
12648
if test "x$ac_cv_type_uint32_t" = x""yes; then :
12649 19 jeremybenn
 
12650
cat >>confdefs.h <<_ACEOF
12651
@%:@define HAVE_UINT32_T 1
12652
_ACEOF
12653
 
12654
 
12655
fi
12656
 
12657 202 julius
ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "#include 
12658
"
12659
if test "x$ac_cv_type_int8_t" = x""yes; then :
12660 19 jeremybenn
 
12661
cat >>confdefs.h <<_ACEOF
12662
@%:@define HAVE_INT8_T 1
12663
_ACEOF
12664
 
12665
 
12666
fi
12667 202 julius
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "#include 
12668
"
12669
if test "x$ac_cv_type_int16_t" = x""yes; then :
12670 19 jeremybenn
 
12671
cat >>confdefs.h <<_ACEOF
12672
@%:@define HAVE_INT16_T 1
12673
_ACEOF
12674
 
12675
 
12676
fi
12677 202 julius
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "#include 
12678
"
12679
if test "x$ac_cv_type_int32_t" = x""yes; then :
12680 19 jeremybenn
 
12681
cat >>confdefs.h <<_ACEOF
12682
@%:@define HAVE_INT32_T 1
12683
_ACEOF
12684
 
12685
 
12686
fi
12687
 
12688
 
12689
# The cast to long int works around a bug in the HP C Compiler
12690
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12691
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12692
# This bug is HP SR number 8606223364.
12693 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12694
$as_echo_n "checking size of char... " >&6; }
12695
if test "${ac_cv_sizeof_char+set}" = set; then :
12696
  $as_echo_n "(cached) " >&6
12697 19 jeremybenn
else
12698 202 julius
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
12699
 
12700 19 jeremybenn
else
12701 202 julius
  if test "$ac_cv_type_char" = yes; then
12702
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12703
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12704
{ as_fn_set_status 77
12705
as_fn_error "cannot compute sizeof (char)
12706
See \`config.log' for more details." "$LINENO" 5; }; }
12707 19 jeremybenn
   else
12708
     ac_cv_sizeof_char=0
12709
   fi
12710
fi
12711 202 julius
 
12712 19 jeremybenn
fi
12713 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12714
$as_echo "$ac_cv_sizeof_char" >&6; }
12715 19 jeremybenn
 
12716
 
12717
 
12718
cat >>confdefs.h <<_ACEOF
12719
@%:@define SIZEOF_CHAR $ac_cv_sizeof_char
12720
_ACEOF
12721
 
12722
 
12723
# The cast to long int works around a bug in the HP C Compiler
12724
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12725
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12726
# This bug is HP SR number 8606223364.
12727 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12728
$as_echo_n "checking size of short... " >&6; }
12729
if test "${ac_cv_sizeof_short+set}" = set; then :
12730
  $as_echo_n "(cached) " >&6
12731 19 jeremybenn
else
12732 202 julius
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12733
 
12734 19 jeremybenn
else
12735 202 julius
  if test "$ac_cv_type_short" = yes; then
12736
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12737
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12738
{ as_fn_set_status 77
12739
as_fn_error "cannot compute sizeof (short)
12740
See \`config.log' for more details." "$LINENO" 5; }; }
12741 19 jeremybenn
   else
12742
     ac_cv_sizeof_short=0
12743
   fi
12744
fi
12745 202 julius
 
12746 19 jeremybenn
fi
12747 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12748
$as_echo "$ac_cv_sizeof_short" >&6; }
12749 19 jeremybenn
 
12750
 
12751
 
12752
cat >>confdefs.h <<_ACEOF
12753
@%:@define SIZEOF_SHORT $ac_cv_sizeof_short
12754
_ACEOF
12755
 
12756
 
12757
# The cast to long int works around a bug in the HP C Compiler
12758
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12759
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12760
# This bug is HP SR number 8606223364.
12761 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12762
$as_echo_n "checking size of int... " >&6; }
12763
if test "${ac_cv_sizeof_int+set}" = set; then :
12764
  $as_echo_n "(cached) " >&6
12765 19 jeremybenn
else
12766 202 julius
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12767
 
12768 19 jeremybenn
else
12769 202 julius
  if test "$ac_cv_type_int" = yes; then
12770
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12771
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12772
{ as_fn_set_status 77
12773
as_fn_error "cannot compute sizeof (int)
12774
See \`config.log' for more details." "$LINENO" 5; }; }
12775 19 jeremybenn
   else
12776
     ac_cv_sizeof_int=0
12777
   fi
12778
fi
12779 202 julius
 
12780 19 jeremybenn
fi
12781 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12782
$as_echo "$ac_cv_sizeof_int" >&6; }
12783 19 jeremybenn
 
12784
 
12785
 
12786
cat >>confdefs.h <<_ACEOF
12787
@%:@define SIZEOF_INT $ac_cv_sizeof_int
12788
_ACEOF
12789
 
12790
 
12791
# The cast to long int works around a bug in the HP C Compiler
12792
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12793
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12794
# This bug is HP SR number 8606223364.
12795 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12796
$as_echo_n "checking size of long... " >&6; }
12797
if test "${ac_cv_sizeof_long+set}" = set; then :
12798
  $as_echo_n "(cached) " >&6
12799 19 jeremybenn
else
12800 202 julius
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12801
 
12802 19 jeremybenn
else
12803 202 julius
  if test "$ac_cv_type_long" = yes; then
12804
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12805
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12806
{ as_fn_set_status 77
12807
as_fn_error "cannot compute sizeof (long)
12808
See \`config.log' for more details." "$LINENO" 5; }; }
12809 19 jeremybenn
   else
12810
     ac_cv_sizeof_long=0
12811
   fi
12812
fi
12813 202 julius
 
12814 19 jeremybenn
fi
12815 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12816
$as_echo "$ac_cv_sizeof_long" >&6; }
12817 19 jeremybenn
 
12818
 
12819
 
12820
cat >>confdefs.h <<_ACEOF
12821
@%:@define SIZEOF_LONG $ac_cv_sizeof_long
12822
_ACEOF
12823
 
12824
 
12825 233 julius
# The cast to long int works around a bug in the HP C Compiler
12826
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12827
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12828
# This bug is HP SR number 8606223364.
12829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12830
$as_echo_n "checking size of long long... " >&6; }
12831
if test "${ac_cv_sizeof_long_long+set}" = set; then :
12832
  $as_echo_n "(cached) " >&6
12833
else
12834
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12835
 
12836
else
12837
  if test "$ac_cv_type_long_long" = yes; then
12838
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12839
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12840
{ as_fn_set_status 77
12841
as_fn_error "cannot compute sizeof (long long)
12842
See \`config.log' for more details." "$LINENO" 5; }; }
12843
   else
12844
     ac_cv_sizeof_long_long=0
12845
   fi
12846
fi
12847 19 jeremybenn
 
12848 233 julius
fi
12849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12850
$as_echo "$ac_cv_sizeof_long_long" >&6; }
12851
 
12852
 
12853
 
12854
cat >>confdefs.h <<_ACEOF
12855
@%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12856
_ACEOF
12857
 
12858
 
12859
 
12860 60 jeremybenn
#Check for compare function type for qsort (needed by some Linuxes)
12861 202 julius
ac_fn_c_check_type "$LINENO" "__compar_fn_t" "ac_cv_type___compar_fn_t" "$ac_includes_default"
12862
if test "x$ac_cv_type___compar_fn_t" = x""yes; then :
12863 60 jeremybenn
 
12864
cat >>confdefs.h <<_ACEOF
12865
@%:@define HAVE___COMPAR_FN_T 1
12866
_ACEOF
12867
 
12868
 
12869
fi
12870
 
12871
 
12872 19 jeremybenn
# check for GNU readline
12873 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
12874
$as_echo_n "checking for add_history in -lreadline... " >&6; }
12875
if test "${ac_cv_lib_readline_add_history+set}" = set; then :
12876
  $as_echo_n "(cached) " >&6
12877 19 jeremybenn
else
12878
  ac_check_lib_save_LIBS=$LIBS
12879
LIBS="-lreadline  $LIBS"
12880 202 julius
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 19 jeremybenn
/* end confdefs.h.  */
12882
 
12883
/* Override any GCC internal prototype to avoid an error.
12884
   Use char because int might match the return type of a GCC
12885
   builtin and then its argument prototype would still apply.  */
12886
#ifdef __cplusplus
12887
extern "C"
12888
#endif
12889
char add_history ();
12890
int
12891
main ()
12892
{
12893
return add_history ();
12894
  ;
12895
  return 0;
12896
}
12897
_ACEOF
12898 202 julius
if ac_fn_c_try_link "$LINENO"; then :
12899 19 jeremybenn
  ac_cv_lib_readline_add_history=yes
12900
else
12901 202 julius
  ac_cv_lib_readline_add_history=no
12902 19 jeremybenn
fi
12903 202 julius
rm -f core conftest.err conftest.$ac_objext \
12904
    conftest$ac_exeext conftest.$ac_ext
12905 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12906
fi
12907 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
12908
$as_echo "$ac_cv_lib_readline_add_history" >&6; }
12909
if test "x$ac_cv_lib_readline_add_history" = x""yes; then :
12910 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12911
@%:@define HAVE_LIBREADLINE 1
12912
_ACEOF
12913
 
12914
  LIBS="-lreadline $LIBS"
12915
 
12916
fi
12917
 
12918
 
12919
# yuck
12920
case "$host_os" in
12921
aix*)   prefer_curses=yes ;;
12922
esac
12923
 
12924
case "$host_cpu" in
12925
*cray*) LOCAL_CFLAGS=-DCRAY ;;
12926
esac
12927
 
12928
case "$host_os" in
12929
isc*)   LOCAL_CFLAGS=-Disc386 ;;
12930
esac
12931
 
12932
case "$host_os" in
12933
solaris*) LIBS="-lsocket -lnsl" ;;
12934
esac
12935
 
12936
# define options
12937 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable profiling" >&5
12938
$as_echo_n "checking whether to enable profiling... " >&6; }
12939
@%:@ Check whether --enable-profiling was given.
12940
if test "${enable_profiling+set}" = set; then :
12941 19 jeremybenn
  enableval=$enable_profiling;
12942
    case "$enableval" in
12943 60 jeremybenn
        yes) profile="-pg" ;;
12944 19 jeremybenn
    esac
12945
 
12946
fi
12947
 
12948 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_profiling-no}" >&5
12949
$as_echo "${enable_profiling-no}" >&6; }
12950 19 jeremybenn
 
12951
execution="1"
12952
 
12953
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
12954 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which execution style to use" >&5
12955
$as_echo_n "checking which execution style to use... " >&6; }
12956
@%:@ Check whether --enable-execution was given.
12957
if test "${enable_execution+set}" = set; then :
12958 19 jeremybenn
  enableval=$enable_execution;
12959
    case "$enableval" in
12960
    simple)
12961
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
12962
      execution="0"
12963 202 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple" >&5
12964
$as_echo "simple" >&6; }
12965 19 jeremybenn
      ;;
12966
    complex)
12967
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
12968
      execution="1"
12969 202 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: complex" >&5
12970
$as_echo "complex" >&6; }
12971 19 jeremybenn
      ;;
12972
    dynamic)
12973
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
12974
      execution="2"
12975 202 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5
12976
$as_echo "dynamic" >&6; }
12977 19 jeremybenn
      ;;
12978
    *)
12979 202 julius
      as_fn_error "\"execution must one of simple/complex/dynamic\"" "$LINENO" 5
12980 19 jeremybenn
      ;;
12981
    esac
12982
 
12983
else
12984
 
12985 202 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: complex" >&5
12986
$as_echo "complex" >&6; }
12987 19 jeremybenn
 
12988
fi
12989
 
12990
 
12991
eth_phy="0"
12992 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ethernet phy emulation" >&5
12993
$as_echo_n "checking whether to enable ethernet phy emulation... " >&6; }
12994
@%:@ Check whether --enable-ethphy was given.
12995
if test "${enable_ethphy+set}" = set; then :
12996 19 jeremybenn
  enableval=$enable_ethphy;
12997
    case "$enableval" in
12998
  no)  eth_phy="0" ;;
12999
        yes) eth_phy="1" ;;
13000
    esac
13001
 
13002
fi
13003
 
13004 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_eth_phy-no}" >&5
13005
$as_echo "${enable_eth_phy-no}" >&6; }
13006 19 jeremybenn
 
13007 202 julius
unsigned_xori="0"
13008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether l.xori takes an unsigned immediate operand" >&5
13009
$as_echo_n "checking whether l.xori takes an unsigned immediate operand... " >&6; }
13010
@%:@ Check whether --enable-unsigned-xori was given.
13011
if test "${enable_unsigned_xori+set}" = set; then :
13012
  enableval=$enable_unsigned_xori;
13013 19 jeremybenn
    case "$enableval" in
13014 202 julius
  no)  unsigned_xori="0" ;;
13015
        yes) unsigned_xori="1" ;;
13016 19 jeremybenn
    esac
13017
 
13018
fi
13019
 
13020 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_unsigned_xori-no}" >&5
13021
$as_echo "${enable_unsigned_xori-no}" >&6; }
13022 19 jeremybenn
 
13023 202 julius
raw_range_stats="0"
13024
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use raw range stats" >&5
13025
$as_echo_n "checking whether to use raw range stats... " >&6; }
13026
@%:@ Check whether --enable-range_stats was given.
13027
if test "${enable_range_stats+set}" = set; then :
13028
  enableval=$enable_range_stats;
13029 19 jeremybenn
    case "$enableval" in
13030 202 julius
  no)  raw_range_stats="0" ;;
13031
        yes) raw_range_stats="1" simple_execution="1" ;;
13032 19 jeremybenn
    esac
13033
 
13034
fi
13035
 
13036 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_range_stats-no}" >&5
13037
$as_echo "${enable_range_stats-no}" >&6; }
13038 19 jeremybenn
 
13039 60 jeremybenn
# check for --enable-debug argument (for argtable2)
13040 202 julius
@%:@ Check whether --enable-debug was given.
13041
if test "${enable_debug+set}" = set; then :
13042 60 jeremybenn
  enableval=$enable_debug;
13043
       case $enableval in
13044
          yes) echo "enabling argtable2 debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
13045
          no)  echo "disabling argtable2 debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
13046
          *)   echo "illegal argument to --enable-debug" & exit 1;;
13047
       esac
13048
 
13049
else
13050
  DEBUGFLAGS="-DNDEBUG"
13051
 
13052
fi
13053 19 jeremybenn
 
13054 60 jeremybenn
 
13055
 
13056
 
13057 19 jeremybenn
cat >>confdefs.h <<_ACEOF
13058
@%:@define RAW_RANGE_STATS $raw_range_stats
13059
_ACEOF
13060
 
13061
 
13062
cat >>confdefs.h <<_ACEOF
13063 202 julius
@%:@define HAVE_ETH_PHY $eth_phy
13064 19 jeremybenn
_ACEOF
13065
 
13066
 
13067
cat >>confdefs.h <<_ACEOF
13068 202 julius
@%:@define HAVE_UNSIGNED_XORI $unsigned_xori
13069 19 jeremybenn
_ACEOF
13070
 
13071
 
13072
cat >>confdefs.h <<_ACEOF
13073
@%:@define SIMPLE_EXECUTION $execution == 0
13074
_ACEOF
13075
 
13076
 
13077
cat >>confdefs.h <<_ACEOF
13078
@%:@define COMPLEX_EXECUTION $execution == 1
13079
_ACEOF
13080
 
13081
 
13082
cat >>confdefs.h <<_ACEOF
13083
@%:@define DYNAMIC_EXECUTION $execution == 2
13084
_ACEOF
13085
 
13086
 if test x$execution = x1; then
13087
  GENERATE_NEEDED_TRUE=
13088
  GENERATE_NEEDED_FALSE='#'
13089
else
13090
  GENERATE_NEEDED_TRUE='#'
13091
  GENERATE_NEEDED_FALSE=
13092
fi
13093
 
13094
 if test x$execution = x2; then
13095
  DYNAMIC_EXECUTION_TRUE=
13096
  DYNAMIC_EXECUTION_FALSE='#'
13097
else
13098
  DYNAMIC_EXECUTION_TRUE='#'
13099
  DYNAMIC_EXECUTION_FALSE=
13100
fi
13101
 
13102
 
13103
 
13104
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
13105
 
13106 202 julius
# Check for a DejaGNU global config file. If not set, then set it
13107
# ourselves. This stops runtest complaining
13108
if test x"$DEJAGNU" = x
13109
then
13110
  DEJAGNU="\$(top_srcdir)/testsuite/global-conf.exp"
13111
fi
13112
 
13113
 
13114
 
13115
# The following line will override the default definition of the srcdir, and
13116
# ensure that short names are used for the test names.
13117
RUNTESTDEFAULTFLAGS="--tool \$\$tool"
13118
 
13119
 
13120 19 jeremybenn
BUILD_DIR=`pwd`
13121
 
13122
 
13123
 
13124
 
13125
 
13126
 
13127
 
13128
 
13129
 
13130
 
13131
 
13132
 
13133
 
13134
 
13135
 
13136
 
13137
 
13138
 
13139 202 julius
$as_echo "@%:@define HAVE_EXECUTION 1" >>confdefs.h
13140 19 jeremybenn
 
13141
 
13142
# yuck
13143
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
13144
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
13145
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
13146
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
13147
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
13148 233 julius
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2 \
13149
-I\${top_srcdir}/softfloat"
13150 19 jeremybenn
 
13151
 
13152 233 julius
ac_config_files="$ac_config_files Makefile argtable2/Makefile bpb/Makefile cache/Makefile cpu/Makefile cpu/common/Makefile cpu/or1k/Makefile cuc/Makefile softfloat/Makefile debug/Makefile doc/Makefile mmu/Makefile peripheral/Makefile peripheral/channels/Makefile pm/Makefile pic/Makefile port/Makefile support/Makefile testsuite/Makefile testsuite/config/Makefile testsuite/lib/Makefile testsuite/libsim.tests/Makefile testsuite/or1ksim.tests/Makefile testsuite/test-code/Makefile testsuite/test-code/lib-iftest/Makefile testsuite/test-code/lib-inttest/Makefile testsuite/test-code/lib-jtag/Makefile testsuite/test-code/lib-upcalls/Makefile tick/Makefile vapi/Makefile"
13153 19 jeremybenn
 
13154
 
13155 60 jeremybenn
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
13156
case "$CPU_ARCH" in
13157
dlx)    ac_config_files="$ac_config_files cpu/dlx/Makefile"
13158
;;
13159
*)      ac_config_files="$ac_config_files cpu/or32/Makefile"
13160
;;
13161
esac
13162
 
13163 202 julius
# Generate the output
13164
 
13165
 
13166 19 jeremybenn
cat >confcache <<\_ACEOF
13167
# This file is a shell script that caches the results of configure
13168
# tests run on this system so they can be shared between configure
13169
# scripts and configure runs, see configure's option --config-cache.
13170
# It is not useful on other systems.  If it contains results you don't
13171
# want to keep, you may remove or edit it.
13172
#
13173
# config.status only pays attention to the cache file if you give it
13174
# the --recheck option to rerun configure.
13175
#
13176
# `ac_cv_env_foo' variables (set or unset) will be overridden when
13177
# loading this file, other *unset* `ac_cv_foo' will be assigned the
13178
# following values.
13179
 
13180
_ACEOF
13181
 
13182
# The following way of writing the cache mishandles newlines in values,
13183
# but we know of no workaround that is simple, portable, and efficient.
13184
# So, we kill variables containing newlines.
13185
# Ultrix sh set writes to stderr and can't be redirected directly,
13186
# and sets the high bit in the cache file unless we assign to the vars.
13187
(
13188
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13189
    eval ac_val=\$$ac_var
13190
    case $ac_val in #(
13191
    *${as_nl}*)
13192
      case $ac_var in #(
13193 202 julius
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13194
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13195 19 jeremybenn
      esac
13196
      case $ac_var in #(
13197
      _ | IFS | as_nl) ;; #(
13198 202 julius
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13199
      *) { eval $ac_var=; unset $ac_var;} ;;
13200 19 jeremybenn
      esac ;;
13201
    esac
13202
  done
13203
 
13204
  (set) 2>&1 |
13205
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13206
    *${as_nl}ac_space=\ *)
13207 202 julius
      # `set' does not quote correctly, so add quotes: double-quote
13208
      # substitution turns \\\\ into \\, and sed turns \\ into \.
13209 19 jeremybenn
      sed -n \
13210
        "s/'/'\\\\''/g;
13211
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13212
      ;; #(
13213
    *)
13214
      # `set' quotes correctly as required by POSIX, so do not add quotes.
13215
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13216
      ;;
13217
    esac |
13218
    sort
13219
) |
13220
  sed '
13221
     /^ac_cv_env_/b end
13222
     t clear
13223
     :clear
13224
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13225
     t end
13226
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13227
     :end' >>confcache
13228
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13229
  if test -w "$cache_file"; then
13230
    test "x$cache_file" != "x/dev/null" &&
13231 202 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13232
$as_echo "$as_me: updating cache $cache_file" >&6;}
13233 19 jeremybenn
    cat confcache >$cache_file
13234
  else
13235 202 julius
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13236
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13237 19 jeremybenn
  fi
13238
fi
13239
rm -f confcache
13240
 
13241
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13242
# Let make expand exec_prefix.
13243
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13244
 
13245
DEFS=-DHAVE_CONFIG_H
13246
 
13247
ac_libobjs=
13248
ac_ltlibobjs=
13249
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
13250
  # 1. Remove the extension, and $U if already installed.
13251
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13252 202 julius
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13253 19 jeremybenn
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13254
  #    will be set to the directory where LIBOBJS objects are built.
13255 202 julius
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13256
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13257 19 jeremybenn
done
13258
LIB@&t@OBJS=$ac_libobjs
13259
 
13260
LTLIBOBJS=$ac_ltlibobjs
13261
 
13262
 
13263
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13264 202 julius
  as_fn_error "conditional \"AMDEP\" was never defined.
13265
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13266 19 jeremybenn
fi
13267
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13268 202 julius
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
13269
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13270 19 jeremybenn
fi
13271 202 julius
 if test -n "$EXEEXT"; then
13272
  am__EXEEXT_TRUE=
13273
  am__EXEEXT_FALSE='#'
13274
else
13275
  am__EXEEXT_TRUE='#'
13276
  am__EXEEXT_FALSE=
13277 19 jeremybenn
fi
13278 202 julius
 
13279
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13280
  as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
13281
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13282
fi
13283
 
13284 60 jeremybenn
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
13285 202 julius
  as_fn_error "conditional \"USE_SYS_GETOPTLONG\" was never defined.
13286
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13287 60 jeremybenn
fi
13288
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
13289 202 julius
  as_fn_error "conditional \"USE_ARGREX\" was never defined.
13290
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13291 60 jeremybenn
fi
13292
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
13293 202 julius
  as_fn_error "conditional \"USE_ARGDATE\" was never defined.
13294
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13295 60 jeremybenn
fi
13296 19 jeremybenn
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
13297 202 julius
  as_fn_error "conditional \"GENERATE_NEEDED\" was never defined.
13298
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13299 19 jeremybenn
fi
13300
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
13301 202 julius
  as_fn_error "conditional \"DYNAMIC_EXECUTION\" was never defined.
13302
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13303 19 jeremybenn
fi
13304
 
13305
: ${CONFIG_STATUS=./config.status}
13306 202 julius
ac_write_fail=0
13307 19 jeremybenn
ac_clean_files_save=$ac_clean_files
13308
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13309 202 julius
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13310
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13311
as_write_fail=0
13312
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13313 19 jeremybenn
#! $SHELL
13314
# Generated by $as_me.
13315
# Run this file to recreate the current configuration.
13316
# Compiler output produced by configure, useful for debugging
13317
# configure, is in config.log if it exists.
13318
 
13319
debug=false
13320
ac_cs_recheck=false
13321
ac_cs_silent=false
13322 202 julius
 
13323 19 jeremybenn
SHELL=\${CONFIG_SHELL-$SHELL}
13324 202 julius
export SHELL
13325
_ASEOF
13326
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13327
## -------------------- ##
13328
## M4sh Initialization. ##
13329
## -------------------- ##
13330 19 jeremybenn
 
13331
# Be more Bourne compatible
13332
DUALCASE=1; export DUALCASE # for MKS sh
13333 202 julius
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13334 19 jeremybenn
  emulate sh
13335
  NULLCMD=:
13336 202 julius
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13337 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
13338
  alias -g '${1+"$@"}'='"$@"'
13339
  setopt NO_GLOB_SUBST
13340
else
13341 202 julius
  case `(set -o) 2>/dev/null` in @%:@(
13342
  *posix*) :
13343
    set -o posix ;; @%:@(
13344
  *) :
13345
     ;;
13346 19 jeremybenn
esac
13347
fi
13348
 
13349
 
13350 202 julius
as_nl='
13351
'
13352
export as_nl
13353
# Printing a long string crashes Solaris 7 /usr/bin/printf.
13354
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13355
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13356
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13357
# Prefer a ksh shell builtin over an external printf program on Solaris,
13358
# but without wasting forks for bash or zsh.
13359
if test -z "$BASH_VERSION$ZSH_VERSION" \
13360
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13361
  as_echo='print -r --'
13362
  as_echo_n='print -rn --'
13363
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13364
  as_echo='printf %s\n'
13365
  as_echo_n='printf %s'
13366
else
13367
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13368
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13369
    as_echo_n='/usr/ucb/echo -n'
13370 19 jeremybenn
  else
13371 202 julius
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13372
    as_echo_n_body='eval
13373
      arg=$1;
13374
      case $arg in @%:@(
13375
      *"$as_nl"*)
13376
        expr "X$arg" : "X\\(.*\\)$as_nl";
13377
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13378
      esac;
13379
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13380
    '
13381
    export as_echo_n_body
13382
    as_echo_n='sh -c $as_echo_n_body as_echo'
13383 19 jeremybenn
  fi
13384 202 julius
  export as_echo_body
13385
  as_echo='sh -c $as_echo_body as_echo'
13386 19 jeremybenn
fi
13387
 
13388 202 julius
# The user is always right.
13389
if test "${PATH_SEPARATOR+set}" != set; then
13390
  PATH_SEPARATOR=:
13391
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13392
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13393
      PATH_SEPARATOR=';'
13394
  }
13395 19 jeremybenn
fi
13396
 
13397
 
13398
# IFS
13399
# We need space, tab and new line, in precisely that order.  Quoting is
13400
# there to prevent editors from complaining about space-tab.
13401
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13402
# splitting by setting IFS to empty value.)
13403
IFS=" ""        $as_nl"
13404
 
13405
# Find who we are.  Look in the path if we contain no directory separator.
13406 202 julius
case $0 in @%:@((
13407 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
13408
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13409
for as_dir in $PATH
13410
do
13411
  IFS=$as_save_IFS
13412
  test -z "$as_dir" && as_dir=.
13413 202 julius
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13414
  done
13415 19 jeremybenn
IFS=$as_save_IFS
13416
 
13417
     ;;
13418
esac
13419
# We did not find ourselves, most probably we were run as `sh COMMAND'
13420
# in which case we are not to be found in the path.
13421
if test "x$as_myself" = x; then
13422
  as_myself=$0
13423
fi
13424
if test ! -f "$as_myself"; then
13425 202 julius
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13426
  exit 1
13427 19 jeremybenn
fi
13428
 
13429 202 julius
# Unset variables that we do not need and which cause bugs (e.g. in
13430
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13431
# suppresses any "Segmentation fault" message there.  '((' could
13432
# trigger a bug in pdksh 5.2.14.
13433
for as_var in BASH_ENV ENV MAIL MAILPATH
13434
do eval test x\${$as_var+set} = xset \
13435
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13436 19 jeremybenn
done
13437
PS1='$ '
13438
PS2='> '
13439
PS4='+ '
13440
 
13441
# NLS nuisances.
13442 202 julius
LC_ALL=C
13443
export LC_ALL
13444
LANGUAGE=C
13445
export LANGUAGE
13446
 
13447
# CDPATH.
13448
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13449
 
13450
 
13451
@%:@ as_fn_error ERROR [LINENO LOG_FD]
13452
@%:@ ---------------------------------
13453
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13454
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13455
@%:@ script with status $?, using 1 if that was 0.
13456
as_fn_error ()
13457
{
13458
  as_status=$?; test $as_status -eq 0 && as_status=1
13459
  if test "$3"; then
13460
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13461
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13462 19 jeremybenn
  fi
13463 202 julius
  $as_echo "$as_me: error: $1" >&2
13464
  as_fn_exit $as_status
13465
} @%:@ as_fn_error
13466 19 jeremybenn
 
13467 202 julius
 
13468
@%:@ as_fn_set_status STATUS
13469
@%:@ -----------------------
13470
@%:@ Set $? to STATUS, without forking.
13471
as_fn_set_status ()
13472
{
13473
  return $1
13474
} @%:@ as_fn_set_status
13475
 
13476
@%:@ as_fn_exit STATUS
13477
@%:@ -----------------
13478
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13479
as_fn_exit ()
13480
{
13481
  set +e
13482
  as_fn_set_status $1
13483
  exit $1
13484
} @%:@ as_fn_exit
13485
 
13486
@%:@ as_fn_unset VAR
13487
@%:@ ---------------
13488
@%:@ Portably unset VAR.
13489
as_fn_unset ()
13490
{
13491
  { eval $1=; unset $1;}
13492
}
13493
as_unset=as_fn_unset
13494
@%:@ as_fn_append VAR VALUE
13495
@%:@ ----------------------
13496
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
13497
@%:@ advantage of any shell optimizations that allow amortized linear growth over
13498
@%:@ repeated appends, instead of the typical quadratic growth present in naive
13499
@%:@ implementations.
13500
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13501
  eval 'as_fn_append ()
13502
  {
13503
    eval $1+=\$2
13504
  }'
13505
else
13506
  as_fn_append ()
13507
  {
13508
    eval $1=\$$1\$2
13509
  }
13510
fi # as_fn_append
13511
 
13512
@%:@ as_fn_arith ARG...
13513
@%:@ ------------------
13514
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
13515
@%:@ global $as_val. Take advantage of shells that can avoid forks. The arguments
13516
@%:@ must be portable across $(()) and expr.
13517
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13518
  eval 'as_fn_arith ()
13519
  {
13520
    as_val=$(( $* ))
13521
  }'
13522
else
13523
  as_fn_arith ()
13524
  {
13525
    as_val=`expr "$@" || test $? -eq 1`
13526
  }
13527
fi # as_fn_arith
13528
 
13529
 
13530 19 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
13531
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13532
  as_expr=expr
13533
else
13534
  as_expr=false
13535
fi
13536
 
13537
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13538
  as_basename=basename
13539
else
13540
  as_basename=false
13541
fi
13542
 
13543 202 julius
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13544
  as_dirname=dirname
13545
else
13546
  as_dirname=false
13547
fi
13548 19 jeremybenn
 
13549
as_me=`$as_basename -- "$0" ||
13550
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13551
         X"$0" : 'X\(//\)$' \| \
13552
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13553 202 julius
$as_echo X/"$0" |
13554 19 jeremybenn
    sed '/^.*\/\([^/][^/]*\)\/*$/{
13555
            s//\1/
13556
            q
13557
          }
13558
          /^X\/\(\/\/\)$/{
13559
            s//\1/
13560
            q
13561
          }
13562
          /^X\/\(\/\).*/{
13563
            s//\1/
13564
            q
13565
          }
13566
          s/.*/./; q'`
13567
 
13568 202 julius
# Avoid depending upon Character Ranges.
13569
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13570
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13571
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13572
as_cr_digits='0123456789'
13573
as_cr_alnum=$as_cr_Letters$as_cr_digits
13574 19 jeremybenn
 
13575
ECHO_C= ECHO_N= ECHO_T=
13576 202 julius
case `echo -n x` in @%:@(((((
13577 19 jeremybenn
-n*)
13578 202 julius
  case `echo 'xy\c'` in
13579 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13580 202 julius
  xy)  ECHO_C='\c';;
13581
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13582
       ECHO_T=' ';;
13583 19 jeremybenn
  esac;;
13584
*)
13585
  ECHO_N='-n';;
13586
esac
13587
 
13588
rm -f conf$$ conf$$.exe conf$$.file
13589
if test -d conf$$.dir; then
13590
  rm -f conf$$.dir/conf$$.file
13591
else
13592
  rm -f conf$$.dir
13593 202 julius
  mkdir conf$$.dir 2>/dev/null
13594 19 jeremybenn
fi
13595 202 julius
if (echo >conf$$.file) 2>/dev/null; then
13596
  if ln -s conf$$.file conf$$ 2>/dev/null; then
13597
    as_ln_s='ln -s'
13598
    # ... but there are two gotchas:
13599
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13600
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13601
    # In both cases, we have to default to `cp -p'.
13602
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13603
      as_ln_s='cp -p'
13604
  elif ln conf$$.file conf$$ 2>/dev/null; then
13605
    as_ln_s=ln
13606
  else
13607 19 jeremybenn
    as_ln_s='cp -p'
13608 202 julius
  fi
13609 19 jeremybenn
else
13610
  as_ln_s='cp -p'
13611
fi
13612
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13613
rmdir conf$$.dir 2>/dev/null
13614
 
13615 202 julius
 
13616
@%:@ as_fn_mkdir_p
13617
@%:@ -------------
13618
@%:@ Create "$as_dir" as a directory, including parents if necessary.
13619
as_fn_mkdir_p ()
13620
{
13621
 
13622
  case $as_dir in #(
13623
  -*) as_dir=./$as_dir;;
13624
  esac
13625
  test -d "$as_dir" || eval $as_mkdir_p || {
13626
    as_dirs=
13627
    while :; do
13628
      case $as_dir in #(
13629
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13630
      *) as_qdir=$as_dir;;
13631
      esac
13632
      as_dirs="'$as_qdir' $as_dirs"
13633
      as_dir=`$as_dirname -- "$as_dir" ||
13634
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13635
         X"$as_dir" : 'X\(//\)[^/]' \| \
13636
         X"$as_dir" : 'X\(//\)$' \| \
13637
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13638
$as_echo X"$as_dir" |
13639
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13640
            s//\1/
13641
            q
13642
          }
13643
          /^X\(\/\/\)[^/].*/{
13644
            s//\1/
13645
            q
13646
          }
13647
          /^X\(\/\/\)$/{
13648
            s//\1/
13649
            q
13650
          }
13651
          /^X\(\/\).*/{
13652
            s//\1/
13653
            q
13654
          }
13655
          s/.*/./; q'`
13656
      test -d "$as_dir" && break
13657
    done
13658
    test -z "$as_dirs" || eval "mkdir $as_dirs"
13659
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13660
 
13661
 
13662
} @%:@ as_fn_mkdir_p
13663 19 jeremybenn
if mkdir -p . 2>/dev/null; then
13664 202 julius
  as_mkdir_p='mkdir -p "$as_dir"'
13665 19 jeremybenn
else
13666
  test -d ./-p && rmdir ./-p
13667
  as_mkdir_p=false
13668
fi
13669
 
13670
if test -x / >/dev/null 2>&1; then
13671
  as_test_x='test -x'
13672
else
13673
  if ls -dL / >/dev/null 2>&1; then
13674
    as_ls_L_option=L
13675
  else
13676
    as_ls_L_option=
13677
  fi
13678
  as_test_x='
13679
    eval sh -c '\''
13680
      if test -d "$1"; then
13681 202 julius
        test -d "$1/.";
13682 19 jeremybenn
      else
13683 202 julius
        case $1 in @%:@(
13684
        -*)set "./$1";;
13685 19 jeremybenn
        esac;
13686 202 julius
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
13687 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
13688
    '\'' sh
13689
  '
13690
fi
13691
as_executable_p=$as_test_x
13692
 
13693
# Sed expression to map a string onto a valid CPP name.
13694
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13695
 
13696
# Sed expression to map a string onto a valid variable name.
13697
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13698
 
13699
 
13700
exec 6>&1
13701 202 julius
## ----------------------------------- ##
13702
## Main body of $CONFIG_STATUS script. ##
13703
## ----------------------------------- ##
13704
_ASEOF
13705
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13706 19 jeremybenn
 
13707 202 julius
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13708
# Save the log message, to keep $0 and so on meaningful, and to
13709 19 jeremybenn
# report actual input values of CONFIG_FILES etc. instead of their
13710
# values after options handling.
13711
ac_log="
13712 233 julius
This file was extended by or1ksim $as_me 2010-08-01, which was
13713 202 julius
generated by GNU Autoconf 2.64.  Invocation command line was
13714 19 jeremybenn
 
13715
  CONFIG_FILES    = $CONFIG_FILES
13716
  CONFIG_HEADERS  = $CONFIG_HEADERS
13717
  CONFIG_LINKS    = $CONFIG_LINKS
13718
  CONFIG_COMMANDS = $CONFIG_COMMANDS
13719
  $ $0 $@
13720
 
13721
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13722
"
13723
 
13724
_ACEOF
13725
 
13726 202 julius
case $ac_config_files in *"
13727
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13728
esac
13729
 
13730
case $ac_config_headers in *"
13731
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13732
esac
13733
 
13734
 
13735
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13736 19 jeremybenn
# Files that config.status was made for.
13737
config_files="$ac_config_files"
13738
config_headers="$ac_config_headers"
13739
config_commands="$ac_config_commands"
13740
 
13741
_ACEOF
13742
 
13743 202 julius
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13744 19 jeremybenn
ac_cs_usage="\
13745 202 julius
\`$as_me' instantiates files and other configuration actions
13746
from templates according to the current configuration.  Unless the files
13747
and actions are specified as TAGs, all are instantiated by default.
13748 19 jeremybenn
 
13749 202 julius
Usage: $0 [OPTION]... [TAG]...
13750 19 jeremybenn
 
13751
  -h, --help       print this help, then exit
13752
  -V, --version    print version number and configuration settings, then exit
13753 202 julius
  -q, --quiet, --silent
13754
                   do not print progress messages
13755 19 jeremybenn
  -d, --debug      don't remove temporary files
13756
      --recheck    update $as_me by reconfiguring in the same conditions
13757 202 julius
      --file=FILE[:TEMPLATE]
13758
                   instantiate the configuration file FILE
13759
      --header=FILE[:TEMPLATE]
13760
                   instantiate the configuration header FILE
13761 19 jeremybenn
 
13762
Configuration files:
13763
$config_files
13764
 
13765
Configuration headers:
13766
$config_headers
13767
 
13768
Configuration commands:
13769
$config_commands
13770
 
13771 202 julius
Report bugs to ."
13772 19 jeremybenn
 
13773
_ACEOF
13774 202 julius
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13775 19 jeremybenn
ac_cs_version="\\
13776 233 julius
or1ksim config.status 2010-08-01
13777 202 julius
configured by $0, generated by GNU Autoconf 2.64,
13778
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13779 19 jeremybenn
 
13780 202 julius
Copyright (C) 2009 Free Software Foundation, Inc.
13781 19 jeremybenn
This config.status script is free software; the Free Software Foundation
13782
gives unlimited permission to copy, distribute and modify it."
13783
 
13784
ac_pwd='$ac_pwd'
13785
srcdir='$srcdir'
13786
INSTALL='$INSTALL'
13787
MKDIR_P='$MKDIR_P'
13788 202 julius
AWK='$AWK'
13789
test -n "\$AWK" || AWK=awk
13790 19 jeremybenn
_ACEOF
13791
 
13792 202 julius
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13793
# The default lists apply if the user does not specify any file.
13794 19 jeremybenn
ac_need_defaults=:
13795
while test $# != 0
13796
do
13797
  case $1 in
13798
  --*=*)
13799
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13800
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13801
    ac_shift=:
13802
    ;;
13803
  *)
13804
    ac_option=$1
13805
    ac_optarg=$2
13806
    ac_shift=shift
13807
    ;;
13808
  esac
13809
 
13810
  case $ac_option in
13811
  # Handling of the options.
13812
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13813
    ac_cs_recheck=: ;;
13814
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13815 202 julius
    $as_echo "$ac_cs_version"; exit ;;
13816 19 jeremybenn
  --debug | --debu | --deb | --de | --d | -d )
13817
    debug=: ;;
13818
  --file | --fil | --fi | --f )
13819
    $ac_shift
13820 202 julius
    case $ac_optarg in
13821
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13822
    esac
13823
    as_fn_append CONFIG_FILES " '$ac_optarg'"
13824 19 jeremybenn
    ac_need_defaults=false;;
13825
  --header | --heade | --head | --hea )
13826
    $ac_shift
13827 202 julius
    case $ac_optarg in
13828
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13829
    esac
13830
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13831 19 jeremybenn
    ac_need_defaults=false;;
13832
  --he | --h)
13833
    # Conflict between --help and --header
13834 202 julius
    as_fn_error "ambiguous option: \`$1'
13835
Try \`$0 --help' for more information.";;
13836 19 jeremybenn
  --help | --hel | -h )
13837 202 julius
    $as_echo "$ac_cs_usage"; exit ;;
13838 19 jeremybenn
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13839
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13840
    ac_cs_silent=: ;;
13841
 
13842
  # This is an error.
13843 202 julius
  -*) as_fn_error "unrecognized option: \`$1'
13844
Try \`$0 --help' for more information." ;;
13845 19 jeremybenn
 
13846 202 julius
  *) as_fn_append ac_config_targets " $1"
13847 19 jeremybenn
     ac_need_defaults=false ;;
13848
 
13849
  esac
13850
  shift
13851
done
13852
 
13853
ac_configure_extra_args=
13854
 
13855
if $ac_cs_silent; then
13856
  exec 6>/dev/null
13857
  ac_configure_extra_args="$ac_configure_extra_args --silent"
13858
fi
13859
 
13860
_ACEOF
13861 202 julius
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13862 19 jeremybenn
if \$ac_cs_recheck; then
13863 202 julius
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13864
  shift
13865
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13866
  CONFIG_SHELL='$SHELL'
13867 19 jeremybenn
  export CONFIG_SHELL
13868 202 julius
  exec "\$@"
13869 19 jeremybenn
fi
13870
 
13871
_ACEOF
13872 202 julius
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13873 19 jeremybenn
exec 5>>config.log
13874
{
13875
  echo
13876
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
13877
@%:@@%:@ Running $as_me. @%:@@%:@
13878
_ASBOX
13879 202 julius
  $as_echo "$ac_log"
13880 19 jeremybenn
} >&5
13881
 
13882
_ACEOF
13883 202 julius
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13884 19 jeremybenn
#
13885
# INIT-COMMANDS
13886
#
13887 202 julius
 
13888
 
13889
# The HP-UX ksh and POSIX shell print the target directory to stdout
13890
# if CDPATH is set.
13891
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13892
 
13893
sed_quote_subst='$sed_quote_subst'
13894
double_quote_subst='$double_quote_subst'
13895
delay_variable_subst='$delay_variable_subst'
13896
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13897
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13898
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13899
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13900
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13901
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13902
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13903
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13904
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13905
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13906
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13907
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13908
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13909
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13910
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13911
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13912
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13913
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13914
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13915
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13916
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13917
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13918
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13919
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13920
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13921
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13922
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13923
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13924
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13925
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13926
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13927
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13928
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13929
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13930
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13931
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13932
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13933
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13934
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13935
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13936
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13937
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13938
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13939
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13940
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"`'
13941
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"`'
13942
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13943
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13944
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13945
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13946
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13947
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13948
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13949
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13950
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13951
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13952
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13953
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13954
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13955
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13956
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13957
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13958
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13959
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13960
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13961
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13962
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13963
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13964
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13965
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13966
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13967
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13968
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13969
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13970
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13971
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13972
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13973
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13974
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13975
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13976
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13977
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13978
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13979
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13980
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13981
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13982
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13983
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13984
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13985
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13986
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13987
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13988
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13989
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13990
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13991
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13992
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13993
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13994
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13995
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13996
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13997
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13998
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13999
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14000
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14001
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14002
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14003
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14004
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14005
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14006
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14007
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14008
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14009
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14010
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14011
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14012
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14013
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14014
 
14015
LTCC='$LTCC'
14016
LTCFLAGS='$LTCFLAGS'
14017
compiler='$compiler_DEFAULT'
14018
 
14019
# Quote evaled strings.
14020
for var in SED \
14021
GREP \
14022
EGREP \
14023
FGREP \
14024
LD \
14025
NM \
14026
LN_S \
14027
lt_SP2NL \
14028
lt_NL2SP \
14029
reload_flag \
14030
OBJDUMP \
14031
deplibs_check_method \
14032
file_magic_cmd \
14033
AR \
14034
AR_FLAGS \
14035
STRIP \
14036
RANLIB \
14037
CC \
14038
CFLAGS \
14039
compiler \
14040
lt_cv_sys_global_symbol_pipe \
14041
lt_cv_sys_global_symbol_to_cdecl \
14042
lt_cv_sys_global_symbol_to_c_name_address \
14043
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14044
SHELL \
14045
ECHO \
14046
lt_prog_compiler_no_builtin_flag \
14047
lt_prog_compiler_wl \
14048
lt_prog_compiler_pic \
14049
lt_prog_compiler_static \
14050
lt_cv_prog_compiler_c_o \
14051
need_locks \
14052
DSYMUTIL \
14053
NMEDIT \
14054
LIPO \
14055
OTOOL \
14056
OTOOL64 \
14057
shrext_cmds \
14058
export_dynamic_flag_spec \
14059
whole_archive_flag_spec \
14060
compiler_needs_object \
14061
with_gnu_ld \
14062
allow_undefined_flag \
14063
no_undefined_flag \
14064
hardcode_libdir_flag_spec \
14065
hardcode_libdir_flag_spec_ld \
14066
hardcode_libdir_separator \
14067
fix_srcfile_path \
14068
exclude_expsyms \
14069
include_expsyms \
14070
file_list_spec \
14071
variables_saved_for_relink \
14072
libname_spec \
14073
library_names_spec \
14074
soname_spec \
14075
finish_eval \
14076
old_striplib \
14077
striplib; do
14078
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14079
    *[\\\\\\\`\\"\\\$]*)
14080
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14081
      ;;
14082
    *)
14083
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14084
      ;;
14085
    esac
14086
done
14087
 
14088
# Double-quote double-evaled strings.
14089
for var in reload_cmds \
14090
old_postinstall_cmds \
14091
old_postuninstall_cmds \
14092
old_archive_cmds \
14093
extract_expsyms_cmds \
14094
old_archive_from_new_cmds \
14095
old_archive_from_expsyms_cmds \
14096
archive_cmds \
14097
archive_expsym_cmds \
14098
module_cmds \
14099
module_expsym_cmds \
14100
export_symbols_cmds \
14101
prelink_cmds \
14102
postinstall_cmds \
14103
postuninstall_cmds \
14104
finish_cmds \
14105
sys_lib_search_path_spec \
14106
sys_lib_dlsearch_path_spec; do
14107
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14108
    *[\\\\\\\`\\"\\\$]*)
14109
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14110
      ;;
14111
    *)
14112
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14113
      ;;
14114
    esac
14115
done
14116
 
14117
# Fix-up fallback echo if it was mangled by the above quoting rules.
14118
case \$lt_ECHO in
14119
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14120
  ;;
14121
esac
14122
 
14123
ac_aux_dir='$ac_aux_dir'
14124
xsi_shell='$xsi_shell'
14125
lt_shell_append='$lt_shell_append'
14126
 
14127
# See if we are running on zsh, and set the options which allow our
14128
# commands through without removal of \ escapes INIT.
14129
if test -n "\${ZSH_VERSION+set}" ; then
14130
   setopt NO_GLOB_SUBST
14131
fi
14132
 
14133
 
14134
    PACKAGE='$PACKAGE'
14135
    VERSION='$VERSION'
14136
    TIMESTAMP='$TIMESTAMP'
14137
    RM='$RM'
14138
    ofile='$ofile'
14139
 
14140
 
14141
 
14142 19 jeremybenn
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14143
 
14144
_ACEOF
14145
 
14146 202 julius
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14147 19 jeremybenn
 
14148
# Handling of arguments.
14149
for ac_config_target in $ac_config_targets
14150
do
14151
  case $ac_config_target in
14152 202 julius
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14153 19 jeremybenn
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14154
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14155
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14156 60 jeremybenn
    "argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
14157 19 jeremybenn
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
14158
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
14159
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
14160
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
14161 60 jeremybenn
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
14162 19 jeremybenn
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
14163 233 julius
    "softfloat/Makefile") CONFIG_FILES="$CONFIG_FILES softfloat/Makefile" ;;
14164 19 jeremybenn
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
14165 60 jeremybenn
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14166 19 jeremybenn
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
14167
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
14168
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
14169
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
14170
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
14171 202 julius
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
14172
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
14173
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14174
    "testsuite/config/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/config/Makefile" ;;
14175
    "testsuite/lib/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/lib/Makefile" ;;
14176
    "testsuite/libsim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/libsim.tests/Makefile" ;;
14177
    "testsuite/or1ksim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/or1ksim.tests/Makefile" ;;
14178
    "testsuite/test-code/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/Makefile" ;;
14179
    "testsuite/test-code/lib-iftest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-iftest/Makefile" ;;
14180
    "testsuite/test-code/lib-inttest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-inttest/Makefile" ;;
14181
    "testsuite/test-code/lib-jtag/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-jtag/Makefile" ;;
14182
    "testsuite/test-code/lib-upcalls/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-upcalls/Makefile" ;;
14183
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
14184 19 jeremybenn
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
14185 60 jeremybenn
    "cpu/dlx/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
14186
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
14187 19 jeremybenn
 
14188 202 julius
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14189 19 jeremybenn
  esac
14190
done
14191
 
14192
 
14193
# If the user did not use the arguments to specify the items to instantiate,
14194
# then the envvar interface is used.  Set only those that are not.
14195
# We use the long form for the default assignment because of an extremely
14196
# bizarre bug on SunOS 4.1.3.
14197
if $ac_need_defaults; then
14198
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14199
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14200
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14201
fi
14202
 
14203
# Have a temporary directory for convenience.  Make it in the build tree
14204
# simply because there is no reason against having it here, and in addition,
14205
# creating and moving files from /tmp can sometimes cause problems.
14206
# Hook for its removal unless debugging.
14207
# Note that there is a small window in which the directory will not be cleaned:
14208
# after its creation but before its name has been assigned to `$tmp'.
14209
$debug ||
14210
{
14211
  tmp=
14212
  trap 'exit_status=$?
14213
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14214
' 0
14215 202 julius
  trap 'as_fn_exit 1' 1 2 13 15
14216 19 jeremybenn
}
14217
# Create a (secure) tmp directory for tmp files.
14218
 
14219
{
14220
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14221
  test -n "$tmp" && test -d "$tmp"
14222
}  ||
14223
{
14224
  tmp=./conf$$-$RANDOM
14225
  (umask 077 && mkdir "$tmp")
14226 202 julius
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14227 19 jeremybenn
 
14228 202 julius
# Set up the scripts for CONFIG_FILES section.
14229
# No need to generate them if there are no CONFIG_FILES.
14230
# This happens for instance with `./config.status config.h'.
14231 19 jeremybenn
if test -n "$CONFIG_FILES"; then
14232
 
14233 202 julius
 
14234
ac_cr=`echo X | tr X '\015'`
14235
# On cygwin, bash can eat \r inside `` if the user requested igncr.
14236
# But we know of no other shell where ac_cr would be empty at this
14237
# point, so we can use a bashism as a fallback.
14238
if test "x$ac_cr" = x; then
14239
  eval ac_cr=\$\'\\r\'
14240
fi
14241
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
14242
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14243
  ac_cs_awk_cr='\r'
14244
else
14245
  ac_cs_awk_cr=$ac_cr
14246
fi
14247
 
14248
echo 'BEGIN {' >"$tmp/subs1.awk" &&
14249 19 jeremybenn
_ACEOF
14250
 
14251
 
14252 202 julius
{
14253
  echo "cat >conf$$subs.awk <<_ACEOF" &&
14254
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14255
  echo "_ACEOF"
14256
} >conf$$subs.sh ||
14257
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14258
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14259 19 jeremybenn
ac_delim='%!_!# '
14260
for ac_last_try in false false false false false :; do
14261 202 julius
  . ./conf$$subs.sh ||
14262
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14263 19 jeremybenn
 
14264 202 julius
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14265
  if test $ac_delim_n = $ac_delim_num; then
14266 19 jeremybenn
    break
14267
  elif $ac_last_try; then
14268 202 julius
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14269 19 jeremybenn
  else
14270
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14271
  fi
14272
done
14273 202 julius
rm -f conf$$subs.sh
14274 19 jeremybenn
 
14275 202 julius
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14276
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14277 19 jeremybenn
_ACEOF
14278 202 julius
sed -n '
14279
h
14280
s/^/S["/; s/!.*/"]=/
14281
p
14282
g
14283
s/^[^!]*!//
14284
:repl
14285
t repl
14286
s/'"$ac_delim"'$//
14287
t delim
14288
:nl
14289
h
14290
s/\(.\{148\}\).*/\1/
14291
t more1
14292
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14293
p
14294
n
14295
b repl
14296
:more1
14297
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14298
p
14299
g
14300
s/.\{148\}//
14301
t nl
14302
:delim
14303
h
14304
s/\(.\{148\}\).*/\1/
14305
t more2
14306
s/["\\]/\\&/g; s/^/"/; s/$/"/
14307
p
14308
b
14309
:more2
14310
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14311
p
14312
g
14313
s/.\{148\}//
14314
t delim
14315
' 
14316
/^[^""]/{
14317
  N
14318
  s/\n//
14319
}
14320
' >>$CONFIG_STATUS || ac_write_fail=1
14321
rm -f conf$$subs.awk
14322
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14323
_ACAWK
14324
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14325
  for (key in S) S_is_set[key] = 1
14326
  FS = ""
14327 19 jeremybenn
 
14328 202 julius
}
14329
{
14330
  line = $ 0
14331
  nfields = split(line, field, "@")
14332
  substed = 0
14333
  len = length(field[1])
14334
  for (i = 2; i < nfields; i++) {
14335
    key = field[i]
14336
    keylen = length(key)
14337
    if (S_is_set[key]) {
14338
      value = S[key]
14339
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14340
      len += length(value) + length(field[++i])
14341
      substed = 1
14342
    } else
14343
      len += 1 + keylen
14344
  }
14345 19 jeremybenn
 
14346 202 julius
  print line
14347
}
14348 19 jeremybenn
 
14349 202 julius
_ACAWK
14350 19 jeremybenn
_ACEOF
14351 202 julius
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14352
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14353
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14354
else
14355
  cat
14356
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14357
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
14358 19 jeremybenn
_ACEOF
14359
 
14360
# VPATH may cause trouble with some makes, so we remove $(srcdir),
14361
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14362
# trailing colons and then remove the whole line if VPATH becomes empty
14363
# (actually we leave an empty line to preserve line numbers).
14364
if test "x$srcdir" = x.; then
14365
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
14366
s/:*\$(srcdir):*/:/
14367
s/:*\${srcdir}:*/:/
14368
s/:*@srcdir@:*/:/
14369
s/^\([^=]*=[     ]*\):*/\1/
14370
s/:*$//
14371
s/^[^=]*=[       ]*$//
14372
}'
14373
fi
14374
 
14375 202 julius
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14376 19 jeremybenn
fi # test -n "$CONFIG_FILES"
14377
 
14378 202 julius
# Set up the scripts for CONFIG_HEADERS section.
14379
# No need to generate them if there are no CONFIG_HEADERS.
14380
# This happens for instance with `./config.status Makefile'.
14381
if test -n "$CONFIG_HEADERS"; then
14382
cat >"$tmp/defines.awk" <<\_ACAWK ||
14383
BEGIN {
14384
_ACEOF
14385 19 jeremybenn
 
14386 202 julius
# Transform confdefs.h into an awk script `defines.awk', embedded as
14387
# here-document in config.status, that substitutes the proper values into
14388
# config.h.in to produce config.h.
14389
 
14390
# Create a delimiter string that does not exist in confdefs.h, to ease
14391
# handling of long lines.
14392
ac_delim='%!_!# '
14393
for ac_last_try in false false :; do
14394
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14395
  if test -z "$ac_t"; then
14396
    break
14397
  elif $ac_last_try; then
14398
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14399
  else
14400
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14401
  fi
14402
done
14403
 
14404
# For the awk script, D is an array of macro values keyed by name,
14405
# likewise P contains macro parameters if any.  Preserve backslash
14406
# newline sequences.
14407
 
14408
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14409
sed -n '
14410
s/.\{148\}/&'"$ac_delim"'/g
14411
t rset
14412
:rset
14413
s/^[     ]*#[    ]*define[       ][      ]*/ /
14414
t def
14415
d
14416
:def
14417
s/\\$//
14418
t bsnl
14419
s/["\\]/\\&/g
14420
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14421
D["\1"]=" \3"/p
14422
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14423
d
14424
:bsnl
14425
s/["\\]/\\&/g
14426
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14427
D["\1"]=" \3\\\\\\n"\\/p
14428
t cont
14429
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14430
t cont
14431
d
14432
:cont
14433
n
14434
s/.\{148\}/&'"$ac_delim"'/g
14435
t clear
14436
:clear
14437
s/\\$//
14438
t bsnlc
14439
s/["\\]/\\&/g; s/^/"/; s/$/"/p
14440
d
14441
:bsnlc
14442
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14443
b cont
14444
' 
14445
s/'"$ac_delim"'/"\\\
14446
"/g' >>$CONFIG_STATUS || ac_write_fail=1
14447
 
14448
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14449
  for (key in D) D_is_set[key] = 1
14450
  FS = ""
14451
}
14452
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14453
  line = \$ 0
14454
  split(line, arg, " ")
14455
  if (arg[1] == "#") {
14456
    defundef = arg[2]
14457
    mac1 = arg[3]
14458
  } else {
14459
    defundef = substr(arg[1], 2)
14460
    mac1 = arg[2]
14461
  }
14462
  split(mac1, mac2, "(") #)
14463
  macro = mac2[1]
14464
  prefix = substr(line, 1, index(line, defundef) - 1)
14465
  if (D_is_set[macro]) {
14466
    # Preserve the white space surrounding the "#".
14467
    print prefix "define", macro P[macro] D[macro]
14468
    next
14469
  } else {
14470
    # Replace #undef with comments.  This is necessary, for example,
14471
    # in the case of _POSIX_SOURCE, which is predefined and required
14472
    # on some systems where configure will not decide to define it.
14473
    if (defundef == "undef") {
14474
      print "/*", prefix defundef, macro, "*/"
14475
      next
14476
    }
14477
  }
14478
}
14479
{ print }
14480
_ACAWK
14481
_ACEOF
14482
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14483
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
14484
fi # test -n "$CONFIG_HEADERS"
14485
 
14486
 
14487
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14488
shift
14489
for ac_tag
14490 19 jeremybenn
do
14491
  case $ac_tag in
14492
  :[FHLC]) ac_mode=$ac_tag; continue;;
14493
  esac
14494
  case $ac_mode$ac_tag in
14495
  :[FHL]*:*);;
14496 202 julius
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14497 19 jeremybenn
  :[FH]-) ac_tag=-:-;;
14498
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14499
  esac
14500
  ac_save_IFS=$IFS
14501
  IFS=:
14502
  set x $ac_tag
14503
  IFS=$ac_save_IFS
14504
  shift
14505
  ac_file=$1
14506
  shift
14507
 
14508
  case $ac_mode in
14509
  :L) ac_source=$1;;
14510
  :[FH])
14511
    ac_file_inputs=
14512
    for ac_f
14513
    do
14514
      case $ac_f in
14515
      -) ac_f="$tmp/stdin";;
14516
      *) # Look for the file first in the build tree, then in the source tree
14517
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
14518
         # because $ac_f cannot contain `:'.
14519
         test -f "$ac_f" ||
14520
           case $ac_f in
14521
           [\\/$]*) false;;
14522
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14523
           esac ||
14524 202 julius
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14525 19 jeremybenn
      esac
14526 202 julius
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14527
      as_fn_append ac_file_inputs " '$ac_f'"
14528 19 jeremybenn
    done
14529
 
14530
    # Let's still pretend it is `configure' which instantiates (i.e., don't
14531
    # use $as_me), people would be surprised to read:
14532
    #    /* config.h.  Generated by config.status.  */
14533 202 julius
    configure_input='Generated from '`
14534
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14535
        `' by configure.'
14536 19 jeremybenn
    if test x"$ac_file" != x-; then
14537
      configure_input="$ac_file.  $configure_input"
14538 202 julius
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14539
$as_echo "$as_me: creating $ac_file" >&6;}
14540 19 jeremybenn
    fi
14541 202 julius
    # Neutralize special characters interpreted by sed in replacement strings.
14542
    case $configure_input in #(
14543
    *\&* | *\|* | *\\* )
14544
       ac_sed_conf_input=`$as_echo "$configure_input" |
14545
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14546
    *) ac_sed_conf_input=$configure_input;;
14547
    esac
14548 19 jeremybenn
 
14549
    case $ac_tag in
14550 202 julius
    *:-:* | *:-) cat >"$tmp/stdin" \
14551
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14552 19 jeremybenn
    esac
14553
    ;;
14554
  esac
14555
 
14556
  ac_dir=`$as_dirname -- "$ac_file" ||
14557
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14558
         X"$ac_file" : 'X\(//\)[^/]' \| \
14559
         X"$ac_file" : 'X\(//\)$' \| \
14560
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14561 202 julius
$as_echo X"$ac_file" |
14562 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14563
            s//\1/
14564
            q
14565
          }
14566
          /^X\(\/\/\)[^/].*/{
14567
            s//\1/
14568
            q
14569
          }
14570
          /^X\(\/\/\)$/{
14571
            s//\1/
14572
            q
14573
          }
14574
          /^X\(\/\).*/{
14575
            s//\1/
14576
            q
14577
          }
14578
          s/.*/./; q'`
14579 202 julius
  as_dir="$ac_dir"; as_fn_mkdir_p
14580 19 jeremybenn
  ac_builddir=.
14581
 
14582
case "$ac_dir" in
14583
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14584
*)
14585 202 julius
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14586 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
14587 202 julius
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14588 19 jeremybenn
  case $ac_top_builddir_sub in
14589
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14590
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14591
  esac ;;
14592
esac
14593
ac_abs_top_builddir=$ac_pwd
14594
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14595
# for backward compatibility:
14596
ac_top_builddir=$ac_top_build_prefix
14597
 
14598
case $srcdir in
14599
  .)  # We are building in place.
14600
    ac_srcdir=.
14601
    ac_top_srcdir=$ac_top_builddir_sub
14602
    ac_abs_top_srcdir=$ac_pwd ;;
14603
  [\\/]* | ?:[\\/]* )  # Absolute name.
14604
    ac_srcdir=$srcdir$ac_dir_suffix;
14605
    ac_top_srcdir=$srcdir
14606
    ac_abs_top_srcdir=$srcdir ;;
14607
  *) # Relative name.
14608
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14609
    ac_top_srcdir=$ac_top_build_prefix$srcdir
14610
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14611
esac
14612
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14613
 
14614
 
14615
  case $ac_mode in
14616
  :F)
14617
  #
14618
  # CONFIG_FILE
14619
  #
14620
 
14621
  case $INSTALL in
14622
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14623
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14624
  esac
14625
  ac_MKDIR_P=$MKDIR_P
14626
  case $MKDIR_P in
14627
  [\\/$]* | ?:[\\/]* ) ;;
14628
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14629
  esac
14630
_ACEOF
14631
 
14632 202 julius
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14633 19 jeremybenn
# If the template does not know about datarootdir, expand it.
14634
# FIXME: This hack should be removed a few years after 2.60.
14635
ac_datarootdir_hack=; ac_datarootdir_seen=
14636 202 julius
ac_sed_dataroot='
14637
/datarootdir/ {
14638 19 jeremybenn
  p
14639
  q
14640
}
14641
/@datadir@/p
14642
/@docdir@/p
14643
/@infodir@/p
14644
/@localedir@/p
14645 202 julius
/@mandir@/p'
14646
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14647 19 jeremybenn
*datarootdir*) ac_datarootdir_seen=yes;;
14648
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14649 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14650
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14651 19 jeremybenn
_ACEOF
14652 202 julius
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14653 19 jeremybenn
  ac_datarootdir_hack='
14654
  s&@datadir@&$datadir&g
14655
  s&@docdir@&$docdir&g
14656
  s&@infodir@&$infodir&g
14657
  s&@localedir@&$localedir&g
14658
  s&@mandir@&$mandir&g
14659 202 julius
  s&\\\${datarootdir}&$datarootdir&g' ;;
14660 19 jeremybenn
esac
14661
_ACEOF
14662
 
14663
# Neutralize VPATH when `$srcdir' = `.'.
14664
# Shell code in configure.ac might set extrasub.
14665
# FIXME: do we really want to maintain this feature?
14666 202 julius
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14667
ac_sed_extra="$ac_vpsub
14668 19 jeremybenn
$extrasub
14669
_ACEOF
14670 202 julius
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14671 19 jeremybenn
:t
14672
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14673 202 julius
s|@configure_input@|$ac_sed_conf_input|;t t
14674 19 jeremybenn
s&@top_builddir@&$ac_top_builddir_sub&;t t
14675 202 julius
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14676 19 jeremybenn
s&@srcdir@&$ac_srcdir&;t t
14677
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14678
s&@top_srcdir@&$ac_top_srcdir&;t t
14679
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14680
s&@builddir@&$ac_builddir&;t t
14681
s&@abs_builddir@&$ac_abs_builddir&;t t
14682
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14683
s&@INSTALL@&$ac_INSTALL&;t t
14684
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14685
$ac_datarootdir_hack
14686 202 julius
"
14687
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14688
  || as_fn_error "could not create $ac_file" "$LINENO" 5
14689 19 jeremybenn
 
14690
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14691
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14692
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14693 202 julius
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14694 19 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&5
14695 202 julius
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14696 19 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&2;}
14697
 
14698
  rm -f "$tmp/stdin"
14699
  case $ac_file in
14700 202 julius
  -) cat "$tmp/out" && rm -f "$tmp/out";;
14701
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14702
  esac \
14703
  || as_fn_error "could not create $ac_file" "$LINENO" 5
14704 19 jeremybenn
 ;;
14705
  :H)
14706
  #
14707
  # CONFIG_HEADER
14708
  #
14709
  if test x"$ac_file" != x-; then
14710 202 julius
    {
14711
      $as_echo "/* $configure_input  */" \
14712
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14713
    } >"$tmp/config.h" \
14714
      || as_fn_error "could not create $ac_file" "$LINENO" 5
14715
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14716
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14717
$as_echo "$as_me: $ac_file is unchanged" >&6;}
14718 19 jeremybenn
    else
14719 202 julius
      rm -f "$ac_file"
14720
      mv "$tmp/config.h" "$ac_file" \
14721
        || as_fn_error "could not create $ac_file" "$LINENO" 5
14722 19 jeremybenn
    fi
14723
  else
14724 202 julius
    $as_echo "/* $configure_input  */" \
14725
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14726
      || as_fn_error "could not create -" "$LINENO" 5
14727 19 jeremybenn
  fi
14728 202 julius
# Compute "$ac_file"'s index in $config_headers.
14729
_am_arg="$ac_file"
14730 19 jeremybenn
_am_stamp_count=1
14731
for _am_header in $config_headers :; do
14732
  case $_am_header in
14733
    $_am_arg | $_am_arg:* )
14734
      break ;;
14735
    * )
14736
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14737
  esac
14738
done
14739
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14740
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14741
         X"$_am_arg" : 'X\(//\)[^/]' \| \
14742
         X"$_am_arg" : 'X\(//\)$' \| \
14743
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14744 202 julius
$as_echo X"$_am_arg" |
14745 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14746
            s//\1/
14747
            q
14748
          }
14749
          /^X\(\/\/\)[^/].*/{
14750
            s//\1/
14751
            q
14752
          }
14753
          /^X\(\/\/\)$/{
14754
            s//\1/
14755
            q
14756
          }
14757
          /^X\(\/\).*/{
14758
            s//\1/
14759
            q
14760
          }
14761
          s/.*/./; q'`/stamp-h$_am_stamp_count
14762
 ;;
14763
 
14764 202 julius
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14765
$as_echo "$as_me: executing $ac_file commands" >&6;}
14766 19 jeremybenn
 ;;
14767
  esac
14768
 
14769
 
14770
  case $ac_file$ac_mode in
14771 202 julius
    "libtool":C)
14772
 
14773
    # See if we are running on zsh, and set the options which allow our
14774
    # commands through without removal of \ escapes.
14775
    if test -n "${ZSH_VERSION+set}" ; then
14776
      setopt NO_GLOB_SUBST
14777
    fi
14778
 
14779
    cfgfile="${ofile}T"
14780
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14781
    $RM "$cfgfile"
14782
 
14783
    cat <<_LT_EOF >> "$cfgfile"
14784
#! $SHELL
14785
 
14786
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14787
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14788
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14789
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14790
#
14791
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14792
#                 2006, 2007, 2008 Free Software Foundation, Inc.
14793
#   Written by Gordon Matzigkeit, 1996
14794
#
14795
#   This file is part of GNU Libtool.
14796
#
14797
# GNU Libtool is free software; you can redistribute it and/or
14798
# modify it under the terms of the GNU General Public License as
14799
# published by the Free Software Foundation; either version 2 of
14800
# the License, or (at your option) any later version.
14801
#
14802
# As a special exception to the GNU General Public License,
14803
# if you distribute this file as part of a program or library that
14804
# is built using GNU Libtool, you may include this file under the
14805
# same distribution terms that you use for the rest of that program.
14806
#
14807
# GNU Libtool is distributed in the hope that it will be useful,
14808
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14809
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14810
# GNU General Public License for more details.
14811
#
14812
# You should have received a copy of the GNU General Public License
14813
# along with GNU Libtool; see the file COPYING.  If not, a copy
14814
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14815
# obtained by writing to the Free Software Foundation, Inc.,
14816
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14817
 
14818
 
14819
# The names of the tagged configurations supported by this script.
14820
available_tags=""
14821
 
14822
# ### BEGIN LIBTOOL CONFIG
14823
 
14824
# Which release of libtool.m4 was used?
14825
macro_version=$macro_version
14826
macro_revision=$macro_revision
14827
 
14828
# Whether or not to build shared libraries.
14829
build_libtool_libs=$enable_shared
14830
 
14831
# Whether or not to build static libraries.
14832
build_old_libs=$enable_static
14833
 
14834
# What type of objects to build.
14835
pic_mode=$pic_mode
14836
 
14837
# Whether or not to optimize for fast installation.
14838
fast_install=$enable_fast_install
14839
 
14840
# The host system.
14841
host_alias=$host_alias
14842
host=$host
14843
host_os=$host_os
14844
 
14845
# The build system.
14846
build_alias=$build_alias
14847
build=$build
14848
build_os=$build_os
14849
 
14850
# A sed program that does not truncate output.
14851
SED=$lt_SED
14852
 
14853
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14854
Xsed="\$SED -e 1s/^X//"
14855
 
14856
# A grep program that handles long lines.
14857
GREP=$lt_GREP
14858
 
14859
# An ERE matcher.
14860
EGREP=$lt_EGREP
14861
 
14862
# A literal string matcher.
14863
FGREP=$lt_FGREP
14864
 
14865
# A BSD- or MS-compatible name lister.
14866
NM=$lt_NM
14867
 
14868
# Whether we need soft or hard links.
14869
LN_S=$lt_LN_S
14870
 
14871
# What is the maximum length of a command?
14872
max_cmd_len=$max_cmd_len
14873
 
14874
# Object file suffix (normally "o").
14875
objext=$ac_objext
14876
 
14877
# Executable file suffix (normally "").
14878
exeext=$exeext
14879
 
14880
# whether the shell understands "unset".
14881
lt_unset=$lt_unset
14882
 
14883
# turn spaces into newlines.
14884
SP2NL=$lt_lt_SP2NL
14885
 
14886
# turn newlines into spaces.
14887
NL2SP=$lt_lt_NL2SP
14888
 
14889
# How to create reloadable object files.
14890
reload_flag=$lt_reload_flag
14891
reload_cmds=$lt_reload_cmds
14892
 
14893
# An object symbol dumper.
14894
OBJDUMP=$lt_OBJDUMP
14895
 
14896
# Method to check whether dependent libraries are shared objects.
14897
deplibs_check_method=$lt_deplibs_check_method
14898
 
14899
# Command to use when deplibs_check_method == "file_magic".
14900
file_magic_cmd=$lt_file_magic_cmd
14901
 
14902
# The archiver.
14903
AR=$lt_AR
14904
AR_FLAGS=$lt_AR_FLAGS
14905
 
14906
# A symbol stripping program.
14907
STRIP=$lt_STRIP
14908
 
14909
# Commands used to install an old-style archive.
14910
RANLIB=$lt_RANLIB
14911
old_postinstall_cmds=$lt_old_postinstall_cmds
14912
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14913
 
14914
# A C compiler.
14915
LTCC=$lt_CC
14916
 
14917
# LTCC compiler flags.
14918
LTCFLAGS=$lt_CFLAGS
14919
 
14920
# Take the output of nm and produce a listing of raw symbols and C names.
14921
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14922
 
14923
# Transform the output of nm in a proper C declaration.
14924
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14925
 
14926
# Transform the output of nm in a C name address pair.
14927
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14928
 
14929
# Transform the output of nm in a C name address pair when lib prefix is needed.
14930
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14931
 
14932
# The name of the directory that contains temporary libtool files.
14933
objdir=$objdir
14934
 
14935
# Shell to use when invoking shell scripts.
14936
SHELL=$lt_SHELL
14937
 
14938
# An echo program that does not interpret backslashes.
14939
ECHO=$lt_ECHO
14940
 
14941
# Used to examine libraries when file_magic_cmd begins with "file".
14942
MAGIC_CMD=$MAGIC_CMD
14943
 
14944
# Must we lock files when doing compilation?
14945
need_locks=$lt_need_locks
14946
 
14947
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14948
DSYMUTIL=$lt_DSYMUTIL
14949
 
14950
# Tool to change global to local symbols on Mac OS X.
14951
NMEDIT=$lt_NMEDIT
14952
 
14953
# Tool to manipulate fat objects and archives on Mac OS X.
14954
LIPO=$lt_LIPO
14955
 
14956
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14957
OTOOL=$lt_OTOOL
14958
 
14959
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14960
OTOOL64=$lt_OTOOL64
14961
 
14962
# Old archive suffix (normally "a").
14963
libext=$libext
14964
 
14965
# Shared library suffix (normally ".so").
14966
shrext_cmds=$lt_shrext_cmds
14967
 
14968
# The commands to extract the exported symbol list from a shared archive.
14969
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14970
 
14971
# Variables whose values should be saved in libtool wrapper scripts and
14972
# restored at link time.
14973
variables_saved_for_relink=$lt_variables_saved_for_relink
14974
 
14975
# Do we need the "lib" prefix for modules?
14976
need_lib_prefix=$need_lib_prefix
14977
 
14978
# Do we need a version for libraries?
14979
need_version=$need_version
14980
 
14981
# Library versioning type.
14982
version_type=$version_type
14983
 
14984
# Shared library runtime path variable.
14985
runpath_var=$runpath_var
14986
 
14987
# Shared library path variable.
14988
shlibpath_var=$shlibpath_var
14989
 
14990
# Is shlibpath searched before the hard-coded library search path?
14991
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14992
 
14993
# Format of library name prefix.
14994
libname_spec=$lt_libname_spec
14995
 
14996
# List of archive names.  First name is the real one, the rest are links.
14997
# The last name is the one that the linker finds with -lNAME
14998
library_names_spec=$lt_library_names_spec
14999
 
15000
# The coded name of the library, if different from the real name.
15001
soname_spec=$lt_soname_spec
15002
 
15003
# Command to use after installation of a shared archive.
15004
postinstall_cmds=$lt_postinstall_cmds
15005
 
15006
# Command to use after uninstallation of a shared archive.
15007
postuninstall_cmds=$lt_postuninstall_cmds
15008
 
15009
# Commands used to finish a libtool library installation in a directory.
15010
finish_cmds=$lt_finish_cmds
15011
 
15012
# As "finish_cmds", except a single script fragment to be evaled but
15013
# not shown.
15014
finish_eval=$lt_finish_eval
15015
 
15016
# Whether we should hardcode library paths into libraries.
15017
hardcode_into_libs=$hardcode_into_libs
15018
 
15019
# Compile-time system search path for libraries.
15020
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15021
 
15022
# Run-time system search path for libraries.
15023
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15024
 
15025
# Whether dlopen is supported.
15026
dlopen_support=$enable_dlopen
15027
 
15028
# Whether dlopen of programs is supported.
15029
dlopen_self=$enable_dlopen_self
15030
 
15031
# Whether dlopen of statically linked programs is supported.
15032
dlopen_self_static=$enable_dlopen_self_static
15033
 
15034
# Commands to strip libraries.
15035
old_striplib=$lt_old_striplib
15036
striplib=$lt_striplib
15037
 
15038
 
15039
# The linker used to build libraries.
15040
LD=$lt_LD
15041
 
15042
# Commands used to build an old-style archive.
15043
old_archive_cmds=$lt_old_archive_cmds
15044
 
15045
# A language specific compiler.
15046
CC=$lt_compiler
15047
 
15048
# Is the compiler the GNU compiler?
15049
with_gcc=$GCC
15050
 
15051
# Compiler flag to turn off builtin functions.
15052
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15053
 
15054
# How to pass a linker flag through the compiler.
15055
wl=$lt_lt_prog_compiler_wl
15056
 
15057
# Additional compiler flags for building library objects.
15058
pic_flag=$lt_lt_prog_compiler_pic
15059
 
15060
# Compiler flag to prevent dynamic linking.
15061
link_static_flag=$lt_lt_prog_compiler_static
15062
 
15063
# Does compiler simultaneously support -c and -o options?
15064
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15065
 
15066
# Whether or not to add -lc for building shared libraries.
15067
build_libtool_need_lc=$archive_cmds_need_lc
15068
 
15069
# Whether or not to disallow shared libs when runtime libs are static.
15070
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15071
 
15072
# Compiler flag to allow reflexive dlopens.
15073
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15074
 
15075
# Compiler flag to generate shared objects directly from archives.
15076
whole_archive_flag_spec=$lt_whole_archive_flag_spec
15077
 
15078
# Whether the compiler copes with passing no objects directly.
15079
compiler_needs_object=$lt_compiler_needs_object
15080
 
15081
# Create an old-style archive from a shared archive.
15082
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15083
 
15084
# Create a temporary old-style archive to link instead of a shared archive.
15085
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15086
 
15087
# Commands used to build a shared archive.
15088
archive_cmds=$lt_archive_cmds
15089
archive_expsym_cmds=$lt_archive_expsym_cmds
15090
 
15091
# Commands used to build a loadable module if different from building
15092
# a shared archive.
15093
module_cmds=$lt_module_cmds
15094
module_expsym_cmds=$lt_module_expsym_cmds
15095
 
15096
# Whether we are building with GNU ld or not.
15097
with_gnu_ld=$lt_with_gnu_ld
15098
 
15099
# Flag that allows shared libraries with undefined symbols to be built.
15100
allow_undefined_flag=$lt_allow_undefined_flag
15101
 
15102
# Flag that enforces no undefined symbols.
15103
no_undefined_flag=$lt_no_undefined_flag
15104
 
15105
# Flag to hardcode \$libdir into a binary during linking.
15106
# This must work even if \$libdir does not exist
15107
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15108
 
15109
# If ld is used when linking, flag to hardcode \$libdir into a binary
15110
# during linking.  This must work even if \$libdir does not exist.
15111
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15112
 
15113
# Whether we need a single "-rpath" flag with a separated argument.
15114
hardcode_libdir_separator=$lt_hardcode_libdir_separator
15115
 
15116
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15117
# DIR into the resulting binary.
15118
hardcode_direct=$hardcode_direct
15119
 
15120
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15121
# DIR into the resulting binary and the resulting library dependency is
15122
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15123
# library is relocated.
15124
hardcode_direct_absolute=$hardcode_direct_absolute
15125
 
15126
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15127
# into the resulting binary.
15128
hardcode_minus_L=$hardcode_minus_L
15129
 
15130
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15131
# into the resulting binary.
15132
hardcode_shlibpath_var=$hardcode_shlibpath_var
15133
 
15134
# Set to "yes" if building a shared library automatically hardcodes DIR
15135
# into the library and all subsequent libraries and executables linked
15136
# against it.
15137
hardcode_automatic=$hardcode_automatic
15138
 
15139
# Set to yes if linker adds runtime paths of dependent libraries
15140
# to runtime path list.
15141
inherit_rpath=$inherit_rpath
15142
 
15143
# Whether libtool must link a program against all its dependency libraries.
15144
link_all_deplibs=$link_all_deplibs
15145
 
15146
# Fix the shell variable \$srcfile for the compiler.
15147
fix_srcfile_path=$lt_fix_srcfile_path
15148
 
15149
# Set to "yes" if exported symbols are required.
15150
always_export_symbols=$always_export_symbols
15151
 
15152
# The commands to list exported symbols.
15153
export_symbols_cmds=$lt_export_symbols_cmds
15154
 
15155
# Symbols that should not be listed in the preloaded symbols.
15156
exclude_expsyms=$lt_exclude_expsyms
15157
 
15158
# Symbols that must always be exported.
15159
include_expsyms=$lt_include_expsyms
15160
 
15161
# Commands necessary for linking programs (against libraries) with templates.
15162
prelink_cmds=$lt_prelink_cmds
15163
 
15164
# Specify filename containing input files.
15165
file_list_spec=$lt_file_list_spec
15166
 
15167
# How to hardcode a shared library path into an executable.
15168
hardcode_action=$hardcode_action
15169
 
15170
# ### END LIBTOOL CONFIG
15171
 
15172
_LT_EOF
15173
 
15174
  case $host_os in
15175
  aix3*)
15176
    cat <<\_LT_EOF >> "$cfgfile"
15177
# AIX sometimes has problems with the GCC collect2 program.  For some
15178
# reason, if we set the COLLECT_NAMES environment variable, the problems
15179
# vanish in a puff of smoke.
15180
if test "X${COLLECT_NAMES+set}" != Xset; then
15181
  COLLECT_NAMES=
15182
  export COLLECT_NAMES
15183
fi
15184
_LT_EOF
15185
    ;;
15186
  esac
15187
 
15188
 
15189
ltmain="$ac_aux_dir/ltmain.sh"
15190
 
15191
 
15192
  # We use sed instead of cat because bash on DJGPP gets confused if
15193
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15194
  # text mode, it properly converts lines to CR/LF.  This bash problem
15195
  # is reportedly fixed, but why not run on old versions too?
15196
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15197
    || (rm -f "$cfgfile"; exit 1)
15198
 
15199
  case $xsi_shell in
15200
  yes)
15201
    cat << \_LT_EOF >> "$cfgfile"
15202
 
15203
# func_dirname file append nondir_replacement
15204
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15205
# otherwise set result to NONDIR_REPLACEMENT.
15206
func_dirname ()
15207
{
15208
  case ${1} in
15209
    */*) func_dirname_result="${1%/*}${2}" ;;
15210
    *  ) func_dirname_result="${3}" ;;
15211
  esac
15212
}
15213
 
15214
# func_basename file
15215
func_basename ()
15216
{
15217
  func_basename_result="${1##*/}"
15218
}
15219
 
15220
# func_dirname_and_basename file append nondir_replacement
15221
# perform func_basename and func_dirname in a single function
15222
# call:
15223
#   dirname:  Compute the dirname of FILE.  If nonempty,
15224
#             add APPEND to the result, otherwise set result
15225
#             to NONDIR_REPLACEMENT.
15226
#             value returned in "$func_dirname_result"
15227
#   basename: Compute filename of FILE.
15228
#             value retuned in "$func_basename_result"
15229
# Implementation must be kept synchronized with func_dirname
15230
# and func_basename. For efficiency, we do not delegate to
15231
# those functions but instead duplicate the functionality here.
15232
func_dirname_and_basename ()
15233
{
15234
  case ${1} in
15235
    */*) func_dirname_result="${1%/*}${2}" ;;
15236
    *  ) func_dirname_result="${3}" ;;
15237
  esac
15238
  func_basename_result="${1##*/}"
15239
}
15240
 
15241
# func_stripname prefix suffix name
15242
# strip PREFIX and SUFFIX off of NAME.
15243
# PREFIX and SUFFIX must not contain globbing or regex special
15244
# characters, hashes, percent signs, but SUFFIX may contain a leading
15245
# dot (in which case that matches only a dot).
15246
func_stripname ()
15247
{
15248
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15249
  # positional parameters, so assign one to ordinary parameter first.
15250
  func_stripname_result=${3}
15251
  func_stripname_result=${func_stripname_result#"${1}"}
15252
  func_stripname_result=${func_stripname_result%"${2}"}
15253
}
15254
 
15255
# func_opt_split
15256
func_opt_split ()
15257
{
15258
  func_opt_split_opt=${1%%=*}
15259
  func_opt_split_arg=${1#*=}
15260
}
15261
 
15262
# func_lo2o object
15263
func_lo2o ()
15264
{
15265
  case ${1} in
15266
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15267
    *)    func_lo2o_result=${1} ;;
15268
  esac
15269
}
15270
 
15271
# func_xform libobj-or-source
15272
func_xform ()
15273
{
15274
  func_xform_result=${1%.*}.lo
15275
}
15276
 
15277
# func_arith arithmetic-term...
15278
func_arith ()
15279
{
15280
  func_arith_result=$(( $* ))
15281
}
15282
 
15283
# func_len string
15284
# STRING may not start with a hyphen.
15285
func_len ()
15286
{
15287
  func_len_result=${#1}
15288
}
15289
 
15290
_LT_EOF
15291
    ;;
15292
  *) # Bourne compatible functions.
15293
    cat << \_LT_EOF >> "$cfgfile"
15294
 
15295
# func_dirname file append nondir_replacement
15296
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15297
# otherwise set result to NONDIR_REPLACEMENT.
15298
func_dirname ()
15299
{
15300
  # Extract subdirectory from the argument.
15301
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15302
  if test "X$func_dirname_result" = "X${1}"; then
15303
    func_dirname_result="${3}"
15304
  else
15305
    func_dirname_result="$func_dirname_result${2}"
15306
  fi
15307
}
15308
 
15309
# func_basename file
15310
func_basename ()
15311
{
15312
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15313
}
15314
 
15315
 
15316
# func_stripname prefix suffix name
15317
# strip PREFIX and SUFFIX off of NAME.
15318
# PREFIX and SUFFIX must not contain globbing or regex special
15319
# characters, hashes, percent signs, but SUFFIX may contain a leading
15320
# dot (in which case that matches only a dot).
15321
# func_strip_suffix prefix name
15322
func_stripname ()
15323
{
15324
  case ${2} in
15325
    .*) func_stripname_result=`$ECHO "X${3}" \
15326
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15327
    *)  func_stripname_result=`$ECHO "X${3}" \
15328
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15329
  esac
15330
}
15331
 
15332
# sed scripts:
15333
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15334
my_sed_long_arg='1s/^-[^=]*=//'
15335
 
15336
# func_opt_split
15337
func_opt_split ()
15338
{
15339
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15340
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15341
}
15342
 
15343
# func_lo2o object
15344
func_lo2o ()
15345
{
15346
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15347
}
15348
 
15349
# func_xform libobj-or-source
15350
func_xform ()
15351
{
15352
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15353
}
15354
 
15355
# func_arith arithmetic-term...
15356
func_arith ()
15357
{
15358
  func_arith_result=`expr "$@"`
15359
}
15360
 
15361
# func_len string
15362
# STRING may not start with a hyphen.
15363
func_len ()
15364
{
15365
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15366
}
15367
 
15368
_LT_EOF
15369
esac
15370
 
15371
case $lt_shell_append in
15372
  yes)
15373
    cat << \_LT_EOF >> "$cfgfile"
15374
 
15375
# func_append var value
15376
# Append VALUE to the end of shell variable VAR.
15377
func_append ()
15378
{
15379
  eval "$1+=\$2"
15380
}
15381
_LT_EOF
15382
    ;;
15383
  *)
15384
    cat << \_LT_EOF >> "$cfgfile"
15385
 
15386
# func_append var value
15387
# Append VALUE to the end of shell variable VAR.
15388
func_append ()
15389
{
15390
  eval "$1=\$$1\$2"
15391
}
15392
 
15393
_LT_EOF
15394
    ;;
15395
  esac
15396
 
15397
 
15398
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15399
    || (rm -f "$cfgfile"; exit 1)
15400
 
15401
  mv -f "$cfgfile" "$ofile" ||
15402
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15403
  chmod +x "$ofile"
15404
 
15405
 ;;
15406
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15407
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
15408
  # are listed without --file.  Let's play safe and only enable the eval
15409
  # if we detect the quoting.
15410
  case $CONFIG_FILES in
15411
  *\'*) eval set x "$CONFIG_FILES" ;;
15412
  *)   set x $CONFIG_FILES ;;
15413
  esac
15414
  shift
15415
  for mf
15416
  do
15417
    # Strip MF so we end up with the name of the file.
15418
    mf=`echo "$mf" | sed -e 's/:.*$//'`
15419
    # Check whether this is an Automake generated Makefile or not.
15420
    # We used to match only the files named `Makefile.in', but
15421
    # some people rename them; so instead we look at the file content.
15422
    # Grep'ing the first line is not enough: some people post-process
15423
    # each Makefile.in and add a new line on top of each file to say so.
15424
    # Grep'ing the whole file is not good either: AIX grep has a line
15425
    # limit of 2048, but all sed's we know have understand at least 4000.
15426
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15427
      dirpart=`$as_dirname -- "$mf" ||
15428 19 jeremybenn
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15429
         X"$mf" : 'X\(//\)[^/]' \| \
15430
         X"$mf" : 'X\(//\)$' \| \
15431
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15432 202 julius
$as_echo X"$mf" |
15433 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15434
            s//\1/
15435
            q
15436
          }
15437
          /^X\(\/\/\)[^/].*/{
15438
            s//\1/
15439
            q
15440
          }
15441
          /^X\(\/\/\)$/{
15442
            s//\1/
15443
            q
15444
          }
15445
          /^X\(\/\).*/{
15446
            s//\1/
15447
            q
15448
          }
15449
          s/.*/./; q'`
15450 202 julius
    else
15451
      continue
15452
    fi
15453
    # Extract the definition of DEPDIR, am__include, and am__quote
15454
    # from the Makefile without running `make'.
15455
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15456
    test -z "$DEPDIR" && continue
15457
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15458
    test -z "am__include" && continue
15459
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15460
    # When using ansi2knr, U may be empty or an underscore; expand it
15461
    U=`sed -n 's/^U = //p' < "$mf"`
15462
    # Find all dependency output files, they are included files with
15463
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15464
    # simplest approach to changing $(DEPDIR) to its actual value in the
15465
    # expansion.
15466
    for file in `sed -n "
15467
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15468
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15469
      # Make sure the directory exists.
15470
      test -f "$dirpart/$file" && continue
15471
      fdir=`$as_dirname -- "$file" ||
15472 19 jeremybenn
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15473
         X"$file" : 'X\(//\)[^/]' \| \
15474
         X"$file" : 'X\(//\)$' \| \
15475
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15476 202 julius
$as_echo X"$file" |
15477 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15478
            s//\1/
15479
            q
15480
          }
15481
          /^X\(\/\/\)[^/].*/{
15482
            s//\1/
15483
            q
15484
          }
15485
          /^X\(\/\/\)$/{
15486
            s//\1/
15487
            q
15488
          }
15489
          /^X\(\/\).*/{
15490
            s//\1/
15491
            q
15492
          }
15493
          s/.*/./; q'`
15494 202 julius
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15495
      # echo "creating $dirpart/$file"
15496
      echo '# dummy' > "$dirpart/$file"
15497 19 jeremybenn
    done
15498
  done
15499 202 julius
}
15500 19 jeremybenn
 ;;
15501
 
15502
  esac
15503
done # for ac_tag
15504
 
15505
 
15506 202 julius
as_fn_exit 0
15507 19 jeremybenn
_ACEOF
15508
ac_clean_files=$ac_clean_files_save
15509
 
15510 202 julius
test $ac_write_fail = 0 ||
15511
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15512 19 jeremybenn
 
15513 202 julius
 
15514 19 jeremybenn
# configure is writing to config.log, and then calls config.status.
15515
# config.status does its own redirection, appending to config.log.
15516
# Unfortunately, on DOS this fails, as config.log is still kept open
15517
# by configure, so config.status won't be able to write to it; its
15518
# output is simply discarded.  So we exec the FD to /dev/null,
15519
# effectively closing config.log, so it can be properly (re)opened and
15520
# appended to by config.status.  When coming back to configure, we
15521
# need to make the FD available again.
15522
if test "$no_create" != yes; then
15523
  ac_cs_success=:
15524
  ac_config_status_args=
15525
  test "$silent" = yes &&
15526
    ac_config_status_args="$ac_config_status_args --quiet"
15527
  exec 5>/dev/null
15528
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15529
  exec 5>>config.log
15530
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15531
  # would make configure fail if this is the last instruction.
15532 202 julius
  $ac_cs_success || as_fn_exit $?
15533 19 jeremybenn
fi
15534
 
15535 202 julius
#
15536
# CONFIG_SUBDIRS section.
15537
#
15538
if test "$no_recursion" != yes; then
15539
 
15540
  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15541
  # so they do not pile up.
15542
  ac_sub_configure_args=
15543
  ac_prev=
15544
  eval "set x $ac_configure_args"
15545
  shift
15546
  for ac_arg
15547
  do
15548
    if test -n "$ac_prev"; then
15549
      ac_prev=
15550
      continue
15551
    fi
15552
    case $ac_arg in
15553
    -cache-file | --cache-file | --cache-fil | --cache-fi \
15554
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15555
      ac_prev=cache_file ;;
15556
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15557
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15558
    | --c=*)
15559
      ;;
15560
    --config-cache | -C)
15561
      ;;
15562
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15563
      ac_prev=srcdir ;;
15564
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15565
      ;;
15566
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15567
      ac_prev=prefix ;;
15568
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15569
      ;;
15570
    --disable-option-checking)
15571
      ;;
15572
    *)
15573
      case $ac_arg in
15574
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15575
      esac
15576
      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15577
    esac
15578
  done
15579
 
15580
  # Always prepend --prefix to ensure using the same prefix
15581
  # in subdir configurations.
15582
  ac_arg="--prefix=$prefix"
15583
  case $ac_arg in
15584
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15585
  esac
15586
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15587
 
15588
  # Pass --silent
15589
  if test "$silent" = yes; then
15590
    ac_sub_configure_args="--silent $ac_sub_configure_args"
15591
  fi
15592
 
15593
  # Always prepend --disable-option-checking to silence warnings, since
15594
  # different subdirs can have different --enable and --with options.
15595
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15596
 
15597
  ac_popdir=`pwd`
15598
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15599
 
15600
    # Do not complain, so a configure script can configure whichever
15601
    # parts of a large source tree are present.
15602
    test -d "$srcdir/$ac_dir" || continue
15603
 
15604
    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15605
    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15606
    $as_echo "$ac_msg" >&6
15607
    as_dir="$ac_dir"; as_fn_mkdir_p
15608
    ac_builddir=.
15609
 
15610
case "$ac_dir" in
15611
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15612
*)
15613
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15614
  # A ".." for each directory in $ac_dir_suffix.
15615
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15616
  case $ac_top_builddir_sub in
15617
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15618
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15619
  esac ;;
15620
esac
15621
ac_abs_top_builddir=$ac_pwd
15622
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15623
# for backward compatibility:
15624
ac_top_builddir=$ac_top_build_prefix
15625
 
15626
case $srcdir in
15627
  .)  # We are building in place.
15628
    ac_srcdir=.
15629
    ac_top_srcdir=$ac_top_builddir_sub
15630
    ac_abs_top_srcdir=$ac_pwd ;;
15631
  [\\/]* | ?:[\\/]* )  # Absolute name.
15632
    ac_srcdir=$srcdir$ac_dir_suffix;
15633
    ac_top_srcdir=$srcdir
15634
    ac_abs_top_srcdir=$srcdir ;;
15635
  *) # Relative name.
15636
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15637
    ac_top_srcdir=$ac_top_build_prefix$srcdir
15638
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15639
esac
15640
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15641
 
15642
 
15643
    cd "$ac_dir"
15644
 
15645
    # Check for guested configure; otherwise get Cygnus style configure.
15646
    if test -f "$ac_srcdir/configure.gnu"; then
15647
      ac_sub_configure=$ac_srcdir/configure.gnu
15648
    elif test -f "$ac_srcdir/configure"; then
15649
      ac_sub_configure=$ac_srcdir/configure
15650
    elif test -f "$ac_srcdir/configure.in"; then
15651
      # This should be Cygnus configure.
15652
      ac_sub_configure=$ac_aux_dir/configure
15653
    else
15654
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15655
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15656
      ac_sub_configure=
15657
    fi
15658
 
15659
    # The recursion is here.
15660
    if test -n "$ac_sub_configure"; then
15661
      # Make the cache file name correct relative to the subdirectory.
15662
      case $cache_file in
15663
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15664
      *) # Relative name.
15665
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15666
      esac
15667
 
15668
      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15669
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15670
      # The eval makes quoting arguments work.
15671
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15672
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15673
        as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15674
    fi
15675
 
15676
    cd "$ac_popdir"
15677
  done
15678
fi
15679
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15680
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15681
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15682
fi
15683
 

powered by: WebSVN 2.1.0

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