source: trunk/configure @ 2885

Last change on this file since 2885 was 2885, checked in by bradbell, 7 years ago

Revert back to old verison of autotools because new version of does not
work on jenkins test system:

autoconf 2.69 -> autoconf 2.68
automake 1.13.4 -> automake 1.11.6

See:

http://jenkins.coin-or.org:8080/job/cppad_trunk/165/console


  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 252.4 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for cppad 20130527.
4#
5# Report bugs to <cppad@list.coin-or.org>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64        expr "X$arg" : "X\\(.*\\)$as_nl";
65        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""        $as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194         /*)
195           for as_base in sh bash ksh sh5; do
196             # Try only shells that exist, to save several forks.
197             as_shell=$as_dir/$as_base
198             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205           done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218        # neutralization value for shells without unset; and this also
219        # works around shells that cannot unset nonexistent variables.
220        # Preserve -v and -x to the replacement shell.
221        BASH_ENV=/dev/null
222        ENV=/dev/null
223        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224        export CONFIG_SHELL
225        case $- in # ((((
226          *v*x* | *x*v* ) as_opts=-vx ;;
227          *v* ) as_opts=-v ;;
228          *x* ) as_opts=-x ;;
229          * ) as_opts= ;;
230        esac
231        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: cppad@list.coin-or.org about your system, including any
243$0: error possibly output before this message. Then install
244$0: a modern shell, or manually run the script under such a
245$0: shell if you do have one."
246  fi
247  exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265  { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274  return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282  set +e
283  as_fn_set_status $1
284  exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293  case $as_dir in #(
294  -*) as_dir=./$as_dir;;
295  esac
296  test -d "$as_dir" || eval $as_mkdir_p || {
297    as_dirs=
298    while :; do
299      case $as_dir in #(
300      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301      *) as_qdir=$as_dir;;
302      esac
303      as_dirs="'$as_qdir' $as_dirs"
304      as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306         X"$as_dir" : 'X\(//\)[^/]' \| \
307         X"$as_dir" : 'X\(//\)$' \| \
308         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311            s//\1/
312            q
313          }
314          /^X\(\/\/\)[^/].*/{
315            s//\1/
316            q
317          }
318          /^X\(\/\/\)$/{
319            s//\1/
320            q
321          }
322          /^X\(\/\).*/{
323            s//\1/
324            q
325          }
326          s/.*/./; q'`
327      test -d "$as_dir" && break
328    done
329    test -z "$as_dirs" || eval "mkdir $as_dirs"
330  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341  eval 'as_fn_append ()
342  {
343    eval $1+=\$2
344  }'
345else
346  as_fn_append ()
347  {
348    eval $1=\$$1\$2
349  }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358  eval 'as_fn_arith ()
359  {
360    as_val=$(( $* ))
361  }'
362else
363  as_fn_arith ()
364  {
365    as_val=`expr "$@" || test $? -eq 1`
366  }
367fi # as_fn_arith
368
369
370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with STATUS, using 1 if that was 0.
375as_fn_error ()
376{
377  as_status=$1; test $as_status -eq 0 && as_status=1
378  if test "$4"; then
379    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381  fi
382  $as_echo "$as_me: error: $2" >&2
383  as_fn_exit $as_status
384} # as_fn_error
385
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387   test "X`expr 00001 : '.*\(...\)'`" = X001; then
388  as_expr=expr
389else
390  as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394  as_basename=basename
395else
396  as_basename=false
397fi
398
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400  as_dirname=dirname
401else
402  as_dirname=false
403fi
404
405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407         X"$0" : 'X\(//\)$' \| \
408         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410    sed '/^.*\/\([^/][^/]*\)\/*$/{
411            s//\1/
412            q
413          }
414          /^X\/\(\/\/\)$/{
415            s//\1/
416            q
417          }
418          /^X\/\(\/\).*/{
419            s//\1/
420            q
421          }
422          s/.*/./; q'`
423
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432  as_lineno_1=$LINENO as_lineno_1a=$LINENO
433  as_lineno_2=$LINENO as_lineno_2a=$LINENO
434  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437  sed -n '
438    p
439    /[$]LINENO/=
440  ' <$as_myself |
441    sed '
442      s/[$]LINENO.*/&-/
443      t lineno
444      b
445      :lineno
446      N
447      :loop
448      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449      t loop
450      s/-\n.*//
451    ' >$as_me.lineno &&
452  chmod +x "$as_me.lineno" ||
453    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463ECHO_C= ECHO_N= ECHO_T=
464case `echo -n x` in #(((((
465-n*)
466  case `echo 'xy\c'` in
467  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468  xy)  ECHO_C='\c';;
469  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470       ECHO_T=' ';;
471  esac;;
472*)
473  ECHO_N='-n';;
474esac
475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478  rm -f conf$$.dir/conf$$.file
479else
480  rm -f conf$$.dir
481  mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484  if ln -s conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s='ln -s'
486    # ... but there are two gotchas:
487    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489    # In both cases, we have to default to `cp -p'.
490    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491      as_ln_s='cp -p'
492  elif ln conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s=ln
494  else
495    as_ln_s='cp -p'
496  fi
497else
498  as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
504  as_mkdir_p='mkdir -p "$as_dir"'
505else
506  test -d ./-p && rmdir ./-p
507  as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511  as_test_x='test -x'
512else
513  if ls -dL / >/dev/null 2>&1; then
514    as_ls_L_option=L
515  else
516    as_ls_L_option=
517  fi
518  as_test_x='
519    eval sh -c '\''
520      if test -d "$1"; then
521        test -d "$1/.";
522      else
523        case $1 in #(
524        -*)set "./$1";;
525        esac;
526        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527        ???[sx]*):;;*)false;;esac;fi
528    '\'' sh
529  '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540test -n "$DJDIR" || exec 7<&0 </dev/null
541exec 6>&1
542
543# Name of the host.
544# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
552ac_clean_files=
553ac_config_libobj_dir=.
554LIBOBJS=
555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
559
560# Identity of this package.
561PACKAGE_NAME='cppad'
562PACKAGE_TARNAME='cppad'
563PACKAGE_VERSION='20130527'
564PACKAGE_STRING='cppad 20130527'
565PACKAGE_BUGREPORT='cppad@list.coin-or.org'
566PACKAGE_URL=''
567
568ac_default_prefix=${HOME}
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
572#ifdef HAVE_SYS_TYPES_H
573# include <sys/types.h>
574#endif
575#ifdef HAVE_SYS_STAT_H
576# include <sys/stat.h>
577#endif
578#ifdef STDC_HEADERS
579# include <stdlib.h>
580# include <stddef.h>
581#else
582# ifdef HAVE_STDLIB_H
583#  include <stdlib.h>
584# endif
585#endif
586#ifdef HAVE_STRING_H
587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588#  include <memory.h>
589# endif
590# include <string.h>
591#endif
592#ifdef HAVE_STRINGS_H
593# include <strings.h>
594#endif
595#ifdef HAVE_INTTYPES_H
596# include <inttypes.h>
597#endif
598#ifdef HAVE_STDINT_H
599# include <stdint.h>
600#endif
601#ifdef HAVE_UNISTD_H
602# include <unistd.h>
603#endif"
604
605ac_unique_file="cppad/CppAD.h"
606ac_subst_vars='am__EXEEXT_FALSE
607am__EXEEXT_TRUE
608LTLIBOBJS
609LIBOBJS
610ipopt_prefix
611eigen_prefix
612adolc_prefix
613cppad_SOURCE_DIR
614cppad_requires
615cppad_libs
616cppad_cflags
617cppad_url
618cppad_version
619cppad_description
620CPPAD_IPOPT_LIBS
621CPPAD_IPOPT_LD_PATH
622BTHREAD_LIB
623CppAD_BTHREAD_FALSE
624CppAD_BTHREAD_TRUE
625DL_LIB
626PTHREAD_LIB
627CppAD_PTHREAD_FALSE
628CppAD_PTHREAD_TRUE
629ABS_TOP_SRCDIR
630ABS_TOP_BUILDDIR
631FCLIBS
632ac_ct_FC
633FCFLAGS
634FC
635CppAD_MS_COMPILER_FALSE
636CppAD_MS_COMPILER_TRUE
637am__fastdepCXX_FALSE
638am__fastdepCXX_TRUE
639CXXDEPMODE
640ac_ct_CXX
641CXXFLAGS
642CXX
643RANLIB
644am__fastdepCC_FALSE
645am__fastdepCC_TRUE
646CCDEPMODE
647am__nodep
648AMDEPBACKSLASH
649AMDEP_FALSE
650AMDEP_TRUE
651am__quote
652am__include
653DEPDIR
654am__untar
655am__tar
656AMTAR
657am__leading_dot
658SET_MAKE
659AWK
660mkdir_p
661MKDIR_P
662INSTALL_STRIP_PROGRAM
663STRIP
664install_sh
665MAKEINFO
666AUTOHEADER
667AUTOMAKE
668AUTOCONF
669ACLOCAL
670VERSION
671PACKAGE
672CYGPATH_W
673am__isrc
674INSTALL_DATA
675INSTALL_SCRIPT
676INSTALL_PROGRAM
677cppad_has_gettimeofday
678cppad_cppadvector
679cppad_size_t_same_unsigned_int
680EGREP
681GREP
682CPP
683OBJEXT
684EXEEXT
685ac_ct_CC
686CPPFLAGS
687LDFLAGS
688CFLAGS
689CC
690cppad_has_nullptr
691cppad_tape_id_type
692TAPE_ID_TYPE
693cppad_tape_addr_type
694TAPE_ADDR_TYPE
695cppad_max_num_threads
696MAX_NUM_THREADS
697CppAD_OPENMP_FALSE
698CppAD_OPENMP_TRUE
699OPENMP_FLAGS
700CXX_FLAGS_EIGEN
701CXX_FLAGS_FADBAD
702CXX_FLAGS
703BOOST_INCLUDE
704CppAD_BOOST_DIR_FALSE
705CppAD_BOOST_DIR_TRUE
706BOOST_DIR
707CppAD_IPOPT_FALSE
708CppAD_IPOPT_TRUE
709IPOPT_DIR
710CppAD_SACADO_FALSE
711CppAD_SACADO_TRUE
712SACADO_DIR
713CppAD_FADBAD_FALSE
714CppAD_FADBAD_TRUE
715FADBAD_DIR
716EIGEN_INCLUDE
717CppAD_EIGEN_DIR_FALSE
718CppAD_EIGEN_DIR_TRUE
719EIGEN_DIR
720CppAD_ADOLC_FALSE
721CppAD_ADOLC_TRUE
722ADOLC_DIR
723CppAD_POSTFIX_FALSE
724CppAD_POSTFIX_TRUE
725POSTFIX_DIR
726cppad_internal_sparse_set
727cppad_eigenvector
728cppad_boostvector
729cppad_stdvector
730CppAD_DOCUMENTATION_FALSE
731CppAD_DOCUMENTATION_TRUE
732CppAD_HAVE_AR_FALSE
733CppAD_HAVE_AR_TRUE
734have_ar
735CppAD_PKG_CONFIG_FALSE
736CppAD_PKG_CONFIG_TRUE
737have_pkg_config
738MAINT
739MAINTAINER_MODE_FALSE
740MAINTAINER_MODE_TRUE
741AM_BACKSLASH
742AM_DEFAULT_VERBOSITY
743AM_DEFAULT_V
744AM_V
745target_alias
746host_alias
747build_alias
748LIBS
749ECHO_T
750ECHO_N
751ECHO_C
752DEFS
753mandir
754localedir
755libdir
756psdir
757pdfdir
758dvidir
759htmldir
760infodir
761docdir
762oldincludedir
763includedir
764localstatedir
765sharedstatedir
766sysconfdir
767datadir
768datarootdir
769libexecdir
770sbindir
771bindir
772program_transform_name
773prefix
774exec_prefix
775PACKAGE_URL
776PACKAGE_BUGREPORT
777PACKAGE_STRING
778PACKAGE_VERSION
779PACKAGE_TARNAME
780PACKAGE_NAME
781PATH_SEPARATOR
782SHELL'
783ac_subst_files=''
784ac_user_opts='
785enable_option_checking
786enable_silent_rules
787enable_maintainer_mode
788with_SpeedExample
789with_profiling
790with_Speed
791with_Introduction
792with_Example
793with_TestMore
794with_PrintFor
795with_Documentation
796with_stdvector
797with_boostvector
798with_eigenvector
799with_sparse_set
800with_sparse_list
801enable_dependency_tracking
802'
803      ac_precious_vars='build_alias
804host_alias
805target_alias
806POSTFIX_DIR
807ADOLC_DIR
808EIGEN_DIR
809FADBAD_DIR
810SACADO_DIR
811IPOPT_DIR
812BOOST_DIR
813CXX_FLAGS
814OPENMP_FLAGS
815MAX_NUM_THREADS
816TAPE_ADDR_TYPE
817TAPE_ID_TYPE
818CC
819CFLAGS
820LDFLAGS
821LIBS
822CPPFLAGS
823CPP
824CXX
825CXXFLAGS
826CCC
827FC
828FCFLAGS'
829
830
831# Initialize some variables set by options.
832ac_init_help=
833ac_init_version=false
834ac_unrecognized_opts=
835ac_unrecognized_sep=
836# The variables have the same names as the options, with
837# dashes changed to underlines.
838cache_file=/dev/null
839exec_prefix=NONE
840no_create=
841no_recursion=
842prefix=NONE
843program_prefix=NONE
844program_suffix=NONE
845program_transform_name=s,x,x,
846silent=
847site=
848srcdir=
849verbose=
850x_includes=NONE
851x_libraries=NONE
852
853# Installation directory options.
854# These are left unexpanded so users can "make install exec_prefix=/foo"
855# and all the variables that are supposed to be based on exec_prefix
856# by default will actually change.
857# Use braces instead of parens because sh, perl, etc. also accept them.
858# (The list follows the same order as the GNU Coding Standards.)
859bindir='${exec_prefix}/bin'
860sbindir='${exec_prefix}/sbin'
861libexecdir='${exec_prefix}/libexec'
862datarootdir='${prefix}/share'
863datadir='${datarootdir}'
864sysconfdir='${prefix}/etc'
865sharedstatedir='${prefix}/com'
866localstatedir='${prefix}/var'
867includedir='${prefix}/include'
868oldincludedir='/usr/include'
869docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870infodir='${datarootdir}/info'
871htmldir='${docdir}'
872dvidir='${docdir}'
873pdfdir='${docdir}'
874psdir='${docdir}'
875libdir='${exec_prefix}/lib'
876localedir='${datarootdir}/locale'
877mandir='${datarootdir}/man'
878
879ac_prev=
880ac_dashdash=
881for ac_option
882do
883  # If the previous option needs an argument, assign it.
884  if test -n "$ac_prev"; then
885    eval $ac_prev=\$ac_option
886    ac_prev=
887    continue
888  fi
889
890  case $ac_option in
891  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892  *=)   ac_optarg= ;;
893  *)    ac_optarg=yes ;;
894  esac
895
896  # Accept the important Cygnus configure options, so we can diagnose typos.
897
898  case $ac_dashdash$ac_option in
899  --)
900    ac_dashdash=yes ;;
901
902  -bindir | --bindir | --bindi | --bind | --bin | --bi)
903    ac_prev=bindir ;;
904  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905    bindir=$ac_optarg ;;
906
907  -build | --build | --buil | --bui | --bu)
908    ac_prev=build_alias ;;
909  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910    build_alias=$ac_optarg ;;
911
912  -cache-file | --cache-file | --cache-fil | --cache-fi \
913  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914    ac_prev=cache_file ;;
915  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917    cache_file=$ac_optarg ;;
918
919  --config-cache | -C)
920    cache_file=config.cache ;;
921
922  -datadir | --datadir | --datadi | --datad)
923    ac_prev=datadir ;;
924  -datadir=* | --datadir=* | --datadi=* | --datad=*)
925    datadir=$ac_optarg ;;
926
927  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928  | --dataroo | --dataro | --datar)
929    ac_prev=datarootdir ;;
930  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932    datarootdir=$ac_optarg ;;
933
934  -disable-* | --disable-*)
935    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936    # Reject names that are not valid shell variable names.
937    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938      as_fn_error $? "invalid feature name: $ac_useropt"
939    ac_useropt_orig=$ac_useropt
940    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941    case $ac_user_opts in
942      *"
943"enable_$ac_useropt"
944"*) ;;
945      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946         ac_unrecognized_sep=', ';;
947    esac
948    eval enable_$ac_useropt=no ;;
949
950  -docdir | --docdir | --docdi | --doc | --do)
951    ac_prev=docdir ;;
952  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953    docdir=$ac_optarg ;;
954
955  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956    ac_prev=dvidir ;;
957  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958    dvidir=$ac_optarg ;;
959
960  -enable-* | --enable-*)
961    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962    # Reject names that are not valid shell variable names.
963    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964      as_fn_error $? "invalid feature name: $ac_useropt"
965    ac_useropt_orig=$ac_useropt
966    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967    case $ac_user_opts in
968      *"
969"enable_$ac_useropt"
970"*) ;;
971      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972         ac_unrecognized_sep=', ';;
973    esac
974    eval enable_$ac_useropt=\$ac_optarg ;;
975
976  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978  | --exec | --exe | --ex)
979    ac_prev=exec_prefix ;;
980  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982  | --exec=* | --exe=* | --ex=*)
983    exec_prefix=$ac_optarg ;;
984
985  -gas | --gas | --ga | --g)
986    # Obsolete; use --with-gas.
987    with_gas=yes ;;
988
989  -help | --help | --hel | --he | -h)
990    ac_init_help=long ;;
991  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992    ac_init_help=recursive ;;
993  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994    ac_init_help=short ;;
995
996  -host | --host | --hos | --ho)
997    ac_prev=host_alias ;;
998  -host=* | --host=* | --hos=* | --ho=*)
999    host_alias=$ac_optarg ;;
1000
1001  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002    ac_prev=htmldir ;;
1003  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004  | --ht=*)
1005    htmldir=$ac_optarg ;;
1006
1007  -includedir | --includedir | --includedi | --included | --include \
1008  | --includ | --inclu | --incl | --inc)
1009    ac_prev=includedir ;;
1010  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011  | --includ=* | --inclu=* | --incl=* | --inc=*)
1012    includedir=$ac_optarg ;;
1013
1014  -infodir | --infodir | --infodi | --infod | --info | --inf)
1015    ac_prev=infodir ;;
1016  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017    infodir=$ac_optarg ;;
1018
1019  -libdir | --libdir | --libdi | --libd)
1020    ac_prev=libdir ;;
1021  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022    libdir=$ac_optarg ;;
1023
1024  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025  | --libexe | --libex | --libe)
1026    ac_prev=libexecdir ;;
1027  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028  | --libexe=* | --libex=* | --libe=*)
1029    libexecdir=$ac_optarg ;;
1030
1031  -localedir | --localedir | --localedi | --localed | --locale)
1032    ac_prev=localedir ;;
1033  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034    localedir=$ac_optarg ;;
1035
1036  -localstatedir | --localstatedir | --localstatedi | --localstated \
1037  | --localstate | --localstat | --localsta | --localst | --locals)
1038    ac_prev=localstatedir ;;
1039  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041    localstatedir=$ac_optarg ;;
1042
1043  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044    ac_prev=mandir ;;
1045  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046    mandir=$ac_optarg ;;
1047
1048  -nfp | --nfp | --nf)
1049    # Obsolete; use --without-fp.
1050    with_fp=no ;;
1051
1052  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053  | --no-cr | --no-c | -n)
1054    no_create=yes ;;
1055
1056  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058    no_recursion=yes ;;
1059
1060  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062  | --oldin | --oldi | --old | --ol | --o)
1063    ac_prev=oldincludedir ;;
1064  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067    oldincludedir=$ac_optarg ;;
1068
1069  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070    ac_prev=prefix ;;
1071  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072    prefix=$ac_optarg ;;
1073
1074  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075  | --program-pre | --program-pr | --program-p)
1076    ac_prev=program_prefix ;;
1077  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079    program_prefix=$ac_optarg ;;
1080
1081  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082  | --program-suf | --program-su | --program-s)
1083    ac_prev=program_suffix ;;
1084  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086    program_suffix=$ac_optarg ;;
1087
1088  -program-transform-name | --program-transform-name \
1089  | --program-transform-nam | --program-transform-na \
1090  | --program-transform-n | --program-transform- \
1091  | --program-transform | --program-transfor \
1092  | --program-transfo | --program-transf \
1093  | --program-trans | --program-tran \
1094  | --progr-tra | --program-tr | --program-t)
1095    ac_prev=program_transform_name ;;
1096  -program-transform-name=* | --program-transform-name=* \
1097  | --program-transform-nam=* | --program-transform-na=* \
1098  | --program-transform-n=* | --program-transform-=* \
1099  | --program-transform=* | --program-transfor=* \
1100  | --program-transfo=* | --program-transf=* \
1101  | --program-trans=* | --program-tran=* \
1102  | --progr-tra=* | --program-tr=* | --program-t=*)
1103    program_transform_name=$ac_optarg ;;
1104
1105  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106    ac_prev=pdfdir ;;
1107  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108    pdfdir=$ac_optarg ;;
1109
1110  -psdir | --psdir | --psdi | --psd | --ps)
1111    ac_prev=psdir ;;
1112  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113    psdir=$ac_optarg ;;
1114
1115  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116  | -silent | --silent | --silen | --sile | --sil)
1117    silent=yes ;;
1118
1119  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120    ac_prev=sbindir ;;
1121  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122  | --sbi=* | --sb=*)
1123    sbindir=$ac_optarg ;;
1124
1125  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127  | --sharedst | --shareds | --shared | --share | --shar \
1128  | --sha | --sh)
1129    ac_prev=sharedstatedir ;;
1130  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133  | --sha=* | --sh=*)
1134    sharedstatedir=$ac_optarg ;;
1135
1136  -site | --site | --sit)
1137    ac_prev=site ;;
1138  -site=* | --site=* | --sit=*)
1139    site=$ac_optarg ;;
1140
1141  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142    ac_prev=srcdir ;;
1143  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144    srcdir=$ac_optarg ;;
1145
1146  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147  | --syscon | --sysco | --sysc | --sys | --sy)
1148    ac_prev=sysconfdir ;;
1149  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151    sysconfdir=$ac_optarg ;;
1152
1153  -target | --target | --targe | --targ | --tar | --ta | --t)
1154    ac_prev=target_alias ;;
1155  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156    target_alias=$ac_optarg ;;
1157
1158  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159    verbose=yes ;;
1160
1161  -version | --version | --versio | --versi | --vers | -V)
1162    ac_init_version=: ;;
1163
1164  -with-* | --with-*)
1165    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166    # Reject names that are not valid shell variable names.
1167    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168      as_fn_error $? "invalid package name: $ac_useropt"
1169    ac_useropt_orig=$ac_useropt
1170    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171    case $ac_user_opts in
1172      *"
1173"with_$ac_useropt"
1174"*) ;;
1175      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176         ac_unrecognized_sep=', ';;
1177    esac
1178    eval with_$ac_useropt=\$ac_optarg ;;
1179
1180  -without-* | --without-*)
1181    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182    # Reject names that are not valid shell variable names.
1183    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184      as_fn_error $? "invalid package name: $ac_useropt"
1185    ac_useropt_orig=$ac_useropt
1186    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187    case $ac_user_opts in
1188      *"
1189"with_$ac_useropt"
1190"*) ;;
1191      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192         ac_unrecognized_sep=', ';;
1193    esac
1194    eval with_$ac_useropt=no ;;
1195
1196  --x)
1197    # Obsolete; use --with-x.
1198    with_x=yes ;;
1199
1200  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201  | --x-incl | --x-inc | --x-in | --x-i)
1202    ac_prev=x_includes ;;
1203  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205    x_includes=$ac_optarg ;;
1206
1207  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209    ac_prev=x_libraries ;;
1210  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212    x_libraries=$ac_optarg ;;
1213
1214  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1215Try \`$0 --help' for more information"
1216    ;;
1217
1218  *=*)
1219    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220    # Reject names that are not valid shell variable names.
1221    case $ac_envvar in #(
1222      '' | [0-9]* | *[!_$as_cr_alnum]* )
1223      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1224    esac
1225    eval $ac_envvar=\$ac_optarg
1226    export $ac_envvar ;;
1227
1228  *)
1229    # FIXME: should be removed in autoconf 3.0.
1230    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1234    ;;
1235
1236  esac
1237done
1238
1239if test -n "$ac_prev"; then
1240  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241  as_fn_error $? "missing argument to $ac_option"
1242fi
1243
1244if test -n "$ac_unrecognized_opts"; then
1245  case $enable_option_checking in
1246    no) ;;
1247    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249  esac
1250fi
1251
1252# Check all directory arguments for consistency.
1253for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254                datadir sysconfdir sharedstatedir localstatedir includedir \
1255                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256                libdir localedir mandir
1257do
1258  eval ac_val=\$$ac_var
1259  # Remove trailing slashes.
1260  case $ac_val in
1261    */ )
1262      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263      eval $ac_var=\$ac_val;;
1264  esac
1265  # Be sure to have absolute directory names.
1266  case $ac_val in
1267    [\\/$]* | ?:[\\/]* )  continue;;
1268    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269  esac
1270  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1271done
1272
1273# There might be people who depend on the old broken behavior: `$host'
1274# used to hold the argument of --host etc.
1275# FIXME: To remove some day.
1276build=$build_alias
1277host=$host_alias
1278target=$target_alias
1279
1280# FIXME: To remove some day.
1281if test "x$host_alias" != x; then
1282  if test "x$build_alias" = x; then
1283    cross_compiling=maybe
1284    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1285    If a cross compiler is detected then cross compile mode will be used" >&2
1286  elif test "x$build_alias" != "x$host_alias"; then
1287    cross_compiling=yes
1288  fi
1289fi
1290
1291ac_tool_prefix=
1292test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294test "$silent" = yes && exec 6>/dev/null
1295
1296
1297ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298ac_ls_di=`ls -di .` &&
1299ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300  as_fn_error $? "working directory cannot be determined"
1301test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302  as_fn_error $? "pwd does not report name of working directory"
1303
1304
1305# Find the source files, if location was not specified.
1306if test -z "$srcdir"; then
1307  ac_srcdir_defaulted=yes
1308  # Try the directory containing this script, then the parent directory.
1309  ac_confdir=`$as_dirname -- "$as_myself" ||
1310$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311         X"$as_myself" : 'X\(//\)[^/]' \| \
1312         X"$as_myself" : 'X\(//\)$' \| \
1313         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314$as_echo X"$as_myself" |
1315    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316            s//\1/
1317            q
1318          }
1319          /^X\(\/\/\)[^/].*/{
1320            s//\1/
1321            q
1322          }
1323          /^X\(\/\/\)$/{
1324            s//\1/
1325            q
1326          }
1327          /^X\(\/\).*/{
1328            s//\1/
1329            q
1330          }
1331          s/.*/./; q'`
1332  srcdir=$ac_confdir
1333  if test ! -r "$srcdir/$ac_unique_file"; then
1334    srcdir=..
1335  fi
1336else
1337  ac_srcdir_defaulted=no
1338fi
1339if test ! -r "$srcdir/$ac_unique_file"; then
1340  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1342fi
1343ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344ac_abs_confdir=`(
1345        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1346        pwd)`
1347# When building in place, set srcdir=.
1348if test "$ac_abs_confdir" = "$ac_pwd"; then
1349  srcdir=.
1350fi
1351# Remove unnecessary trailing slashes from srcdir.
1352# Double slashes in file names in object file debugging info
1353# mess up M-x gdb in Emacs.
1354case $srcdir in
1355*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356esac
1357for ac_var in $ac_precious_vars; do
1358  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359  eval ac_env_${ac_var}_value=\$${ac_var}
1360  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362done
1363
1364#
1365# Report the --help message.
1366#
1367if test "$ac_init_help" = "long"; then
1368  # Omit some internal or obsolete options to make the list less imposing.
1369  # This message is too long to be a string in the A/UX 3.1 sh.
1370  cat <<_ACEOF
1371\`configure' configures cppad 20130527 to adapt to many kinds of systems.
1372
1373Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376VAR=VALUE.  See below for descriptions of some of the useful variables.
1377
1378Defaults for the options are specified in brackets.
1379
1380Configuration:
1381  -h, --help              display this help and exit
1382      --help=short        display options specific to this package
1383      --help=recursive    display the short help of all the included packages
1384  -V, --version           display version information and exit
1385  -q, --quiet, --silent   do not print \`checking ...' messages
1386      --cache-file=FILE   cache test results in FILE [disabled]
1387  -C, --config-cache      alias for \`--cache-file=config.cache'
1388  -n, --no-create         do not create output files
1389      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1390
1391Installation directories:
1392  --prefix=PREFIX         install architecture-independent files in PREFIX
1393                          [$ac_default_prefix]
1394  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1395                          [PREFIX]
1396
1397By default, \`make install' will install all the files in
1398\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1399an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400for instance \`--prefix=\$HOME'.
1401
1402For better control, use the options below.
1403
1404Fine tuning of the installation directories:
1405  --bindir=DIR            user executables [EPREFIX/bin]
1406  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1407  --libexecdir=DIR        program executables [EPREFIX/libexec]
1408  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1409  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1410  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1411  --libdir=DIR            object code libraries [EPREFIX/lib]
1412  --includedir=DIR        C header files [PREFIX/include]
1413  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1414  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1415  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1416  --infodir=DIR           info documentation [DATAROOTDIR/info]
1417  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1418  --mandir=DIR            man documentation [DATAROOTDIR/man]
1419  --docdir=DIR            documentation root [DATAROOTDIR/doc/cppad]
1420  --htmldir=DIR           html documentation [DOCDIR]
1421  --dvidir=DIR            dvi documentation [DOCDIR]
1422  --pdfdir=DIR            pdf documentation [DOCDIR]
1423  --psdir=DIR             ps documentation [DOCDIR]
1424_ACEOF
1425
1426  cat <<\_ACEOF
1427
1428Program names:
1429  --program-prefix=PREFIX            prepend PREFIX to installed program names
1430  --program-suffix=SUFFIX            append SUFFIX to installed program names
1431  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1432_ACEOF
1433fi
1434
1435if test -n "$ac_init_help"; then
1436  case $ac_init_help in
1437     short | recursive ) echo "Configuration of cppad 20130527:";;
1438   esac
1439  cat <<\_ACEOF
1440
1441Optional Features:
1442  --disable-option-checking  ignore unrecognized --enable/--with options
1443  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1444  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1445  --enable-silent-rules          less verbose build output (undo: `make V=1')
1446  --disable-silent-rules         verbose build output (undo: `make V=0')
1447  --enable-maintainer-mode  enable make rules and dependencies not useful
1448                          (and sometimes confusing) to the casual installer
1449  --disable-dependency-tracking  speeds up one-time build
1450  --enable-dependency-tracking   do not reject slow dependency extractors
1451
1452Optional Packages:
1453  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1454  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1455  --with-SpeedExample     is not necessary, see install instructions.
1456  --with-profiling        is not necessary, see install instructions.
1457  --with-Speed            is not necessary, see install instructions.
1458  --with-Introduction     is not necessary, see install instructions.
1459  --with-Example          is not necessary, see install instructions.
1460  --with-TestMore         is not necessary, see install instructions.
1461  --with-PrintFor         is not necessary, see install instructions.
1462  --with-Documentation    default is no
1463  --with-stdvector        default is no
1464  --with-boostvector      default is no
1465  --with-eigenvector      default is no
1466  --with-sparse_set       default is not specified
1467  --with-sparse_list      default is not specified
1468
1469Some influential environment variables:
1470  POSTFIX_DIR postfix directory for CppAD installation
1471  ADOLC_DIR   value of configure prefix directory during Adolc install
1472  EIGEN_DIR   value of configure prefix directory during Eigen install
1473  FADBAD_DIR  parent directory directly above FADBAD++ directory
1474  SACADO_DIR  value of the configure prefix directory during Sacado install
1475  IPOPT_DIR   value of the configure prefix directory during Ipopt install
1476  BOOST_DIR   parent directory directly above boost directory
1477  CXX_FLAGS   CXXFLAGS is ignored, use CXX_FLAGS for compiler flags
1478  OPENMP_FLAGS
1479              flags that instruct compiler to interpret OpenMP directrives
1480  MAX_NUM_THREADS
1481              maximum number of threads that can be used with CppAD
1482  TAPE_ADDR_TYPE
1483              type used for addresses in AD tapes
1484  TAPE_ID_TYPE
1485              type used for addresses in AD tapes
1486  CC          C compiler command
1487  CFLAGS      C compiler flags
1488  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1489              nonstandard directory <lib dir>
1490  LIBS        libraries to pass to the linker, e.g. -l<library>
1491  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1492              you have headers in a nonstandard directory <include dir>
1493  CPP         C preprocessor
1494  CXX         C++ compiler command
1495  CXXFLAGS    C++ compiler flags
1496  FC          Fortran compiler command
1497  FCFLAGS     Fortran compiler flags
1498
1499Use these variables to override the choices made by `configure' or to help
1500it to find libraries and programs with nonstandard names/locations.
1501
1502Report bugs to <cppad@list.coin-or.org>.
1503_ACEOF
1504ac_status=$?
1505fi
1506
1507if test "$ac_init_help" = "recursive"; then
1508  # If there are subdirs, report their specific --help.
1509  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510    test -d "$ac_dir" ||
1511      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1512      continue
1513    ac_builddir=.
1514
1515case "$ac_dir" in
1516.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517*)
1518  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1519  # A ".." for each directory in $ac_dir_suffix.
1520  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1521  case $ac_top_builddir_sub in
1522  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524  esac ;;
1525esac
1526ac_abs_top_builddir=$ac_pwd
1527ac_abs_builddir=$ac_pwd$ac_dir_suffix
1528# for backward compatibility:
1529ac_top_builddir=$ac_top_build_prefix
1530
1531case $srcdir in
1532  .)  # We are building in place.
1533    ac_srcdir=.
1534    ac_top_srcdir=$ac_top_builddir_sub
1535    ac_abs_top_srcdir=$ac_pwd ;;
1536  [\\/]* | ?:[\\/]* )  # Absolute name.
1537    ac_srcdir=$srcdir$ac_dir_suffix;
1538    ac_top_srcdir=$srcdir
1539    ac_abs_top_srcdir=$srcdir ;;
1540  *) # Relative name.
1541    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1542    ac_top_srcdir=$ac_top_build_prefix$srcdir
1543    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544esac
1545ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546
1547    cd "$ac_dir" || { ac_status=$?; continue; }
1548    # Check for guested configure.
1549    if test -f "$ac_srcdir/configure.gnu"; then
1550      echo &&
1551      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552    elif test -f "$ac_srcdir/configure"; then
1553      echo &&
1554      $SHELL "$ac_srcdir/configure" --help=recursive
1555    else
1556      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557    fi || ac_status=$?
1558    cd "$ac_pwd" || { ac_status=$?; break; }
1559  done
1560fi
1561
1562test -n "$ac_init_help" && exit $ac_status
1563if $ac_init_version; then
1564  cat <<\_ACEOF
1565cppad configure 20130527
1566generated by GNU Autoconf 2.68
1567
1568Copyright (C) 2010 Free Software Foundation, Inc.
1569This configure script is free software; the Free Software Foundation
1570gives unlimited permission to copy, distribute and modify it.
1571_ACEOF
1572  exit
1573fi
1574
1575## ------------------------ ##
1576## Autoconf initialization. ##
1577## ------------------------ ##
1578
1579# ac_fn_c_try_compile LINENO
1580# --------------------------
1581# Try to compile conftest.$ac_ext, and return whether this succeeded.
1582ac_fn_c_try_compile ()
1583{
1584  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585  rm -f conftest.$ac_objext
1586  if { { ac_try="$ac_compile"
1587case "(($ac_try" in
1588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589  *) ac_try_echo=$ac_try;;
1590esac
1591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592$as_echo "$ac_try_echo"; } >&5
1593  (eval "$ac_compile") 2>conftest.err
1594  ac_status=$?
1595  if test -s conftest.err; then
1596    grep -v '^ *+' conftest.err >conftest.er1
1597    cat conftest.er1 >&5
1598    mv -f conftest.er1 conftest.err
1599  fi
1600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601  test $ac_status = 0; } && {
1602         test -z "$ac_c_werror_flag" ||
1603         test ! -s conftest.err
1604       } && test -s conftest.$ac_objext; then :
1605  ac_retval=0
1606else
1607  $as_echo "$as_me: failed program was:" >&5
1608sed 's/^/| /' conftest.$ac_ext >&5
1609
1610        ac_retval=1
1611fi
1612  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613  as_fn_set_status $ac_retval
1614
1615} # ac_fn_c_try_compile
1616
1617# ac_fn_c_try_run LINENO
1618# ----------------------
1619# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1620# that executables *can* be run.
1621ac_fn_c_try_run ()
1622{
1623  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624  if { { ac_try="$ac_link"
1625case "(($ac_try" in
1626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627  *) ac_try_echo=$ac_try;;
1628esac
1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630$as_echo "$ac_try_echo"; } >&5
1631  (eval "$ac_link") 2>&5
1632  ac_status=$?
1633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1635  { { case "(($ac_try" in
1636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637  *) ac_try_echo=$ac_try;;
1638esac
1639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640$as_echo "$ac_try_echo"; } >&5
1641  (eval "$ac_try") 2>&5
1642  ac_status=$?
1643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644  test $ac_status = 0; }; }; then :
1645  ac_retval=0
1646else
1647  $as_echo "$as_me: program exited with status $ac_status" >&5
1648       $as_echo "$as_me: failed program was:" >&5
1649sed 's/^/| /' conftest.$ac_ext >&5
1650
1651       ac_retval=$ac_status
1652fi
1653  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1654  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655  as_fn_set_status $ac_retval
1656
1657} # ac_fn_c_try_run
1658
1659# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1660# --------------------------------------------
1661# Tries to find the compile-time value of EXPR in a program that includes
1662# INCLUDES, setting VAR accordingly. Returns whether the value could be
1663# computed
1664ac_fn_c_compute_int ()
1665{
1666  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667  if test "$cross_compiling" = yes; then
1668    # Depending upon the size, compute the lo and hi bounds.
1669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670/* end confdefs.h.  */
1671$4
1672int
1673main ()
1674{
1675static int test_array [1 - 2 * !(($2) >= 0)];
1676test_array [0] = 0
1677
1678  ;
1679  return 0;
1680}
1681_ACEOF
1682if ac_fn_c_try_compile "$LINENO"; then :
1683  ac_lo=0 ac_mid=0
1684  while :; do
1685    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686/* end confdefs.h.  */
1687$4
1688int
1689main ()
1690{
1691static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1692test_array [0] = 0
1693
1694  ;
1695  return 0;
1696}
1697_ACEOF
1698if ac_fn_c_try_compile "$LINENO"; then :
1699  ac_hi=$ac_mid; break
1700else
1701  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1702                        if test $ac_lo -le $ac_mid; then
1703                          ac_lo= ac_hi=
1704                          break
1705                        fi
1706                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1707fi
1708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1709  done
1710else
1711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712/* end confdefs.h.  */
1713$4
1714int
1715main ()
1716{
1717static int test_array [1 - 2 * !(($2) < 0)];
1718test_array [0] = 0
1719
1720  ;
1721  return 0;
1722}
1723_ACEOF
1724if ac_fn_c_try_compile "$LINENO"; then :
1725  ac_hi=-1 ac_mid=-1
1726  while :; do
1727    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728/* end confdefs.h.  */
1729$4
1730int
1731main ()
1732{
1733static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1734test_array [0] = 0
1735
1736  ;
1737  return 0;
1738}
1739_ACEOF
1740if ac_fn_c_try_compile "$LINENO"; then :
1741  ac_lo=$ac_mid; break
1742else
1743  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1744                        if test $ac_mid -le $ac_hi; then
1745                          ac_lo= ac_hi=
1746                          break
1747                        fi
1748                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1749fi
1750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751  done
1752else
1753  ac_lo= ac_hi=
1754fi
1755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756fi
1757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758# Binary search between lo and hi bounds.
1759while test "x$ac_lo" != "x$ac_hi"; do
1760  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762/* end confdefs.h.  */
1763$4
1764int
1765main ()
1766{
1767static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1768test_array [0] = 0
1769
1770  ;
1771  return 0;
1772}
1773_ACEOF
1774if ac_fn_c_try_compile "$LINENO"; then :
1775  ac_hi=$ac_mid
1776else
1777  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1778fi
1779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780done
1781case $ac_lo in #((
1782?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1783'') ac_retval=1 ;;
1784esac
1785  else
1786    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787/* end confdefs.h.  */
1788$4
1789static long int longval () { return $2; }
1790static unsigned long int ulongval () { return $2; }
1791#include <stdio.h>
1792#include <stdlib.h>
1793int
1794main ()
1795{
1796
1797  FILE *f = fopen ("conftest.val", "w");
1798  if (! f)
1799    return 1;
1800  if (($2) < 0)
1801    {
1802      long int i = longval ();
1803      if (i != ($2))
1804        return 1;
1805      fprintf (f, "%ld", i);
1806    }
1807  else
1808    {
1809      unsigned long int i = ulongval ();
1810      if (i != ($2))
1811        return 1;
1812      fprintf (f, "%lu", i);
1813    }
1814  /* Do not output a trailing newline, as this causes \r\n confusion
1815     on some platforms.  */
1816  return ferror (f) || fclose (f) != 0;
1817
1818  ;
1819  return 0;
1820}
1821_ACEOF
1822if ac_fn_c_try_run "$LINENO"; then :
1823  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1824else
1825  ac_retval=1
1826fi
1827rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1828  conftest.$ac_objext conftest.beam conftest.$ac_ext
1829rm -f conftest.val
1830
1831  fi
1832  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833  as_fn_set_status $ac_retval
1834
1835} # ac_fn_c_compute_int
1836
1837# ac_fn_c_try_cpp LINENO
1838# ----------------------
1839# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1840ac_fn_c_try_cpp ()
1841{
1842  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843  if { { ac_try="$ac_cpp conftest.$ac_ext"
1844case "(($ac_try" in
1845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846  *) ac_try_echo=$ac_try;;
1847esac
1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849$as_echo "$ac_try_echo"; } >&5
1850  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1851  ac_status=$?
1852  if test -s conftest.err; then
1853    grep -v '^ *+' conftest.err >conftest.er1
1854    cat conftest.er1 >&5
1855    mv -f conftest.er1 conftest.err
1856  fi
1857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858  test $ac_status = 0; } > conftest.i && {
1859         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1860         test ! -s conftest.err
1861       }; then :
1862  ac_retval=0
1863else
1864  $as_echo "$as_me: failed program was:" >&5
1865sed 's/^/| /' conftest.$ac_ext >&5
1866
1867    ac_retval=1
1868fi
1869  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870  as_fn_set_status $ac_retval
1871
1872} # ac_fn_c_try_cpp
1873
1874# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1875# -------------------------------------------------------
1876# Tests whether HEADER exists and can be compiled using the include files in
1877# INCLUDES, setting the cache variable VAR accordingly.
1878ac_fn_c_check_header_compile ()
1879{
1880  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882$as_echo_n "checking for $2... " >&6; }
1883if eval \${$3+:} false; then :
1884  $as_echo_n "(cached) " >&6
1885else
1886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887/* end confdefs.h.  */
1888$4
1889#include <$2>
1890_ACEOF
1891if ac_fn_c_try_compile "$LINENO"; then :
1892  eval "$3=yes"
1893else
1894  eval "$3=no"
1895fi
1896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897fi
1898eval ac_res=\$$3
1899               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900$as_echo "$ac_res" >&6; }
1901  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902
1903} # ac_fn_c_check_header_compile
1904
1905# ac_fn_c_try_link LINENO
1906# -----------------------
1907# Try to link conftest.$ac_ext, and return whether this succeeded.
1908ac_fn_c_try_link ()
1909{
1910  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911  rm -f conftest.$ac_objext conftest$ac_exeext
1912  if { { ac_try="$ac_link"
1913case "(($ac_try" in
1914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915  *) ac_try_echo=$ac_try;;
1916esac
1917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918$as_echo "$ac_try_echo"; } >&5
1919  (eval "$ac_link") 2>conftest.err
1920  ac_status=$?
1921  if test -s conftest.err; then
1922    grep -v '^ *+' conftest.err >conftest.er1
1923    cat conftest.er1 >&5
1924    mv -f conftest.er1 conftest.err
1925  fi
1926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927  test $ac_status = 0; } && {
1928         test -z "$ac_c_werror_flag" ||
1929         test ! -s conftest.err
1930       } && test -s conftest$ac_exeext && {
1931         test "$cross_compiling" = yes ||
1932         $as_test_x conftest$ac_exeext
1933       }; then :
1934  ac_retval=0
1935else
1936  $as_echo "$as_me: failed program was:" >&5
1937sed 's/^/| /' conftest.$ac_ext >&5
1938
1939        ac_retval=1
1940fi
1941  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1942  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1943  # interfere with the next link command; also delete a directory that is
1944  # left behind by Apple's compiler.  We do this before executing the actions.
1945  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1946  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947  as_fn_set_status $ac_retval
1948
1949} # ac_fn_c_try_link
1950
1951# ac_fn_c_check_func LINENO FUNC VAR
1952# ----------------------------------
1953# Tests whether FUNC exists, setting the cache variable VAR accordingly
1954ac_fn_c_check_func ()
1955{
1956  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958$as_echo_n "checking for $2... " >&6; }
1959if eval \${$3+:} false; then :
1960  $as_echo_n "(cached) " >&6
1961else
1962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963/* end confdefs.h.  */
1964/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1965   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1966#define $2 innocuous_$2
1967
1968/* System header to define __stub macros and hopefully few prototypes,
1969    which can conflict with char $2 (); below.
1970    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1971    <limits.h> exists even on freestanding compilers.  */
1972
1973#ifdef __STDC__
1974# include <limits.h>
1975#else
1976# include <assert.h>
1977#endif
1978
1979#undef $2
1980
1981/* Override any GCC internal prototype to avoid an error.
1982   Use char because int might match the return type of a GCC
1983   builtin and then its argument prototype would still apply.  */
1984#ifdef __cplusplus
1985extern "C"
1986#endif
1987char $2 ();
1988/* The GNU C library defines this for functions which it implements
1989    to always fail with ENOSYS.  Some functions are actually named
1990    something starting with __ and the normal name is an alias.  */
1991#if defined __stub_$2 || defined __stub___$2
1992choke me
1993#endif
1994
1995int
1996main ()
1997{
1998return $2 ();
1999  ;
2000  return 0;
2001}
2002_ACEOF
2003if ac_fn_c_try_link "$LINENO"; then :
2004  eval "$3=yes"
2005else
2006  eval "$3=no"
2007fi
2008rm -f core conftest.err conftest.$ac_objext \
2009    conftest$ac_exeext conftest.$ac_ext
2010fi
2011eval ac_res=\$$3
2012               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013$as_echo "$ac_res" >&6; }
2014  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015
2016} # ac_fn_c_check_func
2017
2018# ac_fn_cxx_try_compile LINENO
2019# ----------------------------
2020# Try to compile conftest.$ac_ext, and return whether this succeeded.
2021ac_fn_cxx_try_compile ()
2022{
2023  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024  rm -f conftest.$ac_objext
2025  if { { ac_try="$ac_compile"
2026case "(($ac_try" in
2027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028  *) ac_try_echo=$ac_try;;
2029esac
2030eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2031$as_echo "$ac_try_echo"; } >&5
2032  (eval "$ac_compile") 2>conftest.err
2033  ac_status=$?
2034  if test -s conftest.err; then
2035    grep -v '^ *+' conftest.err >conftest.er1
2036    cat conftest.er1 >&5
2037    mv -f conftest.er1 conftest.err
2038  fi
2039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2040  test $ac_status = 0; } && {
2041         test -z "$ac_cxx_werror_flag" ||
2042         test ! -s conftest.err
2043       } && test -s conftest.$ac_objext; then :
2044  ac_retval=0
2045else
2046  $as_echo "$as_me: failed program was:" >&5
2047sed 's/^/| /' conftest.$ac_ext >&5
2048
2049        ac_retval=1
2050fi
2051  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052  as_fn_set_status $ac_retval
2053
2054} # ac_fn_cxx_try_compile
2055
2056# ac_fn_fc_try_compile LINENO
2057# ---------------------------
2058# Try to compile conftest.$ac_ext, and return whether this succeeded.
2059ac_fn_fc_try_compile ()
2060{
2061  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062  rm -f conftest.$ac_objext
2063  if { { ac_try="$ac_compile"
2064case "(($ac_try" in
2065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2066  *) ac_try_echo=$ac_try;;
2067esac
2068eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2069$as_echo "$ac_try_echo"; } >&5
2070  (eval "$ac_compile") 2>conftest.err
2071  ac_status=$?
2072  if test -s conftest.err; then
2073    grep -v '^ *+' conftest.err >conftest.er1
2074    cat conftest.er1 >&5
2075    mv -f conftest.er1 conftest.err
2076  fi
2077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2078  test $ac_status = 0; } && {
2079         test -z "$ac_fc_werror_flag" ||
2080         test ! -s conftest.err
2081       } && test -s conftest.$ac_objext; then :
2082  ac_retval=0
2083else
2084  $as_echo "$as_me: failed program was:" >&5
2085sed 's/^/| /' conftest.$ac_ext >&5
2086
2087        ac_retval=1
2088fi
2089  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090  as_fn_set_status $ac_retval
2091
2092} # ac_fn_fc_try_compile
2093
2094# ac_fn_cxx_try_link LINENO
2095# -------------------------
2096# Try to link conftest.$ac_ext, and return whether this succeeded.
2097ac_fn_cxx_try_link ()
2098{
2099  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100  rm -f conftest.$ac_objext conftest$ac_exeext
2101  if { { ac_try="$ac_link"
2102case "(($ac_try" in
2103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104  *) ac_try_echo=$ac_try;;
2105esac
2106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107$as_echo "$ac_try_echo"; } >&5
2108  (eval "$ac_link") 2>conftest.err
2109  ac_status=$?
2110  if test -s conftest.err; then
2111    grep -v '^ *+' conftest.err >conftest.er1
2112    cat conftest.er1 >&5
2113    mv -f conftest.er1 conftest.err
2114  fi
2115  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2116  test $ac_status = 0; } && {
2117         test -z "$ac_cxx_werror_flag" ||
2118         test ! -s conftest.err
2119       } && test -s conftest$ac_exeext && {
2120         test "$cross_compiling" = yes ||
2121         $as_test_x conftest$ac_exeext
2122       }; then :
2123  ac_retval=0
2124else
2125  $as_echo "$as_me: failed program was:" >&5
2126sed 's/^/| /' conftest.$ac_ext >&5
2127
2128        ac_retval=1
2129fi
2130  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2131  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2132  # interfere with the next link command; also delete a directory that is
2133  # left behind by Apple's compiler.  We do this before executing the actions.
2134  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2135  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136  as_fn_set_status $ac_retval
2137
2138} # ac_fn_cxx_try_link
2139
2140# ac_fn_fc_try_link LINENO
2141# ------------------------
2142# Try to link conftest.$ac_ext, and return whether this succeeded.
2143ac_fn_fc_try_link ()
2144{
2145  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146  rm -f conftest.$ac_objext conftest$ac_exeext
2147  if { { ac_try="$ac_link"
2148case "(($ac_try" in
2149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2150  *) ac_try_echo=$ac_try;;
2151esac
2152eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2153$as_echo "$ac_try_echo"; } >&5
2154  (eval "$ac_link") 2>conftest.err
2155  ac_status=$?
2156  if test -s conftest.err; then
2157    grep -v '^ *+' conftest.err >conftest.er1
2158    cat conftest.er1 >&5
2159    mv -f conftest.er1 conftest.err
2160  fi
2161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2162  test $ac_status = 0; } && {
2163         test -z "$ac_fc_werror_flag" ||
2164         test ! -s conftest.err
2165       } && test -s conftest$ac_exeext && {
2166         test "$cross_compiling" = yes ||
2167         $as_test_x conftest$ac_exeext
2168       }; then :
2169  ac_retval=0
2170else
2171  $as_echo "$as_me: failed program was:" >&5
2172sed 's/^/| /' conftest.$ac_ext >&5
2173
2174        ac_retval=1
2175fi
2176  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2177  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2178  # interfere with the next link command; also delete a directory that is
2179  # left behind by Apple's compiler.  We do this before executing the actions.
2180  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2181  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182  as_fn_set_status $ac_retval
2183
2184} # ac_fn_fc_try_link
2185cat >config.log <<_ACEOF
2186This file contains any messages produced by compilers while
2187running configure, to aid debugging if configure makes a mistake.
2188
2189It was created by cppad $as_me 20130527, which was
2190generated by GNU Autoconf 2.68.  Invocation command line was
2191
2192  $ $0 $@
2193
2194_ACEOF
2195exec 5>>config.log
2196{
2197cat <<_ASUNAME
2198## --------- ##
2199## Platform. ##
2200## --------- ##
2201
2202hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2203uname -m = `(uname -m) 2>/dev/null || echo unknown`
2204uname -r = `(uname -r) 2>/dev/null || echo unknown`
2205uname -s = `(uname -s) 2>/dev/null || echo unknown`
2206uname -v = `(uname -v) 2>/dev/null || echo unknown`
2207
2208/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2209/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2210
2211/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2212/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2213/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2214/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2215/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2216/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2217/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2218
2219_ASUNAME
2220
2221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222for as_dir in $PATH
2223do
2224  IFS=$as_save_IFS
2225  test -z "$as_dir" && as_dir=.
2226    $as_echo "PATH: $as_dir"
2227  done
2228IFS=$as_save_IFS
2229
2230} >&5
2231
2232cat >&5 <<_ACEOF
2233
2234
2235## ----------- ##
2236## Core tests. ##
2237## ----------- ##
2238
2239_ACEOF
2240
2241
2242# Keep a trace of the command line.
2243# Strip out --no-create and --no-recursion so they do not pile up.
2244# Strip out --silent because we don't want to record it for future runs.
2245# Also quote any args containing shell meta-characters.
2246# Make two passes to allow for proper duplicate-argument suppression.
2247ac_configure_args=
2248ac_configure_args0=
2249ac_configure_args1=
2250ac_must_keep_next=false
2251for ac_pass in 1 2
2252do
2253  for ac_arg
2254  do
2255    case $ac_arg in
2256    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2257    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2258    | -silent | --silent | --silen | --sile | --sil)
2259      continue ;;
2260    *\'*)
2261      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2262    esac
2263    case $ac_pass in
2264    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2265    2)
2266      as_fn_append ac_configure_args1 " '$ac_arg'"
2267      if test $ac_must_keep_next = true; then
2268        ac_must_keep_next=false # Got value, back to normal.
2269      else
2270        case $ac_arg in
2271          *=* | --config-cache | -C | -disable-* | --disable-* \
2272          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2273          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2274          | -with-* | --with-* | -without-* | --without-* | --x)
2275            case "$ac_configure_args0 " in
2276              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2277            esac
2278            ;;
2279          -* ) ac_must_keep_next=true ;;
2280        esac
2281      fi
2282      as_fn_append ac_configure_args " '$ac_arg'"
2283      ;;
2284    esac
2285  done
2286done
2287{ ac_configure_args0=; unset ac_configure_args0;}
2288{ ac_configure_args1=; unset ac_configure_args1;}
2289
2290# When interrupted or exit'd, cleanup temporary files, and complete
2291# config.log.  We remove comments because anyway the quotes in there
2292# would cause problems or look ugly.
2293# WARNING: Use '\'' to represent an apostrophe within the trap.
2294# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2295trap 'exit_status=$?
2296  # Save into config.log some information that might help in debugging.
2297  {
2298    echo
2299
2300    $as_echo "## ---------------- ##
2301## Cache variables. ##
2302## ---------------- ##"
2303    echo
2304    # The following way of writing the cache mishandles newlines in values,
2305(
2306  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2307    eval ac_val=\$$ac_var
2308    case $ac_val in #(
2309    *${as_nl}*)
2310      case $ac_var in #(
2311      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2312$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2313      esac
2314      case $ac_var in #(
2315      _ | IFS | as_nl) ;; #(
2316      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2317      *) { eval $ac_var=; unset $ac_var;} ;;
2318      esac ;;
2319    esac
2320  done
2321  (set) 2>&1 |
2322    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2323    *${as_nl}ac_space=\ *)
2324      sed -n \
2325        "s/'\''/'\''\\\\'\'''\''/g;
2326          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2327      ;; #(
2328    *)
2329      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2330      ;;
2331    esac |
2332    sort
2333)
2334    echo
2335
2336    $as_echo "## ----------------- ##
2337## Output variables. ##
2338## ----------------- ##"
2339    echo
2340    for ac_var in $ac_subst_vars
2341    do
2342      eval ac_val=\$$ac_var
2343      case $ac_val in
2344      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2345      esac
2346      $as_echo "$ac_var='\''$ac_val'\''"
2347    done | sort
2348    echo
2349
2350    if test -n "$ac_subst_files"; then
2351      $as_echo "## ------------------- ##
2352## File substitutions. ##
2353## ------------------- ##"
2354      echo
2355      for ac_var in $ac_subst_files
2356      do
2357        eval ac_val=\$$ac_var
2358        case $ac_val in
2359        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2360        esac
2361        $as_echo "$ac_var='\''$ac_val'\''"
2362      done | sort
2363      echo
2364    fi
2365
2366    if test -s confdefs.h; then
2367      $as_echo "## ----------- ##
2368## confdefs.h. ##
2369## ----------- ##"
2370      echo
2371      cat confdefs.h
2372      echo
2373    fi
2374    test "$ac_signal" != 0 &&
2375      $as_echo "$as_me: caught signal $ac_signal"
2376    $as_echo "$as_me: exit $exit_status"
2377  } >&5
2378  rm -f core *.core core.conftest.* &&
2379    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2380    exit $exit_status
2381' 0
2382for ac_signal in 1 2 13 15; do
2383  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2384done
2385ac_signal=0
2386
2387# confdefs.h avoids OS command line length limits that DEFS can exceed.
2388rm -f -r conftest* confdefs.h
2389
2390$as_echo "/* confdefs.h */" > confdefs.h
2391
2392# Predefined preprocessor variables.
2393
2394cat >>confdefs.h <<_ACEOF
2395#define PACKAGE_NAME "$PACKAGE_NAME"
2396_ACEOF
2397
2398cat >>confdefs.h <<_ACEOF
2399#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2400_ACEOF
2401
2402cat >>confdefs.h <<_ACEOF
2403#define PACKAGE_VERSION "$PACKAGE_VERSION"
2404_ACEOF
2405
2406cat >>confdefs.h <<_ACEOF
2407#define PACKAGE_STRING "$PACKAGE_STRING"
2408_ACEOF
2409
2410cat >>confdefs.h <<_ACEOF
2411#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2412_ACEOF
2413
2414cat >>confdefs.h <<_ACEOF
2415#define PACKAGE_URL "$PACKAGE_URL"
2416_ACEOF
2417
2418
2419# Let the site file select an alternate cache file if it wants to.
2420# Prefer an explicitly selected file to automatically selected ones.
2421ac_site_file1=NONE
2422ac_site_file2=NONE
2423if test -n "$CONFIG_SITE"; then
2424  # We do not want a PATH search for config.site.
2425  case $CONFIG_SITE in #((
2426    -*)  ac_site_file1=./$CONFIG_SITE;;
2427    */*) ac_site_file1=$CONFIG_SITE;;
2428    *)   ac_site_file1=./$CONFIG_SITE;;
2429  esac
2430elif test "x$prefix" != xNONE; then
2431  ac_site_file1=$prefix/share/config.site
2432  ac_site_file2=$prefix/etc/config.site
2433else
2434  ac_site_file1=$ac_default_prefix/share/config.site
2435  ac_site_file2=$ac_default_prefix/etc/config.site
2436fi
2437for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2438do
2439  test "x$ac_site_file" = xNONE && continue
2440  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2441    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2442$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2443    sed 's/^/| /' "$ac_site_file" >&5
2444    . "$ac_site_file" \
2445      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2447as_fn_error $? "failed to load site script $ac_site_file
2448See \`config.log' for more details" "$LINENO" 5; }
2449  fi
2450done
2451
2452if test -r "$cache_file"; then
2453  # Some versions of bash will fail to source /dev/null (special files
2454  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2455  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2456    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2457$as_echo "$as_me: loading cache $cache_file" >&6;}
2458    case $cache_file in
2459      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2460      *)                      . "./$cache_file";;
2461    esac
2462  fi
2463else
2464  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2465$as_echo "$as_me: creating cache $cache_file" >&6;}
2466  >$cache_file
2467fi
2468
2469# Check that the precious variables saved in the cache have kept the same
2470# value.
2471ac_cache_corrupted=false
2472for ac_var in $ac_precious_vars; do
2473  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2474  eval ac_new_set=\$ac_env_${ac_var}_set
2475  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2476  eval ac_new_val=\$ac_env_${ac_var}_value
2477  case $ac_old_set,$ac_new_set in
2478    set,)
2479      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2480$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2481      ac_cache_corrupted=: ;;
2482    ,set)
2483      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2484$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2485      ac_cache_corrupted=: ;;
2486    ,);;
2487    *)
2488      if test "x$ac_old_val" != "x$ac_new_val"; then
2489        # differences in whitespace do not lead to failure.
2490        ac_old_val_w=`echo x $ac_old_val`
2491        ac_new_val_w=`echo x $ac_new_val`
2492        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2493          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2494$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2495          ac_cache_corrupted=:
2496        else
2497          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2498$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2499          eval $ac_var=\$ac_old_val
2500        fi
2501        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2502$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2503        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2504$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2505      fi;;
2506  esac
2507  # Pass precious variables to config.status.
2508  if test "$ac_new_set" = set; then
2509    case $ac_new_val in
2510    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2511    *) ac_arg=$ac_var=$ac_new_val ;;
2512    esac
2513    case " $ac_configure_args " in
2514      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2515      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2516    esac
2517  fi
2518done
2519if $ac_cache_corrupted; then
2520  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2522  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2523$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2524  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2525fi
2526## -------------------- ##
2527## Main body of script. ##
2528## -------------------- ##
2529
2530ac_ext=c
2531ac_cpp='$CPP $CPPFLAGS'
2532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2534ac_compiler_gnu=$ac_cv_c_compiler_gnu
2535
2536
2537# Check whether --enable-silent-rules was given.
2538if test "${enable_silent_rules+set}" = set; then :
2539  enableval=$enable_silent_rules;
2540fi
2541
2542case $enable_silent_rules in
2543yes) AM_DEFAULT_VERBOSITY=0;;
2544no)  AM_DEFAULT_VERBOSITY=1;;
2545*)   AM_DEFAULT_VERBOSITY=0;;
2546esac
2547am_make=${MAKE-make}
2548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2549$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2550if ${am_cv_make_support_nested_variables+:} false; then :
2551  $as_echo_n "(cached) " >&6
2552else
2553  if $as_echo 'TRUE=$(BAR$(V))
2554BAR0=false
2555BAR1=true
2556V=1
2557am__doit:
2558        @$(TRUE)
2559.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2560  am_cv_make_support_nested_variables=yes
2561else
2562  am_cv_make_support_nested_variables=no
2563fi
2564fi
2565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2566$as_echo "$am_cv_make_support_nested_variables" >&6; }
2567if test $am_cv_make_support_nested_variables = yes; then
2568    AM_V='$(V)'
2569  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2570else
2571  AM_V=$AM_DEFAULT_VERBOSITY
2572  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2573fi
2574AM_BACKSLASH='\'
2575
2576
2577
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2579$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2580    # Check whether --enable-maintainer-mode was given.
2581if test "${enable_maintainer_mode+set}" = set; then :
2582  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2583else
2584  USE_MAINTAINER_MODE=no
2585fi
2586
2587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2588$as_echo "$USE_MAINTAINER_MODE" >&6; }
2589   if test $USE_MAINTAINER_MODE = yes; then
2590  MAINTAINER_MODE_TRUE=
2591  MAINTAINER_MODE_FALSE='#'
2592else
2593  MAINTAINER_MODE_TRUE='#'
2594  MAINTAINER_MODE_FALSE=
2595fi
2596
2597  MAINT=$MAINTAINER_MODE_TRUE
2598
2599
2600
2601
2602
2603
2604# Extract the first word of "pkg-config", so it can be a program name with args.
2605set dummy pkg-config; ac_word=$2
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607$as_echo_n "checking for $ac_word... " >&6; }
2608if ${ac_cv_prog_have_pkg_config+:} false; then :
2609  $as_echo_n "(cached) " >&6
2610else
2611  if test -n "$have_pkg_config"; then
2612  ac_cv_prog_have_pkg_config="$have_pkg_config" # Let the user override the test.
2613else
2614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615for as_dir in $PATH
2616do
2617  IFS=$as_save_IFS
2618  test -z "$as_dir" && as_dir=.
2619    for ac_exec_ext in '' $ac_executable_extensions; do
2620  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621    ac_cv_prog_have_pkg_config="yes"
2622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2623    break 2
2624  fi
2625done
2626  done
2627IFS=$as_save_IFS
2628
2629  test -z "$ac_cv_prog_have_pkg_config" && ac_cv_prog_have_pkg_config="no"
2630fi
2631fi
2632have_pkg_config=$ac_cv_prog_have_pkg_config
2633if test -n "$have_pkg_config"; then
2634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pkg_config" >&5
2635$as_echo "$have_pkg_config" >&6; }
2636else
2637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638$as_echo "no" >&6; }
2639fi
2640
2641
2642 if test "$have_pkg_config" = "yes"; then
2643  CppAD_PKG_CONFIG_TRUE=
2644  CppAD_PKG_CONFIG_FALSE='#'
2645else
2646  CppAD_PKG_CONFIG_TRUE='#'
2647  CppAD_PKG_CONFIG_FALSE=
2648fi
2649
2650
2651# Extract the first word of "ar", so it can be a program name with args.
2652set dummy ar; ac_word=$2
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654$as_echo_n "checking for $ac_word... " >&6; }
2655if ${ac_cv_prog_have_ar+:} false; then :
2656  $as_echo_n "(cached) " >&6
2657else
2658  if test -n "$have_ar"; then
2659  ac_cv_prog_have_ar="$have_ar" # Let the user override the test.
2660else
2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664  IFS=$as_save_IFS
2665  test -z "$as_dir" && as_dir=.
2666    for ac_exec_ext in '' $ac_executable_extensions; do
2667  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668    ac_cv_prog_have_ar="yes"
2669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670    break 2
2671  fi
2672done
2673  done
2674IFS=$as_save_IFS
2675
2676  test -z "$ac_cv_prog_have_ar" && ac_cv_prog_have_ar="no"
2677fi
2678fi
2679have_ar=$ac_cv_prog_have_ar
2680if test -n "$have_ar"; then
2681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ar" >&5
2682$as_echo "$have_ar" >&6; }
2683else
2684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685$as_echo "no" >&6; }
2686fi
2687
2688
2689 if test "$have_ar" = "yes"; then
2690  CppAD_HAVE_AR_TRUE=
2691  CppAD_HAVE_AR_FALSE='#'
2692else
2693  CppAD_HAVE_AR_TRUE='#'
2694  CppAD_HAVE_AR_FALSE=
2695fi
2696
2697if test "$have_ar" = "no"; then
2698        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot build any libraries because ar is missing, speed/* is not used
2699        " >&5
2700$as_echo "$as_me: WARNING: cannot build any libraries because ar is missing, speed/* is not used
2701        " >&2;}
2702fi
2703
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: *** Check command line arguments that are longer used ****" >&5
2705$as_echo "$as_me: *** Check command line arguments that are longer used ****" >&6;}
2706
2707if test "$CPP_ERROR_WARN" != "" ; then
2708    as_fn_error $? "The CPP_ERROR_WARN configure option is now CXX_FLAGS" "$LINENO" 5
2709fi
2710
2711# Check whether --with-SpeedExample was given.
2712if test "${with_SpeedExample+set}" = set; then :
2713  withval=$with_SpeedExample; SpeedExample="yes"
2714else
2715  SpeedExample="no"
2716
2717fi
2718
2719if test "$SpeedExample" = "yes" ; then
2720    as_fn_error $? "--with-SpeedExample not necessary, see install instructions." "$LINENO" 5
2721fi
2722
2723# Check whether --with-profiling was given.
2724if test "${with_profiling+set}" = set; then :
2725  withval=$with_profiling; profiling="yes"
2726else
2727  profiling="no"
2728
2729fi
2730
2731if test "$profiling" = "yes" ; then
2732    as_fn_error $? "--with-profiling not necessary, see install instructions." "$LINENO" 5
2733fi
2734
2735# Check whether --with-Speed was given.
2736if test "${with_Speed+set}" = set; then :
2737  withval=$with_Speed; Speed="yes"
2738else
2739  Speed="no"
2740
2741fi
2742
2743if test "$Speed" = "yes" ; then
2744    as_fn_error $? "--with-Speed not necessary, see install instructions." "$LINENO" 5
2745fi
2746
2747# Check whether --with-Introduction was given.
2748if test "${with_Introduction+set}" = set; then :
2749  withval=$with_Introduction; Introduction="yes"
2750else
2751  Introduction="no"
2752
2753fi
2754
2755if test "$Introduction" = "yes" ; then
2756    as_fn_error $? "--with-Introduction not necessary, see install instructions." "$LINENO" 5
2757fi
2758
2759# Check whether --with-Example was given.
2760if test "${with_Example+set}" = set; then :
2761  withval=$with_Example; Example="yes"
2762else
2763  Example="no"
2764
2765fi
2766
2767if test "$Example" = "yes" ; then
2768    as_fn_error $? "--with-Example not necessary, see install instructions." "$LINENO" 5
2769fi
2770
2771# Check whether --with-TestMore was given.
2772if test "${with_TestMore+set}" = set; then :
2773  withval=$with_TestMore; TestMore="yes"
2774else
2775  TestMore="no"
2776
2777fi
2778
2779if test "$TestMore" = "yes" ; then
2780    as_fn_error $? "--with-TestMore not necessary, see install instructions." "$LINENO" 5
2781fi
2782
2783# Check whether --with-PrintFor was given.
2784if test "${with_PrintFor+set}" = set; then :
2785  withval=$with_PrintFor; PrintFor="yes"
2786else
2787  PrintFor="no"
2788
2789fi
2790
2791if test "$PrintFor" = "yes" ; then
2792    as_fn_error $? "--with-PrintFor not necessary, see install instructions." "$LINENO" 5
2793fi
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: ******  Check command line arguments that are used ***********" >&5
2795$as_echo "$as_me: ******  Check command line arguments that are used ***********" >&6;}
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --prefix" >&5
2797$as_echo_n "checking --prefix... " >&6; }
2798if test "$prefix" = "NONE" ; then
2799        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOME" >&5
2800$as_echo "$HOME" >&6; }
2801else
2802        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $prefix" >&5
2803$as_echo "$prefix" >&6; }
2804fi
2805
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-Documentation" >&5
2807$as_echo_n "checking --with-Documentation... " >&6; }
2808
2809# Check whether --with-Documentation was given.
2810if test "${with_Documentation+set}" = set; then :
2811  withval=$with_Documentation; Documentation="yes"
2812else
2813  Documentation="no"
2814
2815fi
2816
2817 if test "$Documentation" = "yes"; then
2818  CppAD_DOCUMENTATION_TRUE=
2819  CppAD_DOCUMENTATION_FALSE='#'
2820else
2821  CppAD_DOCUMENTATION_TRUE='#'
2822  CppAD_DOCUMENTATION_FALSE=
2823fi
2824
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $Documentation" >&5
2826$as_echo "$Documentation" >&6; }
2827
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-stdvector" >&5
2829$as_echo_n "checking --with-stdvector... " >&6; }
2830
2831# Check whether --with-stdvector was given.
2832if test "${with_stdvector+set}" = set; then :
2833  withval=$with_stdvector; stdvector="yes"
2834else
2835  stdvector="no"
2836
2837fi
2838
2839if test "$stdvector" = "yes" ; then
2840        cppad_stdvector=1
2841
2842else
2843        cppad_stdvector=0
2844
2845fi
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $stdvector" >&5
2847$as_echo "$stdvector" >&6; }
2848
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-boostvector" >&5
2850$as_echo_n "checking --with-boostvector... " >&6; }
2851
2852# Check whether --with-boostvector was given.
2853if test "${with_boostvector+set}" = set; then :
2854  withval=$with_boostvector; boostvector="yes"
2855else
2856  boostvector="no"
2857
2858fi
2859
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boostvector" >&5
2861$as_echo "$boostvector" >&6; }
2862if test "$boostvector" = "yes" ; then
2863        if test "$stdvector" != "no" ; then
2864                as_fn_error $? "cannot --with both stdvector and boostvector" "$LINENO" 5
2865        fi
2866        cppad_boostvector=1
2867
2868else
2869        cppad_boostvector=0
2870
2871fi
2872
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-eigenvector" >&5
2874$as_echo_n "checking --with-eigenvector... " >&6; }
2875
2876# Check whether --with-eigenvector was given.
2877if test "${with_eigenvector+set}" = set; then :
2878  withval=$with_eigenvector; eigenvector="yes"
2879else
2880  eigenvector="no"
2881
2882fi
2883
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $eigenvector" >&5
2885$as_echo "$eigenvector" >&6; }
2886if test "$eigenvector" = "yes" ; then
2887        if test "$stdvector" != "no" ; then
2888                as_fn_error $? "cannot --with both stdvector and eigenvector" "$LINENO" 5
2889        fi
2890        if test "$boostvector" != "no" ; then
2891                as_fn_error $? "cannot --with both boostvector and eigenvector" "$LINENO" 5
2892        fi
2893        cppad_eigenvector=1
2894
2895else
2896        cppad_eigenvector=0
2897
2898fi
2899
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-sparse_set" >&5
2901$as_echo_n "checking --with-sparse_set... " >&6; }
2902
2903# Check whether --with-sparse_set was given.
2904if test "${with_sparse_set+set}" = set; then :
2905  withval=$with_sparse_set; sparse_set="yes"
2906else
2907  sparse_set="no"
2908
2909fi
2910
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sparse_set" >&5
2912$as_echo "$sparse_set" >&6; }
2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-sparse_list" >&5
2914$as_echo_n "checking --with-sparse_list... " >&6; }
2915
2916# Check whether --with-sparse_list was given.
2917if test "${with_sparse_list+set}" = set; then :
2918  withval=$with_sparse_list; sparse_list="yes"
2919else
2920  sparse_list="no"
2921
2922fi
2923
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sparse_list" >&5
2925$as_echo "$sparse_list" >&6; }
2926if test "$sparse_set" = "yes" ; then
2927        if test "$sparse_list" == "yes" ; then
2928                as_fn_error $? "cannot --with both sparse_set and sparse_list" "$LINENO" 5
2929        fi
2930        cppad_internal_sparse_set=sparse_set
2931
2932else
2933        cppad_internal_sparse_set=sparse_list
2934
2935fi
2936
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSTFIX_DIR" >&5
2938$as_echo_n "checking POSTFIX_DIR... " >&6; }
2939
2940 if test "$POSTFIX_DIR" != ""; then
2941  CppAD_POSTFIX_TRUE=
2942  CppAD_POSTFIX_FALSE='#'
2943else
2944  CppAD_POSTFIX_TRUE='#'
2945  CppAD_POSTFIX_FALSE=
2946fi
2947
2948if test "$POSTFIX_DIR" != "" ; then
2949        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POSTFIX_DIR" >&5
2950$as_echo "$POSTFIX_DIR" >&6; }
2951else
2952        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953$as_echo "no" >&6; }
2954fi
2955
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ADOLC_DIR" >&5
2957$as_echo_n "checking ADOLC_DIR... " >&6; }
2958
2959 if test "$ADOLC_DIR" != ""; then
2960  CppAD_ADOLC_TRUE=
2961  CppAD_ADOLC_FALSE='#'
2962else
2963  CppAD_ADOLC_TRUE='#'
2964  CppAD_ADOLC_FALSE=
2965fi
2966
2967if test "$ADOLC_DIR" != "" ; then
2968        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ADOLC_DIR" >&5
2969$as_echo "$ADOLC_DIR" >&6; }
2970        if test "$have_ar" = "no"; then
2971                as_fn_error $? "ar is missing and ADOLC_DIR is present" "$LINENO" 5
2972        fi
2973else
2974        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975$as_echo "no" >&6; }
2976fi
2977
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking EIGEN_DIR" >&5
2979$as_echo_n "checking EIGEN_DIR... " >&6; }
2980
2981 if test "$EIGEN_DIR" != ""; then
2982  CppAD_EIGEN_DIR_TRUE=
2983  CppAD_EIGEN_DIR_FALSE='#'
2984else
2985  CppAD_EIGEN_DIR_TRUE='#'
2986  CppAD_EIGEN_DIR_FALSE=
2987fi
2988
2989if test "$EIGEN_DIR" != "" ; then
2990        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EIGEN_DIR" >&5
2991$as_echo "$EIGEN_DIR" >&6; }
2992        EIGEN_INCLUDE=-I$EIGEN_DIR/include
2993
2994else
2995        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996$as_echo "no" >&6; }
2997
2998fi
2999
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking FADBAD_DIR" >&5
3001$as_echo_n "checking FADBAD_DIR... " >&6; }
3002
3003 if test "$FADBAD_DIR" != ""; then
3004  CppAD_FADBAD_TRUE=
3005  CppAD_FADBAD_FALSE='#'
3006else
3007  CppAD_FADBAD_TRUE='#'
3008  CppAD_FADBAD_FALSE=
3009fi
3010
3011if test "$FADBAD_DIR" != "" ; then
3012        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FADBAD_DIR" >&5
3013$as_echo "$FADBAD_DIR" >&6; }
3014        if test "$have_ar" = "no"; then
3015                as_fn_error $? "ar is missing and FADBAD_DIR is present" "$LINENO" 5
3016        fi
3017else
3018        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019$as_echo "no" >&6; }
3020fi
3021
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SACADO_DIR" >&5
3023$as_echo_n "checking SACADO_DIR... " >&6; }
3024
3025 if test "$SACADO_DIR" != ""; then
3026  CppAD_SACADO_TRUE=
3027  CppAD_SACADO_FALSE='#'
3028else
3029  CppAD_SACADO_TRUE='#'
3030  CppAD_SACADO_FALSE=
3031fi
3032
3033if test "$SACADO_DIR" != "" ; then
3034        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SACADO_DIR" >&5
3035$as_echo "$SACADO_DIR" >&6; }
3036        if test "$have_ar" = "no"; then
3037                as_fn_error $? "ar is missing and SACADO_DIR is present" "$LINENO" 5
3038        fi
3039else
3040        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041$as_echo "no" >&6; }
3042fi
3043
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPOPT_DIR" >&5
3045$as_echo_n "checking IPOPT_DIR... " >&6; }
3046
3047 if test "$IPOPT_DIR" != ""; then
3048  CppAD_IPOPT_TRUE=
3049  CppAD_IPOPT_FALSE='#'
3050else
3051  CppAD_IPOPT_TRUE='#'
3052  CppAD_IPOPT_FALSE=
3053fi
3054
3055if test "$IPOPT_DIR" != "" ; then
3056        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPOPT_DIR" >&5
3057$as_echo "$IPOPT_DIR" >&6; }
3058        if test "$have_ar" = "no"; then
3059                as_fn_error $? "ar is missing and IPOPT_DIR is present" "$LINENO" 5
3060        fi
3061else
3062        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063$as_echo "no" >&6; }
3064fi
3065
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking BOOST_DIR" >&5
3067$as_echo_n "checking BOOST_DIR... " >&6; }
3068
3069 if test "$BOOST_DIR" != ""; then
3070  CppAD_BOOST_DIR_TRUE=
3071  CppAD_BOOST_DIR_FALSE='#'
3072else
3073  CppAD_BOOST_DIR_TRUE='#'
3074  CppAD_BOOST_DIR_FALSE=
3075fi
3076
3077if test "$BOOST_DIR" != "" ; then
3078        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOST_DIR" >&5
3079$as_echo "$BOOST_DIR" >&6; }
3080        BOOST_INCLUDE=-I$BOOST_DIR/include
3081
3082else
3083        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084$as_echo "no" >&6; }
3085
3086fi
3087
3088#
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXX_FLAGS" >&5
3090$as_echo_n "checking CXX_FLAGS... " >&6; }
3091
3092# cxx_flags for fadbad and eigen
3093if test "$CXX_FLAGS" != "" ; then
3094        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FLAGS" >&5
3095$as_echo "$CXX_FLAGS" >&6; }
3096        cxx_flags_fadbad=`echo "$CXX_FLAGS" | sed -e 's|-Wshadow||'`
3097        cxx_flags_eigen="$cxx_flags_fadbda -Wno-long-long"
3098else
3099        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100$as_echo "no" >&6; }
3101        cxx_flags_fadbad=""
3102        cxx_flags_eigen=""
3103fi
3104CXX_FLAGS_FADBAD="$cxx_flags_fadbad"
3105
3106CXX_FLAGS_EIGEN="$cxx_flags_eigen"
3107
3108
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OPENMP_FLAGS" >&5
3110$as_echo_n "checking OPENMP_FLAGS... " >&6; }
3111
3112if test "$OPENMP_FLAGS" != "" ; then
3113        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENMP_FLAGS" >&5
3114$as_echo "$OPENMP_FLAGS" >&6; }
3115else
3116        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117$as_echo "no" >&6; }
3118fi
3119 if test "$OPENMP_FLAGS" != ""; then
3120  CppAD_OPENMP_TRUE=
3121  CppAD_OPENMP_FALSE='#'
3122else
3123  CppAD_OPENMP_TRUE='#'
3124  CppAD_OPENMP_FALSE=
3125fi
3126
3127
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MAX_NUM_THREADS" >&5
3129$as_echo_n "checking MAX_NUM_THREADS... " >&6; }
3130
3131if test "$MAX_NUM_THREADS" != "" ; then
3132        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAX_NUM_THREADS" >&5
3133$as_echo "$MAX_NUM_THREADS" >&6; }
3134        if test "$MAX_NUM_THREADS" -lt "4" ; then
3135                as_fn_error $? " MAX_NUM_THREADS=$MAX_NUM_THREADS is less than 4
3136                " "$LINENO" 5
3137        fi
3138        max_num_threads="$MAX_NUM_THREADS"
3139else
3140        max_num_threads="48"
3141        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using default value $max_num_threads" >&5
3142$as_echo "no, using default value $max_num_threads" >&6; }
3143fi
3144cppad_max_num_threads=$max_num_threads
3145
3146
3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TAPE_ADDR_TYPE" >&5
3148$as_echo_n "checking TAPE_ADDR_TYPE... " >&6; }
3149
3150if test "$TAPE_ADDR_TYPE" == "" ; then
3151        addr_t="unsigned int"
3152else
3153        addr_t="$TAPE_ADDR_TYPE"
3154fi
3155cppad_tape_addr_type=$addr_t
3156
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $addr_t" >&5
3158$as_echo "$addr_t" >&6; }
3159ok="no"
3160if test "$addr_t" == "size_t" ; then
3161        ok="yes"
3162fi
3163if test "$addr_t" == "int" ; then
3164        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TAPE_ADDR_TYPE=int is for CppAD developers (not users)
3165        " >&5
3166$as_echo "$as_me: WARNING: TAPE_ADDR_TYPE=int is for CppAD developers (not users)
3167        " >&2;}
3168        ok="yes"
3169fi
3170if test "$addr_t" == "unsigned int" ; then
3171        ok="yes"
3172fi
3173if test "$addr_t" == "unsigned short int" ; then
3174        ok="yes"
3175fi
3176if test "$ok" == "no" ; then
3177        as_fn_error $? "$addr_t is not a valid choice for TAPE_ADDR_TYPE
3178        " "$LINENO" 5
3179fi
3180
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TAPE_ID_TYPE" >&5
3182$as_echo_n "checking TAPE_ID_TYPE... " >&6; }
3183
3184if test "$TAPE_ID_TYPE" == "" ; then
3185        tape_id_t="unsigned int"
3186else
3187        tape_id_t="$TAPE_ID_TYPE"
3188fi
3189cppad_tape_id_type=$tape_id_t
3190
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tape_id_t" >&5
3192$as_echo "$tape_id_t" >&6; }
3193ok="no"
3194if test "$tape_id_t" == "size_t" ; then
3195        ok="yes"
3196fi
3197if test "$tape_id_t" == "int" ; then
3198        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TAPE_ID_TYPE=int is for CppAD developers (not users)
3199        " >&5
3200$as_echo "$as_me: WARNING: TAPE_ID_TYPE=int is for CppAD developers (not users)
3201        " >&2;}
3202        ok="yes"
3203fi
3204if test "$tape_id_t" == "unsigned int" ; then
3205        ok="yes"
3206fi
3207if test "$tape_id_t" == "unsigned short int" ; then
3208        ok="yes"
3209fi
3210if test "$ok" == "no" ; then
3211        as_fn_error $? "$tape_id_t is not a valid choice for TAPE_ID_TYPE
3212        " "$LINENO" 5
3213fi
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: ********** End Checking Command Line arguments ***************" >&5
3215$as_echo "$as_me: ********** End Checking Command Line arguments ***************" >&6;}
3216
3217cppad_has_nullptr=0
3218
3219
3220ac_ext=c
3221ac_cpp='$CPP $CPPFLAGS'
3222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225if test -n "$ac_tool_prefix"; then
3226  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3227set dummy ${ac_tool_prefix}gcc; ac_word=$2
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229$as_echo_n "checking for $ac_word... " >&6; }
3230if ${ac_cv_prog_CC+:} false; then :
3231  $as_echo_n "(cached) " >&6
3232else
3233  if test -n "$CC"; then
3234  ac_cv_prog_CC="$CC" # Let the user override the test.
3235else
3236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237for as_dir in $PATH
3238do
3239  IFS=$as_save_IFS
3240  test -z "$as_dir" && as_dir=.
3241    for ac_exec_ext in '' $ac_executable_extensions; do
3242  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3244    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245    break 2
3246  fi
3247done
3248  done
3249IFS=$as_save_IFS
3250
3251fi
3252fi
3253CC=$ac_cv_prog_CC
3254if test -n "$CC"; then
3255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3256$as_echo "$CC" >&6; }
3257else
3258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259$as_echo "no" >&6; }
3260fi
3261
3262
3263fi
3264if test -z "$ac_cv_prog_CC"; then
3265  ac_ct_CC=$CC
3266  # Extract the first word of "gcc", so it can be a program name with args.
3267set dummy gcc; ac_word=$2
3268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269$as_echo_n "checking for $ac_word... " >&6; }
3270if ${ac_cv_prog_ac_ct_CC+:} false; then :
3271  $as_echo_n "(cached) " >&6
3272else
3273  if test -n "$ac_ct_CC"; then
3274  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3275else
3276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277for as_dir in $PATH
3278do
3279  IFS=$as_save_IFS
3280  test -z "$as_dir" && as_dir=.
3281    for ac_exec_ext in '' $ac_executable_extensions; do
3282  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283    ac_cv_prog_ac_ct_CC="gcc"
3284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285    break 2
3286  fi
3287done
3288  done
3289IFS=$as_save_IFS
3290
3291fi
3292fi
3293ac_ct_CC=$ac_cv_prog_ac_ct_CC
3294if test -n "$ac_ct_CC"; then
3295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3296$as_echo "$ac_ct_CC" >&6; }
3297else
3298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299$as_echo "no" >&6; }
3300fi
3301
3302  if test "x$ac_ct_CC" = x; then
3303    CC=""
3304  else
3305    case $cross_compiling:$ac_tool_warned in
3306yes:)
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3309ac_tool_warned=yes ;;
3310esac
3311    CC=$ac_ct_CC
3312  fi
3313else
3314  CC="$ac_cv_prog_CC"
3315fi
3316
3317if test -z "$CC"; then
3318          if test -n "$ac_tool_prefix"; then
3319    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3320set dummy ${ac_tool_prefix}cc; ac_word=$2
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322$as_echo_n "checking for $ac_word... " >&6; }
3323if ${ac_cv_prog_CC+:} false; then :
3324  $as_echo_n "(cached) " >&6
3325else
3326  if test -n "$CC"; then
3327  ac_cv_prog_CC="$CC" # Let the user override the test.
3328else
3329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330for as_dir in $PATH
3331do
3332  IFS=$as_save_IFS
3333  test -z "$as_dir" && as_dir=.
3334    for ac_exec_ext in '' $ac_executable_extensions; do
3335  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3336    ac_cv_prog_CC="${ac_tool_prefix}cc"
3337    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338    break 2
3339  fi
3340done
3341  done
3342IFS=$as_save_IFS
3343
3344fi
3345fi
3346CC=$ac_cv_prog_CC
3347if test -n "$CC"; then
3348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3349$as_echo "$CC" >&6; }
3350else
3351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352$as_echo "no" >&6; }
3353fi
3354
3355
3356  fi
3357fi
3358if test -z "$CC"; then
3359  # Extract the first word of "cc", so it can be a program name with args.
3360set dummy cc; ac_word=$2
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362$as_echo_n "checking for $ac_word... " >&6; }
3363if ${ac_cv_prog_CC+:} false; then :
3364  $as_echo_n "(cached) " >&6
3365else
3366  if test -n "$CC"; then
3367  ac_cv_prog_CC="$CC" # Let the user override the test.
3368else
3369  ac_prog_rejected=no
3370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371for as_dir in $PATH
3372do
3373  IFS=$as_save_IFS
3374  test -z "$as_dir" && as_dir=.
3375    for ac_exec_ext in '' $ac_executable_extensions; do
3376  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3378       ac_prog_rejected=yes
3379       continue
3380     fi
3381    ac_cv_prog_CC="cc"
3382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383    break 2
3384  fi
3385done
3386  done
3387IFS=$as_save_IFS
3388
3389if test $ac_prog_rejected = yes; then
3390  # We found a bogon in the path, so make sure we never use it.
3391  set dummy $ac_cv_prog_CC
3392  shift
3393  if test $# != 0; then
3394    # We chose a different compiler from the bogus one.
3395    # However, it has the same basename, so the bogon will be chosen
3396    # first if we set CC to just the basename; use the full file name.
3397    shift
3398    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3399  fi
3400fi
3401fi
3402fi
3403CC=$ac_cv_prog_CC
3404if test -n "$CC"; then
3405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406$as_echo "$CC" >&6; }
3407else
3408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409$as_echo "no" >&6; }
3410fi
3411
3412
3413fi
3414if test -z "$CC"; then
3415  if test -n "$ac_tool_prefix"; then
3416  for ac_prog in cl.exe
3417  do
3418    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3419set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421$as_echo_n "checking for $ac_word... " >&6; }
3422if ${ac_cv_prog_CC+:} false; then :
3423  $as_echo_n "(cached) " >&6
3424else
3425  if test -n "$CC"; then
3426  ac_cv_prog_CC="$CC" # Let the user override the test.
3427else
3428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429for as_dir in $PATH
3430do
3431  IFS=$as_save_IFS
3432  test -z "$as_dir" && as_dir=.
3433    for ac_exec_ext in '' $ac_executable_extensions; do
3434  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3435    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3436    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437    break 2
3438  fi
3439done
3440  done
3441IFS=$as_save_IFS
3442
3443fi
3444fi
3445CC=$ac_cv_prog_CC
3446if test -n "$CC"; then
3447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3448$as_echo "$CC" >&6; }
3449else
3450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451$as_echo "no" >&6; }
3452fi
3453
3454
3455    test -n "$CC" && break
3456  done
3457fi
3458if test -z "$CC"; then
3459  ac_ct_CC=$CC
3460  for ac_prog in cl.exe
3461do
3462  # Extract the first word of "$ac_prog", so it can be a program name with args.
3463set dummy $ac_prog; ac_word=$2
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465$as_echo_n "checking for $ac_word... " >&6; }
3466if ${ac_cv_prog_ac_ct_CC+:} false; then :
3467  $as_echo_n "(cached) " >&6
3468else
3469  if test -n "$ac_ct_CC"; then
3470  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3471else
3472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473for as_dir in $PATH
3474do
3475  IFS=$as_save_IFS
3476  test -z "$as_dir" && as_dir=.
3477    for ac_exec_ext in '' $ac_executable_extensions; do
3478  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479    ac_cv_prog_ac_ct_CC="$ac_prog"
3480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481    break 2
3482  fi
3483done
3484  done
3485IFS=$as_save_IFS
3486
3487fi
3488fi
3489ac_ct_CC=$ac_cv_prog_ac_ct_CC
3490if test -n "$ac_ct_CC"; then
3491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3492$as_echo "$ac_ct_CC" >&6; }
3493else
3494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495$as_echo "no" >&6; }
3496fi
3497
3498
3499  test -n "$ac_ct_CC" && break
3500done
3501
3502  if test "x$ac_ct_CC" = x; then
3503    CC=""
3504  else
3505    case $cross_compiling:$ac_tool_warned in
3506yes:)
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3509ac_tool_warned=yes ;;
3510esac
3511    CC=$ac_ct_CC
3512  fi
3513fi
3514
3515fi
3516
3517
3518test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520as_fn_error $? "no acceptable C compiler found in \$PATH
3521See \`config.log' for more details" "$LINENO" 5; }
3522
3523# Provide some information about the compiler.
3524$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3525set X $ac_compile
3526ac_compiler=$2
3527for ac_option in --version -v -V -qversion; do
3528  { { ac_try="$ac_compiler $ac_option >&5"
3529case "(($ac_try" in
3530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531  *) ac_try_echo=$ac_try;;
3532esac
3533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534$as_echo "$ac_try_echo"; } >&5
3535  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3536  ac_status=$?
3537  if test -s conftest.err; then
3538    sed '10a\
3539... rest of stderr output deleted ...
3540         10q' conftest.err >conftest.er1
3541    cat conftest.er1 >&5
3542  fi
3543  rm -f conftest.er1 conftest.err
3544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545  test $ac_status = 0; }
3546done
3547
3548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549/* end confdefs.h.  */
3550
3551int
3552main ()
3553{
3554
3555  ;
3556  return 0;
3557}
3558_ACEOF
3559ac_clean_files_save=$ac_clean_files
3560ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3561# Try to create an executable without -o first, disregard a.out.
3562# It will help us diagnose broken compilers, and finding out an intuition
3563# of exeext.
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3565$as_echo_n "checking whether the C compiler works... " >&6; }
3566ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3567
3568# The possible output files:
3569ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3570
3571ac_rmfiles=
3572for ac_file in $ac_files
3573do
3574  case $ac_file in
3575    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3576    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3577  esac
3578done
3579rm -f $ac_rmfiles
3580
3581if { { ac_try="$ac_link_default"
3582case "(($ac_try" in
3583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584  *) ac_try_echo=$ac_try;;
3585esac
3586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587$as_echo "$ac_try_echo"; } >&5
3588  (eval "$ac_link_default") 2>&5
3589  ac_status=$?
3590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591  test $ac_status = 0; }; then :
3592  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3593# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3594# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3595# so that the user can short-circuit this test for compilers unknown to
3596# Autoconf.
3597for ac_file in $ac_files ''
3598do
3599  test -f "$ac_file" || continue
3600  case $ac_file in
3601    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3602        ;;
3603    [ab].out )
3604        # We found the default executable, but exeext='' is most
3605        # certainly right.
3606        break;;
3607    *.* )
3608        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3609        then :; else
3610           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3611        fi
3612        # We set ac_cv_exeext here because the later test for it is not
3613        # safe: cross compilers may not add the suffix if given an `-o'
3614        # argument, so we may need to know it at that point already.
3615        # Even if this section looks crufty: it has the advantage of
3616        # actually working.
3617        break;;
3618    * )
3619        break;;
3620  esac
3621done
3622test "$ac_cv_exeext" = no && ac_cv_exeext=
3623
3624else
3625  ac_file=''
3626fi
3627if test -z "$ac_file"; then :
3628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629$as_echo "no" >&6; }
3630$as_echo "$as_me: failed program was:" >&5
3631sed 's/^/| /' conftest.$ac_ext >&5
3632
3633{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3635as_fn_error 77 "C compiler cannot create executables
3636See \`config.log' for more details" "$LINENO" 5; }
3637else
3638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3639$as_echo "yes" >&6; }
3640fi
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3642$as_echo_n "checking for C compiler default output file name... " >&6; }
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3644$as_echo "$ac_file" >&6; }
3645ac_exeext=$ac_cv_exeext
3646
3647rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3648ac_clean_files=$ac_clean_files_save
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3650$as_echo_n "checking for suffix of executables... " >&6; }
3651if { { ac_try="$ac_link"
3652case "(($ac_try" in
3653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654  *) ac_try_echo=$ac_try;;
3655esac
3656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3657$as_echo "$ac_try_echo"; } >&5
3658  (eval "$ac_link") 2>&5
3659  ac_status=$?
3660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661  test $ac_status = 0; }; then :
3662  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3663# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3664# work properly (i.e., refer to `conftest.exe'), while it won't with
3665# `rm'.
3666for ac_file in conftest.exe conftest conftest.*; do
3667  test -f "$ac_file" || continue
3668  case $ac_file in
3669    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3670    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3671          break;;
3672    * ) break;;
3673  esac
3674done
3675else
3676  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3679See \`config.log' for more details" "$LINENO" 5; }
3680fi
3681rm -f conftest conftest$ac_cv_exeext
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3683$as_echo "$ac_cv_exeext" >&6; }
3684
3685rm -f conftest.$ac_ext
3686EXEEXT=$ac_cv_exeext
3687ac_exeext=$EXEEXT
3688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689/* end confdefs.h.  */
3690#include <stdio.h>
3691int
3692main ()
3693{
3694FILE *f = fopen ("conftest.out", "w");
3695 return ferror (f) || fclose (f) != 0;
3696
3697  ;
3698  return 0;
3699}
3700_ACEOF
3701ac_clean_files="$ac_clean_files conftest.out"
3702# Check that the compiler produces executables we can run.  If not, either
3703# the compiler is broken, or we cross compile.
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3705$as_echo_n "checking whether we are cross compiling... " >&6; }
3706if test "$cross_compiling" != yes; then
3707  { { ac_try="$ac_link"
3708case "(($ac_try" in
3709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710  *) ac_try_echo=$ac_try;;
3711esac
3712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713$as_echo "$ac_try_echo"; } >&5
3714  (eval "$ac_link") 2>&5
3715  ac_status=$?
3716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717  test $ac_status = 0; }
3718  if { ac_try='./conftest$ac_cv_exeext'
3719  { { case "(($ac_try" in
3720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721  *) ac_try_echo=$ac_try;;
3722esac
3723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724$as_echo "$ac_try_echo"; } >&5
3725  (eval "$ac_try") 2>&5
3726  ac_status=$?
3727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728  test $ac_status = 0; }; }; then
3729    cross_compiling=no
3730  else
3731    if test "$cross_compiling" = maybe; then
3732        cross_compiling=yes
3733    else
3734        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3736as_fn_error $? "cannot run C compiled programs.
3737If you meant to cross compile, use \`--host'.
3738See \`config.log' for more details" "$LINENO" 5; }
3739    fi
3740  fi
3741fi
3742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3743$as_echo "$cross_compiling" >&6; }
3744
3745rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3746ac_clean_files=$ac_clean_files_save
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3748$as_echo_n "checking for suffix of object files... " >&6; }
3749if ${ac_cv_objext+:} false; then :
3750  $as_echo_n "(cached) " >&6
3751else
3752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753/* end confdefs.h.  */
3754
3755int
3756main ()
3757{
3758
3759  ;
3760  return 0;
3761}
3762_ACEOF
3763rm -f conftest.o conftest.obj
3764if { { ac_try="$ac_compile"
3765case "(($ac_try" in
3766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767  *) ac_try_echo=$ac_try;;
3768esac
3769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3770$as_echo "$ac_try_echo"; } >&5
3771  (eval "$ac_compile") 2>&5
3772  ac_status=$?
3773  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3774  test $ac_status = 0; }; then :
3775  for ac_file in conftest.o conftest.obj conftest.*; do
3776  test -f "$ac_file" || continue;
3777  case $ac_file in
3778    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3779    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3780       break;;
3781  esac
3782done
3783else
3784  $as_echo "$as_me: failed program was:" >&5
3785sed 's/^/| /' conftest.$ac_ext >&5
3786
3787{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789as_fn_error $? "cannot compute suffix of object files: cannot compile
3790See \`config.log' for more details" "$LINENO" 5; }
3791fi
3792rm -f conftest.$ac_cv_objext conftest.$ac_ext
3793fi
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3795$as_echo "$ac_cv_objext" >&6; }
3796OBJEXT=$ac_cv_objext
3797ac_objext=$OBJEXT
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3799$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3800if ${ac_cv_c_compiler_gnu+:} false; then :
3801  $as_echo_n "(cached) " >&6
3802else
3803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804/* end confdefs.h.  */
3805
3806int
3807main ()
3808{
3809#ifndef __GNUC__
3810       choke me
3811#endif
3812
3813  ;
3814  return 0;
3815}
3816_ACEOF
3817if ac_fn_c_try_compile "$LINENO"; then :
3818  ac_compiler_gnu=yes
3819else
3820  ac_compiler_gnu=no
3821fi
3822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823ac_cv_c_compiler_gnu=$ac_compiler_gnu
3824
3825fi
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3827$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3828if test $ac_compiler_gnu = yes; then
3829  GCC=yes
3830else
3831  GCC=
3832fi
3833ac_test_CFLAGS=${CFLAGS+set}
3834ac_save_CFLAGS=$CFLAGS
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3836$as_echo_n "checking whether $CC accepts -g... " >&6; }
3837if ${ac_cv_prog_cc_g+:} false; then :
3838  $as_echo_n "(cached) " >&6
3839else
3840  ac_save_c_werror_flag=$ac_c_werror_flag
3841   ac_c_werror_flag=yes
3842   ac_cv_prog_cc_g=no
3843   CFLAGS="-g"
3844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845/* end confdefs.h.  */
3846
3847int
3848main ()
3849{
3850
3851  ;
3852  return 0;
3853}
3854_ACEOF
3855if ac_fn_c_try_compile "$LINENO"; then :
3856  ac_cv_prog_cc_g=yes
3857else
3858  CFLAGS=""
3859      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860/* end confdefs.h.  */
3861
3862int
3863main ()
3864{
3865
3866  ;
3867  return 0;
3868}
3869_ACEOF
3870if ac_fn_c_try_compile "$LINENO"; then :
3871
3872else
3873  ac_c_werror_flag=$ac_save_c_werror_flag
3874         CFLAGS="-g"
3875         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876/* end confdefs.h.  */
3877
3878int
3879main ()
3880{
3881
3882  ;
3883  return 0;
3884}
3885_ACEOF
3886if ac_fn_c_try_compile "$LINENO"; then :
3887  ac_cv_prog_cc_g=yes
3888fi
3889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890fi
3891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892fi
3893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894   ac_c_werror_flag=$ac_save_c_werror_flag
3895fi
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3897$as_echo "$ac_cv_prog_cc_g" >&6; }
3898if test "$ac_test_CFLAGS" = set; then
3899  CFLAGS=$ac_save_CFLAGS
3900elif test $ac_cv_prog_cc_g = yes; then
3901  if test "$GCC" = yes; then
3902    CFLAGS="-g -O2"
3903  else
3904    CFLAGS="-g"
3905  fi
3906else
3907  if test "$GCC" = yes; then
3908    CFLAGS="-O2"
3909  else
3910    CFLAGS=
3911  fi
3912fi
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3914$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3915if ${ac_cv_prog_cc_c89+:} false; then :
3916  $as_echo_n "(cached) " >&6
3917else
3918  ac_cv_prog_cc_c89=no
3919ac_save_CC=$CC
3920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921/* end confdefs.h.  */
3922#include <stdarg.h>
3923#include <stdio.h>
3924#include <sys/types.h>
3925#include <sys/stat.h>
3926/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3927struct buf { int x; };
3928FILE * (*rcsopen) (struct buf *, struct stat *, int);
3929static char *e (p, i)
3930     char **p;
3931     int i;
3932{
3933  return p[i];
3934}
3935static char *f (char * (*g) (char **, int), char **p, ...)
3936{
3937  char *s;
3938  va_list v;
3939  va_start (v,p);
3940  s = g (p, va_arg (v,int));
3941  va_end (v);
3942  return s;
3943}
3944
3945/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3946   function prototypes and stuff, but not '\xHH' hex character constants.
3947   These don't provoke an error unfortunately, instead are silently treated
3948   as 'x'.  The following induces an error, until -std is added to get
3949   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3950   array size at least.  It's necessary to write '\x00'==0 to get something
3951   that's true only with -std.  */
3952int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3953
3954/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3955   inside strings and character constants.  */
3956#define FOO(x) 'x'
3957int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3958
3959int test (int i, double x);
3960struct s1 {int (*f) (int a);};
3961struct s2 {int (*f) (double a);};
3962int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3963int argc;
3964char **argv;
3965int
3966main ()
3967{
3968return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3969  ;
3970  return 0;
3971}
3972_ACEOF
3973for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3974        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3975do
3976  CC="$ac_save_CC $ac_arg"
3977  if ac_fn_c_try_compile "$LINENO"; then :
3978  ac_cv_prog_cc_c89=$ac_arg
3979fi
3980rm -f core conftest.err conftest.$ac_objext
3981  test "x$ac_cv_prog_cc_c89" != "xno" && break
3982done
3983rm -f conftest.$ac_ext
3984CC=$ac_save_CC
3985
3986fi
3987# AC_CACHE_VAL
3988case "x$ac_cv_prog_cc_c89" in
3989  x)
3990    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3991$as_echo "none needed" >&6; } ;;
3992  xno)
3993    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3994$as_echo "unsupported" >&6; } ;;
3995  *)
3996    CC="$CC $ac_cv_prog_cc_c89"
3997    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3998$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3999esac
4000if test "x$ac_cv_prog_cc_c89" != xno; then :
4001
4002fi
4003
4004ac_ext=c
4005ac_cpp='$CPP $CPPFLAGS'
4006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009
4010
4011ac_ext=c
4012ac_cpp='$CPP $CPPFLAGS'
4013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015ac_compiler_gnu=$ac_cv_c_compiler_gnu
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4017$as_echo_n "checking how to run the C preprocessor... " >&6; }
4018# On Suns, sometimes $CPP names a directory.
4019if test -n "$CPP" && test -d "$CPP"; then
4020  CPP=
4021fi
4022if test -z "$CPP"; then
4023  if ${ac_cv_prog_CPP+:} false; then :
4024  $as_echo_n "(cached) " >&6
4025else
4026      # Double quotes because CPP needs to be expanded
4027    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4028    do
4029      ac_preproc_ok=false
4030for ac_c_preproc_warn_flag in '' yes
4031do
4032  # Use a header file that comes with gcc, so configuring glibc
4033  # with a fresh cross-compiler works.
4034  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4035  # <limits.h> exists even on freestanding compilers.
4036  # On the NeXT, cc -E runs the code through the compiler's parser,
4037  # not just through cpp. "Syntax error" is here to catch this case.
4038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039/* end confdefs.h.  */
4040#ifdef __STDC__
4041# include <limits.h>
4042#else
4043# include <assert.h>
4044#endif
4045                     Syntax error
4046_ACEOF
4047if ac_fn_c_try_cpp "$LINENO"; then :
4048
4049else
4050  # Broken: fails on valid input.
4051continue
4052fi
4053rm -f conftest.err conftest.i conftest.$ac_ext
4054
4055  # OK, works on sane cases.  Now check whether nonexistent headers
4056  # can be detected and how.
4057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058/* end confdefs.h.  */
4059#include <ac_nonexistent.h>
4060_ACEOF
4061if ac_fn_c_try_cpp "$LINENO"; then :
4062  # Broken: success on invalid input.
4063continue
4064else
4065  # Passes both tests.
4066ac_preproc_ok=:
4067break
4068fi
4069rm -f conftest.err conftest.i conftest.$ac_ext
4070
4071done
4072# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4073rm -f conftest.i conftest.err conftest.$ac_ext
4074if $ac_preproc_ok; then :
4075  break
4076fi
4077
4078    done
4079    ac_cv_prog_CPP=$CPP
4080
4081fi
4082  CPP=$ac_cv_prog_CPP
4083else
4084  ac_cv_prog_CPP=$CPP
4085fi
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4087$as_echo "$CPP" >&6; }
4088ac_preproc_ok=false
4089for ac_c_preproc_warn_flag in '' yes
4090do
4091  # Use a header file that comes with gcc, so configuring glibc
4092  # with a fresh cross-compiler works.
4093  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4094  # <limits.h> exists even on freestanding compilers.
4095  # On the NeXT, cc -E runs the code through the compiler's parser,
4096  # not just through cpp. "Syntax error" is here to catch this case.
4097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098/* end confdefs.h.  */
4099#ifdef __STDC__
4100# include <limits.h>
4101#else
4102# include <assert.h>
4103#endif
4104                     Syntax error
4105_ACEOF
4106if ac_fn_c_try_cpp "$LINENO"; then :
4107
4108else
4109  # Broken: fails on valid input.
4110continue
4111fi
4112rm -f conftest.err conftest.i conftest.$ac_ext
4113
4114  # OK, works on sane cases.  Now check whether nonexistent headers
4115  # can be detected and how.
4116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117/* end confdefs.h.  */
4118#include <ac_nonexistent.h>
4119_ACEOF
4120if ac_fn_c_try_cpp "$LINENO"; then :
4121  # Broken: success on invalid input.
4122continue
4123else
4124  # Passes both tests.
4125ac_preproc_ok=:
4126break
4127fi
4128rm -f conftest.err conftest.i conftest.$ac_ext
4129
4130done
4131# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4132rm -f conftest.i conftest.err conftest.$ac_ext
4133if $ac_preproc_ok; then :
4134
4135else
4136  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4138as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4139See \`config.log' for more details" "$LINENO" 5; }
4140fi
4141
4142ac_ext=c
4143ac_cpp='$CPP $CPPFLAGS'
4144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147
4148
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4150$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4151if ${ac_cv_path_GREP+:} false; then :
4152  $as_echo_n "(cached) " >&6
4153else
4154  if test -z "$GREP"; then
4155  ac_path_GREP_found=false
4156  # Loop through the user's path and test for each of PROGNAME-LIST
4157  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4159do
4160  IFS=$as_save_IFS
4161  test -z "$as_dir" && as_dir=.
4162    for ac_prog in grep ggrep; do
4163    for ac_exec_ext in '' $ac_executable_extensions; do
4164      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4165      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4166# Check for GNU ac_path_GREP and select it if it is found.
4167  # Check for GNU $ac_path_GREP
4168case `"$ac_path_GREP" --version 2>&1` in
4169*GNU*)
4170  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4171*)
4172  ac_count=0
4173  $as_echo_n 0123456789 >"conftest.in"
4174  while :
4175  do
4176    cat "conftest.in" "conftest.in" >"conftest.tmp"
4177    mv "conftest.tmp" "conftest.in"
4178    cp "conftest.in" "conftest.nl"
4179    $as_echo 'GREP' >> "conftest.nl"
4180    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4181    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4182    as_fn_arith $ac_count + 1 && ac_count=$as_val
4183    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4184      # Best one so far, save it but keep looking for a better one
4185      ac_cv_path_GREP="$ac_path_GREP"
4186      ac_path_GREP_max=$ac_count
4187    fi
4188    # 10*(2^10) chars as input seems more than enough
4189    test $ac_count -gt 10 && break
4190  done
4191  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4192esac
4193
4194      $ac_path_GREP_found && break 3
4195    done
4196  done
4197  done
4198IFS=$as_save_IFS
4199  if test -z "$ac_cv_path_GREP"; then
4200    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4201  fi
4202else
4203  ac_cv_path_GREP=$GREP
4204fi
4205
4206fi
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4208$as_echo "$ac_cv_path_GREP" >&6; }
4209 GREP="$ac_cv_path_GREP"
4210
4211
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4213$as_echo_n "checking for egrep... " >&6; }
4214if ${ac_cv_path_EGREP+:} false; then :
4215  $as_echo_n "(cached) " >&6
4216else
4217  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4218   then ac_cv_path_EGREP="$GREP -E"
4219   else
4220     if test -z "$EGREP"; then
4221  ac_path_EGREP_found=false
4222  # Loop through the user's path and test for each of PROGNAME-LIST
4223  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4225do
4226  IFS=$as_save_IFS
4227  test -z "$as_dir" && as_dir=.
4228    for ac_prog in egrep; do
4229    for ac_exec_ext in '' $ac_executable_extensions; do
4230      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4231      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4232# Check for GNU ac_path_EGREP and select it if it is found.
4233  # Check for GNU $ac_path_EGREP
4234case `"$ac_path_EGREP" --version 2>&1` in
4235*GNU*)
4236  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4237*)
4238  ac_count=0
4239  $as_echo_n 0123456789 >"conftest.in"
4240  while :
4241  do
4242    cat "conftest.in" "conftest.in" >"conftest.tmp"
4243    mv "conftest.tmp" "conftest.in"
4244    cp "conftest.in" "conftest.nl"
4245    $as_echo 'EGREP' >> "conftest.nl"
4246    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4247    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4248    as_fn_arith $ac_count + 1 && ac_count=$as_val
4249    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4250      # Best one so far, save it but keep looking for a better one
4251      ac_cv_path_EGREP="$ac_path_EGREP"
4252      ac_path_EGREP_max=$ac_count
4253    fi
4254    # 10*(2^10) chars as input seems more than enough
4255    test $ac_count -gt 10 && break
4256  done
4257  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4258esac
4259
4260      $ac_path_EGREP_found && break 3
4261    done
4262  done
4263  done
4264IFS=$as_save_IFS
4265  if test -z "$ac_cv_path_EGREP"; then
4266    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4267  fi
4268else
4269  ac_cv_path_EGREP=$EGREP
4270fi
4271
4272   fi
4273fi
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4275$as_echo "$ac_cv_path_EGREP" >&6; }
4276 EGREP="$ac_cv_path_EGREP"
4277
4278
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4280$as_echo_n "checking for ANSI C header files... " >&6; }
4281if ${ac_cv_header_stdc+:} false; then :
4282  $as_echo_n "(cached) " >&6
4283else
4284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285/* end confdefs.h.  */
4286#include <stdlib.h>
4287#include <stdarg.h>
4288#include <string.h>
4289#include <float.h>
4290
4291int
4292main ()
4293{
4294
4295  ;
4296  return 0;
4297}
4298_ACEOF
4299if ac_fn_c_try_compile "$LINENO"; then :
4300  ac_cv_header_stdc=yes
4301else
4302  ac_cv_header_stdc=no
4303fi
4304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305
4306if test $ac_cv_header_stdc = yes; then
4307  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309/* end confdefs.h.  */
4310#include <string.h>
4311
4312_ACEOF
4313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4314  $EGREP "memchr" >/dev/null 2>&1; then :
4315
4316else
4317  ac_cv_header_stdc=no
4318fi
4319rm -f conftest*
4320
4321fi
4322
4323if test $ac_cv_header_stdc = yes; then
4324  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326/* end confdefs.h.  */
4327#include <stdlib.h>
4328
4329_ACEOF
4330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4331  $EGREP "free" >/dev/null 2>&1; then :
4332
4333else
4334  ac_cv_header_stdc=no
4335fi
4336rm -f conftest*
4337
4338fi
4339
4340if test $ac_cv_header_stdc = yes; then
4341  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4342  if test "$cross_compiling" = yes; then :
4343  :
4344else
4345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346/* end confdefs.h.  */
4347#include <ctype.h>
4348#include <stdlib.h>
4349#if ((' ' & 0x0FF) == 0x020)
4350# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4351# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4352#else
4353# define ISLOWER(c) \
4354                   (('a' <= (c) && (c) <= 'i') \
4355                     || ('j' <= (c) && (c) <= 'r') \
4356                     || ('s' <= (c) && (c) <= 'z'))
4357# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4358#endif
4359
4360#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4361int
4362main ()
4363{
4364  int i;
4365  for (i = 0; i < 256; i++)
4366    if (XOR (islower (i), ISLOWER (i))
4367        || toupper (i) != TOUPPER (i))
4368      return 2;
4369  return 0;
4370}
4371_ACEOF
4372if ac_fn_c_try_run "$LINENO"; then :
4373
4374else
4375  ac_cv_header_stdc=no
4376fi
4377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4378  conftest.$ac_objext conftest.beam conftest.$ac_ext
4379fi
4380
4381fi
4382fi
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4384$as_echo "$ac_cv_header_stdc" >&6; }
4385if test $ac_cv_header_stdc = yes; then
4386
4387$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4388
4389fi
4390
4391# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4392for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4393                  inttypes.h stdint.h unistd.h
4394do :
4395  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4396ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4397"
4398if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4399  cat >>confdefs.h <<_ACEOF
4400#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4401_ACEOF
4402
4403fi
4404
4405done
4406
4407
4408# The cast to long int works around a bug in the HP C Compiler
4409# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4410# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4411# This bug is HP SR number 8606223364.
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
4413$as_echo_n "checking size of size_t... " >&6; }
4414if ${ac_cv_sizeof_size_t+:} false; then :
4415  $as_echo_n "(cached) " >&6
4416else
4417  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
4418
4419else
4420  if test "$ac_cv_type_size_t" = yes; then
4421     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4423as_fn_error 77 "cannot compute sizeof (size_t)
4424See \`config.log' for more details" "$LINENO" 5; }
4425   else
4426     ac_cv_sizeof_size_t=0
4427   fi
4428fi
4429
4430fi
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
4432$as_echo "$ac_cv_sizeof_size_t" >&6; }
4433
4434
4435
4436cat >>confdefs.h <<_ACEOF
4437#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
4438_ACEOF
4439
4440
4441# The cast to long int works around a bug in the HP C Compiler
4442# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4443# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4444# This bug is HP SR number 8606223364.
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
4446$as_echo_n "checking size of unsigned int... " >&6; }
4447if ${ac_cv_sizeof_unsigned_int+:} false; then :
4448  $as_echo_n "(cached) " >&6
4449else
4450  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
4451
4452else
4453  if test "$ac_cv_type_unsigned_int" = yes; then
4454     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4456as_fn_error 77 "cannot compute sizeof (unsigned int)
4457See \`config.log' for more details" "$LINENO" 5; }
4458   else
4459     ac_cv_sizeof_unsigned_int=0
4460   fi
4461fi
4462
4463fi
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
4465$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
4466
4467
4468
4469cat >>confdefs.h <<_ACEOF
4470#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
4471_ACEOF
4472
4473
4474if test "$ac_cv_size_t" == "$ac_cv_unsigned_int" ; then
4475        cppad_size_t_same_unsigned_int=1
4476
4477else
4478        cppad_size_t_same_unsigned_int=0
4479
4480fi
4481
4482if test "$stdvector$boostvector$eigenvector" = "nonono" ; then
4483        cppad_cppadvector=1
4484
4485else
4486        cppad_cppadvector=0
4487
4488fi
4489
4490ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
4491if test "x$ac_cv_func_gettimeofday" = xyes; then :
4492  gettimeofday="yes"
4493else
4494  gettimeofday="no"
4495
4496fi
4497
4498if test "$gettimeofday" = "yes" ; then
4499        cppad_has_gettimeofday=1
4500
4501else
4502        cppad_has_gettimeofday=0
4503
4504fi
4505
4506am__api_version='1.11'
4507
4508ac_aux_dir=
4509for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4510  if test -f "$ac_dir/install-sh"; then
4511    ac_aux_dir=$ac_dir
4512    ac_install_sh="$ac_aux_dir/install-sh -c"
4513    break
4514  elif test -f "$ac_dir/install.sh"; then
4515    ac_aux_dir=$ac_dir
4516    ac_install_sh="$ac_aux_dir/install.sh -c"
4517    break
4518  elif test -f "$ac_dir/shtool"; then
4519    ac_aux_dir=$ac_dir
4520    ac_install_sh="$ac_aux_dir/shtool install -c"
4521    break
4522  fi
4523done
4524if test -z "$ac_aux_dir"; then
4525  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4526fi
4527
4528# These three variables are undocumented and unsupported,
4529# and are intended to be withdrawn in a future Autoconf release.
4530# They can cause serious problems if a builder's source tree is in a directory
4531# whose full name contains unusual characters.
4532ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4533ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4534ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4535
4536
4537# Find a good install program.  We prefer a C program (faster),
4538# so one script is as good as another.  But avoid the broken or
4539# incompatible versions:
4540# SysV /etc/install, /usr/sbin/install
4541# SunOS /usr/etc/install
4542# IRIX /sbin/install
4543# AIX /bin/install
4544# AmigaOS /C/install, which installs bootblocks on floppy discs
4545# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4546# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4547# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4548# OS/2's system install, which has a completely different semantic
4549# ./install, which can be erroneously created by make from ./install.sh.
4550# Reject install programs that cannot install multiple files.
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4552$as_echo_n "checking for a BSD-compatible install... " >&6; }
4553if test -z "$INSTALL"; then
4554if ${ac_cv_path_install+:} false; then :
4555  $as_echo_n "(cached) " >&6
4556else
4557  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558for as_dir in $PATH
4559do
4560  IFS=$as_save_IFS
4561  test -z "$as_dir" && as_dir=.
4562    # Account for people who put trailing slashes in PATH elements.
4563case $as_dir/ in #((
4564  ./ | .// | /[cC]/* | \
4565  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4566  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4567  /usr/ucb/* ) ;;
4568  *)
4569    # OSF1 and SCO ODT 3.0 have their own names for install.
4570    # Don't use installbsd from OSF since it installs stuff as root
4571    # by default.
4572    for ac_prog in ginstall scoinst install; do
4573      for ac_exec_ext in '' $ac_executable_extensions; do
4574        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4575          if test $ac_prog = install &&
4576            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4577            # AIX install.  It has an incompatible calling convention.
4578            :
4579          elif test $ac_prog = install &&
4580            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4581            # program-specific install script used by HP pwplus--don't use.
4582            :
4583          else
4584            rm -rf conftest.one conftest.two conftest.dir
4585            echo one > conftest.one
4586            echo two > conftest.two
4587            mkdir conftest.dir
4588            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4589              test -s conftest.one && test -s conftest.two &&
4590              test -s conftest.dir/conftest.one &&
4591              test -s conftest.dir/conftest.two
4592            then
4593              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4594              break 3
4595            fi
4596          fi
4597        fi
4598      done
4599    done
4600    ;;
4601esac
4602
4603  done
4604IFS=$as_save_IFS
4605
4606rm -rf conftest.one conftest.two conftest.dir
4607
4608fi
4609  if test "${ac_cv_path_install+set}" = set; then
4610    INSTALL=$ac_cv_path_install
4611  else
4612    # As a last resort, use the slow shell script.  Don't cache a
4613    # value for INSTALL within a source directory, because that will
4614    # break other packages using the cache if that directory is
4615    # removed, or if the value is a relative name.
4616    INSTALL=$ac_install_sh
4617  fi
4618fi
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4620$as_echo "$INSTALL" >&6; }
4621
4622# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4623# It thinks the first close brace ends the variable substitution.
4624test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4625
4626test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4627
4628test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4629
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4631$as_echo_n "checking whether build environment is sane... " >&6; }
4632# Just in case
4633sleep 1
4634echo timestamp > conftest.file
4635# Reject unsafe characters in $srcdir or the absolute working directory
4636# name.  Accept space and tab only in the latter.
4637am_lf='
4638'
4639case `pwd` in
4640  *[\\\"\#\$\&\'\`$am_lf]*)
4641    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4642esac
4643case $srcdir in
4644  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4645    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4646esac
4647
4648# Do `set' in a subshell so we don't clobber the current shell's
4649# arguments.  Must try -L first in case configure is actually a
4650# symlink; some systems play weird games with the mod time of symlinks
4651# (eg FreeBSD returns the mod time of the symlink's containing
4652# directory).
4653if (
4654   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4655   if test "$*" = "X"; then
4656      # -L didn't work.
4657      set X `ls -t "$srcdir/configure" conftest.file`
4658   fi
4659   rm -f conftest.file
4660   if test "$*" != "X $srcdir/configure conftest.file" \
4661      && test "$*" != "X conftest.file $srcdir/configure"; then
4662
4663      # If neither matched, then we have a broken ls.  This can happen
4664      # if, for instance, CONFIG_SHELL is bash and it inherits a
4665      # broken ls alias from the environment.  This has actually
4666      # happened.  Such a system could not be considered "sane".
4667      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4668alias in your environment" "$LINENO" 5
4669   fi
4670
4671   test "$2" = conftest.file
4672   )
4673then
4674   # Ok.
4675   :
4676else
4677   as_fn_error $? "newly created file is older than distributed files!
4678Check your system clock" "$LINENO" 5
4679fi
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4681$as_echo "yes" >&6; }
4682test "$program_prefix" != NONE &&
4683  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4684# Use a double $ so make ignores it.
4685test "$program_suffix" != NONE &&
4686  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4687# Double any \ or $.
4688# By default was `s,x,x', remove it if useless.
4689ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4690program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4691
4692# expand $ac_aux_dir to an absolute path
4693am_aux_dir=`cd $ac_aux_dir && pwd`
4694
4695if test x"${MISSING+set}" != xset; then
4696  case $am_aux_dir in
4697  *\ * | *\     *)
4698    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4699  *)
4700    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4701  esac
4702fi
4703# Use eval to expand $SHELL
4704if eval "$MISSING --run true"; then
4705  am_missing_run="$MISSING --run "
4706else
4707  am_missing_run=
4708  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4709$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4710fi
4711
4712if test x"${install_sh}" != xset; then
4713  case $am_aux_dir in
4714  *\ * | *\     *)
4715    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4716  *)
4717    install_sh="\${SHELL} $am_aux_dir/install-sh"
4718  esac
4719fi
4720
4721# Installed binaries are usually stripped using `strip' when the user
4722# run `make install-strip'.  However `strip' might not be the right
4723# tool to use in cross-compilation environments, therefore Automake
4724# will honor the `STRIP' environment variable to overrule this program.
4725if test "$cross_compiling" != no; then
4726  if test -n "$ac_tool_prefix"; then
4727  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4728set dummy ${ac_tool_prefix}strip; ac_word=$2
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730$as_echo_n "checking for $ac_word... " >&6; }
4731if ${ac_cv_prog_STRIP+:} false; then :
4732  $as_echo_n "(cached) " >&6
4733else
4734  if test -n "$STRIP"; then
4735  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4736else
4737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738for as_dir in $PATH
4739do
4740  IFS=$as_save_IFS
4741  test -z "$as_dir" && as_dir=.
4742    for ac_exec_ext in '' $ac_executable_extensions; do
4743  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4744    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4746    break 2
4747  fi
4748done
4749  done
4750IFS=$as_save_IFS
4751
4752fi
4753fi
4754STRIP=$ac_cv_prog_STRIP
4755if test -n "$STRIP"; then
4756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4757$as_echo "$STRIP" >&6; }
4758else
4759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760$as_echo "no" >&6; }
4761fi
4762
4763
4764fi
4765if test -z "$ac_cv_prog_STRIP"; then
4766  ac_ct_STRIP=$STRIP
4767  # Extract the first word of "strip", so it can be a program name with args.
4768set dummy strip; ac_word=$2
4769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770$as_echo_n "checking for $ac_word... " >&6; }
4771if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4772  $as_echo_n "(cached) " >&6
4773else
4774  if test -n "$ac_ct_STRIP"; then
4775  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4776else
4777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778for as_dir in $PATH
4779do
4780  IFS=$as_save_IFS
4781  test -z "$as_dir" && as_dir=.
4782    for ac_exec_ext in '' $ac_executable_extensions; do
4783  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784    ac_cv_prog_ac_ct_STRIP="strip"
4785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786    break 2
4787  fi
4788done
4789  done
4790IFS=$as_save_IFS
4791
4792fi
4793fi
4794ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4795if test -n "$ac_ct_STRIP"; then
4796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4797$as_echo "$ac_ct_STRIP" >&6; }
4798else
4799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800$as_echo "no" >&6; }
4801fi
4802
4803  if test "x$ac_ct_STRIP" = x; then
4804    STRIP=":"
4805  else
4806    case $cross_compiling:$ac_tool_warned in
4807yes:)
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4810ac_tool_warned=yes ;;
4811esac
4812    STRIP=$ac_ct_STRIP
4813  fi
4814else
4815  STRIP="$ac_cv_prog_STRIP"
4816fi
4817
4818fi
4819INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4820
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4822$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4823if test -z "$MKDIR_P"; then
4824  if ${ac_cv_path_mkdir+:} false; then :
4825  $as_echo_n "(cached) " >&6
4826else
4827  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4829do
4830  IFS=$as_save_IFS
4831  test -z "$as_dir" && as_dir=.
4832    for ac_prog in mkdir gmkdir; do
4833         for ac_exec_ext in '' $ac_executable_extensions; do
4834           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4835           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4836             'mkdir (GNU coreutils) '* | \
4837             'mkdir (coreutils) '* | \
4838             'mkdir (fileutils) '4.1*)
4839               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4840               break 3;;
4841           esac
4842         done
4843       done
4844  done
4845IFS=$as_save_IFS
4846
4847fi
4848
4849  test -d ./--version && rmdir ./--version
4850  if test "${ac_cv_path_mkdir+set}" = set; then
4851    MKDIR_P="$ac_cv_path_mkdir -p"
4852  else
4853    # As a last resort, use the slow shell script.  Don't cache a
4854    # value for MKDIR_P within a source directory, because that will
4855    # break other packages using the cache if that directory is
4856    # removed, or if the value is a relative name.
4857    MKDIR_P="$ac_install_sh -d"
4858  fi
4859fi
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4861$as_echo "$MKDIR_P" >&6; }
4862
4863mkdir_p="$MKDIR_P"
4864case $mkdir_p in
4865  [\\/$]* | ?:[\\/]*) ;;
4866  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4867esac
4868
4869for ac_prog in gawk mawk nawk awk
4870do
4871  # Extract the first word of "$ac_prog", so it can be a program name with args.
4872set dummy $ac_prog; ac_word=$2
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4874$as_echo_n "checking for $ac_word... " >&6; }
4875if ${ac_cv_prog_AWK+:} false; then :
4876  $as_echo_n "(cached) " >&6
4877else
4878  if test -n "$AWK"; then
4879  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4880else
4881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882for as_dir in $PATH
4883do
4884  IFS=$as_save_IFS
4885  test -z "$as_dir" && as_dir=.
4886    for ac_exec_ext in '' $ac_executable_extensions; do
4887  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4888    ac_cv_prog_AWK="$ac_prog"
4889    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4890    break 2
4891  fi
4892done
4893  done
4894IFS=$as_save_IFS
4895
4896fi
4897fi
4898AWK=$ac_cv_prog_AWK
4899if test -n "$AWK"; then
4900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4901$as_echo "$AWK" >&6; }
4902else
4903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904$as_echo "no" >&6; }
4905fi
4906
4907
4908  test -n "$AWK" && break
4909done
4910
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4912$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4913set x ${MAKE-make}
4914ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4915if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4916  $as_echo_n "(cached) " >&6
4917else
4918  cat >conftest.make <<\_ACEOF
4919SHELL = /bin/sh
4920all:
4921        @echo '@@@%%%=$(MAKE)=@@@%%%'
4922_ACEOF
4923# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4924case `${MAKE-make} -f conftest.make 2>/dev/null` in
4925  *@@@%%%=?*=@@@%%%*)
4926    eval ac_cv_prog_make_${ac_make}_set=yes;;
4927  *)
4928    eval ac_cv_prog_make_${ac_make}_set=no;;
4929esac
4930rm -f conftest.make
4931fi
4932if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4934$as_echo "yes" >&6; }
4935  SET_MAKE=
4936else
4937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938$as_echo "no" >&6; }
4939  SET_MAKE="MAKE=${MAKE-make}"
4940fi
4941
4942rm -rf .tst 2>/dev/null
4943mkdir .tst 2>/dev/null
4944if test -d .tst; then
4945  am__leading_dot=.
4946else
4947  am__leading_dot=_
4948fi
4949rmdir .tst 2>/dev/null
4950
4951DEPDIR="${am__leading_dot}deps"
4952
4953ac_config_commands="$ac_config_commands depfiles"
4954
4955
4956am_make=${MAKE-make}
4957cat > confinc << 'END'
4958am__doit:
4959        @echo this is the am__doit target
4960.PHONY: am__doit
4961END
4962# If we don't find an include directive, just comment out the code.
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4964$as_echo_n "checking for style of include used by $am_make... " >&6; }
4965am__include="#"
4966am__quote=
4967_am_result=none
4968# First try GNU make style include.
4969echo "include confinc" > confmf
4970# Ignore all kinds of additional output from `make'.
4971case `$am_make -s -f confmf 2> /dev/null` in #(
4972*the\ am__doit\ target*)
4973  am__include=include
4974  am__quote=
4975  _am_result=GNU
4976  ;;
4977esac
4978# Now try BSD make style include.
4979if test "$am__include" = "#"; then
4980   echo '.include "confinc"' > confmf
4981   case `$am_make -s -f confmf 2> /dev/null` in #(
4982   *the\ am__doit\ target*)
4983     am__include=.include
4984     am__quote="\""
4985     _am_result=BSD
4986     ;;
4987   esac
4988fi
4989
4990
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4992$as_echo "$_am_result" >&6; }
4993rm -f confinc confmf
4994
4995# Check whether --enable-dependency-tracking was given.
4996if test "${enable_dependency_tracking+set}" = set; then :
4997  enableval=$enable_dependency_tracking;
4998fi
4999
5000if test "x$enable_dependency_tracking" != xno; then
5001  am_depcomp="$ac_aux_dir/depcomp"
5002  AMDEPBACKSLASH='\'
5003  am__nodep='_no'
5004fi
5005 if test "x$enable_dependency_tracking" != xno; then
5006  AMDEP_TRUE=
5007  AMDEP_FALSE='#'
5008else
5009  AMDEP_TRUE='#'
5010  AMDEP_FALSE=
5011fi
5012
5013
5014if test "`cd $srcdir && pwd`" != "`pwd`"; then
5015  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5016  # is not polluted with repeated "-I."
5017  am__isrc=' -I$(srcdir)'
5018  # test to see if srcdir already configured
5019  if test -f $srcdir/config.status; then
5020    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5021  fi
5022fi
5023
5024# test whether we have cygpath
5025if test -z "$CYGPATH_W"; then
5026  if (cygpath --version) >/dev/null 2>/dev/null; then
5027    CYGPATH_W='cygpath -w'
5028  else
5029    CYGPATH_W=echo
5030  fi
5031fi
5032
5033
5034# Define the identity of the package.
5035 PACKAGE='cppad'
5036 VERSION='20130527'
5037
5038
5039cat >>confdefs.h <<_ACEOF
5040#define PACKAGE "$PACKAGE"
5041_ACEOF
5042
5043
5044cat >>confdefs.h <<_ACEOF
5045#define VERSION "$VERSION"
5046_ACEOF
5047
5048# Some tools Automake needs.
5049
5050ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5051
5052
5053AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5054
5055
5056AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5057
5058
5059AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5060
5061
5062MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5063
5064# We need awk for the "check" target.  The system "awk" is bad on
5065# some platforms.
5066# Always define AMTAR for backward compatibility.  Yes, it's still used
5067# in the wild :-(  We should find a proper way to deprecate it ...
5068AMTAR='$${TAR-tar}'
5069
5070am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5071
5072
5073
5074
5075depcc="$CC"   am_compiler_list=
5076
5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5078$as_echo_n "checking dependency style of $depcc... " >&6; }
5079if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5080  $as_echo_n "(cached) " >&6
5081else
5082  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5083  # We make a subdir and do the tests there.  Otherwise we can end up
5084  # making bogus files that we don't know about and never remove.  For
5085  # instance it was reported that on HP-UX the gcc test will end up
5086  # making a dummy file named `D' -- because `-MD' means `put the output
5087  # in D'.
5088  rm -rf conftest.dir
5089  mkdir conftest.dir
5090  # Copy depcomp to subdir because otherwise we won't find it if we're
5091  # using a relative directory.
5092  cp "$am_depcomp" conftest.dir
5093  cd conftest.dir
5094  # We will build objects and dependencies in a subdirectory because
5095  # it helps to detect inapplicable dependency modes.  For instance
5096  # both Tru64's cc and ICC support -MD to output dependencies as a
5097  # side effect of compilation, but ICC will put the dependencies in
5098  # the current directory while Tru64 will put them in the object
5099  # directory.
5100  mkdir sub
5101
5102  am_cv_CC_dependencies_compiler_type=none
5103  if test "$am_compiler_list" = ""; then
5104     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5105  fi
5106  am__universal=false
5107  case " $depcc " in #(
5108     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5109     esac
5110
5111  for depmode in $am_compiler_list; do
5112    # Setup a source with many dependencies, because some compilers
5113    # like to wrap large dependency lists on column 80 (with \), and
5114    # we should not choose a depcomp mode which is confused by this.
5115    #
5116    # We need to recreate these files for each test, as the compiler may
5117    # overwrite some of them when testing with obscure command lines.
5118    # This happens at least with the AIX C compiler.
5119    : > sub/conftest.c
5120    for i in 1 2 3 4 5 6; do
5121      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5122      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5123      # Solaris 8's {/usr,}/bin/sh.
5124      touch sub/conftst$i.h
5125    done
5126    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5127
5128    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5129    # mode.  It turns out that the SunPro C++ compiler does not properly
5130    # handle `-M -o', and we need to detect this.  Also, some Intel
5131    # versions had trouble with output in subdirs
5132    am__obj=sub/conftest.${OBJEXT-o}
5133    am__minus_obj="-o $am__obj"
5134    case $depmode in
5135    gcc)
5136      # This depmode causes a compiler race in universal mode.
5137      test "$am__universal" = false || continue
5138      ;;
5139    nosideeffect)
5140      # after this tag, mechanisms are not by side-effect, so they'll
5141      # only be used when explicitly requested
5142      if test "x$enable_dependency_tracking" = xyes; then
5143        continue
5144      else
5145        break
5146      fi
5147      ;;
5148    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5149      # This compiler won't grok `-c -o', but also, the minuso test has
5150      # not run yet.  These depmodes are late enough in the game, and
5151      # so weak that their functioning should not be impacted.
5152      am__obj=conftest.${OBJEXT-o}
5153      am__minus_obj=
5154      ;;
5155    none) break ;;
5156    esac
5157    if depmode=$depmode \
5158       source=sub/conftest.c object=$am__obj \
5159       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5160       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5161         >/dev/null 2>conftest.err &&
5162       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5163       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5164       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5165       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5166      # icc doesn't choke on unknown options, it will just issue warnings
5167      # or remarks (even with -Werror).  So we grep stderr for any message
5168      # that says an option was ignored or not supported.
5169      # When given -MP, icc 7.0 and 7.1 complain thusly:
5170      #   icc: Command line warning: ignoring option '-M'; no argument required
5171      # The diagnosis changed in icc 8.0:
5172      #   icc: Command line remark: option '-MP' not supported
5173      if (grep 'ignoring option' conftest.err ||
5174          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5175        am_cv_CC_dependencies_compiler_type=$depmode
5176        break
5177      fi
5178    fi
5179  done
5180
5181  cd ..
5182  rm -rf conftest.dir
5183else
5184  am_cv_CC_dependencies_compiler_type=none
5185fi
5186
5187fi
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5189$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5190CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5191
5192 if
5193  test "x$enable_dependency_tracking" != xno \
5194  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5195  am__fastdepCC_TRUE=
5196  am__fastdepCC_FALSE='#'
5197else
5198  am__fastdepCC_TRUE='#'
5199  am__fastdepCC_FALSE=
5200fi
5201
5202
5203
5204
5205
5206if test -n "$ac_tool_prefix"; then
5207  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5208set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210$as_echo_n "checking for $ac_word... " >&6; }
5211if ${ac_cv_prog_RANLIB+:} false; then :
5212  $as_echo_n "(cached) " >&6
5213else
5214  if test -n "$RANLIB"; then
5215  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5216else
5217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218for as_dir in $PATH
5219do
5220  IFS=$as_save_IFS
5221  test -z "$as_dir" && as_dir=.
5222    for ac_exec_ext in '' $ac_executable_extensions; do
5223  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5224    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5226    break 2
5227  fi
5228done
5229  done
5230IFS=$as_save_IFS
5231
5232fi
5233fi
5234RANLIB=$ac_cv_prog_RANLIB
5235if test -n "$RANLIB"; then
5236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5237$as_echo "$RANLIB" >&6; }
5238else
5239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240$as_echo "no" >&6; }
5241fi
5242
5243
5244fi
5245if test -z "$ac_cv_prog_RANLIB"; then
5246  ac_ct_RANLIB=$RANLIB
5247  # Extract the first word of "ranlib", so it can be a program name with args.
5248set dummy ranlib; ac_word=$2
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250$as_echo_n "checking for $ac_word... " >&6; }
5251if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5252  $as_echo_n "(cached) " >&6
5253else
5254  if test -n "$ac_ct_RANLIB"; then
5255  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5256else
5257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258for as_dir in $PATH
5259do
5260  IFS=$as_save_IFS
5261  test -z "$as_dir" && as_dir=.
5262    for ac_exec_ext in '' $ac_executable_extensions; do
5263  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264    ac_cv_prog_ac_ct_RANLIB="ranlib"
5265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5266    break 2
5267  fi
5268done
5269  done
5270IFS=$as_save_IFS
5271
5272fi
5273fi
5274ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5275if test -n "$ac_ct_RANLIB"; then
5276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5277$as_echo "$ac_ct_RANLIB" >&6; }
5278else
5279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280$as_echo "no" >&6; }
5281fi
5282
5283  if test "x$ac_ct_RANLIB" = x; then
5284    RANLIB=":"
5285  else
5286    case $cross_compiling:$ac_tool_warned in
5287yes:)
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5290ac_tool_warned=yes ;;
5291esac
5292    RANLIB=$ac_ct_RANLIB
5293  fi
5294else
5295  RANLIB="$ac_cv_prog_RANLIB"
5296fi
5297
5298
5299ac_ext=cpp
5300ac_cpp='$CXXCPP $CPPFLAGS'
5301ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5302ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5303ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5304if test -z "$CXX"; then
5305  if test -n "$CCC"; then
5306    CXX=$CCC
5307  else
5308    if test -n "$ac_tool_prefix"; then
5309  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5310  do
5311    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5312set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5314$as_echo_n "checking for $ac_word... " >&6; }
5315if ${ac_cv_prog_CXX+:} false; then :
5316  $as_echo_n "(cached) " >&6
5317else
5318  if test -n "$CXX"; then
5319  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5320else
5321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322for as_dir in $PATH
5323do
5324  IFS=$as_save_IFS
5325  test -z "$as_dir" && as_dir=.
5326    for ac_exec_ext in '' $ac_executable_extensions; do
5327  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5328    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330    break 2
5331  fi
5332done
5333  done
5334IFS=$as_save_IFS
5335
5336fi
5337fi
5338CXX=$ac_cv_prog_CXX
5339if test -n "$CXX"; then
5340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5341$as_echo "$CXX" >&6; }
5342else
5343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344$as_echo "no" >&6; }
5345fi
5346
5347
5348    test -n "$CXX" && break
5349  done
5350fi
5351if test -z "$CXX"; then
5352  ac_ct_CXX=$CXX
5353  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5354do
5355  # Extract the first word of "$ac_prog", so it can be a program name with args.
5356set dummy $ac_prog; ac_word=$2
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358$as_echo_n "checking for $ac_word... " >&6; }
5359if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5360  $as_echo_n "(cached) " >&6
5361else
5362  if test -n "$ac_ct_CXX"; then
5363  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5364else
5365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH
5367do
5368  IFS=$as_save_IFS
5369  test -z "$as_dir" && as_dir=.
5370    for ac_exec_ext in '' $ac_executable_extensions; do
5371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372    ac_cv_prog_ac_ct_CXX="$ac_prog"
5373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374    break 2
5375  fi
5376done
5377  done
5378IFS=$as_save_IFS
5379
5380fi
5381fi
5382ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5383if test -n "$ac_ct_CXX"; then
5384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5385$as_echo "$ac_ct_CXX" >&6; }
5386else
5387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388$as_echo "no" >&6; }
5389fi
5390
5391
5392  test -n "$ac_ct_CXX" && break
5393done
5394
5395  if test "x$ac_ct_CXX" = x; then
5396    CXX="g++"
5397  else
5398    case $cross_compiling:$ac_tool_warned in
5399yes:)
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5402ac_tool_warned=yes ;;
5403esac
5404    CXX=$ac_ct_CXX
5405  fi
5406fi
5407
5408  fi
5409fi
5410# Provide some information about the compiler.
5411$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5412set X $ac_compile
5413ac_compiler=$2
5414for ac_option in --version -v -V -qversion; do
5415  { { ac_try="$ac_compiler $ac_option >&5"
5416case "(($ac_try" in
5417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418  *) ac_try_echo=$ac_try;;
5419esac
5420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5421$as_echo "$ac_try_echo"; } >&5
5422  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5423  ac_status=$?
5424  if test -s conftest.err; then
5425    sed '10a\
5426... rest of stderr output deleted ...
5427         10q' conftest.err >conftest.er1
5428    cat conftest.er1 >&5
5429  fi
5430  rm -f conftest.er1 conftest.err
5431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5432  test $ac_status = 0; }
5433done
5434
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5436$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5437if ${ac_cv_cxx_compiler_gnu+:} false; then :
5438  $as_echo_n "(cached) " >&6
5439else
5440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441/* end confdefs.h.  */
5442
5443int
5444main ()
5445{
5446#ifndef __GNUC__
5447       choke me
5448#endif
5449
5450  ;
5451  return 0;
5452}
5453_ACEOF
5454if ac_fn_cxx_try_compile "$LINENO"; then :
5455  ac_compiler_gnu=yes
5456else
5457  ac_compiler_gnu=no
5458fi
5459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5461
5462fi
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5464$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5465if test $ac_compiler_gnu = yes; then
5466  GXX=yes
5467else
5468  GXX=
5469fi
5470ac_test_CXXFLAGS=${CXXFLAGS+set}
5471ac_save_CXXFLAGS=$CXXFLAGS
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5473$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5474if ${ac_cv_prog_cxx_g+:} false; then :
5475  $as_echo_n "(cached) " >&6
5476else
5477  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5478   ac_cxx_werror_flag=yes
5479   ac_cv_prog_cxx_g=no
5480   CXXFLAGS="-g"
5481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482/* end confdefs.h.  */
5483
5484int
5485main ()
5486{
5487
5488  ;
5489  return 0;
5490}
5491_ACEOF
5492if ac_fn_cxx_try_compile "$LINENO"; then :
5493  ac_cv_prog_cxx_g=yes
5494else
5495  CXXFLAGS=""
5496      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497/* end confdefs.h.  */
5498
5499int
5500main ()
5501{
5502
5503  ;
5504  return 0;
5505}
5506_ACEOF
5507if ac_fn_cxx_try_compile "$LINENO"; then :
5508
5509else
5510  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5511         CXXFLAGS="-g"
5512         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513/* end confdefs.h.  */
5514
5515int
5516main ()
5517{
5518
5519  ;
5520  return 0;
5521}
5522_ACEOF
5523if ac_fn_cxx_try_compile "$LINENO"; then :
5524  ac_cv_prog_cxx_g=yes
5525fi
5526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527fi
5528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529fi
5530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5532fi
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5534$as_echo "$ac_cv_prog_cxx_g" >&6; }
5535if test "$ac_test_CXXFLAGS" = set; then
5536  CXXFLAGS=$ac_save_CXXFLAGS
5537elif test $ac_cv_prog_cxx_g = yes; then
5538  if test "$GXX" = yes; then
5539    CXXFLAGS="-g -O2"
5540  else
5541    CXXFLAGS="-g"
5542  fi
5543else
5544  if test "$GXX" = yes; then
5545    CXXFLAGS="-O2"
5546  else
5547    CXXFLAGS=
5548  fi
5549fi
5550ac_ext=c
5551ac_cpp='$CPP $CPPFLAGS'
5552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554ac_compiler_gnu=$ac_cv_c_compiler_gnu
5555
5556depcc="$CXX"  am_compiler_list=
5557
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5559$as_echo_n "checking dependency style of $depcc... " >&6; }
5560if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5561  $as_echo_n "(cached) " >&6
5562else
5563  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5564  # We make a subdir and do the tests there.  Otherwise we can end up
5565  # making bogus files that we don't know about and never remove.  For
5566  # instance it was reported that on HP-UX the gcc test will end up
5567  # making a dummy file named `D' -- because `-MD' means `put the output
5568  # in D'.
5569  rm -rf conftest.dir
5570  mkdir conftest.dir
5571  # Copy depcomp to subdir because otherwise we won't find it if we're
5572  # using a relative directory.
5573  cp "$am_depcomp" conftest.dir
5574  cd conftest.dir
5575  # We will build objects and dependencies in a subdirectory because
5576  # it helps to detect inapplicable dependency modes.  For instance
5577  # both Tru64's cc and ICC support -MD to output dependencies as a
5578  # side effect of compilation, but ICC will put the dependencies in
5579  # the current directory while Tru64 will put them in the object
5580  # directory.
5581  mkdir sub
5582
5583  am_cv_CXX_dependencies_compiler_type=none
5584  if test "$am_compiler_list" = ""; then
5585     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5586  fi
5587  am__universal=false
5588  case " $depcc " in #(
5589     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5590     esac
5591
5592  for depmode in $am_compiler_list; do
5593    # Setup a source with many dependencies, because some compilers
5594    # like to wrap large dependency lists on column 80 (with \), and
5595    # we should not choose a depcomp mode which is confused by this.
5596    #
5597    # We need to recreate these files for each test, as the compiler may
5598    # overwrite some of them when testing with obscure command lines.
5599    # This happens at least with the AIX C compiler.
5600    : > sub/conftest.c
5601    for i in 1 2 3 4 5 6; do
5602      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5603      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5604      # Solaris 8's {/usr,}/bin/sh.
5605      touch sub/conftst$i.h
5606    done
5607    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5608
5609    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5610    # mode.  It turns out that the SunPro C++ compiler does not properly
5611    # handle `-M -o', and we need to detect this.  Also, some Intel
5612    # versions had trouble with output in subdirs
5613    am__obj=sub/conftest.${OBJEXT-o}
5614    am__minus_obj="-o $am__obj"
5615    case $depmode in
5616    gcc)
5617      # This depmode causes a compiler race in universal mode.
5618      test "$am__universal" = false || continue
5619      ;;
5620    nosideeffect)
5621      # after this tag, mechanisms are not by side-effect, so they'll
5622      # only be used when explicitly requested
5623      if test "x$enable_dependency_tracking" = xyes; then
5624        continue
5625      else
5626        break
5627      fi
5628      ;;
5629    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5630      # This compiler won't grok `-c -o', but also, the minuso test has
5631      # not run yet.  These depmodes are late enough in the game, and
5632      # so weak that their functioning should not be impacted.
5633      am__obj=conftest.${OBJEXT-o}
5634      am__minus_obj=
5635      ;;
5636    none) break ;;
5637    esac
5638    if depmode=$depmode \
5639       source=sub/conftest.c object=$am__obj \
5640       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5641       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5642         >/dev/null 2>conftest.err &&
5643       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5644       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5645       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5646       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5647      # icc doesn't choke on unknown options, it will just issue warnings
5648      # or remarks (even with -Werror).  So we grep stderr for any message
5649      # that says an option was ignored or not supported.
5650      # When given -MP, icc 7.0 and 7.1 complain thusly:
5651      #   icc: Command line warning: ignoring option '-M'; no argument required
5652      # The diagnosis changed in icc 8.0:
5653      #   icc: Command line remark: option '-MP' not supported
5654      if (grep 'ignoring option' conftest.err ||
5655          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5656        am_cv_CXX_dependencies_compiler_type=$depmode
5657        break
5658      fi
5659    fi
5660  done
5661
5662  cd ..
5663  rm -rf conftest.dir
5664else
5665  am_cv_CXX_dependencies_compiler_type=none
5666fi
5667
5668fi
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5670$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5671CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5672
5673 if
5674  test "x$enable_dependency_tracking" != xno \
5675  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5676  am__fastdepCXX_TRUE=
5677  am__fastdepCXX_FALSE='#'
5678else
5679  am__fastdepCXX_TRUE='#'
5680  am__fastdepCXX_FALSE=
5681fi
5682
5683
5684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using Microsoft C++ compiler" >&5
5685$as_echo_n "checking whether using Microsoft C++ compiler... " >&6; }
5686 if test "$CXX" == "cl" || test "$CXX" == "icl"; then
5687  CppAD_MS_COMPILER_TRUE=
5688  CppAD_MS_COMPILER_FALSE='#'
5689else
5690  CppAD_MS_COMPILER_TRUE='#'
5691  CppAD_MS_COMPILER_FALSE=
5692fi
5693
5694if test "$CXX" == "cl" || test "$CXX" == "icl"; then
5695        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5696$as_echo "yes" >&6; }
5697else
5698        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699$as_echo "no" >&6; }
5700fi
5701CXXFLAGS=""
5702
5703
5704
5705ac_ext=c
5706ac_cpp='$CPP $CPPFLAGS'
5707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5709ac_compiler_gnu=$ac_cv_c_compiler_gnu
5710if test -n "$ac_tool_prefix"; then
5711  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5712set dummy ${ac_tool_prefix}gcc; ac_word=$2
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714$as_echo_n "checking for $ac_word... " >&6; }
5715if ${ac_cv_prog_CC+:} false; then :
5716  $as_echo_n "(cached) " >&6
5717else
5718  if test -n "$CC"; then
5719  ac_cv_prog_CC="$CC" # Let the user override the test.
5720else
5721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722for as_dir in $PATH
5723do
5724  IFS=$as_save_IFS
5725  test -z "$as_dir" && as_dir=.
5726    for ac_exec_ext in '' $ac_executable_extensions; do
5727  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5728    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5729    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730    break 2
5731  fi
5732done
5733  done
5734IFS=$as_save_IFS
5735
5736fi
5737fi
5738CC=$ac_cv_prog_CC
5739if test -n "$CC"; then
5740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5741$as_echo "$CC" >&6; }
5742else
5743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744$as_echo "no" >&6; }
5745fi
5746
5747
5748fi
5749if test -z "$ac_cv_prog_CC"; then
5750  ac_ct_CC=$CC
5751  # Extract the first word of "gcc", so it can be a program name with args.
5752set dummy gcc; ac_word=$2
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754$as_echo_n "checking for $ac_word... " >&6; }
5755if ${ac_cv_prog_ac_ct_CC+:} false; then :
5756  $as_echo_n "(cached) " >&6
5757else
5758  if test -n "$ac_ct_CC"; then
5759  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5760else
5761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762for as_dir in $PATH
5763do
5764  IFS=$as_save_IFS
5765  test -z "$as_dir" && as_dir=.
5766    for ac_exec_ext in '' $ac_executable_extensions; do
5767  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5768    ac_cv_prog_ac_ct_CC="gcc"
5769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770    break 2
5771  fi
5772done
5773  done
5774IFS=$as_save_IFS
5775
5776fi
5777fi
5778ac_ct_CC=$ac_cv_prog_ac_ct_CC
5779if test -n "$ac_ct_CC"; then
5780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5781$as_echo "$ac_ct_CC" >&6; }
5782else
5783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784$as_echo "no" >&6; }
5785fi
5786
5787  if test "x$ac_ct_CC" = x; then
5788    CC=""
5789  else
5790    case $cross_compiling:$ac_tool_warned in
5791yes:)
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5794ac_tool_warned=yes ;;
5795esac
5796    CC=$ac_ct_CC
5797  fi
5798else
5799  CC="$ac_cv_prog_CC"
5800fi
5801
5802if test -z "$CC"; then
5803          if test -n "$ac_tool_prefix"; then
5804    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5805set dummy ${ac_tool_prefix}cc; ac_word=$2
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807$as_echo_n "checking for $ac_word... " >&6; }
5808if ${ac_cv_prog_CC+:} false; then :
5809  $as_echo_n "(cached) " >&6
5810else
5811  if test -n "$CC"; then
5812  ac_cv_prog_CC="$CC" # Let the user override the test.
5813else
5814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815for as_dir in $PATH
5816do
5817  IFS=$as_save_IFS
5818  test -z "$as_dir" && as_dir=.
5819    for ac_exec_ext in '' $ac_executable_extensions; do
5820  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5821    ac_cv_prog_CC="${ac_tool_prefix}cc"
5822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823    break 2
5824  fi
5825done
5826  done
5827IFS=$as_save_IFS
5828
5829fi
5830fi
5831CC=$ac_cv_prog_CC
5832if test -n "$CC"; then
5833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5834$as_echo "$CC" >&6; }
5835else
5836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837$as_echo "no" >&6; }
5838fi
5839
5840
5841  fi
5842fi
5843if test -z "$CC"; then
5844  # Extract the first word of "cc", so it can be a program name with args.
5845set dummy cc; ac_word=$2
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847$as_echo_n "checking for $ac_word... " >&6; }
5848if ${ac_cv_prog_CC+:} false; then :
5849  $as_echo_n "(cached) " >&6
5850else
5851  if test -n "$CC"; then
5852  ac_cv_prog_CC="$CC" # Let the user override the test.
5853else
5854  ac_prog_rejected=no
5855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856for as_dir in $PATH
5857do
5858  IFS=$as_save_IFS
5859  test -z "$as_dir" && as_dir=.
5860    for ac_exec_ext in '' $ac_executable_extensions; do
5861  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5862    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5863       ac_prog_rejected=yes
5864       continue
5865     fi
5866    ac_cv_prog_CC="cc"
5867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868    break 2
5869  fi
5870done
5871  done
5872IFS=$as_save_IFS
5873
5874if test $ac_prog_rejected = yes; then
5875  # We found a bogon in the path, so make sure we never use it.
5876  set dummy $ac_cv_prog_CC
5877  shift
5878  if test $# != 0; then
5879    # We chose a different compiler from the bogus one.
5880    # However, it has the same basename, so the bogon will be chosen
5881    # first if we set CC to just the basename; use the full file name.
5882    shift
5883    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5884  fi
5885fi
5886fi
5887fi
5888CC=$ac_cv_prog_CC
5889if test -n "$CC"; then
5890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5891$as_echo "$CC" >&6; }
5892else
5893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894$as_echo "no" >&6; }
5895fi
5896
5897
5898fi
5899if test -z "$CC"; then
5900  if test -n "$ac_tool_prefix"; then
5901  for ac_prog in cl.exe
5902  do
5903    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5904set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5906$as_echo_n "checking for $ac_word... " >&6; }
5907if ${ac_cv_prog_CC+:} false; then :
5908  $as_echo_n "(cached) " >&6
5909else
5910  if test -n "$CC"; then
5911  ac_cv_prog_CC="$CC" # Let the user override the test.
5912else
5913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914for as_dir in $PATH
5915do
5916  IFS=$as_save_IFS
5917  test -z "$as_dir" && as_dir=.
5918    for ac_exec_ext in '' $ac_executable_extensions; do
5919  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5920    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5922    break 2
5923  fi
5924done
5925  done
5926IFS=$as_save_IFS
5927
5928fi
5929fi
5930CC=$ac_cv_prog_CC
5931if test -n "$CC"; then
5932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5933$as_echo "$CC" >&6; }
5934else
5935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936$as_echo "no" >&6; }
5937fi
5938
5939
5940    test -n "$CC" && break
5941  done
5942fi
5943if test -z "$CC"; then
5944  ac_ct_CC=$CC
5945  for ac_prog in cl.exe
5946do
5947  # Extract the first word of "$ac_prog", so it can be a program name with args.
5948set dummy $ac_prog; ac_word=$2
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950$as_echo_n "checking for $ac_word... " >&6; }
5951if ${ac_cv_prog_ac_ct_CC+:} false; then :
5952  $as_echo_n "(cached) " >&6
5953else
5954  if test -n "$ac_ct_CC"; then
5955  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5956else
5957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958for as_dir in $PATH
5959do
5960  IFS=$as_save_IFS
5961  test -z "$as_dir" && as_dir=.
5962    for ac_exec_ext in '' $ac_executable_extensions; do
5963  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5964    ac_cv_prog_ac_ct_CC="$ac_prog"
5965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5966    break 2
5967  fi
5968done
5969  done
5970IFS=$as_save_IFS
5971
5972fi
5973fi
5974ac_ct_CC=$ac_cv_prog_ac_ct_CC
5975if test -n "$ac_ct_CC"; then
5976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5977$as_echo "$ac_ct_CC" >&6; }
5978else
5979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980$as_echo "no" >&6; }
5981fi
5982
5983
5984  test -n "$ac_ct_CC" && break
5985done
5986
5987  if test "x$ac_ct_CC" = x; then
5988    CC=""
5989  else
5990    case $cross_compiling:$ac_tool_warned in
5991yes:)
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5994ac_tool_warned=yes ;;
5995esac
5996    CC=$ac_ct_CC
5997  fi
5998fi
5999
6000fi
6001
6002
6003test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6005as_fn_error $? "no acceptable C compiler found in \$PATH
6006See \`config.log' for more details" "$LINENO" 5; }
6007
6008# Provide some information about the compiler.
6009$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6010set X $ac_compile
6011ac_compiler=$2
6012for ac_option in --version -v -V -qversion; do
6013  { { ac_try="$ac_compiler $ac_option >&5"
6014case "(($ac_try" in
6015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016  *) ac_try_echo=$ac_try;;
6017esac
6018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6019$as_echo "$ac_try_echo"; } >&5
6020  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6021  ac_status=$?
6022  if test -s conftest.err; then
6023    sed '10a\
6024... rest of stderr output deleted ...
6025         10q' conftest.err >conftest.er1
6026    cat conftest.er1 >&5
6027  fi
6028  rm -f conftest.er1 conftest.err
6029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6030  test $ac_status = 0; }
6031done
6032
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6034$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6035if ${ac_cv_c_compiler_gnu+:} false; then :
6036  $as_echo_n "(cached) " >&6
6037else
6038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039/* end confdefs.h.  */
6040
6041int
6042main ()
6043{
6044#ifndef __GNUC__
6045       choke me
6046#endif
6047
6048  ;
6049  return 0;
6050}
6051_ACEOF
6052if ac_fn_c_try_compile "$LINENO"; then :
6053  ac_compiler_gnu=yes
6054else
6055  ac_compiler_gnu=no
6056fi
6057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058ac_cv_c_compiler_gnu=$ac_compiler_gnu
6059
6060fi
6061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6062$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6063if test $ac_compiler_gnu = yes; then
6064  GCC=yes
6065else
6066  GCC=
6067fi
6068ac_test_CFLAGS=${CFLAGS+set}
6069ac_save_CFLAGS=$CFLAGS
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6071$as_echo_n "checking whether $CC accepts -g... " >&6; }
6072if ${ac_cv_prog_cc_g+:} false; then :
6073  $as_echo_n "(cached) " >&6
6074else
6075  ac_save_c_werror_flag=$ac_c_werror_flag
6076   ac_c_werror_flag=yes
6077   ac_cv_prog_cc_g=no
6078   CFLAGS="-g"
6079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080/* end confdefs.h.  */
6081
6082int
6083main ()
6084{
6085
6086  ;
6087  return 0;
6088}
6089_ACEOF
6090if ac_fn_c_try_compile "$LINENO"; then :
6091  ac_cv_prog_cc_g=yes
6092else
6093  CFLAGS=""
6094      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095/* end confdefs.h.  */
6096
6097int
6098main ()
6099{
6100
6101  ;
6102  return 0;
6103}
6104_ACEOF
6105if ac_fn_c_try_compile "$LINENO"; then :
6106
6107else
6108  ac_c_werror_flag=$ac_save_c_werror_flag
6109         CFLAGS="-g"
6110         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111/* end confdefs.h.  */
6112
6113int
6114main ()
6115{
6116
6117  ;
6118  return 0;
6119}
6120_ACEOF
6121if ac_fn_c_try_compile "$LINENO"; then :
6122  ac_cv_prog_cc_g=yes
6123fi
6124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125fi
6126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127fi
6128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129   ac_c_werror_flag=$ac_save_c_werror_flag
6130fi
6131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6132$as_echo "$ac_cv_prog_cc_g" >&6; }
6133if test "$ac_test_CFLAGS" = set; then
6134  CFLAGS=$ac_save_CFLAGS
6135elif test $ac_cv_prog_cc_g = yes; then
6136  if test "$GCC" = yes; then
6137    CFLAGS="-g -O2"
6138  else
6139    CFLAGS="-g"
6140  fi
6141else
6142  if test "$GCC" = yes; then
6143    CFLAGS="-O2"
6144  else
6145    CFLAGS=
6146  fi
6147fi
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6149$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6150if ${ac_cv_prog_cc_c89+:} false; then :
6151  $as_echo_n "(cached) " >&6
6152else
6153  ac_cv_prog_cc_c89=no
6154ac_save_CC=$CC
6155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156/* end confdefs.h.  */
6157#include <stdarg.h>
6158#include <stdio.h>
6159#include <sys/types.h>
6160#include <sys/stat.h>
6161/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6162struct buf { int x; };
6163FILE * (*rcsopen) (struct buf *, struct stat *, int);
6164static char *e (p, i)
6165     char **p;
6166     int i;
6167{
6168  return p[i];
6169}
6170static char *f (char * (*g) (char **, int), char **p, ...)
6171{
6172  char *s;
6173  va_list v;
6174  va_start (v,p);
6175  s = g (p, va_arg (v,int));
6176  va_end (v);
6177  return s;
6178}
6179
6180/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6181   function prototypes and stuff, but not '\xHH' hex character constants.
6182   These don't provoke an error unfortunately, instead are silently treated
6183   as 'x'.  The following induces an error, until -std is added to get
6184   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6185   array size at least.  It's necessary to write '\x00'==0 to get something
6186   that's true only with -std.  */
6187int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6188
6189/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6190   inside strings and character constants.  */
6191#define FOO(x) 'x'
6192int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6193
6194int test (int i, double x);
6195struct s1 {int (*f) (int a);};
6196struct s2 {int (*f) (double a);};
6197int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6198int argc;
6199char **argv;
6200int
6201main ()
6202{
6203return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6204  ;
6205  return 0;
6206}
6207_ACEOF
6208for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6209        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6210do
6211  CC="$ac_save_CC $ac_arg"
6212  if ac_fn_c_try_compile "$LINENO"; then :
6213  ac_cv_prog_cc_c89=$ac_arg
6214fi
6215rm -f core conftest.err conftest.$ac_objext
6216  test "x$ac_cv_prog_cc_c89" != "xno" && break
6217done
6218rm -f conftest.$ac_ext
6219CC=$ac_save_CC
6220
6221fi
6222# AC_CACHE_VAL
6223case "x$ac_cv_prog_cc_c89" in
6224  x)
6225    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6226$as_echo "none needed" >&6; } ;;
6227  xno)
6228    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6229$as_echo "unsupported" >&6; } ;;
6230  *)
6231    CC="$CC $ac_cv_prog_cc_c89"
6232    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6233$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6234esac
6235if test "x$ac_cv_prog_cc_c89" != xno; then :
6236
6237fi
6238
6239ac_ext=c
6240ac_cpp='$CPP $CPPFLAGS'
6241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6243ac_compiler_gnu=$ac_cv_c_compiler_gnu
6244
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using Microsoft C++ compiler" >&5
6246$as_echo_n "checking whether using Microsoft C++ compiler... " >&6; }
6247CFLAGS=""
6248
6249
6250
6251
6252ac_ext=c
6253ac_cpp='$CPP $CPPFLAGS'
6254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6256ac_compiler_gnu=$ac_cv_c_compiler_gnu
6257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6258$as_echo_n "checking how to run the C preprocessor... " >&6; }
6259# On Suns, sometimes $CPP names a directory.
6260if test -n "$CPP" && test -d "$CPP"; then
6261  CPP=
6262fi
6263if test -z "$CPP"; then
6264  if ${ac_cv_prog_CPP+:} false; then :
6265  $as_echo_n "(cached) " >&6
6266else
6267      # Double quotes because CPP needs to be expanded
6268    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6269    do
6270      ac_preproc_ok=false
6271for ac_c_preproc_warn_flag in '' yes
6272do
6273  # Use a header file that comes with gcc, so configuring glibc
6274  # with a fresh cross-compiler works.
6275  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6276  # <limits.h> exists even on freestanding compilers.
6277  # On the NeXT, cc -E runs the code through the compiler's parser,
6278  # not just through cpp. "Syntax error" is here to catch this case.
6279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280/* end confdefs.h.  */
6281#ifdef __STDC__
6282# include <limits.h>
6283#else
6284# include <assert.h>
6285#endif
6286                     Syntax error
6287_ACEOF
6288if ac_fn_c_try_cpp "$LINENO"; then :
6289
6290else
6291  # Broken: fails on valid input.
6292continue
6293fi
6294rm -f conftest.err conftest.i conftest.$ac_ext
6295
6296  # OK, works on sane cases.  Now check whether nonexistent headers
6297  # can be detected and how.
6298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299/* end confdefs.h.  */
6300#include <ac_nonexistent.h>
6301_ACEOF
6302if ac_fn_c_try_cpp "$LINENO"; then :
6303  # Broken: success on invalid input.
6304continue
6305else
6306  # Passes both tests.
6307ac_preproc_ok=:
6308break
6309fi
6310rm -f conftest.err conftest.i conftest.$ac_ext
6311
6312done
6313# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6314rm -f conftest.i conftest.err conftest.$ac_ext
6315if $ac_preproc_ok; then :
6316  break
6317fi
6318
6319    done
6320    ac_cv_prog_CPP=$CPP
6321
6322fi
6323  CPP=$ac_cv_prog_CPP
6324else
6325  ac_cv_prog_CPP=$CPP
6326fi
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6328$as_echo "$CPP" >&6; }
6329ac_preproc_ok=false
6330for ac_c_preproc_warn_flag in '' yes
6331do
6332  # Use a header file that comes with gcc, so configuring glibc
6333  # with a fresh cross-compiler works.
6334  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6335  # <limits.h> exists even on freestanding compilers.
6336  # On the NeXT, cc -E runs the code through the compiler's parser,
6337  # not just through cpp. "Syntax error" is here to catch this case.
6338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339/* end confdefs.h.  */
6340#ifdef __STDC__
6341# include <limits.h>
6342#else
6343# include <assert.h>
6344#endif
6345                     Syntax error
6346_ACEOF
6347if ac_fn_c_try_cpp "$LINENO"; then :
6348
6349else
6350  # Broken: fails on valid input.
6351continue
6352fi
6353rm -f conftest.err conftest.i conftest.$ac_ext
6354
6355  # OK, works on sane cases.  Now check whether nonexistent headers
6356  # can be detected and how.
6357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358/* end confdefs.h.  */
6359#include <ac_nonexistent.h>
6360_ACEOF
6361if ac_fn_c_try_cpp "$LINENO"; then :
6362  # Broken: success on invalid input.
6363continue
6364else
6365  # Passes both tests.
6366ac_preproc_ok=:
6367break
6368fi
6369rm -f conftest.err conftest.i conftest.$ac_ext
6370
6371done
6372# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6373rm -f conftest.i conftest.err conftest.$ac_ext
6374if $ac_preproc_ok; then :
6375
6376else
6377  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6379as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6380See \`config.log' for more details" "$LINENO" 5; }
6381fi
6382
6383ac_ext=c
6384ac_cpp='$CPP $CPPFLAGS'
6385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6387ac_compiler_gnu=$ac_cv_c_compiler_gnu
6388
6389
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6391$as_echo_n "checking for inline... " >&6; }
6392if ${ac_cv_c_inline+:} false; then :
6393  $as_echo_n "(cached) " >&6
6394else
6395  ac_cv_c_inline=no
6396for ac_kw in inline __inline__ __inline; do
6397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398/* end confdefs.h.  */
6399#ifndef __cplusplus
6400typedef int foo_t;
6401static $ac_kw foo_t static_foo () {return 0; }
6402$ac_kw foo_t foo () {return 0; }
6403#endif
6404
6405_ACEOF
6406if ac_fn_c_try_compile "$LINENO"; then :
6407  ac_cv_c_inline=$ac_kw
6408fi
6409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410  test "$ac_cv_c_inline" != no && break
6411done
6412
6413fi
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6415$as_echo "$ac_cv_c_inline" >&6; }
6416
6417case $ac_cv_c_inline in
6418  inline | yes) ;;
6419  *)
6420    case $ac_cv_c_inline in
6421      no) ac_val=;;
6422      *) ac_val=$ac_cv_c_inline;;
6423    esac
6424    cat >>confdefs.h <<_ACEOF
6425#ifndef __cplusplus
6426#define inline $ac_val
6427#endif
6428_ACEOF
6429    ;;
6430esac
6431
6432
6433ac_ext=${ac_fc_srcext-f}
6434ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6435ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6436ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6437if test -n "$ac_tool_prefix"; then
6438  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
6439  do
6440    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6441set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443$as_echo_n "checking for $ac_word... " >&6; }
6444if ${ac_cv_prog_FC+:} false; then :
6445  $as_echo_n "(cached) " >&6
6446else
6447  if test -n "$FC"; then
6448  ac_cv_prog_FC="$FC" # Let the user override the test.
6449else
6450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451for as_dir in $PATH
6452do
6453  IFS=$as_save_IFS
6454  test -z "$as_dir" && as_dir=.
6455    for ac_exec_ext in '' $ac_executable_extensions; do
6456  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
6458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459    break 2
6460  fi
6461done
6462  done
6463IFS=$as_save_IFS
6464
6465fi
6466fi
6467FC=$ac_cv_prog_FC
6468if test -n "$FC"; then
6469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
6470$as_echo "$FC" >&6; }
6471else
6472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473$as_echo "no" >&6; }
6474fi
6475
6476
6477    test -n "$FC" && break
6478  done
6479fi
6480if test -z "$FC"; then
6481  ac_ct_FC=$FC
6482  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
6483do
6484  # Extract the first word of "$ac_prog", so it can be a program name with args.
6485set dummy $ac_prog; ac_word=$2
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487$as_echo_n "checking for $ac_word... " >&6; }
6488if ${ac_cv_prog_ac_ct_FC+:} false; then :
6489  $as_echo_n "(cached) " >&6
6490else
6491  if test -n "$ac_ct_FC"; then
6492  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
6493else
6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497  IFS=$as_save_IFS
6498  test -z "$as_dir" && as_dir=.
6499    for ac_exec_ext in '' $ac_executable_extensions; do
6500  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6501    ac_cv_prog_ac_ct_FC="$ac_prog"
6502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503    break 2
6504  fi
6505done
6506  done
6507IFS=$as_save_IFS
6508
6509fi
6510fi
6511ac_ct_FC=$ac_cv_prog_ac_ct_FC
6512if test -n "$ac_ct_FC"; then
6513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
6514$as_echo "$ac_ct_FC" >&6; }
6515else
6516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517$as_echo "no" >&6; }
6518fi
6519
6520
6521  test -n "$ac_ct_FC" && break
6522done
6523
6524  if test "x$ac_ct_FC" = x; then
6525    FC=""
6526  else
6527    case $cross_compiling:$ac_tool_warned in
6528yes:)
6529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6531ac_tool_warned=yes ;;
6532esac
6533    FC=$ac_ct_FC
6534  fi
6535fi
6536
6537
6538# Provide some information about the compiler.
6539$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
6540set X $ac_compile
6541ac_compiler=$2
6542for ac_option in --version -v -V -qversion; do
6543  { { ac_try="$ac_compiler $ac_option >&5"
6544case "(($ac_try" in
6545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6546  *) ac_try_echo=$ac_try;;
6547esac
6548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6549$as_echo "$ac_try_echo"; } >&5
6550  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6551  ac_status=$?
6552  if test -s conftest.err; then
6553    sed '10a\
6554... rest of stderr output deleted ...
6555         10q' conftest.err >conftest.er1
6556    cat conftest.er1 >&5
6557  fi
6558  rm -f conftest.er1 conftest.err
6559  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6560  test $ac_status = 0; }
6561done
6562rm -f a.out
6563
6564# If we don't use `.F' as extension, the preprocessor is not run on the
6565# input file.  (Note that this only needs to work for GNU compilers.)
6566ac_save_ext=$ac_ext
6567ac_ext=F
6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
6569$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
6570if ${ac_cv_fc_compiler_gnu+:} false; then :
6571  $as_echo_n "(cached) " >&6
6572else
6573  cat > conftest.$ac_ext <<_ACEOF
6574      program main
6575#ifndef __GNUC__
6576       choke me
6577#endif
6578
6579      end
6580_ACEOF
6581if ac_fn_fc_try_compile "$LINENO"; then :
6582  ac_compiler_gnu=yes
6583else
6584  ac_compiler_gnu=no
6585fi
6586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587ac_cv_fc_compiler_gnu=$ac_compiler_gnu
6588
6589fi
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
6591$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
6592ac_ext=$ac_save_ext
6593ac_test_FCFLAGS=${FCFLAGS+set}
6594ac_save_FCFLAGS=$FCFLAGS
6595FCFLAGS=
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
6597$as_echo_n "checking whether $FC accepts -g... " >&6; }
6598if ${ac_cv_prog_fc_g+:} false; then :
6599  $as_echo_n "(cached) " >&6
6600else
6601  FCFLAGS=-g
6602cat > conftest.$ac_ext <<_ACEOF
6603      program main
6604
6605      end
6606_ACEOF
6607if ac_fn_fc_try_compile "$LINENO"; then :
6608  ac_cv_prog_fc_g=yes
6609else
6610  ac_cv_prog_fc_g=no
6611fi
6612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613
6614fi
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
6616$as_echo "$ac_cv_prog_fc_g" >&6; }
6617if test "$ac_test_FCFLAGS" = set; then
6618  FCFLAGS=$ac_save_FCFLAGS
6619elif test $ac_cv_prog_fc_g = yes; then
6620  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
6621    FCFLAGS="-g -O2"
6622  else
6623    FCFLAGS="-g"
6624  fi
6625else
6626  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
6627    FCFLAGS="-O2"
6628  else
6629    FCFLAGS=
6630  fi
6631fi
6632
6633ac_ext=c
6634ac_cpp='$CPP $CPPFLAGS'
6635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6637ac_compiler_gnu=$ac_cv_c_compiler_gnu
6638
6639
6640ac_ext=${ac_fc_srcext-f}
6641ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6642ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6643ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
6645$as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
6646if ${ac_cv_prog_fc_v+:} false; then :
6647  $as_echo_n "(cached) " >&6
6648else
6649  cat > conftest.$ac_ext <<_ACEOF
6650      program main
6651
6652      end
6653_ACEOF
6654if ac_fn_fc_try_compile "$LINENO"; then :
6655  ac_cv_prog_fc_v=
6656# Try some options frequently used verbose output
6657for ac_verb in -v -verbose --verbose -V -\#\#\#; do
6658  cat > conftest.$ac_ext <<_ACEOF
6659      program main
6660
6661      end
6662_ACEOF
6663
6664# Compile and link our simple test program by passing a flag (argument
6665# 1 to this macro) to the Fortran compiler in order to get
6666# "verbose" output that we can then parse for the Fortran linker
6667# flags.
6668ac_save_FCFLAGS=$FCFLAGS
6669FCFLAGS="$FCFLAGS $ac_verb"
6670eval "set x $ac_link"
6671shift
6672$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
6673# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6674# LIBRARY_PATH; skip all such settings.
6675ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6676  sed '/^Driving:/d; /^Configured with:/d;
6677      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
6678$as_echo "$ac_fc_v_output" >&5
6679FCFLAGS=$ac_save_FCFLAGS
6680
6681rm -rf conftest*
6682
6683# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
6684# /foo, /bar, and /baz are search directories for the Fortran linker.
6685# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
6686ac_fc_v_output="`echo $ac_fc_v_output |
6687        grep 'LPATH is:' |
6688        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
6689
6690# FIXME: we keep getting bitten by quoted arguments; a more general fix
6691#        that detects unbalanced quotes in FLIBS should be implemented
6692#        and (ugh) tested at some point.
6693case $ac_fc_v_output in
6694  # If we are using xlf then replace all the commas with spaces.
6695  *xlfentry*)
6696    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
6697
6698  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
6699  # $LIBS confuse us, and the libraries appear later in the output anyway).
6700  *mGLOB_options_string*)
6701    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
6702
6703  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
6704  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
6705  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
6706  *-cmdline\ * | *-ignore\ * | *-def\ *)
6707    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
6708        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
6709        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
6710        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
6711
6712  # If we are using Cray Fortran then delete quotes.
6713  *cft90*)
6714    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
6715esac
6716
6717
6718  # look for -l* and *.a constructs in the output
6719  for ac_arg in $ac_fc_v_output; do
6720     case $ac_arg in
6721        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
6722          ac_cv_prog_fc_v=$ac_verb
6723          break 2 ;;
6724     esac
6725  done
6726done
6727if test -z "$ac_cv_prog_fc_v"; then
6728   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
6729$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
6730fi
6731else
6732  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
6733$as_echo "$as_me: WARNING: compilation failed" >&2;}
6734fi
6735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736
6737fi
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
6739$as_echo "$ac_cv_prog_fc_v" >&6; }
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
6741$as_echo_n "checking for Fortran libraries of $FC... " >&6; }
6742if ${ac_cv_fc_libs+:} false; then :
6743  $as_echo_n "(cached) " >&6
6744else
6745  if test "x$FCLIBS" != "x"; then
6746  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
6747else
6748
6749cat > conftest.$ac_ext <<_ACEOF
6750      program main
6751
6752      end
6753_ACEOF
6754
6755# Compile and link our simple test program by passing a flag (argument
6756# 1 to this macro) to the Fortran compiler in order to get
6757# "verbose" output that we can then parse for the Fortran linker
6758# flags.
6759ac_save_FCFLAGS=$FCFLAGS
6760FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
6761eval "set x $ac_link"
6762shift
6763$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
6764# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6765# LIBRARY_PATH; skip all such settings.
6766ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6767  sed '/^Driving:/d; /^Configured with:/d;
6768      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
6769$as_echo "$ac_fc_v_output" >&5
6770FCFLAGS=$ac_save_FCFLAGS
6771
6772rm -rf conftest*
6773
6774# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
6775# /foo, /bar, and /baz are search directories for the Fortran linker.
6776# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
6777ac_fc_v_output="`echo $ac_fc_v_output |
6778        grep 'LPATH is:' |
6779        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
6780
6781# FIXME: we keep getting bitten by quoted arguments; a more general fix
6782#        that detects unbalanced quotes in FLIBS should be implemented
6783#        and (ugh) tested at some point.
6784case $ac_fc_v_output in
6785  # If we are using xlf then replace all the commas with spaces.
6786  *xlfentry*)
6787    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
6788
6789  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
6790  # $LIBS confuse us, and the libraries appear later in the output anyway).
6791  *mGLOB_options_string*)
6792    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
6793
6794  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
6795  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
6796  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
6797  *-cmdline\ * | *-ignore\ * | *-def\ *)
6798    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
6799        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
6800        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
6801        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
6802
6803  # If we are using Cray Fortran then delete quotes.
6804  *cft90*)
6805    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
6806esac
6807
6808
6809
6810ac_cv_fc_libs=
6811
6812# Save positional arguments (if any)
6813ac_save_positional="$@"
6814
6815set X $ac_fc_v_output
6816while test $# != 1; do
6817  shift
6818  ac_arg=$1
6819  case $ac_arg in
6820        [\\/]*.a | ?:[\\/]*.a)
6821            ac_exists=false
6822  for ac_i in $ac_cv_fc_libs; do
6823    if test x"$ac_arg" = x"$ac_i"; then
6824      ac_exists=true
6825      break
6826    fi
6827  done
6828
6829  if test x"$ac_exists" = xtrue; then :
6830
6831else
6832  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6833fi
6834          ;;
6835        -bI:*)
6836            ac_exists=false
6837  for ac_i in $ac_cv_fc_libs; do
6838    if test x"$ac_arg" = x"$ac_i"; then
6839      ac_exists=true
6840      break
6841    fi
6842  done
6843
6844  if test x"$ac_exists" = xtrue; then :
6845
6846else
6847  if test "$ac_compiler_gnu" = yes; then
6848  for ac_link_opt in $ac_arg; do
6849    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
6850  done
6851else
6852  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6853fi
6854fi
6855          ;;
6856          # Ignore these flags.
6857        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
6858          |-LANG:=* | -LIST:* | -LNO:* | -link)
6859          ;;
6860        -lkernel32)
6861          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6862          ;;
6863        -[LRuYz])
6864          # These flags, when seen by themselves, take an argument.
6865          # We remove the space between option and argument and re-iterate
6866          # unless we find an empty arg or a new option (starting with -)
6867          case $2 in
6868             "" | -*);;
6869             *)
6870                ac_arg="$ac_arg$2"
6871                shift; shift
6872                set X $ac_arg "$@"
6873                ;;
6874          esac
6875          ;;
6876        -YP,*)
6877          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
6878              ac_exists=false
6879  for ac_i in $ac_cv_fc_libs; do
6880    if test x"$ac_j" = x"$ac_i"; then
6881      ac_exists=true
6882      break
6883    fi
6884  done
6885
6886  if test x"$ac_exists" = xtrue; then :
6887
6888else
6889  ac_arg="$ac_arg $ac_j"
6890                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
6891fi
6892          done
6893          ;;
6894        -[lLR]*)
6895            ac_exists=false
6896  for ac_i in $ac_cv_fc_libs; do
6897    if test x"$ac_arg" = x"$ac_i"; then
6898      ac_exists=true
6899      break
6900    fi
6901  done
6902
6903  if test x"$ac_exists" = xtrue; then :
6904
6905else
6906  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6907fi
6908          ;;
6909        -zallextract*| -zdefaultextract)
6910          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6911          ;;
6912          # Ignore everything else.
6913  esac
6914done
6915# restore positional arguments
6916set X $ac_save_positional; shift
6917
6918# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
6919# then we insist that the "run path" must be an absolute path (i.e. it
6920# must begin with a "/").
6921case `(uname -sr) 2>/dev/null` in
6922   "SunOS 5"*)
6923      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
6924                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
6925      test "x$ac_ld_run_path" != x &&
6926        if test "$ac_compiler_gnu" = yes; then
6927  for ac_link_opt in $ac_ld_run_path; do
6928    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
6929  done
6930else
6931  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
6932fi
6933      ;;
6934esac
6935fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
6936
6937fi
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
6939$as_echo "$ac_cv_fc_libs" >&6; }
6940FCLIBS="$ac_cv_fc_libs"
6941
6942
6943ac_ext=c
6944ac_cpp='$CPP $CPPFLAGS'
6945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6947ac_compiler_gnu=$ac_cv_c_compiler_gnu
6948
6949
6950abs_top_builddir=`pwd`
6951ABS_TOP_BUILDDIR="$abs_top_builddir"
6952
6953abs_top_srcdir=`cd $srcdir ; pwd`
6954ABS_TOP_SRCDIR="$abs_top_srcdir"
6955
6956
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_barrier_wait in -lpthread" >&5
6958$as_echo_n "checking for pthread_barrier_wait in -lpthread... " >&6; }
6959if ${ac_cv_lib_pthread_pthread_barrier_wait+:} false; then :
6960  $as_echo_n "(cached) " >&6
6961else
6962  ac_check_lib_save_LIBS=$LIBS
6963LIBS="-lpthread  $LIBS"
6964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965/* end confdefs.h.  */
6966
6967/* Override any GCC internal prototype to avoid an error.
6968   Use char because int might match the return type of a GCC
6969   builtin and then its argument prototype would still apply.  */
6970#ifdef __cplusplus
6971extern "C"
6972#endif
6973char pthread_barrier_wait ();
6974int
6975main ()
6976{
6977return pthread_barrier_wait ();
6978  ;
6979  return 0;
6980}
6981_ACEOF
6982if ac_fn_c_try_link "$LINENO"; then :
6983  ac_cv_lib_pthread_pthread_barrier_wait=yes
6984else
6985  ac_cv_lib_pthread_pthread_barrier_wait=no
6986fi
6987rm -f core conftest.err conftest.$ac_objext \
6988    conftest$ac_exeext conftest.$ac_ext
6989LIBS=$ac_check_lib_save_LIBS
6990fi
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_barrier_wait" >&5
6992$as_echo "$ac_cv_lib_pthread_pthread_barrier_wait" >&6; }
6993if test "x$ac_cv_lib_pthread_pthread_barrier_wait" = xyes; then :
6994  pthread="yes"
6995else
6996  pthread="no"
6997
6998fi
6999
7000 if test "$pthread" = "yes"; then
7001  CppAD_PTHREAD_TRUE=
7002  CppAD_PTHREAD_FALSE='#'
7003else
7004  CppAD_PTHREAD_TRUE='#'
7005  CppAD_PTHREAD_FALSE=
7006fi
7007
7008if test "$pthread" == "yes" ; then
7009        PTHREAD_LIB="-lpthread"
7010
7011else
7012        PTHREAD_LIB=""
7013
7014fi
7015
7016DL_LIB=""
7017
7018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7019$as_echo_n "checking for dlopen in -ldl... " >&6; }
7020if ${ac_cv_lib_dl_dlopen+:} false; then :
7021  $as_echo_n "(cached) " >&6
7022else
7023  ac_check_lib_save_LIBS=$LIBS
7024LIBS="-ldl  $LIBS"
7025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7026/* end confdefs.h.  */
7027
7028/* Override any GCC internal prototype to avoid an error.
7029   Use char because int might match the return type of a GCC
7030   builtin and then its argument prototype would still apply.  */
7031#ifdef __cplusplus
7032extern "C"
7033#endif
7034char dlopen ();
7035int
7036main ()
7037{
7038return dlopen ();
7039  ;
7040  return 0;
7041}
7042_ACEOF
7043if ac_fn_c_try_link "$LINENO"; then :
7044  ac_cv_lib_dl_dlopen=yes
7045else
7046  ac_cv_lib_dl_dlopen=no
7047fi
7048rm -f core conftest.err conftest.$ac_objext \
7049    conftest$ac_exeext conftest.$ac_ext
7050LIBS=$ac_check_lib_save_LIBS
7051fi
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7053$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7054if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
7055  DL_LIB="-ldl"
7056else
7057  DL_LIB=""
7058
7059fi
7060
7061ac_ext=cpp
7062ac_cpp='$CXXCPP $CPPFLAGS'
7063ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7064ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7065ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7066
7067LDFLAGS_save=$LDFLAGS
7068CXXFLAGS_save=$CXXFLAGS
7069boost_thread_found='no'
7070if test "$BOOST_DIR" != '' ; then
7071        CXXFLAGS="-I$BOOST_DIR/include $CXXFLAGS"
7072fi
7073if test "$BOOST_DIR" == '' && test "$boost_thread_found" == 'no' ; then
7074        bthread_lib='-lboost_thread-mt'
7075        LDFLAGS="$LDFLAGS_save $bthread_lib"
7076
7077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078/* end confdefs.h.  */
7079# include <boost/thread.hpp>
7080int
7081main ()
7082{
7083boost::barrier wait(1);
7084
7085  ;
7086  return 0;
7087}
7088_ACEOF
7089if ac_fn_cxx_try_link "$LINENO"; then :
7090  boost_thread_found='yes'
7091else
7092  boost_thread_found='no'
7093
7094fi
7095rm -f core conftest.err conftest.$ac_objext \
7096    conftest$ac_exeext conftest.$ac_ext
7097fi
7098if test "$BOOST_DIR" != '' && test "$boost_thread_found" == 'no' ; then
7099        bthread_lib="$BOOST_DIR/lib/libboost_thread-mt.so"
7100        LDFLAGS="$LDFLAGS_save $bthread_lib"
7101        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102/* end confdefs.h.  */
7103# include <boost/thread.hpp>
7104int
7105main ()
7106{
7107boost::barrier wait(1);
7108
7109  ;
7110  return 0;
7111}
7112_ACEOF
7113if ac_fn_cxx_try_link "$LINENO"; then :
7114  boost_thread_found='yes'
7115else
7116  boost_thread_found='no'
7117
7118fi
7119rm -f core conftest.err conftest.$ac_objext \
7120    conftest$ac_exeext conftest.$ac_ext
7121fi
7122if test "$BOOST_DIR" != '' && test "$boost_thread_found" == 'no' ; then
7123        bthread_lib="$BOOST_DIR/lib/libboost_thread-mt.a"
7124        LDFLAGS="$LDFLAGS_save $bthread_lib"
7125        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126/* end confdefs.h.  */
7127# include <boost/thread.hpp>
7128int
7129main ()
7130{
7131boost::barrier wait(1);
7132
7133  ;
7134  return 0;
7135}
7136_ACEOF
7137if ac_fn_cxx_try_link "$LINENO"; then :
7138  boost_thread_found='yes'
7139else
7140  boost_thread_found='no'
7141
7142fi
7143rm -f core conftest.err conftest.$ac_objext \
7144    conftest$ac_exeext conftest.$ac_ext
7145fi
7146if test "$BOOST_DIR" == '' && test "$boost_thread_found" == 'no' ; then
7147        bthread_lib='-lboost_thread'
7148        LDFLAGS="$LDFLAGS_save $bthread_lib"
7149        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150/* end confdefs.h.  */
7151# include <boost/thread.hpp>
7152int
7153main ()
7154{
7155boost::barrier wait(1);
7156
7157  ;
7158  return 0;
7159}
7160_ACEOF
7161if ac_fn_cxx_try_link "$LINENO"; then :
7162  boost_thread_found='yes'
7163else
7164  boost_thread_found='no'
7165
7166fi
7167rm -f core conftest.err conftest.$ac_objext \
7168    conftest$ac_exeext conftest.$ac_ext
7169fi
7170if test "$BOOST_DIR" != '' && test "$boost_thread_found" == 'no' ; then
7171        bthread_lib="$BOOST_DIR/lib/libboost_thread.so"
7172        LDFLAGS="$LDFLAGS_save $bthread_lib"
7173        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174/* end confdefs.h.  */
7175# include <boost/thread.hpp>
7176int
7177main ()
7178{
7179boost::barrier wait(1);
7180
7181  ;
7182  return 0;
7183}
7184_ACEOF
7185if ac_fn_cxx_try_link "$LINENO"; then :
7186  boost_thread_found='yes'
7187else
7188  boost_thread_found='no'
7189
7190fi
7191rm -f core conftest.err conftest.$ac_objext \
7192    conftest$ac_exeext conftest.$ac_ext
7193fi
7194if test "$BOOST_DIR" != '' && test "$boost_thread_found" == 'no' ; then
7195        bthread_lib="$BOOST_DIR/lib/libboost_thread.a"
7196        LDFLAGS="$LDFLAGS_save $bthread_lib"
7197        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198/* end confdefs.h.  */
7199# include <boost/thread.hpp>
7200int
7201main ()
7202{
7203boost::barrier wait(1);
7204
7205  ;
7206  return 0;
7207}
7208_ACEOF
7209if ac_fn_cxx_try_link "$LINENO"; then :
7210  boost_thread_found='yes'
7211else
7212  boost_thread_found='no'
7213
7214fi
7215rm -f core conftest.err conftest.$ac_objext \
7216    conftest$ac_exeext conftest.$ac_ext
7217fi
7218 if test "$boost_thread_found" = 'yes'; then
7219  CppAD_BTHREAD_TRUE=
7220  CppAD_BTHREAD_FALSE='#'
7221else
7222  CppAD_BTHREAD_TRUE='#'
7223  CppAD_BTHREAD_FALSE=
7224fi
7225
7226if test "$boost_thread_found" == 'yes' ; then
7227        BTHREAD_LIB="$bthread_lib"
7228
7229        { $as_echo "$as_me:${as_lineno-$LINENO}: result: boost::thread library... yes" >&5
7230$as_echo "boost::thread library... yes" >&6; }
7231else
7232        BTHREAD_LIB=''
7233
7234        { $as_echo "$as_me:${as_lineno-$LINENO}: result: boost::thread library... no" >&5
7235$as_echo "boost::thread library... no" >&6; }
7236fi
7237LDFLAGS=$LDFLAGS_save
7238CXXFLAGS=$CXXFLAGS_save
7239ac_ext=c
7240ac_cpp='$CPP $CPPFLAGS'
7241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7243ac_compiler_gnu=$ac_cv_c_compiler_gnu
7244
7245#
7246if test -e $IPOPT_DIR/lib/coin ; then
7247        IPOPT_LIBS="-L $IPOPT_DIR/lib/coin -L $IPOPT_DIR/lib/coin/ThirdParty"
7248        IPOPT_LD_PATH="$IPOPT_DIR/lib/coin:$IPOPT_DIR/lib/coin/ThirdParty"
7249else
7250        IPOPT_LIBS="-L $IPOPT_DIR/lib"
7251        IPOPT_LD_PATH="$IPOPT_DIR/lib"
7252fi
7253CPPAD_IPOPT_LD_PATH="$IPOPT_LD_PATH"
7254
7255#
7256CPPAD_IPOPT_LIBS="$IPOPT_LIBS -lipopt"
7257
7258if test "$have_pkg_config" == "yes"; then
7259                PKG_CONFIG_PATH="$IPOPT_DIR/lib/pkgconfig:$IPOPT_DIR/share/pkgconfig"
7260        PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$IPOPT_DIR/lib64/pkgconfig"
7261        export PKG_CONFIG_PATH
7262        if pkg-config --libs ipopt >& /dev/null ; then
7263                CPPAD_IPOPT_LIBS=`pkg-config --libs ipopt`
7264        else
7265                                ac_ext=${ac_fc_srcext-f}
7266ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7267ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7268ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7269
7270                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddot in -lblas" >&5
7271$as_echo_n "checking for ddot in -lblas... " >&6; }
7272if ${ac_cv_lib_blas_ddot+:} false; then :
7273  $as_echo_n "(cached) " >&6
7274else
7275  ac_check_lib_save_LIBS=$LIBS
7276LIBS="-lblas  $LIBS"
7277cat > conftest.$ac_ext <<_ACEOF
7278      program main
7279      call ddot
7280      end
7281_ACEOF
7282if ac_fn_fc_try_link "$LINENO"; then :
7283  ac_cv_lib_blas_ddot=yes
7284else
7285  ac_cv_lib_blas_ddot=no
7286fi
7287rm -f core conftest.err conftest.$ac_objext \
7288    conftest$ac_exeext conftest.$ac_ext
7289LIBS=$ac_check_lib_save_LIBS
7290fi
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blas_ddot" >&5
7292$as_echo "$ac_cv_lib_blas_ddot" >&6; }
7293if test "x$ac_cv_lib_blas_ddot" = xyes; then :
7294  CPPAD_IPOPT_LIBS="$CPPAD_IPOPT_LIBS -lblas"
7295fi
7296
7297                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgesv in -llapack" >&5
7298$as_echo_n "checking for dgesv in -llapack... " >&6; }
7299if ${ac_cv_lib_lapack_dgesv+:} false; then :
7300  $as_echo_n "(cached) " >&6
7301else
7302  ac_check_lib_save_LIBS=$LIBS
7303LIBS="-llapack  $LIBS"
7304cat > conftest.$ac_ext <<_ACEOF
7305      program main
7306      call dgesv
7307      end
7308_ACEOF
7309if ac_fn_fc_try_link "$LINENO"; then :
7310  ac_cv_lib_lapack_dgesv=yes
7311else
7312  ac_cv_lib_lapack_dgesv=no
7313fi
7314rm -f core conftest.err conftest.$ac_objext \
7315    conftest$ac_exeext conftest.$ac_ext
7316LIBS=$ac_check_lib_save_LIBS
7317fi
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_dgesv" >&5
7319$as_echo "$ac_cv_lib_lapack_dgesv" >&6; }
7320if test "x$ac_cv_lib_lapack_dgesv" = xyes; then :
7321  CPPAD_IPOPT_LIBS="$CPPAD_IPOPT_LIBS -llapack"
7322fi
7323
7324                ac_ext=c
7325ac_cpp='$CPP $CPPFLAGS'
7326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7328ac_compiler_gnu=$ac_cv_c_compiler_gnu
7329
7330        fi
7331else
7332                ac_ext=${ac_fc_srcext-f}
7333ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7334ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7335ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7336
7337        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddot in -lblas" >&5
7338$as_echo_n "checking for ddot in -lblas... " >&6; }
7339if ${ac_cv_lib_blas_ddot+:} false; then :
7340  $as_echo_n "(cached) " >&6
7341else
7342  ac_check_lib_save_LIBS=$LIBS
7343LIBS="-lblas  $LIBS"
7344cat > conftest.$ac_ext <<_ACEOF
7345      program main
7346      call ddot
7347      end
7348_ACEOF
7349if ac_fn_fc_try_link "$LINENO"; then :
7350  ac_cv_lib_blas_ddot=yes
7351else
7352  ac_cv_lib_blas_ddot=no
7353fi
7354rm -f core conftest.err conftest.$ac_objext \
7355    conftest$ac_exeext conftest.$ac_ext
7356LIBS=$ac_check_lib_save_LIBS
7357fi
7358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blas_ddot" >&5
7359$as_echo "$ac_cv_lib_blas_ddot" >&6; }
7360if test "x$ac_cv_lib_blas_ddot" = xyes; then :
7361  CPPAD_IPOPT_LIBS="$CPPAD_IPOPT_LIBS -lblas"
7362fi
7363
7364                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgesv in -llapack" >&5
7365$as_echo_n "checking for dgesv in -llapack... " >&6; }
7366if ${ac_cv_lib_lapack_dgesv+:} false; then :
7367  $as_echo_n "(cached) " >&6
7368else
7369  ac_check_lib_save_LIBS=$LIBS
7370LIBS="-llapack  $LIBS"
7371cat > conftest.$ac_ext <<_ACEOF
7372      program main
7373      call dgesv
7374      end
7375_ACEOF
7376if ac_fn_fc_try_link "$LINENO"; then :
7377  ac_cv_lib_lapack_dgesv=yes
7378else
7379  ac_cv_lib_lapack_dgesv=no
7380fi
7381rm -f core conftest.err conftest.$ac_objext \
7382    conftest$ac_exeext conftest.$ac_ext
7383LIBS=$ac_check_lib_save_LIBS
7384fi
7385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_dgesv" >&5
7386$as_echo "$ac_cv_lib_lapack_dgesv" >&6; }
7387if test "x$ac_cv_lib_lapack_dgesv" = xyes; then :
7388  CPPAD_IPOPT_LIBS="$CPPAD_IPOPT_LIBS -llapack"
7389fi
7390
7391        ac_ext=c
7392ac_cpp='$CPP $CPPFLAGS'
7393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7395ac_compiler_gnu=$ac_cv_c_compiler_gnu
7396
7397fi
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cppad_ipopt_nlp libraries: $CPPAD_IPOPT_LIBS" >&5
7399$as_echo "cppad_ipopt_nlp libraries: $CPPAD_IPOPT_LIBS" >&6; }
7400cppad_description="Differentiation of C++ Algorithms"
7401
7402cppad_version=${PACKAGE_VERSION}
7403
7404cppad_url="http://www.coin-or.org/CppAD"
7405
7406if test "$prefix" == "NONE" ; then
7407        cppad_cflags_value="-I$HOME/include"
7408        cppad_libs_value="-L$HOME/lib"
7409else
7410        cppad_cflags_value="-I$prefix/include"
7411        cppad_libs_value="-L$prefix/lib"
7412fi
7413if test "$POSTFIX_DIR" != "" ; then
7414        cppad_cflags_value="$cppad_cflags_value/$POSTFIX_DIR"
7415        cppad_libs_value="$cppad_libs_value/$POSTFIX_DIR"
7416fi
7417if test "$IPOPT_DIR" == "" ; then
7418        cppad_libs_value=""
7419        cppad_requires_value=""
7420else
7421        cppad_libs_value="$cppad_libs_value -lcppad_ipopt"
7422        cppad_requires_value="ipopt"
7423fi
7424cppad_cflags="$cppad_cflags_value"
7425
7426cppad_libs="$cppad_libs_value"
7427
7428cppad_requires="$cppad_requires_value"
7429
7430cppad_SOURCE_DIR=${ABS_TOP_SRCDIR}
7431
7432adolc_prefix=${ADOLC_DIR}
7433
7434eigen_prefix=${EIGEN_DIR}
7435
7436ipopt_prefix=${IPOPT_DIR}
7437
7438ac_config_files="$ac_config_files cppad/configure.hpp cppad_ipopt/example/test.sh cppad_ipopt/speed/test.sh cppad_ipopt/test/test.sh example/ipopt_solve/test.sh example/test_one.sh pkgconfig/cppad.pc pkgconfig/cppad-uninstalled.pc test_more/test_one.sh makefile compare_c/makefile cppad_ipopt/src/makefile cppad_ipopt/example/makefile cppad_ipopt/speed/makefile cppad_ipopt/test/makefile example/makefile example/atomic/makefile example/ipopt_solve/makefile introduction/get_started/makefile introduction/exp_apx/makefile multi_thread/makefile multi_thread/test_multi/makefile print_for/makefile speed/adolc/makefile speed/cppad/makefile speed/double/makefile speed/example/makefile speed/fadbad/makefile speed/profile/makefile speed/profile/gprof.sed speed/sacado/makefile speed/src/makefile test_more/makefile"
7439
7440
7441ac_config_commands="$ac_config_commands example_ipopt_solve_test.sh"
7442
7443ac_config_commands="$ac_config_commands cppad_ipopt_example_test.sh"
7444
7445ac_config_commands="$ac_config_commands cppad_ipopt_speed_test.sh"
7446
7447ac_config_commands="$ac_config_commands cppad_ipopt_test_test.sh"
7448
7449ac_config_commands="$ac_config_commands example_test_one.sh"
7450
7451ac_config_commands="$ac_config_commands test_more_test_one.sh"
7452
7453
7454cat >confcache <<\_ACEOF
7455# This file is a shell script that caches the results of configure
7456# tests run on this system so they can be shared between configure
7457# scripts and configure runs, see configure's option --config-cache.
7458# It is not useful on other systems.  If it contains results you don't
7459# want to keep, you may remove or edit it.
7460#
7461# config.status only pays attention to the cache file if you give it
7462# the --recheck option to rerun configure.
7463#
7464# `ac_cv_env_foo' variables (set or unset) will be overridden when
7465# loading this file, other *unset* `ac_cv_foo' will be assigned the
7466# following values.
7467
7468_ACEOF
7469
7470# The following way of writing the cache mishandles newlines in values,
7471# but we know of no workaround that is simple, portable, and efficient.
7472# So, we kill variables containing newlines.
7473# Ultrix sh set writes to stderr and can't be redirected directly,
7474# and sets the high bit in the cache file unless we assign to the vars.
7475(
7476  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7477    eval ac_val=\$$ac_var
7478    case $ac_val in #(
7479    *${as_nl}*)
7480      case $ac_var in #(
7481      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7482$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7483      esac
7484      case $ac_var in #(
7485      _ | IFS | as_nl) ;; #(
7486      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7487      *) { eval $ac_var=; unset $ac_var;} ;;
7488      esac ;;
7489    esac
7490  done
7491
7492  (set) 2>&1 |
7493    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7494    *${as_nl}ac_space=\ *)
7495      # `set' does not quote correctly, so add quotes: double-quote
7496      # substitution turns \\\\ into \\, and sed turns \\ into \.
7497      sed -n \
7498        "s/'/'\\\\''/g;
7499          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7500      ;; #(
7501    *)
7502      # `set' quotes correctly as required by POSIX, so do not add quotes.
7503      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7504      ;;
7505    esac |
7506    sort
7507) |
7508  sed '
7509     /^ac_cv_env_/b end
7510     t clear
7511     :clear
7512     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7513     t end
7514     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7515     :end' >>confcache
7516if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7517  if test -w "$cache_file"; then
7518    if test "x$cache_file" != "x/dev/null"; then
7519      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7520$as_echo "$as_me: updating cache $cache_file" >&6;}
7521      if test ! -f "$cache_file" || test -h "$cache_file"; then
7522        cat confcache >"$cache_file"
7523      else
7524        case $cache_file in #(
7525        */* | ?:*)
7526          mv -f confcache "$cache_file"$$ &&
7527          mv -f "$cache_file"$$ "$cache_file" ;; #(
7528        *)
7529          mv -f confcache "$cache_file" ;;
7530        esac
7531      fi
7532    fi
7533  else
7534    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7535$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7536  fi
7537fi
7538rm -f confcache
7539
7540test "x$prefix" = xNONE && prefix=$ac_default_prefix
7541# Let make expand exec_prefix.
7542test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7543
7544# Transform confdefs.h into DEFS.
7545# Protect against shell expansion while executing Makefile rules.
7546# Protect against Makefile macro expansion.
7547#
7548# If the first sed substitution is executed (which looks for macros that
7549# take arguments), then branch to the quote section.  Otherwise,
7550# look for a macro that doesn't take arguments.
7551ac_script='
7552:mline
7553/\\$/{
7554 N
7555 s,\\\n,,
7556 b mline
7557}
7558t clear
7559:clear
7560s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
7561t quote
7562s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
7563t quote
7564b any
7565:quote
7566s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7567s/\[/\\&/g
7568s/\]/\\&/g
7569s/\$/$$/g
7570H
7571:any
7572${
7573        g
7574        s/^\n//
7575        s/\n/ /g
7576        p
7577}
7578'
7579DEFS=`sed -n "$ac_script" confdefs.h`
7580
7581
7582ac_libobjs=
7583ac_ltlibobjs=
7584U=
7585for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7586  # 1. Remove the extension, and $U if already installed.
7587  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7588  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7589  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7590  #    will be set to the directory where LIBOBJS objects are built.
7591  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7592  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7593done
7594LIBOBJS=$ac_libobjs
7595
7596LTLIBOBJS=$ac_ltlibobjs
7597
7598
7599if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7600  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
7601Usually this means the macro was only invoked conditionally." "$LINENO" 5
7602fi
7603if test -z "${CppAD_PKG_CONFIG_TRUE}" && test -z "${CppAD_PKG_CONFIG_FALSE}"; then
7604  as_fn_error $? "conditional \"CppAD_PKG_CONFIG\" was never defined.
7605Usually this means the macro was only invoked conditionally." "$LINENO" 5
7606fi
7607if test -z "${CppAD_HAVE_AR_TRUE}" && test -z "${CppAD_HAVE_AR_FALSE}"; then
7608  as_fn_error $? "conditional \"CppAD_HAVE_AR\" was never defined.
7609Usually this means the macro was only invoked conditionally." "$LINENO" 5
7610fi
7611if test -z "${CppAD_DOCUMENTATION_TRUE}" && test -z "${CppAD_DOCUMENTATION_FALSE}"; then
7612  as_fn_error $? "conditional \"CppAD_DOCUMENTATION\" was never defined.
7613Usually this means the macro was only invoked conditionally." "$LINENO" 5
7614fi
7615if test -z "${CppAD_POSTFIX_TRUE}" && test -z "${CppAD_POSTFIX_FALSE}"; then
7616  as_fn_error $? "conditional \"CppAD_POSTFIX\" was never defined.
7617Usually this means the macro was only invoked conditionally." "$LINENO" 5
7618fi
7619if test -z "${CppAD_ADOLC_TRUE}" && test -z "${CppAD_ADOLC_FALSE}"; then
7620  as_fn_error $? "conditional \"CppAD_ADOLC\" was never defined.
7621Usually this means the macro was only invoked conditionally." "$LINENO" 5
7622fi
7623if test -z "${CppAD_EIGEN_DIR_TRUE}" && test -z "${CppAD_EIGEN_DIR_FALSE}"; then
7624  as_fn_error $? "conditional \"CppAD_EIGEN_DIR\" was never defined.
7625Usually this means the macro was only invoked conditionally." "$LINENO" 5
7626fi
7627if test -z "${CppAD_FADBAD_TRUE}" && test -z "${CppAD_FADBAD_FALSE}"; then
7628  as_fn_error $? "conditional \"CppAD_FADBAD\" was never defined.
7629Usually this means the macro was only invoked conditionally." "$LINENO" 5
7630fi
7631if test -z "${CppAD_SACADO_TRUE}" && test -z "${CppAD_SACADO_FALSE}"; then
7632  as_fn_error $? "conditional \"CppAD_SACADO\" was never defined.
7633Usually this means the macro was only invoked conditionally." "$LINENO" 5
7634fi
7635if test -z "${CppAD_IPOPT_TRUE}" && test -z "${CppAD_IPOPT_FALSE}"; then
7636  as_fn_error $? "conditional \"CppAD_IPOPT\" was never defined.
7637Usually this means the macro was only invoked conditionally." "$LINENO" 5
7638fi
7639if test -z "${CppAD_BOOST_DIR_TRUE}" && test -z "${CppAD_BOOST_DIR_FALSE}"; then
7640  as_fn_error $? "conditional \"CppAD_BOOST_DIR\" was never defined.
7641Usually this means the macro was only invoked conditionally." "$LINENO" 5
7642fi
7643if test -z "${CppAD_OPENMP_TRUE}" && test -z "${CppAD_OPENMP_FALSE}"; then
7644  as_fn_error $? "conditional \"CppAD_OPENMP\" was never defined.
7645Usually this means the macro was only invoked conditionally." "$LINENO" 5
7646fi
7647if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7648  as_fn_error $? "conditional \"AMDEP\" was never defined.
7649Usually this means the macro was only invoked conditionally." "$LINENO" 5
7650fi
7651if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7652  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7653Usually this means the macro was only invoked conditionally." "$LINENO" 5
7654fi
7655 if test -n "$EXEEXT"; then
7656  am__EXEEXT_TRUE=
7657  am__EXEEXT_FALSE='#'
7658else
7659  am__EXEEXT_TRUE='#'
7660  am__EXEEXT_FALSE=
7661fi
7662
7663if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7664  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
7665Usually this means the macro was only invoked conditionally." "$LINENO" 5
7666fi
7667if test -z "${CppAD_MS_COMPILER_TRUE}" && test -z "${CppAD_MS_COMPILER_FALSE}"; then
7668  as_fn_error $? "conditional \"CppAD_MS_COMPILER\" was never defined.
7669Usually this means the macro was only invoked conditionally." "$LINENO" 5
7670fi
7671if test -z "${CppAD_PTHREAD_TRUE}" && test -z "${CppAD_PTHREAD_FALSE}"; then
7672  as_fn_error $? "conditional \"CppAD_PTHREAD\" was never defined.
7673Usually this means the macro was only invoked conditionally." "$LINENO" 5
7674fi
7675if test -z "${CppAD_BTHREAD_TRUE}" && test -z "${CppAD_BTHREAD_FALSE}"; then
7676  as_fn_error $? "conditional \"CppAD_BTHREAD\" was never defined.
7677Usually this means the macro was only invoked conditionally." "$LINENO" 5
7678fi
7679
7680: "${CONFIG_STATUS=./config.status}"
7681ac_write_fail=0
7682ac_clean_files_save=$ac_clean_files
7683ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7684{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7685$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7686as_write_fail=0
7687cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7688#! $SHELL
7689# Generated by $as_me.
7690# Run this file to recreate the current configuration.
7691# Compiler output produced by configure, useful for debugging
7692# configure, is in config.log if it exists.
7693
7694debug=false
7695ac_cs_recheck=false
7696ac_cs_silent=false
7697
7698SHELL=\${CONFIG_SHELL-$SHELL}
7699export SHELL
7700_ASEOF
7701cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7702## -------------------- ##
7703## M4sh Initialization. ##
7704## -------------------- ##
7705
7706# Be more Bourne compatible
7707DUALCASE=1; export DUALCASE # for MKS sh
7708if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7709  emulate sh
7710  NULLCMD=:
7711  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7712  # is contrary to our usage.  Disable this feature.
7713  alias -g '${1+"$@"}'='"$@"'
7714  setopt NO_GLOB_SUBST
7715else
7716  case `(set -o) 2>/dev/null` in #(
7717  *posix*) :
7718    set -o posix ;; #(
7719  *) :
7720     ;;
7721esac
7722fi
7723
7724
7725as_nl='
7726'
7727export as_nl
7728# Printing a long string crashes Solaris 7 /usr/bin/printf.
7729as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7730as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7731as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7732# Prefer a ksh shell builtin over an external printf program on Solaris,
7733# but without wasting forks for bash or zsh.
7734if test -z "$BASH_VERSION$ZSH_VERSION" \
7735    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7736  as_echo='print -r --'
7737  as_echo_n='print -rn --'
7738elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7739  as_echo='printf %s\n'
7740  as_echo_n='printf %s'
7741else
7742  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7743    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7744    as_echo_n='/usr/ucb/echo -n'
7745  else
7746    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7747    as_echo_n_body='eval
7748      arg=$1;
7749      case $arg in #(
7750      *"$as_nl"*)
7751        expr "X$arg" : "X\\(.*\\)$as_nl";
7752        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7753      esac;
7754      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7755    '
7756    export as_echo_n_body
7757    as_echo_n='sh -c $as_echo_n_body as_echo'
7758  fi
7759  export as_echo_body
7760  as_echo='sh -c $as_echo_body as_echo'
7761fi
7762
7763# The user is always right.
7764if test "${PATH_SEPARATOR+set}" != set; then
7765  PATH_SEPARATOR=:
7766  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7767    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7768      PATH_SEPARATOR=';'
7769  }
7770fi
7771
7772
7773# IFS
7774# We need space, tab and new line, in precisely that order.  Quoting is
7775# there to prevent editors from complaining about space-tab.
7776# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7777# splitting by setting IFS to empty value.)
7778IFS=" ""        $as_nl"
7779
7780# Find who we are.  Look in the path if we contain no directory separator.
7781as_myself=
7782case $0 in #((
7783  *[\\/]* ) as_myself=$0 ;;
7784  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785for as_dir in $PATH
7786do
7787  IFS=$as_save_IFS
7788  test -z "$as_dir" && as_dir=.
7789    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7790  done
7791IFS=$as_save_IFS
7792
7793     ;;
7794esac
7795# We did not find ourselves, most probably we were run as `sh COMMAND'
7796# in which case we are not to be found in the path.
7797if test "x$as_myself" = x; then
7798  as_myself=$0
7799fi
7800if test ! -f "$as_myself"; then
7801  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7802  exit 1
7803fi
7804
7805# Unset variables that we do not need and which cause bugs (e.g. in
7806# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7807# suppresses any "Segmentation fault" message there.  '((' could
7808# trigger a bug in pdksh 5.2.14.
7809for as_var in BASH_ENV ENV MAIL MAILPATH
7810do eval test x\${$as_var+set} = xset \
7811  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7812done
7813PS1='$ '
7814PS2='> '
7815PS4='+ '
7816
7817# NLS nuisances.
7818LC_ALL=C
7819export LC_ALL
7820LANGUAGE=C
7821export LANGUAGE
7822
7823# CDPATH.
7824(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7825
7826
7827# as_fn_error STATUS ERROR [LINENO LOG_FD]
7828# ----------------------------------------
7829# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7830# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7831# script with STATUS, using 1 if that was 0.
7832as_fn_error ()
7833{
7834  as_status=$1; test $as_status -eq 0 && as_status=1
7835  if test "$4"; then
7836    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7837    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7838  fi
7839  $as_echo "$as_me: error: $2" >&2
7840  as_fn_exit $as_status
7841} # as_fn_error
7842
7843
7844# as_fn_set_status STATUS
7845# -----------------------
7846# Set $? to STATUS, without forking.
7847as_fn_set_status ()
7848{
7849  return $1
7850} # as_fn_set_status
7851
7852# as_fn_exit STATUS
7853# -----------------
7854# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7855as_fn_exit ()
7856{
7857  set +e
7858  as_fn_set_status $1
7859  exit $1
7860} # as_fn_exit
7861
7862# as_fn_unset VAR
7863# ---------------
7864# Portably unset VAR.
7865as_fn_unset ()
7866{
7867  { eval $1=; unset $1;}
7868}
7869as_unset=as_fn_unset
7870# as_fn_append VAR VALUE
7871# ----------------------
7872# Append the text in VALUE to the end of the definition contained in VAR. Take
7873# advantage of any shell optimizations that allow amortized linear growth over
7874# repeated appends, instead of the typical quadratic growth present in naive
7875# implementations.
7876if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7877  eval 'as_fn_append ()
7878  {
7879    eval $1+=\$2
7880  }'
7881else
7882  as_fn_append ()
7883  {
7884    eval $1=\$$1\$2
7885  }
7886fi # as_fn_append
7887
7888# as_fn_arith ARG...
7889# ------------------
7890# Perform arithmetic evaluation on the ARGs, and store the result in the
7891# global $as_val. Take advantage of shells that can avoid forks. The arguments
7892# must be portable across $(()) and expr.
7893if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7894  eval 'as_fn_arith ()
7895  {
7896    as_val=$(( $* ))
7897  }'
7898else
7899  as_fn_arith ()
7900  {
7901    as_val=`expr "$@" || test $? -eq 1`
7902  }
7903fi # as_fn_arith
7904
7905
7906if expr a : '\(a\)' >/dev/null 2>&1 &&
7907   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7908  as_expr=expr
7909else
7910  as_expr=false
7911fi
7912
7913if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7914  as_basename=basename
7915else
7916  as_basename=false
7917fi
7918
7919if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7920  as_dirname=dirname
7921else
7922  as_dirname=false
7923fi
7924
7925as_me=`$as_basename -- "$0" ||
7926$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7927         X"$0" : 'X\(//\)$' \| \
7928         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7929$as_echo X/"$0" |
7930    sed '/^.*\/\([^/][^/]*\)\/*$/{
7931            s//\1/
7932            q
7933          }
7934          /^X\/\(\/\/\)$/{
7935            s//\1/
7936            q
7937          }
7938          /^X\/\(\/\).*/{
7939            s//\1/
7940            q
7941          }
7942          s/.*/./; q'`
7943
7944# Avoid depending upon Character Ranges.
7945as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7946as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7947as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7948as_cr_digits='0123456789'
7949as_cr_alnum=$as_cr_Letters$as_cr_digits
7950
7951ECHO_C= ECHO_N= ECHO_T=
7952case `echo -n x` in #(((((
7953-n*)
7954  case `echo 'xy\c'` in
7955  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
7956  xy)  ECHO_C='\c';;
7957  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7958       ECHO_T=' ';;
7959  esac;;
7960*)
7961  ECHO_N='-n';;
7962esac
7963
7964rm -f conf$$ conf$$.exe conf$$.file
7965if test -d conf$$.dir; then
7966  rm -f conf$$.dir/conf$$.file
7967else
7968  rm -f conf$$.dir
7969  mkdir conf$$.dir 2>/dev/null
7970fi
7971if (echo >conf$$.file) 2>/dev/null; then
7972  if ln -s conf$$.file conf$$ 2>/dev/null; then
7973    as_ln_s='ln -s'
7974    # ... but there are two gotchas:
7975    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7976    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7977    # In both cases, we have to default to `cp -p'.
7978    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7979      as_ln_s='cp -p'
7980  elif ln conf$$.file conf$$ 2>/dev/null; then
7981    as_ln_s=ln
7982  else
7983    as_ln_s='cp -p'
7984  fi
7985else
7986  as_ln_s='cp -p'
7987fi
7988rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7989rmdir conf$$.dir 2>/dev/null
7990
7991
7992# as_fn_mkdir_p
7993# -------------
7994# Create "$as_dir" as a directory, including parents if necessary.
7995as_fn_mkdir_p ()
7996{
7997
7998  case $as_dir in #(
7999  -*) as_dir=./$as_dir;;
8000  esac
8001  test -d "$as_dir" || eval $as_mkdir_p || {
8002    as_dirs=
8003    while :; do
8004      case $as_dir in #(
8005      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8006      *) as_qdir=$as_dir;;
8007      esac
8008      as_dirs="'$as_qdir' $as_dirs"
8009      as_dir=`$as_dirname -- "$as_dir" ||
8010$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8011         X"$as_dir" : 'X\(//\)[^/]' \| \
8012         X"$as_dir" : 'X\(//\)$' \| \
8013         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8014$as_echo X"$as_dir" |
8015    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8016            s//\1/
8017            q
8018          }
8019          /^X\(\/\/\)[^/].*/{
8020            s//\1/
8021            q
8022          }
8023          /^X\(\/\/\)$/{
8024            s//\1/
8025            q
8026          }
8027          /^X\(\/\).*/{
8028            s//\1/
8029            q
8030          }
8031          s/.*/./; q'`
8032      test -d "$as_dir" && break
8033    done
8034    test -z "$as_dirs" || eval "mkdir $as_dirs"
8035  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8036
8037
8038} # as_fn_mkdir_p
8039if mkdir -p . 2>/dev/null; then
8040  as_mkdir_p='mkdir -p "$as_dir"'
8041else
8042  test -d ./-p && rmdir ./-p
8043  as_mkdir_p=false
8044fi
8045
8046if test -x / >/dev/null 2>&1; then
8047  as_test_x='test -x'
8048else
8049  if ls -dL / >/dev/null 2>&1; then
8050    as_ls_L_option=L
8051  else
8052    as_ls_L_option=
8053  fi
8054  as_test_x='
8055    eval sh -c '\''
8056      if test -d "$1"; then
8057        test -d "$1/.";
8058      else
8059        case $1 in #(
8060        -*)set "./$1";;
8061        esac;
8062        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8063        ???[sx]*):;;*)false;;esac;fi
8064    '\'' sh
8065  '
8066fi
8067as_executable_p=$as_test_x
8068
8069# Sed expression to map a string onto a valid CPP name.
8070as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8071
8072# Sed expression to map a string onto a valid variable name.
8073as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8074
8075
8076exec 6>&1
8077## ----------------------------------- ##
8078## Main body of $CONFIG_STATUS script. ##
8079## ----------------------------------- ##
8080_ASEOF
8081test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8082
8083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8084# Save the log message, to keep $0 and so on meaningful, and to
8085# report actual input values of CONFIG_FILES etc. instead of their
8086# values after options handling.
8087ac_log="
8088This file was extended by cppad $as_me 20130527, which was
8089generated by GNU Autoconf 2.68.  Invocation command line was
8090
8091  CONFIG_FILES    = $CONFIG_FILES
8092  CONFIG_HEADERS  = $CONFIG_HEADERS
8093  CONFIG_LINKS    = $CONFIG_LINKS
8094  CONFIG_COMMANDS = $CONFIG_COMMANDS
8095  $ $0 $@
8096
8097on `(hostname || uname -n) 2>/dev/null | sed 1q`
8098"
8099
8100_ACEOF
8101
8102case $ac_config_files in *"
8103"*) set x $ac_config_files; shift; ac_config_files=$*;;
8104esac
8105
8106
8107
8108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8109# Files that config.status was made for.
8110config_files="$ac_config_files"
8111config_commands="$ac_config_commands"
8112
8113_ACEOF
8114
8115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8116ac_cs_usage="\
8117\`$as_me' instantiates files and other configuration actions
8118from templates according to the current configuration.  Unless the files
8119and actions are specified as TAGs, all are instantiated by default.
8120
8121Usage: $0 [OPTION]... [TAG]...
8122
8123  -h, --help       print this help, then exit
8124  -V, --version    print version number and configuration settings, then exit
8125      --config     print configuration, then exit
8126  -q, --quiet, --silent
8127                   do not print progress messages
8128  -d, --debug      don't remove temporary files
8129      --recheck    update $as_me by reconfiguring in the same conditions
8130      --file=FILE[:TEMPLATE]
8131                   instantiate the configuration file FILE
8132
8133Configuration files:
8134$config_files
8135
8136Configuration commands:
8137$config_commands
8138
8139Report bugs to <cppad@list.coin-or.org>."
8140
8141_ACEOF
8142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8143ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8144ac_cs_version="\\
8145cppad config.status 20130527
8146configured by $0, generated by GNU Autoconf 2.68,
8147  with options \\"\$ac_cs_config\\"
8148
8149Copyright (C) 2010 Free Software Foundation, Inc.
8150This config.status script is free software; the Free Software Foundation
8151gives unlimited permission to copy, distribute and modify it."
8152
8153ac_pwd='$ac_pwd'
8154srcdir='$srcdir'
8155INSTALL='$INSTALL'
8156MKDIR_P='$MKDIR_P'
8157AWK='$AWK'
8158test -n "\$AWK" || AWK=awk
8159_ACEOF
8160
8161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8162# The default lists apply if the user does not specify any file.
8163ac_need_defaults=:
8164while test $# != 0
8165do
8166  case $1 in
8167  --*=?*)
8168    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8169    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8170    ac_shift=:
8171    ;;
8172  --*=)
8173    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8174    ac_optarg=
8175    ac_shift=:
8176    ;;
8177  *)
8178    ac_option=$1
8179    ac_optarg=$2
8180    ac_shift=shift
8181    ;;
8182  esac
8183
8184  case $ac_option in
8185  # Handling of the options.
8186  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8187    ac_cs_recheck=: ;;
8188  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8189    $as_echo "$ac_cs_version"; exit ;;
8190  --config | --confi | --conf | --con | --co | --c )
8191    $as_echo "$ac_cs_config"; exit ;;
8192  --debug | --debu | --deb | --de | --d | -d )
8193    debug=: ;;
8194  --file | --fil | --fi | --f )
8195    $ac_shift
8196    case $ac_optarg in
8197    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8198    '') as_fn_error $? "missing file argument" ;;
8199    esac
8200    as_fn_append CONFIG_FILES " '$ac_optarg'"
8201    ac_need_defaults=false;;
8202  --he | --h |  --help | --hel | -h )
8203    $as_echo "$ac_cs_usage"; exit ;;
8204  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8205  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8206    ac_cs_silent=: ;;
8207
8208  # This is an error.
8209  -*) as_fn_error $? "unrecognized option: \`$1'
8210Try \`$0 --help' for more information." ;;
8211
8212  *) as_fn_append ac_config_targets " $1"
8213     ac_need_defaults=false ;;
8214
8215  esac
8216  shift
8217done
8218
8219ac_configure_extra_args=
8220
8221if $ac_cs_silent; then
8222  exec 6>/dev/null
8223  ac_configure_extra_args="$ac_configure_extra_args --silent"
8224fi
8225
8226_ACEOF
8227cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8228if \$ac_cs_recheck; then
8229  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8230  shift
8231  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8232  CONFIG_SHELL='$SHELL'
8233  export CONFIG_SHELL
8234  exec "\$@"
8235fi
8236
8237_ACEOF
8238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8239exec 5>>config.log
8240{
8241  echo
8242  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8243## Running $as_me. ##
8244_ASBOX
8245  $as_echo "$ac_log"
8246} >&5
8247
8248_ACEOF
8249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8250#
8251# INIT-COMMANDS
8252#
8253AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263_ACEOF
8264
8265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8266
8267# Handling of arguments.
8268for ac_config_target in $ac_config_targets
8269do
8270  case $ac_config_target in
8271    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8272    "cppad/configure.hpp") CONFIG_FILES="$CONFIG_FILES cppad/configure.hpp" ;;
8273    "cppad_ipopt/example/test.sh") CONFIG_FILES="$CONFIG_FILES cppad_ipopt/example/test.sh" ;;
8274    "cppad_ipopt/speed/test.sh") CONFIG_FILES="$CONFIG_FILES cppad_ipopt/speed/test.sh" ;;
8275    "cppad_ipopt/test/test.sh") CONFIG_FILES="$CONFIG_FILES cppad_ipopt/test/test.sh" ;;
8276    "example/ipopt_solve/test.sh") CONFIG_FILES="$CONFIG_FILES example/ipopt_solve/test.sh" ;;
8277    "example/test_one.sh") CONFIG_FILES="$CONFIG_FILES example/test_one.sh" ;;
8278    "pkgconfig/cppad.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/cppad.pc" ;;
8279    "pkgconfig/cppad-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/cppad-uninstalled.pc" ;;
8280    "test_more/test_one.sh") CONFIG_FILES="$CONFIG_FILES test_more/test_one.sh" ;;
8281    "makefile") CONFIG_FILES="$CONFIG_FILES makefile" ;;
8282    "compare_c/makefile") CONFIG_FILES="$CONFIG_FILES compare_c/makefile" ;;
8283    "cppad_ipopt/src/makefile") CONFIG_FILES="$CONFIG_FILES cppad_ipopt/src/makefile" ;;
8284    "cppad_ipopt/example/makefile") CONFIG_FILES="$CONFIG_FILES cppad_ipopt/example/makefile" ;;
8285    "cppad_ipopt/speed/makefile") CONFIG_FILES="$CONFIG_FILES cppad_ipopt/speed/makefile" ;;
8286    "cppad_ipopt/test/makefile") CONFIG_FILES="$CONFIG_FILES cppad_ipopt/test/makefile" ;;
8287    "example/makefile") CONFIG_FILES="$CONFIG_FILES example/makefile" ;;
8288    "example/atomic/makefile") CONFIG_FILES="$CONFIG_FILES example/atomic/makefile" ;;
8289    "example/ipopt_solve/makefile") CONFIG_FILES="$CONFIG_FILES example/ipopt_solve/makefile" ;;
8290    "introduction/get_started/makefile") CONFIG_FILES="$CONFIG_FILES introduction/get_started/makefile" ;;
8291    "introduction/exp_apx/makefile") CONFIG_FILES="$CONFIG_FILES introduction/exp_apx/makefile" ;;
8292    "multi_thread/makefile") CONFIG_FILES="$CONFIG_FILES multi_thread/makefile" ;;
8293    "multi_thread/test_multi/makefile") CONFIG_FILES="$CONFIG_FILES multi_thread/test_multi/makefile" ;;
8294    "print_for/makefile") CONFIG_FILES="$CONFIG_FILES print_for/makefile" ;;
8295    "speed/adolc/makefile") CONFIG_FILES="$CONFIG_FILES speed/adolc/makefile" ;;
8296    "speed/cppad/makefile") CONFIG_FILES="$CONFIG_FILES speed/cppad/makefile" ;;
8297    "speed/double/makefile") CONFIG_FILES="$CONFIG_FILES speed/double/makefile" ;;
8298    "speed/example/makefile") CONFIG_FILES="$CONFIG_FILES speed/example/makefile" ;;
8299    "speed/fadbad/makefile") CONFIG_FILES="$CONFIG_FILES speed/fadbad/makefile" ;;
8300    "speed/profile/makefile") CONFIG_FILES="$CONFIG_FILES speed/profile/makefile" ;;
8301    "speed/profile/gprof.sed") CONFIG_FILES="$CONFIG_FILES speed/profile/gprof.sed" ;;
8302    "speed/sacado/makefile") CONFIG_FILES="$CONFIG_FILES speed/sacado/makefile" ;;
8303    "speed/src/makefile") CONFIG_FILES="$CONFIG_FILES speed/src/makefile" ;;
8304    "test_more/makefile") CONFIG_FILES="$CONFIG_FILES test_more/makefile" ;;
8305    "example_ipopt_solve_test.sh") CONFIG_COMMANDS="$CONFIG_COMMANDS example_ipopt_solve_test.sh" ;;
8306    "cppad_ipopt_example_test.sh") CONFIG_COMMANDS="$CONFIG_COMMANDS cppad_ipopt_example_test.sh" ;;
8307    "cppad_ipopt_speed_test.sh") CONFIG_COMMANDS="$CONFIG_COMMANDS cppad_ipopt_speed_test.sh" ;;
8308    "cppad_ipopt_test_test.sh") CONFIG_COMMANDS="$CONFIG_COMMANDS cppad_ipopt_test_test.sh" ;;
8309    "example_test_one.sh") CONFIG_COMMANDS="$CONFIG_COMMANDS example_test_one.sh" ;;
8310    "test_more_test_one.sh") CONFIG_COMMANDS="$CONFIG_COMMANDS test_more_test_one.sh" ;;
8311
8312  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8313  esac
8314done
8315
8316
8317# If the user did not use the arguments to specify the items to instantiate,
8318# then the envvar interface is used.  Set only those that are not.
8319# We use the long form for the default assignment because of an extremely
8320# bizarre bug on SunOS 4.1.3.
8321if $ac_need_defaults; then
8322  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8323  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8324fi
8325
8326# Have a temporary directory for convenience.  Make it in the build tree
8327# simply because there is no reason against having it here, and in addition,
8328# creating and moving files from /tmp can sometimes cause problems.
8329# Hook for its removal unless debugging.
8330# Note that there is a small window in which the directory will not be cleaned:
8331# after its creation but before its name has been assigned to `$tmp'.
8332$debug ||
8333{
8334  tmp= ac_tmp=
8335  trap 'exit_status=$?
8336  : "${ac_tmp:=$tmp}"
8337  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8338' 0
8339  trap 'as_fn_exit 1' 1 2 13 15
8340}
8341# Create a (secure) tmp directory for tmp files.
8342
8343{
8344  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8345  test -d "$tmp"
8346}  ||
8347{
8348  tmp=./conf$$-$RANDOM
8349  (umask 077 && mkdir "$tmp")
8350} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8351ac_tmp=$tmp
8352
8353# Set up the scripts for CONFIG_FILES section.
8354# No need to generate them if there are no CONFIG_FILES.
8355# This happens for instance with `./config.status config.h'.
8356if test -n "$CONFIG_FILES"; then
8357
8358
8359ac_cr=`echo X | tr X '\015'`
8360# On cygwin, bash can eat \r inside `` if the user requested igncr.
8361# But we know of no other shell where ac_cr would be empty at this
8362# point, so we can use a bashism as a fallback.
8363if test "x$ac_cr" = x; then
8364  eval ac_cr=\$\'\\r\'
8365fi
8366ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8367if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8368  ac_cs_awk_cr='\\r'
8369else
8370  ac_cs_awk_cr=$ac_cr
8371fi
8372
8373echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8374_ACEOF
8375
8376
8377{
8378  echo "cat >conf$$subs.awk <<_ACEOF" &&
8379  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8380  echo "_ACEOF"
8381} >conf$$subs.sh ||
8382  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8383ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8384ac_delim='%!_!# '
8385for ac_last_try in false false false false false :; do
8386  . ./conf$$subs.sh ||
8387    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8388
8389  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8390  if test $ac_delim_n = $ac_delim_num; then
8391    break
8392  elif $ac_last_try; then
8393    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8394  else
8395    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8396  fi
8397done
8398rm -f conf$$subs.sh
8399
8400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8401cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8402_ACEOF
8403sed -n '
8404h
8405s/^/S["/; s/!.*/"]=/
8406p
8407g
8408s/^[^!]*!//
8409:repl
8410t repl
8411s/'"$ac_delim"'$//
8412t delim
8413:nl
8414h
8415s/\(.\{148\}\)..*/\1/
8416t more1
8417s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8418p
8419n
8420b repl
8421:more1
8422s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8423p
8424g
8425s/.\{148\}//
8426t nl
8427:delim
8428h
8429s/\(.\{148\}\)..*/\1/
8430t more2
8431s/["\\]/\\&/g; s/^/"/; s/$/"/
8432p
8433b
8434:more2
8435s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8436p
8437g
8438s/.\{148\}//
8439t delim
8440' <conf$$subs.awk | sed '
8441/^[^""]/{
8442  N
8443  s/\n//
8444}
8445' >>$CONFIG_STATUS || ac_write_fail=1
8446rm -f conf$$subs.awk
8447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8448_ACAWK
8449cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8450  for (key in S) S_is_set[key] = 1
8451  FS = ""
8452
8453}
8454{
8455  line = $ 0
8456  nfields = split(line, field, "@")
8457  substed = 0
8458  len = length(field[1])
8459  for (i = 2; i < nfields; i++) {
8460    key = field[i]
8461    keylen = length(key)
8462    if (S_is_set[key]) {
8463      value = S[key]
8464      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8465      len += length(value) + length(field[++i])
8466      substed = 1
8467    } else
8468      len += 1 + keylen
8469  }
8470
8471  print line
8472}
8473
8474_ACAWK
8475_ACEOF
8476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8477if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8478  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8479else
8480  cat
8481fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8482  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8483_ACEOF
8484
8485# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8486# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8487# trailing colons and then remove the whole line if VPATH becomes empty
8488# (actually we leave an empty line to preserve line numbers).
8489if test "x$srcdir" = x.; then
8490  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
8491h
8492s///
8493s/^/:/
8494s/[      ]*$/:/
8495s/:\$(srcdir):/:/g
8496s/:\${srcdir}:/:/g
8497s/:@srcdir@:/:/g
8498s/^:*//
8499s/:*$//
8500x
8501s/\(=[   ]*\).*/\1/
8502G
8503s/\n//
8504s/^[^=]*=[       ]*$//
8505}'
8506fi
8507
8508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8509fi # test -n "$CONFIG_FILES"
8510
8511
8512eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
8513shift
8514for ac_tag
8515do
8516  case $ac_tag in
8517  :[FHLC]) ac_mode=$ac_tag; continue;;
8518  esac
8519  case $ac_mode$ac_tag in
8520  :[FHL]*:*);;
8521  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8522  :[FH]-) ac_tag=-:-;;
8523  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8524  esac
8525  ac_save_IFS=$IFS
8526  IFS=:
8527  set x $ac_tag
8528  IFS=$ac_save_IFS
8529  shift
8530  ac_file=$1
8531  shift
8532
8533  case $ac_mode in
8534  :L) ac_source=$1;;
8535  :[FH])
8536    ac_file_inputs=
8537    for ac_f
8538    do
8539      case $ac_f in
8540      -) ac_f="$ac_tmp/stdin";;
8541      *) # Look for the file first in the build tree, then in the source tree
8542         # (if the path is not absolute).  The absolute path cannot be DOS-style,
8543         # because $ac_f cannot contain `:'.
8544         test -f "$ac_f" ||
8545           case $ac_f in
8546           [\\/$]*) false;;
8547           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8548           esac ||
8549           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8550      esac
8551      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8552      as_fn_append ac_file_inputs " '$ac_f'"
8553    done
8554
8555    # Let's still pretend it is `configure' which instantiates (i.e., don't
8556    # use $as_me), people would be surprised to read:
8557    #    /* config.h.  Generated by config.status.  */
8558    configure_input='Generated from '`
8559          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8560        `' by configure.'
8561    if test x"$ac_file" != x-; then
8562      configure_input="$ac_file.  $configure_input"
8563      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8564$as_echo "$as_me: creating $ac_file" >&6;}
8565    fi
8566    # Neutralize special characters interpreted by sed in replacement strings.
8567    case $configure_input in #(
8568    *\&* | *\|* | *\\* )
8569       ac_sed_conf_input=`$as_echo "$configure_input" |
8570       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8571    *) ac_sed_conf_input=$configure_input;;
8572    esac
8573
8574    case $ac_tag in
8575    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8576      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8577    esac
8578    ;;
8579  esac
8580
8581  ac_dir=`$as_dirname -- "$ac_file" ||
8582$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8583         X"$ac_file" : 'X\(//\)[^/]' \| \
8584         X"$ac_file" : 'X\(//\)$' \| \
8585         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8586$as_echo X"$ac_file" |
8587    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8588            s//\1/
8589            q
8590          }
8591          /^X\(\/\/\)[^/].*/{
8592            s//\1/
8593            q
8594          }
8595          /^X\(\/\/\)$/{
8596            s//\1/
8597            q
8598          }
8599          /^X\(\/\).*/{
8600            s//\1/
8601            q
8602          }
8603          s/.*/./; q'`
8604  as_dir="$ac_dir"; as_fn_mkdir_p
8605  ac_builddir=.
8606
8607case "$ac_dir" in
8608.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8609*)
8610  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8611  # A ".." for each directory in $ac_dir_suffix.
8612  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8613  case $ac_top_builddir_sub in
8614  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8615  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8616  esac ;;
8617esac
8618ac_abs_top_builddir=$ac_pwd
8619ac_abs_builddir=$ac_pwd$ac_dir_suffix
8620# for backward compatibility:
8621ac_top_builddir=$ac_top_build_prefix
8622
8623case $srcdir in
8624  .)  # We are building in place.
8625    ac_srcdir=.
8626    ac_top_srcdir=$ac_top_builddir_sub
8627    ac_abs_top_srcdir=$ac_pwd ;;
8628  [\\/]* | ?:[\\/]* )  # Absolute name.
8629    ac_srcdir=$srcdir$ac_dir_suffix;
8630    ac_top_srcdir=$srcdir
8631    ac_abs_top_srcdir=$srcdir ;;
8632  *) # Relative name.
8633    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8634    ac_top_srcdir=$ac_top_build_prefix$srcdir
8635    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8636esac
8637ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8638
8639
8640  case $ac_mode in
8641  :F)
8642  #
8643  # CONFIG_FILE
8644  #
8645
8646  case $INSTALL in
8647  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8648  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8649  esac
8650  ac_MKDIR_P=$MKDIR_P
8651  case $MKDIR_P in
8652  [\\/$]* | ?:[\\/]* ) ;;
8653  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8654  esac
8655_ACEOF
8656
8657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8658# If the template does not know about datarootdir, expand it.
8659# FIXME: This hack should be removed a few years after 2.60.
8660ac_datarootdir_hack=; ac_datarootdir_seen=
8661ac_sed_dataroot='
8662/datarootdir/ {
8663  p
8664  q
8665}
8666/@datadir@/p
8667/@docdir@/p
8668/@infodir@/p
8669/@localedir@/p
8670/@mandir@/p'
8671case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8672*datarootdir*) ac_datarootdir_seen=yes;;
8673*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8674  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8675$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8676_ACEOF
8677cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8678  ac_datarootdir_hack='
8679  s&@datadir@&$datadir&g
8680  s&@docdir@&$docdir&g
8681  s&@infodir@&$infodir&g
8682  s&@localedir@&$localedir&g
8683  s&@mandir@&$mandir&g
8684  s&\\\${datarootdir}&$datarootdir&g' ;;
8685esac
8686_ACEOF
8687
8688# Neutralize VPATH when `$srcdir' = `.'.
8689# Shell code in configure.ac might set extrasub.
8690# FIXME: do we really want to maintain this feature?
8691cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8692ac_sed_extra="$ac_vpsub
8693$extrasub
8694_ACEOF
8695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8696:t
8697/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8698s|@configure_input@|$ac_sed_conf_input|;t t
8699s&@top_builddir@&$ac_top_builddir_sub&;t t
8700s&@top_build_prefix@&$ac_top_build_prefix&;t t
8701s&@srcdir@&$ac_srcdir&;t t
8702s&@abs_srcdir@&$ac_abs_srcdir&;t t
8703s&@top_srcdir@&$ac_top_srcdir&;t t
8704s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8705s&@builddir@&$ac_builddir&;t t
8706s&@abs_builddir@&$ac_abs_builddir&;t t
8707s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8708s&@INSTALL@&$ac_INSTALL&;t t
8709s&@MKDIR_P@&$ac_MKDIR_P&;t t
8710$ac_datarootdir_hack
8711"
8712eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8713  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8714
8715test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8716  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8717  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
8718      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8719  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8720which seems to be undefined.  Please make sure it is defined" >&5
8721$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8722which seems to be undefined.  Please make sure it is defined" >&2;}
8723
8724  rm -f "$ac_tmp/stdin"
8725  case $ac_file in
8726  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8727  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8728  esac \
8729  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8730 ;;
8731
8732
8733  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8734$as_echo "$as_me: executing $ac_file commands" >&6;}
8735 ;;
8736  esac
8737
8738
8739  case $ac_file$ac_mode in
8740    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8741  # Autoconf 2.62 quotes --file arguments for eval, but not when files
8742  # are listed without --file.  Let's play safe and only enable the eval
8743  # if we detect the quoting.
8744  case $CONFIG_FILES in
8745  *\'*) eval set x "$CONFIG_FILES" ;;
8746  *)   set x $CONFIG_FILES ;;
8747  esac
8748  shift
8749  for mf
8750  do
8751    # Strip MF so we end up with the name of the file.
8752    mf=`echo "$mf" | sed -e 's/:.*$//'`
8753    # Check whether this is an Automake generated Makefile or not.
8754    # We used to match only the files named `Makefile.in', but
8755    # some people rename them; so instead we look at the file content.
8756    # Grep'ing the first line is not enough: some people post-process
8757    # each Makefile.in and add a new line on top of each file to say so.
8758    # Grep'ing the whole file is not good either: AIX grep has a line
8759    # limit of 2048, but all sed's we know have understand at least 4000.
8760    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8761      dirpart=`$as_dirname -- "$mf" ||
8762$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8763         X"$mf" : 'X\(//\)[^/]' \| \
8764         X"$mf" : 'X\(//\)$' \| \
8765         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8766$as_echo X"$mf" |
8767    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8768            s//\1/
8769            q
8770          }
8771          /^X\(\/\/\)[^/].*/{
8772            s//\1/
8773            q
8774          }
8775          /^X\(\/\/\)$/{
8776            s//\1/
8777            q
8778          }
8779          /^X\(\/\).*/{
8780            s//\1/
8781            q
8782          }
8783          s/.*/./; q'`
8784    else
8785      continue
8786    fi
8787    # Extract the definition of DEPDIR, am__include, and am__quote
8788    # from the Makefile without running `make'.
8789    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8790    test -z "$DEPDIR" && continue
8791    am__include=`sed -n 's/^am__include = //p' < "$mf"`
8792    test -z "am__include" && continue
8793    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8794    # When using ansi2knr, U may be empty or an underscore; expand it
8795    U=`sed -n 's/^U = //p' < "$mf"`
8796    # Find all dependency output files, they are included files with
8797    # $(DEPDIR) in their names.  We invoke sed twice because it is the
8798    # simplest approach to changing $(DEPDIR) to its actual value in the
8799    # expansion.
8800    for file in `sed -n "
8801      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8802         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8803      # Make sure the directory exists.
8804      test -f "$dirpart/$file" && continue
8805      fdir=`$as_dirname -- "$file" ||
8806$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8807         X"$file" : 'X\(//\)[^/]' \| \
8808         X"$file" : 'X\(//\)$' \| \
8809         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8810$as_echo X"$file" |
8811    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8812            s//\1/
8813            q
8814          }
8815          /^X\(\/\/\)[^/].*/{
8816            s//\1/
8817            q
8818          }
8819          /^X\(\/\/\)$/{
8820            s//\1/
8821            q
8822          }
8823          /^X\(\/\).*/{
8824            s//\1/
8825            q
8826          }
8827          s/.*/./; q'`
8828      as_dir=$dirpart/$fdir; as_fn_mkdir_p
8829      # echo "creating $dirpart/$file"
8830      echo '# dummy' > "$dirpart/$file"
8831    done
8832  done
8833}
8834 ;;
8835    "example_ipopt_solve_test.sh":C) chmod +x example/ipopt_solve/test.sh ;;
8836    "cppad_ipopt_example_test.sh":C) chmod +x cppad_ipopt/example/test.sh ;;
8837    "cppad_ipopt_speed_test.sh":C) chmod +x cppad_ipopt/speed/test.sh ;;
8838    "cppad_ipopt_test_test.sh":C) chmod +x cppad_ipopt/test/test.sh ;;
8839    "example_test_one.sh":C) chmod +x example/test_one.sh ;;
8840    "test_more_test_one.sh":C) chmod +x test_more/test_one.sh ;;
8841
8842  esac
8843done # for ac_tag
8844
8845
8846as_fn_exit 0
8847_ACEOF
8848ac_clean_files=$ac_clean_files_save
8849
8850test $ac_write_fail = 0 ||
8851  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8852
8853
8854# configure is writing to config.log, and then calls config.status.
8855# config.status does its own redirection, appending to config.log.
8856# Unfortunately, on DOS this fails, as config.log is still kept open
8857# by configure, so config.status won't be able to write to it; its
8858# output is simply discarded.  So we exec the FD to /dev/null,
8859# effectively closing config.log, so it can be properly (re)opened and
8860# appended to by config.status.  When coming back to configure, we
8861# need to make the FD available again.
8862if test "$no_create" != yes; then
8863  ac_cs_success=:
8864  ac_config_status_args=
8865  test "$silent" = yes &&
8866    ac_config_status_args="$ac_config_status_args --quiet"
8867  exec 5>/dev/null
8868  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8869  exec 5>>config.log
8870  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8871  # would make configure fail if this is the last instruction.
8872  $ac_cs_success || as_fn_exit 1
8873fi
8874if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8875  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8876$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8877fi
8878
Note: See TracBrowser for help on using the repository browser.