source: trunk/configure @ 3941

Last change on this file since 3941 was 3941, checked in by bradbell, 2 years ago

merge to branch: trunk
from repository: https://github.com/coin-or/CppAD
start hash code: b7056a15a1028d7be587b70a3ecc44b1f42dc05e
end hash code: c8c4cc081accff3628e7e66370ec01e4c99afe8d

commit c8c4cc081accff3628e7e66370ec01e4c99afe8d
Author: Brad Bell <bradbell@…>
Date: Thu Jun 1 23:16:39 2017 -0600

Changes automatically generated by the autotools.

commit f4392bc3eee8f6d0ccd45a0bb3be51181e211680
Author: Brad Bell <bradbell@…>
Date: Thu Jun 1 23:11:56 2017 -0600

  1. Add colpack_jac.cpp example (rename colpack_jac.cpp->colpack_jacobian.cpp).
  2. Add colpack_hescpp example (rename colpack_hes.cpp->colpack_hessian.cpp).


test_one.sh.in: adapt to using test_boolofvoid for testing.
sparse_hes.hpp: fix bug in cppad.symmetric case.

commit 086b8a8709b0c9cb01ce2cf8bc7910e903105ff7
Author: Brad Bell <bradbell@…>
Date: Thu Jun 1 08:54:59 2017 -0600

  1. Fix bug in use of colpack (see kludge in comments).
  2. Fix colpack.symmetric (not general) and add colpack.general.
  3. Deprecate colpack.star.
  4. More autotools from install to deprecated.
  5. Advance to cppad-20170601.

commit 23f26c060648f5c6fc62a1598c659aeccc5ca46f
Author: Brad Bell <bradbell@…>
Date: Tue May 30 08:14:04 2017 -0700

Advance to cppad-20170530.

commit 97f8c08509865d1bfb7ec2e5cd557ddc979f8412
Author: Brad Bell <bradbell@…>
Date: Tue May 30 07:38:47 2017 -0700

debug_rel branch:
There is a problem with speed sparse_hessian debug that goes back to master.
Supresss debug in cppad speed tests until it is fixed.

commit 39ea0d7d9c041784ccd26ce80d19a7ab02752818
Author: Brad Bell <bradbell@…>
Date: Mon May 29 22:34:22 2017 -0700

debug_rel branch:
run_cmake.sh: fix debug_none case.
CMakeLists.txt: use cppad_debug_which to determine debug or release.
CMakeLists.txt: let set_compile_flags determkine build type.

commit 191553e54dca407207789cf0d7c6c27fe6188775
Author: Brad Bell <bradbell@…>
Date: Mon May 29 19:53:08 2017 -0700

debug_rel branch:
Use set_compile_flags in introduction.

commit fba276a84e58d9a0d0944168d5706b7446beb32c
Author: Brad Bell <bradbell@…>
Date: Mon May 29 19:46:30 2017 -0700

debug_rel branch:
Use set_compile_flags in eample/multi_thread subdirectories.

commit 66c8cdb266fa3af29b211b8c870a3aed7a13b021
Author: Brad Bell <bradbell@…>
Date: Mon May 29 18:56:48 2017 -0700

debug_rel branch:
Use set_compile_flags in speed directory.

commit c431b15ee7714d3106234bc527ba2f9a836750e1
Author: Brad Bell <bradbell@…>
Date: Mon May 29 18:36:51 2017 -0700

debug_rel branch:
Convert cppad_ipopt to use set_compile_flags and cppad_debug_which.


CMakeLists.txt: alwasy compile for release to reduce testing time.

commit 2c95b0019f1b665fb14b9f00b049e8b5fb11f89d
Author: Brad Bell <bradbell@…>
Date: Mon May 29 16:55:07 2017 -0700

debug_rel branch:
Add cppad_debug_which to the cmake command line.

commit fd8d1498cf6dc092deca41f764cbb2a001a4cc88
Author: Brad Bell <bradbell@…>
Date: Mon May 29 08:14:23 2017 -0700

debug_rel branch:
Change random_debug_release -> set_compile_flags.

commit 159f5a5aa09012213a52f4ed1c9f0607129a5fe7
Author: Brad Bell <bradbell@…>
Date: Mon May 29 06:50:43 2017 -0700

debug_rel branch:
Update the autotools automatically generated build files.


batch_edit.sh: Start comments about a plan for editing all the source files.
get_sacado.sh: advance to trilions-12.10.11.
makefile.am: advance to trilinos-12.10.1

commit 302153317cd296ec6f927c3202cf96bf38594bbb
Author: Brad Bell <bradbell@…>
Date: Mon May 29 05:20:00 2017 -0700

debug_rel branch:
Add error message if sacado configuration file does not exist.

commit 3f01a631ae808c3a1359e53e1cd55e9a0ea88711
Author: Brad Bell <bradbell@…>
Date: Mon May 29 04:24:00 2017 -0700

debug_rel branch:
CMakeLists.txt: automate naming of libraries Sacado needs.
checkpoint.cpp: fix warnings.

commit dd240928c0c8b6972a8197c985ccc01f08b8886b
Author: Brad Bell <bradbell@…>
Date: Sun May 28 08:25:20 2017 -0700

debug_rel branch:
sparse_sub_hes.cpp: add missing cases found by clang compiler.

commit 30a0c35f1ac50ec425be9a2b7b026284026eccd7
Author: Brad Bell <bradbell@…>
Date: Sun May 28 07:57:36 2017 -0700

debug_rel branch:
eigen_cholesky.hpp: fix compiler warning.
harmonic_time.cpp: remove include that is not used.
forward_active.cpp: fix compiler warning.

commit 4876d14e49dc235865b1574fb38a55cf5ea7a422
Author: Brad Bell <bradbell@…>
Date: Sun May 28 06:19:48 2017 -0700

debug_rel branch:
random_debug_release.cmake: fix comment, remove message replaced by random_choice_0123 in output.
multiple_solution.cpp: fix warnings with clang compiler.
eigen_cholesky.hpp: fix warnings with clang compiler.
compare_change.cpp: fix CPPAD_DEBUG_AND_RELEASE case.

commit 2c51a18f35188d04d2f94069382439580e23f4ac
Author: Brad Bell <bradbell@…>
Date: Sat May 27 21:04:37 2017 -0700

debug_rel branch:
Advance version to cppad-20170527.

commit 4500887b362537774b05e954ad2a95b65a7b8ba0
Author: Brad Bell <bradbell@…>
Date: Sat May 27 09:04:56 2017 -0700

debug_rel branch:
Ramdomly select debug or release flags in example directory.


CMakeLists.txt: always debug for multi_threed examples.

commit 140b5269a0b1a30643894e5a7a8c9a5eb1310301
Author: Brad Bell <bradbell@…>
Date: Sat May 27 08:10:51 2017 -0700

debug_rel branch:
Changing how we set all debug and release flags.

commit e6fb2639db1288fb75de4030b5906df1e41756f9
Author: Brad Bell <bradbell@…>
Date: Sat May 27 07:30:24 2017 -0700

debug_rel branch:
Replace use of cppad_extra_debug by CPPAD_DEBUG_AND_RELEASE.

commit fbbfd0f6e94862174a8a7a17308489ffddb28084
Author: Brad Bell <bradbell@…>
Date: Sat May 27 05:55:58 2017 -0700

debug_rel branch:
Improve random selection of which files are build for release or debug.


forward.cpp: use new -DCPPAD_DEBUG_AND_RELEASE flag.

commit 284be366fb5e2f685a0c71ea6a0e3f74584bf187
Author: Brad Bell <bradbell@…>
Date: Thu May 25 07:39:32 2017 -0700

debug_rel branch:
Add test that failed before change to player.


player.hpp: Fix so it has the same size in debug and release more.
checkpoint.cpp: fix warning when compiling for release.
run_cmake.sh: prepare to use random number to switch debug and release set.
CMakeLists.txt: switch to only test debug (for now).

commit f32375b77e3825628fee6cb160f691a32c48b796
Author: Brad Bell <bradbell@…>
Date: Wed May 24 12:04:27 2017 -0700

debug_rel branch:
forward.cpp: fix a warning during release build.

commit 5fcc7eb78ae8de9f1dbc6c4f0c76fe38e8aeba95
Author: Brad Bell <bradbell@…>
Date: Wed May 24 10:11:12 2017 -0700

debug_rel branch:
CMakeLists.txt: make easy to mix debug and release builds.
eigen_mat_inv.hpp: fix release version warning.

commit 696266f3d62079f5e3bfb1a0f60a7e4f8134e068
Author: Brad Bell <bradbell@…>
Date: Wed May 24 05:43:29 2017 -0700

push_git2svn.py: user ./build in place of ./build/work.
testvector.hpp: improve comments about replacing CPPAD_TESTVECTOR.

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