Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sleuthkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Sleuthkit
Commits
98d3986c
Commit
98d3986c
authored
7 years ago
by
rishwanth1995
Browse files
Options
Downloads
Patches
Plain Diff
modified configure file
parent
16caffe0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
configure.ac
+4
-6
4 additions, 6 deletions
configure.ac
tsk/auto/db_postgresql.cpp
+2
-2
2 additions, 2 deletions
tsk/auto/db_postgresql.cpp
tsk/auto/tsk_db_postgresql.h
+1
-1
1 addition, 1 deletion
tsk/auto/tsk_db_postgresql.h
tsk/tsk_config.h.in
+6
-0
6 additions, 0 deletions
tsk/tsk_config.h.in
with
13 additions
and
9 deletions
configure.ac
+
4
−
6
View file @
98d3986c
...
@@ -133,12 +133,10 @@ AS_IF([test "x$ac_cv_lib_sqlite3_sqlite3_open" = "xyes"],
...
@@ -133,12 +133,10 @@ AS_IF([test "x$ac_cv_lib_sqlite3_sqlite3_open" = "xyes"],
AM_CONDITIONAL([HAVE_LIBSQLITE3],
AM_CONDITIONAL([HAVE_LIBSQLITE3],
[test "x$ac_cv_lib_sqlite3_sqlite3_open" = "xyes"])
[test "x$ac_cv_lib_sqlite3_sqlite3_open" = "xyes"])
dnl check for postgresql
dnl check for postgresql
AC_CHECK_HEADERS([postgresql/libpq-fe.h],
AC_CHECK_HEADERS([postgresql/libpq-fe.h],AC_CHECK_LIB([pq],[PQlibVersion]))
[AC_CHECK_LIB([pq] , [PQlibVersion], [HAVE_POSTGRESQL=1], [HAVE_POSTGRESQL=0])])
AM_CONDITIONAL([HAVE_POSTGRESQL],[test "x$ac_cv_lib_pq_PQlibVersion" = "xyes"])
AM_COND_IF([HAVE_POSTGRESQL],[ax_libpq=yes],[ax_libpq=no])
AM_CONDITIONAL([USE_POSTGRESQL],
AM_COND_IF([HAVE_POSTGRESQL], [AC_DEFINE([HAVE_LIBPQ_], [1], [Define if using libpq.])])
[test "$HAVE_POSTGRESQL" -eq 1])
AS_IF([test "$USE_POSTGRESQL" -eq 1], [ax_libpq=yes], [ax_libpq=no])
# Check if we should link afflib.
# Check if we should link afflib.
AC_ARG_WITH([afflib],
AC_ARG_WITH([afflib],
...
...
This diff is collapsed.
Click to expand it.
tsk/auto/db_postgresql.cpp
+
2
−
2
View file @
98d3986c
...
@@ -135,7 +135,7 @@ TSK_RETVAL_ENUM TskDbPostgreSQL::createDatabase(){
...
@@ -135,7 +135,7 @@ TSK_RETVAL_ENUM TskDbPostgreSQL::createDatabase(){
TSK_RETVAL_ENUM
result
=
TSK_OK
;
TSK_RETVAL_ENUM
result
=
TSK_OK
;
// Connect to PostgreSQL server first
// Connect to PostgreSQL server first
char
defaultPostgresDb
[
32
]
=
TEXT
(
"postgres"
)
;
char
defaultPostgresDb
[
32
]
=
"postgres"
;
PGconn
*
serverConn
=
connectToDatabase
(
&
defaultPostgresDb
[
0
]);
PGconn
*
serverConn
=
connectToDatabase
(
&
defaultPostgresDb
[
0
]);
if
(
!
serverConn
)
if
(
!
serverConn
)
return
TSK_ERR
;
return
TSK_ERR
;
...
@@ -229,7 +229,7 @@ bool TskDbPostgreSQL::dbExists() {
...
@@ -229,7 +229,7 @@ bool TskDbPostgreSQL::dbExists() {
int
numDb
=
0
;
int
numDb
=
0
;
// Connect to PostgreSQL server first
// Connect to PostgreSQL server first
char
defaultPostgresDb
[
32
]
=
TEXT
(
"postgres"
)
;
char
defaultPostgresDb
[
32
]
=
"postgres"
;
PGconn
*
serverConn
=
connectToDatabase
(
&
defaultPostgresDb
[
0
]);
PGconn
*
serverConn
=
connectToDatabase
(
&
defaultPostgresDb
[
0
]);
if
(
!
serverConn
)
if
(
!
serverConn
)
return
false
;
return
false
;
...
...
This diff is collapsed.
Click to expand it.
tsk/auto/tsk_db_postgresql.h
+
1
−
1
View file @
98d3986c
...
@@ -40,7 +40,7 @@ using std::map;
...
@@ -40,7 +40,7 @@ using std::map;
*/
*/
class
TskDbPostgreSQL
:
public
TskDb
{
class
TskDbPostgreSQL
:
public
TskDb
{
public:
public:
TskDbPostgreSQL
(
const
cha
*
a_dbFilePath
,
bool
a_blkMapFlag
);
TskDbPostgreSQL
(
const
cha
r
*
a_dbFilePath
,
bool
a_blkMapFlag
);
~
TskDbPostgreSQL
();
~
TskDbPostgreSQL
();
int
open
(
bool
);
int
open
(
bool
);
int
close
();
int
close
();
...
...
This diff is collapsed.
Click to expand it.
tsk/tsk_config.h.in
+
6
−
0
View file @
98d3986c
...
@@ -60,6 +60,12 @@
...
@@ -60,6 +60,12 @@
/* Define to 1 if you have the <libewf.h> header file. */
/* Define to 1 if you have the <libewf.h> header file. */
#undef HAVE_LIBEWF_H
#undef HAVE_LIBEWF_H
/* Define to 1 if you have the `pq' library (-lpq). */
#undef HAVE_LIBPQ
/* Define if using libpq. */
#undef HAVE_LIBPQ_
/* Define to 1 if you have the `sqlite3' library (-lsqlite3). */
/* Define to 1 if you have the `sqlite3' library (-lsqlite3). */
#undef HAVE_LIBSQLITE3
#undef HAVE_LIBSQLITE3
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment